Skip to content

Commit 35b31a2

Browse files
authored
3.5 (#3071)
1 parent 8b9741a commit 35b31a2

File tree

13 files changed

+104
-79
lines changed

13 files changed

+104
-79
lines changed

CHANGELOG.md

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

3+
## 3.5.1 Jan 18, 2020
4+
5+
Upgrade priority: Low. Recommended for parachain developers.
6+
7+
- **Important** The default for Substrate on the Address types are `MultiAddress`. It is recommended that chains add explicit definitions for `Address` and `LookupSource` in their types, instead of relying on the API-defaults. A future update will swap the API defaults to align with Substrate.
8+
- **Important** Like the above changes in Substrate, the `AccountInfo` structure has also changed. It is recommended that chain developers explicitly add `AccountInfo: 'AccountInfoWithRefCount'` for the version with `refCount` on and `AccountInfoWithProviders` for the latest Substrate version. As per the above, the API defaults will be changed to align with Substrate.
9+
10+
Contributed:
11+
12+
- Apply correct TypeScript type for `toBigInt()` (Thanks to https://github.com/ianhe8x)
13+
- Expand type definitions for storage key tuples (Thanks to https://github.com/monitz87)
14+
- Adjust bounty derive to cater for non-council chains (Thanks to https://github.com/ekowalsk)
15+
16+
Changes:
17+
18+
- Remove recursion in vector/struct U8a stream decoding
19+
- Availability of staking made optional in session length calcs (era does require it)
20+
- Updates to parachain types, ensuring it has coverage for all the latest
21+
- Update all Rococo types to the latest (session keys, session reports, parachain indexes)
22+
- Update known upgrade checkpoints fo WestEnd
23+
- Add types of the lottery module in Substrate
24+
- Add and extend types for the crowdloan module in Polkadot
25+
- Adjust node-template to default to `MultiAddress` on specVersion >= 100
26+
27+
328
## 3.4.1 Jan 11, 2020
429

530
Upgrade priority: Low. Fixes for parachain types, `.entries()` (with no values) and `event.is(...)` checks, users of these interfaces will have benefit.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"@types/jest": "^26.0.20",
3535
"copyfiles": "^2.4.1"
3636
},
37-
"version": "3.4.2-18"
37+
"version": "3.5.0"
3838
}

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": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -14,10 +14,10 @@
1414
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
1515
"dependencies": {
1616
"@babel/runtime": "^7.12.5",
17-
"@polkadot/api": "3.4.2-18",
18-
"@polkadot/types": "3.4.2-18",
17+
"@polkadot/api": "3.5.0",
18+
"@polkadot/types": "3.5.0",
1919
"@polkadot/util": "^5.3.1",
20-
"@polkadot/x-rxjs": "3.4.2-18",
20+
"@polkadot/x-rxjs": "3.5.0",
2121
"bn.js": "^4.11.9"
2222
}
2323
}

packages/api-derive/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -14,16 +14,16 @@
1414
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
1515
"dependencies": {
1616
"@babel/runtime": "^7.12.5",
17-
"@polkadot/api": "3.4.2-18",
18-
"@polkadot/rpc-core": "3.4.2-18",
19-
"@polkadot/types": "3.4.2-18",
17+
"@polkadot/api": "3.5.0",
18+
"@polkadot/rpc-core": "3.5.0",
19+
"@polkadot/types": "3.5.0",
2020
"@polkadot/util": "^5.3.1",
2121
"@polkadot/util-crypto": "^5.3.1",
22-
"@polkadot/x-rxjs": "3.4.2-18",
22+
"@polkadot/x-rxjs": "3.5.0",
2323
"bn.js": "^4.11.9"
2424
},
2525
"devDependencies": {
2626
"@polkadot/keyring": "^5.3.1",
27-
"@polkadot/rpc-provider": "3.4.2-18"
27+
"@polkadot/rpc-provider": "3.5.0"
2828
}
2929
}

