Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test PlutusV3's txInfoProposalProcedures and txInfoVotingProcedures for NewConstitution #47

Open
20 tasks
catch-21 opened this issue Nov 3, 2023 · 0 comments

Comments

@catch-21
Copy link
Contributor

catch-21 commented Nov 3, 2023

Add a new test that checks each registration certificate in PlutusV3's TxInfo.

    • (optional) Query constitution and confirm anchor and hash match conway genesis

    • Build tx with initial constitution proposal with proposal policy
      • Check ScriptPurpose is Proposing (only for Constitution?)
      • Check txInfoProposalProcedures for correct ppDeposit, ppAnchor, ppReturnAddr and NewConstitution GovernanceAction for:
        • Blake2b_256 constitutionHash
        • Check constitutionScript is Just ScriptHash

    • Build tx with initial constitution proposal without proposal policy
      • Check constitutionScript is Nothing

    • Submit one of the above txs to allow for voting to take place

    • Build tx with a mix of Yes, No, Abstain votes as CC, DRep and SPO
      • Check ScriptPurpose is Voting
      • Check txInfoVotingProcedures for correct mapping of Voter credentials to GovernanceActionId and VotingProcedure for each voter
      • Check GovernanceActionId’s gaidTxId and gaidGovActionIx
      • Check VotingProcedure with vpAnchor is Nothing
      • Check VotingProcedure with vpAnchor is Just Anchor
      • Check VotingProcedure with VoteNo
      • Check VotingProcedure with VoteYes
      • Check VotingProcedure with Abstain

    • Submit voting tx and prove mint with onchain verification.

    • (optional) Wait for next epoch and query for new constitution
@catch-21 catch-21 changed the title Test txInfoProposalProcedures NewConstitution (constitution update) Test txInfoProposalProcedures NewConstitution Nov 3, 2023
@catch-21 catch-21 changed the title Test txInfoProposalProcedures NewConstitution Test txInfoProposalProcedures and txInfoVotingProcedures for NewConstitution Nov 3, 2023
@catch-21 catch-21 changed the title Test txInfoProposalProcedures and txInfoVotingProcedures for NewConstitution Test PlutusV3's txInfoProposalProcedures and txInfoVotingProcedures for NewConstitution Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant