Documentation
¶
Index ¶
- func InitIdealState(originState *state.StateDB, record *runtime.RecordToInitiateState) (*state.StateDB, error)
- type Simulation
- type SimulationResult
- type Simulator
- func (s *Simulator) ConfigFromSimulation(simulation Simulation) *runtime.Config
- func (s *Simulator) Simulate(simulation Simulation, stateDB *state.StateDB, ...) (*SimulationResult, error)
- func (s *Simulator) SimulateBundle(simulations []Simulation, stateDB *state.StateDB, ...) ([]*SimulationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitIdealState ¶
Types ¶
type Simulation ¶
type SimulationResult ¶
type SimulationResult struct { ReturnedData []byte GasUsed uint64 GasLimit uint64 Record *runtime.RecordToInitiateState }
type Simulator ¶
func (*Simulator) ConfigFromSimulation ¶
func (s *Simulator) ConfigFromSimulation(simulation Simulation) *runtime.Config
func (*Simulator) Simulate ¶
func (s *Simulator) Simulate(simulation Simulation, stateDB *state.StateDB, recordInitializer *runtime.RecordToInitiateState) (*SimulationResult, error)
Simulate perform the simulation of a transaction does not return a propper gas computation, for that use EstimateGas
func (*Simulator) SimulateBundle ¶
func (s *Simulator) SimulateBundle(simulations []Simulation, stateDB *state.StateDB, recordInitializer *runtime.RecordToInitiateState) ([]*SimulationResult, error)
SimulateBundle simulate a bundle of transactions using always the same state
Click to show internal directories.
Click to hide internal directories.