Skip to content

Commit

Permalink
chore: enabling hidden votes in the devnet court, script tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Jan 9, 2024
1 parent 1b5a16a commit 8184b87
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 71 deletions.
6 changes: 2 additions & 4 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ yarn sourcify --network <arbitrumSepolia|arbitrum|chiado|gnosischain|sepolia|mai

### Populating the policy registry and courts

The policy registry and courts configuration can be found in `config/policies.*.json` and `config/courts.*.json`.

#### 1/ Export the registry data from V1

```bash
Expand All @@ -226,10 +228,6 @@ done

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

:warning: By default this script populates from `*.mainnet.json`. To populate from `*.gnosischain.json`, set the variable `USE_GNOSIS` to true inside [scripts/populateCourts.ts](scripts/populateCourts.ts).

: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
36 changes: 18 additions & 18 deletions contracts/config/courts.v1.gnosischain.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"id": 0,
"parent": "0",
"parent": 0,
"hiddenVotes": true,
"minStake": "1600000000000000000000",
"alpha": "10000",
Expand All @@ -16,7 +16,7 @@
},
{
"id": 1,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "1600000000000000000000",
"alpha": "5000",
Expand All @@ -31,7 +31,7 @@
},
{
"id": 2,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "5000",
Expand All @@ -46,7 +46,7 @@
},
{
"id": 3,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "1800",
Expand All @@ -61,7 +61,7 @@
},
{
"id": 4,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "1800",
Expand All @@ -76,7 +76,7 @@
},
{
"id": 5,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "1800",
Expand All @@ -91,7 +91,7 @@
},
{
"id": 6,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "2200",
Expand All @@ -106,7 +106,7 @@
},
{
"id": 7,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "2200",
Expand All @@ -121,7 +121,7 @@
},
{
"id": 8,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "2800",
Expand All @@ -136,7 +136,7 @@
},
{
"id": 9,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "2800",
Expand All @@ -151,7 +151,7 @@
},
{
"id": 10,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "2800",
Expand All @@ -166,7 +166,7 @@
},
{
"id": 11,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "5800000000000000000000",
"alpha": "2800",
Expand All @@ -181,7 +181,7 @@
},
{
"id": 12,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "7400000000000000000000",
"alpha": "5000",
Expand All @@ -196,7 +196,7 @@
},
{
"id": 13,
"parent": "12",
"parent": 12,
"hiddenVotes": false,
"minStake": "7400000000000000000000",
"alpha": "5000",
Expand All @@ -211,7 +211,7 @@
},
{
"id": 14,
"parent": "12",
"parent": 12,
"hiddenVotes": false,
"minStake": "7400000000000000000000",
"alpha": "5000",
Expand All @@ -226,7 +226,7 @@
},
{
"id": 15,
"parent": "0",
"parent": 0,
"hiddenVotes": true,
"minStake": "3300000000000000000000",
"alpha": "5000",
Expand All @@ -241,7 +241,7 @@
},
{
"id": 16,
"parent": "15",
"parent": 15,
"hiddenVotes": false,
"minStake": "3300000000000000000000",
"alpha": "2400",
Expand All @@ -256,7 +256,7 @@
},
{
"id": 17,
"parent": "15",
"parent": 15,
"hiddenVotes": false,
"minStake": "3300000000000000000000",
"alpha": "4250",
Expand Down
48 changes: 24 additions & 24 deletions contracts/config/courts.v1.mainnet.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"id": 0,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "1700000000000000000000",
"alpha": "10000",
Expand All @@ -16,7 +16,7 @@
},
{
"id": 1,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "5000000000000000000000",
"alpha": "5000",
Expand All @@ -31,7 +31,7 @@
},
{
"id": 2,
"parent": "1",
"parent": 1,
"hiddenVotes": false,
"minStake": "5000000000000000000000",
"alpha": "3900",
Expand All @@ -46,7 +46,7 @@
},
{
"id": 3,
"parent": "2",
"parent": 2,
"hiddenVotes": false,
"minStake": "10000000000000000000000",
"alpha": "5000",
Expand All @@ -61,7 +61,7 @@
},
{
"id": 4,
"parent": "1",
"parent": 1,
"hiddenVotes": false,
"minStake": "23000000000000000000000",
"alpha": "5000",
Expand All @@ -76,7 +76,7 @@
},
{
"id": 5,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "14000000000000000000000",
"alpha": "3250",
Expand All @@ -91,7 +91,7 @@
},
{
"id": 6,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "5000",
Expand All @@ -106,7 +106,7 @@
},
{
"id": 7,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "14000000000000000000000",
"alpha": "3250",
Expand All @@ -121,7 +121,7 @@
},
{
"id": 8,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "1700000000000000000000",
"alpha": "4000",
Expand All @@ -136,7 +136,7 @@
},
{
"id": 9,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "4600000000000000000000",
"alpha": "5000",
Expand All @@ -151,7 +151,7 @@
},
{
"id": 10,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "3800000000000000000000",
"alpha": "5000",
Expand All @@ -166,7 +166,7 @@
},
{
"id": 11,
"parent": "10",
"parent": 10,
"hiddenVotes": false,
"minStake": "4700000000000000000000",
"alpha": "5000",
Expand All @@ -181,7 +181,7 @@
},
{
"id": 12,
"parent": "9",
"parent": 9,
"hiddenVotes": false,
"minStake": "4600000000000000000000",
"alpha": "4100",
Expand All @@ -196,7 +196,7 @@
},
{
"id": 13,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4000",
Expand All @@ -211,7 +211,7 @@
},
{
"id": 14,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4000",
Expand All @@ -226,7 +226,7 @@
},
{
"id": 15,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4000",
Expand All @@ -241,7 +241,7 @@
},
{
"id": 16,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4000",
Expand All @@ -256,7 +256,7 @@
},
{
"id": 17,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4000",
Expand All @@ -271,7 +271,7 @@
},
{
"id": 18,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4300",
Expand All @@ -286,7 +286,7 @@
},
{
"id": 19,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4300",
Expand All @@ -301,7 +301,7 @@
},
{
"id": 20,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4300",
Expand All @@ -316,7 +316,7 @@
},
{
"id": 21,
"parent": "6",
"parent": 6,
"hiddenVotes": false,
"minStake": "3900000000000000000000",
"alpha": "4300",
Expand All @@ -331,7 +331,7 @@
},
{
"id": 22,
"parent": "0",
"parent": 0,
"hiddenVotes": true,
"minStake": "2300000000000000000000",
"alpha": "10000",
Expand All @@ -346,7 +346,7 @@
},
{
"id": 23,
"parent": "0",
"parent": 0,
"hiddenVotes": false,
"minStake": "16000000000000000000000",
"alpha": "5000",
Expand Down
Loading

0 comments on commit 8184b87

Please sign in to comment.