Skip to content

Commit dec8238

Browse files
authored
2.3 (#2743)
* 2.3 * Apply suggestions from code review
1 parent a980d4a commit dec8238

File tree

12 files changed

+146
-134
lines changed

12 files changed

+146
-134
lines changed

CHANGELOG.md

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

3-
## 2.2.2-x
3+
## 2.3.1 Oct 19, 2020
4+
5+
Upgrade priority: Low. Recommended for `api-contracts` developers and those using large messages via Node.js WS.
6+
7+
Contributed:
8+
9+
- Adjust frame size for Node.js WebSockets (Thanks to https://github.com/mnaamani)
10+
- Update warnings to reflect new docs URLs (Thanks to https://github.com/aphelionz)
411

512
Changes:
613

14+
- Expose `dispatch{Error, Info}` on all `.tx` results (less boilerplate on info checks)
15+
- Add missing primitive types inside contracts type parsing
716
- Adjust api-contract to expose `Contract.{query, tx}.<message>` and `Blueprint.tx.<constructor>`
17+
- Rework contracts registry to be generic to all scale-info definitions
18+
- Allow for auto-max weight on contract read/exec (useful in estimation)
19+
- Fix memoization where `BigInt` params are passed
820

921

1022
## 2.2.1 Oct 12, 2020

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
"@types/jest": "^26.0.14",
3434
"copyfiles": "^2.4.0"
3535
},
36-
"version": "2.2.2-11"
36+
"version": "2.3.0"
3737
}

packages/api-contract/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-contract",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"keywords": [
@@ -27,10 +27,10 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/api": "2.2.2-11",
31-
"@polkadot/rpc-core": "2.2.2-11",
32-
"@polkadot/types": "2.2.2-11",
33-
"@polkadot/util": "^3.6.0-beta.16",
30+
"@polkadot/api": "2.3.0",
31+
"@polkadot/rpc-core": "2.3.0",
32+
"@polkadot/types": "2.3.0",
33+
"@polkadot/util": "^3.6.1",
3434
"bn.js": "^5.1.3",
3535
"rxjs": "^6.6.3"
3636
}

packages/api-derive/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"keywords": [
@@ -28,17 +28,17 @@
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
3030
"@babel/runtime": "^7.12.1",
31-
"@polkadot/api": "2.2.2-11",
32-
"@polkadot/rpc-core": "2.2.2-11",
33-
"@polkadot/rpc-provider": "2.2.2-11",
34-
"@polkadot/types": "2.2.2-11",
35-
"@polkadot/util": "^3.6.0-beta.16",
36-
"@polkadot/util-crypto": "^3.6.0-beta.16",
31+
"@polkadot/api": "2.3.0",
32+
"@polkadot/rpc-core": "2.3.0",
33+
"@polkadot/rpc-provider": "2.3.0",
34+
"@polkadot/types": "2.3.0",
35+
"@polkadot/util": "^3.6.1",
36+
"@polkadot/util-crypto": "^3.6.1",
3737
"bn.js": "^5.1.3",
3838
"memoizee": "^0.4.14",
3939
"rxjs": "^6.6.3"
4040
},
4141
"devDependencies": {
42-
"@polkadot/keyring": "^3.6.0-beta.16"
42+
"@polkadot/keyring": "^3.6.1"
4343
}
4444
}

packages/api/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"keywords": [
@@ -27,20 +27,20 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/api-derive": "2.2.2-11",
31-
"@polkadot/keyring": "^3.6.0-beta.16",
32-
"@polkadot/metadata": "2.2.2-11",
33-
"@polkadot/rpc-core": "2.2.2-11",
34-
"@polkadot/rpc-provider": "2.2.2-11",
35-
"@polkadot/types": "2.2.2-11",
36-
"@polkadot/types-known": "2.2.2-11",
37-
"@polkadot/util": "^3.6.0-beta.16",
38-
"@polkadot/util-crypto": "^3.6.0-beta.16",
30+
"@polkadot/api-derive": "2.3.0",
31+
"@polkadot/keyring": "^3.6.1",
32+
"@polkadot/metadata": "2.3.0",
33+
"@polkadot/rpc-core": "2.3.0",
34+
"@polkadot/rpc-provider": "2.3.0",
35+
"@polkadot/types": "2.3.0",
36+
"@polkadot/types-known": "2.3.0",
37+
"@polkadot/util": "^3.6.1",
38+
"@polkadot/util-crypto": "^3.6.1",
3939
"bn.js": "^5.1.3",
4040
"eventemitter3": "^4.0.7",
4141
"rxjs": "^6.6.3"
4242
},
4343
"devDependencies": {
44-
"@polkadot/keyring": "^3.6.0-beta.16"
44+
"@polkadot/keyring": "^3.6.1"
4545
}
4646
}

