This commit is contained in:
Jaco Greeff
2020-11-16 10:30:33 +01:00
committed by GitHub
parent fb2bc42fe0
commit c4470eba14
14 changed files with 89 additions and 72 deletions
+18 -1
View File
@@ -1,5 +1,22 @@
# CHANGELOG
## 2.7.1 Nov 16, 2020
Upgrade priority: Medium. Recommended for users of Polkadot/Kusama and api-contract users.
Changes:
- Allow for `ExtrinsicSignature` overrides (defaults to `MultiSignature`)
- Update api-contract `Blueprint` to allow for optional salt (auto if not provided)
- Support for ink! `.contract` files (in addition to ABI `.json`)
- Fix contract event decoding with pass-through of raw `Bytes`
- Fix support for enum encoding in api-contract
- Support new contract `Schedule` type as per Substrate
- Update Kusama/Polkadot known upgrade blocks
- Adjust typegen generated `@polkadot/types` imports
- Adjust internal `@polkadot/types` imports/exports (overall bundle sizes)
## 2.6.1 Nov 9, 2020
Upgrade priority: Low. Should be done alongside an update to `@polkadot/util` to 4.0
@@ -7,7 +24,7 @@ Upgrade priority: Low. Should be done alongside an update to `@polkadot/util` to
Changes:
- Adjust auto-gas to contract RPC call to 5 * 10 ^ 12 (align with Rust)
- Adjust derive AccountId check to take Ethereum-compatible chains into account
- Adjust derive `AccountId` check to take Ethereum-compatible chains into account
- Fallback for chains with invalid council proposal data in derives
- Bump static v12 Metadata (tests) to latest Substrate version
- Bump `@polkadot/{util,util-crypto}` to 4.0 (optimized WASM layers)
+1 -1
View File
@@ -32,5 +32,5 @@
"@types/jest": "^26.0.15",
"copyfiles": "^2.4.0"
},
"version": "2.6.2-16"
"version": "2.7.0"
}
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"sideEffects": false,
@@ -17,8 +17,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "2.6.2-16",
"@polkadot/types": "2.6.2-16",
"@polkadot/api": "2.7.0",
"@polkadot/types": "2.7.0",
"@polkadot/util": "^4.1.1",
"bn.js": "^5.1.3",
"rxjs": "^6.6.3"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
"main": "index.js",
"sideEffects": false,
@@ -18,9 +18,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api": "2.6.2-16",
"@polkadot/rpc-core": "2.6.2-16",
"@polkadot/types": "2.6.2-16",
"@polkadot/api": "2.7.0",
"@polkadot/rpc-core": "2.7.0",
"@polkadot/types": "2.7.0",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"bn.js": "^5.1.3",
@@ -29,6 +29,6 @@
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1",
"@polkadot/rpc-provider": "2.6.2-16"
"@polkadot/rpc-provider": "2.7.0"
}
}
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
"main": "index.js",
"sideEffects": false,
@@ -17,13 +17,13 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/api-derive": "2.6.2-16",
"@polkadot/api-derive": "2.7.0",
"@polkadot/keyring": "^4.1.1",
"@polkadot/metadata": "2.6.2-16",
"@polkadot/rpc-core": "2.6.2-16",
"@polkadot/rpc-provider": "2.6.2-16",
"@polkadot/types": "2.6.2-16",
"@polkadot/types-known": "2.6.2-16",
"@polkadot/metadata": "2.7.0",
"@polkadot/rpc-core": "2.7.0",
"@polkadot/rpc-provider": "2.7.0",
"@polkadot/types": "2.7.0",
"@polkadot/types-known": "2.7.0",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"bn.js": "^5.1.3",
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Helpers to extract information from runtime metadata",
"main": "index.js",
"sideEffects": false,
@@ -16,8 +16,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "2.6.2-16",
"@polkadot/types-known": "2.6.2-16",
"@polkadot/types": "2.7.0",
"@polkadot/types-known": "2.7.0",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"bn.js": "^5.1.3"
@@ -1261,7 +1261,7 @@
"AccountIndex"
],
"documentation": [
" A account index was assigned. \\[who, index\\]"
" A account index was assigned. \\[index, who\\]"
]
},
{
@@ -1280,7 +1280,7 @@
"AccountId"
],
"documentation": [
" A account index has been frozen to its current account ID. \\[who, index\\]"
" A account index has been frozen to its current account ID. \\[index, who\\]"
]
}
],
@@ -7501,7 +7501,7 @@
"type": {
"Plain": "Schedule"
},
"fallback": "0x0000000020a107000000000020a107000000000098b23c000000000054923c000000000098033c00000000009241860000000000ecc33b0000000000ba1d3c00000000000a373c0000000000f2398d0000000000ea843b000000000098c73b0000000000f0586600000000000e471e0000000000f89b7f0000000000090100000000000068a95700000000009802000000000000e8a90c2a00000000a84a8e24000000003058af090000000068269e00000000001a88e4000000000004e1ea07000000002d090000000000003090a800000000006e6c601000000000bf07000000000000de22950a000000002cbb2a0200000000830500000000000078dd710b000000003e56cd07000000007c0c7c0a00000000ee01000000000000c802000000000000b49b0f1e00000000d205000000000000cd02000000000000886b3400000000000810000000000000fa05370000000000b40c000000000000e8b7320000000000b9050000000000003444320000000000b80500000000000000040000000000010010000000004000002000000000000800",
"fallback": "0x000000000004000000000200000001000080000000100000000010000000010000200000000000080075060000c26c020057790300461700003b1d0000730b0000f0170000fb29000053000000c36b0100ce0003000408000067070000e9070000720700007f190000bc2800006508000035b684088f080000ca080000100b00007b0800003c0800005008000081080000de090000cd090000a30900008209000090090000810900009d0900008d090000c6090000fc070000dc0900007209000071090000c41f0000ee1b00009a1f0000a81b0000330900008a090000540900007e0900009909000081090000bd090000b8090000c0a3370000000000a0be37000000000088183700000000001ae0780000000000743637000000000062d9370000000000765737000000000078b27f00000000006a04370000000000603137000000000098065c000000000014251c0000000000e8457200000000000d0100000000000000ea5600000000009302000000000000f812082900000000889b3524000000000ed7ac0900000000b8618b0000000000b8d7c90000000000c2dee307000000005009000000000000160d9600000000000a51491000000000cc07000000000000e23d760a0000000020e41c02000000009a05000000000000c4df050b0000000010bac407000000002eded90a000000000c02000000000000cf020000000000002a346b1d00000000f605000000000000d802000000000000c6d13000000000001710000000000000c0ee320000000000c10c0000000000001a9e2e0000000000c50500000000000024802e0000000000c705000000000000",
"documentation": [
" Current cost schedule for contracts."
]
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"sideEffects": false,
@@ -17,9 +17,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "2.6.2-16",
"@polkadot/rpc-provider": "2.6.2-16",
"@polkadot/types": "2.6.2-16",
"@polkadot/metadata": "2.7.0",
"@polkadot/rpc-provider": "2.7.0",
"@polkadot/types": "2.7.0",
"@polkadot/util": "^4.1.1",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Transport providers for the API",
"main": "index.js",
"sideEffects": false,
@@ -17,7 +17,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "2.6.2-16",
"@polkadot/types": "2.7.0",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"@polkadot/x-fetch": "^4.1.1",
@@ -27,7 +27,7 @@
},
"devDependencies": {
"@polkadot/keyring": "^4.1.1",
"@polkadot/metadata": "2.6.2-16",
"@polkadot/metadata": "2.7.0",
"mock-socket": "^9.0.3",
"nock": "^13.0.5"
}
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Type generation scripts",
"main": "index.js",
"sideEffects": false,
@@ -26,10 +26,10 @@
"@babel/core": "^7.12.3",
"@babel/register": "^7.12.1",
"@babel/runtime": "^7.12.5",
"@polkadot/api": "2.6.2-16",
"@polkadot/metadata": "2.6.2-16",
"@polkadot/rpc-provider": "2.6.2-16",
"@polkadot/types": "2.6.2-16",
"@polkadot/api": "2.7.0",
"@polkadot/metadata": "2.7.0",
"@polkadot/rpc-provider": "2.7.0",
"@polkadot/types": "2.7.0",
"@polkadot/util": "^4.1.1",
"handlebars": "^4.7.6",
"websocket": "^1.0.32",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types-known",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"sideEffects": false,
@@ -17,7 +17,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/types": "2.6.2-16",
"@polkadot/types": "2.7.0",
"@polkadot/util": "^4.1.1",
"bn.js": "^5.1.3"
},
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "2.6.2-16",
"version": "2.7.0",
"description": "Implementation of the Parity codec",
"main": "index.js",
"sideEffects": false,
@@ -17,7 +17,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/metadata": "2.6.2-16",
"@polkadot/metadata": "2.7.0",
"@polkadot/util": "^4.1.1",
"@polkadot/util-crypto": "^4.1.1",
"@types/bn.js": "^4.11.6",
+32 -32
View File
@@ -1717,24 +1717,24 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api": 2.6.2-16
"@polkadot/types": 2.6.2-16
"@polkadot/api": 2.7.0
"@polkadot/types": 2.7.0
"@polkadot/util": ^4.1.1
bn.js: ^5.1.3
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/api-derive@2.6.2-16, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@2.7.0, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api": 2.6.2-16
"@polkadot/api": 2.7.0
"@polkadot/keyring": ^4.1.1
"@polkadot/rpc-core": 2.6.2-16
"@polkadot/rpc-provider": 2.6.2-16
"@polkadot/types": 2.6.2-16
"@polkadot/rpc-core": 2.7.0
"@polkadot/rpc-provider": 2.7.0
"@polkadot/types": 2.7.0
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
bn.js: ^5.1.3
@@ -1743,18 +1743,18 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api@2.6.2-16, @polkadot/api@workspace:packages/api":
"@polkadot/api@2.7.0, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api-derive": 2.6.2-16
"@polkadot/api-derive": 2.7.0
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.6.2-16
"@polkadot/rpc-core": 2.6.2-16
"@polkadot/rpc-provider": 2.6.2-16
"@polkadot/types": 2.6.2-16
"@polkadot/types-known": 2.6.2-16
"@polkadot/metadata": 2.7.0
"@polkadot/rpc-core": 2.7.0
"@polkadot/rpc-provider": 2.7.0
"@polkadot/types": 2.7.0
"@polkadot/types-known": 2.7.0
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
bn.js: ^5.1.3
@@ -1870,14 +1870,14 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/metadata@2.6.2-16, @polkadot/metadata@workspace:packages/metadata":
"@polkadot/metadata@2.7.0, @polkadot/metadata@workspace:packages/metadata":
version: 0.0.0-use.local
resolution: "@polkadot/metadata@workspace:packages/metadata"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/types": 2.6.2-16
"@polkadot/types-known": 2.6.2-16
"@polkadot/types": 2.7.0
"@polkadot/types-known": 2.7.0
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
bn.js: ^5.1.3
@@ -1893,29 +1893,29 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-core@2.6.2-16, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@2.7.0, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.6.2-16
"@polkadot/rpc-provider": 2.6.2-16
"@polkadot/types": 2.6.2-16
"@polkadot/metadata": 2.7.0
"@polkadot/rpc-provider": 2.7.0
"@polkadot/types": 2.7.0
"@polkadot/util": ^4.1.1
memoizee: ^0.4.14
rxjs: ^6.6.3
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@2.6.2-16, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@2.7.0, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.6.2-16
"@polkadot/types": 2.6.2-16
"@polkadot/metadata": 2.7.0
"@polkadot/types": 2.7.0
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
"@polkadot/x-fetch": ^4.1.1
@@ -1943,10 +1943,10 @@ __metadata:
"@babel/core": ^7.12.3
"@babel/register": ^7.12.1
"@babel/runtime": ^7.12.5
"@polkadot/api": 2.6.2-16
"@polkadot/metadata": 2.6.2-16
"@polkadot/rpc-provider": 2.6.2-16
"@polkadot/types": 2.6.2-16
"@polkadot/api": 2.7.0
"@polkadot/metadata": 2.7.0
"@polkadot/rpc-provider": 2.7.0
"@polkadot/types": 2.7.0
"@polkadot/util": ^4.1.1
"@types/websocket": ^1.0.1
"@types/yargs": ^15.0.9
@@ -1962,25 +1962,25 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-known@2.6.2-16, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@2.7.0, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/types": 2.6.2-16
"@polkadot/types": 2.7.0
"@polkadot/util": ^4.1.1
"@types/bn.js": ^4.11.6
bn.js: ^5.1.3
languageName: unknown
linkType: soft
"@polkadot/types@2.6.2-16, @polkadot/types@workspace:packages/types":
"@polkadot/types@2.7.0, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^4.1.1
"@polkadot/metadata": 2.6.2-16
"@polkadot/metadata": 2.7.0
"@polkadot/util": ^4.1.1
"@polkadot/util-crypto": ^4.1.1
"@types/bn.js": ^4.11.6