client

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultOption added in v0.2.0

func DefaultOption() *option

Types

type ETHClient

type ETHClient struct {
	*ethclient.Client
	// contains filtered or unexported fields
}

func NewETHClient

func NewETHClient(endpoint string, opts ...Option) (*ETHClient, error)

func (ETHClient) GetStateProof added in v0.2.0

func (cl ETHClient) GetStateProof(address common.Address, storageKeys [][]byte, blockNumber *big.Int) (*StateProof, error)

func (*ETHClient) GetTransactionReceipt added in v0.2.0

func (cl *ETHClient) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (rc *gethtypes.Receipt, recoverable bool, err error)

func (*ETHClient) WaitForReceiptAndGet added in v0.2.0

func (cl *ETHClient) WaitForReceiptAndGet(ctx context.Context, tx *gethtypes.Transaction) (*gethtypes.Receipt, error)

type Option added in v0.2.0

type Option func(*option)

func WithRetryOption added in v0.2.0

func WithRetryOption(rops ...retry.Option) Option

type Receipt

type Receipt struct {
	gethtypes.Receipt
	RevertReason []byte `json:"revertReason,omitempty"`
}

func (Receipt) GetRevertReason added in v0.2.0

func (rc Receipt) GetRevertReason() (string, error)

func (Receipt) HasRevertReason added in v0.2.0

func (rc Receipt) HasRevertReason() bool

type StateProof added in v0.2.0

type StateProof struct {
	AccountProofRLP []byte
	StorageProofRLP [][]byte
}

Jump to

Keyboard shortcuts

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