git.delta.rocks / unique-network / refs/commits / 409ca7fed22b

difftreelog

source

tests/src/interfaces/augment-api-consts.ts6.5 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api/types';5import type { Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types';6import type { Permill } from '@polkadot/types/interfaces/runtime';7import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';8import type { Codec } from '@polkadot/types/types';910declare module '@polkadot/api/types/consts' {11  export interface AugmentedConsts<ApiType> {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      /**34       * Generic const35       **/36      [key: string]: Codec;37    };38    inflation: {39      /**40       * Number of blocks that pass between treasury balance updates due to inflation41       **/42      inflationBlockInterval: u32 & AugmentedConst<ApiType>;43      /**44       * Generic const45       **/46      [key: string]: Codec;47    };48    system: {49      /**50       * Maximum number of block number to block hash mappings to keep (oldest pruned first).51       **/52      blockHashCount: u32 & AugmentedConst<ApiType>;53      /**54       * The maximum length of a block (in bytes).55       **/56      blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;57      /**58       * Block & extrinsics weights: base values and limits.59       **/60      blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;61      /**62       * The weight of runtime database operations the runtime can invoke.63       **/64      dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;65      /**66       * The designated SS85 prefix of this chain.67       * 68       * This replaces the "ss58Format" property declared in the chain spec. Reason is69       * that the runtime should know about the prefix in order to make use of it as70       * an identifier of the chain.71       **/72      ss58Prefix: u16 & AugmentedConst<ApiType>;73      /**74       * Get the chain's current version.75       **/76      version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;77      /**78       * Generic const79       **/80      [key: string]: Codec;81    };82    timestamp: {83      /**84       * The minimum period between blocks. Beware that this is different to the *expected*85       * period that the block production apparatus provides. Your chosen consensus system will86       * generally work with this to determine a sensible block time. e.g. For Aura, it will be87       * double this period on default settings.88       **/89      minimumPeriod: u64 & AugmentedConst<ApiType>;90      /**91       * Generic const92       **/93      [key: string]: Codec;94    };95    transactionPayment: {96      /**97       * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their98       * `priority`99       * 100       * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later101       * added to a tip component in regular `priority` calculations.102       * It means that a `Normal` transaction can front-run a similarly-sized `Operational`103       * extrinsic (with no tip), by including a tip value greater than the virtual tip.104       * 105       * ```rust,ignore106       * // For `Normal`107       * let priority = priority_calc(tip);108       * 109       * // For `Operational`110       * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;111       * let priority = priority_calc(tip + virtual_tip);112       * ```113       * 114       * Note that since we use `final_fee` the multiplier applies also to the regular `tip`115       * sent with the transaction. So, not only does the transaction get a priority bump based116       * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`117       * transactions.118       **/119      operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;120      /**121       * The fee to be paid for making a transaction; the per-byte portion.122       **/123      transactionByteFee: u128 & AugmentedConst<ApiType>;124      /**125       * The polynomial that is applied in order to derive fee from weight.126       **/127      weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;128      /**129       * Generic const130       **/131      [key: string]: Codec;132    };133    treasury: {134      /**135       * Percentage of spare funds (if any) that are burnt per spend period.136       **/137      burn: Permill & AugmentedConst<ApiType>;138      /**139       * The maximum number of approvals that can wait in the spending queue.140       **/141      maxApprovals: u32 & AugmentedConst<ApiType>;142      /**143       * The treasury's pallet id, used for deriving its sovereign account ID.144       **/145      palletId: FrameSupportPalletId & AugmentedConst<ApiType>;146      /**147       * Fraction of a proposal's value that should be bonded in order to place the proposal.148       * An accepted proposal gets these back. A rejected proposal does not.149       **/150      proposalBond: Permill & AugmentedConst<ApiType>;151      /**152       * Maximum amount of funds that should be placed in a deposit for making a proposal.153       **/154      proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;155      /**156       * Minimum amount of funds that should be placed in a deposit for making a proposal.157       **/158      proposalBondMinimum: u128 & AugmentedConst<ApiType>;159      /**160       * Period between successive spends.161       **/162      spendPeriod: u32 & AugmentedConst<ApiType>;163      /**164       * Generic const165       **/166      [key: string]: Codec;167    };168    vesting: {169      /**170       * The minimum amount transferred to call `vested_transfer`.171       **/172      minVestedTransfer: u128 & AugmentedConst<ApiType>;173      /**174       * Generic const175       **/176      [key: string]: Codec;177    };178  }179180  export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {181    [key: string]: QueryableModuleConsts;182  }183}