1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/consts';78import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';9import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';10import type { Codec } from '@polkadot/types-codec/types';11import type { Permill } from '@polkadot/types/interfaces/runtime';12import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, XcmV1MultiLocation } from '@polkadot/types/lookup';1314export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;1516declare module '@polkadot/api-base/types/consts' {17 interface AugmentedConsts<ApiType extends ApiTypes> {18 balances: {19 /**20 * The minimum amount required to keep an account open.21 **/22 existentialDeposit: u128 & AugmentedConst<ApiType>;23 /**24 * The maximum number of locks that should exist on an account.25 * Not strictly enforced, but used for weight estimation.26 **/27 maxLocks: u32 & AugmentedConst<ApiType>;28 /**29 * The maximum number of named reserves that can exist on an account.30 **/31 maxReserves: u32 & AugmentedConst<ApiType>;32 /**33 * Generic const34 **/35 [key: string]: Codec;36 };37 common: {38 /**39 * Maximum admins per collection.40 **/41 collectionAdminsLimit: u32 & AugmentedConst<ApiType>;42 /**43 * Set price to create a collection.44 **/45 collectionCreationPrice: u128 & AugmentedConst<ApiType>;46 /**47 * Generic const48 **/49 [key: string]: Codec;50 };51 configuration: {52 defaultMinGasPrice: u64 & AugmentedConst<ApiType>;53 defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;54 /**55 * Generic const56 **/57 [key: string]: Codec;58 };59 inflation: {60 /**61 * Number of blocks that pass between treasury balance updates due to inflation62 **/63 inflationBlockInterval: u32 & AugmentedConst<ApiType>;64 /**65 * Generic const66 **/67 [key: string]: Codec;68 };69 scheduler: {70 /**71 * The maximum weight that may be scheduled per block for any dispatchables of less72 * priority than `schedule::HARD_DEADLINE`.73 **/74 maximumWeight: u64 & AugmentedConst<ApiType>;75 /**76 * The maximum number of scheduled calls in the queue for a single block.77 * Not strictly enforced, but used for weight estimation.78 **/79 maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;80 /**81 * Generic const82 **/83 [key: string]: Codec;84 };85 system: {86 /**87 * Maximum number of block number to block hash mappings to keep (oldest pruned first).88 **/89 blockHashCount: u32 & AugmentedConst<ApiType>;90 /**91 * The maximum length of a block (in bytes).92 **/93 blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;94 /**95 * Block & extrinsics weights: base values and limits.96 **/97 blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;98 /**99 * The weight of runtime database operations the runtime can invoke.100 **/101 dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;102 /**103 * The designated SS85 prefix of this chain.104 * 105 * This replaces the "ss58Format" property declared in the chain spec. Reason is106 * that the runtime should know about the prefix in order to make use of it as107 * an identifier of the chain.108 **/109 ss58Prefix: u16 & AugmentedConst<ApiType>;110 /**111 * Get the chain's current version.112 **/113 version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;114 /**115 * Generic const116 **/117 [key: string]: Codec;118 };119 timestamp: {120 /**121 * The minimum period between blocks. Beware that this is different to the *expected*122 * period that the block production apparatus provides. Your chosen consensus system will123 * generally work with this to determine a sensible block time. e.g. For Aura, it will be124 * double this period on default settings.125 **/126 minimumPeriod: u64 & AugmentedConst<ApiType>;127 /**128 * Generic const129 **/130 [key: string]: Codec;131 };132 tokens: {133 maxLocks: u32 & AugmentedConst<ApiType>;134 /**135 * The maximum number of named reserves that can exist on an account.136 **/137 maxReserves: u32 & AugmentedConst<ApiType>;138 /**139 * Generic const140 **/141 [key: string]: Codec;142 };143 transactionPayment: {144 /**145 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their146 * `priority`147 * 148 * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later149 * added to a tip component in regular `priority` calculations.150 * It means that a `Normal` transaction can front-run a similarly-sized `Operational`151 * extrinsic (with no tip), by including a tip value greater than the virtual tip.152 * 153 * ```rust,ignore154 * // For `Normal`155 * let priority = priority_calc(tip);156 * 157 * // For `Operational`158 * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;159 * let priority = priority_calc(tip + virtual_tip);160 * ```161 * 162 * Note that since we use `final_fee` the multiplier applies also to the regular `tip`163 * sent with the transaction. So, not only does the transaction get a priority bump based164 * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`165 * transactions.166 **/167 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;168 /**169 * Generic const170 **/171 [key: string]: Codec;172 };173 treasury: {174 /**175 * Percentage of spare funds (if any) that are burnt per spend period.176 **/177 burn: Permill & AugmentedConst<ApiType>;178 /**179 * The maximum number of approvals that can wait in the spending queue.180 * 181 * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.182 **/183 maxApprovals: u32 & AugmentedConst<ApiType>;184 /**185 * The treasury's pallet id, used for deriving its sovereign account ID.186 **/187 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;188 /**189 * Fraction of a proposal's value that should be bonded in order to place the proposal.190 * An accepted proposal gets these back. A rejected proposal does not.191 **/192 proposalBond: Permill & AugmentedConst<ApiType>;193 /**194 * Maximum amount of funds that should be placed in a deposit for making a proposal.195 **/196 proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;197 /**198 * Minimum amount of funds that should be placed in a deposit for making a proposal.199 **/200 proposalBondMinimum: u128 & AugmentedConst<ApiType>;201 /**202 * Period between successive spends.203 **/204 spendPeriod: u32 & AugmentedConst<ApiType>;205 /**206 * Generic const207 **/208 [key: string]: Codec;209 };210 vesting: {211 /**212 * The minimum amount transferred to call `vested_transfer`.213 **/214 minVestedTransfer: u128 & AugmentedConst<ApiType>;215 /**216 * Generic const217 **/218 [key: string]: Codec;219 };220 xTokens: {221 /**222 * Base XCM weight.223 * 224 * The actually weight for an XCM message is `T::BaseXcmWeight +225 * T::Weigher::weight(&msg)`.226 **/227 baseXcmWeight: u64 & AugmentedConst<ApiType>;228 /**229 * Self chain location.230 **/231 selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;232 /**233 * Generic const234 **/235 [key: string]: Codec;236 };237 } // AugmentedConsts238} // declare moduledifftreelog
source
tests/src/interfaces/augment-api-consts.ts8.0 KiBsourcehistory