Copyright | © 2018-2022 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Pure, low level model for a collection of "meta transactions",
i.e. additional data (
TxMeta
) that the wallet stores for each transaction.
Meta transactions are encoded "as" expressed in DB tables.
Synopsis
- data DeltaTxMetaHistory
- data ManipulateTxMetaHistory
- newtype TxMetaHistory = TxMetaHistory { }
- mkTxMetaHistory :: WalletId -> [( Tx , TxMeta )] -> TxMetaHistory
Documentation
data DeltaTxMetaHistory Source #
All meta-transactions changes, including the addition of new meta-transactions, which has to be done in sync with the transactions store.
Instances
Eq DeltaTxMetaHistory Source # | |
Defined in Cardano.Wallet.DB.Store.Meta.Model (==) :: DeltaTxMetaHistory -> DeltaTxMetaHistory -> Bool Source # (/=) :: DeltaTxMetaHistory -> DeltaTxMetaHistory -> Bool Source # |
|
Show DeltaTxMetaHistory Source # | |
Defined in Cardano.Wallet.DB.Store.Meta.Model |
|
Buildable DeltaTxMetaHistory Source # | |
Defined in Cardano.Wallet.DB.Store.Meta.Model build :: DeltaTxMetaHistory -> Builder Source # |
|
Delta DeltaTxMetaHistory Source # | |
Defined in Cardano.Wallet.DB.Store.Meta.Model type Base DeltaTxMetaHistory Source # |
|
type Base DeltaTxMetaHistory Source # | |
Defined in Cardano.Wallet.DB.Store.Meta.Model |
data ManipulateTxMetaHistory Source #
Verbs for
TxMeta
changes
that can be issued independently from the transaction store.
PruneTxMetaHistory TxId |
Remove a meta if it is not in the ledger. |
AgeTxMetaHistory SlotNo |
Change the state of any meta to
|
RollBackTxMetaHistory SlotNo |
Remove all incoming transactions created after the given slot and
mark all outgoing transactions after the given slot as
|
Instances
newtype TxMetaHistory Source #
A collection of
TxMeta
, indexed by transaction identifier.
Instances
mkTxMetaHistory :: WalletId -> [( Tx , TxMeta )] -> TxMetaHistory Source #
Compute a
TxMetaHistory
for a wallet.