Skip to content

Commit ff59962

Browse files
authored
2.0 (#2657)
1 parent 929a285 commit ff59962

File tree

13 files changed

+79
-71
lines changed

13 files changed

+79
-71
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## 1.35.0-beta.x
3+
## 2.0.1 Sep 28, 2020
44

55
Upgrade priority: Medium. Required for all teams building on Substrate 2.0 for full compatibility.
66

@@ -9,15 +9,23 @@ Upgrade priority: Medium. Required for all teams building on Substrate 2.0 for f
99
- **Breaking change** Extrinsic versions before v4 (1-3) are not supported anymore. This aligns with the above metadata change, where v4 is the canonical version.
1010
- **Breaking change** Support for the old-style linked-map retrievals via `query.<module>.map()` have been dropped, only the existing `.keys()/.entries()` are available for map iteration.
1111

12+
Contributed:
13+
14+
- Add secondary fields to EpochAuthorship (Thanks to https://github.com/andresilva)
15+
- Add support for FixedVec in enums (Thanks to https://github.com/monitz87)
16+
1217
Changes:
1318

1419
- Drop support for Substrate 1.0 metadata versions 1-8
1520
- Drop support for Substrate 1.0 extrinsics version 1-3
1621
- Add support for `grandpa_proveFinality` RPC
1722
- Drop support for linked map queries not via .entries (deprecated since early versions of Substrate 2)
23+
- Support `.entries()` on older chains without `queryStorageAt` support
1824
- Add bounty type definitions from treasury palette
1925
- Adjust `RefCount` type as per substrate 2.0
2026
- Add `PalletVersion` types for future palette versioning
27+
- Adjust formatting for `Per{cent, bill, mill}` without instance checks
28+
- Skip invalid keys on validator retrievals
2129

2230

2331
## 1.34.1 Sep 21, 2020

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"packages": [
1010
"packages/*"
1111
],
12-
"version": "1.35.0-beta.19"
12+
"version": "2.0.0"
1313
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
"typedoc-plugin-markdown": "^3.0.2",
3939
"typedoc-plugin-no-inherit": "^1.2.0"
4040
},
41-
"version": "1.35.0-beta.19"
41+
"version": "2.0.0"
4242
}

packages/api-contract/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/api": "1.35.0-beta.19",
31-
"@polkadot/rpc-core": "1.35.0-beta.19",
32-
"@polkadot/types": "1.35.0-beta.19",
30+
"@polkadot/api": "2.0.0",
31+
"@polkadot/rpc-core": "2.0.0",
32+
"@polkadot/types": "2.0.0",
3333
"@polkadot/util": "^3.5.1",
3434
"bn.js": "^5.1.3",
3535
"rxjs": "^6.6.3"

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": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"keywords": [
@@ -28,10 +28,10 @@
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
3030
"@babel/runtime": "^7.11.2",
31-
"@polkadot/api": "1.35.0-beta.19",
32-
"@polkadot/rpc-core": "1.35.0-beta.19",
33-
"@polkadot/rpc-provider": "1.35.0-beta.19",
34-
"@polkadot/types": "1.35.0-beta.19",
31+
"@polkadot/api": "2.0.0",
32+
"@polkadot/rpc-core": "2.0.0",
33+
"@polkadot/rpc-provider": "2.0.0",
34+
"@polkadot/types": "2.0.0",
3535
"@polkadot/util": "^3.5.1",
3636
"@polkadot/util-crypto": "^3.5.1",
3737
"bn.js": "^5.1.3",

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": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"keywords": [
@@ -27,13 +27,13 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/api-derive": "1.35.0-beta.19",
30+
"@polkadot/api-derive": "2.0.0",
3131
"@polkadot/keyring": "^3.5.1",
32-
"@polkadot/metadata": "1.35.0-beta.19",
33-
"@polkadot/rpc-core": "1.35.0-beta.19",
34-
"@polkadot/rpc-provider": "1.35.0-beta.19",
35-
"@polkadot/types": "1.35.0-beta.19",
36-
"@polkadot/types-known": "1.35.0-beta.19",
32+
"@polkadot/metadata": "2.0.0",
33+
"@polkadot/rpc-core": "2.0.0",
34+
"@polkadot/rpc-provider": "2.0.0",
35+
"@polkadot/types": "2.0.0",
36+
"@polkadot/types-known": "2.0.0",
3737
"@polkadot/util": "^3.5.1",
3838
"@polkadot/util-crypto": "^3.5.1",
3939
"bn.js": "^5.1.3",

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": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/types": "1.35.0-beta.19",
31-
"@polkadot/types-known": "1.35.0-beta.19",
30+
"@polkadot/types": "2.0.0",
31+
"@polkadot/types-known": "2.0.0",
3232
"@polkadot/util": "^3.5.1",
3333
"@polkadot/util-crypto": "^3.5.1",
3434
"bn.js": "^5.1.3"

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": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/metadata": "1.35.0-beta.19",
31-
"@polkadot/rpc-provider": "1.35.0-beta.19",
32-
"@polkadot/types": "1.35.0-beta.19",
30+
"@polkadot/metadata": "2.0.0",
31+
"@polkadot/rpc-provider": "2.0.0",
32+
"@polkadot/types": "2.0.0",
3333
"@polkadot/util": "^3.5.1",
3434
"memoizee": "^0.4.14",
3535
"rxjs": "^6.6.3"

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": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"keywords": [
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/metadata": "1.35.0-beta.19",
31-
"@polkadot/types": "1.35.0-beta.19",
30+
"@polkadot/metadata": "2.0.0",
31+
"@polkadot/types": "2.0.0",
3232
"@polkadot/util": "^3.5.1",
3333
"@polkadot/util-crypto": "^3.5.1",
3434
"@polkadot/x-fetch": "^0.3.2",

packages/typegen/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/typegen",
3-
"version": "1.35.0-beta.19",
3+
"version": "2.0.0",
44
"description": "Type generation scripts",
55
"main": "index.js",
66
"bin": {
@@ -36,10 +36,10 @@
3636
"@babel/core": "^7.11.6",
3737
"@babel/register": "^7.11.5",
3838
"@babel/runtime": "^7.11.2",
39-
"@polkadot/api": "1.35.0-beta.19",
40-
"@polkadot/metadata": "1.35.0-beta.19",
41-
"@polkadot/rpc-provider": "1.35.0-beta.19",
42-
"@polkadot/types": "1.35.0-beta.19",
39+
"@polkadot/api": "2.0.0",
40+
"@polkadot/metadata": "2.0.0",
41+
"@polkadot/rpc-provider": "2.0.0",
42+
"@polkadot/types": "2.0.0",
4343
"@polkadot/util": "^3.5.1",
4444
"handlebars": "^4.7.6",
4545
"websocket": "^1.0.32",

0 commit comments

Comments
 (0)