cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.Skeleton.Withdrawal

Description

This module exposes the notion of Withdrawal within a TxSkel

Synopsis

Documentation

type TxSkelWithdrawals = Map (Either (Versioned Script) PubKeyHash) (TxSkelRedeemer, Lovelace) Source #

Withdrawals associate either a script or a private key with a redeemer and a certain amount of ada. Note that the redeemer will be ignored in the case of a private key.

pkWithdrawal :: ToPubKeyHash pkh => pkh -> Lovelace -> TxSkelWithdrawals Source #

Creates a TxSkelWithdrawals from a private key hash and amount

scriptWithdrawal :: ToVersioned Script script => script -> TxSkelRedeemer -> Lovelace -> TxSkelWithdrawals Source #

Creates a TxSkelWithdrawals from a script, redeemer and amount