IntersectMBO / IntersectMBO/antaeus
Test PlutusV3's txInfoProposalProcedures and txInfoVotingProcedures for NewConstitution
- Dominant language
- Haskell
- Stars
- 10
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Add a new test that checks each registration certificate in PlutusV3's TxInfo.
1. - [ ] (optional) Query constitution and confirm anchor and hash match conway genesis
-----
2. - [ ] 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`
-----
3. - [ ] Build tx with initial constitution proposal without proposal policy
- [ ] Check `constitutionScript` is `Nothing`
-----
4. - [ ] Submit one of the above txs to allow for voting to take place
-----
5. - [ ] 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`
-----
6. - [ ] Submit voting tx and prove mint with onchain verification.
-----
7. - [ ] (optional) Wait for next epoch and query for new constitution
Contributor guide
Assessment
This issue has not been assessed yet.