Trait pallet_oracle::pallet::Config
source · pub trait Config: Config + Config<AssetId = AssetId, Balance = Balance> {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type OraclePalletId: Get<PalletId>;
type WeightInfo: WeightInfo;
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>;
type SwapLimitByAccount: Get<u32>;
type SupportedMarketPairsLimit: Get<u32>;
type Fees: FeesExt<Self::AccountId, Self::BlockNumber>;
type Sunrise: SunriseExt<Self::AccountId, Self::BlockNumber>;
type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + InspectHold<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + MutateHold<Self::AccountId, AssetId = CurrencyId, Balance = Balance>;
}
Expand description
Oracle configuration
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Events
sourcetype OraclePalletId: Get<PalletId>
type OraclePalletId: Get<PalletId>
Pallet ID
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weights
sourcetype Security: SecurityExt<Self::AccountId, Self::BlockNumber>
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>
Security traits
sourcetype SwapLimitByAccount: Get<u32>
type SwapLimitByAccount: Get<u32>
The maximum number of active swaps per account id
sourcetype SupportedMarketPairsLimit: Get<u32>
type SupportedMarketPairsLimit: Get<u32>
The maximum number of supported market pairs
sourcetype Fees: FeesExt<Self::AccountId, Self::BlockNumber>
type Fees: FeesExt<Self::AccountId, Self::BlockNumber>
Fees traits
sourcetype Sunrise: SunriseExt<Self::AccountId, Self::BlockNumber>
type Sunrise: SunriseExt<Self::AccountId, Self::BlockNumber>
Tidefi sunrise traits
sourcetype CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + InspectHold<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + MutateHold<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + InspectHold<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + MutateHold<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
Tidechain currency wrapper