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 { Perbill, Permill } from '@polkadot/types/interfaces/runtime';12import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, 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 appPromotion: {19 /**20 * Rate of return for interval in blocks defined in `RecalculationInterval`.21 **/22 intervalIncome: Perbill & AugmentedConst<ApiType>;23 /**24 * Decimals for the `Currency`.25 **/26 nominal: u128 & AugmentedConst<ApiType>;27 /**28 * The app's pallet id, used for deriving its sovereign account address.29 **/30 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;31 /**32 * In parachain blocks.33 **/34 pendingInterval: u32 & AugmentedConst<ApiType>;35 /**36 * In relay blocks.37 **/38 recalculationInterval: u32 & AugmentedConst<ApiType>;39 /**40 * Generic const41 **/42 [key: string]: Codec;43 };44 balances: {45 /**46 * The minimum amount required to keep an account open.47 **/48 existentialDeposit: u128 & AugmentedConst<ApiType>;49 /**50 * The maximum number of locks that should exist on an account.51 * Not strictly enforced, but used for weight estimation.52 **/53 maxLocks: u32 & AugmentedConst<ApiType>;54 /**55 * The maximum number of named reserves that can exist on an account.56 **/57 maxReserves: u32 & AugmentedConst<ApiType>;58 /**59 * Generic const60 **/61 [key: string]: Codec;62 };63 common: {64 /**65 * Maximum admins per collection.66 **/67 collectionAdminsLimit: u32 & AugmentedConst<ApiType>;68 /**69 * Set price to create a collection.70 **/71 collectionCreationPrice: u128 & AugmentedConst<ApiType>;72 /**73 * Generic const74 **/75 [key: string]: Codec;76 };77 configuration: {78 defaultMinGasPrice: u64 & AugmentedConst<ApiType>;79 defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;80 /**81 * Generic const82 **/83 [key: string]: Codec;84 };85 inflation: {86 /**87 * Number of blocks that pass between treasury balance updates due to inflation88 **/89 inflationBlockInterval: u32 & AugmentedConst<ApiType>;90 /**91 * Generic const92 **/93 [key: string]: Codec;94 };95 system: {96 /**97 * Maximum number of block number to block hash mappings to keep (oldest pruned first).98 **/99 blockHashCount: u32 & AugmentedConst<ApiType>;100 /**101 * The maximum length of a block (in bytes).102 **/103 blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;104 /**105 * Block & extrinsics weights: base values and limits.106 **/107 blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;108 /**109 * The weight of runtime database operations the runtime can invoke.110 **/111 dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;112 /**113 * The designated SS58 prefix of this chain.114 * 115 * This replaces the "ss58Format" property declared in the chain spec. Reason is116 * that the runtime should know about the prefix in order to make use of it as117 * an identifier of the chain.118 **/119 ss58Prefix: u16 & AugmentedConst<ApiType>;120 /**121 * Get the chain's current version.122 **/123 version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;124 /**125 * Generic const126 **/127 [key: string]: Codec;128 };129 timestamp: {130 /**131 * The minimum period between blocks. Beware that this is different to the *expected*132 * period that the block production apparatus provides. Your chosen consensus system will133 * generally work with this to determine a sensible block time. e.g. For Aura, it will be134 * double this period on default settings.135 **/136 minimumPeriod: u64 & AugmentedConst<ApiType>;137 /**138 * Generic const139 **/140 [key: string]: Codec;141 };142 tokens: {143 maxLocks: u32 & AugmentedConst<ApiType>;144 /**145 * The maximum number of named reserves that can exist on an account.146 **/147 maxReserves: u32 & AugmentedConst<ApiType>;148 /**149 * Generic const150 **/151 [key: string]: Codec;152 };153 transactionPayment: {154 /**155 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their156 * `priority`157 * 158 * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later159 * added to a tip component in regular `priority` calculations.160 * It means that a `Normal` transaction can front-run a similarly-sized `Operational`161 * extrinsic (with no tip), by including a tip value greater than the virtual tip.162 * 163 * ```rust,ignore164 * // For `Normal`165 * let priority = priority_calc(tip);166 * 167 * // For `Operational`168 * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;169 * let priority = priority_calc(tip + virtual_tip);170 * ```171 * 172 * Note that since we use `final_fee` the multiplier applies also to the regular `tip`173 * sent with the transaction. So, not only does the transaction get a priority bump based174 * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`175 * transactions.176 **/177 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;178 /**179 * Generic const180 **/181 [key: string]: Codec;182 };183 treasury: {184 /**185 * Percentage of spare funds (if any) that are burnt per spend period.186 **/187 burn: Permill & AugmentedConst<ApiType>;188 /**189 * The maximum number of approvals that can wait in the spending queue.190 * 191 * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.192 **/193 maxApprovals: u32 & AugmentedConst<ApiType>;194 /**195 * The treasury's pallet id, used for deriving its sovereign account ID.196 **/197 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;198 /**199 * Fraction of a proposal's value that should be bonded in order to place the proposal.200 * An accepted proposal gets these back. A rejected proposal does not.201 **/202 proposalBond: Permill & AugmentedConst<ApiType>;203 /**204 * Maximum amount of funds that should be placed in a deposit for making a proposal.205 **/206 proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;207 /**208 * Minimum amount of funds that should be placed in a deposit for making a proposal.209 **/210 proposalBondMinimum: u128 & AugmentedConst<ApiType>;211 /**212 * Period between successive spends.213 **/214 spendPeriod: u32 & AugmentedConst<ApiType>;215 /**216 * Generic const217 **/218 [key: string]: Codec;219 };220 vesting: {221 /**222 * The minimum amount transferred to call `vested_transfer`.223 **/224 minVestedTransfer: u128 & AugmentedConst<ApiType>;225 /**226 * Generic const227 **/228 [key: string]: Codec;229 };230 xTokens: {231 /**232 * Base XCM weight.233 * 234 * The actually weight for an XCM message is `T::BaseXcmWeight +235 * T::Weigher::weight(&msg)`.236 **/237 baseXcmWeight: u64 & AugmentedConst<ApiType>;238 /**239 * Self chain location.240 **/241 selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;242 /**243 * Generic const244 **/245 [key: string]: Codec;246 };247 } // AugmentedConsts248} // declare moduledifftreelog
source
tests/src/interfaces/augment-api-consts.ts8.2 KiBsourcehistory