Created
February 25, 2026 22:19
-
-
Save mablr/5700f6513b07dfb04106db75efba441d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use alloy_network::{AnyNetwork, Network}; | |
| use foundry_common_fmt::{UIfmt, UIfmtHeaderExt, UIfmtReceiptExt, UIfmtSignatureExt}; | |
| use foundry_primitives::FoundryTransactionBuilder; | |
| use revm::context::TxEnv; | |
| pub trait Foundry { | |
| type Network: Network< | |
| TxEnvelope: UIfmt + UIfmtSignatureExt + Clone, | |
| TransactionRequest: FoundryTransactionBuilder<Self::Network>, | |
| ReceiptResponse: UIfmt + UIfmtReceiptExt, | |
| HeaderResponse: UIfmtHeaderExt, | |
| >; | |
| type TxEnv; | |
| } | |
| impl Foundry for AnyNetwork { | |
| type Network = Self; | |
| type TxEnv = TxEnv; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment