zeus-userop-kit 0.1.0

ERC-4337 user operation builder and bundler client for EntryPoint 0.7 and 0.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use alloy_dyn_abi::Eip712Domain;
use alloy_primitives::{Address, address};
use alloy_sol_types::eip712_domain;

/// The canonical EntryPoint address for 4337 v0.8
pub const ENTRY_POINT_08: Address = address!("0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108");

/// The EIP-712 domain for 4337 v0.8, with the given chain ID.
pub(crate) const fn entry_point_08_domain(chain_id: u64) -> Eip712Domain {
   eip712_domain! {
       name: "ERC4337",
       version: "1",
       chain_id: chain_id,
       verifying_contract: ENTRY_POINT_08,
   }
}