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) Commit ¶
func (bb *BlockBatch) Commit(abandonedBlocks ...powerplay.Bytes32) error
func (*BlockBatch) ForTransaction ¶
func (bb *BlockBatch) ForTransaction(txID powerplay.Bytes32, txOrigin powerplay.Address) struct { Insert func(tx.Events, tx.Transfers) *BlockBatch }
type Event ¶
type Event struct { BlockID powerplay.Bytes32 Index uint32 BlockNumber uint32 BlockTime uint64 TxID powerplay.Bytes32 TxOrigin powerplay.Address //contract caller Address powerplay.Address // always a contract address Topics [5]*powerplay.Bytes32 Data []byte }
Event represents tx.Event that can be stored in db.
type EventCriteria ¶
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 powerplay.Bytes32 Index uint32 BlockNumber uint32 BlockTime uint64 TxID powerplay.Bytes32 TxOrigin powerplay.Address Sender powerplay.Address Recipient powerplay.Address Amount *big.Int }
Transfer represents tx.Transfer that can be stored in db.
type TransferCriteria ¶
type TransferFilter ¶
Click to show internal directories.
Click to hide internal directories.