Documentation ¶
Index ¶
- Variables
- func DefaultScenarioExecutor() *scenexec.ScenarioExecutor
- type ScenarioVMHostBuilder
- func (svb *ScenarioVMHostBuilder) GasScheduleMapFromScenarios(scenGasSchedule scenmodel.GasSchedule) (worldmock.GasScheduleMap, error)
- 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 TestVMType = []byte{0, 0}
TestVMType 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 { }
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) NewMockWorld ¶
func (*ScenarioVMHostBuilder) NewMockWorld() *worldmock.MockWorld
NewMockWorld defines how the MockWorld is initialized.
Click to show internal directories.
Click to hide internal directories.