Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionManager ¶
type ActionManager interface { GetImplementedContractNames() []string GetBlockHeader(ctx context.Context, height big.Int) (h *types.Header, err error) AfterEventLog(ctx context.Context, c contract.ContractsContents, ce structs.ContractEvent) error SyncForBeginningOfEpoch(ctx context.Context, contractVersion string, currentBlock uint64, blockTime time.Time) error }
type EthereumAPI ¶
type EthereumAPI struct { AM ActionManager // contains filtered or unexported fields }
func NewEthereumAPI ¶
func NewEthereumAPI(log *zap.Logger, transport transport.EthereumTransport, spb types.Header, am ActionManager) *EthereumAPI
func (*EthereumAPI) GetLatestBlockHeight ¶
func (eAPI *EthereumAPI) GetLatestBlockHeight(ctx context.Context) (uint64, error)
type ProcOutput ¶
type ProcOutput struct { InID int CE structs.ContractEvent Error error }
Click to show internal directories.
Click to hide internal directories.