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§
Sourcetype 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 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.
Sourcetype EvmFactory: FoundryEvmFactory<Types: FoundryTxConversion<Self::Network>>
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.
impl FoundryEvmNetwork for BaseEvmNetwork
Available on crate feature
base only.Source§impl FoundryEvmNetwork for EthEvmNetwork
impl FoundryEvmNetwork for EthEvmNetwork
type Network = Ethereum
type EvmFactory = EthEvmFactory
Source§impl FoundryEvmNetwork for MonadEvmNetwork
Available on crate feature monad only.
impl FoundryEvmNetwork for MonadEvmNetwork
Available on crate feature
monad only.Source§impl FoundryEvmNetwork for OpEvmNetwork
Available on crate feature optimism only.
impl FoundryEvmNetwork for OpEvmNetwork
Available on crate feature
optimism only.