loom_node_debug_provider::anvilprovider

Trait AnvilProviderExt

Source
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§

Source

fn snapshot(&self) -> impl Future<Output = TransportResult<u64>> + Send

Source

fn revert( &self, snap_id: u64, ) -> impl Future<Output = TransportResult<bool>> + Send

Source

fn mine(&self) -> impl Future<Output = TransportResult<u64>> + Send

Source

fn set_automine( &self, to_mine: bool, ) -> impl Future<Output = TransportResult<()>> + Send

Source

fn set_code( &self, address: Address, code: Bytes, ) -> impl Future<Output = TransportResult<()>> + Send

Source

fn set_balance( &self, address: Address, balance: U256, ) -> impl Future<Output = TransportResult<()>> + Send

Source

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.

Implementations on Foreign Types§

Source§

impl AnvilProviderExt<BoxTransport, Ethereum> for RootProvider<BoxTransport>

Source§

fn snapshot(&self) -> impl Future<Output = TransportResult<u64>> + Send

Source§

fn revert( &self, snap_id: u64, ) -> impl Future<Output = TransportResult<bool>> + Send

Source§

fn mine(&self) -> impl Future<Output = TransportResult<u64>> + Send

Source§

fn set_automine( &self, to_mine: bool, ) -> impl Future<Output = TransportResult<()>> + Send

Source§

fn set_code( &self, address: Address, code: Bytes, ) -> impl Future<Output = TransportResult<()>> + Send

Source§

fn set_balance( &self, address: Address, balance: U256, ) -> impl Future<Output = TransportResult<()>> + Send

Source§

fn set_storage( &self, address: Address, cell: B256, value: B256, ) -> impl Future<Output = TransportResult<bool>> + Send

Implementors§

Source§

impl<PN, PA, TN, TA, N> AnvilProviderExt<TA, N> for AnvilDebugProvider<PN, PA, TN, TA, N>
where N: Network, TN: Transport + Clone, TA: Transport + Clone, PN: Provider<TN, N> + Send + Sync + Clone + 'static, PA: Provider<TA, N> + Send + Sync + Clone + 'static,