Documentation ¶
Index ¶
- Variables
- func DefaultScenarioExecutor() *scenexec.ScenarioExecutor
- type ScenarioVMHostBuilder
- func (svb *ScenarioVMHostBuilder) GasScheduleMapFromScenarios(scenGasSchedule scenmodel.GasSchedule) (worldmock.GasScheduleMap, error)
- func (svb *ScenarioVMHostBuilder) GetVMType() []byte
- func (*ScenarioVMHostBuilder) NewMockWorld() *worldmock.MockWorld
- func (svb *ScenarioVMHostBuilder) NewVM(world *worldmock.MockWorld, gasSchedule map[string]map[string]uint64) (scenexec.VMInterface, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultVMType = []byte{5, 0}
DefaultVMType is the VM type argument we use in tests.
Functions ¶
func DefaultScenarioExecutor ¶
func DefaultScenarioExecutor() *scenexec.ScenarioExecutor
DefaultScenarioExecutor provides a scenario executor with VM 1.5, default configuration
Types ¶
type ScenarioVMHostBuilder ¶
type ScenarioVMHostBuilder struct { OverrideVMExecutor executor.ExecutorAbstractFactory VMType []byte }
VMTestExecutor parses, interprets and executes both .test.json tests and .scen.json scenarios with VM.
func NewScenarioVMHostBuilder ¶
func NewScenarioVMHostBuilder() *ScenarioVMHostBuilder
NewScenarioVMHostBuilder creates a default ScenarioVMHostBuilder.
func (*ScenarioVMHostBuilder) GasScheduleMapFromScenarios ¶
func (svb *ScenarioVMHostBuilder) GasScheduleMapFromScenarios(scenGasSchedule scenmodel.GasSchedule) (worldmock.GasScheduleMap, error)
GasScheduleMapFromScenarios provides the correct gas schedule for the gas schedule named specified in a scenario.
func (*ScenarioVMHostBuilder) GetVMType ¶ added in v1.5.27
func (svb *ScenarioVMHostBuilder) GetVMType() []byte
GetVMType returns the configured VM type.
func (*ScenarioVMHostBuilder) NewMockWorld ¶
func (*ScenarioVMHostBuilder) NewMockWorld() *worldmock.MockWorld
NewMockWorld defines how the MockWorld is initialized.
Click to show internal directories.
Click to hide internal directories.