Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,19 @@ yarn etherscan-verify --network <arbitrumGoerli|arbitrumRinkeby|arbitrum|goerli|
#### 1/ Export the registry data from V1

```bash
yarn hardhat run scripts/getPoliciesV1.ts --network mainnet | tee policies.v1.json
yarn hardhat run scripts/getCourtsV1.ts --network mainnet | tee courts.v1.json
for network in mainnet gnosischain
do
yarn hardhat run scripts/getPoliciesV1.ts --network $network | tee config/policies.v1.$network.json
yarn hardhat run scripts/getCourtsV1.ts --network $network | tee config/courts.v1.$network.json
done
```

#### 2/ Import the data to V2 - Local Network

:warning: This script populates only from `*.mainnet.json`, but not from `*.gnosischain.json` at this time.

:warning: It is possible to switch to testnet-friendly court parameters by setting the variable `TESTING_PARAMETERS` to true inside [scripts/populateCourts.ts](scripts/populateCourts.ts).

Shell 1:

```bash
Expand Down
227 changes: 227 additions & 0 deletions contracts/config/courts.v1.gnosischain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
[
{
"id": 0,
"parent": "0",
"hiddenVotes": true,
"minStake": "520000000000000000000",
"alpha": "5000",
"feeForJuror": "15000000000000000000",
"jurorsForCourtJump": "15000000000000000000",
"timesPerPeriod": [
280800,
583200,
583200,
388800
]
},
{
"id": 1,
"parent": "0",
"hiddenVotes": false,
"minStake": "520000000000000000000",
"alpha": "3100",
"feeForJuror": "6900000000000000000",
"jurorsForCourtJump": "6900000000000000000",
"timesPerPeriod": [
140400,
291600,
291600,
194400
]
},
{
"id": 2,
"parent": "0",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "5000",
"feeForJuror": "22000000000000000000",
"jurorsForCourtJump": "22000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 3,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "1800",
"feeForJuror": "9400000000000000000",
"jurorsForCourtJump": "9400000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 4,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "1800",
"feeForJuror": "9400000000000000000",
"jurorsForCourtJump": "9400000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 5,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "1800",
"feeForJuror": "9400000000000000000",
"jurorsForCourtJump": "9400000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 6,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "2200",
"feeForJuror": "12000000000000000000",
"jurorsForCourtJump": "12000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 7,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "2200",
"feeForJuror": "12000000000000000000",
"jurorsForCourtJump": "12000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 8,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "2800",
"feeForJuror": "15000000000000000000",
"jurorsForCourtJump": "15000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 9,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "2800",
"feeForJuror": "15000000000000000000",
"jurorsForCourtJump": "15000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 10,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "2800",
"feeForJuror": "15000000000000000000",
"jurorsForCourtJump": "15000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 11,
"parent": "2",
"hiddenVotes": false,
"minStake": "1200000000000000000000",
"alpha": "2800",
"feeForJuror": "15000000000000000000",
"jurorsForCourtJump": "15000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 12,
"parent": "0",
"hiddenVotes": false,
"minStake": "1400000000000000000000",
"alpha": "5000",
"feeForJuror": "30000000000000000000",
"jurorsForCourtJump": "30000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 13,
"parent": "12",
"hiddenVotes": false,
"minStake": "1400000000000000000000",
"alpha": "1600",
"feeForJuror": "30000000000000000000",
"jurorsForCourtJump": "30000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
},
{
"id": 14,
"parent": "12",
"hiddenVotes": false,
"minStake": "1400000000000000000000",
"alpha": "1600",
"feeForJuror": "30000000000000000000",
"jurorsForCourtJump": "30000000000000000000",
"timesPerPeriod": [
280800,
437400,
437400,
291600
]
}
]
Loading