Documentation ¶
Overview ¶
Package meta provides helpers for processing the metadata that is produced by paydex-core while processing transactions.
Index ¶
- Variables
- type Bundle
- func (b *Bundle) Changes(target xdr.LedgerKey) (ret []xdr.LedgerEntryChange)
- func (b *Bundle) InitialState(key xdr.LedgerKey) (*xdr.LedgerEntry, error)
- func (b *Bundle) OperationsMetas() []xdr.OperationMeta
- func (b *Bundle) StateAfter(key xdr.LedgerKey, opidx int) (*xdr.LedgerEntry, error)
- func (b *Bundle) StateBefore(key xdr.LedgerKey, opidx int) (*xdr.LedgerEntry, error)
Constants ¶
This section is empty.
Variables ¶
var ErrMetaNotFound = errors.New("meta: no changes found")
ErrMetaNotFound is returned when no meta that matches a provided filter can be found.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct { FeeMeta xdr.LedgerEntryChanges TransactionMeta xdr.TransactionMeta }
Bundle represents all of the metadata emitted from the application of a single paydex transaction; Both fee meta and result meta is included.
func (*Bundle) Changes ¶
func (b *Bundle) Changes(target xdr.LedgerKey) (ret []xdr.LedgerEntryChange)
Changes returns any changes within the bundle that apply to the entry identified by `key`.
func (*Bundle) InitialState ¶
InitialState returns the initial state of the LedgerEntry identified by `key` just prior to the application of the transaction the produced `b`. Returns nil if the ledger entry did not exist prior to the bundle.
func (*Bundle) OperationsMetas ¶
func (b *Bundle) OperationsMetas() []xdr.OperationMeta
OperationMetas retrieves all operation metas from a transaction bundle
func (*Bundle) StateAfter ¶
StateAfter returns the state of entry `key` after the application of the operation at `opidx`
func (*Bundle) StateBefore ¶
StateBefore returns the state of entry `key` just prior to the application of the operation at `opidx`