transport

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyResponse = errors.New("Returned Empty Response (Reverted 0x)")

Functions

This section is empty.

Types

type BoundContractCaller

type BoundContractCaller interface {
	GetContract() *bind.BoundContract
	RawCall(ctx context.Context, opts *bind.CallOpts, method string, params ...interface{}) (output []byte, err error)
	AbiUnpack(method string, data []byte) (res []interface{}, err error)
}

type EthereumTransport

type EthereumTransport interface {
	Dial(ctx context.Context) (err error)
	Close(ctx context.Context)
	GetLogs(ctx context.Context, from, to big.Int, contracts []common.Address) (logs []types.Log, err error)
	GetBlockHeader(ctx context.Context, height *big.Int) (h *types.Header, err error)
	GetBoundContractCaller(ctx context.Context, address common.Address, a abi.ABI) BoundContractCaller
	GetLatestBlockHeight(ctx context.Context) (uint64, error)
}

Directories

Path Synopsis
eth

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL