Versions in this module Expand all Collapse all v0 v0.0.3 Jul 2, 2021 Changes in this version type Type + const StateSubscription v0.0.2 Jul 2, 2021 Changes in this version + type Backend interface + BloomStatus func() (uint64, uint64) + ChainDb func() ethdb.Database + GetBorBlockLogs func(ctx context.Context, blockHash common.Hash) ([]*types.Log, error) + GetBorBlockReceipt func(ctx context.Context, blockHash common.Hash) (*types.Receipt, error) + GetLogs func(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) + GetReceipts func(ctx context.Context, blockHash common.Hash) (types.Receipts, error) + HeaderByHash func(ctx context.Context, blockHash common.Hash) (*types.Header, error) + HeaderByNumber func(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) + ServiceFilter func(ctx context.Context, session *bloombits.MatcherSession) + SubscribeChainEvent func(ch chan<- core.ChainEvent) event.Subscription + SubscribeLogsEvent func(ch chan<- []*types.Log) event.Subscription + SubscribeNewTxsEvent func(chan<- core.NewTxsEvent) event.Subscription + SubscribePendingLogsEvent func(ch chan<- []*types.Log) event.Subscription + SubscribeRemovedLogsEvent func(ch chan<- core.RemovedLogsEvent) event.Subscription + SubscribeStateSyncEvent func(ch chan<- core.StateSyncEvent) event.Subscription + type BorBlockLogsFilter struct + func NewBorBlockLogsFilter(backend Backend, sprint uint64, block common.Hash, addresses []common.Address, ...) *BorBlockLogsFilter + func NewBorBlockLogsRangeFilter(backend Backend, sprint uint64, begin, end int64, addresses []common.Address, ...) *BorBlockLogsFilter + func (f *BorBlockLogsFilter) Logs(ctx context.Context) ([]*types.Log, error) + type EventSystem struct + func NewEventSystem(backend Backend, lightMode bool) *EventSystem + func (es *EventSystem) SubscribeLogs(crit ethereum.FilterQuery, logs chan []*types.Log) (*Subscription, error) + func (es *EventSystem) SubscribeNewDeposits(data chan *types.StateSyncData) *Subscription + func (es *EventSystem) SubscribeNewHeads(headers chan *types.Header) *Subscription + func (es *EventSystem) SubscribePendingTxs(hashes chan []common.Hash) *Subscription + type Filter struct + func NewBlockFilter(backend Backend, block common.Hash, addresses []common.Address, ...) *Filter + func NewRangeFilter(backend Backend, begin, end int64, addresses []common.Address, ...) *Filter + func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) + type FilterCriteria ethereum.FilterQuery + func (args *FilterCriteria) UnmarshalJSON(data []byte) error + type PublicFilterAPI struct + func NewPublicFilterAPI(backend Backend, lightMode bool, timeout time.Duration, borLogs bool) *PublicFilterAPI + func (api *PublicFilterAPI) GetBorBlockLogs(ctx context.Context, crit FilterCriteria) ([]*types.Log, error) + func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) + func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.ID) ([]*types.Log, error) + func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*types.Log, error) + func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewBlockFilter() rpc.ID + func (api *PublicFilterAPI) NewDeposits(ctx context.Context, crit ethereum.StateSyncFilter) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) + func (api *PublicFilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewPendingTransactionFilter() rpc.ID + func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context) (*rpc.Subscription, error) + func (api *PublicFilterAPI) SetChainConfig(chainConfig *params.ChainConfig) + func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool + type Subscription struct + ID rpc.ID + func (sub *Subscription) Err() <-chan error + func (sub *Subscription) Unsubscribe() + type Type byte + const BlocksSubscription + const LastIndexSubscription + const LogsSubscription + const MinedAndPendingLogsSubscription + const PendingLogsSubscription + const PendingTransactionsSubscription + const StateSyncSubscription + const UnknownSubscription