Skip to content

Update Polkadot types to polkadot-fellows/runtimes release 1.6.0 #6173

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
32 changes: 27 additions & 5 deletions packages/api-augment/src/polkadot/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import '@polkadot/api-base/types/consts';
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec, ITuple } from '@polkadot/types-codec/types';
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions } from '@polkadot/types/lookup';
import type { AccountId32, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions } from '@polkadot/types/lookup';

export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;

Expand Down Expand Up @@ -128,7 +128,12 @@ declare module '@polkadot/api-base/types/consts' {
**/
bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
/**
* Bounty duration in blocks.
* The time limit for a curator to act before a bounty expires.
*
* The period that starts when a curator is approved, during which they must execute or
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
* removing the need for `extend_bounty_expiry`.
**/
bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -541,9 +546,11 @@ declare module '@polkadot/api-base/types/consts' {
**/
submissionDeposit: u128 & AugmentedConst<ApiType>;
/**
* Information concerning the different referendum tracks.
* A list of tracks.
*
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
**/
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
/**
* The number of blocks after submission that a referendum must begin being decided by.
* Once this passes, then anyone may cancel the referendum.
Expand Down Expand Up @@ -803,6 +810,10 @@ declare module '@polkadot/api-base/types/consts' {
* The period during which an approved treasury spend has to be claimed.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* Gets this pallet's derived pot account.
**/
potAccount: AccountId32 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
Expand Down Expand Up @@ -885,5 +896,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
xcmPallet: {
/**
* The latest supported version that we advertise. Generally just set it to
* `pallet_xcm::CurrentXcmVersion`.
**/
advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
} // AugmentedConsts
} // declare module
43 changes: 41 additions & 2 deletions packages/api-augment/src/polkadot/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,15 +842,16 @@ declare module '@polkadot/api-base/types/errors' {
**/
NoApprovalsNeeded: AugmentedError<ApiType>;
/**
* Multisig operation not found when attempting to cancel.
* Multisig operation not found in storage.
**/
NotFound: AugmentedError<ApiType>;
/**
* No timepoint was given, yet the multisig operation is already underway.
**/
NoTimepoint: AugmentedError<ApiType>;
/**
* Only the account that originally created the multisig is able to cancel it.
* Only the account that originally created the multisig is able to cancel it or update
* its deposits.
**/
NotOwner: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -1027,10 +1028,19 @@ declare module '@polkadot/api-base/types/errors' {
* A (bonded) pool id does not exist.
**/
PoolNotFound: AugmentedError<ApiType>;
/**
* Account is restricted from participation in pools. This may happen if the account is
* staking in another way already.
**/
Restricted: AugmentedError<ApiType>;
/**
* A reward pool does not exist. In all cases this is a system logic error.
**/
RewardPoolNotFound: AugmentedError<ApiType>;
/**
* The slash amount is too low to be applied.
**/
SlashTooLow: AugmentedError<ApiType>;
/**
* A sub pool does not exist.
**/
Expand All @@ -1041,6 +1051,10 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
onDemand: {
/**
* The account doesn't have enough credits to purchase on-demand coretime.
**/
InsufficientCredits: AugmentedError<ApiType>;
/**
* The order queue is full, `place_order` will not continue.
**/
Expand Down Expand Up @@ -1564,6 +1578,10 @@ declare module '@polkadot/api-base/types/errors' {
* Rewards for this era have already been claimed for this validator.
**/
AlreadyClaimed: AugmentedError<ApiType>;
/**
* The stake of this account is already migrated to `Fungible` holds.
**/
AlreadyMigrated: AugmentedError<ApiType>;
/**
* Controller is already paired.
**/
Expand All @@ -1584,6 +1602,10 @@ declare module '@polkadot/api-base/types/errors' {
* The user has enough bond and thus cannot be chilled forcefully by an external person.
**/
CannotChillOther: AugmentedError<ApiType>;
/**
* Stash could not be reaped as other pallet might depend on it.
**/
CannotReapStash: AugmentedError<ApiType>;
/**
* Cannot reset a ledger.
**/
Expand Down Expand Up @@ -1662,6 +1684,11 @@ declare module '@polkadot/api-base/types/errors' {
* Can not rebond without unlocking chunks.
**/
NoUnlockChunk: AugmentedError<ApiType>;
/**
* Account is restricted from participation in staking. This may happen if the account is
* staking in another way already, such as via pool.
**/
Restricted: AugmentedError<ApiType>;
/**
* Provided reward destination is not allowed.
**/
Expand Down Expand Up @@ -1900,6 +1927,10 @@ declare module '@polkadot/api-base/types/errors' {
* The given account is not an identifiable sovereign account for any location.
**/
AccountNotSovereign: AugmentedError<ApiType>;
/**
* The alias to remove authorization for was not found.
**/
AliasNotFound: AugmentedError<ApiType>;
/**
* The location is invalid since it already has a subscription from us.
**/
Expand Down Expand Up @@ -1929,6 +1960,10 @@ declare module '@polkadot/api-base/types/errors' {
* The assets to be sent are empty.
**/
Empty: AugmentedError<ApiType>;
/**
* Expiry block number is in the past.
**/
ExpiresInPast: AugmentedError<ApiType>;
/**
* The operation required fees to be paid which the initiator could not meet.
**/
Expand Down Expand Up @@ -1978,6 +2013,10 @@ declare module '@polkadot/api-base/types/errors' {
* Too many assets have been attempted for transfer.
**/
TooManyAssets: AugmentedError<ApiType>;
/**
* Too many locations authorized to alias origin.
**/
TooManyAuthorizedAliases: AugmentedError<ApiType>;
/**
* The asset owner has too many locks on the asset.
**/
Expand Down
Loading