Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractEvent ¶
type ContractEvent struct {
GUID uuid.UUID `gorm:"primaryKey"`
BlockHash common.Hash `gorm:"serializer:bytes"`
ContractAddress common.Address `gorm:"serializer:bytes"`
TransactionHash common.Hash `gorm:"serializer:bytes"`
LogIndex uint64
BlockNumber *big.Int `gorm:"serializer:u256"`
EventSignature common.Hash `gorm:"serializer:bytes"`
Timestamp uint64
RLPLog *types.Log `gorm:"serializer:rlp;column:rlp_bytes"`
}
func ContractEventFromLog ¶
type ContractEventDB ¶
type ContractEventDB interface {
ContractEventsView
StoreContractEvents([]ContractEvent) error
}
func NewContractEventsDB ¶
func NewContractEventsDB(db *gorm.DB) ContractEventDB
type ContractEventsView ¶
type ContractEventsView interface {
ContractEvent(uuid.UUID) (*ContractEvent, error)
ContractEventWithFilter(ContractEvent) (*ContractEvent, error)
ContractEventsWithFilter(ContractEvent, *big.Int, *big.Int) ([]ContractEvent, error)
LatestContractEventWithFilter(ContractEvent) (*ContractEvent, error)
}
Click to show internal directories.
Click to hide internal directories.