Open catch-21 opened 1 year ago
Add a new test that checks each registration certificate in PlutusV3's TxInfo.
ScriptPurpose
txInfoProposalProcedures
ppDeposit
ppAnchor
ppReturnAddr
NewConstitution
GovernanceAction
constitutionHash
constitutionScript
Just ScriptHash
Nothing
Voting
txInfoVotingProcedures
GovernanceActionId
VotingProcedure
gaidTxId
gaidGovActionIx
vpAnchor
Just Anchor
VoteNo
VoteYes
Abstain
Add a new test that checks each registration certificate in PlutusV3's TxInfo.
[ ] (optional) Query constitution and confirm anchor and hash match conway genesis
ScriptPurpose
is Proposing (only for Constitution?)txInfoProposalProcedures
for correctppDeposit
,ppAnchor
,ppReturnAddr
andNewConstitution
GovernanceAction
for:constitutionHash
[ ] Check
constitutionScript
isJust ScriptHash
[ ] Check
constitutionScript
isNothing
[ ] Submit one of the above txs to allow for voting to take place
ScriptPurpose
isVoting
txInfoVotingProcedures
for correct mapping of Voter credentials toGovernanceActionId
andVotingProcedure
for each voterGovernanceActionId
’sgaidTxId
andgaidGovActionIx
VotingProcedure
withvpAnchor
isNothing
VotingProcedure
withvpAnchor
isJust Anchor
VotingProcedure
withVoteNo
VotingProcedure
withVoteYes
[ ] Check
VotingProcedure
withAbstain
[ ] Submit voting tx and prove mint with onchain verification.