From c67ae2fc400130ec2908e57b1ddb0b4935cb3659 Mon Sep 17 00:00:00 2001 From: Zeke Mostov <32168567+emostov@users.noreply.github.com> Date: Sun, 16 May 2021 12:40:14 -0700 Subject: [PATCH] fix(types): Bump polkadot-js/api to decode CompactSolution for 24 noms (#553) * fix(types): Bump polkadot-js/api to decode CompactSolution for 24 nominees * Lint --- package.json | 4 +- .../metadata-consts/dockConsts.ts | 19 +- .../metadata-consts/kusamaConsts.ts | 16 +- .../metadata-consts/polkadotConsts.ts | 21 +- .../metadata-consts/westendConsts.ts | 17 +- src/controllers/AbstractController.ts | 22 +- src/controllers/AbstractControllers.spec.ts | 8 +- src/logging/consoleOverride.ts | 2 +- src/logging/transformers/nodeUtilFormat.ts | 2 +- src/logging/transformers/stripTimestamp.ts | 3 +- src/middleware/error/errorMiddleware.spec.ts | 5 +- .../error/httpErrorMiddleware.spec.ts | 10 +- src/middleware/error/testTools.ts | 146 ++- .../error/txErrorMiddleware.spec.ts | 5 +- .../validateAddressMiddleware.spec.ts | 44 +- src/sanitize/sanitizeNumbers.spec.ts | 7 +- .../AccountsBalanceInfoService.spec.ts | 42 +- .../accounts/AccountsStakingInfoService.ts | 15 +- src/services/blocks/BlocksService.spec.ts | 48 +- src/services/blocks/BlocksService.ts | 23 +- src/services/blocks/trace/Trace.ts | 17 +- src/services/node/NodeVersionService.ts | 15 +- .../pallets/PalletsAssetsService.spec.ts | 3 +- .../PalletsStakingProgressService.spec.ts | 4 +- .../pallets/PalletsStakingProgressService.ts | 35 +- src/services/pallets/PalletsStorageService.ts | 16 +- src/services/paras/ParasService.spec.ts | 5 +- src/services/paras/ParasService.ts | 21 +- src/services/test-helpers/mock/mockApi.ts | 4 +- .../transaction/extractCauseAndStack.ts | 7 +- yarn.lock | 861 ++++++------------ 31 files changed, 525 insertions(+), 922 deletions(-) diff --git a/package.json b/package.json index 07123b964..1cba05f4d 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,8 @@ }, "dependencies": { "@polkadot/api": "beta", - "@polkadot/apps-config": "beta", - "@polkadot/util-crypto": "beta", + "@polkadot/apps-config": "^0.90.1", + "@polkadot/util-crypto": "^6.4.1", "@substrate/calc": "^0.2.0", "confmgr": "^1.0.6", "express": "^4.17.1", diff --git a/src/chains-config/metadata-consts/dockConsts.ts b/src/chains-config/metadata-consts/dockConsts.ts index d599bf9fd..a4f823323 100644 --- a/src/chains-config/metadata-consts/dockConsts.ts +++ b/src/chains-config/metadata-consts/dockConsts.ts @@ -3,24 +3,7 @@ import { MetadataConsts } from '../../types/chains-config'; export const dockMainnetDefinitions: MetadataConsts[] = [ { runtimeVersions: [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ], extrinsicBaseWeight: BigInt(125000000), }, diff --git a/src/chains-config/metadata-consts/kusamaConsts.ts b/src/chains-config/metadata-consts/kusamaConsts.ts index 1a43d7545..9e8cb315c 100644 --- a/src/chains-config/metadata-consts/kusamaConsts.ts +++ b/src/chains-config/metadata-consts/kusamaConsts.ts @@ -4,20 +4,8 @@ import { extrinsicBaseWeight, perClass } from './substrateConsts'; export const kusamaDefinitions: MetadataConsts[] = [ { runtimeVersions: [ - 1062, - 2005, - 2007, - 2008, - 2011, - 2012, - 2013, - 2015, - 2019, - 2022, - 2023, - 2024, - 2025, - 2026, + 1062, 2005, 2007, 2008, 2011, 2012, 2013, 2015, 2019, 2022, 2023, 2024, + 2025, 2026, ], extrinsicBaseWeight, }, diff --git a/src/chains-config/metadata-consts/polkadotConsts.ts b/src/chains-config/metadata-consts/polkadotConsts.ts index 56fe5be32..acc4da948 100644 --- a/src/chains-config/metadata-consts/polkadotConsts.ts +++ b/src/chains-config/metadata-consts/polkadotConsts.ts @@ -4,26 +4,7 @@ import { extrinsicBaseWeight, perClass } from './substrateConsts'; export const polkadotDefinitions: MetadataConsts[] = [ { runtimeVersions: [ - 0, - 1, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 23, - 24, - 25, - 26, + 0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 23, 24, 25, 26, ], extrinsicBaseWeight, }, diff --git a/src/chains-config/metadata-consts/westendConsts.ts b/src/chains-config/metadata-consts/westendConsts.ts index 78b4aec2a..e89656c80 100644 --- a/src/chains-config/metadata-consts/westendConsts.ts +++ b/src/chains-config/metadata-consts/westendConsts.ts @@ -4,22 +4,7 @@ import { extrinsicBaseWeight, perClass } from './substrateConsts'; export const westendDefinitions: MetadataConsts[] = [ { runtimeVersions: [ - 6, - 7, - 8, - 20, - 28, - 29, - 30, - 31, - 32, - 33, - 24, - 35, - 41, - 43, - 44, - 45, + 6, 7, 8, 20, 28, 29, 30, 31, 32, 33, 24, 35, 41, 43, 44, 45, ], extrinsicBaseWeight, }, diff --git a/src/controllers/AbstractController.ts b/src/controllers/AbstractController.ts index 31b0e5685..c1708e0b6 100644 --- a/src/controllers/AbstractController.ts +++ b/src/controllers/AbstractController.ts @@ -76,18 +76,16 @@ export default abstract class AbstractController { * * @param cb ExpressHandler */ - protected static catchWrap = (cb: RequestHandler): RequestHandler => async ( - req, - res, - next - ): Promise => { - try { - // eslint-disable-next-line @typescript-eslint/await-thenable - await cb(req, res, next); - } catch (err) { - next(err); - } - }; + protected static catchWrap = + (cb: RequestHandler): RequestHandler => + async (req, res, next): Promise => { + try { + // eslint-disable-next-line @typescript-eslint/await-thenable + await cb(req, res, next); + } catch (err) { + next(err); + } + }; /** * Create or retrieve the corresponding BlockHash for the given block identifier. diff --git a/src/controllers/AbstractControllers.spec.ts b/src/controllers/AbstractControllers.spec.ts index 5abe51670..f3709022f 100644 --- a/src/controllers/AbstractControllers.spec.ts +++ b/src/controllers/AbstractControllers.spec.ts @@ -48,18 +48,18 @@ const MockController = class MockController extends AbstractController { describe('catchWrap', () => { diff --git a/src/logging/consoleOverride.ts b/src/logging/consoleOverride.ts index 6b2c26940..4456b7fbc 100644 --- a/src/logging/consoleOverride.ts +++ b/src/logging/consoleOverride.ts @@ -29,7 +29,7 @@ export function consoleOverride(logger: Logger): void { // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access logger[winstonLevel].call( logger, - (format.apply(format, args as [string]) as unknown) as object + format.apply(format, args as [string]) as unknown as object ); }; }); diff --git a/src/logging/transformers/nodeUtilFormat.ts b/src/logging/transformers/nodeUtilFormat.ts index f7b972f40..2b418dd4f 100644 --- a/src/logging/transformers/nodeUtilFormat.ts +++ b/src/logging/transformers/nodeUtilFormat.ts @@ -10,7 +10,7 @@ import * as winston from 'winston'; export const nodeUtilFormat = winston.format( (info: TransformableInfo, _opts: unknown) => { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const args = info[(SPLAT as unknown) as string]; + const args = info[SPLAT as unknown as string]; if (args) { info.message = format(info.message, ...args); } diff --git a/src/logging/transformers/stripTimestamp.ts b/src/logging/transformers/stripTimestamp.ts index 973edcf1c..406b0fb2a 100644 --- a/src/logging/transformers/stripTimestamp.ts +++ b/src/logging/transformers/stripTimestamp.ts @@ -4,7 +4,8 @@ import { format } from 'winston'; /** * Regex that matches timestamps with the format of `YYYY-MM-DD HH:MM` */ -const timestampRegex = /[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]/; +const timestampRegex = + /[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]/; /** * Slice out the timestamp from a message so it is not redundant with the winston diff --git a/src/middleware/error/errorMiddleware.spec.ts b/src/middleware/error/errorMiddleware.spec.ts index ba954ca21..b5ac77c78 100644 --- a/src/middleware/error/errorMiddleware.spec.ts +++ b/src/middleware/error/errorMiddleware.spec.ts @@ -9,9 +9,8 @@ import { const errorMiddlewareCallsNextWithErr = callsNextWithErr(errorMiddleware); -const errorMiddlewareCatchesErrWithStatus = catchesErrWithStatus( - errorMiddleware -); +const errorMiddlewareCatchesErrWithStatus = + catchesErrWithStatus(errorMiddleware); describe('errorMiddleware', () => { errorMiddlewareCallsNextWithErr('ILegacyError', { diff --git a/src/middleware/error/httpErrorMiddleware.spec.ts b/src/middleware/error/httpErrorMiddleware.spec.ts index 337dee025..6fa8d8126 100644 --- a/src/middleware/error/httpErrorMiddleware.spec.ts +++ b/src/middleware/error/httpErrorMiddleware.spec.ts @@ -8,13 +8,11 @@ import { catchesErrWithStatus, } from './testTools'; -const httpErrorMiddlewareCallsNextWithErr = callsNextWithErr( - httpErrorMiddleware -); +const httpErrorMiddlewareCallsNextWithErr = + callsNextWithErr(httpErrorMiddleware); -const httpErrorMiddlewareCatchesErrWithStatus = catchesErrWithStatus( - httpErrorMiddleware -); +const httpErrorMiddlewareCatchesErrWithStatus = + catchesErrWithStatus(httpErrorMiddleware); describe('httpErrorMiddleware', () => { httpErrorMiddlewareCallsNextWithErr('Error', new Error('This is an error')); diff --git a/src/middleware/error/testTools.ts b/src/middleware/error/testTools.ts index 0c6e3635b..780651a57 100644 --- a/src/middleware/error/testTools.ts +++ b/src/middleware/error/testTools.ts @@ -12,30 +12,29 @@ const mockReq = {} as Request; * @param name name of the error type * @param err error */ -export const callsNextWithErr = (ware: ErrorRequestHandler) => ( - name: string, - err: unknown -): void => { - it(`calls next on error of type ${name}`, () => { - const next = jest.fn(); - const send = jest.fn(); - const status = jest.fn((_code: number) => { - return { - send, - }; - }); +export const callsNextWithErr = + (ware: ErrorRequestHandler) => + (name: string, err: unknown): void => { + it(`calls next on error of type ${name}`, () => { + const next = jest.fn(); + const send = jest.fn(); + const status = jest.fn((_code: number) => { + return { + send, + }; + }); - ware( - err, - mockReq, - ({ headersSent: false, status } as unknown) as Response, - next - ); - expect(status).not.toBeCalled(); - expect(send).not.toBeCalled(); - expect(next).toBeCalledTimes(1); - }); -}; + ware( + err, + mockReq, + { headersSent: false, status } as unknown as Response, + next + ); + expect(status).not.toBeCalled(); + expect(send).not.toBeCalled(); + expect(next).toBeCalledTimes(1); + }); + }; /** * Assert that a middleware function (`ware`) will catch `err` and set status to @@ -46,32 +45,30 @@ export const callsNextWithErr = (ware: ErrorRequestHandler) => ( * @param err error * @param code expected code to be sent as status */ -export const catchesErrWithStatus = (ware: ErrorRequestHandler) => ( - name: string, - err: unknown, - code: number -): void => { - it(`catches ${name} and sends status code ${code}`, () => { - const next = jest.fn(); - const send = jest.fn(); - const status = jest.fn((_code: number) => { - return { - send, - }; - }); +export const catchesErrWithStatus = + (ware: ErrorRequestHandler) => + (name: string, err: unknown, code: number): void => { + it(`catches ${name} and sends status code ${code}`, () => { + const next = jest.fn(); + const send = jest.fn(); + const status = jest.fn((_code: number) => { + return { + send, + }; + }); - ware( - err, - mockReq, - ({ headersSent: false, status } as unknown) as Response, - next - ); - expect(send).toBeCalledTimes(1); - expect(status).toBeCalledWith<[number]>(code); - expect(status).toBeCalledTimes(1); - expect(next).not.toBeCalled(); - }); -}; + ware( + err, + mockReq, + { headersSent: false, status } as unknown as Response, + next + ); + expect(send).toBeCalledTimes(1); + expect(status).toBeCalledWith<[number]>(code); + expect(status).toBeCalledTimes(1); + expect(next).not.toBeCalled(); + }); + }; /** * Assert that a middleware function (`ware`) will catch `err`, set status to @@ -83,34 +80,31 @@ export const catchesErrWithStatus = (ware: ErrorRequestHandler) => ( * @param code expected code to be sent as status * @param response expected response body */ -export const catchesErrWithResponse = (ware: ErrorRequestHandler) => ( - name: string, - err: unknown, - code: number, - response: unknown -): void => { - it(`catches ${name} and sends status code ${code}`, () => { - const next = jest.fn(); - const send = jest.fn(); - const status = jest.fn((_code: number) => { - return { - send, - }; - }); +export const catchesErrWithResponse = + (ware: ErrorRequestHandler) => + (name: string, err: unknown, code: number, response: unknown): void => { + it(`catches ${name} and sends status code ${code}`, () => { + const next = jest.fn(); + const send = jest.fn(); + const status = jest.fn((_code: number) => { + return { + send, + }; + }); - ware( - err, - mockReq, - ({ headersSent: false, status } as unknown) as Response, - next - ); - expect(send).toBeCalledTimes(1); - expect(send).toBeCalledWith(response); - expect(status).toBeCalledWith<[number]>(code); - expect(status).toBeCalledTimes(1); - expect(next).not.toBeCalled(); - }); -}; + ware( + err, + mockReq, + { headersSent: false, status } as unknown as Response, + next + ); + expect(send).toBeCalledTimes(1); + expect(send).toBeCalledWith(response); + expect(status).toBeCalledWith<[number]>(code); + expect(status).toBeCalledTimes(1); + expect(next).not.toBeCalled(); + }); + }; export function callsNextWithSentHeaders( ware: ErrorRequestHandler, @@ -128,7 +122,7 @@ export function callsNextWithSentHeaders( ware( err, mockReq, - ({ headersSent: true, status } as unknown) as Response, + { headersSent: true, status } as unknown as Response, next ); expect(send).not.toBeCalled(); diff --git a/src/middleware/error/txErrorMiddleware.spec.ts b/src/middleware/error/txErrorMiddleware.spec.ts index 481c682a1..075335058 100644 --- a/src/middleware/error/txErrorMiddleware.spec.ts +++ b/src/middleware/error/txErrorMiddleware.spec.ts @@ -9,9 +9,8 @@ import { txErrorMiddleware } from './txErrorMiddleware'; const txErrorMiddlewareCallsNextWithErr = callsNextWithErr(txErrorMiddleware); -const txErrorMiddlewareCatchesErrWithResponse = catchesErrWithResponse( - txErrorMiddleware -); +const txErrorMiddlewareCatchesErrWithResponse = + catchesErrWithResponse(txErrorMiddleware); describe('txErrorMiddleware', () => { txErrorMiddlewareCallsNextWithErr('Error', new Error('This is an error')); diff --git a/src/middleware/validate/validateAddressMiddleware.spec.ts b/src/middleware/validate/validateAddressMiddleware.spec.ts index 3c8bdeada..a1bf8d906 100644 --- a/src/middleware/validate/validateAddressMiddleware.spec.ts +++ b/src/middleware/validate/validateAddressMiddleware.spec.ts @@ -12,7 +12,7 @@ import { validateAddressMiddleware } from './validateAddressMiddleware'; function doesNotErrorWith(name: string, req: Request): void { it(`does not error with ${name}`, () => { const next = jest.fn(); - validateAddressMiddleware(req, (null as unknown) as Response, next); + validateAddressMiddleware(req, null as unknown as Response, next); expect(next).toBeCalledTimes(1); expect(next).toBeCalledWith(); }); @@ -30,95 +30,95 @@ function errorsWith(name: string, req: Request, err: unknown): void { it(`errors with ${name}`, () => { const next = jest.fn(); - validateAddressMiddleware(req, (null as unknown) as Response, next); + validateAddressMiddleware(req, null as unknown as Response, next); expect(next).toBeCalledTimes(1); expect(next).toBeCalledWith(err); }); } describe('validateAddressMiddleware', () => { - doesNotErrorWith('no address in params', ({ + doesNotErrorWith('no address in params', { params: { number: '1', }, - } as unknown) as Request); + } as unknown as Request); - doesNotErrorWith('a valid substrate address', ({ + doesNotErrorWith('a valid substrate address', { params: { number: '1', address: '5EnxxUmEbw8DkENKiYuZ1DwQuMoB2UWEQJZZXrTsxoz7SpgG', }, - } as unknown) as Request); + } as unknown as Request); - doesNotErrorWith('a valid kusama address', ({ + doesNotErrorWith('a valid kusama address', { params: { number: '1', address: 'DXgXPAT5zWtPHo6FhVvrDdiaDPgCNGxhJAeVBYLtiwW9hAc', }, - } as unknown) as Request); + } as unknown as Request); - doesNotErrorWith('a valid kulupu address', ({ + doesNotErrorWith('a valid kulupu address', { params: { number: '1', address: '2cYv9Gk6U4m4a7Taw9pG8qMfd1Pnxw6FLTvV6kYZNhGL6M9y', }, - } as unknown) as Request); + } as unknown as Request); - doesNotErrorWith('a valid edgeware address', ({ + doesNotErrorWith('a valid edgeware address', { params: { number: '1', address: '5D24s4paTdVxddyeUzgsxGGiRd7SPhTnEvKu6XGPQvj1QSYN', }, - } as unknown) as Request); + } as unknown as Request); - doesNotErrorWith('a valid polkadot address', ({ + doesNotErrorWith('a valid polkadot address', { params: { number: '1', address: '1xN1Q5eKQmS5AzASdjt6R6sHF76611vKR4PFpFjy1kXau4m', }, - } as unknown) as Request); + } as unknown as Request); errorsWith( 'an address containing an invalid base58 char', - ({ + { params: { number: '1', address: '5EnxIUmEbw8DkENKiYuZ1DwQuMoB2UWEQJZZXrTsxoz7SpgG', }, - } as unknown) as Request, + } as unknown as Request, new BadRequest('Invalid base58 character "I" (0x49) at index 4') ); errorsWith( 'an address missing some bytes', - ({ + { params: { number: '1', address: 'y9EMHt34JJo4rWLSaxoLGdYXvjgSXEd4zHUnQgfNzwES8b', }, - } as unknown) as Request, + } as unknown as Request, new BadRequest('Invalid decoded address length') ); errorsWith( 'an address with invalid decoded address checksum', - ({ + { params: { number: '1', address: '5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaDwU', }, - } as unknown) as Request, + } as unknown as Request, new BadRequest('Invalid decoded address checksum') ); errorsWith( 'a nonsense address', - ({ + { params: { number: '1', address: 'hello', }, - } as unknown) as Request, + } as unknown as Request, new BadRequest('Invalid base58 character "l" (0x6c) at index 2') ); }); diff --git a/src/sanitize/sanitizeNumbers.spec.ts b/src/sanitize/sanitizeNumbers.spec.ts index f3ce30211..a4678a6d9 100644 --- a/src/sanitize/sanitizeNumbers.spec.ts +++ b/src/sanitize/sanitizeNumbers.spec.ts @@ -445,11 +445,11 @@ describe('sanitizeNumbers', () => { describe('BTreeMap', () => { const mockU32TextMap = new Map() .set( - (kusamaRegistry.createType('Text', 'u32Max') as unknown) as Text, + kusamaRegistry.createType('Text', 'u32Max') as unknown as Text, kusamaRegistry.createType('u32', '0xffffffff') ) .set( - (kusamaRegistry.createType('Text', 'zero') as unknown) as Text, + kusamaRegistry.createType('Text', 'zero') as unknown as Text, kusamaRegistry.createType('u32', 0) ); const bTreeMapConstructor = BTreeMap.with('Text', 'u32'); @@ -1086,8 +1086,7 @@ describe('sanitizeNumbers', () => { it('converts a staking response', () => { expect(sanitizeNumbers(PRE_SANITIZED_STAKING_RESPONSE)).toStrictEqual({ at: { - hash: - '0x5f2a8b33c24368148982c37aefe77d5724f5aca0bcae1a599e2a4634c1f0fab2', + hash: '0x5f2a8b33c24368148982c37aefe77d5724f5aca0bcae1a599e2a4634c1f0fab2', height: '2669784', }, staking: { diff --git a/src/services/accounts/AccountsBalanceInfoService.spec.ts b/src/services/accounts/AccountsBalanceInfoService.spec.ts index e68ba087b..88a24e95f 100644 --- a/src/services/accounts/AccountsBalanceInfoService.spec.ts +++ b/src/services/accounts/AccountsBalanceInfoService.spec.ts @@ -40,10 +40,12 @@ describe('AccountsBalanceInfoService', () => { hash: Hash, address: Address ): Promise => - (((await mockApi.query.system.account.at( - hash, - address - )) as unknown) as AccountInfo).data; + ( + (await mockApi.query.system.account.at( + hash, + address + )) as unknown as AccountInfo + ).data; // Wrap our functions in a jest mock so we can collect data on how they are called mockTokensLocksAt = jest.fn(mockApi.query.balances.locks.at); mockTokenAccountAt = jest.fn(tokensAccountAt); @@ -77,13 +79,15 @@ describe('AccountsBalanceInfoService', () => { it('querrys tokens pallet storage with a non-native token', async () => { expect( - (sanitizeNumbers( - await accountsBalanceInfoService.fetchAccountBalanceInfo( - blockHash789629, - testAddress, - 'fOoToKeN' - ) - ) as any).tokenSymbol + ( + sanitizeNumbers( + await accountsBalanceInfoService.fetchAccountBalanceInfo( + blockHash789629, + testAddress, + 'fOoToKeN' + ) + ) as any + ).tokenSymbol ).toEqual('fOoToKeN'); expect(mockTokensLocksAt).toBeCalled(); @@ -93,13 +97,15 @@ describe('AccountsBalanceInfoService', () => { it('does not query tokens pallet storage with the native token', async () => { expect( - (sanitizeNumbers( - await accountsBalanceInfoService.fetchAccountBalanceInfo( - blockHash789629, - testAddress, - 'doT' - ) - ) as any).tokenSymbol + ( + sanitizeNumbers( + await accountsBalanceInfoService.fetchAccountBalanceInfo( + blockHash789629, + testAddress, + 'doT' + ) + ) as any + ).tokenSymbol ).toEqual('doT'); expect(mockTokensLocksAt).not.toBeCalled(); diff --git a/src/services/accounts/AccountsStakingInfoService.ts b/src/services/accounts/AccountsStakingInfoService.ts index 14e55dc53..70a7c7a48 100644 --- a/src/services/accounts/AccountsStakingInfoService.ts +++ b/src/services/accounts/AccountsStakingInfoService.ts @@ -33,15 +33,12 @@ export class AccountsStakingInfoService extends AbstractService { const controller = controllerOption.unwrap(); - const [ - stakingLedgerOption, - rewardDestination, - slashingSpansOption, - ] = await Promise.all([ - api.query.staking.ledger.at(hash, controller), - api.query.staking.payee.at(hash, stash), - api.query.staking.slashingSpans.at(hash, stash), - ]); + const [stakingLedgerOption, rewardDestination, slashingSpansOption] = + await Promise.all([ + api.query.staking.ledger.at(hash, controller), + api.query.staking.payee.at(hash, stash), + api.query.staking.slashingSpans.at(hash, stash), + ]); const stakingLedger = stakingLedgerOption.unwrapOr(null); diff --git a/src/services/blocks/BlocksService.spec.ts b/src/services/blocks/BlocksService.spec.ts index 5657d4f39..55e9e0a68 100644 --- a/src/services/blocks/BlocksService.spec.ts +++ b/src/services/blocks/BlocksService.spec.ts @@ -84,7 +84,7 @@ describe('BlocksService', () => { mockBlock789629BadExt.extrinsics.pop(); mockBlock789629BadExt.extrinsics.unshift( - (undefined as unknown) as GenericExtrinsic + undefined as unknown as GenericExtrinsic ); // fetchBlock Options @@ -111,7 +111,7 @@ describe('BlocksService', () => { ) ); - mockApi.derive.chain.getBlock = (tempGetBlock as unknown) as GetBlock; + mockApi.derive.chain.getBlock = tempGetBlock as unknown as GetBlock; }); it('Returns the finalized tag as undefined when omitFinalizedTag equals true', async () => { @@ -130,8 +130,8 @@ describe('BlocksService', () => { }); it('Return an error with a null calcFee when perByte is undefined', async () => { - mockApi.consts.transactionPayment.transactionByteFee = (undefined as unknown) as BalanceOf & - AugmentedConst<'promise'>; + mockApi.consts.transactionPayment.transactionByteFee = + undefined as unknown as BalanceOf & AugmentedConst<'promise'>; const configuredBlocksService = new BlocksService(mockApi, 0); @@ -152,10 +152,9 @@ describe('BlocksService', () => { const responseObj: ResponseObj = JSON.parse(JSON.stringify(response)); // Revert mockApi back to its original setting that was changed above. - mockApi.consts.transactionPayment.transactionByteFee = polkadotRegistry.createType( - 'Balance', - 1000000 - ) as BalanceOf & AugmentedConst<'promise'>; + mockApi.consts.transactionPayment.transactionByteFee = + polkadotRegistry.createType('Balance', 1000000) as BalanceOf & + AugmentedConst<'promise'>; expect(responseObj.extrinsics[3].info).toEqual({ error: 'Fee calculation not supported for 16#polkadot', @@ -168,7 +167,7 @@ describe('BlocksService', () => { // tx hash: 0x6d6c0e955650e689b14fb472daf14d2bdced258c748ded1d6cb0da3bfcc5854f const { calcFee } = await blocksService['createCalcFee']( mockApi, - ('0xParentHash' as unknown) as Hash, + '0xParentHash' as unknown as Hash, mockBlock789629 ); @@ -181,7 +180,7 @@ describe('BlocksService', () => { // tx hash: 0xc96b4d442014fae60c932ea50cba30bf7dea3233f59d1fe98c6f6f85bfd51045 const { calcFee } = await blocksService['createCalcFee']( mockApi, - ('0xParentHash' as unknown) as Hash, + '0xParentHash' as unknown as Hash, mockBlock789629 ); @@ -194,23 +193,23 @@ describe('BlocksService', () => { // Instantiate a blocks service where we explicitly know the block store is empty. const blocksServiceEmptyBlockStore = new BlocksService(mockApi, 0); - (mockApi.runtimeVersion - .specVersion as unknown) = polkadotRegistry.createType('u32', 20); - (mockApi.runtimeVersion - .specName as unknown) = polkadotRegistry.createType('Text', 'westend'); + (mockApi.runtimeVersion.specVersion as unknown) = + polkadotRegistry.createType('u32', 20); + (mockApi.runtimeVersion.specName as unknown) = + polkadotRegistry.createType('Text', 'westend'); await blocksServiceEmptyBlockStore['createCalcFee']( mockApi, - ('0xParentHash' as unknown) as Hash, + '0xParentHash' as unknown as Hash, mockBlock789629 ); expect(blocksServiceEmptyBlockStore['blockWeightStore'][20]).toBeTruthy(); - (mockApi.runtimeVersion - .specVersion as unknown) = polkadotRegistry.createType('u32', 16); - (mockApi.runtimeVersion - .specName as unknown) = polkadotRegistry.createType('Text', 'polkadot'); + (mockApi.runtimeVersion.specVersion as unknown) = + polkadotRegistry.createType('u32', 16); + (mockApi.runtimeVersion.specName as unknown) = + polkadotRegistry.createType('Text', 'polkadot'); }); }); @@ -224,7 +223,7 @@ describe('BlocksService', () => { const weightValue = await blocksService['getWeight'](mockApi, blockHash); expect( - ((weightValue as unknown) as ExtBaseWeightValue).extrinsicBaseWeight + (weightValue as unknown as ExtBaseWeightValue).extrinsicBaseWeight ).toBe(BigInt(125000000)); }); @@ -240,15 +239,14 @@ describe('BlocksService', () => { const weightValue = await blocksService['getWeight'](mockApi, blockHash); expect( - ((weightValue as unknown) as PerClassValue).perClass.normal - .baseExtrinsic + (weightValue as unknown as PerClassValue).perClass.normal.baseExtrinsic ).toBe(BigInt(125000000)); expect( - ((weightValue as unknown) as PerClassValue).perClass.operational + (weightValue as unknown as PerClassValue).perClass.operational .baseExtrinsic ).toBe(BigInt(1)); expect( - ((weightValue as unknown) as PerClassValue).perClass.mandatory + (weightValue as unknown as PerClassValue).perClass.mandatory .baseExtrinsic ).toBe(BigInt(512000000000001)); @@ -280,7 +278,7 @@ describe('BlocksService', () => { it('does not handle an empty object', () => expect(() => blocksService['parseGenericCall']( - ({} as unknown) as GenericCall, + {} as unknown as GenericCall, mockBlock789629.registry ) ).toThrow()); diff --git a/src/services/blocks/BlocksService.ts b/src/services/blocks/BlocksService.ts index 5ecd62517..2364118e7 100644 --- a/src/services/blocks/BlocksService.ts +++ b/src/services/blocks/BlocksService.ts @@ -101,13 +101,8 @@ export class BlocksService extends AbstractService { } const { block, author: authorId } = deriveBlock; - const { - parentHash, - number, - stateRoot, - extrinsicsRoot, - digest, - } = block.header; + const { parentHash, number, stateRoot, extrinsicsRoot, digest } = + block.header; const logs = digest.logs.map(({ type, index, value }) => { return { type, index, value }; @@ -537,12 +532,10 @@ export class BlocksService extends AbstractService { } = expandMetadata(api.registry, metadata); let weightValue; - if (((system.blockWeights as unknown) as BlockWeights)?.perClass) { - const { - normal, - operational, - mandatory, - } = ((system.blockWeights as unknown) as BlockWeights)?.perClass; + if ((system.blockWeights as unknown as BlockWeights)?.perClass) { + const { normal, operational, mandatory } = ( + system.blockWeights as unknown as BlockWeights + )?.perClass; const perClass = { normal: { @@ -559,7 +552,9 @@ export class BlocksService extends AbstractService { weightValue = { perClass }; } else if (system.extrinsicBaseWeight) { weightValue = { - extrinsicBaseWeight: ((system.extrinsicBaseWeight as unknown) as AbstractInt).toBigInt(), + extrinsicBaseWeight: ( + system.extrinsicBaseWeight as unknown as AbstractInt + ).toBigInt(), }; } else { throw new InternalServerError( diff --git a/src/services/blocks/trace/Trace.ts b/src/services/blocks/trace/Trace.ts index bcf9d0454..ec442fcbd 100644 --- a/src/services/blocks/trace/Trace.ts +++ b/src/services/blocks/trace/Trace.ts @@ -218,9 +218,7 @@ export class Trace { * * @param spans spans to parse */ - private static parseSpans( - spans: TraceSpan[] - ): { + private static parseSpans(spans: TraceSpan[]): { spansById: SpansById; parsedSpans: SpanWithChildren[]; executeBlockSpanId: number; @@ -283,9 +281,8 @@ export class Trace { parsedSpans: spans, executeBlockSpanId, } = Trace.parseSpans(this.traceBlock.spans); - const { eventsByParentId, extrinsicIndexBySpanId } = this.parseEvents( - spansById - ); + const { eventsByParentId, extrinsicIndexBySpanId } = + this.parseEvents(spansById); const actions: ActionGroup[] = []; // Create a list of action groups (`actions`) and a list of all `Operations`. @@ -425,9 +422,7 @@ export class Trace { * @param spansById map of span id => to span with its children for all spans * from tracing the block. */ - private parseEvents( - spansById: Map, SpanWithChildren> - ): { + private parseEvents(spansById: Map, SpanWithChildren>): { eventsByParentId: EventsByParentId; extrinsicIndexBySpanId: ExtrinsicIndexBySpanId; } { @@ -547,10 +542,10 @@ export class Trace { 'Expect accountInfoEncoded to always be a string in system::Account event' ); } - const accountInfo = (this.registry.createType( + const accountInfo = this.registry.createType( 'AccountInfo', `0x${accountInfoEncoded.slice(2)}` // Slice off the leading Option byte - ) as unknown) as AccountInfo; + ) as unknown as AccountInfo; // Mutate the event to make it a `ParsedAccountEvent` event.accountInfo = accountInfo; diff --git a/src/services/node/NodeVersionService.ts b/src/services/node/NodeVersionService.ts index b228a5a73..beca690e5 100644 --- a/src/services/node/NodeVersionService.ts +++ b/src/services/node/NodeVersionService.ts @@ -4,15 +4,12 @@ import { AbstractService } from '../AbstractService'; export class NodeVersionService extends AbstractService { async fetchVersion(): Promise { - const [ - { implName: clientImplName }, - chain, - clientVersion, - ] = await Promise.all([ - this.api.rpc.state.getRuntimeVersion(), - this.api.rpc.system.chain(), - this.api.rpc.system.version(), - ]); + const [{ implName: clientImplName }, chain, clientVersion] = + await Promise.all([ + this.api.rpc.state.getRuntimeVersion(), + this.api.rpc.system.chain(), + this.api.rpc.system.version(), + ]); return { clientVersion, diff --git a/src/services/pallets/PalletsAssetsService.spec.ts b/src/services/pallets/PalletsAssetsService.spec.ts index 75387d7af..720e0afd2 100644 --- a/src/services/pallets/PalletsAssetsService.spec.ts +++ b/src/services/pallets/PalletsAssetsService.spec.ts @@ -9,8 +9,7 @@ describe('PalletsAssetsService', () => { it('Should return the correct response for an AssetId', async () => { const expectedResponse = { at: { - hash: - '0x7b713de604a99857f6c25eacc115a4f28d2611a23d9ddff99ab0e4f1c17a8578', + hash: '0x7b713de604a99857f6c25eacc115a4f28d2611a23d9ddff99ab0e4f1c17a8578', height: '789629', }, assetInfo: { diff --git a/src/services/pallets/PalletsStakingProgressService.spec.ts b/src/services/pallets/PalletsStakingProgressService.spec.ts index 32d8ff0bc..9c114e59b 100644 --- a/src/services/pallets/PalletsStakingProgressService.spec.ts +++ b/src/services/pallets/PalletsStakingProgressService.spec.ts @@ -46,8 +46,8 @@ describe('PalletStakingProgressService', () => { ) ); - (mockApi.query.staking - .erasStartSessionIndex as any).at = erasStartSessionIndexAt; + (mockApi.query.staking.erasStartSessionIndex as any).at = + erasStartSessionIndexAt; }); it('throws when activeEra.isNone', async () => { diff --git a/src/services/pallets/PalletsStakingProgressService.ts b/src/services/pallets/PalletsStakingProgressService.ts index 5593fc665..7d1c922ac 100644 --- a/src/services/pallets/PalletsStakingProgressService.ts +++ b/src/services/pallets/PalletsStakingProgressService.ts @@ -17,17 +17,13 @@ export class PalletsStakingProgressService extends AbstractService { ): Promise { const { api } = this; - const [ - validatorCount, - forceEra, - validators, - { number }, - ] = await Promise.all([ - api.query.staking.validatorCount.at(hash), - api.query.staking.forceEra.at(hash), - api.query.session.validators.at(hash), - api.rpc.chain.getHeader(hash), - ]); + const [validatorCount, forceEra, validators, { number }] = + await Promise.all([ + api.query.staking.validatorCount.at(hash), + api.query.staking.forceEra.at(hash), + api.query.session.validators.at(hash), + api.rpc.chain.getHeader(hash), + ]); let eraElectionStatus; /** @@ -48,10 +44,8 @@ export class PalletsStakingProgressService extends AbstractService { activeEra, } = await this.deriveSessionAndEraProgress(api, hash); - const unappliedSlashesAtActiveEra = await api.query.staking.unappliedSlashes.at( - hash, - activeEra - ); + const unappliedSlashesAtActiveEra = + await api.query.staking.unappliedSlashes.at(hash, activeEra); const currentBlockNumber = number.toBn(); @@ -157,16 +151,15 @@ export class PalletsStakingProgressService extends AbstractService { } const { index: activeEra } = activeEraOption.unwrap(); - const activeEraStartSessionIndexOption = await api.query.staking.erasStartSessionIndex.at( - hash, - activeEra - ); + const activeEraStartSessionIndexOption = + await api.query.staking.erasStartSessionIndex.at(hash, activeEra); if (activeEraStartSessionIndexOption.isNone) { throw new InternalServerError( 'EraStartSessionIndex is None when Some was expected.' ); } - const activeEraStartSessionIndex = activeEraStartSessionIndexOption.unwrap(); + const activeEraStartSessionIndex = + activeEraStartSessionIndexOption.unwrap(); const { epochDuration: sessionLength } = api.consts.babe; const eraLength = api.consts.staking.sessionsPerEra.mul(sessionLength); @@ -201,7 +194,7 @@ export class PalletsStakingProgressService extends AbstractService { hash: BlockHash ): Promise { if (api.consts.staking.electionLookahead) { - return (api.consts.staking.electionLookahead as unknown) as BN; + return api.consts.staking.electionLookahead as unknown as BN; } const { specName } = await api.rpc.state.getRuntimeVersion(hash); diff --git a/src/services/pallets/PalletsStorageService.ts b/src/services/pallets/PalletsStorageService.ts index 18738cb76..4a68670cb 100644 --- a/src/services/pallets/PalletsStorageService.ts +++ b/src/services/pallets/PalletsStorageService.ts @@ -45,9 +45,8 @@ export class PalletsStorageService extends AbstractService { let normalizedStorageItemMeta; if (metadata) { - normalizedStorageItemMeta = this.normalizeStorageItemMeta( - storageItemMeta - ); + normalizedStorageItemMeta = + this.normalizeStorageItemMeta(storageItemMeta); } const [value, { number }] = await Promise.all([ @@ -113,9 +112,9 @@ export class PalletsStorageService extends AbstractService { private normalizeStorageItemMeta( storageItemMeta: StorageEntryMetadataV12 ): ISanitizedStorageItemMetadata { - const normalizedStorageItemMeta = (sanitizeNumbers( + const normalizedStorageItemMeta = sanitizeNumbers( storageItemMeta - ) as unknown) as ISanitizedStorageItemMetadata; + ) as unknown as ISanitizedStorageItemMetadata; normalizedStorageItemMeta.documentation = this.sanitizeDocs( storageItemMeta.documentation @@ -162,11 +161,8 @@ export class PalletsStorageService extends AbstractService { private findPalletMeta(palletId: string): [ModuleMetadataV12, number] { const { modules } = this.api.runtimeMetadata.asLatest; - const { - isValidPalletName, - isValidPalletIndex, - parsedPalletId, - } = this.validPalletId(modules, palletId); + const { isValidPalletName, isValidPalletIndex, parsedPalletId } = + this.validPalletId(modules, palletId); const filtered = modules.filter((mod) => mod.storage.isSome); diff --git a/src/services/paras/ParasService.spec.ts b/src/services/paras/ParasService.spec.ts index f70d4527c..7ea151ff1 100644 --- a/src/services/paras/ParasService.spec.ts +++ b/src/services/paras/ParasService.spec.ts @@ -171,9 +171,8 @@ describe('ParasService', () => { describe('ParasService.auctionsCurrent', () => { it('Should return the correct data during an ongoing auction', async () => { const leasePeriodIndex = new BN(1000); - const leaseIndexArray = parasService['enumerateLeaseSets']( - leasePeriodIndex - ); + const leaseIndexArray = + parasService['enumerateLeaseSets'](leasePeriodIndex); // Remove the first two entries with splice because we have them in the expectedResponse. // `LEASE_PERIODS_PER_SLOT_FALLBACK` is 4 we need 10 slots for winning. const additionalWinningOptions = leaseIndexArray diff --git a/src/services/paras/ParasService.ts b/src/services/paras/ParasService.ts index 4c7319b7c..6ac033851 100644 --- a/src/services/paras/ParasService.ts +++ b/src/services/paras/ParasService.ts @@ -138,9 +138,8 @@ export class ParasService extends AbstractService { let leasesFormatted; if (leases.length) { - const currentLeasePeriodIndex = this.leasePeriodIndexAt( - blockNumber - ).toNumber(); + const currentLeasePeriodIndex = + this.leasePeriodIndexAt(blockNumber).toNumber(); leasesFormatted = leases.reduce((acc, curLeaseOpt, idx) => { if (curLeaseOpt.isSome) { @@ -161,9 +160,10 @@ export class ParasService extends AbstractService { let onboardingAs: ParaType | undefined; if (paraLifecycleOpt.isSome && paraLifecycleOpt.unwrap().isOnboarding) { - const paraGenesisArgs = await this.api.query.paras.upcomingParasGenesis.at< - Option - >(hash, paraId); + const paraGenesisArgs = + await this.api.query.paras.upcomingParasGenesis.at< + Option + >(hash, paraId); if (paraGenesisArgs.isSome) { onboardingAs = paraGenesisArgs.unwrap().parachain.isTrue @@ -336,10 +336,11 @@ export class ParasService extends AbstractService { const paraId = k.args[0]; let onboardingAs: ParaType | undefined; if (paraLifecycle.isOnboarding) { - const paraGenesisArgs = await this.api.query.paras.paraGenesisArgs.at( - hash, - paraId - ); + const paraGenesisArgs = + await this.api.query.paras.paraGenesisArgs.at( + hash, + paraId + ); onboardingAs = paraGenesisArgs.parachain.isTrue ? 'parachain' : 'parathread'; diff --git a/src/services/test-helpers/mock/mockApi.ts b/src/services/test-helpers/mock/mockApi.ts index e3d846364..8dcc628bd 100644 --- a/src/services/test-helpers/mock/mockApi.ts +++ b/src/services/test-helpers/mock/mockApi.ts @@ -658,7 +658,7 @@ const assetApprovals = () => * Mock polkadot-js ApiPromise. Values are largely meant to be accurate for block * #789629, which is what most Service unit tests are based on. */ -export const mockApi = ({ +export const mockApi = { runtimeVersion, createType: polkadotRegistry.createType.bind(polkadotRegistry), registry: polkadotRegistry, @@ -813,4 +813,4 @@ export const mockApi = ({ getBlock: deriveGetBlock, }, }, -} as unknown) as ApiPromise; +} as unknown as ApiPromise; diff --git a/src/services/transaction/extractCauseAndStack.ts b/src/services/transaction/extractCauseAndStack.ts index 2bd8afe5e..9e7bc0797 100644 --- a/src/services/transaction/extractCauseAndStack.ts +++ b/src/services/transaction/extractCauseAndStack.ts @@ -2,9 +2,10 @@ import { isToString } from '../../types/util'; -export function extractCauseAndStack( - err: unknown -): { cause: string | unknown; stack: string | undefined } { +export function extractCauseAndStack(err: unknown): { + cause: string | unknown; + stack: string | undefined; +} { const cause = err instanceof Error ? err.message : isToString(err) ? err.toString() : err; diff --git a/yarn.lock b/yarn.lock index b82db56f0..606ca351a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -39,37 +39,37 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:7.14.0, @babel/core@npm:^7.1.0, @babel/core@npm:^7.7.5": - version: 7.14.0 - resolution: "@babel/core@npm:7.14.0" +"@babel/core@npm:7.14.2, @babel/core@npm:^7.1.0, @babel/core@npm:^7.7.5": + version: 7.14.2 + resolution: "@babel/core@npm:7.14.2" dependencies: "@babel/code-frame": ^7.12.13 - "@babel/generator": ^7.14.0 + "@babel/generator": ^7.14.2 "@babel/helper-compilation-targets": ^7.13.16 - "@babel/helper-module-transforms": ^7.14.0 + "@babel/helper-module-transforms": ^7.14.2 "@babel/helpers": ^7.14.0 - "@babel/parser": ^7.14.0 + "@babel/parser": ^7.14.2 "@babel/template": ^7.12.13 - "@babel/traverse": ^7.14.0 - "@babel/types": ^7.14.0 + "@babel/traverse": ^7.14.2 + "@babel/types": ^7.14.2 convert-source-map: ^1.7.0 debug: ^4.1.0 gensync: ^1.0.0-beta.2 json5: ^2.1.2 semver: ^6.3.0 source-map: ^0.5.0 - checksum: eccd8c6acf33a2782b9213bffc0e766857c9b690649512c3a525a02bb212301c6fdf314d6e7f7404479dc9631beb58a8f5e673ea9f3c1964853a3c65b045a382 + checksum: 16dc0a52484da794afc69ac7f13721b7cf2f7e17db6467a36f19fef24fa59a8cea1524faa260d0c05f5a99836fb65acf076cf15abf6846fc66f6c142a94a8327 languageName: node linkType: hard -"@babel/generator@npm:^7.14.0": - version: 7.14.1 - resolution: "@babel/generator@npm:7.14.1" +"@babel/generator@npm:^7.14.2": + version: 7.14.2 + resolution: "@babel/generator@npm:7.14.2" dependencies: - "@babel/types": ^7.14.1 + "@babel/types": ^7.14.2 jsesc: ^2.5.1 source-map: ^0.5.0 - checksum: 28a56cbd4688c3c6020ac53f3ec607613f135bfaf52717ddbca02ee146b1ed4ea2a4490b6e4d3bc1fd0f0515031242183211438d7502ddaacdcf3a7713414d9a + checksum: eacc93d3446dec6fac064cd884ac6e2ecbcfed65f8de069da72855a8124d33004a9dc9f06833e18fae2e352929c493b46035785f948549d2e9d503af0bef8a79 languageName: node linkType: hard @@ -87,14 +87,14 @@ __metadata: languageName: node linkType: hard -"@babel/helper-function-name@npm:^7.12.13": - version: 7.12.13 - resolution: "@babel/helper-function-name@npm:7.12.13" +"@babel/helper-function-name@npm:^7.14.2": + version: 7.14.2 + resolution: "@babel/helper-function-name@npm:7.14.2" dependencies: "@babel/helper-get-function-arity": ^7.12.13 "@babel/template": ^7.12.13 - "@babel/types": ^7.12.13 - checksum: 25f03f303be790618437dc49c6df758d362112a564361d2eae66b58fda4f5ec09e62875473b18090b939c8d3d60b36aa7c9f688768b7fade511512d02ac9d3d0 + "@babel/types": ^7.14.2 + checksum: 36bf5e4126b5bdf7c7e686ca487f9a91857d723d457a2608645d10ed7b0ba3da0c0e0cd0b31efe71091ea80656bf98578e3bad50c6c7fab771fd5de439aeebad languageName: node linkType: hard @@ -125,9 +125,9 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-transforms@npm:^7.14.0": - version: 7.14.0 - resolution: "@babel/helper-module-transforms@npm:7.14.0" +"@babel/helper-module-transforms@npm:^7.14.0, @babel/helper-module-transforms@npm:^7.14.2": + version: 7.14.2 + resolution: "@babel/helper-module-transforms@npm:7.14.2" dependencies: "@babel/helper-module-imports": ^7.13.12 "@babel/helper-replace-supers": ^7.13.12 @@ -135,9 +135,9 @@ __metadata: "@babel/helper-split-export-declaration": ^7.12.13 "@babel/helper-validator-identifier": ^7.14.0 "@babel/template": ^7.12.13 - "@babel/traverse": ^7.14.0 - "@babel/types": ^7.14.0 - checksum: 1049a94cc74247c8ae4f5a804b4a0713ab4ad8f69eb412ea99ac1d03b4a9b9df3d1481286fa5e503239473ffb81dbb4f029d05cc681eff4d5380ae67161ac916 + "@babel/traverse": ^7.14.2 + "@babel/types": ^7.14.2 + checksum: c0a543a2149d15ad9c129f002cb01974c79a16ea10de9e3f9b7a296f2bbe3deaef9457acf6b9d2238e9629d5e98964539d28843cdd4d328b115f559871ccf533 languageName: node linkType: hard @@ -223,12 +223,12 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.14.0": - version: 7.14.1 - resolution: "@babel/parser@npm:7.14.1" +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.14.2": + version: 7.14.2 + resolution: "@babel/parser@npm:7.14.2" bin: parser: ./bin/babel-parser.js - checksum: 64db8689201b9607c2952604fc8e87af219befeec519ca80191daaeafa7373c483dd00dcb0540e29cb8564d998f241c3fcd7ef4aec115930f7874d85f48621a8 + checksum: 18dffc18a2c15f8877988c9b5a46c87f1763e8a383c3210c9b5b651955b1ac46dc54da27acc09acd7fb917f37e0bd92b8985dc4c9d7f1e750dfccbcea730aa0e languageName: node linkType: hard @@ -387,7 +387,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.13.17, @babel/runtime@npm:^7.13.7, @babel/runtime@npm:^7.13.8, @babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.14.0, @babel/runtime@npm:^7.9.6": +"@babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.14.0, @babel/runtime@npm:^7.9.6": version: 7.14.0 resolution: "@babel/runtime@npm:7.14.0" dependencies: @@ -407,29 +407,29 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.14.0": - version: 7.14.0 - resolution: "@babel/traverse@npm:7.14.0" +"@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.14.2": + version: 7.14.2 + resolution: "@babel/traverse@npm:7.14.2" dependencies: "@babel/code-frame": ^7.12.13 - "@babel/generator": ^7.14.0 - "@babel/helper-function-name": ^7.12.13 + "@babel/generator": ^7.14.2 + "@babel/helper-function-name": ^7.14.2 "@babel/helper-split-export-declaration": ^7.12.13 - "@babel/parser": ^7.14.0 - "@babel/types": ^7.14.0 + "@babel/parser": ^7.14.2 + "@babel/types": ^7.14.2 debug: ^4.1.0 globals: ^11.1.0 - checksum: f2fb957d616c242d8ccd25fbebadebc25aa2df8ea82d7cacb2b09285743a682f72beb6fb2acef01a7a98f141c3e36d19300ebde2dd78c780c5e3dc7692c5f6f2 + checksum: 76f57f7a718c5ac17f72eb729e68d6135e37ee6201642d25c92d8add7b87eb492c7af40bd5193c27cca83cb60a649c9ccbe0f500e37569609e044b0560602cb7 languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.12.13, @babel/types@npm:^7.13.12, @babel/types@npm:^7.14.0, @babel/types@npm:^7.14.1, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": - version: 7.14.1 - resolution: "@babel/types@npm:7.14.1" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.12.13, @babel/types@npm:^7.13.12, @babel/types@npm:^7.14.0, @babel/types@npm:^7.14.2, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3": + version: 7.14.2 + resolution: "@babel/types@npm:7.14.2" dependencies: "@babel/helper-validator-identifier": ^7.14.0 to-fast-properties: ^2.0.0 - checksum: 27965ef192ded329d8ae28ccd5e5addd02dc477ec46e54145e5cf0d054ad65b2fc760736865295c1819d502ec9598883c17f25efdbe896ad77b400136a1aa971 + checksum: 34893ac415826cd2ddead0511be9c3cb876bf626148b00b0a471c4630b193939ba46a9bf9d8b2be88e46fceb3ae9204ed7488ceb6a08a67550211d40df65a7c7 languageName: node linkType: hard @@ -472,24 +472,24 @@ __metadata: languageName: node linkType: hard -"@darwinia/types-known@npm:^1.1.0-alpha.14": - version: 1.1.0-alpha.14 - resolution: "@darwinia/types-known@npm:1.1.0-alpha.14" +"@darwinia/types-known@npm:^1.1.0-alpha.15": + version: 1.1.0-alpha.15 + resolution: "@darwinia/types-known@npm:1.1.0-alpha.15" dependencies: "@babel/runtime": ^7.9.6 "@polkadot/types": 4.0.4-5 "@polkadot/util": 6.0.5 bn.js: ^5.1.2 - checksum: bb5ee90a29c93a6236964bf40bf624a12581083d1d7d8017ee8135228c78f212633652715af403af7e778a3fa72e91bd12eba34a1244c98d231756d1d8d9f01f + checksum: d3dec1203b014d2f24d5c8c49bf7b6c098efe5f73fcbb5f5c59c1be38678c8b59cdea127288e59b4fae491d94746081423f6642d3fe2a5ba02453b3873c33463 languageName: node linkType: hard -"@darwinia/types@npm:^1.1.0-alpha.13": - version: 1.1.0-alpha.14 - resolution: "@darwinia/types@npm:1.1.0-alpha.14" +"@darwinia/types@npm:^1.1.0-alpha.11": + version: 1.1.0-alpha.15 + resolution: "@darwinia/types@npm:1.1.0-alpha.15" dependencies: - "@darwinia/types-known": ^1.1.0-alpha.14 - checksum: c535e2e46235fafdd35e4e4257e835f14d2da138e1e4a3cb90dbd1d8ebe8749c599e5521ea1fb6981de44544835e089cc1c8f2019b4fda774ae0dd94712cf9b4 + "@darwinia/types-known": ^1.1.0-alpha.15 + checksum: 5cc7106c1094e5ba11de203a9354f42135645a0e1cd2da874864f43f34860c6da10e6436d16fabd8e41b1b3f888d8c702c6b36da4441a34ef6b2f0974083e842 languageName: node linkType: hard @@ -507,7 +507,7 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^0.4.0": +"@eslint/eslintrc@npm:^0.4.1": version: 0.4.1 resolution: "@eslint/eslintrc@npm:0.4.1" dependencies: @@ -813,114 +813,85 @@ __metadata: languageName: node linkType: hard -"@phala/typedefs@npm:0.1.1": - version: 0.1.1 - resolution: "@phala/typedefs@npm:0.1.1" - checksum: 26b06223cf4d207f85caab332f345954f6a28bf437b2b24853d1a80e0e857aa7616fe991f50ad3fdfeda17b13f2b34c5037e4fa5f397864bc56da5bce8d42cbf +"@phala/typedefs@npm:0.1.0": + version: 0.1.0 + resolution: "@phala/typedefs@npm:0.1.0" + checksum: b3a06ee2aae63d7fcc1027d893b3f7ed82883990aef71b48eaf71deed08f58fe2f612cde915e27ef081d25eac9322e9f6a569723d5883c4c59fe6a4ffa1d61c8 languageName: node linkType: hard -"@polkadot/api-derive@npm:4.9.3-14": - version: 4.9.3-14 - resolution: "@polkadot/api-derive@npm:4.9.3-14" +"@polkadot/api-derive@npm:4.9.3-24": + version: 4.9.3-24 + resolution: "@polkadot/api-derive@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/api": 4.9.3-14 - "@polkadot/rpc-core": 4.9.3-14 - "@polkadot/types": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 - "@polkadot/util-crypto": ^6.3.2-9 - "@polkadot/x-rxjs": ^6.3.2-9 + "@polkadot/api": 4.9.3-24 + "@polkadot/rpc-core": 4.9.3-24 + "@polkadot/types": 4.9.3-24 + "@polkadot/util": ^6.4.1 + "@polkadot/util-crypto": ^6.4.1 + "@polkadot/x-rxjs": ^6.4.1 bn.js: ^4.11.9 - checksum: 75a8aa86ada26e28bcf44b4864ea13e81e3089a82edad81b76db0e750fd4d7c52dbf1d439a34739a622ab91509ef1be18b627d5c22ead6ecfb86cc88af89f8e1 + checksum: 7f1fe185c67f42e94a9a8c249f5498353ba5f111ecf99469348fd746bcedd086de6d14cb2bcb5948e867745ee8452a300ae1e357b082921d0661d29f228375da languageName: node linkType: hard -"@polkadot/api@npm:4.9.3-14, @polkadot/api@npm:beta": - version: 4.9.3-14 - resolution: "@polkadot/api@npm:4.9.3-14" +"@polkadot/api@npm:4.9.3-24, @polkadot/api@npm:beta": + version: 4.9.3-24 + resolution: "@polkadot/api@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/api-derive": 4.9.3-14 - "@polkadot/keyring": ^6.3.2-9 - "@polkadot/metadata": 4.9.3-14 - "@polkadot/rpc-core": 4.9.3-14 - "@polkadot/rpc-provider": 4.9.3-14 - "@polkadot/types": 4.9.3-14 - "@polkadot/types-known": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 - "@polkadot/util-crypto": ^6.3.2-9 - "@polkadot/x-rxjs": ^6.3.2-9 + "@polkadot/api-derive": 4.9.3-24 + "@polkadot/keyring": ^6.4.1 + "@polkadot/metadata": 4.9.3-24 + "@polkadot/rpc-core": 4.9.3-24 + "@polkadot/rpc-provider": 4.9.3-24 + "@polkadot/types": 4.9.3-24 + "@polkadot/types-known": 4.9.3-24 + "@polkadot/util": ^6.4.1 + "@polkadot/util-crypto": ^6.4.1 + "@polkadot/x-rxjs": ^6.4.1 bn.js: ^4.11.9 eventemitter3: ^4.0.7 - checksum: 84805ac6e3b8cc2dfc6b2ac6ce156f8b165842ac9def74bbc092bccc3821817dec10e42d2f81865ad2725131272c51e2ee4b2486d300112d83b08450b0405e58 + checksum: 5b1686d96ed1b3cb0aa2abd52b2085cb9ce82e4e0cd804c52ea06246978bd78a7aa429f2a467c6cbd8474ce1f9854370cf71b724a3494f8bed54ed0a994e047e languageName: node linkType: hard -"@polkadot/apps-config@npm:beta": - version: 0.90.2-43 - resolution: "@polkadot/apps-config@npm:0.90.2-43" +"@polkadot/apps-config@npm:^0.90.1": + version: 0.90.1 + resolution: "@polkadot/apps-config@npm:0.90.1" dependencies: "@acala-network/type-definitions": ^0.7.3 "@babel/runtime": ^7.14.0 "@crustio/type-definitions": 0.0.6 - "@darwinia/types": ^1.1.0-alpha.13 + "@darwinia/types": ^1.1.0-alpha.11 "@edgeware/node-types": ^3.3.4 "@equilab/definitions": 1.0.4 "@interlay/polkabtc-types": ^0.6.2 "@kiltprotocol/type-definitions": ^0.1.3 "@laminar/type-definitions": ^0.3.1 - "@phala/typedefs": 0.1.1 - "@polkadot/networks": ^6.3.2-9 - "@polymathnetwork/polymesh-types": ^0.0.2 + "@phala/typedefs": 0.1.0 + "@polkadot/networks": ^6.3.1 "@snowfork/snowbridge-types": ^0.2.3 - "@sora-substrate/type-definitions": ^1.2.1 - "@subsocial/types": ^0.5.1-sub-2.0.1 - "@zeitgeistpm/type-defs": ^0.1.51 - moonbeam-types-bundle: 1.1.13 - checksum: b88f8cbabc41b743b96fc7f22d2dc9dbe9f3fd2df478f725a62c7c14c6f1900e59a45c2228d86f4de7ac098f36fc500010f2a723bda1115d212e3c7aff902f97 - languageName: node - linkType: hard - -"@polkadot/keyring@npm:^6.0.5": - version: 6.3.1 - resolution: "@polkadot/keyring@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@polkadot/util": 6.3.1 - "@polkadot/util-crypto": 6.3.1 - peerDependencies: - "@polkadot/util": 6.3.1 - "@polkadot/util-crypto": 6.3.1 - checksum: aab63b74f1eebc49ac3c6ddd6b385695ec6d07e15f03ece02f3f516298b07b51ecf47cb8a8f5c38804cc2ae347886716a46f3f0d6ad83281fd11f7494875e1e8 + "@sora-substrate/type-definitions": ^0.8.14 + "@subsocial/types": ^0.5.0-substrate2.0 + "@zeitgeistpm/type-defs": ^0.1.47 + moonbeam-types-bundle: 1.1.12 + checksum: 3872eb1bac66c9352a8deee1fab538cfe8285241fcaa3ed5bcb383fb69f892bbdff38400d78f7c51ed77258739214639f37a34b63c840c2e4f129fe418f92cfb languageName: node linkType: hard -"@polkadot/keyring@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/keyring@npm:6.3.2-12" +"@polkadot/keyring@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/keyring@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/util": 6.3.2-12 - "@polkadot/util-crypto": 6.3.2-12 + "@polkadot/util": 6.4.1 + "@polkadot/util-crypto": 6.4.1 peerDependencies: - "@polkadot/util": 6.3.2-12 - "@polkadot/util-crypto": 6.3.2-12 - checksum: c4ffdc31c98d775755ef5012ba77c02513c559b72154a50ca44b3d1cbb8a0382698a73c3590265cec0a4b15fcf18db749f4da4e23a43fcd4f221cc49d747cf90 - languageName: node - linkType: hard - -"@polkadot/metadata@npm:3.11.1": - version: 3.11.1 - resolution: "@polkadot/metadata@npm:3.11.1" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/types": 3.11.1 - "@polkadot/types-known": 3.11.1 - "@polkadot/util": ^5.9.2 - "@polkadot/util-crypto": ^5.9.2 - bn.js: ^4.11.9 - checksum: d776e0f390daeb4438ebb897433bc946d639196ded94f1ac12b73680ee5a9cb340507b1654f02585975ac64a6784e502d95bc33df23ff74bb1d9b44b06e94c4f + "@polkadot/util": 6.4.1 + "@polkadot/util-crypto": 6.4.1 + checksum: 40b2fdae19317fc3263f7c51690d8694589fb82e373ba8a74ecd3718bdfe2067fb96164e072c8600a89b1468dc9fd191c45540fe556799f6f3513ad6076da049 languageName: node linkType: hard @@ -952,88 +923,57 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@npm:4.9.3-14": - version: 4.9.3-14 - resolution: "@polkadot/metadata@npm:4.9.3-14" +"@polkadot/metadata@npm:4.9.3-24": + version: 4.9.3-24 + resolution: "@polkadot/metadata@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/types": 4.9.3-14 - "@polkadot/types-known": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 - "@polkadot/util-crypto": ^6.3.2-9 + "@polkadot/types": 4.9.3-24 + "@polkadot/types-known": 4.9.3-24 + "@polkadot/util": ^6.4.1 + "@polkadot/util-crypto": ^6.4.1 bn.js: ^4.11.9 - checksum: 365e38a7be0ad8886eb960a26f0c4aa095b796144a9688a6f1536820f454f48e17a14b330e1573cf80730bd8baa43634e2a4c43140e682c0da1ae741843323b1 - languageName: node - linkType: hard - -"@polkadot/networks@npm:5.9.2, @polkadot/networks@npm:^5.9.2": - version: 5.9.2 - resolution: "@polkadot/networks@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - checksum: 42a2022af8217a3bf77003d98e0ae3ff351005250bbeab504a612c7af719314eeccde93f0588aed64b1f8949cf924d51894d27836e9cc2c4a273cb8f1761db4a - languageName: node - linkType: hard - -"@polkadot/networks@npm:6.3.1, @polkadot/networks@npm:^6.0.5, @polkadot/networks@npm:^6.3.1": - version: 6.3.1 - resolution: "@polkadot/networks@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - checksum: 24fea684b71efdf77ac7fbe0da0871c4ea617e9c66c5d3fce5ba627005bafc3874d62559689d72f427795a077319aa96c95114f351037f404f3defa0008b8097 + checksum: 2fdc205c8c62a04d2f9185aac80cd8360b5afce911c4bf250cd53a503d714b841f52b00d1ee7882d442ddd94f06820e132b0c72114b2d5d66568ae0f3cf5fc37 languageName: node linkType: hard -"@polkadot/networks@npm:6.3.2-12, @polkadot/networks@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/networks@npm:6.3.2-12" +"@polkadot/networks@npm:6.4.1, @polkadot/networks@npm:^6.0.5, @polkadot/networks@npm:^6.3.1, @polkadot/networks@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/networks@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - checksum: 935cb0cda68aa45f241265f4330da4d89809b3c4bb8287d36f9d188cd1e9924100e1d0ca140c5fd64506a9a337c149350edeaac5ca4b8ea51103fce0c45439b5 + checksum: 87acb72f006bf321e6d6b45942639708861f1922e05b7378b36bffbe1aa0d4549c7846e376ddcd6d0f5b05616d12bb21d65342b7a7dce78a78d2fab7effec3bb languageName: node linkType: hard -"@polkadot/rpc-core@npm:4.9.3-14": - version: 4.9.3-14 - resolution: "@polkadot/rpc-core@npm:4.9.3-14" +"@polkadot/rpc-core@npm:4.9.3-24": + version: 4.9.3-24 + resolution: "@polkadot/rpc-core@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/metadata": 4.9.3-14 - "@polkadot/rpc-provider": 4.9.3-14 - "@polkadot/types": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 - "@polkadot/x-rxjs": ^6.3.2-9 - checksum: bef4b14c6e755903404076bfe1ce01aaf5bd54e8819e5d394d006457f166051837ca3f8915677060bb58f285173e256e6da810fba8a4e7e486018af2c301e67c + "@polkadot/metadata": 4.9.3-24 + "@polkadot/rpc-provider": 4.9.3-24 + "@polkadot/types": 4.9.3-24 + "@polkadot/util": ^6.4.1 + "@polkadot/x-rxjs": ^6.4.1 + checksum: 12b905fb3e325da4a2b0f9f6501b85020386ecdc7156fd725ccc35fb4b198675451c6c9bfcb279c270de51c37aecf799fb9d0066302272e69c80685ba6939545 languageName: node linkType: hard -"@polkadot/rpc-provider@npm:4.9.3-14": - version: 4.9.3-14 - resolution: "@polkadot/rpc-provider@npm:4.9.3-14" +"@polkadot/rpc-provider@npm:4.9.3-24": + version: 4.9.3-24 + resolution: "@polkadot/rpc-provider@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/types": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 - "@polkadot/util-crypto": ^6.3.2-9 - "@polkadot/x-fetch": ^6.3.2-9 - "@polkadot/x-global": ^6.3.2-9 - "@polkadot/x-ws": ^6.3.2-9 + "@polkadot/types": 4.9.3-24 + "@polkadot/util": ^6.4.1 + "@polkadot/util-crypto": ^6.4.1 + "@polkadot/x-fetch": ^6.4.1 + "@polkadot/x-global": ^6.4.1 + "@polkadot/x-ws": ^6.4.1 bn.js: ^4.11.9 eventemitter3: ^4.0.7 - checksum: 92bc828dc7b64d9aeaf4924d25556022f940510a0f56c9082708f00c7bee558c0103e4576535665f509ef40ec85d6dce03c43d75cca168ec63462281b1d50f5d - languageName: node - linkType: hard - -"@polkadot/types-known@npm:3.11.1": - version: 3.11.1 - resolution: "@polkadot/types-known@npm:3.11.1" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/networks": ^5.9.2 - "@polkadot/types": 3.11.1 - "@polkadot/util": ^5.9.2 - bn.js: ^4.11.9 - checksum: 52bcb902a0bb9bcfb47e57cd5a26fefa1d8010de1a618500217a65a2ea97d07486877eb77579262e09e66f95e4831fe669a10cac3fcc6e0d8035bce759dc5011 + checksum: 2a07efcd88880691b72b376a322c7d74d4d17f7ffcb044f69bb5c6c541e878603b541c3df41cab4721d4b358c280a3c81806731a4ac6d12a04ae9939d8afad74 languageName: node linkType: hard @@ -1063,31 +1003,16 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-known@npm:4.9.3-14": - version: 4.9.3-14 - resolution: "@polkadot/types-known@npm:4.9.3-14" +"@polkadot/types-known@npm:4.9.3-24": + version: 4.9.3-24 + resolution: "@polkadot/types-known@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/networks": ^6.3.2-9 - "@polkadot/types": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 + "@polkadot/networks": ^6.4.1 + "@polkadot/types": 4.9.3-24 + "@polkadot/util": ^6.4.1 bn.js: ^4.11.9 - checksum: e966f880b003aa4b26cdceec3fe47bac7dc8774d77964d7faf0cea07fea2580bf3252d4a42673227d72b7274d0a29cb3a5e5fbd563f89b2db2bf935b4a36bb8d - languageName: node - linkType: hard - -"@polkadot/types@npm:3.11.1, @polkadot/types@npm:~3.11.1": - version: 3.11.1 - resolution: "@polkadot/types@npm:3.11.1" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/metadata": 3.11.1 - "@polkadot/util": ^5.9.2 - "@polkadot/util-crypto": ^5.9.2 - "@polkadot/x-rxjs": ^5.9.2 - "@types/bn.js": ^4.11.6 - bn.js: ^4.11.9 - checksum: 7af682222081f1664a8616380ca6be92adf6c97b814a73f0b7fc8b573fb4839640491be728bfe3b75f7c7b4d61a42fe375659d82a07887907a62f68bc76a2526 + checksum: 5ba4dfb865940a93c96cb9b392233c67ccf444d1701678b4cf8521631d29572672f7660d11aba566a34e790f0ce66b34572e2d9730f3087233702e53208aeb6c languageName: node linkType: hard @@ -1106,7 +1031,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:4.9.2, @polkadot/types@npm:^4.4.1": +"@polkadot/types@npm:4.9.2, @polkadot/types@npm:^4.2.1, @polkadot/types@npm:~4.9.2": version: 4.9.2 resolution: "@polkadot/types@npm:4.9.2" dependencies: @@ -1121,56 +1046,30 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:4.9.3-14": - version: 4.9.3-14 - resolution: "@polkadot/types@npm:4.9.3-14" +"@polkadot/types@npm:4.9.3-24": + version: 4.9.3-24 + resolution: "@polkadot/types@npm:4.9.3-24" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/metadata": 4.9.3-14 - "@polkadot/util": ^6.3.2-9 - "@polkadot/util-crypto": ^6.3.2-9 - "@polkadot/x-rxjs": ^6.3.2-9 + "@polkadot/metadata": 4.9.3-24 + "@polkadot/util": ^6.4.1 + "@polkadot/util-crypto": ^6.4.1 + "@polkadot/x-rxjs": ^6.4.1 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 - checksum: 9078a62ec01d3df2841df2d3831df32a537b485b18265d682b128998a5f30536c17a11c1415d3774105f746133c6e92564828692cd800eefc33184c13275e924 + checksum: 26d57e8d0e7e1dddae671469426d1ffe20cf046d44a2f5a741b8c010edf97567b37246793ed2386c1ceab96719039151b9269ae658e2079d99b5866e43e79022 languageName: node linkType: hard -"@polkadot/util-crypto@npm:6.3.1, @polkadot/util-crypto@npm:^6.0.5, @polkadot/util-crypto@npm:^6.3.1": - version: 6.3.1 - resolution: "@polkadot/util-crypto@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@polkadot/networks": 6.3.1 - "@polkadot/util": 6.3.1 - "@polkadot/wasm-crypto": ^4.0.2 - "@polkadot/x-randomvalues": 6.3.1 - base-x: ^3.0.8 - base64-js: ^1.5.1 - blakejs: ^1.1.0 - bn.js: ^4.11.9 - create-hash: ^1.2.0 - elliptic: ^6.5.4 - hash.js: ^1.1.7 - js-sha3: ^0.8.0 - scryptsy: ^2.1.0 - tweetnacl: ^1.0.3 - xxhashjs: ^0.2.2 - peerDependencies: - "@polkadot/util": 6.3.1 - checksum: 69004aaf5a5dd44b909292e671bd357336bfec5ce0d0a5feea09c3c310242a41dd2f69488520510aeba948b80faef0352645a2ca0cdf2c0f5a384bf0dc49a403 - languageName: node - linkType: hard - -"@polkadot/util-crypto@npm:6.3.2-12, @polkadot/util-crypto@npm:^6.3.2-9, @polkadot/util-crypto@npm:beta": - version: 6.3.2-12 - resolution: "@polkadot/util-crypto@npm:6.3.2-12" +"@polkadot/util-crypto@npm:6.4.1, @polkadot/util-crypto@npm:^6.0.5, @polkadot/util-crypto@npm:^6.3.1, @polkadot/util-crypto@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/util-crypto@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/networks": 6.3.2-12 - "@polkadot/util": 6.3.2-12 + "@polkadot/networks": 6.4.1 + "@polkadot/util": 6.4.1 "@polkadot/wasm-crypto": ^4.0.2 - "@polkadot/x-randomvalues": 6.3.2-12 + "@polkadot/x-randomvalues": 6.4.1 base-x: ^3.0.8 base64-js: ^1.5.1 blakejs: ^1.1.0 @@ -1183,49 +1082,8 @@ __metadata: tweetnacl: ^1.0.3 xxhashjs: ^0.2.2 peerDependencies: - "@polkadot/util": 6.3.2-12 - checksum: 5a3003299a6b85674770b4221cc1f248a356f662d3d81580bc3ebe9177cb95ad7b19d9c67a00d23e50450dafbca5a2be8732f5d50066ba795103b5a0945521f2 - languageName: node - linkType: hard - -"@polkadot/util-crypto@npm:^5.9.2": - version: 5.9.2 - resolution: "@polkadot/util-crypto@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/networks": 5.9.2 - "@polkadot/util": 5.9.2 - "@polkadot/wasm-crypto": ^3.2.4 - "@polkadot/x-randomvalues": 5.9.2 - base-x: ^3.0.8 - base64-js: ^1.5.1 - blakejs: ^1.1.0 - bn.js: ^4.11.9 - create-hash: ^1.2.0 - elliptic: ^6.5.4 - hash.js: ^1.1.7 - js-sha3: ^0.8.0 - scryptsy: ^2.1.0 - tweetnacl: ^1.0.3 - xxhashjs: ^0.2.2 - peerDependencies: - "@polkadot/util": 5.9.2 - checksum: b8283aaa82b9910e09bbbc4daf3b9de0f24099bc1fd03d36b7e1450c81b56f60112777670ca722f8f43dd189dc4c70cad6182078214fd1036ae57284670e4883 - languageName: node - linkType: hard - -"@polkadot/util@npm:5.9.2, @polkadot/util@npm:^5.9.2": - version: 5.9.2 - resolution: "@polkadot/util@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/x-textdecoder": 5.9.2 - "@polkadot/x-textencoder": 5.9.2 - "@types/bn.js": ^4.11.6 - bn.js: ^4.11.9 - camelcase: ^5.3.1 - ip-regex: ^4.3.0 - checksum: a4662b170fbdf41188024f8438d9bd434158aaf25cb8f7e0c0c25ede384f64ffa48224a9a4eb14a3f1c026ec5061cf9b4ce4e850f9222518deb42ab5d6efb091 + "@polkadot/util": 6.4.1 + checksum: eef9f8c73bbe8c7caefc905b09d175d4a0190d703bd4a8e65723dc2a5eadeb3646eac6b1a3c1034fe97bcf982aa0a3f7e4e4da01226d6993be488fa7c760684a languageName: node linkType: hard @@ -1244,42 +1102,18 @@ __metadata: languageName: node linkType: hard -"@polkadot/util@npm:6.3.1, @polkadot/util@npm:^6.0.5, @polkadot/util@npm:^6.3.1": - version: 6.3.1 - resolution: "@polkadot/util@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@polkadot/x-textdecoder": 6.3.1 - "@polkadot/x-textencoder": 6.3.1 - "@types/bn.js": ^4.11.6 - bn.js: ^4.11.9 - camelcase: ^5.3.1 - ip-regex: ^4.3.0 - checksum: a4d6e19d9933e70bab809f23dbb0b99d4152333e8c1128b94117cec6e6ea28021379d28ad49c95ab2065743ab4b7555d34e4ab1ae3cb80105b74d490bdb4142a - languageName: node - linkType: hard - -"@polkadot/util@npm:6.3.2-12, @polkadot/util@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/util@npm:6.3.2-12" +"@polkadot/util@npm:6.4.1, @polkadot/util@npm:^6.0.5, @polkadot/util@npm:^6.3.1, @polkadot/util@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/util@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/x-textdecoder": 6.3.2-12 - "@polkadot/x-textencoder": 6.3.2-12 + "@polkadot/x-textdecoder": 6.4.1 + "@polkadot/x-textencoder": 6.4.1 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 camelcase: ^5.3.1 ip-regex: ^4.3.0 - checksum: cb65bdee9ea7684dbd0dfd26290d7184bd23c7663b63ed927c580b7167a0c505ed9bb49f938e26e5221e89585bb9dd9cc03b77b0da7f4109a9af16527d8c2dba - languageName: node - linkType: hard - -"@polkadot/wasm-crypto-asmjs@npm:^3.2.4": - version: 3.2.4 - resolution: "@polkadot/wasm-crypto-asmjs@npm:3.2.4" - dependencies: - "@babel/runtime": ^7.13.7 - checksum: b6909a042c975e739ca5b725e809ab5ca8c35e34da980ad1e81d4e4f0d6e1e5e9dba140b63c3264f6e59df5428346c0a92b089588e909cf934c85011741956d0 + checksum: dce56aa96b60233cd72c7c7c615b972cdab069cbbd355c87ffbc32c292aff32e6b7bb35b1b365362eab454a876069c0006348282d9807f8846a2ecd9afc16c0d languageName: node linkType: hard @@ -1292,15 +1126,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto-wasm@npm:^3.2.4": - version: 3.2.4 - resolution: "@polkadot/wasm-crypto-wasm@npm:3.2.4" - dependencies: - "@babel/runtime": ^7.13.7 - checksum: 7963e8c6a16e4c42733fcc85d6dcddb44452427be968059c2b6cacfdb65a4b23a329f7a568fbf7a6b210106b71097f4be329050a75780717de2d47d37d5a5201 - languageName: node - linkType: hard - "@polkadot/wasm-crypto-wasm@npm:^4.0.2": version: 4.0.2 resolution: "@polkadot/wasm-crypto-wasm@npm:4.0.2" @@ -1310,20 +1135,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto@npm:^3.2.4": - version: 3.2.4 - resolution: "@polkadot/wasm-crypto@npm:3.2.4" - dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/wasm-crypto-asmjs": ^3.2.4 - "@polkadot/wasm-crypto-wasm": ^3.2.4 - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: 23a93e6fd9638dcd4f5116a4b9d94dea9e7e7e5dd4f98a96c52d352d7afa159f0717240c252dada49c8b9d74cea04656d5dfae70551926ca616cc08baa41167e - languageName: node - linkType: hard - "@polkadot/wasm-crypto@npm:^4.0.2": version: 4.0.2 resolution: "@polkadot/wasm-crypto@npm:4.0.2" @@ -1338,26 +1149,15 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-fetch@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/x-fetch@npm:6.3.2-12" +"@polkadot/x-fetch@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-fetch@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/x-global": 6.3.2-12 + "@polkadot/x-global": 6.4.1 "@types/node-fetch": ^2.5.10 node-fetch: ^2.6.1 - checksum: 5d9d3e1077eb616a806868ecf1463e8f8d67c73d6ff10c83bd478082c2bb912f8a007bb733a5951c2a9e025a879d69fc7e30b46d7b359313168b6548bf93b639 - languageName: node - linkType: hard - -"@polkadot/x-global@npm:5.9.2": - version: 5.9.2 - resolution: "@polkadot/x-global@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - "@types/node-fetch": ^2.5.8 - node-fetch: ^2.6.1 - checksum: 5b36492c847169375c146b60dc35f37e5b7feba5ce164d1fcc78806d1f3e4f1d7ce84b59a345a7035e9d58fab617ea7e5101553717519e330490ac0f21404498 + checksum: 0cfe81498eba0ba84602deb09de6c889d9dccc3df43c1ddbba2302264ef27de3d4f9a3d323985fc6b99d8a45851fa53c56e5929e143fd813e768fbb2140d93c6 languageName: node linkType: hard @@ -1372,95 +1172,34 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-global@npm:6.3.1": - version: 6.3.1 - resolution: "@polkadot/x-global@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@types/node-fetch": ^2.5.10 - node-fetch: ^2.6.1 - checksum: fa8ffbdc402da35ef5d19716030c8294680abf798d139d17d819f227f7bdcc2b4fb838986c8ce78c2873c12581e5c0af04070b39c3e4f9bc3f0a53e3bcf2f262 - languageName: node - linkType: hard - -"@polkadot/x-global@npm:6.3.2-12, @polkadot/x-global@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/x-global@npm:6.3.2-12" +"@polkadot/x-global@npm:6.4.1, @polkadot/x-global@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-global@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 "@types/node-fetch": ^2.5.10 node-fetch: ^2.6.1 - checksum: 9b22e33e97dfa42ea6ec4fdb9385025184f88b70eca8c38b02129c01f06a196c16c95f142df0d05938b4fe5c006fcf29662d37b4e44a1db169d20e880993df37 + checksum: 396c051cf05fe9354ffa801b73f11617c10a72dc4f86950137b2db804d6a3229c7177b4747225a0685efa46090ee6652a471fadec50fb02f78c6c1700770c3ed languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:5.9.2": - version: 5.9.2 - resolution: "@polkadot/x-randomvalues@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.9.2 - checksum: 1004af57c79ed62ac5457f6f3748aa410ec0c93314e87a71d9e9f09b35729f8b52398d7f0fdf1ac45c202b57db8ff06fd7147a40892f367e26a48347415ae124 - languageName: node - linkType: hard - -"@polkadot/x-randomvalues@npm:6.3.1": - version: 6.3.1 - resolution: "@polkadot/x-randomvalues@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@polkadot/x-global": 6.3.1 - checksum: 3f970f8623a917c36283a6301ca9158a47a51ca2d968a7c5a27d66fcb8376d0e86f68284090f37290a8855610f9a29d67a7cdb215cb0a6e8c8b2864612bef466 - languageName: node - linkType: hard - -"@polkadot/x-randomvalues@npm:6.3.2-12": - version: 6.3.2-12 - resolution: "@polkadot/x-randomvalues@npm:6.3.2-12" +"@polkadot/x-randomvalues@npm:6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-randomvalues@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/x-global": 6.3.2-12 - checksum: ddeb28fbaf8b6b96b30721c1b0ca5246fa228814d897f1ae26c3668099937bcd32f3825cd953da17e86a7f6fd95f50730a5f5fbc6c608cc5c39f3f70fedbb27f + "@polkadot/x-global": 6.4.1 + checksum: e16d39aa9d6765bb86a8a82cb6a596dea5303e153f505266b3b52b8f7febc7f9e84195fa5068b1fa4f13b33788fcbad0f30f0f5a3443803daea3d48d6eba330a languageName: node linkType: hard -"@polkadot/x-rxjs@npm:^5.9.2": - version: 5.9.2 - resolution: "@polkadot/x-rxjs@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - rxjs: ^6.6.6 - checksum: 4c5d2cf4b6ec8abd57fa14c909b226aeec8289c96e0a24c447d4c9fa565321be0c711f31417a567ede509f18bda1d42522cb0efd94549bd50f06541b63b6971d - languageName: node - linkType: hard - -"@polkadot/x-rxjs@npm:^6.0.5, @polkadot/x-rxjs@npm:^6.3.1": - version: 6.3.1 - resolution: "@polkadot/x-rxjs@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - rxjs: ^6.6.7 - checksum: 6c3e3a0785e583df6e1adfcc667f680ddb55d961883c14f62e49d6970b99a5aa577f6b63f436ae196ed7368ee21314be5c68dc230eeb7d8966dc38afe67561ff - languageName: node - linkType: hard - -"@polkadot/x-rxjs@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/x-rxjs@npm:6.3.2-12" +"@polkadot/x-rxjs@npm:^6.0.5, @polkadot/x-rxjs@npm:^6.3.1, @polkadot/x-rxjs@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-rxjs@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 rxjs: ^6.6.7 - checksum: a23078a62976faebcc910ce75a6c8651530fb2bc6afc54c793aa512042e3dd70263c5443ae340b2dd3f356473474d8536074c2d26699ea22ce238d7e241d9c02 - languageName: node - linkType: hard - -"@polkadot/x-textdecoder@npm:5.9.2": - version: 5.9.2 - resolution: "@polkadot/x-textdecoder@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.9.2 - checksum: 3644a73b13ef98d0026f87ee140a5debcc6d6a4cb965d1f1ccf214d2c154e06c8053c2453179eed599d771782bba15cb28311d9a2b7f30895b2d0a578b9af307 + checksum: cd73834f610d8cd5d7a229a013afede97364775a66459d74662d66f13fcdab962493185645680083cca05dc973a65c276c061d58a4513d59a3b323e6ef9ca35f languageName: node linkType: hard @@ -1474,33 +1213,13 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:6.3.1": - version: 6.3.1 - resolution: "@polkadot/x-textdecoder@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@polkadot/x-global": 6.3.1 - checksum: b917de465bc96c8adae88d36cf9de3bd459bc5987b755246a8e477082edbc74efa468983cff133da3dd6b38d0684c7183ee46aab2d5efd9b2912954266be50c2 - languageName: node - linkType: hard - -"@polkadot/x-textdecoder@npm:6.3.2-12": - version: 6.3.2-12 - resolution: "@polkadot/x-textdecoder@npm:6.3.2-12" +"@polkadot/x-textdecoder@npm:6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-textdecoder@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/x-global": 6.3.2-12 - checksum: 1d449f38ffd8f502ab1376ab3291928f2ed9e8203998ae600b5ff7532b0db06f89936f14c7b4ddf25b66cccd174daeea098f4646a4c93cec17ba3df091ded768 - languageName: node - linkType: hard - -"@polkadot/x-textencoder@npm:5.9.2": - version: 5.9.2 - resolution: "@polkadot/x-textencoder@npm:5.9.2" - dependencies: - "@babel/runtime": ^7.13.8 - "@polkadot/x-global": 5.9.2 - checksum: f96a47217110d165894bc098276b685114bfc8ffe10696760f73d24eb259ff9f94acd6719cf4b8c8c6ff74e3f164fb8bf29694bad59767e17e595d62f38bb2d7 + "@polkadot/x-global": 6.4.1 + checksum: f6d9c4c1c3292746f55d6898cd0668e35a92f18f55d3acaa8c3691c77b36affba2e05b8083c25130cd19cd83bd8a2a717d59e467cd94c352dc88c0e0237c5e65 languageName: node linkType: hard @@ -1514,42 +1233,25 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textencoder@npm:6.3.1": - version: 6.3.1 - resolution: "@polkadot/x-textencoder@npm:6.3.1" - dependencies: - "@babel/runtime": ^7.13.17 - "@polkadot/x-global": 6.3.1 - checksum: 80457f236f08cea895919d6cb29535eeece8ff2324956890b4f07dd59745ad2ef8344892ab0b2a9576ce624e576a706ec91a2cc9464c99fecb164c6bc891c8ac - languageName: node - linkType: hard - -"@polkadot/x-textencoder@npm:6.3.2-12": - version: 6.3.2-12 - resolution: "@polkadot/x-textencoder@npm:6.3.2-12" +"@polkadot/x-textencoder@npm:6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-textencoder@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/x-global": 6.3.2-12 - checksum: 04b5e6a466101134a6cce6fe9187a5b9e01ffd844dc867007a82d9c5b5ab4ac6acbf27819191aa70dd51406e3500c5d7e7931121e6bcc629e67419a0390d223e + "@polkadot/x-global": 6.4.1 + checksum: f276956fed01935bf5453c89cecaecd48ef1ebd53537d2960f134b0eefccdad0183107dafbc4edf74f24e0b402d5e3f830c6e0a488b2c5857587d540e2f8550b languageName: node linkType: hard -"@polkadot/x-ws@npm:^6.3.2-9": - version: 6.3.2-12 - resolution: "@polkadot/x-ws@npm:6.3.2-12" +"@polkadot/x-ws@npm:^6.4.1": + version: 6.4.1 + resolution: "@polkadot/x-ws@npm:6.4.1" dependencies: "@babel/runtime": ^7.14.0 - "@polkadot/x-global": 6.3.2-12 + "@polkadot/x-global": 6.4.1 "@types/websocket": ^1.0.2 websocket: ^1.0.34 - checksum: 0a61fe764b8a276b220236084f3224375d4879367fb3f5b2001b92cf307e0e4227378d7bdeed3b8543519eae3f2e2c20e4c248e7e1fc34eb2965bf114a71e66b - languageName: node - linkType: hard - -"@polymathnetwork/polymesh-types@npm:^0.0.2": - version: 0.0.2 - resolution: "@polymathnetwork/polymesh-types@npm:0.0.2" - checksum: 5dd78f39c4a1216e34dfe311c46bd892de2061db16899c8d8d9345d31f607ecec63a1a65bd9d79b6bacb7ae105597fefd7187f039216adc4d81049018f2e0f8b + checksum: b2bba50723c67b4cb9d289c0c0aa2248f4510eaafe4a03cbd51676b2c2b7fc03c20d14f78192a0b4cf7be2ff095111997737ffccefab4db361f803b9dbbd10b8 languageName: node linkType: hard @@ -1598,23 +1300,23 @@ __metadata: languageName: node linkType: hard -"@sora-substrate/type-definitions@npm:^1.2.1": - version: 1.2.2 - resolution: "@sora-substrate/type-definitions@npm:1.2.2" +"@sora-substrate/type-definitions@npm:^0.8.14": + version: 0.8.18 + resolution: "@sora-substrate/type-definitions@npm:0.8.18" dependencies: "@open-web3/orml-type-definitions": ^0.8.2-9 - checksum: ee07e8da708c12b01ab1239a865059f6ad948a09f4914f48d386ad565ee53e4ff10c7c327fc6b369f85948efbfe18acfd57d033bef6d2208a8427486c8d87733 + checksum: b9c0bdad9c60d6abe47e792307c69ee24e1a099b6cd561c88946b9dfca578fe664511ec0ce140c1d1b3104fd8b5508ab3f34cb8b49d1008991040f892e02cb21 languageName: node linkType: hard -"@subsocial/types@npm:^0.5.1-sub-2.0.1": - version: 0.5.1-sub-2.0.1 - resolution: "@subsocial/types@npm:0.5.1-sub-2.0.1" +"@subsocial/types@npm:^0.5.0-substrate2.0": + version: 0.5.2 + resolution: "@subsocial/types@npm:0.5.2" dependencies: - "@polkadot/types": ~3.11.1 + "@polkadot/types": ~4.9.2 "@subsocial/utils": ^0.4.39 cids: ^0.7.1 - checksum: 531f753d8a9735685d72cc66f2795ba2cb79403b886890b07aca72add923e6626668dbf9c678ae2d3881ea6b16e9752baf88156eb5969fdce87a310cc28a49df + checksum: 2944cb470a255143359eef077428248db0493f07167b53e22f9cbfa8253f02e118a33b252182f7377a24d4817b19a50e9d938c7eb40324e68b67b74b6d0e4dce languageName: node linkType: hard @@ -1641,8 +1343,8 @@ __metadata: resolution: "@substrate/api-sidecar@workspace:." dependencies: "@polkadot/api": beta - "@polkadot/apps-config": beta - "@polkadot/util-crypto": beta + "@polkadot/apps-config": ^0.90.1 + "@polkadot/util-crypto": ^6.4.1 "@substrate/calc": ^0.2.0 "@substrate/dev": ^0.5.2 "@types/express": ^4.17.11 @@ -1897,9 +1599,9 @@ __metadata: linkType: hard "@types/node@npm:*": - version: 15.0.2 - resolution: "@types/node@npm:15.0.2" - checksum: ea8dd741bf16ad3318cca505783b7c211a5c8bea49202f99ba88d2ce8a804e994e1fd1b575b994e434e8b8ead810da966d588ea112998f8fe8d95cd74c396f8a + version: 15.3.0 + resolution: "@types/node@npm:15.3.0" + checksum: 44039665ab71a6ec12e6637a9db4ec3123fdfaf52952ca8028a6f1b37c41c2d380e88d28a41e02693bf9d4815307e0ad938815bf8ffedc5f4d045855fa28db06 languageName: node linkType: hard @@ -1997,11 +1699,11 @@ __metadata: linkType: hard "@typescript-eslint/eslint-plugin@npm:^4.22.0": - version: 4.22.1 - resolution: "@typescript-eslint/eslint-plugin@npm:4.22.1" + version: 4.23.0 + resolution: "@typescript-eslint/eslint-plugin@npm:4.23.0" dependencies: - "@typescript-eslint/experimental-utils": 4.22.1 - "@typescript-eslint/scope-manager": 4.22.1 + "@typescript-eslint/experimental-utils": 4.23.0 + "@typescript-eslint/scope-manager": 4.23.0 debug: ^4.1.1 functional-red-black-tree: ^1.0.1 lodash: ^4.17.15 @@ -2014,66 +1716,66 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 6b3384e155583779285089e83b85a38f6c6965e6529b7b6bdcf630122164981c30139468d19fade482b7b45f007f9cd83b9c8c54eca385c8f0d6269bac2138be + checksum: 846ecf021aaa7de34ac306866e2aca5ffa89711bc2c4ffe916fc632dde880eb94f0665009161086d3d91ccc21f2600a27271e041de505363758548511c463907 languageName: node linkType: hard -"@typescript-eslint/experimental-utils@npm:4.22.1": - version: 4.22.1 - resolution: "@typescript-eslint/experimental-utils@npm:4.22.1" +"@typescript-eslint/experimental-utils@npm:4.23.0": + version: 4.23.0 + resolution: "@typescript-eslint/experimental-utils@npm:4.23.0" dependencies: "@types/json-schema": ^7.0.3 - "@typescript-eslint/scope-manager": 4.22.1 - "@typescript-eslint/types": 4.22.1 - "@typescript-eslint/typescript-estree": 4.22.1 + "@typescript-eslint/scope-manager": 4.23.0 + "@typescript-eslint/types": 4.23.0 + "@typescript-eslint/typescript-estree": 4.23.0 eslint-scope: ^5.0.0 eslint-utils: ^2.0.0 peerDependencies: eslint: "*" - checksum: ddea7a1af501e0ba2a551de68e436c6f65e8ec5d68bff4f00a71ffeba8b73160f30f92de5dbdf01dcfd3f3bf5ab1ea18fe00dbd6401a256b2960c60cf475aa29 + checksum: 8583b9f016c08199789e0439af3a77bc46304165d3878a5d0851dfbeee8d89807ceda9d33a74b8854022f7dfe82cbe1eb4debb59ce7085d7f376d79abf78d09d languageName: node linkType: hard "@typescript-eslint/parser@npm:^4.22.0": - version: 4.22.1 - resolution: "@typescript-eslint/parser@npm:4.22.1" + version: 4.23.0 + resolution: "@typescript-eslint/parser@npm:4.23.0" dependencies: - "@typescript-eslint/scope-manager": 4.22.1 - "@typescript-eslint/types": 4.22.1 - "@typescript-eslint/typescript-estree": 4.22.1 + "@typescript-eslint/scope-manager": 4.23.0 + "@typescript-eslint/types": 4.23.0 + "@typescript-eslint/typescript-estree": 4.23.0 debug: ^4.1.1 peerDependencies: eslint: ^5.0.0 || ^6.0.0 || ^7.0.0 peerDependenciesMeta: typescript: optional: true - checksum: ff57b68f83c984d146a00ad122f2e4bdf53649380e125f1764b66dce3bb7418c96729499987301c3daad2856c1a3a04f897c33cf36a9d7e48ddb8848ee608d74 + checksum: 364874cf13b50e8e7adf5a424f5b0364689046ebdffaa715146b5b2f25e008ed99bd52d190e33d1b06378bfa35f0c9140c26ccb943a01732e952ee2032bd715c languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:4.22.1": - version: 4.22.1 - resolution: "@typescript-eslint/scope-manager@npm:4.22.1" +"@typescript-eslint/scope-manager@npm:4.23.0": + version: 4.23.0 + resolution: "@typescript-eslint/scope-manager@npm:4.23.0" dependencies: - "@typescript-eslint/types": 4.22.1 - "@typescript-eslint/visitor-keys": 4.22.1 - checksum: 3309e33e8d8ad2ac5531a12055553817123346e63b64a77a67e429a3574c13334576dc9f11c632d9f01aa2ba07dfdc5d0840f90130fa9a764e10e0125c4f662b + "@typescript-eslint/types": 4.23.0 + "@typescript-eslint/visitor-keys": 4.23.0 + checksum: d51c7efa22946bc0d7d9d330b51fe114df1f8a9a64194d403043d6e3ed7564fea8452d8b57cbc74a92b03894fd6cc12e64445220961edbee2348421608e5fdc6 languageName: node linkType: hard -"@typescript-eslint/types@npm:4.22.1": - version: 4.22.1 - resolution: "@typescript-eslint/types@npm:4.22.1" - checksum: ce4e0673bff31ac2b75319aeaa9feffd4dd0a6cce7f335c50bcd654aa96774d168c14903990e905c7515b0df0974b050edc328d7866d329f8379b552f525cac5 +"@typescript-eslint/types@npm:4.23.0": + version: 4.23.0 + resolution: "@typescript-eslint/types@npm:4.23.0" + checksum: b0ddf4ca0176566f27388ea6b74a32d7efe585c79db998ec1d51515ab7ef88de651d4b531410a763ef73a04a645b181d78559960c08e6c9d0e21796cc0708888 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:4.22.1": - version: 4.22.1 - resolution: "@typescript-eslint/typescript-estree@npm:4.22.1" +"@typescript-eslint/typescript-estree@npm:4.23.0": + version: 4.23.0 + resolution: "@typescript-eslint/typescript-estree@npm:4.23.0" dependencies: - "@typescript-eslint/types": 4.22.1 - "@typescript-eslint/visitor-keys": 4.22.1 + "@typescript-eslint/types": 4.23.0 + "@typescript-eslint/visitor-keys": 4.23.0 debug: ^4.1.1 globby: ^11.0.1 is-glob: ^4.0.1 @@ -2082,21 +1784,21 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 7de4827b870324e668ec84fc2b40c76465e72bdec6b8eb47ca493378d9c81e0d76bb3c5d4396400c70254c6fd2d57c81bde1236fe760d698d20ead80a295ffc4 + checksum: dec87f62c7301f7f6dec1cd8b30c0d4ba6c86cb78c3acb2070ee7ca2fcf9e2d1613fbbfb64561c2f4a6267217d435f7a48b3b1189ada8c938e2814b2e9b05b09 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:4.22.1": - version: 4.22.1 - resolution: "@typescript-eslint/visitor-keys@npm:4.22.1" +"@typescript-eslint/visitor-keys@npm:4.23.0": + version: 4.23.0 + resolution: "@typescript-eslint/visitor-keys@npm:4.23.0" dependencies: - "@typescript-eslint/types": 4.22.1 + "@typescript-eslint/types": 4.23.0 eslint-visitor-keys: ^2.0.0 - checksum: b696851b5b7383368c29136374119ba53b39ca6f239899b00cd914c301c6c223c2e99541a6bb94f039511c160cc737b2773a2dc4fb8c817e2b079d0df12a0b94 + checksum: a5e86b76e37fa11d061c5b1dcbc77e8faca6afb112c93240880563cc26306c7ba52d9baa824fd8b75b9deda1736340f93f38cae1782d3fe9e4e46d335b6236d1 languageName: node linkType: hard -"@zeitgeistpm/type-defs@npm:^0.1.51": +"@zeitgeistpm/type-defs@npm:^0.1.47": version: 0.1.51 resolution: "@zeitgeistpm/type-defs@npm:0.1.51" checksum: e00b7a9c4614b3295bdb5b0a08db2048aa8b992c65bcca1e10069f80c11a0b58af5fb43ae9e4c9a57530ec88db7ac959e1decce1959d40ee72bcdd73b4bbcf04 @@ -2233,14 +1935,14 @@ __metadata: linkType: hard "ajv@npm:^8.0.1": - version: 8.2.0 - resolution: "ajv@npm:8.2.0" + version: 8.4.0 + resolution: "ajv@npm:8.4.0" dependencies: fast-deep-equal: ^3.1.1 json-schema-traverse: ^1.0.0 require-from-string: ^2.0.2 uri-js: ^4.2.2 - checksum: 949f891686134c49c9c98c401d29ccd9e0cbd5d2c76163edd21c3c6bea694a4f7e5108fdc0c55b4cc90de85c93a9356fc30b3a7fab222721db3e38c585c61053 + checksum: 0dcdfe0ecaafca2de60d01601c041853a1057f26bcb24de79484a3f6947486cad7b84d2779f93a9a315345451248aca14ed4996213905b42fac4ec11c7a76a6c languageName: node linkType: hard @@ -2874,9 +2576,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.30001219": - version: 1.0.30001223 - resolution: "caniuse-lite@npm:1.0.30001223" - checksum: 0a19e4c3689048cf7f6a47d348cc6dc849a141ae814634cc2c9b37a91dc5ba019c08d67ddf3549323ae4b13c84cb2a796204128bcd19f0dbbe844dab0058b25e + version: 1.0.30001228 + resolution: "caniuse-lite@npm:1.0.30001228" + checksum: a4eb04288e9b7f7bda158126f37e8dab97a5fc851dab192083f36906d8bf76e0526afa0692a662267ea4b3df0b0ba13f847457ac2be0f1ea209ec3013b7caabe languageName: node linkType: hard @@ -3857,9 +3559,9 @@ __metadata: linkType: hard "electron-to-chromium@npm:^1.3.723": - version: 1.3.727 - resolution: "electron-to-chromium@npm:1.3.727" - checksum: a090f19d382d78a5e22d1ccd656336c341ddd878fe0675613b53c24c12d0edbb8fe07e41ab5c42d49584617f3ece1650c20b2dceaaa3a1b583922fdf2b132b6b + version: 1.3.728 + resolution: "electron-to-chromium@npm:1.3.728" + checksum: 0ef494c972f783008af6f6e62aed24d8d41013944122e9a3810d342224f45b9a0a312127409f6ed776bd055b0e74e04ceb939a685d8013a7a4f7f7f6218a7e90 languageName: node linkType: hard @@ -4111,11 +3813,11 @@ __metadata: linkType: hard "eslint@npm:^7.22.0": - version: 7.25.0 - resolution: "eslint@npm:7.25.0" + version: 7.26.0 + resolution: "eslint@npm:7.26.0" dependencies: "@babel/code-frame": 7.12.11 - "@eslint/eslintrc": ^0.4.0 + "@eslint/eslintrc": ^0.4.1 ajv: ^6.10.0 chalk: ^4.0.0 cross-spawn: ^7.0.2 @@ -4153,7 +3855,7 @@ __metadata: v8-compile-cache: ^2.0.3 bin: eslint: bin/eslint.js - checksum: 6e1782e2264ebf987504746ee82e996bf0ef2c29a2eaea869b54cb8aa1eaf10945b1d563618515e65ac934ca626f3609282127773f45868ad4a98744458a3c62 + checksum: 08f99befd764fbd6ea811e9eec27d5c6b9dc9d1bbfe5ffa1016e4f1fe526a4f45ea127c4e30c554c423ee55eb290ce9af4fb7fedf9b7af3f84076a444c2bbdf6 languageName: node linkType: hard @@ -5486,11 +5188,11 @@ fsevents@^2.1.2: linkType: hard "is-core-module@npm:^2.2.0": - version: 2.3.0 - resolution: "is-core-module@npm:2.3.0" + version: 2.4.0 + resolution: "is-core-module@npm:2.4.0" dependencies: has: ^1.0.3 - checksum: d2268331320c70c9b42850de7d224c610cf77604771922614e82536668bde99420f387dae092b66ff8d15980710b1dbd8ce67e6a3168f86b93f654f624d70957 + checksum: caa2b30873ed14dff76e5351e3c55a677b890cf19cc4263e9894702eb4bd64f81ce78552daad878ba72adcdc9e62cad45ca57928fc8b4bdc84a7ff8acf934389 languageName: node linkType: hard @@ -7091,14 +6793,13 @@ fsevents@^2.1.2: languageName: node linkType: hard -"moonbeam-types-bundle@npm:1.1.13": - version: 1.1.13 - resolution: "moonbeam-types-bundle@npm:1.1.13" +"moonbeam-types-bundle@npm:1.1.12": + version: 1.1.12 + resolution: "moonbeam-types-bundle@npm:1.1.12" dependencies: - "@polkadot/keyring": ^6.0.5 - "@polkadot/types": ^4.4.1 + "@polkadot/types": ^4.2.1 typescript: ^4.1.3 - checksum: 7ae44d652adbbbea6d6b43ba24715e22f38d578625bbccd15f4ce0b411ad765dcdf41e2d16a0b87dd53f7747d16a2e6883d8888689d046839e6f648c8dda0d6f + checksum: 0dd7768c2aa058ae2a25df65a5fef4d744bf2ab98a0bc883530906b700e7aff9a42936a34746c2c7138ee72cf70f04e65e10ed98ece2f8d70bfd189575b3ee30 languageName: node linkType: hard @@ -7299,9 +7000,9 @@ fsevents@^2.1.2: linkType: hard "node-releases@npm:^1.1.71": - version: 1.1.71 - resolution: "node-releases@npm:1.1.71" - checksum: 9e283003f1deafd0ca7f9bbde9c4b5b05d880ca165217f5227b37406626d6689a246a5c4c72f9a8512be65cd51b13cc7d0f5d8bc68ad36089b620f1810292340 + version: 1.1.72 + resolution: "node-releases@npm:1.1.72" + checksum: a9ded860baa3c90fa6fde2e1be597959b238940cda1e5bbeceb5de6a16faa1db81982b629429fd6ebbec98f7dd241378cda5918a57c9baf68cb6a6e002b4fc15 languageName: node linkType: hard @@ -7902,11 +7603,11 @@ fsevents@^2.1.2: linkType: hard "prettier@npm:^2.2.1": - version: 2.2.1 - resolution: "prettier@npm:2.2.1" + version: 2.3.0 + resolution: "prettier@npm:2.3.0" bin: prettier: bin-prettier.js - checksum: 92c6c9f4b87eba1f28466edee57dd18c80d00b858edda77d46d1950d20e6e302b68ee255fc91133ba931e63c4577b5ae30da194d9626a8f3c0177778b91bf056 + checksum: 652640cc8b71bc5277cfb8bf6f161783ca588efcf683c3d630837b39da8d57fef35c9e00ae5855a8e3c75136c42274046c913cc2b2d2968558315f31c6a26981 languageName: node linkType: hard @@ -8453,7 +8154,7 @@ fsevents@^2.1.2: languageName: node linkType: hard -"rxjs@npm:^6.6.6, rxjs@npm:^6.6.7": +"rxjs@npm:^6.6.7": version: 6.6.7 resolution: "rxjs@npm:6.6.7" dependencies: @@ -9231,8 +8932,8 @@ fsevents@^2.1.2: linkType: hard "table@npm:^6.0.4": - version: 6.7.0 - resolution: "table@npm:6.7.0" + version: 6.7.1 + resolution: "table@npm:6.7.1" dependencies: ajv: ^8.0.1 lodash.clonedeep: ^4.5.0 @@ -9240,7 +8941,7 @@ fsevents@^2.1.2: slice-ansi: ^4.0.0 string-width: ^4.2.0 strip-ansi: ^6.0.0 - checksum: 87ab315355fb76e42be583c0e6cfbf4a0359e2a3360125f50292e3a063e7e4b382c0a51107a227d9549680d5008abdb900dfe6b79d20312cab950c2f9d327d98 + checksum: 66107046b7226051552d53c1260facfed03f4050373d3888620af7b1353f6a5429d9a4a5fb796c56c29b9dd5ffca7b661a815f42ec392cb5956432585578772a languageName: node linkType: hard @@ -9681,11 +9382,11 @@ typescript@3.9.6: linkType: hard "uglify-js@npm:^3.1.4": - version: 3.13.5 - resolution: "uglify-js@npm:3.13.5" + version: 3.13.6 + resolution: "uglify-js@npm:3.13.6" bin: uglifyjs: bin/uglifyjs - checksum: ecc73f27818cca8ceea729d9118dd01e47491db1e7a19184076a454e4da51fc3a5881c5ffac56531675ef008b147f6df794d67ff9b3263ea8e5fd8d11799fb56 + checksum: 73138b225359ad4f10f009982c5a6c34521b8254036581b9d0f40cb4a423d7667f1c3460e5f96d6e6d280e89969207c08682d7420feb81c385937ba63c5c7a59 languageName: node linkType: hard