diff --git a/CHANGELOG.md b/CHANGELOG.md index b49566c09b..c0ce4439f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 3.7.3 Feb 2, 2021 + +Changes: + +- Added Polkadot upgrade block for runtime 27 (known checkpoint optimization) + + ## 3.7.2 Feb 2, 2021 Changes: diff --git a/package.json b/package.json index e8e6fe04cd..30b83c7f55 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@types/jest": "^26.0.20", "copyfiles": "^2.4.1" }, - "version": "3.7.3-1" + "version": "3.7.3" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 61eeda46d7..3746f35f65 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "sideEffects": false, @@ -13,10 +13,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.7.3-1", - "@polkadot/types": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/x-rxjs": "^5.5.1", + "@polkadot/api": "3.7.3", + "@polkadot/types": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/x-rxjs": "^5.5.2", "bn.js": "^4.11.9" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index f28cd998ef..2755cfb9a5 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "sideEffects": false, @@ -13,16 +13,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.7.3-1", - "@polkadot/rpc-core": "3.7.3-1", - "@polkadot/types": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/util-crypto": "^5.5.1", - "@polkadot/x-rxjs": "^5.5.1", + "@polkadot/api": "3.7.3", + "@polkadot/rpc-core": "3.7.3", + "@polkadot/types": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/util-crypto": "^5.5.2", + "@polkadot/x-rxjs": "^5.5.2", "bn.js": "^4.11.9" }, "devDependencies": { - "@polkadot/keyring": "^5.5.1", - "@polkadot/rpc-provider": "3.7.3-1" + "@polkadot/keyring": "^5.5.2", + "@polkadot/rpc-provider": "3.7.3" } } diff --git a/packages/api-derive/src/staking/stakerRewards.ts b/packages/api-derive/src/staking/stakerRewards.ts index 32193de112..56ad016cae 100644 --- a/packages/api-derive/src/staking/stakerRewards.ts +++ b/packages/api-derive/src/staking/stakerRewards.ts @@ -10,7 +10,7 @@ import type { DeriveStakingQuery } from './types'; import BN from 'bn.js'; -import { isFunction } from '@polkadot/util'; +import { BN_BILLION, BN_ZERO, isFunction } from '@polkadot/util'; import { combineLatest, of } from '@polkadot/x-rxjs'; import { map, switchMap } from '@polkadot/x-rxjs/operators'; @@ -18,29 +18,27 @@ import { memo } from '../util'; type ErasResult = [{ unwrapOr: (value: BN) => BN }, DeriveEraPoints[], DeriveEraPrefs[], DeriveEraRewards[]]; -const ZERO = new BN(0); const MIN_ONE = new BN(-1); -const COMM_DIV = new BN(1_000_000_000); function parseRewards (api: ApiInterfaceRx, stashId: AccountId, [, erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] { return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => { - const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: ZERO, validators: {} }; + const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} }; const { eraReward } = erasRewards.find((r) => r.era.eq(era)) || { eraReward: api.registry.createType('Balance') }; const { validators: allValPrefs } = erasPrefs.find((p) => p.era.eq(era)) || { validators: {} as DeriveEraValPrefs }; const validators: Record = {}; const stakerId = stashId.toString(); Object.entries(eraValidators).forEach(([validatorId, exposure]): void => { - const valPoints = allValPoints[validatorId] || ZERO; - const valComm = allValPrefs[validatorId]?.commission.unwrap() || ZERO; + const valPoints = allValPoints[validatorId] || BN_ZERO; + const valComm = allValPrefs[validatorId]?.commission.unwrap() || BN_ZERO; const expTotal = exposure.total.unwrap(); - let avail = ZERO; + let avail = BN_ZERO; let value: BN | undefined; if (!(expTotal.isZero() || valPoints.isZero() || eraPoints.isZero())) { avail = eraReward.mul(valPoints).div(eraPoints); - const valCut = valComm.mul(avail).div(COMM_DIV); + const valCut = valComm.mul(avail).div(BN_BILLION); let staked: BN; if (validatorId === stakerId) { @@ -50,10 +48,10 @@ function parseRewards (api: ApiInterfaceRx, stashId: AccountId, [, erasPoints, e staked = stakerExp ? stakerExp.value.unwrap() - : ZERO; + : BN_ZERO; } - value = avail.sub(valCut).imul(staked).div(expTotal).iadd(validatorId === stakerId ? valCut : ZERO); + value = avail.sub(valCut).imul(staked).div(expTotal).iadd(validatorId === stakerId ? valCut : BN_ZERO); } validators[validatorId] = { @@ -181,7 +179,7 @@ export function _stakerRewards (instanceId: string, api: ApiInterfaceRx): (accou return withActive ? of(rewards) - : filterRewards(api, eras, { migrateEra: erasResult[0].unwrapOr(ZERO), rewards, stakingLedger }); + : filterRewards(api, eras, { migrateEra: erasResult[0].unwrapOr(BN_ZERO), rewards, stakingLedger }); }) ) ); diff --git a/packages/api/package.json b/packages/api/package.json index adee5d5244..e8b4e73efa 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "sideEffects": [ @@ -16,16 +16,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api-derive": "3.7.3-1", - "@polkadot/keyring": "^5.5.1", - "@polkadot/metadata": "3.7.3-1", - "@polkadot/rpc-core": "3.7.3-1", - "@polkadot/rpc-provider": "3.7.3-1", - "@polkadot/types": "3.7.3-1", - "@polkadot/types-known": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/util-crypto": "^5.5.1", - "@polkadot/x-rxjs": "^5.5.1", + "@polkadot/api-derive": "3.7.3", + "@polkadot/keyring": "^5.5.2", + "@polkadot/metadata": "3.7.3", + "@polkadot/rpc-core": "3.7.3", + "@polkadot/rpc-provider": "3.7.3", + "@polkadot/types": "3.7.3", + "@polkadot/types-known": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/util-crypto": "^5.5.2", + "@polkadot/x-rxjs": "^5.5.2", "bn.js": "^4.11.9", "eventemitter3": "^4.0.7" } diff --git a/packages/metadata/package.json b/packages/metadata/package.json index a89540cc81..bd7bf4a9a5 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "sideEffects": [ @@ -16,13 +16,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.7.3-1", - "@polkadot/types-known": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/util-crypto": "^5.5.1", + "@polkadot/types": "3.7.3", + "@polkadot/types-known": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/util-crypto": "^5.5.2", "bn.js": "^4.11.9" }, "devDependencies": { - "@polkadot/keyring": "^5.5.1" + "@polkadot/keyring": "^5.5.2" } } diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index f986cdebca..0b5b01c2d4 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "3.7.3-1", + "version": "3.7.3", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "sideEffects": false, @@ -13,13 +13,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.7.3-1", - "@polkadot/rpc-provider": "3.7.3-1", - "@polkadot/types": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/x-rxjs": "^5.5.1" + "@polkadot/metadata": "3.7.3", + "@polkadot/rpc-provider": "3.7.3", + "@polkadot/types": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/x-rxjs": "^5.5.2" }, "devDependencies": { - "@polkadot/keyring": "^5.5.1" + "@polkadot/keyring": "^5.5.2" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 578ba559dd..d9b912011a 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Transport providers for the API", "main": "index.js", "sideEffects": false, @@ -13,18 +13,18 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/util-crypto": "^5.5.1", - "@polkadot/x-fetch": "^5.5.1", - "@polkadot/x-global": "^5.5.1", - "@polkadot/x-ws": "^5.5.1", + "@polkadot/types": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/util-crypto": "^5.5.2", + "@polkadot/x-fetch": "^5.5.2", + "@polkadot/x-global": "^5.5.2", + "@polkadot/x-ws": "^5.5.2", "bn.js": "^4.11.9", "eventemitter3": "^4.0.7" }, "devDependencies": { - "@polkadot/keyring": "^5.5.1", - "@polkadot/metadata": "3.7.3-1", + "@polkadot/keyring": "^5.5.2", + "@polkadot/metadata": "3.7.3", "mock-socket": "^9.0.3", "nock": "^13.0.7" } diff --git a/packages/typegen/package.json b/packages/typegen/package.json index dcd0f6aee9..9549910876 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Type generation scripts", "main": "index.js", "sideEffects": false, @@ -22,11 +22,11 @@ "@babel/core": "^7.12.10", "@babel/register": "^7.12.10", "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.7.3-1", - "@polkadot/metadata": "3.7.3-1", - "@polkadot/rpc-provider": "3.7.3-1", - "@polkadot/types": "3.7.3-1", - "@polkadot/util": "^5.5.1", + "@polkadot/api": "3.7.3", + "@polkadot/metadata": "3.7.3", + "@polkadot/rpc-provider": "3.7.3", + "@polkadot/types": "3.7.3", + "@polkadot/util": "^5.5.2", "handlebars": "^4.7.6", "websocket": "^1.0.33", "yargs": "^16.2.0" diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 0568553212..1fe7257d3d 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "3.7.3-1", + "version": "3.7.3", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "sideEffects": false, @@ -13,9 +13,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/networks": "^5.5.1", - "@polkadot/types": "3.7.3-1", - "@polkadot/util": "^5.5.1", + "@polkadot/networks": "^5.5.2", + "@polkadot/types": "3.7.3", + "@polkadot/util": "^5.5.2", "bn.js": "^4.11.9" }, "devDependencies": { diff --git a/packages/types-known/src/upgrades/index.spec.ts b/packages/types-known/src/upgrades/index.spec.ts index 2ff4d57e89..1338ab33f2 100644 --- a/packages/types-known/src/upgrades/index.spec.ts +++ b/packages/types-known/src/upgrades/index.spec.ts @@ -5,44 +5,58 @@ import { assert, u8aEq } from '@polkadot/util'; import all from '.'; +interface TestDef { + genesisHash: string; + network: string; + versions: [number, [number, number]][]; +} + +const TESTS: TestDef[] = [ + { + genesisHash: '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe', + network: 'kusama', + versions: [ + [0, [0, 1020]], + [17, [901442, 1045]] + ] + }, + { + genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3', + network: 'polkadot', + versions: [ + [0, [0, 0]], + [19, [2436698, 26]] + ] + }, + { + genesisHash: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e', + network: 'westend', + versions: [ + [0, [214356, 4]], + [23, [4207800, 48]] + ] + } +]; + describe('upgrades', (): void => { - it('is valid', (): void => { - expect(all).toBeDefined(); - }); + TESTS.forEach(({ genesisHash, network, versions }): void => { + describe(network, (): void => { + const chain = all.find((n) => n.network === network); - it('has a valid entries for Kusama', (): void => { - const kusama = all.find(({ network }) => network === 'kusama'); + assert(chain, `Unable to find the entry for ${network}`); - assert(kusama, 'Unable to find the entry for Kusama'); + it('has a valid genesisHash', (): void => { + expect(u8aEq(chain.genesisHash, genesisHash)).toBe(true); + }); - const version = kusama.versions[17]; + versions.forEach(([index, [blockNumber, specVersion]]): void => { + it(`has a valid entry at index ${index}`, (): void => { + const version = chain.versions[index]; - expect(u8aEq(kusama.genesisHash, '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe')).toBe(true); - expect(version.blockNumber.eqn(901442)).toBe(true); - expect(version.specVersion.eqn(1045)).toBe(true); - }); - - it('has a valid entries for Polkadot', (): void => { - const polkadot = all.find(({ network }) => network === 'polkadot'); - - assert(polkadot, 'Unable to find the entry for Polkadot'); - - const version = polkadot.versions[19]; - - expect(u8aEq(polkadot.genesisHash, '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3')).toBe(true); - expect(version.blockNumber.eqn(2436698)).toBe(true); - expect(version.specVersion.eqn(26)).toBe(true); - }); - - it('has a valid entries for Westend', (): void => { - const westend = all.find(({ network }) => network === 'westend'); - - assert(westend, 'Unable to find the entry for Polkadot'); - - const version = westend.versions[23]; - - expect(u8aEq(westend.genesisHash, '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e')).toBe(true); - expect(version.blockNumber.eqn(4207800)).toBe(true); - expect(version.specVersion.eqn(48)).toBe(true); + expect(version.blockNumber.eqn(blockNumber)).toBe(true); + expect(version.specVersion.eqn(specVersion)).toBe(true); + }); + }); + }); }); }); diff --git a/packages/types-known/src/upgrades/index.ts b/packages/types-known/src/upgrades/index.ts index 727f3e80e8..3a1e05865c 100644 --- a/packages/types-known/src/upgrades/index.ts +++ b/packages/types-known/src/upgrades/index.ts @@ -21,7 +21,7 @@ const NET_EXTRA: Record = { }; /** @internal */ -function checkOrder (network: string, versions: [number, number][]): [number, number][] { +function checkOrder (network: string, versions: ChainUpgradesRaw): [number, number][] { const ooo = versions.filter((curr, index): boolean => { const prev = versions[index - 1]; @@ -36,7 +36,7 @@ function checkOrder (network: string, versions: [number, number][]): [number, nu } /** @internal */ -function rawToFinal (network: string, versions: ChainUpgradesRaw): ChainUpgrades { +function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades { const chain = networks.find((n) => n.network === network) || NET_EXTRA[network]; assert(chain, `Unable to find info for chain ${network}`); @@ -52,10 +52,6 @@ function rawToFinal (network: string, versions: ChainUpgradesRaw): ChainUpgrades } // Type overrides for specific spec types & versions as given in runtimeVersion -const upgrades: ChainUpgrades[] = [ - rawToFinal('kusama', kusama), - rawToFinal('polkadot', polkadot), - rawToFinal('westend', westend) -]; +const upgrades = Object.entries({ kusama, polkadot, westend }).map(mapRaw); export default upgrades; diff --git a/packages/types-known/src/upgrades/polkadot.ts b/packages/types-known/src/upgrades/polkadot.ts index 914045452c..576f3211af 100644 --- a/packages/types-known/src/upgrades/polkadot.ts +++ b/packages/types-known/src/upgrades/polkadot.ts @@ -7,7 +7,8 @@ const upgrades: ChainUpgradesRaw = [ [0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7], [244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12], [528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17], - [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26] + [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26], + [3613564, 27] ]; export default upgrades; diff --git a/packages/types/package.json b/packages/types/package.json index b814a849b1..d213c653b2 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "3.7.3-1", + "version": "3.7.3", "description": "Implementation of the Parity codec", "main": "index.js", "sideEffects": [ @@ -16,14 +16,14 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.7.3-1", - "@polkadot/util": "^5.5.1", - "@polkadot/util-crypto": "^5.5.1", - "@polkadot/x-rxjs": "^5.5.1", + "@polkadot/metadata": "3.7.3", + "@polkadot/util": "^5.5.2", + "@polkadot/util-crypto": "^5.5.2", + "@polkadot/x-rxjs": "^5.5.2", "@types/bn.js": "^4.11.6", "bn.js": "^4.11.9" }, "devDependencies": { - "@polkadot/keyring": "^5.5.1" + "@polkadot/keyring": "^5.5.2" } } diff --git a/packages/types/src/codec/AbstractInt.ts b/packages/types/src/codec/AbstractInt.ts index 7535bdad68..f77c7ffa6b 100644 --- a/packages/types/src/codec/AbstractInt.ts +++ b/packages/types/src/codec/AbstractInt.ts @@ -7,7 +7,7 @@ import type { UIntBitLength } from './types'; import BN from 'bn.js'; -import { assert, BN_ZERO, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isHex, isString, isU8a, u8aToBn } from '@polkadot/util'; +import { assert, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_ZERO, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isHex, isString, isU8a, u8aToBn } from '@polkadot/util'; export const DEFAULT_UINT_BITS = 64; @@ -18,9 +18,9 @@ const MUL_P = new BN(1_00_00); const FORMATTERS: [string, BN][] = [ ['Perquintill', new BN(1_000_000_000_000)], - ['Perbill', new BN(1_000_000_000)], - ['Permill', new BN(1_000_000)], - ['Percent', new BN(100)] + ['Perbill', BN_BILLION], + ['Permill', BN_MILLION], + ['Percent', BN_HUNDRED] ]; function toPercentage (value: BN, divisor: BN): string { diff --git a/yarn.lock b/yarn.lock index 964157b0f8..e152d0f3be 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1622,46 +1622,46 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.7.3-1 - "@polkadot/types": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/x-rxjs": ^5.5.1 + "@polkadot/api": 3.7.3 + "@polkadot/types": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/x-rxjs": ^5.5.2 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api-derive@3.7.3-1, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@3.7.3, @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": 3.7.3-1 - "@polkadot/keyring": ^5.5.1 - "@polkadot/rpc-core": 3.7.3-1 - "@polkadot/rpc-provider": 3.7.3-1 - "@polkadot/types": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/util-crypto": ^5.5.1 - "@polkadot/x-rxjs": ^5.5.1 + "@polkadot/api": 3.7.3 + "@polkadot/keyring": ^5.5.2 + "@polkadot/rpc-core": 3.7.3 + "@polkadot/rpc-provider": 3.7.3 + "@polkadot/types": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/util-crypto": ^5.5.2 + "@polkadot/x-rxjs": ^5.5.2 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api@3.7.3-1, @polkadot/api@workspace:packages/api": +"@polkadot/api@3.7.3, @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": 3.7.3-1 - "@polkadot/keyring": ^5.5.1 - "@polkadot/metadata": 3.7.3-1 - "@polkadot/rpc-core": 3.7.3-1 - "@polkadot/rpc-provider": 3.7.3-1 - "@polkadot/types": 3.7.3-1 - "@polkadot/types-known": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/util-crypto": ^5.5.1 - "@polkadot/x-rxjs": ^5.5.1 + "@polkadot/api-derive": 3.7.3 + "@polkadot/keyring": ^5.5.2 + "@polkadot/metadata": 3.7.3 + "@polkadot/rpc-core": 3.7.3 + "@polkadot/rpc-provider": 3.7.3 + "@polkadot/types": 3.7.3 + "@polkadot/types-known": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/util-crypto": ^5.5.2 + "@polkadot/x-rxjs": ^5.5.2 bn.js: ^4.11.9 eventemitter3: ^4.0.7 languageName: unknown @@ -1758,70 +1758,70 @@ __metadata: languageName: node linkType: hard -"@polkadot/keyring@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/keyring@npm:5.5.1" +"@polkadot/keyring@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/keyring@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/util": 5.5.1 - "@polkadot/util-crypto": 5.5.1 + "@polkadot/util": 5.5.2 + "@polkadot/util-crypto": 5.5.2 peerDependencies: - "@polkadot/util": 5.5.1 - "@polkadot/util-crypto": 5.5.1 - checksum: 198e04b5121c154230a52bed57d358839fe2a5c59f54dcb49d7cc6b6c668c391d13221be3aabd36401c729e441c37d7df13aaaef9b590b01d0c80939ef86d64e + "@polkadot/util": 5.5.2 + "@polkadot/util-crypto": 5.5.2 + checksum: 7b21d5e92c34edf4bd619168af7381e43775c82996d9be6bd22a86b136da816ba2352dfb79b563b6f939ff823c2955c8fa00c4d6828c382437d22a07a72bfd74 languageName: node linkType: hard -"@polkadot/metadata@3.7.3-1, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@3.7.3, @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": ^5.5.1 - "@polkadot/types": 3.7.3-1 - "@polkadot/types-known": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/util-crypto": ^5.5.1 + "@polkadot/keyring": ^5.5.2 + "@polkadot/types": 3.7.3 + "@polkadot/types-known": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/util-crypto": ^5.5.2 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/networks@npm:5.5.1, @polkadot/networks@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/networks@npm:5.5.1" +"@polkadot/networks@npm:5.5.2, @polkadot/networks@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/networks@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - checksum: 4ccd3964adf039a68282168c6cb0d5611008867eece55c7c0308e5d448a0b42ee8c40cdafa0e54ab0017616d70a45188fd8cc64c6fc55ef47ceed7c90739cdd2 + checksum: 8203fb953a8fca6e0a9bf7863c8d8262c714c2aed32f1dfedc0af08ee3c4224a51de56be832b6def94517d7cddcb33ca0a318bb8940500fd73cfc009404a4a6f languageName: node linkType: hard -"@polkadot/rpc-core@3.7.3-1, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@3.7.3, @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": ^5.5.1 - "@polkadot/metadata": 3.7.3-1 - "@polkadot/rpc-provider": 3.7.3-1 - "@polkadot/types": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/x-rxjs": ^5.5.1 + "@polkadot/keyring": ^5.5.2 + "@polkadot/metadata": 3.7.3 + "@polkadot/rpc-provider": 3.7.3 + "@polkadot/types": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/x-rxjs": ^5.5.2 languageName: unknown linkType: soft -"@polkadot/rpc-provider@3.7.3-1, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@3.7.3, @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": ^5.5.1 - "@polkadot/metadata": 3.7.3-1 - "@polkadot/types": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/util-crypto": ^5.5.1 - "@polkadot/x-fetch": ^5.5.1 - "@polkadot/x-global": ^5.5.1 - "@polkadot/x-ws": ^5.5.1 + "@polkadot/keyring": ^5.5.2 + "@polkadot/metadata": 3.7.3 + "@polkadot/types": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/util-crypto": ^5.5.2 + "@polkadot/x-fetch": ^5.5.2 + "@polkadot/x-global": ^5.5.2 + "@polkadot/x-ws": ^5.5.2 bn.js: ^4.11.9 eventemitter3: ^4.0.7 mock-socket: ^9.0.3 @@ -1845,11 +1845,11 @@ __metadata: "@babel/core": ^7.12.10 "@babel/register": ^7.12.10 "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.7.3-1 - "@polkadot/metadata": 3.7.3-1 - "@polkadot/rpc-provider": 3.7.3-1 - "@polkadot/types": 3.7.3-1 - "@polkadot/util": ^5.5.1 + "@polkadot/api": 3.7.3 + "@polkadot/metadata": 3.7.3 + "@polkadot/rpc-provider": 3.7.3 + "@polkadot/types": 3.7.3 + "@polkadot/util": ^5.5.2 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.13 handlebars: ^4.7.6 @@ -1864,43 +1864,43 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@3.7.3-1, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@3.7.3, @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/networks": ^5.5.1 - "@polkadot/types": 3.7.3-1 - "@polkadot/util": ^5.5.1 + "@polkadot/networks": ^5.5.2 + "@polkadot/types": 3.7.3 + "@polkadot/util": ^5.5.2 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/types@3.7.3-1, @polkadot/types@workspace:packages/types": +"@polkadot/types@3.7.3, @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": ^5.5.1 - "@polkadot/metadata": 3.7.3-1 - "@polkadot/util": ^5.5.1 - "@polkadot/util-crypto": ^5.5.1 - "@polkadot/x-rxjs": ^5.5.1 + "@polkadot/keyring": ^5.5.2 + "@polkadot/metadata": 3.7.3 + "@polkadot/util": ^5.5.2 + "@polkadot/util-crypto": ^5.5.2 + "@polkadot/x-rxjs": ^5.5.2 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/util-crypto@npm:5.5.1, @polkadot/util-crypto@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/util-crypto@npm:5.5.1" +"@polkadot/util-crypto@npm:5.5.2, @polkadot/util-crypto@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/util-crypto@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/networks": 5.5.1 - "@polkadot/util": 5.5.1 + "@polkadot/networks": 5.5.2 + "@polkadot/util": 5.5.2 "@polkadot/wasm-crypto": ^3.2.2 - "@polkadot/x-randomvalues": 5.5.1 + "@polkadot/x-randomvalues": 5.5.2 base-x: ^3.0.8 blakejs: ^1.1.0 bn.js: ^4.11.9 @@ -1912,23 +1912,23 @@ __metadata: tweetnacl: ^1.0.3 xxhashjs: ^0.2.2 peerDependencies: - "@polkadot/util": 5.5.1 - checksum: 6f5a210406c090de3e7201738114ded80f48a37d58fcc6e18ac97f375a9f622ec806f182dbac8dd268a04676a1b4ba9b1d9ee14c0a54d54ec3aeb7c37be6cd10 + "@polkadot/util": 5.5.2 + checksum: ba1e67ecfdacc3818d0146cdc83ae720506d4803cd95c45b324479896050ddd264f98f3ceb573e0754d19aac6e9272bbbe3945eff4d2fd1088e605a36e5fdb6f languageName: node linkType: hard -"@polkadot/util@npm:5.5.1, @polkadot/util@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/util@npm:5.5.1" +"@polkadot/util@npm:5.5.2, @polkadot/util@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/util@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/x-textdecoder": 5.5.1 - "@polkadot/x-textencoder": 5.5.1 + "@polkadot/x-textdecoder": 5.5.2 + "@polkadot/x-textencoder": 5.5.2 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 camelcase: ^5.3.1 ip-regex: ^4.3.0 - checksum: 885b4ecec40d5c91cee525dc692b34d2e3c9eaf60c2d4bc3154dd54fde34d6038f5716355cadc79432c189f7c28baedc7a614e38d49fe4ce7550a56b4701258d + checksum: ed44349e0484962f58b34a411d7217684bcacad461a306f0164e75deb8c239dfd2f36f8c1490ccaa5e3d3fe11f81fb69be717f170155e27c1d68f259c4e6ad64 languageName: node linkType: hard @@ -1964,78 +1964,78 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-fetch@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-fetch@npm:5.5.1" +"@polkadot/x-fetch@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-fetch@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/x-global": 5.5.1 + "@polkadot/x-global": 5.5.2 "@types/node-fetch": ^2.5.8 node-fetch: ^2.6.1 - checksum: 569faa75e8c984bb6b6e72e88d74432c566c9d9334ee81dbe830341da877b3631ec0ee65274506e97971335e475981c4effa8eabde190b7d046c81d40739740c + checksum: db2e12c97d5cd1c64e8dec868ddd75f121c7a412943d1b48b0759e262763120bc1623e2d8770542b94a3a473323e4f1e1a85ec8996dac0e75749f5cdc6e46d4e languageName: node linkType: hard -"@polkadot/x-global@npm:5.5.1, @polkadot/x-global@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-global@npm:5.5.1" +"@polkadot/x-global@npm:5.5.2, @polkadot/x-global@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-global@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 "@types/node-fetch": ^2.5.8 node-fetch: ^2.6.1 - checksum: 77a97f1b7cf28f27341677aa4f76e1927ca3a0efff0ed3d7b6725e4f5df4cfff9ea2b2afb05deb5f8fb777e2502a1f606837c80139782e9259cc48dd2120a2df + checksum: 7b89e9d1e47d8bd314754e5dc84a2010420edee4a5fad495392f87d72a0f37118a7cc7ba441fde0392bf3c58241def9b9103766ef23fb50065f4d9bd9f1a4382 languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-randomvalues@npm:5.5.1" +"@polkadot/x-randomvalues@npm:5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-randomvalues@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/x-global": 5.5.1 - checksum: e87f74abdfa75c17dce0a40dba5ac74b2da015eb6663e37dca028af139096a5a29a139f89280e9e658b95ffc338a002123ec729a5ab32e6b72a47924b0c70a52 + "@polkadot/x-global": 5.5.2 + checksum: efdf4d21e90bc14de13e243fb268a568bf799dced767dba25dfe54ad10d6e040c7970f43722b2fd8fe3caefba07ac4ccd0a2d86bc8ee586ad06e7fb208ac5fd3 languageName: node linkType: hard -"@polkadot/x-rxjs@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-rxjs@npm:5.5.1" +"@polkadot/x-rxjs@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-rxjs@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 rxjs: ^6.6.3 - checksum: 558db92c80ad31e9ec01029716b9666f3e44d358f46f5825ec88e59c6038020229ac9eafa834f0078261f43de1703f7693b472fb23cd6e544775bbd7de422269 + checksum: a523a49c1472474ebe80f0b2724cff4b864099b624e13e399a772c7cfa7baf1173d5fcaafd539ab6b88dc24d9826fafb8df4ba8401caade582fa2943b6e31b07 languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-textdecoder@npm:5.5.1" +"@polkadot/x-textdecoder@npm:5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-textdecoder@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/x-global": 5.5.1 - checksum: a3c07fd05d09ddb84de4d284c479e4d6647cad0269e1d79ad030cac483f3b59de092c5aa895c0b66c99a89a831826264ed01a3849c6dca01a89d0b12055bfdb9 + "@polkadot/x-global": 5.5.2 + checksum: 167a99fb2d21da65292d3111ca46e41f94b3776caaeff86aae7b3633b8861df8011973a21703876e50da46a58024aaff42b66125f51b4503423a3f823db7846b languageName: node linkType: hard -"@polkadot/x-textencoder@npm:5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-textencoder@npm:5.5.1" +"@polkadot/x-textencoder@npm:5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-textencoder@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/x-global": 5.5.1 - checksum: f9ef7b934ec525c9e5b2f48e4803eb9c0e5e0a068027e4b6f1354426e2128b8b8dc3a2b24af73c0e877782d46759f73476ebf77dc8e503812c44da3234929461 + "@polkadot/x-global": 5.5.2 + checksum: a2e5a653639131c9e915260ee452ee10435a464242f6304ce9a78f1427d73c70955f6c7964a2c06a6e75123a624bc8203c5ccc1297a97f7306c85456d07d8c86 languageName: node linkType: hard -"@polkadot/x-ws@npm:^5.5.1": - version: 5.5.1 - resolution: "@polkadot/x-ws@npm:5.5.1" +"@polkadot/x-ws@npm:^5.5.2": + version: 5.5.2 + resolution: "@polkadot/x-ws@npm:5.5.2" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/x-global": 5.5.1 + "@polkadot/x-global": 5.5.2 "@types/websocket": ^1.0.1 websocket: ^1.0.33 - checksum: 3564e958c07d0126122056c03c77f10e6ec7ea51f3856da29ad78dead180afec8ffdf91d2a03a8ff2c528d35ccd1b042d777f694173d46dc448268819e50e630 + checksum: b17ff626a73b73b87207fa24c0245fa5dfed32375b37b46413388b15cdaf978dffaea2e785eab29bd6ea4557c1695a54f83a538d922d3aa9074fa1721896ded7 languageName: node linkType: hard