Skip to content

Commit c4470eb

Browse files
authored
2.7 (#2854)
1 parent fb2bc42 commit c4470eb

File tree

14 files changed

+89
-72
lines changed

14 files changed

+89
-72
lines changed

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
# CHANGELOG
22

3+
## 2.7.1 Nov 16, 2020
4+
5+
Upgrade priority: Medium. Recommended for users of Polkadot/Kusama and api-contract users.
6+
7+
Changes:
8+
9+
- Allow for `ExtrinsicSignature` overrides (defaults to `MultiSignature`)
10+
- Update api-contract `Blueprint` to allow for optional salt (auto if not provided)
11+
- Support for ink! `.contract` files (in addition to ABI `.json`)
12+
- Fix contract event decoding with pass-through of raw `Bytes`
13+
- Fix support for enum encoding in api-contract
14+
- Support new contract `Schedule` type as per Substrate
15+
- Update Kusama/Polkadot known upgrade blocks
16+
- Adjust typegen generated `@polkadot/types` imports
17+
- Adjust internal `@polkadot/types` imports/exports (overall bundle sizes)
18+
19+
320
## 2.6.1 Nov 9, 2020
421

522
Upgrade priority: Low. Should be done alongside an update to `@polkadot/util` to 4.0
623

724
Changes:
825

926
- Adjust auto-gas to contract RPC call to 5 * 10 ^ 12 (align with Rust)
10-
- Adjust derive AccountId check to take Ethereum-compatible chains into account
27+
- Adjust derive `AccountId` check to take Ethereum-compatible chains into account
1128
- Fallback for chains with invalid council proposal data in derives
1229
- Bump static v12 Metadata (tests) to latest Substrate version
1330
- Bump `@polkadot/{util,util-crypto}` to 4.0 (optimized WASM layers)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
"@types/jest": "^26.0.15",
3333
"copyfiles": "^2.4.0"
3434
},
35-
"version": "2.6.2-16"
35+
"version": "2.7.0"
3636
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "2.6.2-16",
3+
"version": "2.7.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"sideEffects": false,
@@ -17,8 +17,8 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.12.5",
20-
"@polkadot/api": "2.6.2-16",
21-
"@polkadot/types": "2.6.2-16",
20+
"@polkadot/api": "2.7.0",
21+
"@polkadot/types": "2.7.0",
2222
"@polkadot/util": "^4.1.1",
2323
"bn.js": "^5.1.3",
2424
"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.6.2-16",
3+
"version": "2.7.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"sideEffects": false,
@@ -18,9 +18,9 @@
1818
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
1919
"dependencies": {
2020
"@babel/runtime": "^7.12.5",
21-
"@polkadot/api": "2.6.2-16",
22-
"@polkadot/rpc-core": "2.6.2-16",
23-
"@polkadot/types": "2.6.2-16",
21+
"@polkadot/api": "2.7.0",
22+
"@polkadot/rpc-core": "2.7.0",
23+
"@polkadot/types": "2.7.0",
2424
"@polkadot/util": "^4.1.1",
2525
"@polkadot/util-crypto": "^4.1.1",
2626
"bn.js": "^5.1.3",
@@ -29,6 +29,6 @@
2929
},
3030
"devDependencies": {
3131
"@polkadot/keyring": "^4.1.1",
32-
"@polkadot/rpc-provider": "2.6.2-16"
32+
"@polkadot/rpc-provider": "2.7.0"
3333
}
3434
}

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.6.2-16",
3+
"version": "2.7.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"sideEffects": false,
@@ -17,13 +17,13 @@
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": "2.6.2-16",
20+
"@polkadot/api-derive": "2.7.0",
2121
"@polkadot/keyring": "^4.1.1",
22-
"@polkadot/metadata": "2.6.2-16",
23-
"@polkadot/rpc-core": "2.6.2-16",
24-
"@polkadot/rpc-provider": "2.6.2-16",
25-
"@polkadot/types": "2.6.2-16",
26-
"@polkadot/types-known": "2.6.2-16",
22+
"@polkadot/metadata": "2.7.0",
23+
"@polkadot/rpc-core": "2.7.0",
24+
"@polkadot/rpc-provider": "2.7.0",
25+
"@polkadot/types": "2.7.0",
26+
"@polkadot/types-known": "2.7.0",
2727
"@polkadot/util": "^4.1.1",
2828
"@polkadot/util-crypto": "^4.1.1",
2929
"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.6.2-16",
3+
"version": "2.7.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"sideEffects": false,
@@ -16,8 +16,8 @@
1616
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
1717
"dependencies": {
1818
"@babel/runtime": "^7.12.5",
19-
"@polkadot/types": "2.6.2-16",
20-
"@polkadot/types-known": "2.6.2-16",
19+
"@polkadot/types": "2.7.0",
20+
"@polkadot/types-known": "2.7.0",
2121
"@polkadot/util": "^4.1.1",
2222
"@polkadot/util-crypto": "^4.1.1",
2323
"bn.js": "^5.1.3"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@
12611261
"AccountIndex"
12621262
],
12631263
"documentation": [
1264-
" A account index was assigned. \\[who, index\\]"
1264+
" A account index was assigned. \\[index, who\\]"
12651265
]
12661266
},
12671267
{
@@ -1280,7 +1280,7 @@
12801280
"AccountId"
12811281
],
12821282
"documentation": [
1283-
" A account index has been frozen to its current account ID. \\[who, index\\]"
1283+
" A account index has been frozen to its current account ID. \\[index, who\\]"
12841284
]
12851285
}
12861286
],
@@ -7501,7 +7501,7 @@
75017501
"type": {
75027502
"Plain": "Schedule"
75037503
},
7504-
"fallback": "0x0000000020a107000000000020a107000000000098b23c000000000054923c000000000098033c00000000009241860000000000ecc33b0000000000ba1d3c00000000000a373c0000000000f2398d0000000000ea843b000000000098c73b0000000000f0586600000000000e471e0000000000f89b7f0000000000090100000000000068a95700000000009802000000000000e8a90c2a00000000a84a8e24000000003058af090000000068269e00000000001a88e4000000000004e1ea07000000002d090000000000003090a800000000006e6c601000000000bf07000000000000de22950a000000002cbb2a0200000000830500000000000078dd710b000000003e56cd07000000007c0c7c0a00000000ee01000000000000c802000000000000b49b0f1e00000000d205000000000000cd02000000000000886b3400000000000810000000000000fa05370000000000b40c000000000000e8b7320000000000b9050000000000003444320000000000b80500000000000000040000000000010010000000004000002000000000000800",
7504+
"fallback": "0x000000000004000000000200000001000080000000100000000010000000010000200000000000080075060000c26c020057790300461700003b1d0000730b0000f0170000fb29000053000000c36b0100ce0003000408000067070000e9070000720700007f190000bc2800006508000035b684088f080000ca080000100b00007b0800003c0800005008000081080000de090000cd090000a30900008209000090090000810900009d0900008d090000c6090000fc070000dc0900007209000071090000c41f0000ee1b00009a1f0000a81b0000330900008a090000540900007e0900009909000081090000bd090000b8090000c0a3370000000000a0be37000000000088183700000000001ae0780000000000743637000000000062d9370000000000765737000000000078b27f00000000006a04370000000000603137000000000098065c000000000014251c0000000000e8457200000000000d0100000000000000ea5600000000009302000000000000f812082900000000889b3524000000000ed7ac0900000000b8618b0000000000b8d7c90000000000c2dee307000000005009000000000000160d9600000000000a51491000000000cc07000000000000e23d760a0000000020e41c02000000009a05000000000000c4df050b0000000010bac407000000002eded90a000000000c02000000000000cf020000000000002a346b1d00000000f605000000000000d802000000000000c6d13000000000001710000000000000c0ee320000000000c10c0000000000001a9e2e0000000000c50500000000000024802e0000000000c705000000000000",
75057505
"documentation": [
75067506
" Current cost schedule for contracts."
75077507
]

