Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CRC16("github.com/privatix/dappctrl/monitor") = 0xE464 ErrFailedToFetchLogs errors.Error = 0xE464<<8 + iota ErrFailedToGetActiveAccounts ErrFailedToScanRows ErrFailedToTraverseAddresses ErrFailedToGetHeaderByNumber ErrFailedToParseABI ErrFailedToUnpack ErrWrongNumberOfEventArgs ErrWrongBlockArgumentType ErrUnsupportedTopic ErrInternal )
Errors.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]ethtypes.Log, error) HeaderByNumber(ctx context.Context, number *big.Int) (*ethtypes.Header, error) }
Client defines typed wrappers for the Ethereum RPC API.
type Config ¶
type Config struct { EthCallTimeout uint // In milliseconds. InitialBlocks uint64 // In Ethereum blocks. QueryPause uint // In milliseconds. }
Config is a monitor configuration.
type JobsProducers ¶
JobsProducers used to bind methods as jobs builder for specific event. First argument is log to proccess. Second argument is jobs produced but not yet created in db. It is used to produce jobs that might have relateds in current produced set.
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor is a blockchain monitor.
Click to show internal directories.
Click to hide internal directories.