referrerpolicy=no-referrer-when-downgrade

Type Alias RcCrowdloanContribution

Source
pub type RcCrowdloanContribution<T: Config> = StorageNMap<_GeneratedPrefixForStorageRcCrowdloanContribution<T>, (NMapKey<Twox64Concat, BlockNumberFor<T>>, NMapKey<Twox64Concat, ParaId>, NMapKey<Twox64Concat, T::AccountId>), (T::AccountId, BalanceOf<T>), OptionQuery>;
Expand description

Amount of balance that a contributor made towards a crowdloan.

withdraw_crowdloan_contribution can be permissionlessly called once the block number passed to unlock the balance for a specific account.

The keys are as follows:

  • Block number after which the balance can be unlocked.
  • The para_id of the crowdloan.
  • The account that made the contribution.

The value is (fund_pot, balance). The contribution pot is the second key in the RcCrowdloanContribution storage.

Storage type is [StorageNMap] with keys type (BlockNumberFor < T >, ParaId, T :: AccountId) and value type (T :: AccountId, BalanceOf < T >).

Aliased Type§

struct RcCrowdloanContribution<T: Config>(/* private fields */);