From 0bf9d6ee49587cc560e92f7748f02bbad668444d Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 21 Apr 2023 11:23:40 +0800 Subject: [PATCH 01/17] fix vcRegistry --- scripts/ts-utils/move-vcregistry-snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ts-utils/move-vcregistry-snapshot.ts b/scripts/ts-utils/move-vcregistry-snapshot.ts index 05d0dbee63..3290604d13 100644 --- a/scripts/ts-utils/move-vcregistry-snapshot.ts +++ b/scripts/ts-utils/move-vcregistry-snapshot.ts @@ -49,7 +49,7 @@ async function encodeExtrinsic() { i++ const extrinsics = defaultAPI.tx.utility.batch(batchTxs); const sudoExtrinsic = defaultAPI.tx.sudo.sudo(extrinsics); - console.log(colors.green(`extrinsic ${i} encode`), sudoExtrinsic.toHex()); + console.log(colors.green(`extrinsic ${i} encode`), extrinsics.toHex()); txs = []; } } From c6b189e87360e3e6f42ea01a8d180a315e2f61ec Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 21 Apr 2023 15:02:22 +0800 Subject: [PATCH 02/17] modified listenEvent --- tee-worker/ts-tests/common/transactions.ts | 19 ++++++++++++++----- .../ts-tests/common/type-definitions.ts | 7 +++++++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 77f27a19d2..5420ad89e1 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -1,6 +1,6 @@ import { ApiPromise } from '@polkadot/api'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import { IntegrationTestContext, TransactionSubmit } from './type-definitions'; +import { IntegrationTestContext, TransactionSubmit, RequestEvent } from './type-definitions'; import { KeyringPair } from '@polkadot/keyring/types'; import { getListenTimeoutInBlocks } from './utils'; import { EventRecord, Event } from '@polkadot/types/interfaces'; @@ -91,7 +91,7 @@ export async function listenEvent( if (startBlock == 0) startBlock = currentBlockNumber; const timeout = await getListenTimeoutInBlocks(api); if (currentBlockNumber > startBlock + timeout) { - reject('timeout'); + reject('Timeout: No event received, please check the worker logs for more details'); return; } console.log(`\n--------- block #${header.number}, hash ${header.hash} ---------\n`); @@ -106,9 +106,17 @@ export async function listenEvent( ? console.log(colors.green(`Event[${i}]: ${s}.${m} ${d}`)) : console.log(`Event[${i}]: ${s}.${m} ${d}`); }); - const filtered_events = records.filter(({ phase, event }) => { - return phase.isApplyExtrinsic && section === event.section && methods.includes(event.method); + if ( + phase.isApplyExtrinsic && + section === event.section && + !methods.includes(event.method) && + !(event.method in RequestEvent) + ) { + reject(`Expect event ${methods} but received unexpected event ${event.method}`); + } else { + return phase.isApplyExtrinsic && section === event.section && methods.includes(event.method); + } }); //We're going to have to filter by signer, because multiple txs is going to mix @@ -176,7 +184,8 @@ export async function sendTxsWithUtility( signer: KeyringPair, txs: TransactionSubmit[], pallet: string, - events: string[] + events: string[], + requestEvent?: string ): Promise { //ensure the tx is in block const isInBlockPromise = new Promise((resolve) => { diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 1bbaf80639..d5da298b0e 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -315,6 +315,13 @@ export enum IndexingNetwork { Khala = 'Khala', Ethereum = 'Ethereum', } +export enum RequestEvent { + CreateIdentityRequested = 'CreateIdentityRequested', + SetUserShieldingKeyRequested = 'SetUserShieldingKeyRequested', + VerifyIdentityRequested = 'VerifyIdentityRequested', + RemoveIdentityRequested = 'RemoveIdentityRequested', + VCRequested = 'VCRequested', +} export type Assertion = { A1?: string; From ef945706263e04a7d3d05f82600e3544cb5a58b5 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 21 Apr 2023 15:06:06 +0800 Subject: [PATCH 03/17] modified sendTxsWithUtility parameter --- tee-worker/ts-tests/common/transactions.ts | 37 +++++++++++----------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 5420ad89e1..7a680258fc 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -138,27 +138,27 @@ export async function listenEvent( //Then, it sorts the events based on this index so that the resulting event array is sorted according to the order of the signers array. const signerIndexA = signerToIndexMap[ - a.event.data - .find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - })! - .toHex() + a.event.data + .find((d) => { + if (Array.isArray(d)) { + return d.find((v) => signers.includes(v.toHex())); + } else { + return signers.includes(d.toHex()); + } + })! + .toHex() ]; const signerIndexB = signerToIndexMap[ - b.event.data - .find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - })! - .toHex() + b.event.data + .find((d) => { + if (Array.isArray(d)) { + return d.find((v) => signers.includes(v.toHex())); + } else { + return signers.includes(d.toHex()); + } + })! + .toHex() ]; return signerIndexA - signerIndexB; }); @@ -185,7 +185,6 @@ export async function sendTxsWithUtility( txs: TransactionSubmit[], pallet: string, events: string[], - requestEvent?: string ): Promise { //ensure the tx is in block const isInBlockPromise = new Promise((resolve) => { From ee744cac22ed597073ecd68e5bedd94450ebd861 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 21 Apr 2023 15:08:51 +0800 Subject: [PATCH 04/17] remove sudo tx hex_encode --- scripts/ts-utils/move-vcregistry-snapshot.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ts-utils/move-vcregistry-snapshot.ts b/scripts/ts-utils/move-vcregistry-snapshot.ts index 3290604d13..547e20dfcc 100644 --- a/scripts/ts-utils/move-vcregistry-snapshot.ts +++ b/scripts/ts-utils/move-vcregistry-snapshot.ts @@ -48,7 +48,6 @@ async function encodeExtrinsic() { if (data.length === 0 || txs.length >= BATCH_SIZE) { i++ const extrinsics = defaultAPI.tx.utility.batch(batchTxs); - const sudoExtrinsic = defaultAPI.tx.sudo.sudo(extrinsics); console.log(colors.green(`extrinsic ${i} encode`), extrinsics.toHex()); txs = []; } From 1df9c72e6d149a5e8187ab7f35194240b77cd857 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Fri, 21 Apr 2023 15:20:30 +0800 Subject: [PATCH 05/17] fmt --- tee-worker/ts-tests/common/transactions.ts | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 7a680258fc..8d44a94bfb 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -138,27 +138,27 @@ export async function listenEvent( //Then, it sorts the events based on this index so that the resulting event array is sorted according to the order of the signers array. const signerIndexA = signerToIndexMap[ - a.event.data - .find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - })! - .toHex() + a.event.data + .find((d) => { + if (Array.isArray(d)) { + return d.find((v) => signers.includes(v.toHex())); + } else { + return signers.includes(d.toHex()); + } + })! + .toHex() ]; const signerIndexB = signerToIndexMap[ - b.event.data - .find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - })! - .toHex() + b.event.data + .find((d) => { + if (Array.isArray(d)) { + return d.find((v) => signers.includes(v.toHex())); + } else { + return signers.includes(d.toHex()); + } + })! + .toHex() ]; return signerIndexA - signerIndexB; }); @@ -184,7 +184,7 @@ export async function sendTxsWithUtility( signer: KeyringPair, txs: TransactionSubmit[], pallet: string, - events: string[], + events: string[] ): Promise { //ensure the tx is in block const isInBlockPromise = new Promise((resolve) => { From 0e4cbadc2331e4118490c2ac58dd5541865f0647 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Sun, 23 Apr 2023 11:21:35 +0800 Subject: [PATCH 06/17] fix listenEvent --- tee-worker/ts-tests/bulk_identity.test.ts | 3 --- tee-worker/ts-tests/bulk_vc.test.ts | 3 --- tee-worker/ts-tests/common/transactions.ts | 2 +- tee-worker/ts-tests/common/type-definitions.ts | 2 ++ 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index 630e26ddf9..1abf517727 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -42,9 +42,6 @@ describeLitentry('multiple accounts test', 10, async (context) => { txs.push(tx); } await context.api.tx.utility.batch(txs).signAndSend(context.substrateWallet.alice); - await listenEvent(context.api, 'balances', ['Transfer'], txs.length, [ - u8aToHex(context.substrateWallet.alice.addressRaw), - ]); }); //test with multiple accounts diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index 8ff1271589..546f41d55f 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -48,9 +48,6 @@ describeLitentry('multiple accounts test', 10, async (context) => { txs.push(tx); } await context.api.tx.utility.batch(txs).signAndSend(context.substrateWallet.alice); - await listenEvent(context.api, 'balances', ['Transfer'], txs.length, [ - u8aToHex(context.substrateWallet.alice.addressRaw), - ]); }); //test with multiple accounts step('test set usershieldingkey with multiple accounts', async () => { diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 8d44a94bfb..938c49459a 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -166,7 +166,7 @@ export async function listenEvent( //There is no good compatibility method here.Only successful and failed events can be filtered normally, but it cannot filter error + successful events, which may need further optimization const eventsToUse = filtered_events_with_signer.length > 0 ? filtered_events_with_signer : filtered_events; - events = [...eventsToUse]; + events = [...events, ...eventsToUse]; if (events.length === txsLength) { resolve(events.map((e) => e.event)); diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index d5da298b0e..6dbf03543e 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -321,6 +321,8 @@ export enum RequestEvent { VerifyIdentityRequested = 'VerifyIdentityRequested', RemoveIdentityRequested = 'RemoveIdentityRequested', VCRequested = 'VCRequested', + ItemCompleted = 'ItemCompleted', + BatchCompleted = 'BatchCompleted', } export type Assertion = { From de834f0442e366e875bf73c6055159c339d18cb0 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Tue, 25 Apr 2023 22:24:59 +0800 Subject: [PATCH 07/17] filter events with index --- tee-worker/ts-tests/common/transactions.ts | 198 +++++++-------------- 1 file changed, 62 insertions(+), 136 deletions(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 938c49459a..02822ff510 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -1,4 +1,4 @@ -import { ApiPromise } from '@polkadot/api'; +import { ApiPromise, SubmittableResult } from '@polkadot/api'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { IntegrationTestContext, TransactionSubmit, RequestEvent } from './type-definitions'; import { KeyringPair } from '@polkadot/keyring/types'; @@ -10,15 +10,12 @@ import { expect } from 'chai'; import colors from 'colors'; //transactions utils export async function sendTxUntilInBlock(api: ApiPromise, tx: SubmittableExtrinsic, signer: KeyringPair) { - return new Promise<{ block: string; txHash: string }>(async (resolve, reject) => { + return new Promise(async (resolve, reject) => { const nonce = await api.rpc.system.accountNextIndex(signer.address); await tx.signAndSend(signer, { nonce }, (result) => { if (result.status.isInBlock) { console.log(`Transaction included at blockHash ${result.status.asInBlock}`); - resolve({ - block: result.status.asInBlock.toString(), - txHash: result.txHash.toHex(), - }); + resolve(result); } else if (result.status.isInvalid) { reject(`Transaction is ${result.status}`); } @@ -54,131 +51,19 @@ export async function sendTxUntilInBlockList( } } else { console.log(`Transaction included at blockHash ${result.status.asInBlock}`); - resolve({ - block: result.status.asInBlock.toString(), - txHash: result.status.hash.toString(), - }); + resolve(result); } } else if (result.status.isInvalid) { reject(`Transaction is ${result.status}`); } }); }); + return result; }) ); } -// Subscribe to the chain until we get the first specified event with given `section` and `methods`. -// We can listen to multiple `methods` as long as they are emitted in the same block. -// The event consumer should do the decryption optionaly as it's event specific -export async function listenEvent( - api: ApiPromise, - section: string, - methods: string[], - txsLength: number, - signers: HexString[] -) { - return new Promise(async (resolve, reject) => { - let startBlock = 0; - let events: EventRecord[] = []; - const signerToIndexMap: Record = {}; - for (let i = 0; i < signers.length; i++) { - signerToIndexMap[signers[i]] = i; - } - const unsubscribe = await api.rpc.chain.subscribeNewHeads(async (header) => { - const currentBlockNumber = header.number.toNumber(); - if (startBlock == 0) startBlock = currentBlockNumber; - const timeout = await getListenTimeoutInBlocks(api); - if (currentBlockNumber > startBlock + timeout) { - reject('Timeout: No event received, please check the worker logs for more details'); - return; - } - console.log(`\n--------- block #${header.number}, hash ${header.hash} ---------\n`); - const apiAt = await api.at(header.hash); - - const records: EventRecord[] = (await apiAt.query.system.events()) as any; - records.forEach((e, i) => { - const s = e.event.section; - const m = e.event.method; - const d = e.event.data; - section === s - ? console.log(colors.green(`Event[${i}]: ${s}.${m} ${d}`)) - : console.log(`Event[${i}]: ${s}.${m} ${d}`); - }); - const filtered_events = records.filter(({ phase, event }) => { - if ( - phase.isApplyExtrinsic && - section === event.section && - !methods.includes(event.method) && - !(event.method in RequestEvent) - ) { - reject(`Expect event ${methods} but received unexpected event ${event.method}`); - } else { - return phase.isApplyExtrinsic && section === event.section && methods.includes(event.method); - } - }); - - //We're going to have to filter by signer, because multiple txs is going to mix - const filtered_events_with_signer = filtered_events - .filter((event) => { - const signerDatas = event.event.data.find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - }); - return !!signerDatas; - }) - .sort((a, b) => { - //We need sort by signers order - //First convert the signers array into an object signerToIndexMap, where the keys are each element in the signers array and the values are the index of that element in the array. - //Then, for each of the filtered events that match the given section and methods, the function uses the find function to locate the index of a specific parameter in the signers array. - //Then, it sorts the events based on this index so that the resulting event array is sorted according to the order of the signers array. - const signerIndexA = - signerToIndexMap[ - a.event.data - .find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - })! - .toHex() - ]; - const signerIndexB = - signerToIndexMap[ - b.event.data - .find((d) => { - if (Array.isArray(d)) { - return d.find((v) => signers.includes(v.toHex())); - } else { - return signers.includes(d.toHex()); - } - })! - .toHex() - ]; - return signerIndexA - signerIndexB; - }); - - //There is no good compatibility method here.Only successful and failed events can be filtered normally, but it cannot filter error + successful events, which may need further optimization - const eventsToUse = filtered_events_with_signer.length > 0 ? filtered_events_with_signer : filtered_events; - - events = [...events, ...eventsToUse]; - - if (events.length === txsLength) { - resolve(events.map((e) => e.event)); - - unsubscribe(); - - return; - } - }); - }); -} - export async function sendTxsWithUtility( context: IntegrationTestContext, signer: KeyringPair, @@ -199,11 +84,7 @@ export async function sendTxsWithUtility( }); await isInBlockPromise; - - const resp_events = (await listenEvent(context.api, pallet, events, txs.length, [ - u8aToHex(signer.addressRaw), - ])) as any; - + const resp_events = await listenEvent(context.api, pallet, events, txs.length); expect(resp_events.length).to.be.equal(txs.length); return resp_events; } @@ -215,17 +96,62 @@ export async function multiAccountTxSender( pallet: string, events: string[] ): Promise { - let signers_hex: HexString[] = []; - if (Array.isArray(signers)) { - for (let index = 0; index < signers.length; index++) { - signers_hex.push(u8aToHex(signers[index].addressRaw)); - } - } else { - signers_hex.push(u8aToHex(signers.addressRaw)); - } - - await sendTxUntilInBlockList(context.api, txs, signers); - const resp_events = await listenEvent(context.api, pallet, events, txs.length, signers_hex); + (await sendTxUntilInBlockList(context.api, txs, signers)) as any; + const resp_events = await listenEvent(context.api, pallet, events, txs.length); expect(resp_events.length).to.be.equal(txs.length); return resp_events; } + +// Subscribe to the chain until we get the first specified event with given `section` and `methods`. +// We can listen to multiple `methods` as long as they are emitted in the same block. +// The event consumer should do the decryption optionaly as it's event specific +export async function listenEvent(api: ApiPromise, section: string, methods: string[], txsLength: number) { + return new Promise(async (resolve, reject) => { + let startBlock = 0; + const unsubscribe = await api.rpc.chain.subscribeNewHeads(async (header) => { + const currentBlockNumber = header.number.toNumber(); + if (startBlock == 0) startBlock = currentBlockNumber; + const timeout = await getListenTimeoutInBlocks(api); + if (currentBlockNumber > startBlock + timeout) { + reject('Timeout: No event received, please check the worker logs for more details'); + return; + } + console.log(`\n--------- block #${header.number}, hash ${header.hash} ---------\n`); + const [signedBlock, apiAt] = await Promise.all([api.rpc.chain.getBlock(header.hash), api.at(header.hash)]); + + const records: EventRecord[] = (await apiAt.query.system.events()) as any; + + signedBlock.block.extrinsics.forEach((extrinsic, index) => { + const events = records.filter(({ phase }) => { + return phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(index); + }); + events.forEach((e, i) => { + const s = e.event.section; + const m = e.event.method; + const d = e.event.data; + + section === s + ? console.log(colors.green(`Event[${i}]: ${s}.${m} ${d}`)) + : console.log(`Event[${i}]: ${s}.${m} ${d}`); + }); + const filtered_events = records.filter(({ phase, event }) => { + if ( + phase.isApplyExtrinsic && + section === event.section && + !methods.includes(event.method) && + !(event.method in RequestEvent) + ) { + reject(`Expect event ${methods} but received unexpected event ${event.method}`); + } else { + return phase.isApplyExtrinsic && section === event.section && methods.includes(event.method); + } + }); + if (filtered_events.length === txsLength) { + resolve(filtered_events.map((e) => e.event)); + unsubscribe(); + return; + } + }); + }); + }); +} From ff300406144a784ff6bbe3fb673f6b91b8cc1a11 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 10:56:02 +0800 Subject: [PATCH 08/17] modified transfer function --- tee-worker/ts-tests/bulk_identity.test.ts | 55 +++++++++++++--------- tee-worker/ts-tests/bulk_vc.test.ts | 19 ++++++-- tee-worker/ts-tests/common/transactions.ts | 2 - 3 files changed, 49 insertions(+), 27 deletions(-) diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index 1abf517727..76a4dc0e82 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -13,21 +13,22 @@ import { ethers } from 'ethers'; import { LitentryIdentity, LitentryValidationData } from './common/type-definitions'; import { handleIdentityEvents } from './common/utils'; import { assert } from 'chai'; -import { listenEvent, multiAccountTxSender } from './common/transactions'; +import { multiAccountTxSender } from './common/transactions'; import { u8aToHex } from '@polkadot/util'; +import { SubmittableResult } from '@polkadot/api'; //Explain how to use this test, which has two important parameters: //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. //2.Each time the test code is executed, new wallet account will be used. -describeLitentry('multiple accounts test', 10, async (context) => { +describeLitentry('multiple accounts test', 20, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; - var substraetSigners: KeyringPair[] = []; + var substrateSigners: KeyringPair[] = []; var ethereumSigners: ethers.Wallet[] = []; var web3Validations: LitentryValidationData[] = []; var identities: LitentryIdentity[] = []; step('setup signers', async () => { - substraetSigners = context.web3Signers.map((web3Signer) => { + substrateSigners = context.web3Signers.map((web3Signer) => { return web3Signer.substrateWallet; }); ethereumSigners = context.web3Signers.map((web3Signer) => { @@ -36,31 +37,43 @@ describeLitentry('multiple accounts test', 10, async (context) => { }); step('send test token to each account', async () => { const txs: any = []; - for (let i = 0; i < substraetSigners.length; i++) { + for (let i = 0; i < substrateSigners.length; i++) { //1 token - const tx = context.api.tx.balances.transfer(substraetSigners[i].address, '1000000000000'); + const tx = context.api.tx.balances.transfer(substrateSigners[i].address, '1000000000000'); txs.push(tx); } - await context.api.tx.utility.batch(txs).signAndSend(context.substrateWallet.alice); + + await new Promise((resolve) => { + context.api.tx.utility + .batch(txs) + .signAndSend(context.substrateWallet.alice, async (result: SubmittableResult) => { + if (result.status.isInBlock) { + console.log(`Transaction included at blockHash ${result.status.asInBlock}`); + resolve(result.status); + } else if (result.status.isInvalid) { + console.log(`Transaction is ${result.status}`); + } + }); + }); }); //test with multiple accounts step('test set usershieldingkey with multiple accounts', async () => { - let txs = await buildIdentityTxs(context, substraetSigners, [], 'setUserShieldingKey'); - const resp_events = await multiAccountTxSender(context, txs, substraetSigners, 'identityManagement', [ + let txs = await buildIdentityTxs(context, substrateSigners, [], 'setUserShieldingKey'); + const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'UserShieldingKeySet', ]); const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); assert.equal( resp_events.length, - substraetSigners.length, + substrateSigners.length, 'set usershieldingkey with multiple accounts check fail' ); event_datas.forEach((data: string, index: number) => { assert.equal( data, - u8aToHex(substraetSigners[index].addressRaw), + u8aToHex(substrateSigners[index].addressRaw), `shielding key should be set,account ${index + 1} is not set` ); }); @@ -73,9 +86,9 @@ describeLitentry('multiple accounts test', 10, async (context) => { identities.push(identity); } - let txs = await buildIdentityTxs(context, substraetSigners, identities, 'createIdentity'); + let txs = await buildIdentityTxs(context, substrateSigners, identities, 'createIdentity'); - const resp_events = await multiAccountTxSender(context, txs, substraetSigners, 'identityManagement', [ + const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityCreated', ]); const resp_events_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); @@ -84,14 +97,14 @@ describeLitentry('multiple accounts test', 10, async (context) => { for (let index = 0; index < resp_events_datas.length; index++) { console.log('createIdentity', index); - assertIdentityCreated(substraetSigners[index], resp_events_datas[index]); + assertIdentityCreated(substrateSigners[index], resp_events_datas[index]); } const validations = await buildValidations( context, resp_events_datas, identities, 'ethereum', - substraetSigners, + substrateSigners, ethereumSigners ); @@ -99,29 +112,29 @@ describeLitentry('multiple accounts test', 10, async (context) => { }); step('test verifyIdentity with multiple accounts', async () => { - let txs = await buildIdentityTxs(context, substraetSigners, identities, 'verifyIdentity', web3Validations); - const resp_events = await multiAccountTxSender(context, txs, substraetSigners, 'identityManagement', [ + let txs = await buildIdentityTxs(context, substrateSigners, identities, 'verifyIdentity', web3Validations); + const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityVerified', ]); assert.equal(resp_events.length, txs.length, 'verify identities with multiple accounts check fail'); const [resp_events_datas] = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityVerified'); for (let index = 0; index < resp_events_datas.length; index++) { console.log('verifyIdentity', index); - assertIdentityVerified(substraetSigners[index], resp_events_datas); + assertIdentityVerified(substrateSigners[index], resp_events_datas); } }); step('test removeIdentity with multiple accounts', async () => { - let txs = await buildIdentityTxs(context, substraetSigners, identities, 'removeIdentity'); + let txs = await buildIdentityTxs(context, substrateSigners, identities, 'removeIdentity'); - const resp_events = await multiAccountTxSender(context, txs, substraetSigners, 'identityManagement', [ + const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityRemoved', ]); assert.equal(resp_events.length, txs.length, 'remove identities with multiple accounts check fail'); const [resp_events_datas] = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityRemoved'); for (let index = 0; index < resp_events_datas.length; index++) { console.log('verifyIdentity', index); - assertIdentityRemoved(substraetSigners[index], resp_events_datas); + assertIdentityRemoved(substrateSigners[index], resp_events_datas); } }); }); diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index 546f41d55f..126f2b58b7 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -2,13 +2,13 @@ import { step } from 'mocha-steps'; import { checkVc, describeLitentry, encryptWithTeeShieldingKey } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; -import { u8aToHex } from '@polkadot/util'; import { Assertion, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; import { handleVcEvents } from './common/utils'; import { blake2AsHex } from '@polkadot/util-crypto'; import { assert } from 'chai'; import { HexString } from '@polkadot/util/types'; -import { listenEvent, multiAccountTxSender } from './common/transactions'; +import { SubmittableResult } from '@polkadot/api'; +import { multiAccountTxSender } from './common/transactions'; const assertion = { A1: 'A1', A2: ['A2'], @@ -44,10 +44,21 @@ describeLitentry('multiple accounts test', 10, async (context) => { for (let i = 0; i < substrateSigners.length; i++) { //1 token const tx = context.api.tx.balances.transfer(substrateSigners[i].address, '1000000000000'); - txs.push(tx); } - await context.api.tx.utility.batch(txs).signAndSend(context.substrateWallet.alice); + + await new Promise((resolve) => { + context.api.tx.utility + .batch(txs) + .signAndSend(context.substrateWallet.alice, async (result: SubmittableResult) => { + if (result.status.isInBlock) { + console.log(`Transaction included at blockHash ${result.status.asInBlock}`); + resolve(result.status); + } else if (result.status.isInvalid) { + console.log(`Transaction is ${result.status}`); + } + }); + }); }); //test with multiple accounts step('test set usershieldingkey with multiple accounts', async () => { diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 02822ff510..2b9f2b5423 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -4,8 +4,6 @@ import { IntegrationTestContext, TransactionSubmit, RequestEvent } from './type- import { KeyringPair } from '@polkadot/keyring/types'; import { getListenTimeoutInBlocks } from './utils'; import { EventRecord, Event } from '@polkadot/types/interfaces'; -import { HexString } from '@polkadot/util/types'; -import { u8aToHex } from '@polkadot/util'; import { expect } from 'chai'; import colors from 'colors'; //transactions utils From 7d7ac445ed3f702d8f1765e35a78728e8c77c19d Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 11:30:23 +0800 Subject: [PATCH 09/17] refactor listenEvent --- tee-worker/ts-tests/common/transactions.ts | 30 +++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 2b9f2b5423..d2d8b54970 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -119,11 +119,9 @@ export async function listenEvent(api: ApiPromise, section: string, methods: str const records: EventRecord[] = (await apiAt.query.system.events()) as any; + const filtered_events: EventRecord[] = []; signedBlock.block.extrinsics.forEach((extrinsic, index) => { - const events = records.filter(({ phase }) => { - return phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(index); - }); - events.forEach((e, i) => { + records.forEach((e, i) => { const s = e.event.section; const m = e.event.method; const d = e.event.data; @@ -132,7 +130,7 @@ export async function listenEvent(api: ApiPromise, section: string, methods: str ? console.log(colors.green(`Event[${i}]: ${s}.${m} ${d}`)) : console.log(`Event[${i}]: ${s}.${m} ${d}`); }); - const filtered_events = records.filter(({ phase, event }) => { + const events_in_extrinsic = records.filter(({ event, phase }) => { if ( phase.isApplyExtrinsic && section === event.section && @@ -140,16 +138,24 @@ export async function listenEvent(api: ApiPromise, section: string, methods: str !(event.method in RequestEvent) ) { reject(`Expect event ${methods} but received unexpected event ${event.method}`); - } else { - return phase.isApplyExtrinsic && section === event.section && methods.includes(event.method); } + return ( + phase.isApplyExtrinsic && + phase.asApplyExtrinsic.eq(index) && + section === event.section && + methods.includes(event.method) + ); + }); + events_in_extrinsic.forEach((event) => { + filtered_events.push(event); }); - if (filtered_events.length === txsLength) { - resolve(filtered_events.map((e) => e.event)); - unsubscribe(); - return; - } }); + + if (filtered_events.length === txsLength) { + resolve(filtered_events.map((e) => e.event)); + unsubscribe(); + return; + } }); }); } From 57ad44c6469c3c0ddf549188b7cd92c5dc900b1b Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 11:40:21 +0800 Subject: [PATCH 10/17] add bulk test in CI workflow --- tee-worker/docker/lit-batch-test.yml | 47 ++++++++++---------- tee-worker/docker/lit-bulk-identity-test.yml | 25 +++++++++++ tee-worker/docker/lit-bulk-vc-test.yml | 25 +++++++++++ tee-worker/ts-tests/bulk_identity.test.ts | 2 +- tee-worker/ts-tests/bulk_vc.test.ts | 2 +- 5 files changed, 75 insertions(+), 26 deletions(-) create mode 100644 tee-worker/docker/lit-bulk-identity-test.yml create mode 100644 tee-worker/docker/lit-bulk-vc-test.yml diff --git a/tee-worker/docker/lit-batch-test.yml b/tee-worker/docker/lit-batch-test.yml index c69acee657..07b90db135 100644 --- a/tee-worker/docker/lit-batch-test.yml +++ b/tee-worker/docker/lit-batch-test.yml @@ -1,26 +1,25 @@ services: - lit-batch-test: - image: integritee-cli:dev - container_name: litentry-batch-test - volumes: - - ../ts-tests:/ts-tests - - ../cli:/usr/local/worker-cli - build: - context: .. - dockerfile: build.Dockerfile - target: deployed-client - depends_on: - integritee-node: - condition: service_healthy - integritee-worker-1: - condition: service_healthy - integritee-worker-2: - condition: service_healthy - networks: - - integritee-test-network - entrypoint: - "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-batch 2>&1' " - restart: "no" + lit-batch-test: + image: integritee-cli:dev + container_name: litentry-batch-test + volumes: + - ../ts-tests:/ts-tests + - ../cli:/usr/local/worker-cli + build: + context: .. + dockerfile: build.Dockerfile + target: deployed-client + depends_on: + integritee-node: + condition: service_healthy + integritee-worker-1: + condition: service_healthy + integritee-worker-2: + condition: service_healthy + networks: + - integritee-test-network + entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-batch 2>&1' " + restart: "no" networks: - integritee-test-network: - driver: bridge \ No newline at end of file + integritee-test-network: + driver: bridge diff --git a/tee-worker/docker/lit-bulk-identity-test.yml b/tee-worker/docker/lit-bulk-identity-test.yml new file mode 100644 index 0000000000..21130dc075 --- /dev/null +++ b/tee-worker/docker/lit-bulk-identity-test.yml @@ -0,0 +1,25 @@ +services: + lit-bulk-identity-test: + image: integritee-cli:dev + container_name: litentry-bulk-identity-test + volumes: + - ../ts-tests:/ts-tests + - ../cli:/usr/local/worker-cli + build: + context: .. + dockerfile: build.Dockerfile + target: deployed-client + depends_on: + integritee-node: + condition: service_healthy + integritee-worker-1: + condition: service_healthy + integritee-worker-2: + condition: service_healthy + networks: + - integritee-test-network + entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-bulk-identity 2>&1' " + restart: "no" +networks: + integritee-test-network: + driver: bridge diff --git a/tee-worker/docker/lit-bulk-vc-test.yml b/tee-worker/docker/lit-bulk-vc-test.yml new file mode 100644 index 0000000000..39cf8588da --- /dev/null +++ b/tee-worker/docker/lit-bulk-vc-test.yml @@ -0,0 +1,25 @@ +services: + lit-bulk-vc-test: + image: integritee-cli:dev + container_name: litentry-bulk-vc-test + volumes: + - ../ts-tests:/ts-tests + - ../cli:/usr/local/worker-cli + build: + context: .. + dockerfile: build.Dockerfile + target: deployed-client + depends_on: + integritee-node: + condition: service_healthy + integritee-worker-1: + condition: service_healthy + integritee-worker-2: + condition: service_healthy + networks: + - integritee-test-network + entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-bulk-vc 2>&1' " + restart: "no" +networks: + integritee-test-network: + driver: bridge diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index 76a4dc0e82..e968e09f52 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -21,7 +21,7 @@ import { SubmittableResult } from '@polkadot/api'; //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. //2.Each time the test code is executed, new wallet account will be used. -describeLitentry('multiple accounts test', 20, async (context) => { +describeLitentry('multiple accounts test', 2, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var substrateSigners: KeyringPair[] = []; var ethereumSigners: ethers.Wallet[] = []; diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index 126f2b58b7..bccb41142c 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -24,7 +24,7 @@ const assertion = { //1.The "number" parameter in describeLitentry represents the number of accounts generated, including Substrate wallets and Ethereum wallets.If you want to use a large number of accounts for testing, you can modify this parameter. //2.Each time the test code is executed, new wallet account will be used. -describeLitentry('multiple accounts test', 10, async (context) => { +describeLitentry('multiple accounts test', 2, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var substrateSigners: KeyringPair[] = []; var ethereumSigners: ethers.Wallet[] = []; From 230d247ce9f3ff1d22b97b30d63d8c916e1a8aaa Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 11:40:32 +0800 Subject: [PATCH 11/17] add bulk test --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 722e733129..2194313eec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -521,6 +521,8 @@ jobs: - test_name: lit-identity-test - test_name: lit-parentchain-nonce - test_name: lit-batch-test + - test_name: lit-bulk-identity-test + - test_name: lit-bulk-vc-test steps: - uses: actions/checkout@v3 From 8293bfce7fbf2718d13bcd0032d11bc6067ab61f Mon Sep 17 00:00:00 2001 From: zhouhuitian Date: Wed, 26 Apr 2023 12:01:49 +0800 Subject: [PATCH 12/17] fmt yml --- tee-worker/docker/lit-batch-test.yml | 46 ++++++++++---------- tee-worker/docker/lit-bulk-identity-test.yml | 46 ++++++++++---------- tee-worker/docker/lit-bulk-vc-test.yml | 46 ++++++++++---------- 3 files changed, 69 insertions(+), 69 deletions(-) diff --git a/tee-worker/docker/lit-batch-test.yml b/tee-worker/docker/lit-batch-test.yml index 07b90db135..726e9f1d0b 100644 --- a/tee-worker/docker/lit-batch-test.yml +++ b/tee-worker/docker/lit-batch-test.yml @@ -1,25 +1,25 @@ services: - lit-batch-test: - image: integritee-cli:dev - container_name: litentry-batch-test - volumes: - - ../ts-tests:/ts-tests - - ../cli:/usr/local/worker-cli - build: - context: .. - dockerfile: build.Dockerfile - target: deployed-client - depends_on: - integritee-node: - condition: service_healthy - integritee-worker-1: - condition: service_healthy - integritee-worker-2: - condition: service_healthy - networks: - - integritee-test-network - entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-batch 2>&1' " - restart: "no" + lit-batch-test: + image: integritee-cli:dev + container_name: litentry-batch-test + volumes: + - ../ts-tests:/ts-tests + - ../cli:/usr/local/worker-cli + build: + context: .. + dockerfile: build.Dockerfile + target: deployed-client + depends_on: + integritee-node: + condition: service_healthy + integritee-worker-1: + condition: service_healthy + integritee-worker-2: + condition: service_healthy + networks: + - integritee-test-network + entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-batch 2>&1' " + restart: "no" networks: - integritee-test-network: - driver: bridge + integritee-test-network: + driver: bridge diff --git a/tee-worker/docker/lit-bulk-identity-test.yml b/tee-worker/docker/lit-bulk-identity-test.yml index 21130dc075..2752d674fb 100644 --- a/tee-worker/docker/lit-bulk-identity-test.yml +++ b/tee-worker/docker/lit-bulk-identity-test.yml @@ -1,25 +1,25 @@ services: - lit-bulk-identity-test: - image: integritee-cli:dev - container_name: litentry-bulk-identity-test - volumes: - - ../ts-tests:/ts-tests - - ../cli:/usr/local/worker-cli - build: - context: .. - dockerfile: build.Dockerfile - target: deployed-client - depends_on: - integritee-node: - condition: service_healthy - integritee-worker-1: - condition: service_healthy - integritee-worker-2: - condition: service_healthy - networks: - - integritee-test-network - entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-bulk-identity 2>&1' " - restart: "no" + lit-bulk-identity-test: + image: integritee-cli:dev + container_name: litentry-bulk-identity-test + volumes: + - ../ts-tests:/ts-tests + - ../cli:/usr/local/worker-cli + build: + context: .. + dockerfile: build.Dockerfile + target: deployed-client + depends_on: + integritee-node: + condition: service_healthy + integritee-worker-1: + condition: service_healthy + integritee-worker-2: + condition: service_healthy + networks: + - integritee-test-network + entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-bulk-identity 2>&1' " + restart: "no" networks: - integritee-test-network: - driver: bridge + integritee-test-network: + driver: bridge diff --git a/tee-worker/docker/lit-bulk-vc-test.yml b/tee-worker/docker/lit-bulk-vc-test.yml index 39cf8588da..8fc1f26049 100644 --- a/tee-worker/docker/lit-bulk-vc-test.yml +++ b/tee-worker/docker/lit-bulk-vc-test.yml @@ -1,25 +1,25 @@ services: - lit-bulk-vc-test: - image: integritee-cli:dev - container_name: litentry-bulk-vc-test - volumes: - - ../ts-tests:/ts-tests - - ../cli:/usr/local/worker-cli - build: - context: .. - dockerfile: build.Dockerfile - target: deployed-client - depends_on: - integritee-node: - condition: service_healthy - integritee-worker-1: - condition: service_healthy - integritee-worker-2: - condition: service_healthy - networks: - - integritee-test-network - entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-bulk-vc 2>&1' " - restart: "no" + lit-bulk-vc-test: + image: integritee-cli:dev + container_name: litentry-bulk-vc-test + volumes: + - ../ts-tests:/ts-tests + - ../cli:/usr/local/worker-cli + build: + context: .. + dockerfile: build.Dockerfile + target: deployed-client + depends_on: + integritee-node: + condition: service_healthy + integritee-worker-1: + condition: service_healthy + integritee-worker-2: + condition: service_healthy + networks: + - integritee-test-network + entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_test.sh test-bulk-vc 2>&1' " + restart: "no" networks: - integritee-test-network: - driver: bridge + integritee-test-network: + driver: bridge From 18657fe8c1637a81d104fa29c641a6b69739c5bd Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 14:16:54 +0800 Subject: [PATCH 13/17] fix ci --- tee-worker/ts-tests/bulk_identity.test.ts | 18 +++--------------- tee-worker/ts-tests/common/transactions.ts | 9 +++++---- tee-worker/ts-tests/common/utils.ts | 1 + tee-worker/ts-tests/identity.test.ts | 1 + tee-worker/ts-tests/package.json | 4 ++-- 5 files changed, 12 insertions(+), 21 deletions(-) diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index d2093dbf07..8272a85891 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -7,6 +7,7 @@ import { assertIdentityCreated, assertIdentityRemoved, assertIdentityVerified, + assertInitialIDGraphCreated, } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; @@ -65,17 +66,8 @@ describeLitentry('multiple accounts test', 2, async (context) => { ]); const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - assert.equal( - resp_events.length, - substrateSigners.length, - 'set usershieldingkey with multiple accounts check fail' - ); - event_datas.forEach((data: any, index: number) => { - assert.equal( - data, - u8aToHex(substrateSigners[index].addressRaw), - `shielding key should be set,account ${index + 1} is not set` - ); + event_datas.forEach(async (data: any, index: number) => { + await assertInitialIDGraphCreated(context.api, substrateSigners[index], data); }); }); @@ -93,8 +85,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { ]); const resp_events_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); - assert.equal(resp_events.length, identities.length, 'create identities with multiple accounts check fail'); - for (let index = 0; index < resp_events_datas.length; index++) { console.log('createIdentity', index); assertIdentityCreated(substrateSigners[index], resp_events_datas[index]); @@ -116,7 +106,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityVerified', ]); - assert.equal(resp_events.length, txs.length, 'verify identities with multiple accounts check fail'); const [resp_events_datas] = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityVerified'); for (let index = 0; index < resp_events_datas.length; index++) { console.log('verifyIdentity', index); @@ -130,7 +119,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityRemoved', ]); - assert.equal(resp_events.length, txs.length, 'remove identities with multiple accounts check fail'); const [resp_events_datas] = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityRemoved'); for (let index = 0; index < resp_events_datas.length; index++) { console.log('verifyIdentity', index); diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index d2d8b54970..a69ac88faa 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -6,6 +6,7 @@ import { getListenTimeoutInBlocks } from './utils'; import { EventRecord, Event } from '@polkadot/types/interfaces'; import { expect } from 'chai'; import colors from 'colors'; + //transactions utils export async function sendTxUntilInBlock(api: ApiPromise, tx: SubmittableExtrinsic, signer: KeyringPair) { return new Promise(async (resolve, reject) => { @@ -90,13 +91,13 @@ export async function sendTxsWithUtility( export async function multiAccountTxSender( context: IntegrationTestContext, txs: TransactionSubmit[], - signers: KeyringPair | KeyringPair[], + signers: KeyringPair[], pallet: string, events: string[] ): Promise { - (await sendTxUntilInBlockList(context.api, txs, signers)) as any; + await sendTxUntilInBlockList(context.api, txs, signers); const resp_events = await listenEvent(context.api, pallet, events, txs.length); - expect(resp_events.length).to.be.equal(txs.length); + return resp_events; } @@ -126,7 +127,7 @@ export async function listenEvent(api: ApiPromise, section: string, methods: str const m = e.event.method; const d = e.event.data; - section === s + section === s && e.phase.asApplyExtrinsic.eq(index) ? console.log(colors.green(`Event[${i}]: ${s}.${m} ${d}`)) : console.log(`Event[${i}]: ${s}.${m} ${d}`); }); diff --git a/tee-worker/ts-tests/common/utils.ts b/tee-worker/ts-tests/common/utils.ts index 8c0aff2571..6a6ee4b090 100644 --- a/tee-worker/ts-tests/common/utils.ts +++ b/tee-worker/ts-tests/common/utils.ts @@ -779,6 +779,7 @@ export async function assertInitialIDGraphCreated(api: ApiPromise, signer: Keyri 'LitentryIdentity', await buildIdentityHelper(u8aToHex(signer.addressRaw), 'LitentryRococo', 'Substrate') ) as LitentryIdentity; + assert.isTrue(isEqual(event.idGraph[0][0], expected_identity)); // check identityContext in idgraph assert.equal(event.idGraph[0][1].linking_request_block, 0); diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index e56129baa0..9c84f95639 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -74,6 +74,7 @@ describeLitentry('Test Identity', 0, (context) => { 'CreateIdentityFailed', ]); await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound', true); + return; }); step('set user shielding key', async function () { diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index c871087903..9f92e0359f 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -10,9 +10,9 @@ "test-batch:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'batch.test.ts'", "test-batch:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'batch.test.ts'", "test-bulk-vc:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'bulk_vc.test.ts'", - "test-bulk-vc:staging": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'bulk_vc.test.ts'", + "test-bulk-vc:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'bulk_vc.test.ts'", "test-bulk-identity:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'bulk_identity.test.ts'", - "test-bulk-identity:staging": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'bulk_identity.test.ts'" + "test-bulk-identity:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'bulk_identity.test.ts'" }, "dependencies": { "@noble/ed25519": "^1.7.3", From 07987c0c56d4f33e15a3a06ab02f3b228daf14c2 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 14:19:00 +0800 Subject: [PATCH 14/17] add length expect --- tee-worker/ts-tests/common/transactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index a69ac88faa..3b768c2aaa 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -97,7 +97,7 @@ export async function multiAccountTxSender( ): Promise { await sendTxUntilInBlockList(context.api, txs, signers); const resp_events = await listenEvent(context.api, pallet, events, txs.length); - + expect(resp_events.length).to.be.equal(txs.length); return resp_events; } From 8f65b3cff6692f052bf3dba45318ab9ac78b5f7e Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 26 Apr 2023 14:44:20 +0800 Subject: [PATCH 15/17] add length expect --- tee-worker/ts-tests/common/transactions.ts | 2 +- tee-worker/ts-tests/identity.test.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index a69ac88faa..3b768c2aaa 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -97,7 +97,7 @@ export async function multiAccountTxSender( ): Promise { await sendTxUntilInBlockList(context.api, txs, signers); const resp_events = await listenEvent(context.api, pallet, events, txs.length); - + expect(resp_events.length).to.be.equal(txs.length); return resp_events; } diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 9c84f95639..e56129baa0 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -74,7 +74,6 @@ describeLitentry('Test Identity', 0, (context) => { 'CreateIdentityFailed', ]); await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound', true); - return; }); step('set user shielding key', async function () { From 8d841325315f6ee1f08b16c39f867d11c2284ac1 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Thu, 27 Apr 2023 21:08:15 +0800 Subject: [PATCH 16/17] generate types --- .../ts-tests/interfaces/augment-api-consts.ts | 299 ++ .../ts-tests/interfaces/augment-api-errors.ts | 614 ++++ .../ts-tests/interfaces/augment-api-events.ts | 844 ++++++ .../ts-tests/interfaces/augment-api-query.ts | 700 +++++ .../ts-tests/interfaces/augment-api-rpc.ts | 1025 +++++++ .../interfaces/augment-api-runtime.ts | 318 ++ .../ts-tests/interfaces/augment-api-tx.ts | 2374 +++++++++++++++ tee-worker/ts-tests/interfaces/augment-api.ts | 10 + .../ts-tests/interfaces/augment-types.ts | 2346 +++++++++++++++ tee-worker/ts-tests/interfaces/definitions.ts | 1 + .../interfaces/identity/definitions.ts | 180 ++ .../ts-tests/interfaces/identity/index.ts | 4 + .../ts-tests/interfaces/identity/types.ts | 268 ++ tee-worker/ts-tests/interfaces/index.ts | 4 + tee-worker/ts-tests/interfaces/lookup.ts | 2302 +++++++++++++++ tee-worker/ts-tests/interfaces/registry.ts | 324 ++ .../ts-tests/interfaces/types-lookup.ts | 2611 +++++++++++++++++ tee-worker/ts-tests/interfaces/types.ts | 4 + tee-worker/ts-tests/yarn.lock | 1383 +++++++-- 19 files changed, 15307 insertions(+), 304 deletions(-) create mode 100644 tee-worker/ts-tests/interfaces/augment-api-consts.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api-errors.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api-events.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api-query.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api-rpc.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api-runtime.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api-tx.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-api.ts create mode 100644 tee-worker/ts-tests/interfaces/augment-types.ts create mode 100644 tee-worker/ts-tests/interfaces/definitions.ts create mode 100644 tee-worker/ts-tests/interfaces/identity/definitions.ts create mode 100644 tee-worker/ts-tests/interfaces/identity/index.ts create mode 100644 tee-worker/ts-tests/interfaces/identity/types.ts create mode 100644 tee-worker/ts-tests/interfaces/index.ts create mode 100644 tee-worker/ts-tests/interfaces/lookup.ts create mode 100644 tee-worker/ts-tests/interfaces/registry.ts create mode 100644 tee-worker/ts-tests/interfaces/types-lookup.ts create mode 100644 tee-worker/ts-tests/interfaces/types.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-consts.ts b/tee-worker/ts-tests/interfaces/augment-api-consts.ts new file mode 100644 index 0000000000..0129848776 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-consts.ts @@ -0,0 +1,299 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/consts'; + +import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; +import type { Bytes, Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Codec } from '@polkadot/types-codec/types'; +import type { Permill } from '@polkadot/types/interfaces/runtime'; +import type { + FrameSupportPalletId, + FrameSystemLimitsBlockLength, + FrameSystemLimitsBlockWeights, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, +} from '@polkadot/types/lookup'; + +export type __AugmentedConst = AugmentedConst; + +declare module '@polkadot/api-base/types/consts' { + interface AugmentedConsts { + balances: { + /** + * The minimum amount required to keep an account open. + **/ + existentialDeposit: u128 & AugmentedConst; + /** + * The maximum number of locks that should exist on an account. + * Not strictly enforced, but used for weight estimation. + **/ + maxLocks: u32 & AugmentedConst; + /** + * The maximum number of named reserves that can exist on an account. + **/ + maxReserves: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + claims: { + prefix: Bytes & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + grandpa: { + /** + * Max Authorities in use + **/ + maxAuthorities: u32 & AugmentedConst; + /** + * The maximum number of entries to keep in the set id to session index mapping. + * + * Since the `SetIdSession` map is only used for validating equivocations this + * value should relate to the bonding duration of whatever staking system is + * being used (if any). If equivocation handling is not enabled then this value + * can be zero. + **/ + maxSetIdSessionEntries: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + multisig: { + /** + * The base amount of currency needed to reserve for creating a multisig execution or to + * store a dispatch call for later. + * + * This is held for an additional storage item whose value size is + * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is + * `32 + sizeof(AccountId)` bytes. + **/ + depositBase: u128 & AugmentedConst; + /** + * The amount of currency needed per unit threshold when creating a multisig execution. + * + * This is held for adding 32 bytes more into a pre-existing storage value. + **/ + depositFactor: u128 & AugmentedConst; + /** + * The maximum amount of signatories allowed in the multisig. + **/ + maxSignatories: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + proxy: { + /** + * The base amount of currency needed to reserve for creating an announcement. + * + * This is held when a new storage item holding a `Balance` is created (typically 16 + * bytes). + **/ + announcementDepositBase: u128 & AugmentedConst; + /** + * The amount of currency needed per announcement made. + * + * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes) + * into a pre-existing storage value. + **/ + announcementDepositFactor: u128 & AugmentedConst; + /** + * The maximum amount of time-delayed announcements that are allowed to be pending. + **/ + maxPending: u32 & AugmentedConst; + /** + * The maximum amount of proxies allowed for a single account. + **/ + maxProxies: u32 & AugmentedConst; + /** + * The base amount of currency needed to reserve for creating a proxy. + * + * This is held for an additional storage item whose value size is + * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes. + **/ + proxyDepositBase: u128 & AugmentedConst; + /** + * The amount of currency needed per proxy added. + * + * This is held for adding 32 bytes plus an instance of `ProxyType` more into a + * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take + * into account `32 + proxy_type.encode().len()` bytes of data. + **/ + proxyDepositFactor: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + scheduler: { + /** + * The maximum weight that may be scheduled per block for any dispatchables. + **/ + maximumWeight: SpWeightsWeightV2Weight & AugmentedConst; + /** + * The maximum number of scheduled calls in the queue for a single block. + **/ + maxScheduledPerBlock: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + system: { + /** + * Maximum number of block number to block hash mappings to keep (oldest pruned first). + **/ + blockHashCount: u32 & AugmentedConst; + /** + * The maximum length of a block (in bytes). + **/ + blockLength: FrameSystemLimitsBlockLength & AugmentedConst; + /** + * Block & extrinsics weights: base values and limits. + **/ + blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst; + /** + * The weight of runtime database operations the runtime can invoke. + **/ + dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst; + /** + * The designated SS58 prefix of this chain. + * + * This replaces the "ss58Format" property declared in the chain spec. Reason is + * that the runtime should know about the prefix in order to make use of it as + * an identifier of the chain. + **/ + ss58Prefix: u16 & AugmentedConst; + /** + * Get the chain's current version. + **/ + version: SpVersionRuntimeVersion & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + teeracle: { + maxOracleBlobLen: u32 & AugmentedConst; + /** + * Max number of whitelisted oracle's releases allowed + **/ + maxWhitelistedReleases: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + timestamp: { + /** + * The minimum period between blocks. Beware that this is different to the *expected* + * period that the block production apparatus provides. Your chosen consensus system will + * generally work with this to determine a sensible block time. e.g. For Aura, it will be + * double this period on default settings. + **/ + minimumPeriod: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + transactionPayment: { + /** + * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their + * `priority` + * + * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later + * added to a tip component in regular `priority` calculations. + * It means that a `Normal` transaction can front-run a similarly-sized `Operational` + * extrinsic (with no tip), by including a tip value greater than the virtual tip. + * + * ```rust,ignore + * // For `Normal` + * let priority = priority_calc(tip); + * + * // For `Operational` + * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; + * let priority = priority_calc(tip + virtual_tip); + * ``` + * + * Note that since we use `final_fee` the multiplier applies also to the regular `tip` + * sent with the transaction. So, not only does the transaction get a priority bump based + * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational` + * transactions. + **/ + operationalFeeMultiplier: u8 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + treasury: { + /** + * Percentage of spare funds (if any) that are burnt per spend period. + **/ + burn: Permill & AugmentedConst; + /** + * The maximum number of approvals that can wait in the spending queue. + * + * NOTE: This parameter is also used within the Bounties Pallet extension if enabled. + **/ + maxApprovals: u32 & AugmentedConst; + /** + * The treasury's pallet id, used for deriving its sovereign account ID. + **/ + palletId: FrameSupportPalletId & AugmentedConst; + /** + * Fraction of a proposal's value that should be bonded in order to place the proposal. + * An accepted proposal gets these back. A rejected proposal does not. + **/ + proposalBond: Permill & AugmentedConst; + /** + * Maximum amount of funds that should be placed in a deposit for making a proposal. + **/ + proposalBondMaximum: Option & AugmentedConst; + /** + * Minimum amount of funds that should be placed in a deposit for making a proposal. + **/ + proposalBondMinimum: u128 & AugmentedConst; + /** + * Period between successive spends. + **/ + spendPeriod: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + utility: { + /** + * The limit on the number of batched calls. + **/ + batchedCallsLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + vesting: { + maxVestingSchedules: u32 & AugmentedConst; + /** + * The minimum amount transferred to call `vested_transfer`. + **/ + minVestedTransfer: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + } // AugmentedConsts +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-errors.ts b/tee-worker/ts-tests/interfaces/augment-api-errors.ts new file mode 100644 index 0000000000..d043a89fd4 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-errors.ts @@ -0,0 +1,614 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/errors'; + +import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types'; + +export type __AugmentedError = AugmentedError; + +declare module '@polkadot/api-base/types/errors' { + interface AugmentedErrors { + balances: { + /** + * Beneficiary account must pre-exist + **/ + DeadAccount: AugmentedError; + /** + * Value too low to create account due to existential deposit + **/ + ExistentialDeposit: AugmentedError; + /** + * A vesting schedule already exists for this account + **/ + ExistingVestingSchedule: AugmentedError; + /** + * Balance too low to send value. + **/ + InsufficientBalance: AugmentedError; + /** + * Transfer/payment would kill account + **/ + KeepAlive: AugmentedError; + /** + * Account liquidity restrictions prevent withdrawal + **/ + LiquidityRestrictions: AugmentedError; + /** + * Number of named reserves exceed MaxReserves + **/ + TooManyReserves: AugmentedError; + /** + * Vesting balance too high to send value + **/ + VestingBalance: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + claims: { + /** + * Invalid Ethereum signature. + **/ + InvalidEthereumSignature: AugmentedError; + /** + * A needed statement was not included. + **/ + InvalidStatement: AugmentedError; + /** + * There's not enough in the pot to pay out some unvested amount. Generally implies a logic + * error. + **/ + PotUnderflow: AugmentedError; + /** + * Account ID sending transaction has no claim. + **/ + SenderHasNoClaim: AugmentedError; + /** + * Ethereum address has no claim. + **/ + SignerHasNoClaim: AugmentedError; + /** + * The account already has a vested balance. + **/ + VestedBalanceExists: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + council: { + /** + * Members are already initialized! + **/ + AlreadyInitialized: AugmentedError; + /** + * Duplicate proposals not allowed + **/ + DuplicateProposal: AugmentedError; + /** + * Duplicate vote ignored + **/ + DuplicateVote: AugmentedError; + /** + * Account is not a member + **/ + NotMember: AugmentedError; + /** + * Proposal must exist + **/ + ProposalMissing: AugmentedError; + /** + * The close call was made too early, before the end of the voting. + **/ + TooEarly: AugmentedError; + /** + * There can only be a maximum of `MaxProposals` active proposals. + **/ + TooManyProposals: AugmentedError; + /** + * Mismatched index + **/ + WrongIndex: AugmentedError; + /** + * The given length bound for the proposal was too low. + **/ + WrongProposalLength: AugmentedError; + /** + * The given weight bound for the proposal was too low. + **/ + WrongProposalWeight: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + grandpa: { + /** + * Attempt to signal GRANDPA change with one already pending. + **/ + ChangePending: AugmentedError; + /** + * A given equivocation report is valid but already previously reported. + **/ + DuplicateOffenceReport: AugmentedError; + /** + * An equivocation proof provided as part of an equivocation report is invalid. + **/ + InvalidEquivocationProof: AugmentedError; + /** + * A key ownership proof provided as part of an equivocation report is invalid. + **/ + InvalidKeyOwnershipProof: AugmentedError; + /** + * Attempt to signal GRANDPA pause when the authority set isn't live + * (either paused or already pending pause). + **/ + PauseFailed: AugmentedError; + /** + * Attempt to signal GRANDPA resume when the authority set isn't paused + * (either live or already pending resume). + **/ + ResumeFailed: AugmentedError; + /** + * Cannot signal forced change so soon after last. + **/ + TooSoon: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + identityManagement: { + /** + * a delegatee doesn't exist + **/ + DelegateeNotExist: AugmentedError; + /** + * a `create_identity` request from unauthorised user + **/ + UnauthorisedUser: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + impExtrinsicWhitelist: { + /** + * Group memeber already in set + **/ + GroupMemberAlreadyExists: AugmentedError; + /** + * Provided accountId is not a Group member + **/ + GroupMemberInvalid: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + multisig: { + /** + * Call is already approved by this signatory. + **/ + AlreadyApproved: AugmentedError; + /** + * The data to be stored is already stored. + **/ + AlreadyStored: AugmentedError; + /** + * The maximum weight information provided was too low. + **/ + MaxWeightTooLow: AugmentedError; + /** + * Threshold must be 2 or greater. + **/ + MinimumThreshold: AugmentedError; + /** + * Call doesn't need any (more) approvals. + **/ + NoApprovalsNeeded: AugmentedError; + /** + * Multisig operation not found when attempting to cancel. + **/ + NotFound: AugmentedError; + /** + * No timepoint was given, yet the multisig operation is already underway. + **/ + NoTimepoint: AugmentedError; + /** + * Only the account that originally created the multisig is able to cancel it. + **/ + NotOwner: AugmentedError; + /** + * The sender was contained in the other signatories; it shouldn't be. + **/ + SenderInSignatories: AugmentedError; + /** + * The signatories were provided out of order; they should be ordered. + **/ + SignatoriesOutOfOrder: AugmentedError; + /** + * There are too few signatories in the list. + **/ + TooFewSignatories: AugmentedError; + /** + * There are too many signatories in the list. + **/ + TooManySignatories: AugmentedError; + /** + * A timepoint was given, yet no multisig operation is underway. + **/ + UnexpectedTimepoint: AugmentedError; + /** + * A different timepoint was given to the multisig operation that is underway. + **/ + WrongTimepoint: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + preimage: { + /** + * Preimage has already been noted on-chain. + **/ + AlreadyNoted: AugmentedError; + /** + * The user is not authorized to perform this action. + **/ + NotAuthorized: AugmentedError; + /** + * The preimage cannot be removed since it has not yet been noted. + **/ + NotNoted: AugmentedError; + /** + * The preimage request cannot be removed since no outstanding requests exist. + **/ + NotRequested: AugmentedError; + /** + * A preimage may not be removed when there are outstanding requests. + **/ + Requested: AugmentedError; + /** + * Preimage is too large to store on-chain. + **/ + TooBig: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + proxy: { + /** + * Account is already a proxy. + **/ + Duplicate: AugmentedError; + /** + * Call may not be made by proxy because it may escalate its privileges. + **/ + NoPermission: AugmentedError; + /** + * Cannot add self as proxy. + **/ + NoSelfProxy: AugmentedError; + /** + * Proxy registration not found. + **/ + NotFound: AugmentedError; + /** + * Sender is not a proxy of the account to be proxied. + **/ + NotProxy: AugmentedError; + /** + * There are too many proxies registered or too many announcements pending. + **/ + TooMany: AugmentedError; + /** + * Announcement, if made at all, was made too recently. + **/ + Unannounced: AugmentedError; + /** + * A call which is incompatible with the proxy type's filter was attempted. + **/ + Unproxyable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + scheduler: { + /** + * Failed to schedule a call + **/ + FailedToSchedule: AugmentedError; + /** + * Attempt to use a non-named function on a named task. + **/ + Named: AugmentedError; + /** + * Cannot find the scheduled call. + **/ + NotFound: AugmentedError; + /** + * Reschedule failed because it does not change scheduled time. + **/ + RescheduleNoChange: AugmentedError; + /** + * Given target block number is in the past. + **/ + TargetBlockNumberInPast: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + sidechain: { + /** + * The value for the next finalization candidate is invalid. + **/ + InvalidNextFinalizationCandidateBlockNumber: AugmentedError; + /** + * A proposed block is unexpected. + **/ + ReceivedUnexpectedSidechainBlock: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + sudo: { + /** + * Sender must be the Sudo account + **/ + RequireSudo: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + system: { + /** + * The origin filter prevent the call to be dispatched. + **/ + CallFiltered: AugmentedError; + /** + * Failed to extract the runtime version from the new runtime. + * + * Either calling `Core_version` or decoding `RuntimeVersion` failed. + **/ + FailedToExtractRuntimeVersion: AugmentedError; + /** + * The name of specification does not match between the current runtime + * and the new runtime. + **/ + InvalidSpecName: AugmentedError; + /** + * Suicide called when the account has non-default composite data. + **/ + NonDefaultComposite: AugmentedError; + /** + * There is a non-zero reference count preventing the account from being purged. + **/ + NonZeroRefCount: AugmentedError; + /** + * The specification version is not allowed to decrease between the current runtime + * and the new runtime. + **/ + SpecVersionNeedsToIncrease: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + teeracle: { + DataSourceStringTooLong: AugmentedError; + InvalidCurrency: AugmentedError; + OracleBlobTooBig: AugmentedError; + OracleDataNameStringTooLong: AugmentedError; + ReleaseAlreadyWhitelisted: AugmentedError; + ReleaseNotWhitelisted: AugmentedError; + /** + * Too many MrEnclave in the whitelist. + **/ + ReleaseWhitelistOverflow: AugmentedError; + TradingPairStringTooLong: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + teerex: { + /** + * The provided collateral data is invalid + **/ + CollateralInvalid: AugmentedError; + /** + * The length of the `data` passed to `publish_hash` exceeds the limit. + **/ + DataTooLong: AugmentedError; + /** + * No enclave is registered. + **/ + EmptyEnclaveRegistry: AugmentedError; + /** + * The enclave is not registered. + **/ + EnclaveIsNotRegistered: AugmentedError; + /** + * Enclave not in the scheduled list, therefore unexpected. + **/ + EnclaveNotInSchedule: AugmentedError; + /** + * Failed to decode enclave signer. + **/ + EnclaveSignerDecodeError: AugmentedError; + /** + * The worker url is too long. + **/ + EnclaveUrlTooLong: AugmentedError; + /** + * The Remote Attestation report is too long. + **/ + RaReportTooLong: AugmentedError; + RemoteAttestationTooOld: AugmentedError; + /** + * Verifying RA report failed. + **/ + RemoteAttestationVerificationFailed: AugmentedError; + /** + * This operation needs the admin permission + **/ + RequireAdmin: AugmentedError; + /** + * Can not found the desired scheduled enclave. + **/ + ScheduledEnclaveNotExist: AugmentedError; + /** + * Sender does not match attested enclave in report. + **/ + SenderIsNotAttestedEnclave: AugmentedError; + /** + * The enclave cannot attest, because its building mode is not allowed. + **/ + SgxModeNotAllowed: AugmentedError; + /** + * The number of `extra_topics` passed to `publish_hash` exceeds the limit. + **/ + TooManyTopics: AugmentedError; + /** + * The bonding account doesn't match the enclave. + **/ + WrongMrenclaveForBondingAccount: AugmentedError; + /** + * The shard doesn't match the enclave. + **/ + WrongMrenclaveForShard: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + treasury: { + /** + * The spend origin is valid but the amount it is allowed to spend is lower than the + * amount to be spent. + **/ + InsufficientPermission: AugmentedError; + /** + * Proposer's balance is too low. + **/ + InsufficientProposersBalance: AugmentedError; + /** + * No proposal or bounty at that index. + **/ + InvalidIndex: AugmentedError; + /** + * Proposal has not been approved. + **/ + ProposalNotApproved: AugmentedError; + /** + * Too many approvals in the queue. + **/ + TooManyApprovals: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + utility: { + /** + * Too many calls batched. + **/ + TooManyCalls: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vcManagement: { + LengthMismatch: AugmentedError; + /** + * Error when the caller account is not the admin + **/ + RequireAdmin: AugmentedError; + /** + * Schema is active + **/ + SchemaAlreadyActivated: AugmentedError; + /** + * Schema is already disabled + **/ + SchemaAlreadyDisabled: AugmentedError; + SchemaIndexOverFlow: AugmentedError; + /** + * Schema not exists + **/ + SchemaNotExists: AugmentedError; + /** + * The VC is already disabled + **/ + VCAlreadyDisabled: AugmentedError; + /** + * the VC already exists + **/ + VCAlreadyExists: AugmentedError; + /** + * the ID doesn't exist + **/ + VCNotExist: AugmentedError; + /** + * The requester doesn't have the permission (because of subject mismatch) + **/ + VCSubjectMismatch: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vcmpExtrinsicWhitelist: { + /** + * Group memeber already in set + **/ + GroupMemberAlreadyExists: AugmentedError; + /** + * Provided accountId is not a Group member + **/ + GroupMemberInvalid: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + vesting: { + /** + * Amount being transferred is too low to create a vesting schedule. + **/ + AmountLow: AugmentedError; + /** + * The account already has `MaxVestingSchedules` count of schedules and thus + * cannot add another one. Consider merging existing schedules in order to add another. + **/ + AtMaxVestingSchedules: AugmentedError; + /** + * Failed to create a new schedule because some parameter was invalid. + **/ + InvalidScheduleParams: AugmentedError; + /** + * The account given is not vesting. + **/ + NotVesting: AugmentedError; + /** + * An index was out of bounds of the vesting schedules. + **/ + ScheduleIndexOutOfBounds: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + } // AugmentedErrors +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-events.ts b/tee-worker/ts-tests/interfaces/augment-api-events.ts new file mode 100644 index 0000000000..4d9d642835 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-events.ts @@ -0,0 +1,844 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/events'; + +import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; +import type { + Bytes, + Null, + Option, + Result, + Text, + U8aFixed, + Vec, + bool, + u128, + u16, + u32, + u64, +} from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; +import type { + ClaimsPrimitivesEthereumAddress, + CorePrimitivesAssertion, + CorePrimitivesErrorErrorDetail, + CorePrimitivesKeyAesOutput, + FrameSupportDispatchDispatchInfo, + FrameSupportTokensMiscBalanceStatus, + IntegriteeNodeRuntimeProxyType, + PalletMultisigTimepoint, + SpFinalityGrandpaAppPublic, + SpRuntimeDispatchError, + SubstrateFixedFixedU64, +} from '@polkadot/types/lookup'; + +export type __AugmentedEvent = AugmentedEvent; + +declare module '@polkadot/api-base/types/events' { + interface AugmentedEvents { + balances: { + /** + * A balance was set by root. + **/ + BalanceSet: AugmentedEvent< + ApiType, + [who: AccountId32, free: u128, reserved: u128], + { who: AccountId32; free: u128; reserved: u128 } + >; + /** + * Some amount was deposited (e.g. for transaction fees). + **/ + Deposit: AugmentedEvent; + /** + * An account was removed whose balance was non-zero but below ExistentialDeposit, + * resulting in an outright loss. + **/ + DustLost: AugmentedEvent< + ApiType, + [account: AccountId32, amount: u128], + { account: AccountId32; amount: u128 } + >; + /** + * An account was created with some free balance. + **/ + Endowed: AugmentedEvent< + ApiType, + [account: AccountId32, freeBalance: u128], + { account: AccountId32; freeBalance: u128 } + >; + /** + * Some balance was reserved (moved from free to reserved). + **/ + Reserved: AugmentedEvent; + /** + * Some balance was moved from the reserve of the first account to the second account. + * Final argument indicates the destination balance type. + **/ + ReserveRepatriated: AugmentedEvent< + ApiType, + [ + from: AccountId32, + to: AccountId32, + amount: u128, + destinationStatus: FrameSupportTokensMiscBalanceStatus + ], + { + from: AccountId32; + to: AccountId32; + amount: u128; + destinationStatus: FrameSupportTokensMiscBalanceStatus; + } + >; + /** + * Some amount was removed from the account (e.g. for misbehavior). + **/ + Slashed: AugmentedEvent; + /** + * Transfer succeeded. + **/ + Transfer: AugmentedEvent< + ApiType, + [from: AccountId32, to: AccountId32, amount: u128], + { from: AccountId32; to: AccountId32; amount: u128 } + >; + /** + * Some balance was unreserved (moved from reserved to free). + **/ + Unreserved: AugmentedEvent; + /** + * Some amount was withdrawn from the account (e.g. for transaction fees). + **/ + Withdraw: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + claims: { + /** + * Someone claimed some TEERs. `[who, ethereum_address, amount]` + **/ + Claimed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + council: { + /** + * A motion was approved by the required threshold. + **/ + Approved: AugmentedEvent; + /** + * A proposal was closed because its threshold was reached or after its duration was up. + **/ + Closed: AugmentedEvent< + ApiType, + [proposalHash: H256, yes: u32, no: u32], + { proposalHash: H256; yes: u32; no: u32 } + >; + /** + * A motion was not approved by the required threshold. + **/ + Disapproved: AugmentedEvent; + /** + * A motion was executed; result will be `Ok` if it returned without error. + **/ + Executed: AugmentedEvent< + ApiType, + [proposalHash: H256, result: Result], + { proposalHash: H256; result: Result } + >; + /** + * A single member did some action; result will be `Ok` if it returned without error. + **/ + MemberExecuted: AugmentedEvent< + ApiType, + [proposalHash: H256, result: Result], + { proposalHash: H256; result: Result } + >; + /** + * A motion (given hash) has been proposed (by given account) with a threshold (given + * `MemberCount`). + **/ + Proposed: AugmentedEvent< + ApiType, + [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], + { account: AccountId32; proposalIndex: u32; proposalHash: H256; threshold: u32 } + >; + /** + * A motion (given hash) has been voted on by given account, leaving + * a tally (yes votes and no votes given respectively as `MemberCount`). + **/ + Voted: AugmentedEvent< + ApiType, + [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], + { account: AccountId32; proposalHash: H256; voted: bool; yes: u32; no: u32 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + grandpa: { + /** + * New authority set has been applied. + **/ + NewAuthorities: AugmentedEvent< + ApiType, + [authoritySet: Vec>], + { authoritySet: Vec> } + >; + /** + * Current authority set has been paused. + **/ + Paused: AugmentedEvent; + /** + * Current authority set has been resumed. + **/ + Resumed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + identityManagement: { + CreateIdentityFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + CreateIdentityRequested: AugmentedEvent; + DelegateeAdded: AugmentedEvent; + DelegateeRemoved: AugmentedEvent; + IdentityCreated: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: CorePrimitivesKeyAesOutput, + code: CorePrimitivesKeyAesOutput, + reqExtHash: H256 + ], + { + account: AccountId32; + identity: CorePrimitivesKeyAesOutput; + code: CorePrimitivesKeyAesOutput; + reqExtHash: H256; + } + >; + IdentityRemoved: AugmentedEvent< + ApiType, + [account: AccountId32, identity: CorePrimitivesKeyAesOutput, reqExtHash: H256], + { account: AccountId32; identity: CorePrimitivesKeyAesOutput; reqExtHash: H256 } + >; + IdentityVerified: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: CorePrimitivesKeyAesOutput, + idGraph: CorePrimitivesKeyAesOutput, + reqExtHash: H256 + ], + { + account: AccountId32; + identity: CorePrimitivesKeyAesOutput; + idGraph: CorePrimitivesKeyAesOutput; + reqExtHash: H256; + } + >; + ImportScheduledEnclaveFailed: AugmentedEvent; + RemoveIdentityFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + RemoveIdentityRequested: AugmentedEvent; + SetUserShieldingKeyFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + SetUserShieldingKeyRequested: AugmentedEvent; + UnclassifiedError: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + UserShieldingKeySet: AugmentedEvent< + ApiType, + [account: AccountId32, idGraph: CorePrimitivesKeyAesOutput, reqExtHash: H256], + { account: AccountId32; idGraph: CorePrimitivesKeyAesOutput; reqExtHash: H256 } + >; + VerifyIdentityFailed: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + VerifyIdentityRequested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + impExtrinsicWhitelist: { + /** + * Group member added to set + **/ + GroupMemberAdded: AugmentedEvent; + /** + * Group member removed from set + **/ + GroupMemberRemoved: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + multisig: { + /** + * A multisig operation has been approved by someone. + **/ + MultisigApproval: AugmentedEvent< + ApiType, + [approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed], + { + approving: AccountId32; + timepoint: PalletMultisigTimepoint; + multisig: AccountId32; + callHash: U8aFixed; + } + >; + /** + * A multisig operation has been cancelled. + **/ + MultisigCancelled: AugmentedEvent< + ApiType, + [ + cancelling: AccountId32, + timepoint: PalletMultisigTimepoint, + multisig: AccountId32, + callHash: U8aFixed + ], + { + cancelling: AccountId32; + timepoint: PalletMultisigTimepoint; + multisig: AccountId32; + callHash: U8aFixed; + } + >; + /** + * A multisig operation has been executed. + **/ + MultisigExecuted: AugmentedEvent< + ApiType, + [ + approving: AccountId32, + timepoint: PalletMultisigTimepoint, + multisig: AccountId32, + callHash: U8aFixed, + result: Result + ], + { + approving: AccountId32; + timepoint: PalletMultisigTimepoint; + multisig: AccountId32; + callHash: U8aFixed; + result: Result; + } + >; + /** + * A new multisig operation has begun. + **/ + NewMultisig: AugmentedEvent< + ApiType, + [approving: AccountId32, multisig: AccountId32, callHash: U8aFixed], + { approving: AccountId32; multisig: AccountId32; callHash: U8aFixed } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + preimage: { + /** + * A preimage has ben cleared. + **/ + Cleared: AugmentedEvent; + /** + * A preimage has been noted. + **/ + Noted: AugmentedEvent; + /** + * A preimage has been requested. + **/ + Requested: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + proxy: { + /** + * An announcement was placed to make a call in the future. + **/ + Announced: AugmentedEvent< + ApiType, + [real: AccountId32, proxy: AccountId32, callHash: H256], + { real: AccountId32; proxy: AccountId32; callHash: H256 } + >; + /** + * A proxy was added. + **/ + ProxyAdded: AugmentedEvent< + ApiType, + [delegator: AccountId32, delegatee: AccountId32, proxyType: IntegriteeNodeRuntimeProxyType, delay: u32], + { + delegator: AccountId32; + delegatee: AccountId32; + proxyType: IntegriteeNodeRuntimeProxyType; + delay: u32; + } + >; + /** + * A proxy was executed correctly, with the given. + **/ + ProxyExecuted: AugmentedEvent< + ApiType, + [result: Result], + { result: Result } + >; + /** + * A proxy was removed. + **/ + ProxyRemoved: AugmentedEvent< + ApiType, + [delegator: AccountId32, delegatee: AccountId32, proxyType: IntegriteeNodeRuntimeProxyType, delay: u32], + { + delegator: AccountId32; + delegatee: AccountId32; + proxyType: IntegriteeNodeRuntimeProxyType; + delay: u32; + } + >; + /** + * A pure account has been created by new proxy with given + * disambiguation index and proxy type. + **/ + PureCreated: AugmentedEvent< + ApiType, + [ + pure: AccountId32, + who: AccountId32, + proxyType: IntegriteeNodeRuntimeProxyType, + disambiguationIndex: u16 + ], + { + pure: AccountId32; + who: AccountId32; + proxyType: IntegriteeNodeRuntimeProxyType; + disambiguationIndex: u16; + } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + scheduler: { + /** + * The call for the provided hash was not found so the task has been aborted. + **/ + CallUnavailable: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option], + { task: ITuple<[u32, u32]>; id: Option } + >; + /** + * Canceled some task. + **/ + Canceled: AugmentedEvent; + /** + * Dispatched some task. + **/ + Dispatched: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option, result: Result], + { task: ITuple<[u32, u32]>; id: Option; result: Result } + >; + /** + * The given task was unable to be renewed since the agenda is full at that block. + **/ + PeriodicFailed: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option], + { task: ITuple<[u32, u32]>; id: Option } + >; + /** + * The given task can never be executed since it is overweight. + **/ + PermanentlyOverweight: AugmentedEvent< + ApiType, + [task: ITuple<[u32, u32]>, id: Option], + { task: ITuple<[u32, u32]>; id: Option } + >; + /** + * Scheduled some task. + **/ + Scheduled: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + sidechain: { + FinalizedSidechainBlock: AugmentedEvent; + ProposedSidechainBlock: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + sudo: { + /** + * The \[sudoer\] just switched identity; the old key is supplied if one existed. + **/ + KeyChanged: AugmentedEvent], { oldSudoer: Option }>; + /** + * A sudo just took place. \[result\] + **/ + Sudid: AugmentedEvent< + ApiType, + [sudoResult: Result], + { sudoResult: Result } + >; + /** + * A sudo just took place. \[result\] + **/ + SudoAsDone: AugmentedEvent< + ApiType, + [sudoResult: Result], + { sudoResult: Result } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + system: { + /** + * `:code` was updated. + **/ + CodeUpdated: AugmentedEvent; + /** + * An extrinsic failed. + **/ + ExtrinsicFailed: AugmentedEvent< + ApiType, + [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], + { dispatchError: SpRuntimeDispatchError; dispatchInfo: FrameSupportDispatchDispatchInfo } + >; + /** + * An extrinsic completed successfully. + **/ + ExtrinsicSuccess: AugmentedEvent< + ApiType, + [dispatchInfo: FrameSupportDispatchDispatchInfo], + { dispatchInfo: FrameSupportDispatchDispatchInfo } + >; + /** + * An account was reaped. + **/ + KilledAccount: AugmentedEvent; + /** + * A new account was created. + **/ + NewAccount: AugmentedEvent; + /** + * On on-chain remark happened. + **/ + Remarked: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + teeracle: { + AddedToWhitelist: AugmentedEvent; + ExchangeRateDeleted: AugmentedEvent; + /** + * The exchange rate of trading pair was set/updated with value from source. + * \[data_source], [trading_pair], [new value\] + **/ + ExchangeRateUpdated: AugmentedEvent]>; + OracleUpdated: AugmentedEvent; + RemovedFromWhitelist: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + teerex: { + AddedEnclave: AugmentedEvent; + AdminChanged: AugmentedEvent], { oldAdmin: Option }>; + Forwarded: AugmentedEvent; + ProcessedParentchainBlock: AugmentedEvent; + /** + * An enclave with [mr_enclave] has published some [hash] with some metadata [data]. + **/ + PublishedHash: AugmentedEvent< + ApiType, + [mrEnclave: U8aFixed, hash_: H256, data: Bytes], + { mrEnclave: U8aFixed; hash_: H256; data: Bytes } + >; + RemovedEnclave: AugmentedEvent; + RemovedScheduledEnclave: AugmentedEvent; + SetHeartbeatTimeout: AugmentedEvent; + ShieldFunds: AugmentedEvent; + UnshieldedFunds: AugmentedEvent; + UpdatedScheduledEnclave: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + transactionPayment: { + /** + * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, + * has been paid by `who`. + **/ + TransactionFeePaid: AugmentedEvent< + ApiType, + [who: AccountId32, actualFee: u128, tip: u128], + { who: AccountId32; actualFee: u128; tip: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + treasury: { + /** + * Some funds have been allocated. + **/ + Awarded: AugmentedEvent< + ApiType, + [proposalIndex: u32, award: u128, account: AccountId32], + { proposalIndex: u32; award: u128; account: AccountId32 } + >; + /** + * Some of our funds have been burnt. + **/ + Burnt: AugmentedEvent; + /** + * Some funds have been deposited. + **/ + Deposit: AugmentedEvent; + /** + * New proposal. + **/ + Proposed: AugmentedEvent; + /** + * A proposal was rejected; funds were slashed. + **/ + Rejected: AugmentedEvent< + ApiType, + [proposalIndex: u32, slashed: u128], + { proposalIndex: u32; slashed: u128 } + >; + /** + * Spending has finished; this is the amount that rolls over until next spend. + **/ + Rollover: AugmentedEvent; + /** + * A new spend proposal has been approved. + **/ + SpendApproved: AugmentedEvent< + ApiType, + [proposalIndex: u32, amount: u128, beneficiary: AccountId32], + { proposalIndex: u32; amount: u128; beneficiary: AccountId32 } + >; + /** + * We have ended a spend period and will now allocate funds. + **/ + Spending: AugmentedEvent; + /** + * The inactive funds of the pallet have been updated. + **/ + UpdatedInactive: AugmentedEvent< + ApiType, + [reactivated: u128, deactivated: u128], + { reactivated: u128; deactivated: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + utility: { + /** + * Batch of dispatches completed fully with no error. + **/ + BatchCompleted: AugmentedEvent; + /** + * Batch of dispatches completed but has errors. + **/ + BatchCompletedWithErrors: AugmentedEvent; + /** + * Batch of dispatches did not complete fully. Index of first failing dispatch given, as + * well as the error. + **/ + BatchInterrupted: AugmentedEvent< + ApiType, + [index: u32, error: SpRuntimeDispatchError], + { index: u32; error: SpRuntimeDispatchError } + >; + /** + * A call was dispatched. + **/ + DispatchedAs: AugmentedEvent< + ApiType, + [result: Result], + { result: Result } + >; + /** + * A single item within a Batch of dispatches has completed with no error. + **/ + ItemCompleted: AugmentedEvent; + /** + * A single item within a Batch of dispatches has completed with error. + **/ + ItemFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vcManagement: { + AdminChanged: AugmentedEvent< + ApiType, + [oldAdmin: Option, newAdmin: Option], + { oldAdmin: Option; newAdmin: Option } + >; + RequestVCFailed: AugmentedEvent< + ApiType, + [ + account: Option, + assertion: CorePrimitivesAssertion, + detail: CorePrimitivesErrorErrorDetail, + reqExtHash: H256 + ], + { + account: Option; + assertion: CorePrimitivesAssertion; + detail: CorePrimitivesErrorErrorDetail; + reqExtHash: H256; + } + >; + SchemaActivated: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + SchemaDisabled: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + SchemaIssued: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + SchemaRevoked: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, index: u64], + { account: AccountId32; shard: H256; index: u64 } + >; + UnclassifiedError: AugmentedEvent< + ApiType, + [account: Option, detail: CorePrimitivesErrorErrorDetail, reqExtHash: H256], + { account: Option; detail: CorePrimitivesErrorErrorDetail; reqExtHash: H256 } + >; + VCDisabled: AugmentedEvent< + ApiType, + [account: AccountId32, index: H256], + { account: AccountId32; index: H256 } + >; + VCIssued: AugmentedEvent< + ApiType, + [ + account: AccountId32, + assertion: CorePrimitivesAssertion, + index: H256, + vc: CorePrimitivesKeyAesOutput, + reqExtHash: H256 + ], + { + account: AccountId32; + assertion: CorePrimitivesAssertion; + index: H256; + vc: CorePrimitivesKeyAesOutput; + reqExtHash: H256; + } + >; + VCRegistryCleared: AugmentedEvent; + VCRegistryItemAdded: AugmentedEvent< + ApiType, + [account: AccountId32, assertion: CorePrimitivesAssertion, index: H256], + { account: AccountId32; assertion: CorePrimitivesAssertion; index: H256 } + >; + VCRegistryItemRemoved: AugmentedEvent; + VCRequested: AugmentedEvent< + ApiType, + [account: AccountId32, shard: H256, assertion: CorePrimitivesAssertion], + { account: AccountId32; shard: H256; assertion: CorePrimitivesAssertion } + >; + VCRevoked: AugmentedEvent< + ApiType, + [account: AccountId32, index: H256], + { account: AccountId32; index: H256 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vcmpExtrinsicWhitelist: { + /** + * Group member added to set + **/ + GroupMemberAdded: AugmentedEvent; + /** + * Group member removed from set + **/ + GroupMemberRemoved: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + vesting: { + /** + * An \[account\] has become fully vested. + **/ + VestingCompleted: AugmentedEvent; + /** + * The amount vested has been updated. This could indicate a change in funds available. + * The balance given is the amount which is left unvested (and thus locked). + **/ + VestingUpdated: AugmentedEvent< + ApiType, + [account: AccountId32, unvested: u128], + { account: AccountId32; unvested: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + } // AugmentedEvents +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-query.ts b/tee-worker/ts-tests/interfaces/augment-api-query.ts new file mode 100644 index 0000000000..54893c705b --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-query.ts @@ -0,0 +1,700 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/storage'; + +import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; +import type { Bytes, Null, Option, Text, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec'; +import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256 } from '@polkadot/types/interfaces/runtime'; +import type { + ClaimsPrimitivesEthereumAddress, + ClaimsPrimitivesStatementKind, + FrameSupportDispatchPerDispatchClassWeight, + FrameSystemAccountInfo, + FrameSystemEventRecord, + FrameSystemLastRuntimeUpgradeInfo, + FrameSystemPhase, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesReserveData, + PalletCollectiveVotes, + PalletGrandpaStoredPendingChange, + PalletGrandpaStoredState, + PalletMultisigMultisig, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyProxyDefinition, + PalletSchedulerScheduled, + PalletTransactionPaymentReleases, + PalletTreasuryProposal, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVestingReleases, + PalletVestingVestingInfo, + SidechainPrimitivesSidechainBlockConfirmation, + SpRuntimeDigest, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesTcbInfoOnChain, +} from '@polkadot/types/lookup'; +import type { Observable } from '@polkadot/types/types'; + +export type __AugmentedQuery = AugmentedQuery unknown>; +export type __QueryableStorageEntry = QueryableStorageEntry; + +declare module '@polkadot/api-base/types/storage' { + interface AugmentedQueries { + balances: { + /** + * The Balances pallet example of storing the balance of an account. + * + * # Example + * + * ```nocompile + * impl pallet_balances::Config for Runtime { + * type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> + * } + * ``` + * + * You can also store the balance of an account in the `System` pallet. + * + * # Example + * + * ```nocompile + * impl pallet_balances::Config for Runtime { + * type AccountStore = System + * } + * ``` + * + * But this comes with tradeoffs, storing account balances in the system pallet stores + * `frame_system` data alongside the account data contrary to storing account balances in the + * `Balances` pallet, which uses a `StorageMap` to store balances data only. + * NOTE: This is only used in the case that this pallet is used to store balances. + **/ + account: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The total units of outstanding deactivated balance in the system. + **/ + inactiveIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Any liquidity locks on some account balances. + * NOTE: Should only be accessed when setting, changing and freeing a lock. + **/ + locks: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Named reserves on some account balances. + **/ + reserves: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The total units issued in the system. + **/ + totalIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + claims: { + claims: AugmentedQuery< + ApiType, + (arg: ClaimsPrimitivesEthereumAddress | string | Uint8Array) => Observable>, + [ClaimsPrimitivesEthereumAddress] + > & + QueryableStorageEntry; + /** + * Pre-claimed Ethereum accounts, by the Account ID that they are claimed to. + **/ + preclaims: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The statement kind that must be signed, if any. + **/ + signing: AugmentedQuery< + ApiType, + ( + arg: ClaimsPrimitivesEthereumAddress | string | Uint8Array + ) => Observable>, + [ClaimsPrimitivesEthereumAddress] + > & + QueryableStorageEntry; + total: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Vesting schedule for a claim. + * First balance is the total amount that should be held for vesting. + * Second balance is how much should be unlocked per block. + * The block number is when the vesting should start. + **/ + vesting: AugmentedQuery< + ApiType, + ( + arg: ClaimsPrimitivesEthereumAddress | string | Uint8Array + ) => Observable>>, + [ClaimsPrimitivesEthereumAddress] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + council: { + /** + * The current members of the collective. This is stored sorted (just by value). + **/ + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The prime member that helps determine the default vote behavior in case of absentations. + **/ + prime: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Proposals so far. + **/ + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Actual proposal for a given hash, if it's current. + **/ + proposalOf: AugmentedQuery Observable>, [H256]> & + QueryableStorageEntry; + /** + * The hashes of the active proposals. + **/ + proposals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Votes on a given proposal, if it is ongoing. + **/ + voting: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + grandpa: { + /** + * The number of changes (both in terms of keys and underlying economic responsibilities) + * in the "set" of Grandpa validators from genesis. + **/ + currentSetId: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * next block number where we can force a change. + **/ + nextForced: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Pending change: (signaled at, scheduled change). + **/ + pendingChange: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * A mapping from grandpa set ID to the index of the *most recent* session for which its + * members were responsible. + * + * This is only used for validating equivocation proofs. An equivocation proof must + * contains a key-ownership proof for a given session, therefore we need a way to tie + * together sessions and GRANDPA set ids, i.e. we need to validate that a validator + * was the owner of a given key on a given session, and what the active set ID was + * during that session. + * + * TWOX-NOTE: `SetId` is not under user control. + **/ + setIdSession: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + /** + * `true` if we are currently stalled. + **/ + stalled: AugmentedQuery Observable>>, []> & + QueryableStorageEntry; + /** + * State of the current authority set. + **/ + state: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + identityManagement: { + /** + * delegatees who are authorised to send extrinsics(currently only `create_identity`) + * on behalf of the users + **/ + delegatee: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + impExtrinsicWhitelist: { + groupControlOn: AugmentedQuery Observable, []> & QueryableStorageEntry; + groupMembers: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + insecureRandomnessCollectiveFlip: { + /** + * Series of block headers from the last 81 blocks that acts as random seed material. This + * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of + * the oldest hash. + **/ + randomMaterial: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + multisig: { + /** + * The set of open multisig operations. + **/ + multisigs: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: U8aFixed | string | Uint8Array + ) => Observable>, + [AccountId32, U8aFixed] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + preimage: { + preimageFor: AugmentedQuery< + ApiType, + ( + arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array] + ) => Observable>, + [ITuple<[H256, u32]>] + > & + QueryableStorageEntry]>; + /** + * The request status of a given hash. + **/ + statusFor: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + proxy: { + /** + * The announcements made by the proxy (key). + **/ + announcements: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, u128]>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The set of account proxies. Maps the account which has delegated to the accounts + * which are being delegated to, together with the amount held on deposit. + **/ + proxies: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, u128]>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + scheduler: { + /** + * Items to be executed, indexed by the block number that they should be executed on. + **/ + agenda: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>>, + [u32] + > & + QueryableStorageEntry; + incompleteSince: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Lookup from a name to the block number and index of the task. + * + * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4 + * identities. + **/ + lookup: AugmentedQuery< + ApiType, + (arg: U8aFixed | string | Uint8Array) => Observable>>, + [U8aFixed] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + sidechain: { + latestSidechainBlockConfirmation: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable, + [H256] + > & + QueryableStorageEntry; + sidechainBlockFinalizationCandidate: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable, + [H256] + > & + QueryableStorageEntry; + workerForShard: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + sudo: { + /** + * The `AccountId` of the sudo key. + **/ + key: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + system: { + /** + * The full account information for a particular account ID. + **/ + account: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Total length (in bytes) for all extrinsics put together, for the current block. + **/ + allExtrinsicsLen: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Map of block numbers to block hashes. + **/ + blockHash: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * The current weight for the block. + **/ + blockWeight: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Digest of the current block, also part of the block header. + **/ + digest: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The number of events in the `Events` list. + **/ + eventCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Events deposited for the current block. + * + * NOTE: The item is unbound and should therefore never be read on chain. + * It could otherwise inflate the PoV size of a block. + * + * Events have a large in-memory size. Box the events to not go out-of-memory + * just in case someone still reads them from within the runtime. + **/ + events: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Mapping between a topic (represented by T::Hash) and a vector of indexes + * of events in the `>` list. + * + * All topic vectors have deterministic storage locations depending on the topic. This + * allows light-clients to leverage the changes trie storage tracking mechanism and + * in case of changes fetch the list of events of interest. + * + * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just + * the `EventIndex` then in case if the topic has the same contents on the next block + * no notification will be triggered thus the event might be lost. + **/ + eventTopics: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>>, + [H256] + > & + QueryableStorageEntry; + /** + * The execution phase of the block. + **/ + executionPhase: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Total extrinsics count for the current block. + **/ + extrinsicCount: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Extrinsics data for the current block (maps an extrinsic's index to its data). + **/ + extrinsicData: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + **/ + lastRuntimeUpgrade: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The current block number being processed. Set by `execute_block`. + **/ + number: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Hash of the previous block. + **/ + parentHash: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False + * (default) if not. + **/ + upgradedToTripleRefCount: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + **/ + upgradedToU32RefCount: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + teeracle: { + /** + * Exchange rates chain's cryptocurrency/currency (trading pair) from different sources + **/ + exchangeRates: AugmentedQuery< + ApiType, + (arg1: Text | string, arg2: Text | string) => Observable, + [Text, Text] + > & + QueryableStorageEntry; + oracleData: AugmentedQuery< + ApiType, + (arg1: Text | string, arg2: Text | string) => Observable, + [Text, Text] + > & + QueryableStorageEntry; + /** + * whitelist of trusted oracle's releases for different data sources + **/ + whitelists: AugmentedQuery Observable>, [Text]> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + teerex: { + admin: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + allowSGXDebugMode: AugmentedQuery Observable, []> & QueryableStorageEntry; + enclaveCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + enclaveIndex: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + enclaveRegistry: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + executedCalls: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + heartbeatTimeout: AugmentedQuery Observable, []> & QueryableStorageEntry; + quotingEnclaveRegistry: AugmentedQuery Observable, []> & + QueryableStorageEntry; + scheduledEnclave: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + tcbInfo: AugmentedQuery< + ApiType, + (arg: U8aFixed | string | Uint8Array) => Observable, + [U8aFixed] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + timestamp: { + /** + * Did the timestamp get updated in this block? + **/ + didUpdate: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Current time for the current block. + **/ + now: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + transactionPayment: { + nextFeeMultiplier: AugmentedQuery Observable, []> & QueryableStorageEntry; + storageVersion: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + treasury: { + /** + * Proposal indices that have been approved but not yet awarded. + **/ + approvals: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * The amount which has been reported as inactive to Currency. + **/ + deactivated: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Number of proposals that have been made. + **/ + proposalCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Proposals that have been made. + **/ + proposals: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vcManagement: { + admin: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + schemaRegistry: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + schemaRegistryIndex: AugmentedQuery Observable, []> & + QueryableStorageEntry; + vcRegistry: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vcmpExtrinsicWhitelist: { + groupControlOn: AugmentedQuery Observable, []> & QueryableStorageEntry; + groupMembers: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + vesting: { + /** + * Storage version of the pallet. + * + * New networks start with latest version, as determined by the genesis build. + **/ + storageVersion: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Information regarding the vesting of a given account. + **/ + vesting: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + } // AugmentedQueries +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-rpc.ts b/tee-worker/ts-tests/interfaces/augment-api-rpc.ts new file mode 100644 index 0000000000..fab673626c --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-rpc.ts @@ -0,0 +1,1025 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/rpc-core/types/jsonrpc'; + +import type { AugmentedRpc } from '@polkadot/rpc-core/types'; +import type { Metadata, StorageKey } from '@polkadot/types'; +import type { + Bytes, + HashMap, + Json, + Null, + Option, + Text, + U256, + U64, + Vec, + bool, + f64, + u32, + u64, +} from '@polkadot/types-codec'; +import type { AnyNumber, Codec } from '@polkadot/types-codec/types'; +import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; +import type { EpochAuthorship } from '@polkadot/types/interfaces/babe'; +import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { + CodeUploadRequest, + CodeUploadResult, + ContractCallRequest, + ContractExecResult, + ContractInstantiateResult, + InstantiateRequestV1, +} from '@polkadot/types/interfaces/contracts'; +import type { BlockStats } from '@polkadot/types/interfaces/dev'; +import type { CreatedBlock } from '@polkadot/types/interfaces/engine'; +import type { + EthAccount, + EthCallRequest, + EthFeeHistory, + EthFilter, + EthFilterChanges, + EthLog, + EthReceipt, + EthRichBlock, + EthSubKind, + EthSubParams, + EthSyncStatus, + EthTransaction, + EthTransactionRequest, + EthWork, +} from '@polkadot/types/interfaces/eth'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; +import type { + EncodedFinalityProofs, + JustificationNotification, + ReportedRoundStates, +} from '@polkadot/types/interfaces/grandpa'; +import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr'; +import type { StorageKind } from '@polkadot/types/interfaces/offchain'; +import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment'; +import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; +import type { + AccountId, + BlockNumber, + H160, + H256, + H64, + Hash, + Header, + Index, + Justification, + KeyValue, + SignedBlock, + StorageData, +} from '@polkadot/types/interfaces/runtime'; +import type { + MigrationStatusResult, + ReadProof, + RuntimeVersion, + TraceBlockResponse, +} from '@polkadot/types/interfaces/state'; +import type { + ApplyExtrinsicResult, + ChainProperties, + ChainType, + Health, + NetworkState, + NodeRole, + PeerInfo, + SyncState, +} from '@polkadot/types/interfaces/system'; +import type { IExtrinsic, Observable } from '@polkadot/types/types'; + +export type __AugmentedRpc = AugmentedRpc<() => unknown>; + +declare module '@polkadot/rpc-core/types/jsonrpc' { + interface RpcInterface { + author: { + /** + * Returns true if the keystore has private keys for the given public key and key type. + **/ + hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable>; + /** + * Returns true if the keystore has private keys for the given session public keys. + **/ + hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable>; + /** + * Insert a key into the keystore. + **/ + insertKey: AugmentedRpc< + ( + keyType: Text | string, + suri: Text | string, + publicKey: Bytes | string | Uint8Array + ) => Observable + >; + /** + * Returns all pending extrinsics, potentially grouped by sender + **/ + pendingExtrinsics: AugmentedRpc<() => Observable>>; + /** + * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting + **/ + removeExtrinsic: AugmentedRpc< + ( + bytesOrHash: + | Vec + | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[] + ) => Observable> + >; + /** + * Generate new session keys and returns the corresponding public keys + **/ + rotateKeys: AugmentedRpc<() => Observable>; + /** + * Submit and subscribe to watch an extrinsic until unsubscribed + **/ + submitAndWatchExtrinsic: AugmentedRpc< + (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable + >; + /** + * Submit a fully formatted extrinsic for block inclusion + **/ + submitExtrinsic: AugmentedRpc< + (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable + >; + }; + babe: { + /** + * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore + **/ + epochAuthorship: AugmentedRpc<() => Observable>>; + }; + beefy: { + /** + * Returns hash of the latest BEEFY finalized block as seen by this client. + **/ + getFinalizedHead: AugmentedRpc<() => Observable>; + /** + * Returns the block most recently finalized by BEEFY, alongside side its justification. + **/ + subscribeJustifications: AugmentedRpc<() => Observable>; + }; + chain: { + /** + * Get header and body of a relay chain block + **/ + getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable>; + /** + * Get the block hash for a specific block + **/ + getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable>; + /** + * Get hash of the last finalized block in the canon chain + **/ + getFinalizedHead: AugmentedRpc<() => Observable>; + /** + * Retrieves the header for a specific block + **/ + getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable
>; + /** + * Retrieves the newest header via subscription + **/ + subscribeAllHeads: AugmentedRpc<() => Observable
>; + /** + * Retrieves the best finalized header via subscription + **/ + subscribeFinalizedHeads: AugmentedRpc<() => Observable
>; + /** + * Retrieves the best header via subscription + **/ + subscribeNewHeads: AugmentedRpc<() => Observable
>; + }; + childstate: { + /** + * Returns the keys with prefix from a child storage, leave empty to get all the keys + **/ + getKeys: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + prefix: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the keys with prefix from a child storage with pagination support + **/ + getKeysPaged: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + prefix: StorageKey | string | Uint8Array | any, + count: u32 | AnyNumber | Uint8Array, + startKey?: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns a child storage entry at a specific block state + **/ + getStorage: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns child storage entries for multiple keys at a specific block state + **/ + getStorageEntries: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: Hash | string | Uint8Array + ) => Observable>> + >; + /** + * Returns the hash of a child storage entry at a block state + **/ + getStorageHash: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the size of a child storage entry at a block state + **/ + getStorageSize: AugmentedRpc< + ( + childKey: PrefixedStorageKey | string | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: Hash | string | Uint8Array + ) => Observable> + >; + }; + contracts: { + /** + * @deprecated Use the runtime interface `api.call.contractsApi.call` instead + * Executes a call to a contract + **/ + call: AugmentedRpc< + ( + callRequest: + | ContractCallRequest + | { + origin?: any; + dest?: any; + value?: any; + gasLimit?: any; + storageDepositLimit?: any; + inputData?: any; + } + | string + | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead + * Returns the value under a specified storage key in a contract + **/ + getStorage: AugmentedRpc< + ( + address: AccountId | string | Uint8Array, + key: H256 | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead + * Instantiate a new contract + **/ + instantiate: AugmentedRpc< + ( + request: + | InstantiateRequestV1 + | { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any } + | string + | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * @deprecated Not available in newer versions of the contracts interfaces + * Returns the projected time a given contract will be able to sustain paying its rent + **/ + rentProjection: AugmentedRpc< + ( + address: AccountId | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead + * Upload new code without instantiating a contract from it + **/ + uploadCode: AugmentedRpc< + ( + uploadRequest: + | CodeUploadRequest + | { origin?: any; code?: any; storageDepositLimit?: any } + | string + | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + }; + dev: { + /** + * Reexecute the specified `block_hash` and gather statistics while doing so + **/ + getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable>>; + }; + engine: { + /** + * Instructs the manual-seal authorship task to create a new block + **/ + createBlock: AugmentedRpc< + ( + createEmpty: bool | boolean | Uint8Array, + finalize: bool | boolean | Uint8Array, + parentHash?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Instructs the manual-seal authorship task to finalize a block + **/ + finalizeBlock: AugmentedRpc< + (hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable + >; + }; + eth: { + /** + * Returns accounts list. + **/ + accounts: AugmentedRpc<() => Observable>>; + /** + * Returns the blockNumber + **/ + blockNumber: AugmentedRpc<() => Observable>; + /** + * Call contract, returning the output data. + **/ + call: AugmentedRpc< + ( + request: + | EthCallRequest + | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } + | string + | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns the chain ID used for transaction signing at the current best block. None is returned if not available. + **/ + chainId: AugmentedRpc<() => Observable>; + /** + * Returns block author. + **/ + coinbase: AugmentedRpc<() => Observable>; + /** + * Estimate gas needed for execution of given contract. + **/ + estimateGas: AugmentedRpc< + ( + request: + | EthCallRequest + | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } + | string + | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns fee history for given block count & reward percentiles + **/ + feeHistory: AugmentedRpc< + ( + blockCount: U256 | AnyNumber | Uint8Array, + newestBlock: BlockNumber | AnyNumber | Uint8Array, + rewardPercentiles: Option> | null | Uint8Array | Vec | f64[] + ) => Observable + >; + /** + * Returns current gas price. + **/ + gasPrice: AugmentedRpc<() => Observable>; + /** + * Returns balance of the given account. + **/ + getBalance: AugmentedRpc< + (address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns block with given hash. + **/ + getBlockByHash: AugmentedRpc< + ( + hash: H256 | string | Uint8Array, + full: bool | boolean | Uint8Array + ) => Observable> + >; + /** + * Returns block with given number. + **/ + getBlockByNumber: AugmentedRpc< + ( + block: BlockNumber | AnyNumber | Uint8Array, + full: bool | boolean | Uint8Array + ) => Observable> + >; + /** + * Returns the number of transactions in a block with given hash. + **/ + getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns the number of transactions in a block with given block number. + **/ + getBlockTransactionCountByNumber: AugmentedRpc< + (block: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns the code at given address at given time (block number). + **/ + getCode: AugmentedRpc< + ( + address: H160 | string | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns filter changes since last poll. + **/ + getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable>; + /** + * Returns all logs matching given filter (in a range 'from' - 'to'). + **/ + getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable>>; + /** + * Returns logs matching given filter object. + **/ + getLogs: AugmentedRpc< + ( + filter: + | EthFilter + | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } + | string + | Uint8Array + ) => Observable> + >; + /** + * Returns proof for account and storage. + **/ + getProof: AugmentedRpc< + ( + address: H160 | string | Uint8Array, + storageKeys: Vec | (H256 | string | Uint8Array)[], + number: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns content of the storage at given address. + **/ + getStorageAt: AugmentedRpc< + ( + address: H160 | string | Uint8Array, + index: U256 | AnyNumber | Uint8Array, + number?: BlockNumber | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns transaction at given block hash and index. + **/ + getTransactionByBlockHashAndIndex: AugmentedRpc< + (hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns transaction by given block number and index. + **/ + getTransactionByBlockNumberAndIndex: AugmentedRpc< + ( + number: BlockNumber | AnyNumber | Uint8Array, + index: U256 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Get transaction by its hash. + **/ + getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns the number of transactions sent from given address at given time (block number). + **/ + getTransactionCount: AugmentedRpc< + (address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns transaction receipt by transaction hash. + **/ + getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns an uncles at given block and index. + **/ + getUncleByBlockHashAndIndex: AugmentedRpc< + (hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns an uncles at given block and index. + **/ + getUncleByBlockNumberAndIndex: AugmentedRpc< + ( + number: BlockNumber | AnyNumber | Uint8Array, + index: U256 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Returns the number of uncles in a block with given hash. + **/ + getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable>; + /** + * Returns the number of uncles in a block with given block number. + **/ + getUncleCountByBlockNumber: AugmentedRpc< + (number: BlockNumber | AnyNumber | Uint8Array) => Observable + >; + /** + * Returns the hash of the current block, the seedHash, and the boundary condition to be met. + **/ + getWork: AugmentedRpc<() => Observable>; + /** + * Returns the number of hashes per second that the node is mining with. + **/ + hashrate: AugmentedRpc<() => Observable>; + /** + * Returns max priority fee per gas + **/ + maxPriorityFeePerGas: AugmentedRpc<() => Observable>; + /** + * Returns true if client is actively mining new blocks. + **/ + mining: AugmentedRpc<() => Observable>; + /** + * Returns id of new block filter. + **/ + newBlockFilter: AugmentedRpc<() => Observable>; + /** + * Returns id of new filter. + **/ + newFilter: AugmentedRpc< + ( + filter: + | EthFilter + | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Returns id of new block filter. + **/ + newPendingTransactionFilter: AugmentedRpc<() => Observable>; + /** + * Returns protocol version encoded as a string (quotes are necessary). + **/ + protocolVersion: AugmentedRpc<() => Observable>; + /** + * Sends signed transaction, returning its hash. + **/ + sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable>; + /** + * Sends transaction; will block waiting for signer to return the transaction hash + **/ + sendTransaction: AugmentedRpc< + ( + tx: + | EthTransactionRequest + | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Used for submitting mining hashrate. + **/ + submitHashrate: AugmentedRpc< + (index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable + >; + /** + * Used for submitting a proof-of-work solution. + **/ + submitWork: AugmentedRpc< + ( + nonce: H64 | string | Uint8Array, + headerHash: H256 | string | Uint8Array, + mixDigest: H256 | string | Uint8Array + ) => Observable + >; + /** + * Subscribe to Eth subscription. + **/ + subscribe: AugmentedRpc< + ( + kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, + params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array + ) => Observable + >; + /** + * Returns an object with data about the sync status or false. + **/ + syncing: AugmentedRpc<() => Observable>; + /** + * Uninstalls filter. + **/ + uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable>; + }; + grandpa: { + /** + * Prove finality for the given block number, returning the Justification for the last block in the set. + **/ + proveFinality: AugmentedRpc< + (blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable> + >; + /** + * Returns the state of the current best round state as well as the ongoing background rounds + **/ + roundState: AugmentedRpc<() => Observable>; + /** + * Subscribes to grandpa justifications + **/ + subscribeJustifications: AugmentedRpc<() => Observable>; + }; + mmr: { + /** + * Generate MMR proof for the given leaf indices. + **/ + generateBatchProof: AugmentedRpc< + ( + leafIndices: Vec | (u64 | AnyNumber | Uint8Array)[], + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Generate MMR proof for given leaf index. + **/ + generateProof: AugmentedRpc< + ( + leafIndex: u64 | AnyNumber | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + }; + net: { + /** + * Returns true if client is actively listening for network connections. Otherwise false. + **/ + listening: AugmentedRpc<() => Observable>; + /** + * Returns number of peers connected to node. + **/ + peerCount: AugmentedRpc<() => Observable>; + /** + * Returns protocol version. + **/ + version: AugmentedRpc<() => Observable>; + }; + offchain: { + /** + * Get offchain local storage under given key and prefix + **/ + localStorageGet: AugmentedRpc< + ( + kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, + key: Bytes | string | Uint8Array + ) => Observable> + >; + /** + * Set offchain local storage under given key and prefix + **/ + localStorageSet: AugmentedRpc< + ( + kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, + key: Bytes | string | Uint8Array, + value: Bytes | string | Uint8Array + ) => Observable + >; + }; + payment: { + /** + * @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead + * Query the detailed fee of a given encoded extrinsic + **/ + queryFeeDetails: AugmentedRpc< + (extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable + >; + /** + * @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead + * Retrieves the fee information for an encoded extrinsic + **/ + queryInfo: AugmentedRpc< + ( + extrinsic: Bytes | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + }; + rpc: { + /** + * Retrieves the list of RPC methods that are exposed by the node + **/ + methods: AugmentedRpc<() => Observable>; + }; + state: { + /** + * Perform a call to a builtin on the chain + **/ + call: AugmentedRpc< + ( + method: Text | string, + data: Bytes | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the keys with prefix of a specific child storage + **/ + getChildKeys: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns proof of storage for child key entries at a specific block state. + **/ + getChildReadProof: AugmentedRpc< + ( + childStorageKey: PrefixedStorageKey | string | Uint8Array, + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the child storage for a key + **/ + getChildStorage: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the child storage hash + **/ + getChildStorageHash: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Retrieves the child storage size + **/ + getChildStorageSize: AugmentedRpc< + ( + childStorageKey: StorageKey | string | Uint8Array | any, + childDefinition: StorageKey | string | Uint8Array | any, + childType: u32 | AnyNumber | Uint8Array, + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys + * Retrieves the keys with a certain prefix + **/ + getKeys: AugmentedRpc< + ( + key: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the keys with prefix with pagination support. + **/ + getKeysPaged: AugmentedRpc< + ( + key: StorageKey | string | Uint8Array | any, + count: u32 | AnyNumber | Uint8Array, + startKey?: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns the runtime metadata + **/ + getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable>; + /** + * @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys + * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged) + **/ + getPairs: AugmentedRpc< + ( + prefix: StorageKey | string | Uint8Array | any, + at?: BlockHash | string | Uint8Array + ) => Observable> + >; + /** + * Returns proof of storage entries at a specific block state + **/ + getReadProof: AugmentedRpc< + ( + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Get the runtime version + **/ + getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable>; + /** + * Retrieves the storage for a key + **/ + getStorage: AugmentedRpc< + ( + key: StorageKey | string | Uint8Array | any, + block?: Hash | Uint8Array | string + ) => Observable + >; + /** + * Retrieves the storage hash + **/ + getStorageHash: AugmentedRpc< + (key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable + >; + /** + * Retrieves the storage size + **/ + getStorageSize: AugmentedRpc< + (key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable + >; + /** + * Query historical storage entries (by key) starting from a start block + **/ + queryStorage: AugmentedRpc< + ( + keys: Vec | (StorageKey | string | Uint8Array | any)[], + fromBlock?: Hash | Uint8Array | string, + toBlock?: Hash | Uint8Array | string + ) => Observable<[Hash, T][]> + >; + /** + * Query storage entries (by key) starting at block hash given as the second parameter + **/ + queryStorageAt: AugmentedRpc< + ( + keys: Vec | (StorageKey | string | Uint8Array | any)[], + at?: Hash | Uint8Array | string + ) => Observable + >; + /** + * Retrieves the runtime version via subscription + **/ + subscribeRuntimeVersion: AugmentedRpc<() => Observable>; + /** + * Subscribes to storage changes for the provided keys + **/ + subscribeStorage: AugmentedRpc< + (keys?: Vec | (StorageKey | string | Uint8Array | any)[]) => Observable + >; + /** + * Provides a way to trace the re-execution of a single block + **/ + traceBlock: AugmentedRpc< + ( + block: Hash | string | Uint8Array, + targets: Option | null | Uint8Array | Text | string, + storageKeys: Option | null | Uint8Array | Text | string, + methods: Option | null | Uint8Array | Text | string + ) => Observable + >; + /** + * Check current migration state + **/ + trieMigrationStatus: AugmentedRpc< + (at?: BlockHash | string | Uint8Array) => Observable + >; + }; + syncstate: { + /** + * Returns the json-serialized chainspec running the node, with a sync state. + **/ + genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable>; + }; + system: { + /** + * Retrieves the next accountIndex as available on the node + **/ + accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable>; + /** + * Adds the supplied directives to the current log filter + **/ + addLogFilter: AugmentedRpc<(directives: Text | string) => Observable>; + /** + * Adds a reserved peer + **/ + addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable>; + /** + * Retrieves the chain + **/ + chain: AugmentedRpc<() => Observable>; + /** + * Retrieves the chain type + **/ + chainType: AugmentedRpc<() => Observable>; + /** + * Dry run an extrinsic at a given block + **/ + dryRun: AugmentedRpc< + ( + extrinsic: Bytes | string | Uint8Array, + at?: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Return health status of the node + **/ + health: AugmentedRpc<() => Observable>; + /** + * The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example + **/ + localListenAddresses: AugmentedRpc<() => Observable>>; + /** + * Returns the base58-encoded PeerId of the node + **/ + localPeerId: AugmentedRpc<() => Observable>; + /** + * Retrieves the node name + **/ + name: AugmentedRpc<() => Observable>; + /** + * Returns current state of the network + **/ + networkState: AugmentedRpc<() => Observable>; + /** + * Returns the roles the node is running as + **/ + nodeRoles: AugmentedRpc<() => Observable>>; + /** + * Returns the currently connected peers + **/ + peers: AugmentedRpc<() => Observable>>; + /** + * Get a custom set of properties as a JSON object, defined in the chain spec + **/ + properties: AugmentedRpc<() => Observable>; + /** + * Remove a reserved peer + **/ + removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable>; + /** + * Returns the list of reserved peers + **/ + reservedPeers: AugmentedRpc<() => Observable>>; + /** + * Resets the log filter to Substrate defaults + **/ + resetLogFilter: AugmentedRpc<() => Observable>; + /** + * Returns the state of the syncing of the node + **/ + syncState: AugmentedRpc<() => Observable>; + /** + * Retrieves the version of the node + **/ + version: AugmentedRpc<() => Observable>; + }; + web3: { + /** + * Returns current client version. + **/ + clientVersion: AugmentedRpc<() => Observable>; + /** + * Returns sha3 of the given data + **/ + sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable>; + }; + } // RpcInterface +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-runtime.ts b/tee-worker/ts-tests/interfaces/augment-api-runtime.ts new file mode 100644 index 0000000000..9c71eb4698 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-runtime.ts @@ -0,0 +1,318 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/calls'; + +import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types'; +import type { Bytes, Null, Option, Vec, u32 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe'; +import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; +import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa'; +import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; +import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; +import type { + AccountId, + Balance, + Block, + Call, + Header, + Index, + KeyTypeId, + SlotDuration, + Weight, +} from '@polkadot/types/interfaces/runtime'; +import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; +import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; +import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; +import type { IExtrinsic, Observable } from '@polkadot/types/types'; + +export type __AugmentedCall = AugmentedCall; +export type __DecoratedCallBase = DecoratedCallBase; + +declare module '@polkadot/api-base/types/calls' { + interface AugmentedCalls { + /** 0xbc9d89904f5b923f/1 */ + accountNonceApi: { + /** + * The API to query account nonce (aka transaction index) + **/ + accountNonce: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdd718d5cc53262d4/1 */ + auraApi: { + /** + * Return the current set of authorities. + **/ + authorities: AugmentedCall Observable>>; + /** + * Returns the slot duration for Aura. + **/ + slotDuration: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x40fe3ad401f8959a/6 */ + blockBuilder: { + /** + * Apply the given extrinsic. + **/ + applyExtrinsic: AugmentedCall< + ApiType, + (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable + >; + /** + * Check that the inherents are valid. + **/ + checkInherents: AugmentedCall< + ApiType, + ( + block: Block | { header?: any; extrinsics?: any } | string | Uint8Array, + data: InherentData | { data?: any } | string | Uint8Array + ) => Observable + >; + /** + * Finish the current block. + **/ + finalizeBlock: AugmentedCall Observable
>; + /** + * Generate inherent extrinsics. + **/ + inherentExtrinsics: AugmentedCall< + ApiType, + (inherent: InherentData | { data?: any } | string | Uint8Array) => Observable> + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xdf6acb689907609b/4 */ + core: { + /** + * Execute the given block. + **/ + executeBlock: AugmentedCall< + ApiType, + (block: Block | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable + >; + /** + * Initialize a block with the given header. + **/ + initializeBlock: AugmentedCall< + ApiType, + ( + header: + | Header + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Returns the version of the runtime. + **/ + version: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xed99c5acb25eedf5/3 */ + grandpaApi: { + /** + * Get current GRANDPA authority set id. + **/ + currentSetId: AugmentedCall Observable>; + /** + * Generates a proof of key ownership for the given authority in the given set. + **/ + generateKeyOwnershipProof: AugmentedCall< + ApiType, + ( + setId: SetId | AnyNumber | Uint8Array, + authorityId: AuthorityId | string | Uint8Array + ) => Observable> + >; + /** + * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. + **/ + grandpaAuthorities: AugmentedCall Observable>; + /** + * Submits an unsigned extrinsic to report an equivocation. + **/ + submitReportEquivocationUnsignedExtrinsic: AugmentedCall< + ApiType, + ( + equivocationProof: + | GrandpaEquivocationProof + | { setId?: any; equivocation?: any } + | string + | Uint8Array, + keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array + ) => Observable> + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37e397fc7c91f5e4/1 */ + metadata: { + /** + * Returns the metadata of a runtime + **/ + metadata: AugmentedCall Observable>; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xf78b278be53f454c/2 */ + offchainWorkerApi: { + /** + * Starts the off-chain task for given block header. + **/ + offchainWorker: AugmentedCall< + ApiType, + ( + header: + | Header + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } + | string + | Uint8Array + ) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xab3c0572291feb8b/1 */ + sessionKeys: { + /** + * Decode the given public session keys. + **/ + decodeSessionKeys: AugmentedCall< + ApiType, + (encoded: Bytes | string | Uint8Array) => Observable>>> + >; + /** + * Generate a set of session keys with optionally using the given seed. + **/ + generateSessionKeys: AugmentedCall< + ApiType, + (seed: Option | null | Uint8Array | Bytes | string) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xd2bc9897eed08f15/3 */ + taggedTransactionQueue: { + /** + * Validate the transaction. + **/ + validateTransaction: AugmentedCall< + ApiType, + ( + source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, + tx: Extrinsic | IExtrinsic | string | Uint8Array, + blockHash: BlockHash | string | Uint8Array + ) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0x37c8bb1350a9a2a8/3 */ + transactionPaymentApi: { + /** + * The transaction fee details + **/ + queryFeeDetails: AugmentedCall< + ApiType, + ( + uxt: Extrinsic | IExtrinsic | string | Uint8Array, + len: u32 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * The transaction info + **/ + queryInfo: AugmentedCall< + ApiType, + ( + uxt: Extrinsic | IExtrinsic | string | Uint8Array, + len: u32 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Query the output of the current LengthToFee given some input + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * Query the output of the current WeightToFee given some input + **/ + queryWeightToFee: AugmentedCall< + ApiType, + (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + /** 0xf3ff14d5ab527059/3 */ + transactionPaymentCallApi: { + /** + * The call fee details + **/ + queryCallFeeDetails: AugmentedCall< + ApiType, + ( + call: Call | IMethod | string | Uint8Array, + len: u32 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * The call info + **/ + queryCallInfo: AugmentedCall< + ApiType, + ( + call: Call | IMethod | string | Uint8Array, + len: u32 | AnyNumber | Uint8Array + ) => Observable + >; + /** + * Query the output of the current LengthToFee given some input + **/ + queryLengthToFee: AugmentedCall Observable>; + /** + * Query the output of the current WeightToFee given some input + **/ + queryWeightToFee: AugmentedCall< + ApiType, + (weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable + >; + /** + * Generic call + **/ + [key: string]: DecoratedCallBase; + }; + } // AugmentedCalls +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api-tx.ts b/tee-worker/ts-tests/interfaces/augment-api-tx.ts new file mode 100644 index 0000000000..d219df4303 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api-tx.ts @@ -0,0 +1,2374 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/api-base/types/submittable'; + +import type { + ApiTypes, + AugmentedSubmittable, + SubmittableExtrinsic, + SubmittableExtrinsicFunction, +} from '@polkadot/api-base/types'; +import type { Bytes, Compact, Option, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { + ClaimsPrimitivesEcdsaSignature, + ClaimsPrimitivesEthereumAddress, + ClaimsPrimitivesStatementKind, + CorePrimitivesAssertion, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + IntegriteeNodeRuntimeOriginCaller, + IntegriteeNodeRuntimeProxyType, + PalletMultisigTimepoint, + PalletVestingVestingInfo, + SpCoreVoid, + SpFinalityGrandpaEquivocationProof, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesRequest, +} from '@polkadot/types/lookup'; + +export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; +export type __SubmittableExtrinsic = SubmittableExtrinsic; +export type __SubmittableExtrinsicFunction = SubmittableExtrinsicFunction; + +declare module '@polkadot/api-base/types/submittable' { + interface AugmentedSubmittables { + balances: { + /** + * Exactly as `transfer`, except the origin must be root and the source account may be + * specified. + * ## Complexity + * - Same as transfer, but additional read and write because the source account is not + * assumed to be in the overlay. + **/ + forceTransfer: AugmentedSubmittable< + ( + source: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, Compact] + >; + /** + * Unreserve some balance from a user by force. + * + * Can only be called by ROOT. + **/ + forceUnreserve: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + amount: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128] + >; + /** + * Set the balances of a given account. + * + * This will alter `FreeBalance` and `ReservedBalance` in storage. it will + * also alter the total issuance of the system (`TotalIssuance`) appropriately. + * If the new free or reserved balance is below the existential deposit, + * it will reset the account nonce (`frame_system::AccountNonce`). + * + * The dispatch origin for this call is `root`. + **/ + setBalance: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + newFree: Compact | AnyNumber | Uint8Array, + newReserved: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Compact, Compact] + >; + /** + * Transfer some liquid free balance to another account. + * + * `transfer` will set the `FreeBalance` of the sender and receiver. + * If the sender's account is below the existential deposit as a result + * of the transfer, the account will be reaped. + * + * The dispatch origin for this call must be `Signed` by the transactor. + * + * ## Complexity + * - Dependent on arguments but not critical, given proper implementations for input config + * types. See related functions below. + * - It contains a limited number of reads and writes internally and no complex + * computation. + * + * Related functions: + * + * - `ensure_can_withdraw` is always called internally but has a bounded complexity. + * - Transferring balances to accounts that did not exist before will cause + * `T::OnNewAccount::on_new_account` to be called. + * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`. + * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check + * that the transfer will not kill the origin account. + **/ + transfer: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Compact] + >; + /** + * Transfer the entire transferable balance from the caller account. + * + * NOTE: This function only attempts to transfer _transferable_ balances. This means that + * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be + * transferred by this function. To ensure that this function results in a killed account, + * you might need to prepare the account by removing any reference counters, storage + * deposits, etc... + * + * The dispatch origin of this call must be Signed. + * + * - `dest`: The recipient of the transfer. + * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all + * of the funds the account has, causing the sender account to be killed (false), or + * transfer everything except at least the existential deposit, which will guarantee to + * keep the sender account alive (true). ## Complexity + * - O(1). Just like transfer, but reading the user's transferable balance first. + **/ + transferAll: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + keepAlive: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, bool] + >; + /** + * Same as the [`transfer`] call, but with a check that the transfer will not kill the + * origin account. + * + * 99% of the time you want [`transfer`] instead. + * + * [`transfer`]: struct.Pallet.html#method.transfer + **/ + transferKeepAlive: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + claims: { + /** + * Attest to a statement, needed to finalize the claims process. + * + * WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`. + * + * Unsigned Validation: + * A call to attest is deemed valid if the sender has a `Preclaim` registered + * and provides a `statement` which is expected for the account. + * + * Parameters: + * - `statement`: The identity of the statement which is being attested to in the signature. + * + * + * The weight of this call is invariant over the input parameters. + * Weight includes logic to do pre-validation on `attest` call. + * + * Total Complexity: O(1) + * + **/ + attest: AugmentedSubmittable< + (statement: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Make a claim to collect your TEERs. + * + * The dispatch origin for this call must be _None_. + * + * Unsigned Validation: + * A call to claim is deemed valid if the signature provided matches + * the expected signed message of: + * + * > Ethereum Signed Message: + * > (configured prefix string)(address) + * + * and `address` matches the `dest` account. + * + * Parameters: + * - `dest`: The destination account to payout the claim. + * - `ethereum_signature`: The signature of an ethereum signed message + * matching the format described above. + * + * + * The weight of this call is invariant over the input parameters. + * Weight includes logic to validate unsigned `claim` call. + * + * Total Complexity: O(1) + * + **/ + claim: AugmentedSubmittable< + ( + dest: AccountId32 | string | Uint8Array, + ethereumSignature: ClaimsPrimitivesEcdsaSignature | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, ClaimsPrimitivesEcdsaSignature] + >; + /** + * Make a claim to collect your TEERs by signing a statement. + * + * The dispatch origin for this call must be _None_. + * + * Unsigned Validation: + * A call to `claim_attest` is deemed valid if the signature provided matches + * the expected signed message of: + * + * > Ethereum Signed Message: + * > (configured prefix string)(address)(statement) + * + * and `address` matches the `dest` account; the `statement` must match that which is + * expected according to your purchase arrangement. + * + * Parameters: + * - `dest`: The destination account to payout the claim. + * - `ethereum_signature`: The signature of an ethereum signed message + * matching the format described above. + * - `statement`: The identity of the statement which is being attested to in the signature. + * + * + * The weight of this call is invariant over the input parameters. + * Weight includes logic to validate unsigned `claim_attest` call. + * + * Total Complexity: O(1) + * + **/ + claimAttest: AugmentedSubmittable< + ( + dest: AccountId32 | string | Uint8Array, + ethereumSignature: ClaimsPrimitivesEcdsaSignature | string | Uint8Array, + statement: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, ClaimsPrimitivesEcdsaSignature, Bytes] + >; + /** + * Mint a new claim to collect TEERs. + * + * The dispatch origin for this call must be _Root_. + * + * Parameters: + * - `who`: The Ethereum address allowed to collect this claim. + * - `value`: The number of TEERs that will be claimed. + * - `vesting_schedule`: An optional vesting schedule for these TEERs. + * + * + * The weight of this call is invariant over the input parameters. + * We assume worst case that both vesting and statement is being inserted. + * + * Total Complexity: O(1) + * + **/ + mintClaim: AugmentedSubmittable< + ( + who: ClaimsPrimitivesEthereumAddress | string | Uint8Array, + value: u128 | AnyNumber | Uint8Array, + vestingSchedule: + | Option> + | null + | Uint8Array + | ITuple<[u128, u128, u32]> + | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + statement: + | Option + | null + | Uint8Array + | ClaimsPrimitivesStatementKind + | 'Regular' + | 'Saft' + | number + ) => SubmittableExtrinsic, + [ + ClaimsPrimitivesEthereumAddress, + u128, + Option>, + Option + ] + >; + moveClaim: AugmentedSubmittable< + ( + old: ClaimsPrimitivesEthereumAddress | string | Uint8Array, + updated: ClaimsPrimitivesEthereumAddress | string | Uint8Array, + maybePreclaim: Option | null | Uint8Array | AccountId32 | string + ) => SubmittableExtrinsic, + [ClaimsPrimitivesEthereumAddress, ClaimsPrimitivesEthereumAddress, Option] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + council: { + /** + * Close a vote that is either approved, disapproved or whose voting period has ended. + * + * May be called by any signed account in order to finish voting and close the proposal. + * + * If called before the end of the voting period it will only close the vote if it is + * has enough votes to be approved or disapproved. + * + * If called after the end of the voting period abstentions are counted as rejections + * unless there is a prime member set and the prime member cast an approval. + * + * If the close operation completes successfully with disapproval, the transaction fee will + * be waived. Otherwise execution of the approved operation will be charged to the caller. + * + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. + * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via + * `storage::read` so it is `size_of::() == 4` larger than the pure length. + * + * ## Complexity + * - `O(B + M + P1 + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - `P1` is the complexity of `proposal` preimage. + * - `P2` is proposal-count (code-bounded) + **/ + close: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + proposalWeightBound: + | SpWeightsWeightV2Weight + | { refTime?: any; proofSize?: any } + | string + | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, SpWeightsWeightV2Weight, Compact] + >; + /** + * Close a vote that is either approved, disapproved or whose voting period has ended. + * + * May be called by any signed account in order to finish voting and close the proposal. + * + * If called before the end of the voting period it will only close the vote if it is + * has enough votes to be approved or disapproved. + * + * If called after the end of the voting period abstentions are counted as rejections + * unless there is a prime member set and the prime member cast an approval. + * + * If the close operation completes successfully with disapproval, the transaction fee will + * be waived. Otherwise execution of the approved operation will be charged to the caller. + * + * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed + * proposal. + * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via + * `storage::read` so it is `size_of::() == 4` larger than the pure length. + * + * ## Complexity + * - `O(B + M + P1 + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - `P1` is the complexity of `proposal` preimage. + * - `P2` is proposal-count (code-bounded) + **/ + closeOldWeight: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + proposalWeightBound: Compact | AnyNumber | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, Compact, Compact] + >; + /** + * Disapprove a proposal, close, and remove it from the system, regardless of its current + * state. + * + * Must be called by the Root origin. + * + * Parameters: + * * `proposal_hash`: The hash of the proposal that should be disapproved. + * + * ## Complexity + * O(P) where P is the number of max proposals + **/ + disapproveProposal: AugmentedSubmittable< + (proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Dispatch a proposal from a member using the `Member` origin. + * + * Origin must be a member of the collective. + * + * ## Complexity: + * - `O(B + M + P)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` members-count (code-bounded) + * - `P` complexity of dispatching `proposal` + **/ + execute: AugmentedSubmittable< + ( + proposal: Call | IMethod | string | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Call, Compact] + >; + /** + * Add a new proposal to either be voted on or executed directly. + * + * Requires the sender to be member. + * + * `threshold` determines whether `proposal` is executed directly (`threshold < 2`) + * or put up for voting. + * + * ## Complexity + * - `O(B + M + P1)` or `O(B + M + P2)` where: + * - `B` is `proposal` size in bytes (length-fee-bounded) + * - `M` is members-count (code- and governance-bounded) + * - branching is influenced by `threshold` where: + * - `P1` is proposal execution complexity (`threshold < 2`) + * - `P2` is proposals-count (code-bounded) (`threshold >= 2`) + **/ + propose: AugmentedSubmittable< + ( + threshold: Compact | AnyNumber | Uint8Array, + proposal: Call | IMethod | string | Uint8Array, + lengthBound: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Call, Compact] + >; + /** + * Set the collective's membership. + * + * - `new_members`: The new member list. Be nice to the chain and provide it sorted. + * - `prime`: The prime member whose vote sets the default. + * - `old_count`: The upper bound for the previous number of members in storage. Used for + * weight estimation. + * + * The dispatch of this call must be `SetMembersOrigin`. + * + * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but + * the weight estimations rely on it to estimate dispatchable weight. + * + * # WARNING: + * + * The `pallet-collective` can also be managed by logic outside of the pallet through the + * implementation of the trait [`ChangeMembers`]. + * Any call to `set_members` must be careful that the member set doesn't get out of sync + * with other logic managing the member set. + * + * ## Complexity: + * - `O(MP + N)` where: + * - `M` old-members-count (code- and governance-bounded) + * - `N` new-members-count (code- and governance-bounded) + * - `P` proposals-count (code-bounded) + **/ + setMembers: AugmentedSubmittable< + ( + newMembers: Vec | (AccountId32 | string | Uint8Array)[], + prime: Option | null | Uint8Array | AccountId32 | string, + oldCount: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Vec, Option, u32] + >; + /** + * Add an aye or nay vote for the sender to the given proposal. + * + * Requires the sender to be a member. + * + * Transaction fees will be waived if the member is voting on any particular proposal + * for the first time and the call is successful. Subsequent vote changes will charge a + * fee. + * ## Complexity + * - `O(M)` where `M` is members-count (code- and governance-bounded) + **/ + vote: AugmentedSubmittable< + ( + proposal: H256 | string | Uint8Array, + index: Compact | AnyNumber | Uint8Array, + approve: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact, bool] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + grandpa: { + /** + * Note that the current authority set of the GRANDPA finality gadget has stalled. + * + * This will trigger a forced authority set change at the beginning of the next session, to + * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume + * that the block signalling the forced change will not be re-orged e.g. 1000 blocks. + * The block production rate (which may be slowed down because of finality lagging) should + * be taken into account when choosing the `delay`. The GRANDPA voters based on the new + * authority will start voting on top of `best_finalized_block_number` for new finalized + * blocks. `best_finalized_block_number` should be the highest of the latest finalized + * block of all validators of the new authority set. + * + * Only callable by root. + **/ + noteStalled: AugmentedSubmittable< + ( + delay: u32 | AnyNumber | Uint8Array, + bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u32, u32] + >; + /** + * Report voter equivocation/misbehavior. This method will verify the + * equivocation proof and validate the given key ownership proof + * against the extracted offender. If both are valid, the offence + * will be reported. + **/ + reportEquivocation: AugmentedSubmittable< + ( + equivocationProof: + | SpFinalityGrandpaEquivocationProof + | { setId?: any; equivocation?: any } + | string + | Uint8Array, + keyOwnerProof: SpCoreVoid | null + ) => SubmittableExtrinsic, + [SpFinalityGrandpaEquivocationProof, SpCoreVoid] + >; + /** + * Report voter equivocation/misbehavior. This method will verify the + * equivocation proof and validate the given key ownership proof + * against the extracted offender. If both are valid, the offence + * will be reported. + * + * This extrinsic must be called unsigned and it is expected that only + * block authors will call it (validated in `ValidateUnsigned`), as such + * if the block author is defined it will be defined as the equivocation + * reporter. + **/ + reportEquivocationUnsigned: AugmentedSubmittable< + ( + equivocationProof: + | SpFinalityGrandpaEquivocationProof + | { setId?: any; equivocation?: any } + | string + | Uint8Array, + keyOwnerProof: SpCoreVoid | null + ) => SubmittableExtrinsic, + [SpFinalityGrandpaEquivocationProof, SpCoreVoid] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + identityManagement: { + /** + * add an account to the delegatees + **/ + addDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Create an identity + * We do the origin check for this extrinsic, it has to be + * - either the caller him/herself, i.e. ensure_signed(origin)? == who + * - or from a delegatee in the list + **/ + createIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + user: AccountId32 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array, + encryptedMetadata: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [H256, AccountId32, Bytes, Option] + >; + identityCreated: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + code: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput, H256] + >; + identityRemoved: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, H256] + >; + identityVerified: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + identity: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput, H256] + >; + /** + * remove an account from the delegatees + **/ + removeDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Remove an identity + **/ + removeIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes] + >; + /** + * Set or update user's shielding key + **/ + setUserShieldingKey: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedKey: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes] + >; + someError: AugmentedSubmittable< + ( + account: Option | null | Uint8Array | AccountId32 | string, + error: + | CorePrimitivesErrorImpError + | { SetUserShieldingKeyFailed: any } + | { CreateIdentityFailed: any } + | { RemoveIdentityFailed: any } + | { VerifyIdentityFailed: any } + | { ImportScheduledEnclaveFailed: any } + | { UnclassifiedError: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [Option, CorePrimitivesErrorImpError, H256] + >; + /** + * --------------------------------------------------- + * The following extrinsics are supposed to be called by TEE only + * --------------------------------------------------- + **/ + userShieldingKeySet: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, H256] + >; + /** + * Verify an identity + **/ + verifyIdentity: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + encryptedIdentity: Bytes | string | Uint8Array, + encryptedValidationData: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes, Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + impExtrinsicWhitelist: { + /** + * Adds a new group member + **/ + addGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Batch adding of new group members + **/ + batchAddGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Batch Removing existing group members + **/ + batchRemoveGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Removes an existing group members + **/ + removeGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Swith GroupControlOn off + **/ + switchGroupControlOff: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Swith GroupControlOn on + **/ + switchGroupControlOn: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + multisig: { + /** + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call_hash`: The hash of the call to be executed. + * + * NOTE: If this is the final approval, you will want to use `as_multi` instead. + * + * ## Complexity + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit + * taken for its lifetime of `DepositBase + threshold * DepositFactor`. + **/ + approveAsMulti: AugmentedSubmittable< + ( + threshold: u16 | AnyNumber | Uint8Array, + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + maybeTimepoint: + | Option + | null + | Uint8Array + | PalletMultisigTimepoint + | { height?: any; index?: any } + | string, + callHash: U8aFixed | string | Uint8Array, + maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Vec, Option, U8aFixed, SpWeightsWeightV2Weight] + >; + /** + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * If there are enough, then dispatch the call. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call`: The call to be executed. + * + * NOTE: Unless this is the final approval, you will generally want to use + * `approve_as_multi` instead, since it only requires a hash of the call. + * + * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise + * on success, result is `Ok` and the result from the interior call, if it was executed, + * may be found in the deposited `MultisigExecuted` event. + * + * ## Complexity + * - `O(S + Z + Call)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - The weight of the `call`. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit + * taken for its lifetime of `DepositBase + threshold * DepositFactor`. + **/ + asMulti: AugmentedSubmittable< + ( + threshold: u16 | AnyNumber | Uint8Array, + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + maybeTimepoint: + | Option + | null + | Uint8Array + | PalletMultisigTimepoint + | { height?: any; index?: any } + | string, + call: Call | IMethod | string | Uint8Array, + maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Vec, Option, Call, SpWeightsWeightV2Weight] + >; + /** + * Immediately dispatch a multi-signature call using a single approval from the caller. + * + * The dispatch origin for this call must be _Signed_. + * + * - `other_signatories`: The accounts (other than the sender) who are part of the + * multi-signature, but do not participate in the approval process. + * - `call`: The call to be executed. + * + * Result is equivalent to the dispatched result. + * + * ## Complexity + * O(Z + C) where Z is the length of the call and C its execution weight. + **/ + asMultiThreshold1: AugmentedSubmittable< + ( + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [Vec, Call] + >; + /** + * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously + * for this operation will be unreserved on success. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `timepoint`: The timepoint (block number and transaction index) of the first approval + * transaction for this dispatch. + * - `call_hash`: The hash of the call to be executed. + * + * ## Complexity + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - One event. + * - I/O: 1 read `O(S)`, one remove. + * - Storage: removes one item. + **/ + cancelAsMulti: AugmentedSubmittable< + ( + threshold: u16 | AnyNumber | Uint8Array, + otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], + timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, + callHash: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Vec, PalletMultisigTimepoint, U8aFixed] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + preimage: { + /** + * Register a preimage on-chain. + * + * If the preimage was previously requested, no fees or deposits are taken for providing + * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. + **/ + notePreimage: AugmentedSubmittable< + (bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Request a preimage be uploaded to the chain without paying any fees or deposits. + * + * If the preimage requests has already been provided on-chain, we unreserve any deposit + * a user may have paid, and take the control of the preimage out of their hands. + **/ + requestPreimage: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Clear an unrequested preimage from the runtime storage. + * + * If `len` is provided, then it will be a much cheaper operation. + * + * - `hash`: The hash of the preimage to be removed from the store. + * - `len`: The length of the preimage of `hash`. + **/ + unnotePreimage: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Clear a previously made request for a preimage. + * + * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. + **/ + unrequestPreimage: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + proxy: { + /** + * Register a proxy account for the sender that is able to make calls on its behalf. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `proxy`: The account that the `caller` would like to make a proxy. + * - `proxy_type`: The permissions allowed for this proxy account. + * - `delay`: The announcement period required of the initial proxy. Will generally be + * zero. + **/ + addProxy: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + proxyType: + | IntegriteeNodeRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'Governance' + | 'CancelProxy' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, IntegriteeNodeRuntimeProxyType, u32] + >; + /** + * Publish the hash of a proxy-call that will be made in the future. + * + * This must be called some number of blocks before the corresponding `proxy` is attempted + * if the delay associated with the proxy relationship is greater than zero. + * + * No more than `MaxPending` announcements may be made at any one time. + * + * This will take a deposit of `AnnouncementDepositFactor` as well as + * `AnnouncementDepositBase` if there are no other pending announcements. + * + * The dispatch origin for this call must be _Signed_ and a proxy of `real`. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `call_hash`: The hash of the call to be made by the `real` account. + **/ + announce: AugmentedSubmittable< + ( + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, H256] + >; + /** + * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and + * initialize it with a proxy of `proxy_type` for `origin` sender. + * + * Requires a `Signed` origin. + * + * - `proxy_type`: The type of the proxy that the sender will be registered as over the + * new account. This will almost always be the most permissive `ProxyType` possible to + * allow for maximum flexibility. + * - `index`: A disambiguation index, in case this is called multiple times in the same + * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just + * want to use `0`. + * - `delay`: The announcement period required of the initial proxy. Will generally be + * zero. + * + * Fails with `Duplicate` if this has already been called in this transaction, from the + * same sender, with the same parameters. + * + * Fails if there are insufficient funds to pay for deposit. + **/ + createPure: AugmentedSubmittable< + ( + proxyType: + | IntegriteeNodeRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'Governance' + | 'CancelProxy' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array, + index: u16 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [IntegriteeNodeRuntimeProxyType, u32, u16] + >; + /** + * Removes a previously spawned pure proxy. + * + * WARNING: **All access to this account will be lost.** Any funds held in it will be + * inaccessible. + * + * Requires a `Signed` origin, and the sender account must have been created by a call to + * `pure` with corresponding parameters. + * + * - `spawner`: The account that originally called `pure` to create this account. + * - `index`: The disambiguation index originally passed to `pure`. Probably `0`. + * - `proxy_type`: The proxy type originally passed to `pure`. + * - `height`: The height of the chain when the call to `pure` was processed. + * - `ext_index`: The extrinsic index in which the call to `pure` was processed. + * + * Fails with `NoPermission` in case the caller is not a previously created pure + * account whose `pure` call has corresponding parameters. + **/ + killPure: AugmentedSubmittable< + ( + spawner: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + proxyType: + | IntegriteeNodeRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'Governance' + | 'CancelProxy' + | number + | Uint8Array, + index: u16 | AnyNumber | Uint8Array, + height: Compact | AnyNumber | Uint8Array, + extIndex: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, IntegriteeNodeRuntimeProxyType, u16, Compact, Compact] + >; + /** + * Dispatch the given `call` from an account that the sender is authorised for through + * `add_proxy`. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. + * - `call`: The call to be made by the `real` account. + **/ + proxy: AugmentedSubmittable< + ( + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + forceProxyType: + | Option + | null + | Uint8Array + | IntegriteeNodeRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'Governance' + | 'CancelProxy' + | number, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Option, Call] + >; + /** + * Dispatch the given `call` from an account that the sender is authorized for through + * `add_proxy`. + * + * Removes any corresponding announcement(s). + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. + * - `call`: The call to be made by the `real` account. + **/ + proxyAnnounced: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + forceProxyType: + | Option + | null + | Uint8Array + | IntegriteeNodeRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'Governance' + | 'CancelProxy' + | number, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, Option, Call] + >; + /** + * Remove the given announcement of a delegate. + * + * May be called by a target (proxied) account to remove a call that one of their delegates + * (`delegate`) has announced they want to execute. The deposit is returned. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `delegate`: The account that previously announced the call. + * - `call_hash`: The hash of the call to be made. + **/ + rejectAnnouncement: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, H256] + >; + /** + * Remove a given announcement. + * + * May be called by a proxy account to remove a call they previously announced and return + * the deposit. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `call_hash`: The hash of the call to be made by the `real` account. + **/ + removeAnnouncement: AugmentedSubmittable< + ( + real: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, H256] + >; + /** + * Unregister all proxy accounts for the sender. + * + * The dispatch origin for this call must be _Signed_. + * + * WARNING: This may be called on accounts created by `pure`, however if done, then + * the unreserved fees will be inaccessible. **All access to this account will be lost.** + **/ + removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Unregister a proxy account for the sender. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `proxy`: The account that the `caller` would like to remove as a proxy. + * - `proxy_type`: The permissions currently enabled for the removed proxy account. + **/ + removeProxy: AugmentedSubmittable< + ( + delegate: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + proxyType: + | IntegriteeNodeRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'Governance' + | 'CancelProxy' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, IntegriteeNodeRuntimeProxyType, u32] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + scheduler: { + /** + * Cancel an anonymously scheduled task. + **/ + cancel: AugmentedSubmittable< + ( + when: u32 | AnyNumber | Uint8Array, + index: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u32, u32] + >; + /** + * Cancel a named scheduled task. + **/ + cancelNamed: AugmentedSubmittable< + (id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, + [U8aFixed] + >; + /** + * Anonymously schedule a task. + **/ + schedule: AugmentedSubmittable< + ( + when: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u32, Option>, u8, Call] + >; + /** + * Anonymously schedule a task after a delay. + **/ + scheduleAfter: AugmentedSubmittable< + ( + after: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u32, Option>, u8, Call] + >; + /** + * Schedule a named task. + **/ + scheduleNamed: AugmentedSubmittable< + ( + id: U8aFixed | string | Uint8Array, + when: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [U8aFixed, u32, Option>, u8, Call] + >; + /** + * Schedule a named task after a delay. + **/ + scheduleNamedAfter: AugmentedSubmittable< + ( + id: U8aFixed | string | Uint8Array, + after: u32 | AnyNumber | Uint8Array, + maybePeriodic: + | Option> + | null + | Uint8Array + | ITuple<[u32, u32]> + | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], + priority: u8 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [U8aFixed, u32, Option>, u8, Call] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + sidechain: { + /** + * The integritee worker calls this function for every imported sidechain_block. + **/ + confirmImportedSidechainBlock: AugmentedSubmittable< + ( + shardId: H256 | string | Uint8Array, + blockNumber: u64 | AnyNumber | Uint8Array, + nextFinalizationCandidateBlockNumber: u64 | AnyNumber | Uint8Array, + blockHeaderHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64, u64, H256] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + sudo: { + /** + * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo + * key. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + setKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudo: AugmentedSubmittable< + (call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, + [Call] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Signed` origin from + * a given account. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudoAs: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Call] + >; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * This function does not check the weight of the call, and instead allows the + * Sudo user to specify the weight of the call. + * + * The dispatch origin for this call must be _Signed_. + * + * ## Complexity + * - O(1). + **/ + sudoUncheckedWeight: AugmentedSubmittable< + ( + call: Call | IMethod | string | Uint8Array, + weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Call, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + system: { + /** + * Kill all storage items with a key that starts with the given prefix. + * + * **NOTE:** We rely on the Root origin to provide us the number of subkeys under + * the prefix we are removing to accurately calculate the weight of this function. + **/ + killPrefix: AugmentedSubmittable< + ( + prefix: Bytes | string | Uint8Array, + subkeys: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u32] + >; + /** + * Kill some items from storage. + **/ + killStorage: AugmentedSubmittable< + (keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Make some on-chain remark. + * + * ## Complexity + * - `O(1)` + **/ + remark: AugmentedSubmittable< + (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Make some on-chain remark and emit event. + **/ + remarkWithEvent: AugmentedSubmittable< + (remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the new runtime code. + * + * ## Complexity + * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` + **/ + setCode: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the new runtime code without doing any checks of the given `code`. + * + * ## Complexity + * - `O(C)` where `C` length of `code` + **/ + setCodeWithoutChecks: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the number of pages in the WebAssembly environment's heap. + **/ + setHeapPages: AugmentedSubmittable< + (pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Set some items of storage. + **/ + setStorage: AugmentedSubmittable< + ( + items: Vec> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array][] + ) => SubmittableExtrinsic, + [Vec>] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + teeracle: { + addToWhitelist: AugmentedSubmittable< + (dataSource: Text | string, mrenclave: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, + [Text, U8aFixed] + >; + removeFromWhitelist: AugmentedSubmittable< + (dataSource: Text | string, mrenclave: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, + [Text, U8aFixed] + >; + updateExchangeRate: AugmentedSubmittable< + ( + dataSource: Text | string, + tradingPair: Text | string, + newValue: + | Option + | null + | Uint8Array + | SubstrateFixedFixedU64 + | { bits?: any } + | string + ) => SubmittableExtrinsic, + [Text, Text, Option] + >; + updateOracle: AugmentedSubmittable< + ( + oracleName: Text | string, + dataSource: Text | string, + newBlob: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Text, Text, Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + teerex: { + callWorker: AugmentedSubmittable< + ( + request: TeerexPrimitivesRequest | { shard?: any; cyphertext?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [TeerexPrimitivesRequest] + >; + /** + * The integritee worker calls this function for every processed parentchain_block to + * confirm a state update. + **/ + confirmProcessedParentchainBlock: AugmentedSubmittable< + ( + blockHash: H256 | string | Uint8Array, + blockNumber: u32 | AnyNumber | Uint8Array, + trustedCallsMerkleRoot: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, u32, H256] + >; + /** + * Publish a hash as a result of an arbitrary enclave operation. + * + * The `mrenclave` of the origin will be used as an event topic a client can subscribe to. + * `extra_topics`, if any, will be used as additional event topics. + * + * `data` can be anything worthwhile publishing related to the hash. If it is a + * utf8-encoded string, the UIs will usually even render the text. + **/ + publishHash: AugmentedSubmittable< + ( + hash: H256 | string | Uint8Array, + extraTopics: Vec | (H256 | string | Uint8Array)[], + data: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Vec, Bytes] + >; + registerDcapEnclave: AugmentedSubmittable< + ( + dcapQuote: Bytes | string | Uint8Array, + workerUrl: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes] + >; + registerEnclave: AugmentedSubmittable< + ( + raReport: Bytes | string | Uint8Array, + workerUrl: Bytes | string | Uint8Array, + shieldingKey: Option | null | Uint8Array | Bytes | string, + vcPubkey: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [Bytes, Bytes, Option, Option] + >; + registerQuotingEnclave: AugmentedSubmittable< + ( + enclaveIdentity: Bytes | string | Uint8Array, + signature: Bytes | string | Uint8Array, + certificateChain: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes, Bytes] + >; + registerTcbInfo: AugmentedSubmittable< + ( + tcbInfo: Bytes | string | Uint8Array, + signature: Bytes | string | Uint8Array, + certificateChain: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes, Bytes] + >; + removeScheduledEnclave: AugmentedSubmittable< + (sidechainBlockNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Change the admin account + * similar to sudo.set_key, the old account will be supplied in event + **/ + setAdmin: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + setHeartbeatTimeout: AugmentedSubmittable< + (timeout: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Sent by a client who requests to get shielded funds managed by an enclave. For this + * on-chain balance is sent to the bonding_account of the enclave. The bonding_account does + * not have a private key as the balance on this account is exclusively managed from + * withing the pallet_teerex. Note: The bonding_account is bit-equivalent to the worker + * shard. + **/ + shieldFunds: AugmentedSubmittable< + ( + incognitoAccountEncrypted: Bytes | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + bondingAccount: AccountId32 | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u128, AccountId32] + >; + unregisterEnclave: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Sent by enclaves only as a result of an `unshield` request from a client to an enclave. + **/ + unshieldFunds: AugmentedSubmittable< + ( + publicAccount: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + bondingAccount: AccountId32 | string | Uint8Array, + callHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128, AccountId32, H256] + >; + updateScheduledEnclave: AugmentedSubmittable< + ( + sidechainBlockNumber: u64 | AnyNumber | Uint8Array, + mrEnclave: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, U8aFixed] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + timestamp: { + /** + * Set the current time. + * + * This call should be invoked exactly once per block. It will panic at the finalization + * phase, if this call hasn't been invoked by that time. + * + * The timestamp should be greater than the previous one by the amount specified by + * `MinimumPeriod`. + * + * The dispatch origin for this call must be `Inherent`. + * + * ## Complexity + * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) + * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in + * `on_finalize`) + * - 1 event handler `on_timestamp_set`. Must be `O(1)`. + **/ + set: AugmentedSubmittable< + (now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + treasury: { + /** + * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary + * and the original deposit will be returned. + * + * May only be called from `T::ApproveOrigin`. + * + * ## Complexity + * - O(1). + **/ + approveProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Put forward a suggestion for spending. A deposit proportional to the value + * is reserved and slashed if the proposal is rejected. It is returned once the + * proposal is awarded. + * + * ## Complexity + * - O(1) + **/ + proposeSpend: AugmentedSubmittable< + ( + value: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Reject a proposed spend. The original deposit will be slashed. + * + * May only be called from `T::RejectOrigin`. + * + * ## Complexity + * - O(1) + **/ + rejectProposal: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Force a previously approved proposal to be removed from the approval queue. + * The original deposit will no longer be returned. + * + * May only be called from `T::RejectOrigin`. + * - `proposal_id`: The index of a proposal + * + * ## Complexity + * - O(A) where `A` is the number of approvals + * + * Errors: + * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue, + * i.e., the proposal has not been approved. This could also mean the proposal does not + * exist altogether, thus there is no way it would have been approved in the first place. + **/ + removeApproval: AugmentedSubmittable< + (proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Propose and approve a spend of treasury funds. + * + * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`. + * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. + * - `beneficiary`: The destination account for the transfer. + * + * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the + * beneficiary. + **/ + spend: AugmentedSubmittable< + ( + amount: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + utility: { + /** + * Send a call through an indexed pseudonym of the sender. + * + * Filter from origin are passed along. The call will be dispatched with an origin which + * use the same filter as the origin of this call. + * + * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. + * because you expect `proxy` to have been used prior in the call stack and you do not want + * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` + * in the Multisig pallet instead. + * + * NOTE: Prior to version *12, this was called `as_limited_sub`. + * + * The dispatch origin for this call must be _Signed_. + **/ + asDerivative: AugmentedSubmittable< + ( + index: u16 | AnyNumber | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u16, Call] + >; + /** + * Send a batch of dispatch calls. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatched without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + * + * This will return `Ok` in all circumstances. To determine the success of the batch, an + * event is deposited. If a call failed and the batch was interrupted, then the + * `BatchInterrupted` event is deposited, along with the number of successful calls made + * and the error of the failed call. If all were successful, then the `BatchCompleted` + * event is deposited. + **/ + batch: AugmentedSubmittable< + (calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Send a batch of dispatch calls and atomically execute them. + * The whole transaction will rollback and fail if any of the calls failed. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatched without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + **/ + batchAll: AugmentedSubmittable< + (calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Dispatches a function call with a provided origin. + * + * The dispatch origin for this call must be _Root_. + * + * ## Complexity + * - O(1). + **/ + dispatchAs: AugmentedSubmittable< + ( + asOrigin: + | IntegriteeNodeRuntimeOriginCaller + | { system: any } + | { Void: any } + | { Council: any } + | string + | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [IntegriteeNodeRuntimeOriginCaller, Call] + >; + /** + * Send a batch of dispatch calls. + * Unlike `batch`, it allows errors and won't interrupt. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatch without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + **/ + forceBatch: AugmentedSubmittable< + (calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Dispatch a function call with a specified weight. + * + * This function does not check the weight of the call, and instead allows the + * Root origin to specify the weight of the call. + * + * The dispatch origin for this call must be _Root_. + **/ + withWeight: AugmentedSubmittable< + ( + call: Call | IMethod | string | Uint8Array, + weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Call, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vcManagement: { + activateSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + index: u64 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64] + >; + addSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + id: Bytes | string | Uint8Array, + content: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, Bytes, Bytes] + >; + addVcRegistryItem: AugmentedSubmittable< + ( + index: H256 | string | Uint8Array, + subject: AccountId32 | string | Uint8Array, + assertion: + | CorePrimitivesAssertion + | { A1: any } + | { A2: any } + | { A3: any } + | { A4: any } + | { A5: any } + | { A6: any } + | { A7: any } + | { A8: any } + | { A9: any } + | { A10: any } + | { A11: any } + | { A13: any } + | string + | Uint8Array, + hash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [H256, AccountId32, CorePrimitivesAssertion, H256] + >; + clearVcRegistry: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + disableSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + index: u64 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64] + >; + disableVc: AugmentedSubmittable< + (index: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + removeVcRegistryItem: AugmentedSubmittable< + (index: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + requestVc: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + assertion: + | CorePrimitivesAssertion + | { A1: any } + | { A2: any } + | { A3: any } + | { A4: any } + | { A5: any } + | { A6: any } + | { A7: any } + | { A8: any } + | { A9: any } + | { A10: any } + | { A11: any } + | { A13: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [H256, CorePrimitivesAssertion] + >; + revokeSchema: AugmentedSubmittable< + ( + shard: H256 | string | Uint8Array, + index: u64 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u64] + >; + revokeVc: AugmentedSubmittable< + (index: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + setAdmin: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + someError: AugmentedSubmittable< + ( + account: Option | null | Uint8Array | AccountId32 | string, + error: + | CorePrimitivesErrorVcmpError + | { RequestVCFailed: any } + | { UnclassifiedError: any } + | string + | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [Option, CorePrimitivesErrorVcmpError, H256] + >; + /** + * --------------------------------------------------- + * The following extrinsics are supposed to be called by TEE only + * --------------------------------------------------- + **/ + vcIssued: AugmentedSubmittable< + ( + account: AccountId32 | string | Uint8Array, + assertion: + | CorePrimitivesAssertion + | { A1: any } + | { A2: any } + | { A3: any } + | { A4: any } + | { A5: any } + | { A6: any } + | { A7: any } + | { A8: any } + | { A9: any } + | { A10: any } + | { A11: any } + | { A13: any } + | string + | Uint8Array, + index: H256 | string | Uint8Array, + hash: H256 | string | Uint8Array, + vc: CorePrimitivesKeyAesOutput | { ciphertext?: any; aad?: any; nonce?: any } | string | Uint8Array, + reqExtHash: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesAssertion, H256, H256, CorePrimitivesKeyAesOutput, H256] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vcmpExtrinsicWhitelist: { + /** + * Adds a new group member + **/ + addGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Batch adding of new group members + **/ + batchAddGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Batch Removing existing group members + **/ + batchRemoveGroupMembers: AugmentedSubmittable< + (vs: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Removes an existing group members + **/ + removeGroupMember: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Swith GroupControlOn off + **/ + switchGroupControlOff: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Swith GroupControlOn on + **/ + switchGroupControlOn: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + vesting: { + /** + * Force a vested transfer. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The account whose funds should be transferred. + * - `target`: The account that should be transferred the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + forceVestedTransfer: AugmentedSubmittable< + ( + source: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + schedule: + | PalletVestingVestingInfo + | { locked?: any; perBlock?: any; startingBlock?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, PalletVestingVestingInfo] + >; + /** + * Merge two vesting schedules together, creating a new vesting schedule that unlocks over + * the highest possible start and end blocks. If both schedules have already started the + * current block will be used as the schedule start; with the caveat that if one schedule + * is finished by the current block, the other will be treated as the new merged schedule, + * unmodified. + * + * NOTE: If `schedule1_index == schedule2_index` this is a no-op. + * NOTE: This will unlock all schedules through the current block prior to merging. + * NOTE: If both schedules have ended by the current block, no new schedule will be created + * and both will be removed. + * + * Merged schedule attributes: + * - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block, + * current_block)`. + * - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`. + * - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`. + * + * The dispatch origin for this call must be _Signed_. + * + * - `schedule1_index`: index of the first schedule to merge. + * - `schedule2_index`: index of the second schedule to merge. + **/ + mergeSchedules: AugmentedSubmittable< + ( + schedule1Index: u32 | AnyNumber | Uint8Array, + schedule2Index: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u32, u32] + >; + /** + * Unlock any vested funds of the sender account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vest: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Create a vested transfer. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account receiving the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. + **/ + vestedTransfer: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + schedule: + | PalletVestingVestingInfo + | { locked?: any; perBlock?: any; startingBlock?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, PalletVestingVestingInfo] + >; + /** + * Unlock any vested funds of a `target` account. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account whose vested funds should be unlocked. Must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. + **/ + vestOther: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + } // AugmentedSubmittables +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api.ts b/tee-worker/ts-tests/interfaces/augment-api.ts new file mode 100644 index 0000000000..7cafd228bd --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-api.ts @@ -0,0 +1,10 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +import './augment-api-consts'; +import './augment-api-errors'; +import './augment-api-events'; +import './augment-api-query'; +import './augment-api-tx'; +import './augment-api-rpc'; +import './augment-api-runtime'; diff --git a/tee-worker/ts-tests/interfaces/augment-types.ts b/tee-worker/ts-tests/interfaces/augment-types.ts new file mode 100644 index 0000000000..392604d0bd --- /dev/null +++ b/tee-worker/ts-tests/interfaces/augment-types.ts @@ -0,0 +1,2346 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { + Address20, + Address32, + Assertion, + DirectRequestStatus, + DiscordValidationData, + EvmIdentity, + EvmNetwork, + GenericEventWithAccount, + Getter, + IdentityContext, + IdentityGenericEvent, + IdentityMultiSignature, + IdentityString, + LitentryIdentity, + LitentryValidationData, + MrEnclaveIdentifier, + PublicGetter, + SubstrateIdentity, + SubstrateNetwork, + TrustedCall, + TrustedCallSigned, + TrustedGetter, + TrustedGetterSigned, + TrustedOperation, + TwitterValidationData, + VCRequested, + Web2Identity, + Web2Network, + Web2ValidationData, + Web3CommonValidationData, + Web3ValidationData, + WorkerRpcReturnString, + WorkerRpcReturnValue, +} from './identity'; +import type { Data, StorageKey } from '@polkadot/types'; +import type { + BitVec, + Bool, + Bytes, + F32, + F64, + I128, + I16, + I256, + I32, + I64, + I8, + Json, + Null, + OptionBool, + Raw, + Text, + Type, + U128, + U16, + U256, + U32, + U64, + U8, + USize, + bool, + f32, + f64, + i128, + i16, + i256, + i32, + i64, + i8, + u128, + u16, + u256, + u32, + u64, + u8, + usize, +} from '@polkadot/types-codec'; +import type { + AssetApproval, + AssetApprovalKey, + AssetBalance, + AssetDestroyWitness, + AssetDetails, + AssetMetadata, + TAssetBalance, + TAssetDepositBalance, +} from '@polkadot/types/interfaces/assets'; +import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; +import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; +import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; +import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; +import type { + AllowedSlots, + BabeAuthorityWeight, + BabeBlockWeight, + BabeEpochConfiguration, + BabeEquivocationProof, + BabeGenesisConfiguration, + BabeGenesisConfigurationV1, + BabeWeight, + Epoch, + EpochAuthorship, + MaybeRandomness, + MaybeVrf, + NextConfigDescriptor, + NextConfigDescriptorV1, + OpaqueKeyOwnershipProof, + Randomness, + RawBabePreDigest, + RawBabePreDigestCompat, + RawBabePreDigestPrimary, + RawBabePreDigestPrimaryTo159, + RawBabePreDigestSecondaryPlain, + RawBabePreDigestSecondaryTo159, + RawBabePreDigestSecondaryVRF, + RawBabePreDigestTo159, + SlotNumber, + VrfData, + VrfOutput, + VrfProof, +} from '@polkadot/types/interfaces/babe'; +import type { + AccountData, + BalanceLock, + BalanceLockTo212, + BalanceStatus, + Reasons, + ReserveData, + ReserveIdentifier, + VestingSchedule, + WithdrawReasons, +} from '@polkadot/types/interfaces/balances'; +import type { + BeefyAuthoritySet, + BeefyCommitment, + BeefyId, + BeefyNextAuthoritySet, + BeefyPayload, + BeefyPayloadId, + BeefySignedCommitment, + MmrRootHash, + ValidatorSet, + ValidatorSetId, +} from '@polkadot/types/interfaces/beefy'; +import type { + BenchmarkBatch, + BenchmarkConfig, + BenchmarkList, + BenchmarkMetadata, + BenchmarkParameter, + BenchmarkResult, +} from '@polkadot/types/interfaces/benchmark'; +import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder'; +import type { + BridgeMessageId, + BridgedBlockHash, + BridgedBlockNumber, + BridgedHeader, + CallOrigin, + ChainId, + DeliveredMessages, + DispatchFeePayment, + InboundLaneData, + InboundRelayer, + InitializationData, + LaneId, + MessageData, + MessageKey, + MessageNonce, + MessagesDeliveryProofOf, + MessagesProofOf, + OperatingMode, + OutboundLaneData, + OutboundMessageFee, + OutboundPayload, + Parameter, + RelayerId, + UnrewardedRelayer, + UnrewardedRelayersState, +} from '@polkadot/types/interfaces/bridges'; +import type { BlockHash } from '@polkadot/types/interfaces/chain'; +import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; +import type { StatementKind } from '@polkadot/types/interfaces/claims'; +import type { + CollectiveOrigin, + MemberCount, + ProposalIndex, + Votes, + VotesTo230, +} from '@polkadot/types/interfaces/collective'; +import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'; +import type { + AliveContractInfo, + CodeHash, + CodeSource, + CodeUploadRequest, + CodeUploadResult, + CodeUploadResultValue, + ContractCallFlags, + ContractCallRequest, + ContractExecResult, + ContractExecResultOk, + ContractExecResultResult, + ContractExecResultSuccessTo255, + ContractExecResultSuccessTo260, + ContractExecResultTo255, + ContractExecResultTo260, + ContractExecResultTo267, + ContractExecResultU64, + ContractInfo, + ContractInstantiateResult, + ContractInstantiateResultTo267, + ContractInstantiateResultTo299, + ContractInstantiateResultU64, + ContractReturnFlags, + ContractStorageKey, + DeletedContract, + ExecReturnValue, + Gas, + HostFnWeights, + HostFnWeightsTo264, + InstantiateRequest, + InstantiateRequestV1, + InstantiateRequestV2, + InstantiateReturnValue, + InstantiateReturnValueOk, + InstantiateReturnValueTo267, + InstructionWeights, + Limits, + LimitsTo264, + PrefabWasmModule, + RentProjection, + Schedule, + ScheduleTo212, + ScheduleTo258, + ScheduleTo264, + SeedOf, + StorageDeposit, + TombstoneContractInfo, + TrieId, +} from '@polkadot/types/interfaces/contracts'; +import type { + ContractConstructorSpecLatest, + ContractConstructorSpecV0, + ContractConstructorSpecV1, + ContractConstructorSpecV2, + ContractConstructorSpecV3, + ContractContractSpecV0, + ContractContractSpecV1, + ContractContractSpecV2, + ContractContractSpecV3, + ContractContractSpecV4, + ContractCryptoHasher, + ContractDiscriminant, + ContractDisplayName, + ContractEventParamSpecLatest, + ContractEventParamSpecV0, + ContractEventParamSpecV2, + ContractEventSpecLatest, + ContractEventSpecV0, + ContractEventSpecV1, + ContractEventSpecV2, + ContractLayoutArray, + ContractLayoutCell, + ContractLayoutEnum, + ContractLayoutHash, + ContractLayoutHashingStrategy, + ContractLayoutKey, + ContractLayoutStruct, + ContractLayoutStructField, + ContractMessageParamSpecLatest, + ContractMessageParamSpecV0, + ContractMessageParamSpecV2, + ContractMessageSpecLatest, + ContractMessageSpecV0, + ContractMessageSpecV1, + ContractMessageSpecV2, + ContractMetadata, + ContractMetadataLatest, + ContractMetadataV0, + ContractMetadataV1, + ContractMetadataV2, + ContractMetadataV3, + ContractMetadataV4, + ContractProject, + ContractProjectContract, + ContractProjectInfo, + ContractProjectSource, + ContractProjectV0, + ContractSelector, + ContractStorageLayout, + ContractTypeSpec, +} from '@polkadot/types/interfaces/contractsAbi'; +import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan'; +import type { + CollationInfo, + CollationInfoV1, + ConfigData, + MessageId, + OverweightIndex, + PageCounter, + PageIndexData, +} from '@polkadot/types/interfaces/cumulus'; +import type { + AccountVote, + AccountVoteSplit, + AccountVoteStandard, + Conviction, + Delegations, + PreimageStatus, + PreimageStatusAvailable, + PriorLock, + PropIndex, + Proposal, + ProxyState, + ReferendumIndex, + ReferendumInfo, + ReferendumInfoFinished, + ReferendumInfoTo239, + ReferendumStatus, + Tally, + Voting, + VotingDelegating, + VotingDirect, + VotingDirectVote, +} from '@polkadot/types/interfaces/democracy'; +import type { BlockStats } from '@polkadot/types/interfaces/dev'; +import type { + ApprovalFlag, + DefunctVoter, + Renouncing, + SetIndex, + Vote, + VoteIndex, + VoteThreshold, + VoterInfo, +} from '@polkadot/types/interfaces/elections'; +import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine'; +import type { + BlockV0, + BlockV1, + BlockV2, + EIP1559Transaction, + EIP2930Transaction, + EthAccessList, + EthAccessListItem, + EthAccount, + EthAddress, + EthBlock, + EthBloom, + EthCallRequest, + EthFeeHistory, + EthFilter, + EthFilterAddress, + EthFilterChanges, + EthFilterTopic, + EthFilterTopicEntry, + EthFilterTopicInner, + EthHeader, + EthLog, + EthReceipt, + EthReceiptV0, + EthReceiptV3, + EthRichBlock, + EthRichHeader, + EthStorageProof, + EthSubKind, + EthSubParams, + EthSubResult, + EthSyncInfo, + EthSyncStatus, + EthTransaction, + EthTransactionAction, + EthTransactionCondition, + EthTransactionRequest, + EthTransactionSignature, + EthTransactionStatus, + EthWork, + EthereumAccountId, + EthereumAddress, + EthereumLookupSource, + EthereumSignature, + LegacyTransaction, + TransactionV0, + TransactionV1, + TransactionV2, +} from '@polkadot/types/interfaces/eth'; +import type { + EvmAccount, + EvmCallInfo, + EvmCreateInfo, + EvmLog, + EvmVicinity, + ExitError, + ExitFatal, + ExitReason, + ExitRevert, + ExitSucceed, +} from '@polkadot/types/interfaces/evm'; +import type { + AnySignature, + EcdsaSignature, + Ed25519Signature, + Era, + Extrinsic, + ExtrinsicEra, + ExtrinsicPayload, + ExtrinsicPayloadUnknown, + ExtrinsicPayloadV4, + ExtrinsicSignature, + ExtrinsicSignatureV4, + ExtrinsicUnknown, + ExtrinsicV4, + ImmortalEra, + MortalEra, + MultiSignature, + Signature, + SignerPayload, + Sr25519Signature, +} from '@polkadot/types/interfaces/extrinsics'; +import type { + AssetOptions, + Owner, + PermissionLatest, + PermissionVersions, + PermissionsV1, +} from '@polkadot/types/interfaces/genericAsset'; +import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt'; +import type { + AuthorityIndex, + AuthorityList, + AuthoritySet, + AuthoritySetChange, + AuthoritySetChanges, + AuthorityWeight, + DelayKind, + DelayKindBest, + EncodedFinalityProofs, + ForkTreePendingChange, + ForkTreePendingChangeNode, + GrandpaCommit, + GrandpaEquivocation, + GrandpaEquivocationProof, + GrandpaEquivocationValue, + GrandpaJustification, + GrandpaPrecommit, + GrandpaPrevote, + GrandpaSignedPrecommit, + JustificationNotification, + KeyOwnerProof, + NextAuthority, + PendingChange, + PendingPause, + PendingResume, + Precommits, + Prevotes, + ReportedRoundStates, + RoundState, + SetId, + StoredPendingChange, + StoredState, +} from '@polkadot/types/interfaces/grandpa'; +import type { + AuthIndex, + AuthoritySignature, + Heartbeat, + HeartbeatTo244, + OpaqueMultiaddr, + OpaqueNetworkState, + OpaquePeerId, +} from '@polkadot/types/interfaces/imOnline'; +import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery'; +import type { + ErrorMetadataLatest, + ErrorMetadataV10, + ErrorMetadataV11, + ErrorMetadataV12, + ErrorMetadataV13, + ErrorMetadataV14, + ErrorMetadataV9, + EventMetadataLatest, + EventMetadataV10, + EventMetadataV11, + EventMetadataV12, + EventMetadataV13, + EventMetadataV14, + EventMetadataV9, + ExtrinsicMetadataLatest, + ExtrinsicMetadataV11, + ExtrinsicMetadataV12, + ExtrinsicMetadataV13, + ExtrinsicMetadataV14, + FunctionArgumentMetadataLatest, + FunctionArgumentMetadataV10, + FunctionArgumentMetadataV11, + FunctionArgumentMetadataV12, + FunctionArgumentMetadataV13, + FunctionArgumentMetadataV14, + FunctionArgumentMetadataV9, + FunctionMetadataLatest, + FunctionMetadataV10, + FunctionMetadataV11, + FunctionMetadataV12, + FunctionMetadataV13, + FunctionMetadataV14, + FunctionMetadataV9, + MetadataAll, + MetadataLatest, + MetadataV10, + MetadataV11, + MetadataV12, + MetadataV13, + MetadataV14, + MetadataV9, + ModuleConstantMetadataV10, + ModuleConstantMetadataV11, + ModuleConstantMetadataV12, + ModuleConstantMetadataV13, + ModuleConstantMetadataV9, + ModuleMetadataV10, + ModuleMetadataV11, + ModuleMetadataV12, + ModuleMetadataV13, + ModuleMetadataV9, + OpaqueMetadata, + PalletCallMetadataLatest, + PalletCallMetadataV14, + PalletConstantMetadataLatest, + PalletConstantMetadataV14, + PalletErrorMetadataLatest, + PalletErrorMetadataV14, + PalletEventMetadataLatest, + PalletEventMetadataV14, + PalletMetadataLatest, + PalletMetadataV14, + PalletStorageMetadataLatest, + PalletStorageMetadataV14, + PortableType, + PortableTypeV14, + SignedExtensionMetadataLatest, + SignedExtensionMetadataV14, + StorageEntryMetadataLatest, + StorageEntryMetadataV10, + StorageEntryMetadataV11, + StorageEntryMetadataV12, + StorageEntryMetadataV13, + StorageEntryMetadataV14, + StorageEntryMetadataV9, + StorageEntryModifierLatest, + StorageEntryModifierV10, + StorageEntryModifierV11, + StorageEntryModifierV12, + StorageEntryModifierV13, + StorageEntryModifierV14, + StorageEntryModifierV9, + StorageEntryTypeLatest, + StorageEntryTypeV10, + StorageEntryTypeV11, + StorageEntryTypeV12, + StorageEntryTypeV13, + StorageEntryTypeV14, + StorageEntryTypeV9, + StorageHasher, + StorageHasherV10, + StorageHasherV11, + StorageHasherV12, + StorageHasherV13, + StorageHasherV14, + StorageHasherV9, + StorageMetadataV10, + StorageMetadataV11, + StorageMetadataV12, + StorageMetadataV13, + StorageMetadataV9, +} from '@polkadot/types/interfaces/metadata'; +import type { + MmrBatchProof, + MmrEncodableOpaqueLeaf, + MmrError, + MmrLeafBatchProof, + MmrLeafIndex, + MmrLeafProof, + MmrNodeIndex, + MmrProof, +} from '@polkadot/types/interfaces/mmr'; +import type { NpApiError } from '@polkadot/types/interfaces/nompools'; +import type { StorageKind } from '@polkadot/types/interfaces/offchain'; +import type { + DeferredOffenceOf, + Kind, + OffenceDetails, + Offender, + OpaqueTimeSlot, + ReportIdOf, + Reporter, +} from '@polkadot/types/interfaces/offences'; +import type { + AbridgedCandidateReceipt, + AbridgedHostConfiguration, + AbridgedHrmpChannel, + AssignmentId, + AssignmentKind, + AttestedCandidate, + AuctionIndex, + AuthorityDiscoveryId, + AvailabilityBitfield, + AvailabilityBitfieldRecord, + BackedCandidate, + Bidder, + BufferedSessionChange, + CandidateCommitments, + CandidateDescriptor, + CandidateEvent, + CandidateHash, + CandidateInfo, + CandidatePendingAvailability, + CandidateReceipt, + CollatorId, + CollatorSignature, + CommittedCandidateReceipt, + CoreAssignment, + CoreIndex, + CoreOccupied, + CoreState, + DisputeLocation, + DisputeResult, + DisputeState, + DisputeStatement, + DisputeStatementSet, + DoubleVoteReport, + DownwardMessage, + ExplicitDisputeStatement, + GlobalValidationData, + GlobalValidationSchedule, + GroupIndex, + GroupRotationInfo, + HeadData, + HostConfiguration, + HrmpChannel, + HrmpChannelId, + HrmpOpenChannelRequest, + InboundDownwardMessage, + InboundHrmpMessage, + InboundHrmpMessages, + IncomingParachain, + IncomingParachainDeploy, + IncomingParachainFixed, + InvalidDisputeStatementKind, + LeasePeriod, + LeasePeriodOf, + LocalValidationData, + MessageIngestionType, + MessageQueueChain, + MessagingStateSnapshot, + MessagingStateSnapshotEgressEntry, + MultiDisputeStatementSet, + NewBidder, + OccupiedCore, + OccupiedCoreAssumption, + OldV1SessionInfo, + OutboundHrmpMessage, + ParaGenesisArgs, + ParaId, + ParaInfo, + ParaLifecycle, + ParaPastCodeMeta, + ParaScheduling, + ParaValidatorIndex, + ParachainDispatchOrigin, + ParachainInherentData, + ParachainProposal, + ParachainsInherentData, + ParathreadClaim, + ParathreadClaimQueue, + ParathreadEntry, + PersistedValidationData, + PvfCheckStatement, + QueuedParathread, + RegisteredParachainInfo, + RelayBlockNumber, + RelayChainBlockNumber, + RelayChainHash, + RelayHash, + Remark, + ReplacementTimes, + Retriable, + ScheduledCore, + Scheduling, + ScrapedOnChainVotes, + ServiceQuality, + SessionInfo, + SessionInfoValidatorGroup, + SignedAvailabilityBitfield, + SignedAvailabilityBitfields, + SigningContext, + SlotRange, + SlotRange10, + Statement, + SubId, + SystemInherentData, + TransientValidationData, + UpgradeGoAhead, + UpgradeRestriction, + UpwardMessage, + ValidDisputeStatementKind, + ValidationCode, + ValidationCodeHash, + ValidationData, + ValidationDataType, + ValidationFunctionParams, + ValidatorSignature, + ValidityAttestation, + VecInboundHrmpMessage, + WinnersData, + WinnersData10, + WinnersDataTuple, + WinnersDataTuple10, + WinningData, + WinningData10, + WinningDataEntry, +} from '@polkadot/types/interfaces/parachains'; +import type { + FeeDetails, + InclusionFee, + RuntimeDispatchInfo, + RuntimeDispatchInfoV1, + RuntimeDispatchInfoV2, +} from '@polkadot/types/interfaces/payment'; +import type { Approvals } from '@polkadot/types/interfaces/poll'; +import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy'; +import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase'; +import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; +import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; +import type { + AccountId, + AccountId20, + AccountId32, + AccountId33, + AccountIdOf, + AccountIndex, + Address, + AssetId, + Balance, + BalanceOf, + Block, + BlockNumber, + BlockNumberFor, + BlockNumberOf, + Call, + CallHash, + CallHashOf, + ChangesTrieConfiguration, + ChangesTrieSignal, + CodecHash, + Consensus, + ConsensusEngineId, + CrateVersion, + Digest, + DigestItem, + EncodedJustification, + ExtrinsicsWeight, + Fixed128, + Fixed64, + FixedI128, + FixedI64, + FixedU128, + FixedU64, + H1024, + H128, + H160, + H2048, + H256, + H32, + H512, + H64, + Hash, + Header, + HeaderPartial, + I32F32, + Index, + IndicesLookupSource, + Justification, + Justifications, + KeyTypeId, + KeyValue, + LockIdentifier, + LookupSource, + LookupTarget, + ModuleId, + Moment, + MultiAddress, + MultiSigner, + OpaqueCall, + Origin, + OriginCaller, + PalletId, + PalletVersion, + PalletsOrigin, + Pays, + PerU16, + Perbill, + Percent, + Permill, + Perquintill, + Phantom, + PhantomData, + PreRuntime, + Releases, + RuntimeCall, + RuntimeDbWeight, + RuntimeEvent, + Seal, + SealV0, + SignedBlock, + SignedBlockWithJustification, + SignedBlockWithJustifications, + Slot, + SlotDuration, + StorageData, + StorageInfo, + StorageProof, + TransactionInfo, + TransactionLongevity, + TransactionPriority, + TransactionStorageProof, + TransactionTag, + U32F32, + ValidatorId, + ValidatorIdOf, + Weight, + WeightMultiplier, + WeightV0, + WeightV1, + WeightV2, +} from '@polkadot/types/interfaces/runtime'; +import type { + Si0Field, + Si0LookupTypeId, + Si0Path, + Si0Type, + Si0TypeDef, + Si0TypeDefArray, + Si0TypeDefBitSequence, + Si0TypeDefCompact, + Si0TypeDefComposite, + Si0TypeDefPhantom, + Si0TypeDefPrimitive, + Si0TypeDefSequence, + Si0TypeDefTuple, + Si0TypeDefVariant, + Si0TypeParameter, + Si0Variant, + Si1Field, + Si1LookupTypeId, + Si1Path, + Si1Type, + Si1TypeDef, + Si1TypeDefArray, + Si1TypeDefBitSequence, + Si1TypeDefCompact, + Si1TypeDefComposite, + Si1TypeDefPrimitive, + Si1TypeDefSequence, + Si1TypeDefTuple, + Si1TypeDefVariant, + Si1TypeParameter, + Si1Variant, + SiField, + SiLookupTypeId, + SiPath, + SiType, + SiTypeDef, + SiTypeDefArray, + SiTypeDefBitSequence, + SiTypeDefCompact, + SiTypeDefComposite, + SiTypeDefPrimitive, + SiTypeDefSequence, + SiTypeDefTuple, + SiTypeDefVariant, + SiTypeParameter, + SiVariant, +} from '@polkadot/types/interfaces/scaleInfo'; +import type { + Period, + Priority, + SchedulePeriod, + SchedulePriority, + Scheduled, + ScheduledTo254, + TaskAddress, +} from '@polkadot/types/interfaces/scheduler'; +import type { + BeefyKey, + FullIdentification, + IdentificationTuple, + Keys, + MembershipProof, + SessionIndex, + SessionKeys1, + SessionKeys10, + SessionKeys10B, + SessionKeys2, + SessionKeys3, + SessionKeys4, + SessionKeys5, + SessionKeys6, + SessionKeys6B, + SessionKeys7, + SessionKeys7B, + SessionKeys8, + SessionKeys8B, + SessionKeys9, + SessionKeys9B, + ValidatorCount, +} from '@polkadot/types/interfaces/session'; +import type { + Bid, + BidKind, + SocietyJudgement, + SocietyVote, + StrikeCount, + VouchingStatus, +} from '@polkadot/types/interfaces/society'; +import type { + ActiveEraInfo, + CompactAssignments, + CompactAssignmentsTo257, + CompactAssignmentsTo265, + CompactAssignmentsWith16, + CompactAssignmentsWith24, + CompactScore, + CompactScoreCompact, + ElectionCompute, + ElectionPhase, + ElectionResult, + ElectionScore, + ElectionSize, + ElectionStatus, + EraIndex, + EraPoints, + EraRewardPoints, + EraRewards, + Exposure, + ExtendedBalance, + Forcing, + IndividualExposure, + KeyType, + MomentOf, + Nominations, + NominatorIndex, + NominatorIndexCompact, + OffchainAccuracy, + OffchainAccuracyCompact, + PhragmenScore, + Points, + RawSolution, + RawSolutionTo265, + RawSolutionWith16, + RawSolutionWith24, + ReadySolution, + RewardDestination, + RewardPoint, + RoundSnapshot, + SeatHolder, + SignedSubmission, + SignedSubmissionOf, + SignedSubmissionTo276, + SlashJournalEntry, + SlashingSpans, + SlashingSpansTo204, + SolutionOrSnapshotSize, + SolutionSupport, + SolutionSupports, + SpanIndex, + SpanRecord, + StakingLedger, + StakingLedgerTo223, + StakingLedgerTo240, + SubmissionIndicesOf, + Supports, + UnappliedSlash, + UnappliedSlashOther, + UnlockChunk, + ValidatorIndex, + ValidatorIndexCompact, + ValidatorPrefs, + ValidatorPrefsTo145, + ValidatorPrefsTo196, + ValidatorPrefsWithBlocked, + ValidatorPrefsWithCommission, + VoteWeight, + Voter, +} from '@polkadot/types/interfaces/staking'; +import type { + ApiId, + BlockTrace, + BlockTraceEvent, + BlockTraceEventData, + BlockTraceSpan, + KeyValueOption, + MigrationStatusResult, + ReadProof, + RuntimeVersion, + RuntimeVersionApi, + RuntimeVersionPartial, + RuntimeVersionPre3, + RuntimeVersionPre4, + SpecVersion, + StorageChangeSet, + TraceBlockResponse, + TraceError, +} from '@polkadot/types/interfaces/state'; +import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; +import type { + AccountInfo, + AccountInfoWithDualRefCount, + AccountInfoWithProviders, + AccountInfoWithRefCount, + AccountInfoWithRefCountU8, + AccountInfoWithTripleRefCount, + ApplyExtrinsicResult, + ApplyExtrinsicResultPre6, + ArithmeticError, + BlockLength, + BlockWeights, + ChainProperties, + ChainType, + ConsumedWeight, + DigestOf, + DispatchClass, + DispatchError, + DispatchErrorModule, + DispatchErrorModulePre6, + DispatchErrorModuleU8, + DispatchErrorModuleU8a, + DispatchErrorPre6, + DispatchErrorPre6First, + DispatchErrorTo198, + DispatchInfo, + DispatchInfoTo190, + DispatchInfoTo244, + DispatchOutcome, + DispatchOutcomePre6, + DispatchResult, + DispatchResultOf, + DispatchResultTo198, + Event, + EventId, + EventIndex, + EventRecord, + Health, + InvalidTransaction, + Key, + LastRuntimeUpgradeInfo, + NetworkState, + NetworkStatePeerset, + NetworkStatePeersetInfo, + NodeRole, + NotConnectedPeer, + Peer, + PeerEndpoint, + PeerEndpointAddr, + PeerInfo, + PeerPing, + PerDispatchClassU32, + PerDispatchClassWeight, + PerDispatchClassWeightsPerClass, + Phase, + RawOrigin, + RefCount, + RefCountTo259, + SyncState, + SystemOrigin, + TokenError, + TransactionValidityError, + TransactionalError, + UnknownTransaction, + WeightPerClass, +} from '@polkadot/types/interfaces/system'; +import type { + Bounty, + BountyIndex, + BountyStatus, + BountyStatusActive, + BountyStatusCuratorProposed, + BountyStatusPendingPayout, + OpenTip, + OpenTipFinderTo225, + OpenTipTip, + OpenTipTo225, + TreasuryProposal, +} from '@polkadot/types/interfaces/treasury'; +import type { Multiplier } from '@polkadot/types/interfaces/txpayment'; +import type { TransactionSource, TransactionValidity, ValidTransaction } from '@polkadot/types/interfaces/txqueue'; +import type { + ClassDetails, + ClassId, + ClassMetadata, + DepositBalance, + DepositBalanceOf, + DestroyWitness, + InstanceDetails, + InstanceId, + InstanceMetadata, +} from '@polkadot/types/interfaces/uniques'; +import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; +import type { VestingInfo } from '@polkadot/types/interfaces/vesting'; +import type { + AssetInstance, + AssetInstanceV0, + AssetInstanceV1, + AssetInstanceV2, + BodyId, + BodyPart, + DoubleEncodedCall, + Fungibility, + FungibilityV0, + FungibilityV1, + FungibilityV2, + InboundStatus, + InstructionV2, + InteriorMultiLocation, + Junction, + JunctionV0, + JunctionV1, + JunctionV2, + Junctions, + JunctionsV1, + JunctionsV2, + MultiAsset, + MultiAssetFilter, + MultiAssetFilterV1, + MultiAssetFilterV2, + MultiAssetV0, + MultiAssetV1, + MultiAssetV2, + MultiAssets, + MultiAssetsV1, + MultiAssetsV2, + MultiLocation, + MultiLocationV0, + MultiLocationV1, + MultiLocationV2, + NetworkId, + OriginKindV0, + OriginKindV1, + OriginKindV2, + OutboundStatus, + Outcome, + QueryId, + QueryStatus, + QueueConfigData, + Response, + ResponseV0, + ResponseV1, + ResponseV2, + ResponseV2Error, + ResponseV2Result, + VersionMigrationStage, + VersionedMultiAsset, + VersionedMultiAssets, + VersionedMultiLocation, + VersionedResponse, + VersionedXcm, + WeightLimitV2, + WildFungibility, + WildFungibilityV0, + WildFungibilityV1, + WildFungibilityV2, + WildMultiAsset, + WildMultiAssetV1, + WildMultiAssetV2, + Xcm, + XcmAssetId, + XcmError, + XcmErrorV0, + XcmErrorV1, + XcmErrorV2, + XcmOrder, + XcmOrderV0, + XcmOrderV1, + XcmOrderV2, + XcmOrigin, + XcmOriginKind, + XcmV0, + XcmV1, + XcmV2, + XcmVersion, + XcmpMessageFormat, +} from '@polkadot/types/interfaces/xcm'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + AbridgedCandidateReceipt: AbridgedCandidateReceipt; + AbridgedHostConfiguration: AbridgedHostConfiguration; + AbridgedHrmpChannel: AbridgedHrmpChannel; + AccountData: AccountData; + AccountId: AccountId; + AccountId20: AccountId20; + AccountId32: AccountId32; + AccountId33: AccountId33; + AccountIdOf: AccountIdOf; + AccountIndex: AccountIndex; + AccountInfo: AccountInfo; + AccountInfoWithDualRefCount: AccountInfoWithDualRefCount; + AccountInfoWithProviders: AccountInfoWithProviders; + AccountInfoWithRefCount: AccountInfoWithRefCount; + AccountInfoWithRefCountU8: AccountInfoWithRefCountU8; + AccountInfoWithTripleRefCount: AccountInfoWithTripleRefCount; + AccountStatus: AccountStatus; + AccountValidity: AccountValidity; + AccountVote: AccountVote; + AccountVoteSplit: AccountVoteSplit; + AccountVoteStandard: AccountVoteStandard; + ActiveEraInfo: ActiveEraInfo; + ActiveGilt: ActiveGilt; + ActiveGiltsTotal: ActiveGiltsTotal; + ActiveIndex: ActiveIndex; + ActiveRecovery: ActiveRecovery; + Address: Address; + Address20: Address20; + Address32: Address32; + AliveContractInfo: AliveContractInfo; + AllowedSlots: AllowedSlots; + AnySignature: AnySignature; + ApiId: ApiId; + ApplyExtrinsicResult: ApplyExtrinsicResult; + ApplyExtrinsicResultPre6: ApplyExtrinsicResultPre6; + ApprovalFlag: ApprovalFlag; + Approvals: Approvals; + ArithmeticError: ArithmeticError; + Assertion: Assertion; + AssetApproval: AssetApproval; + AssetApprovalKey: AssetApprovalKey; + AssetBalance: AssetBalance; + AssetDestroyWitness: AssetDestroyWitness; + AssetDetails: AssetDetails; + AssetId: AssetId; + AssetInstance: AssetInstance; + AssetInstanceV0: AssetInstanceV0; + AssetInstanceV1: AssetInstanceV1; + AssetInstanceV2: AssetInstanceV2; + AssetMetadata: AssetMetadata; + AssetOptions: AssetOptions; + AssignmentId: AssignmentId; + AssignmentKind: AssignmentKind; + AttestedCandidate: AttestedCandidate; + AuctionIndex: AuctionIndex; + AuthIndex: AuthIndex; + AuthorityDiscoveryId: AuthorityDiscoveryId; + AuthorityId: AuthorityId; + AuthorityIndex: AuthorityIndex; + AuthorityList: AuthorityList; + AuthoritySet: AuthoritySet; + AuthoritySetChange: AuthoritySetChange; + AuthoritySetChanges: AuthoritySetChanges; + AuthoritySignature: AuthoritySignature; + AuthorityWeight: AuthorityWeight; + AvailabilityBitfield: AvailabilityBitfield; + AvailabilityBitfieldRecord: AvailabilityBitfieldRecord; + BabeAuthorityWeight: BabeAuthorityWeight; + BabeBlockWeight: BabeBlockWeight; + BabeEpochConfiguration: BabeEpochConfiguration; + BabeEquivocationProof: BabeEquivocationProof; + BabeGenesisConfiguration: BabeGenesisConfiguration; + BabeGenesisConfigurationV1: BabeGenesisConfigurationV1; + BabeWeight: BabeWeight; + BackedCandidate: BackedCandidate; + Balance: Balance; + BalanceLock: BalanceLock; + BalanceLockTo212: BalanceLockTo212; + BalanceOf: BalanceOf; + BalanceStatus: BalanceStatus; + BeefyAuthoritySet: BeefyAuthoritySet; + BeefyCommitment: BeefyCommitment; + BeefyId: BeefyId; + BeefyKey: BeefyKey; + BeefyNextAuthoritySet: BeefyNextAuthoritySet; + BeefyPayload: BeefyPayload; + BeefyPayloadId: BeefyPayloadId; + BeefySignedCommitment: BeefySignedCommitment; + BenchmarkBatch: BenchmarkBatch; + BenchmarkConfig: BenchmarkConfig; + BenchmarkList: BenchmarkList; + BenchmarkMetadata: BenchmarkMetadata; + BenchmarkParameter: BenchmarkParameter; + BenchmarkResult: BenchmarkResult; + Bid: Bid; + Bidder: Bidder; + BidKind: BidKind; + BitVec: BitVec; + Block: Block; + BlockAttestations: BlockAttestations; + BlockHash: BlockHash; + BlockLength: BlockLength; + BlockNumber: BlockNumber; + BlockNumberFor: BlockNumberFor; + BlockNumberOf: BlockNumberOf; + BlockStats: BlockStats; + BlockTrace: BlockTrace; + BlockTraceEvent: BlockTraceEvent; + BlockTraceEventData: BlockTraceEventData; + BlockTraceSpan: BlockTraceSpan; + BlockV0: BlockV0; + BlockV1: BlockV1; + BlockV2: BlockV2; + BlockWeights: BlockWeights; + BodyId: BodyId; + BodyPart: BodyPart; + bool: bool; + Bool: Bool; + Bounty: Bounty; + BountyIndex: BountyIndex; + BountyStatus: BountyStatus; + BountyStatusActive: BountyStatusActive; + BountyStatusCuratorProposed: BountyStatusCuratorProposed; + BountyStatusPendingPayout: BountyStatusPendingPayout; + BridgedBlockHash: BridgedBlockHash; + BridgedBlockNumber: BridgedBlockNumber; + BridgedHeader: BridgedHeader; + BridgeMessageId: BridgeMessageId; + BufferedSessionChange: BufferedSessionChange; + Bytes: Bytes; + Call: Call; + CallHash: CallHash; + CallHashOf: CallHashOf; + CallIndex: CallIndex; + CallOrigin: CallOrigin; + CandidateCommitments: CandidateCommitments; + CandidateDescriptor: CandidateDescriptor; + CandidateEvent: CandidateEvent; + CandidateHash: CandidateHash; + CandidateInfo: CandidateInfo; + CandidatePendingAvailability: CandidatePendingAvailability; + CandidateReceipt: CandidateReceipt; + ChainId: ChainId; + ChainProperties: ChainProperties; + ChainType: ChainType; + ChangesTrieConfiguration: ChangesTrieConfiguration; + ChangesTrieSignal: ChangesTrieSignal; + CheckInherentsResult: CheckInherentsResult; + ClassDetails: ClassDetails; + ClassId: ClassId; + ClassMetadata: ClassMetadata; + CodecHash: CodecHash; + CodeHash: CodeHash; + CodeSource: CodeSource; + CodeUploadRequest: CodeUploadRequest; + CodeUploadResult: CodeUploadResult; + CodeUploadResultValue: CodeUploadResultValue; + CollationInfo: CollationInfo; + CollationInfoV1: CollationInfoV1; + CollatorId: CollatorId; + CollatorSignature: CollatorSignature; + CollectiveOrigin: CollectiveOrigin; + CommittedCandidateReceipt: CommittedCandidateReceipt; + CompactAssignments: CompactAssignments; + CompactAssignmentsTo257: CompactAssignmentsTo257; + CompactAssignmentsTo265: CompactAssignmentsTo265; + CompactAssignmentsWith16: CompactAssignmentsWith16; + CompactAssignmentsWith24: CompactAssignmentsWith24; + CompactScore: CompactScore; + CompactScoreCompact: CompactScoreCompact; + ConfigData: ConfigData; + Consensus: Consensus; + ConsensusEngineId: ConsensusEngineId; + ConsumedWeight: ConsumedWeight; + ContractCallFlags: ContractCallFlags; + ContractCallRequest: ContractCallRequest; + ContractConstructorSpecLatest: ContractConstructorSpecLatest; + ContractConstructorSpecV0: ContractConstructorSpecV0; + ContractConstructorSpecV1: ContractConstructorSpecV1; + ContractConstructorSpecV2: ContractConstructorSpecV2; + ContractConstructorSpecV3: ContractConstructorSpecV3; + ContractContractSpecV0: ContractContractSpecV0; + ContractContractSpecV1: ContractContractSpecV1; + ContractContractSpecV2: ContractContractSpecV2; + ContractContractSpecV3: ContractContractSpecV3; + ContractContractSpecV4: ContractContractSpecV4; + ContractCryptoHasher: ContractCryptoHasher; + ContractDiscriminant: ContractDiscriminant; + ContractDisplayName: ContractDisplayName; + ContractEventParamSpecLatest: ContractEventParamSpecLatest; + ContractEventParamSpecV0: ContractEventParamSpecV0; + ContractEventParamSpecV2: ContractEventParamSpecV2; + ContractEventSpecLatest: ContractEventSpecLatest; + ContractEventSpecV0: ContractEventSpecV0; + ContractEventSpecV1: ContractEventSpecV1; + ContractEventSpecV2: ContractEventSpecV2; + ContractExecResult: ContractExecResult; + ContractExecResultOk: ContractExecResultOk; + ContractExecResultResult: ContractExecResultResult; + ContractExecResultSuccessTo255: ContractExecResultSuccessTo255; + ContractExecResultSuccessTo260: ContractExecResultSuccessTo260; + ContractExecResultTo255: ContractExecResultTo255; + ContractExecResultTo260: ContractExecResultTo260; + ContractExecResultTo267: ContractExecResultTo267; + ContractExecResultU64: ContractExecResultU64; + ContractInfo: ContractInfo; + ContractInstantiateResult: ContractInstantiateResult; + ContractInstantiateResultTo267: ContractInstantiateResultTo267; + ContractInstantiateResultTo299: ContractInstantiateResultTo299; + ContractInstantiateResultU64: ContractInstantiateResultU64; + ContractLayoutArray: ContractLayoutArray; + ContractLayoutCell: ContractLayoutCell; + ContractLayoutEnum: ContractLayoutEnum; + ContractLayoutHash: ContractLayoutHash; + ContractLayoutHashingStrategy: ContractLayoutHashingStrategy; + ContractLayoutKey: ContractLayoutKey; + ContractLayoutStruct: ContractLayoutStruct; + ContractLayoutStructField: ContractLayoutStructField; + ContractMessageParamSpecLatest: ContractMessageParamSpecLatest; + ContractMessageParamSpecV0: ContractMessageParamSpecV0; + ContractMessageParamSpecV2: ContractMessageParamSpecV2; + ContractMessageSpecLatest: ContractMessageSpecLatest; + ContractMessageSpecV0: ContractMessageSpecV0; + ContractMessageSpecV1: ContractMessageSpecV1; + ContractMessageSpecV2: ContractMessageSpecV2; + ContractMetadata: ContractMetadata; + ContractMetadataLatest: ContractMetadataLatest; + ContractMetadataV0: ContractMetadataV0; + ContractMetadataV1: ContractMetadataV1; + ContractMetadataV2: ContractMetadataV2; + ContractMetadataV3: ContractMetadataV3; + ContractMetadataV4: ContractMetadataV4; + ContractProject: ContractProject; + ContractProjectContract: ContractProjectContract; + ContractProjectInfo: ContractProjectInfo; + ContractProjectSource: ContractProjectSource; + ContractProjectV0: ContractProjectV0; + ContractReturnFlags: ContractReturnFlags; + ContractSelector: ContractSelector; + ContractStorageKey: ContractStorageKey; + ContractStorageLayout: ContractStorageLayout; + ContractTypeSpec: ContractTypeSpec; + Conviction: Conviction; + CoreAssignment: CoreAssignment; + CoreIndex: CoreIndex; + CoreOccupied: CoreOccupied; + CoreState: CoreState; + CrateVersion: CrateVersion; + CreatedBlock: CreatedBlock; + Data: Data; + DeferredOffenceOf: DeferredOffenceOf; + DefunctVoter: DefunctVoter; + DelayKind: DelayKind; + DelayKindBest: DelayKindBest; + Delegations: Delegations; + DeletedContract: DeletedContract; + DeliveredMessages: DeliveredMessages; + DepositBalance: DepositBalance; + DepositBalanceOf: DepositBalanceOf; + DestroyWitness: DestroyWitness; + Digest: Digest; + DigestItem: DigestItem; + DigestOf: DigestOf; + DirectRequestStatus: DirectRequestStatus; + DiscordValidationData: DiscordValidationData; + DispatchClass: DispatchClass; + DispatchError: DispatchError; + DispatchErrorModule: DispatchErrorModule; + DispatchErrorModulePre6: DispatchErrorModulePre6; + DispatchErrorModuleU8: DispatchErrorModuleU8; + DispatchErrorModuleU8a: DispatchErrorModuleU8a; + DispatchErrorPre6: DispatchErrorPre6; + DispatchErrorPre6First: DispatchErrorPre6First; + DispatchErrorTo198: DispatchErrorTo198; + DispatchFeePayment: DispatchFeePayment; + DispatchInfo: DispatchInfo; + DispatchInfoTo190: DispatchInfoTo190; + DispatchInfoTo244: DispatchInfoTo244; + DispatchOutcome: DispatchOutcome; + DispatchOutcomePre6: DispatchOutcomePre6; + DispatchResult: DispatchResult; + DispatchResultOf: DispatchResultOf; + DispatchResultTo198: DispatchResultTo198; + DisputeLocation: DisputeLocation; + DisputeResult: DisputeResult; + DisputeState: DisputeState; + DisputeStatement: DisputeStatement; + DisputeStatementSet: DisputeStatementSet; + DoubleEncodedCall: DoubleEncodedCall; + DoubleVoteReport: DoubleVoteReport; + DownwardMessage: DownwardMessage; + EcdsaSignature: EcdsaSignature; + Ed25519Signature: Ed25519Signature; + EIP1559Transaction: EIP1559Transaction; + EIP2930Transaction: EIP2930Transaction; + ElectionCompute: ElectionCompute; + ElectionPhase: ElectionPhase; + ElectionResult: ElectionResult; + ElectionScore: ElectionScore; + ElectionSize: ElectionSize; + ElectionStatus: ElectionStatus; + EncodedFinalityProofs: EncodedFinalityProofs; + EncodedJustification: EncodedJustification; + Epoch: Epoch; + EpochAuthorship: EpochAuthorship; + Era: Era; + EraIndex: EraIndex; + EraPoints: EraPoints; + EraRewardPoints: EraRewardPoints; + EraRewards: EraRewards; + ErrorMetadataLatest: ErrorMetadataLatest; + ErrorMetadataV10: ErrorMetadataV10; + ErrorMetadataV11: ErrorMetadataV11; + ErrorMetadataV12: ErrorMetadataV12; + ErrorMetadataV13: ErrorMetadataV13; + ErrorMetadataV14: ErrorMetadataV14; + ErrorMetadataV9: ErrorMetadataV9; + EthAccessList: EthAccessList; + EthAccessListItem: EthAccessListItem; + EthAccount: EthAccount; + EthAddress: EthAddress; + EthBlock: EthBlock; + EthBloom: EthBloom; + EthCallRequest: EthCallRequest; + EthereumAccountId: EthereumAccountId; + EthereumAddress: EthereumAddress; + EthereumLookupSource: EthereumLookupSource; + EthereumSignature: EthereumSignature; + EthFeeHistory: EthFeeHistory; + EthFilter: EthFilter; + EthFilterAddress: EthFilterAddress; + EthFilterChanges: EthFilterChanges; + EthFilterTopic: EthFilterTopic; + EthFilterTopicEntry: EthFilterTopicEntry; + EthFilterTopicInner: EthFilterTopicInner; + EthHeader: EthHeader; + EthLog: EthLog; + EthReceipt: EthReceipt; + EthReceiptV0: EthReceiptV0; + EthReceiptV3: EthReceiptV3; + EthRichBlock: EthRichBlock; + EthRichHeader: EthRichHeader; + EthStorageProof: EthStorageProof; + EthSubKind: EthSubKind; + EthSubParams: EthSubParams; + EthSubResult: EthSubResult; + EthSyncInfo: EthSyncInfo; + EthSyncStatus: EthSyncStatus; + EthTransaction: EthTransaction; + EthTransactionAction: EthTransactionAction; + EthTransactionCondition: EthTransactionCondition; + EthTransactionRequest: EthTransactionRequest; + EthTransactionSignature: EthTransactionSignature; + EthTransactionStatus: EthTransactionStatus; + EthWork: EthWork; + Event: Event; + EventId: EventId; + EventIndex: EventIndex; + EventMetadataLatest: EventMetadataLatest; + EventMetadataV10: EventMetadataV10; + EventMetadataV11: EventMetadataV11; + EventMetadataV12: EventMetadataV12; + EventMetadataV13: EventMetadataV13; + EventMetadataV14: EventMetadataV14; + EventMetadataV9: EventMetadataV9; + EventRecord: EventRecord; + EvmAccount: EvmAccount; + EvmCallInfo: EvmCallInfo; + EvmCreateInfo: EvmCreateInfo; + EvmIdentity: EvmIdentity; + EvmLog: EvmLog; + EvmNetwork: EvmNetwork; + EvmVicinity: EvmVicinity; + ExecReturnValue: ExecReturnValue; + ExitError: ExitError; + ExitFatal: ExitFatal; + ExitReason: ExitReason; + ExitRevert: ExitRevert; + ExitSucceed: ExitSucceed; + ExplicitDisputeStatement: ExplicitDisputeStatement; + Exposure: Exposure; + ExtendedBalance: ExtendedBalance; + Extrinsic: Extrinsic; + ExtrinsicEra: ExtrinsicEra; + ExtrinsicMetadataLatest: ExtrinsicMetadataLatest; + ExtrinsicMetadataV11: ExtrinsicMetadataV11; + ExtrinsicMetadataV12: ExtrinsicMetadataV12; + ExtrinsicMetadataV13: ExtrinsicMetadataV13; + ExtrinsicMetadataV14: ExtrinsicMetadataV14; + ExtrinsicOrHash: ExtrinsicOrHash; + ExtrinsicPayload: ExtrinsicPayload; + ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown; + ExtrinsicPayloadV4: ExtrinsicPayloadV4; + ExtrinsicSignature: ExtrinsicSignature; + ExtrinsicSignatureV4: ExtrinsicSignatureV4; + ExtrinsicStatus: ExtrinsicStatus; + ExtrinsicsWeight: ExtrinsicsWeight; + ExtrinsicUnknown: ExtrinsicUnknown; + ExtrinsicV4: ExtrinsicV4; + f32: f32; + F32: F32; + f64: f64; + F64: F64; + FeeDetails: FeeDetails; + Fixed128: Fixed128; + Fixed64: Fixed64; + FixedI128: FixedI128; + FixedI64: FixedI64; + FixedU128: FixedU128; + FixedU64: FixedU64; + Forcing: Forcing; + ForkTreePendingChange: ForkTreePendingChange; + ForkTreePendingChangeNode: ForkTreePendingChangeNode; + FullIdentification: FullIdentification; + FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest; + FunctionArgumentMetadataV10: FunctionArgumentMetadataV10; + FunctionArgumentMetadataV11: FunctionArgumentMetadataV11; + FunctionArgumentMetadataV12: FunctionArgumentMetadataV12; + FunctionArgumentMetadataV13: FunctionArgumentMetadataV13; + FunctionArgumentMetadataV14: FunctionArgumentMetadataV14; + FunctionArgumentMetadataV9: FunctionArgumentMetadataV9; + FunctionMetadataLatest: FunctionMetadataLatest; + FunctionMetadataV10: FunctionMetadataV10; + FunctionMetadataV11: FunctionMetadataV11; + FunctionMetadataV12: FunctionMetadataV12; + FunctionMetadataV13: FunctionMetadataV13; + FunctionMetadataV14: FunctionMetadataV14; + FunctionMetadataV9: FunctionMetadataV9; + FundIndex: FundIndex; + FundInfo: FundInfo; + Fungibility: Fungibility; + FungibilityV0: FungibilityV0; + FungibilityV1: FungibilityV1; + FungibilityV2: FungibilityV2; + Gas: Gas; + GenericEventWithAccount: GenericEventWithAccount; + Getter: Getter; + GiltBid: GiltBid; + GlobalValidationData: GlobalValidationData; + GlobalValidationSchedule: GlobalValidationSchedule; + GrandpaCommit: GrandpaCommit; + GrandpaEquivocation: GrandpaEquivocation; + GrandpaEquivocationProof: GrandpaEquivocationProof; + GrandpaEquivocationValue: GrandpaEquivocationValue; + GrandpaJustification: GrandpaJustification; + GrandpaPrecommit: GrandpaPrecommit; + GrandpaPrevote: GrandpaPrevote; + GrandpaSignedPrecommit: GrandpaSignedPrecommit; + GroupIndex: GroupIndex; + GroupRotationInfo: GroupRotationInfo; + H1024: H1024; + H128: H128; + H160: H160; + H2048: H2048; + H256: H256; + H32: H32; + H512: H512; + H64: H64; + Hash: Hash; + HeadData: HeadData; + Header: Header; + HeaderPartial: HeaderPartial; + Health: Health; + Heartbeat: Heartbeat; + HeartbeatTo244: HeartbeatTo244; + HostConfiguration: HostConfiguration; + HostFnWeights: HostFnWeights; + HostFnWeightsTo264: HostFnWeightsTo264; + HrmpChannel: HrmpChannel; + HrmpChannelId: HrmpChannelId; + HrmpOpenChannelRequest: HrmpOpenChannelRequest; + i128: i128; + I128: I128; + i16: i16; + I16: I16; + i256: i256; + I256: I256; + i32: i32; + I32: I32; + I32F32: I32F32; + i64: i64; + I64: I64; + i8: i8; + I8: I8; + IdentificationTuple: IdentificationTuple; + IdentityContext: IdentityContext; + IdentityGenericEvent: IdentityGenericEvent; + IdentityMultiSignature: IdentityMultiSignature; + IdentityString: IdentityString; + ImmortalEra: ImmortalEra; + ImportedAux: ImportedAux; + InboundDownwardMessage: InboundDownwardMessage; + InboundHrmpMessage: InboundHrmpMessage; + InboundHrmpMessages: InboundHrmpMessages; + InboundLaneData: InboundLaneData; + InboundRelayer: InboundRelayer; + InboundStatus: InboundStatus; + IncludedBlocks: IncludedBlocks; + InclusionFee: InclusionFee; + IncomingParachain: IncomingParachain; + IncomingParachainDeploy: IncomingParachainDeploy; + IncomingParachainFixed: IncomingParachainFixed; + Index: Index; + IndicesLookupSource: IndicesLookupSource; + IndividualExposure: IndividualExposure; + InherentData: InherentData; + InherentIdentifier: InherentIdentifier; + InitializationData: InitializationData; + InstanceDetails: InstanceDetails; + InstanceId: InstanceId; + InstanceMetadata: InstanceMetadata; + InstantiateRequest: InstantiateRequest; + InstantiateRequestV1: InstantiateRequestV1; + InstantiateRequestV2: InstantiateRequestV2; + InstantiateReturnValue: InstantiateReturnValue; + InstantiateReturnValueOk: InstantiateReturnValueOk; + InstantiateReturnValueTo267: InstantiateReturnValueTo267; + InstructionV2: InstructionV2; + InstructionWeights: InstructionWeights; + InteriorMultiLocation: InteriorMultiLocation; + InvalidDisputeStatementKind: InvalidDisputeStatementKind; + InvalidTransaction: InvalidTransaction; + Json: Json; + Junction: Junction; + Junctions: Junctions; + JunctionsV1: JunctionsV1; + JunctionsV2: JunctionsV2; + JunctionV0: JunctionV0; + JunctionV1: JunctionV1; + JunctionV2: JunctionV2; + Justification: Justification; + JustificationNotification: JustificationNotification; + Justifications: Justifications; + Key: Key; + KeyOwnerProof: KeyOwnerProof; + Keys: Keys; + KeyType: KeyType; + KeyTypeId: KeyTypeId; + KeyValue: KeyValue; + KeyValueOption: KeyValueOption; + Kind: Kind; + LaneId: LaneId; + LastContribution: LastContribution; + LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo; + LeasePeriod: LeasePeriod; + LeasePeriodOf: LeasePeriodOf; + LegacyTransaction: LegacyTransaction; + Limits: Limits; + LimitsTo264: LimitsTo264; + LitentryIdentity: LitentryIdentity; + LitentryValidationData: LitentryValidationData; + LocalValidationData: LocalValidationData; + LockIdentifier: LockIdentifier; + LookupSource: LookupSource; + LookupTarget: LookupTarget; + LotteryConfig: LotteryConfig; + MaybeRandomness: MaybeRandomness; + MaybeVrf: MaybeVrf; + MemberCount: MemberCount; + MembershipProof: MembershipProof; + MessageData: MessageData; + MessageId: MessageId; + MessageIngestionType: MessageIngestionType; + MessageKey: MessageKey; + MessageNonce: MessageNonce; + MessageQueueChain: MessageQueueChain; + MessagesDeliveryProofOf: MessagesDeliveryProofOf; + MessagesProofOf: MessagesProofOf; + MessagingStateSnapshot: MessagingStateSnapshot; + MessagingStateSnapshotEgressEntry: MessagingStateSnapshotEgressEntry; + MetadataAll: MetadataAll; + MetadataLatest: MetadataLatest; + MetadataV10: MetadataV10; + MetadataV11: MetadataV11; + MetadataV12: MetadataV12; + MetadataV13: MetadataV13; + MetadataV14: MetadataV14; + MetadataV9: MetadataV9; + MigrationStatusResult: MigrationStatusResult; + MmrBatchProof: MmrBatchProof; + MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf; + MmrError: MmrError; + MmrLeafBatchProof: MmrLeafBatchProof; + MmrLeafIndex: MmrLeafIndex; + MmrLeafProof: MmrLeafProof; + MmrNodeIndex: MmrNodeIndex; + MmrProof: MmrProof; + MmrRootHash: MmrRootHash; + ModuleConstantMetadataV10: ModuleConstantMetadataV10; + ModuleConstantMetadataV11: ModuleConstantMetadataV11; + ModuleConstantMetadataV12: ModuleConstantMetadataV12; + ModuleConstantMetadataV13: ModuleConstantMetadataV13; + ModuleConstantMetadataV9: ModuleConstantMetadataV9; + ModuleId: ModuleId; + ModuleMetadataV10: ModuleMetadataV10; + ModuleMetadataV11: ModuleMetadataV11; + ModuleMetadataV12: ModuleMetadataV12; + ModuleMetadataV13: ModuleMetadataV13; + ModuleMetadataV9: ModuleMetadataV9; + Moment: Moment; + MomentOf: MomentOf; + MoreAttestations: MoreAttestations; + MortalEra: MortalEra; + MrEnclaveIdentifier: MrEnclaveIdentifier; + MultiAddress: MultiAddress; + MultiAsset: MultiAsset; + MultiAssetFilter: MultiAssetFilter; + MultiAssetFilterV1: MultiAssetFilterV1; + MultiAssetFilterV2: MultiAssetFilterV2; + MultiAssets: MultiAssets; + MultiAssetsV1: MultiAssetsV1; + MultiAssetsV2: MultiAssetsV2; + MultiAssetV0: MultiAssetV0; + MultiAssetV1: MultiAssetV1; + MultiAssetV2: MultiAssetV2; + MultiDisputeStatementSet: MultiDisputeStatementSet; + MultiLocation: MultiLocation; + MultiLocationV0: MultiLocationV0; + MultiLocationV1: MultiLocationV1; + MultiLocationV2: MultiLocationV2; + Multiplier: Multiplier; + Multisig: Multisig; + MultiSignature: MultiSignature; + MultiSigner: MultiSigner; + NetworkId: NetworkId; + NetworkState: NetworkState; + NetworkStatePeerset: NetworkStatePeerset; + NetworkStatePeersetInfo: NetworkStatePeersetInfo; + NewBidder: NewBidder; + NextAuthority: NextAuthority; + NextConfigDescriptor: NextConfigDescriptor; + NextConfigDescriptorV1: NextConfigDescriptorV1; + NodeRole: NodeRole; + Nominations: Nominations; + NominatorIndex: NominatorIndex; + NominatorIndexCompact: NominatorIndexCompact; + NotConnectedPeer: NotConnectedPeer; + NpApiError: NpApiError; + Null: Null; + OccupiedCore: OccupiedCore; + OccupiedCoreAssumption: OccupiedCoreAssumption; + OffchainAccuracy: OffchainAccuracy; + OffchainAccuracyCompact: OffchainAccuracyCompact; + OffenceDetails: OffenceDetails; + Offender: Offender; + OldV1SessionInfo: OldV1SessionInfo; + OpaqueCall: OpaqueCall; + OpaqueKeyOwnershipProof: OpaqueKeyOwnershipProof; + OpaqueMetadata: OpaqueMetadata; + OpaqueMultiaddr: OpaqueMultiaddr; + OpaqueNetworkState: OpaqueNetworkState; + OpaquePeerId: OpaquePeerId; + OpaqueTimeSlot: OpaqueTimeSlot; + OpenTip: OpenTip; + OpenTipFinderTo225: OpenTipFinderTo225; + OpenTipTip: OpenTipTip; + OpenTipTo225: OpenTipTo225; + OperatingMode: OperatingMode; + OptionBool: OptionBool; + Origin: Origin; + OriginCaller: OriginCaller; + OriginKindV0: OriginKindV0; + OriginKindV1: OriginKindV1; + OriginKindV2: OriginKindV2; + OutboundHrmpMessage: OutboundHrmpMessage; + OutboundLaneData: OutboundLaneData; + OutboundMessageFee: OutboundMessageFee; + OutboundPayload: OutboundPayload; + OutboundStatus: OutboundStatus; + Outcome: Outcome; + OverweightIndex: OverweightIndex; + Owner: Owner; + PageCounter: PageCounter; + PageIndexData: PageIndexData; + PalletCallMetadataLatest: PalletCallMetadataLatest; + PalletCallMetadataV14: PalletCallMetadataV14; + PalletConstantMetadataLatest: PalletConstantMetadataLatest; + PalletConstantMetadataV14: PalletConstantMetadataV14; + PalletErrorMetadataLatest: PalletErrorMetadataLatest; + PalletErrorMetadataV14: PalletErrorMetadataV14; + PalletEventMetadataLatest: PalletEventMetadataLatest; + PalletEventMetadataV14: PalletEventMetadataV14; + PalletId: PalletId; + PalletMetadataLatest: PalletMetadataLatest; + PalletMetadataV14: PalletMetadataV14; + PalletsOrigin: PalletsOrigin; + PalletStorageMetadataLatest: PalletStorageMetadataLatest; + PalletStorageMetadataV14: PalletStorageMetadataV14; + PalletVersion: PalletVersion; + ParachainDispatchOrigin: ParachainDispatchOrigin; + ParachainInherentData: ParachainInherentData; + ParachainProposal: ParachainProposal; + ParachainsInherentData: ParachainsInherentData; + ParaGenesisArgs: ParaGenesisArgs; + ParaId: ParaId; + ParaInfo: ParaInfo; + ParaLifecycle: ParaLifecycle; + Parameter: Parameter; + ParaPastCodeMeta: ParaPastCodeMeta; + ParaScheduling: ParaScheduling; + ParathreadClaim: ParathreadClaim; + ParathreadClaimQueue: ParathreadClaimQueue; + ParathreadEntry: ParathreadEntry; + ParaValidatorIndex: ParaValidatorIndex; + Pays: Pays; + Peer: Peer; + PeerEndpoint: PeerEndpoint; + PeerEndpointAddr: PeerEndpointAddr; + PeerInfo: PeerInfo; + PeerPing: PeerPing; + PendingChange: PendingChange; + PendingPause: PendingPause; + PendingResume: PendingResume; + Perbill: Perbill; + Percent: Percent; + PerDispatchClassU32: PerDispatchClassU32; + PerDispatchClassWeight: PerDispatchClassWeight; + PerDispatchClassWeightsPerClass: PerDispatchClassWeightsPerClass; + Period: Period; + Permill: Permill; + PermissionLatest: PermissionLatest; + PermissionsV1: PermissionsV1; + PermissionVersions: PermissionVersions; + Perquintill: Perquintill; + PersistedValidationData: PersistedValidationData; + PerU16: PerU16; + Phantom: Phantom; + PhantomData: PhantomData; + Phase: Phase; + PhragmenScore: PhragmenScore; + Points: Points; + PortableType: PortableType; + PortableTypeV14: PortableTypeV14; + Precommits: Precommits; + PrefabWasmModule: PrefabWasmModule; + PrefixedStorageKey: PrefixedStorageKey; + PreimageStatus: PreimageStatus; + PreimageStatusAvailable: PreimageStatusAvailable; + PreRuntime: PreRuntime; + Prevotes: Prevotes; + Priority: Priority; + PriorLock: PriorLock; + PropIndex: PropIndex; + Proposal: Proposal; + ProposalIndex: ProposalIndex; + ProxyAnnouncement: ProxyAnnouncement; + ProxyDefinition: ProxyDefinition; + ProxyState: ProxyState; + ProxyType: ProxyType; + PublicGetter: PublicGetter; + PvfCheckStatement: PvfCheckStatement; + QueryId: QueryId; + QueryStatus: QueryStatus; + QueueConfigData: QueueConfigData; + QueuedParathread: QueuedParathread; + Randomness: Randomness; + Raw: Raw; + RawAuraPreDigest: RawAuraPreDigest; + RawBabePreDigest: RawBabePreDigest; + RawBabePreDigestCompat: RawBabePreDigestCompat; + RawBabePreDigestPrimary: RawBabePreDigestPrimary; + RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159; + RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain; + RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159; + RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF; + RawBabePreDigestTo159: RawBabePreDigestTo159; + RawOrigin: RawOrigin; + RawSolution: RawSolution; + RawSolutionTo265: RawSolutionTo265; + RawSolutionWith16: RawSolutionWith16; + RawSolutionWith24: RawSolutionWith24; + RawVRFOutput: RawVRFOutput; + ReadProof: ReadProof; + ReadySolution: ReadySolution; + Reasons: Reasons; + RecoveryConfig: RecoveryConfig; + RefCount: RefCount; + RefCountTo259: RefCountTo259; + ReferendumIndex: ReferendumIndex; + ReferendumInfo: ReferendumInfo; + ReferendumInfoFinished: ReferendumInfoFinished; + ReferendumInfoTo239: ReferendumInfoTo239; + ReferendumStatus: ReferendumStatus; + RegisteredParachainInfo: RegisteredParachainInfo; + RelayBlockNumber: RelayBlockNumber; + RelayChainBlockNumber: RelayChainBlockNumber; + RelayChainHash: RelayChainHash; + RelayerId: RelayerId; + RelayHash: RelayHash; + Releases: Releases; + Remark: Remark; + Renouncing: Renouncing; + RentProjection: RentProjection; + ReplacementTimes: ReplacementTimes; + ReportedRoundStates: ReportedRoundStates; + Reporter: Reporter; + ReportIdOf: ReportIdOf; + ReserveData: ReserveData; + ReserveIdentifier: ReserveIdentifier; + Response: Response; + ResponseV0: ResponseV0; + ResponseV1: ResponseV1; + ResponseV2: ResponseV2; + ResponseV2Error: ResponseV2Error; + ResponseV2Result: ResponseV2Result; + Retriable: Retriable; + RewardDestination: RewardDestination; + RewardPoint: RewardPoint; + RoundSnapshot: RoundSnapshot; + RoundState: RoundState; + RpcMethods: RpcMethods; + RuntimeCall: RuntimeCall; + RuntimeDbWeight: RuntimeDbWeight; + RuntimeDispatchInfo: RuntimeDispatchInfo; + RuntimeDispatchInfoV1: RuntimeDispatchInfoV1; + RuntimeDispatchInfoV2: RuntimeDispatchInfoV2; + RuntimeEvent: RuntimeEvent; + RuntimeVersion: RuntimeVersion; + RuntimeVersionApi: RuntimeVersionApi; + RuntimeVersionPartial: RuntimeVersionPartial; + RuntimeVersionPre3: RuntimeVersionPre3; + RuntimeVersionPre4: RuntimeVersionPre4; + Schedule: Schedule; + Scheduled: Scheduled; + ScheduledCore: ScheduledCore; + ScheduledTo254: ScheduledTo254; + SchedulePeriod: SchedulePeriod; + SchedulePriority: SchedulePriority; + ScheduleTo212: ScheduleTo212; + ScheduleTo258: ScheduleTo258; + ScheduleTo264: ScheduleTo264; + Scheduling: Scheduling; + ScrapedOnChainVotes: ScrapedOnChainVotes; + Seal: Seal; + SealV0: SealV0; + SeatHolder: SeatHolder; + SeedOf: SeedOf; + ServiceQuality: ServiceQuality; + SessionIndex: SessionIndex; + SessionInfo: SessionInfo; + SessionInfoValidatorGroup: SessionInfoValidatorGroup; + SessionKeys1: SessionKeys1; + SessionKeys10: SessionKeys10; + SessionKeys10B: SessionKeys10B; + SessionKeys2: SessionKeys2; + SessionKeys3: SessionKeys3; + SessionKeys4: SessionKeys4; + SessionKeys5: SessionKeys5; + SessionKeys6: SessionKeys6; + SessionKeys6B: SessionKeys6B; + SessionKeys7: SessionKeys7; + SessionKeys7B: SessionKeys7B; + SessionKeys8: SessionKeys8; + SessionKeys8B: SessionKeys8B; + SessionKeys9: SessionKeys9; + SessionKeys9B: SessionKeys9B; + SetId: SetId; + SetIndex: SetIndex; + Si0Field: Si0Field; + Si0LookupTypeId: Si0LookupTypeId; + Si0Path: Si0Path; + Si0Type: Si0Type; + Si0TypeDef: Si0TypeDef; + Si0TypeDefArray: Si0TypeDefArray; + Si0TypeDefBitSequence: Si0TypeDefBitSequence; + Si0TypeDefCompact: Si0TypeDefCompact; + Si0TypeDefComposite: Si0TypeDefComposite; + Si0TypeDefPhantom: Si0TypeDefPhantom; + Si0TypeDefPrimitive: Si0TypeDefPrimitive; + Si0TypeDefSequence: Si0TypeDefSequence; + Si0TypeDefTuple: Si0TypeDefTuple; + Si0TypeDefVariant: Si0TypeDefVariant; + Si0TypeParameter: Si0TypeParameter; + Si0Variant: Si0Variant; + Si1Field: Si1Field; + Si1LookupTypeId: Si1LookupTypeId; + Si1Path: Si1Path; + Si1Type: Si1Type; + Si1TypeDef: Si1TypeDef; + Si1TypeDefArray: Si1TypeDefArray; + Si1TypeDefBitSequence: Si1TypeDefBitSequence; + Si1TypeDefCompact: Si1TypeDefCompact; + Si1TypeDefComposite: Si1TypeDefComposite; + Si1TypeDefPrimitive: Si1TypeDefPrimitive; + Si1TypeDefSequence: Si1TypeDefSequence; + Si1TypeDefTuple: Si1TypeDefTuple; + Si1TypeDefVariant: Si1TypeDefVariant; + Si1TypeParameter: Si1TypeParameter; + Si1Variant: Si1Variant; + SiField: SiField; + Signature: Signature; + SignedAvailabilityBitfield: SignedAvailabilityBitfield; + SignedAvailabilityBitfields: SignedAvailabilityBitfields; + SignedBlock: SignedBlock; + SignedBlockWithJustification: SignedBlockWithJustification; + SignedBlockWithJustifications: SignedBlockWithJustifications; + SignedExtensionMetadataLatest: SignedExtensionMetadataLatest; + SignedExtensionMetadataV14: SignedExtensionMetadataV14; + SignedSubmission: SignedSubmission; + SignedSubmissionOf: SignedSubmissionOf; + SignedSubmissionTo276: SignedSubmissionTo276; + SignerPayload: SignerPayload; + SigningContext: SigningContext; + SiLookupTypeId: SiLookupTypeId; + SiPath: SiPath; + SiType: SiType; + SiTypeDef: SiTypeDef; + SiTypeDefArray: SiTypeDefArray; + SiTypeDefBitSequence: SiTypeDefBitSequence; + SiTypeDefCompact: SiTypeDefCompact; + SiTypeDefComposite: SiTypeDefComposite; + SiTypeDefPrimitive: SiTypeDefPrimitive; + SiTypeDefSequence: SiTypeDefSequence; + SiTypeDefTuple: SiTypeDefTuple; + SiTypeDefVariant: SiTypeDefVariant; + SiTypeParameter: SiTypeParameter; + SiVariant: SiVariant; + SlashingSpans: SlashingSpans; + SlashingSpansTo204: SlashingSpansTo204; + SlashJournalEntry: SlashJournalEntry; + Slot: Slot; + SlotDuration: SlotDuration; + SlotNumber: SlotNumber; + SlotRange: SlotRange; + SlotRange10: SlotRange10; + SocietyJudgement: SocietyJudgement; + SocietyVote: SocietyVote; + SolutionOrSnapshotSize: SolutionOrSnapshotSize; + SolutionSupport: SolutionSupport; + SolutionSupports: SolutionSupports; + SpanIndex: SpanIndex; + SpanRecord: SpanRecord; + SpecVersion: SpecVersion; + Sr25519Signature: Sr25519Signature; + StakingLedger: StakingLedger; + StakingLedgerTo223: StakingLedgerTo223; + StakingLedgerTo240: StakingLedgerTo240; + Statement: Statement; + StatementKind: StatementKind; + StorageChangeSet: StorageChangeSet; + StorageData: StorageData; + StorageDeposit: StorageDeposit; + StorageEntryMetadataLatest: StorageEntryMetadataLatest; + StorageEntryMetadataV10: StorageEntryMetadataV10; + StorageEntryMetadataV11: StorageEntryMetadataV11; + StorageEntryMetadataV12: StorageEntryMetadataV12; + StorageEntryMetadataV13: StorageEntryMetadataV13; + StorageEntryMetadataV14: StorageEntryMetadataV14; + StorageEntryMetadataV9: StorageEntryMetadataV9; + StorageEntryModifierLatest: StorageEntryModifierLatest; + StorageEntryModifierV10: StorageEntryModifierV10; + StorageEntryModifierV11: StorageEntryModifierV11; + StorageEntryModifierV12: StorageEntryModifierV12; + StorageEntryModifierV13: StorageEntryModifierV13; + StorageEntryModifierV14: StorageEntryModifierV14; + StorageEntryModifierV9: StorageEntryModifierV9; + StorageEntryTypeLatest: StorageEntryTypeLatest; + StorageEntryTypeV10: StorageEntryTypeV10; + StorageEntryTypeV11: StorageEntryTypeV11; + StorageEntryTypeV12: StorageEntryTypeV12; + StorageEntryTypeV13: StorageEntryTypeV13; + StorageEntryTypeV14: StorageEntryTypeV14; + StorageEntryTypeV9: StorageEntryTypeV9; + StorageHasher: StorageHasher; + StorageHasherV10: StorageHasherV10; + StorageHasherV11: StorageHasherV11; + StorageHasherV12: StorageHasherV12; + StorageHasherV13: StorageHasherV13; + StorageHasherV14: StorageHasherV14; + StorageHasherV9: StorageHasherV9; + StorageInfo: StorageInfo; + StorageKey: StorageKey; + StorageKind: StorageKind; + StorageMetadataV10: StorageMetadataV10; + StorageMetadataV11: StorageMetadataV11; + StorageMetadataV12: StorageMetadataV12; + StorageMetadataV13: StorageMetadataV13; + StorageMetadataV9: StorageMetadataV9; + StorageProof: StorageProof; + StoredPendingChange: StoredPendingChange; + StoredState: StoredState; + StrikeCount: StrikeCount; + SubId: SubId; + SubmissionIndicesOf: SubmissionIndicesOf; + SubstrateIdentity: SubstrateIdentity; + SubstrateNetwork: SubstrateNetwork; + Supports: Supports; + SyncState: SyncState; + SystemInherentData: SystemInherentData; + SystemOrigin: SystemOrigin; + Tally: Tally; + TaskAddress: TaskAddress; + TAssetBalance: TAssetBalance; + TAssetDepositBalance: TAssetDepositBalance; + Text: Text; + Timepoint: Timepoint; + TokenError: TokenError; + TombstoneContractInfo: TombstoneContractInfo; + TraceBlockResponse: TraceBlockResponse; + TraceError: TraceError; + TransactionalError: TransactionalError; + TransactionInfo: TransactionInfo; + TransactionLongevity: TransactionLongevity; + TransactionPriority: TransactionPriority; + TransactionSource: TransactionSource; + TransactionStorageProof: TransactionStorageProof; + TransactionTag: TransactionTag; + TransactionV0: TransactionV0; + TransactionV1: TransactionV1; + TransactionV2: TransactionV2; + TransactionValidity: TransactionValidity; + TransactionValidityError: TransactionValidityError; + TransientValidationData: TransientValidationData; + TreasuryProposal: TreasuryProposal; + TrieId: TrieId; + TrieIndex: TrieIndex; + TrustedCall: TrustedCall; + TrustedCallSigned: TrustedCallSigned; + TrustedGetter: TrustedGetter; + TrustedGetterSigned: TrustedGetterSigned; + TrustedOperation: TrustedOperation; + TwitterValidationData: TwitterValidationData; + Type: Type; + u128: u128; + U128: U128; + u16: u16; + U16: U16; + u256: u256; + U256: U256; + u32: u32; + U32: U32; + U32F32: U32F32; + u64: u64; + U64: U64; + u8: u8; + U8: U8; + UnappliedSlash: UnappliedSlash; + UnappliedSlashOther: UnappliedSlashOther; + UncleEntryItem: UncleEntryItem; + UnknownTransaction: UnknownTransaction; + UnlockChunk: UnlockChunk; + UnrewardedRelayer: UnrewardedRelayer; + UnrewardedRelayersState: UnrewardedRelayersState; + UpgradeGoAhead: UpgradeGoAhead; + UpgradeRestriction: UpgradeRestriction; + UpwardMessage: UpwardMessage; + usize: usize; + USize: USize; + ValidationCode: ValidationCode; + ValidationCodeHash: ValidationCodeHash; + ValidationData: ValidationData; + ValidationDataType: ValidationDataType; + ValidationFunctionParams: ValidationFunctionParams; + ValidatorCount: ValidatorCount; + ValidatorId: ValidatorId; + ValidatorIdOf: ValidatorIdOf; + ValidatorIndex: ValidatorIndex; + ValidatorIndexCompact: ValidatorIndexCompact; + ValidatorPrefs: ValidatorPrefs; + ValidatorPrefsTo145: ValidatorPrefsTo145; + ValidatorPrefsTo196: ValidatorPrefsTo196; + ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked; + ValidatorPrefsWithCommission: ValidatorPrefsWithCommission; + ValidatorSet: ValidatorSet; + ValidatorSetId: ValidatorSetId; + ValidatorSignature: ValidatorSignature; + ValidDisputeStatementKind: ValidDisputeStatementKind; + ValidityAttestation: ValidityAttestation; + ValidTransaction: ValidTransaction; + VCRequested: VCRequested; + VecInboundHrmpMessage: VecInboundHrmpMessage; + VersionedMultiAsset: VersionedMultiAsset; + VersionedMultiAssets: VersionedMultiAssets; + VersionedMultiLocation: VersionedMultiLocation; + VersionedResponse: VersionedResponse; + VersionedXcm: VersionedXcm; + VersionMigrationStage: VersionMigrationStage; + VestingInfo: VestingInfo; + VestingSchedule: VestingSchedule; + Vote: Vote; + VoteIndex: VoteIndex; + Voter: Voter; + VoterInfo: VoterInfo; + Votes: Votes; + VotesTo230: VotesTo230; + VoteThreshold: VoteThreshold; + VoteWeight: VoteWeight; + Voting: Voting; + VotingDelegating: VotingDelegating; + VotingDirect: VotingDirect; + VotingDirectVote: VotingDirectVote; + VouchingStatus: VouchingStatus; + VrfData: VrfData; + VrfOutput: VrfOutput; + VrfProof: VrfProof; + Web2Identity: Web2Identity; + Web2Network: Web2Network; + Web2ValidationData: Web2ValidationData; + Web3CommonValidationData: Web3CommonValidationData; + Web3ValidationData: Web3ValidationData; + Weight: Weight; + WeightLimitV2: WeightLimitV2; + WeightMultiplier: WeightMultiplier; + WeightPerClass: WeightPerClass; + WeightToFeeCoefficient: WeightToFeeCoefficient; + WeightV0: WeightV0; + WeightV1: WeightV1; + WeightV2: WeightV2; + WildFungibility: WildFungibility; + WildFungibilityV0: WildFungibilityV0; + WildFungibilityV1: WildFungibilityV1; + WildFungibilityV2: WildFungibilityV2; + WildMultiAsset: WildMultiAsset; + WildMultiAssetV1: WildMultiAssetV1; + WildMultiAssetV2: WildMultiAssetV2; + WinnersData: WinnersData; + WinnersData10: WinnersData10; + WinnersDataTuple: WinnersDataTuple; + WinnersDataTuple10: WinnersDataTuple10; + WinningData: WinningData; + WinningData10: WinningData10; + WinningDataEntry: WinningDataEntry; + WithdrawReasons: WithdrawReasons; + WorkerRpcReturnString: WorkerRpcReturnString; + WorkerRpcReturnValue: WorkerRpcReturnValue; + Xcm: Xcm; + XcmAssetId: XcmAssetId; + XcmError: XcmError; + XcmErrorV0: XcmErrorV0; + XcmErrorV1: XcmErrorV1; + XcmErrorV2: XcmErrorV2; + XcmOrder: XcmOrder; + XcmOrderV0: XcmOrderV0; + XcmOrderV1: XcmOrderV1; + XcmOrderV2: XcmOrderV2; + XcmOrigin: XcmOrigin; + XcmOriginKind: XcmOriginKind; + XcmpMessageFormat: XcmpMessageFormat; + XcmV0: XcmV0; + XcmV1: XcmV1; + XcmV2: XcmV2; + XcmVersion: XcmVersion; + } // InterfaceTypes +} // declare module diff --git a/tee-worker/ts-tests/interfaces/definitions.ts b/tee-worker/ts-tests/interfaces/definitions.ts new file mode 100644 index 0000000000..04b0f888db --- /dev/null +++ b/tee-worker/ts-tests/interfaces/definitions.ts @@ -0,0 +1 @@ +export { default as identity } from './identity/definitions'; diff --git a/tee-worker/ts-tests/interfaces/identity/definitions.ts b/tee-worker/ts-tests/interfaces/identity/definitions.ts new file mode 100644 index 0000000000..f5e37fa17a --- /dev/null +++ b/tee-worker/ts-tests/interfaces/identity/definitions.ts @@ -0,0 +1,180 @@ +// This file should be kept up to date with +// https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/ts-tests/type-definitions.ts +export default { + types: { + WorkerRpcReturnString: { + vec: 'Bytes', + }, + WorkerRpcReturnValue: { + value: 'Bytes', + do_watch: 'bool', + status: 'DirectRequestStatus', + }, + TrustedOperation: { + _enum: { + indirect_call: '(TrustedCallSigned)', + direct_call: '(TrustedCallSigned)', + get: '(Getter)', + }, + }, + TrustedCallSigned: { + call: 'TrustedCall', + index: 'u32', + signature: 'MultiSignature', + }, + Getter: { + _enum: { + public: '(PublicGetter)', + trusted: '(TrustedGetterSigned)', + }, + }, + PublicGetter: { + _enum: ['some_value'], + }, + TrustedGetterSigned: { + getter: 'TrustedGetter', + signature: 'MultiSignature', + }, + + /// important + TrustedGetter: { + _enum: { + free_balance: '(AccountId)', + }, + }, + /// important + TrustedCall: { + _enum: { + balance_set_balance: '(AccountId, AccountId, Balance, Balance)', + balance_transfer: '(AccountId, AccountId, Balance)', + balance_unshield: '(AccountId, AccountId, Balance, MrEnclaveIdentifier)', + }, + }, + DirectRequestStatus: { + _enum: [ + //TODO support TrustedOperationStatus(TrustedOperationStatus) + 'Ok', + 'TrustedOperationStatus', + 'Error', + ], + }, + + /// identity + LitentryIdentity: { + _enum: { + Substrate: 'SubstrateIdentity', + Evm: 'EvmIdentity', + Web2: 'Web2Identity', + }, + }, + SubstrateIdentity: { + network: 'SubstrateNetwork', + address: 'Address32', + }, + EvmIdentity: { + network: 'EvmNetwork', + address: 'Address20', + }, + Web2Identity: { + network: 'Web2Network', + address: 'IdentityString', + }, + Address32: '[u8;32]', + Address20: '[u8;20]', + IdentityString: 'Vec', + Web2Network: { + _enum: ['Twitter', 'Discord', 'Github'], + }, + SubstrateNetwork: { + _enum: ['Polkadot', 'Kusama', 'Litentry', 'Litmus', 'LitentryRococo', 'Khala', 'TestNet'], + }, + EvmNetwork: { + _enum: ['Ethereum', 'BSC'], + }, + + /// Validation Data + LitentryValidationData: { + _enum: { + Web2Validation: 'Web2ValidationData', + Web3Validation: 'Web3ValidationData', + }, + }, + Web2ValidationData: { + _enum: { + Twitter: 'TwitterValidationData', + Discord: 'DiscordValidationData', + }, + }, + TwitterValidationData: { + tweet_id: 'Vec', + }, + DiscordValidationData: { + channel_id: 'Vec', + message_id: 'Vec', + guild_id: 'Vec', + }, + Web3ValidationData: { + _enum: { + Substrate: 'Web3CommonValidationData', + Evm: 'Web3CommonValidationData', + }, + }, + Web3CommonValidationData: { + message: 'Vec', + signature: 'IdentityMultiSignature', + }, + + IdentityMultiSignature: { + _enum: { + Ed25519: 'ed25519::Signature', + Sr25519: 'sr25519::Signature', + Ecdsa: 'ecdsa::Signature', + Ethereum: 'EthereumSignature', + }, + }, + EthereumSignature: '([u8; 65])', + + IdentityGenericEvent: { + who: 'AccountId', + identity: 'LitentryIdentity', + id_graph: 'Vec<(LitentryIdentity, IdentityContext)>', + }, + IdentityContext: { + metadata: 'Option>', + linking_request_block: 'Option', + verification_request_block: 'Option', + is_verified: 'bool', + }, + + // vc management + VCRequested: { + account: 'AccountId', + mrEnclave: 'MrEnclaveIdentifier', + assertion: 'Assertion', + }, + + MrEnclaveIdentifier: '[u8;32]', + Assertion: { + _enum: { + A1: 'Null', + A2: 'Bytes', + A3: '(Bytes,Bytes,Bytes)', + A4: 'u128', + A5: '(Bytes,Bytes)', + A6: 'Null', + A7: 'u128', + A8: 'Vec', + A9: 'Null', + A10: 'u128', + A11: 'u128', + A13: 'u32', + }, + }, + + /** @fixme https://github.com/litentry/identity-hub/issues/143 */ + // Custom utility types + GenericEventWithAccount: { + account: 'AccountId', + }, + }, +}; diff --git a/tee-worker/ts-tests/interfaces/identity/index.ts b/tee-worker/ts-tests/interfaces/identity/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/identity/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/tee-worker/ts-tests/interfaces/identity/types.ts b/tee-worker/ts-tests/interfaces/identity/types.ts new file mode 100644 index 0000000000..5c5df4e563 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/identity/types.ts @@ -0,0 +1,268 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import type { Bytes, Enum, Option, Struct, U8aFixed, Vec, bool, u128, u32 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { MultiSignature, Signature } from '@polkadot/types/interfaces/extrinsics'; +import type { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; + +/** @name Address20 */ +export interface Address20 extends U8aFixed {} + +/** @name Address32 */ +export interface Address32 extends U8aFixed {} + +/** @name Assertion */ +export interface Assertion extends Enum { + readonly isA1: boolean; + readonly isA2: boolean; + readonly asA2: Bytes; + readonly isA3: boolean; + readonly asA3: ITuple<[Bytes, Bytes, Bytes]>; + readonly isA4: boolean; + readonly asA4: u128; + readonly isA5: boolean; + readonly asA5: ITuple<[Bytes, Bytes]>; + readonly isA6: boolean; + readonly isA7: boolean; + readonly asA7: u128; + readonly isA8: boolean; + readonly asA8: Vec; + readonly isA9: boolean; + readonly isA10: boolean; + readonly asA10: u128; + readonly isA11: boolean; + readonly asA11: u128; + readonly isA13: boolean; + readonly asA13: u32; + readonly type: 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'A7' | 'A8' | 'A9' | 'A10' | 'A11' | 'A13'; +} + +/** @name DirectRequestStatus */ +export interface DirectRequestStatus extends Enum { + readonly isOk: boolean; + readonly isTrustedOperationStatus: boolean; + readonly isError: boolean; + readonly type: 'Ok' | 'TrustedOperationStatus' | 'Error'; +} + +/** @name DiscordValidationData */ +export interface DiscordValidationData extends Struct { + readonly channel_id: Bytes; + readonly message_id: Bytes; + readonly guild_id: Bytes; +} + +/** @name EthereumSignature */ +export interface EthereumSignature extends U8aFixed {} + +/** @name EvmIdentity */ +export interface EvmIdentity extends Struct { + readonly network: EvmNetwork; + readonly address: Address20; +} + +/** @name EvmNetwork */ +export interface EvmNetwork extends Enum { + readonly isEthereum: boolean; + readonly isBsc: boolean; + readonly type: 'Ethereum' | 'Bsc'; +} + +/** @name GenericEventWithAccount */ +export interface GenericEventWithAccount extends Struct { + readonly account: AccountId; +} + +/** @name Getter */ +export interface Getter extends Enum { + readonly isPublic: boolean; + readonly asPublic: PublicGetter; + readonly isTrusted: boolean; + readonly asTrusted: TrustedGetterSigned; + readonly type: 'Public' | 'Trusted'; +} + +/** @name IdentityContext */ +export interface IdentityContext extends Struct { + readonly metadata: Option; + readonly linking_request_block: Option; + readonly verification_request_block: Option; + readonly is_verified: bool; +} + +/** @name IdentityGenericEvent */ +export interface IdentityGenericEvent extends Struct { + readonly who: AccountId; + readonly identity: LitentryIdentity; + readonly id_graph: Vec>; +} + +/** @name IdentityMultiSignature */ +export interface IdentityMultiSignature extends Enum { + readonly isEd25519: boolean; + readonly asEd25519: Signature; + readonly isSr25519: boolean; + readonly asSr25519: Signature; + readonly isEcdsa: boolean; + readonly asEcdsa: Signature; + readonly isEthereum: boolean; + readonly asEthereum: EthereumSignature; + readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa' | 'Ethereum'; +} + +/** @name IdentityString */ +export interface IdentityString extends Bytes {} + +/** @name LitentryIdentity */ +export interface LitentryIdentity extends Enum { + readonly isSubstrate: boolean; + readonly asSubstrate: SubstrateIdentity; + readonly isEvm: boolean; + readonly asEvm: EvmIdentity; + readonly isWeb2: boolean; + readonly asWeb2: Web2Identity; + readonly type: 'Substrate' | 'Evm' | 'Web2'; +} + +/** @name LitentryValidationData */ +export interface LitentryValidationData extends Enum { + readonly isWeb2Validation: boolean; + readonly asWeb2Validation: Web2ValidationData; + readonly isWeb3Validation: boolean; + readonly asWeb3Validation: Web3ValidationData; + readonly type: 'Web2Validation' | 'Web3Validation'; +} + +/** @name MrEnclaveIdentifier */ +export interface MrEnclaveIdentifier extends U8aFixed {} + +/** @name PublicGetter */ +export interface PublicGetter extends Enum { + readonly isSomeValue: boolean; + readonly type: 'SomeValue'; +} + +/** @name SubstrateIdentity */ +export interface SubstrateIdentity extends Struct { + readonly network: SubstrateNetwork; + readonly address: Address32; +} + +/** @name SubstrateNetwork */ +export interface SubstrateNetwork extends Enum { + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isLitentry: boolean; + readonly isLitmus: boolean; + readonly isLitentryRococo: boolean; + readonly isKhala: boolean; + readonly isTestNet: boolean; + readonly type: 'Polkadot' | 'Kusama' | 'Litentry' | 'Litmus' | 'LitentryRococo' | 'Khala' | 'TestNet'; +} + +/** @name TrustedCall */ +export interface TrustedCall extends Enum { + readonly isBalanceSetBalance: boolean; + readonly asBalanceSetBalance: ITuple<[AccountId, AccountId, Balance, Balance]>; + readonly isBalanceTransfer: boolean; + readonly asBalanceTransfer: ITuple<[AccountId, AccountId, Balance]>; + readonly isBalanceUnshield: boolean; + readonly asBalanceUnshield: ITuple<[AccountId, AccountId, Balance, MrEnclaveIdentifier]>; + readonly type: 'BalanceSetBalance' | 'BalanceTransfer' | 'BalanceUnshield'; +} + +/** @name TrustedCallSigned */ +export interface TrustedCallSigned extends Struct { + readonly call: TrustedCall; + readonly index: u32; + readonly signature: MultiSignature; +} + +/** @name TrustedGetter */ +export interface TrustedGetter extends Enum { + readonly isFreeBalance: boolean; + readonly asFreeBalance: AccountId; + readonly type: 'FreeBalance'; +} + +/** @name TrustedGetterSigned */ +export interface TrustedGetterSigned extends Struct { + readonly getter: TrustedGetter; + readonly signature: MultiSignature; +} + +/** @name TrustedOperation */ +export interface TrustedOperation extends Enum { + readonly isIndirectCall: boolean; + readonly asIndirectCall: TrustedCallSigned; + readonly isDirectCall: boolean; + readonly asDirectCall: TrustedCallSigned; + readonly isGet: boolean; + readonly asGet: Getter; + readonly type: 'IndirectCall' | 'DirectCall' | 'Get'; +} + +/** @name TwitterValidationData */ +export interface TwitterValidationData extends Struct { + readonly tweet_id: Bytes; +} + +/** @name VCRequested */ +export interface VCRequested extends Struct { + readonly account: AccountId; + readonly mrEnclave: MrEnclaveIdentifier; + readonly assertion: Assertion; +} + +/** @name Web2Identity */ +export interface Web2Identity extends Struct { + readonly network: Web2Network; + readonly address: IdentityString; +} + +/** @name Web2Network */ +export interface Web2Network extends Enum { + readonly isTwitter: boolean; + readonly isDiscord: boolean; + readonly isGithub: boolean; + readonly type: 'Twitter' | 'Discord' | 'Github'; +} + +/** @name Web2ValidationData */ +export interface Web2ValidationData extends Enum { + readonly isTwitter: boolean; + readonly asTwitter: TwitterValidationData; + readonly isDiscord: boolean; + readonly asDiscord: DiscordValidationData; + readonly type: 'Twitter' | 'Discord'; +} + +/** @name Web3CommonValidationData */ +export interface Web3CommonValidationData extends Struct { + readonly message: Bytes; + readonly signature: IdentityMultiSignature; +} + +/** @name Web3ValidationData */ +export interface Web3ValidationData extends Enum { + readonly isSubstrate: boolean; + readonly asSubstrate: Web3CommonValidationData; + readonly isEvm: boolean; + readonly asEvm: Web3CommonValidationData; + readonly type: 'Substrate' | 'Evm'; +} + +/** @name WorkerRpcReturnString */ +export interface WorkerRpcReturnString extends Struct { + readonly vec: Bytes; +} + +/** @name WorkerRpcReturnValue */ +export interface WorkerRpcReturnValue extends Struct { + readonly value: Bytes; + readonly do_watch: bool; + readonly status: DirectRequestStatus; +} + +export type PHANTOM_IDENTITY = 'identity'; diff --git a/tee-worker/ts-tests/interfaces/index.ts b/tee-worker/ts-tests/interfaces/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/tee-worker/ts-tests/interfaces/lookup.ts b/tee-worker/ts-tests/interfaces/lookup.ts new file mode 100644 index 0000000000..5bf051431e --- /dev/null +++ b/tee-worker/ts-tests/interfaces/lookup.ts @@ -0,0 +1,2302 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +/* eslint-disable sort-keys */ + +export default { + /** + * Lookup3: frame_system::AccountInfo> + **/ + FrameSystemAccountInfo: { + nonce: 'u32', + consumers: 'u32', + providers: 'u32', + sufficients: 'u32', + data: 'PalletBalancesAccountData', + }, + /** + * Lookup5: pallet_balances::AccountData + **/ + PalletBalancesAccountData: { + free: 'u128', + reserved: 'u128', + miscFrozen: 'u128', + feeFrozen: 'u128', + }, + /** + * Lookup7: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassWeight: { + normal: 'SpWeightsWeightV2Weight', + operational: 'SpWeightsWeightV2Weight', + mandatory: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup8: sp_weights::weight_v2::Weight + **/ + SpWeightsWeightV2Weight: { + refTime: 'Compact', + proofSize: 'Compact', + }, + /** + * Lookup13: sp_runtime::generic::digest::Digest + **/ + SpRuntimeDigest: { + logs: 'Vec', + }, + /** + * Lookup15: sp_runtime::generic::digest::DigestItem + **/ + SpRuntimeDigestDigestItem: { + _enum: { + Other: 'Bytes', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + Consensus: '([u8;4],Bytes)', + Seal: '([u8;4],Bytes)', + PreRuntime: '([u8;4],Bytes)', + __Unused7: 'Null', + RuntimeEnvironmentUpdated: 'Null', + }, + }, + /** + * Lookup18: frame_system::EventRecord + **/ + FrameSystemEventRecord: { + phase: 'FrameSystemPhase', + event: 'Event', + topics: 'Vec', + }, + /** + * Lookup20: frame_system::pallet::Event + **/ + FrameSystemEvent: { + _enum: { + ExtrinsicSuccess: { + dispatchInfo: 'FrameSupportDispatchDispatchInfo', + }, + ExtrinsicFailed: { + dispatchError: 'SpRuntimeDispatchError', + dispatchInfo: 'FrameSupportDispatchDispatchInfo', + }, + CodeUpdated: 'Null', + NewAccount: { + account: 'AccountId32', + }, + KilledAccount: { + account: 'AccountId32', + }, + Remarked: { + _alias: { + hash_: 'hash', + }, + sender: 'AccountId32', + hash_: 'H256', + }, + }, + }, + /** + * Lookup21: frame_support::dispatch::DispatchInfo + **/ + FrameSupportDispatchDispatchInfo: { + weight: 'SpWeightsWeightV2Weight', + class: 'FrameSupportDispatchDispatchClass', + paysFee: 'FrameSupportDispatchPays', + }, + /** + * Lookup22: frame_support::dispatch::DispatchClass + **/ + FrameSupportDispatchDispatchClass: { + _enum: ['Normal', 'Operational', 'Mandatory'], + }, + /** + * Lookup23: frame_support::dispatch::Pays + **/ + FrameSupportDispatchPays: { + _enum: ['Yes', 'No'], + }, + /** + * Lookup24: sp_runtime::DispatchError + **/ + SpRuntimeDispatchError: { + _enum: { + Other: 'Null', + CannotLookup: 'Null', + BadOrigin: 'Null', + Module: 'SpRuntimeModuleError', + ConsumerRemaining: 'Null', + NoProviders: 'Null', + TooManyConsumers: 'Null', + Token: 'SpRuntimeTokenError', + Arithmetic: 'SpArithmeticArithmeticError', + Transactional: 'SpRuntimeTransactionalError', + Exhausted: 'Null', + Corruption: 'Null', + Unavailable: 'Null', + }, + }, + /** + * Lookup25: sp_runtime::ModuleError + **/ + SpRuntimeModuleError: { + index: 'u8', + error: '[u8;4]', + }, + /** + * Lookup26: sp_runtime::TokenError + **/ + SpRuntimeTokenError: { + _enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported'], + }, + /** + * Lookup27: sp_arithmetic::ArithmeticError + **/ + SpArithmeticArithmeticError: { + _enum: ['Underflow', 'Overflow', 'DivisionByZero'], + }, + /** + * Lookup28: sp_runtime::TransactionalError + **/ + SpRuntimeTransactionalError: { + _enum: ['LimitReached', 'NoLayer'], + }, + /** + * Lookup29: pallet_preimage::pallet::Event + **/ + PalletPreimageEvent: { + _enum: { + Noted: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Requested: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Cleared: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup30: pallet_sudo::pallet::Event + **/ + PalletSudoEvent: { + _enum: { + Sudid: { + sudoResult: 'Result', + }, + KeyChanged: { + oldSudoer: 'Option', + }, + SudoAsDone: { + sudoResult: 'Result', + }, + }, + }, + /** + * Lookup34: pallet_multisig::pallet::Event + **/ + PalletMultisigEvent: { + _enum: { + NewMultisig: { + approving: 'AccountId32', + multisig: 'AccountId32', + callHash: '[u8;32]', + }, + MultisigApproval: { + approving: 'AccountId32', + timepoint: 'PalletMultisigTimepoint', + multisig: 'AccountId32', + callHash: '[u8;32]', + }, + MultisigExecuted: { + approving: 'AccountId32', + timepoint: 'PalletMultisigTimepoint', + multisig: 'AccountId32', + callHash: '[u8;32]', + result: 'Result', + }, + MultisigCancelled: { + cancelling: 'AccountId32', + timepoint: 'PalletMultisigTimepoint', + multisig: 'AccountId32', + callHash: '[u8;32]', + }, + }, + }, + /** + * Lookup35: pallet_multisig::Timepoint + **/ + PalletMultisigTimepoint: { + height: 'u32', + index: 'u32', + }, + /** + * Lookup36: pallet_proxy::pallet::Event + **/ + PalletProxyEvent: { + _enum: { + ProxyExecuted: { + result: 'Result', + }, + PureCreated: { + pure: 'AccountId32', + who: 'AccountId32', + proxyType: 'IntegriteeNodeRuntimeProxyType', + disambiguationIndex: 'u16', + }, + Announced: { + real: 'AccountId32', + proxy: 'AccountId32', + callHash: 'H256', + }, + ProxyAdded: { + delegator: 'AccountId32', + delegatee: 'AccountId32', + proxyType: 'IntegriteeNodeRuntimeProxyType', + delay: 'u32', + }, + ProxyRemoved: { + delegator: 'AccountId32', + delegatee: 'AccountId32', + proxyType: 'IntegriteeNodeRuntimeProxyType', + delay: 'u32', + }, + }, + }, + /** + * Lookup37: integritee_node_runtime::ProxyType + **/ + IntegriteeNodeRuntimeProxyType: { + _enum: ['Any', 'NonTransfer', 'Governance', 'CancelProxy'], + }, + /** + * Lookup39: pallet_scheduler::pallet::Event + **/ + PalletSchedulerEvent: { + _enum: { + Scheduled: { + when: 'u32', + index: 'u32', + }, + Canceled: { + when: 'u32', + index: 'u32', + }, + Dispatched: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + result: 'Result', + }, + CallUnavailable: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + }, + PeriodicFailed: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + }, + PermanentlyOverweight: { + task: '(u32,u32)', + id: 'Option<[u8;32]>', + }, + }, + }, + /** + * Lookup42: pallet_utility::pallet::Event + **/ + PalletUtilityEvent: { + _enum: { + BatchInterrupted: { + index: 'u32', + error: 'SpRuntimeDispatchError', + }, + BatchCompleted: 'Null', + BatchCompletedWithErrors: 'Null', + ItemCompleted: 'Null', + ItemFailed: { + error: 'SpRuntimeDispatchError', + }, + DispatchedAs: { + result: 'Result', + }, + }, + }, + /** + * Lookup43: pallet_balances::pallet::Event + **/ + PalletBalancesEvent: { + _enum: { + Endowed: { + account: 'AccountId32', + freeBalance: 'u128', + }, + DustLost: { + account: 'AccountId32', + amount: 'u128', + }, + Transfer: { + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + }, + BalanceSet: { + who: 'AccountId32', + free: 'u128', + reserved: 'u128', + }, + Reserved: { + who: 'AccountId32', + amount: 'u128', + }, + Unreserved: { + who: 'AccountId32', + amount: 'u128', + }, + ReserveRepatriated: { + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + destinationStatus: 'FrameSupportTokensMiscBalanceStatus', + }, + Deposit: { + who: 'AccountId32', + amount: 'u128', + }, + Withdraw: { + who: 'AccountId32', + amount: 'u128', + }, + Slashed: { + who: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup44: frame_support::traits::tokens::misc::BalanceStatus + **/ + FrameSupportTokensMiscBalanceStatus: { + _enum: ['Free', 'Reserved'], + }, + /** + * Lookup45: pallet_transaction_payment::pallet::Event + **/ + PalletTransactionPaymentEvent: { + _enum: { + TransactionFeePaid: { + who: 'AccountId32', + actualFee: 'u128', + tip: 'u128', + }, + }, + }, + /** + * Lookup46: pallet_vesting::pallet::Event + **/ + PalletVestingEvent: { + _enum: { + VestingUpdated: { + account: 'AccountId32', + unvested: 'u128', + }, + VestingCompleted: { + account: 'AccountId32', + }, + }, + }, + /** + * Lookup47: pallet_grandpa::pallet::Event + **/ + PalletGrandpaEvent: { + _enum: { + NewAuthorities: { + authoritySet: 'Vec<(SpFinalityGrandpaAppPublic,u64)>', + }, + Paused: 'Null', + Resumed: 'Null', + }, + }, + /** + * Lookup50: sp_finality_grandpa::app::Public + **/ + SpFinalityGrandpaAppPublic: 'SpCoreEd25519Public', + /** + * Lookup51: sp_core::ed25519::Public + **/ + SpCoreEd25519Public: '[u8;32]', + /** + * Lookup52: pallet_collective::pallet::Event + **/ + PalletCollectiveEvent: { + _enum: { + Proposed: { + account: 'AccountId32', + proposalIndex: 'u32', + proposalHash: 'H256', + threshold: 'u32', + }, + Voted: { + account: 'AccountId32', + proposalHash: 'H256', + voted: 'bool', + yes: 'u32', + no: 'u32', + }, + Approved: { + proposalHash: 'H256', + }, + Disapproved: { + proposalHash: 'H256', + }, + Executed: { + proposalHash: 'H256', + result: 'Result', + }, + MemberExecuted: { + proposalHash: 'H256', + result: 'Result', + }, + Closed: { + proposalHash: 'H256', + yes: 'u32', + no: 'u32', + }, + }, + }, + /** + * Lookup54: pallet_treasury::pallet::Event + **/ + PalletTreasuryEvent: { + _enum: { + Proposed: { + proposalIndex: 'u32', + }, + Spending: { + budgetRemaining: 'u128', + }, + Awarded: { + proposalIndex: 'u32', + award: 'u128', + account: 'AccountId32', + }, + Rejected: { + proposalIndex: 'u32', + slashed: 'u128', + }, + Burnt: { + burntFunds: 'u128', + }, + Rollover: { + rolloverBalance: 'u128', + }, + Deposit: { + value: 'u128', + }, + SpendApproved: { + proposalIndex: 'u32', + amount: 'u128', + beneficiary: 'AccountId32', + }, + UpdatedInactive: { + reactivated: 'u128', + deactivated: 'u128', + }, + }, + }, + /** + * Lookup55: pallet_teerex::pallet::Event + **/ + PalletTeerexEvent: { + _enum: { + AdminChanged: { + oldAdmin: 'Option', + }, + AddedEnclave: '(AccountId32,Bytes)', + RemovedEnclave: 'AccountId32', + Forwarded: 'H256', + ShieldFunds: 'Bytes', + UnshieldedFunds: 'AccountId32', + ProcessedParentchainBlock: '(AccountId32,H256,H256,u32)', + SetHeartbeatTimeout: 'u64', + UpdatedScheduledEnclave: '(u64,[u8;32])', + RemovedScheduledEnclave: 'u64', + PublishedHash: { + _alias: { + hash_: 'hash', + }, + mrEnclave: '[u8;32]', + hash_: 'H256', + data: 'Bytes', + }, + }, + }, + /** + * Lookup56: pallet_claims::pallet::Event + **/ + PalletClaimsEvent: { + _enum: { + Claimed: '(AccountId32,ClaimsPrimitivesEthereumAddress,u128)', + }, + }, + /** + * Lookup57: claims_primitives::EthereumAddress + **/ + ClaimsPrimitivesEthereumAddress: '[u8;20]', + /** + * Lookup59: pallet_teeracle::pallet::Event + **/ + PalletTeeracleEvent: { + _enum: { + ExchangeRateUpdated: '(Text,Text,Option)', + ExchangeRateDeleted: '(Text,Text)', + OracleUpdated: '(Text,Text)', + AddedToWhitelist: '(Text,[u8;32])', + RemovedFromWhitelist: '(Text,[u8;32])', + }, + }, + /** + * Lookup62: substrate_fixed::FixedU64, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>> + **/ + SubstrateFixedFixedU64: { + bits: 'u64', + }, + /** + * Lookup67: typenum::uint::UInt, typenum::bit::B0> + **/ + TypenumUIntUInt: { + msb: 'TypenumUIntUTerm', + lsb: 'TypenumBitB0', + }, + /** + * Lookup68: typenum::uint::UInt + **/ + TypenumUIntUTerm: { + msb: 'TypenumUintUTerm', + lsb: 'TypenumBitB1', + }, + /** + * Lookup69: typenum::uint::UTerm + **/ + TypenumUintUTerm: 'Null', + /** + * Lookup70: typenum::bit::B1 + **/ + TypenumBitB1: 'Null', + /** + * Lookup71: typenum::bit::B0 + **/ + TypenumBitB0: 'Null', + /** + * Lookup72: pallet_sidechain::pallet::Event + **/ + PalletSidechainEvent: { + _enum: { + ProposedSidechainBlock: '(AccountId32,H256)', + FinalizedSidechainBlock: '(AccountId32,H256)', + }, + }, + /** + * Lookup73: pallet_identity_management::pallet::Event + **/ + PalletIdentityManagementEvent: { + _enum: { + DelegateeAdded: { + account: 'AccountId32', + }, + DelegateeRemoved: { + account: 'AccountId32', + }, + CreateIdentityRequested: { + shard: 'H256', + }, + RemoveIdentityRequested: { + shard: 'H256', + }, + VerifyIdentityRequested: { + shard: 'H256', + }, + SetUserShieldingKeyRequested: { + shard: 'H256', + }, + UserShieldingKeySet: { + account: 'AccountId32', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + IdentityCreated: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + IdentityRemoved: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + IdentityVerified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + SetUserShieldingKeyFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + CreateIdentityFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + RemoveIdentityFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + VerifyIdentityFailed: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + ImportScheduledEnclaveFailed: 'Null', + UnclassifiedError: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + }, + }, + /** + * Lookup74: core_primitives::key::AesOutput + **/ + CorePrimitivesKeyAesOutput: { + ciphertext: 'Bytes', + aad: 'Bytes', + nonce: '[u8;12]', + }, + /** + * Lookup76: core_primitives::error::ErrorDetail + **/ + CorePrimitivesErrorErrorDetail: { + _enum: { + ImportError: 'Null', + StfError: 'Bytes', + SendStfRequestFailed: 'Null', + ChallengeCodeNotFound: 'Null', + UserShieldingKeyNotFound: 'Null', + ParseError: 'Null', + DataProviderError: 'Bytes', + InvalidIdentity: 'Null', + WrongWeb2Handle: 'Null', + UnexpectedMessage: 'Null', + WrongSignatureType: 'Null', + VerifySubstrateSignatureFailed: 'Null', + VerifyEvmSignatureFailed: 'Null', + RecoverEvmAddressFailed: 'Null', + }, + }, + /** + * Lookup78: pallet_vc_management::pallet::Event + **/ + PalletVcManagementEvent: { + _enum: { + VCRequested: { + account: 'AccountId32', + shard: 'H256', + assertion: 'CorePrimitivesAssertion', + }, + VCDisabled: { + account: 'AccountId32', + index: 'H256', + }, + VCRevoked: { + account: 'AccountId32', + index: 'H256', + }, + VCIssued: { + account: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + index: 'H256', + vc: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + AdminChanged: { + oldAdmin: 'Option', + newAdmin: 'Option', + }, + SchemaIssued: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + SchemaDisabled: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + SchemaActivated: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + SchemaRevoked: { + account: 'AccountId32', + shard: 'H256', + index: 'u64', + }, + RequestVCFailed: { + account: 'Option', + assertion: 'CorePrimitivesAssertion', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + UnclassifiedError: { + account: 'Option', + detail: 'CorePrimitivesErrorErrorDetail', + reqExtHash: 'H256', + }, + VCRegistryItemAdded: { + account: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + index: 'H256', + }, + VCRegistryItemRemoved: { + index: 'H256', + }, + VCRegistryCleared: 'Null', + }, + }, + /** + * Lookup79: core_primitives::assertion::Assertion + **/ + CorePrimitivesAssertion: { + _enum: { + A1: 'Null', + A2: 'Bytes', + A3: '(Bytes,Bytes,Bytes)', + A4: 'Bytes', + A5: 'Bytes', + A6: 'Null', + A7: 'Bytes', + A8: 'Vec', + A9: 'Null', + A10: 'Bytes', + A11: 'Bytes', + A13: 'u32', + }, + }, + /** + * Lookup82: core_primitives::assertion::IndexingNetwork + **/ + CorePrimitivesAssertionIndexingNetwork: { + _enum: ['Litentry', 'Litmus', 'Polkadot', 'Kusama', 'Khala', 'Ethereum'], + }, + /** + * Lookup84: pallet_group::pallet::Event + **/ + PalletGroupEvent: { + _enum: { + GroupMemberAdded: 'AccountId32', + GroupMemberRemoved: 'AccountId32', + }, + }, + /** + * Lookup86: frame_system::Phase + **/ + FrameSystemPhase: { + _enum: { + ApplyExtrinsic: 'u32', + Finalization: 'Null', + Initialization: 'Null', + }, + }, + /** + * Lookup89: frame_system::LastRuntimeUpgradeInfo + **/ + FrameSystemLastRuntimeUpgradeInfo: { + specVersion: 'Compact', + specName: 'Text', + }, + /** + * Lookup91: frame_system::pallet::Call + **/ + FrameSystemCall: { + _enum: { + remark: { + remark: 'Bytes', + }, + set_heap_pages: { + pages: 'u64', + }, + set_code: { + code: 'Bytes', + }, + set_code_without_checks: { + code: 'Bytes', + }, + set_storage: { + items: 'Vec<(Bytes,Bytes)>', + }, + kill_storage: { + _alias: { + keys_: 'keys', + }, + keys_: 'Vec', + }, + kill_prefix: { + prefix: 'Bytes', + subkeys: 'u32', + }, + remark_with_event: { + remark: 'Bytes', + }, + }, + }, + /** + * Lookup95: frame_system::limits::BlockWeights + **/ + FrameSystemLimitsBlockWeights: { + baseBlock: 'SpWeightsWeightV2Weight', + maxBlock: 'SpWeightsWeightV2Weight', + perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass', + }, + /** + * Lookup96: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassWeightsPerClass: { + normal: 'FrameSystemLimitsWeightsPerClass', + operational: 'FrameSystemLimitsWeightsPerClass', + mandatory: 'FrameSystemLimitsWeightsPerClass', + }, + /** + * Lookup97: frame_system::limits::WeightsPerClass + **/ + FrameSystemLimitsWeightsPerClass: { + baseExtrinsic: 'SpWeightsWeightV2Weight', + maxExtrinsic: 'Option', + maxTotal: 'Option', + reserved: 'Option', + }, + /** + * Lookup99: frame_system::limits::BlockLength + **/ + FrameSystemLimitsBlockLength: { + max: 'FrameSupportDispatchPerDispatchClassU32', + }, + /** + * Lookup100: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassU32: { + normal: 'u32', + operational: 'u32', + mandatory: 'u32', + }, + /** + * Lookup101: sp_weights::RuntimeDbWeight + **/ + SpWeightsRuntimeDbWeight: { + read: 'u64', + write: 'u64', + }, + /** + * Lookup102: sp_version::RuntimeVersion + **/ + SpVersionRuntimeVersion: { + specName: 'Text', + implName: 'Text', + authoringVersion: 'u32', + specVersion: 'u32', + implVersion: 'u32', + apis: 'Vec<([u8;8],u32)>', + transactionVersion: 'u32', + stateVersion: 'u8', + }, + /** + * Lookup107: frame_system::pallet::Error + **/ + FrameSystemError: { + _enum: [ + 'InvalidSpecName', + 'SpecVersionNeedsToIncrease', + 'FailedToExtractRuntimeVersion', + 'NonDefaultComposite', + 'NonZeroRefCount', + 'CallFiltered', + ], + }, + /** + * Lookup108: pallet_preimage::RequestStatus + **/ + PalletPreimageRequestStatus: { + _enum: { + Unrequested: { + deposit: '(AccountId32,u128)', + len: 'u32', + }, + Requested: { + deposit: 'Option<(AccountId32,u128)>', + count: 'u32', + len: 'Option', + }, + }, + }, + /** + * Lookup114: pallet_preimage::pallet::Call + **/ + PalletPreimageCall: { + _enum: { + note_preimage: { + bytes: 'Bytes', + }, + unnote_preimage: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + request_preimage: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + unrequest_preimage: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup115: pallet_preimage::pallet::Error + **/ + PalletPreimageError: { + _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested'], + }, + /** + * Lookup117: pallet_timestamp::pallet::Call + **/ + PalletTimestampCall: { + _enum: { + set: { + now: 'Compact', + }, + }, + }, + /** + * Lookup118: pallet_sudo::pallet::Call + **/ + PalletSudoCall: { + _enum: { + sudo: { + call: 'Call', + }, + sudo_unchecked_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight', + }, + set_key: { + _alias: { + new_: 'new', + }, + new_: 'MultiAddress', + }, + sudo_as: { + who: 'MultiAddress', + call: 'Call', + }, + }, + }, + /** + * Lookup120: pallet_multisig::pallet::Call + **/ + PalletMultisigCall: { + _enum: { + as_multi_threshold_1: { + otherSignatories: 'Vec', + call: 'Call', + }, + as_multi: { + threshold: 'u16', + otherSignatories: 'Vec', + maybeTimepoint: 'Option', + call: 'Call', + maxWeight: 'SpWeightsWeightV2Weight', + }, + approve_as_multi: { + threshold: 'u16', + otherSignatories: 'Vec', + maybeTimepoint: 'Option', + callHash: '[u8;32]', + maxWeight: 'SpWeightsWeightV2Weight', + }, + cancel_as_multi: { + threshold: 'u16', + otherSignatories: 'Vec', + timepoint: 'PalletMultisigTimepoint', + callHash: '[u8;32]', + }, + }, + }, + /** + * Lookup123: pallet_proxy::pallet::Call + **/ + PalletProxyCall: { + _enum: { + proxy: { + real: 'MultiAddress', + forceProxyType: 'Option', + call: 'Call', + }, + add_proxy: { + delegate: 'MultiAddress', + proxyType: 'IntegriteeNodeRuntimeProxyType', + delay: 'u32', + }, + remove_proxy: { + delegate: 'MultiAddress', + proxyType: 'IntegriteeNodeRuntimeProxyType', + delay: 'u32', + }, + remove_proxies: 'Null', + create_pure: { + proxyType: 'IntegriteeNodeRuntimeProxyType', + delay: 'u32', + index: 'u16', + }, + kill_pure: { + spawner: 'MultiAddress', + proxyType: 'IntegriteeNodeRuntimeProxyType', + index: 'u16', + height: 'Compact', + extIndex: 'Compact', + }, + announce: { + real: 'MultiAddress', + callHash: 'H256', + }, + remove_announcement: { + real: 'MultiAddress', + callHash: 'H256', + }, + reject_announcement: { + delegate: 'MultiAddress', + callHash: 'H256', + }, + proxy_announced: { + delegate: 'MultiAddress', + real: 'MultiAddress', + forceProxyType: 'Option', + call: 'Call', + }, + }, + }, + /** + * Lookup127: pallet_scheduler::pallet::Call + **/ + PalletSchedulerCall: { + _enum: { + schedule: { + when: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + cancel: { + when: 'u32', + index: 'u32', + }, + schedule_named: { + id: '[u8;32]', + when: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + cancel_named: { + id: '[u8;32]', + }, + schedule_after: { + after: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + schedule_named_after: { + id: '[u8;32]', + after: 'u32', + maybePeriodic: 'Option<(u32,u32)>', + priority: 'u8', + call: 'Call', + }, + }, + }, + /** + * Lookup129: pallet_utility::pallet::Call + **/ + PalletUtilityCall: { + _enum: { + batch: { + calls: 'Vec', + }, + as_derivative: { + index: 'u16', + call: 'Call', + }, + batch_all: { + calls: 'Vec', + }, + dispatch_as: { + asOrigin: 'IntegriteeNodeRuntimeOriginCaller', + call: 'Call', + }, + force_batch: { + calls: 'Vec', + }, + with_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup131: integritee_node_runtime::OriginCaller + **/ + IntegriteeNodeRuntimeOriginCaller: { + _enum: { + system: 'FrameSupportDispatchRawOrigin', + __Unused1: 'Null', + Void: 'SpCoreVoid', + __Unused3: 'Null', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + Council: 'PalletCollectiveRawOrigin', + }, + }, + /** + * Lookup132: frame_support::dispatch::RawOrigin + **/ + FrameSupportDispatchRawOrigin: { + _enum: { + Root: 'Null', + Signed: 'AccountId32', + None: 'Null', + }, + }, + /** + * Lookup133: pallet_collective::RawOrigin + **/ + PalletCollectiveRawOrigin: { + _enum: { + Members: '(u32,u32)', + Member: 'AccountId32', + _Phantom: 'Null', + }, + }, + /** + * Lookup134: sp_core::Void + **/ + SpCoreVoid: 'Null', + /** + * Lookup135: pallet_balances::pallet::Call + **/ + PalletBalancesCall: { + _enum: { + transfer: { + dest: 'MultiAddress', + value: 'Compact', + }, + set_balance: { + who: 'MultiAddress', + newFree: 'Compact', + newReserved: 'Compact', + }, + force_transfer: { + source: 'MultiAddress', + dest: 'MultiAddress', + value: 'Compact', + }, + transfer_keep_alive: { + dest: 'MultiAddress', + value: 'Compact', + }, + transfer_all: { + dest: 'MultiAddress', + keepAlive: 'bool', + }, + force_unreserve: { + who: 'MultiAddress', + amount: 'u128', + }, + }, + }, + /** + * Lookup137: pallet_vesting::pallet::Call + **/ + PalletVestingCall: { + _enum: { + vest: 'Null', + vest_other: { + target: 'MultiAddress', + }, + vested_transfer: { + target: 'MultiAddress', + schedule: 'PalletVestingVestingInfo', + }, + force_vested_transfer: { + source: 'MultiAddress', + target: 'MultiAddress', + schedule: 'PalletVestingVestingInfo', + }, + merge_schedules: { + schedule1Index: 'u32', + schedule2Index: 'u32', + }, + }, + }, + /** + * Lookup138: pallet_vesting::vesting_info::VestingInfo + **/ + PalletVestingVestingInfo: { + locked: 'u128', + perBlock: 'u128', + startingBlock: 'u32', + }, + /** + * Lookup139: pallet_grandpa::pallet::Call + **/ + PalletGrandpaCall: { + _enum: { + report_equivocation: { + equivocationProof: 'SpFinalityGrandpaEquivocationProof', + keyOwnerProof: 'SpCoreVoid', + }, + report_equivocation_unsigned: { + equivocationProof: 'SpFinalityGrandpaEquivocationProof', + keyOwnerProof: 'SpCoreVoid', + }, + note_stalled: { + delay: 'u32', + bestFinalizedBlockNumber: 'u32', + }, + }, + }, + /** + * Lookup140: sp_finality_grandpa::EquivocationProof + **/ + SpFinalityGrandpaEquivocationProof: { + setId: 'u64', + equivocation: 'SpFinalityGrandpaEquivocation', + }, + /** + * Lookup141: sp_finality_grandpa::Equivocation + **/ + SpFinalityGrandpaEquivocation: { + _enum: { + Prevote: 'FinalityGrandpaEquivocationPrevote', + Precommit: 'FinalityGrandpaEquivocationPrecommit', + }, + }, + /** + * Lookup142: finality_grandpa::Equivocation, sp_finality_grandpa::app::Signature> + **/ + FinalityGrandpaEquivocationPrevote: { + roundNumber: 'u64', + identity: 'SpFinalityGrandpaAppPublic', + first: '(FinalityGrandpaPrevote,SpFinalityGrandpaAppSignature)', + second: '(FinalityGrandpaPrevote,SpFinalityGrandpaAppSignature)', + }, + /** + * Lookup143: finality_grandpa::Prevote + **/ + FinalityGrandpaPrevote: { + targetHash: 'H256', + targetNumber: 'u32', + }, + /** + * Lookup144: sp_finality_grandpa::app::Signature + **/ + SpFinalityGrandpaAppSignature: 'SpCoreEd25519Signature', + /** + * Lookup145: sp_core::ed25519::Signature + **/ + SpCoreEd25519Signature: '[u8;64]', + /** + * Lookup148: finality_grandpa::Equivocation, sp_finality_grandpa::app::Signature> + **/ + FinalityGrandpaEquivocationPrecommit: { + roundNumber: 'u64', + identity: 'SpFinalityGrandpaAppPublic', + first: '(FinalityGrandpaPrecommit,SpFinalityGrandpaAppSignature)', + second: '(FinalityGrandpaPrecommit,SpFinalityGrandpaAppSignature)', + }, + /** + * Lookup149: finality_grandpa::Precommit + **/ + FinalityGrandpaPrecommit: { + targetHash: 'H256', + targetNumber: 'u32', + }, + /** + * Lookup151: pallet_collective::pallet::Call + **/ + PalletCollectiveCall: { + _enum: { + set_members: { + newMembers: 'Vec', + prime: 'Option', + oldCount: 'u32', + }, + execute: { + proposal: 'Call', + lengthBound: 'Compact', + }, + propose: { + threshold: 'Compact', + proposal: 'Call', + lengthBound: 'Compact', + }, + vote: { + proposal: 'H256', + index: 'Compact', + approve: 'bool', + }, + close_old_weight: { + proposalHash: 'H256', + index: 'Compact', + proposalWeightBound: 'Compact', + lengthBound: 'Compact', + }, + disapprove_proposal: { + proposalHash: 'H256', + }, + close: { + proposalHash: 'H256', + index: 'Compact', + proposalWeightBound: 'SpWeightsWeightV2Weight', + lengthBound: 'Compact', + }, + }, + }, + /** + * Lookup154: pallet_treasury::pallet::Call + **/ + PalletTreasuryCall: { + _enum: { + propose_spend: { + value: 'Compact', + beneficiary: 'MultiAddress', + }, + reject_proposal: { + proposalId: 'Compact', + }, + approve_proposal: { + proposalId: 'Compact', + }, + spend: { + amount: 'Compact', + beneficiary: 'MultiAddress', + }, + remove_approval: { + proposalId: 'Compact', + }, + }, + }, + /** + * Lookup155: pallet_teerex::pallet::Call + **/ + PalletTeerexCall: { + _enum: { + register_enclave: { + raReport: 'Bytes', + workerUrl: 'Bytes', + shieldingKey: 'Option', + vcPubkey: 'Option', + }, + unregister_enclave: 'Null', + call_worker: { + request: 'TeerexPrimitivesRequest', + }, + confirm_processed_parentchain_block: { + blockHash: 'H256', + blockNumber: 'u32', + trustedCallsMerkleRoot: 'H256', + }, + shield_funds: { + incognitoAccountEncrypted: 'Bytes', + amount: 'u128', + bondingAccount: 'AccountId32', + }, + unshield_funds: { + publicAccount: 'AccountId32', + amount: 'u128', + bondingAccount: 'AccountId32', + callHash: 'H256', + }, + set_heartbeat_timeout: { + timeout: 'u64', + }, + register_dcap_enclave: { + dcapQuote: 'Bytes', + workerUrl: 'Bytes', + }, + update_scheduled_enclave: { + sidechainBlockNumber: 'u64', + mrEnclave: '[u8;32]', + }, + register_quoting_enclave: { + enclaveIdentity: 'Bytes', + signature: 'Bytes', + certificateChain: 'Bytes', + }, + remove_scheduled_enclave: { + sidechainBlockNumber: 'u64', + }, + register_tcb_info: { + tcbInfo: 'Bytes', + signature: 'Bytes', + certificateChain: 'Bytes', + }, + publish_hash: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + extraTopics: 'Vec', + data: 'Bytes', + }, + set_admin: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + }, + }, + /** + * Lookup157: teerex_primitives::Request + **/ + TeerexPrimitivesRequest: { + shard: 'H256', + cyphertext: 'Bytes', + }, + /** + * Lookup158: pallet_claims::pallet::Call + **/ + PalletClaimsCall: { + _enum: { + claim: { + dest: 'AccountId32', + ethereumSignature: 'ClaimsPrimitivesEcdsaSignature', + }, + mint_claim: { + who: 'ClaimsPrimitivesEthereumAddress', + value: 'u128', + vestingSchedule: 'Option<(u128,u128,u32)>', + statement: 'Option', + }, + claim_attest: { + dest: 'AccountId32', + ethereumSignature: 'ClaimsPrimitivesEcdsaSignature', + statement: 'Bytes', + }, + attest: { + statement: 'Bytes', + }, + move_claim: { + _alias: { + new_: 'new', + }, + old: 'ClaimsPrimitivesEthereumAddress', + new_: 'ClaimsPrimitivesEthereumAddress', + maybePreclaim: 'Option', + }, + }, + }, + /** + * Lookup159: claims_primitives::EcdsaSignature + **/ + ClaimsPrimitivesEcdsaSignature: '[u8;65]', + /** + * Lookup164: claims_primitives::StatementKind + **/ + ClaimsPrimitivesStatementKind: { + _enum: ['Regular', 'Saft'], + }, + /** + * Lookup165: pallet_teeracle::pallet::Call + **/ + PalletTeeracleCall: { + _enum: { + add_to_whitelist: { + dataSource: 'Text', + mrenclave: '[u8;32]', + }, + remove_from_whitelist: { + dataSource: 'Text', + mrenclave: '[u8;32]', + }, + update_oracle: { + oracleName: 'Text', + dataSource: 'Text', + newBlob: 'Bytes', + }, + update_exchange_rate: { + dataSource: 'Text', + tradingPair: 'Text', + newValue: 'Option', + }, + }, + }, + /** + * Lookup167: pallet_sidechain::pallet::Call + **/ + PalletSidechainCall: { + _enum: { + confirm_imported_sidechain_block: { + shardId: 'H256', + blockNumber: 'u64', + nextFinalizationCandidateBlockNumber: 'u64', + blockHeaderHash: 'H256', + }, + }, + }, + /** + * Lookup168: pallet_identity_management::pallet::Call + **/ + PalletIdentityManagementCall: { + _enum: { + add_delegatee: { + account: 'AccountId32', + }, + remove_delegatee: { + account: 'AccountId32', + }, + set_user_shielding_key: { + shard: 'H256', + encryptedKey: 'Bytes', + }, + create_identity: { + shard: 'H256', + user: 'AccountId32', + encryptedIdentity: 'Bytes', + encryptedMetadata: 'Option', + }, + remove_identity: { + shard: 'H256', + encryptedIdentity: 'Bytes', + }, + verify_identity: { + shard: 'H256', + encryptedIdentity: 'Bytes', + encryptedValidationData: 'Bytes', + }, + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + user_shielding_key_set: { + account: 'AccountId32', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + identity_created: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + identity_removed: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + identity_verified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + some_error: { + account: 'Option', + error: 'CorePrimitivesErrorImpError', + reqExtHash: 'H256', + }, + }, + }, + /** + * Lookup169: core_primitives::error::IMPError + **/ + CorePrimitivesErrorImpError: { + _enum: { + SetUserShieldingKeyFailed: 'CorePrimitivesErrorErrorDetail', + CreateIdentityFailed: 'CorePrimitivesErrorErrorDetail', + RemoveIdentityFailed: 'CorePrimitivesErrorErrorDetail', + VerifyIdentityFailed: 'CorePrimitivesErrorErrorDetail', + ImportScheduledEnclaveFailed: 'Null', + UnclassifiedError: 'CorePrimitivesErrorErrorDetail', + }, + }, + /** + * Lookup170: pallet_vc_management::pallet::Call + **/ + PalletVcManagementCall: { + _enum: { + request_vc: { + shard: 'H256', + assertion: 'CorePrimitivesAssertion', + }, + disable_vc: { + index: 'H256', + }, + revoke_vc: { + index: 'H256', + }, + set_admin: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + add_schema: { + shard: 'H256', + id: 'Bytes', + content: 'Bytes', + }, + disable_schema: { + shard: 'H256', + index: 'u64', + }, + activate_schema: { + shard: 'H256', + index: 'u64', + }, + revoke_schema: { + shard: 'H256', + index: 'u64', + }, + add_vc_registry_item: { + _alias: { + hash_: 'hash', + }, + index: 'H256', + subject: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + hash_: 'H256', + }, + remove_vc_registry_item: { + index: 'H256', + }, + clear_vc_registry: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + __Unused23: 'Null', + __Unused24: 'Null', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + vc_issued: { + _alias: { + hash_: 'hash', + }, + account: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + index: 'H256', + hash_: 'H256', + vc: 'CorePrimitivesKeyAesOutput', + reqExtHash: 'H256', + }, + some_error: { + account: 'Option', + error: 'CorePrimitivesErrorVcmpError', + reqExtHash: 'H256', + }, + }, + }, + /** + * Lookup171: core_primitives::error::VCMPError + **/ + CorePrimitivesErrorVcmpError: { + _enum: { + RequestVCFailed: '(CorePrimitivesAssertion,CorePrimitivesErrorErrorDetail)', + UnclassifiedError: 'CorePrimitivesErrorErrorDetail', + }, + }, + /** + * Lookup172: pallet_group::pallet::Call + **/ + PalletGroupCall: { + _enum: { + add_group_member: { + v: 'AccountId32', + }, + batch_add_group_members: { + vs: 'Vec', + }, + remove_group_member: { + v: 'AccountId32', + }, + batch_remove_group_members: { + vs: 'Vec', + }, + switch_group_control_on: 'Null', + switch_group_control_off: 'Null', + }, + }, + /** + * Lookup174: pallet_sudo::pallet::Error + **/ + PalletSudoError: { + _enum: ['RequireSudo'], + }, + /** + * Lookup176: pallet_multisig::Multisig + **/ + PalletMultisigMultisig: { + when: 'PalletMultisigTimepoint', + deposit: 'u128', + depositor: 'AccountId32', + approvals: 'Vec', + }, + /** + * Lookup178: pallet_multisig::pallet::Error + **/ + PalletMultisigError: { + _enum: [ + 'MinimumThreshold', + 'AlreadyApproved', + 'NoApprovalsNeeded', + 'TooFewSignatories', + 'TooManySignatories', + 'SignatoriesOutOfOrder', + 'SenderInSignatories', + 'NotFound', + 'NotOwner', + 'NoTimepoint', + 'WrongTimepoint', + 'UnexpectedTimepoint', + 'MaxWeightTooLow', + 'AlreadyStored', + ], + }, + /** + * Lookup181: pallet_proxy::ProxyDefinition + **/ + PalletProxyProxyDefinition: { + delegate: 'AccountId32', + proxyType: 'IntegriteeNodeRuntimeProxyType', + delay: 'u32', + }, + /** + * Lookup185: pallet_proxy::Announcement + **/ + PalletProxyAnnouncement: { + real: 'AccountId32', + callHash: 'H256', + height: 'u32', + }, + /** + * Lookup187: pallet_proxy::pallet::Error + **/ + PalletProxyError: { + _enum: [ + 'TooMany', + 'NotFound', + 'NotProxy', + 'Unproxyable', + 'Duplicate', + 'NoPermission', + 'Unannounced', + 'NoSelfProxy', + ], + }, + /** + * Lookup190: pallet_scheduler::Scheduled, BlockNumber, integritee_node_runtime::OriginCaller, sp_core::crypto::AccountId32> + **/ + PalletSchedulerScheduled: { + maybeId: 'Option<[u8;32]>', + priority: 'u8', + call: 'FrameSupportPreimagesBounded', + maybePeriodic: 'Option<(u32,u32)>', + origin: 'IntegriteeNodeRuntimeOriginCaller', + }, + /** + * Lookup191: frame_support::traits::preimages::Bounded + **/ + FrameSupportPreimagesBounded: { + _enum: { + Legacy: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Inline: 'Bytes', + Lookup: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + len: 'u32', + }, + }, + }, + /** + * Lookup194: pallet_scheduler::pallet::Error + **/ + PalletSchedulerError: { + _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange', 'Named'], + }, + /** + * Lookup195: pallet_utility::pallet::Error + **/ + PalletUtilityError: { + _enum: ['TooManyCalls'], + }, + /** + * Lookup197: pallet_balances::BalanceLock + **/ + PalletBalancesBalanceLock: { + id: '[u8;8]', + amount: 'u128', + reasons: 'PalletBalancesReasons', + }, + /** + * Lookup198: pallet_balances::Reasons + **/ + PalletBalancesReasons: { + _enum: ['Fee', 'Misc', 'All'], + }, + /** + * Lookup201: pallet_balances::ReserveData + **/ + PalletBalancesReserveData: { + id: '[u8;8]', + amount: 'u128', + }, + /** + * Lookup203: pallet_balances::pallet::Error + **/ + PalletBalancesError: { + _enum: [ + 'VestingBalance', + 'LiquidityRestrictions', + 'InsufficientBalance', + 'ExistentialDeposit', + 'KeepAlive', + 'ExistingVestingSchedule', + 'DeadAccount', + 'TooManyReserves', + ], + }, + /** + * Lookup205: pallet_transaction_payment::Releases + **/ + PalletTransactionPaymentReleases: { + _enum: ['V1Ancient', 'V2'], + }, + /** + * Lookup208: pallet_vesting::Releases + **/ + PalletVestingReleases: { + _enum: ['V0', 'V1'], + }, + /** + * Lookup209: pallet_vesting::pallet::Error + **/ + PalletVestingError: { + _enum: [ + 'NotVesting', + 'AtMaxVestingSchedules', + 'AmountLow', + 'ScheduleIndexOutOfBounds', + 'InvalidScheduleParams', + ], + }, + /** + * Lookup210: pallet_grandpa::StoredState + **/ + PalletGrandpaStoredState: { + _enum: { + Live: 'Null', + PendingPause: { + scheduledAt: 'u32', + delay: 'u32', + }, + Paused: 'Null', + PendingResume: { + scheduledAt: 'u32', + delay: 'u32', + }, + }, + }, + /** + * Lookup211: pallet_grandpa::StoredPendingChange + **/ + PalletGrandpaStoredPendingChange: { + scheduledAt: 'u32', + delay: 'u32', + nextAuthorities: 'Vec<(SpFinalityGrandpaAppPublic,u64)>', + forced: 'Option', + }, + /** + * Lookup213: pallet_grandpa::pallet::Error + **/ + PalletGrandpaError: { + _enum: [ + 'PauseFailed', + 'ResumeFailed', + 'ChangePending', + 'TooSoon', + 'InvalidKeyOwnershipProof', + 'InvalidEquivocationProof', + 'DuplicateOffenceReport', + ], + }, + /** + * Lookup215: pallet_collective::Votes + **/ + PalletCollectiveVotes: { + index: 'u32', + threshold: 'u32', + ayes: 'Vec', + nays: 'Vec', + end: 'u32', + }, + /** + * Lookup216: pallet_collective::pallet::Error + **/ + PalletCollectiveError: { + _enum: [ + 'NotMember', + 'DuplicateProposal', + 'ProposalMissing', + 'WrongIndex', + 'DuplicateVote', + 'AlreadyInitialized', + 'TooEarly', + 'TooManyProposals', + 'WrongProposalWeight', + 'WrongProposalLength', + ], + }, + /** + * Lookup217: pallet_treasury::Proposal + **/ + PalletTreasuryProposal: { + proposer: 'AccountId32', + value: 'u128', + beneficiary: 'AccountId32', + bond: 'u128', + }, + /** + * Lookup222: frame_support::PalletId + **/ + FrameSupportPalletId: '[u8;8]', + /** + * Lookup223: pallet_treasury::pallet::Error + **/ + PalletTreasuryError: { + _enum: [ + 'InsufficientProposersBalance', + 'InvalidIndex', + 'TooManyApprovals', + 'InsufficientPermission', + 'ProposalNotApproved', + ], + }, + /** + * Lookup224: teerex_primitives::Enclave + **/ + TeerexPrimitivesEnclave: { + pubkey: 'AccountId32', + mrEnclave: '[u8;32]', + timestamp: 'u64', + url: 'Bytes', + shieldingKey: 'Option', + vcPubkey: 'Option', + sgxMode: 'TeerexPrimitivesSgxBuildMode', + sgxMetadata: 'TeerexPrimitivesSgxEnclaveMetadata', + }, + /** + * Lookup225: teerex_primitives::SgxBuildMode + **/ + TeerexPrimitivesSgxBuildMode: { + _enum: ['Debug', 'Production'], + }, + /** + * Lookup226: teerex_primitives::SgxEnclaveMetadata + **/ + TeerexPrimitivesSgxEnclaveMetadata: { + quote: 'Bytes', + quoteSig: 'Bytes', + quoteCert: 'Bytes', + }, + /** + * Lookup227: teerex_primitives::QuotingEnclave + **/ + TeerexPrimitivesQuotingEnclave: { + issueDate: 'u64', + nextUpdate: 'u64', + miscselect: '[u8;4]', + miscselectMask: '[u8;4]', + attributes: '[u8;16]', + attributesMask: '[u8;16]', + mrsigner: '[u8;32]', + isvprodid: 'u16', + tcb: 'Vec', + }, + /** + * Lookup230: teerex_primitives::QeTcb + **/ + TeerexPrimitivesQeTcb: { + isvsvn: 'u16', + }, + /** + * Lookup232: teerex_primitives::TcbInfoOnChain + **/ + TeerexPrimitivesTcbInfoOnChain: { + issueDate: 'u64', + nextUpdate: 'u64', + tcbLevels: 'Vec', + }, + /** + * Lookup234: teerex_primitives::TcbVersionStatus + **/ + TeerexPrimitivesTcbVersionStatus: { + cpusvn: '[u8;16]', + pcesvn: 'u16', + }, + /** + * Lookup235: pallet_teerex::pallet::Error + **/ + PalletTeerexError: { + _enum: [ + 'RequireAdmin', + 'EnclaveSignerDecodeError', + 'SenderIsNotAttestedEnclave', + 'RemoteAttestationVerificationFailed', + 'RemoteAttestationTooOld', + 'SgxModeNotAllowed', + 'EnclaveIsNotRegistered', + 'WrongMrenclaveForBondingAccount', + 'WrongMrenclaveForShard', + 'EnclaveUrlTooLong', + 'RaReportTooLong', + 'EmptyEnclaveRegistry', + 'ScheduledEnclaveNotExist', + 'EnclaveNotInSchedule', + 'CollateralInvalid', + 'TooManyTopics', + 'DataTooLong', + ], + }, + /** + * Lookup236: pallet_claims::pallet::Error + **/ + PalletClaimsError: { + _enum: [ + 'InvalidEthereumSignature', + 'SignerHasNoClaim', + 'SenderHasNoClaim', + 'PotUnderflow', + 'InvalidStatement', + 'VestedBalanceExists', + ], + }, + /** + * Lookup240: pallet_teeracle::pallet::Error + **/ + PalletTeeracleError: { + _enum: [ + 'InvalidCurrency', + 'ReleaseWhitelistOverflow', + 'ReleaseNotWhitelisted', + 'ReleaseAlreadyWhitelisted', + 'TradingPairStringTooLong', + 'OracleDataNameStringTooLong', + 'DataSourceStringTooLong', + 'OracleBlobTooBig', + ], + }, + /** + * Lookup241: sidechain_primitives::SidechainBlockConfirmation + **/ + SidechainPrimitivesSidechainBlockConfirmation: { + blockNumber: 'u64', + blockHeaderHash: 'H256', + }, + /** + * Lookup242: pallet_sidechain::pallet::Error + **/ + PalletSidechainError: { + _enum: ['ReceivedUnexpectedSidechainBlock', 'InvalidNextFinalizationCandidateBlockNumber'], + }, + /** + * Lookup243: pallet_identity_management::pallet::Error + **/ + PalletIdentityManagementError: { + _enum: ['DelegateeNotExist', 'UnauthorisedUser'], + }, + /** + * Lookup244: pallet_vc_management::vc_context::VCContext + **/ + PalletVcManagementVcContext: { + _alias: { + hash_: 'hash', + }, + subject: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + hash_: 'H256', + status: 'PalletVcManagementVcContextStatus', + }, + /** + * Lookup245: pallet_vc_management::vc_context::Status + **/ + PalletVcManagementVcContextStatus: { + _enum: ['Active', 'Disabled'], + }, + /** + * Lookup246: pallet_vc_management::schema::VCSchema + **/ + PalletVcManagementSchemaVcSchema: { + id: 'Bytes', + author: 'AccountId32', + content: 'Bytes', + status: 'PalletVcManagementVcContextStatus', + }, + /** + * Lookup249: pallet_vc_management::pallet::Error + **/ + PalletVcManagementError: { + _enum: [ + 'VCAlreadyExists', + 'VCNotExist', + 'VCSubjectMismatch', + 'VCAlreadyDisabled', + 'RequireAdmin', + 'SchemaNotExists', + 'SchemaAlreadyDisabled', + 'SchemaAlreadyActivated', + 'SchemaIndexOverFlow', + 'LengthMismatch', + ], + }, + /** + * Lookup250: pallet_group::pallet::Error + **/ + PalletGroupError: { + _enum: ['GroupMemberAlreadyExists', 'GroupMemberInvalid'], + }, + /** + * Lookup253: sp_runtime::MultiSignature + **/ + SpRuntimeMultiSignature: { + _enum: { + Ed25519: 'SpCoreEd25519Signature', + Sr25519: 'SpCoreSr25519Signature', + Ecdsa: 'SpCoreEcdsaSignature', + }, + }, + /** + * Lookup254: sp_core::sr25519::Signature + **/ + SpCoreSr25519Signature: '[u8;64]', + /** + * Lookup255: sp_core::ecdsa::Signature + **/ + SpCoreEcdsaSignature: '[u8;65]', + /** + * Lookup257: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender + **/ + FrameSystemExtensionsCheckNonZeroSender: 'Null', + /** + * Lookup258: frame_system::extensions::check_spec_version::CheckSpecVersion + **/ + FrameSystemExtensionsCheckSpecVersion: 'Null', + /** + * Lookup259: frame_system::extensions::check_tx_version::CheckTxVersion + **/ + FrameSystemExtensionsCheckTxVersion: 'Null', + /** + * Lookup260: frame_system::extensions::check_genesis::CheckGenesis + **/ + FrameSystemExtensionsCheckGenesis: 'Null', + /** + * Lookup263: frame_system::extensions::check_nonce::CheckNonce + **/ + FrameSystemExtensionsCheckNonce: 'Compact', + /** + * Lookup264: frame_system::extensions::check_weight::CheckWeight + **/ + FrameSystemExtensionsCheckWeight: 'Null', + /** + * Lookup265: pallet_transaction_payment::ChargeTransactionPayment + **/ + PalletTransactionPaymentChargeTransactionPayment: 'Compact', + /** + * Lookup266: integritee_node_runtime::Runtime + **/ + IntegriteeNodeRuntimeRuntime: 'Null', +}; diff --git a/tee-worker/ts-tests/interfaces/registry.ts b/tee-worker/ts-tests/interfaces/registry.ts new file mode 100644 index 0000000000..44fc54570d --- /dev/null +++ b/tee-worker/ts-tests/interfaces/registry.ts @@ -0,0 +1,324 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/types/registry'; + +import type { + ClaimsPrimitivesEcdsaSignature, + ClaimsPrimitivesEthereumAddress, + ClaimsPrimitivesStatementKind, + CorePrimitivesAssertion, + CorePrimitivesAssertionIndexingNetwork, + CorePrimitivesErrorErrorDetail, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + FinalityGrandpaEquivocationPrecommit, + FinalityGrandpaEquivocationPrevote, + FinalityGrandpaPrecommit, + FinalityGrandpaPrevote, + FrameSupportDispatchDispatchClass, + FrameSupportDispatchDispatchInfo, + FrameSupportDispatchPays, + FrameSupportDispatchPerDispatchClassU32, + FrameSupportDispatchPerDispatchClassWeight, + FrameSupportDispatchPerDispatchClassWeightsPerClass, + FrameSupportDispatchRawOrigin, + FrameSupportPalletId, + FrameSupportPreimagesBounded, + FrameSupportTokensMiscBalanceStatus, + FrameSystemAccountInfo, + FrameSystemCall, + FrameSystemError, + FrameSystemEvent, + FrameSystemEventRecord, + FrameSystemExtensionsCheckGenesis, + FrameSystemExtensionsCheckNonZeroSender, + FrameSystemExtensionsCheckNonce, + FrameSystemExtensionsCheckSpecVersion, + FrameSystemExtensionsCheckTxVersion, + FrameSystemExtensionsCheckWeight, + FrameSystemLastRuntimeUpgradeInfo, + FrameSystemLimitsBlockLength, + FrameSystemLimitsBlockWeights, + FrameSystemLimitsWeightsPerClass, + FrameSystemPhase, + IntegriteeNodeRuntimeOriginCaller, + IntegriteeNodeRuntimeProxyType, + IntegriteeNodeRuntimeRuntime, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesCall, + PalletBalancesError, + PalletBalancesEvent, + PalletBalancesReasons, + PalletBalancesReserveData, + PalletClaimsCall, + PalletClaimsError, + PalletClaimsEvent, + PalletCollectiveCall, + PalletCollectiveError, + PalletCollectiveEvent, + PalletCollectiveRawOrigin, + PalletCollectiveVotes, + PalletGrandpaCall, + PalletGrandpaError, + PalletGrandpaEvent, + PalletGrandpaStoredPendingChange, + PalletGrandpaStoredState, + PalletGroupCall, + PalletGroupError, + PalletGroupEvent, + PalletIdentityManagementCall, + PalletIdentityManagementError, + PalletIdentityManagementEvent, + PalletMultisigCall, + PalletMultisigError, + PalletMultisigEvent, + PalletMultisigMultisig, + PalletMultisigTimepoint, + PalletPreimageCall, + PalletPreimageError, + PalletPreimageEvent, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyCall, + PalletProxyError, + PalletProxyEvent, + PalletProxyProxyDefinition, + PalletSchedulerCall, + PalletSchedulerError, + PalletSchedulerEvent, + PalletSchedulerScheduled, + PalletSidechainCall, + PalletSidechainError, + PalletSidechainEvent, + PalletSudoCall, + PalletSudoError, + PalletSudoEvent, + PalletTeeracleCall, + PalletTeeracleError, + PalletTeeracleEvent, + PalletTeerexCall, + PalletTeerexError, + PalletTeerexEvent, + PalletTimestampCall, + PalletTransactionPaymentChargeTransactionPayment, + PalletTransactionPaymentEvent, + PalletTransactionPaymentReleases, + PalletTreasuryCall, + PalletTreasuryError, + PalletTreasuryEvent, + PalletTreasuryProposal, + PalletUtilityCall, + PalletUtilityError, + PalletUtilityEvent, + PalletVcManagementCall, + PalletVcManagementError, + PalletVcManagementEvent, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVcManagementVcContextStatus, + PalletVestingCall, + PalletVestingError, + PalletVestingEvent, + PalletVestingReleases, + PalletVestingVestingInfo, + SidechainPrimitivesSidechainBlockConfirmation, + SpArithmeticArithmeticError, + SpCoreEcdsaSignature, + SpCoreEd25519Public, + SpCoreEd25519Signature, + SpCoreSr25519Signature, + SpCoreVoid, + SpFinalityGrandpaAppPublic, + SpFinalityGrandpaAppSignature, + SpFinalityGrandpaEquivocation, + SpFinalityGrandpaEquivocationProof, + SpRuntimeDigest, + SpRuntimeDigestDigestItem, + SpRuntimeDispatchError, + SpRuntimeModuleError, + SpRuntimeMultiSignature, + SpRuntimeTokenError, + SpRuntimeTransactionalError, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQeTcb, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesRequest, + TeerexPrimitivesSgxBuildMode, + TeerexPrimitivesSgxEnclaveMetadata, + TeerexPrimitivesTcbInfoOnChain, + TeerexPrimitivesTcbVersionStatus, + TypenumBitB0, + TypenumBitB1, + TypenumUIntUInt, + TypenumUIntUTerm, + TypenumUintUTerm, +} from '@polkadot/types/lookup'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + ClaimsPrimitivesEcdsaSignature: ClaimsPrimitivesEcdsaSignature; + ClaimsPrimitivesEthereumAddress: ClaimsPrimitivesEthereumAddress; + ClaimsPrimitivesStatementKind: ClaimsPrimitivesStatementKind; + CorePrimitivesAssertion: CorePrimitivesAssertion; + CorePrimitivesAssertionIndexingNetwork: CorePrimitivesAssertionIndexingNetwork; + CorePrimitivesErrorErrorDetail: CorePrimitivesErrorErrorDetail; + CorePrimitivesErrorImpError: CorePrimitivesErrorImpError; + CorePrimitivesErrorVcmpError: CorePrimitivesErrorVcmpError; + CorePrimitivesKeyAesOutput: CorePrimitivesKeyAesOutput; + FinalityGrandpaEquivocationPrecommit: FinalityGrandpaEquivocationPrecommit; + FinalityGrandpaEquivocationPrevote: FinalityGrandpaEquivocationPrevote; + FinalityGrandpaPrecommit: FinalityGrandpaPrecommit; + FinalityGrandpaPrevote: FinalityGrandpaPrevote; + FrameSupportDispatchDispatchClass: FrameSupportDispatchDispatchClass; + FrameSupportDispatchDispatchInfo: FrameSupportDispatchDispatchInfo; + FrameSupportDispatchPays: FrameSupportDispatchPays; + FrameSupportDispatchPerDispatchClassU32: FrameSupportDispatchPerDispatchClassU32; + FrameSupportDispatchPerDispatchClassWeight: FrameSupportDispatchPerDispatchClassWeight; + FrameSupportDispatchPerDispatchClassWeightsPerClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin; + FrameSupportPalletId: FrameSupportPalletId; + FrameSupportPreimagesBounded: FrameSupportPreimagesBounded; + FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus; + FrameSystemAccountInfo: FrameSystemAccountInfo; + FrameSystemCall: FrameSystemCall; + FrameSystemError: FrameSystemError; + FrameSystemEvent: FrameSystemEvent; + FrameSystemEventRecord: FrameSystemEventRecord; + FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis; + FrameSystemExtensionsCheckNonZeroSender: FrameSystemExtensionsCheckNonZeroSender; + FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce; + FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion; + FrameSystemExtensionsCheckTxVersion: FrameSystemExtensionsCheckTxVersion; + FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight; + FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo; + FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength; + FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights; + FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass; + FrameSystemPhase: FrameSystemPhase; + IntegriteeNodeRuntimeOriginCaller: IntegriteeNodeRuntimeOriginCaller; + IntegriteeNodeRuntimeProxyType: IntegriteeNodeRuntimeProxyType; + IntegriteeNodeRuntimeRuntime: IntegriteeNodeRuntimeRuntime; + PalletBalancesAccountData: PalletBalancesAccountData; + PalletBalancesBalanceLock: PalletBalancesBalanceLock; + PalletBalancesCall: PalletBalancesCall; + PalletBalancesError: PalletBalancesError; + PalletBalancesEvent: PalletBalancesEvent; + PalletBalancesReasons: PalletBalancesReasons; + PalletBalancesReserveData: PalletBalancesReserveData; + PalletClaimsCall: PalletClaimsCall; + PalletClaimsError: PalletClaimsError; + PalletClaimsEvent: PalletClaimsEvent; + PalletCollectiveCall: PalletCollectiveCall; + PalletCollectiveError: PalletCollectiveError; + PalletCollectiveEvent: PalletCollectiveEvent; + PalletCollectiveRawOrigin: PalletCollectiveRawOrigin; + PalletCollectiveVotes: PalletCollectiveVotes; + PalletGrandpaCall: PalletGrandpaCall; + PalletGrandpaError: PalletGrandpaError; + PalletGrandpaEvent: PalletGrandpaEvent; + PalletGrandpaStoredPendingChange: PalletGrandpaStoredPendingChange; + PalletGrandpaStoredState: PalletGrandpaStoredState; + PalletGroupCall: PalletGroupCall; + PalletGroupError: PalletGroupError; + PalletGroupEvent: PalletGroupEvent; + PalletIdentityManagementCall: PalletIdentityManagementCall; + PalletIdentityManagementError: PalletIdentityManagementError; + PalletIdentityManagementEvent: PalletIdentityManagementEvent; + PalletMultisigCall: PalletMultisigCall; + PalletMultisigError: PalletMultisigError; + PalletMultisigEvent: PalletMultisigEvent; + PalletMultisigMultisig: PalletMultisigMultisig; + PalletMultisigTimepoint: PalletMultisigTimepoint; + PalletPreimageCall: PalletPreimageCall; + PalletPreimageError: PalletPreimageError; + PalletPreimageEvent: PalletPreimageEvent; + PalletPreimageRequestStatus: PalletPreimageRequestStatus; + PalletProxyAnnouncement: PalletProxyAnnouncement; + PalletProxyCall: PalletProxyCall; + PalletProxyError: PalletProxyError; + PalletProxyEvent: PalletProxyEvent; + PalletProxyProxyDefinition: PalletProxyProxyDefinition; + PalletSchedulerCall: PalletSchedulerCall; + PalletSchedulerError: PalletSchedulerError; + PalletSchedulerEvent: PalletSchedulerEvent; + PalletSchedulerScheduled: PalletSchedulerScheduled; + PalletSidechainCall: PalletSidechainCall; + PalletSidechainError: PalletSidechainError; + PalletSidechainEvent: PalletSidechainEvent; + PalletSudoCall: PalletSudoCall; + PalletSudoError: PalletSudoError; + PalletSudoEvent: PalletSudoEvent; + PalletTeeracleCall: PalletTeeracleCall; + PalletTeeracleError: PalletTeeracleError; + PalletTeeracleEvent: PalletTeeracleEvent; + PalletTeerexCall: PalletTeerexCall; + PalletTeerexError: PalletTeerexError; + PalletTeerexEvent: PalletTeerexEvent; + PalletTimestampCall: PalletTimestampCall; + PalletTransactionPaymentChargeTransactionPayment: PalletTransactionPaymentChargeTransactionPayment; + PalletTransactionPaymentEvent: PalletTransactionPaymentEvent; + PalletTransactionPaymentReleases: PalletTransactionPaymentReleases; + PalletTreasuryCall: PalletTreasuryCall; + PalletTreasuryError: PalletTreasuryError; + PalletTreasuryEvent: PalletTreasuryEvent; + PalletTreasuryProposal: PalletTreasuryProposal; + PalletUtilityCall: PalletUtilityCall; + PalletUtilityError: PalletUtilityError; + PalletUtilityEvent: PalletUtilityEvent; + PalletVcManagementCall: PalletVcManagementCall; + PalletVcManagementError: PalletVcManagementError; + PalletVcManagementEvent: PalletVcManagementEvent; + PalletVcManagementSchemaVcSchema: PalletVcManagementSchemaVcSchema; + PalletVcManagementVcContext: PalletVcManagementVcContext; + PalletVcManagementVcContextStatus: PalletVcManagementVcContextStatus; + PalletVestingCall: PalletVestingCall; + PalletVestingError: PalletVestingError; + PalletVestingEvent: PalletVestingEvent; + PalletVestingReleases: PalletVestingReleases; + PalletVestingVestingInfo: PalletVestingVestingInfo; + SidechainPrimitivesSidechainBlockConfirmation: SidechainPrimitivesSidechainBlockConfirmation; + SpArithmeticArithmeticError: SpArithmeticArithmeticError; + SpCoreEcdsaSignature: SpCoreEcdsaSignature; + SpCoreEd25519Public: SpCoreEd25519Public; + SpCoreEd25519Signature: SpCoreEd25519Signature; + SpCoreSr25519Signature: SpCoreSr25519Signature; + SpCoreVoid: SpCoreVoid; + SpFinalityGrandpaAppPublic: SpFinalityGrandpaAppPublic; + SpFinalityGrandpaAppSignature: SpFinalityGrandpaAppSignature; + SpFinalityGrandpaEquivocation: SpFinalityGrandpaEquivocation; + SpFinalityGrandpaEquivocationProof: SpFinalityGrandpaEquivocationProof; + SpRuntimeDigest: SpRuntimeDigest; + SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem; + SpRuntimeDispatchError: SpRuntimeDispatchError; + SpRuntimeModuleError: SpRuntimeModuleError; + SpRuntimeMultiSignature: SpRuntimeMultiSignature; + SpRuntimeTokenError: SpRuntimeTokenError; + SpRuntimeTransactionalError: SpRuntimeTransactionalError; + SpVersionRuntimeVersion: SpVersionRuntimeVersion; + SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight; + SpWeightsWeightV2Weight: SpWeightsWeightV2Weight; + SubstrateFixedFixedU64: SubstrateFixedFixedU64; + TeerexPrimitivesEnclave: TeerexPrimitivesEnclave; + TeerexPrimitivesQeTcb: TeerexPrimitivesQeTcb; + TeerexPrimitivesQuotingEnclave: TeerexPrimitivesQuotingEnclave; + TeerexPrimitivesRequest: TeerexPrimitivesRequest; + TeerexPrimitivesSgxBuildMode: TeerexPrimitivesSgxBuildMode; + TeerexPrimitivesSgxEnclaveMetadata: TeerexPrimitivesSgxEnclaveMetadata; + TeerexPrimitivesTcbInfoOnChain: TeerexPrimitivesTcbInfoOnChain; + TeerexPrimitivesTcbVersionStatus: TeerexPrimitivesTcbVersionStatus; + TypenumBitB0: TypenumBitB0; + TypenumBitB1: TypenumBitB1; + TypenumUIntUInt: TypenumUIntUInt; + TypenumUIntUTerm: TypenumUIntUTerm; + TypenumUintUTerm: TypenumUintUTerm; + } // InterfaceTypes +} // declare module diff --git a/tee-worker/ts-tests/interfaces/types-lookup.ts b/tee-worker/ts-tests/interfaces/types-lookup.ts new file mode 100644 index 0000000000..4ede090d06 --- /dev/null +++ b/tee-worker/ts-tests/interfaces/types-lookup.ts @@ -0,0 +1,2611 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +// import type lookup before we augment - in some environments +// this is required to allow for ambient/previous definitions +import '@polkadot/types/lookup'; + +import type { + Bytes, + Compact, + Enum, + Null, + Option, + Result, + Struct, + Text, + U8aFixed, + Vec, + bool, + u128, + u16, + u32, + u64, + u8, +} from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; +import type { Event } from '@polkadot/types/interfaces/system'; + +declare module '@polkadot/types/lookup' { + /** @name FrameSystemAccountInfo (3) */ + interface FrameSystemAccountInfo extends Struct { + readonly nonce: u32; + readonly consumers: u32; + readonly providers: u32; + readonly sufficients: u32; + readonly data: PalletBalancesAccountData; + } + + /** @name PalletBalancesAccountData (5) */ + interface PalletBalancesAccountData extends Struct { + readonly free: u128; + readonly reserved: u128; + readonly miscFrozen: u128; + readonly feeFrozen: u128; + } + + /** @name FrameSupportDispatchPerDispatchClassWeight (7) */ + interface FrameSupportDispatchPerDispatchClassWeight extends Struct { + readonly normal: SpWeightsWeightV2Weight; + readonly operational: SpWeightsWeightV2Weight; + readonly mandatory: SpWeightsWeightV2Weight; + } + + /** @name SpWeightsWeightV2Weight (8) */ + interface SpWeightsWeightV2Weight extends Struct { + readonly refTime: Compact; + readonly proofSize: Compact; + } + + /** @name SpRuntimeDigest (13) */ + interface SpRuntimeDigest extends Struct { + readonly logs: Vec; + } + + /** @name SpRuntimeDigestDigestItem (15) */ + interface SpRuntimeDigestDigestItem extends Enum { + readonly isOther: boolean; + readonly asOther: Bytes; + readonly isConsensus: boolean; + readonly asConsensus: ITuple<[U8aFixed, Bytes]>; + readonly isSeal: boolean; + readonly asSeal: ITuple<[U8aFixed, Bytes]>; + readonly isPreRuntime: boolean; + readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>; + readonly isRuntimeEnvironmentUpdated: boolean; + readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated'; + } + + /** @name FrameSystemEventRecord (18) */ + interface FrameSystemEventRecord extends Struct { + readonly phase: FrameSystemPhase; + readonly event: Event; + readonly topics: Vec; + } + + /** @name FrameSystemEvent (20) */ + interface FrameSystemEvent extends Enum { + readonly isExtrinsicSuccess: boolean; + readonly asExtrinsicSuccess: { + readonly dispatchInfo: FrameSupportDispatchDispatchInfo; + } & Struct; + readonly isExtrinsicFailed: boolean; + readonly asExtrinsicFailed: { + readonly dispatchError: SpRuntimeDispatchError; + readonly dispatchInfo: FrameSupportDispatchDispatchInfo; + } & Struct; + readonly isCodeUpdated: boolean; + readonly isNewAccount: boolean; + readonly asNewAccount: { + readonly account: AccountId32; + } & Struct; + readonly isKilledAccount: boolean; + readonly asKilledAccount: { + readonly account: AccountId32; + } & Struct; + readonly isRemarked: boolean; + readonly asRemarked: { + readonly sender: AccountId32; + readonly hash_: H256; + } & Struct; + readonly type: + | 'ExtrinsicSuccess' + | 'ExtrinsicFailed' + | 'CodeUpdated' + | 'NewAccount' + | 'KilledAccount' + | 'Remarked'; + } + + /** @name FrameSupportDispatchDispatchInfo (21) */ + interface FrameSupportDispatchDispatchInfo extends Struct { + readonly weight: SpWeightsWeightV2Weight; + readonly class: FrameSupportDispatchDispatchClass; + readonly paysFee: FrameSupportDispatchPays; + } + + /** @name FrameSupportDispatchDispatchClass (22) */ + interface FrameSupportDispatchDispatchClass extends Enum { + readonly isNormal: boolean; + readonly isOperational: boolean; + readonly isMandatory: boolean; + readonly type: 'Normal' | 'Operational' | 'Mandatory'; + } + + /** @name FrameSupportDispatchPays (23) */ + interface FrameSupportDispatchPays extends Enum { + readonly isYes: boolean; + readonly isNo: boolean; + readonly type: 'Yes' | 'No'; + } + + /** @name SpRuntimeDispatchError (24) */ + interface SpRuntimeDispatchError extends Enum { + readonly isOther: boolean; + readonly isCannotLookup: boolean; + readonly isBadOrigin: boolean; + readonly isModule: boolean; + readonly asModule: SpRuntimeModuleError; + readonly isConsumerRemaining: boolean; + readonly isNoProviders: boolean; + readonly isTooManyConsumers: boolean; + readonly isToken: boolean; + readonly asToken: SpRuntimeTokenError; + readonly isArithmetic: boolean; + readonly asArithmetic: SpArithmeticArithmeticError; + readonly isTransactional: boolean; + readonly asTransactional: SpRuntimeTransactionalError; + readonly isExhausted: boolean; + readonly isCorruption: boolean; + readonly isUnavailable: boolean; + readonly type: + | 'Other' + | 'CannotLookup' + | 'BadOrigin' + | 'Module' + | 'ConsumerRemaining' + | 'NoProviders' + | 'TooManyConsumers' + | 'Token' + | 'Arithmetic' + | 'Transactional' + | 'Exhausted' + | 'Corruption' + | 'Unavailable'; + } + + /** @name SpRuntimeModuleError (25) */ + interface SpRuntimeModuleError extends Struct { + readonly index: u8; + readonly error: U8aFixed; + } + + /** @name SpRuntimeTokenError (26) */ + interface SpRuntimeTokenError extends Enum { + readonly isNoFunds: boolean; + readonly isWouldDie: boolean; + readonly isBelowMinimum: boolean; + readonly isCannotCreate: boolean; + readonly isUnknownAsset: boolean; + readonly isFrozen: boolean; + readonly isUnsupported: boolean; + readonly type: + | 'NoFunds' + | 'WouldDie' + | 'BelowMinimum' + | 'CannotCreate' + | 'UnknownAsset' + | 'Frozen' + | 'Unsupported'; + } + + /** @name SpArithmeticArithmeticError (27) */ + interface SpArithmeticArithmeticError extends Enum { + readonly isUnderflow: boolean; + readonly isOverflow: boolean; + readonly isDivisionByZero: boolean; + readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero'; + } + + /** @name SpRuntimeTransactionalError (28) */ + interface SpRuntimeTransactionalError extends Enum { + readonly isLimitReached: boolean; + readonly isNoLayer: boolean; + readonly type: 'LimitReached' | 'NoLayer'; + } + + /** @name PalletPreimageEvent (29) */ + interface PalletPreimageEvent extends Enum { + readonly isNoted: boolean; + readonly asNoted: { + readonly hash_: H256; + } & Struct; + readonly isRequested: boolean; + readonly asRequested: { + readonly hash_: H256; + } & Struct; + readonly isCleared: boolean; + readonly asCleared: { + readonly hash_: H256; + } & Struct; + readonly type: 'Noted' | 'Requested' | 'Cleared'; + } + + /** @name PalletSudoEvent (30) */ + interface PalletSudoEvent extends Enum { + readonly isSudid: boolean; + readonly asSudid: { + readonly sudoResult: Result; + } & Struct; + readonly isKeyChanged: boolean; + readonly asKeyChanged: { + readonly oldSudoer: Option; + } & Struct; + readonly isSudoAsDone: boolean; + readonly asSudoAsDone: { + readonly sudoResult: Result; + } & Struct; + readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone'; + } + + /** @name PalletMultisigEvent (34) */ + interface PalletMultisigEvent extends Enum { + readonly isNewMultisig: boolean; + readonly asNewMultisig: { + readonly approving: AccountId32; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + } & Struct; + readonly isMultisigApproval: boolean; + readonly asMultisigApproval: { + readonly approving: AccountId32; + readonly timepoint: PalletMultisigTimepoint; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + } & Struct; + readonly isMultisigExecuted: boolean; + readonly asMultisigExecuted: { + readonly approving: AccountId32; + readonly timepoint: PalletMultisigTimepoint; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + readonly result: Result; + } & Struct; + readonly isMultisigCancelled: boolean; + readonly asMultisigCancelled: { + readonly cancelling: AccountId32; + readonly timepoint: PalletMultisigTimepoint; + readonly multisig: AccountId32; + readonly callHash: U8aFixed; + } & Struct; + readonly type: 'NewMultisig' | 'MultisigApproval' | 'MultisigExecuted' | 'MultisigCancelled'; + } + + /** @name PalletMultisigTimepoint (35) */ + interface PalletMultisigTimepoint extends Struct { + readonly height: u32; + readonly index: u32; + } + + /** @name PalletProxyEvent (36) */ + interface PalletProxyEvent extends Enum { + readonly isProxyExecuted: boolean; + readonly asProxyExecuted: { + readonly result: Result; + } & Struct; + readonly isPureCreated: boolean; + readonly asPureCreated: { + readonly pure: AccountId32; + readonly who: AccountId32; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly disambiguationIndex: u16; + } & Struct; + readonly isAnnounced: boolean; + readonly asAnnounced: { + readonly real: AccountId32; + readonly proxy: AccountId32; + readonly callHash: H256; + } & Struct; + readonly isProxyAdded: boolean; + readonly asProxyAdded: { + readonly delegator: AccountId32; + readonly delegatee: AccountId32; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isProxyRemoved: boolean; + readonly asProxyRemoved: { + readonly delegator: AccountId32; + readonly delegatee: AccountId32; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly type: 'ProxyExecuted' | 'PureCreated' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved'; + } + + /** @name IntegriteeNodeRuntimeProxyType (37) */ + interface IntegriteeNodeRuntimeProxyType extends Enum { + readonly isAny: boolean; + readonly isNonTransfer: boolean; + readonly isGovernance: boolean; + readonly isCancelProxy: boolean; + readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'CancelProxy'; + } + + /** @name PalletSchedulerEvent (39) */ + interface PalletSchedulerEvent extends Enum { + readonly isScheduled: boolean; + readonly asScheduled: { + readonly when: u32; + readonly index: u32; + } & Struct; + readonly isCanceled: boolean; + readonly asCanceled: { + readonly when: u32; + readonly index: u32; + } & Struct; + readonly isDispatched: boolean; + readonly asDispatched: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + readonly result: Result; + } & Struct; + readonly isCallUnavailable: boolean; + readonly asCallUnavailable: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + } & Struct; + readonly isPeriodicFailed: boolean; + readonly asPeriodicFailed: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + } & Struct; + readonly isPermanentlyOverweight: boolean; + readonly asPermanentlyOverweight: { + readonly task: ITuple<[u32, u32]>; + readonly id: Option; + } & Struct; + readonly type: + | 'Scheduled' + | 'Canceled' + | 'Dispatched' + | 'CallUnavailable' + | 'PeriodicFailed' + | 'PermanentlyOverweight'; + } + + /** @name PalletUtilityEvent (42) */ + interface PalletUtilityEvent extends Enum { + readonly isBatchInterrupted: boolean; + readonly asBatchInterrupted: { + readonly index: u32; + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isBatchCompleted: boolean; + readonly isBatchCompletedWithErrors: boolean; + readonly isItemCompleted: boolean; + readonly isItemFailed: boolean; + readonly asItemFailed: { + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isDispatchedAs: boolean; + readonly asDispatchedAs: { + readonly result: Result; + } & Struct; + readonly type: + | 'BatchInterrupted' + | 'BatchCompleted' + | 'BatchCompletedWithErrors' + | 'ItemCompleted' + | 'ItemFailed' + | 'DispatchedAs'; + } + + /** @name PalletBalancesEvent (43) */ + interface PalletBalancesEvent extends Enum { + readonly isEndowed: boolean; + readonly asEndowed: { + readonly account: AccountId32; + readonly freeBalance: u128; + } & Struct; + readonly isDustLost: boolean; + readonly asDustLost: { + readonly account: AccountId32; + readonly amount: u128; + } & Struct; + readonly isTransfer: boolean; + readonly asTransfer: { + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly isBalanceSet: boolean; + readonly asBalanceSet: { + readonly who: AccountId32; + readonly free: u128; + readonly reserved: u128; + } & Struct; + readonly isReserved: boolean; + readonly asReserved: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isUnreserved: boolean; + readonly asUnreserved: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isReserveRepatriated: boolean; + readonly asReserveRepatriated: { + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + readonly destinationStatus: FrameSupportTokensMiscBalanceStatus; + } & Struct; + readonly isDeposit: boolean; + readonly asDeposit: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isWithdraw: boolean; + readonly asWithdraw: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isSlashed: boolean; + readonly asSlashed: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'Endowed' + | 'DustLost' + | 'Transfer' + | 'BalanceSet' + | 'Reserved' + | 'Unreserved' + | 'ReserveRepatriated' + | 'Deposit' + | 'Withdraw' + | 'Slashed'; + } + + /** @name FrameSupportTokensMiscBalanceStatus (44) */ + interface FrameSupportTokensMiscBalanceStatus extends Enum { + readonly isFree: boolean; + readonly isReserved: boolean; + readonly type: 'Free' | 'Reserved'; + } + + /** @name PalletTransactionPaymentEvent (45) */ + interface PalletTransactionPaymentEvent extends Enum { + readonly isTransactionFeePaid: boolean; + readonly asTransactionFeePaid: { + readonly who: AccountId32; + readonly actualFee: u128; + readonly tip: u128; + } & Struct; + readonly type: 'TransactionFeePaid'; + } + + /** @name PalletVestingEvent (46) */ + interface PalletVestingEvent extends Enum { + readonly isVestingUpdated: boolean; + readonly asVestingUpdated: { + readonly account: AccountId32; + readonly unvested: u128; + } & Struct; + readonly isVestingCompleted: boolean; + readonly asVestingCompleted: { + readonly account: AccountId32; + } & Struct; + readonly type: 'VestingUpdated' | 'VestingCompleted'; + } + + /** @name PalletGrandpaEvent (47) */ + interface PalletGrandpaEvent extends Enum { + readonly isNewAuthorities: boolean; + readonly asNewAuthorities: { + readonly authoritySet: Vec>; + } & Struct; + readonly isPaused: boolean; + readonly isResumed: boolean; + readonly type: 'NewAuthorities' | 'Paused' | 'Resumed'; + } + + /** @name SpFinalityGrandpaAppPublic (50) */ + interface SpFinalityGrandpaAppPublic extends SpCoreEd25519Public {} + + /** @name SpCoreEd25519Public (51) */ + interface SpCoreEd25519Public extends U8aFixed {} + + /** @name PalletCollectiveEvent (52) */ + interface PalletCollectiveEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly account: AccountId32; + readonly proposalIndex: u32; + readonly proposalHash: H256; + readonly threshold: u32; + } & Struct; + readonly isVoted: boolean; + readonly asVoted: { + readonly account: AccountId32; + readonly proposalHash: H256; + readonly voted: bool; + readonly yes: u32; + readonly no: u32; + } & Struct; + readonly isApproved: boolean; + readonly asApproved: { + readonly proposalHash: H256; + } & Struct; + readonly isDisapproved: boolean; + readonly asDisapproved: { + readonly proposalHash: H256; + } & Struct; + readonly isExecuted: boolean; + readonly asExecuted: { + readonly proposalHash: H256; + readonly result: Result; + } & Struct; + readonly isMemberExecuted: boolean; + readonly asMemberExecuted: { + readonly proposalHash: H256; + readonly result: Result; + } & Struct; + readonly isClosed: boolean; + readonly asClosed: { + readonly proposalHash: H256; + readonly yes: u32; + readonly no: u32; + } & Struct; + readonly type: 'Proposed' | 'Voted' | 'Approved' | 'Disapproved' | 'Executed' | 'MemberExecuted' | 'Closed'; + } + + /** @name PalletTreasuryEvent (54) */ + interface PalletTreasuryEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly proposalIndex: u32; + } & Struct; + readonly isSpending: boolean; + readonly asSpending: { + readonly budgetRemaining: u128; + } & Struct; + readonly isAwarded: boolean; + readonly asAwarded: { + readonly proposalIndex: u32; + readonly award: u128; + readonly account: AccountId32; + } & Struct; + readonly isRejected: boolean; + readonly asRejected: { + readonly proposalIndex: u32; + readonly slashed: u128; + } & Struct; + readonly isBurnt: boolean; + readonly asBurnt: { + readonly burntFunds: u128; + } & Struct; + readonly isRollover: boolean; + readonly asRollover: { + readonly rolloverBalance: u128; + } & Struct; + readonly isDeposit: boolean; + readonly asDeposit: { + readonly value: u128; + } & Struct; + readonly isSpendApproved: boolean; + readonly asSpendApproved: { + readonly proposalIndex: u32; + readonly amount: u128; + readonly beneficiary: AccountId32; + } & Struct; + readonly isUpdatedInactive: boolean; + readonly asUpdatedInactive: { + readonly reactivated: u128; + readonly deactivated: u128; + } & Struct; + readonly type: + | 'Proposed' + | 'Spending' + | 'Awarded' + | 'Rejected' + | 'Burnt' + | 'Rollover' + | 'Deposit' + | 'SpendApproved' + | 'UpdatedInactive'; + } + + /** @name PalletTeerexEvent (55) */ + interface PalletTeerexEvent extends Enum { + readonly isAdminChanged: boolean; + readonly asAdminChanged: { + readonly oldAdmin: Option; + } & Struct; + readonly isAddedEnclave: boolean; + readonly asAddedEnclave: ITuple<[AccountId32, Bytes]>; + readonly isRemovedEnclave: boolean; + readonly asRemovedEnclave: AccountId32; + readonly isForwarded: boolean; + readonly asForwarded: H256; + readonly isShieldFunds: boolean; + readonly asShieldFunds: Bytes; + readonly isUnshieldedFunds: boolean; + readonly asUnshieldedFunds: AccountId32; + readonly isProcessedParentchainBlock: boolean; + readonly asProcessedParentchainBlock: ITuple<[AccountId32, H256, H256, u32]>; + readonly isSetHeartbeatTimeout: boolean; + readonly asSetHeartbeatTimeout: u64; + readonly isUpdatedScheduledEnclave: boolean; + readonly asUpdatedScheduledEnclave: ITuple<[u64, U8aFixed]>; + readonly isRemovedScheduledEnclave: boolean; + readonly asRemovedScheduledEnclave: u64; + readonly isPublishedHash: boolean; + readonly asPublishedHash: { + readonly mrEnclave: U8aFixed; + readonly hash_: H256; + readonly data: Bytes; + } & Struct; + readonly type: + | 'AdminChanged' + | 'AddedEnclave' + | 'RemovedEnclave' + | 'Forwarded' + | 'ShieldFunds' + | 'UnshieldedFunds' + | 'ProcessedParentchainBlock' + | 'SetHeartbeatTimeout' + | 'UpdatedScheduledEnclave' + | 'RemovedScheduledEnclave' + | 'PublishedHash'; + } + + /** @name PalletClaimsEvent (56) */ + interface PalletClaimsEvent extends Enum { + readonly isClaimed: boolean; + readonly asClaimed: ITuple<[AccountId32, ClaimsPrimitivesEthereumAddress, u128]>; + readonly type: 'Claimed'; + } + + /** @name ClaimsPrimitivesEthereumAddress (57) */ + interface ClaimsPrimitivesEthereumAddress extends U8aFixed {} + + /** @name PalletTeeracleEvent (59) */ + interface PalletTeeracleEvent extends Enum { + readonly isExchangeRateUpdated: boolean; + readonly asExchangeRateUpdated: ITuple<[Text, Text, Option]>; + readonly isExchangeRateDeleted: boolean; + readonly asExchangeRateDeleted: ITuple<[Text, Text]>; + readonly isOracleUpdated: boolean; + readonly asOracleUpdated: ITuple<[Text, Text]>; + readonly isAddedToWhitelist: boolean; + readonly asAddedToWhitelist: ITuple<[Text, U8aFixed]>; + readonly isRemovedFromWhitelist: boolean; + readonly asRemovedFromWhitelist: ITuple<[Text, U8aFixed]>; + readonly type: + | 'ExchangeRateUpdated' + | 'ExchangeRateDeleted' + | 'OracleUpdated' + | 'AddedToWhitelist' + | 'RemovedFromWhitelist'; + } + + /** @name SubstrateFixedFixedU64 (62) */ + interface SubstrateFixedFixedU64 extends Struct { + readonly bits: u64; + } + + /** @name TypenumUIntUInt (67) */ + interface TypenumUIntUInt extends Struct { + readonly msb: TypenumUIntUTerm; + readonly lsb: TypenumBitB0; + } + + /** @name TypenumUIntUTerm (68) */ + interface TypenumUIntUTerm extends Struct { + readonly msb: TypenumUintUTerm; + readonly lsb: TypenumBitB1; + } + + /** @name TypenumUintUTerm (69) */ + type TypenumUintUTerm = Null; + + /** @name TypenumBitB1 (70) */ + type TypenumBitB1 = Null; + + /** @name TypenumBitB0 (71) */ + type TypenumBitB0 = Null; + + /** @name PalletSidechainEvent (72) */ + interface PalletSidechainEvent extends Enum { + readonly isProposedSidechainBlock: boolean; + readonly asProposedSidechainBlock: ITuple<[AccountId32, H256]>; + readonly isFinalizedSidechainBlock: boolean; + readonly asFinalizedSidechainBlock: ITuple<[AccountId32, H256]>; + readonly type: 'ProposedSidechainBlock' | 'FinalizedSidechainBlock'; + } + + /** @name PalletIdentityManagementEvent (73) */ + interface PalletIdentityManagementEvent extends Enum { + readonly isDelegateeAdded: boolean; + readonly asDelegateeAdded: { + readonly account: AccountId32; + } & Struct; + readonly isDelegateeRemoved: boolean; + readonly asDelegateeRemoved: { + readonly account: AccountId32; + } & Struct; + readonly isCreateIdentityRequested: boolean; + readonly asCreateIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isRemoveIdentityRequested: boolean; + readonly asRemoveIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isVerifyIdentityRequested: boolean; + readonly asVerifyIdentityRequested: { + readonly shard: H256; + } & Struct; + readonly isSetUserShieldingKeyRequested: boolean; + readonly asSetUserShieldingKeyRequested: { + readonly shard: H256; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isSetUserShieldingKeyFailed: boolean; + readonly asSetUserShieldingKeyFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isCreateIdentityFailed: boolean; + readonly asCreateIdentityFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isRemoveIdentityFailed: boolean; + readonly asRemoveIdentityFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isVerifyIdentityFailed: boolean; + readonly asVerifyIdentityFailed: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isImportScheduledEnclaveFailed: boolean; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly type: + | 'DelegateeAdded' + | 'DelegateeRemoved' + | 'CreateIdentityRequested' + | 'RemoveIdentityRequested' + | 'VerifyIdentityRequested' + | 'SetUserShieldingKeyRequested' + | 'UserShieldingKeySet' + | 'IdentityCreated' + | 'IdentityRemoved' + | 'IdentityVerified' + | 'SetUserShieldingKeyFailed' + | 'CreateIdentityFailed' + | 'RemoveIdentityFailed' + | 'VerifyIdentityFailed' + | 'ImportScheduledEnclaveFailed' + | 'UnclassifiedError'; + } + + /** @name CorePrimitivesKeyAesOutput (74) */ + interface CorePrimitivesKeyAesOutput extends Struct { + readonly ciphertext: Bytes; + readonly aad: Bytes; + readonly nonce: U8aFixed; + } + + /** @name CorePrimitivesErrorErrorDetail (76) */ + interface CorePrimitivesErrorErrorDetail extends Enum { + readonly isImportError: boolean; + readonly isStfError: boolean; + readonly asStfError: Bytes; + readonly isSendStfRequestFailed: boolean; + readonly isChallengeCodeNotFound: boolean; + readonly isUserShieldingKeyNotFound: boolean; + readonly isParseError: boolean; + readonly isDataProviderError: boolean; + readonly asDataProviderError: Bytes; + readonly isInvalidIdentity: boolean; + readonly isWrongWeb2Handle: boolean; + readonly isUnexpectedMessage: boolean; + readonly isWrongSignatureType: boolean; + readonly isVerifySubstrateSignatureFailed: boolean; + readonly isVerifyEvmSignatureFailed: boolean; + readonly isRecoverEvmAddressFailed: boolean; + readonly type: + | 'ImportError' + | 'StfError' + | 'SendStfRequestFailed' + | 'ChallengeCodeNotFound' + | 'UserShieldingKeyNotFound' + | 'ParseError' + | 'DataProviderError' + | 'InvalidIdentity' + | 'WrongWeb2Handle' + | 'UnexpectedMessage' + | 'WrongSignatureType' + | 'VerifySubstrateSignatureFailed' + | 'VerifyEvmSignatureFailed' + | 'RecoverEvmAddressFailed'; + } + + /** @name PalletVcManagementEvent (78) */ + interface PalletVcManagementEvent extends Enum { + readonly isVcRequested: boolean; + readonly asVcRequested: { + readonly account: AccountId32; + readonly shard: H256; + readonly assertion: CorePrimitivesAssertion; + } & Struct; + readonly isVcDisabled: boolean; + readonly asVcDisabled: { + readonly account: AccountId32; + readonly index: H256; + } & Struct; + readonly isVcRevoked: boolean; + readonly asVcRevoked: { + readonly account: AccountId32; + readonly index: H256; + } & Struct; + readonly isVcIssued: boolean; + readonly asVcIssued: { + readonly account: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly index: H256; + readonly vc: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isAdminChanged: boolean; + readonly asAdminChanged: { + readonly oldAdmin: Option; + readonly newAdmin: Option; + } & Struct; + readonly isSchemaIssued: boolean; + readonly asSchemaIssued: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isSchemaDisabled: boolean; + readonly asSchemaDisabled: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isSchemaActivated: boolean; + readonly asSchemaActivated: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isSchemaRevoked: boolean; + readonly asSchemaRevoked: { + readonly account: AccountId32; + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isRequestVCFailed: boolean; + readonly asRequestVCFailed: { + readonly account: Option; + readonly assertion: CorePrimitivesAssertion; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: { + readonly account: Option; + readonly detail: CorePrimitivesErrorErrorDetail; + readonly reqExtHash: H256; + } & Struct; + readonly isVcRegistryItemAdded: boolean; + readonly asVcRegistryItemAdded: { + readonly account: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly index: H256; + } & Struct; + readonly isVcRegistryItemRemoved: boolean; + readonly asVcRegistryItemRemoved: { + readonly index: H256; + } & Struct; + readonly isVcRegistryCleared: boolean; + readonly type: + | 'VcRequested' + | 'VcDisabled' + | 'VcRevoked' + | 'VcIssued' + | 'AdminChanged' + | 'SchemaIssued' + | 'SchemaDisabled' + | 'SchemaActivated' + | 'SchemaRevoked' + | 'RequestVCFailed' + | 'UnclassifiedError' + | 'VcRegistryItemAdded' + | 'VcRegistryItemRemoved' + | 'VcRegistryCleared'; + } + + /** @name CorePrimitivesAssertion (79) */ + interface CorePrimitivesAssertion extends Enum { + readonly isA1: boolean; + readonly isA2: boolean; + readonly asA2: Bytes; + readonly isA3: boolean; + readonly asA3: ITuple<[Bytes, Bytes, Bytes]>; + readonly isA4: boolean; + readonly asA4: Bytes; + readonly isA5: boolean; + readonly asA5: Bytes; + readonly isA6: boolean; + readonly isA7: boolean; + readonly asA7: Bytes; + readonly isA8: boolean; + readonly asA8: Vec; + readonly isA9: boolean; + readonly isA10: boolean; + readonly asA10: Bytes; + readonly isA11: boolean; + readonly asA11: Bytes; + readonly isA13: boolean; + readonly asA13: u32; + readonly type: 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'A7' | 'A8' | 'A9' | 'A10' | 'A11' | 'A13'; + } + + /** @name CorePrimitivesAssertionIndexingNetwork (82) */ + interface CorePrimitivesAssertionIndexingNetwork extends Enum { + readonly isLitentry: boolean; + readonly isLitmus: boolean; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isKhala: boolean; + readonly isEthereum: boolean; + readonly type: 'Litentry' | 'Litmus' | 'Polkadot' | 'Kusama' | 'Khala' | 'Ethereum'; + } + + /** @name PalletGroupEvent (84) */ + interface PalletGroupEvent extends Enum { + readonly isGroupMemberAdded: boolean; + readonly asGroupMemberAdded: AccountId32; + readonly isGroupMemberRemoved: boolean; + readonly asGroupMemberRemoved: AccountId32; + readonly type: 'GroupMemberAdded' | 'GroupMemberRemoved'; + } + + /** @name FrameSystemPhase (86) */ + interface FrameSystemPhase extends Enum { + readonly isApplyExtrinsic: boolean; + readonly asApplyExtrinsic: u32; + readonly isFinalization: boolean; + readonly isInitialization: boolean; + readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; + } + + /** @name FrameSystemLastRuntimeUpgradeInfo (89) */ + interface FrameSystemLastRuntimeUpgradeInfo extends Struct { + readonly specVersion: Compact; + readonly specName: Text; + } + + /** @name FrameSystemCall (91) */ + interface FrameSystemCall extends Enum { + readonly isRemark: boolean; + readonly asRemark: { + readonly remark: Bytes; + } & Struct; + readonly isSetHeapPages: boolean; + readonly asSetHeapPages: { + readonly pages: u64; + } & Struct; + readonly isSetCode: boolean; + readonly asSetCode: { + readonly code: Bytes; + } & Struct; + readonly isSetCodeWithoutChecks: boolean; + readonly asSetCodeWithoutChecks: { + readonly code: Bytes; + } & Struct; + readonly isSetStorage: boolean; + readonly asSetStorage: { + readonly items: Vec>; + } & Struct; + readonly isKillStorage: boolean; + readonly asKillStorage: { + readonly keys_: Vec; + } & Struct; + readonly isKillPrefix: boolean; + readonly asKillPrefix: { + readonly prefix: Bytes; + readonly subkeys: u32; + } & Struct; + readonly isRemarkWithEvent: boolean; + readonly asRemarkWithEvent: { + readonly remark: Bytes; + } & Struct; + readonly type: + | 'Remark' + | 'SetHeapPages' + | 'SetCode' + | 'SetCodeWithoutChecks' + | 'SetStorage' + | 'KillStorage' + | 'KillPrefix' + | 'RemarkWithEvent'; + } + + /** @name FrameSystemLimitsBlockWeights (95) */ + interface FrameSystemLimitsBlockWeights extends Struct { + readonly baseBlock: SpWeightsWeightV2Weight; + readonly maxBlock: SpWeightsWeightV2Weight; + readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + } + + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (96) */ + interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { + readonly normal: FrameSystemLimitsWeightsPerClass; + readonly operational: FrameSystemLimitsWeightsPerClass; + readonly mandatory: FrameSystemLimitsWeightsPerClass; + } + + /** @name FrameSystemLimitsWeightsPerClass (97) */ + interface FrameSystemLimitsWeightsPerClass extends Struct { + readonly baseExtrinsic: SpWeightsWeightV2Weight; + readonly maxExtrinsic: Option; + readonly maxTotal: Option; + readonly reserved: Option; + } + + /** @name FrameSystemLimitsBlockLength (99) */ + interface FrameSystemLimitsBlockLength extends Struct { + readonly max: FrameSupportDispatchPerDispatchClassU32; + } + + /** @name FrameSupportDispatchPerDispatchClassU32 (100) */ + interface FrameSupportDispatchPerDispatchClassU32 extends Struct { + readonly normal: u32; + readonly operational: u32; + readonly mandatory: u32; + } + + /** @name SpWeightsRuntimeDbWeight (101) */ + interface SpWeightsRuntimeDbWeight extends Struct { + readonly read: u64; + readonly write: u64; + } + + /** @name SpVersionRuntimeVersion (102) */ + interface SpVersionRuntimeVersion extends Struct { + readonly specName: Text; + readonly implName: Text; + readonly authoringVersion: u32; + readonly specVersion: u32; + readonly implVersion: u32; + readonly apis: Vec>; + readonly transactionVersion: u32; + readonly stateVersion: u8; + } + + /** @name FrameSystemError (107) */ + interface FrameSystemError extends Enum { + readonly isInvalidSpecName: boolean; + readonly isSpecVersionNeedsToIncrease: boolean; + readonly isFailedToExtractRuntimeVersion: boolean; + readonly isNonDefaultComposite: boolean; + readonly isNonZeroRefCount: boolean; + readonly isCallFiltered: boolean; + readonly type: + | 'InvalidSpecName' + | 'SpecVersionNeedsToIncrease' + | 'FailedToExtractRuntimeVersion' + | 'NonDefaultComposite' + | 'NonZeroRefCount' + | 'CallFiltered'; + } + + /** @name PalletPreimageRequestStatus (108) */ + interface PalletPreimageRequestStatus extends Enum { + readonly isUnrequested: boolean; + readonly asUnrequested: { + readonly deposit: ITuple<[AccountId32, u128]>; + readonly len: u32; + } & Struct; + readonly isRequested: boolean; + readonly asRequested: { + readonly deposit: Option>; + readonly count: u32; + readonly len: Option; + } & Struct; + readonly type: 'Unrequested' | 'Requested'; + } + + /** @name PalletPreimageCall (114) */ + interface PalletPreimageCall extends Enum { + readonly isNotePreimage: boolean; + readonly asNotePreimage: { + readonly bytes: Bytes; + } & Struct; + readonly isUnnotePreimage: boolean; + readonly asUnnotePreimage: { + readonly hash_: H256; + } & Struct; + readonly isRequestPreimage: boolean; + readonly asRequestPreimage: { + readonly hash_: H256; + } & Struct; + readonly isUnrequestPreimage: boolean; + readonly asUnrequestPreimage: { + readonly hash_: H256; + } & Struct; + readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage'; + } + + /** @name PalletPreimageError (115) */ + interface PalletPreimageError extends Enum { + readonly isTooBig: boolean; + readonly isAlreadyNoted: boolean; + readonly isNotAuthorized: boolean; + readonly isNotNoted: boolean; + readonly isRequested: boolean; + readonly isNotRequested: boolean; + readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested'; + } + + /** @name PalletTimestampCall (117) */ + interface PalletTimestampCall extends Enum { + readonly isSet: boolean; + readonly asSet: { + readonly now: Compact; + } & Struct; + readonly type: 'Set'; + } + + /** @name PalletSudoCall (118) */ + interface PalletSudoCall extends Enum { + readonly isSudo: boolean; + readonly asSudo: { + readonly call: Call; + } & Struct; + readonly isSudoUncheckedWeight: boolean; + readonly asSudoUncheckedWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isSetKey: boolean; + readonly asSetKey: { + readonly new_: MultiAddress; + } & Struct; + readonly isSudoAs: boolean; + readonly asSudoAs: { + readonly who: MultiAddress; + readonly call: Call; + } & Struct; + readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs'; + } + + /** @name PalletMultisigCall (120) */ + interface PalletMultisigCall extends Enum { + readonly isAsMultiThreshold1: boolean; + readonly asAsMultiThreshold1: { + readonly otherSignatories: Vec; + readonly call: Call; + } & Struct; + readonly isAsMulti: boolean; + readonly asAsMulti: { + readonly threshold: u16; + readonly otherSignatories: Vec; + readonly maybeTimepoint: Option; + readonly call: Call; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isApproveAsMulti: boolean; + readonly asApproveAsMulti: { + readonly threshold: u16; + readonly otherSignatories: Vec; + readonly maybeTimepoint: Option; + readonly callHash: U8aFixed; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isCancelAsMulti: boolean; + readonly asCancelAsMulti: { + readonly threshold: u16; + readonly otherSignatories: Vec; + readonly timepoint: PalletMultisigTimepoint; + readonly callHash: U8aFixed; + } & Struct; + readonly type: 'AsMultiThreshold1' | 'AsMulti' | 'ApproveAsMulti' | 'CancelAsMulti'; + } + + /** @name PalletProxyCall (123) */ + interface PalletProxyCall extends Enum { + readonly isProxy: boolean; + readonly asProxy: { + readonly real: MultiAddress; + readonly forceProxyType: Option; + readonly call: Call; + } & Struct; + readonly isAddProxy: boolean; + readonly asAddProxy: { + readonly delegate: MultiAddress; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isRemoveProxy: boolean; + readonly asRemoveProxy: { + readonly delegate: MultiAddress; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isRemoveProxies: boolean; + readonly isCreatePure: boolean; + readonly asCreatePure: { + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly delay: u32; + readonly index: u16; + } & Struct; + readonly isKillPure: boolean; + readonly asKillPure: { + readonly spawner: MultiAddress; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly index: u16; + readonly height: Compact; + readonly extIndex: Compact; + } & Struct; + readonly isAnnounce: boolean; + readonly asAnnounce: { + readonly real: MultiAddress; + readonly callHash: H256; + } & Struct; + readonly isRemoveAnnouncement: boolean; + readonly asRemoveAnnouncement: { + readonly real: MultiAddress; + readonly callHash: H256; + } & Struct; + readonly isRejectAnnouncement: boolean; + readonly asRejectAnnouncement: { + readonly delegate: MultiAddress; + readonly callHash: H256; + } & Struct; + readonly isProxyAnnounced: boolean; + readonly asProxyAnnounced: { + readonly delegate: MultiAddress; + readonly real: MultiAddress; + readonly forceProxyType: Option; + readonly call: Call; + } & Struct; + readonly type: + | 'Proxy' + | 'AddProxy' + | 'RemoveProxy' + | 'RemoveProxies' + | 'CreatePure' + | 'KillPure' + | 'Announce' + | 'RemoveAnnouncement' + | 'RejectAnnouncement' + | 'ProxyAnnounced'; + } + + /** @name PalletSchedulerCall (127) */ + interface PalletSchedulerCall extends Enum { + readonly isSchedule: boolean; + readonly asSchedule: { + readonly when: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly isCancel: boolean; + readonly asCancel: { + readonly when: u32; + readonly index: u32; + } & Struct; + readonly isScheduleNamed: boolean; + readonly asScheduleNamed: { + readonly id: U8aFixed; + readonly when: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly isCancelNamed: boolean; + readonly asCancelNamed: { + readonly id: U8aFixed; + } & Struct; + readonly isScheduleAfter: boolean; + readonly asScheduleAfter: { + readonly after: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly isScheduleNamedAfter: boolean; + readonly asScheduleNamedAfter: { + readonly id: U8aFixed; + readonly after: u32; + readonly maybePeriodic: Option>; + readonly priority: u8; + readonly call: Call; + } & Struct; + readonly type: 'Schedule' | 'Cancel' | 'ScheduleNamed' | 'CancelNamed' | 'ScheduleAfter' | 'ScheduleNamedAfter'; + } + + /** @name PalletUtilityCall (129) */ + interface PalletUtilityCall extends Enum { + readonly isBatch: boolean; + readonly asBatch: { + readonly calls: Vec; + } & Struct; + readonly isAsDerivative: boolean; + readonly asAsDerivative: { + readonly index: u16; + readonly call: Call; + } & Struct; + readonly isBatchAll: boolean; + readonly asBatchAll: { + readonly calls: Vec; + } & Struct; + readonly isDispatchAs: boolean; + readonly asDispatchAs: { + readonly asOrigin: IntegriteeNodeRuntimeOriginCaller; + readonly call: Call; + } & Struct; + readonly isForceBatch: boolean; + readonly asForceBatch: { + readonly calls: Vec; + } & Struct; + readonly isWithWeight: boolean; + readonly asWithWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'Batch' | 'AsDerivative' | 'BatchAll' | 'DispatchAs' | 'ForceBatch' | 'WithWeight'; + } + + /** @name IntegriteeNodeRuntimeOriginCaller (131) */ + interface IntegriteeNodeRuntimeOriginCaller extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSupportDispatchRawOrigin; + readonly isVoid: boolean; + readonly isCouncil: boolean; + readonly asCouncil: PalletCollectiveRawOrigin; + readonly type: 'System' | 'Void' | 'Council'; + } + + /** @name FrameSupportDispatchRawOrigin (132) */ + interface FrameSupportDispatchRawOrigin extends Enum { + readonly isRoot: boolean; + readonly isSigned: boolean; + readonly asSigned: AccountId32; + readonly isNone: boolean; + readonly type: 'Root' | 'Signed' | 'None'; + } + + /** @name PalletCollectiveRawOrigin (133) */ + interface PalletCollectiveRawOrigin extends Enum { + readonly isMembers: boolean; + readonly asMembers: ITuple<[u32, u32]>; + readonly isMember: boolean; + readonly asMember: AccountId32; + readonly isPhantom: boolean; + readonly type: 'Members' | 'Member' | 'Phantom'; + } + + /** @name SpCoreVoid (134) */ + type SpCoreVoid = Null; + + /** @name PalletBalancesCall (135) */ + interface PalletBalancesCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isSetBalance: boolean; + readonly asSetBalance: { + readonly who: MultiAddress; + readonly newFree: Compact; + readonly newReserved: Compact; + } & Struct; + readonly isForceTransfer: boolean; + readonly asForceTransfer: { + readonly source: MultiAddress; + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isTransferKeepAlive: boolean; + readonly asTransferKeepAlive: { + readonly dest: MultiAddress; + readonly value: Compact; + } & Struct; + readonly isTransferAll: boolean; + readonly asTransferAll: { + readonly dest: MultiAddress; + readonly keepAlive: bool; + } & Struct; + readonly isForceUnreserve: boolean; + readonly asForceUnreserve: { + readonly who: MultiAddress; + readonly amount: u128; + } & Struct; + readonly type: + | 'Transfer' + | 'SetBalance' + | 'ForceTransfer' + | 'TransferKeepAlive' + | 'TransferAll' + | 'ForceUnreserve'; + } + + /** @name PalletVestingCall (137) */ + interface PalletVestingCall extends Enum { + readonly isVest: boolean; + readonly isVestOther: boolean; + readonly asVestOther: { + readonly target: MultiAddress; + } & Struct; + readonly isVestedTransfer: boolean; + readonly asVestedTransfer: { + readonly target: MultiAddress; + readonly schedule: PalletVestingVestingInfo; + } & Struct; + readonly isForceVestedTransfer: boolean; + readonly asForceVestedTransfer: { + readonly source: MultiAddress; + readonly target: MultiAddress; + readonly schedule: PalletVestingVestingInfo; + } & Struct; + readonly isMergeSchedules: boolean; + readonly asMergeSchedules: { + readonly schedule1Index: u32; + readonly schedule2Index: u32; + } & Struct; + readonly type: 'Vest' | 'VestOther' | 'VestedTransfer' | 'ForceVestedTransfer' | 'MergeSchedules'; + } + + /** @name PalletVestingVestingInfo (138) */ + interface PalletVestingVestingInfo extends Struct { + readonly locked: u128; + readonly perBlock: u128; + readonly startingBlock: u32; + } + + /** @name PalletGrandpaCall (139) */ + interface PalletGrandpaCall extends Enum { + readonly isReportEquivocation: boolean; + readonly asReportEquivocation: { + readonly equivocationProof: SpFinalityGrandpaEquivocationProof; + readonly keyOwnerProof: SpCoreVoid; + } & Struct; + readonly isReportEquivocationUnsigned: boolean; + readonly asReportEquivocationUnsigned: { + readonly equivocationProof: SpFinalityGrandpaEquivocationProof; + readonly keyOwnerProof: SpCoreVoid; + } & Struct; + readonly isNoteStalled: boolean; + readonly asNoteStalled: { + readonly delay: u32; + readonly bestFinalizedBlockNumber: u32; + } & Struct; + readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned' | 'NoteStalled'; + } + + /** @name SpFinalityGrandpaEquivocationProof (140) */ + interface SpFinalityGrandpaEquivocationProof extends Struct { + readonly setId: u64; + readonly equivocation: SpFinalityGrandpaEquivocation; + } + + /** @name SpFinalityGrandpaEquivocation (141) */ + interface SpFinalityGrandpaEquivocation extends Enum { + readonly isPrevote: boolean; + readonly asPrevote: FinalityGrandpaEquivocationPrevote; + readonly isPrecommit: boolean; + readonly asPrecommit: FinalityGrandpaEquivocationPrecommit; + readonly type: 'Prevote' | 'Precommit'; + } + + /** @name FinalityGrandpaEquivocationPrevote (142) */ + interface FinalityGrandpaEquivocationPrevote extends Struct { + readonly roundNumber: u64; + readonly identity: SpFinalityGrandpaAppPublic; + readonly first: ITuple<[FinalityGrandpaPrevote, SpFinalityGrandpaAppSignature]>; + readonly second: ITuple<[FinalityGrandpaPrevote, SpFinalityGrandpaAppSignature]>; + } + + /** @name FinalityGrandpaPrevote (143) */ + interface FinalityGrandpaPrevote extends Struct { + readonly targetHash: H256; + readonly targetNumber: u32; + } + + /** @name SpFinalityGrandpaAppSignature (144) */ + interface SpFinalityGrandpaAppSignature extends SpCoreEd25519Signature {} + + /** @name SpCoreEd25519Signature (145) */ + interface SpCoreEd25519Signature extends U8aFixed {} + + /** @name FinalityGrandpaEquivocationPrecommit (148) */ + interface FinalityGrandpaEquivocationPrecommit extends Struct { + readonly roundNumber: u64; + readonly identity: SpFinalityGrandpaAppPublic; + readonly first: ITuple<[FinalityGrandpaPrecommit, SpFinalityGrandpaAppSignature]>; + readonly second: ITuple<[FinalityGrandpaPrecommit, SpFinalityGrandpaAppSignature]>; + } + + /** @name FinalityGrandpaPrecommit (149) */ + interface FinalityGrandpaPrecommit extends Struct { + readonly targetHash: H256; + readonly targetNumber: u32; + } + + /** @name PalletCollectiveCall (151) */ + interface PalletCollectiveCall extends Enum { + readonly isSetMembers: boolean; + readonly asSetMembers: { + readonly newMembers: Vec; + readonly prime: Option; + readonly oldCount: u32; + } & Struct; + readonly isExecute: boolean; + readonly asExecute: { + readonly proposal: Call; + readonly lengthBound: Compact; + } & Struct; + readonly isPropose: boolean; + readonly asPropose: { + readonly threshold: Compact; + readonly proposal: Call; + readonly lengthBound: Compact; + } & Struct; + readonly isVote: boolean; + readonly asVote: { + readonly proposal: H256; + readonly index: Compact; + readonly approve: bool; + } & Struct; + readonly isCloseOldWeight: boolean; + readonly asCloseOldWeight: { + readonly proposalHash: H256; + readonly index: Compact; + readonly proposalWeightBound: Compact; + readonly lengthBound: Compact; + } & Struct; + readonly isDisapproveProposal: boolean; + readonly asDisapproveProposal: { + readonly proposalHash: H256; + } & Struct; + readonly isClose: boolean; + readonly asClose: { + readonly proposalHash: H256; + readonly index: Compact; + readonly proposalWeightBound: SpWeightsWeightV2Weight; + readonly lengthBound: Compact; + } & Struct; + readonly type: + | 'SetMembers' + | 'Execute' + | 'Propose' + | 'Vote' + | 'CloseOldWeight' + | 'DisapproveProposal' + | 'Close'; + } + + /** @name PalletTreasuryCall (154) */ + interface PalletTreasuryCall extends Enum { + readonly isProposeSpend: boolean; + readonly asProposeSpend: { + readonly value: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRejectProposal: boolean; + readonly asRejectProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isApproveProposal: boolean; + readonly asApproveProposal: { + readonly proposalId: Compact; + } & Struct; + readonly isSpend: boolean; + readonly asSpend: { + readonly amount: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isRemoveApproval: boolean; + readonly asRemoveApproval: { + readonly proposalId: Compact; + } & Struct; + readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval'; + } + + /** @name PalletTeerexCall (155) */ + interface PalletTeerexCall extends Enum { + readonly isRegisterEnclave: boolean; + readonly asRegisterEnclave: { + readonly raReport: Bytes; + readonly workerUrl: Bytes; + readonly shieldingKey: Option; + readonly vcPubkey: Option; + } & Struct; + readonly isUnregisterEnclave: boolean; + readonly isCallWorker: boolean; + readonly asCallWorker: { + readonly request: TeerexPrimitivesRequest; + } & Struct; + readonly isConfirmProcessedParentchainBlock: boolean; + readonly asConfirmProcessedParentchainBlock: { + readonly blockHash: H256; + readonly blockNumber: u32; + readonly trustedCallsMerkleRoot: H256; + } & Struct; + readonly isShieldFunds: boolean; + readonly asShieldFunds: { + readonly incognitoAccountEncrypted: Bytes; + readonly amount: u128; + readonly bondingAccount: AccountId32; + } & Struct; + readonly isUnshieldFunds: boolean; + readonly asUnshieldFunds: { + readonly publicAccount: AccountId32; + readonly amount: u128; + readonly bondingAccount: AccountId32; + readonly callHash: H256; + } & Struct; + readonly isSetHeartbeatTimeout: boolean; + readonly asSetHeartbeatTimeout: { + readonly timeout: u64; + } & Struct; + readonly isRegisterDcapEnclave: boolean; + readonly asRegisterDcapEnclave: { + readonly dcapQuote: Bytes; + readonly workerUrl: Bytes; + } & Struct; + readonly isUpdateScheduledEnclave: boolean; + readonly asUpdateScheduledEnclave: { + readonly sidechainBlockNumber: u64; + readonly mrEnclave: U8aFixed; + } & Struct; + readonly isRegisterQuotingEnclave: boolean; + readonly asRegisterQuotingEnclave: { + readonly enclaveIdentity: Bytes; + readonly signature: Bytes; + readonly certificateChain: Bytes; + } & Struct; + readonly isRemoveScheduledEnclave: boolean; + readonly asRemoveScheduledEnclave: { + readonly sidechainBlockNumber: u64; + } & Struct; + readonly isRegisterTcbInfo: boolean; + readonly asRegisterTcbInfo: { + readonly tcbInfo: Bytes; + readonly signature: Bytes; + readonly certificateChain: Bytes; + } & Struct; + readonly isPublishHash: boolean; + readonly asPublishHash: { + readonly hash_: H256; + readonly extraTopics: Vec; + readonly data: Bytes; + } & Struct; + readonly isSetAdmin: boolean; + readonly asSetAdmin: { + readonly new_: AccountId32; + } & Struct; + readonly type: + | 'RegisterEnclave' + | 'UnregisterEnclave' + | 'CallWorker' + | 'ConfirmProcessedParentchainBlock' + | 'ShieldFunds' + | 'UnshieldFunds' + | 'SetHeartbeatTimeout' + | 'RegisterDcapEnclave' + | 'UpdateScheduledEnclave' + | 'RegisterQuotingEnclave' + | 'RemoveScheduledEnclave' + | 'RegisterTcbInfo' + | 'PublishHash' + | 'SetAdmin'; + } + + /** @name TeerexPrimitivesRequest (157) */ + interface TeerexPrimitivesRequest extends Struct { + readonly shard: H256; + readonly cyphertext: Bytes; + } + + /** @name PalletClaimsCall (158) */ + interface PalletClaimsCall extends Enum { + readonly isClaim: boolean; + readonly asClaim: { + readonly dest: AccountId32; + readonly ethereumSignature: ClaimsPrimitivesEcdsaSignature; + } & Struct; + readonly isMintClaim: boolean; + readonly asMintClaim: { + readonly who: ClaimsPrimitivesEthereumAddress; + readonly value: u128; + readonly vestingSchedule: Option>; + readonly statement: Option; + } & Struct; + readonly isClaimAttest: boolean; + readonly asClaimAttest: { + readonly dest: AccountId32; + readonly ethereumSignature: ClaimsPrimitivesEcdsaSignature; + readonly statement: Bytes; + } & Struct; + readonly isAttest: boolean; + readonly asAttest: { + readonly statement: Bytes; + } & Struct; + readonly isMoveClaim: boolean; + readonly asMoveClaim: { + readonly old: ClaimsPrimitivesEthereumAddress; + readonly new_: ClaimsPrimitivesEthereumAddress; + readonly maybePreclaim: Option; + } & Struct; + readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim'; + } + + /** @name ClaimsPrimitivesEcdsaSignature (159) */ + interface ClaimsPrimitivesEcdsaSignature extends U8aFixed {} + + /** @name ClaimsPrimitivesStatementKind (164) */ + interface ClaimsPrimitivesStatementKind extends Enum { + readonly isRegular: boolean; + readonly isSaft: boolean; + readonly type: 'Regular' | 'Saft'; + } + + /** @name PalletTeeracleCall (165) */ + interface PalletTeeracleCall extends Enum { + readonly isAddToWhitelist: boolean; + readonly asAddToWhitelist: { + readonly dataSource: Text; + readonly mrenclave: U8aFixed; + } & Struct; + readonly isRemoveFromWhitelist: boolean; + readonly asRemoveFromWhitelist: { + readonly dataSource: Text; + readonly mrenclave: U8aFixed; + } & Struct; + readonly isUpdateOracle: boolean; + readonly asUpdateOracle: { + readonly oracleName: Text; + readonly dataSource: Text; + readonly newBlob: Bytes; + } & Struct; + readonly isUpdateExchangeRate: boolean; + readonly asUpdateExchangeRate: { + readonly dataSource: Text; + readonly tradingPair: Text; + readonly newValue: Option; + } & Struct; + readonly type: 'AddToWhitelist' | 'RemoveFromWhitelist' | 'UpdateOracle' | 'UpdateExchangeRate'; + } + + /** @name PalletSidechainCall (167) */ + interface PalletSidechainCall extends Enum { + readonly isConfirmImportedSidechainBlock: boolean; + readonly asConfirmImportedSidechainBlock: { + readonly shardId: H256; + readonly blockNumber: u64; + readonly nextFinalizationCandidateBlockNumber: u64; + readonly blockHeaderHash: H256; + } & Struct; + readonly type: 'ConfirmImportedSidechainBlock'; + } + + /** @name PalletIdentityManagementCall (168) */ + interface PalletIdentityManagementCall extends Enum { + readonly isAddDelegatee: boolean; + readonly asAddDelegatee: { + readonly account: AccountId32; + } & Struct; + readonly isRemoveDelegatee: boolean; + readonly asRemoveDelegatee: { + readonly account: AccountId32; + } & Struct; + readonly isSetUserShieldingKey: boolean; + readonly asSetUserShieldingKey: { + readonly shard: H256; + readonly encryptedKey: Bytes; + } & Struct; + readonly isCreateIdentity: boolean; + readonly asCreateIdentity: { + readonly shard: H256; + readonly user: AccountId32; + readonly encryptedIdentity: Bytes; + readonly encryptedMetadata: Option; + } & Struct; + readonly isRemoveIdentity: boolean; + readonly asRemoveIdentity: { + readonly shard: H256; + readonly encryptedIdentity: Bytes; + } & Struct; + readonly isVerifyIdentity: boolean; + readonly asVerifyIdentity: { + readonly shard: H256; + readonly encryptedIdentity: Bytes; + readonly encryptedValidationData: Bytes; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly account: Option; + readonly error: CorePrimitivesErrorImpError; + readonly reqExtHash: H256; + } & Struct; + readonly type: + | 'AddDelegatee' + | 'RemoveDelegatee' + | 'SetUserShieldingKey' + | 'CreateIdentity' + | 'RemoveIdentity' + | 'VerifyIdentity' + | 'UserShieldingKeySet' + | 'IdentityCreated' + | 'IdentityRemoved' + | 'IdentityVerified' + | 'SomeError'; + } + + /** @name CorePrimitivesErrorImpError (169) */ + interface CorePrimitivesErrorImpError extends Enum { + readonly isSetUserShieldingKeyFailed: boolean; + readonly asSetUserShieldingKeyFailed: CorePrimitivesErrorErrorDetail; + readonly isCreateIdentityFailed: boolean; + readonly asCreateIdentityFailed: CorePrimitivesErrorErrorDetail; + readonly isRemoveIdentityFailed: boolean; + readonly asRemoveIdentityFailed: CorePrimitivesErrorErrorDetail; + readonly isVerifyIdentityFailed: boolean; + readonly asVerifyIdentityFailed: CorePrimitivesErrorErrorDetail; + readonly isImportScheduledEnclaveFailed: boolean; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: CorePrimitivesErrorErrorDetail; + readonly type: + | 'SetUserShieldingKeyFailed' + | 'CreateIdentityFailed' + | 'RemoveIdentityFailed' + | 'VerifyIdentityFailed' + | 'ImportScheduledEnclaveFailed' + | 'UnclassifiedError'; + } + + /** @name PalletVcManagementCall (170) */ + interface PalletVcManagementCall extends Enum { + readonly isRequestVc: boolean; + readonly asRequestVc: { + readonly shard: H256; + readonly assertion: CorePrimitivesAssertion; + } & Struct; + readonly isDisableVc: boolean; + readonly asDisableVc: { + readonly index: H256; + } & Struct; + readonly isRevokeVc: boolean; + readonly asRevokeVc: { + readonly index: H256; + } & Struct; + readonly isSetAdmin: boolean; + readonly asSetAdmin: { + readonly new_: AccountId32; + } & Struct; + readonly isAddSchema: boolean; + readonly asAddSchema: { + readonly shard: H256; + readonly id: Bytes; + readonly content: Bytes; + } & Struct; + readonly isDisableSchema: boolean; + readonly asDisableSchema: { + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isActivateSchema: boolean; + readonly asActivateSchema: { + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isRevokeSchema: boolean; + readonly asRevokeSchema: { + readonly shard: H256; + readonly index: u64; + } & Struct; + readonly isAddVcRegistryItem: boolean; + readonly asAddVcRegistryItem: { + readonly index: H256; + readonly subject: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly hash_: H256; + } & Struct; + readonly isRemoveVcRegistryItem: boolean; + readonly asRemoveVcRegistryItem: { + readonly index: H256; + } & Struct; + readonly isClearVcRegistry: boolean; + readonly isVcIssued: boolean; + readonly asVcIssued: { + readonly account: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly index: H256; + readonly hash_: H256; + readonly vc: CorePrimitivesKeyAesOutput; + readonly reqExtHash: H256; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly account: Option; + readonly error: CorePrimitivesErrorVcmpError; + readonly reqExtHash: H256; + } & Struct; + readonly type: + | 'RequestVc' + | 'DisableVc' + | 'RevokeVc' + | 'SetAdmin' + | 'AddSchema' + | 'DisableSchema' + | 'ActivateSchema' + | 'RevokeSchema' + | 'AddVcRegistryItem' + | 'RemoveVcRegistryItem' + | 'ClearVcRegistry' + | 'VcIssued' + | 'SomeError'; + } + + /** @name CorePrimitivesErrorVcmpError (171) */ + interface CorePrimitivesErrorVcmpError extends Enum { + readonly isRequestVCFailed: boolean; + readonly asRequestVCFailed: ITuple<[CorePrimitivesAssertion, CorePrimitivesErrorErrorDetail]>; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: CorePrimitivesErrorErrorDetail; + readonly type: 'RequestVCFailed' | 'UnclassifiedError'; + } + + /** @name PalletGroupCall (172) */ + interface PalletGroupCall extends Enum { + readonly isAddGroupMember: boolean; + readonly asAddGroupMember: { + readonly v: AccountId32; + } & Struct; + readonly isBatchAddGroupMembers: boolean; + readonly asBatchAddGroupMembers: { + readonly vs: Vec; + } & Struct; + readonly isRemoveGroupMember: boolean; + readonly asRemoveGroupMember: { + readonly v: AccountId32; + } & Struct; + readonly isBatchRemoveGroupMembers: boolean; + readonly asBatchRemoveGroupMembers: { + readonly vs: Vec; + } & Struct; + readonly isSwitchGroupControlOn: boolean; + readonly isSwitchGroupControlOff: boolean; + readonly type: + | 'AddGroupMember' + | 'BatchAddGroupMembers' + | 'RemoveGroupMember' + | 'BatchRemoveGroupMembers' + | 'SwitchGroupControlOn' + | 'SwitchGroupControlOff'; + } + + /** @name PalletSudoError (174) */ + interface PalletSudoError extends Enum { + readonly isRequireSudo: boolean; + readonly type: 'RequireSudo'; + } + + /** @name PalletMultisigMultisig (176) */ + interface PalletMultisigMultisig extends Struct { + readonly when: PalletMultisigTimepoint; + readonly deposit: u128; + readonly depositor: AccountId32; + readonly approvals: Vec; + } + + /** @name PalletMultisigError (178) */ + interface PalletMultisigError extends Enum { + readonly isMinimumThreshold: boolean; + readonly isAlreadyApproved: boolean; + readonly isNoApprovalsNeeded: boolean; + readonly isTooFewSignatories: boolean; + readonly isTooManySignatories: boolean; + readonly isSignatoriesOutOfOrder: boolean; + readonly isSenderInSignatories: boolean; + readonly isNotFound: boolean; + readonly isNotOwner: boolean; + readonly isNoTimepoint: boolean; + readonly isWrongTimepoint: boolean; + readonly isUnexpectedTimepoint: boolean; + readonly isMaxWeightTooLow: boolean; + readonly isAlreadyStored: boolean; + readonly type: + | 'MinimumThreshold' + | 'AlreadyApproved' + | 'NoApprovalsNeeded' + | 'TooFewSignatories' + | 'TooManySignatories' + | 'SignatoriesOutOfOrder' + | 'SenderInSignatories' + | 'NotFound' + | 'NotOwner' + | 'NoTimepoint' + | 'WrongTimepoint' + | 'UnexpectedTimepoint' + | 'MaxWeightTooLow' + | 'AlreadyStored'; + } + + /** @name PalletProxyProxyDefinition (181) */ + interface PalletProxyProxyDefinition extends Struct { + readonly delegate: AccountId32; + readonly proxyType: IntegriteeNodeRuntimeProxyType; + readonly delay: u32; + } + + /** @name PalletProxyAnnouncement (185) */ + interface PalletProxyAnnouncement extends Struct { + readonly real: AccountId32; + readonly callHash: H256; + readonly height: u32; + } + + /** @name PalletProxyError (187) */ + interface PalletProxyError extends Enum { + readonly isTooMany: boolean; + readonly isNotFound: boolean; + readonly isNotProxy: boolean; + readonly isUnproxyable: boolean; + readonly isDuplicate: boolean; + readonly isNoPermission: boolean; + readonly isUnannounced: boolean; + readonly isNoSelfProxy: boolean; + readonly type: + | 'TooMany' + | 'NotFound' + | 'NotProxy' + | 'Unproxyable' + | 'Duplicate' + | 'NoPermission' + | 'Unannounced' + | 'NoSelfProxy'; + } + + /** @name PalletSchedulerScheduled (190) */ + interface PalletSchedulerScheduled extends Struct { + readonly maybeId: Option; + readonly priority: u8; + readonly call: FrameSupportPreimagesBounded; + readonly maybePeriodic: Option>; + readonly origin: IntegriteeNodeRuntimeOriginCaller; + } + + /** @name FrameSupportPreimagesBounded (191) */ + interface FrameSupportPreimagesBounded extends Enum { + readonly isLegacy: boolean; + readonly asLegacy: { + readonly hash_: H256; + } & Struct; + readonly isInline: boolean; + readonly asInline: Bytes; + readonly isLookup: boolean; + readonly asLookup: { + readonly hash_: H256; + readonly len: u32; + } & Struct; + readonly type: 'Legacy' | 'Inline' | 'Lookup'; + } + + /** @name PalletSchedulerError (194) */ + interface PalletSchedulerError extends Enum { + readonly isFailedToSchedule: boolean; + readonly isNotFound: boolean; + readonly isTargetBlockNumberInPast: boolean; + readonly isRescheduleNoChange: boolean; + readonly isNamed: boolean; + readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange' | 'Named'; + } + + /** @name PalletUtilityError (195) */ + interface PalletUtilityError extends Enum { + readonly isTooManyCalls: boolean; + readonly type: 'TooManyCalls'; + } + + /** @name PalletBalancesBalanceLock (197) */ + interface PalletBalancesBalanceLock extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + readonly reasons: PalletBalancesReasons; + } + + /** @name PalletBalancesReasons (198) */ + interface PalletBalancesReasons extends Enum { + readonly isFee: boolean; + readonly isMisc: boolean; + readonly isAll: boolean; + readonly type: 'Fee' | 'Misc' | 'All'; + } + + /** @name PalletBalancesReserveData (201) */ + interface PalletBalancesReserveData extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name PalletBalancesError (203) */ + interface PalletBalancesError extends Enum { + readonly isVestingBalance: boolean; + readonly isLiquidityRestrictions: boolean; + readonly isInsufficientBalance: boolean; + readonly isExistentialDeposit: boolean; + readonly isKeepAlive: boolean; + readonly isExistingVestingSchedule: boolean; + readonly isDeadAccount: boolean; + readonly isTooManyReserves: boolean; + readonly type: + | 'VestingBalance' + | 'LiquidityRestrictions' + | 'InsufficientBalance' + | 'ExistentialDeposit' + | 'KeepAlive' + | 'ExistingVestingSchedule' + | 'DeadAccount' + | 'TooManyReserves'; + } + + /** @name PalletTransactionPaymentReleases (205) */ + interface PalletTransactionPaymentReleases extends Enum { + readonly isV1Ancient: boolean; + readonly isV2: boolean; + readonly type: 'V1Ancient' | 'V2'; + } + + /** @name PalletVestingReleases (208) */ + interface PalletVestingReleases extends Enum { + readonly isV0: boolean; + readonly isV1: boolean; + readonly type: 'V0' | 'V1'; + } + + /** @name PalletVestingError (209) */ + interface PalletVestingError extends Enum { + readonly isNotVesting: boolean; + readonly isAtMaxVestingSchedules: boolean; + readonly isAmountLow: boolean; + readonly isScheduleIndexOutOfBounds: boolean; + readonly isInvalidScheduleParams: boolean; + readonly type: + | 'NotVesting' + | 'AtMaxVestingSchedules' + | 'AmountLow' + | 'ScheduleIndexOutOfBounds' + | 'InvalidScheduleParams'; + } + + /** @name PalletGrandpaStoredState (210) */ + interface PalletGrandpaStoredState extends Enum { + readonly isLive: boolean; + readonly isPendingPause: boolean; + readonly asPendingPause: { + readonly scheduledAt: u32; + readonly delay: u32; + } & Struct; + readonly isPaused: boolean; + readonly isPendingResume: boolean; + readonly asPendingResume: { + readonly scheduledAt: u32; + readonly delay: u32; + } & Struct; + readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume'; + } + + /** @name PalletGrandpaStoredPendingChange (211) */ + interface PalletGrandpaStoredPendingChange extends Struct { + readonly scheduledAt: u32; + readonly delay: u32; + readonly nextAuthorities: Vec>; + readonly forced: Option; + } + + /** @name PalletGrandpaError (213) */ + interface PalletGrandpaError extends Enum { + readonly isPauseFailed: boolean; + readonly isResumeFailed: boolean; + readonly isChangePending: boolean; + readonly isTooSoon: boolean; + readonly isInvalidKeyOwnershipProof: boolean; + readonly isInvalidEquivocationProof: boolean; + readonly isDuplicateOffenceReport: boolean; + readonly type: + | 'PauseFailed' + | 'ResumeFailed' + | 'ChangePending' + | 'TooSoon' + | 'InvalidKeyOwnershipProof' + | 'InvalidEquivocationProof' + | 'DuplicateOffenceReport'; + } + + /** @name PalletCollectiveVotes (215) */ + interface PalletCollectiveVotes extends Struct { + readonly index: u32; + readonly threshold: u32; + readonly ayes: Vec; + readonly nays: Vec; + readonly end: u32; + } + + /** @name PalletCollectiveError (216) */ + interface PalletCollectiveError extends Enum { + readonly isNotMember: boolean; + readonly isDuplicateProposal: boolean; + readonly isProposalMissing: boolean; + readonly isWrongIndex: boolean; + readonly isDuplicateVote: boolean; + readonly isAlreadyInitialized: boolean; + readonly isTooEarly: boolean; + readonly isTooManyProposals: boolean; + readonly isWrongProposalWeight: boolean; + readonly isWrongProposalLength: boolean; + readonly type: + | 'NotMember' + | 'DuplicateProposal' + | 'ProposalMissing' + | 'WrongIndex' + | 'DuplicateVote' + | 'AlreadyInitialized' + | 'TooEarly' + | 'TooManyProposals' + | 'WrongProposalWeight' + | 'WrongProposalLength'; + } + + /** @name PalletTreasuryProposal (217) */ + interface PalletTreasuryProposal extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly beneficiary: AccountId32; + readonly bond: u128; + } + + /** @name FrameSupportPalletId (222) */ + interface FrameSupportPalletId extends U8aFixed {} + + /** @name PalletTreasuryError (223) */ + interface PalletTreasuryError extends Enum { + readonly isInsufficientProposersBalance: boolean; + readonly isInvalidIndex: boolean; + readonly isTooManyApprovals: boolean; + readonly isInsufficientPermission: boolean; + readonly isProposalNotApproved: boolean; + readonly type: + | 'InsufficientProposersBalance' + | 'InvalidIndex' + | 'TooManyApprovals' + | 'InsufficientPermission' + | 'ProposalNotApproved'; + } + + /** @name TeerexPrimitivesEnclave (224) */ + interface TeerexPrimitivesEnclave extends Struct { + readonly pubkey: AccountId32; + readonly mrEnclave: U8aFixed; + readonly timestamp: u64; + readonly url: Bytes; + readonly shieldingKey: Option; + readonly vcPubkey: Option; + readonly sgxMode: TeerexPrimitivesSgxBuildMode; + readonly sgxMetadata: TeerexPrimitivesSgxEnclaveMetadata; + } + + /** @name TeerexPrimitivesSgxBuildMode (225) */ + interface TeerexPrimitivesSgxBuildMode extends Enum { + readonly isDebug: boolean; + readonly isProduction: boolean; + readonly type: 'Debug' | 'Production'; + } + + /** @name TeerexPrimitivesSgxEnclaveMetadata (226) */ + interface TeerexPrimitivesSgxEnclaveMetadata extends Struct { + readonly quote: Bytes; + readonly quoteSig: Bytes; + readonly quoteCert: Bytes; + } + + /** @name TeerexPrimitivesQuotingEnclave (227) */ + interface TeerexPrimitivesQuotingEnclave extends Struct { + readonly issueDate: u64; + readonly nextUpdate: u64; + readonly miscselect: U8aFixed; + readonly miscselectMask: U8aFixed; + readonly attributes: U8aFixed; + readonly attributesMask: U8aFixed; + readonly mrsigner: U8aFixed; + readonly isvprodid: u16; + readonly tcb: Vec; + } + + /** @name TeerexPrimitivesQeTcb (230) */ + interface TeerexPrimitivesQeTcb extends Struct { + readonly isvsvn: u16; + } + + /** @name TeerexPrimitivesTcbInfoOnChain (232) */ + interface TeerexPrimitivesTcbInfoOnChain extends Struct { + readonly issueDate: u64; + readonly nextUpdate: u64; + readonly tcbLevels: Vec; + } + + /** @name TeerexPrimitivesTcbVersionStatus (234) */ + interface TeerexPrimitivesTcbVersionStatus extends Struct { + readonly cpusvn: U8aFixed; + readonly pcesvn: u16; + } + + /** @name PalletTeerexError (235) */ + interface PalletTeerexError extends Enum { + readonly isRequireAdmin: boolean; + readonly isEnclaveSignerDecodeError: boolean; + readonly isSenderIsNotAttestedEnclave: boolean; + readonly isRemoteAttestationVerificationFailed: boolean; + readonly isRemoteAttestationTooOld: boolean; + readonly isSgxModeNotAllowed: boolean; + readonly isEnclaveIsNotRegistered: boolean; + readonly isWrongMrenclaveForBondingAccount: boolean; + readonly isWrongMrenclaveForShard: boolean; + readonly isEnclaveUrlTooLong: boolean; + readonly isRaReportTooLong: boolean; + readonly isEmptyEnclaveRegistry: boolean; + readonly isScheduledEnclaveNotExist: boolean; + readonly isEnclaveNotInSchedule: boolean; + readonly isCollateralInvalid: boolean; + readonly isTooManyTopics: boolean; + readonly isDataTooLong: boolean; + readonly type: + | 'RequireAdmin' + | 'EnclaveSignerDecodeError' + | 'SenderIsNotAttestedEnclave' + | 'RemoteAttestationVerificationFailed' + | 'RemoteAttestationTooOld' + | 'SgxModeNotAllowed' + | 'EnclaveIsNotRegistered' + | 'WrongMrenclaveForBondingAccount' + | 'WrongMrenclaveForShard' + | 'EnclaveUrlTooLong' + | 'RaReportTooLong' + | 'EmptyEnclaveRegistry' + | 'ScheduledEnclaveNotExist' + | 'EnclaveNotInSchedule' + | 'CollateralInvalid' + | 'TooManyTopics' + | 'DataTooLong'; + } + + /** @name PalletClaimsError (236) */ + interface PalletClaimsError extends Enum { + readonly isInvalidEthereumSignature: boolean; + readonly isSignerHasNoClaim: boolean; + readonly isSenderHasNoClaim: boolean; + readonly isPotUnderflow: boolean; + readonly isInvalidStatement: boolean; + readonly isVestedBalanceExists: boolean; + readonly type: + | 'InvalidEthereumSignature' + | 'SignerHasNoClaim' + | 'SenderHasNoClaim' + | 'PotUnderflow' + | 'InvalidStatement' + | 'VestedBalanceExists'; + } + + /** @name PalletTeeracleError (240) */ + interface PalletTeeracleError extends Enum { + readonly isInvalidCurrency: boolean; + readonly isReleaseWhitelistOverflow: boolean; + readonly isReleaseNotWhitelisted: boolean; + readonly isReleaseAlreadyWhitelisted: boolean; + readonly isTradingPairStringTooLong: boolean; + readonly isOracleDataNameStringTooLong: boolean; + readonly isDataSourceStringTooLong: boolean; + readonly isOracleBlobTooBig: boolean; + readonly type: + | 'InvalidCurrency' + | 'ReleaseWhitelistOverflow' + | 'ReleaseNotWhitelisted' + | 'ReleaseAlreadyWhitelisted' + | 'TradingPairStringTooLong' + | 'OracleDataNameStringTooLong' + | 'DataSourceStringTooLong' + | 'OracleBlobTooBig'; + } + + /** @name SidechainPrimitivesSidechainBlockConfirmation (241) */ + interface SidechainPrimitivesSidechainBlockConfirmation extends Struct { + readonly blockNumber: u64; + readonly blockHeaderHash: H256; + } + + /** @name PalletSidechainError (242) */ + interface PalletSidechainError extends Enum { + readonly isReceivedUnexpectedSidechainBlock: boolean; + readonly isInvalidNextFinalizationCandidateBlockNumber: boolean; + readonly type: 'ReceivedUnexpectedSidechainBlock' | 'InvalidNextFinalizationCandidateBlockNumber'; + } + + /** @name PalletIdentityManagementError (243) */ + interface PalletIdentityManagementError extends Enum { + readonly isDelegateeNotExist: boolean; + readonly isUnauthorisedUser: boolean; + readonly type: 'DelegateeNotExist' | 'UnauthorisedUser'; + } + + /** @name PalletVcManagementVcContext (244) */ + interface PalletVcManagementVcContext extends Struct { + readonly subject: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly hash_: H256; + readonly status: PalletVcManagementVcContextStatus; + } + + /** @name PalletVcManagementVcContextStatus (245) */ + interface PalletVcManagementVcContextStatus extends Enum { + readonly isActive: boolean; + readonly isDisabled: boolean; + readonly type: 'Active' | 'Disabled'; + } + + /** @name PalletVcManagementSchemaVcSchema (246) */ + interface PalletVcManagementSchemaVcSchema extends Struct { + readonly id: Bytes; + readonly author: AccountId32; + readonly content: Bytes; + readonly status: PalletVcManagementVcContextStatus; + } + + /** @name PalletVcManagementError (249) */ + interface PalletVcManagementError extends Enum { + readonly isVcAlreadyExists: boolean; + readonly isVcNotExist: boolean; + readonly isVcSubjectMismatch: boolean; + readonly isVcAlreadyDisabled: boolean; + readonly isRequireAdmin: boolean; + readonly isSchemaNotExists: boolean; + readonly isSchemaAlreadyDisabled: boolean; + readonly isSchemaAlreadyActivated: boolean; + readonly isSchemaIndexOverFlow: boolean; + readonly isLengthMismatch: boolean; + readonly type: + | 'VcAlreadyExists' + | 'VcNotExist' + | 'VcSubjectMismatch' + | 'VcAlreadyDisabled' + | 'RequireAdmin' + | 'SchemaNotExists' + | 'SchemaAlreadyDisabled' + | 'SchemaAlreadyActivated' + | 'SchemaIndexOverFlow' + | 'LengthMismatch'; + } + + /** @name PalletGroupError (250) */ + interface PalletGroupError extends Enum { + readonly isGroupMemberAlreadyExists: boolean; + readonly isGroupMemberInvalid: boolean; + readonly type: 'GroupMemberAlreadyExists' | 'GroupMemberInvalid'; + } + + /** @name SpRuntimeMultiSignature (253) */ + interface SpRuntimeMultiSignature extends Enum { + readonly isEd25519: boolean; + readonly asEd25519: SpCoreEd25519Signature; + readonly isSr25519: boolean; + readonly asSr25519: SpCoreSr25519Signature; + readonly isEcdsa: boolean; + readonly asEcdsa: SpCoreEcdsaSignature; + readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; + } + + /** @name SpCoreSr25519Signature (254) */ + interface SpCoreSr25519Signature extends U8aFixed {} + + /** @name SpCoreEcdsaSignature (255) */ + interface SpCoreEcdsaSignature extends U8aFixed {} + + /** @name FrameSystemExtensionsCheckNonZeroSender (257) */ + type FrameSystemExtensionsCheckNonZeroSender = Null; + + /** @name FrameSystemExtensionsCheckSpecVersion (258) */ + type FrameSystemExtensionsCheckSpecVersion = Null; + + /** @name FrameSystemExtensionsCheckTxVersion (259) */ + type FrameSystemExtensionsCheckTxVersion = Null; + + /** @name FrameSystemExtensionsCheckGenesis (260) */ + type FrameSystemExtensionsCheckGenesis = Null; + + /** @name FrameSystemExtensionsCheckNonce (263) */ + interface FrameSystemExtensionsCheckNonce extends Compact {} + + /** @name FrameSystemExtensionsCheckWeight (264) */ + type FrameSystemExtensionsCheckWeight = Null; + + /** @name PalletTransactionPaymentChargeTransactionPayment (265) */ + interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} + + /** @name IntegriteeNodeRuntimeRuntime (266) */ + type IntegriteeNodeRuntimeRuntime = Null; +} // declare module diff --git a/tee-worker/ts-tests/interfaces/types.ts b/tee-worker/ts-tests/interfaces/types.ts new file mode 100644 index 0000000000..15b95bb1db --- /dev/null +++ b/tee-worker/ts-tests/interfaces/types.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './identity/types'; diff --git a/tee-worker/ts-tests/yarn.lock b/tee-worker/ts-tests/yarn.lock index 7718dbc3e6..84a5729d5b 100644 --- a/tee-worker/ts-tests/yarn.lock +++ b/tee-worker/ts-tests/yarn.lock @@ -2,6 +2,213 @@ # yarn lockfile v1 +"@ampproject/remapping@^2.2.0": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" + integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@babel/code-frame@^7.18.6", "@babel/code-frame@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.21.4.tgz#d0fa9e4413aca81f2b23b9442797bda1826edb39" + integrity sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g== + dependencies: + "@babel/highlight" "^7.18.6" + +"@babel/compat-data@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.4.tgz#457ffe647c480dff59c2be092fc3acf71195c87f" + integrity sha512-/DYyDpeCfaVinT40FPGdkkb+lYSKvsVuMjDAG7jPOWWiM1ibOaB9CXJAlc4d1QpP/U2q2P9jbrSlClKSErd55g== + +"@babel/core@^7.20.12": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.4.tgz#c6dc73242507b8e2a27fd13a9c1814f9fa34a659" + integrity sha512-qt/YV149Jman/6AfmlxJ04LMIu8bMoyl3RB91yTFrxQmgbrSvQMy7cI8Q62FHx1t8wJ8B5fu0UDoLwHAhUo1QA== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.21.4" + "@babel/generator" "^7.21.4" + "@babel/helper-compilation-targets" "^7.21.4" + "@babel/helper-module-transforms" "^7.21.2" + "@babel/helpers" "^7.21.0" + "@babel/parser" "^7.21.4" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.4" + "@babel/types" "^7.21.4" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.2" + semver "^6.3.0" + +"@babel/generator@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.4.tgz#64a94b7448989f421f919d5239ef553b37bb26bc" + integrity sha512-NieM3pVIYW2SwGzKoqfPrQsf4xGs9M9AIG3ThppsSRmO+m7eQhmI6amajKMUeIO37wFfsvnvcxQFx6x6iqxDnA== + dependencies: + "@babel/types" "^7.21.4" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + +"@babel/helper-compilation-targets@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.21.4.tgz#770cd1ce0889097ceacb99418ee6934ef0572656" + integrity sha512-Fa0tTuOXZ1iL8IeDFUWCzjZcn+sJGd9RZdH9esYVjEejGmzf+FFYQpMi/kZUk2kPy/q1H3/GPw7np8qar/stfg== + dependencies: + "@babel/compat-data" "^7.21.4" + "@babel/helper-validator-option" "^7.21.0" + browserslist "^4.21.3" + lru-cache "^5.1.1" + semver "^6.3.0" + +"@babel/helper-environment-visitor@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" + integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== + +"@babel/helper-function-name@^7.21.0": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz#d552829b10ea9f120969304023cd0645fa00b1b4" + integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg== + dependencies: + "@babel/template" "^7.20.7" + "@babel/types" "^7.21.0" + +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-module-imports@^7.18.6": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz#ac88b2f76093637489e718a90cec6cf8a9b029af" + integrity sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg== + dependencies: + "@babel/types" "^7.21.4" + +"@babel/helper-module-transforms@^7.21.2": + version "7.21.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz#160caafa4978ac8c00ac66636cb0fa37b024e2d2" + integrity sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.20.2" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.19.1" + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.2" + "@babel/types" "^7.21.2" + +"@babel/helper-simple-access@^7.20.2": + version "7.20.2" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" + integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA== + dependencies: + "@babel/types" "^7.20.2" + +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + +"@babel/helper-string-parser@^7.19.4": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" + integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== + +"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" + integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== + +"@babel/helper-validator-option@^7.21.0": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180" + integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ== + +"@babel/helpers@^7.21.0": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.0.tgz#9dd184fb5599862037917cdc9eecb84577dc4e7e" + integrity sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA== + dependencies: + "@babel/template" "^7.20.7" + "@babel/traverse" "^7.21.0" + "@babel/types" "^7.21.0" + +"@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.20.7", "@babel/parser@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.4.tgz#94003fdfc520bbe2875d4ae557b43ddb6d880f17" + integrity sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw== + +"@babel/register@^7.18.9": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.21.0.tgz#c97bf56c2472e063774f31d344c592ebdcefa132" + integrity sha512-9nKsPmYDi5DidAqJaQooxIhsLJiNMkGr8ypQ8Uic7cIox7UCDsM7HuUGxdGT7mSDTYbqzIdsOWzfBton/YJrMw== + dependencies: + clone-deep "^4.0.1" + find-cache-dir "^2.0.0" + make-dir "^2.1.0" + pirates "^4.0.5" + source-map-support "^0.5.16" + +"@babel/runtime@^7.20.13", "@babel/runtime@^7.20.6": + version "7.21.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673" + integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw== + dependencies: + regenerator-runtime "^0.13.11" + +"@babel/template@^7.20.7": + version "7.20.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" + integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + +"@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.4.tgz#a836aca7b116634e97a6ed99976236b3282c9d36" + integrity sha512-eyKrRHKdyZxqDm+fV1iqL9UAHMoIg0nDaGqfIOd8rKH17m5snv7Gn4qgjBoFfLz9APvjFU/ICT00NVCv1Epp8Q== + dependencies: + "@babel/code-frame" "^7.21.4" + "@babel/generator" "^7.21.4" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.21.0" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.21.4" + "@babel/types" "^7.21.4" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.18.6", "@babel/types@^7.20.2", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.21.4": + version "7.21.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.4.tgz#2d5d6bb7908699b3b416409ffd3b5daa25b030d4" + integrity sha512-rU2oY501qDxE8Pyo7i/Orqma4ziCOrby0/9mvbDUGEfvZjb279Nk9k19e2fiCxHbRRpY2ZyrgW1eq22mvmOIzA== + dependencies: + "@babel/helper-string-parser" "^7.19.4" + "@babel/helper-validator-identifier" "^7.19.1" + to-fast-properties "^2.0.0" + "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" @@ -351,11 +558,35 @@ "@ethersproject/properties" "^5.7.0" "@ethersproject/strings" "^5.7.0" +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" + integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + "@jridgewell/resolve-uri@^3.0.3": version "3.1.1" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== +"@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@1.4.14": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + "@jridgewell/sourcemap-codec@^1.4.10": version "1.4.15" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" @@ -369,343 +600,378 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.18" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" + integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== + dependencies: + "@jridgewell/resolve-uri" "3.1.0" + "@jridgewell/sourcemap-codec" "1.4.14" + "@noble/ed25519@^1.7.3": version "1.7.3" resolved "https://registry.yarnpkg.com/@noble/ed25519/-/ed25519-1.7.3.tgz#57e1677bf6885354b466c38e2b620c62f45a7123" integrity sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ== -"@noble/hashes@1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" - integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== +"@noble/hashes@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.2.0.tgz#a3150eeb09cc7ab207ebf6d7b9ad311a9bdbed12" + integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== "@noble/secp256k1@1.7.1": version "1.7.1" resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== -"@polkadot/api-augment@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-10.3.4.tgz#cdaa7b9e24418335b2b3b95d8cf00b9e2b8ff6db" - integrity sha512-wSDNcLU4dV78B7retZaenMME3cZtGhfscKUW7SzPU0F4IeTBiuppYTLA1Ykcdqux0djB1OrxVU5O3EWGaV7foA== - dependencies: - "@polkadot/api-base" "10.3.4" - "@polkadot/rpc-augment" "10.3.4" - "@polkadot/types" "10.3.4" - "@polkadot/types-augment" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/util" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/api-base@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-10.3.4.tgz#56a77118eec096f047637a4deb055157a4e159ec" - integrity sha512-DwdnMZqpmm+AXiHQbgNwpW7b3NYFf6gm6ggxxcdVahkT+//1LV870oIfou3aPoe3Adr+98SxdazL8kgS0QZPjA== - dependencies: - "@polkadot/rpc-core" "10.3.4" - "@polkadot/types" "10.3.4" - "@polkadot/util" "^11.1.3" +"@polkadot/api-augment@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-9.14.2.tgz#2c49cdcfdf7057523db1dc8d7b0801391a8a2e69" + integrity sha512-19MmW8AHEcLkdcUIo3LLk0eCQgREWqNSxkUyOeWn7UiNMY1AhDOOwMStUBNCvrIDK6VL6GGc1sY7rkPCLMuKSw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/api-base" "9.14.2" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + +"@polkadot/api-base@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-9.14.2.tgz#605b44e3692a125bd8d97eed9cea8af9d0c454e2" + integrity sha512-ky9fmzG1Tnrjr/SBZ0aBB21l0TFr+CIyQenQczoUyVgiuxVaI/2Bp6R2SFrHhG28P+PW2/RcYhn2oIAR2Z2fZQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/util" "^10.4.2" rxjs "^7.8.0" - tslib "^2.5.0" - -"@polkadot/api-derive@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-10.3.4.tgz#2d460ed17fc42ae221e39d97d1d338474a5362a9" - integrity sha512-W2QXR7nwbopmgUfimso64sRjrOimYsmxOInc4F8mQQrxB8yn5xKg6v2qbLFfYhe+AEZKnotRbUq66m9hnvGqPw== - dependencies: - "@polkadot/api" "10.3.4" - "@polkadot/api-augment" "10.3.4" - "@polkadot/api-base" "10.3.4" - "@polkadot/rpc-core" "10.3.4" - "@polkadot/types" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/util" "^11.1.3" - "@polkadot/util-crypto" "^11.1.3" + +"@polkadot/api-derive@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-9.14.2.tgz#e8fcd4ee3f2b80b9fe34d4dec96169c3bdb4214d" + integrity sha512-yw9OXucmeggmFqBTMgza0uZwhNjPxS7MaT7lSCUIRKckl1GejdV+qMhL3XFxPFeYzXwzFpdPG11zWf+qJlalqw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/api" "9.14.2" + "@polkadot/api-augment" "9.14.2" + "@polkadot/api-base" "9.14.2" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" rxjs "^7.8.0" - tslib "^2.5.0" - -"@polkadot/api@10.3.4", "@polkadot/api@^10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-10.3.4.tgz#6584b05fcc2d99681d7130cc630c05a9fa5fa797" - integrity sha512-+F78fOzzzrYzavcE/nthjWipFnfQdw8pvt5ZCT2UJZm+oUMhpt0utCxNYSqJFGZiC/KgAr0upIEptwSl5th+mA== - dependencies: - "@polkadot/api-augment" "10.3.4" - "@polkadot/api-base" "10.3.4" - "@polkadot/api-derive" "10.3.4" - "@polkadot/keyring" "^11.1.3" - "@polkadot/rpc-augment" "10.3.4" - "@polkadot/rpc-core" "10.3.4" - "@polkadot/rpc-provider" "10.3.4" - "@polkadot/types" "10.3.4" - "@polkadot/types-augment" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/types-create" "10.3.4" - "@polkadot/types-known" "10.3.4" - "@polkadot/util" "^11.1.3" - "@polkadot/util-crypto" "^11.1.3" + +"@polkadot/api@9.14.2", "@polkadot/api@^9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-9.14.2.tgz#d5cee02236654c6063d7c4b70c78c290db5aba8d" + integrity sha512-R3eYFj2JgY1zRb+OCYQxNlJXCs2FA+AU4uIEiVcXnVLmR3M55tkRNEwYAZmiFxx0pQmegGgPMc33q7TWGdw24A== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/api-augment" "9.14.2" + "@polkadot/api-base" "9.14.2" + "@polkadot/api-derive" "9.14.2" + "@polkadot/keyring" "^10.4.2" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/rpc-provider" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/types-known" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" eventemitter3 "^5.0.0" rxjs "^7.8.0" - tslib "^2.5.0" - -"@polkadot/keyring@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-11.1.3.tgz#8718f14996ecdb389acffc6ecbe7deb8a2d74b5f" - integrity sha512-bzGz1cWDYK7MWhp0630W6KOwTC/wsvKKHBvWxReMT7iQwFHeLn5AemUOveqIPxF+esd/UfdN5aFDHApjYcyZsg== - dependencies: - "@polkadot/util" "11.1.3" - "@polkadot/util-crypto" "11.1.3" - tslib "^2.5.0" - -"@polkadot/networks@11.1.3", "@polkadot/networks@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-11.1.3.tgz#e113c98269328267962c2047dccca4d2790cc8a5" - integrity sha512-goLpX9SswAGGeh1jXB79wHEfWOF5rLIItMHYalujBmhQVxyAqbxP2tzQqPQXDLcnkWbgwkyYGLXaDD72GBqHZw== - dependencies: - "@polkadot/util" "11.1.3" - "@substrate/ss58-registry" "^1.39.0" - tslib "^2.5.0" - -"@polkadot/rpc-augment@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-10.3.4.tgz#40755870f54926f7985b3015bf90c41c216a48fa" - integrity sha512-gQzbSBR6et4TuxRWhEPKrkf+bAU1aaIZVD3Xxy1v9BFX2yJEt1K0AAyu858V3QbijwUNhxsJdngLb1RVVHbUHw== - dependencies: - "@polkadot/rpc-core" "10.3.4" - "@polkadot/types" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/util" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/rpc-core@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-10.3.4.tgz#f18d641de4be7857a699ff05cf7c5e5403207e4d" - integrity sha512-acvG77A4QeLMZGFFYwI3t3WywAL1vodsj8DngdBb2FL7e7G1Ss9TzQFYmTsc4v2ybiXs5PPNUA0VX1okdhiYzA== - dependencies: - "@polkadot/rpc-augment" "10.3.4" - "@polkadot/rpc-provider" "10.3.4" - "@polkadot/types" "10.3.4" - "@polkadot/util" "^11.1.3" + +"@polkadot/keyring@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-10.4.2.tgz#793377fdb9076df0af771df11388faa6be03c70d" + integrity sha512-7iHhJuXaHrRTG6cJDbZE9G+c1ts1dujp0qbO4RfAPmT7YUvphHvAtCKueN9UKPz5+TYDL+rP/jDEaSKU8jl/qQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "10.4.2" + "@polkadot/util-crypto" "10.4.2" + +"@polkadot/networks@10.4.2", "@polkadot/networks@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-10.4.2.tgz#d7878c6aad8173c800a21140bfe5459261724456" + integrity sha512-FAh/znrEvWBiA/LbcT5GXHsCFUl//y9KqxLghSr/CreAmAergiJNT0MVUezC7Y36nkATgmsr4ylFwIxhVtuuCw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "10.4.2" + "@substrate/ss58-registry" "^1.38.0" + +"@polkadot/rpc-augment@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-9.14.2.tgz#eb70d5511463dab8d995faeb77d4edfe4952fe26" + integrity sha512-mOubRm3qbKZTbP9H01XRrfTk7k5it9WyzaWAg72DJBQBYdgPUUkGSgpPD/Srkk5/5GAQTWVWL1I2UIBKJ4TJjQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/rpc-core" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + +"@polkadot/rpc-core@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-9.14.2.tgz#26d4f00ac7abbf880f8280e9b96235880d35794b" + integrity sha512-krA/mtQ5t9nUQEsEVC1sjkttLuzN6z6gyJxK2IlpMS3S5ncy/R6w4FOpy+Q0H18Dn83JBo0p7ZtY7Y6XkK48Kw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/rpc-provider" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/util" "^10.4.2" rxjs "^7.8.0" - tslib "^2.5.0" - -"@polkadot/rpc-provider@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-10.3.4.tgz#5accdfbb430c64816bbf3816933bae865064d7a3" - integrity sha512-emIb5N7hG3PtDvWtI8Oa4QN6L0hX6IF0hcKSybA/mhoxHUucNPvlb6IXTUqenifEI2v8DFOatrywAJJ4DWMHIg== - dependencies: - "@polkadot/keyring" "^11.1.3" - "@polkadot/types" "10.3.4" - "@polkadot/types-support" "10.3.4" - "@polkadot/util" "^11.1.3" - "@polkadot/util-crypto" "^11.1.3" - "@polkadot/x-fetch" "^11.1.3" - "@polkadot/x-global" "^11.1.3" - "@polkadot/x-ws" "^11.1.3" + +"@polkadot/rpc-provider@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-9.14.2.tgz#0dea667f3a03bf530f202cba5cd360df19b32e30" + integrity sha512-YTSywjD5PF01V47Ru5tln2LlpUwJiSOdz6rlJXPpMaY53hUp7+xMU01FVAQ1bllSBNisSD1Msv/mYHq84Oai2g== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/keyring" "^10.4.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-support" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + "@polkadot/x-fetch" "^10.4.2" + "@polkadot/x-global" "^10.4.2" + "@polkadot/x-ws" "^10.4.2" eventemitter3 "^5.0.0" mock-socket "^9.2.1" nock "^13.3.0" - tslib "^2.5.0" optionalDependencies: - "@substrate/connect" "0.7.23" - -"@polkadot/types-augment@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-10.3.4.tgz#5cf1c9c104ff4119cb2d0a34a62949b3b22b9fd0" - integrity sha512-qUByJSz2lDUbfOanFyF9iWzSDqSCHxWDYCXYI6y4D4fz+Q1RxSbbJ4eiqam0zdXHRFrJ+DKWQofS6OIlqE1L5A== - dependencies: - "@polkadot/types" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/util" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/types-codec@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-10.3.4.tgz#1181c60142b85c7222b8e38f507398c6c8ffcbc0" - integrity sha512-OQf2sQUm8SYsKIO1jO0MgdmR5P5gCqShY7cdSLraOkj5M+zCHBn7xvVnMqYTNf2n9a63VQb2e5zCqSwfdaJj0w== - dependencies: - "@polkadot/util" "^11.1.3" - "@polkadot/x-bigint" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/types-create@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-10.3.4.tgz#15f06f27e74135cad436400b7d005b12eb90ae55" - integrity sha512-z56cHNBMJWBa/4wMmLtpD+zYvsLS5nTfBKYuvccZvCoVtS++Xts9KVwR3DzKiBtm1y+WuxZO2orb0sJQpKuTLQ== - dependencies: - "@polkadot/types-codec" "10.3.4" - "@polkadot/util" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/types-known@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-10.3.4.tgz#38ead1097fd497d76a812d5be962ebe88c3491e5" - integrity sha512-RFie+U+LzJGY8dMtKiGp8sH13sPHN6wZG13ER4O6k6LN85n6CmFT7k2w7W7yMzyuMycfYqt41izZW2PoDfPsSQ== - dependencies: - "@polkadot/networks" "^11.1.3" - "@polkadot/types" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/types-create" "10.3.4" - "@polkadot/util" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/types-support@10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-10.3.4.tgz#4a4e28eef85f30510b9b1b1daf79801279bb6fbb" - integrity sha512-qyizM9fbWW2NIW4tk8f0hstGzSEhP3pVjwFcvowzFZ0Be3zuoMruwHkOXBTEM1y5qiIVfXoVlI7a8rCcHDC+ew== - dependencies: - "@polkadot/util" "^11.1.3" - tslib "^2.5.0" - -"@polkadot/types@10.3.4", "@polkadot/types@^10.3.4": - version "10.3.4" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.3.4.tgz#21a617c124359e2234fbe762396b10dd5257b40f" - integrity sha512-mbAyWg7a4/6OUwivrkm6y8ApT/vBxrMudIeydFsVBaeWdqjX1wjCOjDpzZGrfR7jmz53xpgJVrSQUAoLvZpfJA== - dependencies: - "@polkadot/keyring" "^11.1.3" - "@polkadot/types-augment" "10.3.4" - "@polkadot/types-codec" "10.3.4" - "@polkadot/types-create" "10.3.4" - "@polkadot/util" "^11.1.3" - "@polkadot/util-crypto" "^11.1.3" + "@substrate/connect" "0.7.19" + +"@polkadot/typegen@^9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-9.14.2.tgz#223fd8b986e05845a80d300f0348abaa82cf67d5" + integrity sha512-j5ZOSz106ocDrmYOENnIPvuI5j7Cg458D31U1hZz0fdv090QowtTHjpe5+RBBaS3W0Dnk8Fh+LkIzIiQPp4gjA== + dependencies: + "@babel/core" "^7.20.12" + "@babel/register" "^7.18.9" + "@babel/runtime" "^7.20.13" + "@polkadot/api" "9.14.2" + "@polkadot/api-augment" "9.14.2" + "@polkadot/rpc-augment" "9.14.2" + "@polkadot/rpc-provider" "9.14.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/types-support" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" + "@polkadot/x-ws" "^10.4.2" + handlebars "^4.7.7" + websocket "^1.0.34" + yargs "^17.6.2" + +"@polkadot/types-augment@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-9.14.2.tgz#1a478e18e713b04038f3e171287ee5abe908f0aa" + integrity sha512-WO9d7RJufUeY3iFgt2Wz762kOu1tjEiGBR5TT4AHtpEchVHUeosVTrN9eycC+BhleqYu52CocKz6u3qCT/jKLg== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + +"@polkadot/types-codec@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-9.14.2.tgz#d625c80495d7a68237b3d5c0a60ff10d206131fa" + integrity sha512-AJ4XF7W1no4PENLBRU955V6gDxJw0h++EN3YoDgThozZ0sj3OxyFupKgNBZcZb2V23H8JxQozzIad8k+nJbO1w== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "^10.4.2" + "@polkadot/x-bigint" "^10.4.2" + +"@polkadot/types-create@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-9.14.2.tgz#aec515a2d3bc7e7b7802095cdd35ece48dc442bc" + integrity sha512-nSnKpBierlmGBQT8r6/SHf6uamBIzk4WmdMsAsR4uJKJF1PtbIqx2W5PY91xWSiMSNMzjkbCppHkwaDAMwLGaw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/types-codec" "9.14.2" + "@polkadot/util" "^10.4.2" + +"@polkadot/types-known@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-9.14.2.tgz#17fe5034a5b907bd006093a687f112b07edadf10" + integrity sha512-iM8WOCgguzJ3TLMqlm4K1gKQEwWm2zxEKT1HZZ1irs/lAbBk9MquDWDvebryiw3XsLB8xgrp3RTIBn2Q4FjB2A== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/networks" "^10.4.2" + "@polkadot/types" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/util" "^10.4.2" + +"@polkadot/types-support@9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-9.14.2.tgz#d25e8d4e5ec3deef914cb55fc8bc5448431ddd18" + integrity sha512-VWCOPgXDK3XtXT7wMLyIWeNDZxUbNcw/8Pn6n6vMogs7o/n4h6WGbGMeTIQhPWyn831/RmkVs5+2DUC+2LlOhw== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/util" "^10.4.2" + +"@polkadot/types@9.14.2", "@polkadot/types@^9.14.2": + version "9.14.2" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-9.14.2.tgz#5105f41eb9e8ea29938188d21497cbf1753268b8" + integrity sha512-hGLddTiJbvowhhUZJ3k+olmmBc1KAjWIQxujIUIYASih8FQ3/YJDKxaofGOzh0VygOKW3jxQBN2VZPofyDP9KQ== + dependencies: + "@babel/runtime" "^7.20.13" + "@polkadot/keyring" "^10.4.2" + "@polkadot/types-augment" "9.14.2" + "@polkadot/types-codec" "9.14.2" + "@polkadot/types-create" "9.14.2" + "@polkadot/util" "^10.4.2" + "@polkadot/util-crypto" "^10.4.2" rxjs "^7.8.0" - tslib "^2.5.0" -"@polkadot/util-crypto@11.1.3", "@polkadot/util-crypto@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-11.1.3.tgz#c3b166f8f8934a2139c8cfb31af50dae53a9d985" - integrity sha512-hjH1y6jXQuceJ2NWx7+ei0sR4A7t844XwlNquPxZX3kQbQS+1t6tO4Eo3/95JhPsEaJOXduus02cYEF6gteEYQ== +"@polkadot/util-crypto@10.4.2", "@polkadot/util-crypto@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-10.4.2.tgz#871fb69c65768bd48c57bb5c1f76a85d979fb8b5" + integrity sha512-RxZvF7C4+EF3fzQv8hZOLrYCBq5+wA+2LWv98nECkroChY3C2ZZvyWDqn8+aonNULt4dCVTWDZM0QIY6y4LUAQ== dependencies: - "@noble/hashes" "1.3.0" + "@babel/runtime" "^7.20.13" + "@noble/hashes" "1.2.0" "@noble/secp256k1" "1.7.1" - "@polkadot/networks" "11.1.3" - "@polkadot/util" "11.1.3" - "@polkadot/wasm-crypto" "^7.0.3" - "@polkadot/x-bigint" "11.1.3" - "@polkadot/x-randomvalues" "11.1.3" + "@polkadot/networks" "10.4.2" + "@polkadot/util" "10.4.2" + "@polkadot/wasm-crypto" "^6.4.1" + "@polkadot/x-bigint" "10.4.2" + "@polkadot/x-randomvalues" "10.4.2" "@scure/base" "1.1.1" - tslib "^2.5.0" + ed2curve "^0.3.0" tweetnacl "^1.0.3" -"@polkadot/util@11.1.3", "@polkadot/util@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-11.1.3.tgz#dcdc4504f7c31e6104e7970903d8c1998f3858ef" - integrity sha512-Gsqzv1/fSoypS5tnJkM+NJQeT7O4iYlSniubUJnaZVOKsIbueTS1bMQ1y3/h8ISxbKBtICW5cZ6zCej6Q/jC3w== +"@polkadot/util@10.4.2", "@polkadot/util@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-10.4.2.tgz#df41805cb27f46b2b4dad24c371fa2a68761baa1" + integrity sha512-0r5MGICYiaCdWnx+7Axlpvzisy/bi1wZGXgCSw5+ZTyPTOqvsYRqM2X879yxvMsGfibxzWqNzaiVjToz1jvUaA== dependencies: - "@polkadot/x-bigint" "11.1.3" - "@polkadot/x-global" "11.1.3" - "@polkadot/x-textdecoder" "11.1.3" - "@polkadot/x-textencoder" "11.1.3" + "@babel/runtime" "^7.20.13" + "@polkadot/x-bigint" "10.4.2" + "@polkadot/x-global" "10.4.2" + "@polkadot/x-textdecoder" "10.4.2" + "@polkadot/x-textencoder" "10.4.2" "@types/bn.js" "^5.1.1" bn.js "^5.2.1" - tslib "^2.5.0" -"@polkadot/wasm-bridge@7.0.3": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-7.0.3.tgz#9691450830604dc4a361692a8a2a3df22fa53e96" - integrity sha512-q5qyhkGE9lHQmThNg6G5zCM4gYip2KtmR+De/URX7yWAO6snsinFqt066RFVuHvX1hZijrYSe/BGQABAUtH4pw== +"@polkadot/wasm-bridge@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-6.4.1.tgz#e97915dd67ba543ec3381299c2a5b9330686e27e" + integrity sha512-QZDvz6dsUlbYsaMV5biZgZWkYH9BC5AfhT0f0/knv8+LrbAoQdP3Asbvddw8vyU9sbpuCHXrd4bDLBwUCRfrBQ== dependencies: - tslib "^2.5.0" - -"@polkadot/wasm-crypto-asmjs@7.0.3": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.0.3.tgz#a1bc942029979b2696a1062066d774e99a5a6b4c" - integrity sha512-ldMZjowYywn0Uj7jSr8a21rrlFFq/jWhCXVl21/KDcYGdFEfIajqbcrO5cHoT6w95sQgAwMWJwwDClXOaBjc/Q== + "@babel/runtime" "^7.20.6" + +"@polkadot/wasm-crypto-asmjs@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-6.4.1.tgz#3cc76bbda5ea4a7a860982c64f9565907b312253" + integrity sha512-UxZTwuBZlnODGIQdCsE2Sn/jU0O2xrNQ/TkhRFELfkZXEXTNu4lw6NpaKq7Iey4L+wKd8h4lT3VPVkMcPBLOvA== dependencies: - tslib "^2.5.0" + "@babel/runtime" "^7.20.6" -"@polkadot/wasm-crypto-init@7.0.3": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.0.3.tgz#336af713edfcd6fdd0194fee2919781893fba577" - integrity sha512-W4ClfPrzOTqiX0x4h6rXjCt8UsVsbg3zU7LJFFjeLgrguPoKTLGw4h5O1rR2H7EuMFbuqdztzJn3qTjBcR03Cg== +"@polkadot/wasm-crypto-init@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-6.4.1.tgz#4d9ab0030db52cf177bf707ef8e77aa4ca721668" + integrity sha512-1ALagSi/nfkyFaH6JDYfy/QbicVbSn99K8PV9rctDUfxc7P06R7CoqbjGQ4OMPX6w1WYVPU7B4jPHGLYBlVuMw== dependencies: - "@polkadot/wasm-bridge" "7.0.3" - "@polkadot/wasm-crypto-asmjs" "7.0.3" - "@polkadot/wasm-crypto-wasm" "7.0.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-bridge" "6.4.1" + "@polkadot/wasm-crypto-asmjs" "6.4.1" + "@polkadot/wasm-crypto-wasm" "6.4.1" -"@polkadot/wasm-crypto-wasm@7.0.3": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.0.3.tgz#016834b1eb2564d8a13b133ee77a4612ad873d41" - integrity sha512-FRjUADiA3wMkjJqQLgB0v9rbSADcb2PY/6dJi06iza9m41HebTN3x7f5D3gWTCfgJjzWLAPchY2Hwsa0WpTQkw== +"@polkadot/wasm-crypto-wasm@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-6.4.1.tgz#97180f80583b18f6a13c1054fa5f7e8da40b1028" + integrity sha512-3VV9ZGzh0ZY3SmkkSw+0TRXxIpiO0nB8lFwlRgcwaCihwrvLfRnH9GI8WE12mKsHVjWTEVR3ogzILJxccAUjDA== dependencies: - "@polkadot/wasm-util" "7.0.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-util" "6.4.1" -"@polkadot/wasm-crypto@^7.0.3": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-7.0.3.tgz#e07ddbeea0b45149d8e58be292ad423d646f1cb1" - integrity sha512-mOCLCaL9cyrU72PCc9nMNAj3zdvOzau5mOGJjLahIz+mqlHAoAmEXCAJvJ2qCo7OFl8QiDToAEGhdDWQfiHUyg== +"@polkadot/wasm-crypto@^6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-6.4.1.tgz#79310e23ad1ca62362ba893db6a8567154c2536a" + integrity sha512-FH+dcDPdhSLJvwL0pMLtn/LIPd62QDPODZRCmDyw+pFjLOMaRBc7raomWUOqyRWJTnqVf/iscc2rLVLNMyt7ag== dependencies: - "@polkadot/wasm-bridge" "7.0.3" - "@polkadot/wasm-crypto-asmjs" "7.0.3" - "@polkadot/wasm-crypto-init" "7.0.3" - "@polkadot/wasm-crypto-wasm" "7.0.3" - "@polkadot/wasm-util" "7.0.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.6" + "@polkadot/wasm-bridge" "6.4.1" + "@polkadot/wasm-crypto-asmjs" "6.4.1" + "@polkadot/wasm-crypto-init" "6.4.1" + "@polkadot/wasm-crypto-wasm" "6.4.1" + "@polkadot/wasm-util" "6.4.1" -"@polkadot/wasm-util@7.0.3": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-7.0.3.tgz#eab59f9dac0f00ca736aff8b24925108b7b2f860" - integrity sha512-L9U5nSbzr5xa2YSpveP/zZxhOB6i8ibssK+ihuG+7SICYtTC0B9wJp/UnjP/c6bEDlMV3yWiNXJPBTJMGmkmIQ== +"@polkadot/wasm-util@6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-6.4.1.tgz#74aecc85bec427a9225d9874685944ea3dc3ab76" + integrity sha512-Uwo+WpEsDmFExWC5kTNvsVhvqXMZEKf4gUHXFn4c6Xz4lmieRT5g+1bO1KJ21pl4msuIgdV3Bksfs/oiqMFqlw== dependencies: - tslib "^2.5.0" + "@babel/runtime" "^7.20.6" -"@polkadot/x-bigint@11.1.3", "@polkadot/x-bigint@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-11.1.3.tgz#37b09a12a9ed6df704e047e261f1b8b2ac978497" - integrity sha512-fRUUHfW9VFsXT7sLUUY7gSu8v+PvzNLRwvjnp+Ly8vFx9LTLuVGFCi+mpysuRTaPpqZZJlzBJ3fST7xTGh67Pg== +"@polkadot/x-bigint@10.4.2", "@polkadot/x-bigint@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-10.4.2.tgz#7eb2ec732259df48b5a00f07879a1331e05606ec" + integrity sha512-awRiox+/XSReLzimAU94fPldowiwnnMUkQJe8AebYhNocAj6SJU00GNoj6j6tAho6yleOwrTJXZaWFBaQVJQNg== dependencies: - "@polkadot/x-global" "11.1.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" -"@polkadot/x-fetch@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-11.1.3.tgz#e39df53fc7fb6399d3883b45d03f6ef7f265a7f9" - integrity sha512-+Z0RxxsN7+l2ZmmDdHqOo0kgqvjXJ1bw8CwTVnq3t9nPgZKn2pC3Fq3xdj/sRWiLuf/UhgCxKfYfMmt5ek4kIg== +"@polkadot/x-fetch@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-10.4.2.tgz#bc6ba70de71a252472fbe36180511ed920e05f05" + integrity sha512-Ubb64yaM4qwhogNP+4mZ3ibRghEg5UuCYRMNaCFoPgNAY8tQXuDKrHzeks3+frlmeH9YRd89o8wXLtWouwZIcw== dependencies: - "@polkadot/x-global" "11.1.3" - node-fetch "^3.3.1" - tslib "^2.5.0" + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@types/node-fetch" "^2.6.2" + node-fetch "^3.3.0" -"@polkadot/x-global@11.1.3", "@polkadot/x-global@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-11.1.3.tgz#4086694f52373fea63910b62da999bf0981d7d86" - integrity sha512-R3aqtIjgzFHJ3TyX6wavhp+59oLbZiqczIHkaas/nJe21+SVARqFmIII6BwS7ty7+8Uu4fHliA9re+ZSUp+rwg== +"@polkadot/x-global@10.4.2", "@polkadot/x-global@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-10.4.2.tgz#5662366e3deda0b4c8f024b2d902fa838f9e60a4" + integrity sha512-g6GXHD/ykZvHap3M6wh19dO70Zm43l4jEhlxf5LtTo5/0/UporFCXr2YJYZqfbn9JbQwl1AU+NroYio+vtJdiA== dependencies: - tslib "^2.5.0" + "@babel/runtime" "^7.20.13" -"@polkadot/x-randomvalues@11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-11.1.3.tgz#48dde21012aa4eef3bd00d46f545861727fb6618" - integrity sha512-kZjbRgxokMR9UTodZQKs6s3C/Q2YgeizcxpDCghM/VdvQUE8OVBGNzduF7SvBvQyg2Qbg8jMcSxXOY7UgcOWSg== +"@polkadot/x-randomvalues@10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-10.4.2.tgz#895f1220d5a4522a83d8d5014e3c1e03b129893e" + integrity sha512-mf1Wbpe7pRZHO0V3V89isPLqZOy5XGX2bCqsfUWHgb1NvV1MMx5TjVjdaYyNlGTiOkAmJKlOHshcfPU2sYWpNg== dependencies: - "@polkadot/x-global" "11.1.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" -"@polkadot/x-textdecoder@11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-11.1.3.tgz#1d1e2aa86e47587393a6acb74a086ab97d62058d" - integrity sha512-NhOjuXVfYRMw9l0VhCtZOtcWefZth58p5KpVOrFyJZd12fTsoMO5/746K7QoAjWRrLQTJ/LHCEKCtWww0LwVPw== +"@polkadot/x-textdecoder@10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-10.4.2.tgz#93202f3e5ad0e7f75a3fa02d2b8a3343091b341b" + integrity sha512-d3ADduOKUTU+cliz839+KCFmi23pxTlabH7qh7Vs1GZQvXOELWdqFOqakdiAjtMn68n1KVF4O14Y+OUm7gp/zA== dependencies: - "@polkadot/x-global" "11.1.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" -"@polkadot/x-textencoder@11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-11.1.3.tgz#ba7621b636dcfa6ca4ab6176a6a52eef15904a72" - integrity sha512-7DmqjlPN8aQexLUKwoHeadihpUnW8hjpXEru+aEDxjgq9XIxPvb++NeBK+Mra9RzzZRuiT/K5z16HlwKN//ewg== +"@polkadot/x-textencoder@10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-10.4.2.tgz#cd2e6c8a66b0b400a73f0164e99c510fb5c83501" + integrity sha512-mxcQuA1exnyv74Kasl5vxBq01QwckG088lYjc3KwmND6+pPrW2OWagbxFX5VFoDLDAE+UJtnUHsjdWyOTDhpQA== dependencies: - "@polkadot/x-global" "11.1.3" - tslib "^2.5.0" + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" -"@polkadot/x-ws@^11.1.3": - version "11.1.3" - resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-11.1.3.tgz#5a759bcbbbdceeecca53bcc74170e52cd3ca774b" - integrity sha512-omNU2mIVX997HiHm2YxEdJdyCFnv+oTyKWZd0+FdS47rdfhVwD+H9/bS+rtQ9lIqfhODdGmw3fG//gq1KpYJcw== +"@polkadot/x-ws@^10.4.2": + version "10.4.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-10.4.2.tgz#4e9d88f37717570ccf942c6f4f63b06260f45025" + integrity sha512-3gHSTXAWQu1EMcMVTF5QDKHhEHzKxhAArweEyDXE7VsgKUP/ixxw4hVZBrkX122iI5l5mjSiooRSnp/Zl3xqDQ== dependencies: - "@polkadot/x-global" "11.1.3" - tslib "^2.5.0" - ws "^8.13.0" + "@babel/runtime" "^7.20.13" + "@polkadot/x-global" "10.4.2" + "@types/websocket" "^1.0.5" + websocket "^1.0.34" "@scure/base@1.1.1": version "1.1.1" @@ -717,16 +983,24 @@ resolved "https://registry.yarnpkg.com/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.1.tgz#fa5738039586c648013caa6a0c95c43265dbe77d" integrity sha512-161JhCC1csjH3GE5mPLEd7HbWtwNSPJBg3p1Ksz9SFlTzj/bgEwudiRN2y5i0MoLGCIJRYKyKGMxVnd29PzNjg== -"@substrate/connect@0.7.23": - version "0.7.23" - resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.23.tgz#67c60f6498b5e61a654f5f64cebb7495bbafeaad" - integrity sha512-zlfI76HdUJszQWG7Dpwd0g7jjQv6LNZtE6Kd7OWv4OdpHJa1VpL2jGjg7YdLhwtx7qxqOuRiak1H+5KrsavzRQ== +"@substrate/connect@0.7.19": + version "0.7.19" + resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.19.tgz#7c879cb275bc7ac2fe9edbf797572d4ff8d8b86a" + integrity sha512-+DDRadc466gCmDU71sHrYOt1HcI2Cbhm7zdCFjZfFVHXhC/E8tOdrVSglAH2HDEHR0x2SiHRxtxOGC7ak2Zjog== dependencies: "@substrate/connect-extension-protocol" "^1.0.1" + "@substrate/smoldot-light" "0.7.9" eventemitter3 "^4.0.7" - smoldot "1.0.1" -"@substrate/ss58-registry@^1.39.0": +"@substrate/smoldot-light@0.7.9": + version "0.7.9" + resolved "https://registry.yarnpkg.com/@substrate/smoldot-light/-/smoldot-light-0.7.9.tgz#68449873a25558e547e9468289686ee228a9930f" + integrity sha512-HP8iP7sFYlpSgjjbo0lqHyU+gu9lL2hbDNce6dWk5/10mFFF9jKIFGfui4zCecUY808o/Go9pan/31kMJoLbug== + dependencies: + pako "^2.0.4" + ws "^8.8.1" + +"@substrate/ss58-registry@^1.38.0": version "1.39.0" resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.39.0.tgz#eb916ff5fea7fa02e77745823fde21af979273d2" integrity sha512-qZYpuE6n+mwew+X71dOur/CbMXj6rNW27o63JeJwdQH/GvcSKm3JLNhd+bGzwUKg0D/zD30Qc6p4JykArzM+tA== @@ -768,11 +1042,26 @@ resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.1.tgz#2f4f65bb08bc368ac39c96da7b2f09140b26851b" integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q== +"@types/node-fetch@^2.6.2": + version "2.6.3" + resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.3.tgz#175d977f5e24d93ad0f57602693c435c57ad7e80" + integrity sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w== + dependencies: + "@types/node" "*" + form-data "^3.0.0" + "@types/node@*": version "18.15.11" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.11.tgz#b3b790f09cb1696cffcec605de025b088fa4225f" integrity sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q== +"@types/websocket@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.5.tgz#3fb80ed8e07f88e51961211cd3682a3a4a81569c" + integrity sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ== + dependencies: + "@types/node" "*" + "@types/ws@^8.5.3": version "8.5.4" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.4.tgz#bb10e36116d6e570dd943735f86c933c1587b8a5" @@ -820,6 +1109,13 @@ ansi-regex@^5.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" @@ -858,6 +1154,11 @@ assertion-error@^1.1.0: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + available-typed-arrays@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" @@ -920,6 +1221,28 @@ browser-stdout@1.3.1: resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== +browserslist@^4.21.3: + version "4.21.5" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7" + integrity sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w== + dependencies: + caniuse-lite "^1.0.30001449" + electron-to-chromium "^1.4.284" + node-releases "^2.0.8" + update-browserslist-db "^1.0.10" + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +bufferutil@^4.0.1: + version "4.0.7" + resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.7.tgz#60c0d19ba2c992dd8273d3f73772ffc894c153ad" + integrity sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw== + dependencies: + node-gyp-build "^4.3.0" + call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -933,6 +1256,11 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== +caniuse-lite@^1.0.30001449: + version "1.0.30001481" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001481.tgz#f58a717afe92f9e69d0e35ff64df596bfad93912" + integrity sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ== + chai@^4.3.6: version "4.3.7" resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51" @@ -946,6 +1274,15 @@ chai@^4.3.6: pathval "^1.1.1" type-detect "^4.0.5" +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + chalk@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" @@ -988,6 +1325,31 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +clone-deep@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" + integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== + dependencies: + is-plain-object "^2.0.4" + kind-of "^6.0.2" + shallow-clone "^3.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + color-convert@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -995,6 +1357,11 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" @@ -1005,11 +1372,28 @@ colors@^1.4.0: resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== +convert-source-map@^1.7.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== + create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" @@ -1031,6 +1415,14 @@ cross-spawn@^7.0.1: shebang-command "^2.0.0" which "^2.0.1" +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + data-uri-to-buffer@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" @@ -1043,6 +1435,13 @@ debug@4.3.4, debug@^4.1.0: dependencies: ms "2.1.2" +debug@^2.2.0: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + decamelize@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" @@ -1063,6 +1462,11 @@ define-properties@^1.1.3, define-properties@^1.1.4: has-property-descriptors "^1.0.0" object-keys "^1.1.1" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + diff@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" @@ -1078,6 +1482,18 @@ dotenv@^16.0.3: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== +ed2curve@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/ed2curve/-/ed2curve-0.3.0.tgz#322b575152a45305429d546b071823a93129a05d" + integrity sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ== + dependencies: + tweetnacl "1.x.x" + +electron-to-chromium@^1.4.284: + version "1.4.374" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.374.tgz#091b2de9d80b970f9b5e689675ea62622cd1d74b" + integrity sha512-dNP9tQNTrjgVlSXMqGaj0BdrCS+9pcUvy5/emB6x8kh0YwCoDZ0Z4ce1+7aod+KhybHUd5o5LgKrc5al4kVmzQ== + elliptic@6.5.4: version "6.5.4" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" @@ -1154,6 +1570,32 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" +es5-ext@^0.10.35, es5-ext@^0.10.50: + version "0.10.62" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.62.tgz#5e6adc19a6da524bf3d1e02bbc8960e5eb49a9a5" + integrity sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA== + dependencies: + es6-iterator "^2.0.3" + es6-symbol "^3.1.3" + next-tick "^1.1.0" + +es6-iterator@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g== + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA== + dependencies: + d "^1.0.1" + ext "^1.1.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -1164,6 +1606,11 @@ escape-string-regexp@4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + ethers@^5.7.2: version "5.7.2" resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" @@ -1210,6 +1657,13 @@ eventemitter3@^5.0.0: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.0.tgz#084eb7f5b5388df1451e63f4c2aafd71b217ccb3" integrity sha512-riuVbElZZNXLeLEoprfNYoDSwTBRR44X3mnhdI1YcnENpWTCsTTVZ2zFuqQcpoyqPQIUXdiPEU0ECAq0KQRaHg== +ext@^1.1.2: + version "1.7.0" + resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" + integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw== + dependencies: + type "^2.7.2" + fast-deep-equal@^3.1.1: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -1230,6 +1684,15 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +find-cache-dir@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" + integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== + dependencies: + commondir "^1.0.1" + make-dir "^2.0.0" + pkg-dir "^3.0.0" + find-up@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" @@ -1238,6 +1701,13 @@ find-up@5.0.0: locate-path "^6.0.0" path-exists "^4.0.0" +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" @@ -1250,6 +1720,15 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + formdata-polyfill@^4.0.10: version "4.0.10" resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" @@ -1287,6 +1766,11 @@ functions-have-names@^1.2.2: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + get-caller-file@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" @@ -1333,6 +1817,11 @@ glob@7.2.0: once "^1.3.0" path-is-absolute "^1.0.0" +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + globalthis@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" @@ -1347,11 +1836,28 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" +handlebars@^4.7.7: + version "4.7.7" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" + integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== + dependencies: + minimist "^1.2.5" + neo-async "^2.6.0" + source-map "^0.6.1" + wordwrap "^1.0.0" + optionalDependencies: + uglify-js "^3.1.4" + has-bigints@^1.0.1, has-bigints@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + has-flag@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" @@ -1514,6 +2020,13 @@ is-plain-obj@^2.1.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== +is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -1554,6 +2067,11 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -1571,6 +2089,11 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== + js-base64@^3.7.5: version "3.7.5" resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.5.tgz#21e24cf6b886f76d6f5f165bfcd69cc55b9e3fca" @@ -1581,6 +2104,11 @@ js-sha3@0.8.0: resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + js-yaml@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" @@ -1588,6 +2116,11 @@ js-yaml@4.1.0: dependencies: argparse "^2.0.1" +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + json-schema-traverse@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" @@ -1598,6 +2131,24 @@ json-stringify-safe@^5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== +json5@^2.2.2: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +kind-of@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + locate-path@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -1625,6 +2176,21 @@ loupe@^2.3.1: dependencies: get-func-name "^2.0.0" +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +make-dir@^2.0.0, make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + make-error@^1.1.1: version "1.3.6" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" @@ -1635,6 +2201,18 @@ micro-base58@^0.5.1: resolved "https://registry.yarnpkg.com/micro-base58/-/micro-base58-0.5.1.tgz#008892e621fd0d38caab3288a9dd0e65cb4b6200" integrity sha512-iwqAmg66VjB2LA3BcUxyrOyqck4HLLtSzKnx2VQSnN5piQji598N15P8RRx2d6lPvJ98B1b0cl2VbvQeFeWdig== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -1659,6 +2237,11 @@ minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" +minimist@^1.2.5: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + mocha-steps@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/mocha-steps/-/mocha-steps-1.3.0.tgz#2449231ec45ec56810f65502cb22e2571862957f" @@ -1696,6 +2279,11 @@ mock-socket@^9.2.1: resolved "https://registry.yarnpkg.com/mock-socket/-/mock-socket-9.2.1.tgz#cc9c0810aa4d0afe02d721dcb2b7e657c00e2282" integrity sha512-aw9F9T9G2zpGipLLhSNh6ZpgUyUl4frcVmRN08uE1NWPWg43Wx6+sGPDbQ7E5iFZZDJW5b5bypMeAEHqTbIFag== +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" @@ -1711,6 +2299,16 @@ nanoid@3.3.3: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== +neo-async@^2.6.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + +next-tick@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" + integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== + nock@^13.3.0: version "13.3.0" resolved "https://registry.yarnpkg.com/nock/-/nock-13.3.0.tgz#b13069c1a03f1ad63120f994b04bfd2556925768" @@ -1726,7 +2324,7 @@ node-domexception@^1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@^3.3.1: +node-fetch@^3.3.0: version "3.3.1" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.1.tgz#b3eea7b54b3a48020e46f4f88b9c5a7430d20b2e" integrity sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow== @@ -1735,6 +2333,16 @@ node-fetch@^3.3.1: fetch-blob "^3.1.4" formdata-polyfill "^4.0.10" +node-gyp-build@^4.3.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.0.tgz#0c52e4cbf54bbd28b709820ef7b6a3c2d6209055" + integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== + +node-releases@^2.0.8: + version "2.0.10" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" + integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w== + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -1767,6 +2375,13 @@ once@^1.3.0: dependencies: wrappy "1" +p-limit@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" @@ -1774,6 +2389,13 @@ p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + p-locate@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -1781,11 +2403,21 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + pako@^2.0.4: version "2.1.0" resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86" integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug== +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== + path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -1806,11 +2438,33 @@ pathval@^1.1.1: resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + picomatch@^2.0.4, picomatch@^2.2.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pirates@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + prettier@2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc" @@ -1859,6 +2513,11 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" +regenerator-runtime@^0.13.11: + version "0.13.11" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== + regexp.prototype.flags@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" @@ -1904,6 +2563,16 @@ scrypt-js@3.0.1: resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== +semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + serialize-javascript@6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" @@ -1911,6 +2580,13 @@ serialize-javascript@6.0.0: dependencies: randombytes "^2.1.0" +shallow-clone@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" + integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== + dependencies: + kind-of "^6.0.2" + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -1932,15 +2608,20 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -smoldot@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/smoldot/-/smoldot-1.0.1.tgz#1749b62ddf75667a05dca2a52d8681596accf932" - integrity sha512-48M9tLU+5q0XHFUCuGULraghfqQU/yARkdcYZzulFB38f2aw4ujTHzlbE+bhiJ8+h63uoXdAQO0WeCsWDTXGkA== +source-map-support@^0.5.16: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== dependencies: - pako "^2.0.4" - ws "^8.8.1" + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0, source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -string-width@^4.1.0, string-width@^4.2.0: +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -1995,6 +2676,13 @@ supports-color@8.1.1: dependencies: has-flag "^4.0.0" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" @@ -2002,6 +2690,11 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -2009,7 +2702,7 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -ts-node@^10.8.1: +ts-node@^10.9.1: version "10.9.1" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== @@ -2028,12 +2721,12 @@ ts-node@^10.8.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -tslib@^2.1.0, tslib@^2.5.0: +tslib@^2.1.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tweetnacl@^1.0.3: +tweetnacl@1.x.x, tweetnacl@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== @@ -2043,6 +2736,16 @@ type-detect@^4.0.0, type-detect@^4.0.5: resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== +type@^1.0.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== + +type@^2.7.2: + version "2.7.2" + resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" + integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== + typed-array-length@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" @@ -2052,10 +2755,22 @@ typed-array-length@^1.0.4: for-each "^0.3.3" is-typed-array "^1.1.9" -typescript@^4.7.3: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typescript@^5.0.4: + version "5.0.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" + integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== + +uglify-js@^3.1.4: + version "3.17.4" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" + integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== unbox-primitive@^1.0.2: version "1.0.2" @@ -2067,6 +2782,14 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +update-browserslist-db@^1.0.10: + version "1.0.11" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" + integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -2074,6 +2797,13 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" +utf-8-validate@^5.0.2: + version "5.0.10" + resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2" + integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ== + dependencies: + node-gyp-build "^4.3.0" + v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" @@ -2094,6 +2824,18 @@ websocket-as-promised@^2.0.1: promise.prototype.finally "^3.1.2" promised-map "^1.0.0" +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" @@ -2124,6 +2866,11 @@ which@^2.0.1: dependencies: isexe "^2.0.0" +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== + workerpool@6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" @@ -2148,7 +2895,7 @@ ws@7.4.6: resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== -ws@^8.13.0, ws@^8.8.1: +ws@^8.8.1: version "8.13.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== @@ -2158,6 +2905,16 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + yargs-parser@20.2.4: version "20.2.4" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" @@ -2168,6 +2925,11 @@ yargs-parser@^20.2.2: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + yargs-unparser@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" @@ -2191,6 +2953,19 @@ yargs@16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^17.6.2: + version "17.7.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.1.tgz#34a77645201d1a8fc5213ace787c220eabbd0967" + integrity sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yarn@^1.22.19: version "1.22.19" resolved "https://registry.yarnpkg.com/yarn/-/yarn-1.22.19.tgz#4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" From 87e12a2f3e7620ffd04541670ad654d65eefa021 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Thu, 27 Apr 2023 21:08:55 +0800 Subject: [PATCH 17/17] add generate scripts and downgraded polkadot/api --- tee-worker/ts-tests/package.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index 9f92e0359f..9a610a27f5 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -1,6 +1,10 @@ { "license": "ISC", "scripts": { + "load-meta": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9944 > litentry-metadata.json", + "generate": "yarn generate:defs && yarn generate:meta", + "generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./interfaces --endpoint ./litentry-metadata.json", + "generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package ts-tests/interfaces --endpoint ./litentry-metadata.json --output ./interfaces", "test-identity:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'identity.test.ts'", "test-identity:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'identity.test.ts'", "test-resuming-worker:staging": "cross-env NODE_ENV=staging mocha --exit --sort -r ts-node/register 'resuming_worker.test.ts'", @@ -16,8 +20,8 @@ }, "dependencies": { "@noble/ed25519": "^1.7.3", - "@polkadot/api": "^10.3.4", - "@polkadot/types": "^10.3.4", + "@polkadot/api": "^9.14.2", + "@polkadot/types": "^9.14.2", "add": "^2.0.6", "ajv": "^8.12.0", "chai": "^4.3.6", @@ -32,6 +36,7 @@ }, "devDependencies": { "@ethersproject/providers": "^5.7.2", + "@polkadot/typegen": "^9.14.2", "@types/chai": "^4.3.3", "@types/mocha": "^10.0.0", "@types/ws": "^8.5.3", @@ -39,8 +44,8 @@ "dotenv": "^16.0.3", "ethers": "^5.7.2", "prettier": "2.8.1", - "ts-node": "^10.8.1", - "typescript": "^4.7.3" + "ts-node": "^10.9.1", + "typescript": "^5.0.4" }, "compilerOptions": { "allowSyntheticDefaultImports": true,