Skip to content

Instantly share code, notes, and snippets.

@konqueror1
konqueror1 / earglue.rs
Created February 8, 2024 07:08 — forked from snf/earglue.rs
EARGlue
use ethers_core::types::{H160 as eH160, U256 as eU256, H256 as eH256, NameOrAddress as eNameOrAddress, TxHash as eTxHash, Bytes as eBytes};
use ethers_core::types::transaction::eip2930::AccessListItem;
use alloy_primitives::{Address as aAddress, U256 as aU256, TxHash as aTxHash, Bytes as aBytes};
use revm::primitives::{Address as rAddress, U256 as rU256, B256 as rB256, Bytecode as rBytecode, Bytes as rBytes};
/// Ethers/Alloy/REVM trait to convert for types from one to another
pub trait EARGlue<To> {
fn convert(&self) -> To;
}