Skip to content

Commit 6a6fedd

Browse files
committed
feat: Conway protocol parameter updates
* update protocol parameter set from protocol param update spec * update protocol parameter set from genesis * move GenesisRat type to common * update protocol parameter cost models to use int64 Fixes #746
1 parent 568c539 commit 6a6fedd

File tree

10 files changed

+428
-143
lines changed

10 files changed

+428
-143
lines changed

ledger/alonzo/pparams.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type AlonzoProtocolParameters struct {
2424
mary.MaryProtocolParameters
2525
MinPoolCost uint64
2626
AdaPerUtxoByte uint64
27-
CostModels map[uint][]uint64
27+
CostModels map[uint][]int64
2828
ExecutionCosts common.ExUnitPrice
2929
MaxTxExUnits common.ExUnit
3030
MaxBlockExUnits common.ExUnit
@@ -95,7 +95,7 @@ type AlonzoProtocolParameterUpdate struct {
9595
mary.MaryProtocolParameterUpdate
9696
MinPoolCost *uint64 `cbor:"16,keyasint"`
9797
AdaPerUtxoByte *uint64 `cbor:"17,keyasint"`
98-
CostModels map[uint][]uint64 `cbor:"18,keyasint"`
98+
CostModels map[uint][]int64 `cbor:"18,keyasint"`
9999
ExecutionCosts *common.ExUnitPrice `cbor:"19,keyasint"`
100100
MaxTxExUnits *common.ExUnit `cbor:"20,keyasint"`
101101
MaxBlockExUnits *common.ExUnit `cbor:"21,keyasint"`

ledger/babbage/pparams.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type BabbageProtocolParameters struct {
3838
ProtocolMinor uint
3939
MinPoolCost uint64
4040
AdaPerUtxoByte uint64
41-
CostModels map[uint][]uint64
41+
CostModels map[uint][]int64
4242
ExecutionCosts common.ExUnitPrice
4343
MaxTxExUnits common.ExUnit
4444
MaxBlockExUnits common.ExUnit
@@ -134,7 +134,7 @@ type BabbageProtocolParameterUpdate struct {
134134
ProtocolVersion *common.ProtocolParametersProtocolVersion `cbor:"14,keyasint"`
135135
MinPoolCost *uint64 `cbor:"16,keyasint"`
136136
AdaPerUtxoByte *uint64 `cbor:"17,keyasint"`
137-
CostModels map[uint][]uint64 `cbor:"18,keyasint"`
137+
CostModels map[uint][]int64 `cbor:"18,keyasint"`
138138
ExecutionCosts *common.ExUnitPrice `cbor:"19,keyasint"`
139139
MaxTxExUnits *common.ExUnit `cbor:"20,keyasint"`
140140
MaxBlockExUnits *common.ExUnit `cbor:"21,keyasint"`

ledger/babbage/pparams_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ func TestBabbageProtocolParamsUpdate(t *testing.T) {
6060
startParams: babbage.BabbageProtocolParameters{},
6161
updateCbor: "a112a20098a61a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201a009063b91903fd0a0198af1a0003236119032c01011903e819023b00011903e8195e7104011903e818201a0001ca761928eb041959d818641959d818641959d818641959d818641959d818641959d81864186418641959d81864194c5118201a0002acfa182019b551041a000363151901ff00011a00015c3518201a000797751936f404021a0002ff941a0006ea7818dc0001011903e8196ff604021a0003bd081a00034ec5183e011a00102e0f19312a011a00032e801901a5011a0002da781903e819cf06011a00013a34182019a8f118201903e818201a00013aac0119e143041903e80a1a00030219189c011a00030219189c011a0003207c1901d9011a000330001901ff0119ccf3182019fd40182019ffd5182019581e18201940b318201a00012adf18201a0002ff941a0006ea7818dc0001011a00010f92192da7000119eabb18201a0002ff941a0006ea7818dc0001011a0002ff941a0006ea7818dc0001011a0011b22c1a0005fdde00021a000c504e197712041a001d6af61a0001425b041a00040c660004001a00014fab18201a0003236119032c010119a0de18201a00033d7618201979f41820197fb8182019a95d1820197df718201995aa18201b00000004a817c8001b00000004a817c8001a009063b91903fd0a1b00000004a817c800001b00000004a817c800",
6262
expectedParams: babbage.BabbageProtocolParameters{
63-
CostModels: map[uint][]uint64{
64-
0: []uint64{0x32361, 0x32c, 0x1, 0x1, 0x3e8, 0x23b, 0x0, 0x1, 0x3e8, 0x5e71, 0x4, 0x1, 0x3e8, 0x20, 0x1ca76, 0x28eb, 0x4, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x64, 0x64, 0x59d8, 0x64, 0x4c51, 0x20, 0x2acfa, 0x20, 0xb551, 0x4, 0x36315, 0x1ff, 0x0, 0x1, 0x15c35, 0x20, 0x79775, 0x36f4, 0x4, 0x2, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x3e8, 0x6ff6, 0x4, 0x2, 0x3bd08, 0x34ec5, 0x3e, 0x1, 0x102e0f, 0x312a, 0x1, 0x32e80, 0x1a5, 0x1, 0x2da78, 0x3e8, 0xcf06, 0x1, 0x13a34, 0x20, 0xa8f1, 0x20, 0x3e8, 0x20, 0x13aac, 0x1, 0xe143, 0x4, 0x3e8, 0xa, 0x30219, 0x9c, 0x1, 0x30219, 0x9c, 0x1, 0x3207c, 0x1d9, 0x1, 0x33000, 0x1ff, 0x1, 0xccf3, 0x20, 0xfd40, 0x20, 0xffd5, 0x20, 0x581e, 0x20, 0x40b3, 0x20, 0x12adf, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x10f92, 0x2da7, 0x0, 0x1, 0xeabb, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0xc504e, 0x7712, 0x4, 0x1d6af6, 0x1425b, 0x4, 0x40c66, 0x0, 0x4, 0x0, 0x14fab, 0x20, 0x32361, 0x32c, 0x1, 0x1, 0xa0de, 0x20, 0x33d76, 0x20, 0x79f4, 0x20, 0x7fb8, 0x20, 0xa95d, 0x20, 0x7df7, 0x20, 0x95aa, 0x20, 0x9063b9, 0x3fd, 0xa},
65-
1: []uint64{0x32361, 0x32c, 0x1, 0x1, 0x3e8, 0x23b, 0x0, 0x1, 0x3e8, 0x5e71, 0x4, 0x1, 0x3e8, 0x20, 0x1ca76, 0x28eb, 0x4, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x64, 0x64, 0x59d8, 0x64, 0x4c51, 0x20, 0x2acfa, 0x20, 0xb551, 0x4, 0x36315, 0x1ff, 0x0, 0x1, 0x15c35, 0x20, 0x79775, 0x36f4, 0x4, 0x2, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x3e8, 0x6ff6, 0x4, 0x2, 0x3bd08, 0x34ec5, 0x3e, 0x1, 0x102e0f, 0x312a, 0x1, 0x32e80, 0x1a5, 0x1, 0x2da78, 0x3e8, 0xcf06, 0x1, 0x13a34, 0x20, 0xa8f1, 0x20, 0x3e8, 0x20, 0x13aac, 0x1, 0xe143, 0x4, 0x3e8, 0xa, 0x30219, 0x9c, 0x1, 0x30219, 0x9c, 0x1, 0x3207c, 0x1d9, 0x1, 0x33000, 0x1ff, 0x1, 0xccf3, 0x20, 0xfd40, 0x20, 0xffd5, 0x20, 0x581e, 0x20, 0x40b3, 0x20, 0x12adf, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x10f92, 0x2da7, 0x0, 0x1, 0xeabb, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x11b22c, 0x5fdde, 0x0, 0x2, 0xc504e, 0x7712, 0x4, 0x1d6af6, 0x1425b, 0x4, 0x40c66, 0x0, 0x4, 0x0, 0x14fab, 0x20, 0x32361, 0x32c, 0x1, 0x1, 0xa0de, 0x20, 0x33d76, 0x20, 0x79f4, 0x20, 0x7fb8, 0x20, 0xa95d, 0x20, 0x7df7, 0x20, 0x95aa, 0x20, 0x4a817c800, 0x4a817c800, 0x9063b9, 0x3fd, 0xa, 0x4a817c800, 0x0, 0x4a817c800},
63+
CostModels: map[uint][]int64{
64+
0: []int64{0x32361, 0x32c, 0x1, 0x1, 0x3e8, 0x23b, 0x0, 0x1, 0x3e8, 0x5e71, 0x4, 0x1, 0x3e8, 0x20, 0x1ca76, 0x28eb, 0x4, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x64, 0x64, 0x59d8, 0x64, 0x4c51, 0x20, 0x2acfa, 0x20, 0xb551, 0x4, 0x36315, 0x1ff, 0x0, 0x1, 0x15c35, 0x20, 0x79775, 0x36f4, 0x4, 0x2, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x3e8, 0x6ff6, 0x4, 0x2, 0x3bd08, 0x34ec5, 0x3e, 0x1, 0x102e0f, 0x312a, 0x1, 0x32e80, 0x1a5, 0x1, 0x2da78, 0x3e8, 0xcf06, 0x1, 0x13a34, 0x20, 0xa8f1, 0x20, 0x3e8, 0x20, 0x13aac, 0x1, 0xe143, 0x4, 0x3e8, 0xa, 0x30219, 0x9c, 0x1, 0x30219, 0x9c, 0x1, 0x3207c, 0x1d9, 0x1, 0x33000, 0x1ff, 0x1, 0xccf3, 0x20, 0xfd40, 0x20, 0xffd5, 0x20, 0x581e, 0x20, 0x40b3, 0x20, 0x12adf, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x10f92, 0x2da7, 0x0, 0x1, 0xeabb, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0xc504e, 0x7712, 0x4, 0x1d6af6, 0x1425b, 0x4, 0x40c66, 0x0, 0x4, 0x0, 0x14fab, 0x20, 0x32361, 0x32c, 0x1, 0x1, 0xa0de, 0x20, 0x33d76, 0x20, 0x79f4, 0x20, 0x7fb8, 0x20, 0xa95d, 0x20, 0x7df7, 0x20, 0x95aa, 0x20, 0x9063b9, 0x3fd, 0xa},
65+
1: []int64{0x32361, 0x32c, 0x1, 0x1, 0x3e8, 0x23b, 0x0, 0x1, 0x3e8, 0x5e71, 0x4, 0x1, 0x3e8, 0x20, 0x1ca76, 0x28eb, 0x4, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x59d8, 0x64, 0x64, 0x64, 0x59d8, 0x64, 0x4c51, 0x20, 0x2acfa, 0x20, 0xb551, 0x4, 0x36315, 0x1ff, 0x0, 0x1, 0x15c35, 0x20, 0x79775, 0x36f4, 0x4, 0x2, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x3e8, 0x6ff6, 0x4, 0x2, 0x3bd08, 0x34ec5, 0x3e, 0x1, 0x102e0f, 0x312a, 0x1, 0x32e80, 0x1a5, 0x1, 0x2da78, 0x3e8, 0xcf06, 0x1, 0x13a34, 0x20, 0xa8f1, 0x20, 0x3e8, 0x20, 0x13aac, 0x1, 0xe143, 0x4, 0x3e8, 0xa, 0x30219, 0x9c, 0x1, 0x30219, 0x9c, 0x1, 0x3207c, 0x1d9, 0x1, 0x33000, 0x1ff, 0x1, 0xccf3, 0x20, 0xfd40, 0x20, 0xffd5, 0x20, 0x581e, 0x20, 0x40b3, 0x20, 0x12adf, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x10f92, 0x2da7, 0x0, 0x1, 0xeabb, 0x20, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x2ff94, 0x6ea78, 0xdc, 0x0, 0x1, 0x1, 0x11b22c, 0x5fdde, 0x0, 0x2, 0xc504e, 0x7712, 0x4, 0x1d6af6, 0x1425b, 0x4, 0x40c66, 0x0, 0x4, 0x0, 0x14fab, 0x20, 0x32361, 0x32c, 0x1, 0x1, 0xa0de, 0x20, 0x33d76, 0x20, 0x79f4, 0x20, 0x7fb8, 0x20, 0xa95d, 0x20, 0x7df7, 0x20, 0x95aa, 0x20, 0x4a817c800, 0x4a817c800, 0x9063b9, 0x3fd, 0xa, 0x4a817c800, 0x0, 0x4a817c800},
6666
},
6767
},
6868
},

ledger/conway/conway.go

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -227,85 +227,6 @@ func (b *ConwayTransactionBody) Donation() uint64 {
227227
return b.TxDonation
228228
}
229229

230-
type ConwayProtocolParameters struct {
231-
cbor.StructAsArray
232-
MinFeeA uint
233-
MinFeeB uint
234-
MaxBlockBodySize uint
235-
MaxTxSize uint
236-
MaxBlockHeaderSize uint
237-
KeyDeposit uint
238-
PoolDeposit uint
239-
MaxEpoch uint
240-
NOpt uint
241-
A0 *cbor.Rat
242-
Rho *cbor.Rat
243-
Tau *cbor.Rat
244-
Protocol struct {
245-
cbor.StructAsArray
246-
Major uint
247-
Minor uint
248-
}
249-
MinPoolCost uint
250-
AdaPerUtxoByte uint
251-
CostModels map[uint][]int
252-
ExecutionUnitPrices []*cbor.Rat // [priceMemory priceSteps]
253-
MaxTxExecutionUnits []uint
254-
MaxBlockExecutionUnits []uint
255-
MaxValueSize uint
256-
CollateralPercentage uint
257-
MaxCollateralInputs uint
258-
PoolVotingThresholds PoolVotingThresholds
259-
DRepVotingThresholds DRepVotingThresholds
260-
MinCommitteeSize uint
261-
CommitteeTermLimit uint64
262-
GovActionValidityPeriod uint64
263-
GovActionDeposit uint64
264-
DRepDeposit uint64
265-
DRepInactivityPeriod uint64
266-
MinFeeRefScriptCostPerByte *cbor.Rat
267-
}
268-
269-
type ConwayProtocolParameterUpdate struct {
270-
babbage.BabbageProtocolParameterUpdate
271-
PoolVotingThresholds PoolVotingThresholds `cbor:"25,keyasint"`
272-
DRepVotingThresholds DRepVotingThresholds `cbor:"26,keyasint"`
273-
MinCommitteeSize uint `cbor:"27,keyasint"`
274-
CommitteeTermLimit uint64 `cbor:"28,keyasint"`
275-
GovActionValidityPeriod uint64 `cbor:"29,keyasint"`
276-
GovActionDeposit uint64 `cbor:"30,keyasint"`
277-
DRepDeposit uint64 `cbor:"31,keyasint"`
278-
DRepInactivityPeriod uint64 `cbor:"32,keyasint"`
279-
MinFeeRefScriptCostPerByte *cbor.Rat `cbor:"33,keyasint"`
280-
}
281-
282-
func (u *ConwayProtocolParameterUpdate) UnmarshalCBOR(data []byte) error {
283-
return u.UnmarshalCbor(data, u)
284-
}
285-
286-
type PoolVotingThresholds struct {
287-
cbor.StructAsArray
288-
MotionNoConfidence cbor.Rat
289-
CommitteeNormal cbor.Rat
290-
CommitteeNoConfidence cbor.Rat
291-
HardForkInitiation cbor.Rat
292-
SecurityRelevantParameterVotingThreshold cbor.Rat
293-
}
294-
295-
type DRepVotingThresholds struct {
296-
cbor.StructAsArray
297-
MotionNoConfidence cbor.Rat
298-
CommitteeNormal cbor.Rat
299-
CommitteeNoConfidence cbor.Rat
300-
UpdateConstitution cbor.Rat
301-
HardForkInitiation cbor.Rat
302-
PPNetworkGroup cbor.Rat
303-
PPEconomicGroup cbor.Rat
304-
PPTechnicalGroup cbor.Rat
305-
PPGovGroup cbor.Rat
306-
TreasureWithdrawal cbor.Rat
307-
}
308-
309230
type ConwayTransaction struct {
310231
cbor.StructAsArray
311232
cbor.DecodeStoreCbor

ledger/conway/genesis.go

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
"encoding/json"
1919
"io"
2020
"os"
21+
22+
"github.com/blinklabs-io/gouroboros/ledger/common"
2123
)
2224

2325
type ConwayGenesis struct {
@@ -29,31 +31,31 @@ type ConwayGenesis struct {
2931
GovActionDeposit uint64
3032
DRepDeposit uint64 `json:"dRepDeposit"`
3133
DRepInactivityPeriod uint64 `json:"dRepActivity"`
32-
MinFeeRefScriptCostPerByte float32
33-
PlutusV3CostModel []int `json:"plutusV3CostModel"`
34+
MinFeeRefScriptCostPerByte *common.GenesisRat
35+
PlutusV3CostModel []int64 `json:"plutusV3CostModel"`
3436
Constitution ConwayGenesisConstitution
3537
Committee ConwayGenesisCommittee
3638
}
3739

3840
type ConwayGenesisPoolVotingThresholds struct {
39-
CommitteeNormal float32
40-
CommitteeNoConfidence float32
41-
HardForkInitiation float32
42-
MotionNoConfidence float32
43-
PpSecurityGroup float32
41+
CommitteeNormal *common.GenesisRat
42+
CommitteeNoConfidence *common.GenesisRat
43+
HardForkInitiation *common.GenesisRat
44+
MotionNoConfidence *common.GenesisRat
45+
PpSecurityGroup *common.GenesisRat
4446
}
4547

4648
type ConwayGenesisDRepVotingThresholds struct {
47-
MotionNoConfidence float32
48-
CommitteeNormal float32
49-
CommitteeNoConfidence float32
50-
UpdateToConstitution float32
51-
HardForkInitiation float32
52-
PpNetworkGroup float32
53-
PpEconomicGroup float32
54-
PpTechnicalGroup float32
55-
PpGovGroup float32
56-
TreasuryWithdrawal float32
49+
MotionNoConfidence *common.GenesisRat
50+
CommitteeNormal *common.GenesisRat
51+
CommitteeNoConfidence *common.GenesisRat
52+
UpdateToConstitution *common.GenesisRat
53+
HardForkInitiation *common.GenesisRat
54+
PpNetworkGroup *common.GenesisRat
55+
PpEconomicGroup *common.GenesisRat
56+
PpTechnicalGroup *common.GenesisRat
57+
PpGovGroup *common.GenesisRat
58+
TreasuryWithdrawal *common.GenesisRat
5759
}
5860

5961
type ConwayGenesisConstitution struct {

ledger/conway/genesis_test.go

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
package conway_test
1616

1717
import (
18+
"math/big"
1819
"reflect"
1920
"strings"
2021
"testing"
2122

23+
"github.com/blinklabs-io/gouroboros/ledger/common"
2224
"github.com/blinklabs-io/gouroboros/ledger/conway"
2325
)
2426

@@ -330,32 +332,32 @@ const conwayGenesisConfig = `
330332

331333
var expectedGenesisObj = conway.ConwayGenesis{
332334
PoolVotingThresholds: conway.ConwayGenesisPoolVotingThresholds{
333-
CommitteeNoConfidence: 0.51,
334-
CommitteeNormal: 0.51,
335-
HardForkInitiation: 0.51,
336-
MotionNoConfidence: 0.51,
337-
PpSecurityGroup: 0.51,
335+
CommitteeNoConfidence: &common.GenesisRat{Rat: big.NewRat(51, 100)},
336+
CommitteeNormal: &common.GenesisRat{Rat: big.NewRat(51, 100)},
337+
HardForkInitiation: &common.GenesisRat{Rat: big.NewRat(51, 100)},
338+
MotionNoConfidence: &common.GenesisRat{Rat: big.NewRat(51, 100)},
339+
PpSecurityGroup: &common.GenesisRat{Rat: big.NewRat(51, 100)},
338340
},
339341
DRepVotingThresholds: conway.ConwayGenesisDRepVotingThresholds{
340-
CommitteeNoConfidence: 0.6,
341-
CommitteeNormal: 0.67,
342-
HardForkInitiation: 0.6,
343-
MotionNoConfidence: 0.67,
344-
PpEconomicGroup: 0.67,
345-
PpGovGroup: 0.75,
346-
PpNetworkGroup: 0.67,
347-
PpTechnicalGroup: 0.67,
348-
TreasuryWithdrawal: 0.67,
349-
UpdateToConstitution: 0.75,
342+
CommitteeNoConfidence: &common.GenesisRat{Rat: big.NewRat(60, 100)},
343+
CommitteeNormal: &common.GenesisRat{Rat: big.NewRat(67, 100)},
344+
HardForkInitiation: &common.GenesisRat{Rat: big.NewRat(60, 100)},
345+
MotionNoConfidence: &common.GenesisRat{Rat: big.NewRat(67, 100)},
346+
PpEconomicGroup: &common.GenesisRat{Rat: big.NewRat(67, 100)},
347+
PpGovGroup: &common.GenesisRat{Rat: big.NewRat(75, 100)},
348+
PpNetworkGroup: &common.GenesisRat{Rat: big.NewRat(67, 100)},
349+
PpTechnicalGroup: &common.GenesisRat{Rat: big.NewRat(67, 100)},
350+
TreasuryWithdrawal: &common.GenesisRat{Rat: big.NewRat(67, 100)},
351+
UpdateToConstitution: &common.GenesisRat{Rat: big.NewRat(75, 100)},
350352
},
351353
MinCommitteeSize: 7,
352354
CommitteeTermLimit: 146,
353355
GovActionValidityPeriod: 6,
354356
GovActionDeposit: 100000000000,
355357
DRepDeposit: 500000000,
356358
DRepInactivityPeriod: 20,
357-
MinFeeRefScriptCostPerByte: 15,
358-
PlutusV3CostModel: []int{
359+
MinFeeRefScriptCostPerByte: &common.GenesisRat{Rat: new(big.Rat).SetUint64(15)},
360+
PlutusV3CostModel: []int64{
359361
100788, 420, 1, 1, 1000, 173, 0, 1, 1000, 59957, 4, 1, 11183, 32, 201305, 8356, 4, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 16000, 100, 100, 100, 16000, 100, 94375, 32, 132994, 32, 61462, 4, 72010, 178, 0, 1, 22151, 32, 91189, 769, 4, 2, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 1000, 42921, 4, 2, 24548, 29498, 38, 1, 898148, 27279, 1, 51775, 558, 1, 39184, 1000, 60594, 1, 141895, 32, 83150, 32, 15299, 32, 76049, 1, 13169, 4, 22100, 10, 28999, 74, 1, 28999, 74, 1, 43285, 552, 1, 44749, 541, 1, 33852, 32, 68246, 32, 72362, 32, 7243, 32, 7391, 32, 11546, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 90434, 519, 0, 1, 74433, 32, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 1, 85848, 123203, 7305, -900, 1716, 549, 57, 85848, 0, 1, 955506, 213312, 0, 2, 270652, 22588, 4, 1457325, 64566, 4, 20467, 1, 4, 0, 141992, 32, 100788, 420, 1, 1, 81663, 32, 59498, 32, 20142, 32, 24588, 32, 20744, 32, 25933, 32, 24623, 32, 43053543, 10, 53384111, 14333, 10, 43574283, 26308, 10, 16000, 100, 16000, 100, 962335, 18, 2780678, 6, 442008, 1, 52538055, 3756, 18, 267929, 18, 76433006, 8868, 18, 52948122, 18, 1995836, 36, 3227919, 12, 901022, 1, 166917843, 4307, 36, 284546, 36, 158221314, 26549, 36, 74698472, 36, 333849714, 1, 254006273, 72, 2174038, 72, 2261318, 64571, 4, 207616, 8310, 4, 1293828, 28716, 63, 0, 1, 1006041, 43623, 251, 0, 1,
360362
},
361363
Constitution: conway.ConwayGenesisConstitution{

0 commit comments

Comments
 (0)