Skip to content

Commit 46169ab

Browse files
committed
Add golden tests for query{Current,Future}PParams
1 parent e6bab8a commit 46169ab

11 files changed

Lines changed: 572 additions & 0 deletions

File tree

libs/cardano-ledger-api/cardano-ledger-api.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ library testlib
120120
containers,
121121
data-default,
122122
generic-random,
123+
microlens,
123124
prettyprinter,
124125

125126
test-suite cardano-ledger-api-test
308 Bytes
Binary file not shown.
311 Bytes
Binary file not shown.
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
[
2+
{
3+
"collateralPercentage": 150,
4+
"committeeMaxTermLength": 0,
5+
"committeeMinSize": 0,
6+
"costModels": {},
7+
"dRepActivity": 0,
8+
"dRepDeposit": 0,
9+
"dRepVotingThresholds": {
10+
"committeeNoConfidence": 0,
11+
"committeeNormal": 0,
12+
"hardForkInitiation": 0,
13+
"motionNoConfidence": 0,
14+
"ppEconomicGroup": 0,
15+
"ppGovGroup": 0,
16+
"ppNetworkGroup": 0,
17+
"ppTechnicalGroup": 0,
18+
"treasuryWithdrawal": 0,
19+
"updateToConstitution": 0
20+
},
21+
"executionUnitPrices": {
22+
"priceMemory": 0,
23+
"priceSteps": 0
24+
},
25+
"govActionDeposit": 0,
26+
"govActionLifetime": 0,
27+
"maxBlockBodySize": 0,
28+
"maxBlockExecutionUnits": {
29+
"memory": 0,
30+
"steps": 0
31+
},
32+
"maxBlockHeaderSize": 0,
33+
"maxCollateralInputs": 5,
34+
"maxTxExecutionUnits": {
35+
"memory": 0,
36+
"steps": 0
37+
},
38+
"maxTxSize": 2048,
39+
"maxValueSize": 0,
40+
"minFeeRefScriptCostPerByte": 0,
41+
"minPoolCost": 0,
42+
"monetaryExpansion": 0,
43+
"poolPledgeInfluence": 0,
44+
"poolRetireMaxEpoch": 0,
45+
"poolVotingThresholds": {
46+
"committeeNoConfidence": 0,
47+
"committeeNormal": 0,
48+
"hardForkInitiation": 0,
49+
"motionNoConfidence": 0,
50+
"ppSecurityGroup": 0
51+
},
52+
"protocolVersion": {
53+
"major": 9,
54+
"minor": 0
55+
},
56+
"stakeAddressDeposit": 0,
57+
"stakePoolDeposit": 0,
58+
"stakePoolTargetNum": 100,
59+
"treasuryCut": 0,
60+
"txFeeFixed": 0,
61+
"txFeePerByte": 0,
62+
"utxoCostPerByte": 0
63+
},
64+
{
65+
"collateralPercentage": 150,
66+
"committeeMaxTermLength": 0,
67+
"committeeMinSize": 0,
68+
"costModels": {},
69+
"dRepActivity": 0,
70+
"dRepDeposit": 0,
71+
"dRepVotingThresholds": {
72+
"committeeNoConfidence": 0,
73+
"committeeNormal": 0,
74+
"hardForkInitiation": 0,
75+
"motionNoConfidence": 0,
76+
"ppEconomicGroup": 0,
77+
"ppGovGroup": 0,
78+
"ppNetworkGroup": 0,
79+
"ppTechnicalGroup": 0,
80+
"treasuryWithdrawal": 0,
81+
"updateToConstitution": 0
82+
},
83+
"executionUnitPrices": {
84+
"priceMemory": 0,
85+
"priceSteps": 0
86+
},
87+
"govActionDeposit": 0,
88+
"govActionLifetime": 0,
89+
"maxBlockBodySize": 90112,
90+
"maxBlockExecutionUnits": {
91+
"memory": 0,
92+
"steps": 0
93+
},
94+
"maxBlockHeaderSize": 1100,
95+
"maxCollateralInputs": 5,
96+
"maxTxExecutionUnits": {
97+
"memory": 0,
98+
"steps": 0
99+
},
100+
"maxTxSize": 16384,
101+
"maxValueSize": 0,
102+
"minFeeRefScriptCostPerByte": 0,
103+
"minPoolCost": 340000000,
104+
"monetaryExpansion": 0,
105+
"poolPledgeInfluence": 0,
106+
"poolRetireMaxEpoch": 18,
107+
"poolVotingThresholds": {
108+
"committeeNoConfidence": 0,
109+
"committeeNormal": 0,
110+
"hardForkInitiation": 0,
111+
"motionNoConfidence": 0,
112+
"ppSecurityGroup": 0
113+
},
114+
"protocolVersion": {
115+
"major": 9,
116+
"minor": 0
117+
},
118+
"stakeAddressDeposit": 2000000,
119+
"stakePoolDeposit": 500000000,
120+
"stakePoolTargetNum": 500,
121+
"treasuryCut": 0,
122+
"txFeeFixed": 0,
123+
"txFeePerByte": 0,
124+
"utxoCostPerByte": 0
125+
}
126+
]
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
[
2+
null,
3+
{
4+
"collateralPercentage": 150,
5+
"committeeMaxTermLength": 0,
6+
"committeeMinSize": 0,
7+
"costModels": {},
8+
"dRepActivity": 0,
9+
"dRepDeposit": 0,
10+
"dRepVotingThresholds": {
11+
"committeeNoConfidence": 0,
12+
"committeeNormal": 0,
13+
"hardForkInitiation": 0,
14+
"motionNoConfidence": 0,
15+
"ppEconomicGroup": 0,
16+
"ppGovGroup": 0,
17+
"ppNetworkGroup": 0,
18+
"ppTechnicalGroup": 0,
19+
"treasuryWithdrawal": 0,
20+
"updateToConstitution": 0
21+
},
22+
"executionUnitPrices": {
23+
"priceMemory": 0,
24+
"priceSteps": 0
25+
},
26+
"govActionDeposit": 0,
27+
"govActionLifetime": 0,
28+
"maxBlockBodySize": 0,
29+
"maxBlockExecutionUnits": {
30+
"memory": 0,
31+
"steps": 0
32+
},
33+
"maxBlockHeaderSize": 0,
34+
"maxCollateralInputs": 5,
35+
"maxTxExecutionUnits": {
36+
"memory": 0,
37+
"steps": 0
38+
},
39+
"maxTxSize": 2048,
40+
"maxValueSize": 0,
41+
"minFeeRefScriptCostPerByte": 0,
42+
"minPoolCost": 0,
43+
"monetaryExpansion": 0,
44+
"poolPledgeInfluence": 0,
45+
"poolRetireMaxEpoch": 0,
46+
"poolVotingThresholds": {
47+
"committeeNoConfidence": 0,
48+
"committeeNormal": 0,
49+
"hardForkInitiation": 0,
50+
"motionNoConfidence": 0,
51+
"ppSecurityGroup": 0
52+
},
53+
"protocolVersion": {
54+
"major": 9,
55+
"minor": 0
56+
},
57+
"stakeAddressDeposit": 0,
58+
"stakePoolDeposit": 0,
59+
"stakePoolTargetNum": 100,
60+
"treasuryCut": 0,
61+
"txFeeFixed": 0,
62+
"txFeePerByte": 0,
63+
"utxoCostPerByte": 0
64+
},
65+
{
66+
"collateralPercentage": 150,
67+
"committeeMaxTermLength": 0,
68+
"committeeMinSize": 0,
69+
"costModels": {},
70+
"dRepActivity": 0,
71+
"dRepDeposit": 0,
72+
"dRepVotingThresholds": {
73+
"committeeNoConfidence": 0,
74+
"committeeNormal": 0,
75+
"hardForkInitiation": 0,
76+
"motionNoConfidence": 0,
77+
"ppEconomicGroup": 0,
78+
"ppGovGroup": 0,
79+
"ppNetworkGroup": 0,
80+
"ppTechnicalGroup": 0,
81+
"treasuryWithdrawal": 0,
82+
"updateToConstitution": 0
83+
},
84+
"executionUnitPrices": {
85+
"priceMemory": 0,
86+
"priceSteps": 0
87+
},
88+
"govActionDeposit": 0,
89+
"govActionLifetime": 0,
90+
"maxBlockBodySize": 90112,
91+
"maxBlockExecutionUnits": {
92+
"memory": 0,
93+
"steps": 0
94+
},
95+
"maxBlockHeaderSize": 1100,
96+
"maxCollateralInputs": 5,
97+
"maxTxExecutionUnits": {
98+
"memory": 0,
99+
"steps": 0
100+
},
101+
"maxTxSize": 16384,
102+
"maxValueSize": 0,
103+
"minFeeRefScriptCostPerByte": 0,
104+
"minPoolCost": 340000000,
105+
"monetaryExpansion": 0,
106+
"poolPledgeInfluence": 0,
107+
"poolRetireMaxEpoch": 18,
108+
"poolVotingThresholds": {
109+
"committeeNoConfidence": 0,
110+
"committeeNormal": 0,
111+
"hardForkInitiation": 0,
112+
"motionNoConfidence": 0,
113+
"ppSecurityGroup": 0
114+
},
115+
"protocolVersion": {
116+
"major": 9,
117+
"minor": 0
118+
},
119+
"stakeAddressDeposit": 2000000,
120+
"stakePoolDeposit": 500000000,
121+
"stakePoolTargetNum": 500,
122+
"treasuryCut": 0,
123+
"txFeeFixed": 0,
124+
"txFeePerByte": 0,
125+
"utxoCostPerByte": 0
126+
}
127+
]
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)