Skip to content

Commit

Permalink
Features/npg 1939 explorer vote certificates test (#4070)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kukkok3 authored Aug 11, 2022
1 parent 5f51deb commit f8cb3c3
Show file tree
Hide file tree
Showing 4 changed files with 994 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ query TransactionByIdCertificates($id: String!){
}
... on VoteCast {votePlan proposalIndex}
... on VoteTally {votePlan}
... on UpdateProposal {changes {...configParams}
... on UpdateProposal {changes { configParams {...configParam}}
proposerId{id}
}
... on UpdateVote{proposalId voterId{id}}
Expand All @@ -50,8 +50,82 @@ fragment blockDate on BlockDate{
slot
}

fragment configParams on ConfigParams
fragment configParam on ConfigParam
{
__typename
#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
... on Block0Date { block0Date }
... on Discrimination { discrimination }
... on ConsensusType { consensusType }
... on SlotsPerEpoch { slotsPerEpoch }
... on SlotDuration { slotDuration}
... on EpochStabilityDepth { epochStabilityDepth }
... on Milli { milli}
... on BlockContentMaxSize { blockContentMaxSize}
... on AddBftLeader { addBftLeader{ id }}
... on RemoveBftLeader { removeBftLeader { id }}
... on LinearFee {
constant
coefficient
certificate
perCertificateFees {
certificatePoolRegistration
certificateStakeDelegation
certificateOwnerStakeDelegation
}
perVoteCertificateFees {
certificateVotePlan
certificateVoteCast
}}
... on ProposalExpiration{ proposalExpiration }
... on KesUpdateSpeed { kesUpdateSpeed}
... on TreasuryAdd { treasuryAdd }
... on TreasuryParams { treasuryParams {
fixed
ratio {
numerator
denominator
}
maxLimit
}}
... on RewardPot { rewardPot }
... on RewardParams { rewardParams {
__typename
... on LinearRewardParams{
constant
ratio {
numerator
denominator
}
epochStart
epochRate
}
... on HalvingRewardParams {
constant
ratio {
numerator
denominator
}
epochStart
epochRate
}
}}
... on PerCertificateFee{
certificatePoolRegistration
certificateStakeDelegation
certificateOwnerStakeDelegation
}
... on FeesInTreasury { feesInTreasury}
... on RewardLimitNone { rewardLimitNone }
... on RewardLimitByAbsoluteStake { rewardLimitByAbsoluteStake {
numerator
denominator
}}
... on PoolRewardParticipationCapping { min max }
... on AddCommitteeId { addCommitteeId}
... on RemoveCommitteeId { removeCommitteeId }
... on PerVoteCertificateFee {
certificateVotePlan
certificateVoteCast
}
... on TransactionMaxExpiryEpochs { transactionMaxExpiryEpochs }
}
Loading

0 comments on commit f8cb3c3

Please sign in to comment.