import '@polkadot/api-base/types/consts'; import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; import type { bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { AccountId32, Perbill, Permill } from '@polkadot/types/interfaces/runtime'; import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; declare module '@polkadot/api-base/types/consts' { interface AugmentedConsts { asset: { /** * Max length for the Asset Metadata type name. **/ assetMetadataNameMaxLength: u32 & AugmentedConst; /** * Max length for the Asset Metadata type definition. **/ assetMetadataTypeDefMaxLength: u32 & AugmentedConst; /** * Max length for the Asset Metadata value. **/ assetMetadataValueMaxLength: u32 & AugmentedConst; /** * Max length for the name of an asset. **/ assetNameMaxLength: u32 & AugmentedConst; /** * Max length of the funding round name. **/ fundingRoundNameMaxLength: u32 & AugmentedConst; /** * Maximum number of mediators for an asset. **/ maxAssetMediators: u32 & 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; /** * The maximum number of nominators for each validator. **/ maxNominators: u32 & AugmentedConst; }; balances: { /** * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! * * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for * this pallet. However, you do so at your own risk: this will open up a major DoS vector. * In case you have multiple sources of provider references, you may also get unexpected * behaviour if you set this to zero. * * Bottom line: Do yourself a favour and make it at least one! **/ existentialDeposit: u128 & AugmentedConst; /** * The maximum number of individual freeze locks that can exist on an account at any time. **/ maxFreezes: u32 & AugmentedConst; /** * The maximum number of locks that should exist on an account. * Not strictly enforced, but used for weight estimation. * * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` **/ maxLocks: u32 & AugmentedConst; /** * The maximum number of named reserves that can exist on an account. * * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` **/ maxReserves: u32 & AugmentedConst; }; base: { /** * The maximum length governing `TooLong`. * * How lengths are computed to compare against this value is situation based. * For example, you could halve it, double it, compute a sum for some tree of strings, etc. **/ maxLen: u32 & AugmentedConst; }; beefy: { /** * The maximum number of authorities that can be added. **/ maxAuthorities: u32 & AugmentedConst; /** * The maximum number of nominators for each validator. **/ maxNominators: 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; }; complianceManager: { /** * The maximum claim reads that are allowed to happen in worst case of a condition resolution **/ maxConditionComplexity: u32 & AugmentedConst; /** * The maximum number of trusted issuers allowed in the default trusted claim issuers of an asset * and in the `issuers` list of each condition. **/ maximumNumberOfTrustedIssuers: u32 & AugmentedConst; /** * The maximum number of claim types a trusted issuer can be trusted for (`TrustedFor::Specific`). **/ maxTrustedIssuerClaimTypes: u32 & AugmentedConst; }; confidentialAssets: { /** * Get the Confidential Assets fee account id. **/ feeAccountId: AccountId32 & AugmentedConst; /** * The maximum number of account asset registration proofs in a single transaction. **/ maxAccountAssetRegProofs: u32 & AugmentedConst; /** * The maximum age of historical account curve tree roots. **/ maxAccountCurveTreeRootAge: u64 & AugmentedConst; /** * The maximum number of asset auditors. **/ maxAssetAuditors: u32 & AugmentedConst; /** * The maximum age of historical asset curve tree roots. **/ maxAssetCurveTreeRootAge: u64 & AugmentedConst; /** * Maximum asset data length. **/ maxAssetDataLength: u32 & AugmentedConst; /** * The maximum number of asset encryption keys (mediators + auditors). **/ maxAssetEncryptionKeys: u32 & AugmentedConst; /** * The maximum number of asset mediators. **/ maxAssetMediators: u32 & AugmentedConst; /** * The maximum number of proofs in a single batched proof. **/ maxBatchedProofs: u32 & AugmentedConst; /** * The maximum age of historical fee account curve tree roots. **/ maxFeeAccountCurveTreeRootAge: u64 & AugmentedConst; /** * The maximum number of fee account registration proofs in a single transaction. **/ maxFeeAccountRegProofs: u32 & AugmentedConst; /** * The maximum number of fee account topup proofs in a single transaction. **/ maxFeeAccountTopupProofs: u32 & AugmentedConst; /** * The maximum number of keys in an account registration proof. **/ maxKeysPerRegProof: u32 & AugmentedConst; /** * Maximum fee a relayer may charge above the transaction fee. **/ maxRelayerCommission: u128 & AugmentedConst; /** * The maximum number of legs in a settlement. **/ maxSettlementLegs: u32 & AugmentedConst; /** * The maximum settlement memo length. **/ maxSettlementMemoLength: u32 & AugmentedConst; /** * The maximum number of recipients a shared encryption key can be distributed to. **/ maxSharedKeyRecipients: u32 & AugmentedConst; /** * Maximum total supply. **/ maxTotalSupply: u128 & AugmentedConst; /** * The maximum number of trusted claim issuers per gated action. **/ maxTrustedClaimIssuers: u32 & AugmentedConst; /** * The minimum time between curve tree root updates. * * If there hasn't been transactions to cause a curve tree root update for a while, a new root will be recorded. **/ minCurveTreeRootUpdateInterval: u64 & AugmentedConst; /** * Get the Confidential Assets fee pallet id. **/ palletFeeId: FrameSupportPalletId & AugmentedConst; }; corporateAction: { /** * Max number of per-DID withholding tax overrides. **/ maxDidWhts: u32 & AugmentedConst; /** * Max number of DID specified in `TargetIdentities`. **/ maxTargetIds: u32 & AugmentedConst; }; electionProviderMultiPhase: { /** * The minimum amount of improvement to the solution score that defines a solution as * "better" in the Signed phase. **/ betterSignedThreshold: Perbill & AugmentedConst; /** * Maximum number of voters that can support a winner in an election solution. * * This is needed to ensure election computation is bounded. **/ maxBackersPerWinner: u32 & AugmentedConst; /** * Maximum number of winners that an election supports. * * 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; /** * 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; /** * Base reward for a signed solution **/ signedRewardBase: u128 & AugmentedConst; }; grandpa: { /** * Max Authorities in use **/ maxAuthorities: u32 & AugmentedConst; /** * The maximum number of nominators for each validator. **/ maxNominators: 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; }; identity: { /** * POLYX given to primary keys of all new Identities **/ initialPOLYX: u128 & AugmentedConst; /** * Maximum number of retry attempts allowed for an authorization * before it is considered unusable. **/ maxAuthRetries: u8 & AugmentedConst; /** * Maximum number of authorizations an identity can give. **/ maxGivenAuths: u32 & 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; }; indices: { /** * The deposit needed for reserving an index. **/ deposit: u128 & AugmentedConst; }; multiBlockMigrations: { /** * The maximal length of an encoded cursor. * * A good default needs to selected such that no migration will ever have a cursor with MEL * above this limit. This is statically checked in `integrity_test`. **/ cursorMaxLen: u32 & AugmentedConst; /** * The maximal length of an encoded identifier. * * A good default needs to selected such that no migration will ever have an identifier * with MEL above this limit. This is statically checked in `integrity_test`. **/ identifierMaxLen: u32 & AugmentedConst; }; multiSig: { /** * Maximum number of signers that can be added/removed in one call. **/ maxSigners: u32 & AugmentedConst; }; nft: { maxNumberOfCollectionKeys: u8 & AugmentedConst; maxNumberOfNFTsCount: u32 & AugmentedConst; }; pips: { /** * The maximum number of votes that can be pruned at once. **/ maxRefundsAndVotesPruned: u32 & AugmentedConst; }; portfolio: { /** * Maximum number of fungible assets that can be moved in a single transfer call. **/ maxNumberOfFungibleMoves: u32 & AugmentedConst; /** * Maximum number of NFTs that can be moved in a single transfer call. **/ maxNumberOfNFTsMoves: u32 & AugmentedConst; }; revive: { /** * Allow EVM bytecode to be uploaded and instantiated. **/ allowEVMBytecode: bool & AugmentedConst; /** * The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID. * * This is a unique identifier assigned to each blockchain network, * preventing replay attacks. **/ chainId: u64 & AugmentedConst; /** * The percentage of the storage deposit that should be held for using a code hash. * Instantiating a contract, protects the code from being removed. In order to prevent * abuse these actions are protected with a percentage of the code deposit. **/ codeHashLockupDepositPercent: Perbill & AugmentedConst; /** * Allows debug-mode configuration, such as enabling unlimited contract size. **/ debugEnabled: bool & AugmentedConst; /** * The amount of balance a caller has to pay for each byte of storage. * * # Note * * It is safe to change this value on a live chain as all refunds are pro rata. **/ depositPerByte: u128 & AugmentedConst; /** * The amount of balance a caller has to pay for each child trie storage item. * * Those are the items created by a contract. In Solidity each value is a single * storage item. This is why we need to set a lower value here than for the main * trie items. Otherwise the storage deposit is too high. * * # Note * * It is safe to change this value on a live chain as all refunds are pro rata. **/ depositPerChildTrieItem: u128 & AugmentedConst; /** * The amount of balance a caller has to pay for each storage item. * * # Note * * It is safe to change this value on a live chain as all refunds are pro rata. **/ depositPerItem: u128 & AugmentedConst; /** * This determines the relative scale of our gas price and gas estimates. * * By default, the gas price (in wei) is `FeeInfo::next_fee_multiplier()` multiplied by * `NativeToEthRatio`. `GasScale` allows to scale this value: the actual gas price is the * default gas price multiplied by `GasScale`. * * As a consequence, gas cost (gas estimates and actual gas usage during transaction) is * scaled down by the same factor. Thus, the total transaction cost is not affected by * `GasScale` – apart from rounding differences: the transaction cost is always a multiple * of the gas price and is derived by rounded up, so that with higher `GasScales` this can * lead to higher gas cost as the rounding difference would be larger. * * The main purpose of changing the `GasScale` is to tune the gas cost so that it is closer * to standard EVM gas cost and contracts will not run out of gas when tools or code * assume hard coded gas limits. * * Requirement: `GasScale` must not be 0 **/ gasScale: u32 & AugmentedConst; /** * The fraction the maximum extrinsic weight `eth_transact` extrinsics are capped to. * * This is not a security measure but a requirement due to how we map gas to `(Weight, * StorageDeposit)`. The mapping might derive a `Weight` that is too large to fit into an * extrinsic. In this case we cap it to the limit specified here. * * `eth_transact` transactions that use more weight than specified will fail with an out of * gas error during execution. Larger fractions will allow more transactions to run. * Smaller values waste less block space: Choose as small as possible and as large as * necessary. * * Default: `0.5`. **/ maxEthExtrinsicWeight: u128 & AugmentedConst; /** * The ratio between the decimal representation of the native token and the ETH token. **/ nativeToEthRatio: u64 & AugmentedConst; }; scheduler: { /** * The maximum weight that may be scheduled per block for any dispatchables. **/ maximumWeight: SpWeightsWeightV2Weight & AugmentedConst; /** * The maximum number of scheduled calls in the queue for a single block. * * NOTE: * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a * higher limit under `runtime-benchmarks` feature. **/ maxScheduledPerBlock: u32 & AugmentedConst; }; session: { /** * The amount to be held when setting keys. **/ keyDeposit: u128 & AugmentedConst; }; settlement: { /** * The maximum time period that an instruction can be held in the `LockedForExecution` status. **/ maximumLockPeriod: u64 & AugmentedConst; /** * Maximum number mediators in the instruction level (this does not include asset mediators). **/ maxInstructionMediators: u32 & AugmentedConst; /** * Maximum number of portfolios. **/ maxNumberOfAssetHolders: u32 & AugmentedConst; /** * Maximum number of fungible assets that can be in a single instruction. **/ maxNumberOfFungibleAssets: u32 & AugmentedConst; /** * Maximum number of NFTs that can be transferred in a instruction. **/ maxNumberOfNFTs: u32 & AugmentedConst; /** * Maximum number of NFTs that can be transferred in a leg. **/ maxNumberOfNFTsPerLeg: u32 & AugmentedConst; /** * Maximum number of off-chain assets that can be transferred in a instruction. **/ maxNumberOfOffChainAssets: u32 & AugmentedConst; /** * Maximum number of venue signers. **/ maxNumberOfVenueSigners: u32 & AugmentedConst; /** * The maximum number of times an instruction can be relocked. **/ maxRelockCount: u32 & AugmentedConst; /** * The minimum cooldown period a mediator must wait after unlocking before relocking an instruction. **/ relockCooldown: u64 & 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`, `ClaimedRewards`, `ErasStakersPaged`, * `ErasStakersOverview`. * * 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.legacy_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; /** * The maximum size of each `T::ExposurePage`. * * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize` * nominators. * * For older non-paged exposure, a reward payout was restricted to the top * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the * nominator payout. * * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce * without handling it in a migration. **/ maxExposurePageSize: 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; /** * The absolute maximum of winner validators this pallet should return. **/ maxValidatorSet: 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; }; statistics: { /** * Maximum stats that can be enabled for an Asset. **/ maxStatsPerAsset: u32 & AugmentedConst; /** * Maximum transfer conditions that can be enabled for an Asset. **/ maxTransferConditionsPerAsset: u32 & 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 in-code version. **/ version: SpVersionRuntimeVersion & AugmentedConst; }; timestamp: { /** * The minimum period between blocks. * * Be aware 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. For example, in the Aura pallet it will be double this * period on default settings. **/ minimumPeriod: u64 & AugmentedConst; }; transactionPayment: { /** * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their * `priority` * * This value is multiplied 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; }; validators: { /** * Yearly total reward amount that gets distributed when fixed rewards kicks in. **/ fixedYearlyReward: u128 & AugmentedConst; /** * Maximum weight for paying out stakers. **/ maxPayoutWeight: SpWeightsWeightV2Weight & AugmentedConst; /** * Maximum amount of validators that can run by an identity. * It will be MaxValidatorPerIdentity * Self::validator_count(). **/ maxValidatorPerIdentity: Permill & AugmentedConst; /** * Maximum amount of total issuance after which fixed rewards kicks in. **/ maxVariableInflationTotalIssuance: u128 & AugmentedConst; }; } } //# sourceMappingURL=augment-api-consts.d.ts.map