git.delta.rocks / unique-network / refs/commits / 25c961748e58

difftreelog

source

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