ethinterface

package
v1.5.1-0...-695921f Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthClientSpec

type EthClientSpec interface {
	bind.ContractBackend
	TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
	NetworkID(ctx context.Context) (*big.Int, error)
	BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
	HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
	SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
}

EthClientSpec ...

type SimExtend

type SimExtend struct {
	*backends.SimulatedBackend
}

SimExtend ...

func (*SimExtend) HeaderByNumber

func (sim *SimExtend) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber ...

func (*SimExtend) NetworkID

func (sim *SimExtend) NetworkID(ctx context.Context) (*big.Int, error)

NetworkID ...

func (*SimExtend) SyncProgress

func (sim *SimExtend) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)

Jump to

Keyboard shortcuts

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