Documentation ¶
Index ¶
- type BlockBatch
- type Event
- type EventCriteria
- type EventFilter
- type LogDB
- func (db *LogDB) Close()
- func (db *LogDB) FilterEvents(ctx context.Context, filter *EventFilter) ([]*Event, error)
- func (db *LogDB) FilterTransfers(ctx context.Context, filter *TransferFilter) ([]*Transfer, error)
- func (db *LogDB) Path() string
- func (db *LogDB) Prepare(header *block.Header) *BlockBatch
- type Options
- type Order
- type Range
- type RangeType
- type Transfer
- type TransferCriteria
- type TransferFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockBatch ¶
type BlockBatch struct {
// contains filtered or unexported fields
}
func (*BlockBatch) ForTransaction ¶
func (bb *BlockBatch) ForTransaction(txID thor.Bytes32, txOrigin thor.Address) struct { Insert func(tx.Events, tx.Transfers) *BlockBatch }
type Event ¶
type Event struct { BlockID thor.Bytes32 Index uint32 BlockNumber uint32 BlockTime uint64 TxID thor.Bytes32 TxOrigin thor.Address //contract caller Address thor.Address // always a contract address Topics [5]*thor.Bytes32 Data []byte }
Event represents tx.Event that can be stored in db.
type EventCriteria ¶ added in v1.0.3
type EventFilter ¶
type EventFilter struct { CriteriaSet []*EventCriteria Range *Range Options *Options Order Order //default asc }
EventFilter filter
type LogDB ¶
type LogDB struct {
// contains filtered or unexported fields
}
func (*LogDB) FilterEvents ¶
func (*LogDB) FilterTransfers ¶
type Transfer ¶
type Transfer struct { BlockID thor.Bytes32 Index uint32 BlockNumber uint32 BlockTime uint64 TxID thor.Bytes32 TxOrigin thor.Address Sender thor.Address Recipient thor.Address Amount *big.Int }
Transfer represents tx.Transfer that can be stored in db.
type TransferCriteria ¶ added in v1.0.3
type TransferFilter ¶
Click to show internal directories.
Click to hide internal directories.