This commit is contained in:
Jaco Greeff
2021-02-14 18:39:44 +01:00
committed by GitHub
parent d7ff9e706e
commit 64b5855f65
14 changed files with 87 additions and 71 deletions
+16
View File
@@ -1,5 +1,21 @@
# CHANGELOG
## 3.9.1 Feb 14, 2021
Upgrade priority: Low.
- **Important** The `Result<T, E>` has been updated in the generation and the base types to follow the Rust version 100%. This means `{as, is}Error` is now available as `{as, is}Err` on the `Result` type. The older versions can still be used, but the `*Error` interfaces are now marked as deprecated.
Changes:
- Adjust `Result<T, E>` interface to be 100% compatible with the Rust version
- Add the `2028` upgrade to the known upgrades (optimizing certain `.at` queries)
- Adjust council derives to cater for latest Substrate & Polkadot
- Adjust Rococo know type definitions to cater for the latest update
- Update types for latest Polkadot/Substrate
- Add generic arguments for TypeScript users to `.entries/.keys` to deal with the key typings
## 3.8.1 Feb 7, 2021
Upgrade priority: Low. Recommended for users of the latest Substrate master, especially using contracts.
+1 -1
View File
@@ -34,5 +34,5 @@
"@types/jest": "^26.0.20",
"copyfiles": "^2.4.1"
},
"version": "3.8.2-5"
"version": "3.9.0"
}
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/types": "3.8.2-5",
"@polkadot/api": "3.9.0",
"@polkadot/types": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/x-rxjs": "^5.6.2",
"bn.js": "^4.11.9"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/rpc-core": "3.8.2-5",
"@polkadot/types": "3.8.2-5",
"@polkadot/api": "3.9.0",
"@polkadot/rpc-core": "3.9.0",
"@polkadot/types": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/util-crypto": "^5.6.2",
"@polkadot/x-rxjs": "^5.6.2",
@@ -23,6 +23,6 @@
},
"devDependencies": {
"@polkadot/keyring": "^5.6.2",
"@polkadot/rpc-provider": "3.8.2-5"
"@polkadot/rpc-provider": "3.9.0"
}
}
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/api-derive": "3.9.0",
"@polkadot/keyring": "^5.6.2",
"@polkadot/metadata": "3.8.2-5",
"@polkadot/rpc-core": "3.8.2-5",
"@polkadot/rpc-provider": "3.8.2-5",
"@polkadot/types": "3.8.2-5",
"@polkadot/types-known": "3.8.2-5",
"@polkadot/metadata": "3.9.0",
"@polkadot/rpc-core": "3.9.0",
"@polkadot/rpc-provider": "3.9.0",
"@polkadot/types": "3.9.0",
"@polkadot/types-known": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/util-crypto": "^5.6.2",
"@polkadot/x-rxjs": "^5.6.2",
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/types-known": "3.8.2-5",
"@polkadot/types": "3.9.0",
"@polkadot/types-known": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/util-crypto": "^5.6.2",
"bn.js": "^4.11.9"
@@ -474,7 +474,7 @@
{
"name": "Version",
"type": "RuntimeVersion",
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000070100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000080100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
"documentation": [
" Get the chain's current version."
]
@@ -1331,7 +1331,7 @@
"documentation": [
" The balance of an account.",
"",
" NOTE: This is only used in the case that this module is used to store balances."
" NOTE: This is only used in the case that this pallet is used to store balances."
]
},
{
@@ -1489,7 +1489,7 @@
"",
" 99% of the time you want [`transfer`] instead.",
"",
" [`transfer`]: struct.Module.html#method.transfer",
" [`transfer`]: struct.Pallet.html#method.transfer",
" # <weight>",
" - Cheaper than transfer because account cannot be killed.",
" - Base Weight: 51.4 µs",
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/rpc-provider": "3.8.2-5",
"@polkadot/types": "3.8.2-5",
"@polkadot/metadata": "3.9.0",
"@polkadot/rpc-provider": "3.9.0",
"@polkadot/types": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/x-rxjs": "^5.6.2"
},
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/types": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/util-crypto": "^5.6.2",
"@polkadot/x-fetch": "^5.6.2",
@@ -24,7 +24,7 @@
},
"devDependencies": {
"@polkadot/keyring": "^5.6.2",
"@polkadot/metadata": "3.8.2-5",
"@polkadot/metadata": "3.9.0",
"mock-socket": "^9.0.3",
"nock": "^13.0.7"
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/metadata": "3.8.2-5",
"@polkadot/rpc-provider": "3.8.2-5",
"@polkadot/types": "3.8.2-5",
"@polkadot/api": "3.9.0",
"@polkadot/metadata": "3.9.0",
"@polkadot/rpc-provider": "3.9.0",
"@polkadot/types": "3.9.0",
"@polkadot/util": "^5.6.2",
"handlebars": "^4.7.6",
"websocket": "^1.0.33",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "3.8.2-5",
"version": "3.9.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.2",
"@polkadot/types": "3.8.2-5",
"@polkadot/types": "3.9.0",
"@polkadot/util": "^5.6.2",
"bn.js": "^4.11.9"
},
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "3.8.2-5",
"version": "3.9.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.8.2-5",
"@polkadot/metadata": "3.9.0",
"@polkadot/util": "^5.6.2",
"@polkadot/util-crypto": "^5.6.2",
"@polkadot/x-rxjs": "^5.6.2",
+32 -32
View File
@@ -1743,24 +1743,24 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.12.13
"@polkadot/api": 3.8.2-5
"@polkadot/types": 3.8.2-5
"@polkadot/api": 3.9.0
"@polkadot/types": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/x-rxjs": ^5.6.2
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/api-derive@3.8.2-5, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@3.9.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.8.2-5
"@polkadot/api": 3.9.0
"@polkadot/keyring": ^5.6.2
"@polkadot/rpc-core": 3.8.2-5
"@polkadot/rpc-provider": 3.8.2-5
"@polkadot/types": 3.8.2-5
"@polkadot/rpc-core": 3.9.0
"@polkadot/rpc-provider": 3.9.0
"@polkadot/types": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/util-crypto": ^5.6.2
"@polkadot/x-rxjs": ^5.6.2
@@ -1768,18 +1768,18 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api@3.8.2-5, @polkadot/api@workspace:packages/api":
"@polkadot/api@3.9.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.8.2-5
"@polkadot/api-derive": 3.9.0
"@polkadot/keyring": ^5.6.2
"@polkadot/metadata": 3.8.2-5
"@polkadot/rpc-core": 3.8.2-5
"@polkadot/rpc-provider": 3.8.2-5
"@polkadot/types": 3.8.2-5
"@polkadot/types-known": 3.8.2-5
"@polkadot/metadata": 3.9.0
"@polkadot/rpc-core": 3.9.0
"@polkadot/rpc-provider": 3.9.0
"@polkadot/types": 3.9.0
"@polkadot/types-known": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/util-crypto": ^5.6.2
"@polkadot/x-rxjs": ^5.6.2
@@ -1893,14 +1893,14 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/metadata@3.8.2-5, @polkadot/metadata@workspace:packages/metadata":
"@polkadot/metadata@3.9.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.2
"@polkadot/types": 3.8.2-5
"@polkadot/types-known": 3.8.2-5
"@polkadot/types": 3.9.0
"@polkadot/types-known": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/util-crypto": ^5.6.2
bn.js: ^4.11.9
@@ -1916,28 +1916,28 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-core@3.8.2-5, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@3.9.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.2
"@polkadot/metadata": 3.8.2-5
"@polkadot/rpc-provider": 3.8.2-5
"@polkadot/types": 3.8.2-5
"@polkadot/metadata": 3.9.0
"@polkadot/rpc-provider": 3.9.0
"@polkadot/types": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/x-rxjs": ^5.6.2
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@3.8.2-5, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@3.9.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.2
"@polkadot/metadata": 3.8.2-5
"@polkadot/types": 3.8.2-5
"@polkadot/metadata": 3.9.0
"@polkadot/types": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/util-crypto": ^5.6.2
"@polkadot/x-fetch": ^5.6.2
@@ -1966,10 +1966,10 @@ __metadata:
"@babel/core": ^7.12.13
"@babel/register": ^7.12.13
"@babel/runtime": ^7.12.13
"@polkadot/api": 3.8.2-5
"@polkadot/metadata": 3.8.2-5
"@polkadot/rpc-provider": 3.8.2-5
"@polkadot/types": 3.8.2-5
"@polkadot/api": 3.9.0
"@polkadot/metadata": 3.9.0
"@polkadot/rpc-provider": 3.9.0
"@polkadot/types": 3.9.0
"@polkadot/util": ^5.6.2
"@types/websocket": ^1.0.1
"@types/yargs": ^16.0.0
@@ -1985,26 +1985,26 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-known@3.8.2-5, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@3.9.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.2
"@polkadot/types": 3.8.2-5
"@polkadot/types": 3.9.0
"@polkadot/util": ^5.6.2
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/types@3.8.2-5, @polkadot/types@workspace:packages/types":
"@polkadot/types@3.9.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.2
"@polkadot/metadata": 3.8.2-5
"@polkadot/metadata": 3.9.0
"@polkadot/util": ^5.6.2
"@polkadot/util-crypto": ^5.6.2
"@polkadot/x-rxjs": ^5.6.2