penumbra_dex/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#![deny(clippy::unwrap_used)]
// Requires nightly.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[cfg(feature = "component")]
pub mod component;
pub mod event;
pub mod genesis;
pub mod state_key;

mod batch_swap_output_data;
mod candlestick;
mod params;
mod swap_execution;
mod trading_pair;

pub use batch_swap_output_data::BatchSwapOutputData;
pub use candlestick::CandlestickData;
pub use params::DexParameters;
pub use swap_execution::SwapExecution;
pub use trading_pair::{DirectedTradingPair, DirectedUnitPair, TradingPair, TradingPairVar};

pub mod lp;
pub mod swap;
pub mod swap_claim;

pub use lp::action::{PositionClose, PositionOpen, PositionWithdraw};
pub use swap::Swap;
pub use swap_claim::SwapClaim;