From 2c5d36db041342651ec59c54b233411ac6f6b0ec Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Tue, 21 Jun 2022 14:59:36 +0300 Subject: [PATCH 1/4] update events --- api/src/DebugMode.ts | 2 +- api/src/GearApi.ts | 9 +- api/src/events/Events.ts | 5 +- api/src/events/GearEventData.ts | 149 ++++++++---------------------- api/src/events/GearEvents.ts | 90 +++--------------- api/test/Gas.test.ts | 10 +- api/test/ProgramsInteract.test.ts | 30 ++---- api/test/SubmitCode.test.ts | 20 ++-- api/test/Waitlist.test.ts | 24 ++--- api/test/testSequencer.js | 1 + api/test/utilsFunctions.ts | 111 +++++++++++++--------- 11 files changed, 163 insertions(+), 288 deletions(-) diff --git a/api/src/DebugMode.ts b/api/src/DebugMode.ts index f5d0e65b2e..b622d23d2c 100644 --- a/api/src/DebugMode.ts +++ b/api/src/DebugMode.ts @@ -17,7 +17,7 @@ export class DebugMode extends GearTransaction { return this.api.query.system.events((events) => { events .filter(({ event }) => this.api.events.gearDebug.DebugDataSnapshot.is(event)) - .forEach(({ event }) => callback(new DebugDataSnapshot(event))); + .forEach(({ event }) => callback(event as DebugDataSnapshot)); }); } } diff --git a/api/src/GearApi.ts b/api/src/GearApi.ts index 6f2c34e411..a05f2eea78 100644 --- a/api/src/GearApi.ts +++ b/api/src/GearApi.ts @@ -1,3 +1,7 @@ +import { ApiPromise, WsProvider } from '@polkadot/api'; +import { Event } from '@polkadot/types/interfaces'; +import { SpRuntimeDispatchError } from '@polkadot/types/lookup'; +import { RegistryError } from '@polkadot/types-codec/types'; import { GearProgram } from './Program'; import { GearMessage } from './Message'; import { GearBalance } from './Balance'; @@ -7,14 +11,11 @@ import { GearMessageReply } from './MessageReply'; import { GearWaitlist } from './Waitlist'; import { gearRpc, gearTypes } from './default'; import { GearApiOptions } from './types/interfaces'; -import { ApiPromise, WsProvider } from '@polkadot/api'; -import { ContractExecResultErr, Event } from '@polkadot/types/interfaces'; import { GearBlock } from './Blocks'; import { GearStorage } from './Storage'; import { GearMailbox } from './Mailbox'; import { GearClaimValue } from './Claim'; import { GearCode } from './Code'; -import { RegistryError } from '@polkadot/types-codec/types'; export class GearApi extends ApiPromise { public program: GearProgram; @@ -93,7 +94,7 @@ export class GearApi extends ApiPromise { * @returns */ getExtrinsicFailedError(event: Event): RegistryError { - const error = event.data[0] as ContractExecResultErr; + const error = event.data[0] as SpRuntimeDispatchError; const { isModule, asModule } = error; return isModule ? this.registry.findMetaError(asModule) : null; diff --git a/api/src/events/Events.ts b/api/src/events/Events.ts index 409e21b78f..e96c0b5ce1 100644 --- a/api/src/events/Events.ts +++ b/api/src/events/Events.ts @@ -1,9 +1,8 @@ import { UnsubscribePromise } from '@polkadot/api/types'; import { GearApi } from '../GearApi'; import { ISystemAccountInfo, IBalanceCallback, IBlocksCallback } from '../types/interfaces'; -import { createEventClass } from './GearEvents'; -import { Transfer } from './GearEvents'; import { IGearEvent } from './types'; +import { Transfer } from './GearEvents'; export class GearEvents { private api: GearApi; @@ -20,7 +19,7 @@ export class GearEvents { events .filter(({ event }) => event.method === method) .forEach(({ event }) => { - callback(createEventClass(method, event)); + callback(event as IGearEvent[M]); }); }); } diff --git a/api/src/events/GearEventData.ts b/api/src/events/GearEventData.ts index a4e48848eb..2d6a93bf10 100644 --- a/api/src/events/GearEventData.ts +++ b/api/src/events/GearEventData.ts @@ -21,132 +21,65 @@ export class GearEventData extends GenericEventData { } } -export class MessageEnqueuedData extends GearEventData { - public get id(): MessageId { - return this[0] as MessageId; - } - - public get source(): UserId { - return this[1] as UserId; - } - - public get destination(): ProgramId { - return this[2] as ProgramId; - } - - public get entry(): Entry { - return this[3] as Entry; - } +export interface MessageEnqueuedData extends GenericEventData { + id: MessageId; + source: UserId; + destination: ProgramId; + entry: Entry; } -export class UserMessageSentData extends GearEventData { - public get id(): MessageId { - return this[0]['id']; - } - public get source(): ProgramId { - return this[0]['source']; - } - public get destination(): UserId { - return this[0]['destination']; - } - public get payload(): Vec { - return this[0]['payload']; - } - public get value(): u128 { - return this[0]['value']; - } - public get reply(): Option { - return this[0]['reply']; - } - public get expiration(): BlockNumber { - return this[1] as BlockNumber; - } +export interface UserMessageSentData extends GenericEventData { + message: { + id: MessageId; + source: ProgramId; + destination: UserId; + payload: Vec; + value: u128; + reply: Option; + }; + expiration: BlockNumber; } -export class UserMessageReadData extends GearEventData { - public get id(): MessageId { - return this[0] as MessageId; - } - - public get reason(): UserMessageReadReason { - return this[1] as UserMessageReadReason; - } +export interface UserMessageReadData extends GenericEventData { + id: MessageId; + reason: UserMessageReadReason; } -export class MessagesDispatchedData extends GearEventData { - public get total(): u32 { - return this[0] as u32; - } - - public get statuses(): BTreeMap { - return this[1] as BTreeMap; - } - - public get stateChanged(): BTreeSet { - return this[2] as BTreeSet; - } +export interface MessagesDispatchedData extends GenericEventData { + total: u32; + statuses: BTreeMap; + stateChanged: BTreeSet; } -export class MessageWaitedData extends GearEventData { - public get id(): MessageId { - return this[0] as MessageId; - } - - public get origin(): Option { - return this[1] as Option; - } - - public get reason(): MessageWaitedReason { - return this[2] as MessageWaitedReason; - } - - public get expiration(): BlockNumber { - return this[3] as BlockNumber; - } +export interface MessageWaitedData extends GenericEventData { + id: MessageId; + origin: Option; + reason: MessageWaitedReason; + expiration: BlockNumber; } -export class MessageWokenData extends GearEventData { - public get id(): MessageId { - return this[0] as MessageId; - } - - public get reason(): MessageWokenReason { - return this[1] as MessageWokenReason; - } +export interface MessageWakenData extends GenericEventData { + id: MessageId; + reason: MessageWokenReason; } -export class CodeChangedData extends GearEventData { - public get id(): CodeId { - return this[0] as CodeId; - } - public get change(): CodeChangeKind { - return this[1] as CodeChangeKind; - } +export interface CodeChangedData extends GenericEventData { + id: CodeId; + change: CodeChangeKind; } -export class ProgramChangedData extends GearEventData { - public get id(): ProgramId { - return this[0] as ProgramId; - } - public get change(): ProgramChangedKind { - return this[1] as ProgramChangedKind; - } +export interface ProgramChangedData extends GenericEventData { + id: ProgramId; + change: ProgramChangedKind; } -export class DebugData extends GearEventData { - public get dispatchQueue(): Vec { - return this[0]['dispatchQueue']; - } - - public get programs(): Vec { - return this[0]['programs']; - } +export interface DebugData extends GenericEventData { + dispatchQueue: Vec; + programs: Vec; } -export class DebugModeData extends GearEventData { - public get enabled(): Bool { - return this[0] as Bool; - } +export interface DebugModeData extends GenericEventData { + enabled: Bool; } export class TransferData extends GearEventData { diff --git a/api/src/events/GearEvents.ts b/api/src/events/GearEvents.ts index 5f58ea8c43..e1ead48a25 100644 --- a/api/src/events/GearEvents.ts +++ b/api/src/events/GearEvents.ts @@ -6,80 +6,37 @@ import { MessageEnqueuedData, MessagesDispatchedData, MessageWaitedData, - MessageWokenData, ProgramChangedData, TransferData, UserMessageReadData, UserMessageSentData, DebugModeData, + MessageWakenData, } from './GearEventData'; -import { IGearEvent } from './types'; -export class GearGenericEvent extends GenericEvent { - constructor(event: Event) { - super(event.registry, event.toU8a()); - } +export interface GearEvent extends GenericEvent { + data: D; } -export class MessageEnqueued extends GearGenericEvent { - public get data(): MessageEnqueuedData { - return new MessageEnqueuedData(this.getT('data')); - } -} +export interface MessageEnqueued extends GearEvent {} -export class UserMessageSent extends GearGenericEvent { - public get data(): UserMessageSentData { - return new UserMessageSentData(this.getT('data')); - } -} +export interface UserMessageSent extends GearEvent {} -export class UserMessageRead extends GearGenericEvent { - public get data(): UserMessageReadData { - return new UserMessageReadData(this.getT('data')); - } -} +export interface UserMessageRead extends GearEvent {} -export class MessagesDispatched extends GearGenericEvent { - public get data(): MessagesDispatchedData { - return new MessagesDispatchedData(this.getT('data')); - } -} +export interface MessagesDispatched extends GearEvent {} -export class MessageWaited extends GearGenericEvent { - public get data(): MessageWaitedData { - return new MessageWaitedData(this.getT('data')); - } -} +export interface MessageWaited extends GearEvent {} -export class MessageWaken extends GearGenericEvent { - public get data(): MessageWokenData { - return new MessageWokenData(this.getT('data')); - } -} +export interface MessageWaken extends GearEvent {} -export class CodeChanged extends GearGenericEvent { - public get data(): CodeChangedData { - return new CodeChangedData(this.getT('data')); - } -} +export interface CodeChanged extends GearEvent {} -export class ProgramChanged extends GearGenericEvent { - public get data(): ProgramChangedData { - return new ProgramChangedData(this.getT('data')); - } -} +export interface ProgramChanged extends GearEvent {} -export class DebugDataSnapshot extends GearGenericEvent { - public get data(): DebugData { - return new DebugData(this.getT('data')); - } -} +export interface DebugDataSnapshot extends GearEvent {} -export class DebugMode extends GearGenericEvent { - public get data(): DebugModeData { - return new DebugModeData(this.getT('data')); - } -} +export interface DebugMode extends GearEvent {} export class Transfer extends GenericEvent { constructor(event: Event) { @@ -90,24 +47,3 @@ export class Transfer extends GenericEvent { return new TransferData(this.get('data') as GenericEventData); } } - -const events = { - MessageEnqueued: MessageEnqueued, - UserMessageSent: UserMessageSent, - UserMessageRead: UserMessageRead, - MessagesDispatched: MessagesDispatched, - MessageWaited: MessageWaited, - MessageWaken: MessageWaken, - CodeChanged: CodeChanged, - ProgramChanged: ProgramChanged, - DebugDataSnapshot: DebugDataSnapshot, - DebugMode: DebugMode, -}; - -export function createEventClass( - method: M, - event: Event, -): IGearEvent[M] { - const class_ = new events[method](event) as IGearEvent[M]; - return class_; -} diff --git a/api/test/Gas.test.ts b/api/test/Gas.test.ts index c777170b81..7a09d86959 100644 --- a/api/test/Gas.test.ts +++ b/api/test/Gas.test.ts @@ -68,11 +68,11 @@ describe('Calculate gas', () => { }); const waitForReply = listenToUserMessageSent(api, programId); await sendTransaction(api.message, alice, 'MessageEnqueued'); - const umsData = await waitForReply(null); //transactionData[0]); - expect(umsData.id).toBeDefined(); - messageId = umsData.id.toHex(); - expect(umsData.reply).toBeDefined(); - expect(umsData.reply.isNone).toBeTruthy(); + const { message } = await waitForReply(null); //transactionData[0]); + expect(message.id).toBeDefined(); + messageId = message.id.toHex(); + expect(message.reply).toBeDefined(); + expect(message.reply.isNone).toBeTruthy(); exitCode = 0; //umsData.reply.unwrap()[1].toNumber(); expect(exitCode).toBeDefined(); }); diff --git a/api/test/ProgramsInteract.test.ts b/api/test/ProgramsInteract.test.ts index 1534522b27..753d247920 100644 --- a/api/test/ProgramsInteract.test.ts +++ b/api/test/ProgramsInteract.test.ts @@ -16,10 +16,7 @@ import { GEAR_EXAMPLES_WASM_DIR } from './config'; const programs = new Map(); const messages = new Map(); const api = new GearApi(); -const accounts = { - alice: undefined, - bob: undefined, -}; +let accounts = {}; let testFiles: { title: string; @@ -53,7 +50,7 @@ let testFiles: { beforeAll(async () => { await api.isReady; - [accounts.alice, accounts.bob] = await getAccount(); + [accounts['alice'], accounts['bob']] = await getAccount(); }); afterAll(async () => { @@ -85,20 +82,14 @@ describe('Upload program', () => { meta, metaFile, }); - const unsubs = []; // Check program initialization - const status = checkInit(api, programs.get(`${testFile.title}.${program.id}`).id); + const status = checkInit(api, programId); const transactionData = await sendTransaction(api.program, accounts[program.account], 'MessageEnqueued'); - expect(transactionData[2]).toBe(programs.get(`${testFile.title}.${program.id}`).id); + expect(transactionData.destination).toBe(programId); expect(await status()).toBe('success'); - - unsubs.forEach(async (unsub) => { - (await unsub)(); - }); - return; }); } }); @@ -116,7 +107,6 @@ describe('Send Message', () => { if (message.asHex) { payload = CreateType.create(meta.handle_input, payload, meta).toHex(); } - api.message.submit( { destination: program.id, @@ -135,13 +125,13 @@ describe('Send Message', () => { expect(transactionData).toBeDefined(); if (message.log) { - const reply = await waitForReply(transactionData[0]); + const reply = await waitForReply(transactionData.id); messages.set(`${testFile.title}.${message.id}`, { - logId: reply.id.toHex(), - source: reply.source.toHex(), + logId: reply.message.id.toHex(), + source: reply.message.source.toHex(), }); - expect(reply?.reply.unwrap()[1].toNumber()).toBe(0); - expect(reply?.payload.toHex()).toBe(message.log); + expect(reply?.message.reply.unwrap()[1].toNumber()).toBe(0); + expect(reply?.message.payload.toHex()).toBe(message.log); } }); } @@ -161,7 +151,7 @@ describe('Read Mailbox', () => { if (claim) { const submitted = api.claimValueFromMailbox.submit(messageId); const transactionData = await sendTransaction(submitted, accounts[account], 'UserMessageRead'); - expect(transactionData[0]).toBe(messageId); + expect(transactionData.id).toBe(messageId); mailbox = await api.mailbox.read(GearKeyring.decodeAddress(accounts[account].address)); expect(mailbox.filter((value) => value[0][1] === messageId).length).toBe(0); } diff --git a/api/test/SubmitCode.test.ts b/api/test/SubmitCode.test.ts index 715bde70cf..352488718d 100644 --- a/api/test/SubmitCode.test.ts +++ b/api/test/SubmitCode.test.ts @@ -1,24 +1,20 @@ -import { readFileSync, readdirSync } from 'fs'; +import { readFileSync } from 'fs'; import { join } from 'path'; -import yaml from 'js-yaml'; import { getAccount, sendTransaction, sleep } from './utilsFunctions'; import { GearApi } from '../lib'; import { GEAR_EXAMPLES_WASM_DIR } from './config'; const api = new GearApi(); -const accounts = { - alice: undefined, - bob: undefined, -}; +const accounts = {}; beforeAll(async () => { await api.isReady; - [accounts.alice] = await getAccount(); + [accounts['alice']] = await getAccount(); }); afterAll(async () => { await api.disconnect(); - await sleep(2000); + await sleep(1000); }); describe('Submit code', () => { @@ -27,9 +23,9 @@ describe('Submit code', () => { const { codeHash } = api.code.submit(code); expect(codeHash).toBeDefined(); - const transactionData = await sendTransaction(api.code, accounts.alice, 'CodeChanged'); - expect(transactionData[0]).toBe(codeHash); - expect(transactionData[1]).toHaveProperty('Active'); - expect(transactionData[1].Active).toHaveProperty('expiration'); + const transactionData = await sendTransaction(api.code, accounts['alice'], 'CodeChanged'); + expect(transactionData.id).toBe(codeHash); + expect(transactionData.change).toHaveProperty('Active'); + expect(transactionData.change.Active).toHaveProperty('expiration'); }); }); diff --git a/api/test/Waitlist.test.ts b/api/test/Waitlist.test.ts index 8f29299cf3..9c2132117e 100644 --- a/api/test/Waitlist.test.ts +++ b/api/test/Waitlist.test.ts @@ -8,10 +8,10 @@ import { KeyringPair } from '@polkadot/keyring/types'; const api = new GearApi(); const CODE_PATH = join(TEST_WASM_DIR, 'test_waitlist.opt.wasm'); -let alice: KeyringPair = undefined; -let programId: Hex = undefined; -let messageId: Hex = undefined; -let messageWaited: (messageId: Hex) => MessageWaitedData; +let alice: KeyringPair; +let programId: Hex; +let messageId: Hex; +let messageWaited: (messageId: Hex) => Promise; beforeAll(async () => { await api.isReady; @@ -32,14 +32,14 @@ afterAll(async () => { describe('GearWaitlist', () => { test(`read program's waitlist`, async () => { api.message.submit({ destination: programId, payload: '0x00', gasLimit: 2_000_000_000 }); - messageId = (await sendTransaction(api.message, alice, 'MessageEnqueued'))[0]; - const event = messageWaited(messageId); - expect(event).toBeDefined(); - expect(event).toHaveProperty('reason'); - expect(event.reason.isRuntime).toBeTruthy(); - expect(event.reason.asRuntime.isWaitCalled).toBeTruthy(); - expect(event).toHaveProperty('expiration'); - expect(event).toHaveProperty('origin'); + messageId = (await sendTransaction(api.message, alice, 'MessageEnqueued')).id; + const eventData = await messageWaited(messageId); + expect(eventData).toBeDefined(); + expect(eventData).toHaveProperty('reason'); + expect(eventData.reason.isRuntime).toBeTruthy(); + expect(eventData.reason.asRuntime.isWaitCalled).toBeTruthy(); + expect(eventData).toHaveProperty('expiration'); + expect(eventData).toHaveProperty('origin'); const waitlist = await api.waitlist.read(programId); expect(waitlist).toHaveLength(1); expect(waitlist[0].programId).toBe(programId); diff --git a/api/test/testSequencer.js b/api/test/testSequencer.js index 61b0c381ea..e215687052 100644 --- a/api/test/testSequencer.js +++ b/api/test/testSequencer.js @@ -2,6 +2,7 @@ const Sequencer = require('@jest/test-sequencer').default; class CustomSequencer extends Sequencer { sort(tests) { + console.log(tests); const copyTests = Array.from(tests); return copyTests.sort((testA, testB) => (testA.path > testB.path ? 1 : -1)); } diff --git a/api/test/utilsFunctions.ts b/api/test/utilsFunctions.ts index eb7038688d..4ab0ec1481 100644 --- a/api/test/utilsFunctions.ts +++ b/api/test/utilsFunctions.ts @@ -1,47 +1,55 @@ import { UnsubscribePromise } from '@polkadot/api/types'; -import { GearApi, GearKeyring, Hex, IGearEvent, MessageWaitedData, UserMessageSent, UserMessageSentData } from '../src'; +import { + GearApi, + GearKeyring, + Hex, + IGearEvent, + MessageWaitedData, + UserMessageSent, + UserMessageSentData, + MessageEnqueued, + MessagesDispatched, + ProgramChanged, +} from '../src'; export const checkInit = (api: GearApi, programId: string) => { - let unsubs: UnsubscribePromise[] = []; - let messageId = undefined; - unsubs.push( - api.gearEvents.subscribeToGearEvent('MessageEnqueued', (event) => { - if (event.data.destination.eq(programId) && event.data.entry.isInit) { - messageId = event.data.id.toHex(); - } - }), - ); - const resultPromise = Promise.race([ - new Promise((resolve) => { - unsubs.push( - api.gearEvents.subscribeToGearEvent('ProgramChanged', (event) => { - if (event.data.id.eq(programId) && event.data.change.isActive) { - resolve('success'); - } - }), - ); - }), - new Promise((resolve) => { - unsubs.push( - api.gearEvents.subscribeToGearEvent('UserMessageSent', (event) => { - if ( - event.data.source.eq(programId) && - event.data.reply.unwrap()[0].eq(messageId) && - !event.data.reply.unwrap()[1].eq(0) - ) { - resolve('failed'); - } - }), - ); - }), - ]); + let unsub: UnsubscribePromise; + let messageId: Hex; + const initPromise = new Promise((resolve, reject) => { + unsub = api.query.system.events((events) => { + events.forEach(({ event }) => { + switch (event.method) { + case 'MessageEnqueued': + const meEvent = event as MessageEnqueued; + if (meEvent.data.destination.eq(programId) && meEvent.data.entry.isInit) { + messageId = meEvent.data.id.toHex(); + } + break; + case 'MessagesDispatched': + const mdEvent = event as MessagesDispatched; + for (let [id, status] of mdEvent.data.statuses) { + if (id.eq(messageId)) { + if (status.isFailed) { + reject('failed'); + break; + } + } + } + break; + case 'ProgramChanged': + const pcEvent = event as ProgramChanged; + if (pcEvent.data.id.eq(programId) && pcEvent.data.change.isActive) { + resolve('success'); + } + break; + } + }); + }); + }); return async () => { - const result = await resultPromise; - for (let unsubPromise of unsubs) { - const unsub = await unsubPromise; - unsub(); - } + const result = await initPromise; + (await unsub)(); return result; }; }; @@ -49,23 +57,30 @@ export const checkInit = (api: GearApi, programId: string) => { export const listenToUserMessageSent = (api: GearApi, programId: Hex) => { const messages: UserMessageSent[] = []; const unsub = api.gearEvents.subscribeToGearEvent('UserMessageSent', (event) => { - if (event.data.source.eq(programId)) { + if (event.data.message.source.eq(programId)) { messages.push(event); } }); return async (messageId: Hex | null): Promise => { - const message = messages.find(({ data: { reply } }) => - messageId === null ? reply.isNone : reply.isSome && reply.unwrap()[0].eq(messageId), + const message = messages.find( + ({ + data: { + message: { reply }, + }, + }) => (messageId === null ? reply.isNone : reply.isSome && reply.unwrap()[0].eq(messageId)), ); (await unsub)(); - return message?.data; + if (!message) { + throw new Error(`UserMessageSent not found`); + } + return message.data; }; }; export const sendTransaction = async (submitted: any, account: any, methodName: keyof IGearEvent): Promise => { return new Promise((resolve, reject) => { submitted - .signAndSend(account, ({ events = [], status }) => { + .signAndSend(account, ({ events, status }) => { events.forEach(({ event: { method, data } }) => { if (method === methodName && status.isFinalized) { resolve(data.toHuman()); @@ -93,11 +108,15 @@ export const testif = (condition: boolean) => (condition ? test : test.skip); export const listenToMessageWaited = (api: GearApi) => { const messages: MessageWaitedData[] = []; - api.gearEvents.subscribeToGearEvent('MessageWaited', (event) => { + const unsub = api.gearEvents.subscribeToGearEvent('MessageWaited', (event) => { messages.push(event.data); }); - return (messageId: Hex) => { + return async (messageId: Hex): Promise => { const message = messages.find(({ id }) => id.eq(messageId)); + (await unsub)(); + if (!message) { + throw new Error('MessageWaited not found'); + } return message; }; }; From 8046691e455b82e2cb50f7eed59cc79825f62110 Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Tue, 21 Jun 2022 15:33:14 +0300 Subject: [PATCH 2/4] bump @polkadot/api --- api/package-lock.json | 800 +++++++++++++++++++++--------------------- api/package.json | 2 +- 2 files changed, 397 insertions(+), 405 deletions(-) diff --git a/api/package-lock.json b/api/package-lock.json index fcde388003..88c8d2a8e3 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -34,7 +34,7 @@ "typescript": "4.7.3" }, "peerDependencies": { - "@polkadot/api": "^8.6.1", + "@polkadot/api": "^8.9.1", "@polkadot/wasm-crypto": "^6.1.1", "rxjs": "^7.5.5" } @@ -2562,15 +2562,21 @@ } }, "node_modules/@noble/hashes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", - "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.1.tgz", + "integrity": "sha512-Lkp9+NijmV7eSVZqiUvt3UCuuHeJpUVmRrvh430gyJjJiuJMqkeHf6/A9lQ/smmbWV/0spDeJscscPzyB4waZg==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], "peer": true }, "node_modules/@noble/secp256k1": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.5.5.tgz", - "integrity": "sha512-sZ1W6gQzYnu45wPrWx8D3kwI2/U29VYTx9OjbDAd7jwRItJ0cSTMPRL/C8AWZFn9kWFLQGqEXVEE86w4Z8LpIQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.0.tgz", + "integrity": "sha512-DWSsg8zMHOYMYBqIQi96BQuthZrp98LCeMNcUOaffCIVYQ5yxDbNikLF+H7jEnmNNmXbtVic46iCuVWzar+MgA==", "funding": [ { "type": "individual", @@ -2615,26 +2621,26 @@ } }, "node_modules/@polkadot/api": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-8.6.2.tgz", - "integrity": "sha512-dmgz9msxQG/K2ol7X0jlcZR1cPtw2qA9OhJ7GxGDc1t0WQiPtU/VRgZg4hBV2qR3n3V4fmbojQwPjBELzfhL+Q==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-8.9.1.tgz", + "integrity": "sha512-UwQ5hWPHruqnBO2hriaPhGaOwaWZx9MVECWFJzVs0ZuhKDge9jyBp+JXud/Ly/+8VbeokYUB0DSZG/gTAO5+vg==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/api-augment": "8.6.2", - "@polkadot/api-base": "8.6.2", - "@polkadot/api-derive": "8.6.2", - "@polkadot/keyring": "^9.3.1", - "@polkadot/rpc-augment": "8.6.2", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/rpc-provider": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-augment": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/types-create": "8.6.2", - "@polkadot/types-known": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", + "@polkadot/api-augment": "8.9.1", + "@polkadot/api-base": "8.9.1", + "@polkadot/api-derive": "8.9.1", + "@polkadot/keyring": "^9.5.1", + "@polkadot/rpc-augment": "8.9.1", + "@polkadot/rpc-core": "8.9.1", + "@polkadot/rpc-provider": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-augment": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/types-create": "8.9.1", + "@polkadot/types-known": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", "eventemitter3": "^4.0.7", "rxjs": "^7.5.5" }, @@ -2643,33 +2649,33 @@ } }, "node_modules/@polkadot/api-augment": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-8.6.2.tgz", - "integrity": "sha512-4qz/0ukMpYTO0QjPufV4bB0cMmCFHYsrDNT23KXwus2mSkn19nRN01Nhf8JqVAAqK1cMXfioQmL3Lmpfke6L/w==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-8.9.1.tgz", + "integrity": "sha512-yobYURNgoZcZD3QJmE34n3ZcEEUtsiivquckxjJMXnHJv3zahMyJh75tCNAXjzWn+e+SqKTVlgCpLXYlC1HJPQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/api-base": "8.6.2", - "@polkadot/rpc-augment": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-augment": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/api-base": "8.9.1", + "@polkadot/rpc-augment": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-augment": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/api-base": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-8.6.2.tgz", - "integrity": "sha512-x3AKw0BJZNYuVTOo4Nkv0wzjk2sK5GKmdN7TA7CmST2SZ+2CRiFFVXb4vXjZRp9wyJJWCuRFX+JhIXwlzWQVoA==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-8.9.1.tgz", + "integrity": "sha512-2OpS9ArZSuUu9vg2Y5DdK7r1iB1Bjx9e+6qerPGry8um+jI+EsHJESylw5OUrR2DxvtW3Ilrk4YvYpQPa9OB4w==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/util": "^9.3.1", + "@polkadot/rpc-core": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/util": "^9.5.1", "rxjs": "^7.5.5" }, "engines": { @@ -2677,20 +2683,20 @@ } }, "node_modules/@polkadot/api-derive": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-8.6.2.tgz", - "integrity": "sha512-ts7DSIeNpH4OH18+mrjq3KObcfHOd6A7C3Ddo2NZv7WmVbUZ9PoJ41jUQZ51szbgILY748ewNlhVsfd/qdVnTg==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-8.9.1.tgz", + "integrity": "sha512-zOuNK1tApg3iEC5N4yiOTaMKUykk4tkNU1htcnotOxflgdhYUi22l0JuCrEtrnG6TE2ZH8z1VQA/jK0MbLfC3A==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/api": "8.6.2", - "@polkadot/api-augment": "8.6.2", - "@polkadot/api-base": "8.6.2", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", + "@polkadot/api": "8.9.1", + "@polkadot/api-augment": "8.9.1", + "@polkadot/api-base": "8.9.1", + "@polkadot/rpc-core": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", "rxjs": "^7.5.5" }, "engines": { @@ -2698,64 +2704,64 @@ } }, "node_modules/@polkadot/keyring": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-9.3.1.tgz", - "integrity": "sha512-eoBWRhCzvcVHfpxJlmbKpe8HYjHRc1nkqPR8bnIEb+N8DyN38O7zOHVmy14VOGba1p/+nShULSEVLdfoCD5l3Q==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-9.5.1.tgz", + "integrity": "sha512-ixv2lq1zNzYa+GqZQTzcraNw5ZrTTK+2/sqfeMOIr7gBGk0UCALuK0NCvTRAUtQK1RT2psBkkm2lr/rrNCeK+A==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "9.3.1", - "@polkadot/util-crypto": "9.3.1" + "@polkadot/util": "9.5.1", + "@polkadot/util-crypto": "9.5.1" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { - "@polkadot/util": "9.3.1", - "@polkadot/util-crypto": "9.3.1" + "@polkadot/util": "9.5.1", + "@polkadot/util-crypto": "9.5.1" } }, "node_modules/@polkadot/networks": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-9.3.1.tgz", - "integrity": "sha512-7OUvO5hqXIeijlhTqhFy84lJzA7LRh6In2AbfOUHK6ES1np53Hcas+yEMC2EFNOdBYEsSjnfCjnp4Wd5t7LIHQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-9.5.1.tgz", + "integrity": "sha512-1q9jm7NLk1ZMqFJL+kYkpn1phEO+N0d5LU81ropjYf0hC9boBAya4Zqvv3DwasPuLp6qaj4r0nrfzmkP5xHKZQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "9.3.1", - "@substrate/ss58-registry": "^1.20.0" + "@polkadot/util": "9.5.1", + "@substrate/ss58-registry": "^1.22.0" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/rpc-augment": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-8.6.2.tgz", - "integrity": "sha512-1iUFTpkegFK6xRYohI0xN/tR6tIttfwwlP4FxlqkXhdeqd2aJx+KUkhsefK2yANfsnRl1//VGPfAMyQuePZAzg==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-8.9.1.tgz", + "integrity": "sha512-6TtZPVjvjcPy3w4lmcNu3MTU1h2YLkZBVNwUZFnZPhALc9qBy9ZcvkMODLPfD+mj+i8Fcfn4b7Ypj+sNqXFxUQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/rpc-core": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/rpc-core": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-8.6.2.tgz", - "integrity": "sha512-AJjzjgnKA3BZgYb3+eqECfIV/mBKH3xO0yn4fhf9O3vgUzJZgEr7JgGMyH0jxnBIAUp84VKlloRDwtRSElCa9A==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-8.9.1.tgz", + "integrity": "sha512-+mAkpxIX2kIovnIIf8uxqjXqPA/7LaeysfIPi8VGrVB3IqvLEaT2rWtCMRSFkBEZwYI7vP7PrAw9co6MMkXlUw==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/rpc-augment": "8.6.2", - "@polkadot/rpc-provider": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/util": "^9.3.1", + "@polkadot/rpc-augment": "8.9.1", + "@polkadot/rpc-provider": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/util": "^9.5.1", "rxjs": "^7.5.5" }, "engines": { @@ -2763,42 +2769,42 @@ } }, "node_modules/@polkadot/rpc-provider": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-8.6.2.tgz", - "integrity": "sha512-hUu4Jk3aVJd3Rqag3KkrUoEJqZh+RoppVWYYBUbWltmVv7rz0JJSYs6r+O7vKpEUqJk3Xfiy6tcKU7ajDTRCLw==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-8.9.1.tgz", + "integrity": "sha512-XunL29pi464VB6AJGuvVzTnCtk4y5KBwgBIC/S4YMdqi+l2ujXZOFM2WBnbiV+YhB7FEXmbYR8NsKAe/DSb85A==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/keyring": "^9.3.1", - "@polkadot/types": "8.6.2", - "@polkadot/types-support": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", - "@polkadot/x-fetch": "^9.3.1", - "@polkadot/x-global": "^9.3.1", - "@polkadot/x-ws": "^9.3.1", - "@substrate/connect": "0.7.5", + "@polkadot/keyring": "^9.5.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-support": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", + "@polkadot/x-fetch": "^9.5.1", + "@polkadot/x-global": "^9.5.1", + "@polkadot/x-ws": "^9.5.1", + "@substrate/connect": "0.7.6", "eventemitter3": "^4.0.7", - "mock-socket": "^9.1.4", - "nock": "^13.2.4" + "mock-socket": "^9.1.5", + "nock": "^13.2.6" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-8.6.2.tgz", - "integrity": "sha512-T35bTk0HojZPJGiJw5t1GFZhg+LU1S1xkZ4EmhxlxjK31dVJVVzwgafdp/fMaSWUKmr32X9mvxVIErtUtUUQ+A==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-8.9.1.tgz", + "integrity": "sha512-h43/aPzk+ta0MzzGQz3DiGtearttHxZr08xOdtU5GctI6u9MXm0n0w74clciLpIGu5CI+QxYN3oQ8/5WXTukMw==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/keyring": "^9.3.1", - "@polkadot/types-augment": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/types-create": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", + "@polkadot/keyring": "^9.5.1", + "@polkadot/types-augment": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/types-create": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", "rxjs": "^7.5.5" }, "engines": { @@ -2806,88 +2812,88 @@ } }, "node_modules/@polkadot/types-augment": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-8.6.2.tgz", - "integrity": "sha512-pY0siJ+2Jba4Vp0z7iif02pvkFZksWvCfmO19OH3lnY176mFwCJGnqvg8V1HIKAwbYZ3g4N2OSoWhB8zyKF63w==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-8.9.1.tgz", + "integrity": "sha512-kfSioIpB8krtNgIANN8QCik+uBFmxGACEq84oxiqbKc2BfTXzcqQ7jkmslXeEqb9IsQ9rpaa3fkvyoLQNLqXgA==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-codec": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-8.6.2.tgz", - "integrity": "sha512-A8be8y0Spu/lgKH0cif+vTXOTHzRkavrQNCH0oJ2uhdLpWUiwjLWFd6i7C/Nha1TxxECFTa0GzgM7l+uYVRRNQ==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-8.9.1.tgz", + "integrity": "sha512-bboHpTwvHooTdITsmJ5IqAyZDuONZaVs6xC3iRbE9SIHD4kUpivlTc+Rvk91EcQclFo5IUKvNrX4BrOx8Y/YnQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "^9.3.1" + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-create": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-8.6.2.tgz", - "integrity": "sha512-4amHTHOXDmHVf3DJENoBpTJ9a+O7dyBkRdehrFOBf84qQAA9DfvkoGjiVehDd+Txce7WnOyC8Ugo2Th3jhY+6A==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-8.9.1.tgz", + "integrity": "sha512-q7er671QXYcmG4gkZvtKpES7QV013w36s8VT947aT3GDzlGZDQQKNKpELyi7K1sgWjQyrL3/0cTKhP8taAjWPQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-known": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-8.6.2.tgz", - "integrity": "sha512-R8AazycMaOE49+AfjHJ+w+L10RB6wdjprIu0H6UU3oxKWR4fSvYFaEfuscAU7cywzfLnWAbB3wXTJzf2hCbcXg==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-8.9.1.tgz", + "integrity": "sha512-y5Fvo7TM9DjM/CNQbQsR78O5LP3CuBbQY90yA2APwqZNn/dilTxWIGrxtPzTG9QCZJyhMN+EZdKUo51brKRI/g==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/networks": "^9.3.1", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/types-create": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/networks": "^9.5.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/types-create": "8.9.1", + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-support": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-8.6.2.tgz", - "integrity": "sha512-z54SOCtIeCoK6DmEKvT7+c3sJl/ek4XpA8EQHcJ5mWl0GrR8iv5pliuqltcJuBG54YQxxgUKg1JJEtnFfcWkRA==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-8.9.1.tgz", + "integrity": "sha512-t3HJc8o68LWvhEy63PRZQxCL4T7sSsrLm7+rpkfeJAEC1DXeFF85FwE2U+YKa3+Z3NuMv2e4DV2jnIZe9XRtHQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "^9.3.1" + "@polkadot/util": "^9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/util": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-9.3.1.tgz", - "integrity": "sha512-WVsihsFMhM0eLylP5LybNh5opD3nzYBdPEIuHf5IiGbhk0pVQEWE3mqcR2fSvSDv3ArQG5KE5cq26JZDVunZlw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-9.5.1.tgz", + "integrity": "sha512-cI2ar15vkoXjs//YNn1yT5eUdK7jF32XNw3Oc6YJ2qEpenwy30c3BUQJOiqW7J6UBYLYll5O5y0ejv6LQoSFBQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-bigint": "9.3.1", - "@polkadot/x-global": "9.3.1", - "@polkadot/x-textdecoder": "9.3.1", - "@polkadot/x-textencoder": "9.3.1", + "@polkadot/x-bigint": "9.5.1", + "@polkadot/x-global": "9.5.1", + "@polkadot/x-textdecoder": "9.5.1", + "@polkadot/x-textencoder": "9.5.1", "@types/bn.js": "^5.1.0", "bn.js": "^5.2.1", "ip-regex": "^4.3.0" @@ -2897,20 +2903,20 @@ } }, "node_modules/@polkadot/util-crypto": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-9.3.1.tgz", - "integrity": "sha512-4Vd/FDMLhw9ceUVbBeafjvroHqWN2y85oydhiSN8WCr57ezsaknNPagovEGpUcUAWcrnRDngsxHRWmUmghEF6A==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-9.5.1.tgz", + "integrity": "sha512-4YwJJ2/mXx3PXTy4WLekQOo1MlDtQzYgTZsjOagi3Uz3Q/ITvS+/iu6eF/H6Tz0uEQjwX6t9tsMkM5FWk/XoGg==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@noble/hashes": "1.0.0", - "@noble/secp256k1": "1.5.5", - "@polkadot/networks": "9.3.1", - "@polkadot/util": "9.3.1", + "@noble/hashes": "1.1.1", + "@noble/secp256k1": "1.6.0", + "@polkadot/networks": "9.5.1", + "@polkadot/util": "9.5.1", "@polkadot/wasm-crypto": "^6.1.1", - "@polkadot/x-bigint": "9.3.1", - "@polkadot/x-randomvalues": "9.3.1", - "@scure/base": "1.0.0", + "@polkadot/x-bigint": "9.5.1", + "@polkadot/x-randomvalues": "9.5.1", + "@scure/base": "1.1.1", "ed2curve": "^0.3.0", "tweetnacl": "^1.0.3" }, @@ -2918,7 +2924,7 @@ "node": ">=14.0.0" }, "peerDependencies": { - "@polkadot/util": "9.3.1" + "@polkadot/util": "9.5.1" } }, "node_modules/@polkadot/wasm-bridge": { @@ -3022,27 +3028,27 @@ } }, "node_modules/@polkadot/x-bigint": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-9.3.1.tgz", - "integrity": "sha512-eBukzcqxLwAbCNZzfcLhgTtgjOlNVRnS8SETun1ChMzLG7Ytm65qx8wleIpeYQ/vDIT07pA1sDmw+4Bhg+5ALw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-9.5.1.tgz", + "integrity": "sha512-rTp7j3KvCy8vANRoaW6j0pCQdLc/eed6uSRXoxh3z1buJhw460/Q/hJ0Bey6fyeNSDzIwFk4SGwf/Gzf+kS1vQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-fetch": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-9.3.1.tgz", - "integrity": "sha512-ypWxDxJ0Lq2enRf1+XcHBNRNxm1UFcrYJbsrGZkaP+AOZdPQLWrFB/JigSXTXOS3KnuxWecqLwiFOHis4GicXg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-9.5.1.tgz", + "integrity": "sha512-jMWpDVE4CyH+vVuONmvcKlJJnsRqmglmJTppsl+38JTnGL2FbELn2q92N8b5uTxmPP0lf+QTn1THXnkWvG7Ojw==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1", - "@types/node-fetch": "^2.6.1", + "@polkadot/x-global": "9.5.1", + "@types/node-fetch": "^2.6.2", "node-fetch": "^2.6.7" }, "engines": { @@ -3050,9 +3056,9 @@ } }, "node_modules/@polkadot/x-global": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-9.3.1.tgz", - "integrity": "sha512-D/6wtyaZNDMIJ73fEoZbeDyULs1rBZc/pfLlSczo9efthOheZTY6KUIvPPrZFGd0b817j5Kex3ABcx7uYgWOjw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-9.5.1.tgz", + "integrity": "sha512-asG5YlW1K3f4YjyuZ+HrbF9H5d78i5v9+7Bh+9gD+sVfB3KhqwVYZB+wzOaJkPp6lwUbBA9OBHFCVBqpR3wBJw==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3" @@ -3062,52 +3068,52 @@ } }, "node_modules/@polkadot/x-randomvalues": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-9.3.1.tgz", - "integrity": "sha512-3X9aIKXweeZXAmwUsJIEwssHKVNxDbGH3A4IkqzUcxne7QyODjLSwAD84n6mDSye00gnqk6L0rb/IwF2Vf+PqA==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-9.5.1.tgz", + "integrity": "sha512-NFvG//NsBjFP01dEtQATNPn5lSAZwh6jkkUXG2rHlgvW6k8nVJ0aJPvO5MlgItgS5Ry2F88AIiSsO3cfoTpszg==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-textdecoder": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-9.3.1.tgz", - "integrity": "sha512-YJgcVUYvuGOkRcBVKTmE6ZXB7VpzMmhCy+DfHDijbnuRDywK0uM8zwXK7hCuPLwfZ8iLX/APpzM5ryNaleiIiA==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-9.5.1.tgz", + "integrity": "sha512-bY0J3Tov5y4oZi8qB/UtoEYCSgo5sDiiOa3Wmgen09LfB4gXJhWFGJSmcZqHERXCdEcmZojdbHTvOGSeYM9U1w==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-textencoder": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-9.3.1.tgz", - "integrity": "sha512-f0hnI5iV/JmwJGPzKAeJ4R9ojuFJWbIM9NIg+Q53Fg6PmJUpY2xQVh1BjzSwRy+lFy0ubfB7Fw9A8KBkDYxCSw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-9.5.1.tgz", + "integrity": "sha512-zt121nqxiudMeZnanpnfWhCE0SOTcVRqn/atqO59us/yf6LMTf23mgd7P4795TgJwXOUcui4fhm/g/VcpsLq9Q==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-ws": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-9.3.1.tgz", - "integrity": "sha512-9WoahcxygKcA7RWOeijW5Kzw6QG7QDc0MPFmygiNMuOqVeEP54c4Yrw1DirZnmRbedhms/OieskPDX4JvxlFmg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-9.5.1.tgz", + "integrity": "sha512-d91Hf7p9+mWqSvx+lZr0f7eVkHXGzNqvQnXYAizU1HE1HHl5gLixPKoGldTKrYhvV30OwKKDJChKHzvQL6nVdQ==", "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1", + "@polkadot/x-global": "9.5.1", "@types/websocket": "^1.0.5", "websocket": "^1.0.34" }, @@ -3215,9 +3221,9 @@ "dev": true }, "node_modules/@scure/base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", - "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", + "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", "funding": [ { "type": "individual", @@ -3251,13 +3257,13 @@ } }, "node_modules/@substrate/connect": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.5.tgz", - "integrity": "sha512-sdAZ6IGuTNxRGlH/O+6IaXvkYzZFwMK03VbQMgxUzry9dz1+JzyaNf8iOTVHxhMIUZc0h0E90JQz/hNiUYPlUw==", + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.6.tgz", + "integrity": "sha512-PHizR91CbjC5bzUwgYUZJrbOyoraCS1QqoxkFHteZ/0vkXDKyuzoixobDaITJqq6wSTeM8ZSjuOn9u/3q7F5+A==", "peer": true, "dependencies": { "@substrate/connect-extension-protocol": "^1.0.0", - "@substrate/smoldot-light": "0.6.16", + "@substrate/smoldot-light": "0.6.19", "eventemitter3": "^4.0.7" } }, @@ -3268,9 +3274,9 @@ "peer": true }, "node_modules/@substrate/smoldot-light": { - "version": "0.6.16", - "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.16.tgz", - "integrity": "sha512-Ej0ZdNPTW0EXbp45gv/5Kt/JV+c9cmRZRYAXg+EALxXPm0hW9h2QdVLm61A2PAskOGptW4wnJ1WzzruaenwAXQ==", + "version": "0.6.19", + "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.19.tgz", + "integrity": "sha512-Xi+v1cdURhTwx7NH+9fa1U9m7VGP61GvB6qwev9HrZXlGbQiUIvySxPlH/LMsq3mwgiRYkokPhcaZEHufY7Urg==", "peer": true, "dependencies": { "buffer": "^6.0.1", @@ -3395,9 +3401,9 @@ "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==" }, "node_modules/@types/node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", "peer": true, "dependencies": { "@types/node": "*", @@ -9476,8 +9482,7 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash.debounce": { "version": "4.0.8", @@ -9497,12 +9502,6 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==", - "peer": true - }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -9712,9 +9711,9 @@ } }, "node_modules/mock-socket": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.4.tgz", - "integrity": "sha512-zc7jF8FId8pD9ojxWLcXrv4c2nEFOb6o8giPb45yQ6BfQX1tWuUktHNFSiy+KBt0VhYtHNt5MFIzclt0LIynEA==", + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.5.tgz", + "integrity": "sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==", "peer": true, "engines": { "node": ">= 8" @@ -9798,14 +9797,14 @@ "peer": true }, "node_modules/nock": { - "version": "13.2.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.4.tgz", - "integrity": "sha512-8GPznwxcPNCH/h8B+XZcKjYPXnUV5clOKCjAqyjsiqA++MpNx9E9+t8YPp0MbThO+KauRo7aZJ1WuIZmOrT2Ug==", + "version": "13.2.7", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.7.tgz", + "integrity": "sha512-R6NUw7RIPtKwgK7jskuKoEi4VFMqIHtV2Uu9K/Uegc4TA5cqe+oNMYslZcUmnVNQCTG6wcSqUBaGTDd7sq5srg==", "peer": true, "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "propagate": "^2.0.0" }, "engines": { @@ -11926,7 +11925,7 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "peer": true }, "node_modules/trim-right": { @@ -12387,7 +12386,7 @@ "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", "peer": true }, "node_modules/websocket": { @@ -12425,7 +12424,7 @@ "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "peer": true, "dependencies": { "tr46": "~0.0.3", @@ -12537,7 +12536,7 @@ "node_modules/yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", + "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", "peer": true, "engines": { "node": ">=0.10.32" @@ -14409,15 +14408,15 @@ } }, "@noble/hashes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", - "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.1.tgz", + "integrity": "sha512-Lkp9+NijmV7eSVZqiUvt3UCuuHeJpUVmRrvh430gyJjJiuJMqkeHf6/A9lQ/smmbWV/0spDeJscscPzyB4waZg==", "peer": true }, "@noble/secp256k1": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.5.5.tgz", - "integrity": "sha512-sZ1W6gQzYnu45wPrWx8D3kwI2/U29VYTx9OjbDAd7jwRItJ0cSTMPRL/C8AWZFn9kWFLQGqEXVEE86w4Z8LpIQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.0.tgz", + "integrity": "sha512-DWSsg8zMHOYMYBqIQi96BQuthZrp98LCeMNcUOaffCIVYQ5yxDbNikLF+H7jEnmNNmXbtVic46iCuVWzar+MgA==", "peer": true }, "@nodelib/fs.scandir": { @@ -14447,250 +14446,250 @@ } }, "@polkadot/api": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-8.6.2.tgz", - "integrity": "sha512-dmgz9msxQG/K2ol7X0jlcZR1cPtw2qA9OhJ7GxGDc1t0WQiPtU/VRgZg4hBV2qR3n3V4fmbojQwPjBELzfhL+Q==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-8.9.1.tgz", + "integrity": "sha512-UwQ5hWPHruqnBO2hriaPhGaOwaWZx9MVECWFJzVs0ZuhKDge9jyBp+JXud/Ly/+8VbeokYUB0DSZG/gTAO5+vg==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/api-augment": "8.6.2", - "@polkadot/api-base": "8.6.2", - "@polkadot/api-derive": "8.6.2", - "@polkadot/keyring": "^9.3.1", - "@polkadot/rpc-augment": "8.6.2", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/rpc-provider": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-augment": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/types-create": "8.6.2", - "@polkadot/types-known": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", + "@polkadot/api-augment": "8.9.1", + "@polkadot/api-base": "8.9.1", + "@polkadot/api-derive": "8.9.1", + "@polkadot/keyring": "^9.5.1", + "@polkadot/rpc-augment": "8.9.1", + "@polkadot/rpc-core": "8.9.1", + "@polkadot/rpc-provider": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-augment": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/types-create": "8.9.1", + "@polkadot/types-known": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", "eventemitter3": "^4.0.7", "rxjs": "^7.5.5" } }, "@polkadot/api-augment": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-8.6.2.tgz", - "integrity": "sha512-4qz/0ukMpYTO0QjPufV4bB0cMmCFHYsrDNT23KXwus2mSkn19nRN01Nhf8JqVAAqK1cMXfioQmL3Lmpfke6L/w==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-8.9.1.tgz", + "integrity": "sha512-yobYURNgoZcZD3QJmE34n3ZcEEUtsiivquckxjJMXnHJv3zahMyJh75tCNAXjzWn+e+SqKTVlgCpLXYlC1HJPQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/api-base": "8.6.2", - "@polkadot/rpc-augment": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-augment": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/api-base": "8.9.1", + "@polkadot/rpc-augment": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-augment": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" } }, "@polkadot/api-base": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-8.6.2.tgz", - "integrity": "sha512-x3AKw0BJZNYuVTOo4Nkv0wzjk2sK5GKmdN7TA7CmST2SZ+2CRiFFVXb4vXjZRp9wyJJWCuRFX+JhIXwlzWQVoA==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-8.9.1.tgz", + "integrity": "sha512-2OpS9ArZSuUu9vg2Y5DdK7r1iB1Bjx9e+6qerPGry8um+jI+EsHJESylw5OUrR2DxvtW3Ilrk4YvYpQPa9OB4w==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/util": "^9.3.1", + "@polkadot/rpc-core": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/util": "^9.5.1", "rxjs": "^7.5.5" } }, "@polkadot/api-derive": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-8.6.2.tgz", - "integrity": "sha512-ts7DSIeNpH4OH18+mrjq3KObcfHOd6A7C3Ddo2NZv7WmVbUZ9PoJ41jUQZ51szbgILY748ewNlhVsfd/qdVnTg==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-8.9.1.tgz", + "integrity": "sha512-zOuNK1tApg3iEC5N4yiOTaMKUykk4tkNU1htcnotOxflgdhYUi22l0JuCrEtrnG6TE2ZH8z1VQA/jK0MbLfC3A==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/api": "8.6.2", - "@polkadot/api-augment": "8.6.2", - "@polkadot/api-base": "8.6.2", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", + "@polkadot/api": "8.9.1", + "@polkadot/api-augment": "8.9.1", + "@polkadot/api-base": "8.9.1", + "@polkadot/rpc-core": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", "rxjs": "^7.5.5" } }, "@polkadot/keyring": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-9.3.1.tgz", - "integrity": "sha512-eoBWRhCzvcVHfpxJlmbKpe8HYjHRc1nkqPR8bnIEb+N8DyN38O7zOHVmy14VOGba1p/+nShULSEVLdfoCD5l3Q==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-9.5.1.tgz", + "integrity": "sha512-ixv2lq1zNzYa+GqZQTzcraNw5ZrTTK+2/sqfeMOIr7gBGk0UCALuK0NCvTRAUtQK1RT2psBkkm2lr/rrNCeK+A==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "9.3.1", - "@polkadot/util-crypto": "9.3.1" + "@polkadot/util": "9.5.1", + "@polkadot/util-crypto": "9.5.1" } }, "@polkadot/networks": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-9.3.1.tgz", - "integrity": "sha512-7OUvO5hqXIeijlhTqhFy84lJzA7LRh6In2AbfOUHK6ES1np53Hcas+yEMC2EFNOdBYEsSjnfCjnp4Wd5t7LIHQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-9.5.1.tgz", + "integrity": "sha512-1q9jm7NLk1ZMqFJL+kYkpn1phEO+N0d5LU81ropjYf0hC9boBAya4Zqvv3DwasPuLp6qaj4r0nrfzmkP5xHKZQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "9.3.1", - "@substrate/ss58-registry": "^1.20.0" + "@polkadot/util": "9.5.1", + "@substrate/ss58-registry": "^1.22.0" } }, "@polkadot/rpc-augment": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-8.6.2.tgz", - "integrity": "sha512-1iUFTpkegFK6xRYohI0xN/tR6tIttfwwlP4FxlqkXhdeqd2aJx+KUkhsefK2yANfsnRl1//VGPfAMyQuePZAzg==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-8.9.1.tgz", + "integrity": "sha512-6TtZPVjvjcPy3w4lmcNu3MTU1h2YLkZBVNwUZFnZPhALc9qBy9ZcvkMODLPfD+mj+i8Fcfn4b7Ypj+sNqXFxUQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/rpc-core": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/rpc-core": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" } }, "@polkadot/rpc-core": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-8.6.2.tgz", - "integrity": "sha512-AJjzjgnKA3BZgYb3+eqECfIV/mBKH3xO0yn4fhf9O3vgUzJZgEr7JgGMyH0jxnBIAUp84VKlloRDwtRSElCa9A==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-8.9.1.tgz", + "integrity": "sha512-+mAkpxIX2kIovnIIf8uxqjXqPA/7LaeysfIPi8VGrVB3IqvLEaT2rWtCMRSFkBEZwYI7vP7PrAw9co6MMkXlUw==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/rpc-augment": "8.6.2", - "@polkadot/rpc-provider": "8.6.2", - "@polkadot/types": "8.6.2", - "@polkadot/util": "^9.3.1", + "@polkadot/rpc-augment": "8.9.1", + "@polkadot/rpc-provider": "8.9.1", + "@polkadot/types": "8.9.1", + "@polkadot/util": "^9.5.1", "rxjs": "^7.5.5" } }, "@polkadot/rpc-provider": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-8.6.2.tgz", - "integrity": "sha512-hUu4Jk3aVJd3Rqag3KkrUoEJqZh+RoppVWYYBUbWltmVv7rz0JJSYs6r+O7vKpEUqJk3Xfiy6tcKU7ajDTRCLw==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-8.9.1.tgz", + "integrity": "sha512-XunL29pi464VB6AJGuvVzTnCtk4y5KBwgBIC/S4YMdqi+l2ujXZOFM2WBnbiV+YhB7FEXmbYR8NsKAe/DSb85A==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/keyring": "^9.3.1", - "@polkadot/types": "8.6.2", - "@polkadot/types-support": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", - "@polkadot/x-fetch": "^9.3.1", - "@polkadot/x-global": "^9.3.1", - "@polkadot/x-ws": "^9.3.1", - "@substrate/connect": "0.7.5", + "@polkadot/keyring": "^9.5.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-support": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", + "@polkadot/x-fetch": "^9.5.1", + "@polkadot/x-global": "^9.5.1", + "@polkadot/x-ws": "^9.5.1", + "@substrate/connect": "0.7.6", "eventemitter3": "^4.0.7", - "mock-socket": "^9.1.4", - "nock": "^13.2.4" + "mock-socket": "^9.1.5", + "nock": "^13.2.6" } }, "@polkadot/types": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-8.6.2.tgz", - "integrity": "sha512-T35bTk0HojZPJGiJw5t1GFZhg+LU1S1xkZ4EmhxlxjK31dVJVVzwgafdp/fMaSWUKmr32X9mvxVIErtUtUUQ+A==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-8.9.1.tgz", + "integrity": "sha512-h43/aPzk+ta0MzzGQz3DiGtearttHxZr08xOdtU5GctI6u9MXm0n0w74clciLpIGu5CI+QxYN3oQ8/5WXTukMw==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/keyring": "^9.3.1", - "@polkadot/types-augment": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/types-create": "8.6.2", - "@polkadot/util": "^9.3.1", - "@polkadot/util-crypto": "^9.3.1", + "@polkadot/keyring": "^9.5.1", + "@polkadot/types-augment": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/types-create": "8.9.1", + "@polkadot/util": "^9.5.1", + "@polkadot/util-crypto": "^9.5.1", "rxjs": "^7.5.5" } }, "@polkadot/types-augment": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-8.6.2.tgz", - "integrity": "sha512-pY0siJ+2Jba4Vp0z7iif02pvkFZksWvCfmO19OH3lnY176mFwCJGnqvg8V1HIKAwbYZ3g4N2OSoWhB8zyKF63w==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-8.9.1.tgz", + "integrity": "sha512-kfSioIpB8krtNgIANN8QCik+uBFmxGACEq84oxiqbKc2BfTXzcqQ7jkmslXeEqb9IsQ9rpaa3fkvyoLQNLqXgA==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" } }, "@polkadot/types-codec": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-8.6.2.tgz", - "integrity": "sha512-A8be8y0Spu/lgKH0cif+vTXOTHzRkavrQNCH0oJ2uhdLpWUiwjLWFd6i7C/Nha1TxxECFTa0GzgM7l+uYVRRNQ==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-8.9.1.tgz", + "integrity": "sha512-bboHpTwvHooTdITsmJ5IqAyZDuONZaVs6xC3iRbE9SIHD4kUpivlTc+Rvk91EcQclFo5IUKvNrX4BrOx8Y/YnQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "^9.3.1" + "@polkadot/util": "^9.5.1" } }, "@polkadot/types-create": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-8.6.2.tgz", - "integrity": "sha512-4amHTHOXDmHVf3DJENoBpTJ9a+O7dyBkRdehrFOBf84qQAA9DfvkoGjiVehDd+Txce7WnOyC8Ugo2Th3jhY+6A==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-8.9.1.tgz", + "integrity": "sha512-q7er671QXYcmG4gkZvtKpES7QV013w36s8VT947aT3GDzlGZDQQKNKpELyi7K1sgWjQyrL3/0cTKhP8taAjWPQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/types-codec": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/types-codec": "8.9.1", + "@polkadot/util": "^9.5.1" } }, "@polkadot/types-known": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-8.6.2.tgz", - "integrity": "sha512-R8AazycMaOE49+AfjHJ+w+L10RB6wdjprIu0H6UU3oxKWR4fSvYFaEfuscAU7cywzfLnWAbB3wXTJzf2hCbcXg==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-8.9.1.tgz", + "integrity": "sha512-y5Fvo7TM9DjM/CNQbQsR78O5LP3CuBbQY90yA2APwqZNn/dilTxWIGrxtPzTG9QCZJyhMN+EZdKUo51brKRI/g==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/networks": "^9.3.1", - "@polkadot/types": "8.6.2", - "@polkadot/types-codec": "8.6.2", - "@polkadot/types-create": "8.6.2", - "@polkadot/util": "^9.3.1" + "@polkadot/networks": "^9.5.1", + "@polkadot/types": "8.9.1", + "@polkadot/types-codec": "8.9.1", + "@polkadot/types-create": "8.9.1", + "@polkadot/util": "^9.5.1" } }, "@polkadot/types-support": { - "version": "8.6.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-8.6.2.tgz", - "integrity": "sha512-z54SOCtIeCoK6DmEKvT7+c3sJl/ek4XpA8EQHcJ5mWl0GrR8iv5pliuqltcJuBG54YQxxgUKg1JJEtnFfcWkRA==", + "version": "8.9.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-8.9.1.tgz", + "integrity": "sha512-t3HJc8o68LWvhEy63PRZQxCL4T7sSsrLm7+rpkfeJAEC1DXeFF85FwE2U+YKa3+Z3NuMv2e4DV2jnIZe9XRtHQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/util": "^9.3.1" + "@polkadot/util": "^9.5.1" } }, "@polkadot/util": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-9.3.1.tgz", - "integrity": "sha512-WVsihsFMhM0eLylP5LybNh5opD3nzYBdPEIuHf5IiGbhk0pVQEWE3mqcR2fSvSDv3ArQG5KE5cq26JZDVunZlw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-9.5.1.tgz", + "integrity": "sha512-cI2ar15vkoXjs//YNn1yT5eUdK7jF32XNw3Oc6YJ2qEpenwy30c3BUQJOiqW7J6UBYLYll5O5y0ejv6LQoSFBQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-bigint": "9.3.1", - "@polkadot/x-global": "9.3.1", - "@polkadot/x-textdecoder": "9.3.1", - "@polkadot/x-textencoder": "9.3.1", + "@polkadot/x-bigint": "9.5.1", + "@polkadot/x-global": "9.5.1", + "@polkadot/x-textdecoder": "9.5.1", + "@polkadot/x-textencoder": "9.5.1", "@types/bn.js": "^5.1.0", "bn.js": "^5.2.1", "ip-regex": "^4.3.0" } }, "@polkadot/util-crypto": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-9.3.1.tgz", - "integrity": "sha512-4Vd/FDMLhw9ceUVbBeafjvroHqWN2y85oydhiSN8WCr57ezsaknNPagovEGpUcUAWcrnRDngsxHRWmUmghEF6A==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-9.5.1.tgz", + "integrity": "sha512-4YwJJ2/mXx3PXTy4WLekQOo1MlDtQzYgTZsjOagi3Uz3Q/ITvS+/iu6eF/H6Tz0uEQjwX6t9tsMkM5FWk/XoGg==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@noble/hashes": "1.0.0", - "@noble/secp256k1": "1.5.5", - "@polkadot/networks": "9.3.1", - "@polkadot/util": "9.3.1", + "@noble/hashes": "1.1.1", + "@noble/secp256k1": "1.6.0", + "@polkadot/networks": "9.5.1", + "@polkadot/util": "9.5.1", "@polkadot/wasm-crypto": "^6.1.1", - "@polkadot/x-bigint": "9.3.1", - "@polkadot/x-randomvalues": "9.3.1", - "@scure/base": "1.0.0", + "@polkadot/x-bigint": "9.5.1", + "@polkadot/x-randomvalues": "9.5.1", + "@scure/base": "1.1.1", "ed2curve": "^0.3.0", "tweetnacl": "^1.0.3" } @@ -14759,74 +14758,74 @@ } }, "@polkadot/x-bigint": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-9.3.1.tgz", - "integrity": "sha512-eBukzcqxLwAbCNZzfcLhgTtgjOlNVRnS8SETun1ChMzLG7Ytm65qx8wleIpeYQ/vDIT07pA1sDmw+4Bhg+5ALw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-9.5.1.tgz", + "integrity": "sha512-rTp7j3KvCy8vANRoaW6j0pCQdLc/eed6uSRXoxh3z1buJhw460/Q/hJ0Bey6fyeNSDzIwFk4SGwf/Gzf+kS1vQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" } }, "@polkadot/x-fetch": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-9.3.1.tgz", - "integrity": "sha512-ypWxDxJ0Lq2enRf1+XcHBNRNxm1UFcrYJbsrGZkaP+AOZdPQLWrFB/JigSXTXOS3KnuxWecqLwiFOHis4GicXg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-9.5.1.tgz", + "integrity": "sha512-jMWpDVE4CyH+vVuONmvcKlJJnsRqmglmJTppsl+38JTnGL2FbELn2q92N8b5uTxmPP0lf+QTn1THXnkWvG7Ojw==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1", - "@types/node-fetch": "^2.6.1", + "@polkadot/x-global": "9.5.1", + "@types/node-fetch": "^2.6.2", "node-fetch": "^2.6.7" } }, "@polkadot/x-global": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-9.3.1.tgz", - "integrity": "sha512-D/6wtyaZNDMIJ73fEoZbeDyULs1rBZc/pfLlSczo9efthOheZTY6KUIvPPrZFGd0b817j5Kex3ABcx7uYgWOjw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-9.5.1.tgz", + "integrity": "sha512-asG5YlW1K3f4YjyuZ+HrbF9H5d78i5v9+7Bh+9gD+sVfB3KhqwVYZB+wzOaJkPp6lwUbBA9OBHFCVBqpR3wBJw==", "peer": true, "requires": { "@babel/runtime": "^7.18.3" } }, "@polkadot/x-randomvalues": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-9.3.1.tgz", - "integrity": "sha512-3X9aIKXweeZXAmwUsJIEwssHKVNxDbGH3A4IkqzUcxne7QyODjLSwAD84n6mDSye00gnqk6L0rb/IwF2Vf+PqA==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-9.5.1.tgz", + "integrity": "sha512-NFvG//NsBjFP01dEtQATNPn5lSAZwh6jkkUXG2rHlgvW6k8nVJ0aJPvO5MlgItgS5Ry2F88AIiSsO3cfoTpszg==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" } }, "@polkadot/x-textdecoder": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-9.3.1.tgz", - "integrity": "sha512-YJgcVUYvuGOkRcBVKTmE6ZXB7VpzMmhCy+DfHDijbnuRDywK0uM8zwXK7hCuPLwfZ8iLX/APpzM5ryNaleiIiA==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-9.5.1.tgz", + "integrity": "sha512-bY0J3Tov5y4oZi8qB/UtoEYCSgo5sDiiOa3Wmgen09LfB4gXJhWFGJSmcZqHERXCdEcmZojdbHTvOGSeYM9U1w==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" } }, "@polkadot/x-textencoder": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-9.3.1.tgz", - "integrity": "sha512-f0hnI5iV/JmwJGPzKAeJ4R9ojuFJWbIM9NIg+Q53Fg6PmJUpY2xQVh1BjzSwRy+lFy0ubfB7Fw9A8KBkDYxCSw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-9.5.1.tgz", + "integrity": "sha512-zt121nqxiudMeZnanpnfWhCE0SOTcVRqn/atqO59us/yf6LMTf23mgd7P4795TgJwXOUcui4fhm/g/VcpsLq9Q==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1" + "@polkadot/x-global": "9.5.1" } }, "@polkadot/x-ws": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-9.3.1.tgz", - "integrity": "sha512-9WoahcxygKcA7RWOeijW5Kzw6QG7QDc0MPFmygiNMuOqVeEP54c4Yrw1DirZnmRbedhms/OieskPDX4JvxlFmg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-9.5.1.tgz", + "integrity": "sha512-d91Hf7p9+mWqSvx+lZr0f7eVkHXGzNqvQnXYAizU1HE1HHl5gLixPKoGldTKrYhvV30OwKKDJChKHzvQL6nVdQ==", "peer": true, "requires": { "@babel/runtime": "^7.18.3", - "@polkadot/x-global": "9.3.1", + "@polkadot/x-global": "9.5.1", "@types/websocket": "^1.0.5", "websocket": "^1.0.34" } @@ -14899,9 +14898,9 @@ } }, "@scure/base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", - "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", + "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", "peer": true }, "@sinclair/typebox": { @@ -14929,13 +14928,13 @@ } }, "@substrate/connect": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.5.tgz", - "integrity": "sha512-sdAZ6IGuTNxRGlH/O+6IaXvkYzZFwMK03VbQMgxUzry9dz1+JzyaNf8iOTVHxhMIUZc0h0E90JQz/hNiUYPlUw==", + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.6.tgz", + "integrity": "sha512-PHizR91CbjC5bzUwgYUZJrbOyoraCS1QqoxkFHteZ/0vkXDKyuzoixobDaITJqq6wSTeM8ZSjuOn9u/3q7F5+A==", "peer": true, "requires": { "@substrate/connect-extension-protocol": "^1.0.0", - "@substrate/smoldot-light": "0.6.16", + "@substrate/smoldot-light": "0.6.19", "eventemitter3": "^4.0.7" } }, @@ -14946,9 +14945,9 @@ "peer": true }, "@substrate/smoldot-light": { - "version": "0.6.16", - "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.16.tgz", - "integrity": "sha512-Ej0ZdNPTW0EXbp45gv/5Kt/JV+c9cmRZRYAXg+EALxXPm0hW9h2QdVLm61A2PAskOGptW4wnJ1WzzruaenwAXQ==", + "version": "0.6.19", + "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.19.tgz", + "integrity": "sha512-Xi+v1cdURhTwx7NH+9fa1U9m7VGP61GvB6qwev9HrZXlGbQiUIvySxPlH/LMsq3mwgiRYkokPhcaZEHufY7Urg==", "peer": true, "requires": { "buffer": "^6.0.1", @@ -15073,9 +15072,9 @@ "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==" }, "@types/node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", "peer": true, "requires": { "@types/node": "*", @@ -19713,8 +19712,7 @@ "lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "lodash.debounce": { "version": "4.0.8", @@ -19734,12 +19732,6 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==", - "peer": true - }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -19906,9 +19898,9 @@ } }, "mock-socket": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.4.tgz", - "integrity": "sha512-zc7jF8FId8pD9ojxWLcXrv4c2nEFOb6o8giPb45yQ6BfQX1tWuUktHNFSiy+KBt0VhYtHNt5MFIzclt0LIynEA==", + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.5.tgz", + "integrity": "sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==", "peer": true }, "ms": { @@ -19979,14 +19971,14 @@ "peer": true }, "nock": { - "version": "13.2.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.4.tgz", - "integrity": "sha512-8GPznwxcPNCH/h8B+XZcKjYPXnUV5clOKCjAqyjsiqA++MpNx9E9+t8YPp0MbThO+KauRo7aZJ1WuIZmOrT2Ug==", + "version": "13.2.7", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.7.tgz", + "integrity": "sha512-R6NUw7RIPtKwgK7jskuKoEi4VFMqIHtV2Uu9K/Uegc4TA5cqe+oNMYslZcUmnVNQCTG6wcSqUBaGTDd7sq5srg==", "peer": true, "requires": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "propagate": "^2.0.0" } }, @@ -21636,7 +21628,7 @@ "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "peer": true }, "trim-right": { @@ -21978,7 +21970,7 @@ "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", "peer": true }, "websocket": { @@ -22015,7 +22007,7 @@ "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "peer": true, "requires": { "tr46": "~0.0.3", @@ -22099,7 +22091,7 @@ "yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", + "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", "peer": true }, "yallist": { diff --git a/api/package.json b/api/package.json index ee80c27949..edfbf5ebf8 100644 --- a/api/package.json +++ b/api/package.json @@ -25,7 +25,7 @@ }, "license": "GPL-3.0", "peerDependencies": { - "@polkadot/api": "^8.6.1", + "@polkadot/api": "^8.9.1", "@polkadot/wasm-crypto": "^6.1.1", "rxjs": "^7.5.5" }, From 3eb2bfd98cee00575d2892b54920c8289ce74c16 Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Tue, 21 Jun 2022 15:51:13 +0300 Subject: [PATCH 3/4] add: type for message in UserMessageSent event --- api/src/events/GearEventData.ts | 10 ++-------- api/src/types/gear-core/message.ts | 13 +++++++++++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/api/src/events/GearEventData.ts b/api/src/events/GearEventData.ts index 2d6a93bf10..1faf443be9 100644 --- a/api/src/events/GearEventData.ts +++ b/api/src/events/GearEventData.ts @@ -13,6 +13,7 @@ import { MessageWokenReason, CodeId, CodeChangeKind, + UserMessageSentMessage, } from '../types/gear-core'; export class GearEventData extends GenericEventData { @@ -29,14 +30,7 @@ export interface MessageEnqueuedData extends GenericEventData { } export interface UserMessageSentData extends GenericEventData { - message: { - id: MessageId; - source: ProgramId; - destination: UserId; - payload: Vec; - value: u128; - reply: Option; - }; + message: UserMessageSentMessage; expiration: BlockNumber; } diff --git a/api/src/types/gear-core/message.ts b/api/src/types/gear-core/message.ts index 7a672214b1..edf1e920a5 100644 --- a/api/src/types/gear-core/message.ts +++ b/api/src/types/gear-core/message.ts @@ -1,8 +1,21 @@ import { Hash } from '@polkadot/types/interfaces'; +import { Codec } from '@polkadot/types-codec/types'; import { Null, Enum } from '@polkadot/types'; import { Reason } from './common'; +import { u8, u128, Vec, Option } from '@polkadot/types'; +import { Reply } from '../interfaces'; +import { ProgramId } from './program'; +import { UserId } from './user'; export interface MessageId extends Hash {} +export interface UserMessageSentMessage extends Codec { + id: MessageId; + source: ProgramId; + destination: UserId; + payload: Vec; + value: u128; + reply: Option; +} export interface DispatchStatus extends Enum { isSuccess: boolean; From 894ec2d8addff6c7effe3748c468d0e57b74a56d Mon Sep 17 00:00:00 2001 From: Dmitry Osipov Date: Tue, 21 Jun 2022 16:04:03 +0300 Subject: [PATCH 4/4] bump version and update readme --- api/CHANGELOG.md | 13 +++++++++++++ api/README.md | 6 +++++- api/package-lock.json | 4 ++-- api/package.json | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index 7b2cbcd406..8a3e9beb72 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -1,3 +1,16 @@ +## 0.22.0 + +_06/17/2022_ + +https://github.com/gear-tech/gear-js/pull/753 + +### Breaking Changes + +- Event data sturcture have been updated +- Events and event data classes have been removed, and interfaces have been added instead + +--- + ## 0.21.0 _06/17/2022_ diff --git a/api/README.md b/api/README.md index d328dbf22b..a326cc0294 100644 --- a/api/README.md +++ b/api/README.md @@ -337,7 +337,11 @@ gearApi.query.system.events((events) => { ```javascript const unsub = api.gearEvents.subscribeToGearEvent( 'UserMessageSent', - ({ data: { id, source, destination, payload, value, reply } }) => { + ({ + data: { + message: { id, source, destination, payload, value, reply }, + }, + }) => { console.log(` messageId: ${id.toHex()} source: ${source.toHex()} diff --git a/api/package-lock.json b/api/package-lock.json index 88c8d2a8e3..456bbc03e0 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gear-js/api", - "version": "0.21.0", + "version": "0.22.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@gear-js/api", - "version": "0.21.0", + "version": "0.22.0", "license": "GPL-3.0", "devDependencies": { "@babel/plugin-transform-typescript": "7.18.4", diff --git a/api/package.json b/api/package.json index edfbf5ebf8..7277ee4449 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "@gear-js/api", - "version": "0.21.0", + "version": "0.22.0", "description": "A JavaScript library that provides functionality to connect GEAR Component APIs.", "main": "lib/index.js", "module": "lib/index.mjs",