Skip to content

Commit

Permalink
12.0.1 (#5916)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul authored Jun 25, 2024
1 parent 5897fb7 commit af3d20e
Show file tree
Hide file tree
Showing 18 changed files with 181 additions and 166 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# CHANGELOG

## 12.0.1 June 24, 2024

**Important Changes**:

- Addition of an optional `signedTransaction` field to the [`SignerResult`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L138-L158) response for injected signers. This only applies to the `signPayload` method exposed in the [`Signer`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L160-L175) interface for polkadot-js. As the name suggests the field expects a signed transaction (extrinsic) when inputted. When its present, the api will not add the signature to the payload, but instead broadcast the inputted signed transaction. This means the signer may modify the payload it's given. The only part of the payload that may not be modified is the call data. This is verified on the api, and will throw an error if it does not match the initial payloads call data.
- This is very useful for signers that want to adjust the `mode` and `metadataHash` field for the `CheckMetadataHash` signed extension.
- Note that this is not your traditional breaking change since it more-so acts as an addition, but since this is a high magnitude change it is going to be considered a MAJOR bump.
- For more info please review the following PR [(#5914)](https://github.com/polkadot-js/api/pull/5914)

Changes:

- Replace `system_accountNextIndex` with runtime api call `accountNonceApi` for `api.derive.tx.signingInfo`
- Sanitize `eras` for `api.derive.staking._stakerRewards`


## 11.3.1 June 17, 2024

Changes:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"versions": {
"git": "11.3.2-2-x",
"npm": "11.3.1"
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 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "11.3.2-2-x",
"@polkadot/rpc-augment": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-augment": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/api-base": "12.0.1",
"@polkadot/rpc-augment": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/types-augment": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
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 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/rpc-core": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "11.3.2-2-x",
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types-create": "11.3.2-2-x",
"@polkadot/api": "12.0.1",
"@polkadot/api-augment": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/types-create": "12.0.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/api-augment": "12.0.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "11.3.2-2-x"
"@polkadot/types-support": "12.0.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 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "11.3.2-2-x",
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/api-base": "11.3.2-2-x",
"@polkadot/rpc-core": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/api": "12.0.1",
"@polkadot/api-augment": "12.0.1",
"@polkadot/api-base": "12.0.1",
"@polkadot/rpc-core": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "11.3.2-2-x",
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/rpc-augment": "11.3.2-2-x",
"@polkadot/rpc-provider": "11.3.2-2-x",
"@polkadot/types-support": "11.3.2-2-x"
"@polkadot/api": "12.0.1",
"@polkadot/api-augment": "12.0.1",
"@polkadot/rpc-augment": "12.0.1",
"@polkadot/rpc-provider": "12.0.1",
"@polkadot/types-support": "12.0.1"
}
}
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 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/api-base": "11.3.2-2-x",
"@polkadot/api-derive": "11.3.2-2-x",
"@polkadot/api-augment": "12.0.1",
"@polkadot/api-base": "12.0.1",
"@polkadot/api-derive": "12.0.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.3.2-2-x",
"@polkadot/rpc-core": "11.3.2-2-x",
"@polkadot/rpc-provider": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-augment": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types-create": "11.3.2-2-x",
"@polkadot/types-known": "11.3.2-2-x",
"@polkadot/rpc-augment": "12.0.1",
"@polkadot/rpc-core": "12.0.1",
"@polkadot/rpc-provider": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/types-augment": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/types-create": "12.0.1",
"@polkadot/types-known": "12.0.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/types-support": "11.3.2-2-x"
"@polkadot/api-augment": "12.0.1",
"@polkadot/types-support": "12.0.1"
}
}
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 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/rpc-core": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
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 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "11.3.2-2-x",
"@polkadot/rpc-provider": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/rpc-augment": "12.0.1",
"@polkadot/rpc-provider": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.3.2-2-x"
"@polkadot/rpc-augment": "12.0.1"
}
}
6 changes: 3 additions & 3 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-support": "11.3.2-2-x",
"@polkadot/types": "12.0.1",
"@polkadot/types-support": "12.0.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-fetch": "^12.6.2",
Expand Down
20 changes: 10 additions & 10 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
Expand All @@ -28,15 +28,15 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "11.3.2-2-x",
"@polkadot/api-augment": "11.3.2-2-x",
"@polkadot/rpc-augment": "11.3.2-2-x",
"@polkadot/rpc-provider": "11.3.2-2-x",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-augment": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types-create": "11.3.2-2-x",
"@polkadot/types-support": "11.3.2-2-x",
"@polkadot/api": "12.0.1",
"@polkadot/api-augment": "12.0.1",
"@polkadot/rpc-augment": "12.0.1",
"@polkadot/rpc-provider": "12.0.1",
"@polkadot/types": "12.0.1",
"@polkadot/types-augment": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/types-create": "12.0.1",
"@polkadot/types-support": "12.0.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/types-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/types-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
"@polkadot/x-bigint": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-augment": "11.3.2-2-x",
"@polkadot/types-support": "11.3.2-2-x",
"@polkadot/types": "12.0.1",
"@polkadot/types-augment": "12.0.1",
"@polkadot/types-support": "12.0.1",
"@polkadot/util-crypto": "^12.6.2"
}
}
6 changes: 3 additions & 3 deletions packages/types-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types-codec": "12.0.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "11.3.2-2-x"
"@polkadot/types": "12.0.1"
}
}
10 changes: 5 additions & 5 deletions packages/types-known/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types-create": "11.3.2-2-x",
"@polkadot/types": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/types-create": "12.0.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "11.3.2-2-x"
"@polkadot/api": "12.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/types-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.3.2-2-x",
"version": "12.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-augment": "11.3.2-2-x",
"@polkadot/types-codec": "11.3.2-2-x",
"@polkadot/types-create": "11.3.2-2-x",
"@polkadot/types-augment": "12.0.1",
"@polkadot/types-codec": "12.0.1",
"@polkadot/types-create": "12.0.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "11.3.2-2-x"
"@polkadot/types-support": "12.0.1"
}
}
Loading

0 comments on commit af3d20e

Please sign in to comment.