Skip to content

Commit 6020ffc

Browse files
authored
2.2 (#2713)
1 parent 1643ec7 commit 6020ffc

File tree

12 files changed

+87
-72
lines changed

12 files changed

+87
-72
lines changed

CHANGELOG.md

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

3-
## 2.1.2-x
3+
## 2.2.1 Oct 13, 2020
4+
5+
Upgrade priority: Low.
6+
7+
- **Breaking change** `@polkadot/api-contract` now only supports ink! 3.0-rc1 and later formats. Users of ink! 2.1 are recommended to stay on an older version until upgraded.
8+
9+
Contributed:
10+
11+
- Add latest Ink! types (Thanks to https://github.com/ascjones & https://github.com/kwingram25)
12+
- Add base for new contract metadata parsing (Thanks to https://github.com/ascjones & https://github.com/kwingram25)
413

514
Changes:
615

7-
- Allow `null` input on `Text` values
8-
- Move documentation to docs repo
16+
- Introduce `OriginCaller` type (& apply to scheduler types)
17+
- Adjust `ContractInfo` struct to cater for latest Substrate
18+
- Allow snake_case to be handled transparently in structs
19+
- Full new api-contract developer interfaces (Code, Blueprint, Contract)
20+
- Rework Abi & Abi Registry use & parse (on-top-of-contributed) for efficiency & non-global clobber
21+
- Allow `null` input on `Text` values in addition to existing `undefined`
22+
- Remove all documentation after move to https://github.com/polkadot-js/docs repo
23+
- Adjust type encoding from TypeDef, s/encodeType/encodeTypeDef/
924

1025

1126
## 2.1.1 Oct 5, 2020

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
"typedoc-plugin-markdown": "^3.0.7",
3838
"typedoc-plugin-no-inherit": "^1.2.0"
3939
},
40-
"version": "2.1.2-23"
40+
"version": "2.2.0"
4141
}

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.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
31-
"@polkadot/rpc-core": "2.1.2-23",
32-
"@polkadot/types": "2.1.2-23",
30+
"@polkadot/api": "2.2.0",
31+
"@polkadot/rpc-core": "2.2.0",
32+
"@polkadot/types": "2.2.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": "2.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
32-
"@polkadot/rpc-core": "2.1.2-23",
33-
"@polkadot/rpc-provider": "2.1.2-23",
34-
"@polkadot/types": "2.1.2-23",
31+
"@polkadot/api": "2.2.0",
32+
"@polkadot/rpc-core": "2.2.0",
33+
"@polkadot/rpc-provider": "2.2.0",
34+
"@polkadot/types": "2.2.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": "2.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
30+
"@polkadot/api-derive": "2.2.0",
3131
"@polkadot/keyring": "^3.5.1",
32-
"@polkadot/metadata": "2.1.2-23",
33-
"@polkadot/rpc-core": "2.1.2-23",
34-
"@polkadot/rpc-provider": "2.1.2-23",
35-
"@polkadot/types": "2.1.2-23",
36-
"@polkadot/types-known": "2.1.2-23",
32+
"@polkadot/metadata": "2.2.0",
33+
"@polkadot/rpc-core": "2.2.0",
34+
"@polkadot/rpc-provider": "2.2.0",
35+
"@polkadot/types": "2.2.0",
36+
"@polkadot/types-known": "2.2.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": "2.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
31-
"@polkadot/types-known": "2.1.2-23",
30+
"@polkadot/types": "2.2.0",
31+
"@polkadot/types-known": "2.2.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": "2.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
31-
"@polkadot/rpc-provider": "2.1.2-23",
32-
"@polkadot/types": "2.1.2-23",
30+
"@polkadot/metadata": "2.2.0",
31+
"@polkadot/rpc-provider": "2.2.0",
32+
"@polkadot/types": "2.2.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": "2.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
31-
"@polkadot/types": "2.1.2-23",
30+
"@polkadot/metadata": "2.2.0",
31+
"@polkadot/types": "2.2.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": "2.1.2-23",
3+
"version": "2.2.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": "2.1.2-23",
40-
"@polkadot/metadata": "2.1.2-23",
41-
"@polkadot/rpc-provider": "2.1.2-23",
42-
"@polkadot/types": "2.1.2-23",
39+
"@polkadot/api": "2.2.0",
40+
"@polkadot/metadata": "2.2.0",
41+
"@polkadot/rpc-provider": "2.2.0",
42+
"@polkadot/types": "2.2.0",
4343
"@polkadot/util": "^3.5.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.1.2-23",
3+
"version": "2.2.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.11.2",
30-
"@polkadot/types": "2.1.2-23",
30+
"@polkadot/types": "2.2.0",
3131
"@polkadot/util": "^3.5.1",
3232
"bn.js": "^5.1.3"
3333
},

0 commit comments

Comments
 (0)