Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadKey = errors.New("cannot decode key to address") ErrBadValue = errors.New("cannot decode override account") )
Functions ¶
This section is empty.
Types ¶
type OverrideAccount ¶
type OverrideSet ¶
type OverrideSet map[common.Address]OverrideAccount
OverrideSet is a set of accounts with customized state that can be applied during eth_call or debug_traceCall.
func Copy ¶
func Copy(os OverrideSet) (OverrideSet, error)
Copy creates a deep copy of a given OverrideSet.
func ParseOverrideData ¶
func ParseOverrideData(data map[string]any) (OverrideSet, error)
ParseOverrideData decodes a map into an OverrideSet and validates all the fields are correctly typed.
func WithMaxBalanceOverride ¶
func WithMaxBalanceOverride(acc common.Address, os OverrideSet) OverrideSet
WithMaxBalanceOverride takes a set and appends an override for the given address to have a balance equal to max uint96.
Click to show internal directories.
Click to hide internal directories.