Skip to content

Commit

Permalink
10.5.1 (#5623)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Apr 29, 2023
1 parent ce57694 commit c1b1ad7
Show file tree
Hide file tree
Showing 37 changed files with 306 additions and 287 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# CHANGELOG

## master
## 10.5.1 Apr 29, 2023

Changes:

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


## 10.4.1 Apr 22, 2023
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"versions": {
"git": "10.4.2-7-x",
"npm": "10.4.1"
Expand Down Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@polkadot/dev": "^0.73.6",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^18.16.2"
"@types/node": "^18.16.3"
},
"resolutions": {
"typescript": "^5.0.4"
Expand Down
12 changes: 6 additions & 6 deletions packages/api-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "10.4.2-7-x",
"@polkadot/rpc-augment": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/types-augment": "10.4.2-7-x",
"@polkadot/types-codec": "10.4.2-7-x",
"@polkadot/api-base": "10.5.0",
"@polkadot/rpc-augment": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/types-augment": "10.5.0",
"@polkadot/types-codec": "10.5.0",
"@polkadot/util": "^12.1.1",
"tslib": "^2.5.0"
}
Expand Down
13 changes: 4 additions & 9 deletions packages/api-augment/src/kusama/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -998,15 +998,6 @@ declare module '@polkadot/api-base/types/storage' {
* The primary structure that holds all offence records keyed by report identifiers.
**/
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Enumerates all reports of a kind along with the time they happened.
*
* All reports are sorted by the time of offence.
*
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
* different types are not supported at the moment so we are doing the manual serialization.
**/
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
/**
* Generic query
**/
Expand Down Expand Up @@ -2115,6 +2106,10 @@ declare module '@polkadot/api-base/types/storage' {
* of our versions we informed them of.
**/
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]>;
/**
* Global suspension state of the XCM executor.
**/
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
Expand Down
15 changes: 11 additions & 4 deletions packages/api-augment/src/kusama/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3875,22 +3875,29 @@ declare module '@polkadot/api-base/types/submittable' {
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
* version a destination can accept is unknown).
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
**/
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
/**
* Ask a location to notify us regarding their XCM version and any changes to it.
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The location to which we should subscribe for XCM version notifications.
**/
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
/**
* Set or unset the global suspension state of the XCM executor.
*
* - `origin`: Must be an origin specified by AdminOrigin.
* - `suspended`: `true` to suspend, `false` to resume.
**/
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
/**
* Require that a particular destination should no longer notify us regarding any XCM
* version changes.
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The location to which we are currently subscribed for XCM version
* notifications which we no longer desire.
**/
Expand All @@ -3899,7 +3906,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Extoll that a particular destination can be communicated with through a particular
* version of XCM.
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The destination that is being described.
* - `xcm_version`: The latest version of XCM that `location` supports.
**/
Expand Down
13 changes: 4 additions & 9 deletions packages/api-augment/src/polkadot/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -950,15 +950,6 @@ declare module '@polkadot/api-base/types/storage' {
* The primary structure that holds all offence records keyed by report identifiers.
**/
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Enumerates all reports of a kind along with the time they happened.
*
* All reports are sorted by the time of offence.
*
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
* different types are not supported at the moment so we are doing the manual serialization.
**/
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
/**
* Generic query
**/
Expand Down Expand Up @@ -2058,6 +2049,10 @@ declare module '@polkadot/api-base/types/storage' {
* of our versions we informed them of.
**/
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]>;
/**
* Global suspension state of the XCM executor.
**/
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
Expand Down
15 changes: 11 additions & 4 deletions packages/api-augment/src/polkadot/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3987,22 +3987,29 @@ declare module '@polkadot/api-base/types/submittable' {
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
* version a destination can accept is unknown).
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
**/
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
/**
* Ask a location to notify us regarding their XCM version and any changes to it.
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The location to which we should subscribe for XCM version notifications.
**/
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
/**
* Set or unset the global suspension state of the XCM executor.
*
* - `origin`: Must be an origin specified by AdminOrigin.
* - `suspended`: `true` to suspend, `false` to resume.
**/
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
/**
* Require that a particular destination should no longer notify us regarding any XCM
* version changes.
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The location to which we are currently subscribed for XCM version
* notifications which we no longer desire.
**/
Expand All @@ -4011,7 +4018,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Extoll that a particular destination can be communicated with through a particular
* version of XCM.
*
* - `origin`: Must be Root.
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The destination that is being described.
* - `xcm_version`: The latest version of XCM that `location` supports.
**/
Expand Down
4 changes: 4 additions & 0 deletions packages/api-augment/src/substrate/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
contracts: {
/**
* Fallback value to limit the storage deposit if it's not being set by the caller.
**/
defaultDepositLimit: u128 & AugmentedConst<ApiType>;
/**
* The amount of balance a caller has to pay for each byte of storage.
*
Expand Down
11 changes: 2 additions & 9 deletions packages/api-augment/src/substrate/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ declare module '@polkadot/api-base/types/storage' {
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
*
* Always sorted by score.
**/
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
/**
Expand Down Expand Up @@ -1150,15 +1152,6 @@ declare module '@polkadot/api-base/types/storage' {
* The primary structure that holds all offence records keyed by report identifiers.
**/
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Enumerates all reports of a kind along with the time they happened.
*
* All reports are sorted by the time of offence.
*
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
* different types are not supported at the moment so we are doing the manual serialization.
**/
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
/**
* Generic query
**/
Expand Down
6 changes: 3 additions & 3 deletions packages/api-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/rpc-core": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/util": "^12.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.5.0"
Expand Down
12 changes: 6 additions & 6 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/types-codec": "10.4.2-7-x",
"@polkadot/types-create": "10.4.2-7-x",
"@polkadot/api": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/types-codec": "10.5.0",
"@polkadot/types-create": "10.5.0",
"@polkadot/util": "^12.1.1",
"@polkadot/util-crypto": "^12.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api-augment": "10.4.2-7-x",
"@polkadot/api-augment": "10.5.0",
"@polkadot/keyring": "^12.1.1"
}
}
24 changes: 12 additions & 12 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.4.2-7-x",
"@polkadot/api-augment": "10.4.2-7-x",
"@polkadot/api-base": "10.4.2-7-x",
"@polkadot/rpc-core": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/types-codec": "10.4.2-7-x",
"@polkadot/api": "10.5.0",
"@polkadot/api-augment": "10.5.0",
"@polkadot/api-base": "10.5.0",
"@polkadot/rpc-core": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/types-codec": "10.5.0",
"@polkadot/util": "^12.1.1",
"@polkadot/util-crypto": "^12.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api": "10.4.2-7-x",
"@polkadot/api-augment": "10.4.2-7-x",
"@polkadot/rpc-augment": "10.4.2-7-x",
"@polkadot/rpc-provider": "10.4.2-7-x",
"@polkadot/types-support": "10.4.2-7-x"
"@polkadot/api": "10.5.0",
"@polkadot/api-augment": "10.5.0",
"@polkadot/rpc-augment": "10.5.0",
"@polkadot/rpc-provider": "10.5.0",
"@polkadot/types-support": "10.5.0"
}
}
28 changes: 14 additions & 14 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "10.4.2-7-x",
"@polkadot/api-base": "10.4.2-7-x",
"@polkadot/api-derive": "10.4.2-7-x",
"@polkadot/api-augment": "10.5.0",
"@polkadot/api-base": "10.5.0",
"@polkadot/api-derive": "10.5.0",
"@polkadot/keyring": "^12.1.1",
"@polkadot/rpc-augment": "10.4.2-7-x",
"@polkadot/rpc-core": "10.4.2-7-x",
"@polkadot/rpc-provider": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/types-augment": "10.4.2-7-x",
"@polkadot/types-codec": "10.4.2-7-x",
"@polkadot/types-create": "10.4.2-7-x",
"@polkadot/types-known": "10.4.2-7-x",
"@polkadot/rpc-augment": "10.5.0",
"@polkadot/rpc-core": "10.5.0",
"@polkadot/rpc-provider": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/types-augment": "10.5.0",
"@polkadot/types-codec": "10.5.0",
"@polkadot/types-create": "10.5.0",
"@polkadot/types-known": "10.5.0",
"@polkadot/util": "^12.1.1",
"@polkadot/util-crypto": "^12.1.1",
"eventemitter3": "^5.0.0",
"rxjs": "^7.8.1",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/api-augment": "10.4.2-7-x",
"@polkadot/types-support": "10.4.2-7-x"
"@polkadot/api-augment": "10.5.0",
"@polkadot/types-support": "10.5.0"
}
}
8 changes: 4 additions & 4 deletions packages/rpc-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/types-codec": "10.4.2-7-x",
"@polkadot/rpc-core": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/types-codec": "10.5.0",
"@polkadot/util": "^12.1.1",
"tslib": "^2.5.0"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.4.2-7-x",
"version": "10.5.0",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "10.4.2-7-x",
"@polkadot/rpc-provider": "10.4.2-7-x",
"@polkadot/types": "10.4.2-7-x",
"@polkadot/rpc-augment": "10.5.0",
"@polkadot/rpc-provider": "10.5.0",
"@polkadot/types": "10.5.0",
"@polkadot/util": "^12.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.5.0"
},
"devDependencies": {
"@polkadot/keyring": "^12.1.1",
"@polkadot/rpc-augment": "10.4.2-7-x"
"@polkadot/rpc-augment": "10.5.0"
}
}
Loading

0 comments on commit c1b1ad7

Please sign in to comment.