1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api-base/types';5import type { Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';6import type { Codec } from '@polkadot/types-codec/types';7import type { Permill } from '@polkadot/types/interfaces/runtime';8import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';910declare module '@polkadot/api-base/types/consts' {11 export interface AugmentedConsts<ApiType extends ApiTypes> {12 balances: {13 /**14 * The minimum amount required to keep an account open.15 **/16 existentialDeposit: u128 & AugmentedConst<ApiType>;17 /**18 * The maximum number of locks that should exist on an account.19 * Not strictly enforced, but used for weight estimation.20 **/21 maxLocks: u32 & AugmentedConst<ApiType>;22 /**23 * The maximum number of named reserves that can exist on an account.24 **/25 maxReserves: u32 & AugmentedConst<ApiType>;26 /**27 * Generic const28 **/29 [key: string]: Codec;30 };31 common: {32 collectionAdminsLimit: u32 & AugmentedConst<ApiType>;33 collectionCreationPrice: u128 & AugmentedConst<ApiType>;34 /**35 * Generic const36 **/37 [key: string]: Codec;38 };39 inflation: {40 /**41 * Number of blocks that pass between treasury balance updates due to inflation42 **/43 inflationBlockInterval: u32 & AugmentedConst<ApiType>;44 /**45 * Generic const46 **/47 [key: string]: Codec;48 };49 scheduler: {50 /**51 * The maximum weight that may be scheduled per block for any dispatchables of less52 * priority than `schedule::HARD_DEADLINE`.53 **/54 maximumWeight: u64 & AugmentedConst<ApiType>;55 /**56 * The maximum number of scheduled calls in the queue for a single block.57 * Not strictly enforced, but used for weight estimation.58 **/59 maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;60 /**61 * Generic const62 **/63 [key: string]: Codec;64 };65 system: {66 /**67 * Maximum number of block number to block hash mappings to keep (oldest pruned first).68 **/69 blockHashCount: u32 & AugmentedConst<ApiType>;70 /**71 * The maximum length of a block (in bytes).72 **/73 blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;74 /**75 * Block & extrinsics weights: base values and limits.76 **/77 blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;78 /**79 * The weight of runtime database operations the runtime can invoke.80 **/81 dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;82 /**83 * The designated SS85 prefix of this chain.84 * 85 * This replaces the "ss58Format" property declared in the chain spec. Reason is86 * that the runtime should know about the prefix in order to make use of it as87 * an identifier of the chain.88 **/89 ss58Prefix: u16 & AugmentedConst<ApiType>;90 /**91 * Get the chain's current version.92 **/93 version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;94 /**95 * Generic const96 **/97 [key: string]: Codec;98 };99 timestamp: {100 /**101 * The minimum period between blocks. Beware that this is different to the *expected*102 * period that the block production apparatus provides. Your chosen consensus system will103 * generally work with this to determine a sensible block time. e.g. For Aura, it will be104 * double this period on default settings.105 **/106 minimumPeriod: u64 & AugmentedConst<ApiType>;107 /**108 * Generic const109 **/110 [key: string]: Codec;111 };112 transactionPayment: {113 /**114 * The polynomial that is applied in order to derive fee from length.115 **/116 lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;117 /**118 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their119 * `priority`120 * 121 * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later122 * added to a tip component in regular `priority` calculations.123 * It means that a `Normal` transaction can front-run a similarly-sized `Operational`124 * extrinsic (with no tip), by including a tip value greater than the virtual tip.125 * 126 * ```rust,ignore127 * // For `Normal`128 * let priority = priority_calc(tip);129 * 130 * // For `Operational`131 * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;132 * let priority = priority_calc(tip + virtual_tip);133 * ```134 * 135 * Note that since we use `final_fee` the multiplier applies also to the regular `tip`136 * sent with the transaction. So, not only does the transaction get a priority bump based137 * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`138 * transactions.139 **/140 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;141 /**142 * The polynomial that is applied in order to derive fee from weight.143 **/144 weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;145 /**146 * Generic const147 **/148 [key: string]: Codec;149 };150 treasury: {151 /**152 * Percentage of spare funds (if any) that are burnt per spend period.153 **/154 burn: Permill & AugmentedConst<ApiType>;155 /**156 * The maximum number of approvals that can wait in the spending queue.157 * 158 * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.159 **/160 maxApprovals: u32 & AugmentedConst<ApiType>;161 /**162 * The treasury's pallet id, used for deriving its sovereign account ID.163 **/164 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;165 /**166 * Fraction of a proposal's value that should be bonded in order to place the proposal.167 * An accepted proposal gets these back. A rejected proposal does not.168 **/169 proposalBond: Permill & AugmentedConst<ApiType>;170 /**171 * Maximum amount of funds that should be placed in a deposit for making a proposal.172 **/173 proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;174 /**175 * Minimum amount of funds that should be placed in a deposit for making a proposal.176 **/177 proposalBondMinimum: u128 & AugmentedConst<ApiType>;178 /**179 * Period between successive spends.180 **/181 spendPeriod: u32 & AugmentedConst<ApiType>;182 /**183 * Generic const184 **/185 [key: string]: Codec;186 };187 vesting: {188 /**189 * The minimum amount transferred to call `vested_transfer`.190 **/191 minVestedTransfer: u128 & AugmentedConst<ApiType>;192 /**193 * Generic const194 **/195 [key: string]: Codec;196 };197 } // AugmentedConsts198} // declare moduledifftreelog
source
tests/src/interfaces/augment-api-consts.ts7.1 KiBsourcehistory