-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
2,833 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,272 @@ | ||
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit | ||
/* eslint-disable */ | ||
|
||
// import type lookup before we augment - in some environments | ||
// this is required to allow for ambient/previous definitions | ||
import '@polkadot/api-base/types/consts'; | ||
|
||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; | ||
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; | ||
import type { Codec } from '@polkadot/types-codec/types'; | ||
|
||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>; | ||
|
||
declare module '@polkadot/api-base/types/consts' { | ||
interface AugmentedConsts<ApiType extends ApiTypes> { | ||
asset: { | ||
/** | ||
* The minimum balance to create class | ||
**/ | ||
createAssetClassDeposit: u128 & AugmentedConst<ApiType>; | ||
maxAssetMetadata: u32 & AugmentedConst<ApiType>; | ||
maxClassMetadata: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
bag: { | ||
/** | ||
* The minimum balance to create bag | ||
**/ | ||
createBagDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* Max number of owners | ||
**/ | ||
maxOwners: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
balances: { | ||
/** | ||
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! | ||
* | ||
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for | ||
* this pallet. However, you do so at your own risk: this will open up a major DoS vector. | ||
* In case you have multiple sources of provider references, you may also get unexpected | ||
* behaviour if you set this to zero. | ||
* | ||
* Bottom line: Do yourself a favour and make it at least one! | ||
**/ | ||
existentialDeposit: u128 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum number of individual freeze locks that can exist on an account at any time. | ||
**/ | ||
maxFreezes: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum number of holds that can exist on an account at any time. | ||
**/ | ||
maxHolds: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum number of locks that should exist on an account. | ||
* Not strictly enforced, but used for weight estimation. | ||
**/ | ||
maxLocks: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum number of named reserves that can exist on an account. | ||
**/ | ||
maxReserves: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
bundle: { | ||
/** | ||
* Max number of asset classes and per asset_id in a bundle | ||
**/ | ||
maxAssets: u32 & AugmentedConst<ApiType>; | ||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
council: { | ||
/** | ||
* The maximum weight of a dispatch call that can be proposed and executed. | ||
**/ | ||
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
fula: { | ||
maxManifestMetadata: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
grandpa: { | ||
/** | ||
* Max Authorities in use | ||
**/ | ||
maxAuthorities: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum number of entries to keep in the set id to session index mapping. | ||
* | ||
* Since the `SetIdSession` map is only used for validating equivocations this | ||
* value should relate to the bonding duration of whatever staking system is | ||
* being used (if any). If equivocation handling is not enabled then this value | ||
* can be zero. | ||
**/ | ||
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
imOnline: { | ||
/** | ||
* A configuration for base priority of unsigned transactions. | ||
* | ||
* This is exposed so that it can be tuned for particular runtime, when | ||
* multiple pallets send unsigned transactions. | ||
**/ | ||
unsignedPriority: u64 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
market: { | ||
/** | ||
* Max metadata size | ||
**/ | ||
maxMetadata: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Max number of rates per market_rate | ||
**/ | ||
maxRates: u32 & AugmentedConst<ApiType>; | ||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
pool: { | ||
/** | ||
* The maximum number of pool participants. We are aiming at `u8::MAX`. | ||
**/ | ||
maxPoolParticipants: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum length of a name or symbol stored on-chain. See if this can be limited to | ||
* `u8::MAX`. | ||
**/ | ||
stringLimit: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
scheduler: { | ||
/** | ||
* The maximum weight that may be scheduled per block for any dispatchables. | ||
**/ | ||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum number of scheduled calls in the queue for a single block. | ||
* | ||
* NOTE: | ||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a | ||
* higher limit under `runtime-benchmarks` feature. | ||
**/ | ||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
system: { | ||
/** | ||
* Maximum number of block number to block hash mappings to keep (oldest pruned first). | ||
**/ | ||
blockHashCount: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* The maximum length of a block (in bytes). | ||
**/ | ||
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>; | ||
/** | ||
* Block & extrinsics weights: base values and limits. | ||
**/ | ||
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>; | ||
/** | ||
* The weight of runtime database operations the runtime can invoke. | ||
**/ | ||
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>; | ||
/** | ||
* The designated SS58 prefix of this chain. | ||
* | ||
* This replaces the "ss58Format" property declared in the chain spec. Reason is | ||
* that the runtime should know about the prefix in order to make use of it as | ||
* an identifier of the chain. | ||
**/ | ||
ss58Prefix: u16 & AugmentedConst<ApiType>; | ||
/** | ||
* Get the chain's current version. | ||
**/ | ||
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
timestamp: { | ||
/** | ||
* The minimum period between blocks. Beware that this is different to the *expected* | ||
* period that the block production apparatus provides. Your chosen consensus system will | ||
* generally work with this to determine a sensible block time. e.g. For Aura, it will be | ||
* double this period on default settings. | ||
**/ | ||
minimumPeriod: u64 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
transactionPayment: { | ||
/** | ||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their | ||
* `priority` | ||
* | ||
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later | ||
* added to a tip component in regular `priority` calculations. | ||
* It means that a `Normal` transaction can front-run a similarly-sized `Operational` | ||
* extrinsic (with no tip), by including a tip value greater than the virtual tip. | ||
* | ||
* ```rust,ignore | ||
* // For `Normal` | ||
* let priority = priority_calc(tip); | ||
* | ||
* // For `Operational` | ||
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; | ||
* let priority = priority_calc(tip + virtual_tip); | ||
* ``` | ||
* | ||
* Note that since we use `final_fee` the multiplier applies also to the regular `tip` | ||
* sent with the transaction. So, not only does the transaction get a priority bump based | ||
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` | ||
* transactions. | ||
**/ | ||
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
utility: { | ||
/** | ||
* The limit on the number of batched calls. | ||
**/ | ||
batchedCallsLimit: u32 & AugmentedConst<ApiType>; | ||
/** | ||
* Generic const | ||
**/ | ||
[key: string]: Codec; | ||
}; | ||
} // AugmentedConsts | ||
} // declare module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.