Struct revm_interpreter::DummyHost
source · Fields§
§env: Env
§storage: HashMap<U256, U256>
§log: Vec<Log>
Implementations§
Trait Implementations§
source§impl Host for DummyHost
impl Host for DummyHost
fn step(
&mut self,
_interp: &mut Interpreter,
_is_static: bool
) -> InstructionResult
fn step_end(
&mut self,
_interp: &mut Interpreter,
_is_static: bool,
_ret: InstructionResult
) -> InstructionResult
fn env(&mut self) -> &mut Env
source§fn load_account(&mut self, _address: B160) -> Option<(bool, bool)>
fn load_account(&mut self, _address: B160) -> Option<(bool, bool)>
load account. Returns (is_cold,is_new_account)
source§fn block_hash(&mut self, _number: U256) -> Option<B256>
fn block_hash(&mut self, _number: U256) -> Option<B256>
Get environmental block hash.
source§fn balance(&mut self, _address: B160) -> Option<(U256, bool)>
fn balance(&mut self, _address: B160) -> Option<(U256, bool)>
Get balance of address and if account is cold loaded.
source§fn code(&mut self, _address: B160) -> Option<(Bytecode, bool)>
fn code(&mut self, _address: B160) -> Option<(Bytecode, bool)>
Get code of address and if account is cold loaded.
source§fn code_hash(&mut self, __address: B160) -> Option<(B256, bool)>
fn code_hash(&mut self, __address: B160) -> Option<(B256, bool)>
Get code hash of address and if account is cold loaded.
source§fn sload(&mut self, __address: B160, index: U256) -> Option<(U256, bool)>
fn sload(&mut self, __address: B160, index: U256) -> Option<(U256, bool)>
Get storage value of address at index and if account is cold loaded.
source§fn sstore(
&mut self,
_address: B160,
index: U256,
value: U256
) -> Option<(U256, U256, U256, bool)>
fn sstore(
&mut self,
_address: B160,
index: U256,
value: U256
) -> Option<(U256, U256, U256, bool)>
Set storage value of account address at index.
Returns (original, present, new, sis_cold)
source§fn log(&mut self, address: B160, topics: Vec<B256>, data: Bytes)
fn log(&mut self, address: B160, topics: Vec<B256>, data: Bytes)
Create a log owned by address with given topics and data.
source§fn selfdestruct(
&mut self,
_address: B160,
_target: B160
) -> Option<SelfDestructResult>
fn selfdestruct(
&mut self,
_address: B160,
_target: B160
) -> Option<SelfDestructResult>
Mark an address to be deleted, with funds transferred to target.
source§fn create(
&mut self,
_inputs: &mut CreateInputs
) -> (InstructionResult, Option<B160>, Gas, Bytes)
fn create(
&mut self,
_inputs: &mut CreateInputs
) -> (InstructionResult, Option<B160>, Gas, Bytes)
Invoke a create operation.
source§fn call(&mut self, _input: &mut CallInputs) -> (InstructionResult, Gas, Bytes)
fn call(&mut self, _input: &mut CallInputs) -> (InstructionResult, Gas, Bytes)
Invoke a call operation.