foundry_cheatcodes::inspector::utils

Trait CommonCreateInput

Source
pub(crate) trait CommonCreateInput {
    // Required methods
    fn caller(&self) -> Address;
    fn gas_limit(&self) -> u64;
    fn value(&self) -> U256;
    fn init_code(&self) -> Bytes;
    fn scheme(&self) -> Option<CreateScheme>;
    fn set_caller(&mut self, caller: Address);
    fn log_debug(&self, cheatcode: &mut Cheatcodes, scheme: &CreateScheme);
    fn allow_cheatcodes(
        &self,
        cheatcodes: &mut Cheatcodes,
        ecx: &'_ mut InnerEvmContext<&'_ mut (dyn DatabaseExt + '_)>,
    ) -> Address;
    fn computed_created_address(&self) -> Option<Address>;
}
Expand description

Common behaviour of legacy and EOF create inputs.

Required Methods§

Source

fn caller(&self) -> Address

Source

fn gas_limit(&self) -> u64

Source

fn value(&self) -> U256

Source

fn init_code(&self) -> Bytes

Source

fn scheme(&self) -> Option<CreateScheme>

Source

fn set_caller(&mut self, caller: Address)

Source

fn log_debug(&self, cheatcode: &mut Cheatcodes, scheme: &CreateScheme)

Source

fn allow_cheatcodes( &self, cheatcodes: &mut Cheatcodes, ecx: &'_ mut InnerEvmContext<&'_ mut (dyn DatabaseExt + '_)>, ) -> Address

Source

fn computed_created_address(&self) -> Option<Address>

Implementations on Foreign Types§

Source§

impl CommonCreateInput for &mut CreateInputs

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn init_code(&self) -> Bytes

Source§

fn scheme(&self) -> Option<CreateScheme>

Source§

fn set_caller(&mut self, caller: Address)

Source§

fn log_debug(&self, cheatcode: &mut Cheatcodes, scheme: &CreateScheme)

Source§

fn allow_cheatcodes( &self, cheatcodes: &mut Cheatcodes, ecx: &'_ mut InnerEvmContext<&'_ mut (dyn DatabaseExt + '_)>, ) -> Address

Source§

fn computed_created_address(&self) -> Option<Address>

Source§

impl CommonCreateInput for &mut EOFCreateInputs

Source§

fn caller(&self) -> Address

Source§

fn gas_limit(&self) -> u64

Source§

fn value(&self) -> U256

Source§

fn init_code(&self) -> Bytes

Source§

fn scheme(&self) -> Option<CreateScheme>

Source§

fn set_caller(&mut self, caller: Address)

Source§

fn log_debug(&self, cheatcode: &mut Cheatcodes, _scheme: &CreateScheme)

Source§

fn allow_cheatcodes( &self, cheatcodes: &mut Cheatcodes, ecx: &'_ mut InnerEvmContext<&'_ mut (dyn DatabaseExt + '_)>, ) -> Address

Source§

fn computed_created_address(&self) -> Option<Address>

Implementors§