pub trait AnvilProviderExt<T, N>where
N: Network,
T: Transport + Clone,{
// Required methods
fn snapshot(&self) -> impl Future<Output = TransportResult<u64>> + Send;
fn revert(
&self,
snap_id: u64,
) -> impl Future<Output = TransportResult<bool>> + Send;
fn mine(&self) -> impl Future<Output = TransportResult<u64>> + Send;
fn set_automine(
&self,
to_mine: bool,
) -> impl Future<Output = TransportResult<()>> + Send;
fn set_code(
&self,
address: Address,
code: Bytes,
) -> impl Future<Output = TransportResult<()>> + Send;
fn set_balance(
&self,
address: Address,
balance: U256,
) -> impl Future<Output = TransportResult<()>> + Send;
fn set_storage(
&self,
address: Address,
cell: B256,
value: B256,
) -> impl Future<Output = TransportResult<bool>> + Send;
}
Required Methods§
fn snapshot(&self) -> impl Future<Output = TransportResult<u64>> + Send
fn revert( &self, snap_id: u64, ) -> impl Future<Output = TransportResult<bool>> + Send
fn mine(&self) -> impl Future<Output = TransportResult<u64>> + Send
fn set_automine( &self, to_mine: bool, ) -> impl Future<Output = TransportResult<()>> + Send
fn set_code( &self, address: Address, code: Bytes, ) -> impl Future<Output = TransportResult<()>> + Send
fn set_balance( &self, address: Address, balance: U256, ) -> impl Future<Output = TransportResult<()>> + Send
fn set_storage( &self, address: Address, cell: B256, value: B256, ) -> impl Future<Output = TransportResult<bool>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.