This commit is contained in:
Jaco Greeff
2021-01-11 09:04:19 +01:00
committed by GitHub
parent 645fb58e82
commit c3b697d52d
13 changed files with 301 additions and 336 deletions
+19 -2
View File
@@ -1,12 +1,29 @@
# CHANGELOG
## 3.4.0-x
## 3.4.1 Jan 11, 2020
- **Breaking change** The `derive.chain.{getBlock, subscribeNewBlocks}` now return `SignedBlockExtended`, all with the actual extrinsics and events mapped. Users of the latter interface may need some updates since the result structure may be different.
Upgrade priority: Low. Fixes for parachain types, `.entries()` (with no values) and `event.is(...)` checks, users of these interfaces will have benefit.
- **Breaking change** The `derive.chain.{getBlock, subscribeNewBlocks}` now return `SignedBlockExtended`, all with the actual extrinsics and events mapped. Users of the latter interface should take note.
Contributed:
- Fix `SessionKeys{6-9}` definitions (Thanks to https://github.com/icodezjb)
- Support `Vec<(a, b)>` in enums (Thanks to https://github.com/monitz87)
- Add motions to bounty derive (Thanks to https://github.com/ekowalsk)
Changes:
- `derive.chain.getBlock()` now maps events to extrinsics via `.extrinsics` getter
- Ensure dispatchInfo is extracted on failed extrinsics (`getBlock` derive)
- Allow specification of additional signed extrinsic via API options
- Add missing parachain types, `ParaGenesisArgs`
- Correct `EthTransaction` type (as per the correct cargo crate)
- Update with latest contract types for Substrate master
- Update alias mapping for asset palette (including Substrate starting defaults)
- Allow `.entries()` call where 0 keys are present
- Fix `.is` on events not checking the correct index
- Construction of `i*` types ow correctly checks for max positive/negative
## 3.3.1 Jan 4, 2021
+3 -3
View File
@@ -28,11 +28,11 @@
"@babel/core": "^7.12.10",
"@babel/register": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@polkadot/dev": "^0.61.23",
"@polkadot/dev": "^0.61.24",
"@polkadot/ts": "^0.3.59",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^26.0.19",
"@types/jest": "^26.0.20",
"copyfiles": "^2.4.1"
},
"version": "3.3.3-5"
"version": "3.4.0"
}
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"module": "index.mjs",
@@ -14,10 +14,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "3.3.3-5",
"@polkadot/types": "3.3.3-5",
"@polkadot/api": "3.4.0",
"@polkadot/types": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/x-rxjs": "3.3.3-5",
"@polkadot/x-rxjs": "3.4.0",
"bn.js": "^4.11.9"
}
}
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"module": "index.mjs",
@@ -14,16 +14,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "3.3.3-5",
"@polkadot/rpc-core": "3.3.3-5",
"@polkadot/types": "3.3.3-5",
"@polkadot/api": "3.4.0",
"@polkadot/rpc-core": "3.4.0",
"@polkadot/types": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/util-crypto": "^5.2.3",
"@polkadot/x-rxjs": "3.3.3-5",
"@polkadot/x-rxjs": "3.4.0",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^5.2.3",
"@polkadot/rpc-provider": "3.3.3-5"
"@polkadot/rpc-provider": "3.4.0"
}
}
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"module": "index.mjs",
@@ -17,16 +17,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api-derive": "3.3.3-5",
"@polkadot/api-derive": "3.4.0",
"@polkadot/keyring": "^5.2.3",
"@polkadot/metadata": "3.3.3-5",
"@polkadot/rpc-core": "3.3.3-5",
"@polkadot/rpc-provider": "3.3.3-5",
"@polkadot/types": "3.3.3-5",
"@polkadot/types-known": "3.3.3-5",
"@polkadot/metadata": "3.4.0",
"@polkadot/rpc-core": "3.4.0",
"@polkadot/rpc-provider": "3.4.0",
"@polkadot/types": "3.4.0",
"@polkadot/types-known": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/util-crypto": "^5.2.3",
"@polkadot/x-rxjs": "3.3.3-5",
"@polkadot/x-rxjs": "3.4.0",
"bn.js": "^4.11.9",
"eventemitter3": "^4.0.7"
}
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"module": "index.mjs",
@@ -17,8 +17,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "3.3.3-5",
"@polkadot/types-known": "3.3.3-5",
"@polkadot/types": "3.4.0",
"@polkadot/types-known": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/util-crypto": "^5.2.3",
"bn.js": "^4.11.9"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"module": "index.mjs",
@@ -14,11 +14,11 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "3.3.3-5",
"@polkadot/rpc-provider": "3.3.3-5",
"@polkadot/types": "3.3.3-5",
"@polkadot/metadata": "3.4.0",
"@polkadot/rpc-provider": "3.4.0",
"@polkadot/types": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/x-rxjs": "3.3.3-5"
"@polkadot/x-rxjs": "3.4.0"
},
"devDependencies": {
"@polkadot/keyring": "^5.2.3"
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Transport providers for the API",
"main": "index.js",
"module": "index.mjs",
@@ -14,7 +14,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "3.3.3-5",
"@polkadot/types": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/util-crypto": "^5.2.3",
"@polkadot/x-fetch": "^5.2.3",
@@ -24,7 +24,7 @@
},
"devDependencies": {
"@polkadot/keyring": "^5.2.3",
"@polkadot/metadata": "3.3.3-5",
"@polkadot/metadata": "3.4.0",
"mock-socket": "^9.0.3",
"nock": "^13.0.5"
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Type generation scripts",
"main": "index.js",
"module": "index.mjs",
@@ -23,10 +23,10 @@
"@babel/core": "^7.12.10",
"@babel/register": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@polkadot/api": "3.3.3-5",
"@polkadot/metadata": "3.3.3-5",
"@polkadot/rpc-provider": "3.3.3-5",
"@polkadot/types": "3.3.3-5",
"@polkadot/api": "3.4.0",
"@polkadot/metadata": "3.4.0",
"@polkadot/rpc-provider": "3.4.0",
"@polkadot/types": "3.4.0",
"@polkadot/util": "^5.2.3",
"handlebars": "^4.7.6",
"websocket": "^1.0.33",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"module": "index.mjs",
@@ -14,7 +14,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "3.3.3-5",
"@polkadot/types": "3.4.0",
"@polkadot/util": "^5.2.3",
"bn.js": "^4.11.9"
},
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "Implementation of the Parity codec",
"main": "index.js",
"module": "index.mjs",
@@ -17,10 +17,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "3.3.3-5",
"@polkadot/metadata": "3.4.0",
"@polkadot/util": "^5.2.3",
"@polkadot/util-crypto": "^5.2.3",
"@polkadot/x-rxjs": "3.3.3-5",
"@polkadot/x-rxjs": "3.4.0",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.11.9"
},
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/x-rxjs",
"version": "3.3.3-5",
"version": "3.4.0",
"description": "A pass-through interface for RxJs (allowing node + mjs usage)",
"main": "index.js",
"sideEffects": false,
+239 -291
View File
File diff suppressed because it is too large Load Diff