git.delta.rocks / unique-network / refs/commits / ec123decb7f3

difftreelog

source

tests/src/interfaces/augment-api-consts.ts8.0 KiBsourcehistory
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, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } 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       * In chain blocks.21       **/22      day: u32 & AugmentedConst<ApiType>;23      intervalIncome: Perbill & AugmentedConst<ApiType>;24      nominal: u128 & AugmentedConst<ApiType>;25      /**26       * The app's pallet id, used for deriving its sovereign account ID.27       **/28      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;29      /**30       * In relay blocks.31       **/32      pendingInterval: u32 & AugmentedConst<ApiType>;33      /**34       * In relay blocks.35       **/36      recalculationInterval: u32 & AugmentedConst<ApiType>;37      /**38       * Generic const39       **/40      [key: string]: Codec;41    };42    balances: {43      /**44       * The minimum amount required to keep an account open.45       **/46      existentialDeposit: u128 & AugmentedConst<ApiType>;47      /**48       * The maximum number of locks that should exist on an account.49       * Not strictly enforced, but used for weight estimation.50       **/51      maxLocks: u32 & AugmentedConst<ApiType>;52      /**53       * The maximum number of named reserves that can exist on an account.54       **/55      maxReserves: u32 & AugmentedConst<ApiType>;56      /**57       * Generic const58       **/59      [key: string]: Codec;60    };61    common: {62      /**63       * Maximum admins per collection.64       **/65      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;66      /**67       * Set price to create a collection.68       **/69      collectionCreationPrice: u128 & AugmentedConst<ApiType>;70      /**71       * Generic const72       **/73      [key: string]: Codec;74    };75    configuration: {76      defaultMinGasPrice: u64 & AugmentedConst<ApiType>;77      defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;78      /**79       * Generic const80       **/81      [key: string]: Codec;82    };83    inflation: {84      /**85       * Number of blocks that pass between treasury balance updates due to inflation86       **/87      inflationBlockInterval: u32 & AugmentedConst<ApiType>;88      /**89       * Generic const90       **/91      [key: string]: Codec;92    };93    scheduler: {94      /**95       * The maximum weight that may be scheduled per block for any dispatchables of less96       * priority than `schedule::HARD_DEADLINE`.97       **/98      maximumWeight: u64 & AugmentedConst<ApiType>;99      /**100       * The maximum number of scheduled calls in the queue for a single block.101       * Not strictly enforced, but used for weight estimation.102       **/103      maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;104      /**105       * Generic const106       **/107      [key: string]: Codec;108    };109    system: {110      /**111       * Maximum number of block number to block hash mappings to keep (oldest pruned first).112       **/113      blockHashCount: u32 & AugmentedConst<ApiType>;114      /**115       * The maximum length of a block (in bytes).116       **/117      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;118      /**119       * Block & extrinsics weights: base values and limits.120       **/121      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;122      /**123       * The weight of runtime database operations the runtime can invoke.124       **/125      dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;126      /**127       * The designated SS85 prefix of this chain.128       * 129       * This replaces the "ss58Format" property declared in the chain spec. Reason is130       * that the runtime should know about the prefix in order to make use of it as131       * an identifier of the chain.132       **/133      ss58Prefix: u16 & AugmentedConst<ApiType>;134      /**135       * Get the chain's current version.136       **/137      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;138      /**139       * Generic const140       **/141      [key: string]: Codec;142    };143    timestamp: {144      /**145       * The minimum period between blocks. Beware that this is different to the *expected*146       * period that the block production apparatus provides. Your chosen consensus system will147       * generally work with this to determine a sensible block time. e.g. For Aura, it will be148       * double this period on default settings.149       **/150      minimumPeriod: u64 & AugmentedConst<ApiType>;151      /**152       * Generic const153       **/154      [key: string]: Codec;155    };156    transactionPayment: {157      /**158       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their159       * `priority`160       * 161       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later162       * added to a tip component in regular `priority` calculations.163       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`164       * extrinsic (with no tip), by including a tip value greater than the virtual tip.165       * 166       * ```rust,ignore167       * // For `Normal`168       * let priority = priority_calc(tip);169       * 170       * // For `Operational`171       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;172       * let priority = priority_calc(tip + virtual_tip);173       * ```174       * 175       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`176       * sent with the transaction. So, not only does the transaction get a priority bump based177       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`178       * transactions.179       **/180      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;181      /**182       * Generic const183       **/184      [key: string]: Codec;185    };186    treasury: {187      /**188       * Percentage of spare funds (if any) that are burnt per spend period.189       **/190      burn: Permill & AugmentedConst<ApiType>;191      /**192       * The maximum number of approvals that can wait in the spending queue.193       * 194       * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.195       **/196      maxApprovals: u32 & AugmentedConst<ApiType>;197      /**198       * The treasury's pallet id, used for deriving its sovereign account ID.199       **/200      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;201      /**202       * Fraction of a proposal's value that should be bonded in order to place the proposal.203       * An accepted proposal gets these back. A rejected proposal does not.204       **/205      proposalBond: Permill & AugmentedConst<ApiType>;206      /**207       * Maximum amount of funds that should be placed in a deposit for making a proposal.208       **/209      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;210      /**211       * Minimum amount of funds that should be placed in a deposit for making a proposal.212       **/213      proposalBondMinimum: u128 & AugmentedConst<ApiType>;214      /**215       * Period between successive spends.216       **/217      spendPeriod: u32 & AugmentedConst<ApiType>;218      /**219       * Generic const220       **/221      [key: string]: Codec;222    };223    vesting: {224      /**225       * The minimum amount transferred to call `vested_transfer`.226       **/227      minVestedTransfer: u128 & AugmentedConst<ApiType>;228      /**229       * Generic const230       **/231      [key: string]: Codec;232    };233  } // AugmentedConsts234} // declare module