WIP Stake policy
This commit is contained in:
parent
01ee791f77
commit
1fcb62d7a8
6 changed files with 108 additions and 8 deletions
|
|
@ -37,9 +37,9 @@ newtype AuthorityToken = AuthorityToken
|
|||
|
||||
authorityTokenPolicy ::
|
||||
AuthorityToken ->
|
||||
Term s (PData :--> PData :--> PScriptContext :--> PUnit)
|
||||
Term s (PData :--> PScriptContext :--> PUnit)
|
||||
authorityTokenPolicy params =
|
||||
plam $ \_datum _redeemer ctx' ->
|
||||
plam $ \_redeemer ctx' ->
|
||||
pmatch ctx' $ \(PScriptContext ctx) ->
|
||||
let txInfo' = pfromData $ pfield @"txInfo" # ctx
|
||||
purpose' = pfromData $ pfield @"purpose" # ctx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue