@@ -1,5 +1,23 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.10.1 Dec 7, 2020
|
||||
|
||||
Upgrade priority: Low. Recommended when following Substrate master and/or parachains development, contains the latest types for both.
|
||||
|
||||
- **Breaking change** If using the `staking.query` derive, you now need to pass flags as to which values to retrieve
|
||||
|
||||
Changes:
|
||||
|
||||
- Ensure that maximum era is limited to `consts.system.blockHashCount` (don't overflow on very low blocktimes)
|
||||
- Apply current Polkadot master parachain types
|
||||
- Apply current Substrate master asset types
|
||||
- Add `system_{addLogFilter, resetLogFilter}` RPCs
|
||||
- Adjust tests for latest Substrate metadata
|
||||
- Adjust staking derives to be more performant (flags indicate which query values to retrieve)
|
||||
- Add account derive to cater for the availability of identities
|
||||
- Use `import type` in all cases
|
||||
|
||||
|
||||
## 2.9.1 Nov 30, 2020
|
||||
|
||||
Upgrade priority: Low. No major changes when on at least 2.8.2. Users encouraged to upgrade to at least that patch.
|
||||
|
||||
+2
-2
@@ -26,11 +26,11 @@
|
||||
"@babel/core": "^7.12.9",
|
||||
"@babel/register": "^7.12.1",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/dev": "^0.60.7",
|
||||
"@polkadot/dev": "^0.60.8",
|
||||
"@polkadot/ts": "^0.3.57",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^26.0.16",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"version": "2.9.2-13"
|
||||
"version": "2.10.0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/types": "2.9.2-13",
|
||||
"@polkadot/api": "2.10.0",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"bn.js": "^4.11.9",
|
||||
"rxjs": "^6.6.3"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/rpc-core": "2.9.2-13",
|
||||
"@polkadot/types": "2.9.2-13",
|
||||
"@polkadot/api": "2.10.0",
|
||||
"@polkadot/rpc-core": "2.10.0",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"@polkadot/util-crypto": "^4.2.1",
|
||||
"bn.js": "^4.11.9",
|
||||
@@ -29,6 +29,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^4.2.1",
|
||||
"@polkadot/rpc-provider": "2.9.2-13"
|
||||
"@polkadot/rpc-provider": "2.10.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export function signingInfo (_instanceId: string, api: ApiInterfaceRx): (address
|
||||
map(([nonce, header]) => ({
|
||||
header,
|
||||
mortalLength: Math.min(
|
||||
FALLBACK_MAX_HASH_COUNT,
|
||||
api.consts.system?.blockHashCount?.toNumber() || FALLBACK_MAX_HASH_COUNT,
|
||||
MORTAL_PERIOD
|
||||
.div(api.consts.babe?.expectedBlockTime || api.consts.timestamp?.minimumPeriod.muln(2) || FALLBACK_PERIOD)
|
||||
.iadd(MAX_FINALITY_LAG)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/api-derive": "2.10.0",
|
||||
"@polkadot/keyring": "^4.2.1",
|
||||
"@polkadot/metadata": "2.9.2-13",
|
||||
"@polkadot/rpc-core": "2.9.2-13",
|
||||
"@polkadot/rpc-provider": "2.9.2-13",
|
||||
"@polkadot/types": "2.9.2-13",
|
||||
"@polkadot/types-known": "2.9.2-13",
|
||||
"@polkadot/metadata": "2.10.0",
|
||||
"@polkadot/rpc-core": "2.10.0",
|
||||
"@polkadot/rpc-provider": "2.10.0",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/types-known": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"@polkadot/util-crypto": "^4.2.1",
|
||||
"bn.js": "^4.11.9",
|
||||
|
||||
@@ -29,7 +29,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
|
||||
// an instance of the base extrinsic for us to extend
|
||||
const ExtrinsicBase = api.registry.createClass('Extrinsic');
|
||||
|
||||
return class Submittable extends ExtrinsicBase implements SubmittableExtrinsic<ApiType> {
|
||||
class Submittable extends ExtrinsicBase implements SubmittableExtrinsic<ApiType> {
|
||||
readonly #ignoreStatusCb: boolean;
|
||||
|
||||
#transformResult: (input: ISubmittableResult) => ISubmittableResult = identity;
|
||||
@@ -309,5 +309,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
|
||||
api.signer.update(updateId, status);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return Submittable;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/metadata",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/types-known": "2.9.2-13",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/types-known": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"@polkadot/util-crypto": "^4.2.1",
|
||||
"bn.js": "^4.11.9"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/rpc-provider": "2.9.2-13",
|
||||
"@polkadot/types": "2.9.2-13",
|
||||
"@polkadot/metadata": "2.10.0",
|
||||
"@polkadot/rpc-provider": "2.10.0",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"memoizee": "^0.4.14",
|
||||
"rxjs": "^6.6.3"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"@polkadot/util-crypto": "^4.2.1",
|
||||
"@polkadot/x-fetch": "^4.2.1",
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^4.2.1",
|
||||
"@polkadot/metadata": "2.9.2-13",
|
||||
"@polkadot/metadata": "2.10.0",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.0.5"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.0",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
@@ -26,10 +26,10 @@
|
||||
"@babel/core": "^7.12.9",
|
||||
"@babel/register": "^7.12.1",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/api": "2.9.2-13",
|
||||
"@polkadot/metadata": "2.9.2-13",
|
||||
"@polkadot/rpc-provider": "2.9.2-13",
|
||||
"@polkadot/types": "2.9.2-13",
|
||||
"@polkadot/api": "2.10.0",
|
||||
"@polkadot/metadata": "2.10.0",
|
||||
"@polkadot/rpc-provider": "2.10.0",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"handlebars": "^4.7.6",
|
||||
"websocket": "^1.0.32",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/types": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "2.9.2-13",
|
||||
"version": "2.10.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.9.2-13",
|
||||
"@polkadot/metadata": "2.10.0",
|
||||
"@polkadot/util": "^4.2.1",
|
||||
"@polkadot/util-crypto": "^4.2.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
|
||||
@@ -1717,24 +1717,24 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/api": 2.9.2-13
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/api": 2.10.0
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
bn.js: ^4.11.9
|
||||
rxjs: ^6.6.3
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@2.9.2-13, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@2.10.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.9.2-13
|
||||
"@polkadot/api": 2.10.0
|
||||
"@polkadot/keyring": ^4.2.1
|
||||
"@polkadot/rpc-core": 2.9.2-13
|
||||
"@polkadot/rpc-provider": 2.9.2-13
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/rpc-core": 2.10.0
|
||||
"@polkadot/rpc-provider": 2.10.0
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@polkadot/util-crypto": ^4.2.1
|
||||
bn.js: ^4.11.9
|
||||
@@ -1743,18 +1743,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@2.9.2-13, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@2.10.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.9.2-13
|
||||
"@polkadot/api-derive": 2.10.0
|
||||
"@polkadot/keyring": ^4.2.1
|
||||
"@polkadot/metadata": 2.9.2-13
|
||||
"@polkadot/rpc-core": 2.9.2-13
|
||||
"@polkadot/rpc-provider": 2.9.2-13
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/types-known": 2.9.2-13
|
||||
"@polkadot/metadata": 2.10.0
|
||||
"@polkadot/rpc-core": 2.10.0
|
||||
"@polkadot/rpc-provider": 2.10.0
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/types-known": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@polkadot/util-crypto": ^4.2.1
|
||||
bn.js: ^4.11.9
|
||||
@@ -1763,9 +1763,9 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/dev@npm:^0.60.7":
|
||||
version: 0.60.7
|
||||
resolution: "@polkadot/dev@npm:0.60.7"
|
||||
"@polkadot/dev@npm:^0.60.8":
|
||||
version: 0.60.8
|
||||
resolution: "@polkadot/dev@npm:0.60.8"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.12.8
|
||||
"@babel/core": ^7.12.9
|
||||
@@ -1851,7 +1851,7 @@ __metadata:
|
||||
polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.cjs
|
||||
polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.cjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.cjs
|
||||
checksum: 0241c5dfd9a9bb334b56712ef5c8caded11d5506753a4a2644dd3532d4159906eb5a1074f1014ca034c0b94c66e5112ad9ffe8d6bc2cc1500351149a30bdf719
|
||||
checksum: e9b4dd08aa90de176f719fdfa4b2b810e9219fb554b7c1137dc6ae28f6ea7aa608447ce0050c16a739a98bbae979f4fd09e41a77ad08c7ada04784dcbf61fcc0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1869,14 +1869,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/metadata@2.9.2-13, @polkadot/metadata@workspace:packages/metadata":
|
||||
"@polkadot/metadata@2.10.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.2.1
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/types-known": 2.9.2-13
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/types-known": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@polkadot/util-crypto": ^4.2.1
|
||||
bn.js: ^4.11.9
|
||||
@@ -1892,29 +1892,29 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-core@2.9.2-13, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@2.10.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.2.1
|
||||
"@polkadot/metadata": 2.9.2-13
|
||||
"@polkadot/rpc-provider": 2.9.2-13
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/metadata": 2.10.0
|
||||
"@polkadot/rpc-provider": 2.10.0
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
memoizee: ^0.4.14
|
||||
rxjs: ^6.6.3
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@2.9.2-13, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@2.10.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.2.1
|
||||
"@polkadot/metadata": 2.9.2-13
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/metadata": 2.10.0
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@polkadot/util-crypto": ^4.2.1
|
||||
"@polkadot/x-fetch": ^4.2.1
|
||||
@@ -1942,10 +1942,10 @@ __metadata:
|
||||
"@babel/core": ^7.12.9
|
||||
"@babel/register": ^7.12.1
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/api": 2.9.2-13
|
||||
"@polkadot/metadata": 2.9.2-13
|
||||
"@polkadot/rpc-provider": 2.9.2-13
|
||||
"@polkadot/types": 2.9.2-13
|
||||
"@polkadot/api": 2.10.0
|
||||
"@polkadot/metadata": 2.10.0
|
||||
"@polkadot/rpc-provider": 2.10.0
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@types/websocket": ^1.0.1
|
||||
"@types/yargs": ^15.0.10
|
||||
@@ -1961,25 +1961,25 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@2.9.2-13, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@2.10.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.9.2-13
|
||||
"@polkadot/types": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@2.9.2-13, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@2.10.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.2.1
|
||||
"@polkadot/metadata": 2.9.2-13
|
||||
"@polkadot/metadata": 2.10.0
|
||||
"@polkadot/util": ^4.2.1
|
||||
"@polkadot/util-crypto": ^4.2.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
@@ -9245,7 +9245,7 @@ fsevents@~2.1.2:
|
||||
"@babel/core": ^7.12.9
|
||||
"@babel/register": ^7.12.1
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/dev": ^0.60.7
|
||||
"@polkadot/dev": ^0.60.8
|
||||
"@polkadot/ts": ^0.3.57
|
||||
"@polkadot/typegen": "workspace:packages/typegen"
|
||||
"@types/jest": ^26.0.16
|
||||
|
||||
Reference in New Issue
Block a user