1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api/types';5import type { Vec, u128, u16, u32, u64, u8 } from '@polkadot/types';6import type { Permill } from '@polkadot/types/interfaces/runtime';7import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';8import type { Codec } from '@polkadot/types/types';910declare module '@polkadot/api/types/consts' {11 export interface AugmentedConsts<ApiType> {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 /**34 * Generic const35 **/36 [key: string]: Codec;37 };38 inflation: {39 inflationBlockInterval: u32 & AugmentedConst<ApiType>;40 /**41 * Generic const42 **/43 [key: string]: Codec;44 };45 system: {46 /**47 * Maximum number of block number to block hash mappings to keep (oldest pruned first).48 **/49 blockHashCount: u32 & AugmentedConst<ApiType>;50 /**51 * The maximum length of a block (in bytes).52 **/53 blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;54 /**55 * Block & extrinsics weights: base values and limits.56 **/57 blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;58 /**59 * The weight of runtime database operations the runtime can invoke.60 **/61 dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;62 /**63 * The designated SS85 prefix of this chain.64 * 65 * This replaces the "ss58Format" property declared in the chain spec. Reason is66 * that the runtime should know about the prefix in order to make use of it as67 * an identifier of the chain.68 **/69 ss58Prefix: u16 & AugmentedConst<ApiType>;70 /**71 * Get the chain's current version.72 **/73 version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;74 /**75 * Generic const76 **/77 [key: string]: Codec;78 };79 timestamp: {80 /**81 * The minimum period between blocks. Beware that this is different to the *expected*82 * period that the block production apparatus provides. Your chosen consensus system will83 * generally work with this to determine a sensible block time. e.g. For Aura, it will be84 * double this period on default settings.85 **/86 minimumPeriod: u64 & AugmentedConst<ApiType>;87 /**88 * Generic const89 **/90 [key: string]: Codec;91 };92 transactionPayment: {93 /**94 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their95 * `priority`96 * 97 * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later98 * added to a tip component in regular `priority` calculations.99 * It means that a `Normal` transaction can front-run a similarly-sized `Operational`100 * extrinsic (with no tip), by including a tip value greater than the virtual tip.101 * 102 * ```rust,ignore103 * // For `Normal`104 * let priority = priority_calc(tip);105 * 106 * // For `Operational`107 * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;108 * let priority = priority_calc(tip + virtual_tip);109 * ```110 * 111 * Note that since we use `final_fee` the multiplier applies also to the regular `tip`112 * sent with the transaction. So, not only does the transaction get a priority bump based113 * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`114 * transactions.115 **/116 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;117 /**118 * The fee to be paid for making a transaction; the per-byte portion.119 **/120 transactionByteFee: u128 & AugmentedConst<ApiType>;121 /**122 * The polynomial that is applied in order to derive fee from weight.123 **/124 weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;125 /**126 * Generic const127 **/128 [key: string]: Codec;129 };130 treasury: {131 /**132 * Percentage of spare funds (if any) that are burnt per spend period.133 **/134 burn: Permill & AugmentedConst<ApiType>;135 /**136 * The maximum number of approvals that can wait in the spending queue.137 **/138 maxApprovals: u32 & AugmentedConst<ApiType>;139 /**140 * The treasury's pallet id, used for deriving its sovereign account ID.141 **/142 palletId: FrameSupportPalletId & AugmentedConst<ApiType>;143 /**144 * Fraction of a proposal's value that should be bonded in order to place the proposal.145 * An accepted proposal gets these back. A rejected proposal does not.146 **/147 proposalBond: Permill & AugmentedConst<ApiType>;148 /**149 * Minimum amount of funds that should be placed in a deposit for making a proposal.150 **/151 proposalBondMinimum: u128 & AugmentedConst<ApiType>;152 /**153 * Period between successive spends.154 **/155 spendPeriod: u32 & AugmentedConst<ApiType>;156 /**157 * Generic const158 **/159 [key: string]: Codec;160 };161 vesting: {162 /**163 * The minimum amount transferred to call `vested_transfer`.164 **/165 minVestedTransfer: u128 & AugmentedConst<ApiType>;166 /**167 * Generic const168 **/169 [key: string]: Codec;170 };171 }172173 export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {174 [key: string]: QueryableModuleConsts;175 }176}difftreelog
source
tests/src/interfaces/augment-api-consts.ts6.2 KiBsourcehistory