utils

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// A dummy private key used to build *bind.TransactOpts for simulation.
	DummyPk, _ = crypto.GenerateKey()

	// A default state override to ensure the zero address always has sufficient funds.
	DefaultStateOverrides = map[string]TraceStateOverrides{
		common.HexToAddress("0x").Hex(): {Balance: hexutil.Big(*big.NewInt(0).SetUint64(math.MaxUint64))},
	}
)

Functions

This section is empty.

Types

type TraceCallOpts

type TraceCallOpts struct {
	Tracer         string                         `json:"tracer"`
	StateOverrides map[string]TraceStateOverrides `json:"stateOverrides"`
}

type TraceCallReq

type TraceCallReq struct {
	From         common.Address `json:"from"`
	To           common.Address `json:"to"`
	Data         hexutil.Bytes  `json:"data"`
	MaxFeePerGas hexutil.Big    `json:"maxFeePerGas"`
}

type TraceStateOverrides added in v0.6.19

type TraceStateOverrides struct {
	Balance hexutil.Big `json:"balance"`
}

Jump to

Keyboard shortcuts

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