Expand description
Rust SDK for interacting with the PropAMM contracts over JSON-RPC.
Mirrors the TypeScript SDK (sdk/typescript): a generic
ContractClient, typed PropAmmRouter bindings (quotes, swaps, and
views), and pAMM state-override sources so quotes price fresh off-chain
liquidity.
Re-exports§
pub use client::CallOverrides;pub use client::ContractClient;pub use error::Error;pub use error::Result;pub use prices::PriceLevels;pub use router::PropAmmRouter;
Modules§
- client
- Thin wrapper around rex/ethrex’s
EthClientfor reading from and writing to contracts. This module owns the JSON-RPC transport, includingeth_callsimulations with state and block overrides (rex’sStateOverrideSet/BlockOverrideSet); ABI encoding/decoding lives inrouter::abion ethrex’s calldata codec. - common
- error
- overrides
- pAMM state-override sources.
- prices
- pAMM price-level sources.
- router
- Typed bindings for the
PropAMMRoutercontract, built onContractClient. Method names drop the on-chainV1suffix:router.swap(...)callsswapV1, and so on.
Structs§
- H256
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- U256
- Little-endian large integer type 256-bit unsigned integer.