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::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 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.
- rpc
- token
- types
- DeFi (Decentralized Finance) value type extensions.
Statics§
- WEI_
PRECISION - Number of decimal places used by the native Ether denomination.