Skip to main content

FoundryEvmNetwork

Trait FoundryEvmNetwork 

Source
pub trait FoundryEvmNetwork:
    Copy
    + Debug
    + Default
    + 'static {
    type Network: Network<TxEnvelope: Decodable + SignerRecoverable + From<Signed<<Self::Network as Network>::UnsignedTx>> + for<'d> Deserialize<'d> + Serialize + UIfmt, UnsignedTx: SignableTransaction<Signature>, TransactionRequest: FoundryTransactionBuilder<Self::Network> + Default + for<'d> Deserialize<'d> + Serialize, ReceiptResponse: FoundryReceiptResponse>;
    type EvmFactory: FoundryEvmFactory<Types: FoundryTxConversion<Self::Network>>;
}
Expand description

Binds an Alloy network to an evm2 factory.

The factory’s type family owns conversion from native Alloy transactions through FoundryTxConversion. Requests and signed envelopes stay network-native until execution.

Required Associated Types§

Source

type Network: Network<TxEnvelope: Decodable + SignerRecoverable + From<Signed<<Self::Network as Network>::UnsignedTx>> + for<'d> Deserialize<'d> + Serialize + UIfmt, UnsignedTx: SignableTransaction<Signature>, TransactionRequest: FoundryTransactionBuilder<Self::Network> + Default + for<'d> Deserialize<'d> + Serialize, ReceiptResponse: FoundryReceiptResponse>

Alloy network used for RPC, signing and broadcasting.

Source

type EvmFactory: FoundryEvmFactory<Types: FoundryTxConversion<Self::Network>>

evm2 factory executing this network.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl FoundryEvmNetwork for BaseEvmNetwork

Available on crate feature base only.
Source§

type Network = Base

Source§

type EvmFactory = BaseEvmFactory

Source§

impl FoundryEvmNetwork for EthEvmNetwork

Source§

impl FoundryEvmNetwork for MonadEvmNetwork

Available on crate feature monad only.
Source§

type Network = Ethereum

Source§

type EvmFactory = MonadEvmFactory

Source§

impl FoundryEvmNetwork for OpEvmNetwork

Available on crate feature optimism only.
Source§

type Network = Optimism

Source§

type EvmFactory = OpEvmFactory

Source§

impl FoundryEvmNetwork for TempoEvmNetwork

Source§

type Network = TempoNetwork

Source§

type EvmFactory = TempoEvmFactory