IntersectMBO / IntersectMBO/antaeus

Test PlutusV3's txInfoTxCert

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
10
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Before all other tests, run a test that checks each registration certificate in PlutusV3's TxInfo and leaves at least two SPOs and DReps registered for voting in subsequent tests.

1. - [ ] Build tx to register staking credential (low priority)
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertRegStaking`
-----
2. - [ ] Build tx to delegate staking credential to SPO (low priority)
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertDelegStaking` with `DelegStake PubKeyHash`
-----
3. - [ ] Build tx to register staking credential whilst delegating to SPO (low priority)
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertRegDeleg` with `DelegStake PubKeyHash`
-----
4. - [ ] Build a tx to register DRep with an anchor
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertRegDRep` with `Just Anchor`
- [ ] Submit tx so that at least one DRep is registered for subsequent tests
-----
5. - [ ] Build a tx to register DRep without an anchor
- [ ] Check `TxCertRegDRep` with `Nothing`
-----
6. - [ ] Build tx to update DRep anchor to some other value
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertUpdateDRep` with `Just Anchor`
-----
7. - [ ] Build tx to update DRep anchor to have no value
- [ ] Check `TxCertUpdateDRep` with `Nothing`
-----
8. - [ ] Build tx to authorise hot credential for committee member’s cold credential
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertAuthHotCommittee`
-----
9. - [ ] Build tx to authorise hot credential for committee member’s cold credential
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertResignColdCommittee`
-----
10. - [ ] Build tx to delegate staking credential to DRep
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertDelegStaking` with `DelegVote DRep`
-----
11. - [ ] Build tx to register staking credential whilst delegating to DRep
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertRegDeleg` with `DelegVote DRep`
-----
12. - [ ] Try some combination of the above and confirm that `txInfoTxCert` correctly contains multiple `TxCert`
-----
13. - [ ] After all tests, build tx to unregister DRep
- [ ] Check `ScriptPurpose` is `Certifying`
- [ ] Check `TxCertUnRegDRep` with refund value
-----

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.