Skip to content

Commit

Permalink
Add example protocol-parameters.json to hydra-cluster/config
Browse files Browse the repository at this point in the history
These are a documented starting point to come up with parameters for the
hydra-node and are also used for the offline mode 'withHydraNode' in hydra-cluster.
  • Loading branch information
ch1bo committed Jan 3, 2024
1 parent c7ec699 commit a7afcfd
Show file tree
Hide file tree
Showing 3 changed files with 392 additions and 1 deletion.
387 changes: 387 additions & 0 deletions hydra-cluster/config/protocol-parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,387 @@
{
"txFeeFixed": 0,
"txFeePerByte": 0,
"executionUnitPrices": {
"priceMemory": 0,
"priceSteps": 0
},

"collateralPercentage": 150,
"costModels": {
"PlutusV1": [
205665,
812,
1,
1,
1000,
571,
0,
1,
1000,
24177,
4,
1,
1000,
32,
117366,
10475,
4,
23000,
100,
23000,
100,
23000,
100,
23000,
100,
23000,
100,
23000,
100,
100,
100,
23000,
100,
19537,
32,
175354,
32,
46417,
4,
221973,
511,
0,
1,
89141,
32,
497525,
14068,
4,
2,
196500,
453240,
220,
0,
1,
1,
1000,
28662,
4,
2,
245000,
216773,
62,
1,
1060367,
12586,
1,
208512,
421,
1,
187000,
1000,
52998,
1,
80436,
32,
43249,
32,
1000,
32,
80556,
1,
57667,
4,
1000,
10,
197145,
156,
1,
197145,
156,
1,
204924,
473,
1,
208896,
511,
1,
52467,
32,
64832,
32,
65493,
32,
22558,
32,
16563,
32,
76511,
32,
196500,
453240,
220,
0,
1,
1,
69522,
11687,
0,
1,
60091,
32,
196500,
453240,
220,
0,
1,
1,
196500,
453240,
220,
0,
1,
1,
806990,
30482,
4,
1927926,
82523,
4,
265318,
0,
4,
0,
85931,
32,
205665,
812,
1,
1,
41182,
32,
212342,
32,
31220,
32,
32696,
32,
43357,
32,
32247,
32,
38314,
32,
57996947,
18975,
10
],
"PlutusV2": [
205665,
812,
1,
1,
1000,
571,
0,
1,
1000,
24177,
4,
1,
1000,
32,
117366,
10475,
4,
23000,
100,
23000,
100,
23000,
100,
23000,
100,
23000,
100,
23000,
100,
100,
100,
23000,
100,
19537,
32,
175354,
32,
46417,
4,
221973,
511,
0,
1,
89141,
32,
497525,
14068,
4,
2,
196500,
453240,
220,
0,
1,
1,
1000,
28662,
4,
2,
245000,
216773,
62,
1,
1060367,
12586,
1,
208512,
421,
1,
187000,
1000,
52998,
1,
80436,
32,
43249,
32,
1000,
32,
80556,
1,
57667,
4,
1000,
10,
197145,
156,
1,
197145,
156,
1,
204924,
473,
1,
208896,
511,
1,
52467,
32,
64832,
32,
65493,
32,
22558,
32,
16563,
32,
76511,
32,
196500,
453240,
220,
0,
1,
1,
69522,
11687,
0,
1,
60091,
32,
196500,
453240,
220,
0,
1,
1,
196500,
453240,
220,
0,
1,
1,
1159724,
392670,
0,
2,
806990,
30482,
4,
1927926,
82523,
4,
265318,
0,
4,
0,
85931,
32,
205665,
812,
1,
1,
41182,
32,
212342,
32,
31220,
32,
32696,
32,
43357,
32,
32247,
32,
38314,
32,
35892428,
10,
57996947,
18975,
10,
38887044,
32947,
10
]
},
"decentralization": null,
"extraPraosEntropy": null,
"maxBlockBodySize": 90112,
"maxBlockExecutionUnits": {
"memory": 62000000,
"steps": 20000000000
},
"maxBlockHeaderSize": 1100,
"maxCollateralInputs": 3,
"maxTxExecutionUnits": {
"memory": 14000000,
"steps": 10000000000
},
"maxTxSize": 16384,
"maxValueSize": 5000,
"minPoolCost": 170000000,
"minUTxOValue": null,
"monetaryExpansion": 3.0e-3,
"poolPledgeInfluence": 0.3,
"poolRetireMaxEpoch": 18,
"protocolVersion": {
"major": 8,
"minor": 0
},
"stakeAddressDeposit": 2000000,
"stakePoolDeposit": 500000000,
"stakePoolTargetNum": 500,
"treasuryCut": 0.2,
"utxoCostPerByte": 4310,
"utxoCostPerWord": null
}
1 change: 1 addition & 0 deletions hydra-cluster/hydra-cluster.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ data-files:
config/devnet/kes.skey
config/devnet/opcert.cert
config/devnet/vrf.skey
config/protocol-parameters.json

source-repository head
type: git
Expand Down
Loading

0 comments on commit a7afcfd

Please sign in to comment.