cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2022 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.DB.Store.Transactions.Model

Description

Data type TxHistory for storing a set of transactions. Transactions are encoded "as" expressed in DB tables.

Synopsis

Documentation

data DeltaTxHistory Source #

Verbs to change a TxHistory .

Constructors

Append TxHistory

Add new set of transactions. Overwrites transactions whose id is already present in the TxHistory .

DeleteTx TxId

Try to remove the transaction at the given transaction id.

Instances

Instances details
Eq DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Show DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Generic DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Buildable DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Delta DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

type Rep DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

type Base DeltaTxHistory Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

type TxHistory = TxHistoryF ' Without Source #

Shortcut type for transaction history where inputs are not decorated with their corresponding TxOut .

newtype TxHistoryF f Source #

Transactions history is TxRelationF s indexed by TxId

Instances

Instances details
( Eq (DecorateWithTxOut f TxIn ), Eq (DecorateWithTxOut f TxCollateral )) => Eq ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

( Show (DecorateWithTxOut f TxIn ), Show (DecorateWithTxOut f TxCollateral )) => Show ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Generic ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Associated Types

type Rep ( TxHistoryF f) :: Type -> Type Source #

Semigroup ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

Monoid ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

( Show (DecorateWithTxOut f TxIn ), Show (DecorateWithTxOut f TxCollateral )) => Buildable ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

type Rep ( TxHistoryF f) Source #
Instance details

Defined in Cardano.Wallet.DB.Store.Transactions.Model

type Rep ( TxHistoryF f) = D1 (' MetaData "TxHistoryF" "Cardano.Wallet.DB.Store.Transactions.Model" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "TxHistoryF" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "relations") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Map TxId ( TxRelationF f)))))

data TxRelationF (f :: Decoration ) Source #

A low level definition of a transaction covering all transaction content by collecting all related-to-index database rows. Normalization is performed anyway after the first relation level. All values used here are records in the database. Foreign keys are used to group data correctly, but they are not removed from the data.

mkTxHistory :: [ Tx ] -> TxHistory Source #

Convert high level transactions definition in low level DB history

data Decoration Source #

A kind to index the 2 flavours of a TxRelationF , with or without TxOuts

Constructors

Without
With

data WithTxOut txin Source #

A context that carries a TxOut together with its tokens (this will be needed in the future for the DB Layer to reconstruct TransactionInfo ).

Constructors

WithTxOut

mkTxOut Source #

Arguments

:: TxId
-> ( Word32 , TxOut )

(index, txout)

-> ( TxOut , [ TxOutToken ])