Trait xst::pallet::Config

source ·
pub trait Config: Config + Config + Config + Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type GetSyntheticBaseAssetId: Get<Self::AssetId>;
    type GetXSTPoolPermissionedTechAccountId: Get<Self::TechAccountId>;
    type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>;
    type PriceToolsPallet: PriceToolsPallet<Self::AssetId>;
    type Oracle: DataFeed<Self::Symbol, Rate, u64>;
    type Symbol: Parameter + From<SymbolName> + MaybeSerializeDeserialize;
    type GetSyntheticBaseBuySellLimit: Get<Balance>;
    type TradingPairSourceManager: TradingPairSourceManager<Self::DEXId, Self::AssetId>;
    type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type GetSyntheticBaseAssetId: Get<Self::AssetId>

AssetId which is convertible to/from XSTUSD

source

type GetXSTPoolPermissionedTechAccountId: Get<Self::TechAccountId>

source

type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>

source

type PriceToolsPallet: PriceToolsPallet<Self::AssetId>

source

type Oracle: DataFeed<Self::Symbol, Rate, u64>

source

type Symbol: Parameter + From<SymbolName> + MaybeSerializeDeserialize

Type of symbol received from oracles

source

type GetSyntheticBaseBuySellLimit: Get<Balance>

Maximum tradable amount of XST

source

type TradingPairSourceManager: TradingPairSourceManager<Self::DEXId, Self::AssetId>

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Implementors§