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 txInfoTxCert #46

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

Test PlutusV3's txInfoTxCert #46

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

Comments

@catch-21
Copy link
Contributor

catch-21 commented Nov 3, 2023

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.

    • Build tx to register staking credential (low priority)
      • Check ScriptPurpose is Certifying
      • Check TxCertRegStaking

    • Build tx to delegate staking credential to SPO (low priority)
      • Check ScriptPurpose is Certifying
      • Check TxCertDelegStaking with DelegStake PubKeyHash

    • Build tx to register staking credential whilst delegating to SPO (low priority)
      • Check ScriptPurpose is Certifying
      • Check TxCertRegDeleg with DelegStake PubKeyHash

    • 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

    • Build a tx to register DRep without an anchor
      • Check TxCertRegDRep with Nothing

    • Build tx to update DRep anchor to some other value
      • Check ScriptPurpose is Certifying
      • Check TxCertUpdateDRep with Just Anchor

    • Build tx to update DRep anchor to have no value
      • Check TxCertUpdateDRep with Nothing

    • Build tx to authorise hot credential for committee member’s cold credential
      • Check ScriptPurpose is Certifying
      • Check TxCertAuthHotCommittee

    • Build tx to authorise hot credential for committee member’s cold credential
      • Check ScriptPurpose is Certifying
      • Check TxCertResignColdCommittee

    • Build tx to delegate staking credential to DRep
      • Check ScriptPurpose is Certifying
      • Check TxCertDelegStaking with DelegVote DRep

    • Build tx to register staking credential whilst delegating to DRep
      • Check ScriptPurpose is Certifying
      • Check TxCertRegDeleg with DelegVote DRep

    • Try some combination of the above and confirm that txInfoTxCert correctly contains multiple TxCert

    • After all tests, build tx to unregister DRep
      • Check ScriptPurpose is Certifying
      • Check TxCertUnRegDRep with refund value

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