From 4c14cf88bcbd0ea291a5073644330a3b470d1bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 13:58:10 +0100 Subject: [PATCH 01/22] Create test tree type --- packages/shared/src/types.ts | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index b174ede9f..7b674ec6e 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -2,6 +2,9 @@ import type { Blockchain, StorageValues } from '@acala-network/chopsticks' import type { Chain } from '@e2e-test/networks' import type { ApiPromise, WsProvider } from '@polkadot/api' +import { match } from 'ts-pattern' +import { afterAll, beforeAll, describe, test } from 'vitest' + export type Prettify = { [K in keyof T]: T[K] } & {} @@ -27,3 +30,54 @@ export type Client< teardown(): Promise pause(): Promise } + +type TestNode = { + kind: 'test' + /** + * The label used to identify the test node when `vitest.test` is called. + */ + label: string + /** + * A function returning a promise (actual test body). + * This is passed into `vitest.test(...)` during registration. + */ + testFn: () => Promise + flags?: { only?: boolean; skip?: boolean; timeout?: number } + meta?: Record +} + +type DescribeNode = { + kind: 'describe' + label: string + children: Node[] + beforeAll?: () => Promise + afterAll?: () => Promise + flags?: { only?: boolean; skip?: boolean } + meta?: Record +} + +/** + * A test tree, used to represent an E2E test suite. + */ +type Node = TestNode | DescribeNode + +export function runNode(node: Node) { + match(node) + .with({ kind: 'test' }, (testNode) => { + const t = testNode.flags?.only ? test.only : testNode.flags?.skip ? test.skip : test + + // Recall this is `test` from `vitest` + t(testNode.label, { timeout: testNode.flags?.timeout }, testNode.testFn) + }) + .with({ kind: 'describe' }, (describeNode) => { + const d = describeNode.flags?.only ? describe.only : describeNode.flags?.skip ? describe.skip : describe + + // Recall this is `describe` from `vitest` + d(describeNode.label, () => { + if (describeNode.beforeAll) beforeAll(describeNode.beforeAll) + if (describeNode.afterAll) afterAll(describeNode.afterAll) + describeNode.children.forEach(runNode) + }) + }) + .exhaustive() +} From 1ae976e2b8afbf3a98a9d3710b419b9e300e2566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 13:58:41 +0100 Subject: [PATCH 02/22] Refactor multisig E2E tests as PoC --- packages/shared/src/multisig.ts | 220 ++++++++++++++++++-------------- 1 file changed, 127 insertions(+), 93 deletions(-) diff --git a/packages/shared/src/multisig.ts b/packages/shared/src/multisig.ts index 4c899522d..6d0d58e01 100644 --- a/packages/shared/src/multisig.ts +++ b/packages/shared/src/multisig.ts @@ -6,6 +6,10 @@ import { encodeAddress } from '@polkadot/util-crypto' import { assert, describe, expect, test } from 'vitest' import { checkEvents } from './helpers/index.js' +// Rose-tree runner utilities +import { runNode } from './types.js' +import type { Node } from './types.js' + /// ------- /// Helpers /// ------- @@ -2209,97 +2213,127 @@ export function multisigE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, >(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - describe(testConfig.testSuiteName, async () => { - // Success tests - - test('basic 2-of-3 multisig creation and execution', async () => { - await basicMultisigTest(chain, testConfig.addressEncoding) - }) - - test('multisig cancellation works', async () => { - await multisigCancellationTest(chain, testConfig.addressEncoding) - }) - - test('second approval (with `approveAsMulti`) in 2-of-3 multisig is successful and does not lead to execution', async () => { - await approveAsMulti2Of3DoesNotExecuteTest(chain, testConfig.addressEncoding) - }) - - test('final approval with `approveAsMulti` does not lead to execution', async () => { - await finalApprovalApproveAsMultiTest(chain) - }) - - test('beginning multisig approval with `approveAsMulti` works', async () => { - await approveAsMultiFirstTest(chain, testConfig.addressEncoding) - }) - - // Failure tests (ordered by error enum variants) - - test('multisig cancellation with threshold < 2 fails', async () => { - await minimumThresholdCancelTest(chain) - }) - - test('creating a multisig with threshold < 2 fails', async () => { - await minimumThresholdAsMultiTest(chain) - }) - - test('repeated approval with `approveAsMulti` fails', async () => { - await approveAsMultiAlreadyApprovedTest(chain) - }) - - test('multisig creation with too few signatories fails', async () => { - await tooFewSignatoriesTest(chain) - }) - - test('multisig creation with too many signatories fails', async () => { - await tooManySignatoriesTest(chain) - }) - - test('multisig execution with remaining signatories out of order fails', async () => { - await signatoriesOutOfOrderInExecutionTest(chain) - }) - - test('multisig cancellation with remaining signatories out of order fails', async () => { - await cancelWithSignatoriesOutOfOrderTest(chain) - }) - - test('approval with signatories out of order fails', async () => { - await signatoriesOutOfOrderInApprovalTest(chain) - }) - - test('execution with sender in signatories fails', async () => { - await senderInSignatoriesInExecutionTest(chain) - }) - - test('cancellation with sender in signatories fails', async () => { - await senderInSignatoriesInCancellationTest(chain) - }) - - test('approval with sender in signatories fails', async () => { - await senderInSignatoriesInApprovalTest(chain) - }) - - test('cancelling a non-existent multisig operation fails', async () => { - await notFoundCancelTest(chain) - }) - - test('non-depositor tries to cancel multisig fails', async () => { - await notOwnerCancelTest(chain) - }) - - test('approval without timepoint fails', async () => { - await noTimepointTest(chain) - }) - - test('approval with wrong timepoint fails', async () => { - await wrongTimepointTest(chain) - }) - - test('first call with unexpected timepoint fails', async () => { - await unexpectedTimepointTest(chain) - }) - - test('approval with max weight too low fails', async () => { - await maxWeightTooLowTest(chain) - }) - }) + const suite: Node = { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + // ------------------ Success tests ------------------ + { + kind: 'test', + label: 'basic 2-of-3 multisig creation and execution', + testFn: () => basicMultisigTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: 'multisig cancellation works', + testFn: () => multisigCancellationTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: + 'second approval (with `approveAsMulti`) in 2-of-3 multisig is successful and does not lead to execution', + testFn: () => approveAsMulti2Of3DoesNotExecuteTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: 'final approval with `approveAsMulti` does not lead to execution', + testFn: () => finalApprovalApproveAsMultiTest(chain), + }, + { + kind: 'test', + label: 'beginning multisig approval with `approveAsMulti` works', + testFn: () => approveAsMultiFirstTest(chain, testConfig.addressEncoding), + }, + + // ------------------ Failure tests ------------------ + { + kind: 'test', + label: 'multisig cancellation with threshold < 2 fails', + testFn: () => minimumThresholdCancelTest(chain), + }, + { + kind: 'test', + label: 'creating a multisig with threshold < 2 fails', + testFn: () => minimumThresholdAsMultiTest(chain), + }, + { + kind: 'test', + label: 'repeated approval with `approveAsMulti` fails', + testFn: () => approveAsMultiAlreadyApprovedTest(chain), + }, + { + kind: 'test', + label: 'multisig creation with too few signatories fails', + testFn: () => tooFewSignatoriesTest(chain), + }, + { + kind: 'test', + label: 'multisig creation with too many signatories fails', + testFn: () => tooManySignatoriesTest(chain), + }, + { + kind: 'test', + label: 'multisig execution with remaining signatories out of order fails', + testFn: () => signatoriesOutOfOrderInExecutionTest(chain), + }, + { + kind: 'test', + label: 'multisig cancellation with remaining signatories out of order fails', + testFn: () => cancelWithSignatoriesOutOfOrderTest(chain), + }, + { + kind: 'test', + label: 'approval with signatories out of order fails', + testFn: () => signatoriesOutOfOrderInApprovalTest(chain), + }, + { + kind: 'test', + label: 'execution with sender in signatories fails', + testFn: () => senderInSignatoriesInExecutionTest(chain), + }, + { + kind: 'test', + label: 'cancellation with sender in signatories fails', + testFn: () => senderInSignatoriesInCancellationTest(chain), + }, + { + kind: 'test', + label: 'approval with sender in signatories fails', + testFn: () => senderInSignatoriesInApprovalTest(chain), + }, + { + kind: 'test', + label: 'cancelling a non-existent multisig operation fails', + testFn: () => notFoundCancelTest(chain), + }, + { + kind: 'test', + label: 'non-depositor tries to cancel multisig fails', + testFn: () => notOwnerCancelTest(chain), + }, + { + kind: 'test', + label: 'approval without timepoint fails', + testFn: () => noTimepointTest(chain), + }, + { + kind: 'test', + label: 'approval with wrong timepoint fails', + testFn: () => wrongTimepointTest(chain), + }, + { + kind: 'test', + label: 'first call with unexpected timepoint fails', + testFn: () => unexpectedTimepointTest(chain), + }, + { + kind: 'test', + label: 'approval with max weight too low fails', + testFn: () => maxWeightTooLowTest(chain), + }, + ], + } + + // Register the tree with Vitest + runNode(suite) } From 5db3fb952a191404fc07529d2bbaedf0cd9e46bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 17:21:55 +0100 Subject: [PATCH 03/22] Add some comments to test tree types --- packages/shared/src/types.ts | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index 7b674ec6e..ec7d101ec 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -31,7 +31,7 @@ export type Client< pause(): Promise } -type TestNode = { +export type TestNode = { kind: 'test' /** * The label used to identify the test node when `vitest.test` is called. @@ -46,10 +46,10 @@ type TestNode = { meta?: Record } -type DescribeNode = { +export type DescribeNode = { kind: 'describe' label: string - children: Node[] + children: TestTree[] beforeAll?: () => Promise afterAll?: () => Promise flags?: { only?: boolean; skip?: boolean } @@ -59,9 +59,25 @@ type DescribeNode = { /** * A test tree, used to represent an E2E test suite. */ -type Node = TestNode | DescribeNode +export type TestTree = TestNode | DescribeNode -export function runNode(node: Node) { +/** + * Create an end-to-end test tree, to be used in an E2E test suite. + * + * This function recursively walks an in-memory rose tree of `describe` / `test` nodes and + * registers them with Vitest. + * + * Call this exactly once per suite at module scope: + * ```ts + * const suite: TestTree = { … } + * registerTestTree(suite) + * ``` + * + * The function is intentionally side-effectful: each invocation calls + * `vitest.describe` / `vitest.test` immediately so that Vitest picks the tests + * up during collection. + */ +export function registerTestTree(node: TestTree) { match(node) .with({ kind: 'test' }, (testNode) => { const t = testNode.flags?.only ? test.only : testNode.flags?.skip ? test.skip : test @@ -76,7 +92,7 @@ export function runNode(node: Node) { d(describeNode.label, () => { if (describeNode.beforeAll) beforeAll(describeNode.beforeAll) if (describeNode.afterAll) afterAll(describeNode.afterAll) - describeNode.children.forEach(runNode) + describeNode.children.forEach(registerTestTree) }) }) .exhaustive() From e7b50caa6d3e6f46e2ff8d9d126618beaaded361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 17:22:21 +0100 Subject: [PATCH 04/22] Restructure multisig E2E tests with test tree --- packages/shared/src/multisig.ts | 51 ++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/packages/shared/src/multisig.ts b/packages/shared/src/multisig.ts index 6d0d58e01..3f00a02a9 100644 --- a/packages/shared/src/multisig.ts +++ b/packages/shared/src/multisig.ts @@ -3,12 +3,9 @@ import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' import { setupNetworks } from '@e2e-test/shared' import { encodeAddress } from '@polkadot/util-crypto' -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' import { checkEvents } from './helpers/index.js' - -// Rose-tree runner utilities -import { runNode } from './types.js' -import type { Node } from './types.js' +import type { TestTree } from './types.js' /// ------- /// Helpers @@ -2209,15 +2206,14 @@ async function maxWeightTooLowTest< assert(client.api.errors.multisig.MaxWeightTooLow.is(dispatchError.asModule)) } -export function multisigE2ETests< +export function successMultisigE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - const suite: Node = { +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { + return { kind: 'describe', - label: testConfig.testSuiteName, + label: 'success tests', children: [ - // ------------------ Success tests ------------------ { kind: 'test', label: 'basic 2-of-3 multisig creation and execution', @@ -2244,8 +2240,18 @@ export function multisigE2ETests< label: 'beginning multisig approval with `approveAsMulti` works', testFn: () => approveAsMultiFirstTest(chain, testConfig.addressEncoding), }, + ], + } +} - // ------------------ Failure tests ------------------ +export function failureMultisigE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain): TestTree { + return { + kind: 'describe', + label: 'failure tests', + children: [ { kind: 'test', label: 'multisig cancellation with threshold < 2 fails', @@ -2333,7 +2339,26 @@ export function multisigE2ETests< }, ], } +} - // Register the tree with Vitest - runNode(suite) +/** + * Default set of multisig end-to-end tests. + * + * Includes both success and failure cases. + * A test tree structure allows some extensibility in case a chain needs to + * change/add/remove default tests. + * + * @param chain - The chain to test. + * @param testConfig - Test configuration data - address encoding, top-level test suite name, etc. + * @returns A test tree structure. + */ +export function baseMultisigE2Etests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [successMultisigE2ETests(chain, testConfig), failureMultisigE2ETests(chain)], + } } From acbb0f11c8a04bb408b31d1b06b5e9a5974907b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 17:22:37 +0100 Subject: [PATCH 05/22] Refactor multisig E2E test --- packages/polkadot/src/polkadot.multisig.e2e.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/polkadot/src/polkadot.multisig.e2e.test.ts b/packages/polkadot/src/polkadot.multisig.e2e.test.ts index de207e620..7d887831b 100644 --- a/packages/polkadot/src/polkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/polkadot.multisig.e2e.test.ts @@ -1,5 +1,6 @@ import { polkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' -multisigE2ETests(polkadot, { testSuiteName: 'Polkadot Multisig', addressEncoding: 0 }) +registerTestTree(baseMultisigE2Etests(polkadot, { testSuiteName: 'Polkadot Multisig', addressEncoding: 0 })) From 8d4040fd936b035e5b8d06397df96d8698af144e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 17:22:56 +0100 Subject: [PATCH 06/22] Update Polkadot multisig E2E snapshots --- .../polkadot.multisig.e2e.test.ts.snap | 278 +++++++++--------- 1 file changed, 139 insertions(+), 139 deletions(-) diff --git a/packages/polkadot/src/__snapshots__/polkadot.multisig.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.multisig.e2e.test.ts.snap index 89ba5b1e6..d7a7ac779 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.multisig.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Polkadot Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`Polkadot Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`Polkadot Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`Polkadot Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`Polkadot Multisig > approval with sender in signatories fails > events ] `; -exports[`Polkadot Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`Polkadot Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`Polkadot Multisig > approval with signatories out of order fails > even ] `; -exports[`Polkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`Polkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`Polkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`Polkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`Polkadot Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`Polkadot Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`Polkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`Polkadot Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`Polkadot Multisig > cancellation with sender in signatories fails > eve ] `; -exports[`Polkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`Polkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`Polkadot Multisig > cancelling a non-existent multisig operation fails ] `; -exports[`Polkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`Polkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`Polkadot Multisig > cancelling a non-existent multisig operation fails ] `; -exports[`Polkadot Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`Polkadot Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`Polkadot Multisig > creating a multisig with threshold < 2 fails > even ] `; -exports[`Polkadot Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`Polkadot Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`Polkadot Multisig > execution with sender in signatories fails > events ] `; -exports[`Polkadot Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`Polkadot Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`Polkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`Polkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`Polkadot Multisig > multisig cancellation with remaining signatories ou ] `; -exports[`Polkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`Polkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`Polkadot Multisig > multisig cancellation with remaining signatories ou ] `; -exports[`Polkadot Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`Polkadot Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`Polkadot Multisig > multisig cancellation with threshold < 2 fails > ev ] `; -exports[`Polkadot Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`Polkadot Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`Polkadot Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`Polkadot Multisig > multisig creation with too many signatories fails > ] `; -exports[`Polkadot Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`Polkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`Polkadot Multisig > multisig execution with remaining signatories out o ] `; -exports[`Polkadot Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`Polkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`Polkadot Multisig > multisig execution with remaining signatories out o ] `; -exports[`Polkadot Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`Polkadot Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`Polkadot Multisig > non-depositor tries to cancel multisig fails > even ] `; -exports[`Polkadot Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`Polkadot Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`Polkadot Multisig > repeated approval with \`approveAsMulti\` fails > e ] `; -exports[`Polkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`Polkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`Polkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`Polkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 ] `; -exports[`Polkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`Polkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`Polkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 ] `; -exports[`Polkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`Polkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { From feb9f56d53aad635ffb8cf83c2c43da0b2fee3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 24 Jul 2025 19:10:00 +0100 Subject: [PATCH 07/22] Apply E2E test tree refactor to all multisig tests --- .../assetHubKusama.multisig.e2e.test.ts.snap | 278 ++++----- .../bridgeHubKusama.multisig.e2e.test.ts.snap | 531 ++++++++++++++++++ .../coretimeKusama.multisig.e2e.test.ts.snap | 531 ++++++++++++++++++ .../kusama.multisig.e2e.test.ts.snap | 278 ++++----- .../peopleKusama.multisig.e2e.test.ts.snap | 278 ++++----- .../src/assetHubKusama.multisig.e2e.test.ts | 6 +- .../src/bridgeHubKusama.multisig.e2e.test.ts | 11 + .../src/coretimeKusama.multisig.e2e.test.ts | 11 + .../kusama/src/kusama.multisig.e2e.test.ts | 5 +- .../src/peopleKusama.multisig.e2e.test.ts | 6 +- ...assetHubPolkadot.multisig.e2e.test.ts.snap | 278 ++++----- ...ridgeHubPolkadot.multisig.e2e.test.ts.snap | 278 ++++----- ...lectivesPolkadot.multisig.e2e.test.ts.snap | 278 ++++----- ...coretimePolkadot.multisig.e2e.test.ts.snap | 278 ++++----- .../peoplePolkadot.multisig.e2e.test.ts.snap | 278 ++++----- .../src/assetHubPolkadot.multisig.e2e.test.ts | 8 +- .../bridgeHubPolkadot.multisig.e2e.test.ts | 8 +- .../collectivesPolkadot.multisig.e2e.test.ts | 8 +- .../src/coretimePolkadot.multisig.e2e.test.ts | 8 +- .../src/peoplePolkadot.multisig.e2e.test.ts | 6 +- 20 files changed, 2235 insertions(+), 1128 deletions(-) create mode 100644 packages/kusama/src/__snapshots__/bridgeHubKusama.multisig.e2e.test.ts.snap create mode 100644 packages/kusama/src/__snapshots__/coretimeKusama.multisig.e2e.test.ts.snap create mode 100644 packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts create mode 100644 packages/kusama/src/coretimeKusama.multisig.e2e.test.ts diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.multisig.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.multisig.e2e.test.ts.snap index 3d1912aa4..e4738cf58 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.multisig.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`AssetHubKusama Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`AssetHubKusama Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`AssetHubKusama Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`AssetHubKusama Multisig > approval with sender in signatories fails > e ] `; -exports[`AssetHubKusama Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`AssetHubKusama Multisig > approval with signatories out of order fails ] `; -exports[`AssetHubKusama Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`AssetHubKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`AssetHubKusama Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`AssetHubKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`AssetHubKusama Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`AssetHubKusama Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`AssetHubKusama Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`AssetHubKusama Multisig > cancellation with sender in signatories fails ] `; -exports[`AssetHubKusama Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`AssetHubKusama Multisig > cancelling a non-existent multisig operation ] `; -exports[`AssetHubKusama Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`AssetHubKusama Multisig > cancelling a non-existent multisig operation ] `; -exports[`AssetHubKusama Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`AssetHubKusama Multisig > creating a multisig with threshold < 2 fails ] `; -exports[`AssetHubKusama Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`AssetHubKusama Multisig > execution with sender in signatories fails > ] `; -exports[`AssetHubKusama Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`AssetHubKusama Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`AssetHubKusama Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`AssetHubKusama Multisig > multisig cancellation with remaining signator ] `; -exports[`AssetHubKusama Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`AssetHubKusama Multisig > multisig cancellation with remaining signator ] `; -exports[`AssetHubKusama Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`AssetHubKusama Multisig > multisig cancellation with threshold < 2 fail ] `; -exports[`AssetHubKusama Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`AssetHubKusama Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`AssetHubKusama Multisig > multisig creation with too many signatories f ] `; -exports[`AssetHubKusama Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`AssetHubKusama Multisig > multisig execution with remaining signatories ] `; -exports[`AssetHubKusama Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`AssetHubKusama Multisig > multisig execution with remaining signatories ] `; -exports[`AssetHubKusama Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`AssetHubKusama Multisig > non-depositor tries to cancel multisig fails ] `; -exports[`AssetHubKusama Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`AssetHubKusama Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`AssetHubKusama Multisig > repeated approval with \`approveAsMulti\` fai ] `; -exports[`AssetHubKusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`AssetHubKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`AssetHubKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`AssetHubKusama Multisig > second approval (with \`approveAsMulti\`) in ] `; -exports[`AssetHubKusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`AssetHubKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`AssetHubKusama Multisig > second approval (with \`approveAsMulti\`) in ] `; -exports[`AssetHubKusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`AssetHubKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/kusama/src/__snapshots__/bridgeHubKusama.multisig.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/bridgeHubKusama.multisig.e2e.test.ts.snap new file mode 100644 index 000000000..9efd3d491 --- /dev/null +++ b/packages/kusama/src/__snapshots__/bridgeHubKusama.multisig.e2e.test.ts.snap @@ -0,0 +1,531 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`BridgeHubKusama Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; + +exports[`BridgeHubKusama Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x06000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2400000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2400000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; + +exports[`BridgeHubKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; + +exports[`BridgeHubKusama Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; + +exports[`BridgeHubKusama Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x06000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x07000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x07000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2500000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x06000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2500000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; + +exports[`BridgeHubKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x04000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2500000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2500000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x08000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x01000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2400000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +[ + { + "data": { + "approving": "Fr4NzY1udSFFLzb2R3qxVQkwz9cZraWkyfH4h3mVVk7BK7P", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; diff --git a/packages/kusama/src/__snapshots__/coretimeKusama.multisig.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/coretimeKusama.multisig.e2e.test.ts.snap new file mode 100644 index 000000000..1fbb431ef --- /dev/null +++ b/packages/kusama/src/__snapshots__/coretimeKusama.multisig.e2e.test.ts.snap @@ -0,0 +1,531 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`CoretimeKusama Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; + +exports[`CoretimeKusama Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x06000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2100000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2100000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; + +exports[`CoretimeKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; + +exports[`CoretimeKusama Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; + +exports[`CoretimeKusama Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x06000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x07000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x07000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2300000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x06000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2300000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; + +exports[`CoretimeKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x04000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2300000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2300000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x08000000", + "index": "(rounded 40)", + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 20000)", + "refTime": "(rounded 1000000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x01000000", + "index": 41, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 1000000)", + "refTime": "(rounded 2100000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`CoretimeKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +[ + { + "data": { + "approving": "Fr4NzY1udSFFLzb2R3qxVQkwz9cZraWkyfH4h3mVVk7BK7P", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; diff --git a/packages/kusama/src/__snapshots__/kusama.multisig.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.multisig.e2e.test.ts.snap index bbfb6cfb0..963a5c07c 100644 --- a/packages/kusama/src/__snapshots__/kusama.multisig.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Kusama Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`Kusama Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`Kusama Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`Kusama Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`Kusama Multisig > approval with sender in signatories fails > events wh ] `; -exports[`Kusama Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`Kusama Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`Kusama Multisig > approval with signatories out of order fails > events ] `; -exports[`Kusama Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`Kusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`Kusama Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`Kusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`Kusama Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`Kusama Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`Kusama Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`Kusama Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`Kusama Multisig > cancellation with sender in signatories fails > event ] `; -exports[`Kusama Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`Kusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`Kusama Multisig > cancelling a non-existent multisig operation fails > ] `; -exports[`Kusama Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`Kusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`Kusama Multisig > cancelling a non-existent multisig operation fails > ] `; -exports[`Kusama Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`Kusama Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`Kusama Multisig > creating a multisig with threshold < 2 fails > events ] `; -exports[`Kusama Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`Kusama Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`Kusama Multisig > execution with sender in signatories fails > events w ] `; -exports[`Kusama Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`Kusama Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`Kusama Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`Kusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`Kusama Multisig > multisig cancellation with remaining signatories out ] `; -exports[`Kusama Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`Kusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`Kusama Multisig > multisig cancellation with remaining signatories out ] `; -exports[`Kusama Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`Kusama Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`Kusama Multisig > multisig cancellation with threshold < 2 fails > even ] `; -exports[`Kusama Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`Kusama Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`Kusama Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`Kusama Multisig > multisig creation with too many signatories fails > e ] `; -exports[`Kusama Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`Kusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`Kusama Multisig > multisig execution with remaining signatories out of ] `; -exports[`Kusama Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`Kusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`Kusama Multisig > multisig execution with remaining signatories out of ] `; -exports[`Kusama Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`Kusama Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`Kusama Multisig > non-depositor tries to cancel multisig fails > events ] `; -exports[`Kusama Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`Kusama Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`Kusama Multisig > repeated approval with \`approveAsMulti\` fails > eve ] `; -exports[`Kusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`Kusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`Kusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`Kusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 m ] `; -exports[`Kusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`Kusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`Kusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 m ] `; -exports[`Kusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`Kusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/kusama/src/__snapshots__/peopleKusama.multisig.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/peopleKusama.multisig.e2e.test.ts.snap index b6da4312a..6c9ad195d 100644 --- a/packages/kusama/src/__snapshots__/peopleKusama.multisig.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/peopleKusama.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`PeopleKusama Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`PeopleKusama Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`PeopleKusama Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`PeopleKusama Multisig > approval with sender in signatories fails > eve ] `; -exports[`PeopleKusama Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`PeopleKusama Multisig > approval with signatories out of order fails > ] `; -exports[`PeopleKusama Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`PeopleKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`PeopleKusama Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`PeopleKusama Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`PeopleKusama Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`PeopleKusama Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`PeopleKusama Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`PeopleKusama Multisig > cancellation with sender in signatories fails > ] `; -exports[`PeopleKusama Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`PeopleKusama Multisig > cancelling a non-existent multisig operation fa ] `; -exports[`PeopleKusama Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`PeopleKusama Multisig > cancelling a non-existent multisig operation fa ] `; -exports[`PeopleKusama Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`PeopleKusama Multisig > creating a multisig with threshold < 2 fails > ] `; -exports[`PeopleKusama Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`PeopleKusama Multisig > execution with sender in signatories fails > ev ] `; -exports[`PeopleKusama Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", - "callHash": "(hash)", - "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`PeopleKusama Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`PeopleKusama Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`PeopleKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`PeopleKusama Multisig > multisig cancellation with remaining signatorie ] `; -exports[`PeopleKusama Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`PeopleKusama Multisig > multisig cancellation with remaining signatorie ] `; -exports[`PeopleKusama Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`PeopleKusama Multisig > multisig cancellation with threshold < 2 fails ] `; -exports[`PeopleKusama Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "callHash": "(hash)", - "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`PeopleKusama Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`PeopleKusama Multisig > multisig creation with too many signatories fai ] `; -exports[`PeopleKusama Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`PeopleKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`PeopleKusama Multisig > multisig execution with remaining signatories o ] `; -exports[`PeopleKusama Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`PeopleKusama Multisig > multisig execution with remaining signatories o ] `; -exports[`PeopleKusama Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`PeopleKusama Multisig > non-depositor tries to cancel multisig fails > ] `; -exports[`PeopleKusama Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`PeopleKusama Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`PeopleKusama Multisig > repeated approval with \`approveAsMulti\` fails ] `; -exports[`PeopleKusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`PeopleKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "FoQJpPyadYccjavVdTWxpxU7rUEaYhfLCPwXgkfD6Zat9QP", + "callHash": "(hash)", + "multisig": "FZ29umykw5WDCAABs2BFzyztRn3BeJEUhqtbCFfKGZhS2kc", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "callHash": "(hash)", + "multisig": "EF9xmEeFv3nNVM3HyLAMTV5TU8jua5FRXCE116yfbbrZbCL", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`PeopleKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`PeopleKusama Multisig > second approval (with \`approveAsMulti\`) in 2- ] `; -exports[`PeopleKusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`PeopleKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`PeopleKusama Multisig > second approval (with \`approveAsMulti\`) in 2- ] `; -exports[`PeopleKusama Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`PeopleKusama Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts b/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts index b80df613b..aae98a001 100644 --- a/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts @@ -1,4 +1,6 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(assetHubKusama, { testSuiteName: 'AssetHubKusama Multisig', addressEncoding: 2 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree(baseMultisigE2Etests(assetHubKusama, { testSuiteName: 'AssetHubKusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts b/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts new file mode 100644 index 000000000..b87cb8603 --- /dev/null +++ b/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts @@ -0,0 +1,11 @@ +import { bridgeHubKusama } from '@e2e-test/networks/chains' + +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree( + baseMultisigE2Etests(bridgeHubKusama, { + testSuiteName: 'BridgeHubKusama Multisig', + addressEncoding: 2, + }), +) diff --git a/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts b/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts new file mode 100644 index 000000000..1b2fdda29 --- /dev/null +++ b/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts @@ -0,0 +1,11 @@ +import { coretimeKusama } from '@e2e-test/networks/chains' + +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree( + baseMultisigE2Etests(coretimeKusama, { + testSuiteName: 'CoretimeKusama Multisig', + addressEncoding: 2, + }), +) diff --git a/packages/kusama/src/kusama.multisig.e2e.test.ts b/packages/kusama/src/kusama.multisig.e2e.test.ts index bbd95f2f6..7ab85a601 100644 --- a/packages/kusama/src/kusama.multisig.e2e.test.ts +++ b/packages/kusama/src/kusama.multisig.e2e.test.ts @@ -1,5 +1,6 @@ import { kusama } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' -multisigE2ETests(kusama, { testSuiteName: 'Kusama Multisig', addressEncoding: 2 }) +registerTestTree(baseMultisigE2Etests(kusama, { testSuiteName: 'Kusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/peopleKusama.multisig.e2e.test.ts b/packages/kusama/src/peopleKusama.multisig.e2e.test.ts index 77d521323..836b776db 100644 --- a/packages/kusama/src/peopleKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.multisig.e2e.test.ts @@ -1,4 +1,6 @@ import { peopleKusama } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(peopleKusama, { testSuiteName: 'PeopleKusama Multisig', addressEncoding: 2 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree(baseMultisigE2Etests(peopleKusama, { testSuiteName: 'PeopleKusama Multisig', addressEncoding: 2 })) diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.multisig.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.multisig.e2e.test.ts.snap index 5cca60c31..a00e7b3b6 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.multisig.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`AssetHubPolkadot Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`AssetHubPolkadot Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`AssetHubPolkadot Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`AssetHubPolkadot Multisig > approval with sender in signatories fails > ] `; -exports[`AssetHubPolkadot Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`AssetHubPolkadot Multisig > approval with signatories out of order fail ] `; -exports[`AssetHubPolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`AssetHubPolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`AssetHubPolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`AssetHubPolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`AssetHubPolkadot Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`AssetHubPolkadot Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`AssetHubPolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`AssetHubPolkadot Multisig > cancellation with sender in signatories fai ] `; -exports[`AssetHubPolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`AssetHubPolkadot Multisig > cancelling a non-existent multisig operatio ] `; -exports[`AssetHubPolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`AssetHubPolkadot Multisig > cancelling a non-existent multisig operatio ] `; -exports[`AssetHubPolkadot Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`AssetHubPolkadot Multisig > creating a multisig with threshold < 2 fail ] `; -exports[`AssetHubPolkadot Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`AssetHubPolkadot Multisig > execution with sender in signatories fails ] `; -exports[`AssetHubPolkadot Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`AssetHubPolkadot Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`AssetHubPolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`AssetHubPolkadot Multisig > multisig cancellation with remaining signat ] `; -exports[`AssetHubPolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`AssetHubPolkadot Multisig > multisig cancellation with remaining signat ] `; -exports[`AssetHubPolkadot Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`AssetHubPolkadot Multisig > multisig cancellation with threshold < 2 fa ] `; -exports[`AssetHubPolkadot Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`AssetHubPolkadot Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`AssetHubPolkadot Multisig > multisig creation with too many signatories ] `; -exports[`AssetHubPolkadot Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`AssetHubPolkadot Multisig > multisig execution with remaining signatori ] `; -exports[`AssetHubPolkadot Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`AssetHubPolkadot Multisig > multisig execution with remaining signatori ] `; -exports[`AssetHubPolkadot Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`AssetHubPolkadot Multisig > non-depositor tries to cancel multisig fail ] `; -exports[`AssetHubPolkadot Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`AssetHubPolkadot Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`AssetHubPolkadot Multisig > repeated approval with \`approveAsMulti\` f ] `; -exports[`AssetHubPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`AssetHubPolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`AssetHubPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`AssetHubPolkadot Multisig > second approval (with \`approveAsMulti\`) i ] `; -exports[`AssetHubPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`AssetHubPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`AssetHubPolkadot Multisig > second approval (with \`approveAsMulti\`) i ] `; -exports[`AssetHubPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`AssetHubPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/__snapshots__/bridgeHubPolkadot.multisig.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/bridgeHubPolkadot.multisig.e2e.test.ts.snap index 4f377b944..a5004f0ce 100644 --- a/packages/polkadot/src/__snapshots__/bridgeHubPolkadot.multisig.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/bridgeHubPolkadot.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`BridgeHubPolkadot Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`BridgeHubPolkadot Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`BridgeHubPolkadot Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`BridgeHubPolkadot Multisig > approval with sender in signatories fails ] `; -exports[`BridgeHubPolkadot Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`BridgeHubPolkadot Multisig > approval with signatories out of order fai ] `; -exports[`BridgeHubPolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`BridgeHubPolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`BridgeHubPolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`BridgeHubPolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`BridgeHubPolkadot Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`BridgeHubPolkadot Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`BridgeHubPolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`BridgeHubPolkadot Multisig > cancellation with sender in signatories fa ] `; -exports[`BridgeHubPolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`BridgeHubPolkadot Multisig > cancelling a non-existent multisig operati ] `; -exports[`BridgeHubPolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`BridgeHubPolkadot Multisig > cancelling a non-existent multisig operati ] `; -exports[`BridgeHubPolkadot Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`BridgeHubPolkadot Multisig > creating a multisig with threshold < 2 fai ] `; -exports[`BridgeHubPolkadot Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`BridgeHubPolkadot Multisig > execution with sender in signatories fails ] `; -exports[`BridgeHubPolkadot Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`BridgeHubPolkadot Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`BridgeHubPolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`BridgeHubPolkadot Multisig > multisig cancellation with remaining signa ] `; -exports[`BridgeHubPolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`BridgeHubPolkadot Multisig > multisig cancellation with remaining signa ] `; -exports[`BridgeHubPolkadot Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`BridgeHubPolkadot Multisig > multisig cancellation with threshold < 2 f ] `; -exports[`BridgeHubPolkadot Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`BridgeHubPolkadot Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`BridgeHubPolkadot Multisig > multisig creation with too many signatorie ] `; -exports[`BridgeHubPolkadot Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`BridgeHubPolkadot Multisig > multisig execution with remaining signator ] `; -exports[`BridgeHubPolkadot Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`BridgeHubPolkadot Multisig > multisig execution with remaining signator ] `; -exports[`BridgeHubPolkadot Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`BridgeHubPolkadot Multisig > non-depositor tries to cancel multisig fai ] `; -exports[`BridgeHubPolkadot Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`BridgeHubPolkadot Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`BridgeHubPolkadot Multisig > repeated approval with \`approveAsMulti\` ] `; -exports[`BridgeHubPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`BridgeHubPolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`BridgeHubPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`BridgeHubPolkadot Multisig > second approval (with \`approveAsMulti\`) ] `; -exports[`BridgeHubPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`BridgeHubPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`BridgeHubPolkadot Multisig > second approval (with \`approveAsMulti\`) ] `; -exports[`BridgeHubPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`BridgeHubPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/__snapshots__/collectivesPolkadot.multisig.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/collectivesPolkadot.multisig.e2e.test.ts.snap index a94b26246..3218f3837 100644 --- a/packages/polkadot/src/__snapshots__/collectivesPolkadot.multisig.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/collectivesPolkadot.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`CollectivesPolkadot Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`CollectivesPolkadot Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`CollectivesPolkadot Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`CollectivesPolkadot Multisig > approval with sender in signatories fail ] `; -exports[`CollectivesPolkadot Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`CollectivesPolkadot Multisig > approval with signatories out of order f ] `; -exports[`CollectivesPolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`CollectivesPolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`CollectivesPolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`CollectivesPolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`CollectivesPolkadot Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`CollectivesPolkadot Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`CollectivesPolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`CollectivesPolkadot Multisig > cancellation with sender in signatories ] `; -exports[`CollectivesPolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`CollectivesPolkadot Multisig > cancelling a non-existent multisig opera ] `; -exports[`CollectivesPolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`CollectivesPolkadot Multisig > cancelling a non-existent multisig opera ] `; -exports[`CollectivesPolkadot Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`CollectivesPolkadot Multisig > creating a multisig with threshold < 2 f ] `; -exports[`CollectivesPolkadot Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`CollectivesPolkadot Multisig > execution with sender in signatories fai ] `; -exports[`CollectivesPolkadot Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`CollectivesPolkadot Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`CollectivesPolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`CollectivesPolkadot Multisig > multisig cancellation with remaining sig ] `; -exports[`CollectivesPolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`CollectivesPolkadot Multisig > multisig cancellation with remaining sig ] `; -exports[`CollectivesPolkadot Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`CollectivesPolkadot Multisig > multisig cancellation with threshold < 2 ] `; -exports[`CollectivesPolkadot Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`CollectivesPolkadot Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`CollectivesPolkadot Multisig > multisig creation with too many signator ] `; -exports[`CollectivesPolkadot Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`CollectivesPolkadot Multisig > multisig execution with remaining signat ] `; -exports[`CollectivesPolkadot Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`CollectivesPolkadot Multisig > multisig execution with remaining signat ] `; -exports[`CollectivesPolkadot Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`CollectivesPolkadot Multisig > non-depositor tries to cancel multisig f ] `; -exports[`CollectivesPolkadot Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`CollectivesPolkadot Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`CollectivesPolkadot Multisig > repeated approval with \`approveAsMulti\ ] `; -exports[`CollectivesPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`CollectivesPolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CollectivesPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`CollectivesPolkadot Multisig > second approval (with \`approveAsMulti\` ] `; -exports[`CollectivesPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`CollectivesPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`CollectivesPolkadot Multisig > second approval (with \`approveAsMulti\` ] `; -exports[`CollectivesPolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`CollectivesPolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/__snapshots__/coretimePolkadot.multisig.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/coretimePolkadot.multisig.e2e.test.ts.snap index a0dbc65ef..581413f7d 100644 --- a/packages/polkadot/src/__snapshots__/coretimePolkadot.multisig.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/coretimePolkadot.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`CoretimePolkadot Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`CoretimePolkadot Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`CoretimePolkadot Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`CoretimePolkadot Multisig > approval with sender in signatories fails > ] `; -exports[`CoretimePolkadot Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`CoretimePolkadot Multisig > approval with signatories out of order fail ] `; -exports[`CoretimePolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`CoretimePolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`CoretimePolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`CoretimePolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`CoretimePolkadot Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`CoretimePolkadot Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`CoretimePolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`CoretimePolkadot Multisig > cancellation with sender in signatories fai ] `; -exports[`CoretimePolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`CoretimePolkadot Multisig > cancelling a non-existent multisig operatio ] `; -exports[`CoretimePolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`CoretimePolkadot Multisig > cancelling a non-existent multisig operatio ] `; -exports[`CoretimePolkadot Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`CoretimePolkadot Multisig > creating a multisig with threshold < 2 fail ] `; -exports[`CoretimePolkadot Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`CoretimePolkadot Multisig > execution with sender in signatories fails ] `; -exports[`CoretimePolkadot Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`CoretimePolkadot Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`CoretimePolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`CoretimePolkadot Multisig > multisig cancellation with remaining signat ] `; -exports[`CoretimePolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`CoretimePolkadot Multisig > multisig cancellation with remaining signat ] `; -exports[`CoretimePolkadot Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`CoretimePolkadot Multisig > multisig cancellation with threshold < 2 fa ] `; -exports[`CoretimePolkadot Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`CoretimePolkadot Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`CoretimePolkadot Multisig > multisig creation with too many signatories ] `; -exports[`CoretimePolkadot Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`CoretimePolkadot Multisig > multisig execution with remaining signatori ] `; -exports[`CoretimePolkadot Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`CoretimePolkadot Multisig > multisig execution with remaining signatori ] `; -exports[`CoretimePolkadot Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`CoretimePolkadot Multisig > non-depositor tries to cancel multisig fail ] `; -exports[`CoretimePolkadot Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`CoretimePolkadot Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`CoretimePolkadot Multisig > repeated approval with \`approveAsMulti\` f ] `; -exports[`CoretimePolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`CoretimePolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`CoretimePolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`CoretimePolkadot Multisig > second approval (with \`approveAsMulti\`) i ] `; -exports[`CoretimePolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`CoretimePolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`CoretimePolkadot Multisig > second approval (with \`approveAsMulti\`) i ] `; -exports[`CoretimePolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`CoretimePolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/__snapshots__/peoplePolkadot.multisig.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/peoplePolkadot.multisig.e2e.test.ts.snap index d17d4aad9..551b8d96e 100644 --- a/packages/polkadot/src/__snapshots__/peoplePolkadot.multisig.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/peoplePolkadot.multisig.e2e.test.ts.snap @@ -1,8 +1,8 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`PeoplePolkadot Multisig > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; +exports[`PeoplePolkadot Multisig > failure tests > approval with max weight too low fails > events when Bob executes multisig operation with low weight 1`] = `[]`; -exports[`PeoplePolkadot Multisig > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > approval with sender in signatories fails > events when approval with sender in signatories fails 1`] = ` [ { "data": { @@ -27,7 +27,7 @@ exports[`PeoplePolkadot Multisig > approval with sender in signatories fails > e ] `; -exports[`PeoplePolkadot Multisig > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > approval with signatories out of order fails > events when approval with signatories out of order fails 1`] = ` [ { "data": { @@ -52,79 +52,13 @@ exports[`PeoplePolkadot Multisig > approval with signatories out of order fails ] `; -exports[`PeoplePolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; +exports[`PeoplePolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong block number 1`] = `[]`; -exports[`PeoplePolkadot Multisig > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; +exports[`PeoplePolkadot Multisig > failure tests > approval with wrong timepoint fails > events when Bob executes multisig operation with wrong extrinsic index 1`] = `[]`; -exports[`PeoplePolkadot Multisig > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`PeoplePolkadot Multisig > failure tests > approval without timepoint fails > events when Bob executes multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`PeoplePolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "result": "Ok", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigExecuted", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > cancellation with sender in signatories fails > events for cancellation with sender in signatories fails 1`] = ` [ { "data": { @@ -149,7 +83,7 @@ exports[`PeoplePolkadot Multisig > cancellation with sender in signatories fails ] `; -exports[`PeoplePolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with bogus call hash fails 1`] = ` [ { "data": { @@ -174,7 +108,7 @@ exports[`PeoplePolkadot Multisig > cancelling a non-existent multisig operation ] `; -exports[`PeoplePolkadot Multisig > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > cancelling a non-existent multisig operation fails > events when cancelling multisig with wrong signatories fails 1`] = ` [ { "data": { @@ -199,7 +133,7 @@ exports[`PeoplePolkadot Multisig > cancelling a non-existent multisig operation ] `; -exports[`PeoplePolkadot Multisig > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > creating a multisig with threshold < 2 fails > events when creating multisig with threshold < 2 fails 1`] = ` [ { "data": { @@ -224,7 +158,7 @@ exports[`PeoplePolkadot Multisig > creating a multisig with threshold < 2 fails ] `; -exports[`PeoplePolkadot Multisig > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > execution with sender in signatories fails > events when creation with sender in signatories fails 1`] = ` [ { "data": { @@ -249,27 +183,9 @@ exports[`PeoplePolkadot Multisig > execution with sender in signatories fails > ] `; -exports[`PeoplePolkadot Multisig > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` -[ - { - "data": { - "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "callHash": "(hash)", - "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigApproval", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; +exports[`PeoplePolkadot Multisig > failure tests > first call with unexpected timepoint fails > events when Alice starts multisig operation with \`approveAsMulti\` 1`] = `[]`; -exports[`PeoplePolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when Alice creates multisig for cancel ordering test 1`] = ` [ { "data": { @@ -283,7 +199,7 @@ exports[`PeoplePolkadot Multisig > multisig cancellation with remaining signator ] `; -exports[`PeoplePolkadot Multisig > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > multisig cancellation with remaining signatories out of order fails > events when multisig cancellation with signatories out of order fails 1`] = ` [ { "data": { @@ -308,7 +224,7 @@ exports[`PeoplePolkadot Multisig > multisig cancellation with remaining signator ] `; -exports[`PeoplePolkadot Multisig > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > multisig cancellation with threshold < 2 fails > events when multisig cancellation with threshold < 2 fails 1`] = ` [ { "data": { @@ -333,39 +249,7 @@ exports[`PeoplePolkadot Multisig > multisig cancellation with threshold < 2 fail ] `; -exports[`PeoplePolkadot Multisig > multisig cancellation works > events when Alice cancels multisig 1`] = ` -[ - { - "data": { - "callHash": "(hash)", - "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - "timepoint": { - "height": "(redacted)", - "index": 2, - }, - }, - "method": "MultisigCancelled", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` -[ - { - "data": { - "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - "callHash": "(hash)", - "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", - }, - "method": "NewMultisig", - "section": "multisig", - }, -] -`; - -exports[`PeoplePolkadot Multisig > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > multisig creation with too many signatories fails > events when creating multisig with too many signatories fails 1`] = ` [ { "data": { @@ -390,7 +274,7 @@ exports[`PeoplePolkadot Multisig > multisig creation with too many signatories f ] `; -exports[`PeoplePolkadot Multisig > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when Alice creates multisig for ordering test 1`] = ` [ { "data": { @@ -404,7 +288,7 @@ exports[`PeoplePolkadot Multisig > multisig execution with remaining signatories ] `; -exports[`PeoplePolkadot Multisig > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > multisig execution with remaining signatories out of order fails > events when multisig approval with signatories out of order fails 1`] = ` [ { "data": { @@ -429,7 +313,7 @@ exports[`PeoplePolkadot Multisig > multisig execution with remaining signatories ] `; -exports[`PeoplePolkadot Multisig > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > non-depositor tries to cancel multisig fails > events when non-depositor tries to cancel multisig fails 1`] = ` [ { "data": { @@ -454,7 +338,7 @@ exports[`PeoplePolkadot Multisig > non-depositor tries to cancel multisig fails ] `; -exports[`PeoplePolkadot Multisig > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` +exports[`PeoplePolkadot Multisig > failure tests > repeated approval with \`approveAsMulti\` fails > events when repeated approval with approveAsMulti fails 1`] = ` [ { "data": { @@ -479,7 +363,123 @@ exports[`PeoplePolkadot Multisig > repeated approval with \`approveAsMulti\` fai ] `; -exports[`PeoplePolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` +exports[`PeoplePolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice approves multisig call 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > basic 2-of-3 multisig creation and execution > events when Alice creates multisig 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Alice starts multisig with \`approveAsMulti\` 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > beginning multisig approval with \`approveAsMulti\` works > events when Bob executes with \`asMulti\` 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "result": "Ok", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigExecuted", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > final approval with \`approveAsMulti\` does not lead to execution > events when Bob makes final approval with approveAsMulti 1`] = ` +[ + { + "data": { + "approving": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "callHash": "(hash)", + "multisig": "13yhdvhAzML3u5MENoG8WCT9bTVT5H3C6pjdMpy4PZNisgbS", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigApproval", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > multisig cancellation works > events when Alice cancels multisig 1`] = ` +[ + { + "data": { + "callHash": "(hash)", + "cancelling": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + "timepoint": { + "height": "(redacted)", + "index": 2, + }, + }, + "method": "MultisigCancelled", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > multisig cancellation works > events when Alice creates multisig for cancellation 1`] = ` +[ + { + "data": { + "approving": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "callHash": "(hash)", + "multisig": "12fqSn9qVLJL4NY7Uua7bexEAVr9oCpD3e5xmdpNjtQszzBt", + }, + "method": "NewMultisig", + "section": "multisig", + }, +] +`; + +exports[`PeoplePolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Alice creates multisig for approveAsMulti test 1`] = ` [ { "data": { @@ -493,7 +493,7 @@ exports[`PeoplePolkadot Multisig > second approval (with \`approveAsMulti\`) in ] `; -exports[`PeoplePolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` +exports[`PeoplePolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Bob approves with approveAsMulti 1`] = ` [ { "data": { @@ -511,7 +511,7 @@ exports[`PeoplePolkadot Multisig > second approval (with \`approveAsMulti\`) in ] `; -exports[`PeoplePolkadot Multisig > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` +exports[`PeoplePolkadot Multisig > success tests > second approval (with \`approveAsMulti\`) in 2-of-3 multisig is successful and does not lead to execution > events when Charlie provides final approval 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts index 2a498b66a..cdc320bb4 100644 --- a/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts @@ -1,4 +1,8 @@ import { assetHubPolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(assetHubPolkadot, { testSuiteName: 'AssetHubPolkadot Multisig', addressEncoding: 0 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree( + baseMultisigE2Etests(assetHubPolkadot, { testSuiteName: 'AssetHubPolkadot Multisig', addressEncoding: 0 }), +) diff --git a/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts index 861e138a2..08d462518 100644 --- a/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts @@ -1,4 +1,8 @@ import { bridgeHubPolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(bridgeHubPolkadot, { testSuiteName: 'BridgeHubPolkadot Multisig', addressEncoding: 0 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree( + baseMultisigE2Etests(bridgeHubPolkadot, { testSuiteName: 'BridgeHubPolkadot Multisig', addressEncoding: 0 }), +) diff --git a/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts index cb432bd89..84de1dc80 100644 --- a/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts @@ -1,4 +1,8 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(collectivesPolkadot, { testSuiteName: 'CollectivesPolkadot Multisig', addressEncoding: 0 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree( + baseMultisigE2Etests(collectivesPolkadot, { testSuiteName: 'CollectivesPolkadot Multisig', addressEncoding: 0 }), +) diff --git a/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts b/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts index 7ea10a7d1..698f8a487 100644 --- a/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts @@ -1,4 +1,8 @@ import { coretimePolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(coretimePolkadot, { testSuiteName: 'CoretimePolkadot Multisig', addressEncoding: 0 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree( + baseMultisigE2Etests(coretimePolkadot, { testSuiteName: 'CoretimePolkadot Multisig', addressEncoding: 0 }), +) diff --git a/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts index ba831211f..16afeb58f 100644 --- a/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts @@ -1,4 +1,6 @@ import { peoplePolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' -multisigE2ETests(peoplePolkadot, { testSuiteName: 'PeoplePolkadot Multisig', addressEncoding: 0 }) +import { baseMultisigE2Etests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared/types' + +registerTestTree(baseMultisigE2Etests(peoplePolkadot, { testSuiteName: 'PeoplePolkadot Multisig', addressEncoding: 0 })) From 359b4c3292b9699932500273e6a768f458ab54e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Fri, 25 Jul 2025 13:45:42 +0100 Subject: [PATCH 08/22] Update `exports` to include `shared/types.ts` --- packages/kusama/src/assetHubKusama.multisig.e2e.test.ts | 4 +--- packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts | 4 +--- packages/kusama/src/coretimeKusama.multisig.e2e.test.ts | 4 +--- packages/kusama/src/kusama.multisig.e2e.test.ts | 4 +--- packages/kusama/src/peopleKusama.multisig.e2e.test.ts | 4 +--- packages/networks/src/chains/bridgehub.ts | 2 +- packages/networks/src/chains/collectives.ts | 2 +- .../polkadot/src/assetHubPolkadot.multisig.e2e.test.ts | 9 +++++---- .../polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts | 9 +++++---- .../src/collectivesPolkadot.multisig.e2e.test.ts | 9 +++++---- .../polkadot/src/coretimePolkadot.multisig.e2e.test.ts | 9 +++++---- .../polkadot/src/peoplePolkadot.multisig.e2e.test.ts | 4 +--- packages/polkadot/src/polkadot.multisig.e2e.test.ts | 4 +--- packages/shared/package.json | 5 +++++ 14 files changed, 34 insertions(+), 39 deletions(-) diff --git a/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts b/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts index aae98a001..ac719ece2 100644 --- a/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts @@ -1,6 +1,4 @@ import { assetHubKusama } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree(baseMultisigE2Etests(assetHubKusama, { testSuiteName: 'AssetHubKusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts b/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts index b87cb8603..aba2f661f 100644 --- a/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts @@ -1,7 +1,5 @@ import { bridgeHubKusama } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree( baseMultisigE2Etests(bridgeHubKusama, { diff --git a/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts b/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts index 1b2fdda29..f3f22fd78 100644 --- a/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts @@ -1,7 +1,5 @@ import { coretimeKusama } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree( baseMultisigE2Etests(coretimeKusama, { diff --git a/packages/kusama/src/kusama.multisig.e2e.test.ts b/packages/kusama/src/kusama.multisig.e2e.test.ts index 7ab85a601..c3b7eb875 100644 --- a/packages/kusama/src/kusama.multisig.e2e.test.ts +++ b/packages/kusama/src/kusama.multisig.e2e.test.ts @@ -1,6 +1,4 @@ import { kusama } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree(baseMultisigE2Etests(kusama, { testSuiteName: 'Kusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/peopleKusama.multisig.e2e.test.ts b/packages/kusama/src/peopleKusama.multisig.e2e.test.ts index 836b776db..9e83de59a 100644 --- a/packages/kusama/src/peopleKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.multisig.e2e.test.ts @@ -1,6 +1,4 @@ import { peopleKusama } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree(baseMultisigE2Etests(peopleKusama, { testSuiteName: 'PeopleKusama Multisig', addressEncoding: 2 })) diff --git a/packages/networks/src/chains/bridgehub.ts b/packages/networks/src/chains/bridgehub.ts index 8ced446b0..3f9c31ee2 100644 --- a/packages/networks/src/chains/bridgehub.ts +++ b/packages/networks/src/chains/bridgehub.ts @@ -21,7 +21,7 @@ const getInitStorages = (_config: typeof custom.bridgeHubPolkadot | typeof custo export const bridgeHubPolkadot = defineChain({ name: 'bridgeHubPolkadot', - endpoint: 'wss://polkadot-bridge-hub-rpc.polkadot.io', + endpoint: 'wss://sys.ibp.network/bridgehub-polkadot', paraId: 1002, custom: custom.bridgeHubPolkadot, initStorages: getInitStorages(custom.bridgeHubPolkadot), diff --git a/packages/networks/src/chains/collectives.ts b/packages/networks/src/chains/collectives.ts index 2e501f84f..16ddcfd58 100644 --- a/packages/networks/src/chains/collectives.ts +++ b/packages/networks/src/chains/collectives.ts @@ -19,7 +19,7 @@ const getInitStorages = (_config: typeof custom.collectivesPolkadot) => ({ export const collectivesPolkadot = defineChain({ name: 'collectivesPolkadot', - endpoint: 'wss://polkadot-collectives-rpc.polkadot.io', + endpoint: 'wss://collectives-polkadot-rpc.n.dwellir.com', paraId: 1001, custom: custom.collectivesPolkadot, initStorages: getInitStorages(custom.collectivesPolkadot), diff --git a/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts index cdc320bb4..73f3e6a7f 100644 --- a/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts @@ -1,8 +1,9 @@ import { assetHubPolkadot } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree( - baseMultisigE2Etests(assetHubPolkadot, { testSuiteName: 'AssetHubPolkadot Multisig', addressEncoding: 0 }), + baseMultisigE2Etests(assetHubPolkadot, { + testSuiteName: 'AssetHubPolkadot Multisig', + addressEncoding: 0, + }), ) diff --git a/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts index 08d462518..ba3fe420b 100644 --- a/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts @@ -1,8 +1,9 @@ import { bridgeHubPolkadot } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree( - baseMultisigE2Etests(bridgeHubPolkadot, { testSuiteName: 'BridgeHubPolkadot Multisig', addressEncoding: 0 }), + baseMultisigE2Etests(bridgeHubPolkadot, { + testSuiteName: 'BridgeHubPolkadot Multisig', + addressEncoding: 0, + }), ) diff --git a/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts index 84de1dc80..3ca3fda62 100644 --- a/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts @@ -1,8 +1,9 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree( - baseMultisigE2Etests(collectivesPolkadot, { testSuiteName: 'CollectivesPolkadot Multisig', addressEncoding: 0 }), + baseMultisigE2Etests(collectivesPolkadot, { + testSuiteName: 'CollectivesPolkadot Multisig', + addressEncoding: 0, + }), ) diff --git a/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts b/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts index 698f8a487..91e312c2c 100644 --- a/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts @@ -1,8 +1,9 @@ import { coretimePolkadot } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree( - baseMultisigE2Etests(coretimePolkadot, { testSuiteName: 'CoretimePolkadot Multisig', addressEncoding: 0 }), + baseMultisigE2Etests(coretimePolkadot, { + testSuiteName: 'CoretimePolkadot Multisig', + addressEncoding: 0, + }), ) diff --git a/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts index 16afeb58f..20ea7c216 100644 --- a/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts @@ -1,6 +1,4 @@ import { peoplePolkadot } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree(baseMultisigE2Etests(peoplePolkadot, { testSuiteName: 'PeoplePolkadot Multisig', addressEncoding: 0 })) diff --git a/packages/polkadot/src/polkadot.multisig.e2e.test.ts b/packages/polkadot/src/polkadot.multisig.e2e.test.ts index 7d887831b..38d226220 100644 --- a/packages/polkadot/src/polkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/polkadot.multisig.e2e.test.ts @@ -1,6 +1,4 @@ import { polkadot } from '@e2e-test/networks/chains' - -import { baseMultisigE2Etests } from '@e2e-test/shared' -import { registerTestTree } from '@e2e-test/shared/types' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' registerTestTree(baseMultisigE2Etests(polkadot, { testSuiteName: 'Polkadot Multisig', addressEncoding: 0 })) diff --git a/packages/shared/package.json b/packages/shared/package.json index a0fe14f8a..853c0e7a8 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -37,6 +37,11 @@ "import": "./dist/esm/xcm/index.js", "default": "./dist/esm/xcm/index.js" }, + "./types": { + "require": "./dist/cjs/types.js", + "import": "./dist/esm/types.js", + "default": "./dist/esm/types.js" + }, "./*": { "require": "./dist/cjs/*.js", "import": "./dist/esm/*.js", From 4c9a28897039240944f46b40b41be5828b3c8e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Sat, 26 Jul 2025 01:26:10 +0100 Subject: [PATCH 09/22] Reverto to per-test client setup in E2E suites --- packages/shared/src/collectives.ts | 11 ++- packages/shared/src/governance.ts | 21 +++-- packages/shared/src/nomination-pools.ts | 40 +++++---- packages/shared/src/people.ts | 36 +++++--- packages/shared/src/scheduler.ts | 115 +++++++++++++++--------- packages/shared/src/vesting.ts | 32 ++++--- 6 files changed, 160 insertions(+), 95 deletions(-) diff --git a/packages/shared/src/collectives.ts b/packages/shared/src/collectives.ts index 222142925..ce7540431 100644 --- a/packages/shared/src/collectives.ts +++ b/packages/shared/src/collectives.ts @@ -20,7 +20,12 @@ import { setupNetworks } from './setup.js' * @param destClient The destination chain that is intented to execute whitelist call * @param collectivesClient Collectives parachain */ -export async function fellowshipWhitelistCall(destClient: Client, collectivesClient: Client) { +export async function fellowshipWhitelistCall< + TCustom extends Record | undefined, + TInitStoragesDest extends Record> | undefined, + TInitStoragesPara extends Record> | undefined, +>(destChain: Chain, collectivesChain: Chain) { + const [destClient, collectivesClient] = await setupNetworks(destChain, collectivesChain) /** * Example 32 byte call hash; value is not important for the test */ @@ -100,10 +105,8 @@ export function collectivesChainE2ETests< testConfig: { testSuiteName: string }, ) { describe(testConfig.testSuiteName, async () => { - const [relayClient, collectivesClient] = await setupNetworks(relayChain, collectivesChain) - test('whitelisting a call by fellowship', async () => { - await fellowshipWhitelistCall(relayClient, collectivesClient) + await fellowshipWhitelistCall(relayChain, collectivesChain) }) }) } diff --git a/packages/shared/src/governance.ts b/packages/shared/src/governance.ts index e10f0a8f2..6200cdfb0 100644 --- a/packages/shared/src/governance.ts +++ b/packages/shared/src/governance.ts @@ -2,7 +2,7 @@ import { BN } from 'bn.js' import { assert, describe, test } from 'vitest' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, checkSystemEvents, objectCmp, scheduleInlineCallWithOrigin } from './helpers/index.js' import { sendTransaction } from '@acala-network/chopsticks-testing' @@ -105,7 +105,9 @@ function referendumCmp( export async function referendumLifecycleTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client, addressEncoding: number) { +>(chain: Chain, addressEncoding: number) { + const [client] = await setupNetworks(chain) + // Fund test accounts not already provisioned in the test chain spec. await client.dev.setStorage({ System: { @@ -705,7 +707,8 @@ export async function referendumLifecycleTest< export async function referendumLifecycleKillTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client, addressEncoding: number) { +>(chain: Chain, addressEncoding: number) { + const [client] = await setupNetworks(chain) // Fund test accounts not already provisioned in the test chain spec. await client.dev.setStorage({ System: { @@ -832,7 +835,9 @@ export async function referendumLifecycleKillTest< export async function preimageTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const encodedProposal = client.api.tx.treasury.spendLocal(1e10, devAccounts.bob.address).method const preimageTx = client.api.tx.preimage.notePreimage(encodedProposal.toHex()) const preImageEvents = await sendTransaction(preimageTx.signAsync(devAccounts.alice)) @@ -878,18 +883,16 @@ export function governanceE2ETests< TInitStorages extends Record> | undefined, >(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { describe(testConfig.testSuiteName, async () => { - const [client] = await setupNetworks(chain) - test('referendum lifecycle test - submission, decision deposit, various voting should all work', async () => { - await referendumLifecycleTest(client, testConfig.addressEncoding) + await referendumLifecycleTest(chain, testConfig.addressEncoding) }) test('referendum lifecycle test 2 - submission, decision deposit, and killing should work', async () => { - await referendumLifecycleKillTest(client, testConfig.addressEncoding) + await referendumLifecycleKillTest(chain, testConfig.addressEncoding) }) test('preimage submission, query and removal works', async () => { - await preimageTest(client) + await preimageTest(chain) }) }) } diff --git a/packages/shared/src/nomination-pools.ts b/packages/shared/src/nomination-pools.ts index 8bede9380..7cebfce41 100644 --- a/packages/shared/src/nomination-pools.ts +++ b/packages/shared/src/nomination-pools.ts @@ -1,7 +1,7 @@ import { encodeAddress } from '@polkadot/util-crypto' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, @@ -96,7 +96,8 @@ async function createNominationPool( async function nominationPoolCreationFailureTest< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) const minJoinBond = (await client.api.query.nominationPools.minJoinBond()).toNumber() const minCreateBond = (await client.api.query.nominationPools.minCreateBond()).toNumber() const existentialDep = client.api.consts.balances.existentialDeposit.toNumber() @@ -166,7 +167,8 @@ async function nominationPoolCreationFailureTest< async function nominationPoolLifecycleTest< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(client: Client, addressEncoding: number) { +>(chain: Chain, addressEncoding: number) { + const [client] = await setupNetworks(chain) const ferdie = defaultAccountsSr25519.keyring.addFromUri('//Ferdie') // Fund test accounts not already provisioned in the test chain spec. @@ -257,7 +259,7 @@ async function nominationPoolLifecycleTest< await client.dev.newBlock() - await checkEvents(updateRolesEvents, 'staking', 'nominationPools').toMatchSnapshot('update roles events') + await checkEvents(updateRolesEvents, 'nominationPools').toMatchSnapshot('update roles events') poolData = await client.api.query.nominationPools.bondedPools(nomPoolId) assert(poolData.isSome, 'Pool should still exist after roles are updated') @@ -620,7 +622,9 @@ async function nominationPoolLifecycleTest< async function nominationPoolSetMetadataTest< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const preLastPoolId = (await client.api.query.nominationPools.lastPoolId()).toNumber() const createNomPoolEvents = await createNominationPool( @@ -677,7 +681,9 @@ async function nominationPoolSetMetadataTest< async function nominationPoolDoubleJoinError< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const preLastPoolId = (await client.api.query.nominationPools.lastPoolId()).toNumber() const firstPoolId = preLastPoolId + 1 @@ -802,7 +808,9 @@ async function nominationPoolDoubleJoinError< async function nominationPoolGlobalConfigTest< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const one = new u32(client.api.registry, 1) const preMinJoinBond = (await client.api.query.nominationPools.minJoinBond()).toNumber() @@ -878,7 +886,9 @@ async function nominationPoolGlobalConfigTest< async function nominationPoolsUpdateRolesTest< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(client: Client, addressEncoding: number) { +>(chain: Chain, addressEncoding: number) { + const [client] = await setupNetworks(chain) + const preLastPoolId = (await client.api.query.nominationPools.lastPoolId()).toNumber() const poolId = preLastPoolId + 1 @@ -1052,30 +1062,28 @@ export function nominationPoolsE2ETests< TInitStoragesRelay extends Record> | undefined, >(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { describe(testConfig.testSuiteName, async () => { - const [client] = await setupNetworks(chain) - test('nomination pool lifecycle test', async () => { - await nominationPoolLifecycleTest(client, testConfig.addressEncoding) + await nominationPoolLifecycleTest(chain, testConfig.addressEncoding) }) test('nomination pool creation with insufficient funds', async () => { - await nominationPoolCreationFailureTest(client) + await nominationPoolCreationFailureTest(chain) }) test('nomination pool metadata test', async () => { - await nominationPoolSetMetadataTest(client) + await nominationPoolSetMetadataTest(chain) }) test('nomination pool double join test: an account can only ever be in one pool at a time', async () => { - await nominationPoolDoubleJoinError(client) + await nominationPoolDoubleJoinError(chain) }) test('nomination pool global config test', async () => { - await nominationPoolGlobalConfigTest(client) + await nominationPoolGlobalConfigTest(chain) }) test('nomination pools update roles test', async () => { - await nominationPoolsUpdateRolesTest(client, testConfig.addressEncoding) + await nominationPoolsUpdateRolesTest(chain, testConfig.addressEncoding) }) }) } diff --git a/packages/shared/src/people.ts b/packages/shared/src/people.ts index 3b00a4c35..ed136e10d 100644 --- a/packages/shared/src/people.ts +++ b/packages/shared/src/people.ts @@ -21,7 +21,7 @@ import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } fro import { encodeAddress } from '@polkadot/util-crypto' import type { HexString } from '@polkadot/util/types' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, @@ -98,7 +98,9 @@ async function sendXcmFromRelayToPeople( export async function setIdentityThenRequestAndProvideJudgement< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(peopleClient: Client) { +>(peopleChain: Chain) { + const [peopleClient] = await setupNetworks(peopleChain) + const querier = peopleClient.api.query const txApi = peopleClient.api.tx @@ -214,7 +216,9 @@ export async function setIdentityThenRequestAndProvideJudgement< export async function setIdentityRequestJudgementTwiceThenResetIdentity< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(peopleClient: Client) { +>(peopleChain: Chain) { + const [peopleClient] = await setupNetworks(peopleChain) + const querier = peopleClient.api.query const txApi = peopleClient.api.tx @@ -349,7 +353,9 @@ export async function setIdentityRequestJudgementTwiceThenResetIdentity< export async function setIdentityThenRequesThenCancelThenClear< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(peopleClient: Client) { +>(peopleChain: Chain) { + const [peopleClient] = await setupNetworks(peopleChain) + const querier = peopleClient.api.query const txApi = peopleClient.api.tx @@ -444,7 +450,9 @@ export async function setIdentityThenRequesThenCancelThenClear< export async function setIdentityThenAddSubsThenRemove< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(peopleClient: Client, addressEncoding: number) { +>(peopleChain: Chain, addressEncoding: number) { + const [peopleClient] = await setupNetworks(peopleChain) + const querier = peopleClient.api.query const txApi = peopleClient.api.tx @@ -582,10 +590,12 @@ export async function addRegistrarViaRelayAsRoot< TInitStoragesRelay extends Record> | undefined, TInitStoragesPara extends Record> | undefined, >( - relayClient: Client, - peopleClient: Client, + relayChain: Chain, + peopleChain: Chain, addressEncoding: number, ) { + const [relayClient, peopleClient] = await setupNetworks(relayChain, peopleChain) + /** * Executing extrinsic with wrong origin */ @@ -721,26 +731,24 @@ export function peopleChainE2ETests< testConfig: { testSuiteName: string; addressEncoding: number }, ) { describe(testConfig.testSuiteName, async () => { - const [relayClient, peopleClient] = await setupNetworks(relayChain, peopleChain) - test('setting on-chain identity and requesting judgement should work', async () => { - await setIdentityThenRequestAndProvideJudgement(peopleClient) + await setIdentityThenRequestAndProvideJudgement(peopleChain) }) test('setting an on-chain identity, requesting 2 judgements, having 1 provided, and then resetting the identity should work', async () => { - await setIdentityRequestJudgementTwiceThenResetIdentity(peopleClient) + await setIdentityRequestJudgementTwiceThenResetIdentity(peopleChain) }) test('setting on-chain identity, requesting judgement, cancelling the request and then clearing the identity should work', async () => { - await setIdentityThenRequesThenCancelThenClear(peopleClient) + await setIdentityThenRequesThenCancelThenClear(peopleChain) }) test('setting on-chain identity, adding sub-identities, removing one, and having another remove itself should work', async () => { - await setIdentityThenAddSubsThenRemove(peopleClient, testConfig.addressEncoding) + await setIdentityThenAddSubsThenRemove(peopleChain, testConfig.addressEncoding) }) test('adding a registrar as root from the relay chain works', async () => { - await addRegistrarViaRelayAsRoot(relayClient, peopleClient, testConfig.addressEncoding) + await addRegistrarViaRelayAsRoot(relayChain, peopleChain, testConfig.addressEncoding) }) }) } diff --git a/packages/shared/src/scheduler.ts b/packages/shared/src/scheduler.ts index 315e31eb0..20ad5cad2 100644 --- a/packages/shared/src/scheduler.ts +++ b/packages/shared/src/scheduler.ts @@ -75,7 +75,9 @@ const REPETITIONS = 3 export async function scheduleBadOriginTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() const call = client.api.tx.system.remark('test').method.toHex() const scheduleTx = client.api.tx.scheduler.schedule(currBlockNumber, null, 0, call) @@ -89,7 +91,9 @@ export async function scheduleBadOriginTest< export async function scheduleNamedBadOriginTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() const call = client.api.tx.system.remark('test').method.toHex() @@ -112,7 +116,9 @@ export async function scheduleNamedBadOriginTest< export async function cancelScheduledTaskBadOriginTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const call = client.api.tx.system.remark('test').method.toHex() const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() const scheduleTx = client.api.tx.scheduler.schedule(currBlockNumber + 2, null, 0, call) @@ -153,7 +159,9 @@ export async function cancelScheduledTaskBadOriginTest< export async function cancelNamedScheduledTaskBadOriginTest< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const call = client.api.tx.system.remark('test').method.toHex() const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -198,7 +206,9 @@ export async function cancelNamedScheduledTaskBadOriginTest< export async function scheduledCallExecutes< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) let currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -255,7 +265,9 @@ export async function scheduledCallExecutes< export async function scheduledNamedCallExecutes< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) const taskId = sha256AsU8a('task_id') @@ -314,7 +326,9 @@ export async function scheduledNamedCallExecutes< export async function cancelScheduledTask< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) let currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -366,7 +380,9 @@ export async function cancelScheduledTask< export async function cancelScheduledNamedTask< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) const taskId = sha256AsU8a('task_id') @@ -412,7 +428,9 @@ export async function cancelScheduledNamedTask< export async function scheduleTaskAfterDelay< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) let currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -475,7 +493,9 @@ export async function scheduleTaskAfterDelay< export async function scheduleNamedTaskAfterDelay< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) const taskId = sha256AsU8a('task_id') @@ -547,7 +567,8 @@ export async function scheduleNamedTaskAfterDelay< export async function scheduledOverweightCallFails< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) // Call whose weight will be artifically inflated const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) @@ -622,7 +643,9 @@ export async function scheduledOverweightCallFails< async function scheduleLookupCall< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const encodedProposal = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1).method const preimageTx = client.api.tx.preimage.notePreimage(encodedProposal.toHex()) const preImageEvents = await sendTransaction(preimageTx.signAsync(defaultAccountsSr25519.alice)) @@ -681,7 +704,9 @@ async function scheduleLookupCall< export async function schedulePreimagedCall< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const encodedProposal = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1).method // Note the preimage @@ -779,10 +804,12 @@ async function testPeriodicTask< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, >( - client: Client, + chain: Chain, scheduleTx: SubmittableExtrinsic<'promise', ISubmittableResult>, taskId: Uint8Array | null, ) { + const [client] = await setupNetworks(chain) + scheduleInlineCallWithOrigin(client, scheduleTx.method.toHex(), { system: 'Root' }) const initialTotalIssuance = await client.api.query.balances.totalIssuance() const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) @@ -877,7 +904,9 @@ async function testPeriodicTask< export async function schedulePeriodicTask< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -888,7 +917,7 @@ export async function schedulePeriodicTask< adjustIssuanceTx, // call ) - await testPeriodicTask(client, scheduleTx, null) + await testPeriodicTask(chain, scheduleTx, null) } /** @@ -901,7 +930,9 @@ export async function schedulePeriodicTask< export async function scheduleNamedPeriodicTask< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) const taskId = sha256AsU8a('task_id') const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -914,7 +945,7 @@ export async function scheduleNamedPeriodicTask< adjustIssuanceTx, // call ) - await testPeriodicTask(client, scheduleNamedTx, taskId) + await testPeriodicTask(chain, scheduleNamedTx, taskId) } /** @@ -930,7 +961,9 @@ export async function scheduleNamedPeriodicTask< export async function schedulePriorityWeightedTasks< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const adjustIssuanceHighTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 2) const adjustIssuanceLowTx = client.api.tx.balances.forceAdjustTotalIssuance('Increase', 1) @@ -1058,7 +1091,8 @@ export async function schedulePriorityWeightedTasks< export async function scheduleWithRetryConfig< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) // Create a task that will fail - remarkWithEvent requires signed origin const failingTx = client.api.tx.system.remarkWithEvent('will_fail') const initialBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() @@ -1173,7 +1207,8 @@ export async function scheduleWithRetryConfig< export async function scheduleNamedWithRetryConfig< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) // Create a task that will fail - remarkWithEvent requires signed origin const failingTx = client.api.tx.system.remarkWithEvent('will_fail') const taskId = sha256AsU8a('retry_task') @@ -1320,78 +1355,76 @@ export function schedulerE2ETests< TInitStoragesRelay extends Record> | undefined, >(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { describe(testConfig.testSuiteName, async () => { - const [client] = await setupNetworks(chain) - test('schedule task with wrong origin', async () => { - await scheduleBadOriginTest(client) + await scheduleBadOriginTest(chain) }) test('schedule named task with wrong origin', async () => { - await scheduleNamedBadOriginTest(client) + await scheduleNamedBadOriginTest(chain) }) test('cancel scheduled task with wrong origin', async () => { - await cancelScheduledTaskBadOriginTest(client) + await cancelScheduledTaskBadOriginTest(chain) }) test('cancel named scheduled task with wrong origin', async () => { - await cancelNamedScheduledTaskBadOriginTest(client) + await cancelNamedScheduledTaskBadOriginTest(chain) }) test('scheduling a call is possible, and the call itself succeeds', async () => { - await scheduledCallExecutes(client) + await scheduledCallExecutes(chain) }) test('scheduling a named call is possible, and the call itself succeeds', async () => { - await scheduledNamedCallExecutes(client) + await scheduledNamedCallExecutes(chain) }) test('cancelling a scheduled task is possible', async () => { - await cancelScheduledTask(client) + await cancelScheduledTask(chain) }) test('cancelling a named scheduled task is possible', async () => { - await cancelScheduledNamedTask(client) + await cancelScheduledNamedTask(chain) }) test('scheduling a task after a delay is possible', async () => { - await scheduleTaskAfterDelay(client) + await scheduleTaskAfterDelay(chain) }) test('scheduling a periodic task is possible', async () => { - await schedulePeriodicTask(client) + await schedulePeriodicTask(chain) }) test('scheduling a named periodic task that executes multiple times', async () => { - await scheduleNamedPeriodicTask(client) + await scheduleNamedPeriodicTask(chain) }) test('scheduling a named task after a delay is possible', async () => { - await scheduleNamedTaskAfterDelay(client) + await scheduleNamedTaskAfterDelay(chain) }) test('scheduling an overweight call is possible, but the call itself fails', async () => { - await scheduledOverweightCallFails(client) + await scheduledOverweightCallFails(chain) }) test('execution of scheduled preimage lookup call works', async () => { - await scheduleLookupCall(client) + await scheduleLookupCall(chain) }) test('scheduling a call using a preimage that gets removed', async () => { - await schedulePreimagedCall(client) + await schedulePreimagedCall(chain) }) test('priority-based execution of weighted tasks works correctly', async () => { - await schedulePriorityWeightedTasks(client) + await schedulePriorityWeightedTasks(chain) }) test('setting and canceling retry configuration for unnamed scheduled tasks', async () => { - await scheduleWithRetryConfig(client) + await scheduleWithRetryConfig(chain) }) test('setting and canceling retry configuration for named scheduled tasks', async () => { - await scheduleNamedWithRetryConfig(client) + await scheduleNamedWithRetryConfig(chain) }) }) } diff --git a/packages/shared/src/vesting.ts b/packages/shared/src/vesting.ts index 3392e1683..fd67f692f 100644 --- a/packages/shared/src/vesting.ts +++ b/packages/shared/src/vesting.ts @@ -1,7 +1,7 @@ import { encodeAddress } from '@polkadot/util-crypto' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, scheduleInlineCallWithOrigin } from './helpers/index.js' import { sendTransaction } from '@acala-network/chopsticks-testing' @@ -20,7 +20,9 @@ import { assert, describe, expect, test } from 'vitest' async function testVestedTransfer< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client, addressEncoding: number) { +>(chain: Chain, addressEncoding: number) { + const [client] = await setupNetworks(chain) + const alice = defaultAccountsSr25519.alice const bob = defaultAccountsSr25519.bob @@ -163,7 +165,9 @@ async function testVestedTransfer< async function testForceVestedTransfer< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const alice = defaultAccountsSr25519.alice const charlie = defaultAccountsSr25519.charlie @@ -211,7 +215,9 @@ async function testForceVestedTransfer< async function testForceRemoveVestedSchedule< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const alice = defaultAccountsSr25519.alice const charlie = defaultAccountsSr25519.charlie @@ -259,7 +265,9 @@ async function testForceRemoveVestedSchedule< async function testForceVestedTransferAndRemoval< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const alice = defaultAccountsSr25519.alice const dave = defaultAccountsSr25519.dave @@ -350,7 +358,9 @@ async function testForceVestedTransferAndRemoval< async function testMergeVestingSchedules< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(client: Client) { +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const alice = defaultAccountsSr25519.alice const eve = defaultAccountsSr25519.eve @@ -447,24 +457,24 @@ export function vestingE2ETests< // even if they do not include on vested transfers. if (!c.toString().includes('Asset Hub')) { test('vesting schedule lifecycle', async () => { - await testVestedTransfer(client, testConfig.addressEncoding) + await testVestedTransfer(chain, testConfig.addressEncoding) }) test('signed-origin forced removal of vesting schedule fails', async () => { - await testForceRemoveVestedSchedule(client) + await testForceRemoveVestedSchedule(chain) }) test('forced vested transfer and forced removal of vesting schedule work', async () => { - await testForceVestedTransferAndRemoval(client) + await testForceVestedTransferAndRemoval(chain) }) test('test merger of two vesting schedules', async () => { - await testMergeVestingSchedules(client) + await testMergeVestingSchedules(chain) }) } test('signed-origin force-vested transfer fails', async () => { - await testForceVestedTransfer(client) + await testForceVestedTransfer(chain) }) }) } From c53489e7a639a81cf0e2d14df52869c17d7e03e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 31 Jul 2025 15:03:46 +0100 Subject: [PATCH 10/22] Refactor scheduler tests to tree format --- packages/shared/src/scheduler.ts | 176 ++++++++++++++++++------------- 1 file changed, 100 insertions(+), 76 deletions(-) diff --git a/packages/shared/src/scheduler.ts b/packages/shared/src/scheduler.ts index 20ad5cad2..a1f7131b8 100644 --- a/packages/shared/src/scheduler.ts +++ b/packages/shared/src/scheduler.ts @@ -1,4 +1,4 @@ -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' import { type Client, setupNetworks } from '@e2e-test/shared' @@ -16,6 +16,7 @@ import type { PalletSchedulerScheduled, SpWeightsWeightV2Weight } from '@polkado import type { ISubmittableResult } from '@polkadot/types/types' import { sha256AsU8a } from '@polkadot/util-crypto' +import type { TestTree } from './types.js' /// ------- /// Helpers @@ -1350,81 +1351,104 @@ export async function scheduleNamedWithRetryConfig< assert(retryOpt.isNone) } -export function schedulerE2ETests< +export function baseSchedulerE2ETests< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - describe(testConfig.testSuiteName, async () => { - test('schedule task with wrong origin', async () => { - await scheduleBadOriginTest(chain) - }) - - test('schedule named task with wrong origin', async () => { - await scheduleNamedBadOriginTest(chain) - }) - - test('cancel scheduled task with wrong origin', async () => { - await cancelScheduledTaskBadOriginTest(chain) - }) - - test('cancel named scheduled task with wrong origin', async () => { - await cancelNamedScheduledTaskBadOriginTest(chain) - }) - - test('scheduling a call is possible, and the call itself succeeds', async () => { - await scheduledCallExecutes(chain) - }) - - test('scheduling a named call is possible, and the call itself succeeds', async () => { - await scheduledNamedCallExecutes(chain) - }) - - test('cancelling a scheduled task is possible', async () => { - await cancelScheduledTask(chain) - }) - - test('cancelling a named scheduled task is possible', async () => { - await cancelScheduledNamedTask(chain) - }) - - test('scheduling a task after a delay is possible', async () => { - await scheduleTaskAfterDelay(chain) - }) - - test('scheduling a periodic task is possible', async () => { - await schedulePeriodicTask(chain) - }) - - test('scheduling a named periodic task that executes multiple times', async () => { - await scheduleNamedPeriodicTask(chain) - }) - - test('scheduling a named task after a delay is possible', async () => { - await scheduleNamedTaskAfterDelay(chain) - }) - - test('scheduling an overweight call is possible, but the call itself fails', async () => { - await scheduledOverweightCallFails(chain) - }) - - test('execution of scheduled preimage lookup call works', async () => { - await scheduleLookupCall(chain) - }) - - test('scheduling a call using a preimage that gets removed', async () => { - await schedulePreimagedCall(chain) - }) - - test('priority-based execution of weighted tasks works correctly', async () => { - await schedulePriorityWeightedTasks(chain) - }) - - test('setting and canceling retry configuration for unnamed scheduled tasks', async () => { - await scheduleWithRetryConfig(chain) - }) - - test('setting and canceling retry configuration for named scheduled tasks', async () => { - await scheduleNamedWithRetryConfig(chain) - }) - }) +>(chain: Chain, testConfig: { testSuiteName: string }): TestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'scheduling a call is possible, and the call itself succeeds', + testFn: async () => await scheduledCallExecutes(chain), + }, + { + kind: 'test', + label: 'scheduling a named call is possible, and the call itself succeeds', + testFn: async () => await scheduledNamedCallExecutes(chain), + }, + { + kind: 'test', + label: 'cancelling a scheduled task is possible', + testFn: async () => await cancelScheduledTask(chain), + }, + { + kind: 'test', + label: 'cancelling a named scheduled task is possible', + testFn: async () => await cancelScheduledNamedTask(chain), + }, + { + kind: 'test', + label: 'scheduling a task after a delay is possible', + testFn: async () => await scheduleTaskAfterDelay(chain), + }, + { + kind: 'test', + label: 'scheduling a periodic task is possible', + testFn: async () => await schedulePeriodicTask(chain), + }, + { + kind: 'test', + label: 'scheduling a named periodic task that executes multiple times', + testFn: async () => await scheduleNamedPeriodicTask(chain), + }, + { + kind: 'test', + label: 'scheduling a named task after a delay is possible', + testFn: async () => await scheduleNamedTaskAfterDelay(chain), + }, + { + kind: 'test', + label: 'execution of scheduled preimage lookup call works', + testFn: async () => await scheduleLookupCall(chain), + }, + { + kind: 'test', + label: 'priority-based execution of weighted tasks works correctly', + testFn: async () => await schedulePriorityWeightedTasks(chain), + }, + { + kind: 'test', + label: 'schedule task with wrong origin', + testFn: async () => await scheduleBadOriginTest(chain), + }, + { + kind: 'test', + label: 'schedule named task with wrong origin', + testFn: async () => await scheduleNamedBadOriginTest(chain), + }, + { + kind: 'test', + label: 'cancel scheduled task with wrong origin', + testFn: async () => await cancelScheduledTaskBadOriginTest(chain), + }, + { + kind: 'test', + label: 'cancel named scheduled task with wrong origin', + testFn: async () => await cancelNamedScheduledTaskBadOriginTest(chain), + }, + { + kind: 'test', + label: 'scheduling an overweight call is possible, but the call itself fails', + testFn: async () => await scheduledOverweightCallFails(chain), + }, + { + kind: 'test', + label: 'scheduling a call using a preimage that gets removed', + testFn: async () => await schedulePreimagedCall(chain), + }, + { + kind: 'test', + label: 'setting and canceling retry configuration for unnamed scheduled tasks', + testFn: async () => await scheduleWithRetryConfig(chain), + }, + { + kind: 'test', + label: 'setting and canceling retry configuration for named scheduled tasks', + testFn: async () => await scheduleNamedWithRetryConfig(chain), + }, + ], + } } From d2cf64177a3103922de6bd5fe4baba0d614f5d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Thu, 31 Jul 2025 15:09:12 +0100 Subject: [PATCH 11/22] Refactor vesting tests to tree format (WIP) --- packages/shared/src/vesting.ts | 161 ++++++++++++++++++++++++++------- 1 file changed, 129 insertions(+), 32 deletions(-) diff --git a/packages/shared/src/vesting.ts b/packages/shared/src/vesting.ts index fd67f692f..e2bf9da3e 100644 --- a/packages/shared/src/vesting.ts +++ b/packages/shared/src/vesting.ts @@ -1,12 +1,16 @@ import { encodeAddress } from '@polkadot/util-crypto' -import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' +import { type Chain, type Client, defaultAccountsSr25519 } from '@e2e-test/networks' import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, scheduleInlineCallWithOrigin } from './helpers/index.js' import { sendTransaction } from '@acala-network/chopsticks-testing' +import type { SubmittableExtrinsic } from '@polkadot/api/types' +import type { DispatchError } from '@polkadot/types/interfaces' import type { FrameSystemEventRecord } from '@polkadot/types/lookup' -import { assert, describe, expect, test } from 'vitest' +import type { ISubmittableResult } from '@polkadot/types/types' +import { assert, expect } from 'vitest' +import type { TestTree } from './types.js' /** * Test that a vested transfer works as expected. @@ -443,38 +447,131 @@ async function testMergeVestingSchedules< ) } -export function vestingE2ETests< +/** Simple helper: submit a tx that is expected to be filtered and assert `CallFiltered` error. */ +async function expectFiltered( + client: Client, + tx: SubmittableExtrinsic<'promise', ISubmittableResult>, + signer = defaultAccountsSr25519.alice, +) { + const events = await sendTransaction(tx.signAsync(signer)) + + await client.dev.newBlock() + + // Ensure we got an ExtrinsicFailed (filtered) event + await checkEvents(events, { section: 'system', method: 'ExtrinsicFailed' }).toMatchSnapshot( + 'filtered vesting call events', + ) + + const sysEvents = await client.api.query.system.events() + const failed = sysEvents.find((e) => e.event.section === 'system' && e.event.method === 'ExtrinsicFailed') + assert(failed, 'Expected ExtrinsicFailed') + + const dispatchErr = failed!.event.data[0] as DispatchError + assert(dispatchErr.isModule) + assert(client.api.errors.system.CallFiltered.is(dispatchErr.asModule)) +} + +async function testForceRemoveVestingScheduleFiltered< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - describe(testConfig.testSuiteName, async () => { - const [client] = await setupNetworks(chain) - - const c = await client.api.rpc.system.chain() - // The vesting pallet will be disabled on Asset Hubs while the AHM is prepared/ongoing, so this ensures some tests - // using `vesting.vestedTransfer` are only run on relay chains. - // Furthermore, some tests use the `scheduler` pallet, which is not present on Asset Hubs, so they are put here - // even if they do not include on vested transfers. - if (!c.toString().includes('Asset Hub')) { - test('vesting schedule lifecycle', async () => { - await testVestedTransfer(chain, testConfig.addressEncoding) - }) - - test('signed-origin forced removal of vesting schedule fails', async () => { - await testForceRemoveVestedSchedule(chain) - }) - - test('forced vested transfer and forced removal of vesting schedule work', async () => { - await testForceVestedTransferAndRemoval(chain) - }) - - test('test merger of two vesting schedules', async () => { - await testMergeVestingSchedules(chain) - }) - } +>(chain: Chain) { + const [client] = await setupNetworks(chain) + const bob = defaultAccountsSr25519.bob + + const tx = client.api.tx.vesting.forceRemoveVestingSchedule(bob.address, 0) + await expectFiltered(client, tx) +} + +async function testVestedTransferFiltered< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain) { + const [client] = await setupNetworks(chain) + + const bob = defaultAccountsSr25519.bob - test('signed-origin force-vested transfer fails', async () => { - await testForceVestedTransfer(chain) - }) + const locked = client.api.consts.vesting.minVestedTransfer.toNumber() + const perBlock = Math.floor(locked / 4) + + const tx = client.api.tx.vesting.vestedTransfer(bob.address, { + perBlock, + locked, + startingBlock: 0, }) + + await expectFiltered(client, tx) +} + +async function testMergeSchedulesFiltered< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain) { + const [client] = await setupNetworks(chain) + + const tx = client.api.tx.vesting.mergeSchedules(0, 1) + await expectFiltered(client, tx) +} + +export function baseVestingE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'vesting schedule lifecycle', + testFn: () => testVestedTransfer(chain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: 'signed-origin forced removal of vesting schedule fails', + testFn: () => testForceRemoveVestedSchedule(chain), + }, + { + kind: 'test', + label: 'forced vested transfer and forced removal of vesting schedule work', + testFn: () => testForceVestedTransferAndRemoval(chain), + }, + { + kind: 'test', + label: 'test merger of two vesting schedules', + testFn: () => testMergeVestingSchedules(chain), + }, + { + kind: 'test', + label: 'signed-origin force-vested transfer fails', + testFn: () => testForceVestedTransfer(chain), + }, + ], + } +} + +export function assetHubVestingE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string }): TestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'vested transfer is filtered', + testFn: () => testVestedTransferFiltered(chain), + }, + { + kind: 'test', + label: 'forced removal of vesting schedule is filtered', + testFn: () => testForceRemoveVestingScheduleFiltered(chain), + }, + { + kind: 'test', + label: 'vesting schedule merger is filtered', + testFn: () => testMergeSchedulesFiltered(chain), + }, + ], + } } From d6c6943c094ab865984f1e0f30cb9a6df4df8e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 02:55:34 +0100 Subject: [PATCH 12/22] Split vesting test tree into pre-AHM RC and AH (wip) Vested transfers are disabled in pre-AHM AH, so it requires a different test tree. Some extra tests were added, including one for merger of vesting schedules on Asset Hubs. Vesting schedules immediately vest on Asset Hubs, so I will roll this back while thinking about how to test this. --- .../assetHubKusama.vesting.e2e.test.ts.snap | 139 ++++++++++++ .../kusama.vesting.e2e.test.ts.snap | 50 +++++ .../src/assetHubKusama.vesting.e2e.test.ts | 5 +- .../kusama/src/kusama.vesting.e2e.test.ts | 4 +- .../assetHubPolkadot.vesting.e2e.test.ts.snap | 123 +++++++---- .../polkadot.vesting.e2e.test.ts.snap | 50 +++++ .../src/assetHubPolkadot.vesting.e2e.test.ts | 6 +- .../polkadot/src/polkadot.vesting.e2e.test.ts | 4 +- packages/shared/src/vesting.ts | 202 ++++++++++-------- 9 files changed, 453 insertions(+), 130 deletions(-) diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap index d26acd810..aed6b851b 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap @@ -1,5 +1,94 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +exports[`Kusama Asset Hub Vesting > attempt to merge when no vesting schedules exist fails > merge schedules extrinsic failed 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 14, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 930000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Kusama Asset Hub Vesting > force vested transfer is filtered > filtered vesting call events 1`] = ` +[ + { + "data": { + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Kusama Asset Hub Vesting > forced removal of vesting schedule is filtered > filtered vesting call events 1`] = ` +[ + { + "data": { + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1100000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Kusama Asset Hub Vesting > merge schedules > vesting schedules merger events 1`] = ` +[ + { + "data": { + "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", + }, + "method": "VestingCompleted", + "section": "vesting", + }, +] +`; + +exports[`Kusama Asset Hub Vesting > merge schedules (seeded into storage) > vesting schedules merger events 1`] = ` +[ + { + "data": { + "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", + }, + "method": "VestingCompleted", + "section": "vesting", + }, +] +`; + exports[`Kusama Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { @@ -19,3 +108,53 @@ exports[`Kusama Asset Hub Vesting > signed-origin force-vested transfer fails > }, ] `; + +exports[`Kusama Asset Hub Vesting > vested transfer is filtered > filtered vesting call events 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1100000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Kusama Asset Hub Vesting > vesting schedule merger is filtered > filtered vesting call events 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 14, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 930000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; diff --git a/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap index c0f191640..a2182a8dc 100644 --- a/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap @@ -13,6 +13,56 @@ exports[`Kusama Vesting > forced vested transfer and forced removal of vesting s ] `; +exports[`Kusama Vesting > merge schedules without schedules fails > merge schedules extrinsic failed 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 28, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 810000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Kusama Vesting > merging vesting schedules when none exist fails > merge schedules extrinsic failed 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 28, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 810000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + exports[`Kusama Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { diff --git a/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts b/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts index d3e56a68b..25f5d13b1 100644 --- a/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts @@ -1,5 +1,6 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { vestingE2ETests } from '@e2e-test/shared' +import { registerTestTree } from '@e2e-test/shared' +import { assetHubVestingE2ETests } from '@e2e-test/shared' -vestingE2ETests(assetHubKusama, { testSuiteName: 'Kusama Asset Hub Vesting', addressEncoding: 2 }) +registerTestTree(assetHubVestingE2ETests(assetHubKusama, { testSuiteName: 'Kusama Asset Hub Vesting' })) diff --git a/packages/kusama/src/kusama.vesting.e2e.test.ts b/packages/kusama/src/kusama.vesting.e2e.test.ts index a7992b88d..ffb6b61d2 100644 --- a/packages/kusama/src/kusama.vesting.e2e.test.ts +++ b/packages/kusama/src/kusama.vesting.e2e.test.ts @@ -1,5 +1,5 @@ import { kusama } from '@e2e-test/networks/chains' -import { vestingE2ETests } from '@e2e-test/shared' +import { registerTestTree, relayVestingE2ETests } from '@e2e-test/shared' -vestingE2ETests(kusama, { testSuiteName: 'Kusama Vesting', addressEncoding: 2 }) +registerTestTree(relayVestingE2ETests(kusama, { testSuiteName: 'Kusama Vesting', addressEncoding: 2 })) diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap index ee43164c6..54fdd7354 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap @@ -1,19 +1,31 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Polkadot Asset Hub Vesting > forced vested transfer and forced removal of vesting schedule work > forced vested transfer event 1`] = ` +exports[`Polkadot Asset Hub Vesting > attempt to merge when no vesting schedules exist fails > merge schedules extrinsic failed 1`] = ` [ - "126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57", - 5000000000, -] -`; - -exports[`Polkadot Asset Hub Vesting > forced vested transfer and forced removal of vesting schedule work > forced vesting removal event 1`] = ` -[ - "126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57", + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 14, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 810000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, ] `; -exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` +exports[`Polkadot Asset Hub Vesting > force vested transfer is filtered > filtered vesting call events 1`] = ` [ { "data": { @@ -22,8 +34,8 @@ exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails "class": "Normal", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 960000000)", + "proofSize": "(rounded 18000)", + "refTime": "(rounded 1100000000)", }, }, }, @@ -33,79 +45,116 @@ exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails ] `; -exports[`Polkadot Asset Hub Vesting > test merger of two vesting schedules > vesting events 1 1`] = ` +exports[`Polkadot Asset Hub Vesting > forced removal of vesting schedule is filtered > filtered vesting call events 1`] = ` [ { "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - "unvested": "(rounded 25000000000)", + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 940000000)", + }, + }, }, - "method": "VestingUpdated", - "section": "vesting", + "method": "ExtrinsicFailed", + "section": "system", }, ] `; -exports[`Polkadot Asset Hub Vesting > test merger of two vesting schedules > vesting events 2 1`] = ` +exports[`Polkadot Asset Hub Vesting > merge schedules > vesting schedules merger events 1`] = ` [ { "data": { "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - "unvested": "(rounded 76000000000)", }, - "method": "VestingUpdated", + "method": "VestingCompleted", "section": "vesting", }, ] `; -exports[`Polkadot Asset Hub Vesting > test merger of two vesting schedules > vesting schedules merger events 1`] = ` +exports[`Polkadot Asset Hub Vesting > merge schedules (seeded into storage) > vesting schedules merger events 1`] = ` [ { "data": { "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - "unvested": "(rounded 70000000000)", }, - "method": "VestingUpdated", + "method": "VestingCompleted", "section": "vesting", }, ] `; -exports[`Polkadot Asset Hub Vesting > vesting schedule lifecycle > vest events 1`] = ` +exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { "data": { - "account": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "unvested": 5000000000, + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 1100000000)", + }, + }, }, - "method": "VestingUpdated", - "section": "vesting", + "method": "ExtrinsicFailed", + "section": "system", }, ] `; -exports[`Polkadot Asset Hub Vesting > vesting schedule lifecycle > vest events 2`] = ` +exports[`Polkadot Asset Hub Vesting > vested transfer is filtered > filtered vesting call events 1`] = ` [ { "data": { - "account": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", + "dispatchError": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 980000000)", + }, + }, }, - "method": "VestingCompleted", - "section": "vesting", + "method": "ExtrinsicFailed", + "section": "system", }, ] `; -exports[`Polkadot Asset Hub Vesting > vesting schedule lifecycle > vest other events 1`] = ` +exports[`Polkadot Asset Hub Vesting > vesting schedule merger is filtered > filtered vesting call events 1`] = ` [ { "data": { - "account": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "unvested": 2500000000, + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 14, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 810000000)", + }, + }, }, - "method": "VestingUpdated", - "section": "vesting", + "method": "ExtrinsicFailed", + "section": "system", }, ] `; diff --git a/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap index 95aad581f..7aa92d84f 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap @@ -13,6 +13,56 @@ exports[`Polkadot Vesting > forced vested transfer and forced removal of vesting ] `; +exports[`Polkadot Vesting > merge schedules without schedules fails > merge schedules extrinsic failed 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 25, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 700000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Polkadot Vesting > merging vesting schedules when none exist fails > merge schedules extrinsic failed 1`] = ` +[ + { + "data": { + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 25, + }, + }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 700000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + exports[`Polkadot Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { diff --git a/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts index 39f3feb86..32095976e 100644 --- a/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts @@ -1,5 +1,5 @@ -import { polkadot } from '@e2e-test/networks/chains' +import { assetHubPolkadot } from '@e2e-test/networks/chains' -import { vestingE2ETests } from '@e2e-test/shared' +import { assetHubVestingE2ETests, registerTestTree } from '@e2e-test/shared' -vestingE2ETests(polkadot, { testSuiteName: 'Polkadot Asset Hub Vesting', addressEncoding: 0 }) +registerTestTree(assetHubVestingE2ETests(assetHubPolkadot, { testSuiteName: 'Polkadot Asset Hub Vesting' })) diff --git a/packages/polkadot/src/polkadot.vesting.e2e.test.ts b/packages/polkadot/src/polkadot.vesting.e2e.test.ts index 4998d4b73..d280dc709 100644 --- a/packages/polkadot/src/polkadot.vesting.e2e.test.ts +++ b/packages/polkadot/src/polkadot.vesting.e2e.test.ts @@ -1,5 +1,5 @@ import { polkadot } from '@e2e-test/networks/chains' -import { vestingE2ETests } from '@e2e-test/shared' +import { registerTestTree, relayVestingE2ETests } from '@e2e-test/shared' -vestingE2ETests(polkadot, { testSuiteName: 'Polkadot Vesting', addressEncoding: 0 }) +registerTestTree(relayVestingE2ETests(polkadot, { testSuiteName: 'Polkadot Vesting', addressEncoding: 0 })) diff --git a/packages/shared/src/vesting.ts b/packages/shared/src/vesting.ts index e2bf9da3e..2bf08f443 100644 --- a/packages/shared/src/vesting.ts +++ b/packages/shared/src/vesting.ts @@ -1,14 +1,12 @@ import { encodeAddress } from '@polkadot/util-crypto' -import { type Chain, type Client, defaultAccountsSr25519 } from '@e2e-test/networks' +import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, scheduleInlineCallWithOrigin } from './helpers/index.js' import { sendTransaction } from '@acala-network/chopsticks-testing' -import type { SubmittableExtrinsic } from '@polkadot/api/types' import type { DispatchError } from '@polkadot/types/interfaces' -import type { FrameSystemEventRecord } from '@polkadot/types/lookup' -import type { ISubmittableResult } from '@polkadot/types/types' +import type { FrameSystemAccountInfo, FrameSystemEventRecord } from '@polkadot/types/lookup' import { assert, expect } from 'vitest' import type { TestTree } from './types.js' @@ -225,30 +223,11 @@ async function testForceRemoveVestedSchedule< const alice = defaultAccountsSr25519.alice const charlie = defaultAccountsSr25519.charlie - const currBlockNumber = (await client.api.rpc.chain.getHeader()).number.toNumber() - - const locked = client.api.consts.vesting.minVestedTransfer.toNumber() - const perBlock = Math.floor(locked / 4) - - const vestingTx = client.api.tx.vesting.vestedTransfer(charlie.address, { - perBlock, - locked, - startingBlock: currBlockNumber - 1, - }) - await sendTransaction(vestingTx.signAsync(alice)) - - await client.dev.newBlock() - const forceRemoveVestingTx = client.api.tx.vesting.forceRemoveVestingSchedule(charlie.address, 0) await sendTransaction(forceRemoveVestingTx.signAsync(alice)) await client.dev.newBlock() - // Check that no vesting schedule was removed. - - const vestingBalance = await client.api.query.vesting.vesting(charlie.address) - assert(vestingBalance.isSome) - // Check events const events = await client.api.query.system.events() @@ -362,7 +341,7 @@ async function testForceVestedTransferAndRemoval< async function testMergeVestingSchedules< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain) { +>(chain: Chain, performVestedTransfer: boolean) { const [client] = await setupNetworks(chain) const alice = defaultAccountsSr25519.alice @@ -385,34 +364,72 @@ async function testMergeVestingSchedules< blocksToUnlock1 += locked1 % blocksToUnlock1 ? 1 : 0 const locked2 = locked1 * 2 - // Another prime number, so the same applies above. + // Another prime number, so the above applies here as well. let blocksToUnlock2 = 19 const perBlock2 = Math.floor(locked2 / blocksToUnlock2) blocksToUnlock2 += locked2 % blocksToUnlock2 ? 1 : 0 - const vestingTx1 = client.api.tx.vesting.vestedTransfer(eve.address, { + const vestingSchedule1 = { perBlock: perBlock1, locked: locked1, startingBlock: currBlockNumber - 1, - }) - - const vestingTx2 = client.api.tx.vesting.vestedTransfer(eve.address, { + } + const vestingSchedule2 = { perBlock: perBlock2, locked: locked2, startingBlock: currBlockNumber - 2, - }) - - let aliceNonce = (await client.api.rpc.system.accountNextIndex(alice.address)).toNumber() + } - const vestingEvents1 = await sendTransaction(vestingTx1.signAsync(alice, { nonce: aliceNonce++ })) - const vestingEvents2 = await sendTransaction(vestingTx2.signAsync(alice, { nonce: aliceNonce++ })) + if (performVestedTransfer) { + const vestingTx1 = client.api.tx.vesting.vestedTransfer(eve.address, vestingSchedule1) + const vestingTx2 = client.api.tx.vesting.vestedTransfer(eve.address, vestingSchedule2) + + let aliceNonce = (await client.api.rpc.system.accountNextIndex(alice.address)).toNumber() + + const vestingEvents1 = await sendTransaction(vestingTx1.signAsync(alice, { nonce: aliceNonce++ })) + const vestingEvents2 = await sendTransaction(vestingTx2.signAsync(alice, { nonce: aliceNonce++ })) + + await client.dev.newBlock() + + await checkEvents(vestingEvents1, 'vesting').toMatchSnapshot('vesting events 1') + await checkEvents(vestingEvents2, 'vesting').toMatchSnapshot('vesting events 2') + } else { + const eveAccount = await client.api.query.system.account(eve.address) + const eveAccountWritable = eveAccount.toJSON() as any + eveAccountWritable.data.frozen = perBlock1 * 2 + perBlock2 * 3 + eveAccountWritable.consumers += 1 + + await client.dev.setStorage({}) + + await client.dev.setStorage({ + Balances: { + Locks: [ + [ + [eve.address], + [ + { + id: 'vesting ', + amount: (perBlock1 * 2 + perBlock2 * 3).toString(), + reasons: 'Misc', + }, + ], + ], + ], + }, + Vesting: { + Vesting: [[[eve.address], [vestingSchedule1, vestingSchedule2, vestingSchedule2]]], + }, + System: { + account: [[[eve.address], eveAccountWritable]], + }, + }) - await client.dev.newBlock() + await client.dev.newBlock() + } currBlockNumber += 1 - await checkEvents(vestingEvents1, 'vesting').toMatchSnapshot('vesting events 1') - await checkEvents(vestingEvents2, 'vesting').toMatchSnapshot('vesting events 2') + await client.pause() const vestingBalance = await client.api.query.vesting.vesting(eve.address) assert(vestingBalance.isSome) @@ -420,7 +437,7 @@ async function testMergeVestingSchedules< const mergeVestingTx = client.api.tx.vesting.mergeSchedules(0, 1) - const mergeVestingEvents = await sendTransaction(mergeVestingTx.signAsync(eve)) + //const mergeVestingEvents = await sendTransaction(mergeVestingTx.signAsync(eve)) await client.dev.newBlock() @@ -447,47 +464,13 @@ async function testMergeVestingSchedules< ) } -/** Simple helper: submit a tx that is expected to be filtered and assert `CallFiltered` error. */ -async function expectFiltered( - client: Client, - tx: SubmittableExtrinsic<'promise', ISubmittableResult>, - signer = defaultAccountsSr25519.alice, -) { - const events = await sendTransaction(tx.signAsync(signer)) - - await client.dev.newBlock() - - // Ensure we got an ExtrinsicFailed (filtered) event - await checkEvents(events, { section: 'system', method: 'ExtrinsicFailed' }).toMatchSnapshot( - 'filtered vesting call events', - ) - - const sysEvents = await client.api.query.system.events() - const failed = sysEvents.find((e) => e.event.section === 'system' && e.event.method === 'ExtrinsicFailed') - assert(failed, 'Expected ExtrinsicFailed') - - const dispatchErr = failed!.event.data[0] as DispatchError - assert(dispatchErr.isModule) - assert(client.api.errors.system.CallFiltered.is(dispatchErr.asModule)) -} - -async function testForceRemoveVestingScheduleFiltered< - TCustom extends Record | undefined, - TInitStorages extends Record> | undefined, ->(chain: Chain) { - const [client] = await setupNetworks(chain) - const bob = defaultAccountsSr25519.bob - - const tx = client.api.tx.vesting.forceRemoveVestingSchedule(bob.address, 0) - await expectFiltered(client, tx) -} - async function testVestedTransferFiltered< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, >(chain: Chain) { const [client] = await setupNetworks(chain) + const alice = defaultAccountsSr25519.alice const bob = defaultAccountsSr25519.bob const locked = client.api.consts.vesting.minVestedTransfer.toNumber() @@ -498,21 +481,57 @@ async function testVestedTransferFiltered< locked, startingBlock: 0, }) + await sendTransaction(tx.signAsync(alice)) - await expectFiltered(client, tx) + await client.dev.newBlock() + + const sysEvents = await client.api.query.system.events() + const failed = sysEvents.find((e) => e.event.section === 'system' && e.event.method === 'ExtrinsicFailed') + assert(failed, 'Expected ExtrinsicFailed') + + const dispatchErr = failed!.event.data[0] as DispatchError + assert(dispatchErr.isModule) + assert(client.api.errors.system.CallFiltered.is(dispatchErr.asModule)) } -async function testMergeSchedulesFiltered< +/// Test that trying to merge nonexistent schedules fails with an appropriate error. +async function testMergeSchedulesNoSchedule< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, >(chain: Chain) { const [client] = await setupNetworks(chain) + await client.pause() + + const charlie = defaultAccountsSr25519.charlie + + await client.dev.setStorage({ + System: { + account: [[[charlie.address], { providers: 1, data: { free: 100e10 } }]], + }, + }) + const tx = client.api.tx.vesting.mergeSchedules(0, 1) - await expectFiltered(client, tx) + const events = await sendTransaction(tx.signAsync(charlie)) + + await client.dev.newBlock() + + // Expect an ExtrinsicFailed event, but NOT `CallFiltered` + await checkEvents(events, { section: 'system', method: 'ExtrinsicFailed' }).toMatchSnapshot( + 'merge schedules extrinsic failed', + ) + + const sysEvents = await client.api.query.system.events() + const failed = sysEvents.find((e) => e.event.section === 'system' && e.event.method === 'ExtrinsicFailed') + assert(failed, 'Expected ExtrinsicFailed') + + const dispatchErr = failed!.event.data[0] as DispatchError + assert(dispatchErr.isModule) + // Ensure the failure is not due to call filtering + assert(client.api.errors.vesting.NotVesting.is(dispatchErr.asModule)) } -export function baseVestingE2ETests< +export function relayVestingE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, >(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { @@ -530,6 +549,11 @@ export function baseVestingE2ETests< label: 'signed-origin forced removal of vesting schedule fails', testFn: () => testForceRemoveVestedSchedule(chain), }, + { + kind: 'test', + label: 'signed-origin force-vested transfer fails', + testFn: () => testForceVestedTransfer(chain), + }, { kind: 'test', label: 'forced vested transfer and forced removal of vesting schedule work', @@ -538,12 +562,12 @@ export function baseVestingE2ETests< { kind: 'test', label: 'test merger of two vesting schedules', - testFn: () => testMergeVestingSchedules(chain), + testFn: () => testMergeVestingSchedules(chain, true), }, { kind: 'test', - label: 'signed-origin force-vested transfer fails', - testFn: () => testForceVestedTransfer(chain), + label: 'merging vesting schedules when none exist fails', + testFn: () => testMergeSchedulesNoSchedule(chain), }, ], } @@ -564,13 +588,23 @@ export function assetHubVestingE2ETests< }, { kind: 'test', - label: 'forced removal of vesting schedule is filtered', - testFn: () => testForceRemoveVestingScheduleFiltered(chain), + label: 'signed-origin forced removal of vesting schedule fails', + testFn: () => testForceRemoveVestedSchedule(chain), + }, + { + kind: 'test', + label: 'signed-origin force-vested transfer fails', + testFn: () => testForceVestedTransfer(chain), + }, + { + kind: 'test', + label: 'attempt to merge when no vesting schedules exist fails', + testFn: () => testMergeSchedulesNoSchedule(chain), }, { kind: 'test', - label: 'vesting schedule merger is filtered', - testFn: () => testMergeSchedulesFiltered(chain), + label: 'merge schedules (seeded into storage)', + testFn: () => testMergeVestingSchedules(chain, false), }, ], } From 6079ff517c159c56186c1fb3c0a08fe27a8869d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 03:53:20 +0100 Subject: [PATCH 13/22] Update vesting test snapshots --- .../assetHubKusama.vesting.e2e.test.ts.snap | 114 ------------------ .../kusama.vesting.e2e.test.ts.snap | 25 ---- .../assetHubPolkadot.vesting.e2e.test.ts.snap | 114 ------------------ .../polkadot.vesting.e2e.test.ts.snap | 25 ---- packages/shared/src/vesting.ts | 77 +++--------- 5 files changed, 20 insertions(+), 335 deletions(-) diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap index aed6b851b..88096f36e 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.vesting.e2e.test.ts.snap @@ -25,70 +25,6 @@ exports[`Kusama Asset Hub Vesting > attempt to merge when no vesting schedules e ] `; -exports[`Kusama Asset Hub Vesting > force vested transfer is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": "BadOrigin", - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Kusama Asset Hub Vesting > forced removal of vesting schedule is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": "BadOrigin", - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1100000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Kusama Asset Hub Vesting > merge schedules > vesting schedules merger events 1`] = ` -[ - { - "data": { - "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", - }, - "method": "VestingCompleted", - "section": "vesting", - }, -] -`; - -exports[`Kusama Asset Hub Vesting > merge schedules (seeded into storage) > vesting schedules merger events 1`] = ` -[ - { - "data": { - "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", - }, - "method": "VestingCompleted", - "section": "vesting", - }, -] -`; - exports[`Kusama Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { @@ -108,53 +44,3 @@ exports[`Kusama Asset Hub Vesting > signed-origin force-vested transfer fails > }, ] `; - -exports[`Kusama Asset Hub Vesting > vested transfer is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1100000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Kusama Asset Hub Vesting > vesting schedule merger is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": { - "Module": { - "error": "0x00000000", - "index": 14, - }, - }, - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 930000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; diff --git a/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap index a2182a8dc..9c4b14a84 100644 --- a/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap @@ -13,31 +13,6 @@ exports[`Kusama Vesting > forced vested transfer and forced removal of vesting s ] `; -exports[`Kusama Vesting > merge schedules without schedules fails > merge schedules extrinsic failed 1`] = ` -[ - { - "data": { - "dispatchError": { - "Module": { - "error": "0x00000000", - "index": 28, - }, - }, - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 810000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - exports[`Kusama Vesting > merging vesting schedules when none exist fails > merge schedules extrinsic failed 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap index 54fdd7354..345f817a6 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap @@ -25,70 +25,6 @@ exports[`Polkadot Asset Hub Vesting > attempt to merge when no vesting schedules ] `; -exports[`Polkadot Asset Hub Vesting > force vested transfer is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": "BadOrigin", - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 1100000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > forced removal of vesting schedule is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": "BadOrigin", - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 940000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > merge schedules > vesting schedules merger events 1`] = ` -[ - { - "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - }, - "method": "VestingCompleted", - "section": "vesting", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > merge schedules (seeded into storage) > vesting schedules merger events 1`] = ` -[ - { - "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - }, - "method": "VestingCompleted", - "section": "vesting", - }, -] -`; - exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { @@ -108,53 +44,3 @@ exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails }, ] `; - -exports[`Polkadot Asset Hub Vesting > vested transfer is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 980000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > vesting schedule merger is filtered > filtered vesting call events 1`] = ` -[ - { - "data": { - "dispatchError": { - "Module": { - "error": "0x00000000", - "index": 14, - }, - }, - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 810000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; diff --git a/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap index 7aa92d84f..a60203b29 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap @@ -13,31 +13,6 @@ exports[`Polkadot Vesting > forced vested transfer and forced removal of vesting ] `; -exports[`Polkadot Vesting > merge schedules without schedules fails > merge schedules extrinsic failed 1`] = ` -[ - { - "data": { - "dispatchError": { - "Module": { - "error": "0x00000000", - "index": 25, - }, - }, - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 700000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - exports[`Polkadot Vesting > merging vesting schedules when none exist fails > merge schedules extrinsic failed 1`] = ` [ { diff --git a/packages/shared/src/vesting.ts b/packages/shared/src/vesting.ts index 2bf08f443..9a571c0c5 100644 --- a/packages/shared/src/vesting.ts +++ b/packages/shared/src/vesting.ts @@ -6,7 +6,7 @@ import { check, checkEvents, scheduleInlineCallWithOrigin } from './helpers/inde import { sendTransaction } from '@acala-network/chopsticks-testing' import type { DispatchError } from '@polkadot/types/interfaces' -import type { FrameSystemAccountInfo, FrameSystemEventRecord } from '@polkadot/types/lookup' +import type { FrameSystemEventRecord } from '@polkadot/types/lookup' import { assert, expect } from 'vitest' import type { TestTree } from './types.js' @@ -341,7 +341,7 @@ async function testForceVestedTransferAndRemoval< async function testMergeVestingSchedules< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, performVestedTransfer: boolean) { +>(chain: Chain) { const [client] = await setupNetworks(chain) const alice = defaultAccountsSr25519.alice @@ -380,64 +380,34 @@ async function testMergeVestingSchedules< startingBlock: currBlockNumber - 2, } - if (performVestedTransfer) { - const vestingTx1 = client.api.tx.vesting.vestedTransfer(eve.address, vestingSchedule1) - const vestingTx2 = client.api.tx.vesting.vestedTransfer(eve.address, vestingSchedule2) - - let aliceNonce = (await client.api.rpc.system.accountNextIndex(alice.address)).toNumber() - - const vestingEvents1 = await sendTransaction(vestingTx1.signAsync(alice, { nonce: aliceNonce++ })) - const vestingEvents2 = await sendTransaction(vestingTx2.signAsync(alice, { nonce: aliceNonce++ })) - - await client.dev.newBlock() - - await checkEvents(vestingEvents1, 'vesting').toMatchSnapshot('vesting events 1') - await checkEvents(vestingEvents2, 'vesting').toMatchSnapshot('vesting events 2') - } else { - const eveAccount = await client.api.query.system.account(eve.address) - const eveAccountWritable = eveAccount.toJSON() as any - eveAccountWritable.data.frozen = perBlock1 * 2 + perBlock2 * 3 - eveAccountWritable.consumers += 1 - - await client.dev.setStorage({}) - - await client.dev.setStorage({ - Balances: { - Locks: [ - [ - [eve.address], - [ - { - id: 'vesting ', - amount: (perBlock1 * 2 + perBlock2 * 3).toString(), - reasons: 'Misc', - }, - ], - ], - ], - }, - Vesting: { - Vesting: [[[eve.address], [vestingSchedule1, vestingSchedule2, vestingSchedule2]]], - }, - System: { - account: [[[eve.address], eveAccountWritable]], - }, - }) + // Perform vested transfers to Eve, to create two vesting schedules. - await client.dev.newBlock() - } + const vestingTx1 = client.api.tx.vesting.vestedTransfer(eve.address, vestingSchedule1) + const vestingTx2 = client.api.tx.vesting.vestedTransfer(eve.address, vestingSchedule2) + + let aliceNonce = (await client.api.rpc.system.accountNextIndex(alice.address)).toNumber() + + const vestingEvents1 = await sendTransaction(vestingTx1.signAsync(alice, { nonce: aliceNonce++ })) + const vestingEvents2 = await sendTransaction(vestingTx2.signAsync(alice, { nonce: aliceNonce++ })) + + await client.dev.newBlock() + + await checkEvents(vestingEvents1, 'vesting').toMatchSnapshot('vesting events 1') + await checkEvents(vestingEvents2, 'vesting').toMatchSnapshot('vesting events 2') currBlockNumber += 1 - await client.pause() + // Check that two vesting schedules were created. const vestingBalance = await client.api.query.vesting.vesting(eve.address) assert(vestingBalance.isSome) expect(vestingBalance.unwrap().length).toBe(2) + // Merge the two vesting schedules. + const mergeVestingTx = client.api.tx.vesting.mergeSchedules(0, 1) - //const mergeVestingEvents = await sendTransaction(mergeVestingTx.signAsync(eve)) + const mergeVestingEvents = await sendTransaction(mergeVestingTx.signAsync(eve)) await client.dev.newBlock() @@ -501,8 +471,6 @@ async function testMergeSchedulesNoSchedule< >(chain: Chain) { const [client] = await setupNetworks(chain) - await client.pause() - const charlie = defaultAccountsSr25519.charlie await client.dev.setStorage({ @@ -562,7 +530,7 @@ export function relayVestingE2ETests< { kind: 'test', label: 'test merger of two vesting schedules', - testFn: () => testMergeVestingSchedules(chain, true), + testFn: () => testMergeVestingSchedules(chain), }, { kind: 'test', @@ -601,11 +569,6 @@ export function assetHubVestingE2ETests< label: 'attempt to merge when no vesting schedules exist fails', testFn: () => testMergeSchedulesNoSchedule(chain), }, - { - kind: 'test', - label: 'merge schedules (seeded into storage)', - testFn: () => testMergeVestingSchedules(chain, false), - }, ], } } From 366019142b629d04d9500bae6f2b46eba84b334a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 14:40:15 +0100 Subject: [PATCH 14/22] Refactor E2E test trees to be rooted by `describe` --- packages/shared/src/multisig.ts | 8 ++++---- packages/shared/src/scheduler.ts | 4 ++-- packages/shared/src/types.ts | 15 +++++++++++---- packages/shared/src/vesting.ts | 6 +++--- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/packages/shared/src/multisig.ts b/packages/shared/src/multisig.ts index 3f00a02a9..d2cb3f584 100644 --- a/packages/shared/src/multisig.ts +++ b/packages/shared/src/multisig.ts @@ -5,7 +5,7 @@ import { encodeAddress } from '@polkadot/util-crypto' import { assert, expect } from 'vitest' import { checkEvents } from './helpers/index.js' -import type { TestTree } from './types.js' +import type { RootTestTree } from './types.js' /// ------- /// Helpers @@ -2209,7 +2209,7 @@ async function maxWeightTooLowTest< export function successMultisigE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { return { kind: 'describe', label: 'success tests', @@ -2247,7 +2247,7 @@ export function successMultisigE2ETests< export function failureMultisigE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain): TestTree { +>(chain: Chain): RootTestTree { return { kind: 'describe', label: 'failure tests', @@ -2355,7 +2355,7 @@ export function failureMultisigE2ETests< export function baseMultisigE2Etests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { return { kind: 'describe', label: testConfig.testSuiteName, diff --git a/packages/shared/src/scheduler.ts b/packages/shared/src/scheduler.ts index a1f7131b8..ad7f8daf3 100644 --- a/packages/shared/src/scheduler.ts +++ b/packages/shared/src/scheduler.ts @@ -16,7 +16,7 @@ import type { PalletSchedulerScheduled, SpWeightsWeightV2Weight } from '@polkado import type { ISubmittableResult } from '@polkadot/types/types' import { sha256AsU8a } from '@polkadot/util-crypto' -import type { TestTree } from './types.js' +import type { RootTestTree } from './types.js' /// ------- /// Helpers @@ -1354,7 +1354,7 @@ export async function scheduleNamedWithRetryConfig< export function baseSchedulerE2ETests< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string }): TestTree { +>(chain: Chain, testConfig: { testSuiteName: string }): RootTestTree { return { kind: 'describe', label: testConfig.testSuiteName, diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index ec7d101ec..3876db7fd 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -49,17 +49,24 @@ export type TestNode = { export type DescribeNode = { kind: 'describe' label: string - children: TestTree[] + children: TestTreeChild[] beforeAll?: () => Promise afterAll?: () => Promise flags?: { only?: boolean; skip?: boolean } meta?: Record } +/** + * A test sub-tree - it can be a single `test`, or a `describe` node with its own children. + */ +type TestTreeChild = TestNode | DescribeNode + /** * A test tree, used to represent an E2E test suite. + * + * Vitest does not require it, but PET's E2E suites begin with a root `describe` node. */ -export type TestTree = TestNode | DescribeNode +export type RootTestTree = DescribeNode /** * Create an end-to-end test tree, to be used in an E2E test suite. @@ -77,8 +84,8 @@ export type TestTree = TestNode | DescribeNode * `vitest.describe` / `vitest.test` immediately so that Vitest picks the tests * up during collection. */ -export function registerTestTree(node: TestTree) { - match(node) +export function registerTestTree(testTree: TestTreeChild) { + match(testTree) .with({ kind: 'test' }, (testNode) => { const t = testNode.flags?.only ? test.only : testNode.flags?.skip ? test.skip : test diff --git a/packages/shared/src/vesting.ts b/packages/shared/src/vesting.ts index 9a571c0c5..228d8bd76 100644 --- a/packages/shared/src/vesting.ts +++ b/packages/shared/src/vesting.ts @@ -8,7 +8,7 @@ import { sendTransaction } from '@acala-network/chopsticks-testing' import type { DispatchError } from '@polkadot/types/interfaces' import type { FrameSystemEventRecord } from '@polkadot/types/lookup' import { assert, expect } from 'vitest' -import type { TestTree } from './types.js' +import type { RootTestTree } from './types.js' /** * Test that a vested transfer works as expected. @@ -502,7 +502,7 @@ async function testMergeSchedulesNoSchedule< export function relayVestingE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): TestTree { +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { return { kind: 'describe', label: testConfig.testSuiteName, @@ -544,7 +544,7 @@ export function relayVestingE2ETests< export function assetHubVestingE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string }): TestTree { +>(chain: Chain, testConfig: { testSuiteName: string }): RootTestTree { return { kind: 'describe', label: testConfig.testSuiteName, From d48f21e49445acd5001ce34ca409ee0e2f61ebc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 18:39:58 +0100 Subject: [PATCH 15/22] Refactor collectives E2E test --- .../src/collectivesPolkadot.polkadot.test.ts | 6 +++-- packages/shared/src/collectives.ts | 23 +++++++++++-------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/packages/polkadot/src/collectivesPolkadot.polkadot.test.ts b/packages/polkadot/src/collectivesPolkadot.polkadot.test.ts index 9291c3ca6..4776eb0c6 100644 --- a/packages/polkadot/src/collectivesPolkadot.polkadot.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.polkadot.test.ts @@ -1,12 +1,14 @@ import { collectivesPolkadot, polkadot } from '@e2e-test/networks/chains' -import { collectivesChainE2ETests, setupNetworks } from '@e2e-test/shared' +import { baseCollectivesChainE2ETests, registerTestTree, setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' import { authorizeUpgradeViaCollectives } from '@e2e-test/shared/upgrade.js' import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' import { describe, test } from 'vitest' -collectivesChainE2ETests(polkadot, collectivesPolkadot, { testSuiteName: 'collectives & polkadot' }) +registerTestTree( + baseCollectivesChainE2ETests(polkadot, collectivesPolkadot, { testSuiteName: 'collectives & polkadot' }), +) describe('collectives & polkadot', async () => { const [polkadotClient, collectivesClient] = await setupNetworks(polkadot, collectivesPolkadot) diff --git a/packages/shared/src/collectives.ts b/packages/shared/src/collectives.ts index ce7540431..17f3d4721 100644 --- a/packages/shared/src/collectives.ts +++ b/packages/shared/src/collectives.ts @@ -8,12 +8,11 @@ * @module */ -import { describe, test } from 'vitest' - import type { Chain, Client } from '@e2e-test/networks' import { checkSystemEvents, createXcmTransactSend, scheduleInlineCallWithOrigin } from './helpers/index.js' import { setupNetworks } from './setup.js' +import type { RootTestTree } from './types.js' /** * Test the process of whitelisting a call * @@ -95,7 +94,7 @@ export async function sendWhitelistCallViaXcmTransact( * @param relayClient The relay chain to be used by these tests * @param collectivesClient The collectives's chain associated to the previous `relayChain` */ -export function collectivesChainE2ETests< +export function baseCollectivesChainE2ETests< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, TInitStoragesPara extends Record> | undefined, @@ -103,10 +102,16 @@ export function collectivesChainE2ETests< relayChain: Chain, collectivesChain: Chain, testConfig: { testSuiteName: string }, -) { - describe(testConfig.testSuiteName, async () => { - test('whitelisting a call by fellowship', async () => { - await fellowshipWhitelistCall(relayChain, collectivesChain) - }) - }) +): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'whitelisting a call by fellowship', + testFn: async () => await fellowshipWhitelistCall(relayChain, collectivesChain), + }, + ], + } } From c58182fe47794837231b294a1c57a4776829732b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 18:54:09 +0100 Subject: [PATCH 16/22] Refactor governance E2E test tree --- .../kusama.governance.e2e.test.ts.snap | 60 +++++++++---------- .../kusama/src/kusama.governance.e2e.test.ts | 4 +- .../polkadot.governance.e2e.test.ts.snap | 60 +++++++++---------- .../src/polkadot.governance.e2e.test.ts | 4 +- packages/shared/src/governance.ts | 53 +++++++++++----- packages/shared/src/types.ts | 2 +- 6 files changed, 102 insertions(+), 81 deletions(-) diff --git a/packages/kusama/src/__snapshots__/kusama.governance.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.governance.e2e.test.ts.snap index fe989e224..d75bb0f73 100644 --- a/packages/kusama/src/__snapshots__/kusama.governance.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.governance.e2e.test.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Kusama Governance > preimage submission, query and removal works > note preimage events 1`] = ` +exports[`Kusama Governance > preimage tests > preimage submission, query and removal works > note preimage events 1`] = ` [ { "data": { @@ -12,7 +12,7 @@ exports[`Kusama Governance > preimage submission, query and removal works > note ] `; -exports[`Kusama Governance > preimage submission, query and removal works > unnote preimage events 1`] = ` +exports[`Kusama Governance > preimage tests > preimage submission, query and removal works > unnote preimage events 1`] = ` [ { "data": { @@ -24,7 +24,7 @@ exports[`Kusama Governance > preimage submission, query and removal works > unno ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > cancelling referendum with signed origin 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > cancelling referendum with signed origin 1`] = ` [ { "data": { @@ -44,7 +44,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's class locks after their vote's rescission 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's class locks after their vote's rescission 1`] = ` [ [ 30, @@ -53,7 +53,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after casting his 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after casting his 1`] = ` { "standard": { "balance": 50000000000, @@ -62,7 +62,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after referendum's cancellation 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after referendum's cancellation 1`] = ` { "standard": { "balance": 50000000000, @@ -71,7 +71,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after rescission 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after rescission 1`] = ` { "delegations": { "capital": 0, @@ -85,7 +85,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's class locks after their vote's rescission 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's class locks after their vote's rescission 1`] = ` [ [ 30, @@ -94,7 +94,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after casting his 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after casting his 1`] = ` { "split": { "aye": 50000000000, @@ -103,7 +103,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after referendum's cancellation 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after referendum's cancellation 1`] = ` { "split": { "aye": 50000000000, @@ -112,7 +112,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after rescission 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after rescission 1`] = ` { "delegations": { "capital": 0, @@ -126,7 +126,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's class locks after their vote's rescission 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's class locks after their vote's rescission 1`] = ` [ [ 30, @@ -135,7 +135,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after casting hers 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after casting hers 1`] = ` { "splitAbstain": { "abstain": 20000000000, @@ -145,7 +145,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after referendum's cancellation 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after referendum's cancellation 1`] = ` { "splitAbstain": { "abstain": 20000000000, @@ -155,7 +155,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after rescission 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after rescission 1`] = ` { "delegations": { "capital": 0, @@ -169,7 +169,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for bob's decision deposit 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for bob's decision deposit 1`] = ` [ { "data": { @@ -182,7 +182,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for charlie's vote 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for charlie's vote 1`] = ` [ { "data": { @@ -203,7 +203,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for dave's vote 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for dave's vote 1`] = ` [ { "data": { @@ -221,7 +221,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for eve's vote 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for eve's vote 1`] = ` [ { "data": { @@ -240,7 +240,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after charlie's vote 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after charlie's vote 1`] = ` { "ongoing": { "deciding": { @@ -274,7 +274,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after dave's vote 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after dave's vote 1`] = ` { "ongoing": { "deciding": { @@ -308,7 +308,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after eve's vote 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after eve's vote 1`] = ` { "ongoing": { "deciding": { @@ -342,7 +342,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info before decision deposit 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info before decision deposit 1`] = ` { "ongoing": { "deciding": null, @@ -371,7 +371,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info post decision deposit 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info post decision deposit 1`] = ` { "ongoing": { "deciding": null, @@ -403,7 +403,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum submission events 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum submission events 1`] = ` [ { "data": { @@ -418,7 +418,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum upon start of decision period 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum upon start of decision period 1`] = ` { "deciding": { "confirming": null, @@ -450,7 +450,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de } `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of decision deposit 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of decision deposit 1`] = ` [ { "data": { @@ -463,7 +463,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of submission deposit 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of submission deposit 1`] = ` [ { "data": { @@ -476,7 +476,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > removal of votes in cancelled referendum 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > removal of votes in cancelled referendum 1`] = ` [ { "data": { @@ -544,7 +544,7 @@ exports[`Kusama Governance > referendum lifecycle test - submission, decision de ] `; -exports[`Kusama Governance > referendum lifecycle test 2 - submission, decision deposit, and killing should work > killing referendum with signed origin 1`] = ` +exports[`Kusama Governance > referenda tests > referendum lifecycle test 2 - submission, decision deposit, and killing should work > killing referendum with signed origin 1`] = ` [ { "data": { diff --git a/packages/kusama/src/kusama.governance.e2e.test.ts b/packages/kusama/src/kusama.governance.e2e.test.ts index eca829472..b78af05c9 100644 --- a/packages/kusama/src/kusama.governance.e2e.test.ts +++ b/packages/kusama/src/kusama.governance.e2e.test.ts @@ -1,5 +1,5 @@ import { kusama } from '@e2e-test/networks/chains' -import { governanceE2ETests } from '@e2e-test/shared' +import { baseGovernanceE2ETests, registerTestTree } from '@e2e-test/shared' -governanceE2ETests(kusama, { testSuiteName: 'Kusama Governance', addressEncoding: 2 }) +registerTestTree(baseGovernanceE2ETests(kusama, { testSuiteName: 'Kusama Governance', addressEncoding: 2 })) diff --git a/packages/polkadot/src/__snapshots__/polkadot.governance.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.governance.e2e.test.ts.snap index 5537ed2c7..1f309a4ff 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.governance.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.governance.e2e.test.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Polkadot Governance > preimage submission, query and removal works > note preimage events 1`] = ` +exports[`Polkadot Governance > preimage tests > preimage submission, query and removal works > note preimage events 1`] = ` [ { "data": { @@ -12,7 +12,7 @@ exports[`Polkadot Governance > preimage submission, query and removal works > no ] `; -exports[`Polkadot Governance > preimage submission, query and removal works > unnote preimage events 1`] = ` +exports[`Polkadot Governance > preimage tests > preimage submission, query and removal works > unnote preimage events 1`] = ` [ { "data": { @@ -24,7 +24,7 @@ exports[`Polkadot Governance > preimage submission, query and removal works > un ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > cancelling referendum with signed origin 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > cancelling referendum with signed origin 1`] = ` [ { "data": { @@ -44,7 +44,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's class locks after their vote's rescission 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's class locks after their vote's rescission 1`] = ` [ [ 30, @@ -53,7 +53,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after casting his 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after casting his 1`] = ` { "standard": { "balance": 50000000000, @@ -62,7 +62,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after referendum's cancellation 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after referendum's cancellation 1`] = ` { "standard": { "balance": 50000000000, @@ -71,7 +71,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after rescission 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > charlie's votes after rescission 1`] = ` { "delegations": { "capital": 0, @@ -85,7 +85,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's class locks after their vote's rescission 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's class locks after their vote's rescission 1`] = ` [ [ 30, @@ -94,7 +94,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after casting his 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after casting his 1`] = ` { "split": { "aye": 50000000000, @@ -103,7 +103,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after referendum's cancellation 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after referendum's cancellation 1`] = ` { "split": { "aye": 50000000000, @@ -112,7 +112,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after rescission 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > dave's votes after rescission 1`] = ` { "delegations": { "capital": 0, @@ -126,7 +126,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's class locks after their vote's rescission 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's class locks after their vote's rescission 1`] = ` [ [ 30, @@ -135,7 +135,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after casting hers 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after casting hers 1`] = ` { "splitAbstain": { "abstain": 20000000000, @@ -145,7 +145,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after referendum's cancellation 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after referendum's cancellation 1`] = ` { "splitAbstain": { "abstain": 20000000000, @@ -155,7 +155,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after rescission 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > eve's votes after rescission 1`] = ` { "delegations": { "capital": 0, @@ -169,7 +169,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for bob's decision deposit 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for bob's decision deposit 1`] = ` [ { "data": { @@ -182,7 +182,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for charlie's vote 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for charlie's vote 1`] = ` [ { "data": { @@ -203,7 +203,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for dave's vote 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for dave's vote 1`] = ` [ { "data": { @@ -221,7 +221,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > events for eve's vote 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > events for eve's vote 1`] = ` [ { "data": { @@ -240,7 +240,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after charlie's vote 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after charlie's vote 1`] = ` { "ongoing": { "deciding": { @@ -274,7 +274,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after dave's vote 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after dave's vote 1`] = ` { "ongoing": { "deciding": { @@ -308,7 +308,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after eve's vote 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info after eve's vote 1`] = ` { "ongoing": { "deciding": { @@ -342,7 +342,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info before decision deposit 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info before decision deposit 1`] = ` { "ongoing": { "deciding": null, @@ -371,7 +371,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info post decision deposit 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum info post decision deposit 1`] = ` { "ongoing": { "deciding": null, @@ -403,7 +403,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum submission events 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum submission events 1`] = ` [ { "data": { @@ -418,7 +418,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum upon start of decision period 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > referendum upon start of decision period 1`] = ` { "deciding": { "confirming": null, @@ -450,7 +450,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision } `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of decision deposit 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of decision deposit 1`] = ` [ { "data": { @@ -463,7 +463,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of submission deposit 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > refund of submission deposit 1`] = ` [ { "data": { @@ -476,7 +476,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test - submission, decision deposit, various voting should all work > removal of votes in cancelled referendum 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > removal of votes in cancelled referendum 1`] = ` [ { "data": { @@ -544,7 +544,7 @@ exports[`Polkadot Governance > referendum lifecycle test - submission, decision ] `; -exports[`Polkadot Governance > referendum lifecycle test 2 - submission, decision deposit, and killing should work > killing referendum with signed origin 1`] = ` +exports[`Polkadot Governance > referenda tests > referendum lifecycle test 2 - submission, decision deposit, and killing should work > killing referendum with signed origin 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/polkadot.governance.e2e.test.ts b/packages/polkadot/src/polkadot.governance.e2e.test.ts index 455e0df1a..0c86d7992 100644 --- a/packages/polkadot/src/polkadot.governance.e2e.test.ts +++ b/packages/polkadot/src/polkadot.governance.e2e.test.ts @@ -1,5 +1,5 @@ import { polkadot } from '@e2e-test/networks/chains' -import { governanceE2ETests } from '@e2e-test/shared' +import { baseGovernanceE2ETests, registerTestTree } from '@e2e-test/shared' -governanceE2ETests(polkadot, { testSuiteName: 'Polkadot Governance', addressEncoding: 0 }) +registerTestTree(baseGovernanceE2ETests(polkadot, { testSuiteName: 'Polkadot Governance', addressEncoding: 0 })) diff --git a/packages/shared/src/governance.ts b/packages/shared/src/governance.ts index 6200cdfb0..647f17b10 100644 --- a/packages/shared/src/governance.ts +++ b/packages/shared/src/governance.ts @@ -1,9 +1,10 @@ import { BN } from 'bn.js' -import { assert, describe, test } from 'vitest' +import { assert } from 'vitest' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' import { setupNetworks } from '@e2e-test/shared' import { check, checkEvents, checkSystemEvents, objectCmp, scheduleInlineCallWithOrigin } from './helpers/index.js' +import type { RootTestTree } from './types.js' import { sendTransaction } from '@acala-network/chopsticks-testing' @@ -878,21 +879,41 @@ export async function preimageTest< assert(preimage.isNone) } -export function governanceE2ETests< +export function baseGovernanceE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - describe(testConfig.testSuiteName, async () => { - test('referendum lifecycle test - submission, decision deposit, various voting should all work', async () => { - await referendumLifecycleTest(chain, testConfig.addressEncoding) - }) - - test('referendum lifecycle test 2 - submission, decision deposit, and killing should work', async () => { - await referendumLifecycleKillTest(chain, testConfig.addressEncoding) - }) - - test('preimage submission, query and removal works', async () => { - await preimageTest(chain) - }) - }) +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'describe', + label: 'referenda tests', + children: [ + { + kind: 'test', + label: 'referendum lifecycle test - submission, decision deposit, various voting should all work', + testFn: async () => await referendumLifecycleTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: 'referendum lifecycle test 2 - submission, decision deposit, and killing should work', + testFn: async () => await referendumLifecycleKillTest(chain, testConfig.addressEncoding), + }, + ], + }, + { + kind: 'describe', + label: 'preimage tests', + children: [ + { + kind: 'test', + label: 'preimage submission, query and removal works', + testFn: async () => await preimageTest(chain), + }, + ], + }, + ], + } } diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index 3876db7fd..ad16fac21 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -76,7 +76,7 @@ export type RootTestTree = DescribeNode * * Call this exactly once per suite at module scope: * ```ts - * const suite: TestTree = { … } + * const suite: TestTreeChild = { … } * registerTestTree(suite) * ``` * From 062c58335058b1db0007939d6ef5bac6f2d9a63f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 22:23:02 +0100 Subject: [PATCH 17/22] Create Treasury E2E tree --- .../kusama/src/kusama.scheduler.e2e.test.ts | 4 ++-- .../src/polkadot.treasury.e2e.test.ts | 6 +++-- packages/shared/src/treasury.ts | 23 ++++++++++++------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/packages/kusama/src/kusama.scheduler.e2e.test.ts b/packages/kusama/src/kusama.scheduler.e2e.test.ts index c9b9c4d55..8de6220dc 100644 --- a/packages/kusama/src/kusama.scheduler.e2e.test.ts +++ b/packages/kusama/src/kusama.scheduler.e2e.test.ts @@ -1,5 +1,5 @@ import { kusama } from '@e2e-test/networks/chains' -import { schedulerE2ETests } from '@e2e-test/shared' +import { baseSchedulerE2ETests, registerTestTree } from '@e2e-test/shared' -schedulerE2ETests(kusama, { testSuiteName: 'Kusama Scheduler', addressEncoding: 0 }) +registerTestTree(baseSchedulerE2ETests(kusama, { testSuiteName: 'Kusama Scheduler' })) diff --git a/packages/polkadot/src/polkadot.treasury.e2e.test.ts b/packages/polkadot/src/polkadot.treasury.e2e.test.ts index f63562aee..2ff8d94cb 100644 --- a/packages/polkadot/src/polkadot.treasury.e2e.test.ts +++ b/packages/polkadot/src/polkadot.treasury.e2e.test.ts @@ -1,4 +1,6 @@ import { assetHubPolkadot, polkadot } from '@e2e-test/networks/chains' -import { treasuryE2ETests } from '@e2e-test/shared' +import { baseTreasuryE2ETests, registerTestTree } from '@e2e-test/shared' -treasuryE2ETests(polkadot, assetHubPolkadot, { testSuiteName: 'Polkadot Treasury', addressEncoding: 0 }) +registerTestTree( + baseTreasuryE2ETests(polkadot, assetHubPolkadot, { testSuiteName: 'Polkadot Treasury', addressEncoding: 0 }), +) diff --git a/packages/shared/src/treasury.ts b/packages/shared/src/treasury.ts index 992bdf192..3e73b1660 100644 --- a/packages/shared/src/treasury.ts +++ b/packages/shared/src/treasury.ts @@ -1,4 +1,4 @@ -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 as devAccounts } from '@e2e-test/networks' @@ -6,6 +6,7 @@ import { setupNetworks } from '@e2e-test/shared' import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, XcmVersionedLocation } from '@polkadot/types/lookup' import { checkEvents, checkSystemEvents, scheduleInlineCallWithOrigin } from './helpers/index.js' +import type { RootTestTree } from './types.js' /** * Test that a foreign asset spend from the Relay treasury is reflected on the AssetHub. @@ -127,7 +128,7 @@ export async function treasurySpendForeignAssetTest< expect(balanceAfterAmount - balanceBeforeAmount).toBe(amount) } -export function treasuryE2ETests< +export function baseTreasuryE2ETests< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, TInitStoragesPara extends Record> | undefined, @@ -135,10 +136,16 @@ export function treasuryE2ETests< relayChain: Chain, ahChain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }, -) { - describe(testConfig.testSuiteName, () => { - test('Foreign asset spend from Relay treasury is reflected on AssetHub', async () => { - await treasurySpendForeignAssetTest(relayChain, ahChain) - }) - }) +): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'Foreign asset spend from Relay treasury is reflected on AssetHub', + testFn: async () => await treasurySpendForeignAssetTest(relayChain, ahChain), + }, + ], + } } From f463f712c237dec8c7b7d7eff468235a291ce736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Tue, 5 Aug 2025 22:33:07 +0100 Subject: [PATCH 18/22] Refactor nomination pools E2E test tree --- .../src/kusama.nominationPools.e2e.test.ts | 4 +- .../src/polkadot.nominationPools.e2e.test.ts | 6 +- packages/shared/src/nomination-pools.ts | 71 +++++++++++-------- 3 files changed, 49 insertions(+), 32 deletions(-) diff --git a/packages/kusama/src/kusama.nominationPools.e2e.test.ts b/packages/kusama/src/kusama.nominationPools.e2e.test.ts index bb3a12a5d..37e72a9b4 100644 --- a/packages/kusama/src/kusama.nominationPools.e2e.test.ts +++ b/packages/kusama/src/kusama.nominationPools.e2e.test.ts @@ -1,5 +1,5 @@ import { kusama } from '@e2e-test/networks/chains' -import { nominationPoolsE2ETests } from '@e2e-test/shared' +import { baseNominationPoolsE2ETests, registerTestTree } from '@e2e-test/shared' -nominationPoolsE2ETests(kusama, { testSuiteName: 'Kusama Nomination Pools', addressEncoding: 2 }) +registerTestTree(baseNominationPoolsE2ETests(kusama, { testSuiteName: 'Kusama Nomination Pools', addressEncoding: 2 })) diff --git a/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts b/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts index 3f293ec5b..1e5a288c0 100644 --- a/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts +++ b/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts @@ -1,5 +1,7 @@ import { polkadot } from '@e2e-test/networks/chains' -import { nominationPoolsE2ETests } from '@e2e-test/shared' +import { baseNominationPoolsE2ETests, registerTestTree } from '@e2e-test/shared' -nominationPoolsE2ETests(polkadot, { testSuiteName: 'Polkadot Nomination Pools', addressEncoding: 0 }) +registerTestTree( + baseNominationPoolsE2ETests(polkadot, { testSuiteName: 'Polkadot Nomination Pools', addressEncoding: 0 }), +) diff --git a/packages/shared/src/nomination-pools.ts b/packages/shared/src/nomination-pools.ts index 7cebfce41..e515a89ca 100644 --- a/packages/shared/src/nomination-pools.ts +++ b/packages/shared/src/nomination-pools.ts @@ -19,7 +19,8 @@ import type { KeyringPair } from '@polkadot/keyring/types' import { type Option, u32 } from '@polkadot/types' import type { PalletNominationPoolsBondedPoolInner } from '@polkadot/types/lookup' import type { Codec } from '@polkadot/types/types' -import { assert, describe, test } from 'vitest' +import { assert } from 'vitest' +import type { RootTestTree } from './types.js' /// ------- /// Helpers @@ -1057,33 +1058,47 @@ async function nominationPoolsUpdateRolesTest< }) } -export function nominationPoolsE2ETests< +export function baseNominationPoolsE2ETests< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - describe(testConfig.testSuiteName, async () => { - test('nomination pool lifecycle test', async () => { - await nominationPoolLifecycleTest(chain, testConfig.addressEncoding) - }) - - test('nomination pool creation with insufficient funds', async () => { - await nominationPoolCreationFailureTest(chain) - }) - - test('nomination pool metadata test', async () => { - await nominationPoolSetMetadataTest(chain) - }) - - test('nomination pool double join test: an account can only ever be in one pool at a time', async () => { - await nominationPoolDoubleJoinError(chain) - }) - - test('nomination pool global config test', async () => { - await nominationPoolGlobalConfigTest(chain) - }) - - test('nomination pools update roles test', async () => { - await nominationPoolsUpdateRolesTest(chain, testConfig.addressEncoding) - }) - }) +>( + chain: Chain, + testConfig: { testSuiteName: string; addressEncoding: number }, +): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'nomination pool lifecycle test', + testFn: async () => await nominationPoolLifecycleTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: 'nomination pool creation with insufficient funds', + testFn: async () => await nominationPoolCreationFailureTest(chain), + }, + { + kind: 'test', + label: 'nomination pool metadata test', + testFn: async () => await nominationPoolSetMetadataTest(chain), + }, + { + kind: 'test', + label: 'nomination pool double join test: an account can only ever be in one pool at a time', + testFn: async () => await nominationPoolDoubleJoinError(chain), + }, + { + kind: 'test', + label: 'nomination pool global config test', + testFn: async () => await nominationPoolGlobalConfigTest(chain), + }, + { + kind: 'test', + label: 'nomination pools update roles test', + testFn: async () => await nominationPoolsUpdateRolesTest(chain, testConfig.addressEncoding), + }, + ], + } } From 8b4168ef28687140043bd4e468adccaf08ef8129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Wed, 6 Aug 2025 14:24:00 +0100 Subject: [PATCH 19/22] Refactor staking E2E test trees --- .../kusama.staking.e2e.test.ts.snap | 254 +++++++++--------- .../kusama/src/kusama.staking.e2e.test.ts | 4 +- .../polkadot.staking.e2e.test.ts.snap | 254 +++++++++--------- .../polkadot/src/polkadot.staking.e2e.test.ts | 4 +- packages/shared/src/staking.ts | 180 ++++++++----- 5 files changed, 372 insertions(+), 324 deletions(-) diff --git a/packages/kusama/src/__snapshots__/kusama.staking.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.staking.e2e.test.ts.snap index 0e03c35ce..d44e0b5bb 100644 --- a/packages/kusama/src/__snapshots__/kusama.staking.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.staking.e2e.test.ts.snap @@ -1,80 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Kusama Staking > cancel deferred slash as admin > alice funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999554590223, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Kusama Staking > cancel deferred slash as admin > bob funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999554590223, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Kusama Staking > cancel deferred slash as admin > charlie funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999554590223, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Kusama Staking > cancel deferred slash as root > alice funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999554590223, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Kusama Staking > cancel deferred slash as root > bob funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999554590223, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Kusama Staking > cancel deferred slash as root > charlie funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999554590223, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Kusama Staking > cancel deferred slash with bad origin > cancel deferred slash events with bad origin 1`] = ` -[ - { - "data": { - "dispatchError": "BadOrigin", - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 77000)", - "refTime": "(rounded 1800000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Kusama Staking > chill other > chill other bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 1`] = ` [ { "data": { @@ -99,7 +25,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 1`] = ` ] `; -exports[`Kusama Staking > chill other > chill other bad origin events 2`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 2`] = ` [ { "data": { @@ -124,7 +50,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 2`] = ` ] `; -exports[`Kusama Staking > chill other > chill other bad origin events 3`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 3`] = ` [ { "data": { @@ -149,7 +75,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 3`] = ` ] `; -exports[`Kusama Staking > chill other > chill other bad origin events 4`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 4`] = ` [ { "data": { @@ -174,7 +100,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 4`] = ` ] `; -exports[`Kusama Staking > chill other > chill other bad origin events 5`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 5`] = ` [ { "data": { @@ -199,7 +125,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 5`] = ` ] `; -exports[`Kusama Staking > chill other > chill other bad origin events 6`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 6`] = ` [ { "data": { @@ -224,7 +150,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 6`] = ` ] `; -exports[`Kusama Staking > chill other > chill other bad origin events 7`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other bad origin events 7`] = ` [ { "data": { @@ -249,7 +175,7 @@ exports[`Kusama Staking > chill other > chill other bad origin events 7`] = ` ] `; -exports[`Kusama Staking > chill other > chill other events 1`] = ` +exports[`Kusama Staking > base staking tests > chill other > chill other events 1`] = ` [ { "data": { @@ -261,7 +187,7 @@ exports[`Kusama Staking > chill other > chill other events 1`] = ` ] `; -exports[`Kusama Staking > force apply validator commission > force apply min commission events 1`] = ` +exports[`Kusama Staking > base staking tests > force apply validator commission > force apply min commission events 1`] = ` [ { "data": { @@ -280,7 +206,7 @@ exports[`Kusama Staking > force apply validator commission > force apply min com ] `; -exports[`Kusama Staking > modify validator count > increase validator count bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > modify validator count > increase validator count bad origin events 1`] = ` [ { "data": { @@ -300,7 +226,7 @@ exports[`Kusama Staking > modify validator count > increase validator count bad ] `; -exports[`Kusama Staking > modify validator count > scale validator count bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > modify validator count > scale validator count bad origin events 1`] = ` [ { "data": { @@ -320,7 +246,7 @@ exports[`Kusama Staking > modify validator count > scale validator count bad ori ] `; -exports[`Kusama Staking > modify validator count > set validator count bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > modify validator count > set validator count bad origin events 1`] = ` [ { "data": { @@ -340,7 +266,7 @@ exports[`Kusama Staking > modify validator count > set validator count bad origi ] `; -exports[`Kusama Staking > set invulnerables with bad origin > events when setting invulnerables with bad staking admin origin 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with bad origin > events when setting invulnerables with bad staking admin origin 1`] = ` [ { "data": { @@ -356,7 +282,7 @@ exports[`Kusama Staking > set invulnerables with bad origin > events when settin ] `; -exports[`Kusama Staking > set invulnerables with bad origin > set invulnerables events with bad signed origin 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with bad origin > set invulnerables events with bad signed origin 1`] = ` [ { "data": { @@ -376,7 +302,7 @@ exports[`Kusama Staking > set invulnerables with bad origin > set invulnerables ] `; -exports[`Kusama Staking > set invulnerables with root origin > alice funds post slash 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > alice funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999112324871, @@ -385,7 +311,7 @@ exports[`Kusama Staking > set invulnerables with root origin > alice funds post } `; -exports[`Kusama Staking > set invulnerables with root origin > alice funds pre slash 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > alice funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999112324871, @@ -394,9 +320,9 @@ exports[`Kusama Staking > set invulnerables with root origin > alice funds pre s } `; -exports[`Kusama Staking > set invulnerables with root origin > balances slash events 1`] = `[]`; +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > balances slash events 1`] = `[]`; -exports[`Kusama Staking > set invulnerables with root origin > bob funds post slash 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > bob funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999112324871, @@ -405,7 +331,7 @@ exports[`Kusama Staking > set invulnerables with root origin > bob funds post sl } `; -exports[`Kusama Staking > set invulnerables with root origin > bob funds pre slash 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > bob funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999112324871, @@ -414,7 +340,7 @@ exports[`Kusama Staking > set invulnerables with root origin > bob funds pre sla } `; -exports[`Kusama Staking > set invulnerables with root origin > charlie funds post slash 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > charlie funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999112324871, @@ -423,7 +349,7 @@ exports[`Kusama Staking > set invulnerables with root origin > charlie funds pos } `; -exports[`Kusama Staking > set invulnerables with root origin > charlie funds pre slash 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > charlie funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999112324871, @@ -432,7 +358,7 @@ exports[`Kusama Staking > set invulnerables with root origin > charlie funds pre } `; -exports[`Kusama Staking > set invulnerables with root origin > staking slash events 1`] = ` +exports[`Kusama Staking > base staking tests > set invulnerables with root origin > staking slash events 1`] = ` [ { "data": { @@ -461,7 +387,7 @@ exports[`Kusama Staking > set invulnerables with root origin > staking slash eve ] `; -exports[`Kusama Staking > set minimum validator commission > set staking configs bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > set minimum validator commission > set staking configs bad origin events 1`] = ` [ { "data": { @@ -481,7 +407,7 @@ exports[`Kusama Staking > set minimum validator commission > set staking configs ] `; -exports[`Kusama Staking > set staking configs > set staking configs bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > set staking configs > set staking configs bad origin events 1`] = ` [ { "data": { @@ -501,7 +427,7 @@ exports[`Kusama Staking > set staking configs > set staking configs bad origin e ] `; -exports[`Kusama Staking > set staking configs > set staking configs event 1`] = ` +exports[`Kusama Staking > base staking tests > set staking configs > set staking configs event 1`] = ` { "event": { "data": [ @@ -523,7 +449,7 @@ exports[`Kusama Staking > set staking configs > set staking configs event 1`] = } `; -exports[`Kusama Staking > staking lifecycle > chill events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > chill events 1`] = ` [ { "data": { @@ -535,7 +461,7 @@ exports[`Kusama Staking > staking lifecycle > chill events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > events when attempting to nominate a blocked validator 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > events when attempting to nominate a blocked validator 1`] = ` [ { "data": { @@ -560,7 +486,7 @@ exports[`Kusama Staking > staking lifecycle > events when attempting to nominate ] `; -exports[`Kusama Staking > staking lifecycle > kick events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > kick events 1`] = ` [ { "data": { @@ -573,9 +499,9 @@ exports[`Kusama Staking > staking lifecycle > kick events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > nominate events 1`] = `[]`; +exports[`Kusama Staking > base staking tests > staking lifecycle > nominate events 1`] = `[]`; -exports[`Kusama Staking > staking lifecycle > nominator bond events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > nominator bond events 1`] = ` [ { "data": { @@ -588,7 +514,7 @@ exports[`Kusama Staking > staking lifecycle > nominator bond events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > nominator bond extra events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > nominator bond extra events 1`] = ` [ { "data": { @@ -601,7 +527,7 @@ exports[`Kusama Staking > staking lifecycle > nominator bond extra events 1`] = ] `; -exports[`Kusama Staking > staking lifecycle > unbond events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > unbond events 1`] = ` [ { "data": { @@ -614,7 +540,7 @@ exports[`Kusama Staking > staking lifecycle > unbond events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > validate (blocked) events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validate (blocked) events 1`] = ` [ { "data": { @@ -630,7 +556,7 @@ exports[`Kusama Staking > staking lifecycle > validate (blocked) events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > validator 0 bond events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validator 0 bond events 1`] = ` [ { "data": { @@ -643,7 +569,7 @@ exports[`Kusama Staking > staking lifecycle > validator 0 bond events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > validator 0 validate events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validator 0 validate events 1`] = ` [ { "data": { @@ -659,7 +585,7 @@ exports[`Kusama Staking > staking lifecycle > validator 0 validate events 1`] = ] `; -exports[`Kusama Staking > staking lifecycle > validator 1 bond events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validator 1 bond events 1`] = ` [ { "data": { @@ -672,7 +598,7 @@ exports[`Kusama Staking > staking lifecycle > validator 1 bond events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > validator 1 validate events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validator 1 validate events 1`] = ` [ { "data": { @@ -688,7 +614,7 @@ exports[`Kusama Staking > staking lifecycle > validator 1 validate events 1`] = ] `; -exports[`Kusama Staking > staking lifecycle > validator 2 bond events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validator 2 bond events 1`] = ` [ { "data": { @@ -701,7 +627,7 @@ exports[`Kusama Staking > staking lifecycle > validator 2 bond events 1`] = ` ] `; -exports[`Kusama Staking > staking lifecycle > validator 2 validate events 1`] = ` +exports[`Kusama Staking > base staking tests > staking lifecycle > validator 2 validate events 1`] = ` [ { "data": { @@ -717,9 +643,9 @@ exports[`Kusama Staking > staking lifecycle > validator 2 validate events 1`] = ] `; -exports[`Kusama Staking > test fast unstake > nominate events 1`] = `[]`; +exports[`Kusama Staking > base staking tests > test fast unstake > nominate events 1`] = `[]`; -exports[`Kusama Staking > test fast unstake > nominator bond events 1`] = ` +exports[`Kusama Staking > base staking tests > test fast unstake > nominator bond events 1`] = ` [ { "data": { @@ -732,9 +658,9 @@ exports[`Kusama Staking > test fast unstake > nominator bond events 1`] = ` ] `; -exports[`Kusama Staking > test fast unstake > register fast unstake events 1`] = `[]`; +exports[`Kusama Staking > base staking tests > test fast unstake > register fast unstake events 1`] = `[]`; -exports[`Kusama Staking > test force unstaking of nominator > force unstake bad origin events 1`] = ` +exports[`Kusama Staking > base staking tests > test force unstaking of nominator > force unstake bad origin events 1`] = ` [ { "data": { @@ -754,7 +680,7 @@ exports[`Kusama Staking > test force unstaking of nominator > force unstake bad ] `; -exports[`Kusama Staking > trying to become a validator with no bonded funds fails > events when attempting to validate with no bonded funds 1`] = ` +exports[`Kusama Staking > base staking tests > trying to become a validator with no bonded funds fails > events when attempting to validate with no bonded funds 1`] = ` [ { "data": { @@ -779,7 +705,7 @@ exports[`Kusama Staking > trying to become a validator with no bonded funds fail ] `; -exports[`Kusama Staking > trying to nominate with no bonded funds fails > events when attempting to nominate with no bonded funds 1`] = ` +exports[`Kusama Staking > base staking tests > trying to nominate with no bonded funds fails > events when attempting to nominate with no bonded funds 1`] = ` [ { "data": { @@ -804,7 +730,81 @@ exports[`Kusama Staking > trying to nominate with no bonded funds fails > events ] `; -exports[`Kusama Staking > unapplied slash > alice funds post slash 1`] = ` +exports[`Kusama Staking > slashing tests > cancel deferred slash as admin > alice funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999554590223, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Kusama Staking > slashing tests > cancel deferred slash as admin > bob funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999554590223, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Kusama Staking > slashing tests > cancel deferred slash as admin > charlie funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999554590223, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Kusama Staking > slashing tests > cancel deferred slash as root > alice funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999554590223, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Kusama Staking > slashing tests > cancel deferred slash as root > bob funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999554590223, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Kusama Staking > slashing tests > cancel deferred slash as root > charlie funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999554590223, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Kusama Staking > slashing tests > cancel deferred slash with bad origin > cancel deferred slash events with bad origin 1`] = ` +[ + { + "data": { + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 77000)", + "refTime": "(rounded 1800000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Kusama Staking > slashing tests > unapplied slash > alice funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999554590223, @@ -813,7 +813,7 @@ exports[`Kusama Staking > unapplied slash > alice funds post slash 1`] = ` } `; -exports[`Kusama Staking > unapplied slash > alice funds pre slash 1`] = ` +exports[`Kusama Staking > slashing tests > unapplied slash > alice funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999554590223, @@ -822,9 +822,9 @@ exports[`Kusama Staking > unapplied slash > alice funds pre slash 1`] = ` } `; -exports[`Kusama Staking > unapplied slash > balances slash events 1`] = `[]`; +exports[`Kusama Staking > slashing tests > unapplied slash > balances slash events 1`] = `[]`; -exports[`Kusama Staking > unapplied slash > bob funds post slash 1`] = ` +exports[`Kusama Staking > slashing tests > unapplied slash > bob funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999554590223, @@ -833,7 +833,7 @@ exports[`Kusama Staking > unapplied slash > bob funds post slash 1`] = ` } `; -exports[`Kusama Staking > unapplied slash > bob funds pre slash 1`] = ` +exports[`Kusama Staking > slashing tests > unapplied slash > bob funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999554590223, @@ -842,7 +842,7 @@ exports[`Kusama Staking > unapplied slash > bob funds pre slash 1`] = ` } `; -exports[`Kusama Staking > unapplied slash > charlie funds post slash 1`] = ` +exports[`Kusama Staking > slashing tests > unapplied slash > charlie funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999554590223, @@ -851,7 +851,7 @@ exports[`Kusama Staking > unapplied slash > charlie funds post slash 1`] = ` } `; -exports[`Kusama Staking > unapplied slash > charlie funds pre slash 1`] = ` +exports[`Kusama Staking > slashing tests > unapplied slash > charlie funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999554590223, @@ -860,7 +860,7 @@ exports[`Kusama Staking > unapplied slash > charlie funds pre slash 1`] = ` } `; -exports[`Kusama Staking > unapplied slash > staking slash events 1`] = ` +exports[`Kusama Staking > slashing tests > unapplied slash > staking slash events 1`] = ` [ { "data": { diff --git a/packages/kusama/src/kusama.staking.e2e.test.ts b/packages/kusama/src/kusama.staking.e2e.test.ts index 49da03a51..f254f67e5 100644 --- a/packages/kusama/src/kusama.staking.e2e.test.ts +++ b/packages/kusama/src/kusama.staking.e2e.test.ts @@ -1,5 +1,5 @@ import { kusama } from '@e2e-test/networks/chains' -import { stakingE2ETests } from '@e2e-test/shared' +import { fullStakingTests, registerTestTree } from '@e2e-test/shared' -stakingE2ETests(kusama, { testSuiteName: 'Kusama Staking', addressEncoding: 2 }) +registerTestTree(fullStakingTests(kusama, { testSuiteName: 'Kusama Staking', addressEncoding: 2 })) diff --git a/packages/polkadot/src/__snapshots__/polkadot.staking.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.staking.e2e.test.ts.snap index 67162f382..73a09d562 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.staking.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.staking.e2e.test.ts.snap @@ -1,80 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Polkadot Staking > cancel deferred slash as admin > alice funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999867589258, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Polkadot Staking > cancel deferred slash as admin > bob funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999867589258, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Polkadot Staking > cancel deferred slash as admin > charlie funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999867589258, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Polkadot Staking > cancel deferred slash as root > alice funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999867589258, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Polkadot Staking > cancel deferred slash as root > bob funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999867589258, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Polkadot Staking > cancel deferred slash as root > charlie funds pre slash 1`] = ` -{ - "flags": "0x80000000000000000000000000000000", - "free": 89999867589258, - "frozen": 0, - "reserved": 10000000000000, -} -`; - -exports[`Polkadot Staking > cancel deferred slash with bad origin > cancel deferred slash events with bad origin 1`] = ` -[ - { - "data": { - "dispatchError": "BadOrigin", - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 77000)", - "refTime": "(rounded 1900000000)", - }, - }, - }, - "method": "ExtrinsicFailed", - "section": "system", - }, -] -`; - -exports[`Polkadot Staking > chill other > chill other bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 1`] = ` [ { "data": { @@ -99,7 +25,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 1`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other bad origin events 2`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 2`] = ` [ { "data": { @@ -124,7 +50,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 2`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other bad origin events 3`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 3`] = ` [ { "data": { @@ -149,7 +75,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 3`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other bad origin events 4`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 4`] = ` [ { "data": { @@ -174,7 +100,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 4`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other bad origin events 5`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 5`] = ` [ { "data": { @@ -199,7 +125,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 5`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other bad origin events 6`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 6`] = ` [ { "data": { @@ -224,7 +150,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 6`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other bad origin events 7`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other bad origin events 7`] = ` [ { "data": { @@ -249,7 +175,7 @@ exports[`Polkadot Staking > chill other > chill other bad origin events 7`] = ` ] `; -exports[`Polkadot Staking > chill other > chill other events 1`] = ` +exports[`Polkadot Staking > base staking tests > chill other > chill other events 1`] = ` [ { "data": { @@ -261,7 +187,7 @@ exports[`Polkadot Staking > chill other > chill other events 1`] = ` ] `; -exports[`Polkadot Staking > force apply validator commission > force apply min commission events 1`] = ` +exports[`Polkadot Staking > base staking tests > force apply validator commission > force apply min commission events 1`] = ` [ { "data": { @@ -280,7 +206,7 @@ exports[`Polkadot Staking > force apply validator commission > force apply min c ] `; -exports[`Polkadot Staking > modify validator count > increase validator count bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > modify validator count > increase validator count bad origin events 1`] = ` [ { "data": { @@ -300,7 +226,7 @@ exports[`Polkadot Staking > modify validator count > increase validator count ba ] `; -exports[`Polkadot Staking > modify validator count > scale validator count bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > modify validator count > scale validator count bad origin events 1`] = ` [ { "data": { @@ -320,7 +246,7 @@ exports[`Polkadot Staking > modify validator count > scale validator count bad o ] `; -exports[`Polkadot Staking > modify validator count > set validator count bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > modify validator count > set validator count bad origin events 1`] = ` [ { "data": { @@ -340,7 +266,7 @@ exports[`Polkadot Staking > modify validator count > set validator count bad ori ] `; -exports[`Polkadot Staking > set invulnerables with bad origin > events when setting invulnerables with bad staking admin origin 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with bad origin > events when setting invulnerables with bad staking admin origin 1`] = ` [ { "data": { @@ -356,7 +282,7 @@ exports[`Polkadot Staking > set invulnerables with bad origin > events when sett ] `; -exports[`Polkadot Staking > set invulnerables with bad origin > set invulnerables events with bad signed origin 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with bad origin > set invulnerables events with bad signed origin 1`] = ` [ { "data": { @@ -376,7 +302,7 @@ exports[`Polkadot Staking > set invulnerables with bad origin > set invulnerable ] `; -exports[`Polkadot Staking > set invulnerables with root origin > alice funds post slash 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > alice funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999739445778, @@ -385,7 +311,7 @@ exports[`Polkadot Staking > set invulnerables with root origin > alice funds pos } `; -exports[`Polkadot Staking > set invulnerables with root origin > alice funds pre slash 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > alice funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999739445778, @@ -394,9 +320,9 @@ exports[`Polkadot Staking > set invulnerables with root origin > alice funds pre } `; -exports[`Polkadot Staking > set invulnerables with root origin > balances slash events 1`] = `[]`; +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > balances slash events 1`] = `[]`; -exports[`Polkadot Staking > set invulnerables with root origin > bob funds post slash 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > bob funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999739445778, @@ -405,7 +331,7 @@ exports[`Polkadot Staking > set invulnerables with root origin > bob funds post } `; -exports[`Polkadot Staking > set invulnerables with root origin > bob funds pre slash 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > bob funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999739445778, @@ -414,7 +340,7 @@ exports[`Polkadot Staking > set invulnerables with root origin > bob funds pre s } `; -exports[`Polkadot Staking > set invulnerables with root origin > charlie funds post slash 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > charlie funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999739445778, @@ -423,7 +349,7 @@ exports[`Polkadot Staking > set invulnerables with root origin > charlie funds p } `; -exports[`Polkadot Staking > set invulnerables with root origin > charlie funds pre slash 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > charlie funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999739445778, @@ -432,7 +358,7 @@ exports[`Polkadot Staking > set invulnerables with root origin > charlie funds p } `; -exports[`Polkadot Staking > set invulnerables with root origin > staking slash events 1`] = ` +exports[`Polkadot Staking > base staking tests > set invulnerables with root origin > staking slash events 1`] = ` [ { "data": { @@ -461,7 +387,7 @@ exports[`Polkadot Staking > set invulnerables with root origin > staking slash e ] `; -exports[`Polkadot Staking > set minimum validator commission > set staking configs bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > set minimum validator commission > set staking configs bad origin events 1`] = ` [ { "data": { @@ -481,7 +407,7 @@ exports[`Polkadot Staking > set minimum validator commission > set staking confi ] `; -exports[`Polkadot Staking > set staking configs > set staking configs bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > set staking configs > set staking configs bad origin events 1`] = ` [ { "data": { @@ -501,7 +427,7 @@ exports[`Polkadot Staking > set staking configs > set staking configs bad origin ] `; -exports[`Polkadot Staking > set staking configs > set staking configs event 1`] = ` +exports[`Polkadot Staking > base staking tests > set staking configs > set staking configs event 1`] = ` { "event": { "data": [ @@ -523,7 +449,7 @@ exports[`Polkadot Staking > set staking configs > set staking configs event 1`] } `; -exports[`Polkadot Staking > staking lifecycle > chill events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > chill events 1`] = ` [ { "data": { @@ -535,7 +461,7 @@ exports[`Polkadot Staking > staking lifecycle > chill events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > events when attempting to nominate a blocked validator 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > events when attempting to nominate a blocked validator 1`] = ` [ { "data": { @@ -560,7 +486,7 @@ exports[`Polkadot Staking > staking lifecycle > events when attempting to nomina ] `; -exports[`Polkadot Staking > staking lifecycle > kick events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > kick events 1`] = ` [ { "data": { @@ -573,9 +499,9 @@ exports[`Polkadot Staking > staking lifecycle > kick events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > nominate events 1`] = `[]`; +exports[`Polkadot Staking > base staking tests > staking lifecycle > nominate events 1`] = `[]`; -exports[`Polkadot Staking > staking lifecycle > nominator bond events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > nominator bond events 1`] = ` [ { "data": { @@ -588,7 +514,7 @@ exports[`Polkadot Staking > staking lifecycle > nominator bond events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > nominator bond extra events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > nominator bond extra events 1`] = ` [ { "data": { @@ -601,7 +527,7 @@ exports[`Polkadot Staking > staking lifecycle > nominator bond extra events 1`] ] `; -exports[`Polkadot Staking > staking lifecycle > unbond events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > unbond events 1`] = ` [ { "data": { @@ -614,7 +540,7 @@ exports[`Polkadot Staking > staking lifecycle > unbond events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > validate (blocked) events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validate (blocked) events 1`] = ` [ { "data": { @@ -630,7 +556,7 @@ exports[`Polkadot Staking > staking lifecycle > validate (blocked) events 1`] = ] `; -exports[`Polkadot Staking > staking lifecycle > validator 0 bond events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validator 0 bond events 1`] = ` [ { "data": { @@ -643,7 +569,7 @@ exports[`Polkadot Staking > staking lifecycle > validator 0 bond events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > validator 0 validate events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validator 0 validate events 1`] = ` [ { "data": { @@ -659,7 +585,7 @@ exports[`Polkadot Staking > staking lifecycle > validator 0 validate events 1`] ] `; -exports[`Polkadot Staking > staking lifecycle > validator 1 bond events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validator 1 bond events 1`] = ` [ { "data": { @@ -672,7 +598,7 @@ exports[`Polkadot Staking > staking lifecycle > validator 1 bond events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > validator 1 validate events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validator 1 validate events 1`] = ` [ { "data": { @@ -688,7 +614,7 @@ exports[`Polkadot Staking > staking lifecycle > validator 1 validate events 1`] ] `; -exports[`Polkadot Staking > staking lifecycle > validator 2 bond events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validator 2 bond events 1`] = ` [ { "data": { @@ -701,7 +627,7 @@ exports[`Polkadot Staking > staking lifecycle > validator 2 bond events 1`] = ` ] `; -exports[`Polkadot Staking > staking lifecycle > validator 2 validate events 1`] = ` +exports[`Polkadot Staking > base staking tests > staking lifecycle > validator 2 validate events 1`] = ` [ { "data": { @@ -717,9 +643,9 @@ exports[`Polkadot Staking > staking lifecycle > validator 2 validate events 1`] ] `; -exports[`Polkadot Staking > test fast unstake > nominate events 1`] = `[]`; +exports[`Polkadot Staking > base staking tests > test fast unstake > nominate events 1`] = `[]`; -exports[`Polkadot Staking > test fast unstake > nominator bond events 1`] = ` +exports[`Polkadot Staking > base staking tests > test fast unstake > nominator bond events 1`] = ` [ { "data": { @@ -732,9 +658,9 @@ exports[`Polkadot Staking > test fast unstake > nominator bond events 1`] = ` ] `; -exports[`Polkadot Staking > test fast unstake > register fast unstake events 1`] = `[]`; +exports[`Polkadot Staking > base staking tests > test fast unstake > register fast unstake events 1`] = `[]`; -exports[`Polkadot Staking > test force unstaking of nominator > force unstake bad origin events 1`] = ` +exports[`Polkadot Staking > base staking tests > test force unstaking of nominator > force unstake bad origin events 1`] = ` [ { "data": { @@ -754,7 +680,7 @@ exports[`Polkadot Staking > test force unstaking of nominator > force unstake ba ] `; -exports[`Polkadot Staking > trying to become a validator with no bonded funds fails > events when attempting to validate with no bonded funds 1`] = ` +exports[`Polkadot Staking > base staking tests > trying to become a validator with no bonded funds fails > events when attempting to validate with no bonded funds 1`] = ` [ { "data": { @@ -779,7 +705,7 @@ exports[`Polkadot Staking > trying to become a validator with no bonded funds fa ] `; -exports[`Polkadot Staking > trying to nominate with no bonded funds fails > events when attempting to nominate with no bonded funds 1`] = ` +exports[`Polkadot Staking > base staking tests > trying to nominate with no bonded funds fails > events when attempting to nominate with no bonded funds 1`] = ` [ { "data": { @@ -804,7 +730,81 @@ exports[`Polkadot Staking > trying to nominate with no bonded funds fails > even ] `; -exports[`Polkadot Staking > unapplied slash > alice funds post slash 1`] = ` +exports[`Polkadot Staking > slashing tests > cancel deferred slash as admin > alice funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999867589258, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Polkadot Staking > slashing tests > cancel deferred slash as admin > bob funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999867589258, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Polkadot Staking > slashing tests > cancel deferred slash as admin > charlie funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999867589258, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Polkadot Staking > slashing tests > cancel deferred slash as root > alice funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999867589258, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Polkadot Staking > slashing tests > cancel deferred slash as root > bob funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999867589258, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Polkadot Staking > slashing tests > cancel deferred slash as root > charlie funds pre slash 1`] = ` +{ + "flags": "0x80000000000000000000000000000000", + "free": 89999867589258, + "frozen": 0, + "reserved": 10000000000000, +} +`; + +exports[`Polkadot Staking > slashing tests > cancel deferred slash with bad origin > cancel deferred slash events with bad origin 1`] = ` +[ + { + "data": { + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 77000)", + "refTime": "(rounded 1900000000)", + }, + }, + }, + "method": "ExtrinsicFailed", + "section": "system", + }, +] +`; + +exports[`Polkadot Staking > slashing tests > unapplied slash > alice funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999867589258, @@ -813,7 +813,7 @@ exports[`Polkadot Staking > unapplied slash > alice funds post slash 1`] = ` } `; -exports[`Polkadot Staking > unapplied slash > alice funds pre slash 1`] = ` +exports[`Polkadot Staking > slashing tests > unapplied slash > alice funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999867589258, @@ -822,9 +822,9 @@ exports[`Polkadot Staking > unapplied slash > alice funds pre slash 1`] = ` } `; -exports[`Polkadot Staking > unapplied slash > balances slash events 1`] = `[]`; +exports[`Polkadot Staking > slashing tests > unapplied slash > balances slash events 1`] = `[]`; -exports[`Polkadot Staking > unapplied slash > bob funds post slash 1`] = ` +exports[`Polkadot Staking > slashing tests > unapplied slash > bob funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999867589258, @@ -833,7 +833,7 @@ exports[`Polkadot Staking > unapplied slash > bob funds post slash 1`] = ` } `; -exports[`Polkadot Staking > unapplied slash > bob funds pre slash 1`] = ` +exports[`Polkadot Staking > slashing tests > unapplied slash > bob funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999867589258, @@ -842,7 +842,7 @@ exports[`Polkadot Staking > unapplied slash > bob funds pre slash 1`] = ` } `; -exports[`Polkadot Staking > unapplied slash > charlie funds post slash 1`] = ` +exports[`Polkadot Staking > slashing tests > unapplied slash > charlie funds post slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999867589258, @@ -851,7 +851,7 @@ exports[`Polkadot Staking > unapplied slash > charlie funds post slash 1`] = ` } `; -exports[`Polkadot Staking > unapplied slash > charlie funds pre slash 1`] = ` +exports[`Polkadot Staking > slashing tests > unapplied slash > charlie funds pre slash 1`] = ` { "flags": "0x80000000000000000000000000000000", "free": 89999867589258, @@ -860,7 +860,7 @@ exports[`Polkadot Staking > unapplied slash > charlie funds pre slash 1`] = ` } `; -exports[`Polkadot Staking > unapplied slash > staking slash events 1`] = ` +exports[`Polkadot Staking > slashing tests > unapplied slash > staking slash events 1`] = ` [ { "data": { diff --git a/packages/polkadot/src/polkadot.staking.e2e.test.ts b/packages/polkadot/src/polkadot.staking.e2e.test.ts index 8dccd1030..6196aef68 100644 --- a/packages/polkadot/src/polkadot.staking.e2e.test.ts +++ b/packages/polkadot/src/polkadot.staking.e2e.test.ts @@ -1,5 +1,5 @@ import { polkadot } from '@e2e-test/networks/chains' -import { stakingE2ETests } from '@e2e-test/shared' +import { fullStakingTests, registerTestTree } from '@e2e-test/shared' -stakingE2ETests(polkadot, { testSuiteName: 'Polkadot Staking', addressEncoding: 0 }) +registerTestTree(fullStakingTests(polkadot, { testSuiteName: 'Polkadot Staking', addressEncoding: 0 })) diff --git a/packages/shared/src/staking.ts b/packages/shared/src/staking.ts index 286011bec..f190ce313 100644 --- a/packages/shared/src/staking.ts +++ b/packages/shared/src/staking.ts @@ -11,7 +11,8 @@ import type { KeyringPair } from '@polkadot/keyring/types' import type { BlockHash } from '@polkadot/types/interfaces' import type { PalletStakingValidatorPrefs } from '@polkadot/types/lookup' import type { ISubmittableResult } from '@polkadot/types/types' -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' +import type { RootTestTree } from './types.js' /// ------- /// Helpers @@ -1713,73 +1714,120 @@ async function setInvulnerablesTest< /// -------------- /// -------------- -export function stakingE2ETests< +export function slashingTests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }) { - describe(testConfig.testSuiteName, async () => { - test('trying to become a validator with no bonded funds fails', async () => { - await validateNoBondedFundsFailureTest(chain) - }) - - test('trying to nominate with no bonded funds fails', async () => { - await nominateNoBondedFundsFailureTest(chain) - }) - - test('staking lifecycle', async () => { - await stakingLifecycleTest(chain, testConfig.addressEncoding) - }) - - test('test force unstaking of nominator', async () => { - await forceUnstakeTest(chain) - }) - - test('test fast unstake', async () => { - await fastUnstakeTest(chain, testConfig.addressEncoding) - }) - - test('set minimum validator commission', async () => { - await setMinCommission(chain) - }) - - test('set staking configs', async () => { - await setStakingConfigsTest(chain) - }) - - test('force apply validator commission', async () => { - await forceApplyValidatorCommissionTest(chain) - }) - - test('modify validator count', async () => { - await modifyValidatorCountTest(chain) - }) - - test('chill other', async () => { - await chillOtherTest(chain) - }) - - test('unapplied slash', async () => { - await unappliedSlashTest(chain) - }) - - test('cancel deferred slash with bad origin', async () => { - await cancelDeferredSlashTestBadOrigin(chain) - }) - - test('cancel deferred slash as root', async () => { - await cancelDeferredSlashTestAsRoot(chain) - }) - - test('cancel deferred slash as admin', async () => { - await cancelDeferredSlashTestAsAdmin(chain) - }) +>(chain: Chain): RootTestTree { + return { + kind: 'describe', + label: 'slashing tests', + children: [ + { + kind: 'test', + label: 'unapplied slash', + testFn: async () => await unappliedSlashTest(chain), + }, + { + kind: 'test', + label: 'cancel deferred slash with bad origin', + testFn: async () => await cancelDeferredSlashTestBadOrigin(chain), + }, + { + kind: 'test', + label: 'cancel deferred slash as root', + testFn: async () => await cancelDeferredSlashTestAsRoot(chain), + }, + { + kind: 'test', + label: 'cancel deferred slash as admin', + testFn: async () => await cancelDeferredSlashTestAsAdmin(chain), + }, + ], + } +} - test('set invulnerables with bad origin', async () => { - await setInvulnerablesTestBadOrigin(chain) - }) +export function baseStakingE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { + return { + kind: 'describe', + label: 'base staking tests', + children: [ + { + kind: 'test' as const, + label: 'trying to become a validator with no bonded funds fails', + testFn: async () => await validateNoBondedFundsFailureTest(chain), + }, + { + kind: 'test' as const, + label: 'trying to nominate with no bonded funds fails', + testFn: async () => await nominateNoBondedFundsFailureTest(chain), + }, + { + kind: 'test' as const, + label: 'staking lifecycle', + testFn: async () => await stakingLifecycleTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test' as const, + label: 'test force unstaking of nominator', + testFn: async () => await forceUnstakeTest(chain), + }, + { + kind: 'test' as const, + label: 'test fast unstake', + testFn: async () => await fastUnstakeTest(chain, testConfig.addressEncoding), + }, + { + kind: 'test' as const, + label: 'set minimum validator commission', + testFn: async () => await setMinCommission(chain), + }, + { + kind: 'test' as const, + label: 'set staking configs', + testFn: async () => await setStakingConfigsTest(chain), + }, + { + kind: 'test' as const, + label: 'force apply validator commission', + testFn: async () => await forceApplyValidatorCommissionTest(chain), + }, + { + kind: 'test' as const, + label: 'modify validator count', + testFn: async () => await modifyValidatorCountTest(chain), + }, + { + kind: 'test' as const, + label: 'chill other', + testFn: async () => await chillOtherTest(chain), + }, + { + kind: 'test' as const, + label: 'set invulnerables with bad origin', + testFn: async () => await setInvulnerablesTestBadOrigin(chain), + }, + { + kind: 'test' as const, + label: 'set invulnerables with root origin', + testFn: async () => await setInvulnerablesTest(chain, testConfig.addressEncoding), + }, + ], + } +} - test('set invulnerables with root origin', async () => { - await setInvulnerablesTest(chain, testConfig.addressEncoding) - }) - }) +export function fullStakingTests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { + const basalTestTree = baseStakingE2ETests(chain, testConfig) + const slashingTestTree = slashingTests(chain) + + return { + kind: 'describe' as const, + label: testConfig.testSuiteName, + children: [basalTestTree, slashingTestTree], + } } From 488e5a39edcc88bc5b2612ba131036263b86e5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Wed, 6 Aug 2025 14:35:53 +0100 Subject: [PATCH 20/22] Refactor people E2E test tree --- packages/kusama/src/peopleKusama.e2e.test.ts | 4 +- .../polkadot/src/peoplePolkadot.e2e.test.ts | 6 +- packages/shared/src/people.ts | 64 +++++++++++-------- 3 files changed, 45 insertions(+), 29 deletions(-) diff --git a/packages/kusama/src/peopleKusama.e2e.test.ts b/packages/kusama/src/peopleKusama.e2e.test.ts index f5c222fd8..f321c6619 100644 --- a/packages/kusama/src/peopleKusama.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.e2e.test.ts @@ -1,5 +1,5 @@ import { kusama, peopleKusama } from '@e2e-test/networks/chains' -import { peopleChainE2ETests } from '@e2e-test/shared' +import { basePeopleChainE2ETests, registerTestTree } from '@e2e-test/shared' -peopleChainE2ETests(kusama, peopleKusama, { testSuiteName: 'Kusama People', addressEncoding: 2 }) +registerTestTree(basePeopleChainE2ETests(kusama, peopleKusama, { testSuiteName: 'Kusama People', addressEncoding: 2 })) diff --git a/packages/polkadot/src/peoplePolkadot.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.e2e.test.ts index 22cc8982e..7776a4b13 100644 --- a/packages/polkadot/src/peoplePolkadot.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.e2e.test.ts @@ -1,5 +1,7 @@ import { peoplePolkadot, polkadot } from '@e2e-test/networks/chains' -import { peopleChainE2ETests } from '@e2e-test/shared' +import { basePeopleChainE2ETests, registerTestTree } from '@e2e-test/shared' -peopleChainE2ETests(polkadot, peoplePolkadot, { testSuiteName: 'Polkadot People', addressEncoding: 0 }) +registerTestTree( + basePeopleChainE2ETests(polkadot, peoplePolkadot, { testSuiteName: 'Polkadot People', addressEncoding: 0 }), +) diff --git a/packages/shared/src/people.ts b/packages/shared/src/people.ts index ed136e10d..8faf3ec43 100644 --- a/packages/shared/src/people.ts +++ b/packages/shared/src/people.ts @@ -8,7 +8,8 @@ * @module */ -import { assert, describe, test } from 'vitest' +import { assert } from 'vitest' +import type { RootTestTree } from './types.js' import type { StorageValues } from '@acala-network/chopsticks' import { sendTransaction } from '@acala-network/chopsticks-testing' @@ -717,11 +718,11 @@ export async function addRegistrarViaRelayAsRoot< * Tests that are meant to be run in a people chain *must* be added to as a `vitest.test` to the * `describe` runner this function creates. * - * @param topLevelDescription A description of this test runner e.g. "Polkadot People E2E tests" * @param relayChain The relay chain to be used by these tests * @param peopleChain The people's chain associated to the previous `relayChain` + * @param testConfig Configuration including test suite name and address encoding */ -export function peopleChainE2ETests< +export function basePeopleChainE2ETests< TCustom extends Record | undefined, TInitStoragesRelay extends Record> | undefined, TInitStoragesPara extends Record> | undefined, @@ -729,26 +730,39 @@ export function peopleChainE2ETests< relayChain: Chain, peopleChain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }, -) { - describe(testConfig.testSuiteName, async () => { - test('setting on-chain identity and requesting judgement should work', async () => { - await setIdentityThenRequestAndProvideJudgement(peopleChain) - }) - - test('setting an on-chain identity, requesting 2 judgements, having 1 provided, and then resetting the identity should work', async () => { - await setIdentityRequestJudgementTwiceThenResetIdentity(peopleChain) - }) - - test('setting on-chain identity, requesting judgement, cancelling the request and then clearing the identity should work', async () => { - await setIdentityThenRequesThenCancelThenClear(peopleChain) - }) - - test('setting on-chain identity, adding sub-identities, removing one, and having another remove itself should work', async () => { - await setIdentityThenAddSubsThenRemove(peopleChain, testConfig.addressEncoding) - }) - - test('adding a registrar as root from the relay chain works', async () => { - await addRegistrarViaRelayAsRoot(relayChain, peopleChain, testConfig.addressEncoding) - }) - }) +): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'setting on-chain identity and requesting judgement should work', + testFn: async () => await setIdentityThenRequestAndProvideJudgement(peopleChain), + }, + { + kind: 'test', + label: + 'setting an on-chain identity, requesting 2 judgements, having 1 provided, and then resetting the identity should work', + testFn: async () => await setIdentityRequestJudgementTwiceThenResetIdentity(peopleChain), + }, + { + kind: 'test', + label: + 'setting on-chain identity, requesting judgement, cancelling the request and then clearing the identity should work', + testFn: async () => await setIdentityThenRequesThenCancelThenClear(peopleChain), + }, + { + kind: 'test', + label: + 'setting on-chain identity, adding sub-identities, removing one, and having another remove itself should work', + testFn: async () => await setIdentityThenAddSubsThenRemove(peopleChain, testConfig.addressEncoding), + }, + { + kind: 'test', + label: 'adding a registrar as root from the relay chain works', + testFn: async () => await addRegistrarViaRelayAsRoot(relayChain, peopleChain, testConfig.addressEncoding), + }, + ], + } } From c5407ceeead7f4d1f73a75a1f01dd6e24cbd3e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Wed, 6 Aug 2025 18:21:19 +0100 Subject: [PATCH 21/22] Refactor proxy E2E tests to test tree format --- .../assetHubKusama.proxy.e2e.test.ts.snap | 1738 ------------ .../coretimeKusama.proxy.e2e.test.ts.snap | 1516 ----------- .../kusama.proxy.e2e.test.ts.snap | 2412 ----------------- .../peopleKusama.proxy.e2e.test.ts.snap | 1271 --------- .../src/assetHubKusama.proxy.e2e.test.ts | 6 +- .../src/coretimeKusama.proxy.e2e.test.ts | 6 +- packages/kusama/src/kusama.proxy.e2e.test.ts | 4 +- .../kusama/src/peopleKusama.proxy.e2e.test.ts | 6 +- .../assetHubPolkadot.proxy.e2e.test.ts.snap | 1738 ------------ ...collectivesPolkadot.proxy.e2e.test.ts.snap | 1851 ------------- .../coretimePolkadot.proxy.e2e.test.ts.snap | 1516 ----------- .../peoplePolkadot.proxy.e2e.test.ts.snap | 1271 --------- .../polkadot.proxy.e2e.test.ts.snap | 2048 -------------- .../src/assetHubPolkadot.proxy.e2e.test.ts | 10 +- .../src/collectivesPolkadot.proxy.e2e.test.ts | 12 +- .../src/coretimePolkadot.proxy.e2e.test.ts | 10 +- .../src/peoplePolkadot.proxy.e2e.test.ts | 6 +- .../polkadot/src/polkadot.proxy.e2e.test.ts | 6 +- packages/shared/src/proxy.ts | 91 +- 19 files changed, 107 insertions(+), 15411 deletions(-) diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap index e45b8d80a..4706bdda0 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap @@ -346,1744 +346,6 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when kill ] `; -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call destroy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call set_metadata 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Token": "BelowMinimum", - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call set_metadata 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x02000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call destroy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Token": "BelowMinimum", - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call destroy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call set_metadata 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x02000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Kusama AssetHub Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap index 8a4f53126..f8a337f5c 100644 --- a/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap @@ -346,1522 +346,6 @@ exports[`Kusama Coretime Proxy > create and kill pure proxies > events when kill ] `; -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet broker, call purchase_credit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call purchase_credit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet broker, call purchase_credit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call drop_history 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call renew 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call renew 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Kusama Coretime Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap index bf7b20fe8..0926c5641 100644 --- a/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap @@ -490,2418 +490,6 @@ exports[`Kusama Proxy > create and kill pure proxies > events when killing pure ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call batch 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call batch_all 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call force_batch 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet utility, call batch 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet utility, call batch_all 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet utility, call force_batch 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet auctions, call bid 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet bounties, call propose_bounty 1`] = ` -[ - { - "data": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 31, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", - }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet staking, call bond 1`] = ` -[ - { - "data": { - "amount": 1000000000000, - "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", - }, - "method": "VestingCompleted", - "section": "vesting", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet auctions, call bid 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet crowdloan, call dissolve 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 73, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet slots, call trigger_onboard 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 71, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 31, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet bounties, call propose_bounty 1`] = ` -[ - { - "data": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", - }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet auctions, call bid 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet bounties, call propose_bounty 1`] = ` -[ - { - "data": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 31, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", - }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet staking, call bond 1`] = ` -[ - { - "data": { - "amount": 1000000000000, - "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_proxy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Society > events for proxy type Society, pallet society, call bid 1`] = ` -[ - { - "data": { - "candidateId": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "offer": 1000000000000, - }, - "method": "Bid", - "section": "society", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call bond 1`] = ` -[ - { - "data": { - "amount": 1000000000000, - "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call register_fast_unstake 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Kusama Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap index f23597e9f..f6fc12daf 100644 --- a/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap @@ -298,1277 +298,6 @@ exports[`People Kusama Proxy > create and kill pure proxies > events when killin ] `; -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call clear_identity 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call clear_identity 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call provide_judgement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call provide_judgement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`People Kusama Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts b/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts index 871b43397..2bb564692 100644 --- a/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts @@ -1,6 +1,8 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { AssetHubProxyTypes } from '@e2e-test/shared' -proxyE2ETests(assetHubKusama, { testSuiteName: 'Kusama AssetHub Proxy', addressEncoding: 2 }, AssetHubProxyTypes) +registerTestTree( + baseProxyE2ETests(assetHubKusama, { testSuiteName: 'Kusama AssetHub Proxy', addressEncoding: 2 }, AssetHubProxyTypes), +) diff --git a/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts b/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts index db3eb16d8..e60e08421 100644 --- a/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts @@ -1,6 +1,8 @@ import { coretimeKusama } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { CoretimeProxyTypes } from '@e2e-test/shared' -proxyE2ETests(coretimeKusama, { testSuiteName: 'Kusama Coretime Proxy', addressEncoding: 2 }, CoretimeProxyTypes) +registerTestTree( + baseProxyE2ETests(coretimeKusama, { testSuiteName: 'Kusama Coretime Proxy', addressEncoding: 2 }, CoretimeProxyTypes), +) diff --git a/packages/kusama/src/kusama.proxy.e2e.test.ts b/packages/kusama/src/kusama.proxy.e2e.test.ts index 04fb17253..57def0d02 100644 --- a/packages/kusama/src/kusama.proxy.e2e.test.ts +++ b/packages/kusama/src/kusama.proxy.e2e.test.ts @@ -1,6 +1,6 @@ import { kusama } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { KusamaProxyTypes } from '@e2e-test/shared' -proxyE2ETests(kusama, { testSuiteName: 'Kusama Proxy', addressEncoding: 2 }, KusamaProxyTypes) +registerTestTree(baseProxyE2ETests(kusama, { testSuiteName: 'Kusama Proxy', addressEncoding: 2 }, KusamaProxyTypes)) diff --git a/packages/kusama/src/peopleKusama.proxy.e2e.test.ts b/packages/kusama/src/peopleKusama.proxy.e2e.test.ts index 9354540d5..c1b04f239 100644 --- a/packages/kusama/src/peopleKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.proxy.e2e.test.ts @@ -1,6 +1,8 @@ import { peopleKusama } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { PeopleProxyTypes } from '@e2e-test/shared' -proxyE2ETests(peopleKusama, { testSuiteName: 'People Kusama Proxy', addressEncoding: 2 }, PeopleProxyTypes) +registerTestTree( + baseProxyE2ETests(peopleKusama, { testSuiteName: 'People Kusama Proxy', addressEncoding: 2 }, PeopleProxyTypes), +) diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap index 0e999271a..a96a6318f 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap @@ -346,1744 +346,6 @@ exports[`Polkadot AssetHub Proxy > create and kill pure proxies > events when ki ] `; -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call destroy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call set_metadata 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Token": "BelowMinimum", - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call set_metadata 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call destroy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Token": "BelowMinimum", - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call destroy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call set_metadata 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call create 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call mint 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Polkadot AssetHub Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap index 682127cfb..c7999d480 100644 --- a/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap @@ -346,1857 +346,6 @@ exports[`Polkadot Collectives Proxy > create and kill pure proxies > events when ] `; -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet core_fellowship, call bump 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet core_fellowship, call bump 2`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet ranked_collective, call vote 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet referenda, call place_decision_deposit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet referenda, call place_decision_deposit 2`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet salary, call init 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet salary, call init 2`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet alliance, call join_alliance 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet collectives, call propose 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet core_fellowship, call bump 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet referenda, call place_decision_deposit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet salary, call init 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet alliance, call join_alliance 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet collectives, call propose 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet core_fellowship, call bump 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet ranked_collective, call vote 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet referenda, call place_decision_deposit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet salary, call init 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet alliance, call join_alliance 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0c000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet collectives, call propose 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 51, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet core_fellowship, call bump 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x07000000", - "index": 73, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet ranked_collective, call vote 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 70, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet referenda, call place_decision_deposit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet salary, call init 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet core_fellowship, call bump 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x07000000", - "index": 63, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet referenda, call place_decision_deposit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet salary, call init 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 64, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Polkadot Collectives Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap index b417f078c..a70916431 100644 --- a/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap @@ -346,1522 +346,6 @@ exports[`Polkadot Coretime Proxy > create and kill pure proxies > events when ki ] `; -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet broker, call purchase_credit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call purchase_credit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet broker, call purchase_credit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call drop_history 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call renew 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call renew 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Polkadot Coretime Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap index def4dcb59..bd98ca224 100644 --- a/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap @@ -298,1277 +298,6 @@ exports[`People Polkadot Proxy > create and kill pure proxies > events when kill ] `; -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call clear_identity 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 21, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call clear_identity 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call provide_judgement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call provide_judgement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 50, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 42, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`People Polkadot Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap index 5799fbf43..8e032db31 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap @@ -394,2054 +394,6 @@ exports[`Polkadot Proxy > create and kill pure proxies > events when killing pur ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet staking, call bond 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call apply_authorized_upgrade 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet auctions, call bid 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet bounties, call propose_bounty 1`] = ` -[ - { - "data": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 39, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 29, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 29, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", - }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet staking, call bond 1`] = ` -[ - { - "data": { - "amount": 1000000000000, - "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - }, - "method": "VestingCompleted", - "section": "vesting", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet auctions, call bid 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet crowdloan, call dissolve 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x08000000", - "index": 73, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet slots, call trigger_onboard 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 71, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 29, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet bounties, call propose_bounty 1`] = ` -[ - { - "data": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", - }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 39, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet auctions, call bid 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet bounties, call propose_bounty 1`] = ` -[ - { - "data": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 30, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 39, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 29, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 29, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet referenda, call submit 1`] = ` -[ - { - "data": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", - }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet staking, call bond 1`] = ` -[ - { - "data": { - "amount": 1000000000000, - "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` -[ - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` -[ - { - "data": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, - { - "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, - }, - "method": "ExtrinsicSuccess", - "section": "system", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_proxy 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x01000000", - "index": 29, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet nomination_pools, call chill 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 39, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call bond 1`] = ` -[ - { - "data": { - "amount": 1000000000000, - "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call register_fast_unstake 1`] = ` -[ - { - "data": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 40, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", - }, -] -`; - exports[`Polkadot Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts index faeebd2ec..011fae493 100644 --- a/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts @@ -1,6 +1,12 @@ import { assetHubPolkadot } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { AssetHubProxyTypes } from '@e2e-test/shared' -proxyE2ETests(assetHubPolkadot, { testSuiteName: 'Polkadot AssetHub Proxy', addressEncoding: 0 }, AssetHubProxyTypes) +registerTestTree( + baseProxyE2ETests( + assetHubPolkadot, + { testSuiteName: 'Polkadot AssetHub Proxy', addressEncoding: 0 }, + AssetHubProxyTypes, + ), +) diff --git a/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts b/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts index 467b9f3c5..02e7dea0e 100644 --- a/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts @@ -1,10 +1,12 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { CollectivesProxyTypes } from '@e2e-test/shared' -proxyE2ETests( - collectivesPolkadot, - { testSuiteName: 'Polkadot Collectives Proxy', addressEncoding: 0 }, - CollectivesProxyTypes, +registerTestTree( + baseProxyE2ETests( + collectivesPolkadot, + { testSuiteName: 'Polkadot Collectives Proxy', addressEncoding: 0 }, + CollectivesProxyTypes, + ), ) diff --git a/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts b/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts index 971a4944b..63af79bbf 100644 --- a/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts @@ -1,6 +1,12 @@ import { coretimePolkadot } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { CoretimeProxyTypes } from '@e2e-test/shared' -proxyE2ETests(coretimePolkadot, { testSuiteName: 'Polkadot Coretime Proxy', addressEncoding: 0 }, CoretimeProxyTypes) +registerTestTree( + baseProxyE2ETests( + coretimePolkadot, + { testSuiteName: 'Polkadot Coretime Proxy', addressEncoding: 0 }, + CoretimeProxyTypes, + ), +) diff --git a/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts index 6eb4f42f1..826c0a7c0 100644 --- a/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts @@ -1,6 +1,8 @@ import { peoplePolkadot } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { PeopleProxyTypes } from '@e2e-test/shared' -proxyE2ETests(peoplePolkadot, { testSuiteName: 'People Polkadot Proxy', addressEncoding: 0 }, PeopleProxyTypes) +registerTestTree( + baseProxyE2ETests(peoplePolkadot, { testSuiteName: 'People Polkadot Proxy', addressEncoding: 0 }, PeopleProxyTypes), +) diff --git a/packages/polkadot/src/polkadot.proxy.e2e.test.ts b/packages/polkadot/src/polkadot.proxy.e2e.test.ts index 8d2b65aac..4cac9483a 100644 --- a/packages/polkadot/src/polkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/polkadot.proxy.e2e.test.ts @@ -1,6 +1,8 @@ import { polkadot } from '@e2e-test/networks/chains' -import { proxyE2ETests } from '@e2e-test/shared' +import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { PolkadotProxyTypes } from '@e2e-test/shared' -proxyE2ETests(polkadot, { testSuiteName: 'Polkadot Proxy', addressEncoding: 0 }, PolkadotProxyTypes) +registerTestTree( + baseProxyE2ETests(polkadot, { testSuiteName: 'Polkadot Proxy', addressEncoding: 0 }, PolkadotProxyTypes), +) diff --git a/packages/shared/src/proxy.ts b/packages/shared/src/proxy.ts index e46291635..4ff4fcc0d 100644 --- a/packages/shared/src/proxy.ts +++ b/packages/shared/src/proxy.ts @@ -9,8 +9,9 @@ import type { Vec } from '@polkadot/types' import type { PalletProxyProxyDefinition } from '@polkadot/types/lookup' import type { ISubmittableResult } from '@polkadot/types/types' import { encodeAddress } from '@polkadot/util-crypto' -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' import { check, checkEvents } from './helpers/index.js' +import type { DescribeNode, RootTestTree, TestNode } from './types.js' import BN from 'bn.js' @@ -1321,10 +1322,14 @@ async function proxyCallFilteringSingleTestRunner< * * To disable a proxy type from being tested, remove it from the `proxyTypesToTest` array. */ -async function proxyCallFilteringTestRunner< +function proxyCallFilteringTestTree< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, ->(chain: Chain, proxyTypes: Record, testType: ProxyCallFilteringTestType) { +>( + chain: Chain, + proxyTypes: Record, + testType: ProxyCallFilteringTestType, +): DescribeNode { const kr = defaultAccountsSr25519.keyring const proxyAccounts = createProxyAccounts('Alice', kr, proxyTypes) @@ -1358,16 +1363,26 @@ async function proxyCallFilteringTestRunner< 'IdentityJudgement', ] + const children: TestNode[] = [] for (const [proxyType, proxyTypeIx] of Object.entries(proxyTypes)) { // In this network, there might be some proxy types that should not/cannot be tested. if (!proxyTypesToTest.includes(proxyType)) { continue } - test(`${testType === ProxyCallFilteringTestType.Permitted ? 'allowed' : 'forbidden'} proxy calls for ${proxyType}`, async () => { - await proxyCallFilteringSingleTestRunner(chain, proxyType, proxyTypeIx, proxyAccounts[proxyType], testType) + children.push({ + kind: 'test' as const, + label: `${testType === ProxyCallFilteringTestType.Permitted ? 'allowed' : 'forbidden'} proxy calls for ${proxyType}`, + testFn: async () => + await proxyCallFilteringSingleTestRunner(chain, proxyType, proxyTypeIx, proxyAccounts[proxyType], testType), }) } + + return { + kind: 'describe', + label: `filtering tests for ${testType === ProxyCallFilteringTestType.Permitted ? 'allowed' : 'forbidden'} proxy calls`, + children, + } } /// ------- @@ -1840,37 +1855,55 @@ export async function proxyAnnouncementLifecycleTest< * - Executing calls through proxies * - Proxy types and filtering */ -export async function proxyE2ETests< +export function baseProxyE2ETests< TCustom extends Record | undefined, TInitStorages extends Record> | undefined, >( chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }, proxyTypes: Record, -) { - describe(testConfig.testSuiteName, async () => { - test('add proxies (with/without delay) to an account, and remove them', async () => { - await addRemoveProxyTest(chain, testConfig.addressEncoding, proxyTypes, PROXY_DELAY) - }) - - test('create and kill pure proxies', async () => { - await createKillPureProxyTest(chain, testConfig.addressEncoding, proxyTypes) - }) - - test('perform proxy call on behalf of delegator', async () => { - await proxyCallTest(chain) - }) +): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'add proxies (with/without delay) to an account, and remove them', + testFn: async () => await addRemoveProxyTest(chain, testConfig.addressEncoding, proxyTypes, PROXY_DELAY), + }, + { + kind: 'test', + label: 'create and kill pure proxies', + testFn: async () => await createKillPureProxyTest(chain, testConfig.addressEncoding, proxyTypes), + }, + { + kind: 'test', + label: 'perform proxy call on behalf of delegator', + testFn: async () => await proxyCallTest(chain), + }, + { + kind: 'test', + label: 'proxy announcement lifecycle test', + testFn: async () => await proxyAnnouncementLifecycleTest(chain, testConfig.addressEncoding), + }, + ], + } +} - test('proxy announcement lifecycle test', async () => { - await proxyAnnouncementLifecycleTest(chain, testConfig.addressEncoding) - }) +export function fullProxyE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>( + chain: Chain, + testConfig: { testSuiteName: string; addressEncoding: number }, + proxyTypes: Record, +): RootTestTree { + const allowedFilteringTests = proxyCallFilteringTestTree(chain, proxyTypes, ProxyCallFilteringTestType.Permitted) + const forbiddenFilteringTests = proxyCallFilteringTestTree(chain, proxyTypes, ProxyCallFilteringTestType.Forbidden) - describe('filtering tests for permitted proxy calls', () => { - proxyCallFilteringTestRunner(chain, proxyTypes, ProxyCallFilteringTestType.Permitted) - }) + const baseTestTree = baseProxyE2ETests(chain, testConfig, proxyTypes) + baseTestTree.children.push(allowedFilteringTests, forbiddenFilteringTests) - describe('filtering tests for forbidden proxy calls', () => { - proxyCallFilteringTestRunner(chain, proxyTypes, ProxyCallFilteringTestType.Forbidden) - }) - }) + return baseTestTree } From 477d20e11aabe47fe8e8b4b4443885a67fcf37cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bald=C3=A9?= Date: Wed, 6 Aug 2025 19:55:13 +0100 Subject: [PATCH 22/22] Fix proxy snapshots --- .../assetHubKusama.proxy.e2e.test.ts.snap | 1738 ++++++++++++ .../coretimeKusama.proxy.e2e.test.ts.snap | 1516 +++++++++++ .../kusama.proxy.e2e.test.ts.snap | 2412 +++++++++++++++++ .../peopleKusama.proxy.e2e.test.ts.snap | 1271 +++++++++ .../src/assetHubKusama.proxy.e2e.test.ts | 4 +- .../src/coretimeKusama.proxy.e2e.test.ts | 4 +- packages/kusama/src/kusama.proxy.e2e.test.ts | 4 +- .../kusama/src/peopleKusama.proxy.e2e.test.ts | 4 +- .../assetHubPolkadot.proxy.e2e.test.ts.snap | 1738 ++++++++++++ ...collectivesPolkadot.proxy.e2e.test.ts.snap | 1851 +++++++++++++ .../coretimePolkadot.proxy.e2e.test.ts.snap | 1516 +++++++++++ .../peoplePolkadot.proxy.e2e.test.ts.snap | 1271 +++++++++ .../polkadot.proxy.e2e.test.ts.snap | 2048 ++++++++++++++ .../src/assetHubPolkadot.proxy.e2e.test.ts | 4 +- .../src/collectivesPolkadot.proxy.e2e.test.ts | 4 +- .../src/coretimePolkadot.proxy.e2e.test.ts | 4 +- .../src/peoplePolkadot.proxy.e2e.test.ts | 4 +- .../polkadot/src/polkadot.proxy.e2e.test.ts | 4 +- 18 files changed, 15379 insertions(+), 18 deletions(-) diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap index 4706bdda0..29a8d7568 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap @@ -346,6 +346,1744 @@ exports[`Kusama AssetHub Proxy > create and kill pure proxies > events when kill ] `; +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Token": "BelowMinimum", + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call set_metadata 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x02000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call destroy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Token": "BelowMinimum", + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call destroy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call set_metadata 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x02000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call destroy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call set_metadata 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`Kusama AssetHub Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap index f8a337f5c..c85a96c43 100644 --- a/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap @@ -346,6 +346,1522 @@ exports[`Kusama Coretime Proxy > create and kill pure proxies > events when kill ] `; +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call drop_history 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0e000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call renew 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0e000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call renew 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0e000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet broker, call purchase_credit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call purchase_credit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet broker, call purchase_credit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + exports[`Kusama Coretime Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap index 0926c5641..3502a11c4 100644 --- a/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap @@ -490,6 +490,2418 @@ exports[`Kusama Proxy > create and kill pure proxies > events when killing pure ] `; +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet auctions, call bid 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x03000000", + "index": 72, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet bounties, call propose_bounty 1`] = ` +[ + { + "data": { + "index": "(redacted)", + }, + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 31, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", + }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet staking, call bond 1`] = ` +[ + { + "data": { + "amount": 1000000000000, + "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", + }, + "method": "VestingCompleted", + "section": "vesting", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet auctions, call bid 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x03000000", + "index": 72, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet crowdloan, call dissolve 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 73, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet slots, call trigger_onboard 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 71, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 31, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet bounties, call propose_bounty 1`] = ` +[ + { + "data": { + "index": "(redacted)", + }, + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", + }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet auctions, call bid 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x03000000", + "index": 72, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet bounties, call propose_bounty 1`] = ` +[ + { + "data": { + "index": "(redacted)", + }, + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 31, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", + }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet staking, call bond 1`] = ` +[ + { + "data": { + "amount": 1000000000000, + "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_proxy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Society > events for proxy type Society, pallet society, call bid 1`] = ` +[ + { + "data": { + "candidateId": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "offer": 1000000000000, + }, + "method": "Bid", + "section": "society", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call bond 1`] = ` +[ + { + "data": { + "amount": 1000000000000, + "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call register_fast_unstake 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call batch 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call batch_all 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call force_batch 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet utility, call batch 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet utility, call batch_all 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet utility, call force_batch 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`Kusama Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap index f6fc12daf..4828969ee 100644 --- a/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap +++ b/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap @@ -298,6 +298,1277 @@ exports[`People Kusama Proxy > create and kill pure proxies > events when killin ] `; +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call clear_identity 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call provide_judgement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call provide_judgement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call clear_identity 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`People Kusama Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts b/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts index 2bb564692..8236eca0c 100644 --- a/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts @@ -1,8 +1,8 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { AssetHubProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests(assetHubKusama, { testSuiteName: 'Kusama AssetHub Proxy', addressEncoding: 2 }, AssetHubProxyTypes), + fullProxyE2ETests(assetHubKusama, { testSuiteName: 'Kusama AssetHub Proxy', addressEncoding: 2 }, AssetHubProxyTypes), ) diff --git a/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts b/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts index e60e08421..c177faac9 100644 --- a/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts @@ -1,8 +1,8 @@ import { coretimeKusama } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { CoretimeProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests(coretimeKusama, { testSuiteName: 'Kusama Coretime Proxy', addressEncoding: 2 }, CoretimeProxyTypes), + fullProxyE2ETests(coretimeKusama, { testSuiteName: 'Kusama Coretime Proxy', addressEncoding: 2 }, CoretimeProxyTypes), ) diff --git a/packages/kusama/src/kusama.proxy.e2e.test.ts b/packages/kusama/src/kusama.proxy.e2e.test.ts index 57def0d02..afd7788ab 100644 --- a/packages/kusama/src/kusama.proxy.e2e.test.ts +++ b/packages/kusama/src/kusama.proxy.e2e.test.ts @@ -1,6 +1,6 @@ import { kusama } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { KusamaProxyTypes } from '@e2e-test/shared' -registerTestTree(baseProxyE2ETests(kusama, { testSuiteName: 'Kusama Proxy', addressEncoding: 2 }, KusamaProxyTypes)) +registerTestTree(fullProxyE2ETests(kusama, { testSuiteName: 'Kusama Proxy', addressEncoding: 2 }, KusamaProxyTypes)) diff --git a/packages/kusama/src/peopleKusama.proxy.e2e.test.ts b/packages/kusama/src/peopleKusama.proxy.e2e.test.ts index c1b04f239..bcc81ae68 100644 --- a/packages/kusama/src/peopleKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.proxy.e2e.test.ts @@ -1,8 +1,8 @@ import { peopleKusama } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { PeopleProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests(peopleKusama, { testSuiteName: 'People Kusama Proxy', addressEncoding: 2 }, PeopleProxyTypes), + fullProxyE2ETests(peopleKusama, { testSuiteName: 'People Kusama Proxy', addressEncoding: 2 }, PeopleProxyTypes), ) diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap index a96a6318f..04fc6d2d5 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap @@ -346,6 +346,1744 @@ exports[`Polkadot AssetHub Proxy > create and kill pure proxies > events when ki ] `; +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Token": "BelowMinimum", + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call set_metadata 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetManager > events for proxy type AssetManager, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call destroy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for AssetOwner > events for proxy type AssetOwner, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Token": "BelowMinimum", + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call destroy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet nfts, call set_metadata 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 52, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet uniques, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet assets, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet nfts, call destroy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetManager > events for proxy type AssetManager, pallet uniques, call create 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet assets, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet nfts, call set_metadata 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for AssetOwner > events for proxy type AssetOwner, pallet uniques, call mint 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Assets > events for proxy type Assets, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`Polkadot AssetHub Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap index c7999d480..6798e50e4 100644 --- a/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap @@ -346,6 +346,1857 @@ exports[`Polkadot Collectives Proxy > create and kill pure proxies > events when ] `; +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet alliance, call join_alliance 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0c000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet collectives, call propose 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 51, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Alliance > events for proxy type Alliance, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet core_fellowship, call bump 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x07000000", + "index": 73, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet ranked_collective, call vote 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 70, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet referenda, call place_decision_deposit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet salary, call init 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet core_fellowship, call bump 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x07000000", + "index": 63, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet referenda, call place_decision_deposit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet salary, call init 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 64, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Fellowship > events for proxy type Fellowship, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet core_fellowship, call bump 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet core_fellowship, call bump 2`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet ranked_collective, call vote 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet referenda, call place_decision_deposit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet referenda, call place_decision_deposit 2`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet salary, call init 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet salary, call init 2`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Alliance > events for proxy type Alliance, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet alliance, call join_alliance 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet collectives, call propose 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet core_fellowship, call bump 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet referenda, call place_decision_deposit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet salary, call init 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet alliance, call join_alliance 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet collectives, call propose 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet core_fellowship, call bump 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet ranked_collective, call vote 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet referenda, call place_decision_deposit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet salary, call init 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Fellowship > events for proxy type Fellowship, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`Polkadot Collectives Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap index a70916431..741b6cd9a 100644 --- a/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap @@ -346,6 +346,1522 @@ exports[`Polkadot Coretime Proxy > create and kill pure proxies > events when ki ] `; +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call drop_history 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0e000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet broker, call renew 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0e000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Broker > events for proxy type Broker, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call renew 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0e000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for allowed proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet broker, call purchase_credit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Broker > events for proxy type Broker, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call purchase_credit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet broker, call purchase_credit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + exports[`Polkadot Coretime Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap index bd98ca224..f2a79de18 100644 --- a/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap @@ -298,6 +298,1277 @@ exports[`People Polkadot Proxy > create and kill pure proxies > events when kill ] `; +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 21, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call clear_identity 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call provide_judgement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call provide_judgement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 50, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Collator > events for proxy type Collator, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Identity > events for proxy type Identity, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet collator_selection, call register_as_candidate 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet identity, call clear_identity 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`People Polkadot Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap index 8e032db31..bc8f7b85e 100644 --- a/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/polkadot.proxy.e2e.test.ts.snap @@ -394,6 +394,2054 @@ exports[`Polkadot Proxy > create and kill pure proxies > events when killing pur ] `; +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet auctions, call bid 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x03000000", + "index": 72, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet bounties, call propose_bounty 1`] = ` +[ + { + "data": { + "index": "(redacted)", + }, + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 39, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", + }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet staking, call bond 1`] = ` +[ + { + "data": { + "amount": 1000000000000, + "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", + }, + "method": "VestingCompleted", + "section": "vesting", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet auctions, call bid 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x03000000", + "index": 72, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet crowdloan, call dissolve 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x08000000", + "index": 73, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet slots, call trigger_onboard 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 71, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet bounties, call propose_bounty 1`] = ` +[ + { + "data": { + "index": "(redacted)", + }, + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", + }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 39, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet auctions, call bid 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x03000000", + "index": 72, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet bounties, call propose_bounty 1`] = ` +[ + { + "data": { + "index": "(redacted)", + }, + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 30, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 39, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", + }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet staking, call bond 1`] = ` +[ + { + "data": { + "amount": 1000000000000, + "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_proxy 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet nomination_pools, call chill 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 39, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call bond 1`] = ` +[ + { + "data": { + "amount": 1000000000000, + "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet staking, call register_fast_unstake 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 40, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call batch_all 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for allowed proxy calls > allowed proxy calls for Staking > events for proxy type Staking, pallet utility, call force_batch 1`] = ` +[ + { + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet staking, call bond 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call reject_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_announcement 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet balances, call burn 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet referenda, call submit 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call apply_authorized_upgrade 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark_with_event 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, + { + "data": { + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, + }, + "method": "ExtrinsicSuccess", + "section": "system", + }, +] +`; + +exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet vesting, call vested_transfer 1`] = ` +[ + { + "data": { + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", + }, +] +`; + exports[`Polkadot Proxy > perform proxy call on behalf of delegator > events when Bob transfers funds to Charlie as Alice's proxy 1`] = ` [ { diff --git a/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts index 011fae493..a6bbf8533 100644 --- a/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts @@ -1,10 +1,10 @@ import { assetHubPolkadot } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { AssetHubProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests( + fullProxyE2ETests( assetHubPolkadot, { testSuiteName: 'Polkadot AssetHub Proxy', addressEncoding: 0 }, AssetHubProxyTypes, diff --git a/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts b/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts index 02e7dea0e..24d43d621 100644 --- a/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts @@ -1,10 +1,10 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { CollectivesProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests( + fullProxyE2ETests( collectivesPolkadot, { testSuiteName: 'Polkadot Collectives Proxy', addressEncoding: 0 }, CollectivesProxyTypes, diff --git a/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts b/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts index 63af79bbf..902fe06a8 100644 --- a/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts @@ -1,10 +1,10 @@ import { coretimePolkadot } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { CoretimeProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests( + fullProxyE2ETests( coretimePolkadot, { testSuiteName: 'Polkadot Coretime Proxy', addressEncoding: 0 }, CoretimeProxyTypes, diff --git a/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts index 826c0a7c0..b8363f86e 100644 --- a/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts @@ -1,8 +1,8 @@ import { peoplePolkadot } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { PeopleProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests(peoplePolkadot, { testSuiteName: 'People Polkadot Proxy', addressEncoding: 0 }, PeopleProxyTypes), + fullProxyE2ETests(peoplePolkadot, { testSuiteName: 'People Polkadot Proxy', addressEncoding: 0 }, PeopleProxyTypes), ) diff --git a/packages/polkadot/src/polkadot.proxy.e2e.test.ts b/packages/polkadot/src/polkadot.proxy.e2e.test.ts index 4cac9483a..c905c2ae8 100644 --- a/packages/polkadot/src/polkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/polkadot.proxy.e2e.test.ts @@ -1,8 +1,8 @@ import { polkadot } from '@e2e-test/networks/chains' -import { baseProxyE2ETests, registerTestTree } from '@e2e-test/shared' +import { fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' import { PolkadotProxyTypes } from '@e2e-test/shared' registerTestTree( - baseProxyE2ETests(polkadot, { testSuiteName: 'Polkadot Proxy', addressEncoding: 0 }, PolkadotProxyTypes), + fullProxyE2ETests(polkadot, { testSuiteName: 'Polkadot Proxy', addressEncoding: 0 }, PolkadotProxyTypes), )