diff --git a/tee-worker/ts-tests/batch.test.ts b/tee-worker/ts-tests/batch.test.ts index f4bfd25579..fad46d9e0e 100644 --- a/tee-worker/ts-tests/batch.test.ts +++ b/tee-worker/ts-tests/batch.test.ts @@ -11,7 +11,6 @@ import { import { u8aToHex } from '@polkadot/util'; import { step } from 'mocha-steps'; import { assert } from 'chai'; -import { LitentryIdentity, LitentryValidationData } from './common/type-definitions'; import { multiAccountTxSender, sendTxsWithUtility } from './common/transactions'; import { generateWeb3Wallets, @@ -20,10 +19,11 @@ import { assertIdentityRemoved, } from './common/utils'; import { ethers } from 'ethers'; - +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from './parachain-interfaces/identity/types'; describeLitentry('Test Batch Utility', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; - let identities: LitentryIdentity[] = []; + let identities: LitentryPrimitivesIdentity[] = []; let validations: LitentryValidationData[] = []; var ethereumSigners: ethers.Wallet[] = []; @@ -54,7 +54,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { step('batch test: create identities', async function () { for (let index = 0; index < ethereumSigners.length; index++) { const signer = ethereumSigners[index]; - const ethereum_identity = await buildIdentityHelper(signer.address, 'Ethereum', 'Evm'); + const ethereum_identity = await buildIdentityHelper(signer.address, 'Ethereum', 'Evm', context); identities.push(ethereum_identity); //check idgraph from sidechain storage before create @@ -67,17 +67,21 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock.toHuman(), null, - 'verification_request_block should be null before create' + 'verificationRequestBlock should be null before create' ); assert.equal( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock.toHuman(), null, - 'linking_request_block should be null before create' + 'creationRequestBlock should be null before create' ); - assert.equal(resp_id_graph.is_verified, false, 'IDGraph is_verified should be equal false before create'); + assert.equal( + resp_id_graph.isVerified.toHuman(), + false, + 'IDGraph is_verified should be equal false before create' + ); } const txs = await buildIdentityTxs(context, context.substrateWallet.alice, identities, 'createIdentity'); @@ -89,9 +93,9 @@ describeLitentry('Test Batch Utility', 0, (context) => { ['IdentityCreated'] ); const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); - for (let i = 0; i < event_datas.length; i++) { - assertIdentityCreated(context.substrateWallet.alice, event_datas[i]); - } + + await assertIdentityCreated(context, context.substrateWallet.alice, resp_events, aesKey, identities); + const ethereum_validations = await buildValidations( context, event_datas, @@ -109,7 +113,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { const resp_events = await sendTxsWithUtility(context, context.substrateWallet.bob, txs, 'identityManagement', [ 'CreateIdentityFailed', ]); - await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound', true); + await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound'); }); step('batch test: verify identity', async function () { let txs = await buildIdentityTxs( @@ -124,9 +128,7 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'IdentityVerified', ]); - let event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityVerified'); - - assertIdentityVerified(context.substrateWallet.alice, event_datas); + await assertIdentityVerified(context, context.substrateWallet.alice, resp_events, aesKey, identities); }); step('batch test: verify error identity', async function () { @@ -140,13 +142,14 @@ describeLitentry('Test Batch Utility', 0, (context) => { let resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'identityManagement', [ 'VerifyIdentityFailed', ]); - const resp_event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'Failed'); - await checkErrorDetail(resp_event_datas, 'ChallengeCodeNotFound', false); + await checkErrorDetail(resp_events, 'ChallengeCodeNotFound'); }); //query here in the hope that the status remains unchanged after verify error identity step('batch test:check IDGraph after verifyIdentity', async function () { for (let index = 0; index < identities.length; index++) { - const identity_hex = context.api.createType('LitentryIdentity', identities[index]).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', identities[index]) + .toHex(); const resp_id_graph = await checkIDGraph( context, 'IdentityManagement', @@ -154,12 +157,16 @@ describeLitentry('Test Batch Utility', 0, (context) => { u8aToHex(context.substrateWallet.alice.addressRaw), identity_hex ); - assert.notEqual( - resp_id_graph.verification_request_block, - null, - 'verification_request_block should not be null after verifyIdentity' + + assert( + Number(resp_id_graph.verificationRequestBlock.toHuman()) > 0, + 'verificationRequestBlock should be greater than 0 after verifyIdentity' ); - assert.equal(resp_id_graph.is_verified, true, 'is_verified should be true after verifyIdentity'); + assert( + Number(resp_id_graph.creationRequestBlock.toHuman()) > 0, + 'creationRequestBlock should be greater than 0 after verifyIdentity' + ); + assert.equal(resp_id_graph.isVerified.toHuman(), true, 'isVerified should be true after verifyIdentity'); } }); step('batch test: remove identities', async function () { @@ -171,10 +178,8 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const resp_event_datas = await handleIdentityEvents(context, aesKey, resp_remove_events, 'IdentityRemoved'); - for (let i = 0; i < resp_event_datas.length; i++) { - assertIdentityRemoved(context.substrateWallet.alice, resp_event_datas[i]); - } + + await assertIdentityRemoved(context, context.substrateWallet.alice, resp_remove_events); }); step('batch test: remove error identities', async function () { let txs = await buildIdentityTxs(context, context.substrateWallet.alice, identities, 'removeIdentity'); @@ -185,14 +190,15 @@ describeLitentry('Test Batch Utility', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const resp_event_datas = await handleIdentityEvents(context, aesKey, resp_remove_events, 'Failed'); - await checkErrorDetail(resp_event_datas, 'IdentityNotExist', false); + await checkErrorDetail(resp_remove_events, 'IdentityNotExist'); }); //query here in the hope that the status remains unchanged after removes error identity step('check IDGraph after removeIdentity', async function () { for (let index = 0; index < identities.length; index++) { - const identity_hex = context.api.createType('LitentryIdentity', identities[index]).toHex(); + const identity_hex = context.sidechainRegistry + .createType('LitentryPrimitivesIdentity', identities[index]) + .toHex(); const resp_id_graph = await checkIDGraph( context, @@ -202,16 +208,16 @@ describeLitentry('Test Batch Utility', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock.toHuman(), null, - 'verification_request_block should be null after removeIdentity' + 'verificationRequestBlock should be null after removeIdentity' ); assert.equal( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock.toHuman(), null, - 'linking_request_block should be null after removeIdentity' + 'creationRequestBlock should be null after removeIdentity' ); - assert.equal(resp_id_graph.is_verified, false, 'is_verified should be false after removeIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'isVerified should be false after removeIdentity'); } }); }); diff --git a/tee-worker/ts-tests/bulk_identity.test.ts b/tee-worker/ts-tests/bulk_identity.test.ts index 28750d35da..a85c9b949a 100644 --- a/tee-worker/ts-tests/bulk_identity.test.ts +++ b/tee-worker/ts-tests/bulk_identity.test.ts @@ -1,21 +1,16 @@ import { step } from 'mocha-steps'; -import { - buildValidations, - describeLitentry, - buildIdentityTxs, - buildIdentityHelper, - assertIdentityCreated, - assertIdentityRemoved, - assertIdentityVerified, - assertInitialIDGraphCreated, -} from './common/utils'; +import { buildValidations, describeLitentry, buildIdentityTxs, buildIdentityHelper } from './common/utils'; import { KeyringPair } from '@polkadot/keyring/types'; import { ethers } from 'ethers'; -import { LitentryIdentity, LitentryValidationData } from './common/type-definitions'; +import type { BatchCall, IdentityGenericEvent } from './common/type-definitions'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from './parachain-interfaces/identity/types'; +import type { Call } from '@polkadot/types/interfaces/types'; +import type { Vec } from '@polkadot/types'; import { handleIdentityEvents } from './common/utils'; +import { assert } from 'chai'; import { multiAccountTxSender } from './common/transactions'; 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. @@ -25,7 +20,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { var substrateSigners: KeyringPair[] = []; var ethereumSigners: ethers.Wallet[] = []; var web3Validations: LitentryValidationData[] = []; - var identities: LitentryIdentity[] = []; + var identities: LitentryPrimitivesIdentity[] = []; step('setup signers', async () => { substrateSigners = context.web3Signers.map((web3Signer) => { return web3Signer.substrateWallet; @@ -35,7 +30,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { }); }); step('send test token to each account', async () => { - const txs: any = []; + const txs: BatchCall = []; for (let i = 0; i < substrateSigners.length; i++) { //1 token const tx = context.api.tx.balances.transfer(substrateSigners[i].address, '1000000000000'); @@ -43,7 +38,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { } await new Promise((resolve, reject) => { context.api.tx.utility - .batch(txs) + .batch(txs as Vec) .signAndSend(context.substrateWallet.alice, (result: SubmittableResult) => { console.log(`Current status is ${result.status}`); if (result.status.isFinalized) { @@ -62,17 +57,12 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'UserShieldingKeySet', ]); - - const event_datas = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - event_datas.forEach(async (data: any, index: number) => { - await assertInitialIDGraphCreated(context.api, substrateSigners[index], data); - }); }); //test identity with multiple accounts step('test createIdentity with multiple accounts', async () => { for (let index = 0; index < ethereumSigners.length; index++) { - let identity = await buildIdentityHelper(ethereumSigners[index].address, 'Ethereum', 'Evm'); + let identity = await buildIdentityHelper(ethereumSigners[index].address, 'Ethereum', 'Evm', context); identities.push(identity); } @@ -82,11 +72,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { 'IdentityCreated', ]); const resp_events_datas = await handleIdentityEvents(context, aesKey, resp_events, 'IdentityCreated'); - - for (let index = 0; index < resp_events_datas.length; index++) { - console.log('createIdentity', index); - assertIdentityCreated(substrateSigners[index], resp_events_datas[index]); - } const validations = await buildValidations( context, resp_events_datas, @@ -104,11 +89,7 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityVerified', ]); - 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(substrateSigners[index], resp_events_datas); - } + assert.equal(resp_events.length, txs.length, 'verify identities with multiple accounts check fail'); }); step('test removeIdentity with multiple accounts', async () => { @@ -117,10 +98,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { const resp_events = await multiAccountTxSender(context, txs, substrateSigners, 'identityManagement', [ 'IdentityRemoved', ]); - 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(substrateSigners[index], resp_events_datas); - } + assert.equal(resp_events.length, txs.length, 'remove identities with multiple accounts check fail'); }); }); diff --git a/tee-worker/ts-tests/bulk_vc.test.ts b/tee-worker/ts-tests/bulk_vc.test.ts index 78776f9bb5..73b63bc759 100644 --- a/tee-worker/ts-tests/bulk_vc.test.ts +++ b/tee-worker/ts-tests/bulk_vc.test.ts @@ -1,17 +1,16 @@ import { step } from 'mocha-steps'; import { checkVc, describeLitentry, encryptWithTeeShieldingKey } from './common/utils'; -import { KeyringPair } from '@polkadot/keyring/types'; -import { ethers } from 'ethers'; -import { Assertion, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; +import { hexToU8a } from '@polkadot/util'; +import { IndexingNetwork } 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 type { HexString } from '@polkadot/util/types'; +import type { Assertion, TransactionSubmit } from './common/type-definitions'; +import type { KeyringPair } from '@polkadot/keyring/types'; import { multiAccountTxSender } from './common/transactions'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; import { SubmittableResult } from '@polkadot/api'; -import { hexToU8a } from '@polkadot/util'; -const assertion = { +const all_assertions = { A1: 'A1', A2: ['A2'], A3: ['A3', 'A3', 'A3'], @@ -21,7 +20,9 @@ const assertion = { A10: '10.003', A11: '10.004', }; - +const assertion_A1: Assertion = { + A1: 'A1', +}; //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. @@ -29,17 +30,13 @@ const assertion = { describeLitentry('multiple accounts test', 2, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var substrateSigners: KeyringPair[] = []; - var ethereumSigners: ethers.Wallet[] = []; var vcIndexList: HexString[] = []; // If want to test other assertions with multiple accounts,just need to make changes here. - let assertion_type = assertion.A1; + let assertion_type = assertion_A1; step('init', async () => { substrateSigners = context.web3Signers.map((web3Signer) => { return web3Signer.substrateWallet; }); - ethereumSigners = context.web3Signers.map((web3Signer) => { - return web3Signer.ethereumWallet; - }); }); step('send test token to each account', async () => { const txs: any[] = []; @@ -49,7 +46,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { const tx = context.api.tx.balances.transfer(substrateSigners[i].address, '1000000000000'); txs.push(tx); } - await new Promise((resolve, reject) => { context.api.tx.utility .batch(txs) @@ -82,8 +78,6 @@ describeLitentry('multiple accounts test', 2, async (context) => { step('test requestVc with multiple accounts', async () => { let txs: TransactionSubmit[] = []; for (let i = 0; i < substrateSigners.length; i++) { - console.log(assertion_type); - const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_type); const nonce = (await context.api.rpc.system.accountNextIndex(substrateSigners[i].address)).toNumber(); txs.push({ tx, nonce }); diff --git a/tee-worker/ts-tests/common/call.ts b/tee-worker/ts-tests/common/call.ts index 8ef305837d..18fc072d47 100644 --- a/tee-worker/ts-tests/common/call.ts +++ b/tee-worker/ts-tests/common/call.ts @@ -1,12 +1,11 @@ import { ApiPromise } from '@polkadot/api'; -import { Metadata, TypeRegistry } from '@polkadot/types'; -import type { Bytes } from '@polkadot/types-codec'; import { hexToU8a, compactStripLength, u8aToString } from '@polkadot/util'; import WebSocketAsPromised from 'websocket-as-promised'; import { HexString } from '@polkadot/util/types'; -import { RequestBody } from './type-definitions'; -import { WorkerRpcReturnValue } from '../interfaces/identity'; - +import type { RequestBody } from '../common/type-definitions'; +import type { WorkerRpcReturnValue } from '../parachain-interfaces/identity/types'; +import { Metadata, TypeRegistry } from '@polkadot/types'; +import type { Bytes } from '@polkadot/types-codec'; // send RPC request export async function sendRequest( wsClient: WebSocketAsPromised, @@ -14,15 +13,14 @@ export async function sendRequest( api: ApiPromise ): Promise { const rawRes = await wsClient.sendRequest(request, { requestId: 1, timeout: 6000 }); - const res: WorkerRpcReturnValue = api.createType('WorkerRpcReturnValue', rawRes.result) as any; - + const res = api.createType('WorkerRpcReturnValue', rawRes.result) as unknown as WorkerRpcReturnValue; if (res.status.isError) { console.log('Rpc response error: ' + decodeRpcBytesAsString(res.value)); } // unfortunately, the res.value only contains the hash of top if (res.status.isTrustedOperationStatus && res.status.asTrustedOperationStatus.isInvalid) { - console.log('Rpc trusted operation execution failed, hash: ', res.value.toHex()); + console.log('Rpc trusted operation execution failed, hash: ', res.value); } return res; @@ -35,13 +33,16 @@ export function decodeRpcBytesAsString(value: Bytes): string { return u8aToString(compactStripLength(hexToU8a(value.toHex()))[1]); } -export async function getMetadata(wsClient: WebSocketAsPromised, api: ApiPromise): Promise { +export async function getSidechainMetadata( + wsClient: WebSocketAsPromised, + api: ApiPromise +): Promise<{ metaData: Metadata; sidechainRegistry: TypeRegistry }> { let request = { jsonrpc: '2.0', method: 'state_getMetadata', params: [], id: 1 }; - let res = await sendRequest(wsClient, request, api); - const registry = new TypeRegistry(); - const metadata = new Metadata(registry, res.value); - registry.setMetadata(metadata); - return metadata; + let respJSON = await sendRequest(wsClient, request, api); + const sidechainRegistry = new TypeRegistry(); + const metaData = new Metadata(sidechainRegistry, respJSON.value); + sidechainRegistry.setMetadata(metaData); + return { metaData, sidechainRegistry }; } export async function getSideChainStorage( diff --git a/tee-worker/ts-tests/common/helpers.ts b/tee-worker/ts-tests/common/helpers.ts index fb6aa1e5de..045803ab8c 100644 --- a/tee-worker/ts-tests/common/helpers.ts +++ b/tee-worker/ts-tests/common/helpers.ts @@ -1,8 +1,9 @@ import { xxhashAsU8a, blake2AsU8a } from '@polkadot/util-crypto'; import { u8aConcat, u8aToU8a } from '@polkadot/util'; -import { HexString } from '@polkadot/util/types'; import { Keyring } from '@polkadot/api'; import type { KeyringPair } from '@polkadot/keyring/types'; +import type { HexString } from '@polkadot/util/types'; +import './config'; //format and setup const keyring = new Keyring({ type: 'sr25519' }); @@ -54,3 +55,5 @@ export function twox64Concat(data: HexString | Uint8Array): Uint8Array { export function identity(data: HexString | Uint8Array): Uint8Array { return u8aToU8a(data); } + +export const env_network = process.env.NODE_ENV === 'local' ? 'TestNet' : 'LitentryRococo'; diff --git a/tee-worker/ts-tests/common/transactions.ts b/tee-worker/ts-tests/common/transactions.ts index 15db785134..8c9b336cc9 100644 --- a/tee-worker/ts-tests/common/transactions.ts +++ b/tee-worker/ts-tests/common/transactions.ts @@ -1,13 +1,15 @@ 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'; import { defaultListenTimeoutInBlockNumber } from './utils'; import { EventRecord, Event } from '@polkadot/types/interfaces'; import { expect } from 'chai'; import colors from 'colors'; -import { HexString } from '@polkadot/util/types'; -import { Codec } from '@polkadot/types/types'; +import type { HexString } from '@polkadot/util/types'; +import type { Codec } from '@polkadot/types/types'; +import type { IntegrationTestContext, TransactionSubmit } from './type-definitions'; +import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import { RequestEvent } from './type-definitions'; + import { u8aToHex } from '@polkadot/util'; //transactions utils export async function sendTxUntilInBlock(api: ApiPromise, tx: SubmittableExtrinsic, signer: KeyringPair) { @@ -163,7 +165,7 @@ export async function sendTxsWithUtility( pallet: string, events: string[], listenTimeoutInBlockNumber?: number -): Promise { +): Promise { //ensure the tx is in block const isInBlockPromise = new Promise((resolve) => { context.api.tx.utility.batchAll(txs.map(({ tx }) => tx)).signAndSend(signer, async (result) => { @@ -178,14 +180,14 @@ export async function sendTxsWithUtility( await isInBlockPromise; - const resp_events = (await listenEvent( + const resp_events = await listenEvent( context.api, pallet, events, txs.length, [u8aToHex(signer.addressRaw)], listenTimeoutInBlockNumber - )) as any; + ); expect(resp_events.length).to.be.equal(txs.length); return resp_events; diff --git a/tee-worker/ts-tests/common/type-definitions.ts b/tee-worker/ts-tests/common/type-definitions.ts index 73fe8fac0e..5ca3b3d1d1 100644 --- a/tee-worker/ts-tests/common/type-definitions.ts +++ b/tee-worker/ts-tests/common/type-definitions.ts @@ -1,23 +1,28 @@ -import { ApiPromise, Keyring } from '@polkadot/api'; +import { ApiPromise } from '@polkadot/api'; import { KeyObject } from 'crypto'; -import { HexString } from '@polkadot/util/types'; import WebSocketAsPromised from 'websocket-as-promised'; -import type { KeyringPair } from '@polkadot/keyring/types'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import { Metadata } from '@polkadot/types'; +import { Metadata, Vec, TypeRegistry } from '@polkadot/types'; import { Wallet } from 'ethers'; +import { Call } from '@polkadot/types/interfaces'; import type { - SubstrateNetwork as SubNet, - Web2Network as Web2Net, - EvmNetwork as EvmNet, -} from '../interfaces/identity/types'; -import { default as teeTypes } from '../interfaces/identity/definitions'; + LitentryPrimitivesIdentitySubstrateNetwork, + LitentryPrimitivesIdentityEvmNetwork, + LitentryPrimitivesIdentityWeb2Network, + PalletIdentityManagementTeeIdentityContext, + LitentryPrimitivesIdentity, +} from '@polkadot/types/lookup'; +import type { KeyringPair } from '@polkadot/keyring/types'; +import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import type { HexString } from '@polkadot/util/types'; +import type { Assertion as GenericAssertion } from '../parachain-interfaces/identity/types'; +import type { AnyTuple, IMethod } from '@polkadot/types/types'; -export { teeTypes }; +export type Web2Network = LitentryPrimitivesIdentityWeb2Network['type']; +export type SubstrateNetwork = LitentryPrimitivesIdentitySubstrateNetwork['type']; +export type EvmNetwork = LitentryPrimitivesIdentityEvmNetwork['type']; +export type ParachainAssertion = GenericAssertion['type']; -export type Web2Network = Web2Net['type']; -export type SubstrateNetwork = SubNet['type']; -export type EvmNetwork = EvmNet['type']; +export type BatchCall = Vec | (string | Uint8Array | IMethod | Call)[]; export type EnclaveResult = { mrEnclave: `0x${string}`; @@ -25,7 +30,6 @@ export type EnclaveResult = { vcPubkey: `0x${string}`; sgxMetadata: {}; }; - export type PubicKeyJson = { n: Uint8Array; e: Uint8Array; @@ -45,6 +49,7 @@ export type IntegrationTestContext = { ethersWallet: EthersWalletItem; substrateWallet: SubstrateWalletItem; metaData: Metadata; + sidechainRegistry: TypeRegistry; web3Signers: Web3Wallets[]; }; @@ -54,99 +59,18 @@ export class AESOutput { nonce?: Uint8Array; } -//identity types -export type LitentryIdentity = { - Substrate?: SubstrateIdentity; - Evm?: EvmIdentity; - Web2?: Web2Identity; -}; - -export type SubstrateIdentity = { - network: SubstrateNetwork; - address: HexString; -}; - -export type EvmIdentity = { - network: EvmNetwork; - address: HexString; -}; - -export type Web2Identity = { - network: Web2Network; - address: string; -}; - -export type LitentryValidationData = { - Web2Validation?: Web2ValidationData; - Web3Validation?: Web3ValidationData; -}; - -export type Web2ValidationData = { - Twitter?: TwitterValidationData; - Discord?: DiscordValidationData; -}; - -export type Web3ValidationData = { - Substrate?: Web3CommonValidationData; - Evm?: Web3CommonValidationData; -}; - -export type Web3CommonValidationData = { - message: HexString; - signature: IdentityMultiSignature; -}; - -export type IdentityMultiSignature = { - Ethereum?: HexString; - Ed25519?: HexString; - Sr25519?: HexString; -}; - -export type Ed25519Signature = { - Ed25519: HexString; - Sr25519: HexString; - Ecdsa: HexString; - Ethereum: EthereumSignature; -}; - -export type EthereumSignature = HexString; - -export type TwitterValidationData = { - tweet_id: HexString; -}; - -export type DiscordValidationData = { - channel_id: HexString; - message_id: HexString; - guild_id: HexString; -}; - export type Web3Wallets = { substrateWallet: KeyringPair; ethereumWallet: Wallet; }; -// export type DiscordValidationData = {} - -export type Web3Network = { - Substrate?: SubstrateNetwork; - Evm?: EvmNetwork; -}; - export type IdentityGenericEvent = { who: HexString; - identity: LitentryIdentity; - idGraph: [LitentryIdentity, IdentityContext][]; + identity: LitentryPrimitivesIdentity; + idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][]; challengeCode?: HexString; }; -export type IdentityContext = { - metadata?: HexString; - linking_request_block?: number; - verification_request_block?: number; - is_verified: boolean; -}; - //vc types export type VCRequested = { account: HexString; @@ -172,19 +96,18 @@ export enum RequestEvent { BatchCompleted = 'BatchCompleted', } -export type Assertion = { - A1?: string; - A2?: [string]; - A3?: [string, string, string]; - A4?: string; - A5?: [string, string]; - A6?: string; - A7?: string; - A8?: [IndexingNetwork]; - A9?: string; - A10?: string; - A11?: string; -}; +export type Assertion = + | { A1: string } + | { A2: [string] } + | { A3: [string, string, string] } + | { A4: string } + | { A5: [string, string] } + | { A6: string } + | { A7: string } + | { A8: [IndexingNetwork] } + | { A9: string } + | { A10: string } + | { A11: string }; export type TransactionSubmit = { tx: SubmittableExtrinsic; diff --git a/tee-worker/ts-tests/common/utils/assertion.ts b/tee-worker/ts-tests/common/utils/assertion.ts index 17c0010398..cedb394a1e 100644 --- a/tee-worker/ts-tests/common/utils/assertion.ts +++ b/tee-worker/ts-tests/common/utils/assertion.ts @@ -1,79 +1,187 @@ import { ApiPromise } from '@polkadot/api'; -import { KeyringPair } from '@polkadot/keyring/types'; -import { HexString } from '@polkadot/util/types'; -import { Event } from '@polkadot/types/interfaces'; +import { Event, EventRecord } from '@polkadot/types/interfaces'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import Ajv from 'ajv'; import { assert, expect } from 'chai'; import * as ed from '@noble/ed25519'; -import { EnclaveResult, IdentityGenericEvent, JsonSchema, LitentryIdentity } from '../type-definitions'; -import { buildIdentityHelper } from './identity-helper'; -import { isEqual, isArrayEqual } from './common'; - -export async function assertInitialIDGraphCreated(api: ApiPromise, signer: KeyringPair, event: IdentityGenericEvent) { - assert.equal(event.who, u8aToHex(signer.addressRaw)); - assert.equal(event.idGraph.length, 1); - // check identity in idgraph - const expected_identity = api.createType( - 'LitentryIdentity', - await buildIdentityHelper(u8aToHex(signer.addressRaw), 'LitentryRococo', 'Substrate') - ) as LitentryIdentity; - assert.equal(JSON.stringify(event.idGraph[0][0]), JSON.stringify(expected_identity)); - // check identityContext in idgraph - assert.equal(event.idGraph[0][1].linking_request_block, 0); - assert.equal(event.idGraph[0][1].verification_request_block, 0); - assert.isTrue(event.idGraph[0][1].is_verified); -} +import { buildIdentityHelper, parseIdGraph, createIdentityEvent, parseIdentity } from './identity-helper'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { EnclaveResult, IntegrationTestContext } from '../type-definitions'; +import type { KeyringPair } from '@polkadot/keyring/types'; +import type { HexString } from '@polkadot/util/types'; +import { JsonSchema } from '../type-definitions'; +import { env_network } from '../../common/helpers'; +import colors from 'colors'; -export function assertIdentityVerified(signer: KeyringPair, eventDatas: IdentityGenericEvent[]) { - let event_identities: LitentryIdentity[] = []; - let idgraph_identities: LitentryIdentity[] = []; - for (let index = 0; index < eventDatas.length; index++) { - event_identities.push(eventDatas[index].identity); - } - for (let i = 0; i < eventDatas[eventDatas.length - 1].idGraph.length; i++) { - idgraph_identities.push(eventDatas[eventDatas.length - 1].idGraph[i][0]); +export async function assertInitialIDGraphCreated( + context: IntegrationTestContext, + signer: KeyringPair[], + events: any[], + aesKey: HexString +) { + for (let index = 0; index < events.length; index++) { + const event_data = events[index].data; + + const who = event_data.account.toHex(); + const idGraph_data = parseIdGraph(context.sidechainRegistry, event_data.idGraph, aesKey); + assert.equal(idGraph_data.length, 1); + assert.equal(who, u8aToHex(signer[index].addressRaw)); + + // Check identity in idgraph + const expected_identity = await buildIdentityHelper( + u8aToHex(signer[index].addressRaw), + env_network, + 'Substrate', + context + ); + const expected_target = expected_identity[`as${expected_identity.type}`]; + const idGraph_target = idGraph_data[0][0][`as${idGraph_data[0][0].type}`]; + assert.equal(expected_target.toString(), idGraph_target.toString()); + + // Check identityContext in idgraph + const idGraph_context = idGraph_data[0][1].toHuman(); + const creation_request_block = idGraph_context.creationRequestBlock; + const verification_request_block = idGraph_context.verificationRequestBlock; + assert.equal(creation_request_block, 0, 'Check InitialIDGraph error: creation_request_block should be 0'); + assert.equal( + verification_request_block, + 0, + 'Check InitialIDGraph error: verification_request_block should be 0' + ); + assert.isTrue(idGraph_context.isVerified, 'Check InitialIDGraph error: isVerified should be true'); } - //idgraph_identities[idgraph_identities.length - 1] is prime identity,don't need to compare - assert.isTrue( - isArrayEqual(event_identities, idgraph_identities.slice(0, idgraph_identities.length - 1)), - 'event identities should be equal to idgraph identities' - ); - - const data = eventDatas[eventDatas.length - 1]; - for (let i = 0; i < eventDatas[eventDatas.length - 1].idGraph.length; i++) { - if (isEqual(data.idGraph[i][0], data.identity)) { - assert.isTrue(data.idGraph[i][1].is_verified, 'identity should be verified'); - } + console.log(colors.green('assertInitialIDGraphCreated complete')); +} + +export async function assertIdentityVerified( + context: IntegrationTestContext, + signers: KeyringPair | KeyringPair[], + events: any[], + aesKey: HexString, + expected_identities: LitentryPrimitivesIdentity[] +) { + // We should parse idGraph from the last event, because the last event updates the verification status of all identities. + const event_idGraph = parseIdGraph(context.sidechainRegistry, events[events.length - 1].data.idGraph, aesKey); + + for (let index = 0; index < events.length; index++) { + const signer = Array.isArray(signers) ? signers[index] : signers; + const expected_identity = expected_identities[index]; + const expected_identity_target = expected_identity[`as${expected_identity.type}`]; + + const event_data = events[index].data; + const who = event_data.account.toHex(); + + // Check prime identity in idGraph + const expected_prime_identity = await buildIdentityHelper( + u8aToHex(signer.addressRaw), + env_network, + 'Substrate', + context + ); + assert.equal( + expected_prime_identity.toString(), + event_idGraph[events.length][0].toString(), + 'Check IdentityVerified error: event_idGraph prime identity should be equal to expected_prime_identity' + ); + + // Check event identity with expected identity + const event_identity = parseIdentity(context.sidechainRegistry, event_data.identity, aesKey); + const event_identity_target = event_identity[`as${event_identity.type}`]; + assert.equal( + expected_identity_target.toString(), + event_identity_target.toString(), + 'Check IdentityVerified error: event_identity_target should be equal to expected_identity_target' + ); + + // Check identityContext in idGraph + assert.isTrue( + event_idGraph[index][1].isVerified.toHuman(), + 'Check IdentityVerified error: event_idGraph identity should be verified' + ); + assert( + Number(event_idGraph[index][1].verificationRequestBlock.toHuman()) > 0, + 'Check IdentityVerified error: event_idGraph verificationRequestBlock should be greater than 0' + ); + assert( + Number(event_idGraph[index][1].creationRequestBlock.toHuman()) > 0, + 'Check IdentityVerified error: event_idGraph creationRequestBlock should be greater than 0' + ); + + assert.equal(who, u8aToHex(signer.addressRaw), 'Check IdentityCreated error: signer should be equal to who'); } - assert.equal(data?.who, u8aToHex(signer.addressRaw), 'check caller error'); + console.log(colors.green('assertIdentityVerified complete')); } -export function assertIdentityCreated(signer: KeyringPair, identityEvent: IdentityGenericEvent | undefined) { - assert.equal(identityEvent?.who, u8aToHex(signer.addressRaw), 'check caller error'); +export async function assertIdentityCreated( + context: IntegrationTestContext, + signers: KeyringPair | KeyringPair[], + events: any[], + aesKey: HexString, + expected_identities: LitentryPrimitivesIdentity[] +) { + for (let index = 0; index < events.length; index++) { + const signer = Array.isArray(signers) ? signers[index] : signers; + const expected_identity = expected_identities[index]; + const expected_identity_target = expected_identity[`as${expected_identity.type}`]; + const event_data = events[index].data; + const who = event_data.account.toHex(); + const event_identity = parseIdentity(context.sidechainRegistry, event_data.identity, aesKey); + const event_identity_target = event_identity[`as${event_identity.type}`]; + // Check identity caller + assert.equal(who, u8aToHex(signer.addressRaw), 'Check IdentityCreated error: signer should be equal to who'); + + // Check identity type + assert.equal( + expected_identity.type, + event_identity.type, + 'Check IdentityCreated error: event_identity type should be equal to expected_identity type' + ); + // Check identity in event + assert.equal( + expected_identity_target.toString(), + event_identity_target.toString(), + 'Check IdentityCreated error: event_identity_target should be equal to expected_identity_target' + ); + } + console.log(colors.green('assertIdentityCreated complete')); } -export function assertIdentityRemoved(signer: KeyringPair, identityEvent: IdentityGenericEvent | undefined) { - assert.equal(identityEvent?.idGraph, null, 'check idGraph error,should be null after removed'); - assert.equal(identityEvent?.who, u8aToHex(signer.addressRaw), 'check caller error'); +export async function assertIdentityRemoved( + context: IntegrationTestContext, + signers: KeyringPair | KeyringPair[], + events: any[] +) { + for (let index = 0; index < events.length; index++) { + const signer = Array.isArray(signers) ? signers[index] : signers; + + const event_data = events[index].data; + const who = event_data.account.toHex(); + + // Check idGraph + assert.equal( + event_data.idGraph, + null, + 'check IdentityRemoved error: event idGraph should be null after removed identity' + ); + + assert.equal(who, u8aToHex(signer.addressRaw), 'Check IdentityRemoved error: signer should be equal to who'); + } + + console.log(colors.green('assertIdentityRemoved complete')); } -export async function checkErrorDetail( - response: string[] | Event[], - expectedDetail: string, - isModule: boolean -): Promise { - let detail: string = ''; +export async function checkErrorDetail(events: Event[], expectedDetail: string) { // TODO: sometimes `item.data.detail.toHuman()` or `item` is treated as object (why?) // I have to JSON.stringify it to assign it to a string - response.map((item: any) => { - isModule ? (detail = JSON.stringify(item.data.detail.toHuman())) : (detail = JSON.stringify(item)); + events.map((item: any) => { + console.log('error detail: ', item.data.detail.toHuman()); + const detail = JSON.stringify(item.data.detail.toHuman()); + assert.isTrue( detail.includes(expectedDetail), `check error detail failed, expected detail is ${expectedDetail}, but got ${detail}` ); }); - return true; } export async function verifySignature(data: any, index: HexString, proofJson: any, api: ApiPromise) { diff --git a/tee-worker/ts-tests/common/utils/common.ts b/tee-worker/ts-tests/common/utils/common.ts index c9b35b1384..b4fc03d685 100644 --- a/tee-worker/ts-tests/common/utils/common.ts +++ b/tee-worker/ts-tests/common/utils/common.ts @@ -1,36 +1,6 @@ -import { LitentryIdentity } from '../type-definitions'; - +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; export function sleep(secs: number) { return new Promise((resolve) => { setTimeout(resolve, secs * 1000); }); } - -export function isEqual(obj1: LitentryIdentity, obj2: LitentryIdentity) { - return JSON.stringify(obj1) === JSON.stringify(obj2); -} - -// campare two array of event_identities idgraph_identities whether equal -export function isArrayEqual(arr1: LitentryIdentity[], arr2: LitentryIdentity[]) { - if (arr1.length !== arr2.length) { - return false; - } - for (let i = 0; i < arr1.length; i++) { - const obj1 = arr1[i]; - let found = false; - - for (let j = 0; j < arr2.length; j++) { - const obj2 = arr2[j]; - - if (isEqual(obj1, obj2)) { - found = true; - break; - } - } - - if (!found) { - return false; - } - } - return true; -} diff --git a/tee-worker/ts-tests/common/utils/context.ts b/tee-worker/ts-tests/common/utils/context.ts index 78a53ea4f6..7b736f9c5a 100644 --- a/tee-worker/ts-tests/common/utils/context.ts +++ b/tee-worker/ts-tests/common/utils/context.ts @@ -5,10 +5,10 @@ import WebSocketAsPromised from 'websocket-as-promised'; import WebSocket from 'ws'; import Options from 'websocket-as-promised/types/options'; import { KeyObject } from 'crypto'; -import { getMetadata } from '../call'; +import { getSidechainMetadata } from '../call'; import { getEthereumSigner, getSubstrateSigner } from '../helpers'; -import { IntegrationTestContext, teeTypes, EnclaveResult, Web3Wallets } from '../type-definitions'; - +import type { IntegrationTestContext, EnclaveResult, Web3Wallets } from '../type-definitions'; +import { default as teeTypes } from '../../parachain-interfaces/identity/definitions'; const crypto = require('crypto'); // maximum block number that we wait in listening events before we timeout @@ -52,8 +52,7 @@ export async function initIntegrationTestContext( const wsp = await initWorkerConnection(workerEndpoint); - const metaData = await getMetadata(wsp, api); - + const { metaData, sidechainRegistry } = await getSidechainMetadata(wsp, api); const web3Signers = await generateWeb3Wallets(walletsNumber); const { mrEnclave, teeShieldingKey } = await getEnclave(api); return { @@ -64,6 +63,7 @@ export async function initIntegrationTestContext( ethersWallet, substrateWallet, metaData, + sidechainRegistry, web3Signers, }; } diff --git a/tee-worker/ts-tests/common/utils/crypto.ts b/tee-worker/ts-tests/common/utils/crypto.ts index edfae6e184..2f2c866b8a 100644 --- a/tee-worker/ts-tests/common/utils/crypto.ts +++ b/tee-worker/ts-tests/common/utils/crypto.ts @@ -1,4 +1,4 @@ -import { HexString } from '@polkadot/util/types'; +import type { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import { KeyObject } from 'crypto'; import { AESOutput } from '../type-definitions'; diff --git a/tee-worker/ts-tests/common/utils/identity-helper.ts b/tee-worker/ts-tests/common/utils/identity-helper.ts index 83e91e6f52..6f6a48ad55 100644 --- a/tee-worker/ts-tests/common/utils/identity-helper.ts +++ b/tee-worker/ts-tests/common/utils/identity-helper.ts @@ -1,30 +1,31 @@ -import { ApiPromise } from '@polkadot/api'; -import { KeyringPair } from '@polkadot/keyring/types'; -import { HexString } from '@polkadot/util/types'; import { hexToU8a, u8aToHex } from '@polkadot/util'; import { blake2AsHex } from '@polkadot/util-crypto'; -import { + +import { AESOutput } from '../type-definitions'; +import { decryptWithAES, encryptWithTeeShieldingKey } from './crypto'; +import { assert } from 'chai'; +import { ethers } from 'ethers'; +import type { TypeRegistry } from '@polkadot/types'; +import type { LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from '../../parachain-interfaces/identity/types'; +import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; +import type { KeyringPair } from '@polkadot/keyring/types'; +import type { HexString } from '@polkadot/util/types'; +import type { EvmNetwork, IdentityGenericEvent, IntegrationTestContext, - LitentryIdentity, - LitentryValidationData, SubstrateNetwork, Web2Network, } from '../type-definitions'; -import { decryptWithAES, encryptWithTeeShieldingKey } from './crypto'; -import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; -import { assert } from 'chai'; -import { ethers } from 'ethers'; - // + + export function generateVerificationMessage( context: IntegrationTestContext, challengeCode: Uint8Array, signerAddress: Uint8Array, - identity: LitentryIdentity + identity: LitentryPrimitivesIdentity ): HexString { - const encode = context.api.createType('LitentryIdentity', identity).toU8a(); + const encode = context.sidechainRegistry.createType('LitentryPrimitivesIdentity', identity).toU8a(); const msg = Buffer.concat([challengeCode, signerAddress, encode]); return blake2AsHex(msg, 256); } @@ -32,22 +33,28 @@ export function generateVerificationMessage( export async function buildIdentityHelper( address: HexString | string, network: SubstrateNetwork | EvmNetwork | Web2Network, - type: 'Evm' | 'Substrate' | 'Web2' -): Promise { - const identity: LitentryIdentity = { + type: LitentryPrimitivesIdentity['type'], + context: IntegrationTestContext +): Promise { + const identity = { [type]: { address, network, }, }; - return identity; + + const encoded_identity = context.sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + identity + ) as unknown as LitentryPrimitivesIdentity; + return encoded_identity; } //If multiple transactions are built from multiple accounts, pass the signers as an array. If multiple transactions are built from a single account, signers cannot be an array. export async function buildIdentityTxs( context: IntegrationTestContext, signers: KeyringPair[] | KeyringPair, - identities: LitentryIdentity[], + identities: LitentryPrimitivesIdentity[], method: 'setUserShieldingKey' | 'createIdentity' | 'verifyIdentity' | 'removeIdentity', validations?: LitentryValidationData[] ): Promise { @@ -61,8 +68,8 @@ export async function buildIdentityTxs( const identity = identities[k]; let tx: SubmittableExtrinsic; let nonce: number; - const encod_identity = api.createType('LitentryIdentity', identity).toU8a(); - const ciphertext_identity = encryptWithTeeShieldingKey(teeShieldingKey, encod_identity).toString('hex'); + const ciphertext_identity = + identity && encryptWithTeeShieldingKey(teeShieldingKey, identity.toU8a()).toString('hex'); nonce = (await api.rpc.system.accountNextIndex(signer.address)).toNumber(); switch (method) { @@ -83,10 +90,9 @@ export async function buildIdentityTxs( break; case 'verifyIdentity': const data = validations![k]; - const encode_verifyIdentity_validation = api.createType('LitentryValidationData', data).toU8a(); const ciphertext_verifyIdentity_validation = encryptWithTeeShieldingKey( teeShieldingKey, - encode_verifyIdentity_validation + data.toU8a() ).toString('hex'); tx = api.tx.identityManagement.verifyIdentity( mrEnclave, @@ -110,14 +116,8 @@ export async function handleIdentityEvents( context: IntegrationTestContext, aesKey: HexString, events: any[], - type: - | 'UserShieldingKeySet' - | 'IdentityCreated' - | 'IdentityVerified' - | 'IdentityRemoved' - | 'Failed' - | 'CreateIdentityFailed' -): Promise { + type: 'UserShieldingKeySet' | 'IdentityCreated' | 'IdentityVerified' | 'IdentityRemoved' | 'Failed' +): Promise { let results: IdentityGenericEvent[] = []; for (let index = 0; index < events.length; index++) { @@ -125,7 +125,7 @@ export async function handleIdentityEvents( case 'UserShieldingKeySet': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), undefined, decryptWithAES(aesKey, events[index].data.idGraph, 'hex') @@ -135,7 +135,7 @@ export async function handleIdentityEvents( case 'IdentityCreated': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), decryptWithAES(aesKey, events[index].data.identity, 'hex'), undefined, @@ -146,7 +146,7 @@ export async function handleIdentityEvents( case 'IdentityVerified': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), decryptWithAES(aesKey, events[index].data.identity, 'hex'), decryptWithAES(aesKey, events[index].data.idGraph, 'hex') @@ -157,16 +157,12 @@ export async function handleIdentityEvents( case 'IdentityRemoved': results.push( createIdentityEvent( - context.api, + context.sidechainRegistry, events[index].data.account.toHex(), decryptWithAES(aesKey, events[index].data.identity, 'hex') ) ); break; - case 'Failed': - case 'CreateIdentityFailed': - results.push(events[index].data.detail.toHuman()); - break; } } console.log(`${type} event data:`, results); @@ -174,17 +170,52 @@ export async function handleIdentityEvents( return [...results]; } +export function parseIdGraph( + sidechainRegistry: TypeRegistry, + idGraph_output: AESOutput, + aesKey: HexString +): [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] { + const decrypted_idGraph = decryptWithAES(aesKey, idGraph_output, 'hex'); + let idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] = + sidechainRegistry.createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + decrypted_idGraph + ) as unknown as [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][]; + return idGraph; +} + +export function parseIdentity( + sidechainRegistry: TypeRegistry, + identity_output: AESOutput, + aesKey: HexString +): LitentryPrimitivesIdentity { + const decrypted_identity = decryptWithAES(aesKey, identity_output, 'hex'); + const identity = sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + decrypted_identity + ) as unknown as LitentryPrimitivesIdentity; + return identity; +} + export function createIdentityEvent( - api: ApiPromise, + sidechainRegistry: TypeRegistry, who: HexString, identityString?: HexString, idGraphString?: HexString, challengeCode?: HexString ): IdentityGenericEvent { - let identity = identityString ? api.createType('LitentryIdentity', identityString).toJSON() : undefined; - let idGraph = idGraphString - ? api.createType('Vec<(LitentryIdentity, IdentityContext)>', idGraphString).toJSON() - : undefined; + let identity: LitentryPrimitivesIdentity = + identityString! && + (sidechainRegistry.createType( + 'LitentryPrimitivesIdentity', + identityString + ) as unknown as LitentryPrimitivesIdentity); + let idGraph: [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][] = + idGraphString! && + (sidechainRegistry.createType( + 'Vec<(LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext)>', + idGraphString + ) as unknown as [LitentryPrimitivesIdentity, PalletIdentityManagementTeeIdentityContext][]); return { who, identity, @@ -195,8 +226,8 @@ export function createIdentityEvent( export async function buildValidations( context: IntegrationTestContext, - eventDatas: any[], - identities: any[], + eventDatas: IdentityGenericEvent[], + identities: LitentryPrimitivesIdentity[], network: 'ethereum' | 'substrate' | 'twitter', substrateSigners: KeyringPair[] | KeyringPair, ethereumSigners?: ethers.Wallet[] @@ -218,7 +249,7 @@ export async function buildValidations( identities[index] ); if (network === 'ethereum') { - const ethereumValidationData: LitentryValidationData = { + const ethereumValidationData = { Web3Validation: { Evm: { message: '' as HexString, @@ -229,18 +260,22 @@ export async function buildValidations( }, }; console.log('post verification msg to ethereum: ', msg); - ethereumValidationData!.Web3Validation!.Evm!.message = msg; + ethereumValidationData.Web3Validation.Evm.message = msg; const msgHash = ethers.utils.arrayify(msg); signature_ethereum = (await ethereumSigner!.signMessage(msgHash)) as HexString; console.log('signature_ethereum', ethereumSigners![index].address, signature_ethereum); - ethereumValidationData!.Web3Validation!.Evm!.signature!.Ethereum = signature_ethereum; + ethereumValidationData!.Web3Validation.Evm.signature.Ethereum = signature_ethereum; assert.isNotEmpty(data.challengeCode, 'ethereum challengeCode empty'); console.log('ethereumValidationData', ethereumValidationData); + const encode_verifyIdentity_validation = context.api.createType( + 'LitentryValidationData', + ethereumValidationData + ) as unknown as LitentryValidationData; - verifyDatas.push(ethereumValidationData); + verifyDatas.push(encode_verifyIdentity_validation); } else if (network === 'substrate') { - const substrateValidationData: LitentryValidationData = { + const substrateValidationData = { Web3Validation: { Substrate: { message: '' as HexString, @@ -251,21 +286,31 @@ export async function buildValidations( }, }; console.log('post verification msg to substrate: ', msg); - substrateValidationData!.Web3Validation!.Substrate!.message = msg; + substrateValidationData.Web3Validation.Substrate.message = msg; signature_substrate = substrateSigner.sign(msg) as Uint8Array; - substrateValidationData!.Web3Validation!.Substrate!.signature!.Sr25519 = u8aToHex(signature_substrate); + substrateValidationData!.Web3Validation.Substrate.signature.Sr25519 = u8aToHex(signature_substrate); assert.isNotEmpty(data.challengeCode, 'substrate challengeCode empty'); - verifyDatas.push(substrateValidationData); + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + substrateValidationData + ) as unknown as LitentryValidationData; + verifyDatas.push(encode_verifyIdentity_validation); } else if (network === 'twitter') { console.log('post verification msg to twitter', msg); - const twitterValidationData: LitentryValidationData = { + const twitterValidationData = { Web2Validation: { Twitter: { tweet_id: `0x${Buffer.from('100', 'utf8').toString('hex')}`, }, }, }; - verifyDatas.push(twitterValidationData); + + const encode_verifyIdentity_validation = context.api.createType( + 'LitentryValidationData', + twitterValidationData + ) as unknown as LitentryValidationData; + + verifyDatas.push(encode_verifyIdentity_validation); assert.isNotEmpty(data.challengeCode, 'twitter challengeCode empty'); } } diff --git a/tee-worker/ts-tests/common/utils/integration-setup.ts b/tee-worker/ts-tests/common/utils/integration-setup.ts index f2e0830b85..a411e7b7a6 100644 --- a/tee-worker/ts-tests/common/utils/integration-setup.ts +++ b/tee-worker/ts-tests/common/utils/integration-setup.ts @@ -1,10 +1,10 @@ import { ApiPromise } from '@polkadot/api'; -import { Metadata } from '@polkadot/types'; -import { HexString } from '@polkadot/util/types'; import { KeyObject } from 'crypto'; import WebSocketAsPromised from 'websocket-as-promised'; import { after, before, describe } from 'mocha'; -import { IntegrationTestContext, Web3Wallets } from '../type-definitions'; +import type { IntegrationTestContext, Web3Wallets } from '../type-definitions'; +import type { Metadata, TypeRegistry } from '@polkadot/types'; +import type { HexString } from '@polkadot/util/types'; import { initIntegrationTestContext } from './context'; export function describeLitentry(title: string, walletsNumber: number, cb: (context: IntegrationTestContext) => void) { @@ -20,6 +20,7 @@ export function describeLitentry(title: string, walletsNumber: number, cb: (cont ethersWallet: {}, substrateWallet: {}, metaData: {} as Metadata, + sidechainRegistry: {} as TypeRegistry, web3Signers: [] as Web3Wallets[], }; @@ -37,6 +38,7 @@ export function describeLitentry(title: string, walletsNumber: number, cb: (cont context.ethersWallet = tmp.ethersWallet; context.substrateWallet = tmp.substrateWallet; context.metaData = tmp.metaData; + context.sidechainRegistry = tmp.sidechainRegistry; context.web3Signers = tmp.web3Signers; }); diff --git a/tee-worker/ts-tests/common/utils/storage.ts b/tee-worker/ts-tests/common/utils/storage.ts index 783480f72e..ea83d7e7ef 100644 --- a/tee-worker/ts-tests/common/utils/storage.ts +++ b/tee-worker/ts-tests/common/utils/storage.ts @@ -1,11 +1,14 @@ -import { Metadata } from '@polkadot/types'; -import { HexString } from '@polkadot/util/types'; import { u8aToHex, u8aConcat } from '@polkadot/util'; import { xxhashAsU8a } from '@polkadot/util-crypto'; import { StorageEntryMetadataV14, SiLookupTypeId, StorageHasherV14 } from '@polkadot/types/interfaces'; import { sendRequest } from '../call'; import { blake2128Concat, twox64Concat, identity } from '../helpers'; -import { IntegrationTestContext, IdentityContext } from '../type-definitions'; +import type { IntegrationTestContext } from '../type-definitions'; +import type { PalletIdentityManagementTeeIdentityContext } from '@polkadot/types/lookup'; +import type { HexString } from '@polkadot/util/types'; +import type { Metadata } from '@polkadot/types'; + +const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); const base58 = require('micro-base58'); @@ -94,6 +97,8 @@ export async function checkUserShieldingKeys( method: string, address: HexString ): Promise { + await sleep(6000); + const storageKey = await buildStorageHelper(context.metaData, pallet, method, address); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); @@ -115,6 +120,8 @@ export async function checkUserChallengeCode( address: HexString, identity: HexString ): Promise { + await sleep(6000); + const storageKey = await buildStorageHelper(context.metaData, pallet, method, address, identity); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); @@ -135,7 +142,8 @@ export async function checkIDGraph( method: string, address: HexString, identity: HexString -): Promise { +): Promise { + await sleep(6000); const storageKey = await buildStorageHelper(context.metaData, pallet, method, address, identity); let base58mrEnclave = base58.encode(Buffer.from(context.mrEnclave.slice(2), 'hex')); @@ -147,6 +155,9 @@ export async function checkIDGraph( id: 1, }; let resp = await sendRequest(context.tee, request, context.api); - const IDGraph = context.api.createType('IdentityContext', resp.value).toJSON() as IdentityContext; + const IDGraph = context.sidechainRegistry.createType( + 'PalletIdentityManagementTeeIdentityContext', + resp.value + ) as unknown as PalletIdentityManagementTeeIdentityContext; return IDGraph; } diff --git a/tee-worker/ts-tests/common/utils/vc-helper.ts b/tee-worker/ts-tests/common/utils/vc-helper.ts index 88371492af..fc5230e0b0 100644 --- a/tee-worker/ts-tests/common/utils/vc-helper.ts +++ b/tee-worker/ts-tests/common/utils/vc-helper.ts @@ -1,4 +1,4 @@ -import { HexString } from '@polkadot/util/types'; +import type { HexString } from '@polkadot/util/types'; import { decryptWithAES } from './crypto'; export async function handleVcEvents( diff --git a/tee-worker/ts-tests/examples/direct-invocation/index.ts b/tee-worker/ts-tests/examples/direct-invocation/index.ts index b325652926..9ffb93047f 100644 --- a/tee-worker/ts-tests/examples/direct-invocation/index.ts +++ b/tee-worker/ts-tests/examples/direct-invocation/index.ts @@ -1,8 +1,8 @@ import { cryptoWaitReady } from '@polkadot/util-crypto'; import { KeyringPair } from '@polkadot/keyring/types'; import { ApiPromise, Keyring, WsProvider } from '@polkadot/api'; -import { TypeRegistry, Vec } from '@polkadot/types'; import { teeTypes } from '../../common/type-definitions'; +import { HexString } from '@polkadot/util/types'; import { createSignedTrustedCallSetUserShieldingKey, sendRequestFromTrustedCall, @@ -15,6 +15,8 @@ import { decodeNonce, } from './util'; import { getEnclave, sleep, buildIdentityHelper } from '../../common/utils'; +import { Metadata, TypeRegistry } from '@polkadot/types'; +import sidechainMetaData from '../../litentry-sidechain-metadata.json'; import { hexToU8a, compactStripLength, u8aToString } from '@polkadot/util'; import { assert } from 'chai'; @@ -31,7 +33,9 @@ const WORKER_TRUSTED_WS_ENDPOINT = 'wss://localhost:2000'; async function runDirectCall() { const parachain_ws = new WsProvider(PARACHAIN_WS_ENDPINT); - const registry = new TypeRegistry(); + const sidechainRegistry = new TypeRegistry(); + const metaData = new Metadata(sidechainRegistry, sidechainMetaData.result as HexString); + sidechainRegistry.setMetadata(metaData); const { types } = teeTypes; const parachain_api = await ApiPromise.create({ provider: parachain_ws, @@ -92,7 +96,7 @@ async function runDirectCall() { mrenclave, nonce, alice, - parachain_api.createType('LitentryIdentity', twitter_identity).toHex(), + sidechainRegistry.createType('LitentryPrimitivesIdentity', twitter_identity).toHex(), '0x', parachain_api.createType('u32', 1).toHex(), hash diff --git a/tee-worker/ts-tests/examples/direct-invocation/util.ts b/tee-worker/ts-tests/examples/direct-invocation/util.ts index 1710d1a416..aff72dfbb0 100644 --- a/tee-worker/ts-tests/examples/direct-invocation/util.ts +++ b/tee-worker/ts-tests/examples/direct-invocation/util.ts @@ -3,7 +3,7 @@ import { KeyringPair } from '@polkadot/keyring/types'; import { BN, u8aToHex, hexToU8a, compactAddLength, bufferToU8a } from '@polkadot/util'; import { Codec } from '@polkadot/types/types'; import { PubicKeyJson } from '../../common/type-definitions'; -import { WorkerRpcReturnValue } from '../../interfaces/identity'; +import { WorkerRpcReturnValue } from '../../parachain-interfaces/identity/types'; import { encryptWithTeeShieldingKey } from '../../common/utils'; import { decodeRpcBytesAsString } from '../../common/call'; import { createPublicKey, KeyObject } from 'crypto'; diff --git a/tee-worker/ts-tests/identity-direct-invocation.test.ts b/tee-worker/ts-tests/identity-direct-invocation.test.ts index 9aaf4a3662..69f1a3fd15 100644 --- a/tee-worker/ts-tests/identity-direct-invocation.test.ts +++ b/tee-worker/ts-tests/identity-direct-invocation.test.ts @@ -9,7 +9,7 @@ import { getTEEShieldingKey, sendRequestFromTrustedGetter, } from './examples/direct-invocation/util'; // @fixme move to a better place -import { IntegrationTestContext } from './common/type-definitions'; +import type { IntegrationTestContext } from './common/type-definitions'; describe('Test Identity (direct invocation)', function () { let context: IntegrationTestContext = undefined as any; diff --git a/tee-worker/ts-tests/identity.test.ts b/tee-worker/ts-tests/identity.test.ts index 57718a0e5f..642b68eeb9 100644 --- a/tee-worker/ts-tests/identity.test.ts +++ b/tee-worker/ts-tests/identity.test.ts @@ -3,7 +3,6 @@ import { encryptWithTeeShieldingKey, generateVerificationMessage, checkErrorDetail, - checkUserShieldingKeys, checkUserChallengeCode, checkIDGraph, buildIdentityHelper, @@ -11,28 +10,26 @@ import { handleIdentityEvents, buildValidations, assertInitialIDGraphCreated, + checkUserShieldingKeys, } from './common/utils'; +import { env_network } from './common/helpers'; import { hexToU8a, u8aConcat, u8aToHex, u8aToU8a, stringToU8a } from '@polkadot/util'; import { step } from 'mocha-steps'; import { assert } from 'chai'; -import { - LitentryIdentity, - LitentryValidationData, - SubstrateIdentity, - TransactionSubmit, -} from './common/type-definitions'; -import { HexString } from '@polkadot/util/types'; import { multiAccountTxSender, sendTxsWithUtility } from './common/transactions'; import { assertIdentityVerified, assertIdentityCreated, assertIdentityRemoved } from './common/utils'; +import type { LitentryPrimitivesIdentity } from '@polkadot/types/lookup'; +import type { LitentryValidationData } from './parachain-interfaces/identity/types'; +import type { TransactionSubmit } from './common/type-definitions'; +import type { HexString } from '@polkadot/util/types'; +import { Event } from '@polkadot/types/interfaces'; import { ethers } from 'ethers'; -const substrateExtensionIdentity = { - Substrate: { +const substrateExtensionIdentity = { + Substrate: { address: '0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48', //Bob network: 'Litentry', }, -}; -import { Event } from '@polkadot/types/interfaces'; - +} as unknown as LitentryPrimitivesIdentity; describeLitentry('Test Identity', 0, (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; const errorAesKey = '0xError'; @@ -40,14 +37,16 @@ describeLitentry('Test Identity', 0, (context) => { //random wrong msg const wrong_msg = '0x693d9131808e7a8574c7ea5eb7813bdf356223263e61fa8fe2ee8e434508bc75'; var signature_substrate; - let alice_identities: LitentryIdentity[] = []; - let bob_identities: LitentryIdentity[] = []; + let alice_identities: LitentryPrimitivesIdentity[] = []; + let bob_identities: LitentryPrimitivesIdentity[] = []; let alice_validations: LitentryValidationData[] = []; let bob_validations: LitentryValidationData[] = []; step('check user sidechain storage before create', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + + const identity_hex = twitter_identity.toHex(); + const resp_shieldingKey = await checkUserShieldingKeys( context, 'IdentityManagement', @@ -68,18 +67,16 @@ describeLitentry('Test Identity', 0, (context) => { }); step('Invalid user shielding key', async function () { - let identity = await buildIdentityHelper(context.ethersWallet.alice.address, 'Ethereum', 'Evm'); + let identity = await buildIdentityHelper(context.ethersWallet.alice.address, 'Ethereum', 'Evm', context); let txs = await buildIdentityTxs(context, context.substrateWallet.alice, [identity], 'createIdentity'); let resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'identityManagement', [ 'CreateIdentityFailed', ]); - await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound', true); + await checkErrorDetail(resp_events, 'UserShieldingKeyNotFound'); }); - const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); step('set user shielding key', async function () { - await sleep(6000); let [alice_txs] = (await buildIdentityTxs( context, [context.substrateWallet.alice], @@ -99,11 +96,13 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - await sleep(6000); - const [alice, bob] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - await assertInitialIDGraphCreated(context.api, context.substrateWallet.alice, alice); - await assertInitialIDGraphCreated(context.api, context.substrateWallet.bob, bob); + await assertInitialIDGraphCreated( + context, + [context.substrateWallet.alice, context.substrateWallet.bob], + resp_events, + aesKey + ); }); step('check user shielding key from sidechain storage after setUserShieldingKey', async function () { @@ -120,10 +119,11 @@ describeLitentry('Test Identity', 0, (context) => { // the main address should be already inside the IDGraph const main_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), - 'LitentryRococo', - 'Substrate' + env_network, + 'Substrate', + context ); - const identity_hex = context.api.createType('LitentryIdentity', main_identity).toHex(); + const identity_hex = main_identity.toHex(); const resp_id_graph = await checkIDGraph( context, 'IdentityManagement', @@ -132,32 +132,44 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock.toHuman(), + 0, + 'verificationRequestBlock should be 0 for main address' + ); + assert.equal( + resp_id_graph.creationRequestBlock.toHuman(), 0, - 'verification_request_block should be 0 for main address' + 'creationRequestBlock should be 0 for main address' ); - assert.equal(resp_id_graph.linking_request_block, 0, 'linking_request_block should be 0 for main address'); - assert.equal(resp_id_graph.is_verified, true, 'IDGraph is_verified should be true for main address'); + assert.equal(resp_id_graph.isVerified.toHuman(), true, 'IDGraph is_verified should be true for main address'); // TODO: check IDGraph.length == 1 in the sidechain storage }); step('create identities', async function () { - //Alice - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const ethereum_identity = await buildIdentityHelper(context.ethersWallet.alice.address, 'Ethereum', 'Evm'); + // Alice + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const ethereum_identity = await buildIdentityHelper( + context.ethersWallet.alice.address, + 'Ethereum', + 'Evm', + context + ); const alice_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), 'Litentry', - 'Substrate' + 'Substrate', + context ); - //Bob + // Bob const bob_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.bob.addressRaw), 'Litentry', - 'Substrate' + 'Substrate', + context ); alice_identities = [twitter_identity, ethereum_identity, alice_substrate_identity]; + bob_identities = [bob_substrate_identity]; let alice_txs = await buildIdentityTxs( @@ -182,8 +194,14 @@ describeLitentry('Test Identity', 0, (context) => { 'IdentityCreated' ); - //Alice check twitter identity - assertIdentityCreated(context.substrateWallet.alice, twitter_event_data); + // Alice check identity + await assertIdentityCreated( + context, + context.substrateWallet.alice, + alice_resp_events, + aesKey, + alice_identities + ); const alice_twitter_validations = await buildValidations( context, @@ -193,8 +211,6 @@ describeLitentry('Test Identity', 0, (context) => { context.substrateWallet.alice ); - //Alice check ethereum identity - assertIdentityCreated(context.substrateWallet.alice, ethereum_event_data); const alice_ethereum_validations = await buildValidations( context, [ethereum_event_data], @@ -204,8 +220,6 @@ describeLitentry('Test Identity', 0, (context) => { [context.ethersWallet.alice] ); - //Alice check substrate identity - assertIdentityCreated(context.substrateWallet.alice, substrate_event_data); const alice_substrate_validations = await buildValidations( context, [substrate_event_data], @@ -234,10 +248,12 @@ describeLitentry('Test Identity', 0, (context) => { const [resp_extension_data] = await handleIdentityEvents(context, aesKey, bob_resp_events, 'IdentityCreated'); - assertIdentityCreated(context.substrateWallet.bob, resp_extension_data); + // Bob check identity + await assertIdentityCreated(context, context.substrateWallet.bob, bob_resp_events, aesKey, bob_identities); + if (resp_extension_data) { console.log('substrateExtensionIdentity challengeCode: ', resp_extension_data.challengeCode); - const substrateExtensionValidationData = { + const substrateExtensionValidationData = { Web3Validation: { Substrate: { message: `0x${Buffer.from('mock_message', 'utf8').toString('hex')}`, @@ -254,21 +270,25 @@ describeLitentry('Test Identity', 0, (context) => { substrateExtensionIdentity ); console.log('post verification msg to substrate: ', msg); - substrateExtensionValidationData!.Web3Validation!.Substrate!.message = msg; + substrateExtensionValidationData.Web3Validation.Substrate.message = msg; // sign the wrapped version as in polkadot-extension signature_substrate = context.substrateWallet.bob.sign( u8aConcat(stringToU8a(''), u8aToU8a(msg), stringToU8a('')) ); - substrateExtensionValidationData!.Web3Validation!.Substrate!.signature!.Sr25519 = + substrateExtensionValidationData!.Web3Validation.Substrate.signature.Sr25519 = u8aToHex(signature_substrate); assert.isNotEmpty(resp_extension_data.challengeCode, 'challengeCode empty'); - bob_validations = [substrateExtensionValidationData]; + const encode_verifyIdentity_validation = context.api.createType( + 'LitentryValidationData', + substrateExtensionValidationData + ) as unknown as LitentryValidationData; + bob_validations = [encode_verifyIdentity_validation]; } }); step('check IDGraph before verifyIdentity and after createIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_id_graph = await checkIDGraph( context, @@ -278,18 +298,18 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.linking_request_block, - null, - 'linking_request_block should not be null after createIdentity' + resp_id_graph.creationRequestBlock.toHuman(), + 0, + 'creationRequestBlock should not be 0 after createIdentity' ); - assert.equal(resp_id_graph.is_verified, false, 'is_verified should be false before verifyIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'is_verified should be false before verifyIdentity'); }); step('verify invalid identities', async function () { const twitter_identity = alice_identities[0]; const ethereum_validation = alice_validations[1]; - //verify twitter identity with ethereum validation + // verify twitter identity with ethereum validation let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -304,18 +324,17 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'Failed'); - await checkErrorDetail(verified_event_datas, 'InvalidIdentity', false); + await checkErrorDetail(alice_resp_events, 'InvalidIdentity'); }); step('verify wrong signature', async function () { const ethereum_identity = alice_identities[1]; - //use wrong signature - const signature_ethereum = (await context.ethersWallet.alice!.signMessage( + // use wrong signature + const signature_ethereum = (await context.ethersWallet.alice.signMessage( ethers.utils.arrayify(wrong_msg) )) as HexString; - const ethereumValidationData: LitentryValidationData = { + const ethereumValidationData = { Web3Validation: { Evm: { message: wrong_msg as HexString, @@ -325,12 +344,17 @@ describeLitentry('Test Identity', 0, (context) => { }, }, }; + const encode_verifyIdentity_validation: LitentryValidationData = context.api.createType( + 'LitentryValidationData', + ethereumValidationData + ) as unknown as LitentryValidationData; + context; let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, [ethereum_identity], 'verifyIdentity', - [ethereumValidationData] + [encode_verifyIdentity_validation] ); let alice_resp_events = await sendTxsWithUtility( context, @@ -339,12 +363,11 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'Failed'); - await checkErrorDetail(verified_event_datas, 'VerifyEvmSignatureFailed', false); + await checkErrorDetail(alice_resp_events, 'VerifyEvmSignatureFailed'); }); step('verify identities', async function () { - //Alice verify all identities + // Alice verify all identities let alice_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -374,23 +397,23 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityVerified'] ); - const verified_event_datas = await handleIdentityEvents(context, aesKey, alice_resp_events, 'IdentityVerified'); - const [substrate_extension_identity_verified] = await handleIdentityEvents( + + // Alice + await assertIdentityVerified( context, + context.substrateWallet.alice, + alice_resp_events, aesKey, - bob_resp_events, - 'IdentityVerified' + alice_identities ); - //Alice - assertIdentityVerified(context.substrateWallet.alice, verified_event_datas); - //Bob - assertIdentityVerified(context.substrateWallet.bob, [substrate_extension_identity_verified]); + // Bob + assertIdentityVerified(context, context.substrateWallet.bob, bob_resp_events, aesKey, bob_identities); }); step('check IDGraph after verifyIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_id_graph = await checkIDGraph( context, @@ -400,11 +423,11 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.notEqual( - resp_id_graph.verification_request_block, - null, - 'verification_request_block should not be null after verifyIdentity' + resp_id_graph.verificationRequestBlock.toHuman(), + 0, + 'verificationRequestBlock should not be 0 after verifyIdentity' ); - assert.equal(resp_id_graph.is_verified, true, 'is_verified should be true after verifyIdentity'); + assert.isTrue(resp_id_graph.isVerified.toHuman(), 'is_verified should be true after verifyIdentity'); }); step('verify error identities', async function () { @@ -423,13 +446,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const alice_resp_same_verify_event_datas = await handleIdentityEvents( - context, - aesKey, - alice_resp_same_verify_events, - 'Failed' - ); - await checkErrorDetail(alice_resp_same_verify_event_datas, 'ChallengeCodeNotFound', false); + await checkErrorDetail(alice_resp_same_verify_events, 'ChallengeCodeNotFound'); //verify an identity(charlie) to an account but it isn't created before let charlie_txs = await buildIdentityTxs( @@ -446,13 +463,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['VerifyIdentityFailed'] ); - const charlie_resp_same_verify_event_datas = await handleIdentityEvents( - context, - aesKey, - charlie_resp_same_verify_events, - 'Failed' - ); - await checkErrorDetail(charlie_resp_same_verify_event_datas, 'ChallengeCodeNotFound', false); + await checkErrorDetail(charlie_resp_same_verify_events, 'ChallengeCodeNotFound'); }); step('remove identities', async function () { @@ -470,8 +481,6 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityRemoved'] ); - const [twitter_identity_removed, ethereum_identity_removed, substrate_identity_removed] = - await handleIdentityEvents(context, aesKey, alice_resp_remove_events, 'IdentityRemoved'); // Bob remove substrate identities let bob_txs = await buildIdentityTxs(context, context.substrateWallet.bob, bob_identities, 'removeIdentity'); @@ -488,18 +497,16 @@ describeLitentry('Test Identity', 0, (context) => { bob_resp_remove_events, 'IdentityRemoved' ); - //Alice - assertIdentityRemoved(context.substrateWallet.alice, twitter_identity_removed); - assertIdentityRemoved(context.substrateWallet.alice, ethereum_identity_removed); - assertIdentityRemoved(context.substrateWallet.alice, substrate_identity_removed); + // Alice check identity + assertIdentityRemoved(context, context.substrateWallet.alice, alice_resp_remove_events); - // Bob - assertIdentityRemoved(context.substrateWallet.bob, substrate_extension_identity_removed); + // Bob check identity + assertIdentityRemoved(context, context.substrateWallet.bob, alice_resp_remove_events); }); step('check challengeCode from storage after removeIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_challengecode = await checkUserChallengeCode( context, 'IdentityManagement', @@ -511,8 +518,8 @@ describeLitentry('Test Identity', 0, (context) => { }); step('check IDGraph after removeIdentity', async function () { - const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); - const identity_hex = context.api.createType('LitentryIdentity', twitter_identity).toHex(); + const twitter_identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); + const identity_hex = twitter_identity.toHex(); const resp_id_graph = await checkIDGraph( context, @@ -522,23 +529,24 @@ describeLitentry('Test Identity', 0, (context) => { identity_hex ); assert.equal( - resp_id_graph.verification_request_block, + resp_id_graph.verificationRequestBlock.toHuman(), null, - 'verification_request_block should be null after removeIdentity' + 'verificationRequestBlock should be null after removeIdentity' ); assert.equal( - resp_id_graph.linking_request_block, + resp_id_graph.creationRequestBlock.toHuman(), null, - 'linking_request_block should be null after removeIdentity' + 'creationRequestBlock should be null after removeIdentity' ); - assert.equal(resp_id_graph.is_verified, false, 'is_verified should be false after removeIdentity'); + assert.equal(resp_id_graph.isVerified.toHuman(), false, 'isVerified should be false after removeIdentity'); }); step('remove prime identity NOT allowed', async function () { // create substrate identity const alice_substrate_identity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), 'Litentry', - 'Substrate' + 'Substrate', + context ); let alice_create_txs = await buildIdentityTxs( context, @@ -553,13 +561,9 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['IdentityCreated'] ); - const [substrate_create_event_data] = await handleIdentityEvents( - context, - aesKey, - alice_resp_create__events, - 'IdentityCreated' - ); - assertIdentityCreated(context.substrateWallet.alice, substrate_create_event_data); + assertIdentityCreated(context, context.substrateWallet.alice, alice_resp_create__events, aesKey, [ + alice_substrate_identity, + ]); // remove substrate identity let alice_remove_txs = await buildIdentityTxs( @@ -575,8 +579,9 @@ describeLitentry('Test Identity', 0, (context) => { // remove prime identity const substratePrimeIdentity = await buildIdentityHelper( u8aToHex(context.substrateWallet.alice.addressRaw), - 'LitentryRococo', - 'Substrate' + env_network, + 'Substrate', + context ); let prime_txs = await buildIdentityTxs( @@ -592,14 +597,13 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const prime_resp_event_datas = await handleIdentityEvents(context, aesKey, prime_resp_events, 'Failed'); - await checkErrorDetail(prime_resp_event_datas, 'RemovePrimeIdentityDisallowed', false); + await checkErrorDetail(prime_resp_events, 'RemovePrimeIdentityDisallowed'); }); step('remove error identities', async function () { - //remove a nonexistent identity - //context.substrateWallet.alice has aleady removed all identities in step('remove identities') + // Remove a nonexistent identity + // context.substrateWallet.alice has aleady removed all identities in step('remove identities') let alice_remove_txs = await buildIdentityTxs( context, context.substrateWallet.alice, @@ -613,14 +617,8 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['RemoveIdentityFailed'] ); - const alice_resp_remove_event_datas = await handleIdentityEvents( - context, - aesKey, - alice_resp_remove_events, - 'Failed' - ); - await checkErrorDetail(alice_resp_remove_event_datas, 'IdentityNotExist', false); + await checkErrorDetail(alice_resp_remove_events, 'IdentityNotExist'); //charlie doesn't have a challenge code,use alice identity let charlie_remove_txs = await buildIdentityTxs( @@ -637,14 +635,7 @@ describeLitentry('Test Identity', 0, (context) => { ['RemoveIdentityFailed'] ); - const charile_resp_remove_events_data = await handleIdentityEvents( - context, - aesKey, - charile_resp_remove_events, - 'Failed' - ); - - await checkErrorDetail(charile_resp_remove_events_data, 'UserShieldingKeyNotFound', false); + await checkErrorDetail(charile_resp_remove_events, 'UserShieldingKeyNotFound'); }); step('set error user shielding key', async function () { @@ -664,9 +655,7 @@ describeLitentry('Test Identity', 0, (context) => { ['SetUserShieldingKeyFailed'] ); - let error_event_datas = await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed'); - - await checkErrorDetail(error_event_datas, 'ImportError', false); + await checkErrorDetail(resp_error_events, 'ImportError'); }); step('create error identities', async function () { @@ -683,8 +672,7 @@ describeLitentry('Test Identity', 0, (context) => { 'identityManagement', ['CreateIdentityFailed'] ); - let error_event_datas = await handleIdentityEvents(context, aesKey, resp_error_events, 'Failed'); - await checkErrorDetail(error_event_datas, 'ImportError', false); + await checkErrorDetail(resp_error_events, 'ImportError'); }); step('exceeding IDGraph limit not allowed', async function () { @@ -695,26 +683,25 @@ describeLitentry('Test Identity', 0, (context) => { 'setUserShieldingKey' ); - let resp_events: Event[] = (await sendTxsWithUtility( + let resp_events = await sendTxsWithUtility( context, context.substrateWallet.eve, [setUserShieldingKeyTx], 'identityManagement', ['UserShieldingKeySet'] - )) as any as Event[]; - const [event] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); - await assertInitialIDGraphCreated(context.api, context.substrateWallet.eve, event); + ); + await assertInitialIDGraphCreated(context, [context.substrateWallet.eve], resp_events, aesKey); - let identities: LitentryIdentity[] = []; + let identities: LitentryPrimitivesIdentity[] = []; for (let i = 0; i < 64; i++) { - let identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2'); + let identity = await buildIdentityHelper('mock_user', 'Twitter', 'Web2', context); identities.push(identity); } let txs = await buildIdentityTxs(context, context.substrateWallet.eve, identities, 'createIdentity'); - resp_events = (await sendTxsWithUtility(context, context.substrateWallet.eve, txs, 'identityManagement', [ + resp_events = await sendTxsWithUtility(context, context.substrateWallet.eve, txs, 'identityManagement', [ 'IdentityCreated', 'CreateIdentityFailed', - ])) as any as Event[]; + ]); let identity_created_events_raw = resp_events.filter((e) => e.method === 'IdentityCreated'); let create_identity_failed_events_raw = resp_events.filter((e) => e.method === 'CreateIdentityFailed'); @@ -729,16 +716,7 @@ describeLitentry('Test Identity', 0, (context) => { identity_created_events_raw, 'IdentityCreated' ); - identity_created_events.forEach((e) => { - assertIdentityCreated(context.substrateWallet.eve, e); - }); - let create_identity_failed_events = await handleIdentityEvents( - context, - aesKey, - create_identity_failed_events_raw, - 'CreateIdentityFailed' - ); - assert.equal(create_identity_failed_events.length, 1); - await checkErrorDetail(create_identity_failed_events, 'IDGraphLenLimitReached', false); + assertIdentityCreated(context, context.substrateWallet.eve, identity_created_events, aesKey, identities); + await checkErrorDetail(create_identity_failed_events_raw, 'IDGraphLenLimitReached'); }); }); diff --git a/tee-worker/ts-tests/package.json b/tee-worker/ts-tests/package.json index 3e4e9c97e6..a05a60c5ec 100644 --- a/tee-worker/ts-tests/package.json +++ b/tee-worker/ts-tests/package.json @@ -5,9 +5,12 @@ "gen-meta": "yarn gen-meta:sidechain && yarn gen-meta:parachain", "gen-meta:sidechain": "../bin/integritee-cli print-sgx-metadata-raw > litentry-sidechain-metadata.json", "gen-meta:parachain": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > litentry-parachain-metadata.json", - "gen-type": "yarn gen-type:defs && yarn gen-type:meta && yarn format", - "gen-type:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./interfaces --endpoint ./litentry-sidechain-metadata.json", - "gen-type:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./interfaces --endpoint ./litentry-sidechain-metadata.json", + "gen-type:parachain": "yarn gen-type-parachain:defs && yarn gen-type-parachain:meta && yarn format", + "gen-type-parachain:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./parachain-interfaces --endpoint ./litentry-parachain-metadata.json", + "gen-type-parachain:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./parachain-interfaces --endpoint ./litentry-parachain-metadata.json", + "gen-type:sidechain": "yarn gen-type-sidechain:defs && yarn gen-type-sidechain:meta && yarn format", + "gen-type-sidechain:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package . --input ./sidechain-interfaces --endpoint ./litentry-sidechain-metadata.json", + "gen-type-sidechain:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package . --output ./sidechain-interfaces --endpoint ./litentry-sidechain-metadata.json", "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-identity-direct-invocation:local": "cross-env NODE_ENV=local mocha --exit --sort -r ts-node/register 'identity-direct-invocation.test.ts'", @@ -26,9 +29,10 @@ }, "dependencies": { "@noble/ed25519": "^1.7.3", - "@polkadot/api": "^10.3.4", - "@polkadot/keyring": "^12.1.2", - "@polkadot/types": "^10.3.4", + "@polkadot/api": "^10.7.1", + "@polkadot/keyring": "^12.2.1", + "@polkadot/typegen": "^9.14.2", + "@polkadot/types": "^10.7.1", "add": "^2.0.6", "ajv": "^8.12.0", "chai": "^4.3.6", @@ -44,7 +48,6 @@ }, "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", diff --git a/tee-worker/ts-tests/parachain-interfaces/augment-api-consts.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-consts.ts new file mode 100644 index 0000000000..1e9cf7b094 --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/augment-api-consts.ts @@ -0,0 +1,598 @@ +// 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 { Option, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Codec } from '@polkadot/types-codec/types'; +import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; +import type { + FrameSupportPalletId, + FrameSystemLimitsBlockLength, + FrameSystemLimitsBlockWeights, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, + XcmV3MultiLocation, +} 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; + }; + bounties: { + /** + * The amount held on deposit for placing a bounty proposal. + **/ + bountyDepositBase: u128 & AugmentedConst; + /** + * The delay period for which a bounty beneficiary need to wait before claim the payout. + **/ + bountyDepositPayoutDelay: u32 & AugmentedConst; + /** + * Bounty duration in blocks. + **/ + bountyUpdatePeriod: u32 & AugmentedConst; + /** + * Minimum value for a bounty. + **/ + bountyValueMinimum: u128 & AugmentedConst; + /** + * Maximum amount of funds that should be placed in a deposit for making a proposal. + **/ + curatorDepositMax: Option & AugmentedConst; + /** + * Minimum amount of funds that should be placed in a deposit for making a proposal. + **/ + curatorDepositMin: Option & AugmentedConst; + /** + * The curator deposit is calculated as a percentage of the curator fee. + * + * This deposit has optional upper and lower bounds with `CuratorDepositMax` and + * `CuratorDepositMin`. + **/ + curatorDepositMultiplier: Permill & AugmentedConst; + /** + * The amount held on deposit per byte within the tip report reason or bounty description. + **/ + dataDepositPerByte: u128 & AugmentedConst; + /** + * Maximum acceptable reason length. + * + * Benchmarks depend on this value, be sure to update weights file when changing this value + **/ + maximumReasonLength: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + bridgeTransfer: { + defaultMaximumIssuance: u128 & AugmentedConst; + externalTotalIssuance: u128 & AugmentedConst; + nativeTokenResourceId: U8aFixed & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + chainBridge: { + /** + * The identifier for this chain. + * This must be unique and must not collide with existing IDs within a set of bridged + * chains. + **/ + bridgeChainId: u8 & AugmentedConst; + proposalLifetime: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + democracy: { + /** + * Period in blocks where an external proposal may not be re-submitted after being vetoed. + **/ + cooloffPeriod: u32 & AugmentedConst; + /** + * The period between a proposal being approved and enacted. + * + * It should generally be a little more than the unstake period to ensure that + * voting stakers have an opportunity to remove themselves from the system in the case + * where they are on the losing side of a vote. + **/ + enactmentPeriod: u32 & AugmentedConst; + /** + * Minimum voting period allowed for a fast-track referendum. + **/ + fastTrackVotingPeriod: u32 & AugmentedConst; + /** + * Indicator for whether an emergency origin is even allowed to happen. Some chains may + * want to set this permanently to `false`, others may want to condition it on things such + * as an upgrade having happened recently. + **/ + instantAllowed: bool & AugmentedConst; + /** + * How often (in blocks) new public referenda are launched. + **/ + launchPeriod: u32 & AugmentedConst; + /** + * The maximum number of items which can be blacklisted. + **/ + maxBlacklisted: u32 & AugmentedConst; + /** + * The maximum number of deposits a public proposal may have at any time. + **/ + maxDeposits: u32 & AugmentedConst; + /** + * The maximum number of public proposals that can exist at any time. + **/ + maxProposals: u32 & AugmentedConst; + /** + * The maximum number of votes for an account. + * + * Also used to compute weight, an overly big value can + * lead to extrinsic with very big weight: see `delegate` for instance. + **/ + maxVotes: u32 & AugmentedConst; + /** + * The minimum amount to be used as a deposit for a public referendum proposal. + **/ + minimumDeposit: u128 & AugmentedConst; + /** + * The minimum period of vote locking. + * + * It should be no shorter than enactment period to ensure that in the case of an approval, + * those successful voters are locked into the consequences that their votes entail. + **/ + voteLockingPeriod: u32 & AugmentedConst; + /** + * How often (in blocks) to check for new votes. + **/ + votingPeriod: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + drop3: { + /** + * The maximum length a on-chain string can be + **/ + maximumNameLength: u32 & AugmentedConst; + /** + * percent of the total amount slashed when proposal gets rejected + **/ + slashPercent: Percent & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + identityManagementMock: { + maxVerificationDelay: u32 & 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; + }; + parachainIdentity: { + /** + * The amount held on deposit for a registered identity + **/ + basicDeposit: u128 & AugmentedConst; + /** + * The amount held on deposit per additional field for a registered identity. + **/ + fieldDeposit: u128 & AugmentedConst; + /** + * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O + * required to access an identity, but can be pretty high. + **/ + maxAdditionalFields: u32 & AugmentedConst; + /** + * Maxmimum number of registrars allowed in the system. Needed to bound the complexity + * of, e.g., updating judgements. + **/ + maxRegistrars: u32 & AugmentedConst; + /** + * The maximum number of sub-accounts allowed per identified account. + **/ + maxSubAccounts: u32 & AugmentedConst; + /** + * The amount held on deposit for a registered subaccount. This should account for the fact + * that one storage item's value will increase by the size of an account ID, and there will + * be another trie item whose value is the size of an account ID plus 32 bytes. + **/ + subAccountDeposit: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + parachainStaking: { + /** + * Number of rounds candidate requests to decrease self-bond must wait to be executable + **/ + candidateBondLessDelay: u32 & AugmentedConst; + /** + * Default number of blocks per round at genesis + **/ + defaultBlocksPerRound: u32 & AugmentedConst; + /** + * Default commission due to collators, is `CollatorCommission` storage value in genesis + **/ + defaultCollatorCommission: Perbill & AugmentedConst; + /** + * Default percent of inflation set aside for parachain bond account + **/ + defaultParachainBondReservePercent: Percent & AugmentedConst; + /** + * Number of rounds that delegation less requests must wait before executable + **/ + delegationBondLessDelay: u32 & AugmentedConst; + /** + * Number of rounds that candidates remain bonded before exit request is executable + **/ + leaveCandidatesDelay: u32 & AugmentedConst; + /** + * Number of rounds that delegators remain bonded before exit request is executable + **/ + leaveDelegatorsDelay: u32 & AugmentedConst; + /** + * Maximum bottom delegations (not counted) per candidate + **/ + maxBottomDelegationsPerCandidate: u32 & AugmentedConst; + /** + * Maximum delegations per delegator + **/ + maxDelegationsPerDelegator: u32 & AugmentedConst; + /** + * Maximum top delegations counted per candidate + **/ + maxTopDelegationsPerCandidate: u32 & AugmentedConst; + /** + * Minimum number of blocks per round + **/ + minBlocksPerRound: u32 & AugmentedConst; + /** + * Minimum stake required for any account to be a collator candidate + **/ + minCandidateStk: u128 & AugmentedConst; + /** + * Minimum stake required for any candidate to be in `SelectedCandidates` for the round + **/ + minCollatorStk: u128 & AugmentedConst; + /** + * Minimum stake for any registered on-chain account to delegate + **/ + minDelegation: u128 & AugmentedConst; + /** + * Minimum stake for any registered on-chain account to be a delegator + **/ + minDelegatorStk: u128 & AugmentedConst; + /** + * Minimum number of selected candidates every round + **/ + minSelectedCandidates: u32 & AugmentedConst; + /** + * Number of rounds that delegations remain bonded before revocation request is executable + **/ + revokeDelegationDelay: u32 & AugmentedConst; + /** + * Number of rounds after which block authors are rewarded + **/ + rewardPaymentDelay: 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; + }; + tips: { + /** + * The amount held on deposit per byte within the tip report reason or bounty description. + **/ + dataDepositPerByte: u128 & AugmentedConst; + /** + * Maximum acceptable reason length. + * + * Benchmarks depend on this value, be sure to update weights file when changing this value + **/ + maximumReasonLength: u32 & AugmentedConst; + /** + * The period for which a tip remains open after is has achieved threshold tippers. + **/ + tipCountdown: u32 & AugmentedConst; + /** + * The percent of the final tip which goes to the original reporter of the tip. + **/ + tipFindersFee: Percent & AugmentedConst; + /** + * The amount held on deposit for placing a tip report. + **/ + tipReportDepositBase: u128 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + tokens: { + maxLocks: u32 & AugmentedConst; + /** + * The maximum number of named reserves that can exist on an account. + **/ + maxReserves: u32 & 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; + }; + xTokens: { + /** + * Base XCM weight. + * + * The actually weight for an XCM message is `T::BaseXcmWeight + + * T::Weigher::weight(&msg)`. + **/ + baseXcmWeight: SpWeightsWeightV2Weight & AugmentedConst; + /** + * Self chain location. + **/ + selfLocation: XcmV3MultiLocation & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; + } // AugmentedConsts +} // declare module diff --git a/tee-worker/ts-tests/parachain-interfaces/augment-api-errors.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-errors.ts new file mode 100644 index 0000000000..9dd62d57fe --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/augment-api-errors.ts @@ -0,0 +1,1526 @@ +// 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 { + assetManager: { + AssetAlreadyExists: AugmentedError; + AssetIdDoesNotExist: AugmentedError; + AssetIdLimitReached: AugmentedError; + AssetTypeDoesNotExist: AugmentedError; + DefaultAssetTypeRemoved: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + 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; + }; + bounties: { + /** + * The bounty cannot be closed because it has active child bounties. + **/ + HasActiveChildBounty: AugmentedError; + /** + * Proposer's balance is too low. + **/ + InsufficientProposersBalance: AugmentedError; + /** + * Invalid bounty fee. + **/ + InvalidFee: AugmentedError; + /** + * No proposal or bounty at that index. + **/ + InvalidIndex: AugmentedError; + /** + * Invalid bounty value. + **/ + InvalidValue: AugmentedError; + /** + * A bounty payout is pending. + * To cancel the bounty, you must unassign and slash the curator. + **/ + PendingPayout: AugmentedError; + /** + * The bounties cannot be claimed/closed because it's still in the countdown period. + **/ + Premature: AugmentedError; + /** + * The reason given is just too big. + **/ + ReasonTooBig: AugmentedError; + /** + * Require bounty curator. + **/ + RequireCurator: AugmentedError; + /** + * Too many approvals are already queued. + **/ + TooManyQueued: AugmentedError; + /** + * The bounty status is unexpected. + **/ + UnexpectedStatus: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + bridgeTransfer: { + InvalidCommand: AugmentedError; + InvalidResourceId: AugmentedError; + OverFlow: AugmentedError; + ReachMaximumSupply: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + chainBridge: { + CannotPayAsFee: AugmentedError; + /** + * Chain has already been enabled + **/ + ChainAlreadyWhitelisted: AugmentedError; + /** + * Interactions with this chain is not permitted + **/ + ChainNotWhitelisted: AugmentedError; + /** + * No fee with the ID was found + **/ + FeeDoesNotExist: AugmentedError; + /** + * Too expensive fee for withdrawn asset + **/ + FeeTooExpensive: AugmentedError; + /** + * Balance too low to withdraw + **/ + InsufficientBalance: AugmentedError; + /** + * Provided chain Id is not valid + **/ + InvalidChainId: AugmentedError; + /** + * Relayer threshold cannot be 0 + **/ + InvalidThreshold: AugmentedError; + /** + * Protected operation, must be performed by relayer + **/ + MustBeRelayer: AugmentedError; + NonceOverFlow: AugmentedError; + /** + * Proposal has either failed or succeeded + **/ + ProposalAlreadyComplete: AugmentedError; + /** + * A proposal with these parameters has already been submitted + **/ + ProposalAlreadyExists: AugmentedError; + /** + * No proposal with the ID was found + **/ + ProposalDoesNotExist: AugmentedError; + /** + * Lifetime of proposal has been exceeded + **/ + ProposalExpired: AugmentedError; + /** + * Cannot complete proposal, needs more votes + **/ + ProposalNotComplete: AugmentedError; + /** + * Relayer already in set + **/ + RelayerAlreadyExists: AugmentedError; + /** + * Relayer has already submitted some vote for this proposal + **/ + RelayerAlreadyVoted: AugmentedError; + /** + * Provided accountId is not a relayer + **/ + RelayerInvalid: AugmentedError; + /** + * Resource ID provided isn't mapped to anything + **/ + ResourceDoesNotExist: AugmentedError; + /** + * Relayer threshold not set + **/ + ThresholdNotSet: 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; + }; + councilMembership: { + /** + * Already a member. + **/ + AlreadyMember: AugmentedError; + /** + * Not a member. + **/ + NotMember: AugmentedError; + /** + * Too many members. + **/ + TooManyMembers: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + cumulusXcm: { + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + democracy: { + /** + * Cannot cancel the same proposal twice + **/ + AlreadyCanceled: AugmentedError; + /** + * The account is already delegating. + **/ + AlreadyDelegating: AugmentedError; + /** + * Identity may not veto a proposal twice + **/ + AlreadyVetoed: AugmentedError; + /** + * Proposal already made + **/ + DuplicateProposal: AugmentedError; + /** + * The instant referendum origin is currently disallowed. + **/ + InstantNotAllowed: AugmentedError; + /** + * Too high a balance was provided that the account cannot afford. + **/ + InsufficientFunds: AugmentedError; + /** + * Invalid hash + **/ + InvalidHash: AugmentedError; + /** + * Maximum number of votes reached. + **/ + MaxVotesReached: AugmentedError; + /** + * No proposals waiting + **/ + NoneWaiting: AugmentedError; + /** + * Delegation to oneself makes no sense. + **/ + Nonsense: AugmentedError; + /** + * The actor has no permission to conduct the action. + **/ + NoPermission: AugmentedError; + /** + * No external proposal + **/ + NoProposal: AugmentedError; + /** + * The account is not currently delegating. + **/ + NotDelegating: AugmentedError; + /** + * Next external proposal not simple majority + **/ + NotSimpleMajority: AugmentedError; + /** + * The given account did not vote on the referendum. + **/ + NotVoter: AugmentedError; + /** + * The preimage does not exist. + **/ + PreimageNotExist: AugmentedError; + /** + * Proposal still blacklisted + **/ + ProposalBlacklisted: AugmentedError; + /** + * Proposal does not exist + **/ + ProposalMissing: AugmentedError; + /** + * Vote given for invalid referendum + **/ + ReferendumInvalid: AugmentedError; + /** + * Maximum number of items reached. + **/ + TooMany: AugmentedError; + /** + * Value too low + **/ + ValueLow: AugmentedError; + /** + * The account currently has votes attached to it and the operation cannot succeed until + * these are removed, either through `unvote` or `reap_vote`. + **/ + VotesExist: AugmentedError; + /** + * Voting period too low + **/ + VotingPeriodLow: AugmentedError; + /** + * Invalid upper bound. + **/ + WrongUpperBound: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + dmpQueue: { + /** + * The amount of weight given is possibly not enough for executing the message. + **/ + OverLimit: AugmentedError; + /** + * The message index given is unknown. + **/ + Unknown: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + drop3: { + /** + * Error when the remaning of a reward pool is not enough + **/ + InsufficientRemain: AugmentedError; + /** + * Error when the sender doesn't have enough reserved balance + **/ + InsufficientReservedBalance: AugmentedError; + /** + * Error when start_at < end_at when proposing reward pool + **/ + InvalidProposedBlock: AugmentedError; + /** + * Error when `total` amount is 0 when proposing reward pool + **/ + InvalidTotalBalance: AugmentedError; + /** + * Error when a reward pool can't be found + **/ + NoSuchRewardPool: AugmentedError; + /** + * Error when no vacant PoolId can be acquired + **/ + NoVacantPoolId: AugmentedError; + /** + * Error when the caller account is not the admin + **/ + RequireAdmin: AugmentedError; + /** + * Error when the caller account is not the reward pool owner or admin + **/ + RequireAdminOrRewardPoolOwner: AugmentedError; + /** + * Error when the caller account is not the reward pool owner + **/ + RequireRewardPoolOwner: AugmentedError; + /** + * Error when the reward pool is first approved then rejected + **/ + RewardPoolAlreadyApproved: AugmentedError; + /** + * Error when the reward pool is runing before `start_at` + **/ + RewardPoolRanTooEarly: AugmentedError; + /** + * Error when the reward pool is runing after `end_at` + **/ + RewardPoolRanTooLate: AugmentedError; + /** + * Error when the reward pool is stopped + **/ + RewardPoolStopped: AugmentedError; + /** + * Error when the reward pool is unapproved + **/ + RewardPoolUnapproved: AugmentedError; + /** + * Error of unexpected unmoved amount when calling repatriate_reserved + **/ + UnexpectedUnMovedAmount: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + extrinsicFilter: { + /** + * Error when a given extrinsic cannot be blocked (e.g. this pallet) + **/ + CannotBlock: AugmentedError; + /** + * Error during conversion bytes to utf8 string + **/ + CannotConvertToString: AugmentedError; + /** + * Error when trying to block extrinsic more than once + **/ + ExtrinsicAlreadyBlocked: AugmentedError; + /** + * Error when trying to unblock a non-existent extrinsic + **/ + ExtrinsicNotBlocked: 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; + }; + identityManagementMock: { + /** + * the challenge code doesn't exist + **/ + ChallengeCodeNotExist: AugmentedError; + /** + * creating the prime identity manually is disallowed + **/ + CreatePrimeIdentityNotAllowed: AugmentedError; + /** + * the creation request block is zero + **/ + CreationRequestBlockZero: AugmentedError; + /** + * a delegatee doesn't exist + **/ + DelegateeNotExist: AugmentedError; + /** + * identity already verified when creating an identity + **/ + IdentityAlreadyVerified: AugmentedError; + /** + * identity not exist when removing an identity + **/ + IdentityNotExist: AugmentedError; + /** + * fail to recover evm address + **/ + RecoverEvmAddressFailed: AugmentedError; + /** + * recover substrate pubkey failed using ecdsa + **/ + RecoverSubstratePubkeyFailed: AugmentedError; + /** + * Error when decrypting using TEE'shielding key + **/ + ShieldingKeyDecryptionFailed: AugmentedError; + /** + * no shielding key for a given AccountId + **/ + ShieldingKeyNotExist: AugmentedError; + /** + * a `create_identity` request from unauthorised user + **/ + UnauthorisedUser: AugmentedError; + /** + * the message in validation data is unexpected + **/ + UnexpectedMessage: AugmentedError; + /** + * a verification reqeust comes too early + **/ + VerificationRequestTooEarly: AugmentedError; + /** + * a verification reqeust comes too late + **/ + VerificationRequestTooLate: AugmentedError; + /** + * verify evm signature failed + **/ + VerifyEvmSignatureFailed: AugmentedError; + /** + * verify substrate signature failed + **/ + VerifySubstrateSignatureFailed: AugmentedError; + /** + * unexpected decoded type + **/ + WrongDecodedType: AugmentedError; + /** + * wrong identity type + **/ + WrongIdentityType: AugmentedError; + /** + * wrong signature type + **/ + WrongSignatureType: 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; + }; + parachainIdentity: { + /** + * Account ID is already named. + **/ + AlreadyClaimed: AugmentedError; + /** + * Empty index. + **/ + EmptyIndex: AugmentedError; + /** + * Fee is changed. + **/ + FeeChanged: AugmentedError; + /** + * The index is invalid. + **/ + InvalidIndex: AugmentedError; + /** + * Invalid judgement. + **/ + InvalidJudgement: AugmentedError; + /** + * The target is invalid. + **/ + InvalidTarget: AugmentedError; + /** + * The provided judgement was for a different identity. + **/ + JudgementForDifferentIdentity: AugmentedError; + /** + * Judgement given. + **/ + JudgementGiven: AugmentedError; + /** + * Error that occurs when there is an issue paying for judgement. + **/ + JudgementPaymentFailed: AugmentedError; + /** + * No identity found. + **/ + NoIdentity: AugmentedError; + /** + * Account isn't found. + **/ + NotFound: AugmentedError; + /** + * Account isn't named. + **/ + NotNamed: AugmentedError; + /** + * Sub-account isn't owned by sender. + **/ + NotOwned: AugmentedError; + /** + * Sender is not a sub-account. + **/ + NotSub: AugmentedError; + /** + * Sticky judgement. + **/ + StickyJudgement: AugmentedError; + /** + * Too many additional fields. + **/ + TooManyFields: AugmentedError; + /** + * Maximum amount of registrars reached. Cannot add any more. + **/ + TooManyRegistrars: AugmentedError; + /** + * Too many subs-accounts. + **/ + TooManySubAccounts: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainStaking: { + AlreadyActive: AugmentedError; + AlreadyDelegatedCandidate: AugmentedError; + AlreadyOffline: AugmentedError; + CandidateAlreadyLeaving: AugmentedError; + CandidateBondBelowMin: AugmentedError; + CandidateCannotLeaveYet: AugmentedError; + CandidateDNE: AugmentedError; + CandidateExists: AugmentedError; + CandidateNotLeaving: AugmentedError; + CandidateUnauthorized: AugmentedError; + CannotDelegateIfLeaving: AugmentedError; + CannotDelegateLessThanOrEqualToLowestBottomWhenFull: AugmentedError; + CannotGoOnlineIfLeaving: AugmentedError; + CannotSetBelowMin: AugmentedError; + DelegationBelowMin: AugmentedError; + DelegationDNE: AugmentedError; + DelegatorAlreadyLeaving: AugmentedError; + DelegatorBondBelowMin: AugmentedError; + DelegatorCannotLeaveYet: AugmentedError; + DelegatorDNE: AugmentedError; + DelegatorDNEInDelegatorSet: AugmentedError; + DelegatorDNEinTopNorBottom: AugmentedError; + DelegatorExists: AugmentedError; + DelegatorNotLeaving: AugmentedError; + ExceedMaxDelegationsPerDelegator: AugmentedError; + InsufficientBalance: AugmentedError; + InvalidSchedule: AugmentedError; + NoWritingSameValue: AugmentedError; + PendingCandidateRequestAlreadyExists: AugmentedError; + PendingCandidateRequestNotDueYet: AugmentedError; + PendingCandidateRequestsDNE: AugmentedError; + PendingDelegationRequestAlreadyExists: AugmentedError; + PendingDelegationRequestDNE: AugmentedError; + PendingDelegationRequestNotDueYet: AugmentedError; + PendingDelegationRevoke: AugmentedError; + RoundLengthMustBeGreaterThanTotalSelectedCollators: AugmentedError; + TooLowCandidateCountWeightHintCancelLeaveCandidates: AugmentedError; + TooLowCandidateDelegationCountToLeaveCandidates: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + parachainSystem: { + /** + * The inherent which supplies the host configuration did not run this block + **/ + HostConfigurationNotAvailable: AugmentedError; + /** + * No code upgrade has been authorized. + **/ + NothingAuthorized: AugmentedError; + /** + * No validation function upgrade is currently scheduled. + **/ + NotScheduled: AugmentedError; + /** + * Attempt to upgrade validation function while existing upgrade pending + **/ + OverlappingUpgrades: AugmentedError; + /** + * Polkadot currently prohibits this parachain from upgrading its validation function + **/ + ProhibitedByPolkadot: AugmentedError; + /** + * The supplied validation function has compiled into a blob larger than Polkadot is + * willing to run + **/ + TooBig: AugmentedError; + /** + * The given code upgrade has not been authorized. + **/ + Unauthorized: AugmentedError; + /** + * The inherent which supplies the validation data did not run this block + **/ + ValidationDataNotAvailable: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + polkadotXcm: { + /** + * The given account is not an identifiable sovereign account for any location. + **/ + AccountNotSovereign: AugmentedError; + /** + * The location is invalid since it already has a subscription from us. + **/ + AlreadySubscribed: AugmentedError; + /** + * The given location could not be used (e.g. because it cannot be expressed in the + * desired version of XCM). + **/ + BadLocation: AugmentedError; + /** + * The version of the `Versioned` value used is not able to be interpreted. + **/ + BadVersion: AugmentedError; + /** + * Could not re-anchor the assets to declare the fees for the destination chain. + **/ + CannotReanchor: AugmentedError; + /** + * The destination `MultiLocation` provided cannot be inverted. + **/ + DestinationNotInvertible: AugmentedError; + /** + * The assets to be sent are empty. + **/ + Empty: AugmentedError; + /** + * The operation required fees to be paid which the initiator could not meet. + **/ + FeesNotMet: AugmentedError; + /** + * The message execution fails the filter. + **/ + Filtered: AugmentedError; + /** + * The unlock operation cannot succeed because there are still users of the lock. + **/ + InUse: AugmentedError; + /** + * Invalid asset for the operation. + **/ + InvalidAsset: AugmentedError; + /** + * Origin is invalid for sending. + **/ + InvalidOrigin: AugmentedError; + /** + * A remote lock with the corresponding data could not be found. + **/ + LockNotFound: AugmentedError; + /** + * The owner does not own (all) of the asset that they wish to do the operation on. + **/ + LowBalance: AugmentedError; + /** + * The referenced subscription could not be found. + **/ + NoSubscription: AugmentedError; + /** + * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps + * a lack of space for buffering the message. + **/ + SendFailure: AugmentedError; + /** + * Too many assets have been attempted for transfer. + **/ + TooManyAssets: AugmentedError; + /** + * The asset owner has too many locks on the asset. + **/ + TooManyLocks: AugmentedError; + /** + * The desired destination was unreachable, generally because there is a no way of routing + * to it. + **/ + Unreachable: AugmentedError; + /** + * The message's weight could not be determined. + **/ + UnweighableMessage: 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; + }; + session: { + /** + * Registered duplicate key. + **/ + DuplicatedKey: AugmentedError; + /** + * Invalid ownership proof. + **/ + InvalidProof: AugmentedError; + /** + * Key setting account is not live, so it's impossible to associate keys. + **/ + NoAccount: AugmentedError; + /** + * No associated validator ID for account. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * No keys are associated with this account. + **/ + NoKeys: 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; + }; + technicalCommittee: { + /** + * 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; + }; + technicalCommitteeMembership: { + /** + * Already a member. + **/ + AlreadyMember: AugmentedError; + /** + * Not a member. + **/ + NotMember: AugmentedError; + /** + * Too many members. + **/ + TooManyMembers: 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; + }; + tips: { + /** + * The tip was already found/started. + **/ + AlreadyKnown: AugmentedError; + /** + * The account attempting to retract the tip is not the finder of the tip. + **/ + NotFinder: AugmentedError; + /** + * The tip cannot be claimed/closed because it's still in the countdown period. + **/ + Premature: AugmentedError; + /** + * The reason given is just too big. + **/ + ReasonTooBig: AugmentedError; + /** + * The tip cannot be claimed/closed because there are not enough tippers yet. + **/ + StillOpen: AugmentedError; + /** + * The tip hash is unknown. + **/ + UnknownTip: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + tokens: { + /** + * Cannot convert Amount into Balance type + **/ + AmountIntoBalanceFailed: AugmentedError; + /** + * The balance is too low + **/ + BalanceTooLow: AugmentedError; + /** + * Beneficiary account must pre-exist + **/ + DeadAccount: AugmentedError; + /** + * Value too low to create account due to existential deposit + **/ + ExistentialDeposit: AugmentedError; + /** + * Transfer/payment would kill account + **/ + KeepAlive: AugmentedError; + /** + * Failed because liquidity restrictions due to locking + **/ + LiquidityRestrictions: AugmentedError; + /** + * Failed because the maximum locks was exceeded + **/ + MaxLocksExceeded: AugmentedError; + TooManyReserves: 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; + }; + xcmpQueue: { + /** + * Bad overweight index. + **/ + BadOverweightIndex: AugmentedError; + /** + * Bad XCM data. + **/ + BadXcm: AugmentedError; + /** + * Bad XCM origin. + **/ + BadXcmOrigin: AugmentedError; + /** + * Failed to send XCM message. + **/ + FailedToSend: AugmentedError; + /** + * Provided weight is possibly not enough to execute the message. + **/ + WeightOverLimit: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + xTokens: { + /** + * Asset has no reserve location. + **/ + AssetHasNoReserve: AugmentedError; + /** + * The specified index does not exist in a MultiAssets struct. + **/ + AssetIndexNonExistent: AugmentedError; + /** + * The version of the `Versioned` value used is not able to be + * interpreted. + **/ + BadVersion: AugmentedError; + /** + * Could not re-anchor the assets to declare the fees for the + * destination chain. + **/ + CannotReanchor: AugmentedError; + /** + * The destination `MultiLocation` provided cannot be inverted. + **/ + DestinationNotInvertible: AugmentedError; + /** + * We tried sending distinct asset and fee but they have different + * reserve chains. + **/ + DistinctReserveForAssetAndFee: AugmentedError; + /** + * Fee is not enough. + **/ + FeeNotEnough: AugmentedError; + /** + * Could not get ancestry of asset reserve location. + **/ + InvalidAncestry: AugmentedError; + /** + * The MultiAsset is invalid. + **/ + InvalidAsset: AugmentedError; + /** + * Invalid transfer destination. + **/ + InvalidDest: AugmentedError; + /** + * MinXcmFee not registered for certain reserve location + **/ + MinXcmFeeNotDefined: AugmentedError; + /** + * Not cross-chain transfer. + **/ + NotCrossChainTransfer: AugmentedError; + /** + * Currency is not cross-chain transferable. + **/ + NotCrossChainTransferableCurrency: AugmentedError; + /** + * Not supported MultiLocation + **/ + NotSupportedMultiLocation: AugmentedError; + /** + * The number of assets to be sent is over the maximum. + **/ + TooManyAssetsBeingSent: AugmentedError; + /** + * The message's weight could not be determined. + **/ + UnweighableMessage: AugmentedError; + /** + * XCM execution failed. + **/ + XcmExecutionFailed: AugmentedError; + /** + * The transfering asset amount is zero. + **/ + ZeroAmount: AugmentedError; + /** + * The fee is zero. + **/ + ZeroFee: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; + } // AugmentedErrors +} // declare module diff --git a/tee-worker/ts-tests/parachain-interfaces/augment-api-events.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-events.ts new file mode 100644 index 0000000000..86e5ada37d --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/augment-api-events.ts @@ -0,0 +1,2351 @@ +// 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, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; +import type { + CorePrimitivesAssertion, + CorePrimitivesErrorErrorDetail, + CorePrimitivesKeyAesOutput, + FrameSupportDispatchDispatchInfo, + FrameSupportTokensMiscBalanceStatus, + MockTeePrimitivesIdentity, + PalletAssetManagerAssetMetadata, + PalletDemocracyMetadataOwner, + PalletDemocracyVoteAccountVote, + PalletDemocracyVoteThreshold, + PalletExtrinsicFilterOperationalMode, + PalletIdentityManagementMockIdentityContext, + PalletMultisigTimepoint, + PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + PalletParachainStakingDelegatorAdded, + RococoParachainRuntimeProxyType, + RuntimeCommonXcmImplCurrencyId, + SpRuntimeDispatchError, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + XcmV3MultiAsset, + XcmV3MultiLocation, + XcmV3MultiassetMultiAssets, + XcmV3Response, + XcmV3TraitsError, + XcmV3TraitsOutcome, + XcmV3Xcm, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, +} from '@polkadot/types/lookup'; + +export type __AugmentedEvent = AugmentedEvent; + +declare module '@polkadot/api-base/types/events' { + interface AugmentedEvents { + assetManager: { + /** + * The foreign asset updated. + **/ + ForeignAssetMetadataUpdated: AugmentedEvent< + ApiType, + [assetId: u128, metadata: PalletAssetManagerAssetMetadata], + { assetId: u128; metadata: PalletAssetManagerAssetMetadata } + >; + /** + * AssetTracker manipulated + **/ + ForeignAssetTrackerUpdated: AugmentedEvent< + ApiType, + [oldAssetTracker: u128, newAssetTracker: u128], + { oldAssetTracker: u128; newAssetTracker: u128 } + >; + /** + * New asset with the asset manager is registered + **/ + ForeignAssetTypeRegistered: AugmentedEvent< + ApiType, + [assetId: u128, assetType: RuntimeCommonXcmImplCurrencyId], + { assetId: u128; assetType: RuntimeCommonXcmImplCurrencyId } + >; + /** + * New Event gives the info about involved asset_id, removed asset_type, and the new + * default asset_id and asset_type mapping after removal + **/ + ForeignAssetTypeRemoved: AugmentedEvent< + ApiType, + [ + assetId: u128, + removedAssetType: RuntimeCommonXcmImplCurrencyId, + defaultAssetType: RuntimeCommonXcmImplCurrencyId + ], + { + assetId: u128; + removedAssetType: RuntimeCommonXcmImplCurrencyId; + defaultAssetType: RuntimeCommonXcmImplCurrencyId; + } + >; + /** + * Changed the amount of units we + * are charging per execution second for a given asset + **/ + UnitsPerSecondChanged: AugmentedEvent< + ApiType, + [assetId: u128, unitsPerSecond: u128], + { assetId: u128; unitsPerSecond: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + 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; + }; + bounties: { + /** + * A bounty is awarded to a beneficiary. + **/ + BountyAwarded: AugmentedEvent< + ApiType, + [index: u32, beneficiary: AccountId32], + { index: u32; beneficiary: AccountId32 } + >; + /** + * A bounty proposal is funded and became active. + **/ + BountyBecameActive: AugmentedEvent; + /** + * A bounty is cancelled. + **/ + BountyCanceled: AugmentedEvent; + /** + * A bounty is claimed by beneficiary. + **/ + BountyClaimed: AugmentedEvent< + ApiType, + [index: u32, payout: u128, beneficiary: AccountId32], + { index: u32; payout: u128; beneficiary: AccountId32 } + >; + /** + * A bounty expiry is extended. + **/ + BountyExtended: AugmentedEvent; + /** + * New bounty proposal. + **/ + BountyProposed: AugmentedEvent; + /** + * A bounty proposal was rejected; funds were slashed. + **/ + BountyRejected: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + bridgeTransfer: { + /** + * MaximumIssuance was changed + **/ + MaximumIssuanceChanged: AugmentedEvent; + /** + * A certain amount of native tokens was minted + **/ + NativeTokenMinted: AugmentedEvent< + ApiType, + [to: AccountId32, amount: u128], + { to: AccountId32; amount: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + chainBridge: { + /** + * Chain now available for transfers (chain_id) + **/ + ChainWhitelisted: AugmentedEvent; + /** + * Update bridge transfer fee + **/ + FeeUpdated: AugmentedEvent; + /** + * FungibleTransfer is for relaying fungibles (dest_id, nonce, resource_id, amount, + * recipient) + **/ + FungibleTransfer: AugmentedEvent; + /** + * GenericTransfer is for a generic data payload (dest_id, nonce, resource_id, metadata) + **/ + GenericTransfer: AugmentedEvent; + /** + * NonFungibleTransfer is for relaying NFTs (dest_id, nonce, resource_id, token_id, + * recipient, metadata) + **/ + NonFungibleTransfer: AugmentedEvent; + /** + * Voting successful for a proposal + **/ + ProposalApproved: AugmentedEvent; + /** + * Execution of call failed + **/ + ProposalFailed: AugmentedEvent; + /** + * Voting rejected a proposal + **/ + ProposalRejected: AugmentedEvent; + /** + * Execution of call succeeded + **/ + ProposalSucceeded: AugmentedEvent; + /** + * Relayer added to set + **/ + RelayerAdded: AugmentedEvent; + /** + * Relayer removed from set + **/ + RelayerRemoved: AugmentedEvent; + /** + * Vote threshold has changed (new_threshold) + **/ + RelayerThresholdChanged: AugmentedEvent; + /** + * Vot submitted against proposal + **/ + VoteAgainst: AugmentedEvent; + /** + * Vote submitted in favour of proposal + **/ + VoteFor: 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; + }; + councilMembership: { + /** + * Phantom member, never used. + **/ + Dummy: AugmentedEvent; + /** + * One of the members' keys changed. + **/ + KeyChanged: AugmentedEvent; + /** + * The given member was added; see the transaction for who. + **/ + MemberAdded: AugmentedEvent; + /** + * The given member was removed; see the transaction for who. + **/ + MemberRemoved: AugmentedEvent; + /** + * The membership was reset; see the transaction for who the new set is. + **/ + MembersReset: AugmentedEvent; + /** + * Two members were swapped; see the transaction for who. + **/ + MembersSwapped: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + cumulusXcm: { + /** + * Downward message executed with the given outcome. + * \[ id, outcome \] + **/ + ExecutedDownward: AugmentedEvent; + /** + * Downward message is invalid XCM. + * \[ id \] + **/ + InvalidFormat: AugmentedEvent; + /** + * Downward message is unsupported version of XCM. + * \[ id \] + **/ + UnsupportedVersion: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + democracy: { + /** + * A proposal_hash has been blacklisted permanently. + **/ + Blacklisted: AugmentedEvent; + /** + * A referendum has been cancelled. + **/ + Cancelled: AugmentedEvent; + /** + * An account has delegated their vote to another account. + **/ + Delegated: AugmentedEvent< + ApiType, + [who: AccountId32, target: AccountId32], + { who: AccountId32; target: AccountId32 } + >; + /** + * An external proposal has been tabled. + **/ + ExternalTabled: AugmentedEvent; + /** + * Metadata for a proposal or a referendum has been cleared. + **/ + MetadataCleared: AugmentedEvent< + ApiType, + [owner: PalletDemocracyMetadataOwner, hash_: H256], + { owner: PalletDemocracyMetadataOwner; hash_: H256 } + >; + /** + * Metadata for a proposal or a referendum has been set. + **/ + MetadataSet: AugmentedEvent< + ApiType, + [owner: PalletDemocracyMetadataOwner, hash_: H256], + { owner: PalletDemocracyMetadataOwner; hash_: H256 } + >; + /** + * Metadata has been transferred to new owner. + **/ + MetadataTransferred: AugmentedEvent< + ApiType, + [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], + { prevOwner: PalletDemocracyMetadataOwner; owner: PalletDemocracyMetadataOwner; hash_: H256 } + >; + /** + * A proposal has been rejected by referendum. + **/ + NotPassed: AugmentedEvent; + /** + * A proposal has been approved by referendum. + **/ + Passed: AugmentedEvent; + /** + * A proposal got canceled. + **/ + ProposalCanceled: AugmentedEvent; + /** + * A motion has been proposed by a public account. + **/ + Proposed: AugmentedEvent< + ApiType, + [proposalIndex: u32, deposit: u128], + { proposalIndex: u32; deposit: u128 } + >; + /** + * An account has secconded a proposal + **/ + Seconded: AugmentedEvent< + ApiType, + [seconder: AccountId32, propIndex: u32], + { seconder: AccountId32; propIndex: u32 } + >; + /** + * A referendum has begun. + **/ + Started: AugmentedEvent< + ApiType, + [refIndex: u32, threshold: PalletDemocracyVoteThreshold], + { refIndex: u32; threshold: PalletDemocracyVoteThreshold } + >; + /** + * A public proposal has been tabled for referendum vote. + **/ + Tabled: AugmentedEvent; + /** + * An account has cancelled a previous delegation operation. + **/ + Undelegated: AugmentedEvent; + /** + * An external proposal has been vetoed. + **/ + Vetoed: AugmentedEvent< + ApiType, + [who: AccountId32, proposalHash: H256, until: u32], + { who: AccountId32; proposalHash: H256; until: u32 } + >; + /** + * An account has voted in a referendum + **/ + Voted: AugmentedEvent< + ApiType, + [voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote], + { voter: AccountId32; refIndex: u32; vote: PalletDemocracyVoteAccountVote } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + dmpQueue: { + /** + * Downward message executed with the given outcome. + **/ + ExecutedDownward: AugmentedEvent< + ApiType, + [messageId: U8aFixed, outcome: XcmV3TraitsOutcome], + { messageId: U8aFixed; outcome: XcmV3TraitsOutcome } + >; + /** + * Downward message is invalid XCM. + **/ + InvalidFormat: AugmentedEvent; + /** + * The maximum number of downward messages was. + **/ + MaxMessagesExhausted: AugmentedEvent; + /** + * Downward message is overweight and was placed in the overweight queue. + **/ + OverweightEnqueued: AugmentedEvent< + ApiType, + [messageId: U8aFixed, overweightIndex: u64, requiredWeight: SpWeightsWeightV2Weight], + { messageId: U8aFixed; overweightIndex: u64; requiredWeight: SpWeightsWeightV2Weight } + >; + /** + * Downward message from the overweight queue was executed. + **/ + OverweightServiced: AugmentedEvent< + ApiType, + [overweightIndex: u64, weightUsed: SpWeightsWeightV2Weight], + { overweightIndex: u64; weightUsed: SpWeightsWeightV2Weight } + >; + /** + * Downward message is unsupported version of XCM. + **/ + UnsupportedVersion: AugmentedEvent; + /** + * The weight limit for handling downward messages was reached. + **/ + WeightExhausted: AugmentedEvent< + ApiType, + [ + messageId: U8aFixed, + remainingWeight: SpWeightsWeightV2Weight, + requiredWeight: SpWeightsWeightV2Weight + ], + { + messageId: U8aFixed; + remainingWeight: SpWeightsWeightV2Weight; + requiredWeight: SpWeightsWeightV2Weight; + } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + drop3: { + /** + * Admin acccount was changed, the \[ old admin \] is provided + **/ + AdminChanged: AugmentedEvent], { oldAdmin: Option }>; + /** + * An \[ amount \] balance of \[ who \] was slashed + **/ + BalanceSlashed: AugmentedEvent< + ApiType, + [who: AccountId32, amount: u128], + { who: AccountId32; amount: u128 } + >; + /** + * A reward pool with \[ id \] was approved by admin + **/ + RewardPoolApproved: AugmentedEvent; + /** + * A reward pool with \[ id, name, owner \] was proposed + **/ + RewardPoolProposed: AugmentedEvent< + ApiType, + [id: u64, name: Bytes, owner: AccountId32], + { id: u64; name: Bytes; owner: AccountId32 } + >; + /** + * A reward pool with \[ id \] was rejected by admin + **/ + RewardPoolRejected: AugmentedEvent; + /** + * A reward pool with \[ id, name, owner \] was removed, either by admin or owner + **/ + RewardPoolRemoved: AugmentedEvent< + ApiType, + [id: u64, name: Bytes, owner: AccountId32], + { id: u64; name: Bytes; owner: AccountId32 } + >; + /** + * A reward pool with \[ id \] was started, either by admin or owner + **/ + RewardPoolStarted: AugmentedEvent; + /** + * A reward pool with \[ id \] was stopped, either by admin or owner + **/ + RewardPoolStopped: AugmentedEvent; + /** + * An \[ amount \] of reward was sent to \[ to \] + **/ + RewardSent: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + extrinsicFilter: { + /** + * some extrinsics are blocked + **/ + ExtrinsicsBlocked: AugmentedEvent< + ApiType, + [palletNameBytes: Bytes, functionNameBytes: Option], + { palletNameBytes: Bytes; functionNameBytes: Option } + >; + /** + * some extrinsics are unblocked + **/ + ExtrinsicsUnblocked: AugmentedEvent< + ApiType, + [palletNameBytes: Bytes, functionNameBytes: Option], + { palletNameBytes: Bytes; functionNameBytes: Option } + >; + /** + * a new mode was just sent + **/ + ModeSet: AugmentedEvent< + ApiType, + [newMode: PalletExtrinsicFilterOperationalMode], + { newMode: PalletExtrinsicFilterOperationalMode } + >; + /** + * 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; + }; + identityManagementMock: { + CreateIdentityRequested: AugmentedEvent; + DelegateeAdded: AugmentedEvent; + DelegateeRemoved: AugmentedEvent; + IdentityCreated: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: CorePrimitivesKeyAesOutput, + code: CorePrimitivesKeyAesOutput, + idGraph: CorePrimitivesKeyAesOutput + ], + { + account: AccountId32; + identity: CorePrimitivesKeyAesOutput; + code: CorePrimitivesKeyAesOutput; + idGraph: CorePrimitivesKeyAesOutput; + } + >; + IdentityCreatedPlain: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: MockTeePrimitivesIdentity, + code: U8aFixed, + idGraph: Vec> + ], + { + account: AccountId32; + identity: MockTeePrimitivesIdentity; + code: U8aFixed; + idGraph: Vec>; + } + >; + IdentityRemoved: AugmentedEvent< + ApiType, + [account: AccountId32, identity: CorePrimitivesKeyAesOutput, idGraph: CorePrimitivesKeyAesOutput], + { account: AccountId32; identity: CorePrimitivesKeyAesOutput; idGraph: CorePrimitivesKeyAesOutput } + >; + IdentityRemovedPlain: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: MockTeePrimitivesIdentity, + idGraph: Vec> + ], + { + account: AccountId32; + identity: MockTeePrimitivesIdentity; + idGraph: Vec>; + } + >; + IdentityVerified: AugmentedEvent< + ApiType, + [account: AccountId32, identity: CorePrimitivesKeyAesOutput, idGraph: CorePrimitivesKeyAesOutput], + { account: AccountId32; identity: CorePrimitivesKeyAesOutput; idGraph: CorePrimitivesKeyAesOutput } + >; + IdentityVerifiedPlain: AugmentedEvent< + ApiType, + [ + account: AccountId32, + identity: MockTeePrimitivesIdentity, + idGraph: Vec> + ], + { + account: AccountId32; + identity: MockTeePrimitivesIdentity; + idGraph: Vec>; + } + >; + RemoveIdentityRequested: AugmentedEvent; + SetUserShieldingKeyRequested: AugmentedEvent; + SomeError: AugmentedEvent; + UserShieldingKeySet: AugmentedEvent; + UserShieldingKeySetPlain: AugmentedEvent; + 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; + }; + parachainIdentity: { + /** + * A name was cleared, and the given balance returned. + **/ + IdentityCleared: AugmentedEvent< + ApiType, + [who: AccountId32, deposit: u128], + { who: AccountId32; deposit: u128 } + >; + /** + * A name was removed and the given balance slashed. + **/ + IdentityKilled: AugmentedEvent< + ApiType, + [who: AccountId32, deposit: u128], + { who: AccountId32; deposit: u128 } + >; + /** + * A name was set or reset (which will remove all judgements). + **/ + IdentitySet: AugmentedEvent; + /** + * A judgement was given by a registrar. + **/ + JudgementGiven: AugmentedEvent< + ApiType, + [target: AccountId32, registrarIndex: u32], + { target: AccountId32; registrarIndex: u32 } + >; + /** + * A judgement was asked from a registrar. + **/ + JudgementRequested: AugmentedEvent< + ApiType, + [who: AccountId32, registrarIndex: u32], + { who: AccountId32; registrarIndex: u32 } + >; + /** + * A judgement request was retracted. + **/ + JudgementUnrequested: AugmentedEvent< + ApiType, + [who: AccountId32, registrarIndex: u32], + { who: AccountId32; registrarIndex: u32 } + >; + /** + * A registrar was added. + **/ + RegistrarAdded: AugmentedEvent; + /** + * A sub-identity was added to an identity and the deposit paid. + **/ + SubIdentityAdded: AugmentedEvent< + ApiType, + [sub: AccountId32, main: AccountId32, deposit: u128], + { sub: AccountId32; main: AccountId32; deposit: u128 } + >; + /** + * A sub-identity was removed from an identity and the deposit freed. + **/ + SubIdentityRemoved: AugmentedEvent< + ApiType, + [sub: AccountId32, main: AccountId32, deposit: u128], + { sub: AccountId32; main: AccountId32; deposit: u128 } + >; + /** + * A sub-identity was cleared, and the given deposit repatriated from the + * main identity account to the sub-identity account. + **/ + SubIdentityRevoked: AugmentedEvent< + ApiType, + [sub: AccountId32, main: AccountId32, deposit: u128], + { sub: AccountId32; main: AccountId32; deposit: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainStaking: { + /** + * Auto-compounding reward percent was set for a delegation. + **/ + AutoCompoundSet: AugmentedEvent< + ApiType, + [candidate: AccountId32, delegator: AccountId32, value: Percent], + { candidate: AccountId32; delegator: AccountId32; value: Percent } + >; + /** + * Set blocks per round + **/ + BlocksPerRoundSet: AugmentedEvent< + ApiType, + [ + currentRound: u32, + firstBlock: u32, + old: u32, + new_: u32, + newPerRoundInflationMin: Perbill, + newPerRoundInflationIdeal: Perbill, + newPerRoundInflationMax: Perbill + ], + { + currentRound: u32; + firstBlock: u32; + old: u32; + new_: u32; + newPerRoundInflationMin: Perbill; + newPerRoundInflationIdeal: Perbill; + newPerRoundInflationMax: Perbill; + } + >; + /** + * Cancelled request to decrease candidate's bond. + **/ + CancelledCandidateBondLess: AugmentedEvent< + ApiType, + [candidate: AccountId32, amount: u128, executeRound: u32], + { candidate: AccountId32; amount: u128; executeRound: u32 } + >; + /** + * Cancelled request to leave the set of candidates. + **/ + CancelledCandidateExit: AugmentedEvent; + /** + * Cancelled request to change an existing delegation. + **/ + CancelledDelegationRequest: AugmentedEvent< + ApiType, + [ + delegator: AccountId32, + cancelledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + collator: AccountId32 + ], + { + delegator: AccountId32; + cancelledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest; + collator: AccountId32; + } + >; + /** + * Candidate rejoins the set of collator candidates. + **/ + CandidateBackOnline: AugmentedEvent; + /** + * Candidate has decreased a self bond. + **/ + CandidateBondedLess: AugmentedEvent< + ApiType, + [candidate: AccountId32, amount: u128, newBond: u128], + { candidate: AccountId32; amount: u128; newBond: u128 } + >; + /** + * Candidate has increased a self bond. + **/ + CandidateBondedMore: AugmentedEvent< + ApiType, + [candidate: AccountId32, amount: u128, newTotalBond: u128], + { candidate: AccountId32; amount: u128; newTotalBond: u128 } + >; + /** + * Candidate requested to decrease a self bond. + **/ + CandidateBondLessRequested: AugmentedEvent< + ApiType, + [candidate: AccountId32, amountToDecrease: u128, executeRound: u32], + { candidate: AccountId32; amountToDecrease: u128; executeRound: u32 } + >; + /** + * Candidate has left the set of candidates. + **/ + CandidateLeft: AugmentedEvent< + ApiType, + [exCandidate: AccountId32, unlockedAmount: u128, newTotalAmtLocked: u128], + { exCandidate: AccountId32; unlockedAmount: u128; newTotalAmtLocked: u128 } + >; + /** + * Candidate has requested to leave the set of candidates. + **/ + CandidateScheduledExit: AugmentedEvent< + ApiType, + [exitAllowedRound: u32, candidate: AccountId32, scheduledExit: u32], + { exitAllowedRound: u32; candidate: AccountId32; scheduledExit: u32 } + >; + /** + * Candidate temporarily leave the set of collator candidates without unbonding. + **/ + CandidateWentOffline: AugmentedEvent; + CandidateWhiteListAdded: AugmentedEvent; + CandidateWhiteListRemoved: AugmentedEvent; + /** + * Candidate selected for collators. Total Exposed Amount includes all delegations. + **/ + CollatorChosen: AugmentedEvent< + ApiType, + [round: u32, collatorAccount: AccountId32, totalExposedAmount: u128], + { round: u32; collatorAccount: AccountId32; totalExposedAmount: u128 } + >; + /** + * Set collator commission to this value. + **/ + CollatorCommissionSet: AugmentedEvent< + ApiType, + [old: Perbill, new_: Perbill], + { old: Perbill; new_: Perbill } + >; + /** + * Compounded a portion of rewards towards the delegation. + **/ + Compounded: AugmentedEvent< + ApiType, + [candidate: AccountId32, delegator: AccountId32, amount: u128], + { candidate: AccountId32; delegator: AccountId32; amount: u128 } + >; + /** + * New delegation (increase of the existing one). + **/ + Delegation: AugmentedEvent< + ApiType, + [ + delegator: AccountId32, + lockedAmount: u128, + candidate: AccountId32, + delegatorPosition: PalletParachainStakingDelegatorAdded, + autoCompound: Percent + ], + { + delegator: AccountId32; + lockedAmount: u128; + candidate: AccountId32; + delegatorPosition: PalletParachainStakingDelegatorAdded; + autoCompound: Percent; + } + >; + DelegationDecreased: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, amount: u128, inTop: bool], + { delegator: AccountId32; candidate: AccountId32; amount: u128; inTop: bool } + >; + /** + * Delegator requested to decrease a bond for the collator candidate. + **/ + DelegationDecreaseScheduled: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, amountToDecrease: u128, executeRound: u32], + { delegator: AccountId32; candidate: AccountId32; amountToDecrease: u128; executeRound: u32 } + >; + DelegationIncreased: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, amount: u128, inTop: bool], + { delegator: AccountId32; candidate: AccountId32; amount: u128; inTop: bool } + >; + /** + * Delegation kicked. + **/ + DelegationKicked: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, unstakedAmount: u128], + { delegator: AccountId32; candidate: AccountId32; unstakedAmount: u128 } + >; + /** + * Delegator requested to revoke delegation. + **/ + DelegationRevocationScheduled: AugmentedEvent< + ApiType, + [round: u32, delegator: AccountId32, candidate: AccountId32, scheduledExit: u32], + { round: u32; delegator: AccountId32; candidate: AccountId32; scheduledExit: u32 } + >; + /** + * Delegation revoked. + **/ + DelegationRevoked: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, unstakedAmount: u128], + { delegator: AccountId32; candidate: AccountId32; unstakedAmount: u128 } + >; + /** + * Cancelled a pending request to exit the set of delegators. + **/ + DelegatorExitCancelled: AugmentedEvent; + /** + * Delegator requested to leave the set of delegators. + **/ + DelegatorExitScheduled: AugmentedEvent< + ApiType, + [round: u32, delegator: AccountId32, scheduledExit: u32], + { round: u32; delegator: AccountId32; scheduledExit: u32 } + >; + /** + * Delegator has left the set of delegators. + **/ + DelegatorLeft: AugmentedEvent< + ApiType, + [delegator: AccountId32, unstakedAmount: u128], + { delegator: AccountId32; unstakedAmount: u128 } + >; + /** + * Delegation from candidate state has been remove. + **/ + DelegatorLeftCandidate: AugmentedEvent< + ApiType, + [delegator: AccountId32, candidate: AccountId32, unstakedAmount: u128, totalCandidateStaked: u128], + { delegator: AccountId32; candidate: AccountId32; unstakedAmount: u128; totalCandidateStaked: u128 } + >; + /** + * Annual inflation input (first 3) was used to derive new per-round inflation (last 3) + **/ + InflationSet: AugmentedEvent< + ApiType, + [ + annualMin: Perbill, + annualIdeal: Perbill, + annualMax: Perbill, + roundMin: Perbill, + roundIdeal: Perbill, + roundMax: Perbill + ], + { + annualMin: Perbill; + annualIdeal: Perbill; + annualMax: Perbill; + roundMin: Perbill; + roundIdeal: Perbill; + roundMax: Perbill; + } + >; + /** + * Account joined the set of collator candidates. + **/ + JoinedCollatorCandidates: AugmentedEvent< + ApiType, + [account: AccountId32, amountLocked: u128, newTotalAmtLocked: u128], + { account: AccountId32; amountLocked: u128; newTotalAmtLocked: u128 } + >; + /** + * Started new round. + **/ + NewRound: AugmentedEvent< + ApiType, + [startingBlock: u32, round: u32, selectedCollatorsNumber: u32, totalBalance: u128], + { startingBlock: u32; round: u32; selectedCollatorsNumber: u32; totalBalance: u128 } + >; + /** + * Account (re)set for parachain bond treasury. + **/ + ParachainBondAccountSet: AugmentedEvent< + ApiType, + [old: AccountId32, new_: AccountId32], + { old: AccountId32; new_: AccountId32 } + >; + /** + * Percent of inflation reserved for parachain bond (re)set. + **/ + ParachainBondReservePercentSet: AugmentedEvent< + ApiType, + [old: Percent, new_: Percent], + { old: Percent; new_: Percent } + >; + /** + * Transferred to account which holds funds reserved for parachain bond. + **/ + ReservedForParachainBond: AugmentedEvent< + ApiType, + [account: AccountId32, value: u128], + { account: AccountId32; value: u128 } + >; + /** + * Paid the account (delegator or collator) the balance as liquid rewards. + **/ + Rewarded: AugmentedEvent< + ApiType, + [account: AccountId32, rewards: u128], + { account: AccountId32; rewards: u128 } + >; + /** + * Staking expectations set. + **/ + StakeExpectationsSet: AugmentedEvent< + ApiType, + [expectMin: u128, expectIdeal: u128, expectMax: u128], + { expectMin: u128; expectIdeal: u128; expectMax: u128 } + >; + /** + * Set total selected candidates to this value. + **/ + TotalSelectedSet: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + parachainSystem: { + /** + * Downward messages were processed using the given weight. + **/ + DownwardMessagesProcessed: AugmentedEvent< + ApiType, + [weightUsed: SpWeightsWeightV2Weight, dmqHead: H256], + { weightUsed: SpWeightsWeightV2Weight; dmqHead: H256 } + >; + /** + * Some downward messages have been received and will be processed. + **/ + DownwardMessagesReceived: AugmentedEvent; + /** + * An upgrade has been authorized. + **/ + UpgradeAuthorized: AugmentedEvent; + /** + * An upward message was sent to the relay chain. + **/ + UpwardMessageSent: AugmentedEvent< + ApiType, + [messageHash: Option], + { messageHash: Option } + >; + /** + * The validation function was applied as of the contained relay chain block number. + **/ + ValidationFunctionApplied: AugmentedEvent; + /** + * The relay-chain aborted the upgrade process. + **/ + ValidationFunctionDiscarded: AugmentedEvent; + /** + * The validation function has been scheduled to apply. + **/ + ValidationFunctionStored: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + polkadotXcm: { + /** + * Some assets have been claimed from an asset trap + * + * \[ hash, origin, assets \] + **/ + AssetsClaimed: AugmentedEvent; + /** + * Some assets have been placed in an asset trap. + * + * \[ hash, origin, assets \] + **/ + AssetsTrapped: AugmentedEvent; + /** + * Execution of an XCM message was attempted. + * + * \[ outcome \] + **/ + Attempted: AugmentedEvent; + /** + * Fees were paid from a location for an operation (often for using `SendXcm`). + * + * \[ paying location, fees \] + **/ + FeesPaid: AugmentedEvent; + /** + * Expected query response has been received but the querier location of the response does + * not match the expected. The query remains registered for a later, valid, response to + * be received and acted upon. + * + * \[ origin location, id, expected querier, maybe actual querier \] + **/ + InvalidQuerier: AugmentedEvent< + ApiType, + [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option] + >; + /** + * Expected query response has been received but the expected querier location placed in + * storage by this runtime previously cannot be decoded. The query remains registered. + * + * This is unexpected (since a location placed in storage in a previously executing + * runtime should be readable prior to query timeout) and dangerous since the possibly + * valid response will be dropped. Manual governance intervention is probably going to be + * needed. + * + * \[ origin location, id \] + **/ + InvalidQuerierVersion: AugmentedEvent; + /** + * Expected query response has been received but the origin location of the response does + * not match that expected. The query remains registered for a later, valid, response to + * be received and acted upon. + * + * \[ origin location, id, expected location \] + **/ + InvalidResponder: AugmentedEvent]>; + /** + * Expected query response has been received but the expected origin location placed in + * storage by this runtime previously cannot be decoded. The query remains registered. + * + * This is unexpected (since a location placed in storage in a previously executing + * runtime should be readable prior to query timeout) and dangerous since the possibly + * valid response will be dropped. Manual governance intervention is probably going to be + * needed. + * + * \[ origin location, id \] + **/ + InvalidResponderVersion: AugmentedEvent; + /** + * Query response has been received and query is removed. The registered notification has + * been dispatched and executed successfully. + * + * \[ id, pallet index, call index \] + **/ + Notified: AugmentedEvent; + /** + * Query response has been received and query is removed. The dispatch was unable to be + * decoded into a `Call`; this might be due to dispatch function having a signature which + * is not `(origin, QueryId, Response)`. + * + * \[ id, pallet index, call index \] + **/ + NotifyDecodeFailed: AugmentedEvent; + /** + * Query response has been received and query is removed. There was a general error with + * dispatching the notification call. + * + * \[ id, pallet index, call index \] + **/ + NotifyDispatchError: AugmentedEvent; + /** + * Query response has been received and query is removed. The registered notification could + * not be dispatched because the dispatch weight is greater than the maximum weight + * originally budgeted by this runtime for the query result. + * + * \[ id, pallet index, call index, actual weight, max budgeted weight \] + **/ + NotifyOverweight: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * migrating the location to our new XCM format. + * + * \[ location, query ID \] + **/ + NotifyTargetMigrationFail: AugmentedEvent; + /** + * A given location which had a version change subscription was dropped owing to an error + * sending the notification to it. + * + * \[ location, query ID, error \] + **/ + NotifyTargetSendFail: AugmentedEvent; + /** + * Query response has been received and is ready for taking with `take_response`. There is + * no registered notification call. + * + * \[ id, response \] + **/ + ResponseReady: AugmentedEvent; + /** + * Received query response has been read and removed. + * + * \[ id \] + **/ + ResponseTaken: AugmentedEvent; + /** + * A XCM message was sent. + * + * \[ origin, destination, message \] + **/ + Sent: AugmentedEvent; + /** + * The supported version of a location has been changed. This might be through an + * automatic notification or a manual intervention. + * + * \[ location, XCM version \] + **/ + SupportedVersionChanged: AugmentedEvent; + /** + * Query response received which does not match a registered query. This may be because a + * matching query was never registered, it may be because it is a duplicate response, or + * because the query timed out. + * + * \[ origin location, id \] + **/ + UnexpectedResponse: AugmentedEvent; + /** + * An XCM version change notification message has been attempted to be sent. + * + * The cost of sending it (borne by the chain) is included. + * + * \[ destination, result, cost \] + **/ + VersionChangeNotified: AugmentedEvent; + /** + * We have requested that a remote chain sends us XCM version change notifications. + * + * \[ destination location, cost \] + **/ + VersionNotifyRequested: AugmentedEvent; + /** + * A remote has requested XCM version change notification from us and we have honored it. + * A version information message is sent to them and its cost is included. + * + * \[ destination location, cost \] + **/ + VersionNotifyStarted: AugmentedEvent; + /** + * We have requested that a remote chain stops sending us XCM version change notifications. + * + * \[ destination location, cost \] + **/ + VersionNotifyUnrequested: AugmentedEvent; + /** + * 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: RococoParachainRuntimeProxyType, + delay: u32 + ], + { + delegator: AccountId32; + delegatee: AccountId32; + proxyType: RococoParachainRuntimeProxyType; + 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: RococoParachainRuntimeProxyType, + delay: u32 + ], + { + delegator: AccountId32; + delegatee: AccountId32; + proxyType: RococoParachainRuntimeProxyType; + 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: RococoParachainRuntimeProxyType, + disambiguationIndex: u16 + ], + { + pure: AccountId32; + who: AccountId32; + proxyType: RococoParachainRuntimeProxyType; + 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; + }; + session: { + /** + * New session has happened. Note that the argument is the session index, not the + * block number as the type might suggest. + **/ + NewSession: 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; + }; + technicalCommittee: { + /** + * 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; + }; + technicalCommitteeMembership: { + /** + * Phantom member, never used. + **/ + Dummy: AugmentedEvent; + /** + * One of the members' keys changed. + **/ + KeyChanged: AugmentedEvent; + /** + * The given member was added; see the transaction for who. + **/ + MemberAdded: AugmentedEvent; + /** + * The given member was removed; see the transaction for who. + **/ + MemberRemoved: AugmentedEvent; + /** + * The membership was reset; see the transaction for who the new set is. + **/ + MembersReset: AugmentedEvent; + /** + * Two members were swapped; see the transaction for who. + **/ + MembersSwapped: 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; + }; + tips: { + /** + * A new tip suggestion has been opened. + **/ + NewTip: AugmentedEvent; + /** + * A tip suggestion has been closed. + **/ + TipClosed: AugmentedEvent< + ApiType, + [tipHash: H256, who: AccountId32, payout: u128], + { tipHash: H256; who: AccountId32; payout: u128 } + >; + /** + * A tip suggestion has reached threshold and is closing. + **/ + TipClosing: AugmentedEvent; + /** + * A tip suggestion has been retracted. + **/ + TipRetracted: AugmentedEvent; + /** + * A tip suggestion has been slashed. + **/ + TipSlashed: AugmentedEvent< + ApiType, + [tipHash: H256, finder: AccountId32, deposit: u128], + { tipHash: H256; finder: AccountId32; deposit: u128 } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + tokens: { + /** + * A balance was set by root. + **/ + BalanceSet: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, free: u128, reserved: u128], + { currencyId: u128; who: AccountId32; free: u128; reserved: u128 } + >; + /** + * Deposited some balance into an account + **/ + Deposited: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * An account was removed whose balance was non-zero but below + * ExistentialDeposit, resulting in an outright loss. + **/ + DustLost: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * An account was created with some free balance. + **/ + Endowed: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some free balance was locked. + **/ + Locked: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some locked funds were unlocked + **/ + LockRemoved: AugmentedEvent< + ApiType, + [lockId: U8aFixed, currencyId: u128, who: AccountId32], + { lockId: U8aFixed; currencyId: u128; who: AccountId32 } + >; + /** + * Some funds are locked + **/ + LockSet: AugmentedEvent< + ApiType, + [lockId: U8aFixed, currencyId: u128, who: AccountId32, amount: u128], + { lockId: U8aFixed; currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some balance was reserved (moved from free to reserved). + **/ + Reserved: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some reserved balance was repatriated (moved from reserved to + * another account). + **/ + ReserveRepatriated: AugmentedEvent< + ApiType, + [ + currencyId: u128, + from: AccountId32, + to: AccountId32, + amount: u128, + status: FrameSupportTokensMiscBalanceStatus + ], + { + currencyId: u128; + from: AccountId32; + to: AccountId32; + amount: u128; + status: FrameSupportTokensMiscBalanceStatus; + } + >; + /** + * Some balances were slashed (e.g. due to mis-behavior) + **/ + Slashed: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, freeAmount: u128, reservedAmount: u128], + { currencyId: u128; who: AccountId32; freeAmount: u128; reservedAmount: u128 } + >; + /** + * The total issuance of an currency has been set + **/ + TotalIssuanceSet: AugmentedEvent< + ApiType, + [currencyId: u128, amount: u128], + { currencyId: u128; amount: u128 } + >; + /** + * Transfer succeeded. + **/ + Transfer: AugmentedEvent< + ApiType, + [currencyId: u128, from: AccountId32, to: AccountId32, amount: u128], + { currencyId: u128; from: AccountId32; to: AccountId32; amount: u128 } + >; + /** + * Some locked balance was freed. + **/ + Unlocked: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some balance was unreserved (moved from reserved to free). + **/ + Unreserved: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * Some balances were withdrawn (e.g. pay for transaction fee) + **/ + Withdrawn: AugmentedEvent< + ApiType, + [currencyId: u128, who: AccountId32, amount: u128], + { currencyId: u128; who: AccountId32; amount: u128 } + >; + /** + * 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; + }; + xcmpQueue: { + /** + * Bad XCM format used. + **/ + BadFormat: AugmentedEvent], { messageHash: Option }>; + /** + * Bad XCM version used. + **/ + BadVersion: AugmentedEvent], { messageHash: Option }>; + /** + * Some XCM failed. + **/ + Fail: AugmentedEvent< + ApiType, + [messageHash: Option, error: XcmV3TraitsError, weight: SpWeightsWeightV2Weight], + { messageHash: Option; error: XcmV3TraitsError; weight: SpWeightsWeightV2Weight } + >; + /** + * An XCM exceeded the individual message weight budget. + **/ + OverweightEnqueued: AugmentedEvent< + ApiType, + [sender: u32, sentAt: u32, index: u64, required: SpWeightsWeightV2Weight], + { sender: u32; sentAt: u32; index: u64; required: SpWeightsWeightV2Weight } + >; + /** + * An XCM from the overweight queue was executed with the given actual weight used. + **/ + OverweightServiced: AugmentedEvent< + ApiType, + [index: u64, used: SpWeightsWeightV2Weight], + { index: u64; used: SpWeightsWeightV2Weight } + >; + /** + * Some XCM was executed ok. + **/ + Success: AugmentedEvent< + ApiType, + [messageHash: Option, weight: SpWeightsWeightV2Weight], + { messageHash: Option; weight: SpWeightsWeightV2Weight } + >; + /** + * An HRMP message was sent to a sibling parachain. + **/ + XcmpMessageSent: AugmentedEvent< + ApiType, + [messageHash: Option], + { messageHash: Option } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + xTokens: { + /** + * Transferred `MultiAsset` with fee. + **/ + TransferredMultiAssets: AugmentedEvent< + ApiType, + [ + sender: AccountId32, + assets: XcmV3MultiassetMultiAssets, + fee: XcmV3MultiAsset, + dest: XcmV3MultiLocation + ], + { + sender: AccountId32; + assets: XcmV3MultiassetMultiAssets; + fee: XcmV3MultiAsset; + dest: XcmV3MultiLocation; + } + >; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; + } // AugmentedEvents +} // declare module diff --git a/tee-worker/ts-tests/parachain-interfaces/augment-api-query.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-query.ts new file mode 100644 index 0000000000..5a2b9b337b --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/augment-api-query.ts @@ -0,0 +1,1917 @@ +// 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 { Data } from '@polkadot/types'; +import type { + BTreeMap, + Bytes, + Null, + Option, + 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, Perbill } from '@polkadot/types/interfaces/runtime'; +import type { + CumulusPalletDmpQueueConfigData, + CumulusPalletDmpQueuePageIndexData, + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, + CumulusPalletXcmpQueueInboundChannelDetails, + CumulusPalletXcmpQueueOutboundChannelDetails, + CumulusPalletXcmpQueueQueueConfigData, + FrameSupportDispatchPerDispatchClassWeight, + FrameSupportPreimagesBounded, + FrameSystemAccountInfo, + FrameSystemEventRecord, + FrameSystemLastRuntimeUpgradeInfo, + FrameSystemPhase, + MockTeePrimitivesIdentity, + OrmlTokensAccountData, + OrmlTokensBalanceLock, + OrmlTokensReserveData, + PalletAssetManagerAssetMetadata, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesReserveData, + PalletBountiesBounty, + PalletBridgeBridgeEvent, + PalletBridgeProposalVotes, + PalletCollectiveVotes, + PalletDemocracyMetadataOwner, + PalletDemocracyReferendumInfo, + PalletDemocracyVoteThreshold, + PalletDemocracyVoteVoting, + PalletDrop3RewardPool, + PalletExtrinsicFilterOperationalMode, + PalletIdentityManagementMockIdentityContext, + PalletIdentityRegistrarInfo, + PalletIdentityRegistration, + PalletMultisigMultisig, + PalletParachainStakingAutoCompoundAutoCompoundConfig, + PalletParachainStakingBond, + PalletParachainStakingCandidateMetadata, + PalletParachainStakingCollatorSnapshot, + PalletParachainStakingDelayedPayout, + PalletParachainStakingDelegationRequestsScheduledRequest, + PalletParachainStakingDelegations, + PalletParachainStakingDelegator, + PalletParachainStakingInflationInflationInfo, + PalletParachainStakingParachainBondConfig, + PalletParachainStakingRoundInfo, + PalletParachainStakingSetOrderedSet, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyProxyDefinition, + PalletSchedulerScheduled, + PalletTipsOpenTip, + PalletTransactionPaymentReleases, + PalletTreasuryProposal, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVestingReleases, + PalletVestingVestingInfo, + PalletXcmQueryStatus, + PalletXcmRemoteLockedFungibleRecord, + PalletXcmVersionMigrationStage, + PolkadotCorePrimitivesOutboundHrmpMessage, + PolkadotPrimitivesV2AbridgedHostConfiguration, + PolkadotPrimitivesV2PersistedValidationData, + PolkadotPrimitivesV2UpgradeRestriction, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SidechainPrimitivesSidechainBlockConfirmation, + SpConsensusAuraSr25519AppSr25519Public, + SpCoreCryptoKeyTypeId, + SpRuntimeDigest, + SpTrieStorageProof, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesTcbInfoOnChain, + XcmVersionedAssetId, + XcmVersionedMultiLocation, +} 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 { + assetManager: { + /** + * The storages for AssetIdMetadata. + * AssetIdMetadata: map AssetId => Option + **/ + assetIdMetadata: AugmentedQuery< + ApiType, + (arg: u128 | AnyNumber | Uint8Array) => Observable>, + [u128] + > & + QueryableStorageEntry; + /** + * Mapping from an asset id to asset type. + * This is mostly used when receiving transaction specifying an asset directly, + * like transferring an asset from this chain to another. + **/ + assetIdType: AugmentedQuery< + ApiType, + (arg: u128 | AnyNumber | Uint8Array) => Observable>, + [u128] + > & + QueryableStorageEntry; + /** + * Stores the units per second for local execution for a AssetType. + * This is used to know how to charge for XCM execution in a particular asset + * Not all assets might contain units per second, hence the different storage + **/ + assetIdUnitsPerSecond: AugmentedQuery< + ApiType, + (arg: u128 | AnyNumber | Uint8Array) => Observable, + [u128] + > & + QueryableStorageEntry; + /** + * Reverse mapping of AssetIdType. Mapping from an asset type to an asset id. + * This is mostly used when receiving a multilocation XCM message to retrieve + * the corresponding asset in which tokens should me minted. + **/ + assetTypeId: AugmentedQuery< + ApiType, + ( + arg: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array + ) => Observable>, + [RuntimeCommonXcmImplCurrencyId] + > & + QueryableStorageEntry; + /** + * Stores the tracker of foreign assets id that have been + * created so far + **/ + foreignAssetTracker: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + aura: { + /** + * The current authority set. + **/ + authorities: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The current slot of this block. + * + * This will be set in `on_initialize`. + **/ + currentSlot: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + auraExt: { + /** + * Serves as cache for the authorities. + * + * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, + * but we require the old authorities to verify the seal when validating a PoV. This will always + * be updated to the latest AuRa authorities in `on_finalize`. + **/ + authorities: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + authorship: { + /** + * Author of current block. + **/ + author: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + 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; + }; + bounties: { + /** + * Bounties that have been made. + **/ + bounties: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Bounty indices that have been approved but not yet funded. + **/ + bountyApprovals: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Number of bounty proposals that have been made. + **/ + bountyCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The description of each bounty. + **/ + bountyDescriptions: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + bridgeTransfer: { + bridgeBalances: AugmentedQuery< + ApiType, + ( + arg1: U8aFixed | string | Uint8Array, + arg2: AccountId32 | string | Uint8Array + ) => Observable>, + [U8aFixed, AccountId32] + > & + QueryableStorageEntry; + externalBalances: AugmentedQuery Observable, []> & QueryableStorageEntry; + maximumIssuance: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + chainBridge: { + bridgeEvents: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + bridgeFee: AugmentedQuery Observable>, [u8]> & + QueryableStorageEntry; + chainNonces: AugmentedQuery Observable>, [u8]> & + QueryableStorageEntry; + relayerCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + relayers: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + relayerThreshold: AugmentedQuery Observable, []> & QueryableStorageEntry; + resources: AugmentedQuery< + ApiType, + (arg: U8aFixed | string | Uint8Array) => Observable>, + [U8aFixed] + > & + QueryableStorageEntry; + votes: AugmentedQuery< + ApiType, + ( + arg1: u8 | AnyNumber | Uint8Array, + arg2: ITuple<[u64, Call]> | [u64 | AnyNumber | Uint8Array, Call | IMethod | string | Uint8Array] + ) => Observable>, + [u8, ITuple<[u64, Call]>] + > & + 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; + }; + councilMembership: { + /** + * The current membership, stored as an ordered Vec. + **/ + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The current prime member, if one exists. + **/ + prime: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + democracy: { + /** + * A record of who vetoed what. Maps proposal hash to a possible existent block number + * (until when it may not be resubmitted) and who vetoed it. + **/ + blacklist: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable]>>>, + [H256] + > & + QueryableStorageEntry; + /** + * Record of all proposals that have been subject to emergency cancellation. + **/ + cancellations: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + /** + * Those who have locked a deposit. + * + * TWOX-NOTE: Safe, as increasing integer keys are safe. + **/ + depositOf: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable, u128]>>>, + [u32] + > & + QueryableStorageEntry; + /** + * True if the last referendum tabled was submitted externally. False if it was a public + * proposal. + **/ + lastTabledWasExternal: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The lowest referendum index representing an unbaked referendum. Equal to + * `ReferendumCount` if there isn't a unbaked referendum. + **/ + lowestUnbaked: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * General information concerning any proposal or referendum. + * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON + * dump or IPFS hash of a JSON file. + * + * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove) + * large preimages. + **/ + metadataOf: AugmentedQuery< + ApiType, + ( + arg: + | PalletDemocracyMetadataOwner + | { External: any } + | { Proposal: any } + | { Referendum: any } + | string + | Uint8Array + ) => Observable>, + [PalletDemocracyMetadataOwner] + > & + QueryableStorageEntry; + /** + * The referendum to be tabled whenever it would be valid to table an external proposal. + * This happens when a referendum needs to be tabled and one of two conditions are met: + * - `LastTabledWasExternal` is `false`; or + * - `PublicProps` is empty. + **/ + nextExternal: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * The number of (public) proposals that have been made so far. + **/ + publicPropCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The public proposals. Unsorted. The second item is the proposal. + **/ + publicProps: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * The next free referendum index, aka the number of referenda started so far. + **/ + referendumCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Information concerning any given referendum. + * + * TWOX-NOTE: SAFE as indexes are not under an attacker’s control. + **/ + referendumInfoOf: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * All votes for a particular voter. We store the balance for the number of votes that we + * have recorded. The second item is the total amount of delegations, that will be added. + * + * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. + **/ + votingOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + dmpQueue: { + /** + * The configuration. + **/ + configuration: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Counter for the related counted storage map + **/ + counterForOverweight: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The overweight messages. + **/ + overweight: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>>, + [u64] + > & + QueryableStorageEntry; + /** + * The page index. + **/ + pageIndex: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The queue pages. + **/ + pages: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>>, + [u32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + drop3: { + /** + * The reward pool admin account + * The reason why such an account is needed (other than just using ROOT) is for + * fast processing of reward proposals, imagine later when sudo is removed + **/ + admin: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + currentMaxPoolId: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Map for PoolId <> RewardPoolOwner + **/ + rewardPoolOwners: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + /** + * Map for PoolId <> RewardPool + **/ + rewardPools: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + extrinsicFilter: { + /** + * a tuple (pallet_name_bytes, Option) to represent blocked extrinsics + * if `Option` is None, then all extrinsics in `pallet_name_bytes` are + * blocked + **/ + blockedExtrinsics: AugmentedQuery< + ApiType, + ( + arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array] + ) => Observable>, + [ITuple<[Bytes, Bytes]>] + > & + QueryableStorageEntry]>; + /** + * current mode, ValueQuery as it can't be None + **/ + mode: 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; + }; + identityManagementMock: { + /** + * challenge code is per Litentry account + identity + **/ + challengeCodes: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: + | MockTeePrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => Observable>, + [AccountId32, MockTeePrimitivesIdentity] + > & + QueryableStorageEntry; + /** + * 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; + /** + * ID graph is per Litentry account + identity + **/ + idGraphs: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: + | MockTeePrimitivesIdentity + | { Substrate: any } + | { Evm: any } + | { Web2: any } + | string + | Uint8Array + ) => Observable>, + [AccountId32, MockTeePrimitivesIdentity] + > & + QueryableStorageEntry; + /** + * user shielding key is per Litentry account + **/ + userShieldingKeys: 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; + }; + 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; + }; + parachainIdentity: { + /** + * Information that is pertinent to identify the entity behind an account. + * + * TWOX-NOTE: OK ― `AccountId` is a secure hash. + **/ + identityOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The set of registrars. Not expected to get very big as can only be added through a + * special origin (likely a council motion). + * + * The index into this can be cast to `RegistrarIndex` to get a valid value. + **/ + registrars: AugmentedQuery Observable>>, []> & + QueryableStorageEntry; + /** + * Alternative "sub" identities of this account. + * + * The first item is the deposit, the second is a vector of the accounts. + * + * TWOX-NOTE: OK ― `AccountId` is a secure hash. + **/ + subsOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable]>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The super-identity of an alternative "sub" identity together with its name, within that + * context. If the account is not some other account's sub-identity, then just `None`. + **/ + superOf: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainInfo: { + parachainId: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainStaking: { + /** + * Snapshot of collator delegation stake at the start of the round + **/ + atStake: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: AccountId32 | string | Uint8Array + ) => Observable, + [u32, AccountId32] + > & + QueryableStorageEntry; + /** + * Stores auto-compounding configuration per collator. + **/ + autoCompoundingDelegations: AugmentedQuery< + ApiType, + ( + arg: AccountId32 | string | Uint8Array + ) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Points for each collator per round + **/ + awardedPts: AugmentedQuery< + ApiType, + (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable, + [u32, AccountId32] + > & + QueryableStorageEntry; + /** + * Bottom delegations for collator candidate + **/ + bottomDelegations: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Get collator candidate info associated with an account if account is candidate else None + **/ + candidateInfo: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The pool of collator candidates, each with their total backing stake + **/ + candidatePool: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The whitelist of collation candidates. + * This storage should be safe to delete after + * we release the restriction + **/ + candidates: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Commission percent taken off of rewards for all collators + **/ + collatorCommission: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Delayed payouts + **/ + delayedPayouts: AugmentedQuery< + ApiType, + (arg: u32 | AnyNumber | Uint8Array) => Observable>, + [u32] + > & + QueryableStorageEntry; + /** + * Stores outstanding delegation requests per collator. + **/ + delegationScheduledRequests: AugmentedQuery< + ApiType, + ( + arg: AccountId32 | string | Uint8Array + ) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Get delegator state associated with an account if account is delegating else None + **/ + delegatorState: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Inflation configuration + **/ + inflationConfig: AugmentedQuery< + ApiType, + () => Observable, + [] + > & + QueryableStorageEntry; + /** + * Parachain bond config info { account, percent_of_inflation } + **/ + parachainBondInfo: AugmentedQuery< + ApiType, + () => Observable, + [] + > & + QueryableStorageEntry; + /** + * Total points awarded to collators for block production in the round + **/ + points: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Current round index and next round scheduled transition + **/ + round: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The collator candidates selected for the current round + **/ + selectedCandidates: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Total counted stake for selected candidates in the round + **/ + staked: AugmentedQuery Observable, [u32]> & + QueryableStorageEntry; + /** + * Top delegations for collator candidate + **/ + topDelegations: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * Total capital locked by this staking pallet + **/ + total: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The total candidates selected every round + **/ + totalSelected: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + parachainSystem: { + /** + * The number of HRMP messages we observed in `on_initialize` and thus used that number for + * announcing the weight of `on_initialize` and `on_finalize`. + **/ + announcedHrmpMessagesPerCandidate: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The next authorized upgrade, if there is one. + **/ + authorizedUpgrade: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * A custom head data that should be returned as result of `validate_block`. + * + * See [`Pallet::set_custom_validation_head_data`] for more information. + **/ + customValidationHeadData: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Were the validation data set to notify the relay chain? + **/ + didSetValidationCode: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The parachain host configuration that was obtained from the relay parent. + * + * This field is meant to be updated each block with the validation data inherent. Therefore, + * before processing of the inherent, e.g. in `on_initialize` this data may be stale. + * + * This data is also absent from the genesis. + **/ + hostConfiguration: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * HRMP messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpOutboundMessages: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * HRMP watermark that was set in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + hrmpWatermark: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The last downward message queue chain head we have observed. + * + * This value is loaded before and saved after processing inbound downward messages carried + * by the system inherent. + **/ + lastDmqMqcHead: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The message queue chain heads we have observed per each channel incoming channel. + * + * This value is loaded before and saved after processing inbound downward messages carried + * by the system inherent. + **/ + lastHrmpMqcHeads: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The relay chain block number associated with the last parachain block. + **/ + lastRelayChainBlockNumber: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Validation code that is set by the parachain and is to be communicated to collator and + * consequently the relay-chain. + * + * This will be cleared in `on_initialize` of each new block if no other pallet already set + * the value. + **/ + newValidationCode: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Upward messages that are still pending and not yet send to the relay chain. + **/ + pendingUpwardMessages: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * In case of a scheduled upgrade, this storage field contains the validation code to be applied. + * + * As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE] + * which will result the next block process with the new validation code. This concludes the upgrade process. + * + * [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE + **/ + pendingValidationCode: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Number of downward messages processed in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + processedDownwardMessages: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * The state proof for the last relay parent block. + * + * This field is meant to be updated each block with the validation data inherent. Therefore, + * before processing of the inherent, e.g. in `on_initialize` this data may be stale. + * + * This data is also absent from the genesis. + **/ + relayStateProof: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The snapshot of some state related to messaging relevant to the current parachain as per + * the relay parent. + * + * This field is meant to be updated each block with the validation data inherent. Therefore, + * before processing of the inherent, e.g. in `on_initialize` this data may be stale. + * + * This data is also absent from the genesis. + **/ + relevantMessagingState: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing DMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedDmpWeightOverride: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The weight we reserve at the beginning of the block for processing XCMP messages. This + * overrides the amount set in the Config trait. + **/ + reservedXcmpWeightOverride: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * An option which indicates if the relay-chain restricts signalling a validation code upgrade. + * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced + * candidate will be invalid. + * + * This storage item is a mirror of the corresponding value for the current parachain from the + * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is + * set after the inherent. + **/ + upgradeRestrictionSignal: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * Upward messages that were sent in a block. + * + * This will be cleared in `on_initialize` of each new block. + **/ + upwardMessages: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The [`PersistedValidationData`] set for this block. + * This value is expected to be set only once per block and it's never stored + * in the trie. + **/ + validationData: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + polkadotXcm: { + /** + * The existing asset traps. + * + * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of + * times this pair has been trapped (usually just 1 if it exists at all). + **/ + assetTraps: AugmentedQuery Observable, [H256]> & + QueryableStorageEntry; + /** + * The current migration's stage, if any. + **/ + currentMigration: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Fungible assets which we know are locked on this chain. + **/ + lockedFungibles: AugmentedQuery< + ApiType, + ( + arg: AccountId32 | string | Uint8Array + ) => Observable>>>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * The ongoing queries. + **/ + queries: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>, + [u64] + > & + QueryableStorageEntry; + /** + * The latest available query index. + **/ + queryCounter: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Fungible assets which we know are locked on a remote chain. + **/ + remoteLockedFungibles: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: AccountId32 | string | Uint8Array, + arg3: XcmVersionedAssetId | { V3: any } | string | Uint8Array + ) => Observable>, + [u32, AccountId32, XcmVersionedAssetId] + > & + QueryableStorageEntry; + /** + * Default version to encode XCM when latest version of destination is unknown. If `None`, + * then the destinations whose XCM version is unknown are considered unreachable. + **/ + safeXcmVersion: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The Latest versions that we know various locations support. + **/ + supportedVersion: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => Observable>, + [u32, XcmVersionedMultiLocation] + > & + QueryableStorageEntry; + /** + * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and + * the `u32` counter is the number of times that a send to the destination has been attempted, + * which is used as a prioritization. + **/ + versionDiscoveryQueue: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * All locations that we have requested version notifications from. + **/ + versionNotifiers: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => Observable>, + [u32, XcmVersionedMultiLocation] + > & + QueryableStorageEntry; + /** + * The target locations that are subscribed to our version changes, as well as the most recent + * of our versions we informed them of. + **/ + versionNotifyTargets: AugmentedQuery< + ApiType, + ( + arg1: u32 | AnyNumber | Uint8Array, + arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => Observable>>, + [u32, XcmVersionedMultiLocation] + > & + 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; + }; + session: { + /** + * Current index of the session. + **/ + currentIndex: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Indices of disabled validators. + * + * The vec is always kept sorted so that we can find whether a given validator is + * disabled using binary search. It gets cleared when `on_session_ending` returns + * a new set of identities. + **/ + disabledValidators: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The owner of a key. The key is the `KeyTypeId` + the encoded key. + **/ + keyOwner: AugmentedQuery< + ApiType, + ( + arg: + | ITuple<[SpCoreCryptoKeyTypeId, Bytes]> + | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array] + ) => Observable>, + [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>] + > & + QueryableStorageEntry]>; + /** + * The next session keys for a validator. + **/ + nextKeys: AugmentedQuery< + ApiType, + (arg: AccountId32 | string | Uint8Array) => Observable>, + [AccountId32] + > & + QueryableStorageEntry; + /** + * True if the underlying economic identities or weighting behind the validators + * has changed in the queued validator set. + **/ + queuedChanged: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The queued keys for the next session. When the next session begins, these keys + * will be used to determine the validator's session keys. + **/ + queuedKeys: AugmentedQuery< + ApiType, + () => Observable>>, + [] + > & + QueryableStorageEntry; + /** + * The current set of validators. + **/ + validators: AugmentedQuery Observable>, []> & + 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; + }; + technicalCommittee: { + /** + * 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; + }; + technicalCommitteeMembership: { + /** + * The current membership, stored as an ordered Vec. + **/ + members: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * The current prime member, if one exists. + **/ + prime: AugmentedQuery Observable>, []> & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + teeracle: { + /** + * Exchange rates chain's cryptocurrency/currency (trading pair) from different sources + **/ + exchangeRates: AugmentedQuery< + ApiType, + ( + arg1: Bytes | string | Uint8Array, + arg2: Bytes | string | Uint8Array + ) => Observable, + [Bytes, Bytes] + > & + QueryableStorageEntry; + oracleData: AugmentedQuery< + ApiType, + (arg1: Bytes | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable, + [Bytes, Bytes] + > & + QueryableStorageEntry; + /** + * whitelist of trusted oracle's releases for different data sources + **/ + whitelists: AugmentedQuery< + ApiType, + (arg: Bytes | string | Uint8Array) => Observable>, + [Bytes] + > & + 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; + }; + tips: { + /** + * Simple preimage lookup from the reason's hash to the original data. Again, has an + * insecure enumerable hash since the key is guaranteed to be the result of a secure hash. + **/ + reasons: AugmentedQuery Observable>, [H256]> & + QueryableStorageEntry; + /** + * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value. + * This has the insecure enumerable hash function since the key itself is already + * guaranteed to be a secure hash. + **/ + tips: AugmentedQuery< + ApiType, + (arg: H256 | string | Uint8Array) => Observable>, + [H256] + > & + QueryableStorageEntry; + /** + * Generic query + **/ + [key: string]: QueryableStorageEntry; + }; + tokens: { + /** + * The balance of a token type under an account. + * + * NOTE: If the total is ever zero, decrease account ref account. + * + * NOTE: This is only used in the case that this module is used to store + * balances. + **/ + accounts: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: u128 | AnyNumber | Uint8Array + ) => Observable, + [AccountId32, u128] + > & + QueryableStorageEntry; + /** + * Any liquidity locks of a token type under an account. + * NOTE: Should only be accessed when setting, changing and freeing a lock. + **/ + locks: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: u128 | AnyNumber | Uint8Array + ) => Observable>, + [AccountId32, u128] + > & + QueryableStorageEntry; + /** + * Named reserves on some account balances. + **/ + reserves: AugmentedQuery< + ApiType, + ( + arg1: AccountId32 | string | Uint8Array, + arg2: u128 | AnyNumber | Uint8Array + ) => Observable>, + [AccountId32, u128] + > & + QueryableStorageEntry; + /** + * The total issuance of a token type. + **/ + totalIssuance: AugmentedQuery Observable, [u128]> & + 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; + }; + xcmpQueue: { + /** + * Counter for the related counted storage map + **/ + counterForOverweight: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Inbound aggregate XCMP messages. It can only be one per ParaId/block. + **/ + inboundXcmpMessages: AugmentedQuery< + ApiType, + (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable, + [u32, u32] + > & + QueryableStorageEntry; + /** + * Status of the inbound XCMP channels. + **/ + inboundXcmpStatus: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The messages outbound in a given XCMP channel. + **/ + outboundXcmpMessages: AugmentedQuery< + ApiType, + (arg1: u32 | AnyNumber | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable, + [u32, u16] + > & + QueryableStorageEntry; + /** + * The non-empty XCMP channels in order of becoming non-empty, and the index of the first + * and last outbound message. If the two indices are equal, then it indicates an empty + * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater + * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in + * case of the need to send a high-priority signal message this block. + * The bool is true if there is a signal message waiting to be sent. + **/ + outboundXcmpStatus: AugmentedQuery< + ApiType, + () => Observable>, + [] + > & + QueryableStorageEntry; + /** + * The messages that exceeded max individual message weight budget. + * + * These message stay in this storage map until they are manually dispatched via + * `service_overweight`. + **/ + overweight: AugmentedQuery< + ApiType, + (arg: u64 | AnyNumber | Uint8Array) => Observable>>, + [u64] + > & + QueryableStorageEntry; + /** + * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next + * available free overweight index. + **/ + overweightCount: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * The configuration which controls the dynamics of the outbound queue. + **/ + queueConfig: AugmentedQuery Observable, []> & + QueryableStorageEntry; + /** + * Whether or not the XCMP queue is suspended from executing incoming XCMs or not. + **/ + queueSuspended: AugmentedQuery Observable, []> & QueryableStorageEntry; + /** + * Any signal messages waiting to be sent. + **/ + signalMessages: AugmentedQuery Observable, [u32]> & + 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/parachain-interfaces/augment-api-rpc.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-rpc.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api-rpc.ts diff --git a/tee-worker/ts-tests/parachain-interfaces/augment-api-runtime.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-runtime.ts new file mode 100644 index 0000000000..96aca8e013 --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/augment-api-runtime.ts @@ -0,0 +1,259 @@ +// 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, ITuple } from '@polkadot/types-codec/types'; +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 { CollationInfo } from '@polkadot/types/interfaces/cumulus'; +import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; +import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; +import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; +import type { + AccountId, + Balance, + Block, + 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; + }; + /** 0xea93e3f16f3d6962/2 */ + collectCollationInfo: { + /** + * Collect information about a collation. + **/ + collectCollationInfo: AugmentedCall< + ApiType, + ( + header: + | Header + | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: 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; + }; + /** 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; + }; + } // AugmentedCalls +} // declare module diff --git a/tee-worker/ts-tests/parachain-interfaces/augment-api-tx.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api-tx.ts new file mode 100644 index 0000000000..5277b0979a --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/augment-api-tx.ts @@ -0,0 +1,5393 @@ +// 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 { Data } from '@polkadot/types'; +import type { + Bytes, + Compact, + Option, + Struct, + 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, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; +import type { + CorePrimitivesAssertion, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + CumulusPrimitivesParachainInherentParachainInherentData, + FrameSupportPreimagesBounded, + PalletAssetManagerAssetMetadata, + PalletDemocracyConviction, + PalletDemocracyMetadataOwner, + PalletDemocracyVoteAccountVote, + PalletExtrinsicFilterOperationalMode, + PalletIdentityBitFlags, + PalletIdentityIdentityInfo, + PalletIdentityJudgement, + PalletMultisigTimepoint, + PalletVestingVestingInfo, + RococoParachainRuntimeOriginCaller, + RococoParachainRuntimeProxyType, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesRequest, + XcmV3MultiLocation, + XcmV3WeightLimit, + XcmVersionedMultiAsset, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, + XcmVersionedXcm, +} 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 { + assetManager: { + /** + * Add the xcm type mapping for a existing assetId, other assetType still exists if any. + * TODO: Change add_asset_type with internal function wrapper + **/ + addAssetType: AugmentedSubmittable< + ( + assetId: u128 | AnyNumber | Uint8Array, + newAssetType: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [u128, RuntimeCommonXcmImplCurrencyId] + >; + /** + * Register new asset with the asset manager + * TODO::Reserve native token multilocation through GenesisBuild/RuntimeUpgrade + * TODO::Add Multilocation filter for register + **/ + registerForeignAssetType: AugmentedSubmittable< + ( + assetType: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + metadata: + | PalletAssetManagerAssetMetadata + | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any; isFrozen?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, PalletAssetManagerAssetMetadata] + >; + /** + * We do not allow the destroy of asset id so far; So at least one AssetTpye should be + * assigned to existing AssetId Both asset_type and potential new_default_asset_type must + * be an existing relation with asset_id + * TODO: Change remove_asset_type with internal function wrapper + **/ + removeAssetType: AugmentedSubmittable< + ( + assetType: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + newDefaultAssetType: + | Option + | null + | Uint8Array + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, Option] + >; + /** + * Change the amount of units we are charging per execution second + * for a given ForeignAssetType + * 0 means not support + **/ + setAssetUnitsPerSecond: AugmentedSubmittable< + ( + assetId: u128 | AnyNumber | Uint8Array, + unitsPerSecond: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u128, u128] + >; + updateForeignAssetMetadata: AugmentedSubmittable< + ( + assetId: u128 | AnyNumber | Uint8Array, + metadata: + | PalletAssetManagerAssetMetadata + | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any; isFrozen?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [u128, PalletAssetManagerAssetMetadata] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + 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; + }; + bounties: { + /** + * Accept the curator role for a bounty. + * A deposit will be reserved from curator and refund upon successful payout. + * + * May only be called from the curator. + * + * ## Complexity + * - O(1). + **/ + acceptCurator: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Approve a bounty proposal. At a later time, the bounty will be funded and become active + * and the original deposit will be returned. + * + * May only be called from `T::SpendOrigin`. + * + * ## Complexity + * - O(1). + **/ + approveBounty: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds + * after a delay. + * + * The dispatch origin for this call must be the curator of this bounty. + * + * - `bounty_id`: Bounty ID to award. + * - `beneficiary`: The beneficiary account whom will receive the payout. + * + * ## Complexity + * - O(1). + **/ + awardBounty: AugmentedSubmittable< + ( + bountyId: Compact | AnyNumber | Uint8Array, + beneficiary: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Claim the payout from an awarded bounty after payout delay. + * + * The dispatch origin for this call must be the beneficiary of this bounty. + * + * - `bounty_id`: Bounty ID to claim. + * + * ## Complexity + * - O(1). + **/ + claimBounty: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Cancel a proposed or active bounty. All the funds will be sent to treasury and + * the curator deposit will be unreserved if possible. + * + * Only `T::RejectOrigin` is able to cancel a bounty. + * + * - `bounty_id`: Bounty ID to cancel. + * + * ## Complexity + * - O(1). + **/ + closeBounty: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Extend the expiry time of an active bounty. + * + * The dispatch origin for this call must be the curator of this bounty. + * + * - `bounty_id`: Bounty ID to extend. + * - `remark`: additional information. + * + * ## Complexity + * - O(1). + **/ + extendBountyExpiry: AugmentedSubmittable< + ( + bountyId: Compact | AnyNumber | Uint8Array, + remark: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Bytes] + >; + /** + * Propose a new bounty. + * + * The dispatch origin for this call must be _Signed_. + * + * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as + * `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval, + * or slashed when rejected. + * + * - `curator`: The curator account whom will manage this bounty. + * - `fee`: The curator fee. + * - `value`: The total payment amount of this bounty, curator fee included. + * - `description`: The description of this bounty. + **/ + proposeBounty: AugmentedSubmittable< + ( + value: Compact | AnyNumber | Uint8Array, + description: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Bytes] + >; + /** + * Assign a curator to a funded bounty. + * + * May only be called from `T::SpendOrigin`. + * + * ## Complexity + * - O(1). + **/ + proposeCurator: AugmentedSubmittable< + ( + bountyId: Compact | AnyNumber | Uint8Array, + curator: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + fee: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress, Compact] + >; + /** + * Unassign curator from a bounty. + * + * This function can only be called by the `RejectOrigin` a signed origin. + * + * If this function is called by the `RejectOrigin`, we assume that the curator is + * malicious or inactive. As a result, we will slash the curator when possible. + * + * If the origin is the curator, we take this as a sign they are unable to do their job and + * they willingly give up. We could slash them, but for now we allow them to recover their + * deposit and exit without issue. (We may want to change this if it is abused.) + * + * Finally, the origin can be anyone if and only if the curator is "inactive". This allows + * anyone in the community to call out that a curator is not doing their due diligence, and + * we should pick a new curator. In this case the curator should also be slashed. + * + * ## Complexity + * - O(1). + **/ + unassignCurator: AugmentedSubmittable< + (bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + bridgeTransfer: { + setExternalBalances: AugmentedSubmittable< + (externalBalances: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + setMaximumIssuance: AugmentedSubmittable< + (maximumIssuance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * Executes a simple currency transfer using the bridge account as the source + **/ + transfer: AugmentedSubmittable< + ( + to: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + rid: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128, U8aFixed] + >; + /** + * Transfers some amount of the native token to some recipient on a (whitelisted) + * destination chain. + **/ + transferNative: AugmentedSubmittable< + ( + amount: u128 | AnyNumber | Uint8Array, + recipient: Bytes | string | Uint8Array, + destId: u8 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u128, Bytes, u8] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + chainBridge: { + /** + * Commits a vote in favour of the provided proposal. + * + * If a proposal with the given nonce and source chain ID does not already exist, it will + * be created with an initial vote in favour from the caller. + * + * # + * - weight of proposed call, regardless of whether execution is performed + * # + **/ + acknowledgeProposal: AugmentedSubmittable< + ( + nonce: u64 | AnyNumber | Uint8Array, + srcId: u8 | AnyNumber | Uint8Array, + rId: U8aFixed | string | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, u8, U8aFixed, Call] + >; + /** + * Adds a new relayer to the relayer set. + * + * # + * - O(1) lookup and insert + * # + **/ + addRelayer: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Evaluate the state of a proposal given the current vote threshold. + * + * A proposal with enough votes will be either executed or cancelled, and the status + * will be updated accordingly. + * + * # + * - weight of proposed call, regardless of whether execution is performed + * # + **/ + evalVoteState: AugmentedSubmittable< + ( + nonce: u64 | AnyNumber | Uint8Array, + srcId: u8 | AnyNumber | Uint8Array, + prop: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, u8, Call] + >; + /** + * Commits a vote against a provided proposal. + * + * # + * - Fixed, since execution of proposal should not be included + * # + **/ + rejectProposal: AugmentedSubmittable< + ( + nonce: u64 | AnyNumber | Uint8Array, + srcId: u8 | AnyNumber | Uint8Array, + rId: U8aFixed | string | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, u8, U8aFixed, Call] + >; + /** + * Removes an existing relayer from the set. + * + * # + * - O(1) lookup and removal + * # + **/ + removeRelayer: AugmentedSubmittable< + (v: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Removes a resource ID from the resource mapping. + * + * After this call, bridge transfers with the associated resource ID will + * be rejected. + * + * # + * - O(1) removal + * # + **/ + removeResource: AugmentedSubmittable< + (id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, + [U8aFixed] + >; + /** + * Stores a method name on chain under an associated resource ID. + * + * # + * - O(1) write + * # + **/ + setResource: AugmentedSubmittable< + ( + id: U8aFixed | string | Uint8Array, + method: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [U8aFixed, Bytes] + >; + /** + * Sets the vote threshold for proposals. + * + * This threshold is used to determine how many votes are required + * before a proposal is executed. + * + * # + * - O(1) lookup and insert + * # + **/ + setThreshold: AugmentedSubmittable< + (threshold: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Change extra bridge transfer fee that user should pay + * + * # + * - O(1) lookup and insert + * # + **/ + updateFee: AugmentedSubmittable< + ( + destId: u8 | AnyNumber | Uint8Array, + fee: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u8, u128] + >; + /** + * Enables a chain ID as a source or destination for a bridge transfer. + * + * # + * - O(1) lookup and insert + * # + **/ + whitelistChain: AugmentedSubmittable< + (id: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u8] + >; + /** + * 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; + }; + councilMembership: { + /** + * Add a member `who` to the set. + * + * May only be called from `T::AddOrigin`. + **/ + addMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out the sending member for some other key `new`. + * + * May only be called from `Signed` origin of a current member. + * + * Prime membership is passed from the origin account to `new`, if extant. + **/ + changeKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Remove the prime member if it exists. + * + * May only be called from `T::PrimeOrigin`. + **/ + clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove a member `who` from the set. + * + * May only be called from `T::RemoveOrigin`. + **/ + removeMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Change the membership to a new set, disregarding the existing membership. Be nice and + * pass `members` pre-sorted. + * + * May only be called from `T::ResetOrigin`. + **/ + resetMembers: AugmentedSubmittable< + (members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Set the prime member. Must be a current member. + * + * May only be called from `T::PrimeOrigin`. + **/ + setPrime: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out one member `remove` for another `add`. + * + * May only be called from `T::SwapOrigin`. + * + * Prime membership is *not* passed from `remove` to `add`, if extant. + **/ + swapMember: AugmentedSubmittable< + ( + remove: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + add: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + cumulusXcm: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + democracy: { + /** + * Permanently place a proposal into the blacklist. This prevents it from ever being + * proposed again. + * + * If called on a queued public or external proposal, then this will result in it being + * removed. If the `ref_index` supplied is an active referendum with the proposal hash, + * then it will be cancelled. + * + * The dispatch origin of this call must be `BlacklistOrigin`. + * + * - `proposal_hash`: The proposal hash to blacklist permanently. + * - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be + * cancelled. + * + * Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a + * reasonable value). + **/ + blacklist: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + maybeRefIndex: Option | null | Uint8Array | u32 | AnyNumber + ) => SubmittableExtrinsic, + [H256, Option] + >; + /** + * Remove a proposal. + * + * The dispatch origin of this call must be `CancelProposalOrigin`. + * + * - `prop_index`: The index of the proposal to cancel. + * + * Weight: `O(p)` where `p = PublicProps::::decode_len()` + **/ + cancelProposal: AugmentedSubmittable< + (propIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Remove a referendum. + * + * The dispatch origin of this call must be _Root_. + * + * - `ref_index`: The index of the referendum to cancel. + * + * # Weight: `O(1)`. + **/ + cancelReferendum: AugmentedSubmittable< + (refIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Clears all public proposals. + * + * The dispatch origin of this call must be _Root_. + * + * Weight: `O(1)`. + **/ + clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Delegate the voting power (with some given conviction) of the sending account. + * + * The balance delegated is locked for as long as it's delegated, and thereafter for the + * time appropriate for the conviction's lock period. + * + * The dispatch origin of this call must be _Signed_, and the signing account must either: + * - be delegating already; or + * - have no voting activity (if there is, then it will need to be removed/consolidated + * through `reap_vote` or `unvote`). + * + * - `to`: The account whose voting the `target` account's voting power will follow. + * - `conviction`: The conviction that will be attached to the delegated votes. When the + * account is undelegated, the funds will be locked for the corresponding period. + * - `balance`: The amount of the account's balance to be used in delegating. This must not + * be more than the account's current balance. + * + * Emits `Delegated`. + * + * Weight: `O(R)` where R is the number of referendums the voter delegating to has + * voted on. Weight is charged as if maximum votes. + **/ + delegate: AugmentedSubmittable< + ( + to: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + conviction: + | PalletDemocracyConviction + | 'None' + | 'Locked1x' + | 'Locked2x' + | 'Locked3x' + | 'Locked4x' + | 'Locked5x' + | 'Locked6x' + | number + | Uint8Array, + balance: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, PalletDemocracyConviction, u128] + >; + /** + * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same + * referendum. + * + * The dispatch origin of this call must be `CancellationOrigin`. + * + * -`ref_index`: The index of the referendum to cancel. + * + * Weight: `O(1)`. + **/ + emergencyCancel: AugmentedSubmittable< + (refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Schedule a referendum to be tabled once it is legal to schedule an external + * referendum. + * + * The dispatch origin of this call must be `ExternalOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal. + **/ + externalPropose: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded] + >; + /** + * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to + * schedule an external referendum. + * + * The dispatch of this call must be `ExternalDefaultOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal. + * + * Unlike `external_propose`, blacklisting has no effect on this and it may replace a + * pre-scheduled `external_propose` call. + * + * Weight: `O(1)` + **/ + externalProposeDefault: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded] + >; + /** + * Schedule a majority-carries referendum to be tabled next once it is legal to schedule + * an external referendum. + * + * The dispatch of this call must be `ExternalMajorityOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal. + * + * Unlike `external_propose`, blacklisting has no effect on this and it may replace a + * pre-scheduled `external_propose` call. + * + * Weight: `O(1)` + **/ + externalProposeMajority: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded] + >; + /** + * Schedule the currently externally-proposed majority-carries referendum to be tabled + * immediately. If there is no externally-proposed referendum currently, or if there is one + * but it is not a majority-carries referendum then it fails. + * + * The dispatch of this call must be `FastTrackOrigin`. + * + * - `proposal_hash`: The hash of the current external proposal. + * - `voting_period`: The period that is allowed for voting on this proposal. Increased to + * Must be always greater than zero. + * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`. + * - `delay`: The number of block after voting has ended in approval and this should be + * enacted. This doesn't have a minimum amount. + * + * Emits `Started`. + * + * Weight: `O(1)` + **/ + fastTrack: AugmentedSubmittable< + ( + proposalHash: H256 | string | Uint8Array, + votingPeriod: u32 | AnyNumber | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, u32, u32] + >; + /** + * Propose a sensitive action to be taken. + * + * The dispatch origin of this call must be _Signed_ and the sender must + * have funds to cover the deposit. + * + * - `proposal_hash`: The hash of the proposal preimage. + * - `value`: The amount of deposit (must be at least `MinimumDeposit`). + * + * Emits `Proposed`. + **/ + propose: AugmentedSubmittable< + ( + proposal: + | FrameSupportPreimagesBounded + | { Legacy: any } + | { Inline: any } + | { Lookup: any } + | string + | Uint8Array, + value: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [FrameSupportPreimagesBounded, Compact] + >; + /** + * Remove a vote for a referendum. + * + * If the `target` is equal to the signer, then this function is exactly equivalent to + * `remove_vote`. If not equal to the signer, then the vote must have expired, + * either because the referendum was cancelled, because the voter lost the referendum or + * because the conviction period is over. + * + * The dispatch origin of this call must be _Signed_. + * + * - `target`: The account of the vote to be removed; this account must have voted for + * referendum `index`. + * - `index`: The index of referendum of the vote to be removed. + * + * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. + * Weight is calculated for the maximum number of vote. + **/ + removeOtherVote: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + index: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u32] + >; + /** + * Remove a vote for a referendum. + * + * If: + * - the referendum was cancelled, or + * - the referendum is ongoing, or + * - the referendum has ended such that + * - the vote of the account was in opposition to the result; or + * - there was no conviction to the account's vote; or + * - the account made a split vote + * ...then the vote is removed cleanly and a following call to `unlock` may result in more + * funds being available. + * + * If, however, the referendum has ended and: + * - it finished corresponding to the vote of the account, and + * - the account made a standard vote with conviction, and + * - the lock period of the conviction is not over + * ...then the lock will be aggregated into the overall account's lock, which may involve + * *overlocking* (where the two locks are combined into a single lock that is the maximum + * of both the amount locked and the time is it locked for). + * + * The dispatch origin of this call must be _Signed_, and the signer must have a vote + * registered for referendum `index`. + * + * - `index`: The index of referendum of the vote to be removed. + * + * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. + * Weight is calculated for the maximum number of vote. + **/ + removeVote: AugmentedSubmittable< + (index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Signals agreement with a particular proposal. + * + * The dispatch origin of this call must be _Signed_ and the sender + * must have funds to cover the deposit, equal to the original deposit. + * + * - `proposal`: The index of the proposal to second. + **/ + second: AugmentedSubmittable< + (proposal: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Compact] + >; + /** + * Set or clear a metadata of a proposal or a referendum. + * + * Parameters: + * - `origin`: Must correspond to the `MetadataOwner`. + * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove` + * threshold. + * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst` + * threshold. + * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority` + * threshold. + * - `Signed` by a creator for a public proposal. + * - `Signed` to clear a metadata for a finished referendum. + * - `Root` to set a metadata for an ongoing referendum. + * - `owner`: an identifier of a metadata owner. + * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. + **/ + setMetadata: AugmentedSubmittable< + ( + owner: + | PalletDemocracyMetadataOwner + | { External: any } + | { Proposal: any } + | { Referendum: any } + | string + | Uint8Array, + maybeHash: Option | null | Uint8Array | H256 | string + ) => SubmittableExtrinsic, + [PalletDemocracyMetadataOwner, Option] + >; + /** + * Undelegate the voting power of the sending account. + * + * Tokens may be unlocked following once an amount of time consistent with the lock period + * of the conviction with which the delegation was issued. + * + * The dispatch origin of this call must be _Signed_ and the signing account must be + * currently delegating. + * + * Emits `Undelegated`. + * + * Weight: `O(R)` where R is the number of referendums the voter delegating to has + * voted on. Weight is charged as if maximum votes. + **/ + undelegate: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Unlock tokens that have an expired lock. + * + * The dispatch origin of this call must be _Signed_. + * + * - `target`: The account to remove the lock on. + * + * Weight: `O(R)` with R number of vote of target. + **/ + unlock: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Veto and blacklist the external proposal hash. + * + * The dispatch origin of this call must be `VetoOrigin`. + * + * - `proposal_hash`: The preimage hash of the proposal to veto and blacklist. + * + * Emits `Vetoed`. + * + * Weight: `O(V + log(V))` where V is number of `existing vetoers` + **/ + vetoExternal: AugmentedSubmittable< + (proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; + * otherwise it is a vote to keep the status quo. + * + * The dispatch origin of this call must be _Signed_. + * + * - `ref_index`: The index of the referendum to vote for. + * - `vote`: The vote configuration. + **/ + vote: AugmentedSubmittable< + ( + refIndex: Compact | AnyNumber | Uint8Array, + vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, PalletDemocracyVoteAccountVote] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + dmpQueue: { + /** + * Service a single overweight message. + **/ + serviceOverweight: AugmentedSubmittable< + ( + index: u64 | AnyNumber | Uint8Array, + weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + drop3: { + /** + * Approve a RewardPool proposal, must be called from admin + **/ + approveRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Close a reward pool, can be called by admin or reward pool owner + * + * Note here `approved` state is not required, which gives the owner a + * chance to close it before the admin evaluates the proposal + **/ + closeRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Create a RewardPool proposal, can be called by any signed account + **/ + proposeRewardPool: AugmentedSubmittable< + ( + name: Bytes | string | Uint8Array, + total: u128 | AnyNumber | Uint8Array, + startAt: u32 | AnyNumber | Uint8Array, + endAt: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, u128, u32, u32] + >; + /** + * Reject a RewardPool proposal, must be called from admin + **/ + rejectRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * transfer an amount of reserved balance to some other user + * must be called by reward pool owner + * TODO: + * `repatriate_reserved()` requires that the destination account is active + * otherwise `DeadAccount` error is returned. Is it OK in our case? + **/ + sendReward: AugmentedSubmittable< + ( + id: u64 | AnyNumber | Uint8Array, + to: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [u64, AccountId32, u128] + >; + /** + * 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] + >; + /** + * Start a reward pool, can be called by admin or reward pool owner + **/ + startRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Stop a reward pool, can be called by admin or reward pool owner + **/ + stopRewardPool: AugmentedSubmittable< + (id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u64] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + extrinsicFilter: { + /** + * block the given extrinsics + * (pallet_name_bytes, function_name_bytes) can uniquely identify an extrinsic + * if function_name_bytes is None, all extrinsics in `pallet_name_bytes` will be blocked + **/ + blockExtrinsics: AugmentedSubmittable< + ( + palletNameBytes: Bytes | string | Uint8Array, + functionNameBytes: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [Bytes, Option] + >; + /** + * Set the mode + * + * The storage of `BlockedExtrinsics` is unaffected. + * The reason is we'd rather have this pallet behave conservatively: + * having extra blocked extrinsics is better than having unexpected whitelisted extrinsics. + * See the test `set_mode_should_not_clear_blocked_extrinsics()` + * + * Weights should be 2 DB writes: 1 for mode and 1 for event + **/ + setMode: AugmentedSubmittable< + ( + mode: PalletExtrinsicFilterOperationalMode | 'Normal' | 'Safe' | 'Test' | number | Uint8Array + ) => SubmittableExtrinsic, + [PalletExtrinsicFilterOperationalMode] + >; + /** + * unblock the given extrinsics + * (pallet_name_bytes, function_name_bytes) can uniquely identify an extrinsic + * if function_name_bytes is None, all extrinsics in `pallet_name_bytes` will be unblocked + **/ + unblockExtrinsics: AugmentedSubmittable< + ( + palletNameBytes: Bytes | string | Uint8Array, + functionNameBytes: Option | null | Uint8Array | Bytes | string + ) => SubmittableExtrinsic, + [Bytes, Option] + >; + /** + * 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; + }; + identityManagementMock: { + /** + * add an account to the delegatees + **/ + addDelegatee: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Create an identity + **/ + 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, + idGraph: + | CorePrimitivesKeyAesOutput + | { ciphertext?: any; aad?: any; nonce?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput] + >; + identityRemoved: 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 + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput] + >; + 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 + ) => SubmittableExtrinsic, + [AccountId32, CorePrimitivesKeyAesOutput, CorePrimitivesKeyAesOutput] + >; + /** + * 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< + ( + func: Bytes | string | Uint8Array, + error: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes] + >; + userShieldingKeySet: AugmentedSubmittable< + (account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Verify a created 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; + }; + parachainIdentity: { + /** + * Add a registrar to the system. + * + * The dispatch origin for this call must be `T::RegistrarOrigin`. + * + * - `account`: the account of the registrar. + * + * Emits `RegistrarAdded` if successful. + * + * ## Complexity + * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded). + **/ + addRegistrar: AugmentedSubmittable< + ( + account: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Add the given account to the sender's subs. + * + * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated + * to the sender. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * sub identity of `sub`. + **/ + addSub: AugmentedSubmittable< + ( + sub: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + data: + | Data + | { None: any } + | { Raw: any } + | { BlakeTwo256: any } + | { Sha256: any } + | { Keccak256: any } + | { ShaThree256: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Data] + >; + /** + * Cancel a previous request. + * + * Payment: A previously reserved deposit is returned on success. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a + * registered identity. + * + * - `reg_index`: The index of the registrar whose judgement is no longer requested. + * + * Emits `JudgementUnrequested` if successful. + * + * ## Complexity + * - `O(R + X)`. + * - where `R` registrar-count (governance-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + cancelRequest: AugmentedSubmittable< + (regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Clear an account's identity info and all sub-accounts and return all deposits. + * + * Payment: All reserved balances on the account are returned. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * identity. + * + * Emits `IdentityCleared` if successful. + * + * ## Complexity + * - `O(R + S + X)` + * - where `R` registrar-count (governance-bounded). + * - where `S` subs-count (hard- and deposit-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove an account's identity and sub-account information and slash the deposits. + * + * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by + * `Slash`. Verification request deposits are not returned; they should be cancelled + * manually using `cancel_request`. + * + * The dispatch origin for this call must match `T::ForceOrigin`. + * + * - `target`: the account whose identity the judgement is upon. This must be an account + * with a registered identity. + * + * Emits `IdentityKilled` if successful. + * + * ## Complexity + * - `O(R + S + X)` + * - where `R` registrar-count (governance-bounded). + * - where `S` subs-count (hard- and deposit-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + killIdentity: AugmentedSubmittable< + ( + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Provide a judgement for an account's identity. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `reg_index`. + * + * - `reg_index`: the index of the registrar whose judgement is being made. + * - `target`: the account whose identity the judgement is upon. This must be an account + * with a registered identity. + * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. + * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided. + * + * Emits `JudgementGiven` if successful. + * + * ## Complexity + * - `O(R + X)`. + * - where `R` registrar-count (governance-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + provideJudgement: AugmentedSubmittable< + ( + regIndex: Compact | AnyNumber | Uint8Array, + target: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + judgement: + | PalletIdentityJudgement + | { Unknown: any } + | { FeePaid: any } + | { Reasonable: any } + | { KnownGood: any } + | { OutOfDate: any } + | { LowQuality: any } + | { Erroneous: any } + | string + | Uint8Array, + identity: H256 | string | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress, PalletIdentityJudgement, H256] + >; + /** + * Remove the sender as a sub-account. + * + * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated + * to the sender (*not* the original depositor). + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * super-identity. + * + * NOTE: This should not normally be used, but is provided in the case that the non- + * controller of an account is maliciously registered as a sub-account. + **/ + quitSub: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove the given account from the sender's subs. + * + * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated + * to the sender. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * sub identity of `sub`. + **/ + removeSub: AugmentedSubmittable< + ( + sub: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Alter the associated name of the given sub-account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * sub identity of `sub`. + **/ + renameSub: AugmentedSubmittable< + ( + sub: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + data: + | Data + | { None: any } + | { Raw: any } + | { BlakeTwo256: any } + | { Sha256: any } + | { Keccak256: any } + | { ShaThree256: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, Data] + >; + /** + * Request a judgement from a registrar. + * + * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement + * given. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a + * registered identity. + * + * - `reg_index`: The index of the registrar whose judgement is requested. + * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: + * + * ```nocompile + * Self::registrars().get(reg_index).unwrap().fee + * ``` + * + * Emits `JudgementRequested` if successful. + * + * ## Complexity + * - `O(R + X)`. + * - where `R` registrar-count (governance-bounded). + * - where `X` additional-field-count (deposit-bounded and code-bounded). + **/ + requestJudgement: AugmentedSubmittable< + ( + regIndex: Compact | AnyNumber | Uint8Array, + maxFee: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Compact] + >; + /** + * Change the account associated with a registrar. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `index`. + * + * - `index`: the index of the registrar whose fee is to be set. + * - `new`: the new account ID. + * + * ## Complexity + * - `O(R)`. + * - where `R` registrar-count (governance-bounded). + **/ + setAccountId: AugmentedSubmittable< + ( + index: Compact | AnyNumber | Uint8Array, + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Compact, MultiAddress] + >; + /** + * Set the fee required for a judgement to be requested from a registrar. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `index`. + * + * - `index`: the index of the registrar whose fee is to be set. + * - `fee`: the new fee. + * + * ## Complexity + * - `O(R)`. + * - where `R` registrar-count (governance-bounded). + **/ + setFee: AugmentedSubmittable< + ( + index: Compact | AnyNumber | Uint8Array, + fee: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Compact, Compact] + >; + /** + * Set the field information for a registrar. + * + * The dispatch origin for this call must be _Signed_ and the sender must be the account + * of the registrar whose index is `index`. + * + * - `index`: the index of the registrar whose fee is to be set. + * - `fields`: the fields that the registrar concerns themselves with. + * + * ## Complexity + * - `O(R)`. + * - where `R` registrar-count (governance-bounded). + **/ + setFields: AugmentedSubmittable< + ( + index: Compact | AnyNumber | Uint8Array, + fields: PalletIdentityBitFlags + ) => SubmittableExtrinsic, + [Compact, PalletIdentityBitFlags] + >; + /** + * Set an account's identity information and reserve the appropriate deposit. + * + * If the account already has identity information, the deposit is taken as part payment + * for the new deposit. + * + * The dispatch origin for this call must be _Signed_. + * + * - `info`: The identity information. + * + * Emits `IdentitySet` if successful. + * + * ## Complexity + * - `O(X + X' + R)` + * - where `X` additional-field-count (deposit-bounded and code-bounded) + * - where `R` judgements-count (registrar-count-bounded) + **/ + setIdentity: AugmentedSubmittable< + ( + info: + | PalletIdentityIdentityInfo + | { + additional?: any; + display?: any; + legal?: any; + web?: any; + riot?: any; + email?: any; + pgpFingerprint?: any; + image?: any; + twitter?: any; + } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [PalletIdentityIdentityInfo] + >; + /** + * Set the sub-accounts of the sender. + * + * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned + * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. + * + * The dispatch origin for this call must be _Signed_ and the sender must have a registered + * identity. + * + * - `subs`: The identity's (new) sub-accounts. + * + * ## Complexity + * - `O(P + S)` + * - where `P` old-subs-count (hard- and deposit-bounded). + * - where `S` subs-count (hard- and deposit-bounded). + **/ + setSubs: AugmentedSubmittable< + ( + subs: + | Vec> + | [ + AccountId32 | string | Uint8Array, + ( + | Data + | { None: any } + | { Raw: any } + | { BlakeTwo256: any } + | { Sha256: any } + | { Keccak256: any } + | { ShaThree256: any } + | string + | Uint8Array + ) + ][] + ) => SubmittableExtrinsic, + [Vec>] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainInfo: { + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainStaking: { + /** + * add white list of candidates + * This function should be safe to delete after restriction removed + **/ + addCandidatesWhitelist: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Cancel pending request to adjust the collator candidate self bond + **/ + cancelCandidateBondLess: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Cancel request to change an existing delegation. + **/ + cancelDelegationRequest: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Cancel open request to leave candidates + * - only callable by collator account + * - result upon successful call is the candidate is active in the candidate pool + **/ + cancelLeaveCandidates: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Cancel a pending request to exit the set of delegators. Success clears the pending exit + * request (thereby resetting the delay upon another `leave_delegators` call). + **/ + cancelLeaveDelegators: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Increase collator candidate self bond by `more` + **/ + candidateBondMore: AugmentedSubmittable< + (more: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * If caller is not a delegator and not a collator, then join the set of delegators + * If caller is a delegator, then makes delegation to change their delegation state + **/ + delegate: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128] + >; + /** + * If caller is not a delegator and not a collator, then join the set of delegators + * If caller is a delegator, then makes delegation to change their delegation state + * Sets the auto-compound config for the delegation + **/ + delegateWithAutoCompound: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + autoCompound: Percent | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128, Percent] + >; + /** + * Bond more for delegators wrt a specific collator candidate. + **/ + delegatorBondMore: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + more: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128] + >; + /** + * Execute pending request to adjust the collator candidate self bond + **/ + executeCandidateBondLess: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Execute pending request to change an existing delegation + **/ + executeDelegationRequest: AugmentedSubmittable< + ( + delegator: AccountId32 | string | Uint8Array, + candidate: AccountId32 | string | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, AccountId32] + >; + /** + * Execute leave candidates request + **/ + executeLeaveCandidates: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Execute the right to exit the set of delegators and revoke all ongoing delegations. + **/ + executeLeaveDelegators: AugmentedSubmittable< + (delegator: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Temporarily leave the set of collator candidates without unbonding + **/ + goOffline: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Rejoin the set of collator candidates if previously had called `go_offline` + **/ + goOnline: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Join the set of collator candidates + **/ + joinCandidates: AugmentedSubmittable< + (bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * remove white list of candidates + * This function should be safe to delete after restriction removed + **/ + removeCandidatesWhitelist: AugmentedSubmittable< + (candidate: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Request by collator candidate to decrease self bond by `less` + **/ + scheduleCandidateBondLess: AugmentedSubmittable< + (less: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u128] + >; + /** + * Request bond less for delegators wrt a specific collator candidate. + **/ + scheduleDelegatorBondLess: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + less: u128 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, u128] + >; + /** + * Request to leave the set of candidates. If successful, the account is immediately + * removed from the candidate pool to prevent selection as a collator. + **/ + scheduleLeaveCandidates: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Request to leave the set of delegators. If successful, the caller is scheduled to be + * allowed to exit via a [DelegationAction::Revoke] towards all existing delegations. + * Success forbids future delegation requests until the request is invoked or cancelled. + **/ + scheduleLeaveDelegators: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Request to revoke an existing delegation. If successful, the delegation is scheduled + * to be allowed to be revoked via the `execute_delegation_request` extrinsic. + **/ + scheduleRevokeDelegation: AugmentedSubmittable< + (collator: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Sets the auto-compounding reward percentage for a delegation. + **/ + setAutoCompound: AugmentedSubmittable< + ( + candidate: AccountId32 | string | Uint8Array, + value: Percent | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [AccountId32, Percent] + >; + /** + * Set blocks per round + * - if called with `new` less than length of current round, will transition immediately + * in the next block + * - also updates per-round inflation config + **/ + setBlocksPerRound: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Set the commission for all collators + **/ + setCollatorCommission: AugmentedSubmittable< + (updated: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Perbill] + >; + /** + * Set the annual inflation rate to derive per-round inflation + **/ + setInflation: AugmentedSubmittable< + ( + schedule: + | ({ + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct) + | { min?: any; ideal?: any; max?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [ + { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct + ] + >; + /** + * Set the account that will hold funds set aside for parachain bond + **/ + setParachainBondAccount: AugmentedSubmittable< + (updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, + [AccountId32] + >; + /** + * Set the percent of inflation set aside for parachain bond + **/ + setParachainBondReservePercent: AugmentedSubmittable< + (updated: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [Percent] + >; + /** + * Set the expectations for total staked. These expectations determine the issuance for + * the round according to logic in `fn compute_issuance` + **/ + setStakingExpectations: AugmentedSubmittable< + ( + expectations: + | ({ + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct) + | { min?: any; ideal?: any; max?: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [ + { + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct + ] + >; + /** + * Set the total number of collator candidates selected per round + * - changes are not applied until the start of the next round + **/ + setTotalSelected: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + parachainSystem: { + authorizeUpgrade: AugmentedSubmittable< + (codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + enactAuthorizedUpgrade: AugmentedSubmittable< + (code: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Set the current validation data. + * + * This should be invoked exactly once per block. It will panic at the finalization + * phase if the call was not invoked. + * + * The dispatch origin for this call must be `Inherent` + * + * As a side effect, this function upgrades the current validation function + * if the appropriate time has come. + **/ + setValidationData: AugmentedSubmittable< + ( + data: + | CumulusPrimitivesParachainInherentParachainInherentData + | { + validationData?: any; + relayChainState?: any; + downwardMessages?: any; + horizontalMessages?: any; + } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [CumulusPrimitivesParachainInherentParachainInherentData] + >; + sudoSendUpwardMessage: AugmentedSubmittable< + (message: Bytes | string | Uint8Array) => SubmittableExtrinsic, + [Bytes] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + polkadotXcm: { + /** + * Execute an XCM message from a local, signed, origin. + * + * An event is deposited indicating whether `msg` could be executed completely or only + * partially. + * + * No more than `max_weight` will be used in its attempted execution. If this is less than the + * maximum amount of weight that the message could take to be executed, then no execution + * attempt will be made. + * + * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully + * to completion; only that *some* of it was executed. + **/ + execute: AugmentedSubmittable< + ( + message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, + maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedXcm, SpWeightsWeightV2Weight] + >; + /** + * Set a safe XCM version (the version that XCM should be encoded with if the most recent + * version a destination can accept is unknown). + * + * - `origin`: Must be Root. + * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. + **/ + forceDefaultXcmVersion: AugmentedSubmittable< + (maybeXcmVersion: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, + [Option] + >; + /** + * Ask a location to notify us regarding their XCM version and any changes to it. + * + * - `origin`: Must be Root. + * - `location`: The location to which we should subscribe for XCM version notifications. + **/ + forceSubscribeVersionNotify: AugmentedSubmittable< + ( + location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation] + >; + /** + * Require that a particular destination should no longer notify us regarding any XCM + * version changes. + * + * - `origin`: Must be Root. + * - `location`: The location to which we are currently subscribed for XCM version + * notifications which we no longer desire. + **/ + forceUnsubscribeVersionNotify: AugmentedSubmittable< + ( + location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation] + >; + /** + * Extoll that a particular destination can be communicated with through a particular + * version of XCM. + * + * - `origin`: Must be Root. + * - `location`: The destination that is being described. + * - `xcm_version`: The latest version of XCM that `location` supports. + **/ + forceXcmVersion: AugmentedSubmittable< + ( + location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, + xcmVersion: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [XcmV3MultiLocation, u32] + >; + /** + * Transfer some assets from the local chain to the sovereign account of a destination + * chain and forward a notification XCM. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight + * is needed than `weight_limit`, then the operation will fail and the assets send may be + * at risk. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the + * `dest` side. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. + **/ + limitedReserveTransferAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array, + weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit] + >; + /** + * Teleport some assets from the local chain to some destination chain. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight + * is needed than `weight_limit`, then the operation will fail and the assets send may be + * at risk. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the + * `dest` side. May not be empty. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. + **/ + limitedTeleportAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array, + weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit] + >; + /** + * Transfer some assets from the local chain to the sovereign account of a destination + * chain and forward a notification XCM. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, + * with all fees taken as needed from the asset. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the + * `dest` side. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + **/ + reserveTransferAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32] + >; + send: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedXcm] + >; + /** + * Teleport some assets from the local chain to some destination chain. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, + * with all fees taken as needed from the asset. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send + * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be + * an `AccountId32` value. + * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the + * `dest` side. May not be empty. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + **/ + teleportAssets: AugmentedSubmittable< + ( + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeAssetItem: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32] + >; + /** + * 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: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, RococoParachainRuntimeProxyType, 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: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array, + index: u16 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [RococoParachainRuntimeProxyType, 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: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + index: u16 | AnyNumber | Uint8Array, + height: Compact | AnyNumber | Uint8Array, + extIndex: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, RococoParachainRuntimeProxyType, 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 + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | 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 + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | 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: + | RococoParachainRuntimeProxyType + | 'Any' + | 'NonTransfer' + | 'CancelProxy' + | 'Collator' + | 'Governance' + | number + | Uint8Array, + delay: u32 | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, RococoParachainRuntimeProxyType, 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; + }; + session: { + /** + * Removes any session key(s) of the function caller. + * + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be Signed and the account must be either be + * convertible to a validator ID using the chain's typical addressing system (this usually + * means being a controller account) or directly convertible into a validator ID (which + * usually means being a stash account). + * + * ## Complexity + * - `O(1)` in number of key types. Actual cost depends on the number of length of + * `T::Keys::key_ids()` which is fixed. + **/ + purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Sets the session key(s) of the function caller to `keys`. + * Allows an account to set its session key prior to becoming a validator. + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be signed. + * + * ## Complexity + * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is + * fixed. + **/ + setKeys: AugmentedSubmittable< + ( + keys: RococoParachainRuntimeSessionKeys | { aura?: any } | string | Uint8Array, + proof: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [RococoParachainRuntimeSessionKeys, Bytes] + >; + /** + * 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; + }; + technicalCommittee: { + /** + * 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; + }; + technicalCommitteeMembership: { + /** + * Add a member `who` to the set. + * + * May only be called from `T::AddOrigin`. + **/ + addMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out the sending member for some other key `new`. + * + * May only be called from `Signed` origin of a current member. + * + * Prime membership is passed from the origin account to `new`, if extant. + **/ + changeKey: AugmentedSubmittable< + ( + updated: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Remove the prime member if it exists. + * + * May only be called from `T::PrimeOrigin`. + **/ + clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Remove a member `who` from the set. + * + * May only be called from `T::RemoveOrigin`. + **/ + removeMember: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Change the membership to a new set, disregarding the existing membership. Be nice and + * pass `members` pre-sorted. + * + * May only be called from `T::ResetOrigin`. + **/ + resetMembers: AugmentedSubmittable< + (members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, + [Vec] + >; + /** + * Set the prime member. Must be a current member. + * + * May only be called from `T::PrimeOrigin`. + **/ + setPrime: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress] + >; + /** + * Swap out one member `remove` for another `add`. + * + * May only be called from `T::SwapOrigin`. + * + * Prime membership is *not* passed from `remove` to `add`, if extant. + **/ + swapMember: AugmentedSubmittable< + ( + remove: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + add: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + teeracle: { + addToWhitelist: AugmentedSubmittable< + ( + dataSource: Bytes | string | Uint8Array, + mrenclave: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, U8aFixed] + >; + removeFromWhitelist: AugmentedSubmittable< + ( + dataSource: Bytes | string | Uint8Array, + mrenclave: U8aFixed | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, U8aFixed] + >; + updateExchangeRate: AugmentedSubmittable< + ( + dataSource: Bytes | string | Uint8Array, + tradingPair: Bytes | string | Uint8Array, + newValue: + | Option + | null + | Uint8Array + | SubstrateFixedFixedU64 + | { bits?: any } + | string + ) => SubmittableExtrinsic, + [Bytes, Bytes, Option] + >; + updateOracle: AugmentedSubmittable< + ( + oracleName: Bytes | string | Uint8Array, + dataSource: Bytes | string | Uint8Array, + newBlob: Bytes | string | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, Bytes, 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; + }; + tips: { + /** + * Close and payout a tip. + * + * The dispatch origin for this call must be _Signed_. + * + * The tip identified by `hash` must have finished its countdown period. + * + * - `hash`: The identity of the open tip for which a tip value is declared. This is formed + * as the hash of the tuple of the original tip `reason` and the beneficiary account ID. + * + * ## Complexity + * - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T` + * is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on + * the implementation of `T::Tippers`. + **/ + closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; + /** + * Report something `reason` that deserves a tip and claim any eventual the finder's fee. + * + * The dispatch origin for this call must be _Signed_. + * + * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as + * `DataDepositPerByte` for each byte in `reason`. + * + * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be + * a UTF-8-encoded URL. + * - `who`: The account which should be credited for the tip. + * + * Emits `NewTip` if successful. + * + * ## Complexity + * - `O(R)` where `R` length of `reason`. + * - encoding and hashing of 'reason' + **/ + reportAwesome: AugmentedSubmittable< + ( + reason: Bytes | string | Uint8Array, + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, MultiAddress] + >; + /** + * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping. + * + * If successful, the original deposit will be unreserved. + * + * The dispatch origin for this call must be _Signed_ and the tip identified by `hash` + * must have been reported by the signing account through `report_awesome` (and not + * through `tip_new`). + * + * - `hash`: The identity of the open tip for which a tip value is declared. This is formed + * as the hash of the tuple of the original tip `reason` and the beneficiary account ID. + * + * Emits `TipRetracted` if successful. + * + * ## Complexity + * - `O(1)` + * - Depends on the length of `T::Hash` which is fixed. + **/ + retractTip: AugmentedSubmittable< + (hash: H256 | string | Uint8Array) => SubmittableExtrinsic, + [H256] + >; + /** + * Remove and slash an already-open tip. + * + * May only be called from `T::RejectOrigin`. + * + * As a result, the finder is slashed and the deposits are lost. + * + * Emits `TipSlashed` if successful. + * + * ## Complexity + * - O(1). + **/ + slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; + /** + * Declare a tip value for an already-open tip. + * + * The dispatch origin for this call must be _Signed_ and the signing account must be a + * member of the `Tippers` set. + * + * - `hash`: The identity of the open tip for which a tip value is declared. This is formed + * as the hash of the tuple of the hash of the original tip `reason` and the beneficiary + * account ID. + * - `tip_value`: The amount of tip that the sender would like to give. The median tip + * value of active tippers will be given to the `who`. + * + * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period + * has started. + * + * ## Complexity + * - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert + * tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`. + * The actual cost depends on the implementation of `T::Tippers`. + * + * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it + * is weighted as if almost full i.e of length `T-1`. + **/ + tip: AugmentedSubmittable< + ( + hash: H256 | string | Uint8Array, + tipValue: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [H256, Compact] + >; + /** + * Give a tip for something new; no finder's fee will be taken. + * + * The dispatch origin for this call must be _Signed_ and the signing account must be a + * member of the `Tippers` set. + * + * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be + * a UTF-8-encoded URL. + * - `who`: The account which should be credited for the tip. + * - `tip_value`: The amount of tip that the sender would like to give. The median tip + * value of active tippers will be given to the `who`. + * + * Emits `NewTip` if successful. + * + * ## Complexity + * - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers. + * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by + * `ContainsLengthBound`. The actual cost depends on the implementation of + * `T::Tippers`. + * - `O(R)`: hashing and encoding of reason of length `R` + **/ + tipNew: AugmentedSubmittable< + ( + reason: Bytes | string | Uint8Array, + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + tipValue: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [Bytes, MultiAddress, Compact] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + tokens: { + /** + * Exactly as `transfer`, except the origin must be root and the source + * account may be specified. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The sender of the transfer. + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `amount`: free balance amount to tranfer. + **/ + 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, + currencyId: u128 | AnyNumber | Uint8Array, + amount: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, MultiAddress, u128, Compact] + >; + /** + * Set the balances of a given account. + * + * This will alter `FreeBalance` and `ReservedBalance` in storage. it + * will also decrease the total issuance of the system + * (`TotalIssuance`). If the new free or reserved balance is below the + * existential deposit, it will reap the `AccountInfo`. + * + * The dispatch origin for this call is `root`. + **/ + setBalance: AugmentedSubmittable< + ( + who: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + newFree: Compact | AnyNumber | Uint8Array, + newReserved: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, Compact, Compact] + >; + /** + * Transfer some liquid free balance to another account. + * + * `transfer` will set the `FreeBalance` of the sender and receiver. + * It will decrease the total issuance of the system by the + * `TransferFee`. 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. + * + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `amount`: free balance amount to tranfer. + **/ + transfer: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + amount: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, Compact] + >; + /** + * Transfer all remaining balance to the given 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 for this call must be `Signed` by the + * transactor. + * + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `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). + **/ + transferAll: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + keepAlive: bool | boolean | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, 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. + * + * The dispatch origin for this call must be `Signed` by the + * transactor. + * + * - `dest`: The recipient of the transfer. + * - `currency_id`: currency type. + * - `amount`: free balance amount to tranfer. + **/ + transferKeepAlive: AugmentedSubmittable< + ( + dest: + | MultiAddress + | { Id: any } + | { Index: any } + | { Raw: any } + | { Address32: any } + | { Address20: any } + | string + | Uint8Array, + currencyId: u128 | AnyNumber | Uint8Array, + amount: Compact | AnyNumber | Uint8Array + ) => SubmittableExtrinsic, + [MultiAddress, u128, 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: + | RococoParachainRuntimeOriginCaller + | { system: any } + | { Void: any } + | { Council: any } + | { TechnicalCommittee: any } + | { PolkadotXcm: any } + | { CumulusXcm: any } + | string + | Uint8Array, + call: Call | IMethod | string | Uint8Array + ) => SubmittableExtrinsic, + [RococoParachainRuntimeOriginCaller, 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; + }; + xcmpQueue: { + /** + * Resumes all XCM executions for the XCMP queue. + * + * Note that this function doesn't change the status of the in/out bound channels. + * + * - `origin`: Must pass `ControllerOrigin`. + **/ + resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Services a single overweight XCM. + * + * - `origin`: Must pass `ExecuteOverweightOrigin`. + * - `index`: The index of the overweight XCM to service + * - `weight_limit`: The amount of weight that XCM execution may take. + * + * Errors: + * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map. + * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format. + * - `WeightOverLimit`: XCM execution may use greater `weight_limit`. + * + * Events: + * - `OverweightServiced`: On success. + **/ + serviceOverweight: AugmentedSubmittable< + ( + index: u64 | AnyNumber | Uint8Array, + weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [u64, SpWeightsWeightV2Weight] + >; + /** + * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. + * + * - `origin`: Must pass `ControllerOrigin`. + **/ + suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * Overwrites the number of pages of messages which must be in the queue after which we drop any further + * messages from the channel. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.drop_threshold` + **/ + updateDropThreshold: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Overwrites the number of pages of messages which the queue must be reduced to before it signals that + * message sending may recommence after it has been suspended. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.resume_threshold` + **/ + updateResumeThreshold: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Overwrites the number of pages of messages which must be in the queue for the other side to be told to + * suspend their sending. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.suspend_value` + **/ + updateSuspendThreshold: AugmentedSubmittable< + (updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, + [u32] + >; + /** + * Overwrites the amount of remaining weight under which we stop processing messages. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.threshold_weight` + **/ + updateThresholdWeight: AugmentedSubmittable< + ( + updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [SpWeightsWeightV2Weight] + >; + /** + * Overwrites the speed to which the available weight approaches the maximum weight. + * A lower number results in a faster progression. A value of 1 makes the entire weight available initially. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`. + **/ + updateWeightRestrictDecay: AugmentedSubmittable< + ( + updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [SpWeightsWeightV2Weight] + >; + /** + * Overwrite the maximum amount of weight any individual message may consume. + * Messages above this weight go into the overweight queue and may only be serviced explicitly. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`. + **/ + updateXcmpMaxIndividualWeight: AugmentedSubmittable< + ( + updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [SpWeightsWeightV2Weight] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + xTokens: { + /** + * Transfer native currencies. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transfer: AugmentedSubmittable< + ( + currencyId: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, u128, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer `MultiAsset`. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMultiasset: AugmentedSubmittable< + ( + asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer several `MultiAsset` specifying the item to be used as fee + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee_item` is index of the MultiAssets that we want to use for + * payment + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMultiassets: AugmentedSubmittable< + ( + assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, + feeItem: u32 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiAssets, u32, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer `MultiAsset` specifying the fee and amount as separate. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee` is the multiasset to be spent to pay for execution in + * destination chain. Both fee and amount will be subtracted form the + * callers balance For now we only accept fee and asset having the same + * `MultiLocation` id. + * + * If `fee` is not high enough to cover for the execution costs in the + * destination chain, then the assets will be trapped in the + * destination chain + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMultiassetWithFee: AugmentedSubmittable< + ( + asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, + fee: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [XcmVersionedMultiAsset, XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer several currencies specifying the item to be used as fee + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee_item` is index of the currencies tuple that we want to use for + * payment + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferMulticurrencies: AugmentedSubmittable< + ( + currencies: + | Vec> + | [ + ( + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array + ), + u128 | AnyNumber | Uint8Array + ][], + feeItem: u32 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [Vec>, u32, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Transfer native currencies specifying the fee and amount as + * separate. + * + * `dest_weight_limit` is the weight for XCM execution on the dest + * chain, and it would be charged from the transferred assets. If set + * below requirements, the execution may fail and assets wouldn't be + * received. + * + * `fee` is the amount to be spent to pay for execution in destination + * chain. Both fee and amount will be subtracted form the callers + * balance. + * + * If `fee` is not high enough to cover for the execution costs in the + * destination chain, then the assets will be trapped in the + * destination chain + * + * It's a no-op if any error on local XCM execution or message sending. + * Note sending assets out per se doesn't guarantee they would be + * received. Receiving depends on if the XCM message could be delivered + * by the network, and if the receiving chain would handle + * messages correctly. + **/ + transferWithFee: AugmentedSubmittable< + ( + currencyId: + | RuntimeCommonXcmImplCurrencyId + | { SelfReserve: any } + | { ParachainReserve: any } + | string + | Uint8Array, + amount: u128 | AnyNumber | Uint8Array, + fee: u128 | AnyNumber | Uint8Array, + dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, + destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array + ) => SubmittableExtrinsic, + [RuntimeCommonXcmImplCurrencyId, u128, u128, XcmVersionedMultiLocation, XcmV3WeightLimit] + >; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; + } // AugmentedSubmittables +} // declare module diff --git a/tee-worker/ts-tests/interfaces/augment-api.ts b/tee-worker/ts-tests/parachain-interfaces/augment-api.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-api.ts diff --git a/tee-worker/ts-tests/interfaces/augment-types.ts b/tee-worker/ts-tests/parachain-interfaces/augment-types.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-types.ts rename to tee-worker/ts-tests/parachain-interfaces/augment-types.ts diff --git a/tee-worker/ts-tests/interfaces/definitions.ts b/tee-worker/ts-tests/parachain-interfaces/definitions.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/definitions.ts rename to tee-worker/ts-tests/parachain-interfaces/definitions.ts diff --git a/tee-worker/ts-tests/interfaces/identity/definitions.ts b/tee-worker/ts-tests/parachain-interfaces/identity/definitions.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/identity/definitions.ts rename to tee-worker/ts-tests/parachain-interfaces/identity/definitions.ts diff --git a/tee-worker/ts-tests/interfaces/identity/index.ts b/tee-worker/ts-tests/parachain-interfaces/identity/index.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/identity/index.ts rename to tee-worker/ts-tests/parachain-interfaces/identity/index.ts diff --git a/tee-worker/ts-tests/interfaces/identity/types.ts b/tee-worker/ts-tests/parachain-interfaces/identity/types.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/identity/types.ts rename to tee-worker/ts-tests/parachain-interfaces/identity/types.ts diff --git a/tee-worker/ts-tests/interfaces/index.ts b/tee-worker/ts-tests/parachain-interfaces/index.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/index.ts rename to tee-worker/ts-tests/parachain-interfaces/index.ts diff --git a/tee-worker/ts-tests/parachain-interfaces/lookup.ts b/tee-worker/ts-tests/parachain-interfaces/lookup.ts new file mode 100644 index 0000000000..e54c630ba5 --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/lookup.ts @@ -0,0 +1,5814 @@ +// 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_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]>', + }, + }, + }, + /** + * Lookup34: pallet_utility::pallet::Event + **/ + PalletUtilityEvent: { + _enum: { + BatchInterrupted: { + index: 'u32', + error: 'SpRuntimeDispatchError', + }, + BatchCompleted: 'Null', + BatchCompletedWithErrors: 'Null', + ItemCompleted: 'Null', + ItemFailed: { + error: 'SpRuntimeDispatchError', + }, + DispatchedAs: { + result: 'Result', + }, + }, + }, + /** + * Lookup35: 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]', + }, + }, + }, + /** + * Lookup36: pallet_multisig::Timepoint + **/ + PalletMultisigTimepoint: { + height: 'u32', + index: 'u32', + }, + /** + * Lookup37: pallet_proxy::pallet::Event + **/ + PalletProxyEvent: { + _enum: { + ProxyExecuted: { + result: 'Result', + }, + PureCreated: { + pure: 'AccountId32', + who: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + disambiguationIndex: 'u16', + }, + Announced: { + real: 'AccountId32', + proxy: 'AccountId32', + callHash: 'H256', + }, + ProxyAdded: { + delegator: 'AccountId32', + delegatee: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + ProxyRemoved: { + delegator: 'AccountId32', + delegatee: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + }, + }, + /** + * Lookup38: rococo_parachain_runtime::ProxyType + **/ + RococoParachainRuntimeProxyType: { + _enum: ['Any', 'NonTransfer', 'CancelProxy', 'Collator', 'Governance'], + }, + /** + * Lookup40: pallet_preimage::pallet::Event + **/ + PalletPreimageEvent: { + _enum: { + Noted: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Requested: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Cleared: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup41: 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', + }, + }, + }, + /** + * Lookup42: frame_support::traits::tokens::misc::BalanceStatus + **/ + FrameSupportTokensMiscBalanceStatus: { + _enum: ['Free', 'Reserved'], + }, + /** + * Lookup43: pallet_vesting::pallet::Event + **/ + PalletVestingEvent: { + _enum: { + VestingUpdated: { + account: 'AccountId32', + unvested: 'u128', + }, + VestingCompleted: { + account: 'AccountId32', + }, + }, + }, + /** + * Lookup44: pallet_transaction_payment::pallet::Event + **/ + PalletTransactionPaymentEvent: { + _enum: { + TransactionFeePaid: { + who: 'AccountId32', + actualFee: 'u128', + tip: 'u128', + }, + }, + }, + /** + * Lookup45: 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', + }, + }, + }, + /** + * Lookup46: pallet_democracy::pallet::Event + **/ + PalletDemocracyEvent: { + _enum: { + Proposed: { + proposalIndex: 'u32', + deposit: 'u128', + }, + Tabled: { + proposalIndex: 'u32', + deposit: 'u128', + }, + ExternalTabled: 'Null', + Started: { + refIndex: 'u32', + threshold: 'PalletDemocracyVoteThreshold', + }, + Passed: { + refIndex: 'u32', + }, + NotPassed: { + refIndex: 'u32', + }, + Cancelled: { + refIndex: 'u32', + }, + Delegated: { + who: 'AccountId32', + target: 'AccountId32', + }, + Undelegated: { + account: 'AccountId32', + }, + Vetoed: { + who: 'AccountId32', + proposalHash: 'H256', + until: 'u32', + }, + Blacklisted: { + proposalHash: 'H256', + }, + Voted: { + voter: 'AccountId32', + refIndex: 'u32', + vote: 'PalletDemocracyVoteAccountVote', + }, + Seconded: { + seconder: 'AccountId32', + propIndex: 'u32', + }, + ProposalCanceled: { + propIndex: 'u32', + }, + MetadataSet: { + _alias: { + hash_: 'hash', + }, + owner: 'PalletDemocracyMetadataOwner', + hash_: 'H256', + }, + MetadataCleared: { + _alias: { + hash_: 'hash', + }, + owner: 'PalletDemocracyMetadataOwner', + hash_: 'H256', + }, + MetadataTransferred: { + _alias: { + hash_: 'hash', + }, + prevOwner: 'PalletDemocracyMetadataOwner', + owner: 'PalletDemocracyMetadataOwner', + hash_: 'H256', + }, + }, + }, + /** + * Lookup47: pallet_democracy::vote_threshold::VoteThreshold + **/ + PalletDemocracyVoteThreshold: { + _enum: ['SuperMajorityApprove', 'SuperMajorityAgainst', 'SimpleMajority'], + }, + /** + * Lookup48: pallet_democracy::vote::AccountVote + **/ + PalletDemocracyVoteAccountVote: { + _enum: { + Standard: { + vote: 'Vote', + balance: 'u128', + }, + Split: { + aye: 'u128', + nay: 'u128', + }, + }, + }, + /** + * Lookup50: pallet_democracy::types::MetadataOwner + **/ + PalletDemocracyMetadataOwner: { + _enum: { + External: 'Null', + Proposal: 'u32', + Referendum: 'u32', + }, + }, + /** + * Lookup51: 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', + }, + }, + }, + /** + * Lookup53: pallet_membership::pallet::Event + **/ + PalletMembershipEvent: { + _enum: ['MemberAdded', 'MemberRemoved', 'MembersSwapped', 'MembersReset', 'KeyChanged', 'Dummy'], + }, + /** + * Lookup56: pallet_bounties::pallet::Event + **/ + PalletBountiesEvent: { + _enum: { + BountyProposed: { + index: 'u32', + }, + BountyRejected: { + index: 'u32', + bond: 'u128', + }, + BountyBecameActive: { + index: 'u32', + }, + BountyAwarded: { + index: 'u32', + beneficiary: 'AccountId32', + }, + BountyClaimed: { + index: 'u32', + payout: 'u128', + beneficiary: 'AccountId32', + }, + BountyCanceled: { + index: 'u32', + }, + BountyExtended: { + index: 'u32', + }, + }, + }, + /** + * Lookup57: pallet_tips::pallet::Event + **/ + PalletTipsEvent: { + _enum: { + NewTip: { + tipHash: 'H256', + }, + TipClosing: { + tipHash: 'H256', + }, + TipClosed: { + tipHash: 'H256', + who: 'AccountId32', + payout: 'u128', + }, + TipRetracted: { + tipHash: 'H256', + }, + TipSlashed: { + tipHash: 'H256', + finder: 'AccountId32', + deposit: 'u128', + }, + }, + }, + /** + * Lookup58: pallet_identity::pallet::Event + **/ + PalletIdentityEvent: { + _enum: { + IdentitySet: { + who: 'AccountId32', + }, + IdentityCleared: { + who: 'AccountId32', + deposit: 'u128', + }, + IdentityKilled: { + who: 'AccountId32', + deposit: 'u128', + }, + JudgementRequested: { + who: 'AccountId32', + registrarIndex: 'u32', + }, + JudgementUnrequested: { + who: 'AccountId32', + registrarIndex: 'u32', + }, + JudgementGiven: { + target: 'AccountId32', + registrarIndex: 'u32', + }, + RegistrarAdded: { + registrarIndex: 'u32', + }, + SubIdentityAdded: { + sub: 'AccountId32', + main: 'AccountId32', + deposit: 'u128', + }, + SubIdentityRemoved: { + sub: 'AccountId32', + main: 'AccountId32', + deposit: 'u128', + }, + SubIdentityRevoked: { + sub: 'AccountId32', + main: 'AccountId32', + deposit: 'u128', + }, + }, + }, + /** + * Lookup59: cumulus_pallet_parachain_system::pallet::Event + **/ + CumulusPalletParachainSystemEvent: { + _enum: { + ValidationFunctionStored: 'Null', + ValidationFunctionApplied: { + relayChainBlockNum: 'u32', + }, + ValidationFunctionDiscarded: 'Null', + UpgradeAuthorized: { + codeHash: 'H256', + }, + DownwardMessagesReceived: { + count: 'u32', + }, + DownwardMessagesProcessed: { + weightUsed: 'SpWeightsWeightV2Weight', + dmqHead: 'H256', + }, + UpwardMessageSent: { + messageHash: 'Option<[u8;32]>', + }, + }, + }, + /** + * Lookup60: pallet_session::pallet::Event + **/ + PalletSessionEvent: { + _enum: { + NewSession: { + sessionIndex: 'u32', + }, + }, + }, + /** + * Lookup61: pallet_parachain_staking::pallet::Event + **/ + PalletParachainStakingEvent: { + _enum: { + NewRound: { + startingBlock: 'u32', + round: 'u32', + selectedCollatorsNumber: 'u32', + totalBalance: 'u128', + }, + JoinedCollatorCandidates: { + account: 'AccountId32', + amountLocked: 'u128', + newTotalAmtLocked: 'u128', + }, + CollatorChosen: { + round: 'u32', + collatorAccount: 'AccountId32', + totalExposedAmount: 'u128', + }, + CandidateBondLessRequested: { + candidate: 'AccountId32', + amountToDecrease: 'u128', + executeRound: 'u32', + }, + CandidateBondedMore: { + candidate: 'AccountId32', + amount: 'u128', + newTotalBond: 'u128', + }, + CandidateBondedLess: { + candidate: 'AccountId32', + amount: 'u128', + newBond: 'u128', + }, + CandidateWentOffline: { + candidate: 'AccountId32', + }, + CandidateBackOnline: { + candidate: 'AccountId32', + }, + CandidateScheduledExit: { + exitAllowedRound: 'u32', + candidate: 'AccountId32', + scheduledExit: 'u32', + }, + CancelledCandidateExit: { + candidate: 'AccountId32', + }, + CancelledCandidateBondLess: { + candidate: 'AccountId32', + amount: 'u128', + executeRound: 'u32', + }, + CandidateLeft: { + exCandidate: 'AccountId32', + unlockedAmount: 'u128', + newTotalAmtLocked: 'u128', + }, + DelegationDecreaseScheduled: { + delegator: 'AccountId32', + candidate: 'AccountId32', + amountToDecrease: 'u128', + executeRound: 'u32', + }, + DelegationIncreased: { + delegator: 'AccountId32', + candidate: 'AccountId32', + amount: 'u128', + inTop: 'bool', + }, + DelegationDecreased: { + delegator: 'AccountId32', + candidate: 'AccountId32', + amount: 'u128', + inTop: 'bool', + }, + DelegatorExitScheduled: { + round: 'u32', + delegator: 'AccountId32', + scheduledExit: 'u32', + }, + DelegationRevocationScheduled: { + round: 'u32', + delegator: 'AccountId32', + candidate: 'AccountId32', + scheduledExit: 'u32', + }, + DelegatorLeft: { + delegator: 'AccountId32', + unstakedAmount: 'u128', + }, + DelegationRevoked: { + delegator: 'AccountId32', + candidate: 'AccountId32', + unstakedAmount: 'u128', + }, + DelegationKicked: { + delegator: 'AccountId32', + candidate: 'AccountId32', + unstakedAmount: 'u128', + }, + DelegatorExitCancelled: { + delegator: 'AccountId32', + }, + CancelledDelegationRequest: { + delegator: 'AccountId32', + cancelledRequest: 'PalletParachainStakingDelegationRequestsCancelledScheduledRequest', + collator: 'AccountId32', + }, + Delegation: { + delegator: 'AccountId32', + lockedAmount: 'u128', + candidate: 'AccountId32', + delegatorPosition: 'PalletParachainStakingDelegatorAdded', + autoCompound: 'Percent', + }, + DelegatorLeftCandidate: { + delegator: 'AccountId32', + candidate: 'AccountId32', + unstakedAmount: 'u128', + totalCandidateStaked: 'u128', + }, + Rewarded: { + account: 'AccountId32', + rewards: 'u128', + }, + ReservedForParachainBond: { + account: 'AccountId32', + value: 'u128', + }, + ParachainBondAccountSet: { + _alias: { + new_: 'new', + }, + old: 'AccountId32', + new_: 'AccountId32', + }, + ParachainBondReservePercentSet: { + _alias: { + new_: 'new', + }, + old: 'Percent', + new_: 'Percent', + }, + InflationSet: { + annualMin: 'Perbill', + annualIdeal: 'Perbill', + annualMax: 'Perbill', + roundMin: 'Perbill', + roundIdeal: 'Perbill', + roundMax: 'Perbill', + }, + StakeExpectationsSet: { + expectMin: 'u128', + expectIdeal: 'u128', + expectMax: 'u128', + }, + TotalSelectedSet: { + _alias: { + new_: 'new', + }, + old: 'u32', + new_: 'u32', + }, + CollatorCommissionSet: { + _alias: { + new_: 'new', + }, + old: 'Perbill', + new_: 'Perbill', + }, + BlocksPerRoundSet: { + _alias: { + new_: 'new', + }, + currentRound: 'u32', + firstBlock: 'u32', + old: 'u32', + new_: 'u32', + newPerRoundInflationMin: 'Perbill', + newPerRoundInflationIdeal: 'Perbill', + newPerRoundInflationMax: 'Perbill', + }, + CandidateWhiteListAdded: { + candidate: 'AccountId32', + }, + CandidateWhiteListRemoved: { + candidate: 'AccountId32', + }, + AutoCompoundSet: { + candidate: 'AccountId32', + delegator: 'AccountId32', + value: 'Percent', + }, + Compounded: { + candidate: 'AccountId32', + delegator: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup62: pallet_parachain_staking::delegation_requests::CancelledScheduledRequest + **/ + PalletParachainStakingDelegationRequestsCancelledScheduledRequest: { + whenExecutable: 'u32', + action: 'PalletParachainStakingDelegationRequestsDelegationAction', + }, + /** + * Lookup63: pallet_parachain_staking::delegation_requests::DelegationAction + **/ + PalletParachainStakingDelegationRequestsDelegationAction: { + _enum: { + Revoke: 'u128', + Decrease: 'u128', + }, + }, + /** + * Lookup64: pallet_parachain_staking::types::DelegatorAdded + **/ + PalletParachainStakingDelegatorAdded: { + _enum: { + AddedToTop: { + newTotal: 'u128', + }, + AddedToBottom: 'Null', + }, + }, + /** + * Lookup67: cumulus_pallet_xcmp_queue::pallet::Event + **/ + CumulusPalletXcmpQueueEvent: { + _enum: { + Success: { + messageHash: 'Option<[u8;32]>', + weight: 'SpWeightsWeightV2Weight', + }, + Fail: { + messageHash: 'Option<[u8;32]>', + error: 'XcmV3TraitsError', + weight: 'SpWeightsWeightV2Weight', + }, + BadVersion: { + messageHash: 'Option<[u8;32]>', + }, + BadFormat: { + messageHash: 'Option<[u8;32]>', + }, + XcmpMessageSent: { + messageHash: 'Option<[u8;32]>', + }, + OverweightEnqueued: { + sender: 'u32', + sentAt: 'u32', + index: 'u64', + required: 'SpWeightsWeightV2Weight', + }, + OverweightServiced: { + index: 'u64', + used: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup68: xcm::v3::traits::Error + **/ + XcmV3TraitsError: { + _enum: { + Overflow: 'Null', + Unimplemented: 'Null', + UntrustedReserveLocation: 'Null', + UntrustedTeleportLocation: 'Null', + LocationFull: 'Null', + LocationNotInvertible: 'Null', + BadOrigin: 'Null', + InvalidLocation: 'Null', + AssetNotFound: 'Null', + FailedToTransactAsset: 'Null', + NotWithdrawable: 'Null', + LocationCannotHold: 'Null', + ExceedsMaxMessageSize: 'Null', + DestinationUnsupported: 'Null', + Transport: 'Null', + Unroutable: 'Null', + UnknownClaim: 'Null', + FailedToDecode: 'Null', + MaxWeightInvalid: 'Null', + NotHoldingFees: 'Null', + TooExpensive: 'Null', + Trap: 'u64', + ExpectationFalse: 'Null', + PalletNotFound: 'Null', + NameMismatch: 'Null', + VersionIncompatible: 'Null', + HoldingWouldOverflow: 'Null', + ExportError: 'Null', + ReanchorFailed: 'Null', + NoDeal: 'Null', + FeesNotMet: 'Null', + LockError: 'Null', + NoPermission: 'Null', + Unanchored: 'Null', + NotDepositable: 'Null', + UnhandledXcmVersion: 'Null', + WeightLimitReached: 'SpWeightsWeightV2Weight', + Barrier: 'Null', + WeightNotComputable: 'Null', + ExceedsStackLimit: 'Null', + }, + }, + /** + * Lookup70: pallet_xcm::pallet::Event + **/ + PalletXcmEvent: { + _enum: { + Attempted: 'XcmV3TraitsOutcome', + Sent: '(XcmV3MultiLocation,XcmV3MultiLocation,XcmV3Xcm)', + UnexpectedResponse: '(XcmV3MultiLocation,u64)', + ResponseReady: '(u64,XcmV3Response)', + Notified: '(u64,u8,u8)', + NotifyOverweight: '(u64,u8,u8,SpWeightsWeightV2Weight,SpWeightsWeightV2Weight)', + NotifyDispatchError: '(u64,u8,u8)', + NotifyDecodeFailed: '(u64,u8,u8)', + InvalidResponder: '(XcmV3MultiLocation,u64,Option)', + InvalidResponderVersion: '(XcmV3MultiLocation,u64)', + ResponseTaken: 'u64', + AssetsTrapped: '(H256,XcmV3MultiLocation,XcmVersionedMultiAssets)', + VersionChangeNotified: '(XcmV3MultiLocation,u32,XcmV3MultiassetMultiAssets)', + SupportedVersionChanged: '(XcmV3MultiLocation,u32)', + NotifyTargetSendFail: '(XcmV3MultiLocation,u64,XcmV3TraitsError)', + NotifyTargetMigrationFail: '(XcmVersionedMultiLocation,u64)', + InvalidQuerierVersion: '(XcmV3MultiLocation,u64)', + InvalidQuerier: '(XcmV3MultiLocation,u64,XcmV3MultiLocation,Option)', + VersionNotifyStarted: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + VersionNotifyRequested: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + VersionNotifyUnrequested: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + FeesPaid: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', + AssetsClaimed: '(H256,XcmV3MultiLocation,XcmVersionedMultiAssets)', + }, + }, + /** + * Lookup71: xcm::v3::traits::Outcome + **/ + XcmV3TraitsOutcome: { + _enum: { + Complete: 'SpWeightsWeightV2Weight', + Incomplete: '(SpWeightsWeightV2Weight,XcmV3TraitsError)', + Error: 'XcmV3TraitsError', + }, + }, + /** + * Lookup72: xcm::v3::multilocation::MultiLocation + **/ + XcmV3MultiLocation: { + parents: 'u8', + interior: 'XcmV3Junctions', + }, + /** + * Lookup73: xcm::v3::junctions::Junctions + **/ + XcmV3Junctions: { + _enum: { + Here: 'Null', + X1: 'XcmV3Junction', + X2: '(XcmV3Junction,XcmV3Junction)', + X3: '(XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X4: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X5: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X6: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X7: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + X8: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', + }, + }, + /** + * Lookup74: xcm::v3::junction::Junction + **/ + XcmV3Junction: { + _enum: { + Parachain: 'Compact', + AccountId32: { + network: 'Option', + id: '[u8;32]', + }, + AccountIndex64: { + network: 'Option', + index: 'Compact', + }, + AccountKey20: { + network: 'Option', + key: '[u8;20]', + }, + PalletInstance: 'u8', + GeneralIndex: 'Compact', + GeneralKey: { + length: 'u8', + data: '[u8;32]', + }, + OnlyChild: 'Null', + Plurality: { + id: 'XcmV3JunctionBodyId', + part: 'XcmV3JunctionBodyPart', + }, + GlobalConsensus: 'XcmV3JunctionNetworkId', + }, + }, + /** + * Lookup77: xcm::v3::junction::NetworkId + **/ + XcmV3JunctionNetworkId: { + _enum: { + ByGenesis: '[u8;32]', + ByFork: { + blockNumber: 'u64', + blockHash: '[u8;32]', + }, + Polkadot: 'Null', + Kusama: 'Null', + Westend: 'Null', + Rococo: 'Null', + Wococo: 'Null', + Ethereum: { + chainId: 'Compact', + }, + BitcoinCore: 'Null', + BitcoinCash: 'Null', + }, + }, + /** + * Lookup80: xcm::v3::junction::BodyId + **/ + XcmV3JunctionBodyId: { + _enum: { + Unit: 'Null', + Moniker: '[u8;4]', + Index: 'Compact', + Executive: 'Null', + Technical: 'Null', + Legislative: 'Null', + Judicial: 'Null', + Defense: 'Null', + Administration: 'Null', + Treasury: 'Null', + }, + }, + /** + * Lookup81: xcm::v3::junction::BodyPart + **/ + XcmV3JunctionBodyPart: { + _enum: { + Voice: 'Null', + Members: { + count: 'Compact', + }, + Fraction: { + nom: 'Compact', + denom: 'Compact', + }, + AtLeastProportion: { + nom: 'Compact', + denom: 'Compact', + }, + MoreThanProportion: { + nom: 'Compact', + denom: 'Compact', + }, + }, + }, + /** + * Lookup82: xcm::v3::Xcm + **/ + XcmV3Xcm: 'Vec', + /** + * Lookup84: xcm::v3::Instruction + **/ + XcmV3Instruction: { + _enum: { + WithdrawAsset: 'XcmV3MultiassetMultiAssets', + ReserveAssetDeposited: 'XcmV3MultiassetMultiAssets', + ReceiveTeleportedAsset: 'XcmV3MultiassetMultiAssets', + QueryResponse: { + queryId: 'Compact', + response: 'XcmV3Response', + maxWeight: 'SpWeightsWeightV2Weight', + querier: 'Option', + }, + TransferAsset: { + assets: 'XcmV3MultiassetMultiAssets', + beneficiary: 'XcmV3MultiLocation', + }, + TransferReserveAsset: { + assets: 'XcmV3MultiassetMultiAssets', + dest: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + Transact: { + originKind: 'XcmV2OriginKind', + requireWeightAtMost: 'SpWeightsWeightV2Weight', + call: 'XcmDoubleEncoded', + }, + HrmpNewChannelOpenRequest: { + sender: 'Compact', + maxMessageSize: 'Compact', + maxCapacity: 'Compact', + }, + HrmpChannelAccepted: { + recipient: 'Compact', + }, + HrmpChannelClosing: { + initiator: 'Compact', + sender: 'Compact', + recipient: 'Compact', + }, + ClearOrigin: 'Null', + DescendOrigin: 'XcmV3Junctions', + ReportError: 'XcmV3QueryResponseInfo', + DepositAsset: { + assets: 'XcmV3MultiassetMultiAssetFilter', + beneficiary: 'XcmV3MultiLocation', + }, + DepositReserveAsset: { + assets: 'XcmV3MultiassetMultiAssetFilter', + dest: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + ExchangeAsset: { + give: 'XcmV3MultiassetMultiAssetFilter', + want: 'XcmV3MultiassetMultiAssets', + maximal: 'bool', + }, + InitiateReserveWithdraw: { + assets: 'XcmV3MultiassetMultiAssetFilter', + reserve: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + InitiateTeleport: { + assets: 'XcmV3MultiassetMultiAssetFilter', + dest: 'XcmV3MultiLocation', + xcm: 'XcmV3Xcm', + }, + ReportHolding: { + responseInfo: 'XcmV3QueryResponseInfo', + assets: 'XcmV3MultiassetMultiAssetFilter', + }, + BuyExecution: { + fees: 'XcmV3MultiAsset', + weightLimit: 'XcmV3WeightLimit', + }, + RefundSurplus: 'Null', + SetErrorHandler: 'XcmV3Xcm', + SetAppendix: 'XcmV3Xcm', + ClearError: 'Null', + ClaimAsset: { + assets: 'XcmV3MultiassetMultiAssets', + ticket: 'XcmV3MultiLocation', + }, + Trap: 'Compact', + SubscribeVersion: { + queryId: 'Compact', + maxResponseWeight: 'SpWeightsWeightV2Weight', + }, + UnsubscribeVersion: 'Null', + BurnAsset: 'XcmV3MultiassetMultiAssets', + ExpectAsset: 'XcmV3MultiassetMultiAssets', + ExpectOrigin: 'Option', + ExpectError: 'Option<(u32,XcmV3TraitsError)>', + ExpectTransactStatus: 'XcmV3MaybeErrorCode', + QueryPallet: { + moduleName: 'Bytes', + responseInfo: 'XcmV3QueryResponseInfo', + }, + ExpectPallet: { + index: 'Compact', + name: 'Bytes', + moduleName: 'Bytes', + crateMajor: 'Compact', + minCrateMinor: 'Compact', + }, + ReportTransactStatus: 'XcmV3QueryResponseInfo', + ClearTransactStatus: 'Null', + UniversalOrigin: 'XcmV3Junction', + ExportMessage: { + network: 'XcmV3JunctionNetworkId', + destination: 'XcmV3Junctions', + xcm: 'XcmV3Xcm', + }, + LockAsset: { + asset: 'XcmV3MultiAsset', + unlocker: 'XcmV3MultiLocation', + }, + UnlockAsset: { + asset: 'XcmV3MultiAsset', + target: 'XcmV3MultiLocation', + }, + NoteUnlockable: { + asset: 'XcmV3MultiAsset', + owner: 'XcmV3MultiLocation', + }, + RequestUnlock: { + asset: 'XcmV3MultiAsset', + locker: 'XcmV3MultiLocation', + }, + SetFeesMode: { + jitWithdraw: 'bool', + }, + SetTopic: '[u8;32]', + ClearTopic: 'Null', + AliasOrigin: 'XcmV3MultiLocation', + UnpaidExecution: { + weightLimit: 'XcmV3WeightLimit', + checkOrigin: 'Option', + }, + }, + }, + /** + * Lookup85: xcm::v3::multiasset::MultiAssets + **/ + XcmV3MultiassetMultiAssets: 'Vec', + /** + * Lookup87: xcm::v3::multiasset::MultiAsset + **/ + XcmV3MultiAsset: { + id: 'XcmV3MultiassetAssetId', + fun: 'XcmV3MultiassetFungibility', + }, + /** + * Lookup88: xcm::v3::multiasset::AssetId + **/ + XcmV3MultiassetAssetId: { + _enum: { + Concrete: 'XcmV3MultiLocation', + Abstract: '[u8;32]', + }, + }, + /** + * Lookup89: xcm::v3::multiasset::Fungibility + **/ + XcmV3MultiassetFungibility: { + _enum: { + Fungible: 'Compact', + NonFungible: 'XcmV3MultiassetAssetInstance', + }, + }, + /** + * Lookup90: xcm::v3::multiasset::AssetInstance + **/ + XcmV3MultiassetAssetInstance: { + _enum: { + Undefined: 'Null', + Index: 'Compact', + Array4: '[u8;4]', + Array8: '[u8;8]', + Array16: '[u8;16]', + Array32: '[u8;32]', + }, + }, + /** + * Lookup93: xcm::v3::Response + **/ + XcmV3Response: { + _enum: { + Null: 'Null', + Assets: 'XcmV3MultiassetMultiAssets', + ExecutionResult: 'Option<(u32,XcmV3TraitsError)>', + Version: 'u32', + PalletsInfo: 'Vec', + DispatchResult: 'XcmV3MaybeErrorCode', + }, + }, + /** + * Lookup97: xcm::v3::PalletInfo + **/ + XcmV3PalletInfo: { + index: 'Compact', + name: 'Bytes', + moduleName: 'Bytes', + major: 'Compact', + minor: 'Compact', + patch: 'Compact', + }, + /** + * Lookup100: xcm::v3::MaybeErrorCode + **/ + XcmV3MaybeErrorCode: { + _enum: { + Success: 'Null', + Error: 'Bytes', + TruncatedError: 'Bytes', + }, + }, + /** + * Lookup103: xcm::v2::OriginKind + **/ + XcmV2OriginKind: { + _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm'], + }, + /** + * Lookup104: xcm::double_encoded::DoubleEncoded + **/ + XcmDoubleEncoded: { + encoded: 'Bytes', + }, + /** + * Lookup105: xcm::v3::QueryResponseInfo + **/ + XcmV3QueryResponseInfo: { + destination: 'XcmV3MultiLocation', + queryId: 'Compact', + maxWeight: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup106: xcm::v3::multiasset::MultiAssetFilter + **/ + XcmV3MultiassetMultiAssetFilter: { + _enum: { + Definite: 'XcmV3MultiassetMultiAssets', + Wild: 'XcmV3MultiassetWildMultiAsset', + }, + }, + /** + * Lookup107: xcm::v3::multiasset::WildMultiAsset + **/ + XcmV3MultiassetWildMultiAsset: { + _enum: { + All: 'Null', + AllOf: { + id: 'XcmV3MultiassetAssetId', + fun: 'XcmV3MultiassetWildFungibility', + }, + AllCounted: 'Compact', + AllOfCounted: { + id: 'XcmV3MultiassetAssetId', + fun: 'XcmV3MultiassetWildFungibility', + count: 'Compact', + }, + }, + }, + /** + * Lookup108: xcm::v3::multiasset::WildFungibility + **/ + XcmV3MultiassetWildFungibility: { + _enum: ['Fungible', 'NonFungible'], + }, + /** + * Lookup109: xcm::v3::WeightLimit + **/ + XcmV3WeightLimit: { + _enum: { + Unlimited: 'Null', + Limited: 'SpWeightsWeightV2Weight', + }, + }, + /** + * Lookup110: xcm::VersionedMultiAssets + **/ + XcmVersionedMultiAssets: { + _enum: { + __Unused0: 'Null', + V2: 'XcmV2MultiassetMultiAssets', + __Unused2: 'Null', + V3: 'XcmV3MultiassetMultiAssets', + }, + }, + /** + * Lookup111: xcm::v2::multiasset::MultiAssets + **/ + XcmV2MultiassetMultiAssets: 'Vec', + /** + * Lookup113: xcm::v2::multiasset::MultiAsset + **/ + XcmV2MultiAsset: { + id: 'XcmV2MultiassetAssetId', + fun: 'XcmV2MultiassetFungibility', + }, + /** + * Lookup114: xcm::v2::multiasset::AssetId + **/ + XcmV2MultiassetAssetId: { + _enum: { + Concrete: 'XcmV2MultiLocation', + Abstract: 'Bytes', + }, + }, + /** + * Lookup115: xcm::v2::multilocation::MultiLocation + **/ + XcmV2MultiLocation: { + parents: 'u8', + interior: 'XcmV2MultilocationJunctions', + }, + /** + * Lookup116: xcm::v2::multilocation::Junctions + **/ + XcmV2MultilocationJunctions: { + _enum: { + Here: 'Null', + X1: 'XcmV2Junction', + X2: '(XcmV2Junction,XcmV2Junction)', + X3: '(XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X4: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X5: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X6: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X7: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + X8: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', + }, + }, + /** + * Lookup117: xcm::v2::junction::Junction + **/ + XcmV2Junction: { + _enum: { + Parachain: 'Compact', + AccountId32: { + network: 'XcmV2NetworkId', + id: '[u8;32]', + }, + AccountIndex64: { + network: 'XcmV2NetworkId', + index: 'Compact', + }, + AccountKey20: { + network: 'XcmV2NetworkId', + key: '[u8;20]', + }, + PalletInstance: 'u8', + GeneralIndex: 'Compact', + GeneralKey: 'Bytes', + OnlyChild: 'Null', + Plurality: { + id: 'XcmV2BodyId', + part: 'XcmV2BodyPart', + }, + }, + }, + /** + * Lookup118: xcm::v2::NetworkId + **/ + XcmV2NetworkId: { + _enum: { + Any: 'Null', + Named: 'Bytes', + Polkadot: 'Null', + Kusama: 'Null', + }, + }, + /** + * Lookup120: xcm::v2::BodyId + **/ + XcmV2BodyId: { + _enum: { + Unit: 'Null', + Named: 'Bytes', + Index: 'Compact', + Executive: 'Null', + Technical: 'Null', + Legislative: 'Null', + Judicial: 'Null', + Defense: 'Null', + Administration: 'Null', + Treasury: 'Null', + }, + }, + /** + * Lookup121: xcm::v2::BodyPart + **/ + XcmV2BodyPart: { + _enum: { + Voice: 'Null', + Members: { + count: 'Compact', + }, + Fraction: { + nom: 'Compact', + denom: 'Compact', + }, + AtLeastProportion: { + nom: 'Compact', + denom: 'Compact', + }, + MoreThanProportion: { + nom: 'Compact', + denom: 'Compact', + }, + }, + }, + /** + * Lookup122: xcm::v2::multiasset::Fungibility + **/ + XcmV2MultiassetFungibility: { + _enum: { + Fungible: 'Compact', + NonFungible: 'XcmV2MultiassetAssetInstance', + }, + }, + /** + * Lookup123: xcm::v2::multiasset::AssetInstance + **/ + XcmV2MultiassetAssetInstance: { + _enum: { + Undefined: 'Null', + Index: 'Compact', + Array4: '[u8;4]', + Array8: '[u8;8]', + Array16: '[u8;16]', + Array32: '[u8;32]', + Blob: 'Bytes', + }, + }, + /** + * Lookup124: xcm::VersionedMultiLocation + **/ + XcmVersionedMultiLocation: { + _enum: { + __Unused0: 'Null', + V2: 'XcmV2MultiLocation', + __Unused2: 'Null', + V3: 'XcmV3MultiLocation', + }, + }, + /** + * Lookup125: cumulus_pallet_xcm::pallet::Event + **/ + CumulusPalletXcmEvent: { + _enum: { + InvalidFormat: '[u8;32]', + UnsupportedVersion: '[u8;32]', + ExecutedDownward: '([u8;32],XcmV3TraitsOutcome)', + }, + }, + /** + * Lookup126: cumulus_pallet_dmp_queue::pallet::Event + **/ + CumulusPalletDmpQueueEvent: { + _enum: { + InvalidFormat: { + messageId: '[u8;32]', + }, + UnsupportedVersion: { + messageId: '[u8;32]', + }, + ExecutedDownward: { + messageId: '[u8;32]', + outcome: 'XcmV3TraitsOutcome', + }, + WeightExhausted: { + messageId: '[u8;32]', + remainingWeight: 'SpWeightsWeightV2Weight', + requiredWeight: 'SpWeightsWeightV2Weight', + }, + OverweightEnqueued: { + messageId: '[u8;32]', + overweightIndex: 'u64', + requiredWeight: 'SpWeightsWeightV2Weight', + }, + OverweightServiced: { + overweightIndex: 'u64', + weightUsed: 'SpWeightsWeightV2Weight', + }, + MaxMessagesExhausted: { + messageId: '[u8;32]', + }, + }, + }, + /** + * Lookup127: orml_xtokens::module::Event + **/ + OrmlXtokensModuleEvent: { + _enum: { + TransferredMultiAssets: { + sender: 'AccountId32', + assets: 'XcmV3MultiassetMultiAssets', + fee: 'XcmV3MultiAsset', + dest: 'XcmV3MultiLocation', + }, + }, + }, + /** + * Lookup128: orml_tokens::module::Event + **/ + OrmlTokensModuleEvent: { + _enum: { + Endowed: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + DustLost: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Transfer: { + currencyId: 'u128', + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + }, + Reserved: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Unreserved: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + ReserveRepatriated: { + currencyId: 'u128', + from: 'AccountId32', + to: 'AccountId32', + amount: 'u128', + status: 'FrameSupportTokensMiscBalanceStatus', + }, + BalanceSet: { + currencyId: 'u128', + who: 'AccountId32', + free: 'u128', + reserved: 'u128', + }, + TotalIssuanceSet: { + currencyId: 'u128', + amount: 'u128', + }, + Withdrawn: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Slashed: { + currencyId: 'u128', + who: 'AccountId32', + freeAmount: 'u128', + reservedAmount: 'u128', + }, + Deposited: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + LockSet: { + lockId: '[u8;8]', + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + LockRemoved: { + lockId: '[u8;8]', + currencyId: 'u128', + who: 'AccountId32', + }, + Locked: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + Unlocked: { + currencyId: 'u128', + who: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup129: pallet_bridge::pallet::Event + **/ + PalletBridgeEvent: { + _enum: { + RelayerThresholdChanged: 'u32', + ChainWhitelisted: 'u8', + RelayerAdded: 'AccountId32', + RelayerRemoved: 'AccountId32', + FungibleTransfer: '(u8,u64,[u8;32],u128,Bytes)', + NonFungibleTransfer: '(u8,u64,[u8;32],Bytes,Bytes,Bytes)', + GenericTransfer: '(u8,u64,[u8;32],Bytes)', + VoteFor: '(u8,u64,AccountId32)', + VoteAgainst: '(u8,u64,AccountId32)', + ProposalApproved: '(u8,u64)', + ProposalRejected: '(u8,u64)', + ProposalSucceeded: '(u8,u64)', + ProposalFailed: '(u8,u64)', + FeeUpdated: { + destId: 'u8', + fee: 'u128', + }, + }, + }, + /** + * Lookup130: pallet_bridge_transfer::pallet::Event + **/ + PalletBridgeTransferEvent: { + _enum: { + MaximumIssuanceChanged: { + oldValue: 'u128', + }, + NativeTokenMinted: { + to: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup131: pallet_drop3::pallet::Event + **/ + PalletDrop3Event: { + _enum: { + AdminChanged: { + oldAdmin: 'Option', + }, + BalanceSlashed: { + who: 'AccountId32', + amount: 'u128', + }, + RewardPoolApproved: { + id: 'u64', + }, + RewardPoolRejected: { + id: 'u64', + }, + RewardPoolStarted: { + id: 'u64', + }, + RewardPoolStopped: { + id: 'u64', + }, + RewardPoolRemoved: { + id: 'u64', + name: 'Bytes', + owner: 'AccountId32', + }, + RewardPoolProposed: { + id: 'u64', + name: 'Bytes', + owner: 'AccountId32', + }, + RewardSent: { + to: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup133: pallet_extrinsic_filter::pallet::Event + **/ + PalletExtrinsicFilterEvent: { + _enum: { + ModeSet: { + newMode: 'PalletExtrinsicFilterOperationalMode', + }, + ExtrinsicsBlocked: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + ExtrinsicsUnblocked: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + }, + }, + /** + * Lookup134: pallet_extrinsic_filter::OperationalMode + **/ + PalletExtrinsicFilterOperationalMode: { + _enum: ['Normal', 'Safe', 'Test'], + }, + /** + * Lookup136: 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', + }, + }, + }, + /** + * Lookup137: core_primitives::key::AesOutput + **/ + CorePrimitivesKeyAesOutput: { + ciphertext: 'Bytes', + aad: 'Bytes', + nonce: '[u8;12]', + }, + /** + * Lookup139: 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', + }, + }, + /** + * Lookup141: pallet_asset_manager::pallet::Event + **/ + PalletAssetManagerEvent: { + _enum: { + ForeignAssetMetadataUpdated: { + assetId: 'u128', + metadata: 'PalletAssetManagerAssetMetadata', + }, + ForeignAssetTrackerUpdated: { + oldAssetTracker: 'u128', + newAssetTracker: 'u128', + }, + ForeignAssetTypeRegistered: { + assetId: 'u128', + assetType: 'RuntimeCommonXcmImplCurrencyId', + }, + ForeignAssetTypeRemoved: { + assetId: 'u128', + removedAssetType: 'RuntimeCommonXcmImplCurrencyId', + defaultAssetType: 'RuntimeCommonXcmImplCurrencyId', + }, + UnitsPerSecondChanged: { + assetId: 'u128', + unitsPerSecond: 'u128', + }, + }, + }, + /** + * Lookup142: pallet_asset_manager::pallet::AssetMetadata + **/ + PalletAssetManagerAssetMetadata: { + name: 'Bytes', + symbol: 'Bytes', + decimals: 'u8', + minimalBalance: 'u128', + isFrozen: 'bool', + }, + /** + * Lookup143: runtime_common::xcm_impl::CurrencyId + **/ + RuntimeCommonXcmImplCurrencyId: { + _enum: { + SelfReserve: 'Null', + ParachainReserve: 'XcmV3MultiLocation', + }, + }, + /** + * Lookup144: rococo_parachain_runtime::Runtime + **/ + RococoParachainRuntimeRuntime: 'Null', + /** + * Lookup145: 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', + }, + }, + /** + * Lookup146: 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', + }, + }, + /** + * Lookup149: core_primitives::assertion::IndexingNetwork + **/ + CorePrimitivesAssertionIndexingNetwork: { + _enum: ['Litentry', 'Litmus', 'Polkadot', 'Kusama', 'Khala', 'Ethereum'], + }, + /** + * Lookup151: pallet_group::pallet::Event + **/ + PalletGroupEvent: { + _enum: { + GroupMemberAdded: 'AccountId32', + GroupMemberRemoved: 'AccountId32', + }, + }, + /** + * Lookup153: 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', + }, + }, + }, + /** + * Lookup154: pallet_sidechain::pallet::Event + **/ + PalletSidechainEvent: { + _enum: { + ProposedSidechainBlock: '(AccountId32,H256)', + FinalizedSidechainBlock: '(AccountId32,H256)', + }, + }, + /** + * Lookup155: pallet_teeracle::pallet::Event + **/ + PalletTeeracleEvent: { + _enum: { + ExchangeRateUpdated: '(Bytes,Bytes,Option)', + ExchangeRateDeleted: '(Bytes,Bytes)', + OracleUpdated: '(Bytes,Bytes)', + AddedToWhitelist: '(Bytes,[u8;32])', + RemovedFromWhitelist: '(Bytes,[u8;32])', + }, + }, + /** + * Lookup157: substrate_fixed::FixedU64, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>, typenum::bit::B0>> + **/ + SubstrateFixedFixedU64: { + bits: 'u64', + }, + /** + * Lookup162: typenum::uint::UInt, typenum::bit::B0> + **/ + TypenumUIntUInt: { + msb: 'TypenumUIntUTerm', + lsb: 'TypenumBitB0', + }, + /** + * Lookup163: typenum::uint::UInt + **/ + TypenumUIntUTerm: { + msb: 'TypenumUintUTerm', + lsb: 'TypenumBitB1', + }, + /** + * Lookup164: typenum::uint::UTerm + **/ + TypenumUintUTerm: 'Null', + /** + * Lookup165: typenum::bit::B1 + **/ + TypenumBitB1: 'Null', + /** + * Lookup166: typenum::bit::B0 + **/ + TypenumBitB0: 'Null', + /** + * Lookup167: pallet_identity_management_mock::pallet::Event + **/ + PalletIdentityManagementMockEvent: { + _enum: { + DelegateeAdded: { + account: 'AccountId32', + }, + DelegateeRemoved: { + account: 'AccountId32', + }, + CreateIdentityRequested: { + shard: 'H256', + }, + RemoveIdentityRequested: { + shard: 'H256', + }, + VerifyIdentityRequested: { + shard: 'H256', + }, + SetUserShieldingKeyRequested: { + shard: 'H256', + }, + UserShieldingKeySetPlain: { + account: 'AccountId32', + }, + UserShieldingKeySet: { + account: 'AccountId32', + }, + IdentityCreatedPlain: { + account: 'AccountId32', + identity: 'MockTeePrimitivesIdentity', + code: '[u8;16]', + idGraph: 'Vec<(MockTeePrimitivesIdentity,PalletIdentityManagementMockIdentityContext)>', + }, + IdentityCreated: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + IdentityRemovedPlain: { + account: 'AccountId32', + identity: 'MockTeePrimitivesIdentity', + idGraph: 'Vec<(MockTeePrimitivesIdentity,PalletIdentityManagementMockIdentityContext)>', + }, + IdentityRemoved: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + IdentityVerifiedPlain: { + account: 'AccountId32', + identity: 'MockTeePrimitivesIdentity', + idGraph: 'Vec<(MockTeePrimitivesIdentity,PalletIdentityManagementMockIdentityContext)>', + }, + IdentityVerified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + SomeError: { + func: 'Bytes', + error: 'Bytes', + }, + }, + }, + /** + * Lookup168: mock_tee_primitives::identity::Identity + **/ + MockTeePrimitivesIdentity: { + _enum: { + Substrate: { + network: 'MockTeePrimitivesIdentitySubstrateNetwork', + address: 'MockTeePrimitivesIdentityAddress32', + }, + Evm: { + network: 'MockTeePrimitivesIdentityEvmNetwork', + address: 'MockTeePrimitivesIdentityAddress20', + }, + Web2: { + network: 'MockTeePrimitivesIdentityWeb2Network', + address: 'Bytes', + }, + }, + }, + /** + * Lookup169: mock_tee_primitives::identity::SubstrateNetwork + **/ + MockTeePrimitivesIdentitySubstrateNetwork: { + _enum: ['Polkadot', 'Kusama', 'Litentry', 'Litmus', 'LitentryRococo'], + }, + /** + * Lookup170: mock_tee_primitives::identity::Address32 + **/ + MockTeePrimitivesIdentityAddress32: '[u8;32]', + /** + * Lookup171: mock_tee_primitives::identity::EvmNetwork + **/ + MockTeePrimitivesIdentityEvmNetwork: { + _enum: ['Ethereum', 'BSC'], + }, + /** + * Lookup172: mock_tee_primitives::identity::Address20 + **/ + MockTeePrimitivesIdentityAddress20: '[u8;20]', + /** + * Lookup173: mock_tee_primitives::identity::Web2Network + **/ + MockTeePrimitivesIdentityWeb2Network: { + _enum: ['Twitter', 'Discord', 'Github'], + }, + /** + * Lookup176: pallet_identity_management_mock::identity_context::IdentityContext + **/ + PalletIdentityManagementMockIdentityContext: { + metadata: 'Option', + creationRequestBlock: 'Option', + verificationRequestBlock: 'Option', + isVerified: 'bool', + }, + /** + * Lookup180: pallet_sudo::pallet::Event + **/ + PalletSudoEvent: { + _enum: { + Sudid: { + sudoResult: 'Result', + }, + KeyChanged: { + oldSudoer: 'Option', + }, + SudoAsDone: { + sudoResult: 'Result', + }, + }, + }, + /** + * Lookup181: frame_system::Phase + **/ + FrameSystemPhase: { + _enum: { + ApplyExtrinsic: 'u32', + Finalization: 'Null', + Initialization: 'Null', + }, + }, + /** + * Lookup184: frame_system::LastRuntimeUpgradeInfo + **/ + FrameSystemLastRuntimeUpgradeInfo: { + specVersion: 'Compact', + specName: 'Text', + }, + /** + * Lookup186: 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', + }, + }, + }, + /** + * Lookup190: frame_system::limits::BlockWeights + **/ + FrameSystemLimitsBlockWeights: { + baseBlock: 'SpWeightsWeightV2Weight', + maxBlock: 'SpWeightsWeightV2Weight', + perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass', + }, + /** + * Lookup191: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassWeightsPerClass: { + normal: 'FrameSystemLimitsWeightsPerClass', + operational: 'FrameSystemLimitsWeightsPerClass', + mandatory: 'FrameSystemLimitsWeightsPerClass', + }, + /** + * Lookup192: frame_system::limits::WeightsPerClass + **/ + FrameSystemLimitsWeightsPerClass: { + baseExtrinsic: 'SpWeightsWeightV2Weight', + maxExtrinsic: 'Option', + maxTotal: 'Option', + reserved: 'Option', + }, + /** + * Lookup194: frame_system::limits::BlockLength + **/ + FrameSystemLimitsBlockLength: { + max: 'FrameSupportDispatchPerDispatchClassU32', + }, + /** + * Lookup195: frame_support::dispatch::PerDispatchClass + **/ + FrameSupportDispatchPerDispatchClassU32: { + normal: 'u32', + operational: 'u32', + mandatory: 'u32', + }, + /** + * Lookup196: sp_weights::RuntimeDbWeight + **/ + SpWeightsRuntimeDbWeight: { + read: 'u64', + write: 'u64', + }, + /** + * Lookup197: sp_version::RuntimeVersion + **/ + SpVersionRuntimeVersion: { + specName: 'Text', + implName: 'Text', + authoringVersion: 'u32', + specVersion: 'u32', + implVersion: 'u32', + apis: 'Vec<([u8;8],u32)>', + transactionVersion: 'u32', + stateVersion: 'u8', + }, + /** + * Lookup201: frame_system::pallet::Error + **/ + FrameSystemError: { + _enum: [ + 'InvalidSpecName', + 'SpecVersionNeedsToIncrease', + 'FailedToExtractRuntimeVersion', + 'NonDefaultComposite', + 'NonZeroRefCount', + 'CallFiltered', + ], + }, + /** + * Lookup202: pallet_timestamp::pallet::Call + **/ + PalletTimestampCall: { + _enum: { + set: { + now: 'Compact', + }, + }, + }, + /** + * Lookup205: pallet_scheduler::Scheduled, BlockNumber, rococo_parachain_runtime::OriginCaller, sp_core::crypto::AccountId32> + **/ + PalletSchedulerScheduled: { + maybeId: 'Option<[u8;32]>', + priority: 'u8', + call: 'FrameSupportPreimagesBounded', + maybePeriodic: 'Option<(u32,u32)>', + origin: 'RococoParachainRuntimeOriginCaller', + }, + /** + * Lookup206: frame_support::traits::preimages::Bounded + **/ + FrameSupportPreimagesBounded: { + _enum: { + Legacy: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + Inline: 'Bytes', + Lookup: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + len: 'u32', + }, + }, + }, + /** + * Lookup208: 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', + }, + }, + }, + /** + * Lookup210: pallet_utility::pallet::Call + **/ + PalletUtilityCall: { + _enum: { + batch: { + calls: 'Vec', + }, + as_derivative: { + index: 'u16', + call: 'Call', + }, + batch_all: { + calls: 'Vec', + }, + dispatch_as: { + asOrigin: 'RococoParachainRuntimeOriginCaller', + call: 'Call', + }, + force_batch: { + calls: 'Vec', + }, + with_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup212: rococo_parachain_runtime::OriginCaller + **/ + RococoParachainRuntimeOriginCaller: { + _enum: { + system: 'FrameSupportDispatchRawOrigin', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + Void: 'SpCoreVoid', + __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', + __Unused23: 'Null', + TechnicalCommittee: 'PalletCollectiveRawOrigin', + __Unused25: 'Null', + __Unused26: 'Null', + __Unused27: 'Null', + __Unused28: 'Null', + __Unused29: 'Null', + __Unused30: 'Null', + __Unused31: 'Null', + __Unused32: 'Null', + __Unused33: 'Null', + __Unused34: 'Null', + __Unused35: 'Null', + __Unused36: 'Null', + __Unused37: 'Null', + __Unused38: 'Null', + __Unused39: 'Null', + __Unused40: 'Null', + __Unused41: 'Null', + __Unused42: 'Null', + __Unused43: 'Null', + __Unused44: 'Null', + __Unused45: 'Null', + __Unused46: 'Null', + __Unused47: 'Null', + __Unused48: 'Null', + __Unused49: 'Null', + __Unused50: 'Null', + PolkadotXcm: 'PalletXcmOrigin', + CumulusXcm: 'CumulusPalletXcmOrigin', + }, + }, + /** + * Lookup213: frame_support::dispatch::RawOrigin + **/ + FrameSupportDispatchRawOrigin: { + _enum: { + Root: 'Null', + Signed: 'AccountId32', + None: 'Null', + }, + }, + /** + * Lookup214: pallet_collective::RawOrigin + **/ + PalletCollectiveRawOrigin: { + _enum: { + Members: '(u32,u32)', + Member: 'AccountId32', + _Phantom: 'Null', + }, + }, + /** + * Lookup216: pallet_xcm::pallet::Origin + **/ + PalletXcmOrigin: { + _enum: { + Xcm: 'XcmV3MultiLocation', + Response: 'XcmV3MultiLocation', + }, + }, + /** + * Lookup217: cumulus_pallet_xcm::pallet::Origin + **/ + CumulusPalletXcmOrigin: { + _enum: { + Relay: 'Null', + SiblingParachain: 'u32', + }, + }, + /** + * Lookup218: sp_core::Void + **/ + SpCoreVoid: 'Null', + /** + * Lookup219: 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]', + }, + }, + }, + /** + * Lookup222: pallet_proxy::pallet::Call + **/ + PalletProxyCall: { + _enum: { + proxy: { + real: 'MultiAddress', + forceProxyType: 'Option', + call: 'Call', + }, + add_proxy: { + delegate: 'MultiAddress', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + remove_proxy: { + delegate: 'MultiAddress', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + remove_proxies: 'Null', + create_pure: { + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + index: 'u16', + }, + kill_pure: { + spawner: 'MultiAddress', + proxyType: 'RococoParachainRuntimeProxyType', + 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', + }, + }, + }, + /** + * Lookup226: 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', + }, + }, + }, + /** + * Lookup227: 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', + }, + }, + }, + /** + * Lookup228: 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', + }, + }, + }, + /** + * Lookup229: pallet_vesting::vesting_info::VestingInfo + **/ + PalletVestingVestingInfo: { + locked: 'u128', + perBlock: 'u128', + startingBlock: 'u32', + }, + /** + * Lookup230: 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', + }, + }, + }, + /** + * Lookup231: pallet_democracy::pallet::Call + **/ + PalletDemocracyCall: { + _enum: { + propose: { + proposal: 'FrameSupportPreimagesBounded', + value: 'Compact', + }, + second: { + proposal: 'Compact', + }, + vote: { + refIndex: 'Compact', + vote: 'PalletDemocracyVoteAccountVote', + }, + emergency_cancel: { + refIndex: 'u32', + }, + external_propose: { + proposal: 'FrameSupportPreimagesBounded', + }, + external_propose_majority: { + proposal: 'FrameSupportPreimagesBounded', + }, + external_propose_default: { + proposal: 'FrameSupportPreimagesBounded', + }, + fast_track: { + proposalHash: 'H256', + votingPeriod: 'u32', + delay: 'u32', + }, + veto_external: { + proposalHash: 'H256', + }, + cancel_referendum: { + refIndex: 'Compact', + }, + delegate: { + to: 'MultiAddress', + conviction: 'PalletDemocracyConviction', + balance: 'u128', + }, + undelegate: 'Null', + clear_public_proposals: 'Null', + unlock: { + target: 'MultiAddress', + }, + remove_vote: { + index: 'u32', + }, + remove_other_vote: { + target: 'MultiAddress', + index: 'u32', + }, + blacklist: { + proposalHash: 'H256', + maybeRefIndex: 'Option', + }, + cancel_proposal: { + propIndex: 'Compact', + }, + set_metadata: { + owner: 'PalletDemocracyMetadataOwner', + maybeHash: 'Option', + }, + }, + }, + /** + * Lookup232: pallet_democracy::conviction::Conviction + **/ + PalletDemocracyConviction: { + _enum: ['None', 'Locked1x', 'Locked2x', 'Locked3x', 'Locked4x', 'Locked5x', 'Locked6x'], + }, + /** + * Lookup234: 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', + }, + }, + }, + /** + * Lookup237: pallet_membership::pallet::Call + **/ + PalletMembershipCall: { + _enum: { + add_member: { + who: 'MultiAddress', + }, + remove_member: { + who: 'MultiAddress', + }, + swap_member: { + remove: 'MultiAddress', + add: 'MultiAddress', + }, + reset_members: { + members: 'Vec', + }, + change_key: { + _alias: { + new_: 'new', + }, + new_: 'MultiAddress', + }, + set_prime: { + who: 'MultiAddress', + }, + clear_prime: 'Null', + }, + }, + /** + * Lookup240: pallet_bounties::pallet::Call + **/ + PalletBountiesCall: { + _enum: { + propose_bounty: { + value: 'Compact', + description: 'Bytes', + }, + approve_bounty: { + bountyId: 'Compact', + }, + propose_curator: { + bountyId: 'Compact', + curator: 'MultiAddress', + fee: 'Compact', + }, + unassign_curator: { + bountyId: 'Compact', + }, + accept_curator: { + bountyId: 'Compact', + }, + award_bounty: { + bountyId: 'Compact', + beneficiary: 'MultiAddress', + }, + claim_bounty: { + bountyId: 'Compact', + }, + close_bounty: { + bountyId: 'Compact', + }, + extend_bounty_expiry: { + bountyId: 'Compact', + remark: 'Bytes', + }, + }, + }, + /** + * Lookup241: pallet_tips::pallet::Call + **/ + PalletTipsCall: { + _enum: { + report_awesome: { + reason: 'Bytes', + who: 'MultiAddress', + }, + retract_tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + tip_new: { + reason: 'Bytes', + who: 'MultiAddress', + tipValue: 'Compact', + }, + tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + tipValue: 'Compact', + }, + close_tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + slash_tip: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + }, + }, + }, + /** + * Lookup242: pallet_identity::pallet::Call + **/ + PalletIdentityCall: { + _enum: { + add_registrar: { + account: 'MultiAddress', + }, + set_identity: { + info: 'PalletIdentityIdentityInfo', + }, + set_subs: { + subs: 'Vec<(AccountId32,Data)>', + }, + clear_identity: 'Null', + request_judgement: { + regIndex: 'Compact', + maxFee: 'Compact', + }, + cancel_request: { + regIndex: 'u32', + }, + set_fee: { + index: 'Compact', + fee: 'Compact', + }, + set_account_id: { + _alias: { + new_: 'new', + }, + index: 'Compact', + new_: 'MultiAddress', + }, + set_fields: { + index: 'Compact', + fields: 'PalletIdentityBitFlags', + }, + provide_judgement: { + regIndex: 'Compact', + target: 'MultiAddress', + judgement: 'PalletIdentityJudgement', + identity: 'H256', + }, + kill_identity: { + target: 'MultiAddress', + }, + add_sub: { + sub: 'MultiAddress', + data: 'Data', + }, + rename_sub: { + sub: 'MultiAddress', + data: 'Data', + }, + remove_sub: { + sub: 'MultiAddress', + }, + quit_sub: 'Null', + }, + }, + /** + * Lookup243: pallet_identity::types::IdentityInfo + **/ + PalletIdentityIdentityInfo: { + additional: 'Vec<(Data,Data)>', + display: 'Data', + legal: 'Data', + web: 'Data', + riot: 'Data', + email: 'Data', + pgpFingerprint: 'Option<[u8;20]>', + image: 'Data', + twitter: 'Data', + }, + /** + * Lookup278: pallet_identity::types::BitFlags + **/ + PalletIdentityBitFlags: { + _bitLength: 64, + Display: 1, + Legal: 2, + Web: 4, + Riot: 8, + Email: 16, + PgpFingerprint: 32, + Image: 64, + Twitter: 128, + }, + /** + * Lookup279: pallet_identity::types::IdentityField + **/ + PalletIdentityIdentityField: { + _enum: [ + '__Unused0', + 'Display', + 'Legal', + '__Unused3', + 'Web', + '__Unused5', + '__Unused6', + '__Unused7', + 'Riot', + '__Unused9', + '__Unused10', + '__Unused11', + '__Unused12', + '__Unused13', + '__Unused14', + '__Unused15', + 'Email', + '__Unused17', + '__Unused18', + '__Unused19', + '__Unused20', + '__Unused21', + '__Unused22', + '__Unused23', + '__Unused24', + '__Unused25', + '__Unused26', + '__Unused27', + '__Unused28', + '__Unused29', + '__Unused30', + '__Unused31', + 'PgpFingerprint', + '__Unused33', + '__Unused34', + '__Unused35', + '__Unused36', + '__Unused37', + '__Unused38', + '__Unused39', + '__Unused40', + '__Unused41', + '__Unused42', + '__Unused43', + '__Unused44', + '__Unused45', + '__Unused46', + '__Unused47', + '__Unused48', + '__Unused49', + '__Unused50', + '__Unused51', + '__Unused52', + '__Unused53', + '__Unused54', + '__Unused55', + '__Unused56', + '__Unused57', + '__Unused58', + '__Unused59', + '__Unused60', + '__Unused61', + '__Unused62', + '__Unused63', + 'Image', + '__Unused65', + '__Unused66', + '__Unused67', + '__Unused68', + '__Unused69', + '__Unused70', + '__Unused71', + '__Unused72', + '__Unused73', + '__Unused74', + '__Unused75', + '__Unused76', + '__Unused77', + '__Unused78', + '__Unused79', + '__Unused80', + '__Unused81', + '__Unused82', + '__Unused83', + '__Unused84', + '__Unused85', + '__Unused86', + '__Unused87', + '__Unused88', + '__Unused89', + '__Unused90', + '__Unused91', + '__Unused92', + '__Unused93', + '__Unused94', + '__Unused95', + '__Unused96', + '__Unused97', + '__Unused98', + '__Unused99', + '__Unused100', + '__Unused101', + '__Unused102', + '__Unused103', + '__Unused104', + '__Unused105', + '__Unused106', + '__Unused107', + '__Unused108', + '__Unused109', + '__Unused110', + '__Unused111', + '__Unused112', + '__Unused113', + '__Unused114', + '__Unused115', + '__Unused116', + '__Unused117', + '__Unused118', + '__Unused119', + '__Unused120', + '__Unused121', + '__Unused122', + '__Unused123', + '__Unused124', + '__Unused125', + '__Unused126', + '__Unused127', + 'Twitter', + ], + }, + /** + * Lookup280: pallet_identity::types::Judgement + **/ + PalletIdentityJudgement: { + _enum: { + Unknown: 'Null', + FeePaid: 'u128', + Reasonable: 'Null', + KnownGood: 'Null', + OutOfDate: 'Null', + LowQuality: 'Null', + Erroneous: 'Null', + }, + }, + /** + * Lookup281: cumulus_pallet_parachain_system::pallet::Call + **/ + CumulusPalletParachainSystemCall: { + _enum: { + set_validation_data: { + data: 'CumulusPrimitivesParachainInherentParachainInherentData', + }, + sudo_send_upward_message: { + message: 'Bytes', + }, + authorize_upgrade: { + codeHash: 'H256', + }, + enact_authorized_upgrade: { + code: 'Bytes', + }, + }, + }, + /** + * Lookup282: cumulus_primitives_parachain_inherent::ParachainInherentData + **/ + CumulusPrimitivesParachainInherentParachainInherentData: { + validationData: 'PolkadotPrimitivesV2PersistedValidationData', + relayChainState: 'SpTrieStorageProof', + downwardMessages: 'Vec', + horizontalMessages: 'BTreeMap>', + }, + /** + * Lookup283: polkadot_primitives::v2::PersistedValidationData + **/ + PolkadotPrimitivesV2PersistedValidationData: { + parentHead: 'Bytes', + relayParentNumber: 'u32', + relayParentStorageRoot: 'H256', + maxPovSize: 'u32', + }, + /** + * Lookup285: sp_trie::storage_proof::StorageProof + **/ + SpTrieStorageProof: { + trieNodes: 'BTreeSet', + }, + /** + * Lookup288: polkadot_core_primitives::InboundDownwardMessage + **/ + PolkadotCorePrimitivesInboundDownwardMessage: { + sentAt: 'u32', + msg: 'Bytes', + }, + /** + * Lookup291: polkadot_core_primitives::InboundHrmpMessage + **/ + PolkadotCorePrimitivesInboundHrmpMessage: { + sentAt: 'u32', + data: 'Bytes', + }, + /** + * Lookup294: parachain_info::pallet::Call + **/ + ParachainInfoCall: 'Null', + /** + * Lookup295: pallet_session::pallet::Call + **/ + PalletSessionCall: { + _enum: { + set_keys: { + _alias: { + keys_: 'keys', + }, + keys_: 'RococoParachainRuntimeSessionKeys', + proof: 'Bytes', + }, + purge_keys: 'Null', + }, + }, + /** + * Lookup296: rococo_parachain_runtime::SessionKeys + **/ + RococoParachainRuntimeSessionKeys: { + aura: 'SpConsensusAuraSr25519AppSr25519Public', + }, + /** + * Lookup297: sp_consensus_aura::sr25519::app_sr25519::Public + **/ + SpConsensusAuraSr25519AppSr25519Public: 'SpCoreSr25519Public', + /** + * Lookup298: sp_core::sr25519::Public + **/ + SpCoreSr25519Public: '[u8;32]', + /** + * Lookup299: pallet_parachain_staking::pallet::Call + **/ + PalletParachainStakingCall: { + _enum: { + set_staking_expectations: { + expectations: { + min: 'u128', + ideal: 'u128', + max: 'u128', + }, + }, + set_inflation: { + schedule: { + min: 'Perbill', + ideal: 'Perbill', + max: 'Perbill', + }, + }, + set_parachain_bond_account: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + set_parachain_bond_reserve_percent: { + _alias: { + new_: 'new', + }, + new_: 'Percent', + }, + set_total_selected: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + set_collator_commission: { + _alias: { + new_: 'new', + }, + new_: 'Perbill', + }, + set_blocks_per_round: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + add_candidates_whitelist: { + candidate: 'AccountId32', + }, + remove_candidates_whitelist: { + candidate: 'AccountId32', + }, + join_candidates: { + bond: 'u128', + }, + schedule_leave_candidates: 'Null', + execute_leave_candidates: { + candidate: 'AccountId32', + }, + cancel_leave_candidates: 'Null', + go_offline: 'Null', + go_online: 'Null', + candidate_bond_more: { + more: 'u128', + }, + schedule_candidate_bond_less: { + less: 'u128', + }, + execute_candidate_bond_less: { + candidate: 'AccountId32', + }, + cancel_candidate_bond_less: 'Null', + delegate: { + candidate: 'AccountId32', + amount: 'u128', + }, + delegate_with_auto_compound: { + candidate: 'AccountId32', + amount: 'u128', + autoCompound: 'Percent', + }, + schedule_leave_delegators: 'Null', + execute_leave_delegators: { + delegator: 'AccountId32', + }, + cancel_leave_delegators: 'Null', + schedule_revoke_delegation: { + collator: 'AccountId32', + }, + delegator_bond_more: { + candidate: 'AccountId32', + more: 'u128', + }, + schedule_delegator_bond_less: { + candidate: 'AccountId32', + less: 'u128', + }, + execute_delegation_request: { + delegator: 'AccountId32', + candidate: 'AccountId32', + }, + cancel_delegation_request: { + candidate: 'AccountId32', + }, + set_auto_compound: { + candidate: 'AccountId32', + value: 'Percent', + }, + }, + }, + /** + * Lookup302: cumulus_pallet_xcmp_queue::pallet::Call + **/ + CumulusPalletXcmpQueueCall: { + _enum: { + service_overweight: { + index: 'u64', + weightLimit: 'SpWeightsWeightV2Weight', + }, + suspend_xcm_execution: 'Null', + resume_xcm_execution: 'Null', + update_suspend_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_drop_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_resume_threshold: { + _alias: { + new_: 'new', + }, + new_: 'u32', + }, + update_threshold_weight: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + update_weight_restrict_decay: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + update_xcmp_max_individual_weight: { + _alias: { + new_: 'new', + }, + new_: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup303: pallet_xcm::pallet::Call + **/ + PalletXcmCall: { + _enum: { + send: { + dest: 'XcmVersionedMultiLocation', + message: 'XcmVersionedXcm', + }, + teleport_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + }, + reserve_transfer_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + }, + execute: { + message: 'XcmVersionedXcm', + maxWeight: 'SpWeightsWeightV2Weight', + }, + force_xcm_version: { + location: 'XcmV3MultiLocation', + xcmVersion: 'u32', + }, + force_default_xcm_version: { + maybeXcmVersion: 'Option', + }, + force_subscribe_version_notify: { + location: 'XcmVersionedMultiLocation', + }, + force_unsubscribe_version_notify: { + location: 'XcmVersionedMultiLocation', + }, + limited_reserve_transfer_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + weightLimit: 'XcmV3WeightLimit', + }, + limited_teleport_assets: { + dest: 'XcmVersionedMultiLocation', + beneficiary: 'XcmVersionedMultiLocation', + assets: 'XcmVersionedMultiAssets', + feeAssetItem: 'u32', + weightLimit: 'XcmV3WeightLimit', + }, + }, + }, + /** + * Lookup304: xcm::VersionedXcm + **/ + XcmVersionedXcm: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + V2: 'XcmV2Xcm', + V3: 'XcmV3Xcm', + }, + }, + /** + * Lookup305: xcm::v2::Xcm + **/ + XcmV2Xcm: 'Vec', + /** + * Lookup307: xcm::v2::Instruction + **/ + XcmV2Instruction: { + _enum: { + WithdrawAsset: 'XcmV2MultiassetMultiAssets', + ReserveAssetDeposited: 'XcmV2MultiassetMultiAssets', + ReceiveTeleportedAsset: 'XcmV2MultiassetMultiAssets', + QueryResponse: { + queryId: 'Compact', + response: 'XcmV2Response', + maxWeight: 'Compact', + }, + TransferAsset: { + assets: 'XcmV2MultiassetMultiAssets', + beneficiary: 'XcmV2MultiLocation', + }, + TransferReserveAsset: { + assets: 'XcmV2MultiassetMultiAssets', + dest: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + Transact: { + originType: 'XcmV2OriginKind', + requireWeightAtMost: 'Compact', + call: 'XcmDoubleEncoded', + }, + HrmpNewChannelOpenRequest: { + sender: 'Compact', + maxMessageSize: 'Compact', + maxCapacity: 'Compact', + }, + HrmpChannelAccepted: { + recipient: 'Compact', + }, + HrmpChannelClosing: { + initiator: 'Compact', + sender: 'Compact', + recipient: 'Compact', + }, + ClearOrigin: 'Null', + DescendOrigin: 'XcmV2MultilocationJunctions', + ReportError: { + queryId: 'Compact', + dest: 'XcmV2MultiLocation', + maxResponseWeight: 'Compact', + }, + DepositAsset: { + assets: 'XcmV2MultiassetMultiAssetFilter', + maxAssets: 'Compact', + beneficiary: 'XcmV2MultiLocation', + }, + DepositReserveAsset: { + assets: 'XcmV2MultiassetMultiAssetFilter', + maxAssets: 'Compact', + dest: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + ExchangeAsset: { + give: 'XcmV2MultiassetMultiAssetFilter', + receive: 'XcmV2MultiassetMultiAssets', + }, + InitiateReserveWithdraw: { + assets: 'XcmV2MultiassetMultiAssetFilter', + reserve: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + InitiateTeleport: { + assets: 'XcmV2MultiassetMultiAssetFilter', + dest: 'XcmV2MultiLocation', + xcm: 'XcmV2Xcm', + }, + QueryHolding: { + queryId: 'Compact', + dest: 'XcmV2MultiLocation', + assets: 'XcmV2MultiassetMultiAssetFilter', + maxResponseWeight: 'Compact', + }, + BuyExecution: { + fees: 'XcmV2MultiAsset', + weightLimit: 'XcmV2WeightLimit', + }, + RefundSurplus: 'Null', + SetErrorHandler: 'XcmV2Xcm', + SetAppendix: 'XcmV2Xcm', + ClearError: 'Null', + ClaimAsset: { + assets: 'XcmV2MultiassetMultiAssets', + ticket: 'XcmV2MultiLocation', + }, + Trap: 'Compact', + SubscribeVersion: { + queryId: 'Compact', + maxResponseWeight: 'Compact', + }, + UnsubscribeVersion: 'Null', + }, + }, + /** + * Lookup308: xcm::v2::Response + **/ + XcmV2Response: { + _enum: { + Null: 'Null', + Assets: 'XcmV2MultiassetMultiAssets', + ExecutionResult: 'Option<(u32,XcmV2TraitsError)>', + Version: 'u32', + }, + }, + /** + * Lookup311: xcm::v2::traits::Error + **/ + XcmV2TraitsError: { + _enum: { + Overflow: 'Null', + Unimplemented: 'Null', + UntrustedReserveLocation: 'Null', + UntrustedTeleportLocation: 'Null', + MultiLocationFull: 'Null', + MultiLocationNotInvertible: 'Null', + BadOrigin: 'Null', + InvalidLocation: 'Null', + AssetNotFound: 'Null', + FailedToTransactAsset: 'Null', + NotWithdrawable: 'Null', + LocationCannotHold: 'Null', + ExceedsMaxMessageSize: 'Null', + DestinationUnsupported: 'Null', + Transport: 'Null', + Unroutable: 'Null', + UnknownClaim: 'Null', + FailedToDecode: 'Null', + MaxWeightInvalid: 'Null', + NotHoldingFees: 'Null', + TooExpensive: 'Null', + Trap: 'u64', + UnhandledXcmVersion: 'Null', + WeightLimitReached: 'u64', + Barrier: 'Null', + WeightNotComputable: 'Null', + }, + }, + /** + * Lookup312: xcm::v2::multiasset::MultiAssetFilter + **/ + XcmV2MultiassetMultiAssetFilter: { + _enum: { + Definite: 'XcmV2MultiassetMultiAssets', + Wild: 'XcmV2MultiassetWildMultiAsset', + }, + }, + /** + * Lookup313: xcm::v2::multiasset::WildMultiAsset + **/ + XcmV2MultiassetWildMultiAsset: { + _enum: { + All: 'Null', + AllOf: { + id: 'XcmV2MultiassetAssetId', + fun: 'XcmV2MultiassetWildFungibility', + }, + }, + }, + /** + * Lookup314: xcm::v2::multiasset::WildFungibility + **/ + XcmV2MultiassetWildFungibility: { + _enum: ['Fungible', 'NonFungible'], + }, + /** + * Lookup315: xcm::v2::WeightLimit + **/ + XcmV2WeightLimit: { + _enum: { + Unlimited: 'Null', + Limited: 'Compact', + }, + }, + /** + * Lookup324: cumulus_pallet_xcm::pallet::Call + **/ + CumulusPalletXcmCall: 'Null', + /** + * Lookup325: cumulus_pallet_dmp_queue::pallet::Call + **/ + CumulusPalletDmpQueueCall: { + _enum: { + service_overweight: { + index: 'u64', + weightLimit: 'SpWeightsWeightV2Weight', + }, + }, + }, + /** + * Lookup326: orml_xtokens::module::Call + **/ + OrmlXtokensModuleCall: { + _enum: { + transfer: { + currencyId: 'RuntimeCommonXcmImplCurrencyId', + amount: 'u128', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multiasset: { + asset: 'XcmVersionedMultiAsset', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_with_fee: { + currencyId: 'RuntimeCommonXcmImplCurrencyId', + amount: 'u128', + fee: 'u128', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multiasset_with_fee: { + asset: 'XcmVersionedMultiAsset', + fee: 'XcmVersionedMultiAsset', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multicurrencies: { + currencies: 'Vec<(RuntimeCommonXcmImplCurrencyId,u128)>', + feeItem: 'u32', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + transfer_multiassets: { + assets: 'XcmVersionedMultiAssets', + feeItem: 'u32', + dest: 'XcmVersionedMultiLocation', + destWeightLimit: 'XcmV3WeightLimit', + }, + }, + }, + /** + * Lookup327: xcm::VersionedMultiAsset + **/ + XcmVersionedMultiAsset: { + _enum: { + __Unused0: 'Null', + V2: 'XcmV2MultiAsset', + __Unused2: 'Null', + V3: 'XcmV3MultiAsset', + }, + }, + /** + * Lookup330: orml_tokens::module::Call + **/ + OrmlTokensModuleCall: { + _enum: { + transfer: { + dest: 'MultiAddress', + currencyId: 'u128', + amount: 'Compact', + }, + transfer_all: { + dest: 'MultiAddress', + currencyId: 'u128', + keepAlive: 'bool', + }, + transfer_keep_alive: { + dest: 'MultiAddress', + currencyId: 'u128', + amount: 'Compact', + }, + force_transfer: { + source: 'MultiAddress', + dest: 'MultiAddress', + currencyId: 'u128', + amount: 'Compact', + }, + set_balance: { + who: 'MultiAddress', + currencyId: 'u128', + newFree: 'Compact', + newReserved: 'Compact', + }, + }, + }, + /** + * Lookup331: pallet_bridge::pallet::Call + **/ + PalletBridgeCall: { + _enum: { + set_threshold: { + threshold: 'u32', + }, + set_resource: { + id: '[u8;32]', + method: 'Bytes', + }, + remove_resource: { + id: '[u8;32]', + }, + whitelist_chain: { + id: 'u8', + }, + add_relayer: { + v: 'AccountId32', + }, + remove_relayer: { + v: 'AccountId32', + }, + update_fee: { + destId: 'u8', + fee: 'u128', + }, + acknowledge_proposal: { + nonce: 'u64', + srcId: 'u8', + rId: '[u8;32]', + call: 'Call', + }, + reject_proposal: { + nonce: 'u64', + srcId: 'u8', + rId: '[u8;32]', + call: 'Call', + }, + eval_vote_state: { + nonce: 'u64', + srcId: 'u8', + prop: 'Call', + }, + }, + }, + /** + * Lookup332: pallet_bridge_transfer::pallet::Call + **/ + PalletBridgeTransferCall: { + _enum: { + transfer_native: { + amount: 'u128', + recipient: 'Bytes', + destId: 'u8', + }, + transfer: { + to: 'AccountId32', + amount: 'u128', + rid: '[u8;32]', + }, + set_maximum_issuance: { + maximumIssuance: 'u128', + }, + set_external_balances: { + externalBalances: 'u128', + }, + }, + }, + /** + * Lookup333: pallet_drop3::pallet::Call + **/ + PalletDrop3Call: { + _enum: { + set_admin: { + _alias: { + new_: 'new', + }, + new_: 'AccountId32', + }, + approve_reward_pool: { + id: 'u64', + }, + reject_reward_pool: { + id: 'u64', + }, + start_reward_pool: { + id: 'u64', + }, + stop_reward_pool: { + id: 'u64', + }, + close_reward_pool: { + id: 'u64', + }, + propose_reward_pool: { + name: 'Bytes', + total: 'u128', + startAt: 'u32', + endAt: 'u32', + }, + send_reward: { + id: 'u64', + to: 'AccountId32', + amount: 'u128', + }, + }, + }, + /** + * Lookup334: pallet_extrinsic_filter::pallet::Call + **/ + PalletExtrinsicFilterCall: { + _enum: { + set_mode: { + mode: 'PalletExtrinsicFilterOperationalMode', + }, + block_extrinsics: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + unblock_extrinsics: { + palletNameBytes: 'Bytes', + functionNameBytes: 'Option', + }, + }, + }, + /** + * Lookup335: 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', + }, + }, + }, + /** + * Lookup336: core_primitives::error::IMPError + **/ + CorePrimitivesErrorImpError: { + _enum: { + SetUserShieldingKeyFailed: 'CorePrimitivesErrorErrorDetail', + CreateIdentityFailed: 'CorePrimitivesErrorErrorDetail', + RemoveIdentityFailed: 'CorePrimitivesErrorErrorDetail', + VerifyIdentityFailed: 'CorePrimitivesErrorErrorDetail', + ImportScheduledEnclaveFailed: 'Null', + UnclassifiedError: 'CorePrimitivesErrorErrorDetail', + }, + }, + /** + * Lookup337: pallet_asset_manager::pallet::Call + **/ + PalletAssetManagerCall: { + _enum: { + register_foreign_asset_type: { + assetType: 'RuntimeCommonXcmImplCurrencyId', + metadata: 'PalletAssetManagerAssetMetadata', + }, + update_foreign_asset_metadata: { + assetId: 'u128', + metadata: 'PalletAssetManagerAssetMetadata', + }, + set_asset_units_per_second: { + assetId: 'u128', + unitsPerSecond: 'u128', + }, + add_asset_type: { + assetId: 'u128', + newAssetType: 'RuntimeCommonXcmImplCurrencyId', + }, + remove_asset_type: { + assetType: 'RuntimeCommonXcmImplCurrencyId', + newDefaultAssetType: 'Option', + }, + }, + }, + /** + * Lookup339: 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', + }, + }, + }, + /** + * Lookup340: core_primitives::error::VCMPError + **/ + CorePrimitivesErrorVcmpError: { + _enum: { + RequestVCFailed: '(CorePrimitivesAssertion,CorePrimitivesErrorErrorDetail)', + UnclassifiedError: 'CorePrimitivesErrorErrorDetail', + }, + }, + /** + * Lookup341: 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', + }, + }, + /** + * Lookup343: 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', + }, + }, + }, + /** + * Lookup344: teerex_primitives::Request + **/ + TeerexPrimitivesRequest: { + shard: 'H256', + cyphertext: 'Bytes', + }, + /** + * Lookup345: pallet_sidechain::pallet::Call + **/ + PalletSidechainCall: { + _enum: { + confirm_imported_sidechain_block: { + shardId: 'H256', + blockNumber: 'u64', + nextFinalizationCandidateBlockNumber: 'u64', + blockHeaderHash: 'H256', + }, + }, + }, + /** + * Lookup346: pallet_teeracle::pallet::Call + **/ + PalletTeeracleCall: { + _enum: { + add_to_whitelist: { + dataSource: 'Bytes', + mrenclave: '[u8;32]', + }, + remove_from_whitelist: { + dataSource: 'Bytes', + mrenclave: '[u8;32]', + }, + update_oracle: { + oracleName: 'Bytes', + dataSource: 'Bytes', + newBlob: 'Bytes', + }, + update_exchange_rate: { + dataSource: 'Bytes', + tradingPair: 'Bytes', + newValue: 'Option', + }, + }, + }, + /** + * Lookup348: pallet_identity_management_mock::pallet::Call + **/ + PalletIdentityManagementMockCall: { + _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', + }, + user_shielding_key_set: { + account: 'AccountId32', + }, + identity_created: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + code: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + identity_removed: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + identity_verified: { + account: 'AccountId32', + identity: 'CorePrimitivesKeyAesOutput', + idGraph: 'CorePrimitivesKeyAesOutput', + }, + some_error: { + func: 'Bytes', + error: 'Bytes', + }, + }, + }, + /** + * Lookup349: 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', + }, + }, + }, + /** + * Lookup352: pallet_scheduler::pallet::Error + **/ + PalletSchedulerError: { + _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange', 'Named'], + }, + /** + * Lookup353: pallet_utility::pallet::Error + **/ + PalletUtilityError: { + _enum: ['TooManyCalls'], + }, + /** + * Lookup355: pallet_multisig::Multisig + **/ + PalletMultisigMultisig: { + when: 'PalletMultisigTimepoint', + deposit: 'u128', + depositor: 'AccountId32', + approvals: 'Vec', + }, + /** + * Lookup357: pallet_multisig::pallet::Error + **/ + PalletMultisigError: { + _enum: [ + 'MinimumThreshold', + 'AlreadyApproved', + 'NoApprovalsNeeded', + 'TooFewSignatories', + 'TooManySignatories', + 'SignatoriesOutOfOrder', + 'SenderInSignatories', + 'NotFound', + 'NotOwner', + 'NoTimepoint', + 'WrongTimepoint', + 'UnexpectedTimepoint', + 'MaxWeightTooLow', + 'AlreadyStored', + ], + }, + /** + * Lookup360: pallet_proxy::ProxyDefinition + **/ + PalletProxyProxyDefinition: { + delegate: 'AccountId32', + proxyType: 'RococoParachainRuntimeProxyType', + delay: 'u32', + }, + /** + * Lookup364: pallet_proxy::Announcement + **/ + PalletProxyAnnouncement: { + real: 'AccountId32', + callHash: 'H256', + height: 'u32', + }, + /** + * Lookup366: pallet_proxy::pallet::Error + **/ + PalletProxyError: { + _enum: [ + 'TooMany', + 'NotFound', + 'NotProxy', + 'Unproxyable', + 'Duplicate', + 'NoPermission', + 'Unannounced', + 'NoSelfProxy', + ], + }, + /** + * Lookup367: pallet_preimage::RequestStatus + **/ + PalletPreimageRequestStatus: { + _enum: { + Unrequested: { + deposit: '(AccountId32,u128)', + len: 'u32', + }, + Requested: { + deposit: 'Option<(AccountId32,u128)>', + count: 'u32', + len: 'Option', + }, + }, + }, + /** + * Lookup372: pallet_preimage::pallet::Error + **/ + PalletPreimageError: { + _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested'], + }, + /** + * Lookup374: pallet_balances::BalanceLock + **/ + PalletBalancesBalanceLock: { + id: '[u8;8]', + amount: 'u128', + reasons: 'PalletBalancesReasons', + }, + /** + * Lookup375: pallet_balances::Reasons + **/ + PalletBalancesReasons: { + _enum: ['Fee', 'Misc', 'All'], + }, + /** + * Lookup378: pallet_balances::ReserveData + **/ + PalletBalancesReserveData: { + id: '[u8;8]', + amount: 'u128', + }, + /** + * Lookup380: pallet_balances::pallet::Error + **/ + PalletBalancesError: { + _enum: [ + 'VestingBalance', + 'LiquidityRestrictions', + 'InsufficientBalance', + 'ExistentialDeposit', + 'KeepAlive', + 'ExistingVestingSchedule', + 'DeadAccount', + 'TooManyReserves', + ], + }, + /** + * Lookup383: pallet_vesting::Releases + **/ + PalletVestingReleases: { + _enum: ['V0', 'V1'], + }, + /** + * Lookup384: pallet_vesting::pallet::Error + **/ + PalletVestingError: { + _enum: [ + 'NotVesting', + 'AtMaxVestingSchedules', + 'AmountLow', + 'ScheduleIndexOutOfBounds', + 'InvalidScheduleParams', + ], + }, + /** + * Lookup386: pallet_transaction_payment::Releases + **/ + PalletTransactionPaymentReleases: { + _enum: ['V1Ancient', 'V2'], + }, + /** + * Lookup387: pallet_treasury::Proposal + **/ + PalletTreasuryProposal: { + proposer: 'AccountId32', + value: 'u128', + beneficiary: 'AccountId32', + bond: 'u128', + }, + /** + * Lookup392: frame_support::PalletId + **/ + FrameSupportPalletId: '[u8;8]', + /** + * Lookup393: pallet_treasury::pallet::Error + **/ + PalletTreasuryError: { + _enum: [ + 'InsufficientProposersBalance', + 'InvalidIndex', + 'TooManyApprovals', + 'InsufficientPermission', + 'ProposalNotApproved', + ], + }, + /** + * Lookup398: pallet_democracy::types::ReferendumInfo, Balance> + **/ + PalletDemocracyReferendumInfo: { + _enum: { + Ongoing: 'PalletDemocracyReferendumStatus', + Finished: { + approved: 'bool', + end: 'u32', + }, + }, + }, + /** + * Lookup399: pallet_democracy::types::ReferendumStatus, Balance> + **/ + PalletDemocracyReferendumStatus: { + end: 'u32', + proposal: 'FrameSupportPreimagesBounded', + threshold: 'PalletDemocracyVoteThreshold', + delay: 'u32', + tally: 'PalletDemocracyTally', + }, + /** + * Lookup400: pallet_democracy::types::Tally + **/ + PalletDemocracyTally: { + ayes: 'u128', + nays: 'u128', + turnout: 'u128', + }, + /** + * Lookup401: pallet_democracy::vote::Voting + **/ + PalletDemocracyVoteVoting: { + _enum: { + Direct: { + votes: 'Vec<(u32,PalletDemocracyVoteAccountVote)>', + delegations: 'PalletDemocracyDelegations', + prior: 'PalletDemocracyVotePriorLock', + }, + Delegating: { + balance: 'u128', + target: 'AccountId32', + conviction: 'PalletDemocracyConviction', + delegations: 'PalletDemocracyDelegations', + prior: 'PalletDemocracyVotePriorLock', + }, + }, + }, + /** + * Lookup405: pallet_democracy::types::Delegations + **/ + PalletDemocracyDelegations: { + votes: 'u128', + capital: 'u128', + }, + /** + * Lookup406: pallet_democracy::vote::PriorLock + **/ + PalletDemocracyVotePriorLock: '(u32,u128)', + /** + * Lookup409: pallet_democracy::pallet::Error + **/ + PalletDemocracyError: { + _enum: [ + 'ValueLow', + 'ProposalMissing', + 'AlreadyCanceled', + 'DuplicateProposal', + 'ProposalBlacklisted', + 'NotSimpleMajority', + 'InvalidHash', + 'NoProposal', + 'AlreadyVetoed', + 'ReferendumInvalid', + 'NoneWaiting', + 'NotVoter', + 'NoPermission', + 'AlreadyDelegating', + 'InsufficientFunds', + 'NotDelegating', + 'VotesExist', + 'InstantNotAllowed', + 'Nonsense', + 'WrongUpperBound', + 'MaxVotesReached', + 'TooMany', + 'VotingPeriodLow', + 'PreimageNotExist', + ], + }, + /** + * Lookup411: pallet_collective::Votes + **/ + PalletCollectiveVotes: { + index: 'u32', + threshold: 'u32', + ayes: 'Vec', + nays: 'Vec', + end: 'u32', + }, + /** + * Lookup412: pallet_collective::pallet::Error + **/ + PalletCollectiveError: { + _enum: [ + 'NotMember', + 'DuplicateProposal', + 'ProposalMissing', + 'WrongIndex', + 'DuplicateVote', + 'AlreadyInitialized', + 'TooEarly', + 'TooManyProposals', + 'WrongProposalWeight', + 'WrongProposalLength', + ], + }, + /** + * Lookup414: pallet_membership::pallet::Error + **/ + PalletMembershipError: { + _enum: ['AlreadyMember', 'NotMember', 'TooManyMembers'], + }, + /** + * Lookup417: pallet_bounties::Bounty + **/ + PalletBountiesBounty: { + proposer: 'AccountId32', + value: 'u128', + fee: 'u128', + curatorDeposit: 'u128', + bond: 'u128', + status: 'PalletBountiesBountyStatus', + }, + /** + * Lookup418: pallet_bounties::BountyStatus + **/ + PalletBountiesBountyStatus: { + _enum: { + Proposed: 'Null', + Approved: 'Null', + Funded: 'Null', + CuratorProposed: { + curator: 'AccountId32', + }, + Active: { + curator: 'AccountId32', + updateDue: 'u32', + }, + PendingPayout: { + curator: 'AccountId32', + beneficiary: 'AccountId32', + unlockAt: 'u32', + }, + }, + }, + /** + * Lookup420: pallet_bounties::pallet::Error + **/ + PalletBountiesError: { + _enum: [ + 'InsufficientProposersBalance', + 'InvalidIndex', + 'ReasonTooBig', + 'UnexpectedStatus', + 'RequireCurator', + 'InvalidValue', + 'InvalidFee', + 'PendingPayout', + 'Premature', + 'HasActiveChildBounty', + 'TooManyQueued', + ], + }, + /** + * Lookup421: pallet_tips::OpenTip + **/ + PalletTipsOpenTip: { + reason: 'H256', + who: 'AccountId32', + finder: 'AccountId32', + deposit: 'u128', + closes: 'Option', + tips: 'Vec<(AccountId32,u128)>', + findersFee: 'bool', + }, + /** + * Lookup423: pallet_tips::pallet::Error + **/ + PalletTipsError: { + _enum: ['ReasonTooBig', 'AlreadyKnown', 'UnknownTip', 'NotFinder', 'StillOpen', 'Premature'], + }, + /** + * Lookup424: pallet_identity::types::Registration + **/ + PalletIdentityRegistration: { + judgements: 'Vec<(u32,PalletIdentityJudgement)>', + deposit: 'u128', + info: 'PalletIdentityIdentityInfo', + }, + /** + * Lookup431: pallet_identity::types::RegistrarInfo + **/ + PalletIdentityRegistrarInfo: { + account: 'AccountId32', + fee: 'u128', + fields: 'PalletIdentityBitFlags', + }, + /** + * Lookup433: pallet_identity::pallet::Error + **/ + PalletIdentityError: { + _enum: [ + 'TooManySubAccounts', + 'NotFound', + 'NotNamed', + 'EmptyIndex', + 'FeeChanged', + 'NoIdentity', + 'StickyJudgement', + 'JudgementGiven', + 'InvalidJudgement', + 'InvalidIndex', + 'InvalidTarget', + 'TooManyFields', + 'TooManyRegistrars', + 'AlreadyClaimed', + 'NotSub', + 'NotOwned', + 'JudgementForDifferentIdentity', + 'JudgementPaymentFailed', + ], + }, + /** + * Lookup435: polkadot_primitives::v2::UpgradeRestriction + **/ + PolkadotPrimitivesV2UpgradeRestriction: { + _enum: ['Present'], + }, + /** + * Lookup436: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot + **/ + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { + dmqMqcHead: 'H256', + relayDispatchQueueSize: '(u32,u32)', + ingressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>', + egressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>', + }, + /** + * Lookup439: polkadot_primitives::v2::AbridgedHrmpChannel + **/ + PolkadotPrimitivesV2AbridgedHrmpChannel: { + maxCapacity: 'u32', + maxTotalSize: 'u32', + maxMessageSize: 'u32', + msgCount: 'u32', + totalSize: 'u32', + mqcHead: 'Option', + }, + /** + * Lookup440: polkadot_primitives::v2::AbridgedHostConfiguration + **/ + PolkadotPrimitivesV2AbridgedHostConfiguration: { + maxCodeSize: 'u32', + maxHeadDataSize: 'u32', + maxUpwardQueueCount: 'u32', + maxUpwardQueueSize: 'u32', + maxUpwardMessageSize: 'u32', + maxUpwardMessageNumPerCandidate: 'u32', + hrmpMaxMessageNumPerCandidate: 'u32', + validationUpgradeCooldown: 'u32', + validationUpgradeDelay: 'u32', + }, + /** + * Lookup446: polkadot_core_primitives::OutboundHrmpMessage + **/ + PolkadotCorePrimitivesOutboundHrmpMessage: { + recipient: 'u32', + data: 'Bytes', + }, + /** + * Lookup447: cumulus_pallet_parachain_system::pallet::Error + **/ + CumulusPalletParachainSystemError: { + _enum: [ + 'OverlappingUpgrades', + 'ProhibitedByPolkadot', + 'TooBig', + 'ValidationDataNotAvailable', + 'HostConfigurationNotAvailable', + 'NotScheduled', + 'NothingAuthorized', + 'Unauthorized', + ], + }, + /** + * Lookup451: sp_core::crypto::KeyTypeId + **/ + SpCoreCryptoKeyTypeId: '[u8;4]', + /** + * Lookup452: pallet_session::pallet::Error + **/ + PalletSessionError: { + _enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount'], + }, + /** + * Lookup456: pallet_parachain_staking::types::ParachainBondConfig + **/ + PalletParachainStakingParachainBondConfig: { + account: 'AccountId32', + percent: 'Percent', + }, + /** + * Lookup457: pallet_parachain_staking::types::RoundInfo + **/ + PalletParachainStakingRoundInfo: { + current: 'u32', + first: 'u32', + length: 'u32', + }, + /** + * Lookup458: pallet_parachain_staking::types::Delegator + **/ + PalletParachainStakingDelegator: { + id: 'AccountId32', + delegations: 'PalletParachainStakingSetOrderedSet', + total: 'u128', + lessTotal: 'u128', + status: 'PalletParachainStakingDelegatorStatus', + }, + /** + * Lookup459: pallet_parachain_staking::set::OrderedSet> + **/ + PalletParachainStakingSetOrderedSet: 'Vec', + /** + * Lookup460: pallet_parachain_staking::types::Bond + **/ + PalletParachainStakingBond: { + owner: 'AccountId32', + amount: 'u128', + }, + /** + * Lookup462: pallet_parachain_staking::types::DelegatorStatus + **/ + PalletParachainStakingDelegatorStatus: { + _enum: ['Active'], + }, + /** + * Lookup463: pallet_parachain_staking::types::CandidateMetadata + **/ + PalletParachainStakingCandidateMetadata: { + bond: 'u128', + delegationCount: 'u32', + totalCounted: 'u128', + lowestTopDelegationAmount: 'u128', + highestBottomDelegationAmount: 'u128', + lowestBottomDelegationAmount: 'u128', + topCapacity: 'PalletParachainStakingCapacityStatus', + bottomCapacity: 'PalletParachainStakingCapacityStatus', + request: 'Option', + status: 'PalletParachainStakingCollatorStatus', + }, + /** + * Lookup464: pallet_parachain_staking::types::CapacityStatus + **/ + PalletParachainStakingCapacityStatus: { + _enum: ['Full', 'Empty', 'Partial'], + }, + /** + * Lookup466: pallet_parachain_staking::types::CandidateBondLessRequest + **/ + PalletParachainStakingCandidateBondLessRequest: { + amount: 'u128', + whenExecutable: 'u32', + }, + /** + * Lookup467: pallet_parachain_staking::types::CollatorStatus + **/ + PalletParachainStakingCollatorStatus: { + _enum: { + Active: 'Null', + Idle: 'Null', + Leaving: 'u32', + }, + }, + /** + * Lookup469: pallet_parachain_staking::delegation_requests::ScheduledRequest + **/ + PalletParachainStakingDelegationRequestsScheduledRequest: { + delegator: 'AccountId32', + whenExecutable: 'u32', + action: 'PalletParachainStakingDelegationRequestsDelegationAction', + }, + /** + * Lookup471: pallet_parachain_staking::auto_compound::AutoCompoundConfig + **/ + PalletParachainStakingAutoCompoundAutoCompoundConfig: { + delegator: 'AccountId32', + value: 'Percent', + }, + /** + * Lookup472: pallet_parachain_staking::types::Delegations + **/ + PalletParachainStakingDelegations: { + delegations: 'Vec', + total: 'u128', + }, + /** + * Lookup474: pallet_parachain_staking::types::CollatorSnapshot + **/ + PalletParachainStakingCollatorSnapshot: { + bond: 'u128', + delegations: 'Vec', + total: 'u128', + }, + /** + * Lookup476: pallet_parachain_staking::types::BondWithAutoCompound + **/ + PalletParachainStakingBondWithAutoCompound: { + owner: 'AccountId32', + amount: 'u128', + autoCompound: 'Percent', + }, + /** + * Lookup477: pallet_parachain_staking::types::DelayedPayout + **/ + PalletParachainStakingDelayedPayout: { + roundIssuance: 'u128', + totalStakingReward: 'u128', + collatorCommission: 'Perbill', + }, + /** + * Lookup478: pallet_parachain_staking::inflation::InflationInfo + **/ + PalletParachainStakingInflationInflationInfo: { + expect: { + min: 'u128', + ideal: 'u128', + max: 'u128', + }, + annual: { + min: 'Perbill', + ideal: 'Perbill', + max: 'Perbill', + }, + round: { + min: 'Perbill', + ideal: 'Perbill', + max: 'Perbill', + }, + }, + /** + * Lookup479: pallet_parachain_staking::pallet::Error + **/ + PalletParachainStakingError: { + _enum: [ + 'DelegatorDNE', + 'DelegatorDNEinTopNorBottom', + 'DelegatorDNEInDelegatorSet', + 'CandidateDNE', + 'DelegationDNE', + 'DelegatorExists', + 'CandidateExists', + 'CandidateBondBelowMin', + 'InsufficientBalance', + 'DelegatorBondBelowMin', + 'DelegationBelowMin', + 'AlreadyOffline', + 'AlreadyActive', + 'DelegatorAlreadyLeaving', + 'DelegatorNotLeaving', + 'DelegatorCannotLeaveYet', + 'CannotDelegateIfLeaving', + 'CandidateAlreadyLeaving', + 'CandidateNotLeaving', + 'CandidateCannotLeaveYet', + 'CannotGoOnlineIfLeaving', + 'ExceedMaxDelegationsPerDelegator', + 'AlreadyDelegatedCandidate', + 'InvalidSchedule', + 'CannotSetBelowMin', + 'RoundLengthMustBeGreaterThanTotalSelectedCollators', + 'NoWritingSameValue', + 'TooLowCandidateCountWeightHintCancelLeaveCandidates', + 'TooLowCandidateDelegationCountToLeaveCandidates', + 'PendingCandidateRequestsDNE', + 'PendingCandidateRequestAlreadyExists', + 'PendingCandidateRequestNotDueYet', + 'PendingDelegationRequestDNE', + 'PendingDelegationRequestAlreadyExists', + 'PendingDelegationRequestNotDueYet', + 'CannotDelegateLessThanOrEqualToLowestBottomWhenFull', + 'PendingDelegationRevoke', + 'CandidateUnauthorized', + ], + }, + /** + * Lookup481: cumulus_pallet_xcmp_queue::InboundChannelDetails + **/ + CumulusPalletXcmpQueueInboundChannelDetails: { + sender: 'u32', + state: 'CumulusPalletXcmpQueueInboundState', + messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>', + }, + /** + * Lookup482: cumulus_pallet_xcmp_queue::InboundState + **/ + CumulusPalletXcmpQueueInboundState: { + _enum: ['Ok', 'Suspended'], + }, + /** + * Lookup485: polkadot_parachain::primitives::XcmpMessageFormat + **/ + PolkadotParachainPrimitivesXcmpMessageFormat: { + _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals'], + }, + /** + * Lookup488: cumulus_pallet_xcmp_queue::OutboundChannelDetails + **/ + CumulusPalletXcmpQueueOutboundChannelDetails: { + recipient: 'u32', + state: 'CumulusPalletXcmpQueueOutboundState', + signalsExist: 'bool', + firstIndex: 'u16', + lastIndex: 'u16', + }, + /** + * Lookup489: cumulus_pallet_xcmp_queue::OutboundState + **/ + CumulusPalletXcmpQueueOutboundState: { + _enum: ['Ok', 'Suspended'], + }, + /** + * Lookup491: cumulus_pallet_xcmp_queue::QueueConfigData + **/ + CumulusPalletXcmpQueueQueueConfigData: { + suspendThreshold: 'u32', + dropThreshold: 'u32', + resumeThreshold: 'u32', + thresholdWeight: 'SpWeightsWeightV2Weight', + weightRestrictDecay: 'SpWeightsWeightV2Weight', + xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup493: cumulus_pallet_xcmp_queue::pallet::Error + **/ + CumulusPalletXcmpQueueError: { + _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit'], + }, + /** + * Lookup494: pallet_xcm::pallet::QueryStatus + **/ + PalletXcmQueryStatus: { + _enum: { + Pending: { + responder: 'XcmVersionedMultiLocation', + maybeMatchQuerier: 'Option', + maybeNotify: 'Option<(u8,u8)>', + timeout: 'u32', + }, + VersionNotifier: { + origin: 'XcmVersionedMultiLocation', + isActive: 'bool', + }, + Ready: { + response: 'XcmVersionedResponse', + at: 'u32', + }, + }, + }, + /** + * Lookup498: xcm::VersionedResponse + **/ + XcmVersionedResponse: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + V2: 'XcmV2Response', + V3: 'XcmV3Response', + }, + }, + /** + * Lookup504: pallet_xcm::pallet::VersionMigrationStage + **/ + PalletXcmVersionMigrationStage: { + _enum: { + MigrateSupportedVersion: 'Null', + MigrateVersionNotifiers: 'Null', + NotifyCurrentTargets: 'Option', + MigrateAndNotifyOldTargets: 'Null', + }, + }, + /** + * Lookup506: xcm::VersionedAssetId + **/ + XcmVersionedAssetId: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + __Unused2: 'Null', + V3: 'XcmV3MultiassetAssetId', + }, + }, + /** + * Lookup507: pallet_xcm::pallet::RemoteLockedFungibleRecord + **/ + PalletXcmRemoteLockedFungibleRecord: { + amount: 'u128', + owner: 'XcmVersionedMultiLocation', + locker: 'XcmVersionedMultiLocation', + users: 'u32', + }, + /** + * Lookup511: pallet_xcm::pallet::Error + **/ + PalletXcmError: { + _enum: [ + 'Unreachable', + 'SendFailure', + 'Filtered', + 'UnweighableMessage', + 'DestinationNotInvertible', + 'Empty', + 'CannotReanchor', + 'TooManyAssets', + 'InvalidOrigin', + 'BadVersion', + 'BadLocation', + 'NoSubscription', + 'AlreadySubscribed', + 'InvalidAsset', + 'LowBalance', + 'TooManyLocks', + 'AccountNotSovereign', + 'FeesNotMet', + 'LockNotFound', + 'InUse', + ], + }, + /** + * Lookup512: cumulus_pallet_xcm::pallet::Error + **/ + CumulusPalletXcmError: 'Null', + /** + * Lookup513: cumulus_pallet_dmp_queue::ConfigData + **/ + CumulusPalletDmpQueueConfigData: { + maxIndividual: 'SpWeightsWeightV2Weight', + }, + /** + * Lookup514: cumulus_pallet_dmp_queue::PageIndexData + **/ + CumulusPalletDmpQueuePageIndexData: { + beginUsed: 'u32', + endUsed: 'u32', + overweightCount: 'u64', + }, + /** + * Lookup517: cumulus_pallet_dmp_queue::pallet::Error + **/ + CumulusPalletDmpQueueError: { + _enum: ['Unknown', 'OverLimit'], + }, + /** + * Lookup518: orml_xtokens::module::Error + **/ + OrmlXtokensModuleError: { + _enum: [ + 'AssetHasNoReserve', + 'NotCrossChainTransfer', + 'InvalidDest', + 'NotCrossChainTransferableCurrency', + 'UnweighableMessage', + 'XcmExecutionFailed', + 'CannotReanchor', + 'InvalidAncestry', + 'InvalidAsset', + 'DestinationNotInvertible', + 'BadVersion', + 'DistinctReserveForAssetAndFee', + 'ZeroFee', + 'ZeroAmount', + 'TooManyAssetsBeingSent', + 'AssetIndexNonExistent', + 'FeeNotEnough', + 'NotSupportedMultiLocation', + 'MinXcmFeeNotDefined', + ], + }, + /** + * Lookup520: orml_tokens::BalanceLock + **/ + OrmlTokensBalanceLock: { + id: '[u8;8]', + amount: 'u128', + }, + /** + * Lookup522: orml_tokens::AccountData + **/ + OrmlTokensAccountData: { + free: 'u128', + reserved: 'u128', + frozen: 'u128', + }, + /** + * Lookup524: orml_tokens::ReserveData + **/ + OrmlTokensReserveData: { + id: '[u8;8]', + amount: 'u128', + }, + /** + * Lookup526: orml_tokens::module::Error + **/ + OrmlTokensModuleError: { + _enum: [ + 'BalanceTooLow', + 'AmountIntoBalanceFailed', + 'LiquidityRestrictions', + 'MaxLocksExceeded', + 'KeepAlive', + 'ExistentialDeposit', + 'DeadAccount', + 'TooManyReserves', + ], + }, + /** + * Lookup529: pallet_bridge::pallet::ProposalVotes + **/ + PalletBridgeProposalVotes: { + votesFor: 'Vec', + votesAgainst: 'Vec', + status: 'PalletBridgeProposalStatus', + expiry: 'u32', + }, + /** + * Lookup530: pallet_bridge::pallet::ProposalStatus + **/ + PalletBridgeProposalStatus: { + _enum: ['Initiated', 'Approved', 'Rejected'], + }, + /** + * Lookup532: pallet_bridge::pallet::BridgeEvent + **/ + PalletBridgeBridgeEvent: { + _enum: { + FungibleTransfer: '(u8,u64,[u8;32],u128,Bytes)', + NonFungibleTransfer: '(u8,u64,[u8;32],Bytes,Bytes,Bytes)', + GenericTransfer: '(u8,u64,[u8;32],Bytes)', + }, + }, + /** + * Lookup533: pallet_bridge::pallet::Error + **/ + PalletBridgeError: { + _enum: [ + 'ThresholdNotSet', + 'InvalidChainId', + 'InvalidThreshold', + 'ChainNotWhitelisted', + 'ChainAlreadyWhitelisted', + 'ResourceDoesNotExist', + 'RelayerAlreadyExists', + 'RelayerInvalid', + 'MustBeRelayer', + 'RelayerAlreadyVoted', + 'ProposalAlreadyExists', + 'ProposalDoesNotExist', + 'ProposalNotComplete', + 'ProposalAlreadyComplete', + 'ProposalExpired', + 'FeeTooExpensive', + 'FeeDoesNotExist', + 'InsufficientBalance', + 'CannotPayAsFee', + 'NonceOverFlow', + ], + }, + /** + * Lookup535: pallet_bridge_transfer::pallet::Error + **/ + PalletBridgeTransferError: { + _enum: ['InvalidCommand', 'InvalidResourceId', 'ReachMaximumSupply', 'OverFlow'], + }, + /** + * Lookup536: pallet_drop3::RewardPool, sp_core::crypto::AccountId32, Balance, BlockNumber> + **/ + PalletDrop3RewardPool: { + id: 'u64', + name: 'Bytes', + owner: 'AccountId32', + total: 'u128', + remain: 'u128', + createAt: 'u32', + startAt: 'u32', + endAt: 'u32', + started: 'bool', + approved: 'bool', + }, + /** + * Lookup538: pallet_drop3::pallet::Error + **/ + PalletDrop3Error: { + _enum: [ + 'RequireAdmin', + 'RequireRewardPoolOwner', + 'RequireAdminOrRewardPoolOwner', + 'NoSuchRewardPool', + 'InsufficientReservedBalance', + 'InvalidTotalBalance', + 'InsufficientRemain', + 'InvalidProposedBlock', + 'RewardPoolUnapproved', + 'RewardPoolAlreadyApproved', + 'RewardPoolStopped', + 'RewardPoolRanTooEarly', + 'RewardPoolRanTooLate', + 'UnexpectedUnMovedAmount', + 'NoVacantPoolId', + ], + }, + /** + * Lookup539: pallet_extrinsic_filter::pallet::Error + **/ + PalletExtrinsicFilterError: { + _enum: ['CannotBlock', 'CannotConvertToString', 'ExtrinsicAlreadyBlocked', 'ExtrinsicNotBlocked'], + }, + /** + * Lookup540: pallet_identity_management::pallet::Error + **/ + PalletIdentityManagementError: { + _enum: ['DelegateeNotExist', 'UnauthorisedUser'], + }, + /** + * Lookup541: pallet_asset_manager::pallet::Error + **/ + PalletAssetManagerError: { + _enum: [ + 'AssetAlreadyExists', + 'AssetTypeDoesNotExist', + 'AssetIdDoesNotExist', + 'DefaultAssetTypeRemoved', + 'AssetIdLimitReached', + ], + }, + /** + * Lookup542: pallet_vc_management::vc_context::VCContext + **/ + PalletVcManagementVcContext: { + _alias: { + hash_: 'hash', + }, + subject: 'AccountId32', + assertion: 'CorePrimitivesAssertion', + hash_: 'H256', + status: 'PalletVcManagementVcContextStatus', + }, + /** + * Lookup543: pallet_vc_management::vc_context::Status + **/ + PalletVcManagementVcContextStatus: { + _enum: ['Active', 'Disabled'], + }, + /** + * Lookup544: pallet_vc_management::schema::VCSchema + **/ + PalletVcManagementSchemaVcSchema: { + id: 'Bytes', + author: 'AccountId32', + content: 'Bytes', + status: 'PalletVcManagementVcContextStatus', + }, + /** + * Lookup546: pallet_vc_management::pallet::Error + **/ + PalletVcManagementError: { + _enum: [ + 'VCAlreadyExists', + 'VCNotExist', + 'VCSubjectMismatch', + 'VCAlreadyDisabled', + 'RequireAdmin', + 'SchemaNotExists', + 'SchemaAlreadyDisabled', + 'SchemaAlreadyActivated', + 'SchemaIndexOverFlow', + 'LengthMismatch', + ], + }, + /** + * Lookup547: pallet_group::pallet::Error + **/ + PalletGroupError: { + _enum: ['GroupMemberAlreadyExists', 'GroupMemberInvalid'], + }, + /** + * Lookup549: teerex_primitives::Enclave + **/ + TeerexPrimitivesEnclave: { + pubkey: 'AccountId32', + mrEnclave: '[u8;32]', + timestamp: 'u64', + url: 'Bytes', + shieldingKey: 'Option', + vcPubkey: 'Option', + sgxMode: 'TeerexPrimitivesSgxBuildMode', + sgxMetadata: 'TeerexPrimitivesSgxEnclaveMetadata', + }, + /** + * Lookup550: teerex_primitives::SgxBuildMode + **/ + TeerexPrimitivesSgxBuildMode: { + _enum: ['Debug', 'Production'], + }, + /** + * Lookup551: teerex_primitives::SgxEnclaveMetadata + **/ + TeerexPrimitivesSgxEnclaveMetadata: { + quote: 'Bytes', + quoteSig: 'Bytes', + quoteCert: 'Bytes', + }, + /** + * Lookup552: 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', + }, + /** + * Lookup554: teerex_primitives::QeTcb + **/ + TeerexPrimitivesQeTcb: { + isvsvn: 'u16', + }, + /** + * Lookup555: teerex_primitives::TcbInfoOnChain + **/ + TeerexPrimitivesTcbInfoOnChain: { + issueDate: 'u64', + nextUpdate: 'u64', + tcbLevels: 'Vec', + }, + /** + * Lookup557: teerex_primitives::TcbVersionStatus + **/ + TeerexPrimitivesTcbVersionStatus: { + cpusvn: '[u8;16]', + pcesvn: 'u16', + }, + /** + * Lookup558: pallet_teerex::pallet::Error + **/ + PalletTeerexError: { + _enum: [ + 'RequireAdmin', + 'EnclaveSignerDecodeError', + 'SenderIsNotAttestedEnclave', + 'RemoteAttestationVerificationFailed', + 'RemoteAttestationTooOld', + 'SgxModeNotAllowed', + 'EnclaveIsNotRegistered', + 'WrongMrenclaveForBondingAccount', + 'WrongMrenclaveForShard', + 'EnclaveUrlTooLong', + 'RaReportTooLong', + 'EmptyEnclaveRegistry', + 'ScheduledEnclaveNotExist', + 'EnclaveNotInSchedule', + 'CollateralInvalid', + 'TooManyTopics', + 'DataTooLong', + ], + }, + /** + * Lookup559: sidechain_primitives::SidechainBlockConfirmation + **/ + SidechainPrimitivesSidechainBlockConfirmation: { + blockNumber: 'u64', + blockHeaderHash: 'H256', + }, + /** + * Lookup560: pallet_sidechain::pallet::Error + **/ + PalletSidechainError: { + _enum: ['ReceivedUnexpectedSidechainBlock', 'InvalidNextFinalizationCandidateBlockNumber'], + }, + /** + * Lookup563: pallet_teeracle::pallet::Error + **/ + PalletTeeracleError: { + _enum: [ + 'InvalidCurrency', + 'ReleaseWhitelistOverflow', + 'ReleaseNotWhitelisted', + 'ReleaseAlreadyWhitelisted', + 'TradingPairStringTooLong', + 'OracleDataNameStringTooLong', + 'DataSourceStringTooLong', + 'OracleBlobTooBig', + ], + }, + /** + * Lookup565: pallet_identity_management_mock::pallet::Error + **/ + PalletIdentityManagementMockError: { + _enum: [ + 'DelegateeNotExist', + 'UnauthorisedUser', + 'ShieldingKeyDecryptionFailed', + 'WrongDecodedType', + 'IdentityAlreadyVerified', + 'IdentityNotExist', + 'CreatePrimeIdentityNotAllowed', + 'ShieldingKeyNotExist', + 'VerificationRequestTooEarly', + 'VerificationRequestTooLate', + 'VerifySubstrateSignatureFailed', + 'RecoverSubstratePubkeyFailed', + 'VerifyEvmSignatureFailed', + 'CreationRequestBlockZero', + 'ChallengeCodeNotExist', + 'WrongSignatureType', + 'WrongIdentityType', + 'RecoverEvmAddressFailed', + 'UnexpectedMessage', + ], + }, + /** + * Lookup566: pallet_sudo::pallet::Error + **/ + PalletSudoError: { + _enum: ['RequireSudo'], + }, + /** + * Lookup568: sp_runtime::MultiSignature + **/ + SpRuntimeMultiSignature: { + _enum: { + Ed25519: 'SpCoreEd25519Signature', + Sr25519: 'SpCoreSr25519Signature', + Ecdsa: 'SpCoreEcdsaSignature', + }, + }, + /** + * Lookup569: sp_core::ed25519::Signature + **/ + SpCoreEd25519Signature: '[u8;64]', + /** + * Lookup571: sp_core::sr25519::Signature + **/ + SpCoreSr25519Signature: '[u8;64]', + /** + * Lookup572: sp_core::ecdsa::Signature + **/ + SpCoreEcdsaSignature: '[u8;65]', + /** + * Lookup575: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender + **/ + FrameSystemExtensionsCheckNonZeroSender: 'Null', + /** + * Lookup576: frame_system::extensions::check_spec_version::CheckSpecVersion + **/ + FrameSystemExtensionsCheckSpecVersion: 'Null', + /** + * Lookup577: frame_system::extensions::check_tx_version::CheckTxVersion + **/ + FrameSystemExtensionsCheckTxVersion: 'Null', + /** + * Lookup578: frame_system::extensions::check_genesis::CheckGenesis + **/ + FrameSystemExtensionsCheckGenesis: 'Null', + /** + * Lookup581: frame_system::extensions::check_nonce::CheckNonce + **/ + FrameSystemExtensionsCheckNonce: 'Compact', + /** + * Lookup582: frame_system::extensions::check_weight::CheckWeight + **/ + FrameSystemExtensionsCheckWeight: 'Null', + /** + * Lookup583: pallet_transaction_payment::ChargeTransactionPayment + **/ + PalletTransactionPaymentChargeTransactionPayment: 'Compact', +}; diff --git a/tee-worker/ts-tests/parachain-interfaces/registry.ts b/tee-worker/ts-tests/parachain-interfaces/registry.ts new file mode 100644 index 0000000000..a22575b999 --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/registry.ts @@ -0,0 +1,672 @@ +// 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 { + CorePrimitivesAssertion, + CorePrimitivesAssertionIndexingNetwork, + CorePrimitivesErrorErrorDetail, + CorePrimitivesErrorImpError, + CorePrimitivesErrorVcmpError, + CorePrimitivesKeyAesOutput, + CumulusPalletDmpQueueCall, + CumulusPalletDmpQueueConfigData, + CumulusPalletDmpQueueError, + CumulusPalletDmpQueueEvent, + CumulusPalletDmpQueuePageIndexData, + CumulusPalletParachainSystemCall, + CumulusPalletParachainSystemError, + CumulusPalletParachainSystemEvent, + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, + CumulusPalletXcmCall, + CumulusPalletXcmError, + CumulusPalletXcmEvent, + CumulusPalletXcmOrigin, + CumulusPalletXcmpQueueCall, + CumulusPalletXcmpQueueError, + CumulusPalletXcmpQueueEvent, + CumulusPalletXcmpQueueInboundChannelDetails, + CumulusPalletXcmpQueueInboundState, + CumulusPalletXcmpQueueOutboundChannelDetails, + CumulusPalletXcmpQueueOutboundState, + CumulusPalletXcmpQueueQueueConfigData, + CumulusPrimitivesParachainInherentParachainInherentData, + 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, + MockTeePrimitivesIdentity, + MockTeePrimitivesIdentityAddress20, + MockTeePrimitivesIdentityAddress32, + MockTeePrimitivesIdentityEvmNetwork, + MockTeePrimitivesIdentitySubstrateNetwork, + MockTeePrimitivesIdentityWeb2Network, + OrmlTokensAccountData, + OrmlTokensBalanceLock, + OrmlTokensModuleCall, + OrmlTokensModuleError, + OrmlTokensModuleEvent, + OrmlTokensReserveData, + OrmlXtokensModuleCall, + OrmlXtokensModuleError, + OrmlXtokensModuleEvent, + PalletAssetManagerAssetMetadata, + PalletAssetManagerCall, + PalletAssetManagerError, + PalletAssetManagerEvent, + PalletBalancesAccountData, + PalletBalancesBalanceLock, + PalletBalancesCall, + PalletBalancesError, + PalletBalancesEvent, + PalletBalancesReasons, + PalletBalancesReserveData, + PalletBountiesBounty, + PalletBountiesBountyStatus, + PalletBountiesCall, + PalletBountiesError, + PalletBountiesEvent, + PalletBridgeBridgeEvent, + PalletBridgeCall, + PalletBridgeError, + PalletBridgeEvent, + PalletBridgeProposalStatus, + PalletBridgeProposalVotes, + PalletBridgeTransferCall, + PalletBridgeTransferError, + PalletBridgeTransferEvent, + PalletCollectiveCall, + PalletCollectiveError, + PalletCollectiveEvent, + PalletCollectiveRawOrigin, + PalletCollectiveVotes, + PalletDemocracyCall, + PalletDemocracyConviction, + PalletDemocracyDelegations, + PalletDemocracyError, + PalletDemocracyEvent, + PalletDemocracyMetadataOwner, + PalletDemocracyReferendumInfo, + PalletDemocracyReferendumStatus, + PalletDemocracyTally, + PalletDemocracyVoteAccountVote, + PalletDemocracyVotePriorLock, + PalletDemocracyVoteThreshold, + PalletDemocracyVoteVoting, + PalletDrop3Call, + PalletDrop3Error, + PalletDrop3Event, + PalletDrop3RewardPool, + PalletExtrinsicFilterCall, + PalletExtrinsicFilterError, + PalletExtrinsicFilterEvent, + PalletExtrinsicFilterOperationalMode, + PalletGroupCall, + PalletGroupError, + PalletGroupEvent, + PalletIdentityBitFlags, + PalletIdentityCall, + PalletIdentityError, + PalletIdentityEvent, + PalletIdentityIdentityField, + PalletIdentityIdentityInfo, + PalletIdentityJudgement, + PalletIdentityManagementCall, + PalletIdentityManagementError, + PalletIdentityManagementEvent, + PalletIdentityManagementMockCall, + PalletIdentityManagementMockError, + PalletIdentityManagementMockEvent, + PalletIdentityManagementMockIdentityContext, + PalletIdentityRegistrarInfo, + PalletIdentityRegistration, + PalletMembershipCall, + PalletMembershipError, + PalletMembershipEvent, + PalletMultisigCall, + PalletMultisigError, + PalletMultisigEvent, + PalletMultisigMultisig, + PalletMultisigTimepoint, + PalletParachainStakingAutoCompoundAutoCompoundConfig, + PalletParachainStakingBond, + PalletParachainStakingBondWithAutoCompound, + PalletParachainStakingCall, + PalletParachainStakingCandidateBondLessRequest, + PalletParachainStakingCandidateMetadata, + PalletParachainStakingCapacityStatus, + PalletParachainStakingCollatorSnapshot, + PalletParachainStakingCollatorStatus, + PalletParachainStakingDelayedPayout, + PalletParachainStakingDelegationRequestsCancelledScheduledRequest, + PalletParachainStakingDelegationRequestsDelegationAction, + PalletParachainStakingDelegationRequestsScheduledRequest, + PalletParachainStakingDelegations, + PalletParachainStakingDelegator, + PalletParachainStakingDelegatorAdded, + PalletParachainStakingDelegatorStatus, + PalletParachainStakingError, + PalletParachainStakingEvent, + PalletParachainStakingInflationInflationInfo, + PalletParachainStakingParachainBondConfig, + PalletParachainStakingRoundInfo, + PalletParachainStakingSetOrderedSet, + PalletPreimageCall, + PalletPreimageError, + PalletPreimageEvent, + PalletPreimageRequestStatus, + PalletProxyAnnouncement, + PalletProxyCall, + PalletProxyError, + PalletProxyEvent, + PalletProxyProxyDefinition, + PalletSchedulerCall, + PalletSchedulerError, + PalletSchedulerEvent, + PalletSchedulerScheduled, + PalletSessionCall, + PalletSessionError, + PalletSessionEvent, + PalletSidechainCall, + PalletSidechainError, + PalletSidechainEvent, + PalletSudoCall, + PalletSudoError, + PalletSudoEvent, + PalletTeeracleCall, + PalletTeeracleError, + PalletTeeracleEvent, + PalletTeerexCall, + PalletTeerexError, + PalletTeerexEvent, + PalletTimestampCall, + PalletTipsCall, + PalletTipsError, + PalletTipsEvent, + PalletTipsOpenTip, + PalletTransactionPaymentChargeTransactionPayment, + PalletTransactionPaymentEvent, + PalletTransactionPaymentReleases, + PalletTreasuryCall, + PalletTreasuryError, + PalletTreasuryEvent, + PalletTreasuryProposal, + PalletUtilityCall, + PalletUtilityError, + PalletUtilityEvent, + PalletVcManagementCall, + PalletVcManagementError, + PalletVcManagementEvent, + PalletVcManagementSchemaVcSchema, + PalletVcManagementVcContext, + PalletVcManagementVcContextStatus, + PalletVestingCall, + PalletVestingError, + PalletVestingEvent, + PalletVestingReleases, + PalletVestingVestingInfo, + PalletXcmCall, + PalletXcmError, + PalletXcmEvent, + PalletXcmOrigin, + PalletXcmQueryStatus, + PalletXcmRemoteLockedFungibleRecord, + PalletXcmVersionMigrationStage, + ParachainInfoCall, + PolkadotCorePrimitivesInboundDownwardMessage, + PolkadotCorePrimitivesInboundHrmpMessage, + PolkadotCorePrimitivesOutboundHrmpMessage, + PolkadotParachainPrimitivesXcmpMessageFormat, + PolkadotPrimitivesV2AbridgedHostConfiguration, + PolkadotPrimitivesV2AbridgedHrmpChannel, + PolkadotPrimitivesV2PersistedValidationData, + PolkadotPrimitivesV2UpgradeRestriction, + RococoParachainRuntimeOriginCaller, + RococoParachainRuntimeProxyType, + RococoParachainRuntimeRuntime, + RococoParachainRuntimeSessionKeys, + RuntimeCommonXcmImplCurrencyId, + SidechainPrimitivesSidechainBlockConfirmation, + SpArithmeticArithmeticError, + SpConsensusAuraSr25519AppSr25519Public, + SpCoreCryptoKeyTypeId, + SpCoreEcdsaSignature, + SpCoreEd25519Signature, + SpCoreSr25519Public, + SpCoreSr25519Signature, + SpCoreVoid, + SpRuntimeDigest, + SpRuntimeDigestDigestItem, + SpRuntimeDispatchError, + SpRuntimeModuleError, + SpRuntimeMultiSignature, + SpRuntimeTokenError, + SpRuntimeTransactionalError, + SpTrieStorageProof, + SpVersionRuntimeVersion, + SpWeightsRuntimeDbWeight, + SpWeightsWeightV2Weight, + SubstrateFixedFixedU64, + TeerexPrimitivesEnclave, + TeerexPrimitivesQeTcb, + TeerexPrimitivesQuotingEnclave, + TeerexPrimitivesRequest, + TeerexPrimitivesSgxBuildMode, + TeerexPrimitivesSgxEnclaveMetadata, + TeerexPrimitivesTcbInfoOnChain, + TeerexPrimitivesTcbVersionStatus, + TypenumBitB0, + TypenumBitB1, + TypenumUIntUInt, + TypenumUIntUTerm, + TypenumUintUTerm, + XcmDoubleEncoded, + XcmV2BodyId, + XcmV2BodyPart, + XcmV2Instruction, + XcmV2Junction, + XcmV2MultiAsset, + XcmV2MultiLocation, + XcmV2MultiassetAssetId, + XcmV2MultiassetAssetInstance, + XcmV2MultiassetFungibility, + XcmV2MultiassetMultiAssetFilter, + XcmV2MultiassetMultiAssets, + XcmV2MultiassetWildFungibility, + XcmV2MultiassetWildMultiAsset, + XcmV2MultilocationJunctions, + XcmV2NetworkId, + XcmV2OriginKind, + XcmV2Response, + XcmV2TraitsError, + XcmV2WeightLimit, + XcmV2Xcm, + XcmV3Instruction, + XcmV3Junction, + XcmV3JunctionBodyId, + XcmV3JunctionBodyPart, + XcmV3JunctionNetworkId, + XcmV3Junctions, + XcmV3MaybeErrorCode, + XcmV3MultiAsset, + XcmV3MultiLocation, + XcmV3MultiassetAssetId, + XcmV3MultiassetAssetInstance, + XcmV3MultiassetFungibility, + XcmV3MultiassetMultiAssetFilter, + XcmV3MultiassetMultiAssets, + XcmV3MultiassetWildFungibility, + XcmV3MultiassetWildMultiAsset, + XcmV3PalletInfo, + XcmV3QueryResponseInfo, + XcmV3Response, + XcmV3TraitsError, + XcmV3TraitsOutcome, + XcmV3WeightLimit, + XcmV3Xcm, + XcmVersionedAssetId, + XcmVersionedMultiAsset, + XcmVersionedMultiAssets, + XcmVersionedMultiLocation, + XcmVersionedResponse, + XcmVersionedXcm, +} from '@polkadot/types/lookup'; + +declare module '@polkadot/types/types/registry' { + interface InterfaceTypes { + CorePrimitivesAssertion: CorePrimitivesAssertion; + CorePrimitivesAssertionIndexingNetwork: CorePrimitivesAssertionIndexingNetwork; + CorePrimitivesErrorErrorDetail: CorePrimitivesErrorErrorDetail; + CorePrimitivesErrorImpError: CorePrimitivesErrorImpError; + CorePrimitivesErrorVcmpError: CorePrimitivesErrorVcmpError; + CorePrimitivesKeyAesOutput: CorePrimitivesKeyAesOutput; + CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall; + CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData; + CumulusPalletDmpQueueError: CumulusPalletDmpQueueError; + CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent; + CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData; + CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall; + CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; + CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent; + CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; + CumulusPalletXcmCall: CumulusPalletXcmCall; + CumulusPalletXcmError: CumulusPalletXcmError; + CumulusPalletXcmEvent: CumulusPalletXcmEvent; + CumulusPalletXcmOrigin: CumulusPalletXcmOrigin; + CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall; + CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError; + CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent; + CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails; + CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState; + CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails; + CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState; + CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData; + CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData; + 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; + MockTeePrimitivesIdentity: MockTeePrimitivesIdentity; + MockTeePrimitivesIdentityAddress20: MockTeePrimitivesIdentityAddress20; + MockTeePrimitivesIdentityAddress32: MockTeePrimitivesIdentityAddress32; + MockTeePrimitivesIdentityEvmNetwork: MockTeePrimitivesIdentityEvmNetwork; + MockTeePrimitivesIdentitySubstrateNetwork: MockTeePrimitivesIdentitySubstrateNetwork; + MockTeePrimitivesIdentityWeb2Network: MockTeePrimitivesIdentityWeb2Network; + OrmlTokensAccountData: OrmlTokensAccountData; + OrmlTokensBalanceLock: OrmlTokensBalanceLock; + OrmlTokensModuleCall: OrmlTokensModuleCall; + OrmlTokensModuleError: OrmlTokensModuleError; + OrmlTokensModuleEvent: OrmlTokensModuleEvent; + OrmlTokensReserveData: OrmlTokensReserveData; + OrmlXtokensModuleCall: OrmlXtokensModuleCall; + OrmlXtokensModuleError: OrmlXtokensModuleError; + OrmlXtokensModuleEvent: OrmlXtokensModuleEvent; + PalletAssetManagerAssetMetadata: PalletAssetManagerAssetMetadata; + PalletAssetManagerCall: PalletAssetManagerCall; + PalletAssetManagerError: PalletAssetManagerError; + PalletAssetManagerEvent: PalletAssetManagerEvent; + PalletBalancesAccountData: PalletBalancesAccountData; + PalletBalancesBalanceLock: PalletBalancesBalanceLock; + PalletBalancesCall: PalletBalancesCall; + PalletBalancesError: PalletBalancesError; + PalletBalancesEvent: PalletBalancesEvent; + PalletBalancesReasons: PalletBalancesReasons; + PalletBalancesReserveData: PalletBalancesReserveData; + PalletBountiesBounty: PalletBountiesBounty; + PalletBountiesBountyStatus: PalletBountiesBountyStatus; + PalletBountiesCall: PalletBountiesCall; + PalletBountiesError: PalletBountiesError; + PalletBountiesEvent: PalletBountiesEvent; + PalletBridgeBridgeEvent: PalletBridgeBridgeEvent; + PalletBridgeCall: PalletBridgeCall; + PalletBridgeError: PalletBridgeError; + PalletBridgeEvent: PalletBridgeEvent; + PalletBridgeProposalStatus: PalletBridgeProposalStatus; + PalletBridgeProposalVotes: PalletBridgeProposalVotes; + PalletBridgeTransferCall: PalletBridgeTransferCall; + PalletBridgeTransferError: PalletBridgeTransferError; + PalletBridgeTransferEvent: PalletBridgeTransferEvent; + PalletCollectiveCall: PalletCollectiveCall; + PalletCollectiveError: PalletCollectiveError; + PalletCollectiveEvent: PalletCollectiveEvent; + PalletCollectiveRawOrigin: PalletCollectiveRawOrigin; + PalletCollectiveVotes: PalletCollectiveVotes; + PalletDemocracyCall: PalletDemocracyCall; + PalletDemocracyConviction: PalletDemocracyConviction; + PalletDemocracyDelegations: PalletDemocracyDelegations; + PalletDemocracyError: PalletDemocracyError; + PalletDemocracyEvent: PalletDemocracyEvent; + PalletDemocracyMetadataOwner: PalletDemocracyMetadataOwner; + PalletDemocracyReferendumInfo: PalletDemocracyReferendumInfo; + PalletDemocracyReferendumStatus: PalletDemocracyReferendumStatus; + PalletDemocracyTally: PalletDemocracyTally; + PalletDemocracyVoteAccountVote: PalletDemocracyVoteAccountVote; + PalletDemocracyVotePriorLock: PalletDemocracyVotePriorLock; + PalletDemocracyVoteThreshold: PalletDemocracyVoteThreshold; + PalletDemocracyVoteVoting: PalletDemocracyVoteVoting; + PalletDrop3Call: PalletDrop3Call; + PalletDrop3Error: PalletDrop3Error; + PalletDrop3Event: PalletDrop3Event; + PalletDrop3RewardPool: PalletDrop3RewardPool; + PalletExtrinsicFilterCall: PalletExtrinsicFilterCall; + PalletExtrinsicFilterError: PalletExtrinsicFilterError; + PalletExtrinsicFilterEvent: PalletExtrinsicFilterEvent; + PalletExtrinsicFilterOperationalMode: PalletExtrinsicFilterOperationalMode; + PalletGroupCall: PalletGroupCall; + PalletGroupError: PalletGroupError; + PalletGroupEvent: PalletGroupEvent; + PalletIdentityBitFlags: PalletIdentityBitFlags; + PalletIdentityCall: PalletIdentityCall; + PalletIdentityError: PalletIdentityError; + PalletIdentityEvent: PalletIdentityEvent; + PalletIdentityIdentityField: PalletIdentityIdentityField; + PalletIdentityIdentityInfo: PalletIdentityIdentityInfo; + PalletIdentityJudgement: PalletIdentityJudgement; + PalletIdentityManagementCall: PalletIdentityManagementCall; + PalletIdentityManagementError: PalletIdentityManagementError; + PalletIdentityManagementEvent: PalletIdentityManagementEvent; + PalletIdentityManagementMockCall: PalletIdentityManagementMockCall; + PalletIdentityManagementMockError: PalletIdentityManagementMockError; + PalletIdentityManagementMockEvent: PalletIdentityManagementMockEvent; + PalletIdentityManagementMockIdentityContext: PalletIdentityManagementMockIdentityContext; + PalletIdentityRegistrarInfo: PalletIdentityRegistrarInfo; + PalletIdentityRegistration: PalletIdentityRegistration; + PalletMembershipCall: PalletMembershipCall; + PalletMembershipError: PalletMembershipError; + PalletMembershipEvent: PalletMembershipEvent; + PalletMultisigCall: PalletMultisigCall; + PalletMultisigError: PalletMultisigError; + PalletMultisigEvent: PalletMultisigEvent; + PalletMultisigMultisig: PalletMultisigMultisig; + PalletMultisigTimepoint: PalletMultisigTimepoint; + PalletParachainStakingAutoCompoundAutoCompoundConfig: PalletParachainStakingAutoCompoundAutoCompoundConfig; + PalletParachainStakingBond: PalletParachainStakingBond; + PalletParachainStakingBondWithAutoCompound: PalletParachainStakingBondWithAutoCompound; + PalletParachainStakingCall: PalletParachainStakingCall; + PalletParachainStakingCandidateBondLessRequest: PalletParachainStakingCandidateBondLessRequest; + PalletParachainStakingCandidateMetadata: PalletParachainStakingCandidateMetadata; + PalletParachainStakingCapacityStatus: PalletParachainStakingCapacityStatus; + PalletParachainStakingCollatorSnapshot: PalletParachainStakingCollatorSnapshot; + PalletParachainStakingCollatorStatus: PalletParachainStakingCollatorStatus; + PalletParachainStakingDelayedPayout: PalletParachainStakingDelayedPayout; + PalletParachainStakingDelegationRequestsCancelledScheduledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest; + PalletParachainStakingDelegationRequestsDelegationAction: PalletParachainStakingDelegationRequestsDelegationAction; + PalletParachainStakingDelegationRequestsScheduledRequest: PalletParachainStakingDelegationRequestsScheduledRequest; + PalletParachainStakingDelegations: PalletParachainStakingDelegations; + PalletParachainStakingDelegator: PalletParachainStakingDelegator; + PalletParachainStakingDelegatorAdded: PalletParachainStakingDelegatorAdded; + PalletParachainStakingDelegatorStatus: PalletParachainStakingDelegatorStatus; + PalletParachainStakingError: PalletParachainStakingError; + PalletParachainStakingEvent: PalletParachainStakingEvent; + PalletParachainStakingInflationInflationInfo: PalletParachainStakingInflationInflationInfo; + PalletParachainStakingParachainBondConfig: PalletParachainStakingParachainBondConfig; + PalletParachainStakingRoundInfo: PalletParachainStakingRoundInfo; + PalletParachainStakingSetOrderedSet: PalletParachainStakingSetOrderedSet; + 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; + PalletSessionCall: PalletSessionCall; + PalletSessionError: PalletSessionError; + PalletSessionEvent: PalletSessionEvent; + 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; + PalletTipsCall: PalletTipsCall; + PalletTipsError: PalletTipsError; + PalletTipsEvent: PalletTipsEvent; + PalletTipsOpenTip: PalletTipsOpenTip; + 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; + PalletXcmCall: PalletXcmCall; + PalletXcmError: PalletXcmError; + PalletXcmEvent: PalletXcmEvent; + PalletXcmOrigin: PalletXcmOrigin; + PalletXcmQueryStatus: PalletXcmQueryStatus; + PalletXcmRemoteLockedFungibleRecord: PalletXcmRemoteLockedFungibleRecord; + PalletXcmVersionMigrationStage: PalletXcmVersionMigrationStage; + ParachainInfoCall: ParachainInfoCall; + PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage; + PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage; + PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage; + PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat; + PolkadotPrimitivesV2AbridgedHostConfiguration: PolkadotPrimitivesV2AbridgedHostConfiguration; + PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel; + PolkadotPrimitivesV2PersistedValidationData: PolkadotPrimitivesV2PersistedValidationData; + PolkadotPrimitivesV2UpgradeRestriction: PolkadotPrimitivesV2UpgradeRestriction; + RococoParachainRuntimeOriginCaller: RococoParachainRuntimeOriginCaller; + RococoParachainRuntimeProxyType: RococoParachainRuntimeProxyType; + RococoParachainRuntimeRuntime: RococoParachainRuntimeRuntime; + RococoParachainRuntimeSessionKeys: RococoParachainRuntimeSessionKeys; + RuntimeCommonXcmImplCurrencyId: RuntimeCommonXcmImplCurrencyId; + SidechainPrimitivesSidechainBlockConfirmation: SidechainPrimitivesSidechainBlockConfirmation; + SpArithmeticArithmeticError: SpArithmeticArithmeticError; + SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public; + SpCoreCryptoKeyTypeId: SpCoreCryptoKeyTypeId; + SpCoreEcdsaSignature: SpCoreEcdsaSignature; + SpCoreEd25519Signature: SpCoreEd25519Signature; + SpCoreSr25519Public: SpCoreSr25519Public; + SpCoreSr25519Signature: SpCoreSr25519Signature; + SpCoreVoid: SpCoreVoid; + SpRuntimeDigest: SpRuntimeDigest; + SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem; + SpRuntimeDispatchError: SpRuntimeDispatchError; + SpRuntimeModuleError: SpRuntimeModuleError; + SpRuntimeMultiSignature: SpRuntimeMultiSignature; + SpRuntimeTokenError: SpRuntimeTokenError; + SpRuntimeTransactionalError: SpRuntimeTransactionalError; + SpTrieStorageProof: SpTrieStorageProof; + 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; + XcmDoubleEncoded: XcmDoubleEncoded; + XcmV2BodyId: XcmV2BodyId; + XcmV2BodyPart: XcmV2BodyPart; + XcmV2Instruction: XcmV2Instruction; + XcmV2Junction: XcmV2Junction; + XcmV2MultiAsset: XcmV2MultiAsset; + XcmV2MultiLocation: XcmV2MultiLocation; + XcmV2MultiassetAssetId: XcmV2MultiassetAssetId; + XcmV2MultiassetAssetInstance: XcmV2MultiassetAssetInstance; + XcmV2MultiassetFungibility: XcmV2MultiassetFungibility; + XcmV2MultiassetMultiAssetFilter: XcmV2MultiassetMultiAssetFilter; + XcmV2MultiassetMultiAssets: XcmV2MultiassetMultiAssets; + XcmV2MultiassetWildFungibility: XcmV2MultiassetWildFungibility; + XcmV2MultiassetWildMultiAsset: XcmV2MultiassetWildMultiAsset; + XcmV2MultilocationJunctions: XcmV2MultilocationJunctions; + XcmV2NetworkId: XcmV2NetworkId; + XcmV2OriginKind: XcmV2OriginKind; + XcmV2Response: XcmV2Response; + XcmV2TraitsError: XcmV2TraitsError; + XcmV2WeightLimit: XcmV2WeightLimit; + XcmV2Xcm: XcmV2Xcm; + XcmV3Instruction: XcmV3Instruction; + XcmV3Junction: XcmV3Junction; + XcmV3JunctionBodyId: XcmV3JunctionBodyId; + XcmV3JunctionBodyPart: XcmV3JunctionBodyPart; + XcmV3JunctionNetworkId: XcmV3JunctionNetworkId; + XcmV3Junctions: XcmV3Junctions; + XcmV3MaybeErrorCode: XcmV3MaybeErrorCode; + XcmV3MultiAsset: XcmV3MultiAsset; + XcmV3MultiLocation: XcmV3MultiLocation; + XcmV3MultiassetAssetId: XcmV3MultiassetAssetId; + XcmV3MultiassetAssetInstance: XcmV3MultiassetAssetInstance; + XcmV3MultiassetFungibility: XcmV3MultiassetFungibility; + XcmV3MultiassetMultiAssetFilter: XcmV3MultiassetMultiAssetFilter; + XcmV3MultiassetMultiAssets: XcmV3MultiassetMultiAssets; + XcmV3MultiassetWildFungibility: XcmV3MultiassetWildFungibility; + XcmV3MultiassetWildMultiAsset: XcmV3MultiassetWildMultiAsset; + XcmV3PalletInfo: XcmV3PalletInfo; + XcmV3QueryResponseInfo: XcmV3QueryResponseInfo; + XcmV3Response: XcmV3Response; + XcmV3TraitsError: XcmV3TraitsError; + XcmV3TraitsOutcome: XcmV3TraitsOutcome; + XcmV3WeightLimit: XcmV3WeightLimit; + XcmV3Xcm: XcmV3Xcm; + XcmVersionedAssetId: XcmVersionedAssetId; + XcmVersionedMultiAsset: XcmVersionedMultiAsset; + XcmVersionedMultiAssets: XcmVersionedMultiAssets; + XcmVersionedMultiLocation: XcmVersionedMultiLocation; + XcmVersionedResponse: XcmVersionedResponse; + XcmVersionedXcm: XcmVersionedXcm; + } // InterfaceTypes +} // declare module diff --git a/tee-worker/ts-tests/parachain-interfaces/types-lookup.ts b/tee-worker/ts-tests/parachain-interfaces/types-lookup.ts new file mode 100644 index 0000000000..94dc02d66d --- /dev/null +++ b/tee-worker/ts-tests/parachain-interfaces/types-lookup.ts @@ -0,0 +1,6953 @@ +// 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 { Data } from '@polkadot/types'; +import type { + BTreeMap, + BTreeSet, + Bytes, + Compact, + Enum, + Null, + Option, + Result, + Set, + Struct, + Text, + U8aFixed, + Vec, + bool, + u128, + u16, + u32, + u64, + u8, +} from '@polkadot/types-codec'; +import type { ITuple } from '@polkadot/types-codec/types'; +import type { Vote } from '@polkadot/types/interfaces/elections'; +import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } 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 PalletSchedulerEvent (29) */ + 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 (34) */ + 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 PalletMultisigEvent (35) */ + 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 (36) */ + interface PalletMultisigTimepoint extends Struct { + readonly height: u32; + readonly index: u32; + } + + /** @name PalletProxyEvent (37) */ + 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: RococoParachainRuntimeProxyType; + 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: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isProxyRemoved: boolean; + readonly asProxyRemoved: { + readonly delegator: AccountId32; + readonly delegatee: AccountId32; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly type: 'ProxyExecuted' | 'PureCreated' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved'; + } + + /** @name RococoParachainRuntimeProxyType (38) */ + interface RococoParachainRuntimeProxyType extends Enum { + readonly isAny: boolean; + readonly isNonTransfer: boolean; + readonly isCancelProxy: boolean; + readonly isCollator: boolean; + readonly isGovernance: boolean; + readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Collator' | 'Governance'; + } + + /** @name PalletPreimageEvent (40) */ + 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 PalletBalancesEvent (41) */ + 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 (42) */ + interface FrameSupportTokensMiscBalanceStatus extends Enum { + readonly isFree: boolean; + readonly isReserved: boolean; + readonly type: 'Free' | 'Reserved'; + } + + /** @name PalletVestingEvent (43) */ + 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 PalletTransactionPaymentEvent (44) */ + interface PalletTransactionPaymentEvent extends Enum { + readonly isTransactionFeePaid: boolean; + readonly asTransactionFeePaid: { + readonly who: AccountId32; + readonly actualFee: u128; + readonly tip: u128; + } & Struct; + readonly type: 'TransactionFeePaid'; + } + + /** @name PalletTreasuryEvent (45) */ + 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 PalletDemocracyEvent (46) */ + interface PalletDemocracyEvent extends Enum { + readonly isProposed: boolean; + readonly asProposed: { + readonly proposalIndex: u32; + readonly deposit: u128; + } & Struct; + readonly isTabled: boolean; + readonly asTabled: { + readonly proposalIndex: u32; + readonly deposit: u128; + } & Struct; + readonly isExternalTabled: boolean; + readonly isStarted: boolean; + readonly asStarted: { + readonly refIndex: u32; + readonly threshold: PalletDemocracyVoteThreshold; + } & Struct; + readonly isPassed: boolean; + readonly asPassed: { + readonly refIndex: u32; + } & Struct; + readonly isNotPassed: boolean; + readonly asNotPassed: { + readonly refIndex: u32; + } & Struct; + readonly isCancelled: boolean; + readonly asCancelled: { + readonly refIndex: u32; + } & Struct; + readonly isDelegated: boolean; + readonly asDelegated: { + readonly who: AccountId32; + readonly target: AccountId32; + } & Struct; + readonly isUndelegated: boolean; + readonly asUndelegated: { + readonly account: AccountId32; + } & Struct; + readonly isVetoed: boolean; + readonly asVetoed: { + readonly who: AccountId32; + readonly proposalHash: H256; + readonly until: u32; + } & Struct; + readonly isBlacklisted: boolean; + readonly asBlacklisted: { + readonly proposalHash: H256; + } & Struct; + readonly isVoted: boolean; + readonly asVoted: { + readonly voter: AccountId32; + readonly refIndex: u32; + readonly vote: PalletDemocracyVoteAccountVote; + } & Struct; + readonly isSeconded: boolean; + readonly asSeconded: { + readonly seconder: AccountId32; + readonly propIndex: u32; + } & Struct; + readonly isProposalCanceled: boolean; + readonly asProposalCanceled: { + readonly propIndex: u32; + } & Struct; + readonly isMetadataSet: boolean; + readonly asMetadataSet: { + readonly owner: PalletDemocracyMetadataOwner; + readonly hash_: H256; + } & Struct; + readonly isMetadataCleared: boolean; + readonly asMetadataCleared: { + readonly owner: PalletDemocracyMetadataOwner; + readonly hash_: H256; + } & Struct; + readonly isMetadataTransferred: boolean; + readonly asMetadataTransferred: { + readonly prevOwner: PalletDemocracyMetadataOwner; + readonly owner: PalletDemocracyMetadataOwner; + readonly hash_: H256; + } & Struct; + readonly type: + | 'Proposed' + | 'Tabled' + | 'ExternalTabled' + | 'Started' + | 'Passed' + | 'NotPassed' + | 'Cancelled' + | 'Delegated' + | 'Undelegated' + | 'Vetoed' + | 'Blacklisted' + | 'Voted' + | 'Seconded' + | 'ProposalCanceled' + | 'MetadataSet' + | 'MetadataCleared' + | 'MetadataTransferred'; + } + + /** @name PalletDemocracyVoteThreshold (47) */ + interface PalletDemocracyVoteThreshold extends Enum { + readonly isSuperMajorityApprove: boolean; + readonly isSuperMajorityAgainst: boolean; + readonly isSimpleMajority: boolean; + readonly type: 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority'; + } + + /** @name PalletDemocracyVoteAccountVote (48) */ + interface PalletDemocracyVoteAccountVote extends Enum { + readonly isStandard: boolean; + readonly asStandard: { + readonly vote: Vote; + readonly balance: u128; + } & Struct; + readonly isSplit: boolean; + readonly asSplit: { + readonly aye: u128; + readonly nay: u128; + } & Struct; + readonly type: 'Standard' | 'Split'; + } + + /** @name PalletDemocracyMetadataOwner (50) */ + interface PalletDemocracyMetadataOwner extends Enum { + readonly isExternal: boolean; + readonly isProposal: boolean; + readonly asProposal: u32; + readonly isReferendum: boolean; + readonly asReferendum: u32; + readonly type: 'External' | 'Proposal' | 'Referendum'; + } + + /** @name PalletCollectiveEvent (51) */ + 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 PalletMembershipEvent (53) */ + interface PalletMembershipEvent extends Enum { + readonly isMemberAdded: boolean; + readonly isMemberRemoved: boolean; + readonly isMembersSwapped: boolean; + readonly isMembersReset: boolean; + readonly isKeyChanged: boolean; + readonly isDummy: boolean; + readonly type: 'MemberAdded' | 'MemberRemoved' | 'MembersSwapped' | 'MembersReset' | 'KeyChanged' | 'Dummy'; + } + + /** @name PalletBountiesEvent (56) */ + interface PalletBountiesEvent extends Enum { + readonly isBountyProposed: boolean; + readonly asBountyProposed: { + readonly index: u32; + } & Struct; + readonly isBountyRejected: boolean; + readonly asBountyRejected: { + readonly index: u32; + readonly bond: u128; + } & Struct; + readonly isBountyBecameActive: boolean; + readonly asBountyBecameActive: { + readonly index: u32; + } & Struct; + readonly isBountyAwarded: boolean; + readonly asBountyAwarded: { + readonly index: u32; + readonly beneficiary: AccountId32; + } & Struct; + readonly isBountyClaimed: boolean; + readonly asBountyClaimed: { + readonly index: u32; + readonly payout: u128; + readonly beneficiary: AccountId32; + } & Struct; + readonly isBountyCanceled: boolean; + readonly asBountyCanceled: { + readonly index: u32; + } & Struct; + readonly isBountyExtended: boolean; + readonly asBountyExtended: { + readonly index: u32; + } & Struct; + readonly type: + | 'BountyProposed' + | 'BountyRejected' + | 'BountyBecameActive' + | 'BountyAwarded' + | 'BountyClaimed' + | 'BountyCanceled' + | 'BountyExtended'; + } + + /** @name PalletTipsEvent (57) */ + interface PalletTipsEvent extends Enum { + readonly isNewTip: boolean; + readonly asNewTip: { + readonly tipHash: H256; + } & Struct; + readonly isTipClosing: boolean; + readonly asTipClosing: { + readonly tipHash: H256; + } & Struct; + readonly isTipClosed: boolean; + readonly asTipClosed: { + readonly tipHash: H256; + readonly who: AccountId32; + readonly payout: u128; + } & Struct; + readonly isTipRetracted: boolean; + readonly asTipRetracted: { + readonly tipHash: H256; + } & Struct; + readonly isTipSlashed: boolean; + readonly asTipSlashed: { + readonly tipHash: H256; + readonly finder: AccountId32; + readonly deposit: u128; + } & Struct; + readonly type: 'NewTip' | 'TipClosing' | 'TipClosed' | 'TipRetracted' | 'TipSlashed'; + } + + /** @name PalletIdentityEvent (58) */ + interface PalletIdentityEvent extends Enum { + readonly isIdentitySet: boolean; + readonly asIdentitySet: { + readonly who: AccountId32; + } & Struct; + readonly isIdentityCleared: boolean; + readonly asIdentityCleared: { + readonly who: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isIdentityKilled: boolean; + readonly asIdentityKilled: { + readonly who: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isJudgementRequested: boolean; + readonly asJudgementRequested: { + readonly who: AccountId32; + readonly registrarIndex: u32; + } & Struct; + readonly isJudgementUnrequested: boolean; + readonly asJudgementUnrequested: { + readonly who: AccountId32; + readonly registrarIndex: u32; + } & Struct; + readonly isJudgementGiven: boolean; + readonly asJudgementGiven: { + readonly target: AccountId32; + readonly registrarIndex: u32; + } & Struct; + readonly isRegistrarAdded: boolean; + readonly asRegistrarAdded: { + readonly registrarIndex: u32; + } & Struct; + readonly isSubIdentityAdded: boolean; + readonly asSubIdentityAdded: { + readonly sub: AccountId32; + readonly main: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isSubIdentityRemoved: boolean; + readonly asSubIdentityRemoved: { + readonly sub: AccountId32; + readonly main: AccountId32; + readonly deposit: u128; + } & Struct; + readonly isSubIdentityRevoked: boolean; + readonly asSubIdentityRevoked: { + readonly sub: AccountId32; + readonly main: AccountId32; + readonly deposit: u128; + } & Struct; + readonly type: + | 'IdentitySet' + | 'IdentityCleared' + | 'IdentityKilled' + | 'JudgementRequested' + | 'JudgementUnrequested' + | 'JudgementGiven' + | 'RegistrarAdded' + | 'SubIdentityAdded' + | 'SubIdentityRemoved' + | 'SubIdentityRevoked'; + } + + /** @name CumulusPalletParachainSystemEvent (59) */ + interface CumulusPalletParachainSystemEvent extends Enum { + readonly isValidationFunctionStored: boolean; + readonly isValidationFunctionApplied: boolean; + readonly asValidationFunctionApplied: { + readonly relayChainBlockNum: u32; + } & Struct; + readonly isValidationFunctionDiscarded: boolean; + readonly isUpgradeAuthorized: boolean; + readonly asUpgradeAuthorized: { + readonly codeHash: H256; + } & Struct; + readonly isDownwardMessagesReceived: boolean; + readonly asDownwardMessagesReceived: { + readonly count: u32; + } & Struct; + readonly isDownwardMessagesProcessed: boolean; + readonly asDownwardMessagesProcessed: { + readonly weightUsed: SpWeightsWeightV2Weight; + readonly dmqHead: H256; + } & Struct; + readonly isUpwardMessageSent: boolean; + readonly asUpwardMessageSent: { + readonly messageHash: Option; + } & Struct; + readonly type: + | 'ValidationFunctionStored' + | 'ValidationFunctionApplied' + | 'ValidationFunctionDiscarded' + | 'UpgradeAuthorized' + | 'DownwardMessagesReceived' + | 'DownwardMessagesProcessed' + | 'UpwardMessageSent'; + } + + /** @name PalletSessionEvent (60) */ + interface PalletSessionEvent extends Enum { + readonly isNewSession: boolean; + readonly asNewSession: { + readonly sessionIndex: u32; + } & Struct; + readonly type: 'NewSession'; + } + + /** @name PalletParachainStakingEvent (61) */ + interface PalletParachainStakingEvent extends Enum { + readonly isNewRound: boolean; + readonly asNewRound: { + readonly startingBlock: u32; + readonly round: u32; + readonly selectedCollatorsNumber: u32; + readonly totalBalance: u128; + } & Struct; + readonly isJoinedCollatorCandidates: boolean; + readonly asJoinedCollatorCandidates: { + readonly account: AccountId32; + readonly amountLocked: u128; + readonly newTotalAmtLocked: u128; + } & Struct; + readonly isCollatorChosen: boolean; + readonly asCollatorChosen: { + readonly round: u32; + readonly collatorAccount: AccountId32; + readonly totalExposedAmount: u128; + } & Struct; + readonly isCandidateBondLessRequested: boolean; + readonly asCandidateBondLessRequested: { + readonly candidate: AccountId32; + readonly amountToDecrease: u128; + readonly executeRound: u32; + } & Struct; + readonly isCandidateBondedMore: boolean; + readonly asCandidateBondedMore: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly newTotalBond: u128; + } & Struct; + readonly isCandidateBondedLess: boolean; + readonly asCandidateBondedLess: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly newBond: u128; + } & Struct; + readonly isCandidateWentOffline: boolean; + readonly asCandidateWentOffline: { + readonly candidate: AccountId32; + } & Struct; + readonly isCandidateBackOnline: boolean; + readonly asCandidateBackOnline: { + readonly candidate: AccountId32; + } & Struct; + readonly isCandidateScheduledExit: boolean; + readonly asCandidateScheduledExit: { + readonly exitAllowedRound: u32; + readonly candidate: AccountId32; + readonly scheduledExit: u32; + } & Struct; + readonly isCancelledCandidateExit: boolean; + readonly asCancelledCandidateExit: { + readonly candidate: AccountId32; + } & Struct; + readonly isCancelledCandidateBondLess: boolean; + readonly asCancelledCandidateBondLess: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly executeRound: u32; + } & Struct; + readonly isCandidateLeft: boolean; + readonly asCandidateLeft: { + readonly exCandidate: AccountId32; + readonly unlockedAmount: u128; + readonly newTotalAmtLocked: u128; + } & Struct; + readonly isDelegationDecreaseScheduled: boolean; + readonly asDelegationDecreaseScheduled: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly amountToDecrease: u128; + readonly executeRound: u32; + } & Struct; + readonly isDelegationIncreased: boolean; + readonly asDelegationIncreased: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly amount: u128; + readonly inTop: bool; + } & Struct; + readonly isDelegationDecreased: boolean; + readonly asDelegationDecreased: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly amount: u128; + readonly inTop: bool; + } & Struct; + readonly isDelegatorExitScheduled: boolean; + readonly asDelegatorExitScheduled: { + readonly round: u32; + readonly delegator: AccountId32; + readonly scheduledExit: u32; + } & Struct; + readonly isDelegationRevocationScheduled: boolean; + readonly asDelegationRevocationScheduled: { + readonly round: u32; + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly scheduledExit: u32; + } & Struct; + readonly isDelegatorLeft: boolean; + readonly asDelegatorLeft: { + readonly delegator: AccountId32; + readonly unstakedAmount: u128; + } & Struct; + readonly isDelegationRevoked: boolean; + readonly asDelegationRevoked: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly unstakedAmount: u128; + } & Struct; + readonly isDelegationKicked: boolean; + readonly asDelegationKicked: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly unstakedAmount: u128; + } & Struct; + readonly isDelegatorExitCancelled: boolean; + readonly asDelegatorExitCancelled: { + readonly delegator: AccountId32; + } & Struct; + readonly isCancelledDelegationRequest: boolean; + readonly asCancelledDelegationRequest: { + readonly delegator: AccountId32; + readonly cancelledRequest: PalletParachainStakingDelegationRequestsCancelledScheduledRequest; + readonly collator: AccountId32; + } & Struct; + readonly isDelegation: boolean; + readonly asDelegation: { + readonly delegator: AccountId32; + readonly lockedAmount: u128; + readonly candidate: AccountId32; + readonly delegatorPosition: PalletParachainStakingDelegatorAdded; + readonly autoCompound: Percent; + } & Struct; + readonly isDelegatorLeftCandidate: boolean; + readonly asDelegatorLeftCandidate: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + readonly unstakedAmount: u128; + readonly totalCandidateStaked: u128; + } & Struct; + readonly isRewarded: boolean; + readonly asRewarded: { + readonly account: AccountId32; + readonly rewards: u128; + } & Struct; + readonly isReservedForParachainBond: boolean; + readonly asReservedForParachainBond: { + readonly account: AccountId32; + readonly value: u128; + } & Struct; + readonly isParachainBondAccountSet: boolean; + readonly asParachainBondAccountSet: { + readonly old: AccountId32; + readonly new_: AccountId32; + } & Struct; + readonly isParachainBondReservePercentSet: boolean; + readonly asParachainBondReservePercentSet: { + readonly old: Percent; + readonly new_: Percent; + } & Struct; + readonly isInflationSet: boolean; + readonly asInflationSet: { + readonly annualMin: Perbill; + readonly annualIdeal: Perbill; + readonly annualMax: Perbill; + readonly roundMin: Perbill; + readonly roundIdeal: Perbill; + readonly roundMax: Perbill; + } & Struct; + readonly isStakeExpectationsSet: boolean; + readonly asStakeExpectationsSet: { + readonly expectMin: u128; + readonly expectIdeal: u128; + readonly expectMax: u128; + } & Struct; + readonly isTotalSelectedSet: boolean; + readonly asTotalSelectedSet: { + readonly old: u32; + readonly new_: u32; + } & Struct; + readonly isCollatorCommissionSet: boolean; + readonly asCollatorCommissionSet: { + readonly old: Perbill; + readonly new_: Perbill; + } & Struct; + readonly isBlocksPerRoundSet: boolean; + readonly asBlocksPerRoundSet: { + readonly currentRound: u32; + readonly firstBlock: u32; + readonly old: u32; + readonly new_: u32; + readonly newPerRoundInflationMin: Perbill; + readonly newPerRoundInflationIdeal: Perbill; + readonly newPerRoundInflationMax: Perbill; + } & Struct; + readonly isCandidateWhiteListAdded: boolean; + readonly asCandidateWhiteListAdded: { + readonly candidate: AccountId32; + } & Struct; + readonly isCandidateWhiteListRemoved: boolean; + readonly asCandidateWhiteListRemoved: { + readonly candidate: AccountId32; + } & Struct; + readonly isAutoCompoundSet: boolean; + readonly asAutoCompoundSet: { + readonly candidate: AccountId32; + readonly delegator: AccountId32; + readonly value: Percent; + } & Struct; + readonly isCompounded: boolean; + readonly asCompounded: { + readonly candidate: AccountId32; + readonly delegator: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'NewRound' + | 'JoinedCollatorCandidates' + | 'CollatorChosen' + | 'CandidateBondLessRequested' + | 'CandidateBondedMore' + | 'CandidateBondedLess' + | 'CandidateWentOffline' + | 'CandidateBackOnline' + | 'CandidateScheduledExit' + | 'CancelledCandidateExit' + | 'CancelledCandidateBondLess' + | 'CandidateLeft' + | 'DelegationDecreaseScheduled' + | 'DelegationIncreased' + | 'DelegationDecreased' + | 'DelegatorExitScheduled' + | 'DelegationRevocationScheduled' + | 'DelegatorLeft' + | 'DelegationRevoked' + | 'DelegationKicked' + | 'DelegatorExitCancelled' + | 'CancelledDelegationRequest' + | 'Delegation' + | 'DelegatorLeftCandidate' + | 'Rewarded' + | 'ReservedForParachainBond' + | 'ParachainBondAccountSet' + | 'ParachainBondReservePercentSet' + | 'InflationSet' + | 'StakeExpectationsSet' + | 'TotalSelectedSet' + | 'CollatorCommissionSet' + | 'BlocksPerRoundSet' + | 'CandidateWhiteListAdded' + | 'CandidateWhiteListRemoved' + | 'AutoCompoundSet' + | 'Compounded'; + } + + /** @name PalletParachainStakingDelegationRequestsCancelledScheduledRequest (62) */ + interface PalletParachainStakingDelegationRequestsCancelledScheduledRequest extends Struct { + readonly whenExecutable: u32; + readonly action: PalletParachainStakingDelegationRequestsDelegationAction; + } + + /** @name PalletParachainStakingDelegationRequestsDelegationAction (63) */ + interface PalletParachainStakingDelegationRequestsDelegationAction extends Enum { + readonly isRevoke: boolean; + readonly asRevoke: u128; + readonly isDecrease: boolean; + readonly asDecrease: u128; + readonly type: 'Revoke' | 'Decrease'; + } + + /** @name PalletParachainStakingDelegatorAdded (64) */ + interface PalletParachainStakingDelegatorAdded extends Enum { + readonly isAddedToTop: boolean; + readonly asAddedToTop: { + readonly newTotal: u128; + } & Struct; + readonly isAddedToBottom: boolean; + readonly type: 'AddedToTop' | 'AddedToBottom'; + } + + /** @name CumulusPalletXcmpQueueEvent (67) */ + interface CumulusPalletXcmpQueueEvent extends Enum { + readonly isSuccess: boolean; + readonly asSuccess: { + readonly messageHash: Option; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isFail: boolean; + readonly asFail: { + readonly messageHash: Option; + readonly error: XcmV3TraitsError; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly isBadVersion: boolean; + readonly asBadVersion: { + readonly messageHash: Option; + } & Struct; + readonly isBadFormat: boolean; + readonly asBadFormat: { + readonly messageHash: Option; + } & Struct; + readonly isXcmpMessageSent: boolean; + readonly asXcmpMessageSent: { + readonly messageHash: Option; + } & Struct; + readonly isOverweightEnqueued: boolean; + readonly asOverweightEnqueued: { + readonly sender: u32; + readonly sentAt: u32; + readonly index: u64; + readonly required: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightServiced: boolean; + readonly asOverweightServiced: { + readonly index: u64; + readonly used: SpWeightsWeightV2Weight; + } & Struct; + readonly type: + | 'Success' + | 'Fail' + | 'BadVersion' + | 'BadFormat' + | 'XcmpMessageSent' + | 'OverweightEnqueued' + | 'OverweightServiced'; + } + + /** @name XcmV3TraitsError (68) */ + interface XcmV3TraitsError extends Enum { + readonly isOverflow: boolean; + readonly isUnimplemented: boolean; + readonly isUntrustedReserveLocation: boolean; + readonly isUntrustedTeleportLocation: boolean; + readonly isLocationFull: boolean; + readonly isLocationNotInvertible: boolean; + readonly isBadOrigin: boolean; + readonly isInvalidLocation: boolean; + readonly isAssetNotFound: boolean; + readonly isFailedToTransactAsset: boolean; + readonly isNotWithdrawable: boolean; + readonly isLocationCannotHold: boolean; + readonly isExceedsMaxMessageSize: boolean; + readonly isDestinationUnsupported: boolean; + readonly isTransport: boolean; + readonly isUnroutable: boolean; + readonly isUnknownClaim: boolean; + readonly isFailedToDecode: boolean; + readonly isMaxWeightInvalid: boolean; + readonly isNotHoldingFees: boolean; + readonly isTooExpensive: boolean; + readonly isTrap: boolean; + readonly asTrap: u64; + readonly isExpectationFalse: boolean; + readonly isPalletNotFound: boolean; + readonly isNameMismatch: boolean; + readonly isVersionIncompatible: boolean; + readonly isHoldingWouldOverflow: boolean; + readonly isExportError: boolean; + readonly isReanchorFailed: boolean; + readonly isNoDeal: boolean; + readonly isFeesNotMet: boolean; + readonly isLockError: boolean; + readonly isNoPermission: boolean; + readonly isUnanchored: boolean; + readonly isNotDepositable: boolean; + readonly isUnhandledXcmVersion: boolean; + readonly isWeightLimitReached: boolean; + readonly asWeightLimitReached: SpWeightsWeightV2Weight; + readonly isBarrier: boolean; + readonly isWeightNotComputable: boolean; + readonly isExceedsStackLimit: boolean; + readonly type: + | 'Overflow' + | 'Unimplemented' + | 'UntrustedReserveLocation' + | 'UntrustedTeleportLocation' + | 'LocationFull' + | 'LocationNotInvertible' + | 'BadOrigin' + | 'InvalidLocation' + | 'AssetNotFound' + | 'FailedToTransactAsset' + | 'NotWithdrawable' + | 'LocationCannotHold' + | 'ExceedsMaxMessageSize' + | 'DestinationUnsupported' + | 'Transport' + | 'Unroutable' + | 'UnknownClaim' + | 'FailedToDecode' + | 'MaxWeightInvalid' + | 'NotHoldingFees' + | 'TooExpensive' + | 'Trap' + | 'ExpectationFalse' + | 'PalletNotFound' + | 'NameMismatch' + | 'VersionIncompatible' + | 'HoldingWouldOverflow' + | 'ExportError' + | 'ReanchorFailed' + | 'NoDeal' + | 'FeesNotMet' + | 'LockError' + | 'NoPermission' + | 'Unanchored' + | 'NotDepositable' + | 'UnhandledXcmVersion' + | 'WeightLimitReached' + | 'Barrier' + | 'WeightNotComputable' + | 'ExceedsStackLimit'; + } + + /** @name PalletXcmEvent (70) */ + interface PalletXcmEvent extends Enum { + readonly isAttempted: boolean; + readonly asAttempted: XcmV3TraitsOutcome; + readonly isSent: boolean; + readonly asSent: ITuple<[XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>; + readonly isUnexpectedResponse: boolean; + readonly asUnexpectedResponse: ITuple<[XcmV3MultiLocation, u64]>; + readonly isResponseReady: boolean; + readonly asResponseReady: ITuple<[u64, XcmV3Response]>; + readonly isNotified: boolean; + readonly asNotified: ITuple<[u64, u8, u8]>; + readonly isNotifyOverweight: boolean; + readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>; + readonly isNotifyDispatchError: boolean; + readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>; + readonly isNotifyDecodeFailed: boolean; + readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>; + readonly isInvalidResponder: boolean; + readonly asInvalidResponder: ITuple<[XcmV3MultiLocation, u64, Option]>; + readonly isInvalidResponderVersion: boolean; + readonly asInvalidResponderVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly isResponseTaken: boolean; + readonly asResponseTaken: u64; + readonly isAssetsTrapped: boolean; + readonly asAssetsTrapped: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly isVersionChangeNotified: boolean; + readonly asVersionChangeNotified: ITuple<[XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>; + readonly isSupportedVersionChanged: boolean; + readonly asSupportedVersionChanged: ITuple<[XcmV3MultiLocation, u32]>; + readonly isNotifyTargetSendFail: boolean; + readonly asNotifyTargetSendFail: ITuple<[XcmV3MultiLocation, u64, XcmV3TraitsError]>; + readonly isNotifyTargetMigrationFail: boolean; + readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>; + readonly isInvalidQuerierVersion: boolean; + readonly asInvalidQuerierVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly isInvalidQuerier: boolean; + readonly asInvalidQuerier: ITuple<[XcmV3MultiLocation, u64, XcmV3MultiLocation, Option]>; + readonly isVersionNotifyStarted: boolean; + readonly asVersionNotifyStarted: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isVersionNotifyRequested: boolean; + readonly asVersionNotifyRequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isVersionNotifyUnrequested: boolean; + readonly asVersionNotifyUnrequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isFeesPaid: boolean; + readonly asFeesPaid: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly isAssetsClaimed: boolean; + readonly asAssetsClaimed: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly type: + | 'Attempted' + | 'Sent' + | 'UnexpectedResponse' + | 'ResponseReady' + | 'Notified' + | 'NotifyOverweight' + | 'NotifyDispatchError' + | 'NotifyDecodeFailed' + | 'InvalidResponder' + | 'InvalidResponderVersion' + | 'ResponseTaken' + | 'AssetsTrapped' + | 'VersionChangeNotified' + | 'SupportedVersionChanged' + | 'NotifyTargetSendFail' + | 'NotifyTargetMigrationFail' + | 'InvalidQuerierVersion' + | 'InvalidQuerier' + | 'VersionNotifyStarted' + | 'VersionNotifyRequested' + | 'VersionNotifyUnrequested' + | 'FeesPaid' + | 'AssetsClaimed'; + } + + /** @name XcmV3TraitsOutcome (71) */ + interface XcmV3TraitsOutcome extends Enum { + readonly isComplete: boolean; + readonly asComplete: SpWeightsWeightV2Weight; + readonly isIncomplete: boolean; + readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, XcmV3TraitsError]>; + readonly isError: boolean; + readonly asError: XcmV3TraitsError; + readonly type: 'Complete' | 'Incomplete' | 'Error'; + } + + /** @name XcmV3MultiLocation (72) */ + interface XcmV3MultiLocation extends Struct { + readonly parents: u8; + readonly interior: XcmV3Junctions; + } + + /** @name XcmV3Junctions (73) */ + interface XcmV3Junctions extends Enum { + readonly isHere: boolean; + readonly isX1: boolean; + readonly asX1: XcmV3Junction; + readonly isX2: boolean; + readonly asX2: ITuple<[XcmV3Junction, XcmV3Junction]>; + readonly isX3: boolean; + readonly asX3: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly isX4: boolean; + readonly asX4: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly isX5: boolean; + readonly asX5: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly isX6: boolean; + readonly asX6: ITuple< + [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] + >; + readonly isX7: boolean; + readonly asX7: ITuple< + [XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction] + >; + readonly isX8: boolean; + readonly asX8: ITuple< + [ + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction, + XcmV3Junction + ] + >; + readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; + } + + /** @name XcmV3Junction (74) */ + interface XcmV3Junction extends Enum { + readonly isParachain: boolean; + readonly asParachain: Compact; + readonly isAccountId32: boolean; + readonly asAccountId32: { + readonly network: Option; + readonly id: U8aFixed; + } & Struct; + readonly isAccountIndex64: boolean; + readonly asAccountIndex64: { + readonly network: Option; + readonly index: Compact; + } & Struct; + readonly isAccountKey20: boolean; + readonly asAccountKey20: { + readonly network: Option; + readonly key: U8aFixed; + } & Struct; + readonly isPalletInstance: boolean; + readonly asPalletInstance: u8; + readonly isGeneralIndex: boolean; + readonly asGeneralIndex: Compact; + readonly isGeneralKey: boolean; + readonly asGeneralKey: { + readonly length: u8; + readonly data: U8aFixed; + } & Struct; + readonly isOnlyChild: boolean; + readonly isPlurality: boolean; + readonly asPlurality: { + readonly id: XcmV3JunctionBodyId; + readonly part: XcmV3JunctionBodyPart; + } & Struct; + readonly isGlobalConsensus: boolean; + readonly asGlobalConsensus: XcmV3JunctionNetworkId; + readonly type: + | 'Parachain' + | 'AccountId32' + | 'AccountIndex64' + | 'AccountKey20' + | 'PalletInstance' + | 'GeneralIndex' + | 'GeneralKey' + | 'OnlyChild' + | 'Plurality' + | 'GlobalConsensus'; + } + + /** @name XcmV3JunctionNetworkId (77) */ + interface XcmV3JunctionNetworkId extends Enum { + readonly isByGenesis: boolean; + readonly asByGenesis: U8aFixed; + readonly isByFork: boolean; + readonly asByFork: { + readonly blockNumber: u64; + readonly blockHash: U8aFixed; + } & Struct; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isWestend: boolean; + readonly isRococo: boolean; + readonly isWococo: boolean; + readonly isEthereum: boolean; + readonly asEthereum: { + readonly chainId: Compact; + } & Struct; + readonly isBitcoinCore: boolean; + readonly isBitcoinCash: boolean; + readonly type: + | 'ByGenesis' + | 'ByFork' + | 'Polkadot' + | 'Kusama' + | 'Westend' + | 'Rococo' + | 'Wococo' + | 'Ethereum' + | 'BitcoinCore' + | 'BitcoinCash'; + } + + /** @name XcmV3JunctionBodyId (80) */ + interface XcmV3JunctionBodyId extends Enum { + readonly isUnit: boolean; + readonly isMoniker: boolean; + readonly asMoniker: U8aFixed; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isExecutive: boolean; + readonly isTechnical: boolean; + readonly isLegislative: boolean; + readonly isJudicial: boolean; + readonly isDefense: boolean; + readonly isAdministration: boolean; + readonly isTreasury: boolean; + readonly type: + | 'Unit' + | 'Moniker' + | 'Index' + | 'Executive' + | 'Technical' + | 'Legislative' + | 'Judicial' + | 'Defense' + | 'Administration' + | 'Treasury'; + } + + /** @name XcmV3JunctionBodyPart (81) */ + interface XcmV3JunctionBodyPart extends Enum { + readonly isVoice: boolean; + readonly isMembers: boolean; + readonly asMembers: { + readonly count: Compact; + } & Struct; + readonly isFraction: boolean; + readonly asFraction: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isAtLeastProportion: boolean; + readonly asAtLeastProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isMoreThanProportion: boolean; + readonly asMoreThanProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; + } + + /** @name XcmV3Xcm (82) */ + interface XcmV3Xcm extends Vec {} + + /** @name XcmV3Instruction (84) */ + interface XcmV3Instruction extends Enum { + readonly isWithdrawAsset: boolean; + readonly asWithdrawAsset: XcmV3MultiassetMultiAssets; + readonly isReserveAssetDeposited: boolean; + readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets; + readonly isReceiveTeleportedAsset: boolean; + readonly asReceiveTeleportedAsset: XcmV3MultiassetMultiAssets; + readonly isQueryResponse: boolean; + readonly asQueryResponse: { + readonly queryId: Compact; + readonly response: XcmV3Response; + readonly maxWeight: SpWeightsWeightV2Weight; + readonly querier: Option; + } & Struct; + readonly isTransferAsset: boolean; + readonly asTransferAsset: { + readonly assets: XcmV3MultiassetMultiAssets; + readonly beneficiary: XcmV3MultiLocation; + } & Struct; + readonly isTransferReserveAsset: boolean; + readonly asTransferReserveAsset: { + readonly assets: XcmV3MultiassetMultiAssets; + readonly dest: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isTransact: boolean; + readonly asTransact: { + readonly originKind: XcmV2OriginKind; + readonly requireWeightAtMost: SpWeightsWeightV2Weight; + readonly call: XcmDoubleEncoded; + } & Struct; + readonly isHrmpNewChannelOpenRequest: boolean; + readonly asHrmpNewChannelOpenRequest: { + readonly sender: Compact; + readonly maxMessageSize: Compact; + readonly maxCapacity: Compact; + } & Struct; + readonly isHrmpChannelAccepted: boolean; + readonly asHrmpChannelAccepted: { + readonly recipient: Compact; + } & Struct; + readonly isHrmpChannelClosing: boolean; + readonly asHrmpChannelClosing: { + readonly initiator: Compact; + readonly sender: Compact; + readonly recipient: Compact; + } & Struct; + readonly isClearOrigin: boolean; + readonly isDescendOrigin: boolean; + readonly asDescendOrigin: XcmV3Junctions; + readonly isReportError: boolean; + readonly asReportError: XcmV3QueryResponseInfo; + readonly isDepositAsset: boolean; + readonly asDepositAsset: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly beneficiary: XcmV3MultiLocation; + } & Struct; + readonly isDepositReserveAsset: boolean; + readonly asDepositReserveAsset: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly dest: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isExchangeAsset: boolean; + readonly asExchangeAsset: { + readonly give: XcmV3MultiassetMultiAssetFilter; + readonly want: XcmV3MultiassetMultiAssets; + readonly maximal: bool; + } & Struct; + readonly isInitiateReserveWithdraw: boolean; + readonly asInitiateReserveWithdraw: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly reserve: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isInitiateTeleport: boolean; + readonly asInitiateTeleport: { + readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly dest: XcmV3MultiLocation; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isReportHolding: boolean; + readonly asReportHolding: { + readonly responseInfo: XcmV3QueryResponseInfo; + readonly assets: XcmV3MultiassetMultiAssetFilter; + } & Struct; + readonly isBuyExecution: boolean; + readonly asBuyExecution: { + readonly fees: XcmV3MultiAsset; + readonly weightLimit: XcmV3WeightLimit; + } & Struct; + readonly isRefundSurplus: boolean; + readonly isSetErrorHandler: boolean; + readonly asSetErrorHandler: XcmV3Xcm; + readonly isSetAppendix: boolean; + readonly asSetAppendix: XcmV3Xcm; + readonly isClearError: boolean; + readonly isClaimAsset: boolean; + readonly asClaimAsset: { + readonly assets: XcmV3MultiassetMultiAssets; + readonly ticket: XcmV3MultiLocation; + } & Struct; + readonly isTrap: boolean; + readonly asTrap: Compact; + readonly isSubscribeVersion: boolean; + readonly asSubscribeVersion: { + readonly queryId: Compact; + readonly maxResponseWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isUnsubscribeVersion: boolean; + readonly isBurnAsset: boolean; + readonly asBurnAsset: XcmV3MultiassetMultiAssets; + readonly isExpectAsset: boolean; + readonly asExpectAsset: XcmV3MultiassetMultiAssets; + readonly isExpectOrigin: boolean; + readonly asExpectOrigin: Option; + readonly isExpectError: boolean; + readonly asExpectError: Option>; + readonly isExpectTransactStatus: boolean; + readonly asExpectTransactStatus: XcmV3MaybeErrorCode; + readonly isQueryPallet: boolean; + readonly asQueryPallet: { + readonly moduleName: Bytes; + readonly responseInfo: XcmV3QueryResponseInfo; + } & Struct; + readonly isExpectPallet: boolean; + readonly asExpectPallet: { + readonly index: Compact; + readonly name: Bytes; + readonly moduleName: Bytes; + readonly crateMajor: Compact; + readonly minCrateMinor: Compact; + } & Struct; + readonly isReportTransactStatus: boolean; + readonly asReportTransactStatus: XcmV3QueryResponseInfo; + readonly isClearTransactStatus: boolean; + readonly isUniversalOrigin: boolean; + readonly asUniversalOrigin: XcmV3Junction; + readonly isExportMessage: boolean; + readonly asExportMessage: { + readonly network: XcmV3JunctionNetworkId; + readonly destination: XcmV3Junctions; + readonly xcm: XcmV3Xcm; + } & Struct; + readonly isLockAsset: boolean; + readonly asLockAsset: { + readonly asset: XcmV3MultiAsset; + readonly unlocker: XcmV3MultiLocation; + } & Struct; + readonly isUnlockAsset: boolean; + readonly asUnlockAsset: { + readonly asset: XcmV3MultiAsset; + readonly target: XcmV3MultiLocation; + } & Struct; + readonly isNoteUnlockable: boolean; + readonly asNoteUnlockable: { + readonly asset: XcmV3MultiAsset; + readonly owner: XcmV3MultiLocation; + } & Struct; + readonly isRequestUnlock: boolean; + readonly asRequestUnlock: { + readonly asset: XcmV3MultiAsset; + readonly locker: XcmV3MultiLocation; + } & Struct; + readonly isSetFeesMode: boolean; + readonly asSetFeesMode: { + readonly jitWithdraw: bool; + } & Struct; + readonly isSetTopic: boolean; + readonly asSetTopic: U8aFixed; + readonly isClearTopic: boolean; + readonly isAliasOrigin: boolean; + readonly asAliasOrigin: XcmV3MultiLocation; + readonly isUnpaidExecution: boolean; + readonly asUnpaidExecution: { + readonly weightLimit: XcmV3WeightLimit; + readonly checkOrigin: Option; + } & Struct; + readonly type: + | 'WithdrawAsset' + | 'ReserveAssetDeposited' + | 'ReceiveTeleportedAsset' + | 'QueryResponse' + | 'TransferAsset' + | 'TransferReserveAsset' + | 'Transact' + | 'HrmpNewChannelOpenRequest' + | 'HrmpChannelAccepted' + | 'HrmpChannelClosing' + | 'ClearOrigin' + | 'DescendOrigin' + | 'ReportError' + | 'DepositAsset' + | 'DepositReserveAsset' + | 'ExchangeAsset' + | 'InitiateReserveWithdraw' + | 'InitiateTeleport' + | 'ReportHolding' + | 'BuyExecution' + | 'RefundSurplus' + | 'SetErrorHandler' + | 'SetAppendix' + | 'ClearError' + | 'ClaimAsset' + | 'Trap' + | 'SubscribeVersion' + | 'UnsubscribeVersion' + | 'BurnAsset' + | 'ExpectAsset' + | 'ExpectOrigin' + | 'ExpectError' + | 'ExpectTransactStatus' + | 'QueryPallet' + | 'ExpectPallet' + | 'ReportTransactStatus' + | 'ClearTransactStatus' + | 'UniversalOrigin' + | 'ExportMessage' + | 'LockAsset' + | 'UnlockAsset' + | 'NoteUnlockable' + | 'RequestUnlock' + | 'SetFeesMode' + | 'SetTopic' + | 'ClearTopic' + | 'AliasOrigin' + | 'UnpaidExecution'; + } + + /** @name XcmV3MultiassetMultiAssets (85) */ + interface XcmV3MultiassetMultiAssets extends Vec {} + + /** @name XcmV3MultiAsset (87) */ + interface XcmV3MultiAsset extends Struct { + readonly id: XcmV3MultiassetAssetId; + readonly fun: XcmV3MultiassetFungibility; + } + + /** @name XcmV3MultiassetAssetId (88) */ + interface XcmV3MultiassetAssetId extends Enum { + readonly isConcrete: boolean; + readonly asConcrete: XcmV3MultiLocation; + readonly isAbstract: boolean; + readonly asAbstract: U8aFixed; + readonly type: 'Concrete' | 'Abstract'; + } + + /** @name XcmV3MultiassetFungibility (89) */ + interface XcmV3MultiassetFungibility extends Enum { + readonly isFungible: boolean; + readonly asFungible: Compact; + readonly isNonFungible: boolean; + readonly asNonFungible: XcmV3MultiassetAssetInstance; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV3MultiassetAssetInstance (90) */ + interface XcmV3MultiassetAssetInstance extends Enum { + readonly isUndefined: boolean; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isArray4: boolean; + readonly asArray4: U8aFixed; + readonly isArray8: boolean; + readonly asArray8: U8aFixed; + readonly isArray16: boolean; + readonly asArray16: U8aFixed; + readonly isArray32: boolean; + readonly asArray32: U8aFixed; + readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32'; + } + + /** @name XcmV3Response (93) */ + interface XcmV3Response extends Enum { + readonly isNull: boolean; + readonly isAssets: boolean; + readonly asAssets: XcmV3MultiassetMultiAssets; + readonly isExecutionResult: boolean; + readonly asExecutionResult: Option>; + readonly isVersion: boolean; + readonly asVersion: u32; + readonly isPalletsInfo: boolean; + readonly asPalletsInfo: Vec; + readonly isDispatchResult: boolean; + readonly asDispatchResult: XcmV3MaybeErrorCode; + readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult'; + } + + /** @name XcmV3PalletInfo (97) */ + interface XcmV3PalletInfo extends Struct { + readonly index: Compact; + readonly name: Bytes; + readonly moduleName: Bytes; + readonly major: Compact; + readonly minor: Compact; + readonly patch: Compact; + } + + /** @name XcmV3MaybeErrorCode (100) */ + interface XcmV3MaybeErrorCode extends Enum { + readonly isSuccess: boolean; + readonly isError: boolean; + readonly asError: Bytes; + readonly isTruncatedError: boolean; + readonly asTruncatedError: Bytes; + readonly type: 'Success' | 'Error' | 'TruncatedError'; + } + + /** @name XcmV2OriginKind (103) */ + interface XcmV2OriginKind extends Enum { + readonly isNative: boolean; + readonly isSovereignAccount: boolean; + readonly isSuperuser: boolean; + readonly isXcm: boolean; + readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; + } + + /** @name XcmDoubleEncoded (104) */ + interface XcmDoubleEncoded extends Struct { + readonly encoded: Bytes; + } + + /** @name XcmV3QueryResponseInfo (105) */ + interface XcmV3QueryResponseInfo extends Struct { + readonly destination: XcmV3MultiLocation; + readonly queryId: Compact; + readonly maxWeight: SpWeightsWeightV2Weight; + } + + /** @name XcmV3MultiassetMultiAssetFilter (106) */ + interface XcmV3MultiassetMultiAssetFilter extends Enum { + readonly isDefinite: boolean; + readonly asDefinite: XcmV3MultiassetMultiAssets; + readonly isWild: boolean; + readonly asWild: XcmV3MultiassetWildMultiAsset; + readonly type: 'Definite' | 'Wild'; + } + + /** @name XcmV3MultiassetWildMultiAsset (107) */ + interface XcmV3MultiassetWildMultiAsset extends Enum { + readonly isAll: boolean; + readonly isAllOf: boolean; + readonly asAllOf: { + readonly id: XcmV3MultiassetAssetId; + readonly fun: XcmV3MultiassetWildFungibility; + } & Struct; + readonly isAllCounted: boolean; + readonly asAllCounted: Compact; + readonly isAllOfCounted: boolean; + readonly asAllOfCounted: { + readonly id: XcmV3MultiassetAssetId; + readonly fun: XcmV3MultiassetWildFungibility; + readonly count: Compact; + } & Struct; + readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted'; + } + + /** @name XcmV3MultiassetWildFungibility (108) */ + interface XcmV3MultiassetWildFungibility extends Enum { + readonly isFungible: boolean; + readonly isNonFungible: boolean; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV3WeightLimit (109) */ + interface XcmV3WeightLimit extends Enum { + readonly isUnlimited: boolean; + readonly isLimited: boolean; + readonly asLimited: SpWeightsWeightV2Weight; + readonly type: 'Unlimited' | 'Limited'; + } + + /** @name XcmVersionedMultiAssets (110) */ + interface XcmVersionedMultiAssets extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2MultiassetMultiAssets; + readonly isV3: boolean; + readonly asV3: XcmV3MultiassetMultiAssets; + readonly type: 'V2' | 'V3'; + } + + /** @name XcmV2MultiassetMultiAssets (111) */ + interface XcmV2MultiassetMultiAssets extends Vec {} + + /** @name XcmV2MultiAsset (113) */ + interface XcmV2MultiAsset extends Struct { + readonly id: XcmV2MultiassetAssetId; + readonly fun: XcmV2MultiassetFungibility; + } + + /** @name XcmV2MultiassetAssetId (114) */ + interface XcmV2MultiassetAssetId extends Enum { + readonly isConcrete: boolean; + readonly asConcrete: XcmV2MultiLocation; + readonly isAbstract: boolean; + readonly asAbstract: Bytes; + readonly type: 'Concrete' | 'Abstract'; + } + + /** @name XcmV2MultiLocation (115) */ + interface XcmV2MultiLocation extends Struct { + readonly parents: u8; + readonly interior: XcmV2MultilocationJunctions; + } + + /** @name XcmV2MultilocationJunctions (116) */ + interface XcmV2MultilocationJunctions extends Enum { + readonly isHere: boolean; + readonly isX1: boolean; + readonly asX1: XcmV2Junction; + readonly isX2: boolean; + readonly asX2: ITuple<[XcmV2Junction, XcmV2Junction]>; + readonly isX3: boolean; + readonly asX3: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly isX4: boolean; + readonly asX4: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly isX5: boolean; + readonly asX5: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly isX6: boolean; + readonly asX6: ITuple< + [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] + >; + readonly isX7: boolean; + readonly asX7: ITuple< + [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] + >; + readonly isX8: boolean; + readonly asX8: ITuple< + [ + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction, + XcmV2Junction + ] + >; + readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; + } + + /** @name XcmV2Junction (117) */ + interface XcmV2Junction extends Enum { + readonly isParachain: boolean; + readonly asParachain: Compact; + readonly isAccountId32: boolean; + readonly asAccountId32: { + readonly network: XcmV2NetworkId; + readonly id: U8aFixed; + } & Struct; + readonly isAccountIndex64: boolean; + readonly asAccountIndex64: { + readonly network: XcmV2NetworkId; + readonly index: Compact; + } & Struct; + readonly isAccountKey20: boolean; + readonly asAccountKey20: { + readonly network: XcmV2NetworkId; + readonly key: U8aFixed; + } & Struct; + readonly isPalletInstance: boolean; + readonly asPalletInstance: u8; + readonly isGeneralIndex: boolean; + readonly asGeneralIndex: Compact; + readonly isGeneralKey: boolean; + readonly asGeneralKey: Bytes; + readonly isOnlyChild: boolean; + readonly isPlurality: boolean; + readonly asPlurality: { + readonly id: XcmV2BodyId; + readonly part: XcmV2BodyPart; + } & Struct; + readonly type: + | 'Parachain' + | 'AccountId32' + | 'AccountIndex64' + | 'AccountKey20' + | 'PalletInstance' + | 'GeneralIndex' + | 'GeneralKey' + | 'OnlyChild' + | 'Plurality'; + } + + /** @name XcmV2NetworkId (118) */ + interface XcmV2NetworkId extends Enum { + readonly isAny: boolean; + readonly isNamed: boolean; + readonly asNamed: Bytes; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama'; + } + + /** @name XcmV2BodyId (120) */ + interface XcmV2BodyId extends Enum { + readonly isUnit: boolean; + readonly isNamed: boolean; + readonly asNamed: Bytes; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isExecutive: boolean; + readonly isTechnical: boolean; + readonly isLegislative: boolean; + readonly isJudicial: boolean; + readonly isDefense: boolean; + readonly isAdministration: boolean; + readonly isTreasury: boolean; + readonly type: + | 'Unit' + | 'Named' + | 'Index' + | 'Executive' + | 'Technical' + | 'Legislative' + | 'Judicial' + | 'Defense' + | 'Administration' + | 'Treasury'; + } + + /** @name XcmV2BodyPart (121) */ + interface XcmV2BodyPart extends Enum { + readonly isVoice: boolean; + readonly isMembers: boolean; + readonly asMembers: { + readonly count: Compact; + } & Struct; + readonly isFraction: boolean; + readonly asFraction: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isAtLeastProportion: boolean; + readonly asAtLeastProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isMoreThanProportion: boolean; + readonly asMoreThanProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; + } + + /** @name XcmV2MultiassetFungibility (122) */ + interface XcmV2MultiassetFungibility extends Enum { + readonly isFungible: boolean; + readonly asFungible: Compact; + readonly isNonFungible: boolean; + readonly asNonFungible: XcmV2MultiassetAssetInstance; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV2MultiassetAssetInstance (123) */ + interface XcmV2MultiassetAssetInstance extends Enum { + readonly isUndefined: boolean; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isArray4: boolean; + readonly asArray4: U8aFixed; + readonly isArray8: boolean; + readonly asArray8: U8aFixed; + readonly isArray16: boolean; + readonly asArray16: U8aFixed; + readonly isArray32: boolean; + readonly asArray32: U8aFixed; + readonly isBlob: boolean; + readonly asBlob: Bytes; + readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob'; + } + + /** @name XcmVersionedMultiLocation (124) */ + interface XcmVersionedMultiLocation extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2MultiLocation; + readonly isV3: boolean; + readonly asV3: XcmV3MultiLocation; + readonly type: 'V2' | 'V3'; + } + + /** @name CumulusPalletXcmEvent (125) */ + interface CumulusPalletXcmEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: U8aFixed; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: U8aFixed; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>; + readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; + } + + /** @name CumulusPalletDmpQueueEvent (126) */ + interface CumulusPalletDmpQueueEvent extends Enum { + readonly isInvalidFormat: boolean; + readonly asInvalidFormat: { + readonly messageId: U8aFixed; + } & Struct; + readonly isUnsupportedVersion: boolean; + readonly asUnsupportedVersion: { + readonly messageId: U8aFixed; + } & Struct; + readonly isExecutedDownward: boolean; + readonly asExecutedDownward: { + readonly messageId: U8aFixed; + readonly outcome: XcmV3TraitsOutcome; + } & Struct; + readonly isWeightExhausted: boolean; + readonly asWeightExhausted: { + readonly messageId: U8aFixed; + readonly remainingWeight: SpWeightsWeightV2Weight; + readonly requiredWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightEnqueued: boolean; + readonly asOverweightEnqueued: { + readonly messageId: U8aFixed; + readonly overweightIndex: u64; + readonly requiredWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isOverweightServiced: boolean; + readonly asOverweightServiced: { + readonly overweightIndex: u64; + readonly weightUsed: SpWeightsWeightV2Weight; + } & Struct; + readonly isMaxMessagesExhausted: boolean; + readonly asMaxMessagesExhausted: { + readonly messageId: U8aFixed; + } & Struct; + readonly type: + | 'InvalidFormat' + | 'UnsupportedVersion' + | 'ExecutedDownward' + | 'WeightExhausted' + | 'OverweightEnqueued' + | 'OverweightServiced' + | 'MaxMessagesExhausted'; + } + + /** @name OrmlXtokensModuleEvent (127) */ + interface OrmlXtokensModuleEvent extends Enum { + readonly isTransferredMultiAssets: boolean; + readonly asTransferredMultiAssets: { + readonly sender: AccountId32; + readonly assets: XcmV3MultiassetMultiAssets; + readonly fee: XcmV3MultiAsset; + readonly dest: XcmV3MultiLocation; + } & Struct; + readonly type: 'TransferredMultiAssets'; + } + + /** @name OrmlTokensModuleEvent (128) */ + interface OrmlTokensModuleEvent extends Enum { + readonly isEndowed: boolean; + readonly asEndowed: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isDustLost: boolean; + readonly asDustLost: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isTransfer: boolean; + readonly asTransfer: { + readonly currencyId: u128; + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly isReserved: boolean; + readonly asReserved: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isUnreserved: boolean; + readonly asUnreserved: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isReserveRepatriated: boolean; + readonly asReserveRepatriated: { + readonly currencyId: u128; + readonly from: AccountId32; + readonly to: AccountId32; + readonly amount: u128; + readonly status: FrameSupportTokensMiscBalanceStatus; + } & Struct; + readonly isBalanceSet: boolean; + readonly asBalanceSet: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly free: u128; + readonly reserved: u128; + } & Struct; + readonly isTotalIssuanceSet: boolean; + readonly asTotalIssuanceSet: { + readonly currencyId: u128; + readonly amount: u128; + } & Struct; + readonly isWithdrawn: boolean; + readonly asWithdrawn: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isSlashed: boolean; + readonly asSlashed: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly freeAmount: u128; + readonly reservedAmount: u128; + } & Struct; + readonly isDeposited: boolean; + readonly asDeposited: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isLockSet: boolean; + readonly asLockSet: { + readonly lockId: U8aFixed; + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isLockRemoved: boolean; + readonly asLockRemoved: { + readonly lockId: U8aFixed; + readonly currencyId: u128; + readonly who: AccountId32; + } & Struct; + readonly isLocked: boolean; + readonly asLocked: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isUnlocked: boolean; + readonly asUnlocked: { + readonly currencyId: u128; + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'Endowed' + | 'DustLost' + | 'Transfer' + | 'Reserved' + | 'Unreserved' + | 'ReserveRepatriated' + | 'BalanceSet' + | 'TotalIssuanceSet' + | 'Withdrawn' + | 'Slashed' + | 'Deposited' + | 'LockSet' + | 'LockRemoved' + | 'Locked' + | 'Unlocked'; + } + + /** @name PalletBridgeEvent (129) */ + interface PalletBridgeEvent extends Enum { + readonly isRelayerThresholdChanged: boolean; + readonly asRelayerThresholdChanged: u32; + readonly isChainWhitelisted: boolean; + readonly asChainWhitelisted: u8; + readonly isRelayerAdded: boolean; + readonly asRelayerAdded: AccountId32; + readonly isRelayerRemoved: boolean; + readonly asRelayerRemoved: AccountId32; + readonly isFungibleTransfer: boolean; + readonly asFungibleTransfer: ITuple<[u8, u64, U8aFixed, u128, Bytes]>; + readonly isNonFungibleTransfer: boolean; + readonly asNonFungibleTransfer: ITuple<[u8, u64, U8aFixed, Bytes, Bytes, Bytes]>; + readonly isGenericTransfer: boolean; + readonly asGenericTransfer: ITuple<[u8, u64, U8aFixed, Bytes]>; + readonly isVoteFor: boolean; + readonly asVoteFor: ITuple<[u8, u64, AccountId32]>; + readonly isVoteAgainst: boolean; + readonly asVoteAgainst: ITuple<[u8, u64, AccountId32]>; + readonly isProposalApproved: boolean; + readonly asProposalApproved: ITuple<[u8, u64]>; + readonly isProposalRejected: boolean; + readonly asProposalRejected: ITuple<[u8, u64]>; + readonly isProposalSucceeded: boolean; + readonly asProposalSucceeded: ITuple<[u8, u64]>; + readonly isProposalFailed: boolean; + readonly asProposalFailed: ITuple<[u8, u64]>; + readonly isFeeUpdated: boolean; + readonly asFeeUpdated: { + readonly destId: u8; + readonly fee: u128; + } & Struct; + readonly type: + | 'RelayerThresholdChanged' + | 'ChainWhitelisted' + | 'RelayerAdded' + | 'RelayerRemoved' + | 'FungibleTransfer' + | 'NonFungibleTransfer' + | 'GenericTransfer' + | 'VoteFor' + | 'VoteAgainst' + | 'ProposalApproved' + | 'ProposalRejected' + | 'ProposalSucceeded' + | 'ProposalFailed' + | 'FeeUpdated'; + } + + /** @name PalletBridgeTransferEvent (130) */ + interface PalletBridgeTransferEvent extends Enum { + readonly isMaximumIssuanceChanged: boolean; + readonly asMaximumIssuanceChanged: { + readonly oldValue: u128; + } & Struct; + readonly isNativeTokenMinted: boolean; + readonly asNativeTokenMinted: { + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: 'MaximumIssuanceChanged' | 'NativeTokenMinted'; + } + + /** @name PalletDrop3Event (131) */ + interface PalletDrop3Event extends Enum { + readonly isAdminChanged: boolean; + readonly asAdminChanged: { + readonly oldAdmin: Option; + } & Struct; + readonly isBalanceSlashed: boolean; + readonly asBalanceSlashed: { + readonly who: AccountId32; + readonly amount: u128; + } & Struct; + readonly isRewardPoolApproved: boolean; + readonly asRewardPoolApproved: { + readonly id: u64; + } & Struct; + readonly isRewardPoolRejected: boolean; + readonly asRewardPoolRejected: { + readonly id: u64; + } & Struct; + readonly isRewardPoolStarted: boolean; + readonly asRewardPoolStarted: { + readonly id: u64; + } & Struct; + readonly isRewardPoolStopped: boolean; + readonly asRewardPoolStopped: { + readonly id: u64; + } & Struct; + readonly isRewardPoolRemoved: boolean; + readonly asRewardPoolRemoved: { + readonly id: u64; + readonly name: Bytes; + readonly owner: AccountId32; + } & Struct; + readonly isRewardPoolProposed: boolean; + readonly asRewardPoolProposed: { + readonly id: u64; + readonly name: Bytes; + readonly owner: AccountId32; + } & Struct; + readonly isRewardSent: boolean; + readonly asRewardSent: { + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'AdminChanged' + | 'BalanceSlashed' + | 'RewardPoolApproved' + | 'RewardPoolRejected' + | 'RewardPoolStarted' + | 'RewardPoolStopped' + | 'RewardPoolRemoved' + | 'RewardPoolProposed' + | 'RewardSent'; + } + + /** @name PalletExtrinsicFilterEvent (133) */ + interface PalletExtrinsicFilterEvent extends Enum { + readonly isModeSet: boolean; + readonly asModeSet: { + readonly newMode: PalletExtrinsicFilterOperationalMode; + } & Struct; + readonly isExtrinsicsBlocked: boolean; + readonly asExtrinsicsBlocked: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly isExtrinsicsUnblocked: boolean; + readonly asExtrinsicsUnblocked: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly type: 'ModeSet' | 'ExtrinsicsBlocked' | 'ExtrinsicsUnblocked'; + } + + /** @name PalletExtrinsicFilterOperationalMode (134) */ + interface PalletExtrinsicFilterOperationalMode extends Enum { + readonly isNormal: boolean; + readonly isSafe: boolean; + readonly isTest: boolean; + readonly type: 'Normal' | 'Safe' | 'Test'; + } + + /** @name PalletIdentityManagementEvent (136) */ + 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 (137) */ + interface CorePrimitivesKeyAesOutput extends Struct { + readonly ciphertext: Bytes; + readonly aad: Bytes; + readonly nonce: U8aFixed; + } + + /** @name CorePrimitivesErrorErrorDetail (139) */ + 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 PalletAssetManagerEvent (141) */ + interface PalletAssetManagerEvent extends Enum { + readonly isForeignAssetMetadataUpdated: boolean; + readonly asForeignAssetMetadataUpdated: { + readonly assetId: u128; + readonly metadata: PalletAssetManagerAssetMetadata; + } & Struct; + readonly isForeignAssetTrackerUpdated: boolean; + readonly asForeignAssetTrackerUpdated: { + readonly oldAssetTracker: u128; + readonly newAssetTracker: u128; + } & Struct; + readonly isForeignAssetTypeRegistered: boolean; + readonly asForeignAssetTypeRegistered: { + readonly assetId: u128; + readonly assetType: RuntimeCommonXcmImplCurrencyId; + } & Struct; + readonly isForeignAssetTypeRemoved: boolean; + readonly asForeignAssetTypeRemoved: { + readonly assetId: u128; + readonly removedAssetType: RuntimeCommonXcmImplCurrencyId; + readonly defaultAssetType: RuntimeCommonXcmImplCurrencyId; + } & Struct; + readonly isUnitsPerSecondChanged: boolean; + readonly asUnitsPerSecondChanged: { + readonly assetId: u128; + readonly unitsPerSecond: u128; + } & Struct; + readonly type: + | 'ForeignAssetMetadataUpdated' + | 'ForeignAssetTrackerUpdated' + | 'ForeignAssetTypeRegistered' + | 'ForeignAssetTypeRemoved' + | 'UnitsPerSecondChanged'; + } + + /** @name PalletAssetManagerAssetMetadata (142) */ + interface PalletAssetManagerAssetMetadata extends Struct { + readonly name: Bytes; + readonly symbol: Bytes; + readonly decimals: u8; + readonly minimalBalance: u128; + readonly isFrozen: bool; + } + + /** @name RuntimeCommonXcmImplCurrencyId (143) */ + interface RuntimeCommonXcmImplCurrencyId extends Enum { + readonly isSelfReserve: boolean; + readonly isParachainReserve: boolean; + readonly asParachainReserve: XcmV3MultiLocation; + readonly type: 'SelfReserve' | 'ParachainReserve'; + } + + /** @name RococoParachainRuntimeRuntime (144) */ + type RococoParachainRuntimeRuntime = Null; + + /** @name PalletVcManagementEvent (145) */ + 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 (146) */ + 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 (149) */ + 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 (151) */ + interface PalletGroupEvent extends Enum { + readonly isGroupMemberAdded: boolean; + readonly asGroupMemberAdded: AccountId32; + readonly isGroupMemberRemoved: boolean; + readonly asGroupMemberRemoved: AccountId32; + readonly type: 'GroupMemberAdded' | 'GroupMemberRemoved'; + } + + /** @name PalletTeerexEvent (153) */ + 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 PalletSidechainEvent (154) */ + 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 PalletTeeracleEvent (155) */ + interface PalletTeeracleEvent extends Enum { + readonly isExchangeRateUpdated: boolean; + readonly asExchangeRateUpdated: ITuple<[Bytes, Bytes, Option]>; + readonly isExchangeRateDeleted: boolean; + readonly asExchangeRateDeleted: ITuple<[Bytes, Bytes]>; + readonly isOracleUpdated: boolean; + readonly asOracleUpdated: ITuple<[Bytes, Bytes]>; + readonly isAddedToWhitelist: boolean; + readonly asAddedToWhitelist: ITuple<[Bytes, U8aFixed]>; + readonly isRemovedFromWhitelist: boolean; + readonly asRemovedFromWhitelist: ITuple<[Bytes, U8aFixed]>; + readonly type: + | 'ExchangeRateUpdated' + | 'ExchangeRateDeleted' + | 'OracleUpdated' + | 'AddedToWhitelist' + | 'RemovedFromWhitelist'; + } + + /** @name SubstrateFixedFixedU64 (157) */ + interface SubstrateFixedFixedU64 extends Struct { + readonly bits: u64; + } + + /** @name TypenumUIntUInt (162) */ + interface TypenumUIntUInt extends Struct { + readonly msb: TypenumUIntUTerm; + readonly lsb: TypenumBitB0; + } + + /** @name TypenumUIntUTerm (163) */ + interface TypenumUIntUTerm extends Struct { + readonly msb: TypenumUintUTerm; + readonly lsb: TypenumBitB1; + } + + /** @name TypenumUintUTerm (164) */ + type TypenumUintUTerm = Null; + + /** @name TypenumBitB1 (165) */ + type TypenumBitB1 = Null; + + /** @name TypenumBitB0 (166) */ + type TypenumBitB0 = Null; + + /** @name PalletIdentityManagementMockEvent (167) */ + interface PalletIdentityManagementMockEvent 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 isUserShieldingKeySetPlain: boolean; + readonly asUserShieldingKeySetPlain: { + readonly account: AccountId32; + } & Struct; + readonly isUserShieldingKeySet: boolean; + readonly asUserShieldingKeySet: { + readonly account: AccountId32; + } & Struct; + readonly isIdentityCreatedPlain: boolean; + readonly asIdentityCreatedPlain: { + readonly account: AccountId32; + readonly identity: MockTeePrimitivesIdentity; + readonly code: U8aFixed; + readonly idGraph: Vec>; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityRemovedPlain: boolean; + readonly asIdentityRemovedPlain: { + readonly account: AccountId32; + readonly identity: MockTeePrimitivesIdentity; + readonly idGraph: Vec>; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityVerifiedPlain: boolean; + readonly asIdentityVerifiedPlain: { + readonly account: AccountId32; + readonly identity: MockTeePrimitivesIdentity; + readonly idGraph: Vec>; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly func: Bytes; + readonly error: Bytes; + } & Struct; + readonly type: + | 'DelegateeAdded' + | 'DelegateeRemoved' + | 'CreateIdentityRequested' + | 'RemoveIdentityRequested' + | 'VerifyIdentityRequested' + | 'SetUserShieldingKeyRequested' + | 'UserShieldingKeySetPlain' + | 'UserShieldingKeySet' + | 'IdentityCreatedPlain' + | 'IdentityCreated' + | 'IdentityRemovedPlain' + | 'IdentityRemoved' + | 'IdentityVerifiedPlain' + | 'IdentityVerified' + | 'SomeError'; + } + + /** @name MockTeePrimitivesIdentity (168) */ + interface MockTeePrimitivesIdentity extends Enum { + readonly isSubstrate: boolean; + readonly asSubstrate: { + readonly network: MockTeePrimitivesIdentitySubstrateNetwork; + readonly address: MockTeePrimitivesIdentityAddress32; + } & Struct; + readonly isEvm: boolean; + readonly asEvm: { + readonly network: MockTeePrimitivesIdentityEvmNetwork; + readonly address: MockTeePrimitivesIdentityAddress20; + } & Struct; + readonly isWeb2: boolean; + readonly asWeb2: { + readonly network: MockTeePrimitivesIdentityWeb2Network; + readonly address: Bytes; + } & Struct; + readonly type: 'Substrate' | 'Evm' | 'Web2'; + } + + /** @name MockTeePrimitivesIdentitySubstrateNetwork (169) */ + interface MockTeePrimitivesIdentitySubstrateNetwork extends Enum { + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isLitentry: boolean; + readonly isLitmus: boolean; + readonly isLitentryRococo: boolean; + readonly type: 'Polkadot' | 'Kusama' | 'Litentry' | 'Litmus' | 'LitentryRococo'; + } + + /** @name MockTeePrimitivesIdentityAddress32 (170) */ + interface MockTeePrimitivesIdentityAddress32 extends U8aFixed {} + + /** @name MockTeePrimitivesIdentityEvmNetwork (171) */ + interface MockTeePrimitivesIdentityEvmNetwork extends Enum { + readonly isEthereum: boolean; + readonly isBsc: boolean; + readonly type: 'Ethereum' | 'Bsc'; + } + + /** @name MockTeePrimitivesIdentityAddress20 (172) */ + interface MockTeePrimitivesIdentityAddress20 extends U8aFixed {} + + /** @name MockTeePrimitivesIdentityWeb2Network (173) */ + interface MockTeePrimitivesIdentityWeb2Network extends Enum { + readonly isTwitter: boolean; + readonly isDiscord: boolean; + readonly isGithub: boolean; + readonly type: 'Twitter' | 'Discord' | 'Github'; + } + + /** @name PalletIdentityManagementMockIdentityContext (176) */ + interface PalletIdentityManagementMockIdentityContext extends Struct { + readonly metadata: Option; + readonly creationRequestBlock: Option; + readonly verificationRequestBlock: Option; + readonly isVerified: bool; + } + + /** @name PalletSudoEvent (180) */ + 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 FrameSystemPhase (181) */ + interface FrameSystemPhase extends Enum { + readonly isApplyExtrinsic: boolean; + readonly asApplyExtrinsic: u32; + readonly isFinalization: boolean; + readonly isInitialization: boolean; + readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; + } + + /** @name FrameSystemLastRuntimeUpgradeInfo (184) */ + interface FrameSystemLastRuntimeUpgradeInfo extends Struct { + readonly specVersion: Compact; + readonly specName: Text; + } + + /** @name FrameSystemCall (186) */ + 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 (190) */ + interface FrameSystemLimitsBlockWeights extends Struct { + readonly baseBlock: SpWeightsWeightV2Weight; + readonly maxBlock: SpWeightsWeightV2Weight; + readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; + } + + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (191) */ + interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { + readonly normal: FrameSystemLimitsWeightsPerClass; + readonly operational: FrameSystemLimitsWeightsPerClass; + readonly mandatory: FrameSystemLimitsWeightsPerClass; + } + + /** @name FrameSystemLimitsWeightsPerClass (192) */ + interface FrameSystemLimitsWeightsPerClass extends Struct { + readonly baseExtrinsic: SpWeightsWeightV2Weight; + readonly maxExtrinsic: Option; + readonly maxTotal: Option; + readonly reserved: Option; + } + + /** @name FrameSystemLimitsBlockLength (194) */ + interface FrameSystemLimitsBlockLength extends Struct { + readonly max: FrameSupportDispatchPerDispatchClassU32; + } + + /** @name FrameSupportDispatchPerDispatchClassU32 (195) */ + interface FrameSupportDispatchPerDispatchClassU32 extends Struct { + readonly normal: u32; + readonly operational: u32; + readonly mandatory: u32; + } + + /** @name SpWeightsRuntimeDbWeight (196) */ + interface SpWeightsRuntimeDbWeight extends Struct { + readonly read: u64; + readonly write: u64; + } + + /** @name SpVersionRuntimeVersion (197) */ + 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 (201) */ + 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 PalletTimestampCall (202) */ + interface PalletTimestampCall extends Enum { + readonly isSet: boolean; + readonly asSet: { + readonly now: Compact; + } & Struct; + readonly type: 'Set'; + } + + /** @name PalletSchedulerScheduled (205) */ + interface PalletSchedulerScheduled extends Struct { + readonly maybeId: Option; + readonly priority: u8; + readonly call: FrameSupportPreimagesBounded; + readonly maybePeriodic: Option>; + readonly origin: RococoParachainRuntimeOriginCaller; + } + + /** @name FrameSupportPreimagesBounded (206) */ + 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 PalletSchedulerCall (208) */ + 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 (210) */ + 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: RococoParachainRuntimeOriginCaller; + 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 RococoParachainRuntimeOriginCaller (212) */ + interface RococoParachainRuntimeOriginCaller extends Enum { + readonly isSystem: boolean; + readonly asSystem: FrameSupportDispatchRawOrigin; + readonly isVoid: boolean; + readonly isCouncil: boolean; + readonly asCouncil: PalletCollectiveRawOrigin; + readonly isTechnicalCommittee: boolean; + readonly asTechnicalCommittee: PalletCollectiveRawOrigin; + readonly isPolkadotXcm: boolean; + readonly asPolkadotXcm: PalletXcmOrigin; + readonly isCumulusXcm: boolean; + readonly asCumulusXcm: CumulusPalletXcmOrigin; + readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'PolkadotXcm' | 'CumulusXcm'; + } + + /** @name FrameSupportDispatchRawOrigin (213) */ + interface FrameSupportDispatchRawOrigin extends Enum { + readonly isRoot: boolean; + readonly isSigned: boolean; + readonly asSigned: AccountId32; + readonly isNone: boolean; + readonly type: 'Root' | 'Signed' | 'None'; + } + + /** @name PalletCollectiveRawOrigin (214) */ + 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 PalletXcmOrigin (216) */ + interface PalletXcmOrigin extends Enum { + readonly isXcm: boolean; + readonly asXcm: XcmV3MultiLocation; + readonly isResponse: boolean; + readonly asResponse: XcmV3MultiLocation; + readonly type: 'Xcm' | 'Response'; + } + + /** @name CumulusPalletXcmOrigin (217) */ + interface CumulusPalletXcmOrigin extends Enum { + readonly isRelay: boolean; + readonly isSiblingParachain: boolean; + readonly asSiblingParachain: u32; + readonly type: 'Relay' | 'SiblingParachain'; + } + + /** @name SpCoreVoid (218) */ + type SpCoreVoid = Null; + + /** @name PalletMultisigCall (219) */ + 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 (222) */ + 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: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isRemoveProxy: boolean; + readonly asRemoveProxy: { + readonly delegate: MultiAddress; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } & Struct; + readonly isRemoveProxies: boolean; + readonly isCreatePure: boolean; + readonly asCreatePure: { + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + readonly index: u16; + } & Struct; + readonly isKillPure: boolean; + readonly asKillPure: { + readonly spawner: MultiAddress; + readonly proxyType: RococoParachainRuntimeProxyType; + 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 PalletPreimageCall (226) */ + 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 PalletBalancesCall (227) */ + 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 (228) */ + 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 (229) */ + interface PalletVestingVestingInfo extends Struct { + readonly locked: u128; + readonly perBlock: u128; + readonly startingBlock: u32; + } + + /** @name PalletTreasuryCall (230) */ + 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 PalletDemocracyCall (231) */ + interface PalletDemocracyCall extends Enum { + readonly isPropose: boolean; + readonly asPropose: { + readonly proposal: FrameSupportPreimagesBounded; + readonly value: Compact; + } & Struct; + readonly isSecond: boolean; + readonly asSecond: { + readonly proposal: Compact; + } & Struct; + readonly isVote: boolean; + readonly asVote: { + readonly refIndex: Compact; + readonly vote: PalletDemocracyVoteAccountVote; + } & Struct; + readonly isEmergencyCancel: boolean; + readonly asEmergencyCancel: { + readonly refIndex: u32; + } & Struct; + readonly isExternalPropose: boolean; + readonly asExternalPropose: { + readonly proposal: FrameSupportPreimagesBounded; + } & Struct; + readonly isExternalProposeMajority: boolean; + readonly asExternalProposeMajority: { + readonly proposal: FrameSupportPreimagesBounded; + } & Struct; + readonly isExternalProposeDefault: boolean; + readonly asExternalProposeDefault: { + readonly proposal: FrameSupportPreimagesBounded; + } & Struct; + readonly isFastTrack: boolean; + readonly asFastTrack: { + readonly proposalHash: H256; + readonly votingPeriod: u32; + readonly delay: u32; + } & Struct; + readonly isVetoExternal: boolean; + readonly asVetoExternal: { + readonly proposalHash: H256; + } & Struct; + readonly isCancelReferendum: boolean; + readonly asCancelReferendum: { + readonly refIndex: Compact; + } & Struct; + readonly isDelegate: boolean; + readonly asDelegate: { + readonly to: MultiAddress; + readonly conviction: PalletDemocracyConviction; + readonly balance: u128; + } & Struct; + readonly isUndelegate: boolean; + readonly isClearPublicProposals: boolean; + readonly isUnlock: boolean; + readonly asUnlock: { + readonly target: MultiAddress; + } & Struct; + readonly isRemoveVote: boolean; + readonly asRemoveVote: { + readonly index: u32; + } & Struct; + readonly isRemoveOtherVote: boolean; + readonly asRemoveOtherVote: { + readonly target: MultiAddress; + readonly index: u32; + } & Struct; + readonly isBlacklist: boolean; + readonly asBlacklist: { + readonly proposalHash: H256; + readonly maybeRefIndex: Option; + } & Struct; + readonly isCancelProposal: boolean; + readonly asCancelProposal: { + readonly propIndex: Compact; + } & Struct; + readonly isSetMetadata: boolean; + readonly asSetMetadata: { + readonly owner: PalletDemocracyMetadataOwner; + readonly maybeHash: Option; + } & Struct; + readonly type: + | 'Propose' + | 'Second' + | 'Vote' + | 'EmergencyCancel' + | 'ExternalPropose' + | 'ExternalProposeMajority' + | 'ExternalProposeDefault' + | 'FastTrack' + | 'VetoExternal' + | 'CancelReferendum' + | 'Delegate' + | 'Undelegate' + | 'ClearPublicProposals' + | 'Unlock' + | 'RemoveVote' + | 'RemoveOtherVote' + | 'Blacklist' + | 'CancelProposal' + | 'SetMetadata'; + } + + /** @name PalletDemocracyConviction (232) */ + interface PalletDemocracyConviction extends Enum { + readonly isNone: boolean; + readonly isLocked1x: boolean; + readonly isLocked2x: boolean; + readonly isLocked3x: boolean; + readonly isLocked4x: boolean; + readonly isLocked5x: boolean; + readonly isLocked6x: boolean; + readonly type: 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x'; + } + + /** @name PalletCollectiveCall (234) */ + 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 PalletMembershipCall (237) */ + interface PalletMembershipCall extends Enum { + readonly isAddMember: boolean; + readonly asAddMember: { + readonly who: MultiAddress; + } & Struct; + readonly isRemoveMember: boolean; + readonly asRemoveMember: { + readonly who: MultiAddress; + } & Struct; + readonly isSwapMember: boolean; + readonly asSwapMember: { + readonly remove: MultiAddress; + readonly add: MultiAddress; + } & Struct; + readonly isResetMembers: boolean; + readonly asResetMembers: { + readonly members: Vec; + } & Struct; + readonly isChangeKey: boolean; + readonly asChangeKey: { + readonly new_: MultiAddress; + } & Struct; + readonly isSetPrime: boolean; + readonly asSetPrime: { + readonly who: MultiAddress; + } & Struct; + readonly isClearPrime: boolean; + readonly type: + | 'AddMember' + | 'RemoveMember' + | 'SwapMember' + | 'ResetMembers' + | 'ChangeKey' + | 'SetPrime' + | 'ClearPrime'; + } + + /** @name PalletBountiesCall (240) */ + interface PalletBountiesCall extends Enum { + readonly isProposeBounty: boolean; + readonly asProposeBounty: { + readonly value: Compact; + readonly description: Bytes; + } & Struct; + readonly isApproveBounty: boolean; + readonly asApproveBounty: { + readonly bountyId: Compact; + } & Struct; + readonly isProposeCurator: boolean; + readonly asProposeCurator: { + readonly bountyId: Compact; + readonly curator: MultiAddress; + readonly fee: Compact; + } & Struct; + readonly isUnassignCurator: boolean; + readonly asUnassignCurator: { + readonly bountyId: Compact; + } & Struct; + readonly isAcceptCurator: boolean; + readonly asAcceptCurator: { + readonly bountyId: Compact; + } & Struct; + readonly isAwardBounty: boolean; + readonly asAwardBounty: { + readonly bountyId: Compact; + readonly beneficiary: MultiAddress; + } & Struct; + readonly isClaimBounty: boolean; + readonly asClaimBounty: { + readonly bountyId: Compact; + } & Struct; + readonly isCloseBounty: boolean; + readonly asCloseBounty: { + readonly bountyId: Compact; + } & Struct; + readonly isExtendBountyExpiry: boolean; + readonly asExtendBountyExpiry: { + readonly bountyId: Compact; + readonly remark: Bytes; + } & Struct; + readonly type: + | 'ProposeBounty' + | 'ApproveBounty' + | 'ProposeCurator' + | 'UnassignCurator' + | 'AcceptCurator' + | 'AwardBounty' + | 'ClaimBounty' + | 'CloseBounty' + | 'ExtendBountyExpiry'; + } + + /** @name PalletTipsCall (241) */ + interface PalletTipsCall extends Enum { + readonly isReportAwesome: boolean; + readonly asReportAwesome: { + readonly reason: Bytes; + readonly who: MultiAddress; + } & Struct; + readonly isRetractTip: boolean; + readonly asRetractTip: { + readonly hash_: H256; + } & Struct; + readonly isTipNew: boolean; + readonly asTipNew: { + readonly reason: Bytes; + readonly who: MultiAddress; + readonly tipValue: Compact; + } & Struct; + readonly isTip: boolean; + readonly asTip: { + readonly hash_: H256; + readonly tipValue: Compact; + } & Struct; + readonly isCloseTip: boolean; + readonly asCloseTip: { + readonly hash_: H256; + } & Struct; + readonly isSlashTip: boolean; + readonly asSlashTip: { + readonly hash_: H256; + } & Struct; + readonly type: 'ReportAwesome' | 'RetractTip' | 'TipNew' | 'Tip' | 'CloseTip' | 'SlashTip'; + } + + /** @name PalletIdentityCall (242) */ + interface PalletIdentityCall extends Enum { + readonly isAddRegistrar: boolean; + readonly asAddRegistrar: { + readonly account: MultiAddress; + } & Struct; + readonly isSetIdentity: boolean; + readonly asSetIdentity: { + readonly info: PalletIdentityIdentityInfo; + } & Struct; + readonly isSetSubs: boolean; + readonly asSetSubs: { + readonly subs: Vec>; + } & Struct; + readonly isClearIdentity: boolean; + readonly isRequestJudgement: boolean; + readonly asRequestJudgement: { + readonly regIndex: Compact; + readonly maxFee: Compact; + } & Struct; + readonly isCancelRequest: boolean; + readonly asCancelRequest: { + readonly regIndex: u32; + } & Struct; + readonly isSetFee: boolean; + readonly asSetFee: { + readonly index: Compact; + readonly fee: Compact; + } & Struct; + readonly isSetAccountId: boolean; + readonly asSetAccountId: { + readonly index: Compact; + readonly new_: MultiAddress; + } & Struct; + readonly isSetFields: boolean; + readonly asSetFields: { + readonly index: Compact; + readonly fields: PalletIdentityBitFlags; + } & Struct; + readonly isProvideJudgement: boolean; + readonly asProvideJudgement: { + readonly regIndex: Compact; + readonly target: MultiAddress; + readonly judgement: PalletIdentityJudgement; + readonly identity: H256; + } & Struct; + readonly isKillIdentity: boolean; + readonly asKillIdentity: { + readonly target: MultiAddress; + } & Struct; + readonly isAddSub: boolean; + readonly asAddSub: { + readonly sub: MultiAddress; + readonly data: Data; + } & Struct; + readonly isRenameSub: boolean; + readonly asRenameSub: { + readonly sub: MultiAddress; + readonly data: Data; + } & Struct; + readonly isRemoveSub: boolean; + readonly asRemoveSub: { + readonly sub: MultiAddress; + } & Struct; + readonly isQuitSub: boolean; + readonly type: + | 'AddRegistrar' + | 'SetIdentity' + | 'SetSubs' + | 'ClearIdentity' + | 'RequestJudgement' + | 'CancelRequest' + | 'SetFee' + | 'SetAccountId' + | 'SetFields' + | 'ProvideJudgement' + | 'KillIdentity' + | 'AddSub' + | 'RenameSub' + | 'RemoveSub' + | 'QuitSub'; + } + + /** @name PalletIdentityIdentityInfo (243) */ + interface PalletIdentityIdentityInfo extends Struct { + readonly additional: Vec>; + readonly display: Data; + readonly legal: Data; + readonly web: Data; + readonly riot: Data; + readonly email: Data; + readonly pgpFingerprint: Option; + readonly image: Data; + readonly twitter: Data; + } + + /** @name PalletIdentityBitFlags (278) */ + interface PalletIdentityBitFlags extends Set { + readonly isDisplay: boolean; + readonly isLegal: boolean; + readonly isWeb: boolean; + readonly isRiot: boolean; + readonly isEmail: boolean; + readonly isPgpFingerprint: boolean; + readonly isImage: boolean; + readonly isTwitter: boolean; + } + + /** @name PalletIdentityIdentityField (279) */ + interface PalletIdentityIdentityField extends Enum { + readonly isDisplay: boolean; + readonly isLegal: boolean; + readonly isWeb: boolean; + readonly isRiot: boolean; + readonly isEmail: boolean; + readonly isPgpFingerprint: boolean; + readonly isImage: boolean; + readonly isTwitter: boolean; + readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter'; + } + + /** @name PalletIdentityJudgement (280) */ + interface PalletIdentityJudgement extends Enum { + readonly isUnknown: boolean; + readonly isFeePaid: boolean; + readonly asFeePaid: u128; + readonly isReasonable: boolean; + readonly isKnownGood: boolean; + readonly isOutOfDate: boolean; + readonly isLowQuality: boolean; + readonly isErroneous: boolean; + readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous'; + } + + /** @name CumulusPalletParachainSystemCall (281) */ + interface CumulusPalletParachainSystemCall extends Enum { + readonly isSetValidationData: boolean; + readonly asSetValidationData: { + readonly data: CumulusPrimitivesParachainInherentParachainInherentData; + } & Struct; + readonly isSudoSendUpwardMessage: boolean; + readonly asSudoSendUpwardMessage: { + readonly message: Bytes; + } & Struct; + readonly isAuthorizeUpgrade: boolean; + readonly asAuthorizeUpgrade: { + readonly codeHash: H256; + } & Struct; + readonly isEnactAuthorizedUpgrade: boolean; + readonly asEnactAuthorizedUpgrade: { + readonly code: Bytes; + } & Struct; + readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade'; + } + + /** @name CumulusPrimitivesParachainInherentParachainInherentData (282) */ + interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { + readonly validationData: PolkadotPrimitivesV2PersistedValidationData; + readonly relayChainState: SpTrieStorageProof; + readonly downwardMessages: Vec; + readonly horizontalMessages: BTreeMap>; + } + + /** @name PolkadotPrimitivesV2PersistedValidationData (283) */ + interface PolkadotPrimitivesV2PersistedValidationData extends Struct { + readonly parentHead: Bytes; + readonly relayParentNumber: u32; + readonly relayParentStorageRoot: H256; + readonly maxPovSize: u32; + } + + /** @name SpTrieStorageProof (285) */ + interface SpTrieStorageProof extends Struct { + readonly trieNodes: BTreeSet; + } + + /** @name PolkadotCorePrimitivesInboundDownwardMessage (288) */ + interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct { + readonly sentAt: u32; + readonly msg: Bytes; + } + + /** @name PolkadotCorePrimitivesInboundHrmpMessage (291) */ + interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct { + readonly sentAt: u32; + readonly data: Bytes; + } + + /** @name ParachainInfoCall (294) */ + type ParachainInfoCall = Null; + + /** @name PalletSessionCall (295) */ + interface PalletSessionCall extends Enum { + readonly isSetKeys: boolean; + readonly asSetKeys: { + readonly keys_: RococoParachainRuntimeSessionKeys; + readonly proof: Bytes; + } & Struct; + readonly isPurgeKeys: boolean; + readonly type: 'SetKeys' | 'PurgeKeys'; + } + + /** @name RococoParachainRuntimeSessionKeys (296) */ + interface RococoParachainRuntimeSessionKeys extends Struct { + readonly aura: SpConsensusAuraSr25519AppSr25519Public; + } + + /** @name SpConsensusAuraSr25519AppSr25519Public (297) */ + interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {} + + /** @name SpCoreSr25519Public (298) */ + interface SpCoreSr25519Public extends U8aFixed {} + + /** @name PalletParachainStakingCall (299) */ + interface PalletParachainStakingCall extends Enum { + readonly isSetStakingExpectations: boolean; + readonly asSetStakingExpectations: { + readonly expectations: { + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct; + } & Struct; + readonly isSetInflation: boolean; + readonly asSetInflation: { + readonly schedule: { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct; + } & Struct; + readonly isSetParachainBondAccount: boolean; + readonly asSetParachainBondAccount: { + readonly new_: AccountId32; + } & Struct; + readonly isSetParachainBondReservePercent: boolean; + readonly asSetParachainBondReservePercent: { + readonly new_: Percent; + } & Struct; + readonly isSetTotalSelected: boolean; + readonly asSetTotalSelected: { + readonly new_: u32; + } & Struct; + readonly isSetCollatorCommission: boolean; + readonly asSetCollatorCommission: { + readonly new_: Perbill; + } & Struct; + readonly isSetBlocksPerRound: boolean; + readonly asSetBlocksPerRound: { + readonly new_: u32; + } & Struct; + readonly isAddCandidatesWhitelist: boolean; + readonly asAddCandidatesWhitelist: { + readonly candidate: AccountId32; + } & Struct; + readonly isRemoveCandidatesWhitelist: boolean; + readonly asRemoveCandidatesWhitelist: { + readonly candidate: AccountId32; + } & Struct; + readonly isJoinCandidates: boolean; + readonly asJoinCandidates: { + readonly bond: u128; + } & Struct; + readonly isScheduleLeaveCandidates: boolean; + readonly isExecuteLeaveCandidates: boolean; + readonly asExecuteLeaveCandidates: { + readonly candidate: AccountId32; + } & Struct; + readonly isCancelLeaveCandidates: boolean; + readonly isGoOffline: boolean; + readonly isGoOnline: boolean; + readonly isCandidateBondMore: boolean; + readonly asCandidateBondMore: { + readonly more: u128; + } & Struct; + readonly isScheduleCandidateBondLess: boolean; + readonly asScheduleCandidateBondLess: { + readonly less: u128; + } & Struct; + readonly isExecuteCandidateBondLess: boolean; + readonly asExecuteCandidateBondLess: { + readonly candidate: AccountId32; + } & Struct; + readonly isCancelCandidateBondLess: boolean; + readonly isDelegate: boolean; + readonly asDelegate: { + readonly candidate: AccountId32; + readonly amount: u128; + } & Struct; + readonly isDelegateWithAutoCompound: boolean; + readonly asDelegateWithAutoCompound: { + readonly candidate: AccountId32; + readonly amount: u128; + readonly autoCompound: Percent; + } & Struct; + readonly isScheduleLeaveDelegators: boolean; + readonly isExecuteLeaveDelegators: boolean; + readonly asExecuteLeaveDelegators: { + readonly delegator: AccountId32; + } & Struct; + readonly isCancelLeaveDelegators: boolean; + readonly isScheduleRevokeDelegation: boolean; + readonly asScheduleRevokeDelegation: { + readonly collator: AccountId32; + } & Struct; + readonly isDelegatorBondMore: boolean; + readonly asDelegatorBondMore: { + readonly candidate: AccountId32; + readonly more: u128; + } & Struct; + readonly isScheduleDelegatorBondLess: boolean; + readonly asScheduleDelegatorBondLess: { + readonly candidate: AccountId32; + readonly less: u128; + } & Struct; + readonly isExecuteDelegationRequest: boolean; + readonly asExecuteDelegationRequest: { + readonly delegator: AccountId32; + readonly candidate: AccountId32; + } & Struct; + readonly isCancelDelegationRequest: boolean; + readonly asCancelDelegationRequest: { + readonly candidate: AccountId32; + } & Struct; + readonly isSetAutoCompound: boolean; + readonly asSetAutoCompound: { + readonly candidate: AccountId32; + readonly value: Percent; + } & Struct; + readonly type: + | 'SetStakingExpectations' + | 'SetInflation' + | 'SetParachainBondAccount' + | 'SetParachainBondReservePercent' + | 'SetTotalSelected' + | 'SetCollatorCommission' + | 'SetBlocksPerRound' + | 'AddCandidatesWhitelist' + | 'RemoveCandidatesWhitelist' + | 'JoinCandidates' + | 'ScheduleLeaveCandidates' + | 'ExecuteLeaveCandidates' + | 'CancelLeaveCandidates' + | 'GoOffline' + | 'GoOnline' + | 'CandidateBondMore' + | 'ScheduleCandidateBondLess' + | 'ExecuteCandidateBondLess' + | 'CancelCandidateBondLess' + | 'Delegate' + | 'DelegateWithAutoCompound' + | 'ScheduleLeaveDelegators' + | 'ExecuteLeaveDelegators' + | 'CancelLeaveDelegators' + | 'ScheduleRevokeDelegation' + | 'DelegatorBondMore' + | 'ScheduleDelegatorBondLess' + | 'ExecuteDelegationRequest' + | 'CancelDelegationRequest' + | 'SetAutoCompound'; + } + + /** @name CumulusPalletXcmpQueueCall (302) */ + interface CumulusPalletXcmpQueueCall extends Enum { + readonly isServiceOverweight: boolean; + readonly asServiceOverweight: { + readonly index: u64; + readonly weightLimit: SpWeightsWeightV2Weight; + } & Struct; + readonly isSuspendXcmExecution: boolean; + readonly isResumeXcmExecution: boolean; + readonly isUpdateSuspendThreshold: boolean; + readonly asUpdateSuspendThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateDropThreshold: boolean; + readonly asUpdateDropThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateResumeThreshold: boolean; + readonly asUpdateResumeThreshold: { + readonly new_: u32; + } & Struct; + readonly isUpdateThresholdWeight: boolean; + readonly asUpdateThresholdWeight: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly isUpdateWeightRestrictDecay: boolean; + readonly asUpdateWeightRestrictDecay: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly isUpdateXcmpMaxIndividualWeight: boolean; + readonly asUpdateXcmpMaxIndividualWeight: { + readonly new_: SpWeightsWeightV2Weight; + } & Struct; + readonly type: + | 'ServiceOverweight' + | 'SuspendXcmExecution' + | 'ResumeXcmExecution' + | 'UpdateSuspendThreshold' + | 'UpdateDropThreshold' + | 'UpdateResumeThreshold' + | 'UpdateThresholdWeight' + | 'UpdateWeightRestrictDecay' + | 'UpdateXcmpMaxIndividualWeight'; + } + + /** @name PalletXcmCall (303) */ + interface PalletXcmCall extends Enum { + readonly isSend: boolean; + readonly asSend: { + readonly dest: XcmVersionedMultiLocation; + readonly message: XcmVersionedXcm; + } & Struct; + readonly isTeleportAssets: boolean; + readonly asTeleportAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + } & Struct; + readonly isReserveTransferAssets: boolean; + readonly asReserveTransferAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + } & Struct; + readonly isExecute: boolean; + readonly asExecute: { + readonly message: XcmVersionedXcm; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isForceXcmVersion: boolean; + readonly asForceXcmVersion: { + readonly location: XcmV3MultiLocation; + readonly xcmVersion: u32; + } & Struct; + readonly isForceDefaultXcmVersion: boolean; + readonly asForceDefaultXcmVersion: { + readonly maybeXcmVersion: Option; + } & Struct; + readonly isForceSubscribeVersionNotify: boolean; + readonly asForceSubscribeVersionNotify: { + readonly location: XcmVersionedMultiLocation; + } & Struct; + readonly isForceUnsubscribeVersionNotify: boolean; + readonly asForceUnsubscribeVersionNotify: { + readonly location: XcmVersionedMultiLocation; + } & Struct; + readonly isLimitedReserveTransferAssets: boolean; + readonly asLimitedReserveTransferAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + readonly weightLimit: XcmV3WeightLimit; + } & Struct; + readonly isLimitedTeleportAssets: boolean; + readonly asLimitedTeleportAssets: { + readonly dest: XcmVersionedMultiLocation; + readonly beneficiary: XcmVersionedMultiLocation; + readonly assets: XcmVersionedMultiAssets; + readonly feeAssetItem: u32; + readonly weightLimit: XcmV3WeightLimit; + } & Struct; + readonly type: + | 'Send' + | 'TeleportAssets' + | 'ReserveTransferAssets' + | 'Execute' + | 'ForceXcmVersion' + | 'ForceDefaultXcmVersion' + | 'ForceSubscribeVersionNotify' + | 'ForceUnsubscribeVersionNotify' + | 'LimitedReserveTransferAssets' + | 'LimitedTeleportAssets'; + } + + /** @name XcmVersionedXcm (304) */ + interface XcmVersionedXcm extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2Xcm; + readonly isV3: boolean; + readonly asV3: XcmV3Xcm; + readonly type: 'V2' | 'V3'; + } + + /** @name XcmV2Xcm (305) */ + interface XcmV2Xcm extends Vec {} + + /** @name XcmV2Instruction (307) */ + interface XcmV2Instruction extends Enum { + readonly isWithdrawAsset: boolean; + readonly asWithdrawAsset: XcmV2MultiassetMultiAssets; + readonly isReserveAssetDeposited: boolean; + readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets; + readonly isReceiveTeleportedAsset: boolean; + readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets; + readonly isQueryResponse: boolean; + readonly asQueryResponse: { + readonly queryId: Compact; + readonly response: XcmV2Response; + readonly maxWeight: Compact; + } & Struct; + readonly isTransferAsset: boolean; + readonly asTransferAsset: { + readonly assets: XcmV2MultiassetMultiAssets; + readonly beneficiary: XcmV2MultiLocation; + } & Struct; + readonly isTransferReserveAsset: boolean; + readonly asTransferReserveAsset: { + readonly assets: XcmV2MultiassetMultiAssets; + readonly dest: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isTransact: boolean; + readonly asTransact: { + readonly originType: XcmV2OriginKind; + readonly requireWeightAtMost: Compact; + readonly call: XcmDoubleEncoded; + } & Struct; + readonly isHrmpNewChannelOpenRequest: boolean; + readonly asHrmpNewChannelOpenRequest: { + readonly sender: Compact; + readonly maxMessageSize: Compact; + readonly maxCapacity: Compact; + } & Struct; + readonly isHrmpChannelAccepted: boolean; + readonly asHrmpChannelAccepted: { + readonly recipient: Compact; + } & Struct; + readonly isHrmpChannelClosing: boolean; + readonly asHrmpChannelClosing: { + readonly initiator: Compact; + readonly sender: Compact; + readonly recipient: Compact; + } & Struct; + readonly isClearOrigin: boolean; + readonly isDescendOrigin: boolean; + readonly asDescendOrigin: XcmV2MultilocationJunctions; + readonly isReportError: boolean; + readonly asReportError: { + readonly queryId: Compact; + readonly dest: XcmV2MultiLocation; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isDepositAsset: boolean; + readonly asDepositAsset: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly maxAssets: Compact; + readonly beneficiary: XcmV2MultiLocation; + } & Struct; + readonly isDepositReserveAsset: boolean; + readonly asDepositReserveAsset: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly maxAssets: Compact; + readonly dest: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isExchangeAsset: boolean; + readonly asExchangeAsset: { + readonly give: XcmV2MultiassetMultiAssetFilter; + readonly receive: XcmV2MultiassetMultiAssets; + } & Struct; + readonly isInitiateReserveWithdraw: boolean; + readonly asInitiateReserveWithdraw: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly reserve: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isInitiateTeleport: boolean; + readonly asInitiateTeleport: { + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly dest: XcmV2MultiLocation; + readonly xcm: XcmV2Xcm; + } & Struct; + readonly isQueryHolding: boolean; + readonly asQueryHolding: { + readonly queryId: Compact; + readonly dest: XcmV2MultiLocation; + readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isBuyExecution: boolean; + readonly asBuyExecution: { + readonly fees: XcmV2MultiAsset; + readonly weightLimit: XcmV2WeightLimit; + } & Struct; + readonly isRefundSurplus: boolean; + readonly isSetErrorHandler: boolean; + readonly asSetErrorHandler: XcmV2Xcm; + readonly isSetAppendix: boolean; + readonly asSetAppendix: XcmV2Xcm; + readonly isClearError: boolean; + readonly isClaimAsset: boolean; + readonly asClaimAsset: { + readonly assets: XcmV2MultiassetMultiAssets; + readonly ticket: XcmV2MultiLocation; + } & Struct; + readonly isTrap: boolean; + readonly asTrap: Compact; + readonly isSubscribeVersion: boolean; + readonly asSubscribeVersion: { + readonly queryId: Compact; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isUnsubscribeVersion: boolean; + readonly type: + | 'WithdrawAsset' + | 'ReserveAssetDeposited' + | 'ReceiveTeleportedAsset' + | 'QueryResponse' + | 'TransferAsset' + | 'TransferReserveAsset' + | 'Transact' + | 'HrmpNewChannelOpenRequest' + | 'HrmpChannelAccepted' + | 'HrmpChannelClosing' + | 'ClearOrigin' + | 'DescendOrigin' + | 'ReportError' + | 'DepositAsset' + | 'DepositReserveAsset' + | 'ExchangeAsset' + | 'InitiateReserveWithdraw' + | 'InitiateTeleport' + | 'QueryHolding' + | 'BuyExecution' + | 'RefundSurplus' + | 'SetErrorHandler' + | 'SetAppendix' + | 'ClearError' + | 'ClaimAsset' + | 'Trap' + | 'SubscribeVersion' + | 'UnsubscribeVersion'; + } + + /** @name XcmV2Response (308) */ + interface XcmV2Response extends Enum { + readonly isNull: boolean; + readonly isAssets: boolean; + readonly asAssets: XcmV2MultiassetMultiAssets; + readonly isExecutionResult: boolean; + readonly asExecutionResult: Option>; + readonly isVersion: boolean; + readonly asVersion: u32; + readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; + } + + /** @name XcmV2TraitsError (311) */ + interface XcmV2TraitsError extends Enum { + readonly isOverflow: boolean; + readonly isUnimplemented: boolean; + readonly isUntrustedReserveLocation: boolean; + readonly isUntrustedTeleportLocation: boolean; + readonly isMultiLocationFull: boolean; + readonly isMultiLocationNotInvertible: boolean; + readonly isBadOrigin: boolean; + readonly isInvalidLocation: boolean; + readonly isAssetNotFound: boolean; + readonly isFailedToTransactAsset: boolean; + readonly isNotWithdrawable: boolean; + readonly isLocationCannotHold: boolean; + readonly isExceedsMaxMessageSize: boolean; + readonly isDestinationUnsupported: boolean; + readonly isTransport: boolean; + readonly isUnroutable: boolean; + readonly isUnknownClaim: boolean; + readonly isFailedToDecode: boolean; + readonly isMaxWeightInvalid: boolean; + readonly isNotHoldingFees: boolean; + readonly isTooExpensive: boolean; + readonly isTrap: boolean; + readonly asTrap: u64; + readonly isUnhandledXcmVersion: boolean; + readonly isWeightLimitReached: boolean; + readonly asWeightLimitReached: u64; + readonly isBarrier: boolean; + readonly isWeightNotComputable: boolean; + readonly type: + | 'Overflow' + | 'Unimplemented' + | 'UntrustedReserveLocation' + | 'UntrustedTeleportLocation' + | 'MultiLocationFull' + | 'MultiLocationNotInvertible' + | 'BadOrigin' + | 'InvalidLocation' + | 'AssetNotFound' + | 'FailedToTransactAsset' + | 'NotWithdrawable' + | 'LocationCannotHold' + | 'ExceedsMaxMessageSize' + | 'DestinationUnsupported' + | 'Transport' + | 'Unroutable' + | 'UnknownClaim' + | 'FailedToDecode' + | 'MaxWeightInvalid' + | 'NotHoldingFees' + | 'TooExpensive' + | 'Trap' + | 'UnhandledXcmVersion' + | 'WeightLimitReached' + | 'Barrier' + | 'WeightNotComputable'; + } + + /** @name XcmV2MultiassetMultiAssetFilter (312) */ + interface XcmV2MultiassetMultiAssetFilter extends Enum { + readonly isDefinite: boolean; + readonly asDefinite: XcmV2MultiassetMultiAssets; + readonly isWild: boolean; + readonly asWild: XcmV2MultiassetWildMultiAsset; + readonly type: 'Definite' | 'Wild'; + } + + /** @name XcmV2MultiassetWildMultiAsset (313) */ + interface XcmV2MultiassetWildMultiAsset extends Enum { + readonly isAll: boolean; + readonly isAllOf: boolean; + readonly asAllOf: { + readonly id: XcmV2MultiassetAssetId; + readonly fun: XcmV2MultiassetWildFungibility; + } & Struct; + readonly type: 'All' | 'AllOf'; + } + + /** @name XcmV2MultiassetWildFungibility (314) */ + interface XcmV2MultiassetWildFungibility extends Enum { + readonly isFungible: boolean; + readonly isNonFungible: boolean; + readonly type: 'Fungible' | 'NonFungible'; + } + + /** @name XcmV2WeightLimit (315) */ + interface XcmV2WeightLimit extends Enum { + readonly isUnlimited: boolean; + readonly isLimited: boolean; + readonly asLimited: Compact; + readonly type: 'Unlimited' | 'Limited'; + } + + /** @name CumulusPalletXcmCall (324) */ + type CumulusPalletXcmCall = Null; + + /** @name CumulusPalletDmpQueueCall (325) */ + interface CumulusPalletDmpQueueCall extends Enum { + readonly isServiceOverweight: boolean; + readonly asServiceOverweight: { + readonly index: u64; + readonly weightLimit: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'ServiceOverweight'; + } + + /** @name OrmlXtokensModuleCall (326) */ + interface OrmlXtokensModuleCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly currencyId: RuntimeCommonXcmImplCurrencyId; + readonly amount: u128; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMultiasset: boolean; + readonly asTransferMultiasset: { + readonly asset: XcmVersionedMultiAsset; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferWithFee: boolean; + readonly asTransferWithFee: { + readonly currencyId: RuntimeCommonXcmImplCurrencyId; + readonly amount: u128; + readonly fee: u128; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMultiassetWithFee: boolean; + readonly asTransferMultiassetWithFee: { + readonly asset: XcmVersionedMultiAsset; + readonly fee: XcmVersionedMultiAsset; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMulticurrencies: boolean; + readonly asTransferMulticurrencies: { + readonly currencies: Vec>; + readonly feeItem: u32; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly isTransferMultiassets: boolean; + readonly asTransferMultiassets: { + readonly assets: XcmVersionedMultiAssets; + readonly feeItem: u32; + readonly dest: XcmVersionedMultiLocation; + readonly destWeightLimit: XcmV3WeightLimit; + } & Struct; + readonly type: + | 'Transfer' + | 'TransferMultiasset' + | 'TransferWithFee' + | 'TransferMultiassetWithFee' + | 'TransferMulticurrencies' + | 'TransferMultiassets'; + } + + /** @name XcmVersionedMultiAsset (327) */ + interface XcmVersionedMultiAsset extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2MultiAsset; + readonly isV3: boolean; + readonly asV3: XcmV3MultiAsset; + readonly type: 'V2' | 'V3'; + } + + /** @name OrmlTokensModuleCall (330) */ + interface OrmlTokensModuleCall extends Enum { + readonly isTransfer: boolean; + readonly asTransfer: { + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly amount: Compact; + } & Struct; + readonly isTransferAll: boolean; + readonly asTransferAll: { + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly keepAlive: bool; + } & Struct; + readonly isTransferKeepAlive: boolean; + readonly asTransferKeepAlive: { + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly amount: Compact; + } & Struct; + readonly isForceTransfer: boolean; + readonly asForceTransfer: { + readonly source: MultiAddress; + readonly dest: MultiAddress; + readonly currencyId: u128; + readonly amount: Compact; + } & Struct; + readonly isSetBalance: boolean; + readonly asSetBalance: { + readonly who: MultiAddress; + readonly currencyId: u128; + readonly newFree: Compact; + readonly newReserved: Compact; + } & Struct; + readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance'; + } + + /** @name PalletBridgeCall (331) */ + interface PalletBridgeCall extends Enum { + readonly isSetThreshold: boolean; + readonly asSetThreshold: { + readonly threshold: u32; + } & Struct; + readonly isSetResource: boolean; + readonly asSetResource: { + readonly id: U8aFixed; + readonly method: Bytes; + } & Struct; + readonly isRemoveResource: boolean; + readonly asRemoveResource: { + readonly id: U8aFixed; + } & Struct; + readonly isWhitelistChain: boolean; + readonly asWhitelistChain: { + readonly id: u8; + } & Struct; + readonly isAddRelayer: boolean; + readonly asAddRelayer: { + readonly v: AccountId32; + } & Struct; + readonly isRemoveRelayer: boolean; + readonly asRemoveRelayer: { + readonly v: AccountId32; + } & Struct; + readonly isUpdateFee: boolean; + readonly asUpdateFee: { + readonly destId: u8; + readonly fee: u128; + } & Struct; + readonly isAcknowledgeProposal: boolean; + readonly asAcknowledgeProposal: { + readonly nonce: u64; + readonly srcId: u8; + readonly rId: U8aFixed; + readonly call: Call; + } & Struct; + readonly isRejectProposal: boolean; + readonly asRejectProposal: { + readonly nonce: u64; + readonly srcId: u8; + readonly rId: U8aFixed; + readonly call: Call; + } & Struct; + readonly isEvalVoteState: boolean; + readonly asEvalVoteState: { + readonly nonce: u64; + readonly srcId: u8; + readonly prop: Call; + } & Struct; + readonly type: + | 'SetThreshold' + | 'SetResource' + | 'RemoveResource' + | 'WhitelistChain' + | 'AddRelayer' + | 'RemoveRelayer' + | 'UpdateFee' + | 'AcknowledgeProposal' + | 'RejectProposal' + | 'EvalVoteState'; + } + + /** @name PalletBridgeTransferCall (332) */ + interface PalletBridgeTransferCall extends Enum { + readonly isTransferNative: boolean; + readonly asTransferNative: { + readonly amount: u128; + readonly recipient: Bytes; + readonly destId: u8; + } & Struct; + readonly isTransfer: boolean; + readonly asTransfer: { + readonly to: AccountId32; + readonly amount: u128; + readonly rid: U8aFixed; + } & Struct; + readonly isSetMaximumIssuance: boolean; + readonly asSetMaximumIssuance: { + readonly maximumIssuance: u128; + } & Struct; + readonly isSetExternalBalances: boolean; + readonly asSetExternalBalances: { + readonly externalBalances: u128; + } & Struct; + readonly type: 'TransferNative' | 'Transfer' | 'SetMaximumIssuance' | 'SetExternalBalances'; + } + + /** @name PalletDrop3Call (333) */ + interface PalletDrop3Call extends Enum { + readonly isSetAdmin: boolean; + readonly asSetAdmin: { + readonly new_: AccountId32; + } & Struct; + readonly isApproveRewardPool: boolean; + readonly asApproveRewardPool: { + readonly id: u64; + } & Struct; + readonly isRejectRewardPool: boolean; + readonly asRejectRewardPool: { + readonly id: u64; + } & Struct; + readonly isStartRewardPool: boolean; + readonly asStartRewardPool: { + readonly id: u64; + } & Struct; + readonly isStopRewardPool: boolean; + readonly asStopRewardPool: { + readonly id: u64; + } & Struct; + readonly isCloseRewardPool: boolean; + readonly asCloseRewardPool: { + readonly id: u64; + } & Struct; + readonly isProposeRewardPool: boolean; + readonly asProposeRewardPool: { + readonly name: Bytes; + readonly total: u128; + readonly startAt: u32; + readonly endAt: u32; + } & Struct; + readonly isSendReward: boolean; + readonly asSendReward: { + readonly id: u64; + readonly to: AccountId32; + readonly amount: u128; + } & Struct; + readonly type: + | 'SetAdmin' + | 'ApproveRewardPool' + | 'RejectRewardPool' + | 'StartRewardPool' + | 'StopRewardPool' + | 'CloseRewardPool' + | 'ProposeRewardPool' + | 'SendReward'; + } + + /** @name PalletExtrinsicFilterCall (334) */ + interface PalletExtrinsicFilterCall extends Enum { + readonly isSetMode: boolean; + readonly asSetMode: { + readonly mode: PalletExtrinsicFilterOperationalMode; + } & Struct; + readonly isBlockExtrinsics: boolean; + readonly asBlockExtrinsics: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly isUnblockExtrinsics: boolean; + readonly asUnblockExtrinsics: { + readonly palletNameBytes: Bytes; + readonly functionNameBytes: Option; + } & Struct; + readonly type: 'SetMode' | 'BlockExtrinsics' | 'UnblockExtrinsics'; + } + + /** @name PalletIdentityManagementCall (335) */ + 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 (336) */ + 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 PalletAssetManagerCall (337) */ + interface PalletAssetManagerCall extends Enum { + readonly isRegisterForeignAssetType: boolean; + readonly asRegisterForeignAssetType: { + readonly assetType: RuntimeCommonXcmImplCurrencyId; + readonly metadata: PalletAssetManagerAssetMetadata; + } & Struct; + readonly isUpdateForeignAssetMetadata: boolean; + readonly asUpdateForeignAssetMetadata: { + readonly assetId: u128; + readonly metadata: PalletAssetManagerAssetMetadata; + } & Struct; + readonly isSetAssetUnitsPerSecond: boolean; + readonly asSetAssetUnitsPerSecond: { + readonly assetId: u128; + readonly unitsPerSecond: u128; + } & Struct; + readonly isAddAssetType: boolean; + readonly asAddAssetType: { + readonly assetId: u128; + readonly newAssetType: RuntimeCommonXcmImplCurrencyId; + } & Struct; + readonly isRemoveAssetType: boolean; + readonly asRemoveAssetType: { + readonly assetType: RuntimeCommonXcmImplCurrencyId; + readonly newDefaultAssetType: Option; + } & Struct; + readonly type: + | 'RegisterForeignAssetType' + | 'UpdateForeignAssetMetadata' + | 'SetAssetUnitsPerSecond' + | 'AddAssetType' + | 'RemoveAssetType'; + } + + /** @name PalletVcManagementCall (339) */ + 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 (340) */ + interface CorePrimitivesErrorVcmpError extends Enum { + readonly isRequestVCFailed: boolean; + readonly asRequestVCFailed: ITuple<[CorePrimitivesAssertion, CorePrimitivesErrorErrorDetail]>; + readonly isUnclassifiedError: boolean; + readonly asUnclassifiedError: CorePrimitivesErrorErrorDetail; + readonly type: 'RequestVCFailed' | 'UnclassifiedError'; + } + + /** @name PalletGroupCall (341) */ + 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 PalletTeerexCall (343) */ + 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 (344) */ + interface TeerexPrimitivesRequest extends Struct { + readonly shard: H256; + readonly cyphertext: Bytes; + } + + /** @name PalletSidechainCall (345) */ + 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 PalletTeeracleCall (346) */ + interface PalletTeeracleCall extends Enum { + readonly isAddToWhitelist: boolean; + readonly asAddToWhitelist: { + readonly dataSource: Bytes; + readonly mrenclave: U8aFixed; + } & Struct; + readonly isRemoveFromWhitelist: boolean; + readonly asRemoveFromWhitelist: { + readonly dataSource: Bytes; + readonly mrenclave: U8aFixed; + } & Struct; + readonly isUpdateOracle: boolean; + readonly asUpdateOracle: { + readonly oracleName: Bytes; + readonly dataSource: Bytes; + readonly newBlob: Bytes; + } & Struct; + readonly isUpdateExchangeRate: boolean; + readonly asUpdateExchangeRate: { + readonly dataSource: Bytes; + readonly tradingPair: Bytes; + readonly newValue: Option; + } & Struct; + readonly type: 'AddToWhitelist' | 'RemoveFromWhitelist' | 'UpdateOracle' | 'UpdateExchangeRate'; + } + + /** @name PalletIdentityManagementMockCall (348) */ + interface PalletIdentityManagementMockCall 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; + } & Struct; + readonly isIdentityCreated: boolean; + readonly asIdentityCreated: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly code: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityRemoved: boolean; + readonly asIdentityRemoved: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isIdentityVerified: boolean; + readonly asIdentityVerified: { + readonly account: AccountId32; + readonly identity: CorePrimitivesKeyAesOutput; + readonly idGraph: CorePrimitivesKeyAesOutput; + } & Struct; + readonly isSomeError: boolean; + readonly asSomeError: { + readonly func: Bytes; + readonly error: Bytes; + } & Struct; + readonly type: + | 'AddDelegatee' + | 'RemoveDelegatee' + | 'SetUserShieldingKey' + | 'CreateIdentity' + | 'RemoveIdentity' + | 'VerifyIdentity' + | 'UserShieldingKeySet' + | 'IdentityCreated' + | 'IdentityRemoved' + | 'IdentityVerified' + | 'SomeError'; + } + + /** @name PalletSudoCall (349) */ + 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 PalletSchedulerError (352) */ + 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 (353) */ + interface PalletUtilityError extends Enum { + readonly isTooManyCalls: boolean; + readonly type: 'TooManyCalls'; + } + + /** @name PalletMultisigMultisig (355) */ + interface PalletMultisigMultisig extends Struct { + readonly when: PalletMultisigTimepoint; + readonly deposit: u128; + readonly depositor: AccountId32; + readonly approvals: Vec; + } + + /** @name PalletMultisigError (357) */ + 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 (360) */ + interface PalletProxyProxyDefinition extends Struct { + readonly delegate: AccountId32; + readonly proxyType: RococoParachainRuntimeProxyType; + readonly delay: u32; + } + + /** @name PalletProxyAnnouncement (364) */ + interface PalletProxyAnnouncement extends Struct { + readonly real: AccountId32; + readonly callHash: H256; + readonly height: u32; + } + + /** @name PalletProxyError (366) */ + 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 PalletPreimageRequestStatus (367) */ + 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 PalletPreimageError (372) */ + 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 PalletBalancesBalanceLock (374) */ + interface PalletBalancesBalanceLock extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + readonly reasons: PalletBalancesReasons; + } + + /** @name PalletBalancesReasons (375) */ + interface PalletBalancesReasons extends Enum { + readonly isFee: boolean; + readonly isMisc: boolean; + readonly isAll: boolean; + readonly type: 'Fee' | 'Misc' | 'All'; + } + + /** @name PalletBalancesReserveData (378) */ + interface PalletBalancesReserveData extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name PalletBalancesError (380) */ + 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 PalletVestingReleases (383) */ + interface PalletVestingReleases extends Enum { + readonly isV0: boolean; + readonly isV1: boolean; + readonly type: 'V0' | 'V1'; + } + + /** @name PalletVestingError (384) */ + 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 PalletTransactionPaymentReleases (386) */ + interface PalletTransactionPaymentReleases extends Enum { + readonly isV1Ancient: boolean; + readonly isV2: boolean; + readonly type: 'V1Ancient' | 'V2'; + } + + /** @name PalletTreasuryProposal (387) */ + interface PalletTreasuryProposal extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly beneficiary: AccountId32; + readonly bond: u128; + } + + /** @name FrameSupportPalletId (392) */ + interface FrameSupportPalletId extends U8aFixed {} + + /** @name PalletTreasuryError (393) */ + 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 PalletDemocracyReferendumInfo (398) */ + interface PalletDemocracyReferendumInfo extends Enum { + readonly isOngoing: boolean; + readonly asOngoing: PalletDemocracyReferendumStatus; + readonly isFinished: boolean; + readonly asFinished: { + readonly approved: bool; + readonly end: u32; + } & Struct; + readonly type: 'Ongoing' | 'Finished'; + } + + /** @name PalletDemocracyReferendumStatus (399) */ + interface PalletDemocracyReferendumStatus extends Struct { + readonly end: u32; + readonly proposal: FrameSupportPreimagesBounded; + readonly threshold: PalletDemocracyVoteThreshold; + readonly delay: u32; + readonly tally: PalletDemocracyTally; + } + + /** @name PalletDemocracyTally (400) */ + interface PalletDemocracyTally extends Struct { + readonly ayes: u128; + readonly nays: u128; + readonly turnout: u128; + } + + /** @name PalletDemocracyVoteVoting (401) */ + interface PalletDemocracyVoteVoting extends Enum { + readonly isDirect: boolean; + readonly asDirect: { + readonly votes: Vec>; + readonly delegations: PalletDemocracyDelegations; + readonly prior: PalletDemocracyVotePriorLock; + } & Struct; + readonly isDelegating: boolean; + readonly asDelegating: { + readonly balance: u128; + readonly target: AccountId32; + readonly conviction: PalletDemocracyConviction; + readonly delegations: PalletDemocracyDelegations; + readonly prior: PalletDemocracyVotePriorLock; + } & Struct; + readonly type: 'Direct' | 'Delegating'; + } + + /** @name PalletDemocracyDelegations (405) */ + interface PalletDemocracyDelegations extends Struct { + readonly votes: u128; + readonly capital: u128; + } + + /** @name PalletDemocracyVotePriorLock (406) */ + interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {} + + /** @name PalletDemocracyError (409) */ + interface PalletDemocracyError extends Enum { + readonly isValueLow: boolean; + readonly isProposalMissing: boolean; + readonly isAlreadyCanceled: boolean; + readonly isDuplicateProposal: boolean; + readonly isProposalBlacklisted: boolean; + readonly isNotSimpleMajority: boolean; + readonly isInvalidHash: boolean; + readonly isNoProposal: boolean; + readonly isAlreadyVetoed: boolean; + readonly isReferendumInvalid: boolean; + readonly isNoneWaiting: boolean; + readonly isNotVoter: boolean; + readonly isNoPermission: boolean; + readonly isAlreadyDelegating: boolean; + readonly isInsufficientFunds: boolean; + readonly isNotDelegating: boolean; + readonly isVotesExist: boolean; + readonly isInstantNotAllowed: boolean; + readonly isNonsense: boolean; + readonly isWrongUpperBound: boolean; + readonly isMaxVotesReached: boolean; + readonly isTooMany: boolean; + readonly isVotingPeriodLow: boolean; + readonly isPreimageNotExist: boolean; + readonly type: + | 'ValueLow' + | 'ProposalMissing' + | 'AlreadyCanceled' + | 'DuplicateProposal' + | 'ProposalBlacklisted' + | 'NotSimpleMajority' + | 'InvalidHash' + | 'NoProposal' + | 'AlreadyVetoed' + | 'ReferendumInvalid' + | 'NoneWaiting' + | 'NotVoter' + | 'NoPermission' + | 'AlreadyDelegating' + | 'InsufficientFunds' + | 'NotDelegating' + | 'VotesExist' + | 'InstantNotAllowed' + | 'Nonsense' + | 'WrongUpperBound' + | 'MaxVotesReached' + | 'TooMany' + | 'VotingPeriodLow' + | 'PreimageNotExist'; + } + + /** @name PalletCollectiveVotes (411) */ + interface PalletCollectiveVotes extends Struct { + readonly index: u32; + readonly threshold: u32; + readonly ayes: Vec; + readonly nays: Vec; + readonly end: u32; + } + + /** @name PalletCollectiveError (412) */ + 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 PalletMembershipError (414) */ + interface PalletMembershipError extends Enum { + readonly isAlreadyMember: boolean; + readonly isNotMember: boolean; + readonly isTooManyMembers: boolean; + readonly type: 'AlreadyMember' | 'NotMember' | 'TooManyMembers'; + } + + /** @name PalletBountiesBounty (417) */ + interface PalletBountiesBounty extends Struct { + readonly proposer: AccountId32; + readonly value: u128; + readonly fee: u128; + readonly curatorDeposit: u128; + readonly bond: u128; + readonly status: PalletBountiesBountyStatus; + } + + /** @name PalletBountiesBountyStatus (418) */ + interface PalletBountiesBountyStatus extends Enum { + readonly isProposed: boolean; + readonly isApproved: boolean; + readonly isFunded: boolean; + readonly isCuratorProposed: boolean; + readonly asCuratorProposed: { + readonly curator: AccountId32; + } & Struct; + readonly isActive: boolean; + readonly asActive: { + readonly curator: AccountId32; + readonly updateDue: u32; + } & Struct; + readonly isPendingPayout: boolean; + readonly asPendingPayout: { + readonly curator: AccountId32; + readonly beneficiary: AccountId32; + readonly unlockAt: u32; + } & Struct; + readonly type: 'Proposed' | 'Approved' | 'Funded' | 'CuratorProposed' | 'Active' | 'PendingPayout'; + } + + /** @name PalletBountiesError (420) */ + interface PalletBountiesError extends Enum { + readonly isInsufficientProposersBalance: boolean; + readonly isInvalidIndex: boolean; + readonly isReasonTooBig: boolean; + readonly isUnexpectedStatus: boolean; + readonly isRequireCurator: boolean; + readonly isInvalidValue: boolean; + readonly isInvalidFee: boolean; + readonly isPendingPayout: boolean; + readonly isPremature: boolean; + readonly isHasActiveChildBounty: boolean; + readonly isTooManyQueued: boolean; + readonly type: + | 'InsufficientProposersBalance' + | 'InvalidIndex' + | 'ReasonTooBig' + | 'UnexpectedStatus' + | 'RequireCurator' + | 'InvalidValue' + | 'InvalidFee' + | 'PendingPayout' + | 'Premature' + | 'HasActiveChildBounty' + | 'TooManyQueued'; + } + + /** @name PalletTipsOpenTip (421) */ + interface PalletTipsOpenTip extends Struct { + readonly reason: H256; + readonly who: AccountId32; + readonly finder: AccountId32; + readonly deposit: u128; + readonly closes: Option; + readonly tips: Vec>; + readonly findersFee: bool; + } + + /** @name PalletTipsError (423) */ + interface PalletTipsError extends Enum { + readonly isReasonTooBig: boolean; + readonly isAlreadyKnown: boolean; + readonly isUnknownTip: boolean; + readonly isNotFinder: boolean; + readonly isStillOpen: boolean; + readonly isPremature: boolean; + readonly type: 'ReasonTooBig' | 'AlreadyKnown' | 'UnknownTip' | 'NotFinder' | 'StillOpen' | 'Premature'; + } + + /** @name PalletIdentityRegistration (424) */ + interface PalletIdentityRegistration extends Struct { + readonly judgements: Vec>; + readonly deposit: u128; + readonly info: PalletIdentityIdentityInfo; + } + + /** @name PalletIdentityRegistrarInfo (431) */ + interface PalletIdentityRegistrarInfo extends Struct { + readonly account: AccountId32; + readonly fee: u128; + readonly fields: PalletIdentityBitFlags; + } + + /** @name PalletIdentityError (433) */ + interface PalletIdentityError extends Enum { + readonly isTooManySubAccounts: boolean; + readonly isNotFound: boolean; + readonly isNotNamed: boolean; + readonly isEmptyIndex: boolean; + readonly isFeeChanged: boolean; + readonly isNoIdentity: boolean; + readonly isStickyJudgement: boolean; + readonly isJudgementGiven: boolean; + readonly isInvalidJudgement: boolean; + readonly isInvalidIndex: boolean; + readonly isInvalidTarget: boolean; + readonly isTooManyFields: boolean; + readonly isTooManyRegistrars: boolean; + readonly isAlreadyClaimed: boolean; + readonly isNotSub: boolean; + readonly isNotOwned: boolean; + readonly isJudgementForDifferentIdentity: boolean; + readonly isJudgementPaymentFailed: boolean; + readonly type: + | 'TooManySubAccounts' + | 'NotFound' + | 'NotNamed' + | 'EmptyIndex' + | 'FeeChanged' + | 'NoIdentity' + | 'StickyJudgement' + | 'JudgementGiven' + | 'InvalidJudgement' + | 'InvalidIndex' + | 'InvalidTarget' + | 'TooManyFields' + | 'TooManyRegistrars' + | 'AlreadyClaimed' + | 'NotSub' + | 'NotOwned' + | 'JudgementForDifferentIdentity' + | 'JudgementPaymentFailed'; + } + + /** @name PolkadotPrimitivesV2UpgradeRestriction (435) */ + interface PolkadotPrimitivesV2UpgradeRestriction extends Enum { + readonly isPresent: boolean; + readonly type: 'Present'; + } + + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (436) */ + interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { + readonly dmqMqcHead: H256; + readonly relayDispatchQueueSize: ITuple<[u32, u32]>; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; + } + + /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (439) */ + interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct { + readonly maxCapacity: u32; + readonly maxTotalSize: u32; + readonly maxMessageSize: u32; + readonly msgCount: u32; + readonly totalSize: u32; + readonly mqcHead: Option; + } + + /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (440) */ + interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct { + readonly maxCodeSize: u32; + readonly maxHeadDataSize: u32; + readonly maxUpwardQueueCount: u32; + readonly maxUpwardQueueSize: u32; + readonly maxUpwardMessageSize: u32; + readonly maxUpwardMessageNumPerCandidate: u32; + readonly hrmpMaxMessageNumPerCandidate: u32; + readonly validationUpgradeCooldown: u32; + readonly validationUpgradeDelay: u32; + } + + /** @name PolkadotCorePrimitivesOutboundHrmpMessage (446) */ + interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { + readonly recipient: u32; + readonly data: Bytes; + } + + /** @name CumulusPalletParachainSystemError (447) */ + interface CumulusPalletParachainSystemError extends Enum { + readonly isOverlappingUpgrades: boolean; + readonly isProhibitedByPolkadot: boolean; + readonly isTooBig: boolean; + readonly isValidationDataNotAvailable: boolean; + readonly isHostConfigurationNotAvailable: boolean; + readonly isNotScheduled: boolean; + readonly isNothingAuthorized: boolean; + readonly isUnauthorized: boolean; + readonly type: + | 'OverlappingUpgrades' + | 'ProhibitedByPolkadot' + | 'TooBig' + | 'ValidationDataNotAvailable' + | 'HostConfigurationNotAvailable' + | 'NotScheduled' + | 'NothingAuthorized' + | 'Unauthorized'; + } + + /** @name SpCoreCryptoKeyTypeId (451) */ + interface SpCoreCryptoKeyTypeId extends U8aFixed {} + + /** @name PalletSessionError (452) */ + interface PalletSessionError extends Enum { + readonly isInvalidProof: boolean; + readonly isNoAssociatedValidatorId: boolean; + readonly isDuplicatedKey: boolean; + readonly isNoKeys: boolean; + readonly isNoAccount: boolean; + readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount'; + } + + /** @name PalletParachainStakingParachainBondConfig (456) */ + interface PalletParachainStakingParachainBondConfig extends Struct { + readonly account: AccountId32; + readonly percent: Percent; + } + + /** @name PalletParachainStakingRoundInfo (457) */ + interface PalletParachainStakingRoundInfo extends Struct { + readonly current: u32; + readonly first: u32; + readonly length: u32; + } + + /** @name PalletParachainStakingDelegator (458) */ + interface PalletParachainStakingDelegator extends Struct { + readonly id: AccountId32; + readonly delegations: PalletParachainStakingSetOrderedSet; + readonly total: u128; + readonly lessTotal: u128; + readonly status: PalletParachainStakingDelegatorStatus; + } + + /** @name PalletParachainStakingSetOrderedSet (459) */ + interface PalletParachainStakingSetOrderedSet extends Vec {} + + /** @name PalletParachainStakingBond (460) */ + interface PalletParachainStakingBond extends Struct { + readonly owner: AccountId32; + readonly amount: u128; + } + + /** @name PalletParachainStakingDelegatorStatus (462) */ + interface PalletParachainStakingDelegatorStatus extends Enum { + readonly isActive: boolean; + readonly type: 'Active'; + } + + /** @name PalletParachainStakingCandidateMetadata (463) */ + interface PalletParachainStakingCandidateMetadata extends Struct { + readonly bond: u128; + readonly delegationCount: u32; + readonly totalCounted: u128; + readonly lowestTopDelegationAmount: u128; + readonly highestBottomDelegationAmount: u128; + readonly lowestBottomDelegationAmount: u128; + readonly topCapacity: PalletParachainStakingCapacityStatus; + readonly bottomCapacity: PalletParachainStakingCapacityStatus; + readonly request: Option; + readonly status: PalletParachainStakingCollatorStatus; + } + + /** @name PalletParachainStakingCapacityStatus (464) */ + interface PalletParachainStakingCapacityStatus extends Enum { + readonly isFull: boolean; + readonly isEmpty: boolean; + readonly isPartial: boolean; + readonly type: 'Full' | 'Empty' | 'Partial'; + } + + /** @name PalletParachainStakingCandidateBondLessRequest (466) */ + interface PalletParachainStakingCandidateBondLessRequest extends Struct { + readonly amount: u128; + readonly whenExecutable: u32; + } + + /** @name PalletParachainStakingCollatorStatus (467) */ + interface PalletParachainStakingCollatorStatus extends Enum { + readonly isActive: boolean; + readonly isIdle: boolean; + readonly isLeaving: boolean; + readonly asLeaving: u32; + readonly type: 'Active' | 'Idle' | 'Leaving'; + } + + /** @name PalletParachainStakingDelegationRequestsScheduledRequest (469) */ + interface PalletParachainStakingDelegationRequestsScheduledRequest extends Struct { + readonly delegator: AccountId32; + readonly whenExecutable: u32; + readonly action: PalletParachainStakingDelegationRequestsDelegationAction; + } + + /** @name PalletParachainStakingAutoCompoundAutoCompoundConfig (471) */ + interface PalletParachainStakingAutoCompoundAutoCompoundConfig extends Struct { + readonly delegator: AccountId32; + readonly value: Percent; + } + + /** @name PalletParachainStakingDelegations (472) */ + interface PalletParachainStakingDelegations extends Struct { + readonly delegations: Vec; + readonly total: u128; + } + + /** @name PalletParachainStakingCollatorSnapshot (474) */ + interface PalletParachainStakingCollatorSnapshot extends Struct { + readonly bond: u128; + readonly delegations: Vec; + readonly total: u128; + } + + /** @name PalletParachainStakingBondWithAutoCompound (476) */ + interface PalletParachainStakingBondWithAutoCompound extends Struct { + readonly owner: AccountId32; + readonly amount: u128; + readonly autoCompound: Percent; + } + + /** @name PalletParachainStakingDelayedPayout (477) */ + interface PalletParachainStakingDelayedPayout extends Struct { + readonly roundIssuance: u128; + readonly totalStakingReward: u128; + readonly collatorCommission: Perbill; + } + + /** @name PalletParachainStakingInflationInflationInfo (478) */ + interface PalletParachainStakingInflationInflationInfo extends Struct { + readonly expect: { + readonly min: u128; + readonly ideal: u128; + readonly max: u128; + } & Struct; + readonly annual: { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct; + readonly round: { + readonly min: Perbill; + readonly ideal: Perbill; + readonly max: Perbill; + } & Struct; + } + + /** @name PalletParachainStakingError (479) */ + interface PalletParachainStakingError extends Enum { + readonly isDelegatorDNE: boolean; + readonly isDelegatorDNEinTopNorBottom: boolean; + readonly isDelegatorDNEInDelegatorSet: boolean; + readonly isCandidateDNE: boolean; + readonly isDelegationDNE: boolean; + readonly isDelegatorExists: boolean; + readonly isCandidateExists: boolean; + readonly isCandidateBondBelowMin: boolean; + readonly isInsufficientBalance: boolean; + readonly isDelegatorBondBelowMin: boolean; + readonly isDelegationBelowMin: boolean; + readonly isAlreadyOffline: boolean; + readonly isAlreadyActive: boolean; + readonly isDelegatorAlreadyLeaving: boolean; + readonly isDelegatorNotLeaving: boolean; + readonly isDelegatorCannotLeaveYet: boolean; + readonly isCannotDelegateIfLeaving: boolean; + readonly isCandidateAlreadyLeaving: boolean; + readonly isCandidateNotLeaving: boolean; + readonly isCandidateCannotLeaveYet: boolean; + readonly isCannotGoOnlineIfLeaving: boolean; + readonly isExceedMaxDelegationsPerDelegator: boolean; + readonly isAlreadyDelegatedCandidate: boolean; + readonly isInvalidSchedule: boolean; + readonly isCannotSetBelowMin: boolean; + readonly isRoundLengthMustBeGreaterThanTotalSelectedCollators: boolean; + readonly isNoWritingSameValue: boolean; + readonly isTooLowCandidateCountWeightHintCancelLeaveCandidates: boolean; + readonly isTooLowCandidateDelegationCountToLeaveCandidates: boolean; + readonly isPendingCandidateRequestsDNE: boolean; + readonly isPendingCandidateRequestAlreadyExists: boolean; + readonly isPendingCandidateRequestNotDueYet: boolean; + readonly isPendingDelegationRequestDNE: boolean; + readonly isPendingDelegationRequestAlreadyExists: boolean; + readonly isPendingDelegationRequestNotDueYet: boolean; + readonly isCannotDelegateLessThanOrEqualToLowestBottomWhenFull: boolean; + readonly isPendingDelegationRevoke: boolean; + readonly isCandidateUnauthorized: boolean; + readonly type: + | 'DelegatorDNE' + | 'DelegatorDNEinTopNorBottom' + | 'DelegatorDNEInDelegatorSet' + | 'CandidateDNE' + | 'DelegationDNE' + | 'DelegatorExists' + | 'CandidateExists' + | 'CandidateBondBelowMin' + | 'InsufficientBalance' + | 'DelegatorBondBelowMin' + | 'DelegationBelowMin' + | 'AlreadyOffline' + | 'AlreadyActive' + | 'DelegatorAlreadyLeaving' + | 'DelegatorNotLeaving' + | 'DelegatorCannotLeaveYet' + | 'CannotDelegateIfLeaving' + | 'CandidateAlreadyLeaving' + | 'CandidateNotLeaving' + | 'CandidateCannotLeaveYet' + | 'CannotGoOnlineIfLeaving' + | 'ExceedMaxDelegationsPerDelegator' + | 'AlreadyDelegatedCandidate' + | 'InvalidSchedule' + | 'CannotSetBelowMin' + | 'RoundLengthMustBeGreaterThanTotalSelectedCollators' + | 'NoWritingSameValue' + | 'TooLowCandidateCountWeightHintCancelLeaveCandidates' + | 'TooLowCandidateDelegationCountToLeaveCandidates' + | 'PendingCandidateRequestsDNE' + | 'PendingCandidateRequestAlreadyExists' + | 'PendingCandidateRequestNotDueYet' + | 'PendingDelegationRequestDNE' + | 'PendingDelegationRequestAlreadyExists' + | 'PendingDelegationRequestNotDueYet' + | 'CannotDelegateLessThanOrEqualToLowestBottomWhenFull' + | 'PendingDelegationRevoke' + | 'CandidateUnauthorized'; + } + + /** @name CumulusPalletXcmpQueueInboundChannelDetails (481) */ + interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { + readonly sender: u32; + readonly state: CumulusPalletXcmpQueueInboundState; + readonly messageMetadata: Vec>; + } + + /** @name CumulusPalletXcmpQueueInboundState (482) */ + interface CumulusPalletXcmpQueueInboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name PolkadotParachainPrimitivesXcmpMessageFormat (485) */ + interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum { + readonly isConcatenatedVersionedXcm: boolean; + readonly isConcatenatedEncodedBlob: boolean; + readonly isSignals: boolean; + readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals'; + } + + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (488) */ + interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { + readonly recipient: u32; + readonly state: CumulusPalletXcmpQueueOutboundState; + readonly signalsExist: bool; + readonly firstIndex: u16; + readonly lastIndex: u16; + } + + /** @name CumulusPalletXcmpQueueOutboundState (489) */ + interface CumulusPalletXcmpQueueOutboundState extends Enum { + readonly isOk: boolean; + readonly isSuspended: boolean; + readonly type: 'Ok' | 'Suspended'; + } + + /** @name CumulusPalletXcmpQueueQueueConfigData (491) */ + interface CumulusPalletXcmpQueueQueueConfigData extends Struct { + readonly suspendThreshold: u32; + readonly dropThreshold: u32; + readonly resumeThreshold: u32; + readonly thresholdWeight: SpWeightsWeightV2Weight; + readonly weightRestrictDecay: SpWeightsWeightV2Weight; + readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight; + } + + /** @name CumulusPalletXcmpQueueError (493) */ + interface CumulusPalletXcmpQueueError extends Enum { + readonly isFailedToSend: boolean; + readonly isBadXcmOrigin: boolean; + readonly isBadXcm: boolean; + readonly isBadOverweightIndex: boolean; + readonly isWeightOverLimit: boolean; + readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit'; + } + + /** @name PalletXcmQueryStatus (494) */ + interface PalletXcmQueryStatus extends Enum { + readonly isPending: boolean; + readonly asPending: { + readonly responder: XcmVersionedMultiLocation; + readonly maybeMatchQuerier: Option; + readonly maybeNotify: Option>; + readonly timeout: u32; + } & Struct; + readonly isVersionNotifier: boolean; + readonly asVersionNotifier: { + readonly origin: XcmVersionedMultiLocation; + readonly isActive: bool; + } & Struct; + readonly isReady: boolean; + readonly asReady: { + readonly response: XcmVersionedResponse; + readonly at: u32; + } & Struct; + readonly type: 'Pending' | 'VersionNotifier' | 'Ready'; + } + + /** @name XcmVersionedResponse (498) */ + interface XcmVersionedResponse extends Enum { + readonly isV2: boolean; + readonly asV2: XcmV2Response; + readonly isV3: boolean; + readonly asV3: XcmV3Response; + readonly type: 'V2' | 'V3'; + } + + /** @name PalletXcmVersionMigrationStage (504) */ + interface PalletXcmVersionMigrationStage extends Enum { + readonly isMigrateSupportedVersion: boolean; + readonly isMigrateVersionNotifiers: boolean; + readonly isNotifyCurrentTargets: boolean; + readonly asNotifyCurrentTargets: Option; + readonly isMigrateAndNotifyOldTargets: boolean; + readonly type: + | 'MigrateSupportedVersion' + | 'MigrateVersionNotifiers' + | 'NotifyCurrentTargets' + | 'MigrateAndNotifyOldTargets'; + } + + /** @name XcmVersionedAssetId (506) */ + interface XcmVersionedAssetId extends Enum { + readonly isV3: boolean; + readonly asV3: XcmV3MultiassetAssetId; + readonly type: 'V3'; + } + + /** @name PalletXcmRemoteLockedFungibleRecord (507) */ + interface PalletXcmRemoteLockedFungibleRecord extends Struct { + readonly amount: u128; + readonly owner: XcmVersionedMultiLocation; + readonly locker: XcmVersionedMultiLocation; + readonly users: u32; + } + + /** @name PalletXcmError (511) */ + interface PalletXcmError extends Enum { + readonly isUnreachable: boolean; + readonly isSendFailure: boolean; + readonly isFiltered: boolean; + readonly isUnweighableMessage: boolean; + readonly isDestinationNotInvertible: boolean; + readonly isEmpty: boolean; + readonly isCannotReanchor: boolean; + readonly isTooManyAssets: boolean; + readonly isInvalidOrigin: boolean; + readonly isBadVersion: boolean; + readonly isBadLocation: boolean; + readonly isNoSubscription: boolean; + readonly isAlreadySubscribed: boolean; + readonly isInvalidAsset: boolean; + readonly isLowBalance: boolean; + readonly isTooManyLocks: boolean; + readonly isAccountNotSovereign: boolean; + readonly isFeesNotMet: boolean; + readonly isLockNotFound: boolean; + readonly isInUse: boolean; + readonly type: + | 'Unreachable' + | 'SendFailure' + | 'Filtered' + | 'UnweighableMessage' + | 'DestinationNotInvertible' + | 'Empty' + | 'CannotReanchor' + | 'TooManyAssets' + | 'InvalidOrigin' + | 'BadVersion' + | 'BadLocation' + | 'NoSubscription' + | 'AlreadySubscribed' + | 'InvalidAsset' + | 'LowBalance' + | 'TooManyLocks' + | 'AccountNotSovereign' + | 'FeesNotMet' + | 'LockNotFound' + | 'InUse'; + } + + /** @name CumulusPalletXcmError (512) */ + type CumulusPalletXcmError = Null; + + /** @name CumulusPalletDmpQueueConfigData (513) */ + interface CumulusPalletDmpQueueConfigData extends Struct { + readonly maxIndividual: SpWeightsWeightV2Weight; + } + + /** @name CumulusPalletDmpQueuePageIndexData (514) */ + interface CumulusPalletDmpQueuePageIndexData extends Struct { + readonly beginUsed: u32; + readonly endUsed: u32; + readonly overweightCount: u64; + } + + /** @name CumulusPalletDmpQueueError (517) */ + interface CumulusPalletDmpQueueError extends Enum { + readonly isUnknown: boolean; + readonly isOverLimit: boolean; + readonly type: 'Unknown' | 'OverLimit'; + } + + /** @name OrmlXtokensModuleError (518) */ + interface OrmlXtokensModuleError extends Enum { + readonly isAssetHasNoReserve: boolean; + readonly isNotCrossChainTransfer: boolean; + readonly isInvalidDest: boolean; + readonly isNotCrossChainTransferableCurrency: boolean; + readonly isUnweighableMessage: boolean; + readonly isXcmExecutionFailed: boolean; + readonly isCannotReanchor: boolean; + readonly isInvalidAncestry: boolean; + readonly isInvalidAsset: boolean; + readonly isDestinationNotInvertible: boolean; + readonly isBadVersion: boolean; + readonly isDistinctReserveForAssetAndFee: boolean; + readonly isZeroFee: boolean; + readonly isZeroAmount: boolean; + readonly isTooManyAssetsBeingSent: boolean; + readonly isAssetIndexNonExistent: boolean; + readonly isFeeNotEnough: boolean; + readonly isNotSupportedMultiLocation: boolean; + readonly isMinXcmFeeNotDefined: boolean; + readonly type: + | 'AssetHasNoReserve' + | 'NotCrossChainTransfer' + | 'InvalidDest' + | 'NotCrossChainTransferableCurrency' + | 'UnweighableMessage' + | 'XcmExecutionFailed' + | 'CannotReanchor' + | 'InvalidAncestry' + | 'InvalidAsset' + | 'DestinationNotInvertible' + | 'BadVersion' + | 'DistinctReserveForAssetAndFee' + | 'ZeroFee' + | 'ZeroAmount' + | 'TooManyAssetsBeingSent' + | 'AssetIndexNonExistent' + | 'FeeNotEnough' + | 'NotSupportedMultiLocation' + | 'MinXcmFeeNotDefined'; + } + + /** @name OrmlTokensBalanceLock (520) */ + interface OrmlTokensBalanceLock extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name OrmlTokensAccountData (522) */ + interface OrmlTokensAccountData extends Struct { + readonly free: u128; + readonly reserved: u128; + readonly frozen: u128; + } + + /** @name OrmlTokensReserveData (524) */ + interface OrmlTokensReserveData extends Struct { + readonly id: U8aFixed; + readonly amount: u128; + } + + /** @name OrmlTokensModuleError (526) */ + interface OrmlTokensModuleError extends Enum { + readonly isBalanceTooLow: boolean; + readonly isAmountIntoBalanceFailed: boolean; + readonly isLiquidityRestrictions: boolean; + readonly isMaxLocksExceeded: boolean; + readonly isKeepAlive: boolean; + readonly isExistentialDeposit: boolean; + readonly isDeadAccount: boolean; + readonly isTooManyReserves: boolean; + readonly type: + | 'BalanceTooLow' + | 'AmountIntoBalanceFailed' + | 'LiquidityRestrictions' + | 'MaxLocksExceeded' + | 'KeepAlive' + | 'ExistentialDeposit' + | 'DeadAccount' + | 'TooManyReserves'; + } + + /** @name PalletBridgeProposalVotes (529) */ + interface PalletBridgeProposalVotes extends Struct { + readonly votesFor: Vec; + readonly votesAgainst: Vec; + readonly status: PalletBridgeProposalStatus; + readonly expiry: u32; + } + + /** @name PalletBridgeProposalStatus (530) */ + interface PalletBridgeProposalStatus extends Enum { + readonly isInitiated: boolean; + readonly isApproved: boolean; + readonly isRejected: boolean; + readonly type: 'Initiated' | 'Approved' | 'Rejected'; + } + + /** @name PalletBridgeBridgeEvent (532) */ + interface PalletBridgeBridgeEvent extends Enum { + readonly isFungibleTransfer: boolean; + readonly asFungibleTransfer: ITuple<[u8, u64, U8aFixed, u128, Bytes]>; + readonly isNonFungibleTransfer: boolean; + readonly asNonFungibleTransfer: ITuple<[u8, u64, U8aFixed, Bytes, Bytes, Bytes]>; + readonly isGenericTransfer: boolean; + readonly asGenericTransfer: ITuple<[u8, u64, U8aFixed, Bytes]>; + readonly type: 'FungibleTransfer' | 'NonFungibleTransfer' | 'GenericTransfer'; + } + + /** @name PalletBridgeError (533) */ + interface PalletBridgeError extends Enum { + readonly isThresholdNotSet: boolean; + readonly isInvalidChainId: boolean; + readonly isInvalidThreshold: boolean; + readonly isChainNotWhitelisted: boolean; + readonly isChainAlreadyWhitelisted: boolean; + readonly isResourceDoesNotExist: boolean; + readonly isRelayerAlreadyExists: boolean; + readonly isRelayerInvalid: boolean; + readonly isMustBeRelayer: boolean; + readonly isRelayerAlreadyVoted: boolean; + readonly isProposalAlreadyExists: boolean; + readonly isProposalDoesNotExist: boolean; + readonly isProposalNotComplete: boolean; + readonly isProposalAlreadyComplete: boolean; + readonly isProposalExpired: boolean; + readonly isFeeTooExpensive: boolean; + readonly isFeeDoesNotExist: boolean; + readonly isInsufficientBalance: boolean; + readonly isCannotPayAsFee: boolean; + readonly isNonceOverFlow: boolean; + readonly type: + | 'ThresholdNotSet' + | 'InvalidChainId' + | 'InvalidThreshold' + | 'ChainNotWhitelisted' + | 'ChainAlreadyWhitelisted' + | 'ResourceDoesNotExist' + | 'RelayerAlreadyExists' + | 'RelayerInvalid' + | 'MustBeRelayer' + | 'RelayerAlreadyVoted' + | 'ProposalAlreadyExists' + | 'ProposalDoesNotExist' + | 'ProposalNotComplete' + | 'ProposalAlreadyComplete' + | 'ProposalExpired' + | 'FeeTooExpensive' + | 'FeeDoesNotExist' + | 'InsufficientBalance' + | 'CannotPayAsFee' + | 'NonceOverFlow'; + } + + /** @name PalletBridgeTransferError (535) */ + interface PalletBridgeTransferError extends Enum { + readonly isInvalidCommand: boolean; + readonly isInvalidResourceId: boolean; + readonly isReachMaximumSupply: boolean; + readonly isOverFlow: boolean; + readonly type: 'InvalidCommand' | 'InvalidResourceId' | 'ReachMaximumSupply' | 'OverFlow'; + } + + /** @name PalletDrop3RewardPool (536) */ + interface PalletDrop3RewardPool extends Struct { + readonly id: u64; + readonly name: Bytes; + readonly owner: AccountId32; + readonly total: u128; + readonly remain: u128; + readonly createAt: u32; + readonly startAt: u32; + readonly endAt: u32; + readonly started: bool; + readonly approved: bool; + } + + /** @name PalletDrop3Error (538) */ + interface PalletDrop3Error extends Enum { + readonly isRequireAdmin: boolean; + readonly isRequireRewardPoolOwner: boolean; + readonly isRequireAdminOrRewardPoolOwner: boolean; + readonly isNoSuchRewardPool: boolean; + readonly isInsufficientReservedBalance: boolean; + readonly isInvalidTotalBalance: boolean; + readonly isInsufficientRemain: boolean; + readonly isInvalidProposedBlock: boolean; + readonly isRewardPoolUnapproved: boolean; + readonly isRewardPoolAlreadyApproved: boolean; + readonly isRewardPoolStopped: boolean; + readonly isRewardPoolRanTooEarly: boolean; + readonly isRewardPoolRanTooLate: boolean; + readonly isUnexpectedUnMovedAmount: boolean; + readonly isNoVacantPoolId: boolean; + readonly type: + | 'RequireAdmin' + | 'RequireRewardPoolOwner' + | 'RequireAdminOrRewardPoolOwner' + | 'NoSuchRewardPool' + | 'InsufficientReservedBalance' + | 'InvalidTotalBalance' + | 'InsufficientRemain' + | 'InvalidProposedBlock' + | 'RewardPoolUnapproved' + | 'RewardPoolAlreadyApproved' + | 'RewardPoolStopped' + | 'RewardPoolRanTooEarly' + | 'RewardPoolRanTooLate' + | 'UnexpectedUnMovedAmount' + | 'NoVacantPoolId'; + } + + /** @name PalletExtrinsicFilterError (539) */ + interface PalletExtrinsicFilterError extends Enum { + readonly isCannotBlock: boolean; + readonly isCannotConvertToString: boolean; + readonly isExtrinsicAlreadyBlocked: boolean; + readonly isExtrinsicNotBlocked: boolean; + readonly type: 'CannotBlock' | 'CannotConvertToString' | 'ExtrinsicAlreadyBlocked' | 'ExtrinsicNotBlocked'; + } + + /** @name PalletIdentityManagementError (540) */ + interface PalletIdentityManagementError extends Enum { + readonly isDelegateeNotExist: boolean; + readonly isUnauthorisedUser: boolean; + readonly type: 'DelegateeNotExist' | 'UnauthorisedUser'; + } + + /** @name PalletAssetManagerError (541) */ + interface PalletAssetManagerError extends Enum { + readonly isAssetAlreadyExists: boolean; + readonly isAssetTypeDoesNotExist: boolean; + readonly isAssetIdDoesNotExist: boolean; + readonly isDefaultAssetTypeRemoved: boolean; + readonly isAssetIdLimitReached: boolean; + readonly type: + | 'AssetAlreadyExists' + | 'AssetTypeDoesNotExist' + | 'AssetIdDoesNotExist' + | 'DefaultAssetTypeRemoved' + | 'AssetIdLimitReached'; + } + + /** @name PalletVcManagementVcContext (542) */ + interface PalletVcManagementVcContext extends Struct { + readonly subject: AccountId32; + readonly assertion: CorePrimitivesAssertion; + readonly hash_: H256; + readonly status: PalletVcManagementVcContextStatus; + } + + /** @name PalletVcManagementVcContextStatus (543) */ + interface PalletVcManagementVcContextStatus extends Enum { + readonly isActive: boolean; + readonly isDisabled: boolean; + readonly type: 'Active' | 'Disabled'; + } + + /** @name PalletVcManagementSchemaVcSchema (544) */ + interface PalletVcManagementSchemaVcSchema extends Struct { + readonly id: Bytes; + readonly author: AccountId32; + readonly content: Bytes; + readonly status: PalletVcManagementVcContextStatus; + } + + /** @name PalletVcManagementError (546) */ + 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 (547) */ + interface PalletGroupError extends Enum { + readonly isGroupMemberAlreadyExists: boolean; + readonly isGroupMemberInvalid: boolean; + readonly type: 'GroupMemberAlreadyExists' | 'GroupMemberInvalid'; + } + + /** @name TeerexPrimitivesEnclave (549) */ + 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 (550) */ + interface TeerexPrimitivesSgxBuildMode extends Enum { + readonly isDebug: boolean; + readonly isProduction: boolean; + readonly type: 'Debug' | 'Production'; + } + + /** @name TeerexPrimitivesSgxEnclaveMetadata (551) */ + interface TeerexPrimitivesSgxEnclaveMetadata extends Struct { + readonly quote: Bytes; + readonly quoteSig: Bytes; + readonly quoteCert: Bytes; + } + + /** @name TeerexPrimitivesQuotingEnclave (552) */ + 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 (554) */ + interface TeerexPrimitivesQeTcb extends Struct { + readonly isvsvn: u16; + } + + /** @name TeerexPrimitivesTcbInfoOnChain (555) */ + interface TeerexPrimitivesTcbInfoOnChain extends Struct { + readonly issueDate: u64; + readonly nextUpdate: u64; + readonly tcbLevels: Vec; + } + + /** @name TeerexPrimitivesTcbVersionStatus (557) */ + interface TeerexPrimitivesTcbVersionStatus extends Struct { + readonly cpusvn: U8aFixed; + readonly pcesvn: u16; + } + + /** @name PalletTeerexError (558) */ + 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 SidechainPrimitivesSidechainBlockConfirmation (559) */ + interface SidechainPrimitivesSidechainBlockConfirmation extends Struct { + readonly blockNumber: u64; + readonly blockHeaderHash: H256; + } + + /** @name PalletSidechainError (560) */ + interface PalletSidechainError extends Enum { + readonly isReceivedUnexpectedSidechainBlock: boolean; + readonly isInvalidNextFinalizationCandidateBlockNumber: boolean; + readonly type: 'ReceivedUnexpectedSidechainBlock' | 'InvalidNextFinalizationCandidateBlockNumber'; + } + + /** @name PalletTeeracleError (563) */ + 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 PalletIdentityManagementMockError (565) */ + interface PalletIdentityManagementMockError extends Enum { + readonly isDelegateeNotExist: boolean; + readonly isUnauthorisedUser: boolean; + readonly isShieldingKeyDecryptionFailed: boolean; + readonly isWrongDecodedType: boolean; + readonly isIdentityAlreadyVerified: boolean; + readonly isIdentityNotExist: boolean; + readonly isCreatePrimeIdentityNotAllowed: boolean; + readonly isShieldingKeyNotExist: boolean; + readonly isVerificationRequestTooEarly: boolean; + readonly isVerificationRequestTooLate: boolean; + readonly isVerifySubstrateSignatureFailed: boolean; + readonly isRecoverSubstratePubkeyFailed: boolean; + readonly isVerifyEvmSignatureFailed: boolean; + readonly isCreationRequestBlockZero: boolean; + readonly isChallengeCodeNotExist: boolean; + readonly isWrongSignatureType: boolean; + readonly isWrongIdentityType: boolean; + readonly isRecoverEvmAddressFailed: boolean; + readonly isUnexpectedMessage: boolean; + readonly type: + | 'DelegateeNotExist' + | 'UnauthorisedUser' + | 'ShieldingKeyDecryptionFailed' + | 'WrongDecodedType' + | 'IdentityAlreadyVerified' + | 'IdentityNotExist' + | 'CreatePrimeIdentityNotAllowed' + | 'ShieldingKeyNotExist' + | 'VerificationRequestTooEarly' + | 'VerificationRequestTooLate' + | 'VerifySubstrateSignatureFailed' + | 'RecoverSubstratePubkeyFailed' + | 'VerifyEvmSignatureFailed' + | 'CreationRequestBlockZero' + | 'ChallengeCodeNotExist' + | 'WrongSignatureType' + | 'WrongIdentityType' + | 'RecoverEvmAddressFailed' + | 'UnexpectedMessage'; + } + + /** @name PalletSudoError (566) */ + interface PalletSudoError extends Enum { + readonly isRequireSudo: boolean; + readonly type: 'RequireSudo'; + } + + /** @name SpRuntimeMultiSignature (568) */ + 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 SpCoreEd25519Signature (569) */ + interface SpCoreEd25519Signature extends U8aFixed {} + + /** @name SpCoreSr25519Signature (571) */ + interface SpCoreSr25519Signature extends U8aFixed {} + + /** @name SpCoreEcdsaSignature (572) */ + interface SpCoreEcdsaSignature extends U8aFixed {} + + /** @name FrameSystemExtensionsCheckNonZeroSender (575) */ + type FrameSystemExtensionsCheckNonZeroSender = Null; + + /** @name FrameSystemExtensionsCheckSpecVersion (576) */ + type FrameSystemExtensionsCheckSpecVersion = Null; + + /** @name FrameSystemExtensionsCheckTxVersion (577) */ + type FrameSystemExtensionsCheckTxVersion = Null; + + /** @name FrameSystemExtensionsCheckGenesis (578) */ + type FrameSystemExtensionsCheckGenesis = Null; + + /** @name FrameSystemExtensionsCheckNonce (581) */ + interface FrameSystemExtensionsCheckNonce extends Compact {} + + /** @name FrameSystemExtensionsCheckWeight (582) */ + type FrameSystemExtensionsCheckWeight = Null; + + /** @name PalletTransactionPaymentChargeTransactionPayment (583) */ + interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} +} // declare module diff --git a/tee-worker/ts-tests/interfaces/types.ts b/tee-worker/ts-tests/parachain-interfaces/types.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/types.ts rename to tee-worker/ts-tests/parachain-interfaces/types.ts diff --git a/tee-worker/ts-tests/resuming_worker.test.ts b/tee-worker/ts-tests/resuming_worker.test.ts index 51e967ee53..0ffe27cc73 100644 --- a/tee-worker/ts-tests/resuming_worker.test.ts +++ b/tee-worker/ts-tests/resuming_worker.test.ts @@ -207,13 +207,7 @@ describe('Resume worker', function () { console.log('=========== worker stopped =================='); // resume worker - let { process: r_worker0 } = await launchWorker( - 'worker0', - binary_dir, - worker0_dir, - commands.worker0.commands.resume, - false - ); + await launchWorker('worker0', binary_dir, worker0_dir, commands.worker0.commands.resume, false); await worker0_conn.open(); //reopen connection const resume_block = await latestBlock(worker0_conn, shard); // TODO compare the block hash @@ -241,13 +235,7 @@ describe('Resume worker', function () { await sleep(20); // resume worker1 - let { process: r_worker1 } = await launchWorker( - 'worker1', - binary_dir, - worker1_dir, - commands.worker1.commands.resume, - false - ); + await launchWorker('worker1', binary_dir, worker1_dir, commands.worker1.commands.resume, false); await worker1_conn.open(); //reopen connection const resume_block = await latestBlock(worker1_conn, shard); assert.isNotEmpty(resume_block.result, "the latest block can't be empty"); diff --git a/tee-worker/ts-tests/interfaces/augment-api-consts.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-consts.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-consts.ts rename to tee-worker/ts-tests/sidechain-interfaces/augment-api-consts.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-errors.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-errors.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-errors.ts rename to tee-worker/ts-tests/sidechain-interfaces/augment-api-errors.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-events.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-events.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-events.ts rename to tee-worker/ts-tests/sidechain-interfaces/augment-api-events.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-query.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-query.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-query.ts rename to tee-worker/ts-tests/sidechain-interfaces/augment-api-query.ts diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api-rpc.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-rpc.ts new file mode 100644 index 0000000000..fab673626c --- /dev/null +++ b/tee-worker/ts-tests/sidechain-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/sidechain-interfaces/augment-api-runtime.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-runtime.ts rename to tee-worker/ts-tests/sidechain-interfaces/augment-api-runtime.ts diff --git a/tee-worker/ts-tests/interfaces/augment-api-tx.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api-tx.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/augment-api-tx.ts rename to tee-worker/ts-tests/sidechain-interfaces/augment-api-tx.ts diff --git a/tee-worker/ts-tests/sidechain-interfaces/augment-api.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-api.ts new file mode 100644 index 0000000000..7cafd228bd --- /dev/null +++ b/tee-worker/ts-tests/sidechain-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/sidechain-interfaces/augment-types.ts b/tee-worker/ts-tests/sidechain-interfaces/augment-types.ts new file mode 100644 index 0000000000..682b49004e --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/augment-types.ts @@ -0,0 +1,2300 @@ +// 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 { 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 { + IdentityFields, + IdentityInfo, + IdentityInfoAdditional, + IdentityInfoTo198, + IdentityJudgement, + RegistrarIndex, + RegistrarInfo, + Registration, + RegistrationJudgement, + RegistrationTo198, +} from '@polkadot/types/interfaces/identity'; +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; + AliveContractInfo: AliveContractInfo; + AllowedSlots: AllowedSlots; + AnySignature: AnySignature; + ApiId: ApiId; + ApplyExtrinsicResult: ApplyExtrinsicResult; + ApplyExtrinsicResultPre6: ApplyExtrinsicResultPre6; + ApprovalFlag: ApprovalFlag; + Approvals: Approvals; + ArithmeticError: ArithmeticError; + 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; + 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; + EvmLog: EvmLog; + 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; + 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; + IdentityFields: IdentityFields; + IdentityInfo: IdentityInfo; + IdentityInfoAdditional: IdentityInfoAdditional; + IdentityInfoTo198: IdentityInfoTo198; + IdentityJudgement: IdentityJudgement; + 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; + 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; + 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; + 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; + RegistrarIndex: RegistrarIndex; + RegistrarInfo: RegistrarInfo; + Registration: Registration; + RegistrationJudgement: RegistrationJudgement; + RegistrationTo198: RegistrationTo198; + 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; + 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; + 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; + 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; + 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; + 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/sidechain-interfaces/index.ts b/tee-worker/ts-tests/sidechain-interfaces/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-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/sidechain-interfaces/lookup.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/lookup.ts rename to tee-worker/ts-tests/sidechain-interfaces/lookup.ts diff --git a/tee-worker/ts-tests/interfaces/registry.ts b/tee-worker/ts-tests/sidechain-interfaces/registry.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/registry.ts rename to tee-worker/ts-tests/sidechain-interfaces/registry.ts diff --git a/tee-worker/ts-tests/interfaces/types-lookup.ts b/tee-worker/ts-tests/sidechain-interfaces/types-lookup.ts similarity index 100% rename from tee-worker/ts-tests/interfaces/types-lookup.ts rename to tee-worker/ts-tests/sidechain-interfaces/types-lookup.ts diff --git a/tee-worker/ts-tests/sidechain-interfaces/types.ts b/tee-worker/ts-tests/sidechain-interfaces/types.ts new file mode 100644 index 0000000000..deaa5c34d9 --- /dev/null +++ b/tee-worker/ts-tests/sidechain-interfaces/types.ts @@ -0,0 +1,2 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ diff --git a/tee-worker/ts-tests/tsconfig.json b/tee-worker/ts-tests/tsconfig.json new file mode 100644 index 0000000000..0380840c7a --- /dev/null +++ b/tee-worker/ts-tests/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + // this is specific with augmented overrides + "paths": { + "@polkadot/api/augment": ["./parachain-interfaces/augment-api.ts"], + "@polkadot/types/augment": ["./parachain-interfaces/augment-types.ts"], + "@polkadot/types/lookup": ["./sidechain-interfaces/types-lookup.ts"] + }, + "target": "es2017", + "module": "commonjs", + "declaration": true, + "outDir": "./lib", + "strict": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, + "baseUrl": "." + } +} diff --git a/tee-worker/ts-tests/vc.test.ts b/tee-worker/ts-tests/vc.test.ts index 56eebe07b2..f7624af53b 100644 --- a/tee-worker/ts-tests/vc.test.ts +++ b/tee-worker/ts-tests/vc.test.ts @@ -8,14 +8,15 @@ import { handleVcEvents, } from './common/utils'; import { step } from 'mocha-steps'; -import { Assertion, IndexingNetwork, TransactionSubmit } from './common/type-definitions'; +import type { Assertion, IdentityGenericEvent, TransactionSubmit } from './common/type-definitions'; +import { IndexingNetwork } from './common/type-definitions'; +import type { HexString } from '@polkadot/util/types'; import { assert } from 'chai'; import { u8aToHex } from '@polkadot/util'; -import { HexString } from '@polkadot/util/types'; import { blake2AsHex } from '@polkadot/util-crypto'; import { multiAccountTxSender, sendTxsWithUtility, sendTxUntilInBlockList } from './common/transactions'; -const assertion = { +const all_assertions: Assertion = { A1: 'A1', A2: ['A2'], A3: ['A3', 'A3', 'A3'], @@ -25,13 +26,15 @@ const assertion = { A10: '10.003', A11: '10.004', }; - +const assertion_A1: Assertion = { + A1: 'A1', +}; //It doesn't make much difference test A1 only vs test A1 - A11, one VC type is enough. //So only use A1 to trigger the wrong event describeLitentry('VC test', 0, async (context) => { const aesKey = '0x22fc82db5b606998ad45099b7978b5b4f9dd4ea6017e57370ac56141caaabd12'; var indexList: HexString[] = []; - var vcKeys: string[] = ['A1', 'A2', 'A3', 'A4', 'A7', 'A8', 'A10', 'A11']; + var vcKeys: string[] = ['A1']; step('check user sidechain storage before create', async function () { const resp_shieldingKey = await checkUserShieldingKeys( context, @@ -55,23 +58,25 @@ describeLitentry('VC test', 0, async (context) => { 'identityManagement', ['UserShieldingKeySet'] ); - const [alice] = await handleIdentityEvents(context, aesKey, resp_events, 'UserShieldingKeySet'); + const [alice] = (await handleIdentityEvents( + context, + aesKey, + resp_events, + 'UserShieldingKeySet' + )) as IdentityGenericEvent[]; assert.equal( alice.who, u8aToHex(context.substrateWallet.alice.addressRaw), 'alice shielding key should be set' ); }); - const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); step('check user shielding key from sidechain storage after setUserShieldingKey', async function () { - await sleep(6000); const resp_shieldingKey = await checkUserShieldingKeys( context, 'IdentityManagement', 'UserShieldingKeys', u8aToHex(context.substrateWallet.alice.addressRaw) ); - await sleep(6000); assert.equal(resp_shieldingKey, aesKey, 'resp_shieldingKey should be equal aesKey after set'); }); step('Request VC', async () => { @@ -80,14 +85,19 @@ describeLitentry('VC test', 0, async (context) => { for (let index = 0; index < vcKeys.length; index++) { const key = vcKeys[index]; const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, { - [key]: assertion[key as keyof Assertion], + [key]: all_assertions[key as keyof Assertion], }); txs.push({ tx }); } - const resp_events = await sendTxsWithUtility(context, context.substrateWallet.alice, txs, 'vcManagement', [ - 'VCIssued', - ]); + const resp_events = await sendTxsWithUtility( + context, + context.substrateWallet.alice, + txs, + 'vcManagement', + ['VCIssued'], + 30 + ); const res = await handleVcEvents(aesKey, resp_events, 'VCIssued'); for (let k = 0; k < res.length; k++) { @@ -110,7 +120,7 @@ describeLitentry('VC test', 0, async (context) => { } }); step('Request Error VC(A1)', async () => { - const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion.A1); + const tx = context.api.tx.vcManagement.requestVc(context.mrEnclave, assertion_A1); const resp_error_events = await sendTxsWithUtility( context, context.substrateWallet.bob, @@ -118,9 +128,8 @@ describeLitentry('VC test', 0, async (context) => { 'vcManagement', ['RequestVCFailed'] ); - const error_event_datas = await handleVcEvents(aesKey, resp_error_events, 'Failed'); - await checkErrorDetail(error_event_datas, 'UserShieldingKeyNotFound', false); + await checkErrorDetail(resp_error_events, 'UserShieldingKeyNotFound'); }); step('Disable VC', async () => { let txs: any = []; @@ -144,13 +153,13 @@ describeLitentry('VC test', 0, async (context) => { const tx = context.api.tx.vcManagement.disableVc(indexList[0]); const nonce = (await context.api.rpc.system.accountNextIndex(context.substrateWallet.alice.address)).toNumber(); - const res = (await sendTxUntilInBlockList( - context.api, - [{ tx, nonce }], - context.substrateWallet.alice - )) as string[]; + const [error] = await sendTxUntilInBlockList(context.api, [{ tx, nonce }], context.substrateWallet.alice); - await checkErrorDetail(res, 'vcManagement.VCAlreadyDisabled', false); + assert.equal( + error, + 'vcManagement.VCAlreadyDisabled', + 'check disable vc error: error should be equal to vcManagement.VCAlreadyDisabled' + ); }); step('Revoke VC', async () => { @@ -177,12 +186,12 @@ describeLitentry('VC test', 0, async (context) => { //Alice has already revoked the A1 VC const tx = context.api.tx.vcManagement.revokeVc(indexList[0]); const nonce = (await context.api.rpc.system.accountNextIndex(context.substrateWallet.alice.address)).toNumber(); - const res = (await sendTxUntilInBlockList( - context.api, - [{ tx, nonce }], - context.substrateWallet.alice - )) as string[]; + const [error] = await sendTxUntilInBlockList(context.api, [{ tx, nonce }], context.substrateWallet.alice); - await checkErrorDetail(res, 'vcManagement.VCNotExist', false); + assert.equal( + error, + 'vcManagement.VCNotExist', + 'check revoke vc error: error should be equal to vcManagement.VCNotExist' + ); }); }); diff --git a/tee-worker/ts-tests/yarn.lock b/tee-worker/ts-tests/yarn.lock index 1bf45c3383..2b82376493 100644 --- a/tee-worker/ts-tests/yarn.lock +++ b/tee-worker/ts-tests/yarn.lock @@ -607,17 +607,17 @@ resolved "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz" integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== -"@polkadot/api-augment@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-10.5.1.tgz" - integrity sha512-1mvt/iiV7UX7FzdR4q7e7eeoh4Xmo9r0vOZfl1jpmFOhVFKwhwsGHNMkWAtyeAXEsflISAsGjsPqwvr8Uxiqww== - dependencies: - "@polkadot/api-base" "10.5.1" - "@polkadot/rpc-augment" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-augment" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" +"@polkadot/api-augment@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-10.7.1.tgz#14cbf067fe208287a4a37f13de4809802c05ad8f" + integrity sha512-VX4sUXV0bq0/pVFTzVUhSLvcGMZKuUTrajv6bZMPBbSjhIN0aWPX2d+/dsHEaNnqnROU0P/40i0oeFMfjv4tzg== + dependencies: + "@polkadot/api-base" "10.7.1" + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" "@polkadot/api-augment@9.14.2": @@ -633,14 +633,14 @@ "@polkadot/types-codec" "9.14.2" "@polkadot/util" "^10.4.2" -"@polkadot/api-base@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/api-base/-/api-base-10.5.1.tgz" - integrity sha512-A5tuvpSluU7wJEGpYeYFRS3Hem1Fd7Wx4uFEjmiUwYqPSBjJADIQsu+f+PXJfRXwpqn2z8rnz7p8ErFJZkkS9A== +"@polkadot/api-base@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-10.7.1.tgz#445e6687f26f6223b58459bc20a5f57fb1f0835b" + integrity sha512-bgNjwd7I67kSxLzQGpwpGq3nZYb0PdnroAqNNmKVtNms0JGdRsX8j06nJ89XRXDq+bwOXaDslrC3VKgrCm36DA== dependencies: - "@polkadot/rpc-core" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/util" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" @@ -655,19 +655,19 @@ "@polkadot/util" "^10.4.2" rxjs "^7.8.0" -"@polkadot/api-derive@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-10.5.1.tgz" - integrity sha512-NAAf1ILxKpWzxc7rO/xP/CIHJoIONA4wzJd261ewdtZ81zikZQkMM2n55eZjcXrJudFbZtDCOX0NzB+HSHF6gQ== - dependencies: - "@polkadot/api" "10.5.1" - "@polkadot/api-augment" "10.5.1" - "@polkadot/api-base" "10.5.1" - "@polkadot/rpc-core" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" +"@polkadot/api-derive@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-10.7.1.tgz#14f478894c5c53fe8e7d85d7a2a8e84de3eaf065" + integrity sha512-pyNRe8OrA6iNuYKGO/BlxGmKavzohwAAweVphuZnbWfVUKjuRZEgclHYRq/O+pKrPMm3eIbsHVvFlMnIU+rxFw== + dependencies: + "@polkadot/api" "10.7.1" + "@polkadot/api-augment" "10.7.1" + "@polkadot/api-base" "10.7.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" @@ -687,26 +687,26 @@ "@polkadot/util-crypto" "^10.4.2" rxjs "^7.8.0" -"@polkadot/api@^10.3.4", "@polkadot/api@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/api/-/api-10.5.1.tgz" - integrity sha512-+ru++CNqzLlygxFoZTHp9Ombe6AHtQqjSyNramtUSE2Vct0EATW4V/VMCVMo1c0h5XTeNjfjY0FHav5G5KyQUA== - dependencies: - "@polkadot/api-augment" "10.5.1" - "@polkadot/api-base" "10.5.1" - "@polkadot/api-derive" "10.5.1" - "@polkadot/keyring" "^12.1.1" - "@polkadot/rpc-augment" "10.5.1" - "@polkadot/rpc-core" "10.5.1" - "@polkadot/rpc-provider" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-augment" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/types-create" "10.5.1" - "@polkadot/types-known" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" - eventemitter3 "^5.0.0" +"@polkadot/api@10.7.1", "@polkadot/api@^10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-10.7.1.tgz#a0735f18f3a06041b7bd1330e8bb50dc741230ee" + integrity sha512-6jVYCVlKvQC1HctlZdH3fg28yWb5Wv7IMJn055j66aE+D54z+P8VYdUx17rZsUCWjg6lMlVyzybM9aTm5TE8Sw== + dependencies: + "@polkadot/api-augment" "10.7.1" + "@polkadot/api-base" "10.7.1" + "@polkadot/api-derive" "10.7.1" + "@polkadot/keyring" "^12.2.1" + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/rpc-provider" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/types-known" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" + eventemitter3 "^5.0.1" rxjs "^7.8.1" tslib "^2.5.0" @@ -742,13 +742,13 @@ "@polkadot/util" "10.4.2" "@polkadot/util-crypto" "10.4.2" -"@polkadot/keyring@^12.1.1", "@polkadot/keyring@^12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/keyring/-/keyring-12.1.2.tgz" - integrity sha512-HskFoZwLwRWPthEQK50uOiOsbdIt0AY3gcrDmSS2ltkpUDY9qzlb/fAj0+QGtTrK36v5gHT8OD56Pd4l0FDMFw== +"@polkadot/keyring@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-12.2.1.tgz#d131375c0436115d1f35139bd2bbbc069dd5b9fa" + integrity sha512-YqgpU+97OZgnSUL56DEMib937Dpb1bTTDPYHhBiN1yNCKod7UboWXIe4xPh+1Kzugum+dEyPpdV+fHH10rtDzw== dependencies: - "@polkadot/util" "12.1.2" - "@polkadot/util-crypto" "12.1.2" + "@polkadot/util" "12.2.1" + "@polkadot/util-crypto" "12.2.1" tslib "^2.5.0" "@polkadot/networks@^10.4.2", "@polkadot/networks@10.4.2": @@ -760,33 +760,24 @@ "@polkadot/util" "10.4.2" "@substrate/ss58-registry" "^1.38.0" -"@polkadot/networks@^12.1.1": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/networks/-/networks-12.1.2.tgz" - integrity sha512-9gC5GYGFKXHY4oQaMfYvLLxGJ55slT3V8Zc6uk96KKysEvpSMDXdPUAKZJ3SXN9Iz3KaEa9x6RD5ZEf5j6BJ6g== +"@polkadot/networks@12.2.1", "@polkadot/networks@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-12.2.1.tgz#ce3e2371e3bd02c9c1b233846b9fe1df4601f560" + integrity sha512-lYLvFv6iQ2UzkP66zJfsiTo2goeaNeKuwiaGoRoFrDwdwVeZK/+rCsz1uAyvbwmpZIaK8K+dTlSBVWlFoAkgcA== dependencies: - "@polkadot/util" "12.1.2" + "@polkadot/util" "12.2.1" "@substrate/ss58-registry" "^1.40.0" tslib "^2.5.0" -"@polkadot/networks@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/networks/-/networks-12.1.2.tgz" - integrity sha512-9gC5GYGFKXHY4oQaMfYvLLxGJ55slT3V8Zc6uk96KKysEvpSMDXdPUAKZJ3SXN9Iz3KaEa9x6RD5ZEf5j6BJ6g== +"@polkadot/rpc-augment@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-10.7.1.tgz#527bfc03b76b197f6126045f67d59fb2d4ec92b6" + integrity sha512-D4msTT74PaiI3M8E8vhXdN9oNyXaKcTpTWzfJvP5m8fj0YrKS+zoZotePyiry5n/Pam2RzwYdiu/vktuDuvn9w== dependencies: - "@polkadot/util" "12.1.2" - "@substrate/ss58-registry" "^1.40.0" - tslib "^2.5.0" - -"@polkadot/rpc-augment@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-10.5.1.tgz" - integrity sha512-YL3cMEjTtG/BYiUItfhg5V7uBuFAjcW4NTIg51BTOHPI1QEKX+b7fN4m0qD/S1OapqYGyU3WtnG9HjifG+fITw== - dependencies: - "@polkadot/rpc-core" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/rpc-core" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" "@polkadot/rpc-augment@9.14.2": @@ -800,15 +791,15 @@ "@polkadot/types-codec" "9.14.2" "@polkadot/util" "^10.4.2" -"@polkadot/rpc-core@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-10.5.1.tgz" - integrity sha512-6I5y1lux5oXYtTrO/XoiNsAbWZabzfb6tbiFHhhN/LVEyw6VJueIRVAdGzkMlftM9tfcokrVCcplfRXV8QTkMQ== +"@polkadot/rpc-core@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-10.7.1.tgz#d8be2eb85df86d10dc480e3321ec3106df4a1a40" + integrity sha512-XIK28zCVmEpSgnB1DomXNdfMYKUTP5h/bnb+oaWeNUxFxBQtmO1a9UNlZG6thsnma2jlNFVzB0ihR3xoTkka0A== dependencies: - "@polkadot/rpc-augment" "10.5.1" - "@polkadot/rpc-provider" "10.5.1" - "@polkadot/types" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/rpc-augment" "10.7.1" + "@polkadot/rpc-provider" "10.7.1" + "@polkadot/types" "10.7.1" + "@polkadot/util" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" @@ -824,25 +815,25 @@ "@polkadot/util" "^10.4.2" rxjs "^7.8.0" -"@polkadot/rpc-provider@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-10.5.1.tgz" - integrity sha512-XwzCHJx4Qw9tQ10kHnefelic5JRcsxNJRdRYHaNb5AEoHOFDqC5wXgy5N45wQLXrQW+ktj5HkHEPH5r3N1DWTw== - dependencies: - "@polkadot/keyring" "^12.1.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-support" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" - "@polkadot/x-fetch" "^12.1.1" - "@polkadot/x-global" "^12.1.1" - "@polkadot/x-ws" "^12.1.1" - eventemitter3 "^5.0.0" +"@polkadot/rpc-provider@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-10.7.1.tgz#50fa0b90a8e32d6fd04d0776a54a73406c60d104" + integrity sha512-FVaoqtPLb9uhDQb9bE2KSnDqzApsb/hpN57VcylbiUsSACBARGBWrHNAN5rQ8TFN2H6Uv8SqdxTsHeM74Ny2mw== + dependencies: + "@polkadot/keyring" "^12.2.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-support" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" + "@polkadot/x-fetch" "^12.2.1" + "@polkadot/x-global" "^12.2.1" + "@polkadot/x-ws" "^12.2.1" + eventemitter3 "^5.0.1" mock-socket "^9.2.1" nock "^13.3.1" tslib "^2.5.0" optionalDependencies: - "@substrate/connect" "0.7.24" + "@substrate/connect" "0.7.26" "@polkadot/rpc-provider@9.14.2": version "9.14.2" @@ -888,14 +879,14 @@ websocket "^1.0.34" yargs "^17.6.2" -"@polkadot/types-augment@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-10.5.1.tgz" - integrity sha512-YBa2yC6NcFU0SEBHJSniToDf/x1vKMlr6NCafHYJsLcvGBiJbrNKXKMP34V9oDcwvxDBvU4YOZhhX5b2G/LF3Q== +"@polkadot/types-augment@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-10.7.1.tgz#6d46001c67647385ecfb44fa5944fd9e56a15a99" + integrity sha512-8Yr3iNA9ZU6S0CdR6njM0hx4EBgsm5lZJtytQ8rSxfe8zYOLnh8lz9QLF+iyI+KNFAFwPwfgQ5QwO6zRd8WT+Q== dependencies: - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" "@polkadot/types-augment@9.14.2": @@ -908,13 +899,13 @@ "@polkadot/types-codec" "9.14.2" "@polkadot/util" "^10.4.2" -"@polkadot/types-codec@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-10.5.1.tgz" - integrity sha512-6qF1lH52wVHtFbrrE+6jh4v6l0bLkVgqZv1O93JFviSSIcUoFxLXhTiUIKUp4O3RjtQbhgGmaN8/BtBEwAvnXg== +"@polkadot/types-codec@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-10.7.1.tgz#75854ef2bd7d0b9a4b21a529913afda55af8a64a" + integrity sha512-3VoR1JXFuwt3MQ+E7Vds0UsSRwytS9yo0GtgfP9Nmwt8neQE8JHEd/nAb4JrJFozr3bNRTj+A94wbYk/XB6VKA== dependencies: - "@polkadot/util" "^12.1.1" - "@polkadot/x-bigint" "^12.1.1" + "@polkadot/util" "^12.2.1" + "@polkadot/x-bigint" "^12.2.1" tslib "^2.5.0" "@polkadot/types-codec@9.14.2": @@ -926,13 +917,13 @@ "@polkadot/util" "^10.4.2" "@polkadot/x-bigint" "^10.4.2" -"@polkadot/types-create@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/types-create/-/types-create-10.5.1.tgz" - integrity sha512-FLG9FDRIkMvz/SLOKUT9sfWna2LZvxG3wxCtYQ8O6SONsECWWdL871+3816RPmB2Bc7L3CKic4QcY+y9jiBfyg== +"@polkadot/types-create@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-10.7.1.tgz#84e4b021592f62c16bd9a38d60055752efafa8be" + integrity sha512-DJM7Rog2H7XNbGB18s1PY14yfgRNTIZVzHJxkdkXg5eXDWNmrVbwJFKP8gc469cpND+gooDAJeZ5gToiJEb4Hw== dependencies: - "@polkadot/types-codec" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" "@polkadot/types-create@9.14.2": @@ -944,16 +935,16 @@ "@polkadot/types-codec" "9.14.2" "@polkadot/util" "^10.4.2" -"@polkadot/types-known@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/types-known/-/types-known-10.5.1.tgz" - integrity sha512-YkGa/P/czp+5aJ+VaRqeDX+22iF12/rgmOKATlC9+y9b/plp4HYkyZBaKJU9hOAgdbuZ8Yv+e8UXCzUNHGPcHg== +"@polkadot/types-known@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-10.7.1.tgz#40d275d116458b93631c30192e9cb4d88aa363f3" + integrity sha512-4lff8uE6OcHsvhJYS6/feKnkDGnFd6jOSpi7d5WYDnxTpTbfvaS8UmZ1ZB9P3TjimrnnX+yV/pqFQV9TMA0bjA== dependencies: - "@polkadot/networks" "^12.1.1" - "@polkadot/types" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/types-create" "10.5.1" - "@polkadot/util" "^12.1.1" + "@polkadot/networks" "^12.2.1" + "@polkadot/types" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" "@polkadot/types-known@9.14.2": @@ -968,12 +959,12 @@ "@polkadot/types-create" "9.14.2" "@polkadot/util" "^10.4.2" -"@polkadot/types-support@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/types-support/-/types-support-10.5.1.tgz" - integrity sha512-sHjfqiHDtYcnKWpgRIZApKdtgXiROulzrG+NXhVmeMAQY6Eaq0jo1nNy5PXv6Lj5EVGjHfB5dIdgo/gSotJEzw== +"@polkadot/types-support@10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-10.7.1.tgz#f88baac9f9976e1ca86974292af38e533aab3447" + integrity sha512-E7bJfqI9ajCsidRjHiIHTil6av+M+LVfiO9viPjA4PhMp6RIuH6jZ9xUZ6S6hM25zqDwnxtGjx3CPARAx6dwLg== dependencies: - "@polkadot/util" "^12.1.1" + "@polkadot/util" "^12.2.1" tslib "^2.5.0" "@polkadot/types-support@9.14.2": @@ -984,17 +975,17 @@ "@babel/runtime" "^7.20.13" "@polkadot/util" "^10.4.2" -"@polkadot/types@^10.3.4", "@polkadot/types@10.5.1": - version "10.5.1" - resolved "https://registry.npmjs.org/@polkadot/types/-/types-10.5.1.tgz" - integrity sha512-atiO1WXTF6AUbYVhK6Y9klgaD32scYsxQwNihWjcf8yur1OrW12qQCFkYcHQ5DOMQ7fNrKsxpX26zJxymCRwTw== - dependencies: - "@polkadot/keyring" "^12.1.1" - "@polkadot/types-augment" "10.5.1" - "@polkadot/types-codec" "10.5.1" - "@polkadot/types-create" "10.5.1" - "@polkadot/util" "^12.1.1" - "@polkadot/util-crypto" "^12.1.1" +"@polkadot/types@10.7.1", "@polkadot/types@^10.7.1": + version "10.7.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.7.1.tgz#5c2874a718200a21ed4604fe311b40c3e4dad1d4" + integrity sha512-Bb1DiYya0jLVYjyvOeJppJJikj6v1XXyHsj1OpvKK/ErnIGX0Esj8UyakmKxvDf2y0fn4VabCwXviuUIZhUTFg== + dependencies: + "@polkadot/keyring" "^12.2.1" + "@polkadot/types-augment" "10.7.1" + "@polkadot/types-codec" "10.7.1" + "@polkadot/types-create" "10.7.1" + "@polkadot/util" "^12.2.1" + "@polkadot/util-crypto" "^12.2.1" rxjs "^7.8.1" tslib "^2.5.0" @@ -1029,19 +1020,19 @@ ed2curve "^0.3.0" tweetnacl "^1.0.3" -"@polkadot/util-crypto@^12.1.1": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-12.1.2.tgz" - integrity sha512-xV5P7auvs2Qck+HGGk2uaJWyujbJSFc+VDlM/giqM2xKgfmkRUTgGtcBuLLLZq5R1A9tGW5DUQg0VgVHYJaNvw== +"@polkadot/util-crypto@12.2.1", "@polkadot/util-crypto@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-12.2.1.tgz#cbb0d1535e187af43ddcbac4248298b134f2f3ee" + integrity sha512-MFh7Sdm7/G9ot5eIBZGuQXTYP/EbOCh1+ODyygp9/TjWAmJZMq1J73Uqk4KmzkwpDBpNZO8TGjiYwL8lR6BnGg== dependencies: "@noble/curves" "1.0.0" "@noble/hashes" "1.3.0" - "@polkadot/networks" "12.1.2" - "@polkadot/util" "12.1.2" - "@polkadot/wasm-crypto" "^7.1.2" - "@polkadot/wasm-util" "^7.1.2" - "@polkadot/x-bigint" "12.1.2" - "@polkadot/x-randomvalues" "12.1.2" + "@polkadot/networks" "12.2.1" + "@polkadot/util" "12.2.1" + "@polkadot/wasm-crypto" "^7.2.1" + "@polkadot/wasm-util" "^7.2.1" + "@polkadot/x-bigint" "12.2.1" + "@polkadot/x-randomvalues" "12.2.1" "@scure/base" "1.1.1" tslib "^2.5.0" @@ -1074,15 +1065,15 @@ "@types/bn.js" "^5.1.1" bn.js "^5.2.1" -"@polkadot/util@^12.1.1", "@polkadot/util@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/util/-/util-12.1.2.tgz" - integrity sha512-Da8q+0WVWSuMMS3hLAwnIid8FKRGLmwhD69jikye47zeEXCtvp4e/bjD0YbINNKHoeIRsApchJtqmbaEoxXjIQ== +"@polkadot/util@12.2.1", "@polkadot/util@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-12.2.1.tgz#d6c692324890802bc3b2f15b213b7430bb26e8c8" + integrity sha512-MQmPx9aCX4GTpDY/USUQywXRyaDbaibg4V1+c/CoRTsoDu+XHNM8G3lpabdNAYKZrtxg+3/1bTS0ojm6ANSQRw== dependencies: - "@polkadot/x-bigint" "12.1.2" - "@polkadot/x-global" "12.1.2" - "@polkadot/x-textdecoder" "12.1.2" - "@polkadot/x-textencoder" "12.1.2" + "@polkadot/x-bigint" "12.2.1" + "@polkadot/x-global" "12.2.1" + "@polkadot/x-textdecoder" "12.2.1" + "@polkadot/x-textencoder" "12.2.1" "@types/bn.js" "^5.1.1" bn.js "^5.2.1" tslib "^2.5.0" @@ -1094,12 +1085,12 @@ dependencies: "@babel/runtime" "^7.20.6" -"@polkadot/wasm-bridge@7.1.2": - version "7.1.2" - resolved "https://registry.npmjs.org/@polkadot/wasm-bridge/-/wasm-bridge-7.1.2.tgz" - integrity sha512-6t8b1el/03b30ZFKVFYU5pQEx9OeDZ3GBndgZ5b6fMNFRoowFWTwx74HLqhXlQb+hOTjGJA70jHdxkplh1sO3A== +"@polkadot/wasm-bridge@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-bridge/-/wasm-bridge-7.2.1.tgz#8464a96552207d2b49c6f32137b24132534b91ee" + integrity sha512-uV/LHREDBGBbHrrv7HTki+Klw0PYZzFomagFWII4lp6Toj/VCvRh5WMzooVC+g/XsBGosAwrvBhoModabyHx+A== dependencies: - "@polkadot/wasm-util" "7.1.2" + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" "@polkadot/wasm-crypto-asmjs@6.4.1": @@ -1109,10 +1100,10 @@ dependencies: "@babel/runtime" "^7.20.6" -"@polkadot/wasm-crypto-asmjs@7.1.2": - version "7.1.2" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.1.2.tgz" - integrity sha512-Gdb824MoeWjESv7fu57Dqpvmx7FR2zhM2Os34/H8s1LcZ8m5qUxvm22kjtq+6DRJlGo7KxpS0OA4xCbSDDe0rA== +"@polkadot/wasm-crypto-asmjs@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-7.2.1.tgz#3e7a91e2905ab7354bc37b82f3e151a62bb024db" + integrity sha512-z/d21bmxyVfkzGsKef/FWswKX02x5lK97f4NPBZ9XBeiFkmzlXhdSnu58/+b1sKsRAGdW/Rn/rTNRDhW0GqCAg== dependencies: tslib "^2.5.0" @@ -1126,15 +1117,15 @@ "@polkadot/wasm-crypto-asmjs" "6.4.1" "@polkadot/wasm-crypto-wasm" "6.4.1" -"@polkadot/wasm-crypto-init@7.1.2": - version "7.1.2" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.1.2.tgz" - integrity sha512-jqeK04MYofvCU7kFMJDoKUM9SjfDEBDizIxgurxAZZvF4jMOhgStZTLTr9QkKTOMTrMUE9PWRMzrnDM/Od3kzA== +"@polkadot/wasm-crypto-init@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-init/-/wasm-crypto-init-7.2.1.tgz#9dbba41ed7d382575240f1483cf5a139ff2787bd" + integrity sha512-GcEXtwN9LcSf32V9zSaYjHImFw16hCyo2Xzg4GLLDPPeaAAfbFr2oQMgwyDbvBrBjLKHVHjsPZyGhXae831amw== dependencies: - "@polkadot/wasm-bridge" "7.1.2" - "@polkadot/wasm-crypto-asmjs" "7.1.2" - "@polkadot/wasm-crypto-wasm" "7.1.2" - "@polkadot/wasm-util" "7.1.2" + "@polkadot/wasm-bridge" "7.2.1" + "@polkadot/wasm-crypto-asmjs" "7.2.1" + "@polkadot/wasm-crypto-wasm" "7.2.1" + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" "@polkadot/wasm-crypto-wasm@6.4.1": @@ -1145,12 +1136,12 @@ "@babel/runtime" "^7.20.6" "@polkadot/wasm-util" "6.4.1" -"@polkadot/wasm-crypto-wasm@7.1.2": - version "7.1.2" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.1.2.tgz" - integrity sha512-p2RBfXc43r6rXkFo811LboSfRQFpCgOC6+ByqMs/geTA/+/I4l2ajz95aL6cQ20AA3W5x/ZwHxhwvmJ0HBjJ6A== +"@polkadot/wasm-crypto-wasm@7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-7.2.1.tgz#d2486322c725f6e5d2cc2d6abcb77ecbbaedc738" + integrity sha512-DqyXE4rSD0CVlLIw88B58+HHNyrvm+JAnYyuEDYZwCvzUWOCNos/DDg9wi/K39VAIsCCKDmwKqkkfIofuOj/lA== dependencies: - "@polkadot/wasm-util" "7.1.2" + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" "@polkadot/wasm-crypto@^6.4.1": @@ -1165,22 +1156,29 @@ "@polkadot/wasm-crypto-wasm" "6.4.1" "@polkadot/wasm-util" "6.4.1" -"@polkadot/wasm-crypto@^7.1.2": - version "7.1.2" - resolved "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-7.1.2.tgz" - integrity sha512-DO5Xf5nA2mSVdWnRM+PLAVE/wcg9vZAQkSHHSE+/qDmDVCQYygksHOA8ecRvn8nGfMNZQ0rmlIlsgyvAEtX1pw== +"@polkadot/wasm-crypto@^7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-7.2.1.tgz#db671dcb73f1646dc13478b5ffc3be18c64babe1" + integrity sha512-SA2+33S9TAwGhniKgztVN6pxUKpGfN4Tre/eUZGUfpgRkT92wIUT2GpGWQE+fCCqGQgADrNiBcwt6XwdPqMQ4Q== dependencies: - "@polkadot/wasm-bridge" "7.1.2" - "@polkadot/wasm-crypto-asmjs" "7.1.2" - "@polkadot/wasm-crypto-init" "7.1.2" - "@polkadot/wasm-crypto-wasm" "7.1.2" - "@polkadot/wasm-util" "7.1.2" + "@polkadot/wasm-bridge" "7.2.1" + "@polkadot/wasm-crypto-asmjs" "7.2.1" + "@polkadot/wasm-crypto-init" "7.2.1" + "@polkadot/wasm-crypto-wasm" "7.2.1" + "@polkadot/wasm-util" "7.2.1" tslib "^2.5.0" -"@polkadot/wasm-util@*", "@polkadot/wasm-util@^7.1.2", "@polkadot/wasm-util@7.1.2": - version "7.1.2" - resolved "https://registry.npmjs.org/@polkadot/wasm-util/-/wasm-util-7.1.2.tgz" - integrity sha512-lHQJFG0iotgmUovXYcw/HM3QhGxtze6ozAgRMd0/maTQjYwbV/7z1NzEle9fBwxX6GijTnpWc1vzW+YU0O1lLw== +"@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: + "@babel/runtime" "^7.20.6" + +"@polkadot/wasm-util@7.2.1", "@polkadot/wasm-util@^7.2.1": + version "7.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-util/-/wasm-util-7.2.1.tgz#fda233120ec02f77f0d14e4d3c7ad9ce06535fb8" + integrity sha512-FBSn/3aYJzhN0sYAYhHB8y9JL8mVgxLy4M1kUXYbyo+8GLRQEN5rns8Vcb8TAlIzBWgVTOOptYBvxo0oj0h7Og== dependencies: tslib "^2.5.0" @@ -1199,12 +1197,12 @@ "@babel/runtime" "^7.20.13" "@polkadot/x-global" "10.4.2" -"@polkadot/x-bigint@^12.1.1", "@polkadot/x-bigint@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-12.1.2.tgz" - integrity sha512-KU7C8HlJ2kO6Igg2Jq2Q/eAdll3HuVoylYcyVQxevcrC2fXhC2PDIEa+iWHBPz40p2TvI9sBZKrCsDDGz9K6sw== +"@polkadot/x-bigint@12.2.1", "@polkadot/x-bigint@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-12.2.1.tgz#adb639628626d2a6d7853afff43da20b4db4369a" + integrity sha512-3cZLsV8kU1MFOTcyloeg61CF+qdBkbZxWZJkSjh4AGlPXy+2tKwwoBPExxfCWXK61+Lo/q3/U1+lln8DSBCI2A== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" "@polkadot/x-fetch@^10.4.2": @@ -1217,12 +1215,12 @@ "@types/node-fetch" "^2.6.2" node-fetch "^3.3.0" -"@polkadot/x-fetch@^12.1.1": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-12.1.2.tgz" - integrity sha512-X+MY1UT25Xcvp6iUQOdmukOle1KsKaAblEhl+CrDfXGwM90wDLc5U3TZzddrKnQRcIgcNDyn9gRlHGQkZEbL9Q== +"@polkadot/x-fetch@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-12.2.1.tgz#65b447373a0155cae3e546b842ced356d8599c54" + integrity sha512-N2MIcn1g7LVZLZNDEkRkDD/LRY680PFqxziRoqb11SV52kRe6oVsdMIfaWH77UheniRR3br8YiQMUdvBVkak9Q== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" node-fetch "^3.3.1" tslib "^2.5.0" @@ -1233,10 +1231,10 @@ dependencies: "@babel/runtime" "^7.20.13" -"@polkadot/x-global@^12.1.1", "@polkadot/x-global@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-global/-/x-global-12.1.2.tgz" - integrity sha512-WGwPQN27hpwhVOQGUizJfmNJRxkijMwECMPUAYtSSgJhkV5MwWeFuVebfUjgHceakEvDRQWzEX6JjV6TttnPZw== +"@polkadot/x-global@12.2.1", "@polkadot/x-global@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-12.2.1.tgz#42e798e9607a4d7667469d91225c030fb3e8c8b5" + integrity sha512-JNMziAZjvfzMrXASuBPCvSzEqlhsgw0x95SOBtqJWsxmbCMAiZbYAC51vI1B9Z9wiKuzPtSh9Sk7YHsUOGCrIQ== dependencies: tslib "^2.5.0" @@ -1248,12 +1246,12 @@ "@babel/runtime" "^7.20.13" "@polkadot/x-global" "10.4.2" -"@polkadot/x-randomvalues@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-12.1.2.tgz" - integrity sha512-Jqwftgl+t8egG5miwI3f+MUNp3GIJUxZ0mcYbGDc3dY8LueY3yhKs94MQF/S6h8XPpRFI5/8mUZnmMgmNXsX6Q== +"@polkadot/x-randomvalues@12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-12.2.1.tgz#00c3f097f987b9ff70dbd2720086ad3d0bc16cfb" + integrity sha512-NwSDLcLjgHa0C7Un54Yhg2/E3Y/PcVfW5QNB9TDyzDbkmod3ziaVhh0iWG0sOmm26K6Q3phY+0uYt0etq0Gu3w== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" "@polkadot/x-textdecoder@10.4.2": @@ -1264,12 +1262,12 @@ "@babel/runtime" "^7.20.13" "@polkadot/x-global" "10.4.2" -"@polkadot/x-textdecoder@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-12.1.2.tgz" - integrity sha512-O5ygxEHdPCIQVzH7T+xVALBfCwrT5tVms7Yjp6EMT697A9gpD3U2aPr4YinsQO6JFwYpQNzvm2wjW+7EEzYitw== +"@polkadot/x-textdecoder@12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-12.2.1.tgz#a426a1d8a3b5717859b81a7341b16de4de3d78c0" + integrity sha512-5nQCIwyaGS0fXU2cbtMOSjFo0yTw1Z94m/UC+Gu5lm3ZU+kK4DpKFxhfLQORWAbvQkn12chRj3LI5Gm944hcrQ== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" "@polkadot/x-textencoder@10.4.2": @@ -1280,12 +1278,12 @@ "@babel/runtime" "^7.20.13" "@polkadot/x-global" "10.4.2" -"@polkadot/x-textencoder@12.1.2": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-12.1.2.tgz" - integrity sha512-N+9HIXT0eUQbfg/SfGrNRK8aLFpd2QngJzTxo8CljpjCvQ2ddqzBVFA8o/lKTaXVzX84EmPDzjIV+yJlOXnglA== +"@polkadot/x-textencoder@12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-12.2.1.tgz#f606c9929668bb41a23ec25c9752252bb56b0c9b" + integrity sha512-Ou6OXypRsJloK5a7Kn7re3ImqcL26h22fVw1cNv4fsTgkRFUdJDgPux2TpCZ3N+cyrfGVv42xKYFbdKMQCczjg== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" "@polkadot/x-ws@^10.4.2": @@ -1298,12 +1296,12 @@ "@types/websocket" "^1.0.5" websocket "^1.0.34" -"@polkadot/x-ws@^12.1.1": - version "12.1.2" - resolved "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-12.1.2.tgz" - integrity sha512-xmwBtn0WIstrviNuLNladsVHXUWeh4/HHAuCCeTp5Rld+8pJ6D1snhl+qvicmm4t1Si9mpb6y4yfnWFm5fLHVA== +"@polkadot/x-ws@^12.2.1": + version "12.2.1" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-12.2.1.tgz#8774bc8cd38194354e48fc92438c4ebb52929fce" + integrity sha512-jPfNR/QFwPmXCk9hGEAyCo50xBNHm3s+XavmpHEKQSulnLn5des5X/pKn+g8ttaO9nqrXYnUFO6VEmILgUa/IQ== dependencies: - "@polkadot/x-global" "12.1.2" + "@polkadot/x-global" "12.2.1" tslib "^2.5.0" ws "^8.13.0" @@ -1326,14 +1324,14 @@ "@substrate/smoldot-light" "0.7.9" eventemitter3 "^4.0.7" -"@substrate/connect@0.7.24": - version "0.7.24" - resolved "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.24.tgz" - integrity sha512-vF82taiM0yME+ibiJgEv0xn/NZd9TQ4atXk1AQCe2z82SEKzw0Lwx9ZLFEOvlgnh+Nc2EtQi7y4cXJ+48rOqxw== +"@substrate/connect@0.7.26": + version "0.7.26" + resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.7.26.tgz#a0ee5180c9cb2f29250d1219a32f7b7e7dea1196" + integrity sha512-uuGSiroGuKWj1+38n1kY5HReer5iL9bRwPCzuoLtqAOmI1fGI0hsSI2LlNQMAbfRgr7VRHXOk5MTuQf5ulsFRw== dependencies: "@substrate/connect-extension-protocol" "^1.0.1" eventemitter3 "^4.0.7" - smoldot "1.0.2" + smoldot "1.0.4" "@substrate/smoldot-light@0.7.9": version "0.7.9" @@ -1367,9 +1365,9 @@ integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== "@tsconfig/node16@^1.0.2": - version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz" - integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ== + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== "@types/bn.js@^5.1.1": version "5.1.1" @@ -1379,9 +1377,9 @@ "@types/node" "*" "@types/chai@^4.3.3": - version "4.3.4" - resolved "https://registry.npmjs.org/@types/chai/-/chai-4.3.4.tgz" - integrity sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw== + version "4.3.5" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.5.tgz#ae69bcbb1bebb68c4ac0b11e9d8ed04526b3562b" + integrity sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng== "@types/mocha@^10.0.0": version "10.0.1" @@ -1389,17 +1387,17 @@ integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q== "@types/node-fetch@^2.6.2": - version "2.6.3" - resolved "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz" - integrity sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w== + version "2.6.4" + resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.4.tgz#1bc3a26de814f6bf466b25aeb1473fa1afe6a660" + integrity sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg== dependencies: "@types/node" "*" form-data "^3.0.0" "@types/node@*": - version "18.15.11" - resolved "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz" - integrity sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q== + version "20.2.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.1.tgz#de559d4b33be9a808fd43372ccee822c70f39704" + integrity sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg== "@types/websocket@^1.0.5": version "1.0.5" @@ -1603,7 +1601,9 @@ camelcase@^6.0.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001449: - version "1.0.30001481" + version "1.0.30001488" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz#d19d7b6e913afae3e98f023db97c19e9ddc5e91f" + integrity sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ== chai@^4.3.6: version "4.3.7" @@ -1798,7 +1798,7 @@ deep-eql@^4.1.2: dependencies: type-detect "^4.0.0" -define-properties@^1.1.3, define-properties@^1.1.4: +define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz" integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== @@ -1834,7 +1834,9 @@ ed2curve@^0.3.0: tweetnacl "1.x.x" electron-to-chromium@^1.4.284: - version "1.4.374" + version "1.4.401" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.401.tgz#cbd2c332c4a833e9e8d2ec5b3a6cd85ec6920907" + integrity sha512-AswqHsYyEbfSn0x87n31Na/xttUqEAg7NUjpiyxC20MaWKLyadOYHMzyLdF78N1iw+FK8/2KHLpZxRdyRILgtA== elliptic@6.5.4: version "6.5.4" @@ -1994,10 +1996,10 @@ eventemitter3@^4.0.7: resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -eventemitter3@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.0.tgz" - integrity sha512-riuVbElZZNXLeLEoprfNYoDSwTBRR44X3mnhdI1YcnENpWTCsTTVZ2zFuqQcpoyqPQIUXdiPEU0ECAq0KQRaHg== +eventemitter3@^5.0.0, eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== ext@^1.1.2: version "1.7.0" @@ -2098,7 +2100,7 @@ function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" -functions-have-names@^1.2.2: +functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -2119,12 +2121,13 @@ get-func-name@^2.0.0: integrity sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig== get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz" - integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q== + version "1.2.1" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82" + integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== dependencies: function-bind "^1.1.1" has "^1.0.3" + has-proto "^1.0.1" has-symbols "^1.0.3" get-symbol-description@^1.0.0: @@ -2864,13 +2867,13 @@ regenerator-runtime@^0.13.11: integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== regexp.prototype.flags@^1.4.3: - version "1.4.3" - resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz" - integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + version "1.5.0" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" + integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - functions-have-names "^1.2.2" + define-properties "^1.2.0" + functions-have-names "^1.2.3" require-directory@^2.1.1: version "2.1.1" @@ -2963,10 +2966,10 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -smoldot@1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/smoldot/-/smoldot-1.0.2.tgz" - integrity sha512-IHhMzvXwyl6I5GA4JvfzM2OOp9wBO06AmjqT4nCoNms5PiLe74f/A+jIZIJKyY6eBhMpmECizyfeTneHO2wMFQ== +smoldot@1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/smoldot/-/smoldot-1.0.4.tgz#e4c38cedad68d699a11b5b9ce72bb75c891bfd98" + integrity sha512-N3TazI1C4GGrseFH/piWyZCCCRJTRx2QhDfrUKRT4SzILlW5m8ayZ3QTKICcz1C/536T9cbHHJyP7afxI6Mi1A== dependencies: pako "^2.0.4" ws "^8.8.1" @@ -3085,9 +3088,9 @@ ts-node@^10.9.1: yn "3.1.1" tslib@^2.1.0, tslib@^2.5.0: - version "2.5.0" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz" - integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== + version "2.5.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" + integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== tweetnacl@^1.0.3, tweetnacl@1.x.x: version "1.0.3"