Module pallet_bootstrap::pallet
source · Expand description
The pallet module in each FRAME pallet hosts the most important items needed
to construct this pallet.
The main components of this pallet are:
Pallet, which implements all of the dispatchable extrinsics of the pallet, among other public functions.- The subset of the functions that are dispatchable can be identified either in the
dispatchablesmodule or in theCallenum.
- The subset of the functions that are dispatchable can be identified either in the
storage_types, which contains the list of all types that are representing a storage item. Otherwise, all storage items are listed among Type Definitions.Config, which contains the configuration trait of this pallet.EventandError, which are listed among the Enums.
Modules
- Auto-generated docs-only module listing all defined dispatchables for this pallet.
- Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.
Structs
- The
Palletstruct, the main type that implements traits and standalone functions within the pallet.
Enums
- Contains a variant per dispatchable extrinsic that this pallet has.
- Errors
- The
Eventenum of this pallet
Traits
- Configuration trait of this pallet.
Type Definitions
- Currently bootstraped pair of tokens representaed as [
first_token_id,second_token_id] - Storage type is
StorageValuewith value typeVec < (BlockNumberFor < T >, u32, u32, (BalanceOf < T >, BalanceOf < T >)) >. - Active bootstrap parameters
- Maps (
frame_system::Config::AccountId, [CurrencyId] ) -> [Balance] - where [CurrencyId] is id of the token that user participated with. This storage item is used to identify how much liquidity tokens has been claim by the user. If user participated with 2 tokens there are two entries associated with given account (Address,first_token_id) and (Address,second_token_id) - Storage type is
StorageValuewith value type(CurrencyIdOf < T >, BalanceOf < T >). - ModuleDeprecatedType alias to
Pallet, to be used byconstruct_runtime. - Current state of bootstrap as
BootstrapPhase - Wheter to automatically promote the pool after [
BootstrapPhase::PublicPhase] or not. - List of accounts that provisioned funds to bootstrap and has not claimed liquidity tokens yet
- maps (
frame_system::Config::AccountId, [CurrencyId]) -> [Balance] - identifies how much tokens did account provisioned in active bootstrap - Total sum of provisions of
firstandsecondtoken in active bootstrap - maps (
frame_system::Config::AccountId, [CurrencyId]) -> [Balance] - identifies how much vested tokens did account provisioned in active bootstrap - list (
Vec<AccountId>) of whitelisted accounts allowed to participate inBootstrapPhase::Whitelistphase