-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1845 from kleros/dev
Release v2-testnet-4.0.6
- Loading branch information
Showing
85 changed files
with
2,010 additions
and
1,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,82 @@ | ||
[ | ||
{ | ||
"name": "General Court", | ||
"id": 1, | ||
"parent": 0, | ||
"hiddenVotes": true, | ||
"minStake": "520000000000000000000", | ||
"minStake": "1500000000000000000", | ||
"alpha": "5000", | ||
"feeForJuror": "15000000000000000000", | ||
"feeForJuror": "100000000000", | ||
"jurorsForCourtJump": "511", | ||
"timesPerPeriod": [ | ||
280800, | ||
583200, | ||
583200, | ||
388800 | ||
120, | ||
240, | ||
240, | ||
600 | ||
] | ||
}, | ||
{ | ||
"name": "Curation", | ||
"id": 2, | ||
"parent": 1, | ||
"hiddenVotes": false, | ||
"minStake": "520000000000000000000", | ||
"minStake": "2000000000000000000", | ||
"alpha": "3100", | ||
"feeForJuror": "6900000000000000000", | ||
"jurorsForCourtJump": "30", | ||
"feeForJuror": "100000000000", | ||
"jurorsForCourtJump": "31", | ||
"timesPerPeriod": [ | ||
140400, | ||
291600, | ||
291600, | ||
194400 | ||
120, | ||
240, | ||
240, | ||
600 | ||
] | ||
}, | ||
{ | ||
"name": "English Language", | ||
"id": 3, | ||
"parent": 1, | ||
"hiddenVotes": false, | ||
"minStake": "1200000000000000000000", | ||
"minStake": "2000000000000000000", | ||
"alpha": "5000", | ||
"feeForJuror": "22000000000000000000", | ||
"feeForJuror": "100000000000", | ||
"jurorsForCourtJump": "63", | ||
"timesPerPeriod": [ | ||
280800, | ||
437400, | ||
437400, | ||
291600 | ||
120, | ||
240, | ||
240, | ||
600 | ||
] | ||
}, | ||
{ | ||
"name": "Corte de Disputas de Consumo y Vecindad", | ||
"id": 4, | ||
"parent": 1, | ||
"hiddenVotes": false, | ||
"minStake": "2000000000000000000", | ||
"alpha": "5000", | ||
"feeForJuror": "100000000000", | ||
"jurorsForCourtJump": "63", | ||
"timesPerPeriod": [ | ||
120, | ||
240, | ||
240, | ||
600 | ||
] | ||
}, | ||
{ | ||
"name": "Oracle Court", | ||
"id": 5, | ||
"parent": 1, | ||
"hiddenVotes": false, | ||
"minStake": "2000000000000000000", | ||
"alpha": "5000", | ||
"feeForJuror": "100000000000", | ||
"jurorsForCourtJump": "31", | ||
"timesPerPeriod": [ | ||
120, | ||
240, | ||
240, | ||
600 | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
contracts/config/policies.v2/English-Language-Court-Policy.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
import { DeployFunction } from "hardhat-deploy/types"; | ||
import { deployUpgradable } from "./utils/deployUpgradable"; | ||
import { HomeChains, isSkipped } from "./utils"; | ||
|
||
const deployUpgradeDisputeKit: DeployFunction = async (hre: HardhatRuntimeEnvironment) => { | ||
const { deployments, getNamedAccounts, getChainId } = hre; | ||
|
||
// fallback to hardhat node signers on local network | ||
const deployer = (await getNamedAccounts()).deployer ?? (await hre.ethers.getSigners())[0].address; | ||
const chainId = Number(await getChainId()); | ||
console.log("upgrading on %s with deployer %s", HomeChains[chainId], deployer); | ||
|
||
try { | ||
console.log("upgrading DisputeKitClassicNeo..."); | ||
await deployUpgradable(deployments, "DisputeKitClassicNeo", { | ||
contract: "DisputeKitClassic", | ||
initializer: "initialize", | ||
from: deployer, | ||
// Warning: do not reinitialize everything, only the new variables | ||
args: [], | ||
}); | ||
} catch (err) { | ||
console.error(err); | ||
throw err; | ||
} | ||
}; | ||
|
||
deployUpgradeDisputeKit.tags = ["Upgrade", "DisputeKit"]; | ||
deployUpgradeDisputeKit.skip = async ({ network }) => { | ||
return isSkipped(network, !HomeChains[network.config.chainId ?? 0]); | ||
}; | ||
|
||
export default deployUpgradeDisputeKit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.