diff --git a/.github/workflows/pr-any.yml b/.github/workflows/pr-any.yml index 8faba702e5..49a2ee05e8 100644 --- a/.github/workflows/pr-any.yml +++ b/.github/workflows/pr-any.yml @@ -26,7 +26,7 @@ jobs: ${{ runner.os }}-yarn- - name: lint run: | - yarn install | grep -v 'YN0013' + yarn install --immutable | grep -v 'YN0013' yarn lint test: @@ -53,7 +53,7 @@ jobs: ${{ runner.os }}-yarn- - name: test run: | - yarn install | grep -v 'YN0013' + yarn install --immutable | grep -v 'YN0013' yarn test build_code: @@ -80,7 +80,7 @@ jobs: ${{ runner.os }}-yarn- - name: build run: | - yarn install | grep -v 'YN0013' + yarn install --immutable | grep -v 'YN0013' yarn build build_docs: @@ -107,5 +107,5 @@ jobs: ${{ runner.os }}-yarn- - name: build run: | - yarn install | grep -v 'YN0013' + yarn install --immutable | grep -v 'YN0013' yarn docs diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 1fe06d0258..929c5ecf1d 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -38,7 +38,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - yarn install | grep -v 'YN0013' + yarn install --immutable | grep -v 'YN0013' yarn polkadot-ci-ghact-build build_docs: @@ -71,7 +71,7 @@ jobs: GH_PAGES_SRC: build-docs GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - yarn install | grep -v 'YN0013' + yarn install --immutable | grep -v 'YN0013' yarn polkadot-ci-ghact-docs dummy: diff --git a/docs/start/FAQ.md b/docs/start/FAQ.md index a673bd7cf1..56c65b39c2 100644 --- a/docs/start/FAQ.md +++ b/docs/start/FAQ.md @@ -18,7 +18,7 @@ The typical error that you would see is `Verification Error: Execution(ApiError( All data transferred between the API and the Node is in a SCALE-encoded binary format, so the [definition of the types](types.extend.md) between the API and the node needs to match 100%. When you find the above, it would mean the definition of the types on the API side does not match what is on the node. Specifically the API encodes against the definition, but since there is a mismatch the Node cannot parse the data correctly. -To fix this, you should look at the specific `api.tx.*` params and adjust the type definitions for those param types to match what is found on the node side. In some rare cases the cause could be extrinsic formatting related, to track these make an `api.tx.system.remark(data: Bytes)` call, if it fails, the API and node cannot agree on an extrinsic format. (Ensure that there are no signed extension warnings in the API itself) +To fix this, you should look at the specific `api.tx.*` params and adjust the type definitions for those param types to match what is found on the node side. In some rare cases the cause could be extrinsic formatting related, to track these make an `api.tx.system.remark(data: Bytes)` call, if it fails, the API and node cannot agree on [an extrinsic format and adjustments are required](types.extend.md#impact-on-extrinsics). ## I would like to sign transactions offline diff --git a/docs/start/types.create.md b/docs/start/types.create.md index acbf4ac01a..1a08ec30e6 100644 --- a/docs/start/types.create.md +++ b/docs/start/types.create.md @@ -21,6 +21,7 @@ import type { Balance } from '@polkadot/types/interfaces'; ... // unwrap out option into a zero Balance whn not found +// (This can be done via `.unwrapOrDefault()`, which does the same underlying) const balance: Balance = balanceOpt.unwrapOr(api.createType('Balance')); ``` @@ -45,7 +46,7 @@ api.createType('Balance', 123); // via registry (`.registry` is on all API and Codec objects) api.registry.createType('Balance', 123n); -// via the low-level approach +// via the low-level approach (not recommended) createType(api.registry, 'Balance', '123'); ``` diff --git a/docs/start/types.extend.md b/docs/start/types.extend.md index be5eeec705..01726d8661 100644 --- a/docs/start/types.extend.md +++ b/docs/start/types.extend.md @@ -133,7 +133,7 @@ In the same way `typesChain` can be used to match on the actual chain name, i.e. const api = await ApiPromise.create({ ..., typesChain: { - 'Kusama CC1': { + Kusama: { BlockNumber: 'u32', Index: 'u32' } @@ -163,9 +163,9 @@ const api = await ApiPromise.create({ ## Impact on extrinsics -When configuring your chain, be cognizant of the types you are using, and always ensure that any changes are replicated back to the API. In an earlier example we configures `Balance` as `u64` - the same changes needs to be applied on the API when there are mismatches to Substrate master, otherwise failures will occur. +When configuring your chain, be cognizant of the types you are using, and always ensure that any changes are replicated back to the API. In an earlier example we configures `Balance` as `u64` - the same changes needs to be applied on the API when there are mismatches to Substrate master, otherwise failures will occur. The same would happen when your own types have mismatched fields types or miss fields on structs or enums. -This also applies to any other chain-specific configured types, for instance you can customize `Lookup` and `Address` on your chain. A real example of this is the Substrate master node vs the Substrate master node-template - +Mismatches also applies to any other chain-specific configured types, for instance you can customize `Lookup` and `Address` on your chain. A real example of this is the Substrate master node vs the Substrate master node-template - ```rust /// The lookup mechanism to get account ID from whatever is passed in dispatchers. @@ -203,4 +203,4 @@ Always look at customization and understand the impacts, replicating these chang ## Type creation -While the API always converts all the inputs into the underlying type required by the operation, in some cases you may want to [cret an instance of a type](types.create.md) yourself. +While the API always converts all the inputs into the underlying type required by the operation, in some cases you may want to [create an instance of a type](types.create.md) yourself. diff --git a/package.json b/package.json index 3a22187256..d828c18625 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "@babel/core": "^7.8.4", "@babel/register": "^7.8.3", "@babel/runtime": "^7.8.4", - "@polkadot/dev": "^0.50.9", - "@polkadot/ts": "^0.3.1", + "@polkadot/dev": "^0.50.11", + "@polkadot/ts": "^0.3.3", "@polkadot/typegen": "workspace:packages/typegen", "copyfiles": "^2.2.0" } diff --git a/yarn.lock b/yarn.lock index e691a14c42..65d2f65565 100644 --- a/yarn.lock +++ b/yarn.lock @@ -49,6 +49,17 @@ __metadata: languageName: node linkType: hard +"@babel/compat-data@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/compat-data@npm:7.8.6" + dependencies: + browserslist: ^4.8.5 + invariant: ^2.2.4 + semver: ^5.5.0 + checksum: 2/b1c6e66f32b4f30326c0376adfb4b55fc5da6471c03d918ca7383b645834d644cb069ac4c5a8867704707bb0e41575e57d99cf6e648b8719ccaf09f452701cb6 + languageName: node + linkType: hard + "@babel/core@npm:^7.1.0, @babel/core@npm:^7.7.5, @babel/core@npm:^7.8.3, @babel/core@npm:^7.8.4": version: 7.8.4 resolution: "@babel/core@npm:7.8.4" @@ -72,6 +83,29 @@ __metadata: languageName: node linkType: hard +"@babel/core@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/core@npm:7.8.6" + dependencies: + "@babel/code-frame": ^7.8.3 + "@babel/generator": ^7.8.6 + "@babel/helpers": ^7.8.4 + "@babel/parser": ^7.8.6 + "@babel/template": ^7.8.6 + "@babel/traverse": ^7.8.6 + "@babel/types": ^7.8.6 + convert-source-map: ^1.7.0 + debug: ^4.1.0 + gensync: ^1.0.0-beta.1 + json5: ^2.1.0 + lodash: ^4.17.13 + resolve: ^1.3.2 + semver: ^5.4.1 + source-map: ^0.5.0 + checksum: 2/5bd2d3b0f3948cb0b42dac716dbfa573f3c165c3a5067970e76410eec745126062aecc6540a274aea7c6cdd21c2ad243d4bbe4a99084863ce2f79b0441cc8491 + languageName: node + linkType: hard + "@babel/generator@npm:^7.8.4": version: 7.8.4 resolution: "@babel/generator@npm:7.8.4" @@ -84,6 +118,18 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/generator@npm:7.8.6" + dependencies: + "@babel/types": ^7.8.6 + jsesc: ^2.5.1 + lodash: ^4.17.13 + source-map: ^0.5.0 + checksum: 2/d76ef6252d85f1a7c24193dabe41f9cb3a489a81b761c369e3d6370a71a45ed75113ffbe809b0098c6eb9b201a5a116aaeec00bb8e65785dec6cc62acfc82aea + languageName: node + linkType: hard + "@babel/helper-annotate-as-pure@npm:^7.0.0, @babel/helper-annotate-as-pure@npm:^7.8.3": version: 7.8.3 resolution: "@babel/helper-annotate-as-pure@npm:7.8.3" @@ -139,6 +185,21 @@ __metadata: languageName: node linkType: hard +"@babel/helper-compilation-targets@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/helper-compilation-targets@npm:7.8.6" + dependencies: + "@babel/compat-data": ^7.8.6 + browserslist: ^4.8.5 + invariant: ^2.2.4 + levenary: ^1.1.1 + semver: ^5.5.0 + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 2/2d807ec4063c5d9205945f446e20501641bd57b9325a9da2a8e296ffc7f94224a0f82f0cacefbe1228b69eaae55e013b3188baabe135b2904740d20256097a48 + languageName: node + linkType: hard + "@babel/helper-create-class-features-plugin@npm:^7.8.3": version: 7.8.3 resolution: "@babel/helper-create-class-features-plugin@npm:7.8.3" @@ -299,6 +360,18 @@ __metadata: languageName: node linkType: hard +"@babel/helper-replace-supers@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/helper-replace-supers@npm:7.8.6" + dependencies: + "@babel/helper-member-expression-to-functions": ^7.8.3 + "@babel/helper-optimise-call-expression": ^7.8.3 + "@babel/traverse": ^7.8.6 + "@babel/types": ^7.8.6 + checksum: 2/159fad039fe54a415d2c74b79b2fe70d7a22b049da9402bf006de8a832ad2f12015852f7abd2f77cc9ac783c960c6a7cb04c0862234c5b21f1c8ec81f74a0a1f + languageName: node + linkType: hard + "@babel/helper-simple-access@npm:^7.8.3": version: 7.8.3 resolution: "@babel/helper-simple-access@npm:7.8.3" @@ -361,6 +434,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/parser@npm:7.8.6" + bin: + parser: ./bin/babel-parser.js + checksum: 2/371c336cf3cf62b4c4541f592f82e5224c5a67ea8777d34863f02a20bfb369cc62c6e5ab153001a05d04caaeb2ed48b3012ef67dbab1a7a3d50881b560a09128 + languageName: node + linkType: hard + "@babel/plugin-proposal-async-generator-functions@npm:^7.8.3": version: 7.8.3 resolution: "@babel/plugin-proposal-async-generator-functions@npm:7.8.3" @@ -749,6 +831,24 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-classes@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/plugin-transform-classes@npm:7.8.6" + dependencies: + "@babel/helper-annotate-as-pure": ^7.8.3 + "@babel/helper-define-map": ^7.8.3 + "@babel/helper-function-name": ^7.8.3 + "@babel/helper-optimise-call-expression": ^7.8.3 + "@babel/helper-plugin-utils": ^7.8.3 + "@babel/helper-replace-supers": ^7.8.6 + "@babel/helper-split-export-declaration": ^7.8.3 + globals: ^11.1.0 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 2/d74effa46f943bd682b97fa89c58735cf16cb814b6b0f7283bcf3e3bdc3ace63cbb988b04bc2df0d4bf4772c013aca64e01fc6d2efaf6c4f2284351d7a1aee2b + languageName: node + linkType: hard + "@babel/plugin-transform-computed-properties@npm:^7.8.3": version: 7.8.3 resolution: "@babel/plugin-transform-computed-properties@npm:7.8.3" @@ -817,6 +917,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-transform-for-of@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/plugin-transform-for-of@npm:7.8.6" + dependencies: + "@babel/helper-plugin-utils": ^7.8.3 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 2/3b5e64ab21ac05ebcf5c1a518206b943427fdd16d61db7d4417b32f6128b0afb63657fe4faa1e3c2092abb3abf80094a4b93c61ecb2f4ab3cabbf7d1cd4b0f30 + languageName: node + linkType: hard + "@babel/plugin-transform-function-name@npm:^7.8.3": version: 7.8.3 resolution: "@babel/plugin-transform-function-name@npm:7.8.3" @@ -1195,6 +1306,73 @@ __metadata: languageName: node linkType: hard +"@babel/preset-env@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/preset-env@npm:7.8.6" + dependencies: + "@babel/compat-data": ^7.8.6 + "@babel/helper-compilation-targets": ^7.8.6 + "@babel/helper-module-imports": ^7.8.3 + "@babel/helper-plugin-utils": ^7.8.3 + "@babel/plugin-proposal-async-generator-functions": ^7.8.3 + "@babel/plugin-proposal-dynamic-import": ^7.8.3 + "@babel/plugin-proposal-json-strings": ^7.8.3 + "@babel/plugin-proposal-nullish-coalescing-operator": ^7.8.3 + "@babel/plugin-proposal-object-rest-spread": ^7.8.3 + "@babel/plugin-proposal-optional-catch-binding": ^7.8.3 + "@babel/plugin-proposal-optional-chaining": ^7.8.3 + "@babel/plugin-proposal-unicode-property-regex": ^7.8.3 + "@babel/plugin-syntax-async-generators": ^7.8.0 + "@babel/plugin-syntax-dynamic-import": ^7.8.0 + "@babel/plugin-syntax-json-strings": ^7.8.0 + "@babel/plugin-syntax-nullish-coalescing-operator": ^7.8.0 + "@babel/plugin-syntax-object-rest-spread": ^7.8.0 + "@babel/plugin-syntax-optional-catch-binding": ^7.8.0 + "@babel/plugin-syntax-optional-chaining": ^7.8.0 + "@babel/plugin-syntax-top-level-await": ^7.8.3 + "@babel/plugin-transform-arrow-functions": ^7.8.3 + "@babel/plugin-transform-async-to-generator": ^7.8.3 + "@babel/plugin-transform-block-scoped-functions": ^7.8.3 + "@babel/plugin-transform-block-scoping": ^7.8.3 + "@babel/plugin-transform-classes": ^7.8.6 + "@babel/plugin-transform-computed-properties": ^7.8.3 + "@babel/plugin-transform-destructuring": ^7.8.3 + "@babel/plugin-transform-dotall-regex": ^7.8.3 + "@babel/plugin-transform-duplicate-keys": ^7.8.3 + "@babel/plugin-transform-exponentiation-operator": ^7.8.3 + "@babel/plugin-transform-for-of": ^7.8.6 + "@babel/plugin-transform-function-name": ^7.8.3 + "@babel/plugin-transform-literals": ^7.8.3 + "@babel/plugin-transform-member-expression-literals": ^7.8.3 + "@babel/plugin-transform-modules-amd": ^7.8.3 + "@babel/plugin-transform-modules-commonjs": ^7.8.3 + "@babel/plugin-transform-modules-systemjs": ^7.8.3 + "@babel/plugin-transform-modules-umd": ^7.8.3 + "@babel/plugin-transform-named-capturing-groups-regex": ^7.8.3 + "@babel/plugin-transform-new-target": ^7.8.3 + "@babel/plugin-transform-object-super": ^7.8.3 + "@babel/plugin-transform-parameters": ^7.8.4 + "@babel/plugin-transform-property-literals": ^7.8.3 + "@babel/plugin-transform-regenerator": ^7.8.3 + "@babel/plugin-transform-reserved-words": ^7.8.3 + "@babel/plugin-transform-shorthand-properties": ^7.8.3 + "@babel/plugin-transform-spread": ^7.8.3 + "@babel/plugin-transform-sticky-regex": ^7.8.3 + "@babel/plugin-transform-template-literals": ^7.8.3 + "@babel/plugin-transform-typeof-symbol": ^7.8.4 + "@babel/plugin-transform-unicode-regex": ^7.8.3 + "@babel/types": ^7.8.6 + browserslist: ^4.8.5 + core-js-compat: ^3.6.2 + invariant: ^2.2.2 + levenary: ^1.1.1 + semver: ^5.5.0 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 2/8d15df527ee1b96c31cb03ae0254429ca55e2cc5ac5fa833f86f2900e02711edb0f8328d707f1b8d61d36e445bfa13845a846c140b612d50d8ad8a88aeca631a + languageName: node + linkType: hard + "@babel/preset-react@npm:^7.8.3": version: 7.8.3 resolution: "@babel/preset-react@npm:7.8.3" @@ -1237,6 +1415,21 @@ __metadata: languageName: node linkType: hard +"@babel/register@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/register@npm:7.8.6" + dependencies: + find-cache-dir: ^2.0.0 + lodash: ^4.17.13 + make-dir: ^2.1.0 + pirates: ^4.0.0 + source-map-support: ^0.5.16 + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 2/d562dc835a25fe686cd1031f8be0c7d134efb6e0d377c289db8c4f4643f2a150943acdaa9ef03a49f92f81b2657fd99cf6b1739720d1f95d93ce170464ec7897 + languageName: node + linkType: hard + "@babel/runtime@npm:^7.8.4": version: 7.8.4 resolution: "@babel/runtime@npm:7.8.4" @@ -1257,6 +1450,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/template@npm:7.8.6" + dependencies: + "@babel/code-frame": ^7.8.3 + "@babel/parser": ^7.8.6 + "@babel/types": ^7.8.6 + checksum: 2/90ff89fe2a436b27276e8048bbfeb96098917fc2903b5cb81e903c987df65ed0ab94b1829320c5810e66786e14a03dda44920c9afc73084bc8fdbcbee1743348 + languageName: node + linkType: hard + "@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.7.4, @babel/traverse@npm:^7.8.3, @babel/traverse@npm:^7.8.4": version: 7.8.4 resolution: "@babel/traverse@npm:7.8.4" @@ -1274,6 +1478,23 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/traverse@npm:7.8.6" + dependencies: + "@babel/code-frame": ^7.8.3 + "@babel/generator": ^7.8.6 + "@babel/helper-function-name": ^7.8.3 + "@babel/helper-split-export-declaration": ^7.8.3 + "@babel/parser": ^7.8.6 + "@babel/types": ^7.8.6 + debug: ^4.1.0 + globals: ^11.1.0 + lodash: ^4.17.13 + checksum: 2/6c562bcbf34ccaf4c054334a5a372d69a9c0c268da82ffcd89b4fd40833be15215e9d674f867d4b277073445cbcbe2fa4c13705c7e9b7689ab527df0a011c860 + languageName: node + linkType: hard + "@babel/types@npm:^7.0.0, @babel/types@npm:^7.3.0, @babel/types@npm:^7.8.3": version: 7.8.3 resolution: "@babel/types@npm:7.8.3" @@ -1285,6 +1506,17 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.8.6": + version: 7.8.6 + resolution: "@babel/types@npm:7.8.6" + dependencies: + esutils: ^2.0.2 + lodash: ^4.17.13 + to-fast-properties: ^2.0.0 + checksum: 2/95e071cdac65609b65b904fff6fad92cc02a2c269d2f8b625f33c28f6f6f2fe4e65f8bed04174f7ca22c92f81797bd1f6bc213195adf3df823471e14e925c061 + languageName: node + linkType: hard + "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -2524,25 +2756,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.8.4 - "@polkadot/api": 1.5.0-beta.16 - "@polkadot/rpc-core": 1.5.0-beta.16 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/api": 1.5.0-beta.17 + "@polkadot/rpc-core": 1.5.0-beta.17 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 bn.js: ^5.1.1 rxjs: ^6.5.4 languageName: unknown linkType: soft -"@polkadot/api-derive@1.5.0-beta.16, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@1.5.0-beta.17, @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.8.4 - "@polkadot/api": 1.5.0-beta.16 + "@polkadot/api": 1.5.0-beta.17 "@polkadot/keyring": ^2.5.1 - "@polkadot/rpc-core": 1.5.0-beta.16 - "@polkadot/rpc-provider": 1.5.0-beta.16 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/rpc-core": 1.5.0-beta.17 + "@polkadot/rpc-provider": 1.5.0-beta.17 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 "@polkadot/util-crypto": ^2.5.1 bn.js: ^5.1.1 @@ -2551,17 +2783,17 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@1.5.0-beta.16, @polkadot/api@workspace:packages/api": +"@polkadot/api@1.5.0-beta.17, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.8.4 - "@polkadot/api-derive": 1.5.0-beta.16 + "@polkadot/api-derive": 1.5.0-beta.17 "@polkadot/keyring": ^2.5.1 - "@polkadot/metadata": 1.5.0-beta.16 - "@polkadot/rpc-core": 1.5.0-beta.16 - "@polkadot/rpc-provider": 1.5.0-beta.16 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/metadata": 1.5.0-beta.17 + "@polkadot/rpc-core": 1.5.0-beta.17 + "@polkadot/rpc-provider": 1.5.0-beta.17 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 "@polkadot/util-crypto": ^2.5.1 bn.js: ^5.1.1 @@ -2570,12 +2802,12 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev@npm:^0.50.9": - version: 0.50.9 - resolution: "@polkadot/dev@npm:0.50.9" +"@polkadot/dev@npm:^0.50.11": + version: 0.50.11 + resolution: "@polkadot/dev@npm:0.50.11" dependencies: "@babel/cli": ^7.8.4 - "@babel/core": ^7.8.4 + "@babel/core": ^7.8.6 "@babel/plugin-proposal-class-properties": ^7.8.3 "@babel/plugin-proposal-decorators": ^7.8.3 "@babel/plugin-proposal-nullish-coalescing-operator": ^7.8.3 @@ -2589,20 +2821,20 @@ __metadata: "@babel/plugin-syntax-import-meta": ^7.8.3 "@babel/plugin-syntax-top-level-await": ^7.8.3 "@babel/plugin-transform-runtime": ^7.8.3 - "@babel/preset-env": ^7.8.4 + "@babel/preset-env": ^7.8.6 "@babel/preset-react": ^7.8.3 "@babel/preset-typescript": ^7.8.3 - "@babel/register": ^7.8.3 + "@babel/register": ^7.8.6 "@babel/runtime": ^7.8.4 "@types/jest": ^25.1.3 - "@types/node": ^13.7.4 - "@typescript-eslint/eslint-plugin": 2.20.0 - "@typescript-eslint/parser": 2.20.0 + "@types/node": ^13.7.6 + "@typescript-eslint/eslint-plugin": 2.21.0 + "@typescript-eslint/parser": 2.21.0 babel-core: ^7.0.0-bridge.0 babel-jest: ^25.1.0 babel-plugin-module-resolver: ^4.0.0 babel-plugin-styled-components: ^1.10.7 - browserslist: ^4.8.7 + browserslist: ^4.9.0 chalk: ^3.0.0 coveralls: ^3.0.9 cpx: ^1.5.0 @@ -2613,7 +2845,7 @@ __metadata: eslint-plugin-node: ^11.0.0 eslint-plugin-promise: ^4.2.1 eslint-plugin-react: ^7.18.3 - eslint-plugin-react-hooks: ^2.4.0 + eslint-plugin-react-hooks: ^2.5.0 eslint-plugin-standard: ^4.0.1 fs-extra: ^8.1.0 gh-pages: ^2.2.0 @@ -2626,8 +2858,8 @@ __metadata: madge: ^3.7.0 mkdirp: ^1.0.3 rimraf: ^3.0.2 - typedoc: ^0.16.10 - typedoc-plugin-markdown: ^2.2.16 + typedoc: ^0.16.11 + typedoc-plugin-markdown: ^2.2.17 typedoc-plugin-no-inherit: ^1.1.10 typescript: ^3.8.2 vuepress: ^1.3.1 @@ -2654,16 +2886,16 @@ __metadata: polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js polkadot-exec-webpack: scripts/polkadot-exe-webpackc.js - checksum: 2/e79e3e4011e04398188245e3a80674d3acd8aaec6bd1687c451d432a89a006bbd52ef12eebf8698f52d8b6527823d604de9830561076831973237afe915893fc + checksum: 2/9f6d26e3c1cae1ceb3ddd02a01b18a9a4bf5b0c5a39a91c031888ce30382c0aacfc95dc8d3d1bb6fafc35d8aac12d9d67cc1efca36bdc1804702c8a77c695f42 languageName: node linkType: hard -"@polkadot/jsonrpc@1.5.0-beta.16, @polkadot/jsonrpc@workspace:packages/jsonrpc": +"@polkadot/jsonrpc@1.5.0-beta.17, @polkadot/jsonrpc@workspace:packages/jsonrpc": version: 0.0.0-use.local resolution: "@polkadot/jsonrpc@workspace:packages/jsonrpc" dependencies: "@babel/runtime": ^7.8.4 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 languageName: unknown linkType: soft @@ -2679,44 +2911,44 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@1.5.0-beta.16, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@1.5.0-beta.17, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.8.4 "@polkadot/keyring": ^2.5.1 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 "@polkadot/util-crypto": ^2.5.1 bn.js: ^5.1.1 languageName: unknown linkType: soft -"@polkadot/rpc-core@1.5.0-beta.16, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@1.5.0-beta.17, @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.8.4 - "@polkadot/jsonrpc": 1.5.0-beta.16 + "@polkadot/jsonrpc": 1.5.0-beta.17 "@polkadot/keyring": ^2.5.1 - "@polkadot/metadata": 1.5.0-beta.16 - "@polkadot/rpc-provider": 1.5.0-beta.16 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/metadata": 1.5.0-beta.17 + "@polkadot/rpc-provider": 1.5.0-beta.17 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 memoizee: ^0.4.14 rxjs: ^6.5.4 languageName: unknown linkType: soft -"@polkadot/rpc-provider@1.5.0-beta.16, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@1.5.0-beta.17, @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.8.4 - "@polkadot/jsonrpc": 1.5.0-beta.16 + "@polkadot/jsonrpc": 1.5.0-beta.17 "@polkadot/keyring": ^2.5.1 - "@polkadot/metadata": 1.5.0-beta.16 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/metadata": 1.5.0-beta.17 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 "@polkadot/util-crypto": ^2.5.1 bn.js: ^5.1.1 @@ -2728,12 +2960,12 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/ts@npm:^0.3.1": - version: 0.3.1 - resolution: "@polkadot/ts@npm:0.3.1" +"@polkadot/ts@npm:^0.3.3": + version: 0.3.3 + resolution: "@polkadot/ts@npm:0.3.3" dependencies: - "@types/chrome": ^0.0.95 - checksum: 2/5cb95cf42c78935895000f5a86a1c28d4a57bdda7deb1045fb2d9113290ac98c493cee503caaa572a98493f8646910d4375dc85fdb57e5dae4e6fe7c48208620 + "@types/chrome": ^0.0.97 + checksum: 2/713693135413bcb68478afbcf9832c5d62c0967dc7586999686c1d8c7f430365f60fcbe24b42539d84df1ac82ed2da2b184efd1827f5c71d2a151643fdf5f7c4 languageName: node linkType: hard @@ -2744,11 +2976,11 @@ __metadata: "@babel/core": ^7.8.3 "@babel/register": ^7.8.3 "@babel/runtime": ^7.8.4 - "@polkadot/api": 1.5.0-beta.16 - "@polkadot/jsonrpc": 1.5.0-beta.16 - "@polkadot/metadata": 1.5.0-beta.16 - "@polkadot/rpc-provider": 1.5.0-beta.16 - "@polkadot/types": 1.5.0-beta.16 + "@polkadot/api": 1.5.0-beta.17 + "@polkadot/jsonrpc": 1.5.0-beta.17 + "@polkadot/metadata": 1.5.0-beta.17 + "@polkadot/rpc-provider": 1.5.0-beta.17 + "@polkadot/types": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 "@types/websocket": ^1.0.0 "@types/yargs": ^15.0.3 @@ -2763,13 +2995,13 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types@1.5.0-beta.16, @polkadot/types@workspace:packages/types": +"@polkadot/types@1.5.0-beta.17, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.8.4 "@polkadot/keyring": ^2.5.1 - "@polkadot/metadata": 1.5.0-beta.16 + "@polkadot/metadata": 1.5.0-beta.17 "@polkadot/util": ^2.5.1 "@polkadot/util-crypto": ^2.5.1 "@types/bn.js": ^4.11.6 @@ -2899,12 +3131,12 @@ __metadata: languageName: node linkType: hard -"@types/chrome@npm:^0.0.95": - version: 0.0.95 - resolution: "@types/chrome@npm:0.0.95" +"@types/chrome@npm:^0.0.97": + version: 0.0.97 + resolution: "@types/chrome@npm:0.0.97" dependencies: "@types/filesystem": "*" - checksum: 2/7b4d12714062f9717222de331a491da8be4e33c7bb9340f07804c43daaa5b22e6f54b1d134000b6ce713f8cd17f746bb3e4500f671f5eee1500391ac936d5d4f + checksum: 2/b377dba0f6f59dfe7a2e4b6203499a00ff50c0d6c87e741f5bae077a7c0c2bd4cd7de560001272d94cdf9d69d82cc546eba9656407a07d306af7db2e1ea373f1 languageName: node linkType: hard @@ -3013,7 +3245,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>= 8, @types/node@npm:^13.7.4": +"@types/node@npm:*, @types/node@npm:>= 8": version: 13.7.4 resolution: "@types/node@npm:13.7.4" checksum: 2/6aa330eaa5a93370adc14e44bb4af92de463116e5f37d5c30d447e3d519a185db50c65c442c2a4c8f09c7b6eae5c9bcd7783258534aee191d2ec672249c2bc22 @@ -3027,6 +3259,13 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^13.7.6": + version: 13.7.7 + resolution: "@types/node@npm:13.7.7" + checksum: 2/7a4a7c5060f86b6f4010d10b0de9831f98f303513a7403e8bfb3ad3f1d6a9533d023e1b6e2331959525156b84c0daf98ad1569407309da1f798498301f227a37 + languageName: node + linkType: hard + "@types/q@npm:^1.5.1": version: 1.5.2 resolution: "@types/q@npm:1.5.2" @@ -3066,11 +3305,11 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:2.20.0": - version: 2.20.0 - resolution: "@typescript-eslint/eslint-plugin@npm:2.20.0" +"@typescript-eslint/eslint-plugin@npm:2.21.0": + version: 2.21.0 + resolution: "@typescript-eslint/eslint-plugin@npm:2.21.0" dependencies: - "@typescript-eslint/experimental-utils": 2.20.0 + "@typescript-eslint/experimental-utils": 2.21.0 eslint-utils: ^1.4.3 functional-red-black-tree: ^1.0.1 regexpp: ^3.0.0 @@ -3082,30 +3321,30 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 2/050a6d35682085788272bacf1ca46f0b9ad0723aa470deaa40eb6c680bb7323b47e9903747ebaff2f0b87d1460df3de67e70c89dee818e032c72091fd7896049 + checksum: 2/5a147e73fdc85fd78fbf762389f15140830dd6483bff84c5b981c6363bccb8739d99b58e512e25078cf63a3163b2e23aa76a4aa7e4157a516cc3c4c1264ec80b languageName: node linkType: hard -"@typescript-eslint/experimental-utils@npm:2.20.0": - version: 2.20.0 - resolution: "@typescript-eslint/experimental-utils@npm:2.20.0" +"@typescript-eslint/experimental-utils@npm:2.21.0": + version: 2.21.0 + resolution: "@typescript-eslint/experimental-utils@npm:2.21.0" dependencies: "@types/json-schema": ^7.0.3 - "@typescript-eslint/typescript-estree": 2.20.0 + "@typescript-eslint/typescript-estree": 2.21.0 eslint-scope: ^5.0.0 peerDependencies: eslint: "*" - checksum: 2/6ba9083c032be6bf985f5a2912d5322ca254fcfd314d6de9d06c822b94eb3c5abfcee90c40eb2ea0f600e8ff2a484ea1bd3e915c29eab5ea3711c9b77466979e + checksum: 2/bcc5fb5957c5416d101c70225c4cb7bb92af7bef63831d248bbca3cec82563f018dcf9d4ce032b307c3d06a8d72562e333bd091f819146a105e820e56eda77bd languageName: node linkType: hard -"@typescript-eslint/parser@npm:2.20.0": - version: 2.20.0 - resolution: "@typescript-eslint/parser@npm:2.20.0" +"@typescript-eslint/parser@npm:2.21.0": + version: 2.21.0 + resolution: "@typescript-eslint/parser@npm:2.21.0" dependencies: "@types/eslint-visitor-keys": ^1.0.0 - "@typescript-eslint/experimental-utils": 2.20.0 - "@typescript-eslint/typescript-estree": 2.20.0 + "@typescript-eslint/experimental-utils": 2.21.0 + "@typescript-eslint/typescript-estree": 2.21.0 eslint-visitor-keys: ^1.1.0 peerDependencies: eslint: ^5.0.0 || ^6.0.0 @@ -3113,11 +3352,31 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 2/b0f2760c9c74c1a2f2b35b469799126b361ad84ef8e160159027bfda8bf04c6ab3b133e99d14510363f58ad49d8fca6ee8117d4c50763f9cbfbca595123d9aae + checksum: 2/ab5de8fd7f02ff93faaa0e22e9a6dd8b6a52ef48aec2084a3ab2118b4171cb4a294fae39ea9c75c119085e7e83e8e7e71b6e047ebf459e59f0c346ae6530a847 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:2.20.0, @typescript-eslint/typescript-estree@npm:^2.4.0": +"@typescript-eslint/typescript-estree@npm:2.21.0": + version: 2.21.0 + resolution: "@typescript-eslint/typescript-estree@npm:2.21.0" + dependencies: + debug: ^4.1.1 + eslint-visitor-keys: ^1.1.0 + glob: ^7.1.6 + is-glob: ^4.0.1 + lodash: ^4.17.15 + semver: ^6.3.0 + tsutils: ^3.17.1 + peerDependencies: + typescript: "*" + peerDependenciesMeta: + typescript: + optional: true + checksum: 2/e6724eea96602ceb3a3747fa4c1a1a93df94d9503a4b846d22fe1c17175890ad9c2dd86609e4d3f154c698ca4b8a21ada0b5ad99b03618f4ce76ee62139b82cf + languageName: node + linkType: hard + +"@typescript-eslint/typescript-estree@npm:^2.4.0": version: 2.20.0 resolution: "@typescript-eslint/typescript-estree@npm:2.20.0" dependencies: @@ -4730,16 +4989,16 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.8.7": - version: 4.9.0 - resolution: "browserslist@npm:4.9.0" +"browserslist@npm:^4.9.0": + version: 4.9.1 + resolution: "browserslist@npm:4.9.1" dependencies: caniuse-lite: ^1.0.30001030 - electron-to-chromium: ^1.3.361 + electron-to-chromium: ^1.3.363 node-releases: ^1.1.50 bin: browserslist: cli.js - checksum: 2/b5a7f976c37187ee365de3b25497cea17618d73bad337940c1764cfa0fb4c1b211b88ff445c9439c632efe23380b3a761a1f79f4f1b2320eccd111ce7e7583a5 + checksum: 2/62838a67d7e7ce303426cebee4e2c4738d6166e7786cea38462ed3afb298cec535686628c9ae5a44e63e80a0797254b587b61bc2a7b522f58abf16ff92a4aeb6 languageName: node linkType: hard @@ -6969,10 +7228,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.3.361": - version: 1.3.362 - resolution: "electron-to-chromium@npm:1.3.362" - checksum: 2/c465941ec55a5d5958de203e7ad85413dbd7496561dd81079e82ea6f26ff0a74998e4a23eb07d091aa0d41a9722cdddeca1e737db2867e017d1060cc86382749 +"electron-to-chromium@npm:^1.3.363": + version: 1.3.364 + resolution: "electron-to-chromium@npm:1.3.364" + checksum: 2/c2f9c49abfdacb1e05f2a9cfdf50a8c46a8bc880d9802e933a82da6c839d40317b0712618765afd76d3d93c8d51bfacea25787b05c0cb8e146cdfe10ff1cd6d6 languageName: node linkType: hard @@ -7362,12 +7621,12 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react-hooks@npm:^2.4.0": - version: 2.4.0 - resolution: "eslint-plugin-react-hooks@npm:2.4.0" +"eslint-plugin-react-hooks@npm:^2.5.0": + version: 2.5.0 + resolution: "eslint-plugin-react-hooks@npm:2.5.0" peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 - checksum: 2/3230a778c34daf905b7ea955ae2bbb009d66f22c85e26c85dd73279702d3e369d3d1728daadcf02d4f09687ffb23ce9db2a277d3386e136e83a946538002e1c1 + checksum: 2/fa40ca7982e9c203b545c7f5794090a2ff93f4043da7c7149dc832df34c8a80cf92c21bd320d8fa1ea6495fa8e8cf4eb3a6ef38b2f735f9820ce33e36496d038 languageName: node linkType: hard @@ -8839,7 +9098,7 @@ fsevents@^2.1.2: languageName: node linkType: hard -"handlebars@npm:^4.4.0, handlebars@npm:^4.5.3, handlebars@npm:^4.7.2": +"handlebars@npm:^4.4.0, handlebars@npm:^4.7.2, handlebars@npm:^4.7.3": version: 4.7.3 resolution: "handlebars@npm:4.7.3" dependencies: @@ -15256,8 +15515,8 @@ resolve@1.1.7: "@babel/core": ^7.8.4 "@babel/register": ^7.8.3 "@babel/runtime": ^7.8.4 - "@polkadot/dev": ^0.50.9 - "@polkadot/ts": ^0.3.1 + "@polkadot/dev": ^0.50.11 + "@polkadot/ts": ^0.3.3 "@polkadot/typegen": "workspace:packages/typegen" copyfiles: ^2.2.0 languageName: unknown @@ -17042,15 +17301,15 @@ resolve@1.1.7: languageName: node linkType: hard -"typedoc-plugin-markdown@npm:^2.2.16": - version: 2.2.16 - resolution: "typedoc-plugin-markdown@npm:2.2.16" +"typedoc-plugin-markdown@npm:^2.2.17": + version: 2.2.17 + resolution: "typedoc-plugin-markdown@npm:2.2.17" dependencies: fs-extra: ^8.1.0 - handlebars: ^4.5.3 + handlebars: ^4.7.3 peerDependencies: - typedoc: ">=0.10.0" - checksum: 2/a61b0007307c27d32cd7b93942d54a6c80cb704445a985f35bac4b2f7a8e5bb559a76eb910f15e537b24257f0664f9748fe64b69bf2fe36535393b9017a99bc8 + typedoc: ">=0.16.0" + checksum: 2/cc4573434c3cc33770d3bdfca05e96a1abd3855a5971198a4e98cde83586cfc4342a1c01d91bd2df726172c346af20e1d92ea0ae30aabbf1160caa0119e686a2 languageName: node linkType: hard @@ -17063,9 +17322,9 @@ resolve@1.1.7: languageName: node linkType: hard -"typedoc@npm:^0.16.10": - version: 0.16.10 - resolution: "typedoc@npm:0.16.10" +"typedoc@npm:^0.16.11": + version: 0.16.11 + resolution: "typedoc@npm:0.16.11" dependencies: "@types/minimatch": 3.0.3 fs-extra: ^8.1.0 @@ -17080,7 +17339,7 @@ resolve@1.1.7: typescript: 3.7.x bin: typedoc: bin/typedoc - checksum: 2/90a8ebb71cc14fccf8118090d218cb291120e4d42bfc8c445186966e3ac0675a920853eb5c32e136021b49027bee3501d0a8c4291ebd049866dda10ffcb06473 + checksum: 2/3715d2546aca4ab7c3d6b6d2eb772bb4df0a7cd1026e2ce047260caf0792e611f09f8555ef6831839648fd83e9b678d1617f86084dc12f286bb86e09c0944b02 languageName: node linkType: hard