Skip to content

Commit e6e60ec

Browse files
authored
2.4 (#2782)
1 parent 9f9680b commit e6e60ec

File tree

12 files changed

+110
-95
lines changed

12 files changed

+110
-95
lines changed

CHANGELOG.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
11
# CHANGELOG
22

3-
## 2.3.2-x
3+
## 2.4.1 Oct 26, 2020
4+
5+
Upgrade priority: Low. No breaking changes, however it does move `api-contract` forward with additional features.
6+
7+
Contributed:
8+
9+
- Add support for both `{i,u}256` types on contracts (Thanks to https://github.com/seanyoung)
410

511
Changes:
612

713
- Add `.keysAt` & `.entriesAt` to query maps at a specific blockHash
8-
- Contracts identifiers matches on both snake_case and camelCase (consistency)
14+
- Adjust ordering of type injection, any `types: { ... }` definitions not have precedence
15+
- Correctly format Tuples in both RPC and const definitions as part of type generation
16+
- Add node-template to known types (tracking inside API), remove warnings for the spec
17+
- Add initial implementation for new Substrate `MultiAddress` type
18+
- Add `api.derive.chain.subscribeNewBlocks` for full block retrievals
19+
- Contracts identifiers to `.{exec, read}('name', ...)` now matches on both snake_case and camelCase (consistency)
20+
- Cleanup contracts serialization for messages to allow both to and from
21+
- Add deserialization of contract events against the ABI
22+
- Adjust contracts metadata parsing to be future-proof with type retrievals
23+
- Add tests for Solang into contracts, re-organize layout per type
924

1025

1126
## 2.3.1 Oct 19, 2020
1227

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

1530
Contributed:
1631

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.15",
3434
"copyfiles": "^2.4.0"
3535
},
36-
"version": "2.3.2-17"
36+
"version": "2.4.0"
3737
}

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": "2.3.2-17",
3+
"version": "2.4.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.12.1",
30-
"@polkadot/api": "^2.3.2-17",
31-
"@polkadot/rpc-core": "^2.3.2-17",
32-
"@polkadot/types": "^2.3.2-17",
30+
"@polkadot/api": "^2.4.0",
31+
"@polkadot/rpc-core": "^2.4.0",
32+
"@polkadot/types": "^2.4.0",
3333
"@polkadot/util": "^3.6.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": "2.3.2-17",
3+
"version": "2.4.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.12.1",
31-
"@polkadot/api": "^2.3.2-17",
32-
"@polkadot/rpc-core": "^2.3.2-17",
33-
"@polkadot/rpc-provider": "^2.3.2-17",
34-
"@polkadot/types": "^2.3.2-17",
31+
"@polkadot/api": "^2.4.0",
32+
"@polkadot/rpc-core": "^2.4.0",
33+
"@polkadot/rpc-provider": "^2.4.0",
34+
"@polkadot/types": "^2.4.0",
3535
"@polkadot/util": "^3.6.1",
3636
"@polkadot/util-crypto": "^3.6.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": "2.3.2-17",
3+
"version": "2.4.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.12.1",
30-
"@polkadot/api-derive": "^2.3.2-17",
30+
"@polkadot/api-derive": "^2.4.0",
3131
"@polkadot/keyring": "^3.6.1",
32-
"@polkadot/metadata": "^2.3.2-17",
33-
"@polkadot/rpc-core": "^2.3.2-17",
34-
"@polkadot/rpc-provider": "^2.3.2-17",
35-
"@polkadot/types": "^2.3.2-17",
36-
"@polkadot/types-known": "^2.3.2-17",
32+
"@polkadot/metadata": "^2.4.0",
33+
"@polkadot/rpc-core": "^2.4.0",
34+
"@polkadot/rpc-provider": "^2.4.0",
35+
"@polkadot/types": "^2.4.0",
36+
"@polkadot/types-known": "^2.4.0",
3737
"@polkadot/util": "^3.6.1",
3838
"@polkadot/util-crypto": "^3.6.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": "2.3.2-17",
3+
"version": "2.4.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.12.1",
30-
"@polkadot/types": "^2.3.2-17",
31-
"@polkadot/types-known": "^2.3.2-17",
30+
"@polkadot/types": "^2.4.0",
31+
"@polkadot/types-known": "^2.4.0",
3232
"@polkadot/util": "^3.6.1",
3333
"@polkadot/util-crypto": "^3.6.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": "2.3.2-17",
3+
"version": "2.4.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.12.1",
30-
"@polkadot/metadata": "^2.3.2-17",
31-
"@polkadot/rpc-provider": "^2.3.2-17",
32-
"@polkadot/types": "^2.3.2-17",
30+
"@polkadot/metadata": "^2.4.0",
31+
"@polkadot/rpc-provider": "^2.4.0",
32+
"@polkadot/types": "^2.4.0",
3333
"@polkadot/util": "^3.6.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": "2.3.2-17",
3+
"version": "2.4.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.12.1",
30-
"@polkadot/metadata": "^2.3.2-17",
31-
"@polkadot/types": "^2.3.2-17",
30+
"@polkadot/metadata": "^2.4.0",
31+
"@polkadot/types": "^2.4.0",
3232
"@polkadot/util": "^3.6.1",
3333
"@polkadot/util-crypto": "^3.6.1",
3434
"@polkadot/x-fetch": "^0.3.4",

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": "2.3.2-17",
3+
"version": "2.4.0",
44
"description": "Type generation scripts",
55
"main": "index.js",
66
"bin": {
@@ -36,10 +36,10 @@
3636
"@babel/core": "^7.12.3",
3737
"@babel/register": "^7.12.1",
3838
"@babel/runtime": "^7.12.1",
39-
"@polkadot/api": "^2.3.2-17",
40-
"@polkadot/metadata": "^2.3.2-17",
41-
"@polkadot/rpc-provider": "^2.3.2-17",
42-
"@polkadot/types": "^2.3.2-17",
39+
"@polkadot/api": "^2.4.0",
40+
"@polkadot/metadata": "^2.4.0",
41+
"@polkadot/rpc-provider": "^2.4.0",
42+
"@polkadot/types": "^2.4.0",
4343
"@polkadot/util": "^3.6.1",
4444
"handlebars": "^4.7.6",
4545
"websocket": "^1.0.32",

packages/types-known/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/types-known",
3-
"version": "2.3.2-17",
3+
"version": "2.4.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,7 +27,7 @@
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.3.2-17",
30+
"@polkadot/types": "^2.4.0",
3131
"@polkadot/util": "^3.6.1",
3232
"bn.js": "^5.1.3"
3333
},

0 commit comments

Comments
 (0)