Skip to main content

FoundryEvmNetwork

Trait FoundryEvmNetwork 

Source
pub trait FoundryEvmNetwork:
    Copy
    + Debug
    + Default
    + 'static {
    type Network: Network
       where <Self::Network as Network>::TxEnvelope: Decodable + SignerRecoverable + From<Signed<<Self::Network as Network>::UnsignedTx>> + for<'d> Deserialize<'d> + Serialize + UIfmt,
             <Self::Network as Network>::UnsignedTx: SignableTransaction<Signature>,
             <Self::Network as Network>::TransactionRequest: FoundryTransactionBuilder<Self::Network> + Default + for<'d> Deserialize<'d> + Serialize,
             <Self::Network as Network>::ReceiptResponse: FoundryReceiptResponse;
    type EvmFactory: FoundryEvmFactory
       where <Self::EvmFactory as 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 where <Self::Network as Network>::TxEnvelope: Decodable + SignerRecoverable + From<Signed<<Self::Network as Network>::UnsignedTx>> + for<'d> Deserialize<'d> + Serialize + UIfmt, <Self::Network as Network>::UnsignedTx: SignableTransaction<Signature>, <Self::Network as Network>::TransactionRequest: FoundryTransactionBuilder<Self::Network> + Default + for<'d> Deserialize<'d> + Serialize, <Self::Network as Network>::ReceiptResponse: FoundryReceiptResponse

Alloy network used for RPC, signing and broadcasting.

Source

type EvmFactory: FoundryEvmFactory where <Self::EvmFactory as 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§