propamm 1.1.2

Rust SDK for the PropAMM Router contract: typed calls, eth_call overrides, and ABI codec over JSON-RPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ethrex_common::{Address, H160};
use hex_literal::hex;

// PropAMM venues seeded into the router whitelist at initialization.
pub const FERMI: Address = H160(hex!("5979458912F80B96d30D4220af8E2e4925A33320"));
pub const BEBOP: Address = H160(hex!("dB13ad0fcD134E9c48f2fDaEa8f6751a0F5349ca"));
pub const KIPSELI: Address = H160(hex!("71e790dd841c8A9061487cb3E78C288E75cE0B3d"));

/// Curated propAMM name → venue address mapping, for the `venues` option of
/// quotes and swaps.
///
/// The Uniswap V3 fallback is intentionally absent: its address is router
/// configuration, read it via `PropAmmRouter::fallback_swap_router`.
pub const PAMMS: [(&str, Address); 3] = [("fermi", FERMI), ("bebop", BEBOP), ("kipseli", KIPSELI)];