Skip to content
Merged

2.3 #2743

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# CHANGELOG

## 2.2.2-x
## 2.3.1 Oct 19, 2020

Upgrade priority: Low. Recommended for `api-contracts` developers and those using large messages via Node.js WS.

Contributed:

- Adjust frame size for Node.js WebSockets (Thanks to https://github.com/mnaamani)
- Update warnings to reflect new docs URLs (Thanks to https://github.com/aphelionz)

Changes:

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


## 2.2.1 Oct 12, 2020
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"@types/jest": "^26.0.14",
"copyfiles": "^2.4.0"
},
"version": "2.2.2-11"
"version": "2.3.0"
}
10 changes: 5 additions & 5 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"keywords": [
Expand All @@ -27,10 +27,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api": "2.2.2-11",
"@polkadot/rpc-core": "2.2.2-11",
"@polkadot/types": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/api": "2.3.0",
"@polkadot/rpc-core": "2.3.0",
"@polkadot/types": "2.3.0",
"@polkadot/util": "^3.6.1",
"bn.js": "^5.1.3",
"rxjs": "^6.6.3"
}
Expand Down
16 changes: 8 additions & 8 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"keywords": [
Expand Down Expand Up @@ -28,17 +28,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api": "2.2.2-11",
"@polkadot/rpc-core": "2.2.2-11",
"@polkadot/rpc-provider": "2.2.2-11",
"@polkadot/types": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/util-crypto": "^3.6.0-beta.16",
"@polkadot/api": "2.3.0",
"@polkadot/rpc-core": "2.3.0",
"@polkadot/rpc-provider": "2.3.0",
"@polkadot/types": "2.3.0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"bn.js": "^5.1.3",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.0-beta.16"
"@polkadot/keyring": "^3.6.1"
}
}
22 changes: 11 additions & 11 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"keywords": [
Expand All @@ -27,20 +27,20 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api-derive": "2.2.2-11",
"@polkadot/keyring": "^3.6.0-beta.16",
"@polkadot/metadata": "2.2.2-11",
"@polkadot/rpc-core": "2.2.2-11",
"@polkadot/rpc-provider": "2.2.2-11",
"@polkadot/types": "2.2.2-11",
"@polkadot/types-known": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/util-crypto": "^3.6.0-beta.16",
"@polkadot/api-derive": "2.3.0",
"@polkadot/keyring": "^3.6.1",
"@polkadot/metadata": "2.3.0",
"@polkadot/rpc-core": "2.3.0",
"@polkadot/rpc-provider": "2.3.0",
"@polkadot/types": "2.3.0",
"@polkadot/types-known": "2.3.0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.0-beta.16"
"@polkadot/keyring": "^3.6.1"
}
}
12 changes: 6 additions & 6 deletions packages/metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"publishConfig": {
Expand All @@ -27,13 +27,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/types": "2.2.2-11",
"@polkadot/types-known": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/util-crypto": "^3.6.0-beta.16",
"@polkadot/types": "2.3.0",
"@polkadot/types-known": "2.3.0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"bn.js": "^5.1.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.0-beta.16"
"@polkadot/keyring": "^3.6.1"
}
}
12 changes: 6 additions & 6 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
Expand All @@ -27,14 +27,14 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "2.2.2-11",
"@polkadot/rpc-provider": "2.2.2-11",
"@polkadot/types": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/metadata": "2.3.0",
"@polkadot/rpc-provider": "2.3.0",
"@polkadot/types": "2.3.0",
"@polkadot/util": "^3.6.1",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.0-beta.16"
"@polkadot/keyring": "^3.6.1"
}
}
12 changes: 6 additions & 6 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
Expand All @@ -27,17 +27,17 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "2.2.2-11",
"@polkadot/types": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/util-crypto": "^3.6.0-beta.16",
"@polkadot/metadata": "2.3.0",
"@polkadot/types": "2.3.0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/x-fetch": "^0.3.3",
"@polkadot/x-ws": "^0.3.3",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.0-beta.16",
"@polkadot/keyring": "^3.6.1",
"mock-socket": "^9.0.3",
"nock": "^13.0.4"
}
Expand Down
12 changes: 6 additions & 6 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Type generation scripts",
"main": "index.js",
"bin": {
Expand Down Expand Up @@ -36,11 +36,11 @@
"@babel/core": "^7.12.3",
"@babel/register": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@polkadot/api": "2.2.2-11",
"@polkadot/metadata": "2.2.2-11",
"@polkadot/rpc-provider": "2.2.2-11",
"@polkadot/types": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/api": "2.3.0",
"@polkadot/metadata": "2.3.0",
"@polkadot/rpc-provider": "2.3.0",
"@polkadot/types": "2.3.0",
"@polkadot/util": "^3.6.1",
"handlebars": "^4.7.6",
"websocket": "^1.0.32",
"yargs": "^16.1.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/types-known/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
Expand All @@ -27,8 +27,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/types": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/types": "2.3.0",
"@polkadot/util": "^3.6.1",
"bn.js": "^5.1.3"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "2.2.2-11",
"version": "2.3.0",
"description": "Implementation of the Parity codec",
"main": "index.js",
"keywords": [
Expand All @@ -27,16 +27,16 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "2.2.2-11",
"@polkadot/util": "^3.6.0-beta.16",
"@polkadot/util-crypto": "^3.6.0-beta.16",
"@polkadot/metadata": "2.3.0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@types/bn.js": "^4.11.6",
"bn.js": "^5.1.3",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.0-beta.16",
"@polkadot/keyring": "^3.6.1",
"@types/memoizee": "^0.4.4"
}
}
Loading