Expand description
DeFi (Decentralized Finance) domain model.
This module gathers all constructs required to model on-chain markets and decentralised exchange (DEX) activity.
• chain – Blockchain networks supported by Nautilus (Ethereum, Arbitrum, …).
• token – ERC-20 and other fungible token metadata.
• dex – DEX protocol definitions (Uniswap V3, PancakeSwap, …).
• data – Domain events & state snapshots that flow through the system (Block, PoolSwap).
• types – Numeric value types (Money, Quantity, Price) shared across the DeFi layer.
• rpc – Lightweight JSON-RPC helpers used by on-chain adapters.
Re-exports§
pub use amm::Pool;pub use chain::Blockchain;pub use chain::Chain;pub use data::DefiData;pub use data::block::Block;pub use data::collect::PoolFeeCollect;pub use data::flash::PoolFlash;pub use data::liquidity::PoolLiquidityUpdate;pub use data::liquidity::PoolLiquidityUpdateType;pub use data::swap::PoolSwap;pub use data::transaction::Transaction;pub use dex::AmmType;pub use dex::Dex;pub use dex::DexType;pub use pool_analysis::PoolProfiler;pub use token::Token;
Modules§
- amm
- Data types specific to automated-market-maker (AMM) protocols.
- chain
- Basic structures for representing on-chain blocks and transactions in DeFi integrations.
- data
- DeFi (Decentralized Finance) data models and types.
- dex
- hex
- Hexadecimal string parsing utilities for blockchain data.
- pool_
analysis - reporting
- Performance reporting and metrics tracking for blockchain operations.
- rpc
- tick_
map - token
- types
- DeFi (Decentralized Finance) value type extensions.
- validation
- Validation utilities for blockchain data types.
Statics§
- WEI_
PRECISION - Number of decimal places used by the native Ether denomination.