pub trait Config: Config + Config + Config + Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type PairSwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter;
type DepositLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter;
type WithdrawLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter;
type PolySwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter + Into<<Self as Config>::SwapAction> + From<PolySwapAction<<Self as Config>::AssetId, <Self as Config>::AccountId, <Self as Config>::TechAccountId>>;
type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>;
type XSTMarketInfo: GetMarketInfo<Self::AssetId>;
type GetFee: Get<Fixed>;
type OnPoolCreated: OnPoolCreated<AccountId = AccountIdOf<Self>, DEXId = <Self as Config>::DEXId>;
type OnPoolReservesChanged: OnPoolReservesChanged<Self::AssetId>;
type WeightInfo: WeightInfo;
type GetTradingPairRestrictedFlag: GetByKey<TradingPair<Self::AssetId>, bool>;
Show 1 associated constant and 0 method
const MIN_XOR: Balance;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Because this pallet emits events, it depends on the runtime’s definition of an event.
type PairSwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter
type DepositLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter
type WithdrawLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter
type PolySwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter + Into<<Self as Config>::SwapAction> + From<PolySwapAction<<Self as Config>::AssetId, <Self as Config>::AccountId, <Self as Config>::TechAccountId>>
type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>
type XSTMarketInfo: GetMarketInfo<Self::AssetId>
type GetFee: Get<Fixed>
type OnPoolCreated: OnPoolCreated<AccountId = AccountIdOf<Self>, DEXId = <Self as Config>::DEXId>
type OnPoolReservesChanged: OnPoolReservesChanged<Self::AssetId>
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.