Skip to content

Commit 175ac88

Browse files
Upgrade Polkadot types to 1.5.0 (#6140)
1 parent 6903c00 commit 175ac88

File tree

16 files changed

+9003
-8575
lines changed

16 files changed

+9003
-8575
lines changed

packages/api-augment/src/polkadot/consts.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
99
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
1010
import type { Codec, ITuple } from '@polkadot/types-codec/types';
1111
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
12-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/types/lookup';
12+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions } from '@polkadot/types/lookup';
1313

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

@@ -214,7 +214,7 @@ declare module '@polkadot/api-base/types/consts' {
214214
/**
215215
* The coretime chain pot location.
216216
**/
217-
brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
217+
brokerPotLocation: StagingXcmV5Junctions & AugmentedConst<ApiType>;
218218
/**
219219
* Generic const
220220
**/
@@ -787,6 +787,9 @@ declare module '@polkadot/api-base/types/consts' {
787787
**/
788788
burn: Permill & AugmentedConst<ApiType>;
789789
/**
790+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
791+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
792+
*
790793
* The maximum number of approvals that can wait in the spending queue.
791794
*
792795
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.

packages/api-augment/src/polkadot/errors.ts

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -359,27 +359,11 @@ declare module '@polkadot/api-base/types/errors' {
359359
};
360360
coretimeAssignmentProvider: {
361361
AssignmentsEmpty: AugmentedError<ApiType>;
362-
/**
363-
* Tried to add an unsorted set of assignments
364-
**/
365-
AssignmentsNotSorted: AugmentedError<ApiType>;
366362
/**
367363
* assign_core is only allowed to append new assignments at the end of already existing
368-
* ones.
364+
* ones or update the last entry.
369365
**/
370366
DisallowedInsert: AugmentedError<ApiType>;
371-
/**
372-
* Tried to insert a schedule for the same core and block number as an existing schedule
373-
**/
374-
DuplicateInsert: AugmentedError<ApiType>;
375-
/**
376-
* Assignments together exceeded 57600.
377-
**/
378-
OverScheduled: AugmentedError<ApiType>;
379-
/**
380-
* Assignments together less than 57600
381-
**/
382-
UnderScheduled: AugmentedError<ApiType>;
383367
/**
384368
* Generic error
385369
**/
@@ -1047,10 +1031,6 @@ declare module '@polkadot/api-base/types/errors' {
10471031
* A reward pool does not exist. In all cases this is a system logic error.
10481032
**/
10491033
RewardPoolNotFound: AugmentedError<ApiType>;
1050-
/**
1051-
* The slash amount is too low to be applied.
1052-
**/
1053-
SlashTooLow: AugmentedError<ApiType>;
10541034
/**
10551035
* A sub pool does not exist.
10561036
**/
@@ -1154,14 +1134,10 @@ declare module '@polkadot/api-base/types/errors' {
11541134
};
11551135
paraInherent: {
11561136
/**
1157-
* A candidate was filtered during inherent execution. This should have only been done
1137+
* Inherent data was filtered during execution. This should have only been done
11581138
* during creation.
11591139
**/
1160-
CandidatesFilteredDuringExecution: AugmentedError<ApiType>;
1161-
/**
1162-
* The data given to the inherent will result in an overweight block.
1163-
**/
1164-
InherentOverweight: AugmentedError<ApiType>;
1140+
InherentDataFilteredDuringExecution: AugmentedError<ApiType>;
11651141
/**
11661142
* The hash of the submitted parent header doesn't correspond to the saved block hash of
11671143
* the parent.

packages/api-augment/src/polkadot/events.ts

Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.

packages/api-augment/src/polkadot/query.ts

Lines changed: 43 additions & 25 deletions
Large diffs are not rendered by default.

packages/api-augment/src/polkadot/runtime.ts

Lines changed: 25 additions & 17 deletions
Large diffs are not rendered by default.

packages/api-augment/src/polkadot/tx.ts

Lines changed: 53 additions & 40 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)