packages/api/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",
3-
"version": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -17,16 +17,16 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.12.5",
20-
"@polkadot/api-derive": "3.4.2-18",
20+
"@polkadot/api-derive": "3.5.0",
2121
"@polkadot/keyring": "^5.3.1",
22-
"@polkadot/metadata": "3.4.2-18",
23-
"@polkadot/rpc-core": "3.4.2-18",
24-
"@polkadot/rpc-provider": "3.4.2-18",
25-
"@polkadot/types": "3.4.2-18",
26-
"@polkadot/types-known": "3.4.2-18",
22+
"@polkadot/metadata": "3.5.0",
23+
"@polkadot/rpc-core": "3.5.0",
24+
"@polkadot/rpc-provider": "3.5.0",
25+
"@polkadot/types": "3.5.0",
26+
"@polkadot/types-known": "3.5.0",
2727
"@polkadot/util": "^5.3.1",
2828
"@polkadot/util-crypto": "^5.3.1",
29-
"@polkadot/x-rxjs": "3.4.2-18",
29+
"@polkadot/x-rxjs": "3.5.0",
3030
"bn.js": "^4.11.9",
3131
"eventemitter3": "^4.0.7"
3232
}

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": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -17,8 +17,8 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.12.5",
20-
"@polkadot/types": "3.4.2-18",
21-
"@polkadot/types-known": "3.4.2-18",
20+
"@polkadot/types": "3.5.0",
21+
"@polkadot/types-known": "3.5.0",
2222
"@polkadot/util": "^5.3.1",
2323
"@polkadot/util-crypto": "^5.3.1",
2424
"bn.js": "^4.11.9"

packages/rpc-core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-core",
3-
"version": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -14,11 +14,11 @@
1414
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
1515
"dependencies": {
1616
"@babel/runtime": "^7.12.5",
17-
"@polkadot/metadata": "3.4.2-18",
18-
"@polkadot/rpc-provider": "3.4.2-18",
19-
"@polkadot/types": "3.4.2-18",
17+
"@polkadot/metadata": "3.5.0",
18+
"@polkadot/rpc-provider": "3.5.0",
19+
"@polkadot/types": "3.5.0",
2020
"@polkadot/util": "^5.3.1",
21-
"@polkadot/x-rxjs": "3.4.2-18"
21+
"@polkadot/x-rxjs": "3.5.0"
2222
},
2323
"devDependencies": {
2424
"@polkadot/keyring": "^5.3.1"

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": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -14,7 +14,7 @@
1414
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
1515
"dependencies": {
1616
"@babel/runtime": "^7.12.5",
17-
"@polkadot/types": "3.4.2-18",
17+
"@polkadot/types": "3.5.0",
1818
"@polkadot/util": "^5.3.1",
1919
"@polkadot/util-crypto": "^5.3.1",
2020
"@polkadot/x-fetch": "^5.3.1",
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@polkadot/keyring": "^5.3.1",
27-
"@polkadot/metadata": "3.4.2-18",
27+
"@polkadot/metadata": "3.5.0",
2828
"mock-socket": "^9.0.3",
2929
"nock": "^13.0.5"
3030
}

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": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "Type generation scripts",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -23,10 +23,10 @@
2323
"@babel/core": "^7.12.10",
2424
"@babel/register": "^7.12.10",
2525
"@babel/runtime": "^7.12.5",
26-
"@polkadot/api": "3.4.2-18",
27-
"@polkadot/metadata": "3.4.2-18",
28-
"@polkadot/rpc-provider": "3.4.2-18",
29-
"@polkadot/types": "3.4.2-18",
26+
"@polkadot/api": "3.5.0",
27+
"@polkadot/metadata": "3.5.0",
28+
"@polkadot/rpc-provider": "3.5.0",
29+
"@polkadot/types": "3.5.0",
3030
"@polkadot/util": "^5.3.1",
3131
"handlebars": "^4.7.6",
3232
"websocket": "^1.0.33",

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": "3.4.2-18",
3+
"version": "3.5.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"module": "index.mjs",
@@ -14,7 +14,7 @@
1414
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
1515
"dependencies": {
1616
"@babel/runtime": "^7.12.5",
17-
"@polkadot/types": "3.4.2-18",
17+
"@polkadot/types": "3.5.0",
1818
"@polkadot/util": "^5.3.1",
1919
"bn.js": "^4.11.9"
2020
},

0 commit comments

Comments
 (0)