Skip to content

Commit e1a8571

Browse files
authored
Merge pull request #1848 from kleros/feat/court-configs
Court configs: new oracle court, edited spanish non-technical court
2 parents 4ed43ef + 5af7b1b commit e1a8571

15 files changed

+387
-162
lines changed
Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,82 @@
11
[
22
{
3+
"name": "General Court",
34
"id": 1,
45
"parent": 0,
56
"hiddenVotes": true,
6-
"minStake": "520000000000000000000",
7+
"minStake": "1500000000000000000",
78
"alpha": "5000",
8-
"feeForJuror": "15000000000000000000",
9+
"feeForJuror": "100000000000",
910
"jurorsForCourtJump": "511",
1011
"timesPerPeriod": [
11-
280800,
12-
583200,
13-
583200,
14-
388800
12+
120,
13+
240,
14+
240,
15+
600
1516
]
1617
},
1718
{
19+
"name": "Curation",
1820
"id": 2,
1921
"parent": 1,
2022
"hiddenVotes": false,
21-
"minStake": "520000000000000000000",
23+
"minStake": "2000000000000000000",
2224
"alpha": "3100",
23-
"feeForJuror": "6900000000000000000",
24-
"jurorsForCourtJump": "30",
25+
"feeForJuror": "100000000000",
26+
"jurorsForCourtJump": "31",
2527
"timesPerPeriod": [
26-
140400,
27-
291600,
28-
291600,
29-
194400
28+
120,
29+
240,
30+
240,
31+
600
3032
]
3133
},
3234
{
35+
"name": "English Language",
3336
"id": 3,
3437
"parent": 1,
3538
"hiddenVotes": false,
36-
"minStake": "1200000000000000000000",
39+
"minStake": "2000000000000000000",
3740
"alpha": "5000",
38-
"feeForJuror": "22000000000000000000",
41+
"feeForJuror": "100000000000",
3942
"jurorsForCourtJump": "63",
4043
"timesPerPeriod": [
41-
280800,
42-
437400,
43-
437400,
44-
291600
44+
120,
45+
240,
46+
240,
47+
600
48+
]
49+
},
50+
{
51+
"name": "Corte de Disputas de Consumo y Vecindad",
52+
"id": 4,
53+
"parent": 1,
54+
"hiddenVotes": false,
55+
"minStake": "2000000000000000000",
56+
"alpha": "5000",
57+
"feeForJuror": "100000000000",
58+
"jurorsForCourtJump": "63",
59+
"timesPerPeriod": [
60+
120,
61+
240,
62+
240,
63+
600
64+
]
65+
},
66+
{
67+
"name": "Oracle Court",
68+
"id": 5,
69+
"parent": 1,
70+
"hiddenVotes": false,
71+
"minStake": "2000000000000000000",
72+
"alpha": "5000",
73+
"feeForJuror": "100000000000",
74+
"jurorsForCourtJump": "31",
75+
"timesPerPeriod": [
76+
120,
77+
240,
78+
240,
79+
600
4580
]
4681
}
4782
]

contracts/config/courts.v2.mainnet-neo.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
]
449449
},
450450
{
451-
"name": "Blockchain No Técnica",
451+
"name": "Corte de Disputas de Consumo y Vecindad",
452452
"id": 29,
453453
"parent": 23,
454454
"hiddenVotes": false,
@@ -462,5 +462,21 @@
462462
216000,
463463
216000
464464
]
465+
},
466+
{
467+
"name": "Oracle Court",
468+
"id": 30,
469+
"parent": 1,
470+
"hiddenVotes": false,
471+
"minStake": "5000000000000000000000",
472+
"feeForJuror": "6900000000000000",
473+
"alpha": "5000",
474+
"jurorsForCourtJump": "31",
475+
"timesPerPeriod": [
476+
280800,
477+
583200,
478+
583200,
479+
388800
480+
]
465481
}
466482
]

contracts/config/courts.v2.testnet.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
22
{
3+
"name": "General Court",
34
"id": 1,
45
"parent": 0,
56
"hiddenVotes": true,
@@ -15,13 +16,14 @@
1516
]
1617
},
1718
{
19+
"name": "Curation",
1820
"id": 2,
1921
"parent": 1,
2022
"hiddenVotes": false,
2123
"minStake": "200000000000000000000",
2224
"alpha": "3100",
2325
"feeForJuror": "10000000000000",
24-
"jurorsForCourtJump": "30",
26+
"jurorsForCourtJump": "31",
2527
"timesPerPeriod": [
2628
43200,
2729
43200,
@@ -30,6 +32,7 @@
3032
]
3133
},
3234
{
35+
"name": "English Language",
3336
"id": 3,
3437
"parent": 1,
3538
"hiddenVotes": false,
@@ -43,5 +46,37 @@
4346
43200,
4447
43200
4548
]
49+
},
50+
{
51+
"name": "Corte de Disputas de Consumo y Vecindad",
52+
"id": 4,
53+
"parent": 1,
54+
"hiddenVotes": false,
55+
"minStake": "200000000000000000000",
56+
"alpha": "5000",
57+
"feeForJuror": "10000000000000",
58+
"jurorsForCourtJump": "63",
59+
"timesPerPeriod": [
60+
43200,
61+
43200,
62+
43200,
63+
43200
64+
]
65+
},
66+
{
67+
"name": "Oracle Court",
68+
"id": 5,
69+
"parent": 1,
70+
"hiddenVotes": false,
71+
"minStake": "200000000000000000000",
72+
"alpha": "5000",
73+
"feeForJuror": "10000000000000",
74+
"jurorsForCourtJump": "31",
75+
"timesPerPeriod": [
76+
43200,
77+
43200,
78+
43200,
79+
43200
80+
]
4681
}
4782
]

contracts/config/policies.v2.devnet.json

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

contracts/config/policies.v2.mainnet-neo.json

Lines changed: 100 additions & 92 deletions
Large diffs are not rendered by default.

contracts/config/policies.v2.testnet.json

Lines changed: 25 additions & 9 deletions
Large diffs are not rendered by default.

contracts/config/policies.v2/Curation-Court-Policy.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

contracts/config/policies.v2/English-Language-Court-Policy.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

contracts/config/policies.v2/General-Court-Policy.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

contracts/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
"docgen": "hardhat docgen",
5353
"docserve": "scripts/docPreprocess.sh && forge doc --serve",
5454
"docbuild": "scripts/docPreprocess.sh && forge doc --build --out dist && scripts/docPostprocess.sh",
55+
"populate:courts:devnet": "hardhat populate:courts --from v2_devnet --network arbitrumSepoliaDevnet",
56+
"populate:courts:testnet": "hardhat populate:courts --from v2_testnet --network arbitrumSepolia",
57+
"populate:courts:mainnetNeo": "hardhat populate:courts --core-type neo --from v2_mainnet_neo --network arbitrum",
58+
"populate:policiesUris": "scripts/setPoliciesURIs.sh config/policies.v2.{devnet,testnet,mainnet-neo}.json",
59+
"populate:policies:devnet": "hardhat populate:policy-registry --from v2_devnet --network arbitrumSepoliaDevnet",
60+
"populate:policies:testnet": "hardhat populate:policy-registry --from v2_testnet --network arbitrumSepolia",
61+
"populate:policies:mainnetNeo": "hardhat populate:policy-registry --core-type neo --from v2_mainnet_neo --network arbitrum",
5562
"release:patch": "scripts/publish.sh patch",
5663
"release:minor": "scripts/publish.sh minor",
5764
"release:major": "scripts/publish.sh major",

0 commit comments

Comments
 (0)