Skip to content

Commit cc92659

Browse files
authored
2.1 (#2681)
1 parent 5193e9c commit cc92659

File tree

14 files changed

+125
-113
lines changed

14 files changed

+125
-113
lines changed

CHANGELOG.md

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

3+
## 2.1.1 Oct 5, 2020
4+
5+
Upgrade priority: Low.
6+
7+
Contributed:
8+
9+
- Remove unused documentation link (Thanks to https://github.com/roccomuso)
10+
11+
Changes:
12+
13+
- Adjust RPC error formatting with string cleanups and a larger allowed range
14+
- Apply limit protection on `Text` & `Bytes`, protecting against OOM on erroneous decoding
15+
- Add `derive.staking.validatorsFrom` to determine validators nominated and own validators
16+
- Cleanup document generation without (currently unused) summary links
17+
- Rename static TRANSACTION_VERSION to EXTRINSIC_VERSION (Substrate alignment)
18+
- Bump Substrate metadata (tests, doc generation)
19+
20+
321
## 2.0.1 Sep 28, 2020
422

523
Upgrade priority: Medium. Required for all teams building on Substrate 2.0 for full compatibility.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
"@babel/core": "^7.11.6",
2929
"@babel/register": "^7.11.5",
3030
"@babel/runtime": "^7.11.2",
31-
"@polkadot/dev": "^0.57.1",
32-
"@polkadot/ts": "^0.3.48",
31+
"@polkadot/dev": "^0.57.8",
32+
"@polkadot/ts": "^0.3.49",
3333
"@polkadot/typegen": "workspace:packages/typegen",
3434
"@types/jest": "^26.0.14",
3535
"@vuepress/plugin-search": "^1.6.0",
3636
"copyfiles": "^2.4.0",
3737
"typedoc": "^0.19.2",
38-
"typedoc-plugin-markdown": "^3.0.6",
38+
"typedoc-plugin-markdown": "^3.0.7",
3939
"typedoc-plugin-no-inherit": "^1.2.0"
4040
},
41-
"version": "2.1.0-beta.9"
41+
"version": "2.1.0"
4242
}

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.0-beta.9",
3+
"version": "2.1.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.0-beta.9",
31-
"@polkadot/rpc-core": "2.1.0-beta.9",
32-
"@polkadot/types": "2.1.0-beta.9",
30+
"@polkadot/api": "2.1.0",
31+
"@polkadot/rpc-core": "2.1.0",
32+
"@polkadot/types": "2.1.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.0-beta.9",
3+
"version": "2.1.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.0-beta.9",
32-
"@polkadot/rpc-core": "2.1.0-beta.9",
33-
"@polkadot/rpc-provider": "2.1.0-beta.9",
34-
"@polkadot/types": "2.1.0-beta.9",
31+
"@polkadot/api": "2.1.0",
32+
"@polkadot/rpc-core": "2.1.0",
33+
"@polkadot/rpc-provider": "2.1.0",
34+
"@polkadot/types": "2.1.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.0-beta.9",
3+
"version": "2.1.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.0-beta.9",
30+
"@polkadot/api-derive": "2.1.0",
3131
"@polkadot/keyring": "^3.5.1",
32-
"@polkadot/metadata": "2.1.0-beta.9",
33-
"@polkadot/rpc-core": "2.1.0-beta.9",
34-
"@polkadot/rpc-provider": "2.1.0-beta.9",
35-
"@polkadot/types": "2.1.0-beta.9",
36-
"@polkadot/types-known": "2.1.0-beta.9",
32+
"@polkadot/metadata": "2.1.0",
33+
"@polkadot/rpc-core": "2.1.0",
34+
"@polkadot/rpc-provider": "2.1.0",
35+
"@polkadot/types": "2.1.0",
36+
"@polkadot/types-known": "2.1.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.0-beta.9",
3+
"version": "2.1.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.0-beta.9",
31-
"@polkadot/types-known": "2.1.0-beta.9",
30+
"@polkadot/types": "2.1.0",
31+
"@polkadot/types-known": "2.1.0",
3232
"@polkadot/util": "^3.5.1",
3333
"@polkadot/util-crypto": "^3.5.1",
3434
"bn.js": "^5.1.3"

packages/metadata/src/Metadata/v12/static-substrate.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,7 +2903,7 @@
29032903
" transaction in the block.",
29042904
"",
29052905
" # <weight>",
2906-
" See `crate::weight` module.",
2906+
" See [`submit_election_solution`].",
29072907
" # </weight>"
29082908
]
29092909
}
@@ -3070,7 +3070,7 @@
30703070
{
30713071
"name": "MaxNominatorRewardedPerValidator",
30723072
"type": "u32",
3073-
"value": "0x40000000",
3073+
"value": "0x00010000",
30743074
"documentation": [
30753075
" The maximum number of nominators rewarded for each validator.",
30763076
"",
@@ -11256,6 +11256,8 @@
1125611256
" Parameters:",
1125711257
" - `proxy`: The account that the `caller` would like to make a proxy.",
1125811258
" - `proxy_type`: The permissions allowed for this proxy account.",
11259+
" - `delay`: The announcement period required of the initial proxy. Will generally be",
11260+
" zero.",
1125911261
"",
1126011262
" # <weight>",
1126111263
" Weight is a function of the number of proxies the user has (P).",

packages/metadata/src/Metadata/v12/static.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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.0-beta.9",
3+
"version": "2.1.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.0-beta.9",
31-
"@polkadot/rpc-provider": "2.1.0-beta.9",
32-
"@polkadot/types": "2.1.0-beta.9",
30+
"@polkadot/metadata": "2.1.0",
31+
"@polkadot/rpc-provider": "2.1.0",
32+
"@polkadot/types": "2.1.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.0-beta.9",
3+
"version": "2.1.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.0-beta.9",
31-
"@polkadot/types": "2.1.0-beta.9",
30+
"@polkadot/metadata": "2.1.0",
31+
"@polkadot/types": "2.1.0",
3232
"@polkadot/util": "^3.5.1",
3333
"@polkadot/util-crypto": "^3.5.1",
3434
"@polkadot/x-fetch": "^0.3.2",

0 commit comments

Comments
 (0)