client

package
v0.0.0-...-2897c99 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultOption

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

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

func (*ETHClient) GetTransactionReceipt

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

func (*ETHClient) WaitForReceiptAndGet

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

type Option

type Option func(*option)

func WithRetryOption

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

type Receipt

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

func (Receipt) GetRevertReason

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

func (Receipt) HasRevertReason

func (rc Receipt) HasRevertReason() bool

type StateProof

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