Skip to content

Commit f8cb3c3

Browse files
authored
Features/npg 1939 explorer vote certificates test (#4070)
* adding vote plan certificate test * adding explorer_vote_cast test * adding explorer update proposal test * refactoring certificates test * adding configParams to explorer query * fix transaction certificates query * increasing query complexity limit * adding update proposal verifier draft * fix fmt * finishing and cleaning up explorer verifier * fixing asserts for update_proposal * adding explorer_update_proposal test * adding bug id to update_poposal test * fmt
1 parent 5f51deb commit f8cb3c3

File tree

4 files changed

+994
-33
lines changed

4 files changed

+994
-33
lines changed

testing/jormungandr-automation/resources/explorer/graphql/transaction_by_id_certificates.graphql

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ query TransactionByIdCertificates($id: String!){
2929
}
3030
... on VoteCast {votePlan proposalIndex}
3131
... on VoteTally {votePlan}
32-
... on UpdateProposal {changes {...configParams}
32+
... on UpdateProposal {changes { configParams {...configParam}}
3333
proposerId{id}
3434
}
3535
... on UpdateVote{proposalId voterId{id}}
@@ -50,8 +50,82 @@ fragment blockDate on BlockDate{
5050
slot
5151
}
5252

53-
fragment configParams on ConfigParams
53+
fragment configParam on ConfigParam
5454
{
5555
__typename
56-
#Block0Date | Discrimination | ConsensusType | SlotsPerEpoch | SlotDuration | EpochStabilityDepth | Milli | BlockContentMaxSize | AddBftLeader | RemoveBftLeader | LinearFee | ProposalExpiration | KesUpdateSpeed | TreasuryAdd | TreasuryParams | RewardPot | RewardParams | PerCertificateFee | FeesInTreasury | RewardLimitNone | RewardLimitByAbsoluteStake | PoolRewardParticipationCapping | AddCommitteeId | RemoveCommitteeId | PerVoteCertificateFee | TransactionMaxExpiryEpochs
56+
... on Block0Date { block0Date }
57+
... on Discrimination { discrimination }
58+
... on ConsensusType { consensusType }
59+
... on SlotsPerEpoch { slotsPerEpoch }
60+
... on SlotDuration { slotDuration}
61+
... on EpochStabilityDepth { epochStabilityDepth }
62+
... on Milli { milli}
63+
... on BlockContentMaxSize { blockContentMaxSize}
64+
... on AddBftLeader { addBftLeader{ id }}
65+
... on RemoveBftLeader { removeBftLeader { id }}
66+
... on LinearFee {
67+
constant
68+
coefficient
69+
certificate
70+
perCertificateFees {
71+
certificatePoolRegistration
72+
certificateStakeDelegation
73+
certificateOwnerStakeDelegation
74+
}
75+
perVoteCertificateFees {
76+
certificateVotePlan
77+
certificateVoteCast
78+
}}
79+
... on ProposalExpiration{ proposalExpiration }
80+
... on KesUpdateSpeed { kesUpdateSpeed}
81+
... on TreasuryAdd { treasuryAdd }
82+
... on TreasuryParams { treasuryParams {
83+
fixed
84+
ratio {
85+
numerator
86+
denominator
87+
}
88+
maxLimit
89+
}}
90+
... on RewardPot { rewardPot }
91+
... on RewardParams { rewardParams {
92+
__typename
93+
... on LinearRewardParams{
94+
constant
95+
ratio {
96+
numerator
97+
denominator
98+
}
99+
epochStart
100+
epochRate
101+
}
102+
... on HalvingRewardParams {
103+
constant
104+
ratio {
105+
numerator
106+
denominator
107+
}
108+
epochStart
109+
epochRate
110+
}
111+
}}
112+
... on PerCertificateFee{
113+
certificatePoolRegistration
114+
certificateStakeDelegation
115+
certificateOwnerStakeDelegation
116+
}
117+
... on FeesInTreasury { feesInTreasury}
118+
... on RewardLimitNone { rewardLimitNone }
119+
... on RewardLimitByAbsoluteStake { rewardLimitByAbsoluteStake {
120+
numerator
121+
denominator
122+
}}
123+
... on PoolRewardParticipationCapping { min max }
124+
... on AddCommitteeId { addCommitteeId}
125+
... on RemoveCommitteeId { removeCommitteeId }
126+
... on PerVoteCertificateFee {
127+
certificateVotePlan
128+
certificateVoteCast
129+
}
130+
... on TransactionMaxExpiryEpochs { transactionMaxExpiryEpochs }
57131
}

0 commit comments

Comments
 (0)