ethers_middleware/transformer/ds_proxy/factory.rs
1use ethers_contract::{abigen, Lazy};
2use ethers_core::types::{Address, U256};
3use std::collections::HashMap;
4
5/// A lazily computed hash map with the Ethereum network IDs as keys and the corresponding
6/// DsProxyFactory contract addresses as values
7pub static ADDRESS_BOOK: Lazy<HashMap<U256, Address>> = Lazy::new(|| {
8 HashMap::from([
9 // Mainnet
10 (U256::from(1_u64), "eefba1e63905ef1d7acba5a8513c70307c1ce441".parse().unwrap()),
11 ])
12});
13
14abigen!(
15 DsProxyFactory,
16 "./contracts/DSProxyFactory.json",
17 methods {
18 build() as build_with_sender;
19 }
20);