import '@polkadot/api-base/types/consts'; import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; import type { U8aFixed, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Perbill } from '@polkadot/types/interfaces/runtime'; import type { FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContentLimitPerPeriod, PalletProposalsEngineProposalParameters, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; declare module '@polkadot/api-base/types/consts' { interface AugmentedConsts { appWorkingGroup: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; babe: { /** * The amount of time, in slots, that each epoch should last. * NOTE: Currently it is not possible to change the epoch duration after * the chain has started. Attempting to do so will brick block production. **/ epochDuration: u64 & AugmentedConst; /** * The expected average block time at which BABE should be creating * blocks. Since BABE is probabilistic it is not trivial to figure out * what the expected average block time should be based on the slot * duration and the security parameter `c` (where `1 - c` represents * the probability of a slot being empty). **/ expectedBlockTime: u64 & AugmentedConst; /** * Max number of authorities allowed **/ maxAuthorities: u32 & AugmentedConst; }; balances: { /** * The minimum amount required to keep an account open. **/ existentialDeposit: u128 & AugmentedConst; /** * The maximum number of locks that should exist on an account. * Not strictly enforced, but used for weight estimation. **/ maxLocks: u32 & AugmentedConst; /** * The maximum number of named reserves that can exist on an account. **/ maxReserves: u32 & AugmentedConst; }; bounty: { /** * Exports const - max work entry number for a closed assurance type contract bounty. **/ closedContractSizeLimit: u32 & AugmentedConst; /** * Exports const - creator state bloat bond amount for a bounty. **/ creatorStateBloatBondAmount: u128 & AugmentedConst; /** * Exports const - funder state bloat bond amount for a bounty. **/ funderStateBloatBondAmount: u128 & AugmentedConst; /** * Exports const - min work entrant stake for a bounty. **/ minWorkEntrantStake: u128 & AugmentedConst; }; content: { /** * Exports const - default channel daily NFT limit. **/ defaultChannelDailyNftLimit: PalletContentLimitPerPeriod & AugmentedConst; /** * Exports const - default channel weekly NFT limit. **/ defaultChannelWeeklyNftLimit: PalletContentLimitPerPeriod & AugmentedConst; /** * Exports const - default global daily NFT limit. **/ defaultGlobalDailyNftLimit: PalletContentLimitPerPeriod & AugmentedConst; /** * Exports const - default global weekly NFT limit. **/ defaultGlobalWeeklyNftLimit: PalletContentLimitPerPeriod & AugmentedConst; /** * Export const - max cashout allowed limits **/ maximumCashoutAllowedLimit: u128 & AugmentedConst; /** * Exports const - max number of keys per curator_group.permissions_by_level map instance **/ maxKeysPerCuratorGroupPermissionsByLevelMap: u32 & AugmentedConst; /** * Exports const - max nft auction whitelist length **/ maxNftAuctionWhitelistLength: u32 & AugmentedConst; /** * Exports const - max number of curators per group **/ maxNumberOfCuratorsPerGroup: u32 & AugmentedConst; /** * Export const - min cashout allowed limits **/ minimumCashoutAllowedLimit: u128 & AugmentedConst; }; contentWorkingGroup: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; council: { /** * Duration of annoncing period **/ announcingPeriodDuration: u32 & AugmentedConst; /** * Interval between automatic budget refills. **/ budgetRefillPeriod: u32 & AugmentedConst; /** * Exports const - candidacy lock id. **/ candidacyLockId: U8aFixed & AugmentedConst; /** * Exports const - councilor lock id. **/ councilorLockId: U8aFixed & AugmentedConst; /** * Council member count **/ councilSize: u32 & AugmentedConst; /** * Interval for automatic reward payments. **/ electedMemberRewardPeriod: u32 & AugmentedConst; /** * Duration of idle period **/ idlePeriodDuration: u32 & AugmentedConst; /** * Minimum stake candidate has to lock **/ minCandidateStake: u128 & AugmentedConst; /** * Minimum number of extra candidates needed for the valid election. * Number of total candidates is equal to council size plus extra candidates. **/ minNumberOfExtraCandidates: u32 & AugmentedConst; }; distributionWorkingGroup: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; electionProviderMultiPhase: { /** * The minimum amount of improvement to the solution score that defines a solution as * "better" in the Signed phase. **/ betterSignedThreshold: Perbill & AugmentedConst; /** * The minimum amount of improvement to the solution score that defines a solution as * "better" in the Unsigned phase. **/ betterUnsignedThreshold: Perbill & AugmentedConst; /** * The maximum number of electable targets to put in the snapshot. **/ maxElectableTargets: u16 & AugmentedConst; /** * The maximum number of electing voters to put in the snapshot. At the moment, snapshots * are only over a single block, but once multi-block elections are introduced they will * take place over multiple blocks. **/ maxElectingVoters: u32 & AugmentedConst; /** * The maximum number of winners that can be elected by this `ElectionProvider` * implementation. * * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`. **/ maxWinners: u32 & AugmentedConst; minerMaxLength: u32 & AugmentedConst; minerMaxVotesPerVoter: u32 & AugmentedConst; minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst; minerMaxWinners: u32 & AugmentedConst; /** * The priority of the unsigned transaction submitted in the unsigned-phase **/ minerTxPriority: u64 & AugmentedConst; /** * The repeat threshold of the offchain worker. * * For example, if it is 5, that means that at least 5 blocks will elapse between attempts * to submit the worker's solution. **/ offchainRepeat: u32 & AugmentedConst; /** * Base deposit for a signed solution. **/ signedDepositBase: u128 & AugmentedConst; /** * Per-byte deposit for a signed solution. **/ signedDepositByte: u128 & AugmentedConst; /** * Per-weight deposit for a signed solution. **/ signedDepositWeight: u128 & AugmentedConst; /** * The maximum amount of unchecked solutions to refund the call fee for. **/ signedMaxRefunds: u32 & AugmentedConst; /** * Maximum number of signed submissions that can be queued. * * It is best to avoid adjusting this during an election, as it impacts downstream data * structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you * update this value during an election, you _must_ ensure that * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise, * attempts to submit new solutions may cause a runtime panic. **/ signedMaxSubmissions: u32 & AugmentedConst; /** * Maximum weight of a signed solution. * * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of * this pallet), then [`MinerConfig::solution_weight`] is used to compare against * this value. **/ signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst; /** * Duration of the signed phase. **/ signedPhase: u32 & AugmentedConst; /** * Base reward for a signed solution **/ signedRewardBase: u128 & AugmentedConst; /** * Duration of the unsigned phase. **/ unsignedPhase: u32 & AugmentedConst; }; forum: { /** * MaxDirectSubcategoriesInCategory **/ maxDirectSubcategoriesInCategory: u64 & AugmentedConst; /** * MaxTotalCategories **/ maxTotalCategories: u64 & AugmentedConst; /** * Exports const * Deposit needed to create a post **/ postDeposit: u128 & AugmentedConst; /** * Deposit needed to create a thread **/ threadDeposit: u128 & AugmentedConst; }; forumWorkingGroup: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; grandpa: { /** * Max Authorities in use **/ maxAuthorities: u32 & AugmentedConst; /** * The maximum number of entries to keep in the set id to session index mapping. * * Since the `SetIdSession` map is only used for validating equivocations this * value should relate to the bonding duration of whatever staking system is * being used (if any). If equivocation handling is not enabled then this value * can be zero. **/ maxSetIdSessionEntries: u64 & AugmentedConst; }; imOnline: { /** * A configuration for base priority of unsigned transactions. * * This is exposed so that it can be tuned for particular runtime, when * multiple pallets send unsigned transactions. **/ unsignedPriority: u64 & AugmentedConst; }; members: { /** * Exports const - Stake needed to candidate as staking account. **/ candidateStake: u128 & AugmentedConst; /** * Exports const - default balance for the invited member. **/ defaultInitialInvitationBalance: u128 & AugmentedConst; /** * Exports const - default membership fee. **/ defaultMembershipPrice: u128 & AugmentedConst; /** * Exports const - invited member lock id. **/ invitedMemberLockId: U8aFixed & AugmentedConst; /** * Exports const - maximum percent value of the membership fee for the referral cut. **/ referralCutMaximumPercent: u8 & AugmentedConst; /** * Exports const - staking candidate lock id. **/ stakingCandidateLockId: U8aFixed & AugmentedConst; }; membershipWorkingGroup: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; multisig: { /** * The base amount of currency needed to reserve for creating a multisig execution or to * store a dispatch call for later. * * This is held for an additional storage item whose value size is * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is * `32 + sizeof(AccountId)` bytes. **/ depositBase: u128 & AugmentedConst; /** * The amount of currency needed per unit threshold when creating a multisig execution. * * This is held for adding 32 bytes more into a pre-existing storage value. **/ depositFactor: u128 & AugmentedConst; /** * The maximum amount of signatories allowed in the multisig. **/ maxSignatories: u32 & AugmentedConst; }; operationsWorkingGroupAlpha: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; operationsWorkingGroupBeta: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; operationsWorkingGroupGamma: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; proposalsCodex: { /** * Exports 'Amend Constitution' proposal parameters. **/ amendConstitutionProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Cancel Working Group Lead Opening' proposal parameters. **/ cancelWorkingGroupLeadOpeningProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Create Working Group Lead Opening' proposal parameters. **/ createWorkingGroupLeadOpeningProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Decrease Council budget parameters **/ decreaseCouncilBudgetProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Decrease Working Group Lead Stake' proposal parameters. **/ decreaseWorkingGroupLeadStakeProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Fill Working Group Lead Opening' proposal parameters. **/ fillWorkingGroupOpeningProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Max number of accounts per funding request proposal **/ fundingRequestProposalMaxAccounts: u32 & AugmentedConst; /** * Maximum total amount in funding request proposal **/ fundingRequestProposalMaxTotalAmount: u128 & AugmentedConst; /** * Exports 'Funding Request' proposal parameters. **/ fundingRequestProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Runtime Upgrade' proposal parameters. **/ runtimeUpgradeProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports `Set Council Budget Increment` proposal parameters. **/ setCouncilBudgetIncrementProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports `Set Councilor Reward Proposal Parameters` proposal parameters. **/ setCouncilorRewardProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Era payout damping factor **/ setEraPayoutDampingFactorProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports `Set Initial Invitation Balance` proposal parameters. **/ setInitialInvitationBalanceProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; setInvitationCountProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Max allowed number of validators in set max validator count proposal **/ setMaxValidatorCountProposalMaxValidators: u32 & AugmentedConst; /** * Exports 'Set Max Validator Count' proposal parameters. **/ setMaxValidatorCountProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; setMembershipLeadInvitationQuotaProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Set Membership Price' proposal parameters. **/ setMembershipPriceProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Set Pallet Frozen status **/ setPalletFozenStatusProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; setReferralCutProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Set Working Group Lead Reward' proposal parameters. **/ setWorkingGroupLeadRewardProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Signal' proposal parameters. **/ signalProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Slash Working Group Lead' proposal parameters. **/ slashWorkingGroupLeadProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Terminate Working Group Lead' proposal parameters. **/ terminateWorkingGroupLeadProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Set Argo Bridge Constraints **/ updateArgoBridgeConstraints: PalletProposalsEngineProposalParameters & AugmentedConst; updateChannelPayoutsProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; updateGlobalNftLimitProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; /** * pallet token governance parameters proposal **/ updateTokenPalletTokenConstraints: PalletProposalsEngineProposalParameters & AugmentedConst; /** * Exports 'Update Working Group Budget' proposal parameters. **/ updateWorkingGroupBudgetProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; vetoProposalProposalParameters: PalletProposalsEngineProposalParameters & AugmentedConst; }; proposalsDiscussion: { /** * Exports const - author list size limit for the Closed discussion. **/ maxWhiteListSize: u32 & AugmentedConst; /** * Exports const - fee for creating a post **/ postDeposit: u128 & AugmentedConst; /** * Exports const - maximum number of blocks before a post can be erased by anyone **/ postLifeTime: u32 & AugmentedConst; }; proposalsEngine: { /** * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned). **/ cancellationFee: u128 & AugmentedConst; /** * Exports const - max allowed proposal description length. **/ descriptionMaxLength: u32 & AugmentedConst; /** * Exports const - max simultaneous active proposals number. **/ maxActiveProposalLimit: u32 & AugmentedConst; /** * Exports const - the fee is applied when the proposal gets rejected. A fee would * be slashed (burned). **/ rejectionFee: u128 & AugmentedConst; /** * Exports const - staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; /** * Exports const - max allowed proposal title length. **/ titleMaxLength: u32 & AugmentedConst; }; proxy: { /** * The base amount of currency needed to reserve for creating an announcement. * * This is held when a new storage item holding a `Balance` is created (typically 16 * bytes). **/ announcementDepositBase: u128 & AugmentedConst; /** * The amount of currency needed per announcement made. * * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) * into a pre-existing storage value. **/ announcementDepositFactor: u128 & AugmentedConst; /** * The maximum amount of time-delayed announcements that are allowed to be pending. **/ maxPending: u32 & AugmentedConst; /** * The maximum amount of proxies allowed for a single account. **/ maxProxies: u32 & AugmentedConst; /** * The base amount of currency needed to reserve for creating a proxy. * * This is held for an additional storage item whose value size is * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. **/ proxyDepositBase: u128 & AugmentedConst; /** * The amount of currency needed per proxy added. * * This is held for adding 32 bytes plus an instance of `ProxyType` more into a * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take * into account `32 + proxy_type.encode().len()` bytes of data. **/ proxyDepositFactor: u128 & AugmentedConst; }; referendum: { /** * Maximum length of vote commitment salt. Use length that ensures uniqueness for hashing * e.g. std::u64::MAX. **/ maxSaltLength: u64 & AugmentedConst; /** * Minimum stake needed for voting **/ minimumStake: u128 & AugmentedConst; /** * Duration of revealing stage (number of blocks) **/ revealStageDuration: u32 & AugmentedConst; /** * Exports const - staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; /** * Duration of voting stage (number of blocks) **/ voteStageDuration: u32 & AugmentedConst; }; staking: { /** * Number of eras that staked funds must remain bonded for. **/ bondingDuration: u32 & AugmentedConst; /** * Number of eras to keep in history. * * Following information is kept for eras in `[current_era - * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`, * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`, * `ErasTotalStake`, `ErasStartSessionIndex`, * `StakingLedger.claimed_rewards`. * * Must be more than the number of eras delayed by session. * I.e. active era must always be in history. I.e. `active_era > * current_era - history_depth` must be guaranteed. * * If migrating an existing pallet from storage value to config value, * this should be set to same value or greater as in storage. * * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec` * item `StakingLedger.claimed_rewards`. Setting this value lower than * the existing value can lead to inconsistencies in the * `StakingLedger` and will need to be handled properly in a migration. * The test `reducing_history_depth_abrupt` shows this effect. **/ historyDepth: u32 & AugmentedConst; /** * Maximum number of nominations per nominator. **/ maxNominations: u32 & AugmentedConst; /** * The maximum number of nominators rewarded for each validator. * * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can * claim their reward. This used to limit the i/o cost for the nominator payout. **/ maxNominatorRewardedPerValidator: u32 & AugmentedConst; /** * The maximum number of `unlocking` chunks a [`StakingLedger`] can * have. Effectively determines how many unique eras a staker may be * unbonding in. * * Note: `MaxUnlockingChunks` is used as the upper bound for the * `BoundedVec` item `StakingLedger.unlocking`. Setting this value * lower than the existing value can lead to inconsistencies in the * `StakingLedger` and will need to be handled properly in a runtime * migration. The test `reducing_max_unlocking_chunks_abrupt` shows * this effect. **/ maxUnlockingChunks: u32 & AugmentedConst; /** * Number of sessions per era. **/ sessionsPerEra: u32 & AugmentedConst; /** * Number of eras that slashes are deferred by, after computation. * * This should be less than the bonding duration. Set to 0 if slashes * should be applied immediately, without opportunity for intervention. **/ slashDeferDuration: u32 & AugmentedConst; }; storage: { /** * Exports const - maximum size of the "hash blacklist" collection. **/ blacklistSizeLimit: u64 & AugmentedConst; /** * Exports const - the default dynamic bag creation policy for channels (storage bucket * number). **/ defaultChannelDynamicBagNumberOfStorageBuckets: u32 & AugmentedConst; /** * Exports const - the default dynamic bag creation policy for members (storage bucket * number). **/ defaultMemberDynamicBagNumberOfStorageBuckets: u32 & AugmentedConst; /** * Exports const - max data object size in bytes. **/ maxDataObjectSize: u64 & AugmentedConst; /** * Exports const - max allowed distribution bucket family number. **/ maxDistributionBucketFamilyNumber: u64 & AugmentedConst; /** * Exports const - maximum number of distribution buckets per bag. **/ maxDistributionBucketsPerBag: u32 & AugmentedConst; /** * Exports const - max number of operators per distribution bucket. **/ maxNumberOfOperatorsPerDistributionBucket: u32 & AugmentedConst; /** * Exports const - max number of pending invitations per distribution bucket. **/ maxNumberOfPendingInvitationsPerDistributionBucket: u32 & AugmentedConst; /** * Exports const - maximum number of storage buckets per bag. **/ maxStorageBucketsPerBag: u32 & AugmentedConst; /** * Exports const - minimum number of distribution buckets per bag. **/ minDistributionBucketsPerBag: u32 & AugmentedConst; /** * Exports const - minimum number of storage buckets per bag. **/ minStorageBucketsPerBag: u32 & AugmentedConst; }; storageWorkingGroup: { /** * Stake needed to create an opening. **/ leaderOpeningStake: u128 & AugmentedConst; /** * Exports const * Max simultaneous active worker number. **/ maxWorkerNumberLimit: u32 & AugmentedConst; /** * Minimum stake required for applying into an opening. **/ minimumApplicationStake: u128 & AugmentedConst; /** * Defines min unstaking period in the group. **/ minUnstakingPeriodLimit: u32 & AugmentedConst; /** * Defines the period every worker gets paid in blocks. **/ rewardPeriod: u32 & AugmentedConst; /** * Staking handler lock id. **/ stakingHandlerLockId: U8aFixed & AugmentedConst; }; system: { /** * Maximum number of block number to block hash mappings to keep (oldest pruned first). **/ blockHashCount: u32 & AugmentedConst; /** * The maximum length of a block (in bytes). **/ blockLength: FrameSystemLimitsBlockLength & AugmentedConst; /** * Block & extrinsics weights: base values and limits. **/ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst; /** * The weight of runtime database operations the runtime can invoke. **/ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst; /** * The designated SS58 prefix of this chain. * * This replaces the "ss58Format" property declared in the chain spec. Reason is * that the runtime should know about the prefix in order to make use of it as * an identifier of the chain. **/ ss58Prefix: u16 & AugmentedConst; /** * Get the chain's current version. **/ version: SpVersionRuntimeVersion & AugmentedConst; }; timestamp: { /** * The minimum period between blocks. Beware that this is different to the *expected* * period that the block production apparatus provides. Your chosen consensus system will * generally work with this to determine a sensible block time. e.g. For Aura, it will be * double this period on default settings. **/ minimumPeriod: u64 & AugmentedConst; }; transactionPayment: { /** * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their * `priority` * * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later * added to a tip component in regular `priority` calculations. * It means that a `Normal` transaction can front-run a similarly-sized `Operational` * extrinsic (with no tip), by including a tip value greater than the virtual tip. * * ```rust,ignore * // For `Normal` * let priority = priority_calc(tip); * * // For `Operational` * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; * let priority = priority_calc(tip + virtual_tip); * ``` * * Note that since we use `final_fee` the multiplier applies also to the regular `tip` * sent with the transaction. So, not only does the transaction get a priority bump based * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` * transactions. **/ operationalFeeMultiplier: u8 & AugmentedConst; }; utility: { /** * The limit on the number of batched calls. **/ batchedCallsLimit: u32 & AugmentedConst; }; vesting: { maxVestingSchedules: u32 & AugmentedConst; /** * The minimum amount transferred to call `vested_transfer`. **/ minVestedTransfer: u128 & AugmentedConst; }; voterList: { /** * The list of thresholds separating the various bags. * * Ids are separated into unsorted bags according to their score. This specifies the * thresholds separating the bags. An id's bag is the largest bag for which the id's score * is less than or equal to its upper threshold. * * When ids are iterated, higher bags are iterated completely before lower bags. This means * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower * score, but peer ids within a particular bag are sorted in insertion order. * * # Expressing the constant * * This constant must be sorted in strictly increasing order. Duplicate items are not * permitted. * * There is an implied upper limit of `Score::MAX`; that value does not need to be * specified within the bag. For any two threshold lists, if one ends with * `Score::MAX`, the other one does not, and they are otherwise equal, the two * lists will behave identically. * * # Calculation * * It is recommended to generate the set of thresholds in a geometric series, such that * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] * * constant_ratio).max(threshold[k] + 1)` for all `k`. * * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation. * * # Examples * * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and * iteration is strictly in insertion order. * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to * the procedure given above, then the constant ratio is equal to 2. * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to * the procedure given above, then the constant ratio is approximately equal to 1.248. * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall * into bag 0, an id with score 2 will fall into bag 1, etc. * * # Migration * * In the event that this list ever changes, a copy of the old bags list must be retained. * With that `List::migrate` can be called, which will perform the appropriate migration. **/ bagThresholds: Vec & AugmentedConst; }; } }