contracts

package
v1.9.7-0...-24da1cd Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockNumArg

func BlockNumArg(blockNum *big.Int) rpc.BlockNumberOrHash

func CallArgsFromCallMsg

func CallArgsFromCallMsg(callMsg ethereum.CallMsg) ethapi.CallArgs

func PendingBlockNumArg

func PendingBlockNumArg() rpc.BlockNumberOrHash

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func NewDirectBackend

func NewDirectBackend(api jsonrpc.EthAPI) Backend

func (Backend) CallContract

func (b Backend) CallContract(ctx context.Context, callMsg ethereum.CallMsg, blockNum *big.Int) ([]byte, error)

func (Backend) CodeAt

func (b Backend) CodeAt(ctx context.Context, contract libcommon.Address, blockNum *big.Int) ([]byte, error)

func (Backend) EstimateGas

func (b Backend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

func (Backend) FilterLogs

func (b Backend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

func (Backend) PendingCodeAt

func (b Backend) PendingCodeAt(ctx context.Context, account libcommon.Address) ([]byte, error)

func (Backend) PendingNonceAt

func (b Backend) PendingNonceAt(ctx context.Context, account libcommon.Address) (uint64, error)

func (Backend) SendTransaction

func (b Backend) SendTransaction(ctx context.Context, txn types.Transaction) error

func (Backend) SubscribeFilterLogs

func (b Backend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

func (Backend) SuggestGasPrice

func (b Backend) SuggestGasPrice(ctx context.Context) (*big.Int, error)

Jump to

Keyboard shortcuts

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