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

difftreelog

source

tests/src/interfaces/augment-api-consts.ts7.8 KiBsourcehistory
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, 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, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, XcmV1MultiLocation } 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      /**33       * Maximum admins per collection.34       **/35      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;36      /**37       * Set price to create a collection.38       **/39      collectionCreationPrice: u128 & AugmentedConst<ApiType>;40      /**41       * Generic const42       **/43      [key: string]: Codec;44    };45    configuration: {46      defaultMinGasPrice: u64 & AugmentedConst<ApiType>;47      defaultWeightToFeeCoefficient: u32 & AugmentedConst<ApiType>;48      /**49       * Generic const50       **/51      [key: string]: Codec;52    };53    inflation: {54      /**55       * Number of blocks that pass between treasury balance updates due to inflation56       **/57      inflationBlockInterval: u32 & AugmentedConst<ApiType>;58      /**59       * Generic const60       **/61      [key: string]: Codec;62    };63    scheduler: {64      /**65       * The maximum weight that may be scheduled per block for any dispatchables of less66       * priority than `schedule::HARD_DEADLINE`.67       **/68      maximumWeight: u64 & AugmentedConst<ApiType>;69      /**70       * The maximum number of scheduled calls in the queue for a single block.71       * Not strictly enforced, but used for weight estimation.72       **/73      maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;74      /**75       * Generic const76       **/77      [key: string]: Codec;78    };79    system: {80      /**81       * Maximum number of block number to block hash mappings to keep (oldest pruned first).82       **/83      blockHashCount: u32 & AugmentedConst<ApiType>;84      /**85       * The maximum length of a block (in bytes).86       **/87      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;88      /**89       * Block & extrinsics weights: base values and limits.90       **/91      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;92      /**93       * The weight of runtime database operations the runtime can invoke.94       **/95      dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;96      /**97       * The designated SS85 prefix of this chain.98       * 99       * This replaces the "ss58Format" property declared in the chain spec. Reason is100       * that the runtime should know about the prefix in order to make use of it as101       * an identifier of the chain.102       **/103      ss58Prefix: u16 & AugmentedConst<ApiType>;104      /**105       * Get the chain's current version.106       **/107      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;108      /**109       * Generic const110       **/111      [key: string]: Codec;112    };113    timestamp: {114      /**115       * The minimum period between blocks. Beware that this is different to the *expected*116       * period that the block production apparatus provides. Your chosen consensus system will117       * generally work with this to determine a sensible block time. e.g. For Aura, it will be118       * double this period on default settings.119       **/120      minimumPeriod: u64 & AugmentedConst<ApiType>;121      /**122       * Generic const123       **/124      [key: string]: Codec;125    };126    tokens: {127      maxLocks: u32 & AugmentedConst<ApiType>;128      /**129       * The maximum number of named reserves that can exist on an account.130       **/131      maxReserves: u32 & AugmentedConst<ApiType>;132      /**133       * Generic const134       **/135      [key: string]: Codec;136    };137    transactionPayment: {138      /**139       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their140       * `priority`141       * 142       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later143       * added to a tip component in regular `priority` calculations.144       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`145       * extrinsic (with no tip), by including a tip value greater than the virtual tip.146       * 147       * ```rust,ignore148       * // For `Normal`149       * let priority = priority_calc(tip);150       * 151       * // For `Operational`152       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;153       * let priority = priority_calc(tip + virtual_tip);154       * ```155       * 156       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`157       * sent with the transaction. So, not only does the transaction get a priority bump based158       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`159       * transactions.160       **/161      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;162      /**163       * Generic const164       **/165      [key: string]: Codec;166    };167    treasury: {168      /**169       * Percentage of spare funds (if any) that are burnt per spend period.170       **/171      burn: Permill & AugmentedConst<ApiType>;172      /**173       * The maximum number of approvals that can wait in the spending queue.174       * 175       * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.176       **/177      maxApprovals: u32 & AugmentedConst<ApiType>;178      /**179       * The treasury's pallet id, used for deriving its sovereign account ID.180       **/181      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;182      /**183       * Fraction of a proposal's value that should be bonded in order to place the proposal.184       * An accepted proposal gets these back. A rejected proposal does not.185       **/186      proposalBond: Permill & AugmentedConst<ApiType>;187      /**188       * Maximum amount of funds that should be placed in a deposit for making a proposal.189       **/190      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;191      /**192       * Minimum amount of funds that should be placed in a deposit for making a proposal.193       **/194      proposalBondMinimum: u128 & AugmentedConst<ApiType>;195      /**196       * Period between successive spends.197       **/198      spendPeriod: u32 & AugmentedConst<ApiType>;199      /**200       * Generic const201       **/202      [key: string]: Codec;203    };204    vesting: {205      /**206       * The minimum amount transferred to call `vested_transfer`.207       **/208      minVestedTransfer: u128 & AugmentedConst<ApiType>;209      /**210       * Generic const211       **/212      [key: string]: Codec;213    };214    xTokens: {215      /**216       * Base XCM weight.217       * 218       * The actually weight for an XCM message is `T::BaseXcmWeight +219       * T::Weigher::weight(&msg)`.220       **/221      baseXcmWeight: u64 & AugmentedConst<ApiType>;222      /**223       * Self chain location.224       **/225      selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;226      /**227       * Generic const228       **/229      [key: string]: Codec;230    };231  } // AugmentedConsts232} // declare module