Skip to content

Commit c1b1ad7

Browse files
authored
10.5.1 (#5623)
1 parent ce57694 commit c1b1ad7

File tree

37 files changed

+306
-287
lines changed

37 files changed

+306
-287
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# CHANGELOG
22

3-
## master
3+
## 10.5.1 Apr 29, 2023
44

55
Changes:
66

77
- Default to hex-only in `Int/UInt.toJSON` for > 128-bit values
88
- Allow for disabling of `isPedantic` storage checks in API options
99
- Adjust usage of `objectSpread`, default to runtime as required
1010
- Adjust compilation output for `__internal__` class fields
11+
- Update to latest Polkadot, Kusama & Substrate metadata
1112

1213

1314
## 10.4.1 Apr 22, 2023

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"sideEffects": false,
1616
"type": "module",
17-
"version": "10.4.2-7-x",
17+
"version": "10.5.0",
1818
"versions": {
1919
"git": "10.4.2-7-x",
2020
"npm": "10.4.1"
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@polkadot/dev": "^0.73.6",
4444
"@polkadot/typegen": "workspace:packages/typegen",
45-
"@types/node": "^18.16.2"
45+
"@types/node": "^18.16.3"
4646
},
4747
"resolutions": {
4848
"typescript": "^5.0.4"

packages/api-augment/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.4.2-7-x",
21+
"version": "10.5.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api-base": "10.4.2-7-x",
25-
"@polkadot/rpc-augment": "10.4.2-7-x",
26-
"@polkadot/types": "10.4.2-7-x",
27-
"@polkadot/types-augment": "10.4.2-7-x",
28-
"@polkadot/types-codec": "10.4.2-7-x",
24+
"@polkadot/api-base": "10.5.0",
25+
"@polkadot/rpc-augment": "10.5.0",
26+
"@polkadot/types": "10.5.0",
27+
"@polkadot/types-augment": "10.5.0",
28+
"@polkadot/types-codec": "10.5.0",
2929
"@polkadot/util": "^12.1.1",
3030
"tslib": "^2.5.0"
3131
}

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -998,15 +998,6 @@ declare module '@polkadot/api-base/types/storage' {
998998
* The primary structure that holds all offence records keyed by report identifiers.
999999
**/
10001000
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1001-
/**
1002-
* Enumerates all reports of a kind along with the time they happened.
1003-
*
1004-
* All reports are sorted by the time of offence.
1005-
*
1006-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
1007-
* different types are not supported at the moment so we are doing the manual serialization.
1008-
**/
1009-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
10101001
/**
10111002
* Generic query
10121003
**/
@@ -2115,6 +2106,10 @@ declare module '@polkadot/api-base/types/storage' {
21152106
* of our versions we informed them of.
21162107
**/
21172108
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
2109+
/**
2110+
* Global suspension state of the XCM executor.
2111+
**/
2112+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
21182113
/**
21192114
* Generic query
21202115
**/

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,22 +3875,29 @@ declare module '@polkadot/api-base/types/submittable' {
38753875
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
38763876
* version a destination can accept is unknown).
38773877
*
3878-
* - `origin`: Must be Root.
3878+
* - `origin`: Must be an origin specified by AdminOrigin.
38793879
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
38803880
**/
38813881
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
38823882
/**
38833883
* Ask a location to notify us regarding their XCM version and any changes to it.
38843884
*
3885-
* - `origin`: Must be Root.
3885+
* - `origin`: Must be an origin specified by AdminOrigin.
38863886
* - `location`: The location to which we should subscribe for XCM version notifications.
38873887
**/
38883888
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
3889+
/**
3890+
* Set or unset the global suspension state of the XCM executor.
3891+
*
3892+
* - `origin`: Must be an origin specified by AdminOrigin.
3893+
* - `suspended`: `true` to suspend, `false` to resume.
3894+
**/
3895+
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
38893896
/**
38903897
* Require that a particular destination should no longer notify us regarding any XCM
38913898
* version changes.
38923899
*
3893-
* - `origin`: Must be Root.
3900+
* - `origin`: Must be an origin specified by AdminOrigin.
38943901
* - `location`: The location to which we are currently subscribed for XCM version
38953902
* notifications which we no longer desire.
38963903
**/
@@ -3899,7 +3906,7 @@ declare module '@polkadot/api-base/types/submittable' {
38993906
* Extoll that a particular destination can be communicated with through a particular
39003907
* version of XCM.
39013908
*
3902-
* - `origin`: Must be Root.
3909+
* - `origin`: Must be an origin specified by AdminOrigin.
39033910
* - `location`: The destination that is being described.
39043911
* - `xcm_version`: The latest version of XCM that `location` supports.
39053912
**/

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -950,15 +950,6 @@ declare module '@polkadot/api-base/types/storage' {
950950
* The primary structure that holds all offence records keyed by report identifiers.
951951
**/
952952
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
953-
/**
954-
* Enumerates all reports of a kind along with the time they happened.
955-
*
956-
* All reports are sorted by the time of offence.
957-
*
958-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
959-
* different types are not supported at the moment so we are doing the manual serialization.
960-
**/
961-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
962953
/**
963954
* Generic query
964955
**/
@@ -2058,6 +2049,10 @@ declare module '@polkadot/api-base/types/storage' {
20582049
* of our versions we informed them of.
20592050
**/
20602051
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
2052+
/**
2053+
* Global suspension state of the XCM executor.
2054+
**/
2055+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
20612056
/**
20622057
* Generic query
20632058
**/

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3987,22 +3987,29 @@ declare module '@polkadot/api-base/types/submittable' {
39873987
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
39883988
* version a destination can accept is unknown).
39893989
*
3990-
* - `origin`: Must be Root.
3990+
* - `origin`: Must be an origin specified by AdminOrigin.
39913991
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
39923992
**/
39933993
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
39943994
/**
39953995
* Ask a location to notify us regarding their XCM version and any changes to it.
39963996
*
3997-
* - `origin`: Must be Root.
3997+
* - `origin`: Must be an origin specified by AdminOrigin.
39983998
* - `location`: The location to which we should subscribe for XCM version notifications.
39993999
**/
40004000
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
4001+
/**
4002+
* Set or unset the global suspension state of the XCM executor.
4003+
*
4004+
* - `origin`: Must be an origin specified by AdminOrigin.
4005+
* - `suspended`: `true` to suspend, `false` to resume.
4006+
**/
4007+
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
40014008
/**
40024009
* Require that a particular destination should no longer notify us regarding any XCM
40034010
* version changes.
40044011
*
4005-
* - `origin`: Must be Root.
4012+
* - `origin`: Must be an origin specified by AdminOrigin.
40064013
* - `location`: The location to which we are currently subscribed for XCM version
40074014
* notifications which we no longer desire.
40084015
**/
@@ -4011,7 +4018,7 @@ declare module '@polkadot/api-base/types/submittable' {
40114018
* Extoll that a particular destination can be communicated with through a particular
40124019
* version of XCM.
40134020
*
4014-
* - `origin`: Must be Root.
4021+
* - `origin`: Must be an origin specified by AdminOrigin.
40154022
* - `location`: The destination that is being described.
40164023
* - `xcm_version`: The latest version of XCM that `location` supports.
40174024
**/

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ declare module '@polkadot/api-base/types/consts' {
209209
[key: string]: Codec;
210210
};
211211
contracts: {
212+
/**
213+
* Fallback value to limit the storage deposit if it's not being set by the caller.
214+
**/
215+
defaultDepositLimit: u128 & AugmentedConst<ApiType>;
212216
/**
213217
* The amount of balance a caller has to pay for each byte of storage.
214218
*

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ declare module '@polkadot/api-base/types/storage' {
586586
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
587587
/**
588588
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
589+
*
590+
* Always sorted by score.
589591
**/
590592
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
591593
/**
@@ -1150,15 +1152,6 @@ declare module '@polkadot/api-base/types/storage' {
11501152
* The primary structure that holds all offence records keyed by report identifiers.
11511153
**/
11521154
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1153-
/**
1154-
* Enumerates all reports of a kind along with the time they happened.
1155-
*
1156-
* All reports are sorted by the time of offence.
1157-
*
1158-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
1159-
* different types are not supported at the moment so we are doing the manual serialization.
1160-
**/
1161-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
11621155
/**
11631156
* Generic query
11641157
**/

packages/api-base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.4.2-7-x",
21+
"version": "10.5.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/rpc-core": "10.4.2-7-x",
25-
"@polkadot/types": "10.4.2-7-x",
24+
"@polkadot/rpc-core": "10.5.0",
25+
"@polkadot/types": "10.5.0",
2626
"@polkadot/util": "^12.1.1",
2727
"rxjs": "^7.8.1",
2828
"tslib": "^2.5.0"

0 commit comments

Comments
 (0)