Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Direction ¶
type Direction uint8
Direction is an enum which tells us whether a transaction is incoming or outgoing.
type TxMeta ¶ added in v0.4.0
TxMeta is a convenience structure which groups fields common to the TxView and the TxRecord.
type TxRecord ¶
type TxRecord struct { TxMeta Transaction transactions.ContractCall }
TxRecord encapsulates the data stored on the DB related to a transaction such as block height, direction, etc. The fields related to the ContractCall are embedded inside the Transaction carrying the information about the `Fee` (gas) and the `Amount` (which can be zero for smart contract calls not related to transfer o value).
func New ¶
func New(call transactions.ContractCall, height uint64, direction Direction) *TxRecord
New creates a TxRecord.
Click to show internal directories.
Click to hide internal directories.