Skip to content

Instantly share code, notes, and snippets.

@mablr
Created February 25, 2026 22:19
Show Gist options
  • Select an option

  • Save mablr/5700f6513b07dfb04106db75efba441d to your computer and use it in GitHub Desktop.

Select an option

Save mablr/5700f6513b07dfb04106db75efba441d to your computer and use it in GitHub Desktop.
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