Trait pallet_route_executor::pallet::Config
source · pub trait Config: Config {
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type AssetId: Parameter + Member + Copy + MaybeSerializeDeserialize;
type Balance: Parameter + Member + Copy + PartialOrd + MaybeSerializeDeserialize + Default + CheckedSub + CheckedAdd;
type MaxNumberOfTrades: Get<u8>;
type Currency: Inspect<Self::AccountId, AssetId = Self::AssetId, Balance = Self::Balance>;
type AMM: TradeExecution<<Self as Config>::Origin, Self::AccountId, Self::AssetId, Self::Balance, Error = DispatchError>;
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§
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>
sourcetype Balance: Parameter + Member + Copy + PartialOrd + MaybeSerializeDeserialize + Default + CheckedSub + CheckedAdd
type Balance: Parameter + Member + Copy + PartialOrd + MaybeSerializeDeserialize + Default + CheckedSub + CheckedAdd
Balance type
sourcetype MaxNumberOfTrades: Get<u8>
type MaxNumberOfTrades: Get<u8>
Max limit for the number of trades within a route
sourcetype Currency: Inspect<Self::AccountId, AssetId = Self::AssetId, Balance = Self::Balance>
type Currency: Inspect<Self::AccountId, AssetId = Self::AssetId, Balance = Self::Balance>
Currency for checking balances
sourcetype AMM: TradeExecution<<Self as Config>::Origin, Self::AccountId, Self::AssetId, Self::Balance, Error = DispatchError>
type AMM: TradeExecution<<Self as Config>::Origin, Self::AccountId, Self::AssetId, Self::Balance, Error = DispatchError>
Handlers for AMM pools to calculate and execute trades
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for the extrinsics.