git.delta.rocks / unique-network / refs/commits / 5c36133bb18f

difftreelog

source

tests/src/interfaces/augment-api-consts.ts8.8 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, 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    scheduler: {96      /**97       * The maximum weight that may be scheduled per block for any dispatchables of less98       * priority than `schedule::HARD_DEADLINE`.99       **/100      maximumWeight: u64 & AugmentedConst<ApiType>;101      /**102       * The maximum number of scheduled calls in the queue for a single block.103       * Not strictly enforced, but used for weight estimation.104       **/105      maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;106      /**107       * Generic const108       **/109      [key: string]: Codec;110    };111    system: {112      /**113       * Maximum number of block number to block hash mappings to keep (oldest pruned first).114       **/115      blockHashCount: u32 & AugmentedConst<ApiType>;116      /**117       * The maximum length of a block (in bytes).118       **/119      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;120      /**121       * Block & extrinsics weights: base values and limits.122       **/123      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;124      /**125       * The weight of runtime database operations the runtime can invoke.126       **/127      dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;128      /**129       * The designated SS85 prefix of this chain.130       * 131       * This replaces the "ss58Format" property declared in the chain spec. Reason is132       * that the runtime should know about the prefix in order to make use of it as133       * an identifier of the chain.134       **/135      ss58Prefix: u16 & AugmentedConst<ApiType>;136      /**137       * Get the chain's current version.138       **/139      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;140      /**141       * Generic const142       **/143      [key: string]: Codec;144    };145    timestamp: {146      /**147       * The minimum period between blocks. Beware that this is different to the *expected*148       * period that the block production apparatus provides. Your chosen consensus system will149       * generally work with this to determine a sensible block time. e.g. For Aura, it will be150       * double this period on default settings.151       **/152      minimumPeriod: u64 & AugmentedConst<ApiType>;153      /**154       * Generic const155       **/156      [key: string]: Codec;157    };158    tokens: {159      maxLocks: u32 & AugmentedConst<ApiType>;160      /**161       * The maximum number of named reserves that can exist on an account.162       **/163      maxReserves: u32 & AugmentedConst<ApiType>;164      /**165       * Generic const166       **/167      [key: string]: Codec;168    };169    transactionPayment: {170      /**171       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their172       * `priority`173       * 174       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later175       * added to a tip component in regular `priority` calculations.176       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`177       * extrinsic (with no tip), by including a tip value greater than the virtual tip.178       * 179       * ```rust,ignore180       * // For `Normal`181       * let priority = priority_calc(tip);182       * 183       * // For `Operational`184       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;185       * let priority = priority_calc(tip + virtual_tip);186       * ```187       * 188       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`189       * sent with the transaction. So, not only does the transaction get a priority bump based190       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`191       * transactions.192       **/193      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;194      /**195       * Generic const196       **/197      [key: string]: Codec;198    };199    treasury: {200      /**201       * Percentage of spare funds (if any) that are burnt per spend period.202       **/203      burn: Permill & AugmentedConst<ApiType>;204      /**205       * The maximum number of approvals that can wait in the spending queue.206       * 207       * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.208       **/209      maxApprovals: u32 & AugmentedConst<ApiType>;210      /**211       * The treasury's pallet id, used for deriving its sovereign account ID.212       **/213      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;214      /**215       * Fraction of a proposal's value that should be bonded in order to place the proposal.216       * An accepted proposal gets these back. A rejected proposal does not.217       **/218      proposalBond: Permill & AugmentedConst<ApiType>;219      /**220       * Maximum amount of funds that should be placed in a deposit for making a proposal.221       **/222      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;223      /**224       * Minimum amount of funds that should be placed in a deposit for making a proposal.225       **/226      proposalBondMinimum: u128 & AugmentedConst<ApiType>;227      /**228       * Period between successive spends.229       **/230      spendPeriod: u32 & AugmentedConst<ApiType>;231      /**232       * Generic const233       **/234      [key: string]: Codec;235    };236    vesting: {237      /**238       * The minimum amount transferred to call `vested_transfer`.239       **/240      minVestedTransfer: u128 & AugmentedConst<ApiType>;241      /**242       * Generic const243       **/244      [key: string]: Codec;245    };246    xTokens: {247      /**248       * Base XCM weight.249       * 250       * The actually weight for an XCM message is `T::BaseXcmWeight +251       * T::Weigher::weight(&msg)`.252       **/253      baseXcmWeight: u64 & AugmentedConst<ApiType>;254      /**255       * Self chain location.256       **/257      selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;258      /**259       * Generic const260       **/261      [key: string]: Codec;262    };263  } // AugmentedConsts264} // declare module