Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Substrate metadata #5755

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Changes:
- Add known `intrablockEntropy` storage key
- Add support for `SkipCheckIfFeeless` signed extension
- Drop support for Node 16 (EOL 11 Sep 2023)
- Update to latest Substrate metadata


## 10.10.1 Oct 14, 2023
Expand Down
108 changes: 84 additions & 24 deletions packages/api-augment/src/substrate/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,6 @@ declare module '@polkadot/api-base/types/consts' {
* to submit the worker's solution.
**/
offchainRepeat: u32 & AugmentedConst<ApiType>;
/**
* Base deposit for a signed solution.
**/
signedDepositBase: u128 & AugmentedConst<ApiType>;
/**
* Per-byte deposit for a signed solution.
**/
Expand Down Expand Up @@ -639,14 +635,9 @@ declare module '@polkadot/api-base/types/consts' {
**/
basicDeposit: u128 & AugmentedConst<ApiType>;
/**
* The amount held on deposit per additional field for a registered identity.
* The amount held on deposit per encoded byte for a registered identity.
**/
fieldDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
* required to access an identity, but can be pretty high.
**/
maxAdditionalFields: u32 & AugmentedConst<ApiType>;
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
Expand Down Expand Up @@ -738,6 +729,58 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
mixnet: {
/**
* The maximum number of authorities per session.
**/
maxAuthorities: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of external addresses for a mixnode.
**/
maxExternalAddressesPerMixnode: u32 & AugmentedConst<ApiType>;
/**
* The maximum size of one of a mixnode's external addresses.
**/
maxExternalAddressSize: u32 & AugmentedConst<ApiType>;
/**
* Minimum number of mixnodes. If there are fewer than this many mixnodes registered for a
* session, the mixnet will not be active during the session.
**/
minMixnodes: u32 & AugmentedConst<ApiType>;
/**
* Length of the first phase of each session (`CoverToCurrent`), in blocks.
**/
numCoverToCurrentBlocks: u32 & AugmentedConst<ApiType>;
/**
* Length of the third phase of each session (`CoverToPrev`), in blocks.
**/
numCoverToPrevBlocks: u32 & AugmentedConst<ApiType>;
/**
* The number of "slack" blocks at the end of each session.
* [`maybe_register`](Pallet::maybe_register) will try to register before this slack
* period, but may post registration transactions during the slack period as a last
* resort.
**/
numRegisterEndSlackBlocks: u32 & AugmentedConst<ApiType>;
/**
* The number of "slack" blocks at the start of each session, during which
* [`maybe_register`](Pallet::maybe_register) will not attempt to post registration
* transactions.
**/
numRegisterStartSlackBlocks: u32 & AugmentedConst<ApiType>;
/**
* Length of the second phase of each session (`RequestsToCurrent`), in blocks.
**/
numRequestsToCurrentBlocks: u32 & AugmentedConst<ApiType>;
/**
* Priority of unsigned transactions used to register mixnodes.
**/
registrationPriority: u64 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
multisig: {
/**
* The base amount of currency needed to reserve for creating a multisig execution or to
Expand Down Expand Up @@ -1259,8 +1302,8 @@ declare module '@polkadot/api-base/types/consts' {
* Following information is kept for eras in `[current_era -
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
* `ErasTotalStake`, `ErasStartSessionIndex`,
* `StakingLedger.claimed_rewards`.
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
* `ErasStakersOverview`.
*
* Must be more than the number of eras delayed by session.
* I.e. active era must always be in history. I.e. `active_era >
Expand All @@ -1270,19 +1313,26 @@ declare module '@polkadot/api-base/types/consts' {
* this should be set to same value or greater as in storage.
*
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
* item `StakingLedger.claimed_rewards`. Setting this value lower than
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
* the existing value can lead to inconsistencies in the
* `StakingLedger` and will need to be handled properly in a migration.
* The test `reducing_history_depth_abrupt` shows this effect.
**/
historyDepth: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of nominators rewarded for each validator.
* The maximum size of each `T::ExposurePage`.
*
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
* nominators.
*
* For older non-paged exposure, a reward payout was restricted to the top
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
* nominator payout.
*
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
* claim their reward. This used to limit the i/o cost for the nominator payout.
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
* without handling it in a migration.
**/
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
* have. Effectively determines how many unique eras a staker may be
Expand Down Expand Up @@ -1418,10 +1468,12 @@ declare module '@polkadot/api-base/types/consts' {
};
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.
* The minimum period between blocks.
*
* Be aware 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. For example, in the Aura pallet it will be double this
* period on default settings.
**/
minimumPeriod: u64 & AugmentedConst<ApiType>;
/**
Expand All @@ -1440,6 +1492,10 @@ declare module '@polkadot/api-base/types/consts' {
* Benchmarks depend on this value, be sure to update weights file when changing this value
**/
maximumReasonLength: u32 & AugmentedConst<ApiType>;
/**
* The maximum amount for a single tip.
**/
maxTipAmount: u128 & AugmentedConst<ApiType>;
/**
* The period for which a tip remains open after is has achieved threshold tippers.
**/
Expand All @@ -1459,10 +1515,10 @@ declare module '@polkadot/api-base/types/consts' {
};
transactionPayment: {
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* A fee multiplier 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
* This value is multiplied 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.
Expand Down Expand Up @@ -1502,6 +1558,10 @@ declare module '@polkadot/api-base/types/consts' {
* The treasury's pallet id, used for deriving its sovereign account ID.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The period during which an approved treasury spend has to be claimed.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* Fraction of a proposal's value that should be bonded in order to place the proposal.
* An accepted proposal gets these back. A rejected proposal does not.
Expand Down
72 changes: 58 additions & 14 deletions packages/api-augment/src/substrate/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ declare module '@polkadot/api-base/types/errors' {
/**
* The account's identity does not have display field and website field.
**/
WithoutIdentityDisplayAndWebsite: AugmentedError<ApiType>;
WithoutRequiredIdentityFields: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -802,6 +802,10 @@ declare module '@polkadot/api-base/types/errors' {
* The size defined in `T::MaxValueSize` was exceeded.
**/
ValueTooLarge: AugmentedError<ApiType>;
/**
* Failed to decode the XCM program.
**/
XCMDecodeFailed: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -1340,10 +1344,6 @@ declare module '@polkadot/api-base/types/errors' {
* Sticky judgement.
**/
StickyJudgement: AugmentedError<ApiType>;
/**
* Too many additional fields.
**/
TooManyFields: AugmentedError<ApiType>;
/**
* Maximum amount of registrars reached. Cannot add any more.
**/
Expand Down Expand Up @@ -1887,9 +1887,9 @@ declare module '@polkadot/api-base/types/errors' {
/**
* The amount does not meet the minimum bond to either join or create a pool.
*
* The depositor can never unbond to a value less than
* `Pallet::depositor_min_bond`. The caller does not have nominating
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
* The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
* caller does not have nominating permissions for the pool. Members can never unbond to a
* value below `MinJoinBond`.
**/
MinimumBondNotMet: AugmentedError<ApiType>;
/**
Expand All @@ -1905,6 +1905,10 @@ declare module '@polkadot/api-base/types/errors' {
* other members to be permissionlessly unbonded.
**/
NotDestroying: AugmentedError<ApiType>;
/**
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
Expand Down Expand Up @@ -2064,6 +2068,14 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage is too large to store on-chain.
**/
TooBig: AugmentedError<ApiType>;
/**
* Too few hashes were requested to be upgraded (i.e. zero).
**/
TooFew: AugmentedError<ApiType>;
/**
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
**/
TooMany: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -2695,6 +2707,10 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid number of nominations.
**/
InvalidNumberOfNominations: AugmentedError<ApiType>;
/**
* No nominators exist on this page.
**/
InvalidPage: AugmentedError<ApiType>;
/**
* Slash record index out of bounds.
**/
Expand Down Expand Up @@ -2776,7 +2792,7 @@ declare module '@polkadot/api-base/types/errors' {
};
sudo: {
/**
* Sender must be the Sudo account
* Sender must be the Sudo account.
**/
RequireSudo: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -2891,6 +2907,10 @@ declare module '@polkadot/api-base/types/errors' {
* The tip was already found/started.
**/
AlreadyKnown: AugmentedError<ApiType>;
/**
* The tip given was too generous.
**/
MaxTipAmountExceeded: AugmentedError<ApiType>;
/**
* The account attempting to retract the tip is not the finder of the tip.
**/
Expand Down Expand Up @@ -2929,10 +2949,6 @@ declare module '@polkadot/api-base/types/errors' {
* Attempting to store empty transaction
**/
EmptyTransaction: AugmentedError<ApiType>;
/**
* Insufficient account balance.
**/
InsufficientFunds: AugmentedError<ApiType>;
/**
* Proof failed verification.
**/
Expand Down Expand Up @@ -2975,6 +2991,22 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
treasury: {
/**
* The payment has already been attempted.
**/
AlreadyAttempted: AugmentedError<ApiType>;
/**
* The spend is not yet eligible for payout.
**/
EarlyPayout: AugmentedError<ApiType>;
/**
* The balance of the asset kind is not convertible to the balance of the native asset.
**/
FailedToConvertBalance: AugmentedError<ApiType>;
/**
* The payment has neither failed nor succeeded yet.
**/
Inconclusive: AugmentedError<ApiType>;
/**
* The spend origin is valid but the amount it is allowed to spend is lower than the
* amount to be spent.
Expand All @@ -2985,13 +3017,25 @@ declare module '@polkadot/api-base/types/errors' {
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal or bounty at that index.
* No proposal, bounty or spend at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* The payout was not yet attempted/claimed.
**/
NotAttempted: AugmentedError<ApiType>;
/**
* There was some issue with the mechanism of payment.
**/
PayoutError: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* The spend has expired and cannot be claimed.
**/
SpendExpired: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
Expand Down
Loading
Loading