git.delta.rocks / unique-network / refs/commits / 73ad88465834

difftreelog

source

tests/src/interfaces/augment-api-consts.ts6.6 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, Vec, 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, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } 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      collectionAdminsLimit: u32 & AugmentedConst<ApiType>;33      collectionCreationPrice: u128 & AugmentedConst<ApiType>;34      /**35       * Generic const36       **/37      [key: string]: Codec;38    };39    inflation: {40      /**41       * Number of blocks that pass between treasury balance updates due to inflation42       **/43      inflationBlockInterval: u32 & AugmentedConst<ApiType>;44      /**45       * Generic const46       **/47      [key: string]: Codec;48    };49    system: {50      /**51       * Maximum number of block number to block hash mappings to keep (oldest pruned first).52       **/53      blockHashCount: u32 & AugmentedConst<ApiType>;54      /**55       * The maximum length of a block (in bytes).56       **/57      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;58      /**59       * Block & extrinsics weights: base values and limits.60       **/61      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;62      /**63       * The weight of runtime database operations the runtime can invoke.64       **/65      dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;66      /**67       * The designated SS85 prefix of this chain.68       * 69       * This replaces the "ss58Format" property declared in the chain spec. Reason is70       * that the runtime should know about the prefix in order to make use of it as71       * an identifier of the chain.72       **/73      ss58Prefix: u16 & AugmentedConst<ApiType>;74      /**75       * Get the chain's current version.76       **/77      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;78      /**79       * Generic const80       **/81      [key: string]: Codec;82    };83    timestamp: {84      /**85       * The minimum period between blocks. Beware that this is different to the *expected*86       * period that the block production apparatus provides. Your chosen consensus system will87       * generally work with this to determine a sensible block time. e.g. For Aura, it will be88       * double this period on default settings.89       **/90      minimumPeriod: u64 & AugmentedConst<ApiType>;91      /**92       * Generic const93       **/94      [key: string]: Codec;95    };96    transactionPayment: {97      /**98       * The polynomial that is applied in order to derive fee from length.99       **/100      lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;101      /**102       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their103       * `priority`104       * 105       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later106       * added to a tip component in regular `priority` calculations.107       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`108       * extrinsic (with no tip), by including a tip value greater than the virtual tip.109       * 110       * ```rust,ignore111       * // For `Normal`112       * let priority = priority_calc(tip);113       * 114       * // For `Operational`115       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;116       * let priority = priority_calc(tip + virtual_tip);117       * ```118       * 119       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`120       * sent with the transaction. So, not only does the transaction get a priority bump based121       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`122       * transactions.123       **/124      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;125      /**126       * The polynomial that is applied in order to derive fee from weight.127       **/128      weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;129      /**130       * Generic const131       **/132      [key: string]: Codec;133    };134    treasury: {135      /**136       * Percentage of spare funds (if any) that are burnt per spend period.137       **/138      burn: Permill & AugmentedConst<ApiType>;139      /**140       * The maximum number of approvals that can wait in the spending queue.141       * 142       * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.143       **/144      maxApprovals: u32 & AugmentedConst<ApiType>;145      /**146       * The treasury's pallet id, used for deriving its sovereign account ID.147       **/148      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;149      /**150       * Fraction of a proposal's value that should be bonded in order to place the proposal.151       * An accepted proposal gets these back. A rejected proposal does not.152       **/153      proposalBond: Permill & AugmentedConst<ApiType>;154      /**155       * Maximum amount of funds that should be placed in a deposit for making a proposal.156       **/157      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;158      /**159       * Minimum amount of funds that should be placed in a deposit for making a proposal.160       **/161      proposalBondMinimum: u128 & AugmentedConst<ApiType>;162      /**163       * Period between successive spends.164       **/165      spendPeriod: u32 & AugmentedConst<ApiType>;166      /**167       * Generic const168       **/169      [key: string]: Codec;170    };171    vesting: {172      /**173       * The minimum amount transferred to call `vested_transfer`.174       **/175      minVestedTransfer: u128 & AugmentedConst<ApiType>;176      /**177       * Generic const178       **/179      [key: string]: Codec;180    };181  } // AugmentedConsts182} // declare module