packages/metadata/src/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.6.2-16",
3+
"version": "2.7.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"sideEffects": false,
@@ -17,9 +17,9 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.12.5",
20-
"@polkadot/metadata": "2.6.2-16",
21-
"@polkadot/rpc-provider": "2.6.2-16",
22-
"@polkadot/types": "2.6.2-16",
20+
"@polkadot/metadata": "2.7.0",
21+
"@polkadot/rpc-provider": "2.7.0",
22+
"@polkadot/types": "2.7.0",
2323
"@polkadot/util": "^4.1.1",
2424
"memoizee": "^0.4.14",
2525
"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.6.2-16",
3+
"version": "2.7.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"sideEffects": false,
@@ -17,7 +17,7 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.12.5",
20-
"@polkadot/types": "2.6.2-16",
20+
"@polkadot/types": "2.7.0",
2121
"@polkadot/util": "^4.1.1",
2222
"@polkadot/util-crypto": "^4.1.1",
2323
"@polkadot/x-fetch": "^4.1.1",
@@ -27,7 +27,7 @@
2727
},
2828
"devDependencies": {
2929
"@polkadot/keyring": "^4.1.1",
30-
"@polkadot/metadata": "2.6.2-16",
30+
"@polkadot/metadata": "2.7.0",
3131
"mock-socket": "^9.0.3",
3232
"nock": "^13.0.5"
3333
}

0 commit comments

Comments
 (0)