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 { Codec } from '@polkadot/types-codec/types'; import type { AccountId32 } from '@polkadot/types/interfaces/runtime'; import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, InterbtcPrimitivesCurrencyId, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, XcmV3MultiLocation } from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; declare module '@polkadot/api-base/types/consts' { interface AugmentedConsts { btcRelay: { parachainBlocksPerBitcoinBlock: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; clientsInfo: { /** * The maximum length of a client name. **/ maxNameLength: u32 & AugmentedConst; /** * The maximum length of a client URI. **/ maxUriLength: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; currency: { /** * Native currency e.g. INTR/KINT **/ getNativeCurrencyId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * Relay chain currency e.g. DOT/KSM **/ getRelayChainCurrencyId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * Wrapped currency e.g. IBTC/KBTC **/ getWrappedCurrencyId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; democracy: { /** * The period between a proposal being approved and enacted. * * It should generally be a little more than the unstake period to ensure that * voting stakers have an opportunity to remove themselves from the system in the case * where they are on the losing side of a vote. **/ enactmentPeriod: u32 & AugmentedConst; /** * Minimum voting period allowed for a fast-track referendum. **/ fastTrackVotingPeriod: u32 & AugmentedConst; /** * The maximum number of deposits a public proposal may have at any time. **/ maxDeposits: u32 & AugmentedConst; /** * The maximum number of public proposals that can exist at any time. **/ maxProposals: u32 & AugmentedConst; /** * The maximum number of votes for an account. * * Also used to compute weight, an overly big value can * lead to extrinsic with very big weight. **/ maxVotes: u32 & AugmentedConst; /** * The minimum amount to be used as a deposit for a public referendum proposal. **/ minimumDeposit: u128 & AugmentedConst; /** * How often (in blocks) to check for new votes. **/ votingPeriod: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; dexGeneral: { /** * The maximum number of limits that can be stored **/ maxBootstrapLimits: u32 & AugmentedConst; /** * The maximum number of rewards that can be stored **/ maxBootstrapRewards: u32 & AugmentedConst; /** * This pallet id. **/ palletId: FrameSupportPalletId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; dexStable: { /** * This pallet ID. **/ palletId: FrameSupportPalletId & AugmentedConst; poolCurrencyLimit: u32 & AugmentedConst; poolCurrencySymbolLimit: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; escrow: { /** * The maximum time for locks. **/ maxPeriod: u32 & AugmentedConst; /** * All future times are rounded by this. **/ span: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; escrowAnnuity: { /** * The annuity module id, used for deriving its sovereign account ID. **/ annuityPalletId: FrameSupportPalletId & AugmentedConst; /** * The emission period for block rewards. **/ emissionPeriod: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; escrowRewards: { /** * The maximum number of reward currencies. **/ maxRewardCurrencies: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; farming: { /** * The farming pallet id, used for deriving pool accounts. **/ farmingPalletId: FrameSupportPalletId & AugmentedConst; /** * The period to accrue rewards. **/ rewardPeriod: u32 & AugmentedConst; /** * The treasury account id for funding pools. **/ treasuryAccountId: AccountId32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; farmingRewards: { /** * The maximum number of reward currencies. **/ maxRewardCurrencies: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; fee: { /** * The fee module id, used for deriving its sovereign account ID. **/ feePalletId: FrameSupportPalletId & AugmentedConst; /** * Maximum expected value to set the storage fields to. **/ maxExpectedValue: u128 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; identity: { /** * The amount held on deposit for a registered identity **/ basicDeposit: u128 & AugmentedConst; /** * The amount held on deposit per additional field for a registered identity. **/ fieldDeposit: u128 & AugmentedConst; /** * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O * required to access an identity, but can be pretty high. **/ maxAdditionalFields: u32 & AugmentedConst; /** * Maxmimum number of registrars allowed in the system. Needed to bound the complexity * of, e.g., updating judgements. **/ maxRegistrars: u32 & AugmentedConst; /** * The maximum number of sub-accounts allowed per identified account. **/ maxSubAccounts: u32 & AugmentedConst; /** * The amount held on deposit for a registered subaccount. This should account for the fact * that one storage item's value will increase by the size of an account ID, and there will * be another trie item whose value is the size of an account ID plus 32 bytes. **/ subAccountDeposit: u128 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; issue: { /** * The treasury pallet account for slashed griefing collateral. **/ treasuryPalletId: FrameSupportPalletId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; loans: { /** * The loan's module id, used to derive the account that holds the liquidity in all markets. **/ palletId: FrameSupportPalletId & AugmentedConst; /** * Reference currency for expressing asset prices. Example: USD, IBTC. **/ referenceAssetId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * Incentive reward asset id. **/ rewardAssetId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; 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; /** * Generic const **/ [key: string]: Codec; }; oracle: { /** * The maximum length of an oracle name. **/ maxNameLength: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; 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; /** * Generic const **/ [key: string]: Codec; }; 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; /** * Generic const **/ [key: string]: Codec; }; supply: { /** * The period between inflation updates. **/ inflationPeriod: u32 & AugmentedConst; /** * The supply module id, used for deriving its sovereign account ID. **/ supplyPalletId: FrameSupportPalletId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; 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; /** * Generic const **/ [key: string]: Codec; }; technicalCommittee: { /** * The maximum weight of a dispatch call that can be proposed and executed. **/ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; 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; /** * Generic const **/ [key: string]: Codec; }; tokens: { maxLocks: u32 & AugmentedConst; /** * The maximum number of named reserves that can exist on an account. **/ maxReserves: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; 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; /** * Generic const **/ [key: string]: Codec; }; txPause: { /** * Maximum length for pallet and call SCALE encoded string names. * * Too long names will not be truncated but handled like * [`Self::PauseTooLongNames`] specifies. **/ maxNameLen: u32 & AugmentedConst; /** * Specifies if functions and pallets with too long names should be treated as paused. * * Setting this to `true` ensures that all calls that * are callable, are also pause-able. * Otherwise there could be a situation where a call * is callable but not pause-able, which would could be exploited. **/ pauseTooLongNames: bool & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; utility: { /** * The limit on the number of batched calls. **/ batchedCallsLimit: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; vaultAnnuity: { /** * The annuity module id, used for deriving its sovereign account ID. **/ annuityPalletId: FrameSupportPalletId & AugmentedConst; /** * The emission period for block rewards. **/ emissionPeriod: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; vaultCapacity: { /** * The maximum number of reward currencies. **/ maxRewardCurrencies: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; vaultRegistry: { /** * Currency used for griefing collateral, e.g. DOT. **/ getGriefingCollateralCurrencyId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * The vault module id, used for deriving its sovereign account ID. **/ palletId: FrameSupportPalletId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; vaultRewards: { /** * The maximum number of reward currencies. **/ maxRewardCurrencies: u32 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; vaultStaking: { getNativeCurrencyId: InterbtcPrimitivesCurrencyId & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; vesting: { /** * The minimum amount transferred to call `vested_transfer`. **/ minVestedTransfer: u128 & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; xTokens: { /** * Base XCM weight. * * The actually weight for an XCM message is `T::BaseXcmWeight + * T::Weigher::weight(&msg)`. **/ baseXcmWeight: SpWeightsWeightV2Weight & AugmentedConst; /** * Self chain location. **/ selfLocation: XcmV3MultiLocation & AugmentedConst; /** * Generic const **/ [key: string]: Codec; }; } }