pub trait Config: Config {
Show 18 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type NativeCurrencyId: Get<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::CurrencyId>; type Tokens: MultiTokenCurrencyExtended<Self::AccountId>; type BlocksPerRound: Get<u32>; type HistoryLimit: Get<u32>; type LiquidityMiningIssuanceVault: Get<Self::AccountId>; type StakingIssuanceVault: Get<Self::AccountId>; type TotalCrowdloanAllocation: Get<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance>; type ImmediateTGEReleasePercent: Get<Percent>; type IssuanceCap: Get<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance>; type LinearIssuanceBlocks: Get<u32>; type LiquidityMiningSplit: Get<Perbill>; type StakingSplit: Get<Perbill>; type TGEReleasePeriod: Get<u32>; type TGEReleaseBegin: Get<u32>; type VestingProvider: MultiTokenVestingSchedule<Self::AccountId, Currency = Self::Tokens, Moment = BlockNumberFor<Self>>; type WeightInfo: WeightInfo; type LiquidityMiningApi: LiquidityMiningApi<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance>;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait. Configure the pallet by specifying the parameters and types on which it depends.

Required Associated Types§

source

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.

source

type NativeCurrencyId: Get<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::CurrencyId>

MGA currency to check total_issuance

source

type Tokens: MultiTokenCurrencyExtended<Self::AccountId>

Tokens

source

type BlocksPerRound: Get<u32>

Number of blocks per session/round

source

type HistoryLimit: Get<u32>

Number of sessions to store issuance history for

source

type LiquidityMiningIssuanceVault: Get<Self::AccountId>

The account id that holds the liquidity mining issuance

source

type StakingIssuanceVault: Get<Self::AccountId>

The account id that holds the staking issuance

source

type TotalCrowdloanAllocation: Get<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance>

The total mga allocated for crowdloans

source

type ImmediateTGEReleasePercent: Get<Percent>

The maximum amount of Mangata tokens

source

type IssuanceCap: Get<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance>

The maximum amount of Mangata tokens

source

type LinearIssuanceBlocks: Get<u32>

The number of blocks the issuance is linear

source

type LiquidityMiningSplit: Get<Perbill>

The split of issuance for liquidity mining rewards

source

type StakingSplit: Get<Perbill>

The split of issuance for staking rewards

source

type TGEReleasePeriod: Get<u32>

The number of blocks the tge tokens vest for

source

type TGEReleaseBegin: Get<u32>

The block at which the tge tokens begin to vest

source

type VestingProvider: MultiTokenVestingSchedule<Self::AccountId, Currency = Self::Tokens, Moment = BlockNumberFor<Self>>

The vesting pallet

source

type WeightInfo: WeightInfo

source

type LiquidityMiningApi: LiquidityMiningApi<<<Self as Config>::Tokens as MultiTokenCurrency<<Self as Config>::AccountId>>::Balance>

Implementors§