config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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