packages/metadata/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/metadata",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,13 +27,13 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/types": "2.2.2-11",
31-
"@polkadot/types-known": "2.2.2-11",
32-
"@polkadot/util": "^3.6.0-beta.16",
33-
"@polkadot/util-crypto": "^3.6.0-beta.16",
30+
"@polkadot/types": "2.3.0",
31+
"@polkadot/types-known": "2.3.0",
32+
"@polkadot/util": "^3.6.1",
33+
"@polkadot/util-crypto": "^3.6.1",
3434
"bn.js": "^5.1.3"
3535
},
3636
"devDependencies": {
37-
"@polkadot/keyring": "^3.6.0-beta.16"
37+
"@polkadot/keyring": "^3.6.1"
3838
}
3939
}

packages/rpc-core/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-core",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,14 +27,14 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/metadata": "2.2.2-11",
31-
"@polkadot/rpc-provider": "2.2.2-11",
32-
"@polkadot/types": "2.2.2-11",
33-
"@polkadot/util": "^3.6.0-beta.16",
30+
"@polkadot/metadata": "2.3.0",
31+
"@polkadot/rpc-provider": "2.3.0",
32+
"@polkadot/types": "2.3.0",
33+
"@polkadot/util": "^3.6.1",
3434
"memoizee": "^0.4.14",
3535
"rxjs": "^6.6.3"
3636
},
3737
"devDependencies": {
38-
"@polkadot/keyring": "^3.6.0-beta.16"
38+
"@polkadot/keyring": "^3.6.1"
3939
}
4040
}

packages/rpc-provider/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-provider",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"keywords": [
@@ -27,17 +27,17 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/metadata": "2.2.2-11",
31-
"@polkadot/types": "2.2.2-11",
32-
"@polkadot/util": "^3.6.0-beta.16",
33-
"@polkadot/util-crypto": "^3.6.0-beta.16",
30+
"@polkadot/metadata": "2.3.0",
31+
"@polkadot/types": "2.3.0",
32+
"@polkadot/util": "^3.6.1",
33+
"@polkadot/util-crypto": "^3.6.1",
3434
"@polkadot/x-fetch": "^0.3.3",
3535
"@polkadot/x-ws": "^0.3.3",
3636
"bn.js": "^5.1.3",
3737
"eventemitter3": "^4.0.7"
3838
},
3939
"devDependencies": {
40-
"@polkadot/keyring": "^3.6.0-beta.16",
40+
"@polkadot/keyring": "^3.6.1",
4141
"mock-socket": "^9.0.3",
4242
"nock": "^13.0.4"
4343
}

packages/typegen/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/typegen",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "Type generation scripts",
55
"main": "index.js",
66
"bin": {
@@ -36,11 +36,11 @@
3636
"@babel/core": "^7.12.3",
3737
"@babel/register": "^7.12.1",
3838
"@babel/runtime": "^7.12.1",
39-
"@polkadot/api": "2.2.2-11",
40-
"@polkadot/metadata": "2.2.2-11",
41-
"@polkadot/rpc-provider": "2.2.2-11",
42-
"@polkadot/types": "2.2.2-11",
43-
"@polkadot/util": "^3.6.0-beta.16",
39+
"@polkadot/api": "2.3.0",
40+
"@polkadot/metadata": "2.3.0",
41+
"@polkadot/rpc-provider": "2.3.0",
42+
"@polkadot/types": "2.3.0",
43+
"@polkadot/util": "^3.6.1",
4444
"handlebars": "^4.7.6",
4545
"websocket": "^1.0.32",
4646
"yargs": "^16.1.0"

packages/types-known/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/types-known",
3-
"version": "2.2.2-11",
3+
"version": "2.3.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/types": "2.2.2-11",
31-
"@polkadot/util": "^3.6.0-beta.16",
30+
"@polkadot/types": "2.3.0",
31+
"@polkadot/util": "^3.6.1",
3232
"bn.js": "^5.1.3"
3333
},
3434
"devDependencies": {

0 commit comments

Comments
 (0)