callopts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallConfig

type CallConfig struct {
	CallMsg     ethereum.CallMsg
	BlockNumber *big.Int
}

type ContractCaller

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

func WrapCaller

func WrapCaller(impl ethereum.ContractCaller) *ContractCaller

func (*ContractCaller) CallContract

func (c *ContractCaller) CallContract(ctx context.Context, opts ...Opt) ([]byte, error)

type Opt

type Opt func(cfg *CallConfig)

func AtBlock

func AtBlock(blockNumber uint64) Opt

func Data

func Data(data []byte) Opt

func From

func From(addr common.Address) Opt

func Gas

func Gas(n uint64) Opt

func GasFeeCap

func GasFeeCap(wei uint64) Opt

func GasPrice

func GasPrice(wei uint64) Opt

func GasTipCap

func GasTipCap(wei uint64) Opt

func To

func To(addr common.Address) Opt

func Value

func Value(wei *big.Int) Opt

Jump to

Keyboard shortcuts

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