plutus-chain-index-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.ChainIndex.Tx

Contents

Description

The chain index' version of a transaction

Synopsis

Documentation

data ChainIndexTx Source #

Constructors

ChainIndexTx 

Fields

Instances

Instances details
Eq ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Show ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Generic ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Associated Types

type Rep ChainIndexTx :: Type -> Type Source #

ToJSON ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

FromJSON ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

ToSchema ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Serialise ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Pretty ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

HasDbType ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.DbSchema

Associated Types

type DbType ChainIndexTx Source #

type Rep ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

type DbType ChainIndexTx Source # 
Instance details

Defined in Plutus.ChainIndex.DbSchema

data ChainIndexTxOutputs Source #

List of outputs of a transaction. There are no outputs if the transaction is invalid.

Constructors

InvalidTx

The transaction is invalid so there is no outputs

ValidTx [TxOut] 

Instances

Instances details
Eq ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Show ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Generic ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Associated Types

type Rep ChainIndexTxOutputs :: Type -> Type Source #

ToJSON ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

FromJSON ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

ToSchema ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

Serialise ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

type Rep ChainIndexTxOutputs Source # 
Instance details

Defined in Plutus.ChainIndex.Tx

type Rep ChainIndexTxOutputs = D1 ('MetaData "ChainIndexTxOutputs" "Plutus.ChainIndex.Tx" "plutus-chain-index-core-0.1.0.0-EG2fOrGca5623jCDzCiAyI" 'False) (C1 ('MetaCons "InvalidTx" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ValidTx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TxOut])))

fromOnChainTx :: OnChainTx -> ChainIndexTx Source #

Convert a OnChainTx to a ChainIndexTx. An invalid OnChainTx will not produce any ChainIndexTx outputs and the collateral inputs of the OnChainTx will be the inputs of the ChainIndexTx.

txOutRefs :: ChainIndexTx -> [TxOutRef] Source #

Get tx output references from tx.

txOutsWithRef :: ChainIndexTx -> [(TxOut, TxOutRef)] Source #

Get tx output references and tx outputs from tx.

txOutRefMap :: ChainIndexTx -> Map TxOutRef (TxOut, ChainIndexTx) Source #

Get Map of tx outputs references to tx.

txOutRefMapForAddr :: Address -> ChainIndexTx -> Map TxOutRef (TxOut, ChainIndexTx) Source #

Get Map of tx outputs from tx for a specific address.

Lenses