Add the effect validator to the API
This commit is contained in:
parent
95c376d4bc
commit
ba6d8ad229
3 changed files with 10 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ builders =
|
|||
& insertBuilder
|
||||
"neverSucceedsValidator"
|
||||
(\() -> mkValidatorInfo $ plam $ \_ _ _ -> perror)
|
||||
-- Provided Effect scripts
|
||||
& insertBuilder "treasuryWithdrawalEffect" ((.treasuryWithdrawalEffectInfo) . agoraScripts)
|
||||
|
||||
{- | Create scripts from params.
|
||||
|
||||
|
|
@ -87,6 +89,7 @@ agoraScripts params =
|
|||
, proposalValidatorInfo = mkValidatorInfo' scripts.compiledProposalValidator
|
||||
, treasuryValidatorInfo = mkValidatorInfo' scripts.compiledTreasuryValidator
|
||||
, authorityTokenPolicyInfo = mkPolicyInfo' scripts.compiledAuthorityTokenPolicy
|
||||
, treasuryWithdrawalEffectInfo = mkValidatorInfo' scripts.compiledTreasuryWithdrawalEffect
|
||||
}
|
||||
where
|
||||
governor =
|
||||
|
|
@ -126,6 +129,7 @@ data AgoraScripts = AgoraScripts
|
|||
, proposalValidatorInfo :: ScriptInfo
|
||||
, treasuryValidatorInfo :: ScriptInfo
|
||||
, authorityTokenPolicyInfo :: ScriptInfo
|
||||
, treasuryWithdrawalEffectInfo :: ScriptInfo
|
||||
}
|
||||
deriving anyclass
|
||||
( -- | @since 0.2.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue