Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cooked.Skeleton
Description
This module provides the description of a transaction skeleton. We have our own representation of a transaction for three main reasons:
- our transaction skeletons are typed (datums, validators, outputs...)
- with our own wrapper, we are less affected by plutus updates
- we can have default or automated behavior for the parts of the transactions that are less relevant to testing, such as collaterals or fees
Synopsis
- module Cooked.Skeleton.Withdrawal
- module Cooked.Skeleton.Value
- module Cooked.Skeleton.Redeemer
- module Cooked.Skeleton.Proposal
- module Cooked.Skeleton.Payable
- module Cooked.Skeleton.Output
- module Cooked.Skeleton.Option
- module Cooked.Skeleton.Mint
- module Cooked.Skeleton.Label
- module Cooked.Skeleton.Datum
- data TxSkel where
- txSkelLabelL :: Lens' TxSkel (Set TxLabel)
- txSkelOptsL :: Lens' TxSkel TxOpts
- txSkelMintsL :: Lens' TxSkel TxSkelMints
- txSkelValidityRangeL :: Lens' TxSkel SlotRange
- txSkelProposalsL :: Lens' TxSkel [TxSkelProposal]
- txSkelSignersL :: Lens' TxSkel [Wallet]
- txSkelInsL :: Lens' TxSkel (Map TxOutRef TxSkelRedeemer)
- txSkelInsReferenceL :: Lens' TxSkel (Set TxOutRef)
- txSkelOutsL :: Lens' TxSkel [TxSkelOut]
- txSkelWithdrawalsL :: Lens' TxSkel TxSkelWithdrawals
- txSkelTemplate :: TxSkel
- txSkelDataInOutputs :: TxSkel -> [(DatumHash, TxSkelOutDatum)]
- txSkelValidatorsInOutputs :: TxSkel -> Map ValidatorHash (Versioned Validator)
- txSkelKnownTxOutRefs :: TxSkel -> [TxOutRef]
- txSkelWithdrawnValue :: TxSkel -> Value
- txSkelWithdrawalsScripts :: TxSkel -> [Versioned Script]
- txSkelValueInOutputs :: TxSkel -> Value
- txSkelReferenceScripts :: TxSkel -> Map ValidatorHash (Versioned Validator)
- txSkelReferenceTxOutRefs :: TxSkel -> [TxOutRef]
Documentation
module Cooked.Skeleton.Withdrawal
module Cooked.Skeleton.Value
module Cooked.Skeleton.Redeemer
module Cooked.Skeleton.Proposal
module Cooked.Skeleton.Payable
module Cooked.Skeleton.Output
module Cooked.Skeleton.Option
module Cooked.Skeleton.Mint
module Cooked.Skeleton.Label
module Cooked.Skeleton.Datum
Constructors
TxSkel | |
Fields
|
txSkelTemplate :: TxSkel Source #
A convenience template of an empty transaction skeleton.
txSkelDataInOutputs :: TxSkel -> [(DatumHash, TxSkelOutDatum)] Source #
Return all data on transaction outputs. This can contain duplicates, which is intended.
txSkelValidatorsInOutputs :: TxSkel -> Map ValidatorHash (Versioned Validator) Source #
All validators which will receive transaction outputs
txSkelKnownTxOutRefs :: TxSkel -> [TxOutRef] Source #
All TxOutRefs
known by a given transaction skeleton. This includes
TxOutRef`s used as inputs of the skeleton and TxOutRef
s used as reference
inputs of the skeleton. This does not include additional possible
TxOutRef
s used for balancing and additional TxOutRef
s used as collateral
inputs, as they are not part of the skeleton.
txSkelWithdrawnValue :: TxSkel -> Value Source #
txSkelValueInOutputs :: TxSkel -> Value Source #
Returns the full value contained in the skeleton outputs
txSkelReferenceScripts :: TxSkel -> Map ValidatorHash (Versioned Validator) Source #
All validators in the reference script field of transaction outputs
txSkelReferenceTxOutRefs :: TxSkel -> [TxOutRef] Source #
All TxOutRefs
in reference inputs