Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ChainID uint64 // contains filtered or unexported fields }
Client implements the ClientInterf that reads data from the Ethereum blockchain
type ClientInterf ¶
type ClientInterf interface { // Sync scans the contract activity since the given fromBlock until the // current block, storing in the database all the updates on the // Processess Start(fromBlock uint64) error }
ClientInterf defines the interface that synchronizes with the Ethereum blockchain to obtain the processes data
type TestEthClient ¶
type TestEthClient struct {
// contains filtered or unexported fields
}
TestEthClient simulates an EthReader for testing purposes
func NewTestEthClient ¶
func NewTestEthClient(sqlite *db.SQLite, startBlock uint64, blocks map[uint64][]TestEvent) *TestEthClient
NewTestEthClient returns a new TestEthClient with the given configuration
func (*TestEthClient) AdvanceBlock ¶
func (e *TestEthClient) AdvanceBlock() error
AdvanceBlock simulates the advance of the EthBlockNum in the TestEthClient
func (*TestEthClient) Start ¶
func (e *TestEthClient) Start(fromBlock uint64) error
Start implements the EthReader.Start method of the interface
Click to show internal directories.
Click to hide internal directories.