Skip to content

Commit 64b5855

Browse files
authored
3.8 (#3174)
1 parent d7ff9e7 commit 64b5855

File tree

14 files changed

+87
-71
lines changed

14 files changed

+87
-71
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# CHANGELOG
22

3+
## 3.9.1 Feb 14, 2021
4+
5+
Upgrade priority: Low.
6+
7+
- **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.
8+
9+
Changes:
10+
11+
- Adjust `Result<T, E>` interface to be 100% compatible with the Rust version
12+
- Add the `2028` upgrade to the known upgrades (optimizing certain `.at` queries)
13+
- Adjust council derives to cater for latest Substrate & Polkadot
14+
- Adjust Rococo know type definitions to cater for the latest update
15+
- Update types for latest Polkadot/Substrate
16+
- Add generic arguments for TypeScript users to `.entries/.keys` to deal with the key typings
17+
18+
319
## 3.8.1 Feb 7, 2021
420

521
Upgrade priority: Low. Recommended for users of the latest Substrate master, especially using contracts.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"@types/jest": "^26.0.20",
3535
"copyfiles": "^2.4.1"
3636
},
37-
"version": "3.8.2-5"
37+
"version": "3.9.0"
3838
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "3.8.2-5",
3+
"version": "3.9.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"sideEffects": false,
@@ -13,8 +13,8 @@
1313
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
1414
"dependencies": {
1515
"@babel/runtime": "^7.12.13",
16-
"@polkadot/api": "3.8.2-5",
17-
"@polkadot/types": "3.8.2-5",
16+
"@polkadot/api": "3.9.0",
17+
"@polkadot/types": "3.9.0",
1818
"@polkadot/util": "^5.6.2",
1919
"@polkadot/x-rxjs": "^5.6.2",
2020
"bn.js": "^4.11.9"

packages/api-derive/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "3.8.2-5",
3+
"version": "3.9.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"sideEffects": false,
@@ -13,16 +13,16 @@
1313
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
1414
"dependencies": {
1515
"@babel/runtime": "^7.12.13",
16-
"@polkadot/api": "3.8.2-5",
17-
"@polkadot/rpc-core": "3.8.2-5",
18-
"@polkadot/types": "3.8.2-5",
16+
"@polkadot/api": "3.9.0",
17+
"@polkadot/rpc-core": "3.9.0",
18+
"@polkadot/types": "3.9.0",
1919
"@polkadot/util": "^5.6.2",
2020
"@polkadot/util-crypto": "^5.6.2",
2121
"@polkadot/x-rxjs": "^5.6.2",
2222
"bn.js": "^4.11.9"
2323
},
2424
"devDependencies": {
2525
"@polkadot/keyring": "^5.6.2",
26-
"@polkadot/rpc-provider": "3.8.2-5"
26+
"@polkadot/rpc-provider": "3.9.0"
2727
}
2828
}

packages/api/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "3.8.2-5",
3+
"version": "3.9.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"sideEffects": [
@@ -16,13 +16,13 @@
1616
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
1717
"dependencies": {
1818
"@babel/runtime": "^7.12.13",
19-
"@polkadot/api-derive": "3.8.2-5",
19+
"@polkadot/api-derive": "3.9.0",
2020
"@polkadot/keyring": "^5.6.2",
21-
"@polkadot/metadata": "3.8.2-5",
22-
"@polkadot/rpc-core": "3.8.2-5",
23-
"@polkadot/rpc-provider": "3.8.2-5",
24-
"@polkadot/types": "3.8.2-5",
25-
"@polkadot/types-known": "3.8.2-5",
21+
"@polkadot/metadata": "3.9.0",
22+
"@polkadot/rpc-core": "3.9.0",
23+
"@polkadot/rpc-provider": "3.9.0",
24+
"@polkadot/types": "3.9.0",
25+
"@polkadot/types-known": "3.9.0",
2626
"@polkadot/util": "^5.6.2",
2727
"@polkadot/util-crypto": "^5.6.2",
2828
"@polkadot/x-rxjs": "^5.6.2",

packages/metadata/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/metadata",
3-
"version": "3.8.2-5",
3+
"version": "3.9.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"sideEffects": [
@@ -16,8 +16,8 @@
1616
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
1717
"dependencies": {
1818
"@babel/runtime": "^7.12.13",
19-
"@polkadot/types": "3.8.2-5",
20-
"@polkadot/types-known": "3.8.2-5",
19+
"@polkadot/types": "3.9.0",
20+
"@polkadot/types-known": "3.9.0",
2121
"@polkadot/util": "^5.6.2",
2222
"@polkadot/util-crypto": "^5.6.2",
2323
"bn.js": "^4.11.9"

packages/metadata/src/v12/static-substrate.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@
474474
{
475475
"name": "Version",
476476
"type": "RuntimeVersion",
477-
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000070100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
477+
"value": "0x106e6f6465387375627374726174652d6e6f64650a000000080100000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000ed99c5acb25eedf502000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b0100000002000000",
478478
"documentation": [
479479
" Get the chain's current version."
480480
]
@@ -1331,7 +1331,7 @@
13311331
"documentation": [
13321332
" The balance of an account.",
13331333
"",
1334-
" NOTE: This is only used in the case that this module is used to store balances."
1334+
" NOTE: This is only used in the case that this pallet is used to store balances."
13351335
]
13361336
},
13371337
{
@@ -1489,7 +1489,7 @@
14891489
"",
14901490
" 99% of the time you want [`transfer`] instead.",
14911491
"",
1492-
" [`transfer`]: struct.Module.html#method.transfer",
1492+
" [`transfer`]: struct.Pallet.html#method.transfer",
14931493
" # <weight>",
14941494
" - Cheaper than transfer because account cannot be killed.",
14951495
" - Base Weight: 51.4 µs",

packages/metadata/src/v12/static.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/rpc-core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-core",
3-
"version": "3.8.2-5",
3+
"version": "3.9.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"sideEffects": false,
@@ -13,9 +13,9 @@
1313
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
1414
"dependencies": {
1515
"@babel/runtime": "^7.12.13",
16-
"@polkadot/metadata": "3.8.2-5",
17-
"@polkadot/rpc-provider": "3.8.2-5",
18-
"@polkadot/types": "3.8.2-5",
16+
"@polkadot/metadata": "3.9.0",
17+
"@polkadot/rpc-provider": "3.9.0",
18+
"@polkadot/types": "3.9.0",
1919
"@polkadot/util": "^5.6.2",
2020
"@polkadot/x-rxjs": "^5.6.2"
2121
},

packages/rpc-provider/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-provider",
3-
"version": "3.8.2-5",
3+
"version": "3.9.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"sideEffects": false,
@@ -13,7 +13,7 @@
1313
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
1414
"dependencies": {
1515
"@babel/runtime": "^7.12.13",
16-
"@polkadot/types": "3.8.2-5",
16+
"@polkadot/types": "3.9.0",
1717
"@polkadot/util": "^5.6.2",
1818
"@polkadot/util-crypto": "^5.6.2",
1919
"@polkadot/x-fetch": "^5.6.2",
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@polkadot/keyring": "^5.6.2",
27-
"@polkadot/metadata": "3.8.2-5",
27+
"@polkadot/metadata": "3.9.0",
2828
"mock-socket": "^9.0.3",
2929
"nock": "^13.0.7"
3030
}

0 commit comments

Comments
 (0)