Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheatCodeConfig ¶
type CheatCodeConfig struct { // CheatCodesEnabled indicates whether cheat code pre-compiles should be enabled in the chain. CheatCodesEnabled bool `json:"cheatCodesEnabled"` // EnableFFI describes whether the FFI cheat code should be enabled. Enablement allows for arbitrary code execution // on the tester's machine EnableFFI bool `json:"enableFFI"` }
CheatCodeConfig describes any configuration options related to the use of vm extensions (a.k.a. cheat codes)
type TestChainConfig ¶
type TestChainConfig struct { // CodeSizeCheckDisabled indicates whether code size checks should be disabled in the EVM. This allows for code // size to be disabled without disabling the entire EIP it was introduced. CodeSizeCheckDisabled bool `json:"codeSizeCheckDisabled"` // CheatCodeConfig indicates the configuration for EVM cheat codes to use. CheatCodeConfig CheatCodeConfig `json:"cheatCodes"` }
TestChainConfig represents the chain configuration.
func DefaultTestChainConfig ¶
func DefaultTestChainConfig() (*TestChainConfig, error)
DefaultTestChainConfig obtains a default configuration for a chain.TestChain. Returns a TestChainConfig populated with default values.
func (*TestChainConfig) GetVMConfigExtensions ¶
func (t *TestChainConfig) GetVMConfigExtensions() *vm.ConfigExtensions
GetVMConfigExtensions derives a vm.ConfigExtensions from the provided TestChainConfig.
Click to show internal directories.
Click to hide internal directories.