Add support for protocol parameters (except cost models)

We can now simulate transactions with protocol parameters voting
  procedures. Cost models remain to be done, though.
This commit is contained in:
KtorZ
2024-08-11 18:47:28 +02:00
parent 50dad1fdfe
commit f244b9c496
15 changed files with 6621 additions and 1938 deletions

View File

@@ -0,0 +1,5 @@
[
{ 0: h'6000000000000000000000000000000000000000000000000000000000'
, 1: 1000000
}
]

View File

@@ -0,0 +1,83 @@
[
{ 0:
[ [h'0000000000000000000000000000000000000000000000000000000000000000', 0]
]
, 1:
[]
, 2: 42
, 20: 258(
[
[ 2000000
, h'F000000000000000000000000000000000000000000000000000000000'
, [ 0
, null
, { 0: 44
, 1: 155381
, 7: 18
, 8: 500
, 9: 30([3, 10])
, 10: 30([3, 1000])
, 11: 30([2, 10])
, 2: 90112
, 3: 16384
, 4: 1100
, 5: 2000000
, 6: 500000000
, 16: 340
, 17: 4310
, 19: [30([577, 1000]), 30([721, 1000000])]
, 20: [14000000, 10000000000]
, 21: [62000000, 20000000000]
, 22: 5000
, 23: 150
, 24: 3
, 25:
[ 30([51, 100])
, 30([52, 100])
, 30([53, 100])
, 30([54, 100])
, 30([55, 100])
]
, 26:
[ 30([67, 100])
, 30([67, 100])
, 30([60, 100])
, 30([75, 100])
, 30([60, 100])
, 30([67, 100])
, 30([67, 100])
, 30([67, 100])
, 30([75, 100])
, 30([67, 100])
]
, 27: 7
, 28: 146
, 29: 6
, 30: 100000000000
, 31: 500000000
, 32: 20
, 33: 30([15, 1])
}
, h'{{ proposing_pparams.guardrails.hash }}'
]
, [ "https://aiken-lang.org"
, h'0000000000000000000000000000000000000000000000000000000000000000'
]
]
]
)
},
{ 5: [[5, 0, 121([]), [1000000, 100000000]]]
, 7: [h'{{ proposing_pparams.guardrails.cbor }}']
},
true,
null
]