| Maintainer | jack@mlabs.city |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Agora.Treasury
Description
Contains the datum, redeemer and validator for a template DAO treasury.
Synopsis
- data TreasuryRedeemer = SpendTreasuryGAT
- newtype PTreasuryRedeemer (s :: S) = PSpendTreasuryGAT (Term s (PDataRecord '[]))
- treasuryValidator :: CurrencySymbol -> ClosedTerm PValidator
Documentation
data TreasuryRedeemer Source #
Redeemer for Treasury actions.
Since: 0.1.0
Constructors
| SpendTreasuryGAT | Allow transaction to pass by delegating to GAT burn. |
Instances
newtype PTreasuryRedeemer (s :: S) Source #
Plutarch level type representing valid redeemers of the treasury.
Since: 0.1.0
Constructors
| PSpendTreasuryGAT (Term s (PDataRecord '[])) | Alters treasury parameters, subject to the burning of a governance authority token. |
Instances
Arguments
| :: CurrencySymbol | Governance Authority Token that can unlock this validator. |
| -> ClosedTerm PValidator |
Validator ensuring that transactions consuming the treasury do so in a valid manner.
Since: 0.1.0