Skip to content

Commit

Permalink
chore: augmentation for runtime 1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Feb 14, 2024
1 parent cb0b8e1 commit 9d0ea9b
Show file tree
Hide file tree
Showing 10 changed files with 1,978 additions and 3,146 deletions.
2 changes: 1 addition & 1 deletion packages/augment-api/metadata/spiritnet.json

Large diffs are not rendered by default.

39 changes: 38 additions & 1 deletion packages/augment-api/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,24 @@ declare module '@polkadot/api-base/types/consts' {
};
balances: {
/**
* The minimum amount required to keep an account open.
* 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.
Expand All @@ -40,6 +55,12 @@ declare module '@polkadot/api-base/types/consts' {
**/
maxReserves: u32 & AugmentedConst<ApiType>;
};
council: {
/**
* The maximum weight of a dispatch call that can be proposed and executed.
**/
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
};
delegation: {
/**
* The deposit that is required for storing a delegation.
Expand Down Expand Up @@ -229,6 +250,12 @@ declare module '@polkadot/api-base/types/consts' {
**/
initialPeriodReward: u128 & AugmentedConst<ApiType>;
};
migration: {
/**
* The max amount on migrations for each pallet
**/
maxMigrationsPerPallet: u32 & AugmentedConst<ApiType>;
};
multisig: {
/**
* The base amount of currency needed to reserve for creating a multisig execution or to
Expand Down Expand Up @@ -398,6 +425,10 @@ declare module '@polkadot/api-base/types/consts' {
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>;
};
Expand Down Expand Up @@ -431,6 +462,12 @@ declare module '@polkadot/api-base/types/consts' {
**/
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
};
technicalCommittee: {
/**
* The maximum weight of a dispatch call that can be proposed and executed.
**/
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
};
timestamp: {
/**
* The minimum period between blocks. Beware that this is different to the *expected*
Expand Down
31 changes: 21 additions & 10 deletions packages/augment-api/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,43 @@ declare module '@polkadot/api-base/types/errors' {
};
balances: {
/**
* Beneficiary account must pre-exist
* Beneficiary account must pre-exist.
**/
DeadAccount: AugmentedError<ApiType>;
/**
* Value too low to create account due to existential deposit
* Value too low to create account due to existential deposit.
**/
ExistentialDeposit: AugmentedError<ApiType>;
/**
* A vesting schedule already exists for this account
* A vesting schedule already exists for this account.
**/
ExistingVestingSchedule: AugmentedError<ApiType>;
/**
* Transfer/payment would kill account.
**/
Expendability: AugmentedError<ApiType>;
/**
* Balance too low to send value.
**/
InsufficientBalance: AugmentedError<ApiType>;
/**
* Transfer/payment would kill account
* Account liquidity restrictions prevent withdrawal.
**/
KeepAlive: AugmentedError<ApiType>;
LiquidityRestrictions: AugmentedError<ApiType>;
/**
* Account liquidity restrictions prevent withdrawal
* Number of freezes exceed `MaxFreezes`.
**/
LiquidityRestrictions: AugmentedError<ApiType>;
TooManyFreezes: AugmentedError<ApiType>;
/**
* Number of named reserves exceed MaxReserves
* Number of holds exceed `MaxHolds`.
**/
TooManyHolds: AugmentedError<ApiType>;
/**
* Number of named reserves exceed `MaxReserves`.
**/
TooManyReserves: AugmentedError<ApiType>;
/**
* Vesting balance too high to send value
* Vesting balance too high to send value.
**/
VestingBalance: AugmentedError<ApiType>;
};
Expand Down Expand Up @@ -507,6 +515,9 @@ declare module '@polkadot/api-base/types/errors' {
**/
Permanent: AugmentedError<ApiType>;
};
migration: {
KeyParse: AugmentedError<ApiType>;
};
multisig: {
/**
* Call is already approved by this signatory.
Expand Down Expand Up @@ -793,7 +804,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
Filtered: AugmentedError<ApiType>;
/**
* The unlock operation cannot succeed because there are still users of the lock.
* The unlock operation cannot succeed because there are still consumers of the lock.
**/
InUse: AugmentedError<ApiType>;
/**
Expand Down
Loading

0 comments on commit 9d0ea9b

Please sign in to comment.