git.delta.rocks / unique-network / refs/commits / 65e077c4f014

difftreelog

source

tests/src/interfaces/augment-api-consts.ts12.5 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 { H160, Perbill, Permill } from '@polkadot/types/interfaces/runtime';12import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, UpDataStructsCollectionLimits, 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    authorship: {45      /**46       * The number of blocks back we should accept uncles.47       * This means that we will deal with uncle-parents that are48       * `UncleGenerations + 1` before `now`.49       **/50      uncleGenerations: u32 & AugmentedConst<ApiType>;51      /**52       * Generic const53       **/54      [key: string]: Codec;55    };56    balances: {57      /**58       * The minimum amount required to keep an account open.59       **/60      existentialDeposit: u128 & AugmentedConst<ApiType>;61      /**62       * The maximum number of locks that should exist on an account.63       * Not strictly enforced, but used for weight estimation.64       **/65      maxLocks: u32 & AugmentedConst<ApiType>;66      /**67       * The maximum number of named reserves that can exist on an account.68       **/69      maxReserves: u32 & AugmentedConst<ApiType>;70      /**71       * Generic const72       **/73      [key: string]: Codec;74    };75    common: {76      /**77       * Maximum admins per collection.78       **/79      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;80      /**81       * Set price to create a collection.82       **/83      collectionCreationPrice: u128 & AugmentedConst<ApiType>;84      /**85       * Address under which the CollectionHelper contract would be available.86       **/87      contractAddress: H160 & AugmentedConst<ApiType>;88      /**89       * Generic const90       **/91      [key: string]: Codec;92    };93    configuration: {94      appPromotionDailyRate: Perbill & AugmentedConst<ApiType>;95      dayRelayBlocks: u32 & AugmentedConst<ApiType>;96      defaultCollatorSelectionKickThreshold: u32 & AugmentedConst<ApiType>;97      defaultCollatorSelectionLicenseBond: u128 & AugmentedConst<ApiType>;98      defaultCollatorSelectionMaxCollators: u32 & AugmentedConst<ApiType>;99      defaultMinGasPrice: u64 & AugmentedConst<ApiType>;100      defaultWeightToFeeCoefficient: u64 & AugmentedConst<ApiType>;101      maxXcmAllowedLocations: u32 & AugmentedConst<ApiType>;102      /**103       * Generic const104       **/105      [key: string]: Codec;106    };107    evmContractHelpers: {108      /**109       * Address, under which magic contract will be available110       **/111      contractAddress: H160 & AugmentedConst<ApiType>;112      /**113       * Generic const114       **/115      [key: string]: Codec;116    };117    identity: {118      /**119       * The amount held on deposit for a registered identity120       **/121      basicDeposit: u128 & AugmentedConst<ApiType>;122      /**123       * The amount held on deposit per additional field for a registered identity.124       **/125      fieldDeposit: u128 & AugmentedConst<ApiType>;126      /**127       * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O128       * required to access an identity, but can be pretty high.129       **/130      maxAdditionalFields: u32 & AugmentedConst<ApiType>;131      /**132       * Maxmimum number of registrars allowed in the system. Needed to bound the complexity133       * of, e.g., updating judgements.134       **/135      maxRegistrars: u32 & AugmentedConst<ApiType>;136      /**137       * The maximum number of sub-accounts allowed per identified account.138       **/139      maxSubAccounts: u32 & AugmentedConst<ApiType>;140      /**141       * The amount held on deposit for a registered subaccount. This should account for the fact142       * that one storage item's value will increase by the size of an account ID, and there will143       * be another trie item whose value is the size of an account ID plus 32 bytes.144       **/145      subAccountDeposit: u128 & AugmentedConst<ApiType>;146      /**147       * Generic const148       **/149      [key: string]: Codec;150    };151    inflation: {152      /**153       * Number of blocks that pass between treasury balance updates due to inflation154       **/155      inflationBlockInterval: u32 & AugmentedConst<ApiType>;156      /**157       * Generic const158       **/159      [key: string]: Codec;160    };161    system: {162      /**163       * Maximum number of block number to block hash mappings to keep (oldest pruned first).164       **/165      blockHashCount: u32 & AugmentedConst<ApiType>;166      /**167       * The maximum length of a block (in bytes).168       **/169      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;170      /**171       * Block & extrinsics weights: base values and limits.172       **/173      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;174      /**175       * The weight of runtime database operations the runtime can invoke.176       **/177      dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;178      /**179       * The designated SS58 prefix of this chain.180       * 181       * This replaces the "ss58Format" property declared in the chain spec. Reason is182       * that the runtime should know about the prefix in order to make use of it as183       * an identifier of the chain.184       **/185      ss58Prefix: u16 & AugmentedConst<ApiType>;186      /**187       * Get the chain's current version.188       **/189      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;190      /**191       * Generic const192       **/193      [key: string]: Codec;194    };195    timestamp: {196      /**197       * The minimum period between blocks. Beware that this is different to the *expected*198       * period that the block production apparatus provides. Your chosen consensus system will199       * generally work with this to determine a sensible block time. e.g. For Aura, it will be200       * double this period on default settings.201       **/202      minimumPeriod: u64 & AugmentedConst<ApiType>;203      /**204       * Generic const205       **/206      [key: string]: Codec;207    };208    tokens: {209      maxLocks: u32 & AugmentedConst<ApiType>;210      /**211       * The maximum number of named reserves that can exist on an account.212       **/213      maxReserves: u32 & AugmentedConst<ApiType>;214      /**215       * Generic const216       **/217      [key: string]: Codec;218    };219    transactionPayment: {220      /**221       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their222       * `priority`223       * 224       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later225       * added to a tip component in regular `priority` calculations.226       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`227       * extrinsic (with no tip), by including a tip value greater than the virtual tip.228       * 229       * ```rust,ignore230       * // For `Normal`231       * let priority = priority_calc(tip);232       * 233       * // For `Operational`234       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;235       * let priority = priority_calc(tip + virtual_tip);236       * ```237       * 238       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`239       * sent with the transaction. So, not only does the transaction get a priority bump based240       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`241       * transactions.242       **/243      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;244      /**245       * Generic const246       **/247      [key: string]: Codec;248    };249    treasury: {250      /**251       * Percentage of spare funds (if any) that are burnt per spend period.252       **/253      burn: Permill & AugmentedConst<ApiType>;254      /**255       * The maximum number of approvals that can wait in the spending queue.256       * 257       * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.258       **/259      maxApprovals: u32 & AugmentedConst<ApiType>;260      /**261       * The treasury's pallet id, used for deriving its sovereign account ID.262       **/263      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;264      /**265       * Fraction of a proposal's value that should be bonded in order to place the proposal.266       * An accepted proposal gets these back. A rejected proposal does not.267       **/268      proposalBond: Permill & AugmentedConst<ApiType>;269      /**270       * Maximum amount of funds that should be placed in a deposit for making a proposal.271       **/272      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;273      /**274       * Minimum amount of funds that should be placed in a deposit for making a proposal.275       **/276      proposalBondMinimum: u128 & AugmentedConst<ApiType>;277      /**278       * Period between successive spends.279       **/280      spendPeriod: u32 & AugmentedConst<ApiType>;281      /**282       * Generic const283       **/284      [key: string]: Codec;285    };286    unique: {287      /**288       * Maximum admins per collection.289       **/290      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;291      /**292       * Default FT collection limit.293       **/294      ftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;295      /**296       * Maximal length of a collection description.297       **/298      maxCollectionDescriptionLength: u32 & AugmentedConst<ApiType>;299      /**300       * Maximal length of a collection name.301       **/302      maxCollectionNameLength: u32 & AugmentedConst<ApiType>;303      /**304       * Maximum size for all collection properties.305       **/306      maxCollectionPropertiesSize: u32 & AugmentedConst<ApiType>;307      /**308       * A maximum number of token properties.309       **/310      maxPropertiesPerItem: u32 & AugmentedConst<ApiType>;311      /**312       * Maximal length of a property key.313       **/314      maxPropertyKeyLength: u32 & AugmentedConst<ApiType>;315      /**316       * Maximal length of a property value.317       **/318      maxPropertyValueLength: u32 & AugmentedConst<ApiType>;319      /**320       * Maximal length of a token prefix.321       **/322      maxTokenPrefixLength: u32 & AugmentedConst<ApiType>;323      /**324       * Maximum size of all token properties.325       **/326      maxTokenPropertiesSize: u32 & AugmentedConst<ApiType>;327      /**328       * A maximum number of levels of depth in the token nesting tree.329       **/330      nestingBudget: u32 & AugmentedConst<ApiType>;331      /**332       * Default NFT collection limit.333       **/334      nftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;335      /**336       * Default RFT collection limit.337       **/338      rftDefaultCollectionLimits: UpDataStructsCollectionLimits & AugmentedConst<ApiType>;339      /**340       * Generic const341       **/342      [key: string]: Codec;343    };344    vesting: {345      /**346       * The minimum amount transferred to call `vested_transfer`.347       **/348      minVestedTransfer: u128 & AugmentedConst<ApiType>;349      /**350       * Generic const351       **/352      [key: string]: Codec;353    };354    xTokens: {355      /**356       * Base XCM weight.357       * 358       * The actually weight for an XCM message is `T::BaseXcmWeight +359       * T::Weigher::weight(&msg)`.360       **/361      baseXcmWeight: u64 & AugmentedConst<ApiType>;362      /**363       * Self chain location.364       **/365      selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;366      /**367       * Generic const368       **/369      [key: string]: Codec;370    };371  } // AugmentedConsts372} // declare module