Trait pallet_fees::pallet::Config
source · pub trait Config: Config {
Show 15 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type UnixTime: UnixTime;
type FeesPalletId: Get<PalletId>;
type SessionsPerEra: Get<SessionIndex>;
type SessionsArchive: Get<SessionIndex>;
type BlocksPerSession: Get<Self::BlockNumber>;
type FeeAmount: Get<Permill>;
type MarketMakerFeeAmount: Get<Permill>;
type MarketMakerLimitFeeAmount: Get<Permill>;
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>;
type Staking: StakingExt<Self::AccountId>;
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>;
type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type WeightInfo: WeightInfo;
}
Expand description
Configure the pallet by specifying the parameters and types on which it depends.
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 UnixTime: UnixTime
type UnixTime: UnixTime
Time used for computing era duration.
It is guaranteed to start being called from the first on_finalize
. Thus value at
genesis is not used.
sourcetype FeesPalletId: Get<PalletId>
type FeesPalletId: Get<PalletId>
Pallet ID
sourcetype SessionsPerEra: Get<SessionIndex>
type SessionsPerEra: Get<SessionIndex>
Number of sessions per era
sourcetype SessionsArchive: Get<SessionIndex>
type SessionsArchive: Get<SessionIndex>
Number of sessions to keep in archive
sourcetype BlocksPerSession: Get<Self::BlockNumber>
type BlocksPerSession: Get<Self::BlockNumber>
Number of block per session
sourcetype MarketMakerFeeAmount: Get<Permill>
type MarketMakerFeeAmount: Get<Permill>
Market maker market order fee
sourcetype MarketMakerLimitFeeAmount: Get<Permill>
type MarketMakerLimitFeeAmount: Get<Permill>
Market maker limit order fee
sourcetype Security: SecurityExt<Self::AccountId, Self::BlockNumber>
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>
Security traits
sourcetype Staking: StakingExt<Self::AccountId>
type Staking: StakingExt<Self::AccountId>
Tidefi stake 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>
type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
Tidechain currency wrapper
sourcetype ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin which may forcibly update the fee and distribution percentage
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.