Skip to content

Commit 67f8dca

Browse files
authored
2.5 (#2813)
1 parent e951178 commit 67f8dca

File tree

12 files changed

+187
-183
lines changed

12 files changed

+187
-183
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22

33
## 2.4.2-x
44

5+
Upgrade priority: Low. Recommended for `api-contract` developers.
6+
7+
- **Breaking change** Substrate changed the `ContractExecResult` from `api.rpc.contracts.call`. The API does have pass-through support for both old and new variants via the `Contract` interface, however it means the structure has changed to accommodate the new Substrate structure. Refer to the [docs for the latest interface](https://polkadot.js.org/docs/api-contract/start/contract.read) (including `isSuccess/isError` -> `isOk/isErr`, and the availability of the `gasConsumed`)
8+
59
Contributed:
610

711
- Dedup similar types on generation (Thanks to https://github.com/monitz87)
812

913
Changes:
1014

15+
- `Contract` execution will now return contract events decoded in the result
1116
- Add `.dryRun` on extrinsics (alongside `.paymentInfo` usage)
1217
- Add `system_syncState` and `syncstate_genSyncSpec` RPCs
1318
- Enhance error reporting, `Call` indicates explicit call as found

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"@babel/core": "^7.12.3",
2828
"@babel/register": "^7.12.1",
2929
"@babel/runtime": "^7.12.1",
30-
"@polkadot/dev": "^0.59.10",
30+
"@polkadot/dev": "^0.59.14",
3131
"@polkadot/ts": "^0.3.53",
3232
"@polkadot/typegen": "workspace:packages/typegen",
3333
"@types/jest": "^26.0.15",
3434
"copyfiles": "^2.4.0"
3535
},
36-
"version": "2.4.2-20"
36+
"version": "2.5.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
31-
"@polkadot/rpc-core": "^2.4.2-20",
32-
"@polkadot/types": "^2.4.2-20",
33-
"@polkadot/util": "^3.6.2-12",
30+
"@polkadot/api": "^2.5.0",
31+
"@polkadot/rpc-core": "^2.5.0",
32+
"@polkadot/types": "^2.5.0",
33+
"@polkadot/util": "^3.7.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
32-
"@polkadot/rpc-core": "^2.4.2-20",
33-
"@polkadot/rpc-provider": "^2.4.2-20",
34-
"@polkadot/types": "^2.4.2-20",
35-
"@polkadot/util": "^3.6.2-12",
36-
"@polkadot/util-crypto": "^3.6.2-12",
31+
"@polkadot/api": "^2.5.0",
32+
"@polkadot/rpc-core": "^2.5.0",
33+
"@polkadot/rpc-provider": "^2.5.0",
34+
"@polkadot/types": "^2.5.0",
35+
"@polkadot/util": "^3.7.1",
36+
"@polkadot/util-crypto": "^3.7.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.2-12"
42+
"@polkadot/keyring": "^3.7.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
31-
"@polkadot/keyring": "^3.6.2-12",
32-
"@polkadot/metadata": "^2.4.2-20",
33-
"@polkadot/rpc-core": "^2.4.2-20",
34-
"@polkadot/rpc-provider": "^2.4.2-20",
35-
"@polkadot/types": "^2.4.2-20",
36-
"@polkadot/types-known": "^2.4.2-20",
37-
"@polkadot/util": "^3.6.2-12",
38-
"@polkadot/util-crypto": "^3.6.2-12",
30+
"@polkadot/api-derive": "^2.5.0",
31+
"@polkadot/keyring": "^3.7.1",
32+
"@polkadot/metadata": "^2.5.0",
33+
"@polkadot/rpc-core": "^2.5.0",
34+
"@polkadot/rpc-provider": "^2.5.0",
35+
"@polkadot/types": "^2.5.0",
36+
"@polkadot/types-known": "^2.5.0",
37+
"@polkadot/util": "^3.7.1",
38+
"@polkadot/util-crypto": "^3.7.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.2-12"
44+
"@polkadot/keyring": "^3.7.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
31-
"@polkadot/types-known": "^2.4.2-20",
32-
"@polkadot/util": "^3.6.2-12",
33-
"@polkadot/util-crypto": "^3.6.2-12",
30+
"@polkadot/types": "^2.5.0",
31+
"@polkadot/types-known": "^2.5.0",
32+
"@polkadot/util": "^3.7.1",
33+
"@polkadot/util-crypto": "^3.7.1",
3434
"bn.js": "^5.1.3"
3535
},
3636
"devDependencies": {
37-
"@polkadot/keyring": "^3.6.2-12"
37+
"@polkadot/keyring": "^3.7.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
31-
"@polkadot/rpc-provider": "^2.4.2-20",
32-
"@polkadot/types": "^2.4.2-20",
33-
"@polkadot/util": "^3.6.2-12",
30+
"@polkadot/metadata": "^2.5.0",
31+
"@polkadot/rpc-provider": "^2.5.0",
32+
"@polkadot/types": "^2.5.0",
33+
"@polkadot/util": "^3.7.1",
3434
"memoizee": "^0.4.14",
3535
"rxjs": "^6.6.3"
3636
},
3737
"devDependencies": {
38-
"@polkadot/keyring": "^3.6.2-12"
38+
"@polkadot/keyring": "^3.7.1"
3939
}
4040
}

packages/rpc-provider/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-provider",
3-
"version": "2.4.2-20",
3+
"version": "2.5.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.4.2-20",
31-
"@polkadot/types": "^2.4.2-20",
32-
"@polkadot/util": "^3.6.2-12",
33-
"@polkadot/util-crypto": "^3.6.2-12",
34-
"@polkadot/x-fetch": "^3.6.2-12",
35-
"@polkadot/x-ws": "^3.6.2-12",
30+
"@polkadot/metadata": "^2.5.0",
31+
"@polkadot/types": "^2.5.0",
32+
"@polkadot/util": "^3.7.1",
33+
"@polkadot/util-crypto": "^3.7.1",
34+
"@polkadot/x-fetch": "^3.7.1",
35+
"@polkadot/x-ws": "^3.7.1",
3636
"bn.js": "^5.1.3",
3737
"eventemitter3": "^4.0.7"
3838
},
3939
"devDependencies": {
40-
"@polkadot/keyring": "^3.6.2-12",
40+
"@polkadot/keyring": "^3.7.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
40-
"@polkadot/metadata": "^2.4.2-20",
41-
"@polkadot/rpc-provider": "^2.4.2-20",
42-
"@polkadot/types": "^2.4.2-20",
43-
"@polkadot/util": "^3.6.2-12",
39+
"@polkadot/api": "^2.5.0",
40+
"@polkadot/metadata": "^2.5.0",
41+
"@polkadot/rpc-provider": "^2.5.0",
42+
"@polkadot/types": "^2.5.0",
43+
"@polkadot/util": "^3.7.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.4.2-20",
3+
"version": "2.5.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.4.2-20",
31-
"@polkadot/util": "^3.6.2-12",
30+
"@polkadot/types": "^2.5.0",
31+
"@polkadot/util": "^3.7.1",
3232
"bn.js": "^5.1.3"
3333
},
3434
"devDependencies": {

0 commit comments

Comments
 (0)