Struct evm_adapters::sputnik::cheatcodes::HevmConsole [−][src]
pub struct HevmConsole<M>(_);
Implementations
Creates a new contract instance with the specified ethers
client at the given Address
. The contract derefs to a ethers::Contract
object
Gets the contract’s log
event
Gets the contract’s log_address
event
Gets the contract’s log_bytes
event
Gets the contract’s log_bytes32
event
Gets the contract’s log_int
event
Gets the contract’s log_named_address
event
Gets the contract’s log_named_bytes
event
Gets the contract’s log_named_bytes32
event
Gets the contract’s log_named_decimal_int
event
Gets the contract’s log_named_decimal_uint
event
Gets the contract’s log_named_int
event
Gets the contract’s log_named_string
event
Gets the contract’s log_named_uint
event
Gets the contract’s log_string
event
Gets the contract’s log_uint
event
Gets the contract’s logs
event
Returns an Event
builder for all events of this contract
Methods from Deref<Target = Contract<M>>
Returns an Event
builder for the provided event.
Returns an Event
builder with the provided filter.
pub fn event_for_name<D>(&self, name: &str) -> Result<Event<'_, M, D>, Error> where
D: EthLogDecode,
pub fn event_for_name<D>(&self, name: &str) -> Result<Event<'_, M, D>, Error> where
D: EthLogDecode,
Returns an Event
builder with the provided name.
pub fn method<T, D>(
&self,
name: &str,
args: T
) -> Result<ContractCall<M, D>, AbiError> where
T: Tokenize,
D: Detokenize,
pub fn method<T, D>(
&self,
name: &str,
args: T
) -> Result<ContractCall<M, D>, AbiError> where
T: Tokenize,
D: Detokenize,
Returns a transaction builder for the provided function name. If there are
multiple functions with the same name due to overloading, consider using
the method_hash
method instead, since this will use the first match.
pub fn method_hash<T, D>(
&self,
signature: [u8; 4],
args: T
) -> Result<ContractCall<M, D>, AbiError> where
T: Tokenize,
D: Detokenize,
pub fn method_hash<T, D>(
&self,
signature: [u8; 4],
args: T
) -> Result<ContractCall<M, D>, AbiError> where
T: Tokenize,
D: Detokenize,
Returns a transaction builder for the selected function signature. This should be preferred if there are overloaded functions in your smart contract
Returns a new contract instance at address
.
Clones self
internally
Returns a new contract instance using the provided client
Clones self
internally
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for HevmConsole<M> where
M: RefUnwindSafe,
impl<M> Send for HevmConsole<M> where
M: Send + Sync,
impl<M> Sync for HevmConsole<M> where
M: Send + Sync,
impl<M> Unpin for HevmConsole<M>
impl<M> UnwindSafe for HevmConsole<M> where
M: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more