cardano-ledger-core-1.17.0.0: Core components of Cardano ledgers from the Shelley release on.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Plutus.TxInfo

Synopsis

Documentation

data TxOutSource Source #

A transaction output can be translated because it is a newly created output, or because it is the output which is connected to a transaction input being spent.

Instances

Instances details
ToJSON TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

Generic TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

Associated Types

type Rep TxOutSourceTypeType Source #

Show TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

DecCBOR TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

EncCBOR TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

Methods

encCBORTxOutSourceEncoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy TxOutSourceSize Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [TxOutSource] → Size Source #

NFData TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

Methods

rnfTxOutSource → () Source #

Eq TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

NoThunks TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

type Rep TxOutSource Source # 
Instance details

Defined in Cardano.Ledger.Plutus.TxInfo

type Rep TxOutSource = D1 ('MetaData "TxOutSource" "Cardano.Ledger.Plutus.TxInfo" "cardano-ledger-core-1.17.0.0-inplace" 'False) (C1 ('MetaCons "TxOutFromInput" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxIn)) :+: C1 ('MetaCons "TxOutFromOutput" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxIx)))

transAddrAddrMaybe Address Source #

Translate an address. NetworkId is discarded and Byron Addresses will result in Nothing.

transRewardAccountRewardAccountCredential Source #

Translate reward account by discarding NetowrkId and only translating the staking credential.

Note - This function is the right one to use starting with PlutusV3, prior to that an extra StakingHash wrapper is needed.