diff --git a/CHANGELOG.md b/CHANGELOG.md index c0ce4439f3..de5613e945 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # CHANGELOG +## 3.8.1 Feb 7, 2021 + +Upgrade priority: Low. Recommended for users of the latest Substrate master, especially using contracts. + +- **Important** The `api-contract` `Code` now supports deploying the code and a contract in on operation. This aligns with the latest Substrate where code cannot be uploaded with a contract. The `createBlueprint` is therefore deprecated, use `code.tx.(...)` to deploy code. (Compatible with both old and new versions of Substrate) + +Contributed: + +- Add support for latest Frontier RPCs (Thanks to https://github.com/jnaviask) +- Fix user-supplied signed extensions type signature (Thanks to https://github.com/ntduan) + +Changes: + +- Expand `api-contract` to allow for `Code` to deploy contract alongside code. `createBlueprint` is now deprecated, replaced by `createContract` or the preferred `code.tx.`, which uploads and deploys the code in one operation. This aligns with the current Substrate master contracts implementation. +- Allow for signed extensions to be supplied inside type bundles +- Ensure that the auto-connect state is checked on auto-connections (respecting disconnect) +- Added `CancelProxy` to `ProxyTypes on Polkadot, Kusama & Westend +- Updated to latest Substrate metadata + + ## 3.7.3 Feb 2, 2021 Changes: diff --git a/package.json b/package.json index a9b2caa929..ce02ad1609 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@types/jest": "^26.0.20", "copyfiles": "^2.4.1" }, - "version": "3.7.4-8" + "version": "3.8.0" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index c723a1de0a..ba8e8ff396 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "sideEffects": false, @@ -13,8 +13,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/api": "3.7.4-8", - "@polkadot/types": "3.7.4-8", + "@polkadot/api": "3.8.0", + "@polkadot/types": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/x-rxjs": "^5.6.1", "bn.js": "^4.11.9" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index d0f5c2860d..8bd7086b8f 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "sideEffects": false, @@ -13,9 +13,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/api": "3.7.4-8", - "@polkadot/rpc-core": "3.7.4-8", - "@polkadot/types": "3.7.4-8", + "@polkadot/api": "3.8.0", + "@polkadot/rpc-core": "3.8.0", + "@polkadot/types": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/util-crypto": "^5.6.1", "@polkadot/x-rxjs": "^5.6.1", @@ -23,6 +23,6 @@ }, "devDependencies": { "@polkadot/keyring": "^5.6.1", - "@polkadot/rpc-provider": "3.7.4-8" + "@polkadot/rpc-provider": "3.8.0" } } diff --git a/packages/api/package.json b/packages/api/package.json index de481250b6..563f04f3ff 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "sideEffects": [ @@ -16,13 +16,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/api-derive": "3.7.4-8", + "@polkadot/api-derive": "3.8.0", "@polkadot/keyring": "^5.6.1", - "@polkadot/metadata": "3.7.4-8", - "@polkadot/rpc-core": "3.7.4-8", - "@polkadot/rpc-provider": "3.7.4-8", - "@polkadot/types": "3.7.4-8", - "@polkadot/types-known": "3.7.4-8", + "@polkadot/metadata": "3.8.0", + "@polkadot/rpc-core": "3.8.0", + "@polkadot/rpc-provider": "3.8.0", + "@polkadot/types": "3.8.0", + "@polkadot/types-known": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/util-crypto": "^5.6.1", "@polkadot/x-rxjs": "^5.6.1", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index ac3d424dc3..4bc133ff67 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "sideEffects": [ @@ -16,8 +16,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/types": "3.7.4-8", - "@polkadot/types-known": "3.7.4-8", + "@polkadot/types": "3.8.0", + "@polkadot/types-known": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/util-crypto": "^5.6.1", "bn.js": "^4.11.9" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 7346428c91..f080d7020b 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "3.7.4-8", + "version": "3.8.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "sideEffects": false, @@ -13,9 +13,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/metadata": "3.7.4-8", - "@polkadot/rpc-provider": "3.7.4-8", - "@polkadot/types": "3.7.4-8", + "@polkadot/metadata": "3.8.0", + "@polkadot/rpc-provider": "3.8.0", + "@polkadot/types": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/x-rxjs": "^5.6.1" }, diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index f7f9baed83..3abdb8b48d 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Transport providers for the API", "main": "index.js", "sideEffects": false, @@ -13,7 +13,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/types": "3.7.4-8", + "@polkadot/types": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/util-crypto": "^5.6.1", "@polkadot/x-fetch": "^5.6.1", @@ -24,7 +24,7 @@ }, "devDependencies": { "@polkadot/keyring": "^5.6.1", - "@polkadot/metadata": "3.7.4-8", + "@polkadot/metadata": "3.8.0", "mock-socket": "^9.0.3", "nock": "^13.0.7" } diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 692d23d227..7eb192944a 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Type generation scripts", "main": "index.js", "sideEffects": false, @@ -22,10 +22,10 @@ "@babel/core": "^7.12.13", "@babel/register": "^7.12.13", "@babel/runtime": "^7.12.13", - "@polkadot/api": "3.7.4-8", - "@polkadot/metadata": "3.7.4-8", - "@polkadot/rpc-provider": "3.7.4-8", - "@polkadot/types": "3.7.4-8", + "@polkadot/api": "3.8.0", + "@polkadot/metadata": "3.8.0", + "@polkadot/rpc-provider": "3.8.0", + "@polkadot/types": "3.8.0", "@polkadot/util": "^5.6.1", "handlebars": "^4.7.6", "websocket": "^1.0.33", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 4197625234..3f38277127 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "3.7.4-8", + "version": "3.8.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "sideEffects": false, @@ -14,7 +14,7 @@ "dependencies": { "@babel/runtime": "^7.12.13", "@polkadot/networks": "^5.6.1", - "@polkadot/types": "3.7.4-8", + "@polkadot/types": "3.8.0", "@polkadot/util": "^5.6.1", "bn.js": "^4.11.9" }, diff --git a/packages/types/package.json b/packages/types/package.json index 6cc3d3f206..66f14b5187 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "3.7.4-8", + "version": "3.8.0", "description": "Implementation of the Parity codec", "main": "index.js", "sideEffects": [ @@ -16,7 +16,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.12.13", - "@polkadot/metadata": "3.7.4-8", + "@polkadot/metadata": "3.8.0", "@polkadot/util": "^5.6.1", "@polkadot/util-crypto": "^5.6.1", "@polkadot/x-rxjs": "^5.6.1", diff --git a/yarn.lock b/yarn.lock index 0a0e04a42b..5bb808a999 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1743,24 +1743,24 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.12.13 - "@polkadot/api": 3.7.4-8 - "@polkadot/types": 3.7.4-8 + "@polkadot/api": 3.8.0 + "@polkadot/types": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/x-rxjs": ^5.6.1 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api-derive@3.7.4-8, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@3.8.0, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.12.13 - "@polkadot/api": 3.7.4-8 + "@polkadot/api": 3.8.0 "@polkadot/keyring": ^5.6.1 - "@polkadot/rpc-core": 3.7.4-8 - "@polkadot/rpc-provider": 3.7.4-8 - "@polkadot/types": 3.7.4-8 + "@polkadot/rpc-core": 3.8.0 + "@polkadot/rpc-provider": 3.8.0 + "@polkadot/types": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/util-crypto": ^5.6.1 "@polkadot/x-rxjs": ^5.6.1 @@ -1768,18 +1768,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@3.7.4-8, @polkadot/api@workspace:packages/api": +"@polkadot/api@3.8.0, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.12.13 - "@polkadot/api-derive": 3.7.4-8 + "@polkadot/api-derive": 3.8.0 "@polkadot/keyring": ^5.6.1 - "@polkadot/metadata": 3.7.4-8 - "@polkadot/rpc-core": 3.7.4-8 - "@polkadot/rpc-provider": 3.7.4-8 - "@polkadot/types": 3.7.4-8 - "@polkadot/types-known": 3.7.4-8 + "@polkadot/metadata": 3.8.0 + "@polkadot/rpc-core": 3.8.0 + "@polkadot/rpc-provider": 3.8.0 + "@polkadot/types": 3.8.0 + "@polkadot/types-known": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/util-crypto": ^5.6.1 "@polkadot/x-rxjs": ^5.6.1 @@ -1893,14 +1893,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@3.7.4-8, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@3.8.0, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.12.13 "@polkadot/keyring": ^5.6.1 - "@polkadot/types": 3.7.4-8 - "@polkadot/types-known": 3.7.4-8 + "@polkadot/types": 3.8.0 + "@polkadot/types-known": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/util-crypto": ^5.6.1 bn.js: ^4.11.9 @@ -1916,28 +1916,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@3.7.4-8, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@3.8.0, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.12.13 "@polkadot/keyring": ^5.6.1 - "@polkadot/metadata": 3.7.4-8 - "@polkadot/rpc-provider": 3.7.4-8 - "@polkadot/types": 3.7.4-8 + "@polkadot/metadata": 3.8.0 + "@polkadot/rpc-provider": 3.8.0 + "@polkadot/types": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/x-rxjs": ^5.6.1 languageName: unknown linkType: soft -"@polkadot/rpc-provider@3.7.4-8, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@3.8.0, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.12.13 "@polkadot/keyring": ^5.6.1 - "@polkadot/metadata": 3.7.4-8 - "@polkadot/types": 3.7.4-8 + "@polkadot/metadata": 3.8.0 + "@polkadot/types": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/util-crypto": ^5.6.1 "@polkadot/x-fetch": ^5.6.1 @@ -1966,10 +1966,10 @@ __metadata: "@babel/core": ^7.12.13 "@babel/register": ^7.12.13 "@babel/runtime": ^7.12.13 - "@polkadot/api": 3.7.4-8 - "@polkadot/metadata": 3.7.4-8 - "@polkadot/rpc-provider": 3.7.4-8 - "@polkadot/types": 3.7.4-8 + "@polkadot/api": 3.8.0 + "@polkadot/metadata": 3.8.0 + "@polkadot/rpc-provider": 3.8.0 + "@polkadot/types": 3.8.0 "@polkadot/util": ^5.6.1 "@types/websocket": ^1.0.1 "@types/yargs": ^16.0.0 @@ -1985,26 +1985,26 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@3.7.4-8, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@3.8.0, @polkadot/types-known@workspace:packages/types-known": version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: "@babel/runtime": ^7.12.13 "@polkadot/networks": ^5.6.1 - "@polkadot/types": 3.7.4-8 + "@polkadot/types": 3.8.0 "@polkadot/util": ^5.6.1 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/types@3.7.4-8, @polkadot/types@workspace:packages/types": +"@polkadot/types@3.8.0, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.12.13 "@polkadot/keyring": ^5.6.1 - "@polkadot/metadata": 3.7.4-8 + "@polkadot/metadata": 3.8.0 "@polkadot/util": ^5.6.1 "@polkadot/util-crypto": ^5.6.1 "@polkadot/x-rxjs": ^5.6.1