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__/assetHubKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.proxy.e2e.test.ts.snap index e45b8d80a..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,18 +346,11 @@ 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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -365,15 +358,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -384,15 +377,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -403,15 +396,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -422,18 +415,11 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -441,11 +427,11 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for { "data": { "dispatchInfo": { - "class": "Operational", + "class": "Normal", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", }, }, }, @@ -455,18 +441,19 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -478,7 +465,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "paysFee": "Yes", "weight": { "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", + "refTime": "(rounded 760000000)", }, }, }, @@ -488,51 +475,50 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 uniques, call create 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -540,16 +526,13 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Module": { - "error": "0x05000000", - "index": 0, - }, + "Token": "BelowMinimum", }, }, }, @@ -559,15 +542,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -578,15 +561,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -597,15 +580,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x02000000", + "index": 51, }, }, }, @@ -613,57 +596,61 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { @@ -671,7 +658,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 50, }, }, }, @@ -679,32 +666,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -715,15 +688,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -734,7 +707,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { @@ -742,7 +715,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 51, }, }, }, @@ -750,90 +723,61 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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": { @@ -841,7 +785,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 50, }, }, }, @@ -852,48 +796,31 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Module": { - "error": "0x05000000", - "index": 0, - }, + "Token": "BelowMinimum", }, }, }, "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -901,32 +828,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -934,32 +847,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -970,7 +869,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { @@ -978,7 +877,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 51, }, }, }, @@ -986,32 +885,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x02000000", + "index": 51, }, }, }, @@ -1019,65 +904,69 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 760000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 vesting, call vested_transfer 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1088,15 +977,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -1107,18 +996,16 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1126,8 +1013,13 @@ exports[`Kusama AssetHub Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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", @@ -1138,18 +1030,16 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1157,15 +1047,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x08000000", + "index": 21, }, }, }, @@ -1176,15 +1066,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1195,8 +1085,13 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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", @@ -1204,59 +1099,11 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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`] = ` -[ +] +`; + +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", @@ -1272,7 +1119,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1289,16 +1136,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1306,13 +1155,16 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "Token": "BelowMinimum", + "Module": { + "error": "0x01000000", + "index": 42, + }, }, }, }, @@ -1322,15 +1174,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x01000000", + "index": 42, }, }, }, @@ -1341,45 +1193,67 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, + "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 AssetManager > events for proxy type AssetManager, pallet uniques, call mint 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x02000000", - "index": 51, - }, - }, - }, + "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 AssetManager > events for proxy type AssetManager, pallet utility, call batch 1`] = ` +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": {}, @@ -1396,7 +1270,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1413,7 +1287,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1430,7 +1304,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1438,7 +1312,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "Err": { "Module": { "error": "0x05000000", - "index": 50, + "index": 0, }, }, }, @@ -1449,15 +1323,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1468,15 +1342,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 52, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1487,7 +1361,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1495,7 +1369,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "Err": { "Module": { "error": "0x05000000", - "index": 51, + "index": 0, }, }, }, @@ -1506,58 +1380,73 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 AssetOwner > events for proxy type AssetOwner, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call create 1`] = ` +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": { @@ -1565,7 +1454,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "Err": { "Module": { "error": "0x05000000", - "index": 50, + "index": 0, }, }, }, @@ -1573,34 +1462,32 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 760000000)", }, }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1611,15 +1498,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 52, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1630,15 +1517,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 52, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1649,7 +1536,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1657,7 +1544,7 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "Err": { "Module": { "error": "0x05000000", - "index": 51, + "index": 0, }, }, }, @@ -1668,15 +1555,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x02000000", - "index": 51, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1684,69 +1571,65 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Assets > events for proxy type Assets, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1754,18 +1637,32 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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 CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1776,16 +1673,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1793,49 +1692,48 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1843,18 +1741,32 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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 Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1862,19 +1774,35 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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 Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1882,49 +1810,81 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1932,18 +1892,32 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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 proxy, call reject_announcement 1`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1954,15 +1928,15 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1970,14 +1944,35 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all "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 permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1999,19 +1994,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2033,16 +2027,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2050,16 +2046,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2067,16 +2065,18 @@ exports[`Kusama AssetHub Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", 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..88096f36e 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,30 @@ // 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 > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { 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__/coretimeKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/coretimeKusama.proxy.e2e.test.ts.snap index 8a4f53126..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,18 +346,11 @@ 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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -365,15 +358,15 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -384,15 +377,15 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -403,15 +396,15 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -419,35 +412,14 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -469,18 +441,19 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -502,18 +475,16 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -521,81 +492,49 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0e000000", + "index": 50, }, }, }, @@ -603,32 +542,18 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0e000000", + "index": 50, }, }, }, @@ -639,15 +564,15 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -655,65 +580,69 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -721,32 +650,18 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -757,18 +672,16 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -776,18 +689,16 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -795,48 +706,32 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 18000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 21, }, }, }, @@ -844,32 +739,18 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -877,35 +758,19 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -913,18 +778,16 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -932,18 +795,16 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -951,15 +812,15 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0e000000", + "index": 50, }, }, }, @@ -970,15 +831,15 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -986,91 +847,50 @@ exports[`Kusama Coretime Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 1200000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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", @@ -1081,7 +901,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1100,7 +920,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1119,7 +939,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1138,7 +958,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1164,7 +984,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1198,7 +1018,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1215,7 +1035,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1232,7 +1052,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1249,15 +1069,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x0e000000", - "index": 50, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1268,18 +1088,16 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1287,18 +1105,16 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1306,7 +1122,7 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1323,16 +1139,18 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1340,16 +1158,18 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1357,15 +1177,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1376,15 +1196,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1392,69 +1212,65 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 130000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 1200000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1462,18 +1278,32 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all "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 Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1484,66 +1314,114 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call renew 1`] = ` +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": "0x0e000000", - "index": 50, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1554,15 +1432,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1570,53 +1448,101 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all "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 permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1624,15 +1550,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1643,15 +1569,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1662,15 +1588,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1678,14 +1604,35 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all "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 permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1707,19 +1654,18 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1741,16 +1687,18 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1758,16 +1706,18 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1775,16 +1725,18 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1792,15 +1744,15 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1811,54 +1763,102 @@ exports[`Kusama Coretime Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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", + }, ] `; 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/__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__/kusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.proxy.e2e.test.ts.snap index bf7b20fe8..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,15 +490,15 @@ 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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x03000000", + "index": 72, }, }, }, @@ -509,15 +509,46 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet referenda, call submit 1`] = ` +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": "0x05000000", - "index": "(redacted)", + "error": "0x00000000", + "index": 31, }, }, }, @@ -528,15 +559,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet staking, call bond 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 41, }, }, }, @@ -547,15 +578,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 30, }, }, }, @@ -563,35 +594,76 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 30, + }, }, }, }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, + "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", @@ -613,18 +685,19 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -646,18 +719,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -665,18 +736,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -684,18 +753,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet staking, call bond 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -703,48 +770,34 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "VestingCompleted", + "section": "vesting", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x03000000", + "index": 72, }, }, }, @@ -752,32 +805,18 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 73, }, }, }, @@ -785,32 +824,18 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 71, }, }, }, @@ -821,15 +846,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet staking, call bond 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 31, }, }, }, @@ -840,15 +865,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 30, }, }, }, @@ -856,101 +881,95 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "index": "(redacted)", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "BountyProposed", + "section": "bounties", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -958,18 +977,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -977,18 +994,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet referenda, call submit 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -996,18 +1011,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet staking, call bond 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1015,15 +1028,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 41, }, }, }, @@ -1031,65 +1044,69 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x03000000", + "index": 72, }, }, }, @@ -1097,32 +1114,37 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, + "index": "(redacted)", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 31, }, }, }, @@ -1133,15 +1155,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 41, }, }, }, @@ -1152,15 +1174,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 30, }, }, }, @@ -1171,15 +1193,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet balances, call burn 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 30, }, }, }, @@ -1190,18 +1212,22 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1209,18 +1235,19 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "amount": 1000000000000, + "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Bonded", + "section": "staking", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1228,18 +1255,11 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1247,11 +1267,11 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr { "data": { "dispatchInfo": { - "class": "Operational", + "class": "Normal", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", }, }, }, @@ -1261,18 +1281,19 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet system, call remark 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1284,7 +1305,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "paysFee": "Yes", "weight": { "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", + "refTime": "(rounded 690000000)", }, }, }, @@ -1294,51 +1315,50 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1346,15 +1366,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 30, }, }, }, @@ -1362,35 +1382,85 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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", @@ -1412,18 +1482,19 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1445,15 +1516,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Society > events for proxy type Society, pallet utility, call batch 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 41, }, }, }, @@ -1464,37 +1535,19 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "amount": 1000000000000, + "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "Bonded", + "section": "staking", }, -] -`; - -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, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1502,15 +1555,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Spokesperson > events for proxy type Spokesperson, pallet balances, call burn 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 42, }, }, }, @@ -1521,51 +1574,33 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1573,18 +1608,16 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1592,7 +1625,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { @@ -1611,7 +1644,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet balances, call burn 1`] = ` +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": { @@ -1619,7 +1652,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": "(redacted)", }, }, }, @@ -1630,7 +1663,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet referenda, call submit 1`] = ` +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": { @@ -1638,7 +1671,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr "Err": { "Module": { "error": "0x05000000", - "index": "(redacted)", + "index": 0, }, }, }, @@ -1649,7 +1682,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { @@ -1682,7 +1715,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet system, call remark 1`] = ` +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": { @@ -1715,7 +1748,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { @@ -1748,7 +1781,7 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -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`] = ` +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": { @@ -1767,15 +1800,15 @@ exports[`Kusama Proxy > filtering tests for forbidden proxy calls > forbidden pr ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet auctions, call bid 1`] = ` +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": "0x03000000", - "index": 72, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1786,46 +1819,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x00000000", - "index": 31, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1836,15 +1838,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x0b000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1852,37 +1854,32 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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, - }, + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", }, }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x01000000", - "index": 30, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1890,61 +1887,6 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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": { @@ -1961,20 +1903,19 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox }, ] `; - -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", - }, + +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1996,16 +1937,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2013,16 +1956,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2030,51 +1975,48 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 vesting, call vested_transfer 1`] = ` -[ - { - "data": { - "account": "HnMAUz7r2G8G3hB27SYNyit5aJmh2a5P4eMdDtACtMFDbam", - }, - "method": "VestingCompleted", - "section": "vesting", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet auctions, call bid 1`] = ` +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": "0x03000000", - "index": 72, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2082,18 +2024,32 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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 Auction > events for proxy type Auction, pallet crowdloan, call dissolve 1`] = ` +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": "0x08000000", - "index": 73, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2101,18 +2057,32 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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 Auction > events for proxy type Auction, pallet slots, call trigger_onboard 1`] = ` +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": "0x00000000", - "index": 71, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2123,15 +2093,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x00000000", - "index": 31, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2142,15 +2112,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x01000000", - "index": 30, + "error": "0x05000000", + "index": "(redacted)", }, }, }, @@ -2161,16 +2131,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2178,126 +2150,117 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": { - "index": "(redacted)", - }, - "method": "BountyProposed", - "section": "bounties", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch 1`] = ` +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": {}, - "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", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, + }, + "method": "ProxyExecuted", + "section": "proxy", }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2305,15 +2268,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x0b000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2324,16 +2287,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NominationPools > events for proxy type NominationPools, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2341,16 +2306,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2358,16 +2325,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2375,15 +2344,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet auctions, call bid 1`] = ` +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": "0x03000000", - "index": 72, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2394,34 +2363,48 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": { - "index": "(redacted)", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, - "method": "BountyProposed", - "section": "bounties", + "method": "ProxyExecuted", + "section": "proxy", }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 31, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2429,18 +2412,32 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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 nomination_pools, call chill 1`] = ` +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": "0x0b000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2448,18 +2445,32 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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 proxy, call reject_announcement 1`] = ` +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": "0x01000000", - "index": 30, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2470,15 +2481,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x01000000", - "index": 30, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2486,57 +2497,68 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, }, - "track": 30, }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", - }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet staking, call bond 1`] = ` +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": { - "amount": 1000000000000, - "stash": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, - "method": "Bonded", - "section": "staking", + "method": "ProxyExecuted", + "section": "proxy", }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 680000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2548,7 +2570,7 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "paysFee": "Yes", "weight": { "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", + "refTime": "(rounded 690000000)", }, }, }, @@ -2558,50 +2580,56 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, }, }, }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2609,16 +2637,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2626,32 +2656,48 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet proxy, call remove_proxy 1`] = ` +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": "0x01000000", - "index": 30, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2662,16 +2708,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2679,16 +2727,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2696,16 +2746,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2713,19 +2765,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Society > events for proxy type Society, pallet society, call bid 1`] = ` +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": { - "candidateId": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - "offer": 1000000000000, - }, - "method": "Bid", - "section": "society", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2733,11 +2784,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Spokesperson > events for proxy type Spokesperson, pallet system, call remark 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2745,11 +2803,11 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox { "data": { "dispatchInfo": { - "class": "Normal", + "class": "Operational", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 680000000)", + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", }, }, }, @@ -2759,19 +2817,18 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2783,7 +2840,7 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "paysFee": "Yes", "weight": { "proofSize": "(rounded 12000)", - "refTime": "(rounded 690000000)", + "refTime": "(rounded 680000000)", }, }, }, @@ -2793,15 +2850,15 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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`] = ` +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": "0x0b000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2809,38 +2866,32 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 690000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2851,57 +2902,6 @@ exports[`Kusama Proxy > filtering tests for permitted proxy calls > allowed prox ] `; -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__/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/__snapshots__/kusama.vesting.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/kusama.vesting.e2e.test.ts.snap index c0f191640..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,6 +13,31 @@ exports[`Kusama Vesting > forced vested transfer and forced removal of vesting s ] `; +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/__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/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap b/packages/kusama/src/__snapshots__/peopleKusama.proxy.e2e.test.ts.snap index f23597e9f..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,18 +298,11 @@ 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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -317,15 +310,15 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -333,32 +326,37 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, }, }, }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -366,6 +364,18 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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": { @@ -383,18 +393,19 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -416,18 +427,16 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -435,48 +444,49 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -484,32 +494,18 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -517,35 +513,36 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -553,18 +550,16 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -572,15 +567,15 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 21, }, }, }, @@ -588,32 +583,18 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -621,57 +602,61 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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": { @@ -679,7 +664,7 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 50, }, }, }, @@ -690,15 +675,15 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 50, }, }, }, @@ -709,15 +694,15 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -728,15 +713,66 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 50, }, }, }, @@ -744,32 +780,18 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -777,68 +799,36 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi "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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -846,8 +836,13 @@ exports[`People Kusama Proxy > filtering tests for forbidden proxy calls > forbi ] `; -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`] = ` +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", @@ -858,7 +853,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { @@ -877,7 +872,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { @@ -896,7 +891,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { @@ -915,7 +910,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { @@ -941,7 +936,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { @@ -975,7 +970,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": {}, @@ -992,7 +987,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": {}, @@ -1009,7 +1004,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": {}, @@ -1026,15 +1021,15 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1045,15 +1040,15 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1061,69 +1056,32 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1131,72 +1089,68 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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, - }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", }, }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1204,7 +1158,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { @@ -1212,7 +1166,7 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "Err": { "Module": { "error": "0x05000000", - "index": 50, + "index": 0, }, }, }, @@ -1220,18 +1174,32 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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 permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call provide_judgement 1`] = ` +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": "0x08000000", - "index": 50, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1239,18 +1207,32 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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 Identity > events for proxy type Identity, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1258,36 +1240,35 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1295,16 +1276,18 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1312,15 +1295,15 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": "0x08000000", - "index": 50, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1328,18 +1311,32 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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 permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1347,69 +1344,65 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1420,15 +1413,15 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1439,15 +1432,15 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1458,11 +1451,18 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1470,11 +1470,11 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow { "data": { "dispatchInfo": { - "class": "Normal", + "class": "Operational", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", }, }, }, @@ -1484,19 +1484,18 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1518,50 +1517,51 @@ exports[`People Kusama Proxy > filtering tests for permitted proxy calls > allow ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", diff --git a/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts b/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts index b80df613b..ac719ece2 100644 --- a/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.multisig.e2e.test.ts @@ -1,4 +1,4 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(assetHubKusama, { testSuiteName: 'AssetHubKusama Multisig', addressEncoding: 2 }) +registerTestTree(baseMultisigE2Etests(assetHubKusama, { testSuiteName: 'AssetHubKusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts b/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts index 79a7ff923..f489a2971 100644 --- a/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.proxy.e2e.test.ts @@ -1,4 +1,6 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { AssetHubProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { AssetHubProxyTypes, fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(assetHubKusama, { testSuiteName: 'Kusama AssetHub Proxy', addressEncoding: 2 }, AssetHubProxyTypes) +registerTestTree( + fullProxyE2ETests(assetHubKusama, { testSuiteName: 'Kusama AssetHub Proxy', addressEncoding: 2 }, AssetHubProxyTypes), +) diff --git a/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts b/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts index ba206e0bc..1c690ae26 100644 --- a/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts +++ b/packages/kusama/src/assetHubKusama.vesting.e2e.test.ts @@ -1,4 +1,4 @@ import { assetHubKusama } from '@e2e-test/networks/chains' -import { vestingE2ETests } from '@e2e-test/shared' +import { assetHubVestingE2ETests, registerTestTree } 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/bridgeHubKusama.multisig.e2e.test.ts b/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts new file mode 100644 index 000000000..aba2f661f --- /dev/null +++ b/packages/kusama/src/bridgeHubKusama.multisig.e2e.test.ts @@ -0,0 +1,9 @@ +import { bridgeHubKusama } from '@e2e-test/networks/chains' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' + +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..f3f22fd78 --- /dev/null +++ b/packages/kusama/src/coretimeKusama.multisig.e2e.test.ts @@ -0,0 +1,9 @@ +import { coretimeKusama } from '@e2e-test/networks/chains' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' + +registerTestTree( + baseMultisigE2Etests(coretimeKusama, { + testSuiteName: 'CoretimeKusama Multisig', + addressEncoding: 2, + }), +) diff --git a/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts b/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts index d9fc9e769..cf5c14f60 100644 --- a/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/coretimeKusama.proxy.e2e.test.ts @@ -1,4 +1,6 @@ import { coretimeKusama } from '@e2e-test/networks/chains' -import { CoretimeProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { CoretimeProxyTypes, fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(coretimeKusama, { testSuiteName: 'Kusama Coretime Proxy', addressEncoding: 2 }, CoretimeProxyTypes) +registerTestTree( + fullProxyE2ETests(coretimeKusama, { testSuiteName: 'Kusama Coretime Proxy', addressEncoding: 2 }, CoretimeProxyTypes), +) diff --git a/packages/kusama/src/kusama.governance.e2e.test.ts b/packages/kusama/src/kusama.governance.e2e.test.ts index c7d1d6e37..5a967858f 100644 --- a/packages/kusama/src/kusama.governance.e2e.test.ts +++ b/packages/kusama/src/kusama.governance.e2e.test.ts @@ -1,4 +1,4 @@ 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/kusama/src/kusama.multisig.e2e.test.ts b/packages/kusama/src/kusama.multisig.e2e.test.ts index 18ac4c3f7..c3b7eb875 100644 --- a/packages/kusama/src/kusama.multisig.e2e.test.ts +++ b/packages/kusama/src/kusama.multisig.e2e.test.ts @@ -1,4 +1,4 @@ import { kusama } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(kusama, { testSuiteName: 'Kusama Multisig', addressEncoding: 2 }) +registerTestTree(baseMultisigE2Etests(kusama, { testSuiteName: 'Kusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/kusama.nominationPools.e2e.test.ts b/packages/kusama/src/kusama.nominationPools.e2e.test.ts index 1c1828454..01dd96627 100644 --- a/packages/kusama/src/kusama.nominationPools.e2e.test.ts +++ b/packages/kusama/src/kusama.nominationPools.e2e.test.ts @@ -1,4 +1,4 @@ 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/kusama/src/kusama.proxy.e2e.test.ts b/packages/kusama/src/kusama.proxy.e2e.test.ts index 8f965e544..bf41905ca 100644 --- a/packages/kusama/src/kusama.proxy.e2e.test.ts +++ b/packages/kusama/src/kusama.proxy.e2e.test.ts @@ -1,4 +1,4 @@ import { kusama } from '@e2e-test/networks/chains' -import { KusamaProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { fullProxyE2ETests, KusamaProxyTypes, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(kusama, { testSuiteName: 'Kusama Proxy', addressEncoding: 2 }, KusamaProxyTypes) +registerTestTree(fullProxyE2ETests(kusama, { testSuiteName: 'Kusama Proxy', addressEncoding: 2 }, KusamaProxyTypes)) diff --git a/packages/kusama/src/kusama.scheduler.e2e.test.ts b/packages/kusama/src/kusama.scheduler.e2e.test.ts index 2655fbc17..3c7ceae2c 100644 --- a/packages/kusama/src/kusama.scheduler.e2e.test.ts +++ b/packages/kusama/src/kusama.scheduler.e2e.test.ts @@ -1,4 +1,4 @@ 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/kusama/src/kusama.staking.e2e.test.ts b/packages/kusama/src/kusama.staking.e2e.test.ts index 36bb7a7ca..603d706db 100644 --- a/packages/kusama/src/kusama.staking.e2e.test.ts +++ b/packages/kusama/src/kusama.staking.e2e.test.ts @@ -1,4 +1,4 @@ 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/kusama/src/kusama.vesting.e2e.test.ts b/packages/kusama/src/kusama.vesting.e2e.test.ts index 02ff95c04..c93b6ac4e 100644 --- a/packages/kusama/src/kusama.vesting.e2e.test.ts +++ b/packages/kusama/src/kusama.vesting.e2e.test.ts @@ -1,4 +1,4 @@ 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/kusama/src/peopleKusama.e2e.test.ts b/packages/kusama/src/peopleKusama.e2e.test.ts index 2a400eec1..b94f6beac 100644 --- a/packages/kusama/src/peopleKusama.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.e2e.test.ts @@ -1,4 +1,4 @@ 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/kusama/src/peopleKusama.multisig.e2e.test.ts b/packages/kusama/src/peopleKusama.multisig.e2e.test.ts index 77d521323..9e83de59a 100644 --- a/packages/kusama/src/peopleKusama.multisig.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.multisig.e2e.test.ts @@ -1,4 +1,4 @@ import { peopleKusama } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(peopleKusama, { testSuiteName: 'PeopleKusama Multisig', addressEncoding: 2 }) +registerTestTree(baseMultisigE2Etests(peopleKusama, { testSuiteName: 'PeopleKusama Multisig', addressEncoding: 2 })) diff --git a/packages/kusama/src/peopleKusama.proxy.e2e.test.ts b/packages/kusama/src/peopleKusama.proxy.e2e.test.ts index 1cd94b836..df70a5e58 100644 --- a/packages/kusama/src/peopleKusama.proxy.e2e.test.ts +++ b/packages/kusama/src/peopleKusama.proxy.e2e.test.ts @@ -1,4 +1,6 @@ import { peopleKusama } from '@e2e-test/networks/chains' -import { PeopleProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { fullProxyE2ETests, PeopleProxyTypes, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(peopleKusama, { testSuiteName: 'People Kusama Proxy', addressEncoding: 2 }, PeopleProxyTypes) +registerTestTree( + fullProxyE2ETests(peopleKusama, { testSuiteName: 'People Kusama Proxy', addressEncoding: 2 }, PeopleProxyTypes), +) 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/__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__/assetHubPolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.proxy.e2e.test.ts.snap index 0e999271a..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,18 +346,11 @@ 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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -365,15 +358,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -384,15 +377,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -403,15 +396,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -422,18 +415,11 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -441,11 +427,11 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f { "data": { "dispatchInfo": { - "class": "Operational", + "class": "Normal", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", }, }, }, @@ -455,18 +441,19 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -488,51 +475,50 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 uniques, call create 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -540,16 +526,13 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Module": { - "error": "0x05000000", - "index": 0, - }, + "Token": "BelowMinimum", }, }, }, @@ -559,15 +542,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -578,15 +561,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -597,15 +580,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 51, }, }, }, @@ -613,57 +596,61 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 190000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { @@ -671,7 +658,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 50, }, }, }, @@ -679,32 +666,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -715,15 +688,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -734,7 +707,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { @@ -742,7 +715,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 51, }, }, }, @@ -750,90 +723,61 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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": { @@ -841,7 +785,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 50, }, }, }, @@ -852,48 +796,31 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Module": { - "error": "0x05000000", - "index": 0, - }, + "Token": "BelowMinimum", }, }, }, "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -901,32 +828,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -934,32 +847,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 52, }, }, }, @@ -970,7 +869,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { @@ -978,7 +877,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 51, }, }, }, @@ -986,32 +885,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 51, }, }, }, @@ -1019,65 +904,69 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 630000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 vesting, call vested_transfer 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1088,15 +977,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -1107,18 +996,16 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1126,8 +1013,13 @@ exports[`Polkadot AssetHub Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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", @@ -1138,18 +1030,16 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1157,15 +1047,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x08000000", + "index": 21, }, }, }, @@ -1176,15 +1066,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1195,8 +1085,13 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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", @@ -1204,59 +1099,11 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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`] = ` -[ +] +`; + +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", @@ -1272,7 +1119,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1289,16 +1136,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x00000000", + "index": 41, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1306,13 +1155,16 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "Token": "BelowMinimum", + "Module": { + "error": "0x01000000", + "index": 42, + }, }, }, }, @@ -1322,15 +1174,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x01000000", + "index": 42, }, }, }, @@ -1341,45 +1193,67 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 52, - }, - }, - }, + "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 AssetManager > events for proxy type AssetManager, pallet uniques, call mint 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 51, - }, - }, - }, + "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 AssetManager > events for proxy type AssetManager, pallet utility, call batch 1`] = ` +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": {}, @@ -1396,7 +1270,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1413,7 +1287,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1430,7 +1304,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1438,7 +1312,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "Err": { "Module": { "error": "0x05000000", - "index": 50, + "index": 0, }, }, }, @@ -1449,15 +1323,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1468,15 +1342,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 52, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1487,7 +1361,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1495,7 +1369,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "Err": { "Module": { "error": "0x05000000", - "index": 51, + "index": 0, }, }, }, @@ -1506,58 +1380,73 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 AssetOwner > events for proxy type AssetOwner, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Assets > events for proxy type Assets, pallet assets, call create 1`] = ` +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": { @@ -1565,7 +1454,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "Err": { "Module": { "error": "0x05000000", - "index": 50, + "index": 0, }, }, }, @@ -1573,34 +1462,32 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", }, }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1611,15 +1498,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 52, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1630,15 +1517,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 52, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1649,7 +1536,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1657,7 +1544,7 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "Err": { "Module": { "error": "0x05000000", - "index": 51, + "index": 0, }, }, }, @@ -1668,15 +1555,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 51, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1684,69 +1571,65 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Assets > events for proxy type Assets, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 630000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1754,18 +1637,32 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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 CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1776,16 +1673,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1793,49 +1692,48 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 190000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1843,18 +1741,32 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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 Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1862,19 +1774,35 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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 Collator > events for proxy type Collator, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1882,49 +1810,81 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1932,18 +1892,32 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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 proxy, call reject_announcement 1`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1954,15 +1928,15 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1970,14 +1944,35 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a "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 permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1999,19 +1994,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2033,16 +2027,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2050,16 +2046,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2067,16 +2065,18 @@ exports[`Polkadot AssetHub Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", 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..345f817a6 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.vesting.e2e.test.ts.snap @@ -1,29 +1,21 @@ // 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`] = ` -[ - "126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57", - 5000000000, -] -`; - -exports[`Polkadot Asset Hub Vesting > forced vested transfer and forced removal of vesting schedule work > forced vesting removal event 1`] = ` -[ - "126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57", -] -`; - -exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` +exports[`Polkadot Asset Hub Vesting > attempt to merge when no vesting schedules exist fails > merge schedules extrinsic failed 1`] = ` [ { "data": { - "dispatchError": "BadOrigin", + "dispatchError": { + "Module": { + "error": "0x00000000", + "index": 14, + }, + }, "dispatchInfo": { "class": "Normal", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 960000000)", + "proofSize": "(rounded 17000)", + "refTime": "(rounded 810000000)", }, }, }, @@ -33,79 +25,22 @@ 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`] = ` -[ - { - "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - "unvested": "(rounded 25000000000)", - }, - "method": "VestingUpdated", - "section": "vesting", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > test merger of two vesting schedules > vesting events 2 1`] = ` -[ - { - "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - "unvested": "(rounded 76000000000)", - }, - "method": "VestingUpdated", - "section": "vesting", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > test merger of two vesting schedules > vesting schedules merger events 1`] = ` -[ - { - "data": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", - "unvested": "(rounded 70000000000)", - }, - "method": "VestingUpdated", - "section": "vesting", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > vesting schedule lifecycle > vest events 1`] = ` -[ - { - "data": { - "account": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "unvested": 5000000000, - }, - "method": "VestingUpdated", - "section": "vesting", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > vesting schedule lifecycle > vest events 2`] = ` -[ - { - "data": { - "account": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - }, - "method": "VestingCompleted", - "section": "vesting", - }, -] -`; - -exports[`Polkadot Asset Hub Vesting > vesting schedule lifecycle > vest other events 1`] = ` +exports[`Polkadot Asset Hub Vesting > signed-origin force-vested transfer fails > force vest events 1`] = ` [ { "data": { - "account": "14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3", - "unvested": 2500000000, + "dispatchError": "BadOrigin", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 18000)", + "refTime": "(rounded 1100000000)", + }, + }, }, - "method": "VestingUpdated", - "section": "vesting", + "method": "ExtrinsicFailed", + "section": "system", }, ] `; 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__/collectivesPolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/collectivesPolkadot.proxy.e2e.test.ts.snap index 682127cfb..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,15 +346,15 @@ 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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0c000000", + "index": 50, }, }, }, @@ -365,15 +365,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 51, }, }, }, @@ -384,15 +384,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -403,18 +403,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -422,18 +420,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -441,18 +437,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -460,15 +454,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x07000000", + "index": 73, }, }, }, @@ -479,15 +473,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -498,15 +492,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 70, }, }, }, @@ -514,32 +508,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": "(redacted)", }, }, }, @@ -547,68 +527,31 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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 forbidden proxy calls > forbidden proxy calls for Ambassador > events for proxy type Ambassador, pallet alliance, call join_alliance 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -616,18 +559,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -635,18 +576,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -654,18 +593,11 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -673,15 +605,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": "(redacted)", + "error": "0x00000000", + "index": 41, }, }, }, @@ -692,15 +624,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -711,15 +643,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -727,35 +659,14 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -777,18 +688,19 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -810,18 +722,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -829,48 +739,49 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -878,32 +789,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -911,35 +808,19 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -947,48 +828,49 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 21, }, }, }, @@ -996,32 +878,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1029,35 +897,36 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 alliance, call join_alliance 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1065,18 +934,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1084,15 +951,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x07000000", + "index": 63, }, }, }, @@ -1103,15 +970,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1122,15 +989,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": "(redacted)", }, }, }, @@ -1141,15 +1008,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": "0x05000000", - "index": "(redacted)", + "error": "0x00000000", + "index": 64, }, }, }, @@ -1160,18 +1027,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1179,48 +1044,68 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", + "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": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -1228,6 +1113,37 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls "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": { @@ -1245,18 +1161,19 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1278,18 +1195,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1297,18 +1212,16 @@ exports[`Polkadot Collectives Proxy > filtering tests for forbidden proxy calls ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x0c000000", - "index": 50, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1316,15 +1229,32 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 51, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1335,15 +1265,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1354,16 +1284,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1371,16 +1303,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1388,16 +1322,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1405,15 +1341,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x07000000", - "index": 73, + "error": "0x05000000", + "index": "(redacted)", }, }, }, @@ -1424,15 +1360,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1443,15 +1379,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x01000000", - "index": 70, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1462,15 +1398,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": "(redacted)", + "error": "0x05000000", + "index": 0, }, }, }, @@ -1478,48 +1414,101 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls "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 permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet salary, call init 1`] = ` +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": "Ok", + "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 permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Ambassador > events for proxy type Ambassador, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1527,16 +1516,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1544,11 +1535,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1556,15 +1554,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1575,15 +1573,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": "(redacted)", }, }, }, @@ -1594,15 +1592,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1613,11 +1611,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1625,11 +1630,11 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls { "data": { "dispatchInfo": { - "class": "Normal", + "class": "Operational", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", }, }, }, @@ -1639,19 +1644,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1673,50 +1677,51 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Any > events for proxy type Any, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1724,15 +1729,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1740,18 +1745,32 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls "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 permitted proxy calls > allowed proxy calls for CancelProxy > events for proxy type CancelProxy, pallet proxy, call reject_announcement 1`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1759,69 +1778,65 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CancelProxy > events for proxy type CancelProxy, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1832,15 +1847,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1848,69 +1863,65 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x07000000", - "index": 63, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1918,37 +1929,32 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls "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, - }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", }, }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": "(redacted)", + "error": "0x05000000", + "index": 0, }, }, }, @@ -1959,15 +1965,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 64, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1978,33 +1984,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2012,16 +2003,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2029,15 +2022,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2048,15 +2041,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": "(redacted)", }, }, }, @@ -2067,15 +2060,15 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2086,11 +2079,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2098,11 +2098,11 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls { "data": { "dispatchInfo": { - "class": "Normal", + "class": "Operational", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", }, }, }, @@ -2112,19 +2112,18 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2146,50 +2145,51 @@ exports[`Polkadot Collectives Proxy > filtering tests for permitted proxy calls ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", 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__/coretimePolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/coretimePolkadot.proxy.e2e.test.ts.snap index b417f078c..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,18 +346,11 @@ 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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -365,15 +358,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -384,15 +377,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -403,15 +396,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -419,35 +412,14 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -469,18 +441,19 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -502,18 +475,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -521,81 +492,49 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0e000000", + "index": 50, }, }, }, @@ -603,32 +542,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0e000000", + "index": 50, }, }, }, @@ -639,15 +564,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -655,65 +580,69 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -721,32 +650,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -757,18 +672,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "data": {}, + "method": "BatchCompleted", + "section": "utility", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -776,18 +689,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -795,48 +706,32 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 16000)", - "refTime": "(rounded 130000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 21, }, }, }, @@ -844,32 +739,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -877,35 +758,19 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -913,18 +778,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -932,18 +795,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -951,15 +812,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0e000000", + "index": 50, }, }, }, @@ -970,15 +831,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -986,91 +847,50 @@ exports[`Polkadot Coretime Proxy > filtering tests for forbidden proxy calls > f "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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 14000)", - "refTime": "(rounded 750000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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", @@ -1081,7 +901,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1100,7 +920,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1119,7 +939,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1138,7 +958,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1164,7 +984,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { @@ -1198,7 +1018,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1215,7 +1035,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1232,7 +1052,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1249,15 +1069,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x0e000000", - "index": 50, + "error": "0x00000000", + "index": 41, }, }, }, @@ -1268,18 +1088,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x0e000000", - "index": 50, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1287,18 +1105,16 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x00000000", - "index": 41, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1306,7 +1122,7 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, @@ -1323,16 +1139,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1340,16 +1158,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1357,15 +1177,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1376,15 +1196,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1392,69 +1212,65 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 16000)", + "refTime": "(rounded 130000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 14000)", + "refTime": "(rounded 750000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1462,18 +1278,32 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a "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 Collator > events for proxy type Collator, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1484,66 +1314,114 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Collator > events for proxy type Collator, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CoretimeRenewer > events for proxy type CoretimeRenewer, pallet broker, call renew 1`] = ` +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": "0x0e000000", - "index": 50, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1554,15 +1432,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1570,53 +1448,101 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a "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 permitted proxy calls > allowed proxy calls for CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 CoretimeRenewer > events for proxy type CoretimeRenewer, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1624,15 +1550,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1643,15 +1569,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1662,15 +1588,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1678,14 +1604,35 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a "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 permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1707,19 +1654,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1741,16 +1687,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1758,16 +1706,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1775,16 +1725,18 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1792,15 +1744,15 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1811,54 +1763,102 @@ exports[`Polkadot Coretime Proxy > filtering tests for permitted proxy calls > a ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 permitted proxy calls > allowed proxy calls for OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call batch_all 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 OnDemandPurchaser > events for proxy type OnDemandPurchaser, pallet utility, call force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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", + }, ] `; 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/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/peoplePolkadot.proxy.e2e.test.ts.snap index def4dcb59..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,18 +298,11 @@ 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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -317,15 +310,15 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -333,32 +326,37 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 42, + }, }, }, }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -366,6 +364,18 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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": { @@ -383,18 +393,19 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -416,18 +427,16 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -435,48 +444,49 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 19000)", - "refTime": "(rounded 120000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -484,32 +494,18 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 42, }, }, }, @@ -517,35 +513,36 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -553,18 +550,16 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -572,15 +567,15 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 21, }, }, }, @@ -588,32 +583,18 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -621,57 +602,61 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 balances, call burn 1`] = ` +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": { @@ -679,7 +664,7 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "Err": { "Module": { "error": "0x05000000", - "index": 0, + "index": 50, }, }, }, @@ -690,15 +675,15 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 50, }, }, }, @@ -709,15 +694,15 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -728,15 +713,66 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 50, }, }, }, @@ -744,32 +780,18 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 41, }, }, }, @@ -777,68 +799,36 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for "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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -846,8 +836,13 @@ exports[`People Polkadot Proxy > filtering tests for forbidden proxy calls > for ] `; -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`] = ` +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", @@ -858,7 +853,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -877,7 +872,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -896,7 +891,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -915,7 +910,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -941,7 +936,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -975,7 +970,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -992,7 +987,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1009,7 +1004,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, @@ -1026,15 +1021,15 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1045,15 +1040,15 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1061,69 +1056,32 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x08000000", - "index": 21, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1131,72 +1089,68 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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, - }, + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", }, }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 Collator > events for proxy type Collator, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1204,7 +1158,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { @@ -1212,7 +1166,7 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "Err": { "Module": { "error": "0x05000000", - "index": 50, + "index": 0, }, }, }, @@ -1220,18 +1174,32 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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 permitted proxy calls > allowed proxy calls for Identity > events for proxy type Identity, pallet identity, call provide_judgement 1`] = ` +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": "0x08000000", - "index": 50, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1239,18 +1207,32 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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 Identity > events for proxy type Identity, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1258,36 +1240,35 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1295,16 +1276,18 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1312,15 +1295,15 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x08000000", - "index": 50, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1328,18 +1311,32 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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 permitted proxy calls > allowed proxy calls for IdentityJudgement > events for proxy type IdentityJudgement, pallet multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1347,69 +1344,65 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 IdentityJudgement > events for proxy type IdentityJudgement, pallet utility, call force_batch 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 multisig, call as_multi 1`] = ` +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": "0x00000000", - "index": 41, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1420,15 +1413,15 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1439,15 +1432,15 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "0x01000000", - "index": 42, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1458,11 +1451,18 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1470,11 +1470,11 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all { "data": { "dispatchInfo": { - "class": "Normal", + "class": "Operational", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 17000)", - "refTime": "(rounded 1400000000)", + "proofSize": "(rounded 19000)", + "refTime": "(rounded 120000000000)", }, }, }, @@ -1484,19 +1484,18 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1518,50 +1517,51 @@ exports[`People Polkadot Proxy > filtering tests for permitted proxy calls > all ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "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 NonTransfer > events for proxy type NonTransfer, pallet utility, call batch_all 1`] = ` -[ - { - "data": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 17000)", + "refTime": "(rounded 1400000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 force_batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", 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/__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": { 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..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,15 +394,15 @@ 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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x03000000", + "index": 72, }, }, }, @@ -413,15 +413,46 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet referenda, call submit 1`] = ` +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": "0x05000000", - "index": "(redacted)", + "error": "0x00000000", + "index": 30, }, }, }, @@ -432,15 +463,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Auction > events for proxy type Auction, pallet staking, call bond 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 39, }, }, }, @@ -451,15 +482,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 29, }, }, }, @@ -467,35 +498,76 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", + "result": { + "Err": { + "Module": { + "error": "0x01000000", + "index": 29, + }, }, }, }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, + "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", @@ -517,18 +589,19 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -550,18 +623,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -569,18 +640,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -588,18 +657,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for CancelProxy > events for proxy type CancelProxy, pallet staking, call bond 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -607,48 +674,34 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "VestingCompleted", + "section": "vesting", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x03000000", + "index": 72, }, }, }, @@ -656,32 +709,18 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x08000000", + "index": 73, }, }, }, @@ -689,32 +728,18 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 71, }, }, }, @@ -725,15 +750,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Governance > events for proxy type Governance, pallet staking, call bond 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 30, }, }, }, @@ -744,15 +769,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 29, }, }, }, @@ -760,101 +785,95 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "index": "(redacted)", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "BountyProposed", + "section": "bounties", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", }, + "track": 30, + }, + "method": "Submitted", + "section": "referenda", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -862,18 +881,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -881,18 +898,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet referenda, call submit 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -900,18 +915,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NominationPools > events for proxy type NominationPools, pallet staking, call bond 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -919,15 +932,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 39, }, }, }, @@ -935,65 +948,69 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark_with_event 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x03000000", + "index": 72, }, }, }, @@ -1001,32 +1018,37 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, + "index": "(redacted)", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "BountyProposed", + "section": "bounties", + }, + { + "data": { + "result": "Ok", + }, + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x00000000", + "index": 30, }, }, }, @@ -1037,15 +1059,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for NonTransfer > events for proxy type NonTransfer, pallet balances, call burn 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x0b000000", + "index": 39, }, }, }, @@ -1056,15 +1078,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 29, }, }, }, @@ -1075,15 +1097,15 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet balances, call burn 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 29, }, }, }, @@ -1094,37 +1116,22 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, + "index": "(redacted)", + "proposal": { + "Inline": "0x00001468656c6c6f", }, + "track": 30, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "Submitted", + "section": "referenda", }, -] -`; - -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, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1132,51 +1139,31 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "amount": 1000000000000, + "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "Bonded", + "section": "staking", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1198,18 +1185,19 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "hash_": "(hash)", + "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + }, + "method": "Remarked", + "section": "system", + }, + { + "data": { + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1231,18 +1219,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet balances, call burn 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1250,18 +1236,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden proxy calls for Staking > events for proxy type Staking, pallet referenda, call submit 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": "(redacted)", - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1269,48 +1253,32 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Operational", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 13000)", - "refTime": "(rounded 140000000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "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 remark 1`] = ` +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": "0x05000000", - "index": 0, + "error": "0x01000000", + "index": 29, }, }, }, @@ -1318,68 +1286,36 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden "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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, - }, - "method": "ProxyExecuted", - "section": "proxy", + "data": {}, + "method": "BatchCompleted", + "section": "utility", }, { "data": { - "dispatchInfo": { - "class": "Normal", - "paysFee": "Yes", - "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", - }, - }, + "result": "Ok", }, - "method": "ExtrinsicSuccess", - "section": "system", + "method": "ProxyExecuted", + "section": "proxy", }, ] `; -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`] = ` +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": { - "Err": { - "Module": { - "error": "0x05000000", - "index": 0, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1387,18 +1323,16 @@ exports[`Polkadot Proxy > filtering tests for forbidden proxy calls > forbidden ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet auctions, call bid 1`] = ` +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": { - "Err": { - "Module": { - "error": "0x03000000", - "index": 72, - }, - }, - }, + "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1406,11 +1340,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet balances, call burn 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x0b000000", + "index": 39, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1418,14 +1359,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": { - "index": "(redacted)", + "amount": 1000000000000, + "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", }, - "method": "BountyProposed", - "section": "bounties", + "method": "Bonded", + "section": "staking", }, { "data": { @@ -1437,7 +1379,7 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": { @@ -1445,7 +1387,7 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "Err": { "Module": { "error": "0x00000000", - "index": 30, + "index": 40, }, }, }, @@ -1456,18 +1398,50 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": { - "result": { - "Err": { - "Module": { - "error": "0x0b000000", - "index": 39, - }, - }, - }, + "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", @@ -1475,15 +1449,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x01000000", - "index": 29, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1494,15 +1468,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x01000000", - "index": 29, + "error": "0x05000000", + "index": "(redacted)", }, }, }, @@ -1513,22 +1487,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet referenda, call submit 1`] = ` +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": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1536,31 +1506,51 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet staking, call bond 1`] = ` +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": { - "amount": 1000000000000, - "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, - "method": "Bonded", - "section": "staking", + "method": "ProxyExecuted", + "section": "proxy", }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "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 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1582,19 +1572,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1616,16 +1605,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Any > events for proxy type Any, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1633,16 +1624,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1650,16 +1643,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1667,34 +1662,48 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": { - "account": "16D2eVuK5SWfwvtFD3gVdBC2nc2BafK31BY6PrbZHBAGew7L", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, - "method": "VestingCompleted", - "section": "vesting", + "method": "ProxyExecuted", + "section": "proxy", }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Auction > events for proxy type Auction, pallet auctions, call bid 1`] = ` +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": "0x03000000", - "index": 72, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1702,18 +1711,32 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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 Auction > events for proxy type Auction, pallet crowdloan, call dissolve 1`] = ` +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": "0x08000000", - "index": 73, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1721,18 +1744,32 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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 Auction > events for proxy type Auction, pallet slots, call trigger_onboard 1`] = ` +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": "0x00000000", - "index": 71, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1743,15 +1780,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x00000000", - "index": 30, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1762,15 +1799,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x01000000", - "index": 29, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1778,95 +1815,101 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": { - "index": "(redacted)", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, - "method": "BountyProposed", - "section": "bounties", + "method": "ProxyExecuted", + "section": "proxy", }, { "data": { - "result": "Ok", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet referenda, call submit 1`] = ` +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": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -1874,16 +1917,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for Governance > events for proxy type Governance, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1891,16 +1936,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1908,16 +1955,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -1925,15 +1974,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x0b000000", - "index": 39, + "error": "0x05000000", + "index": 0, }, }, }, @@ -1941,69 +1990,65 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet auctions, call bid 1`] = ` +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": "0x03000000", - "index": 72, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2011,37 +2056,32 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 30, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2052,15 +2092,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x0b000000", - "index": 39, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2071,15 +2111,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x01000000", - "index": 29, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2090,15 +2130,15 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": "0x01000000", - "index": 29, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2109,22 +2149,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet referenda, call submit 1`] = ` +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": { - "index": "(redacted)", - "proposal": { - "Inline": "0x00001468656c6c6f", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, }, - "track": 30, - }, - "method": "Submitted", - "section": "referenda", - }, - { - "data": { - "result": "Ok", }, "method": "ProxyExecuted", "section": "proxy", @@ -2132,19 +2168,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet staking, call bond 1`] = ` +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": { - "amount": 1000000000000, - "stash": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Bonded", - "section": "staking", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2152,11 +2187,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for NonTransfer > events for proxy type NonTransfer, pallet system, call remark 1`] = ` +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": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2164,11 +2206,11 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr { "data": { "dispatchInfo": { - "class": "Normal", + "class": "Operational", "paysFee": "Yes", "weight": { - "proofSize": "(rounded 12000)", - "refTime": "(rounded 590000000)", + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", }, }, }, @@ -2178,19 +2220,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": { - "hash_": "(hash)", - "sender": "15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5", - }, - "method": "Remarked", - "section": "system", - }, - { - "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2202,7 +2243,7 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "paysFee": "Yes", "weight": { "proofSize": "(rounded 12000)", - "refTime": "(rounded 580000000)", + "refTime": "(rounded 590000000)", }, }, }, @@ -2212,66 +2253,48 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x01000000", - "index": 29, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2282,16 +2305,18 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed proxy calls for ParaRegistration > events for proxy type ParaRegistration, pallet utility, call batch 1`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": "(redacted)", + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", @@ -2299,49 +2324,48 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "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", + "dispatchInfo": { + "class": "Operational", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 13000)", + "refTime": "(rounded 140000000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x0b000000", - "index": 39, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2349,38 +2373,32 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 590000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": "0x00000000", - "index": 40, + "error": "0x05000000", + "index": 0, }, }, }, @@ -2388,53 +2406,35 @@ exports[`Polkadot Proxy > filtering tests for permitted proxy calls > allowed pr "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", + "dispatchInfo": { + "class": "Normal", + "paysFee": "Yes", + "weight": { + "proofSize": "(rounded 12000)", + "refTime": "(rounded 580000000)", + }, + }, }, - "method": "ProxyExecuted", - "section": "proxy", + "method": "ExtrinsicSuccess", + "section": "system", }, ] `; -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`] = ` +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": {}, - "method": "BatchCompleted", - "section": "utility", - }, { "data": { - "result": "Ok", + "result": { + "Err": { + "Module": { + "error": "0x05000000", + "index": 0, + }, + }, + }, }, "method": "ProxyExecuted", "section": "proxy", 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/__snapshots__/polkadot.vesting.e2e.test.ts.snap b/packages/polkadot/src/__snapshots__/polkadot.vesting.e2e.test.ts.snap index 95aad581f..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,6 +13,31 @@ exports[`Polkadot Vesting > forced vested transfer and forced removal of vesting ] `; +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.multisig.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts index 2a498b66a..73f3e6a7f 100644 --- a/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.multisig.e2e.test.ts @@ -1,4 +1,9 @@ import { assetHubPolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(assetHubPolkadot, { testSuiteName: 'AssetHubPolkadot Multisig', addressEncoding: 0 }) +registerTestTree( + baseMultisigE2Etests(assetHubPolkadot, { + testSuiteName: 'AssetHubPolkadot Multisig', + addressEncoding: 0, + }), +) diff --git a/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts index 801a871a9..6949f0d78 100644 --- a/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.proxy.e2e.test.ts @@ -1,4 +1,10 @@ import { assetHubPolkadot } from '@e2e-test/networks/chains' -import { AssetHubProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { AssetHubProxyTypes, fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(assetHubPolkadot, { testSuiteName: 'Polkadot AssetHub Proxy', addressEncoding: 0 }, AssetHubProxyTypes) +registerTestTree( + fullProxyE2ETests( + assetHubPolkadot, + { testSuiteName: 'Polkadot AssetHub Proxy', addressEncoding: 0 }, + AssetHubProxyTypes, + ), +) diff --git a/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts b/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts index af2fe5b5e..9b456cd8f 100644 --- a/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.vesting.e2e.test.ts @@ -1,4 +1,4 @@ -import { polkadot } from '@e2e-test/networks/chains' -import { vestingE2ETests } from '@e2e-test/shared' +import { assetHubPolkadot } from '@e2e-test/networks/chains' +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/bridgeHubPolkadot.multisig.e2e.test.ts b/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts index 861e138a2..ba3fe420b 100644 --- a/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/bridgeHubPolkadot.multisig.e2e.test.ts @@ -1,4 +1,9 @@ import { bridgeHubPolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(bridgeHubPolkadot, { testSuiteName: 'BridgeHubPolkadot Multisig', addressEncoding: 0 }) +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..3ca3fda62 100644 --- a/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.multisig.e2e.test.ts @@ -1,4 +1,9 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(collectivesPolkadot, { testSuiteName: 'CollectivesPolkadot Multisig', addressEncoding: 0 }) +registerTestTree( + baseMultisigE2Etests(collectivesPolkadot, { + testSuiteName: 'CollectivesPolkadot Multisig', + addressEncoding: 0, + }), +) diff --git a/packages/polkadot/src/collectivesPolkadot.polkadot.test.ts b/packages/polkadot/src/collectivesPolkadot.polkadot.test.ts index 59e4772e3..26f5780d1 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/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts b/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts index d56c0e602..c31257924 100644 --- a/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.proxy.e2e.test.ts @@ -1,8 +1,10 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' -import { CollectivesProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { CollectivesProxyTypes, fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' -proxyE2ETests( - collectivesPolkadot, - { testSuiteName: 'Polkadot Collectives Proxy', addressEncoding: 0 }, - CollectivesProxyTypes, +registerTestTree( + fullProxyE2ETests( + collectivesPolkadot, + { testSuiteName: 'Polkadot Collectives Proxy', addressEncoding: 0 }, + CollectivesProxyTypes, + ), ) diff --git a/packages/polkadot/src/collectivesPolkadot.scheduler.e2e.test.ts b/packages/polkadot/src/collectivesPolkadot.scheduler.e2e.test.ts index 954c74c19..54df88277 100644 --- a/packages/polkadot/src/collectivesPolkadot.scheduler.e2e.test.ts +++ b/packages/polkadot/src/collectivesPolkadot.scheduler.e2e.test.ts @@ -1,7 +1,8 @@ import { collectivesPolkadot } from '@e2e-test/networks/chains' -import { schedulerE2ETests } from '@e2e-test/shared' +import { baseSchedulerE2ETests, registerTestTree } from '@e2e-test/shared' -schedulerE2ETests(collectivesPolkadot, { - testSuiteName: 'Collectives Polkadot Scheduler E2E tests', - addressEncoding: 0, -}) +registerTestTree( + baseSchedulerE2ETests(collectivesPolkadot, { + testSuiteName: 'Collectives Polkadot Scheduler E2E tests', + }), +) diff --git a/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts b/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts index 7ea10a7d1..91e312c2c 100644 --- a/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/coretimePolkadot.multisig.e2e.test.ts @@ -1,4 +1,9 @@ import { coretimePolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(coretimePolkadot, { testSuiteName: 'CoretimePolkadot Multisig', addressEncoding: 0 }) +registerTestTree( + baseMultisigE2Etests(coretimePolkadot, { + testSuiteName: 'CoretimePolkadot Multisig', + addressEncoding: 0, + }), +) diff --git a/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts b/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts index 4887d1862..a6706aa90 100644 --- a/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/coretimePolkadot.proxy.e2e.test.ts @@ -1,4 +1,10 @@ import { coretimePolkadot } from '@e2e-test/networks/chains' -import { CoretimeProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { CoretimeProxyTypes, fullProxyE2ETests, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(coretimePolkadot, { testSuiteName: 'Polkadot Coretime Proxy', addressEncoding: 0 }, CoretimeProxyTypes) +registerTestTree( + fullProxyE2ETests( + coretimePolkadot, + { testSuiteName: 'Polkadot Coretime Proxy', addressEncoding: 0 }, + CoretimeProxyTypes, + ), +) diff --git a/packages/polkadot/src/peoplePolkadot.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.e2e.test.ts index b095b7767..12183e148 100644 --- a/packages/polkadot/src/peoplePolkadot.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.e2e.test.ts @@ -1,4 +1,6 @@ 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/polkadot/src/peoplePolkadot.multisig.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts index ba831211f..20ea7c216 100644 --- a/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.multisig.e2e.test.ts @@ -1,4 +1,4 @@ import { peoplePolkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(peoplePolkadot, { testSuiteName: 'PeoplePolkadot Multisig', addressEncoding: 0 }) +registerTestTree(baseMultisigE2Etests(peoplePolkadot, { testSuiteName: 'PeoplePolkadot Multisig', addressEncoding: 0 })) diff --git a/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts b/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts index e54199944..9d08d43ca 100644 --- a/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/peoplePolkadot.proxy.e2e.test.ts @@ -1,4 +1,6 @@ import { peoplePolkadot } from '@e2e-test/networks/chains' -import { PeopleProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { fullProxyE2ETests, PeopleProxyTypes, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(peoplePolkadot, { testSuiteName: 'People Polkadot Proxy', addressEncoding: 0 }, PeopleProxyTypes) +registerTestTree( + fullProxyE2ETests(peoplePolkadot, { testSuiteName: 'People Polkadot Proxy', addressEncoding: 0 }, PeopleProxyTypes), +) diff --git a/packages/polkadot/src/polkadot.governance.e2e.test.ts b/packages/polkadot/src/polkadot.governance.e2e.test.ts index 827c69d3b..a64b05baa 100644 --- a/packages/polkadot/src/polkadot.governance.e2e.test.ts +++ b/packages/polkadot/src/polkadot.governance.e2e.test.ts @@ -1,4 +1,4 @@ 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/polkadot/src/polkadot.multisig.e2e.test.ts b/packages/polkadot/src/polkadot.multisig.e2e.test.ts index 243347c86..38d226220 100644 --- a/packages/polkadot/src/polkadot.multisig.e2e.test.ts +++ b/packages/polkadot/src/polkadot.multisig.e2e.test.ts @@ -1,4 +1,4 @@ import { polkadot } from '@e2e-test/networks/chains' -import { multisigE2ETests } from '@e2e-test/shared' +import { baseMultisigE2Etests, registerTestTree } from '@e2e-test/shared' -multisigE2ETests(polkadot, { testSuiteName: 'Polkadot Multisig', addressEncoding: 0 }) +registerTestTree(baseMultisigE2Etests(polkadot, { testSuiteName: 'Polkadot Multisig', addressEncoding: 0 })) diff --git a/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts b/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts index 7f8ebd459..3ce5cf845 100644 --- a/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts +++ b/packages/polkadot/src/polkadot.nominationPools.e2e.test.ts @@ -1,4 +1,6 @@ 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/polkadot/src/polkadot.proxy.e2e.test.ts b/packages/polkadot/src/polkadot.proxy.e2e.test.ts index 4f230bd12..89d2eee13 100644 --- a/packages/polkadot/src/polkadot.proxy.e2e.test.ts +++ b/packages/polkadot/src/polkadot.proxy.e2e.test.ts @@ -1,4 +1,6 @@ import { polkadot } from '@e2e-test/networks/chains' -import { PolkadotProxyTypes, proxyE2ETests } from '@e2e-test/shared' +import { fullProxyE2ETests, PolkadotProxyTypes, registerTestTree } from '@e2e-test/shared' -proxyE2ETests(polkadot, { testSuiteName: 'Polkadot Proxy', addressEncoding: 0 }, PolkadotProxyTypes) +registerTestTree( + fullProxyE2ETests(polkadot, { testSuiteName: 'Polkadot Proxy', addressEncoding: 0 }, PolkadotProxyTypes), +) diff --git a/packages/polkadot/src/polkadot.scheduler.e2e.test.ts b/packages/polkadot/src/polkadot.scheduler.e2e.test.ts index cdc327fae..348fad3c2 100644 --- a/packages/polkadot/src/polkadot.scheduler.e2e.test.ts +++ b/packages/polkadot/src/polkadot.scheduler.e2e.test.ts @@ -1,4 +1,4 @@ import { polkadot } from '@e2e-test/networks/chains' -import { schedulerE2ETests } from '@e2e-test/shared' +import { baseSchedulerE2ETests, registerTestTree } from '@e2e-test/shared' -schedulerE2ETests(polkadot, { testSuiteName: 'Polkadot Scheduler', addressEncoding: 0 }) +registerTestTree(baseSchedulerE2ETests(polkadot, { testSuiteName: 'Polkadot Scheduler' })) diff --git a/packages/polkadot/src/polkadot.staking.e2e.test.ts b/packages/polkadot/src/polkadot.staking.e2e.test.ts index 0f297f0b7..cbf36b71f 100644 --- a/packages/polkadot/src/polkadot.staking.e2e.test.ts +++ b/packages/polkadot/src/polkadot.staking.e2e.test.ts @@ -1,4 +1,4 @@ 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/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/polkadot/src/polkadot.vesting.e2e.test.ts b/packages/polkadot/src/polkadot.vesting.e2e.test.ts index 892f66445..b98669321 100644 --- a/packages/polkadot/src/polkadot.vesting.e2e.test.ts +++ b/packages/polkadot/src/polkadot.vesting.e2e.test.ts @@ -1,4 +1,4 @@ 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/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", diff --git a/packages/shared/src/collectives.ts b/packages/shared/src/collectives.ts index ce44a57ae..17f3d4721 100644 --- a/packages/shared/src/collectives.ts +++ b/packages/shared/src/collectives.ts @@ -10,17 +10,21 @@ import type { Chain, Client } from '@e2e-test/networks' -import { describe, test } from 'vitest' - 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 * * @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 */ @@ -90,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, @@ -98,12 +102,16 @@ export function collectivesChainE2ETests< relayChain: Chain, collectivesChain: Chain, 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) - }) - }) +): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'whitelisting a call by fellowship', + testFn: async () => await fellowshipWhitelistCall(relayChain, collectivesChain), + }, + ], + } } diff --git a/packages/shared/src/governance.ts b/packages/shared/src/governance.ts index 80870d948..0fc2d791e 100644 --- a/packages/shared/src/governance.ts +++ b/packages/shared/src/governance.ts @@ -1,7 +1,7 @@ import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { type RootTestTree, setupNetworks } from '@e2e-test/shared' import type { Option, u32 } from '@polkadot/types' import type { @@ -14,7 +14,7 @@ import type { import type { ITuple } from '@polkadot/types/types' import { encodeAddress } from '@polkadot/util-crypto' -import { assert, describe, test } from 'vitest' +import { assert } from 'vitest' import { BN } from 'bn.js' import { check, checkEvents, checkSystemEvents, objectCmp, scheduleInlineCallWithOrigin } from './helpers/index.js' @@ -106,7 +106,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: { @@ -706,7 +708,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: { @@ -833,7 +836,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)) @@ -874,23 +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 () => { - const [client] = await setupNetworks(chain) - - test('referendum lifecycle test - submission, decision deposit, various voting should all work', async () => { - await referendumLifecycleTest(client, testConfig.addressEncoding) - }) - - test('referendum lifecycle test 2 - submission, decision deposit, and killing should work', async () => { - await referendumLifecycleKillTest(client, testConfig.addressEncoding) - }) - - test('preimage submission, query and removal works', async () => { - await preimageTest(client) - }) - }) +>(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/multisig.ts b/packages/shared/src/multisig.ts index 5f593d078..2b6e4f115 100644 --- a/packages/shared/src/multisig.ts +++ b/packages/shared/src/multisig.ts @@ -5,9 +5,10 @@ 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' +import type { RootTestTree } from './types.js' /// ------- /// Helpers @@ -2208,101 +2209,159 @@ 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 }) { - 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) - }) +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { + return { + kind: 'describe', + label: 'success tests', + children: [ + { + 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), + }, + ], + } +} - test('first call with unexpected timepoint fails', async () => { - await unexpectedTimepointTest(chain) - }) +export function failureMultisigE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain): RootTestTree { + return { + kind: 'describe', + label: 'failure tests', + children: [ + { + 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), + }, + ], + } +} - test('approval with max weight too low fails', async () => { - await maxWeightTooLowTest(chain) - }) - }) +/** + * 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 }): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [successMultisigE2ETests(chain, testConfig), failureMultisigE2ETests(chain)], + } } diff --git a/packages/shared/src/nomination-pools.ts b/packages/shared/src/nomination-pools.ts index 94143db2b..435174b58 100644 --- a/packages/shared/src/nomination-pools.ts +++ b/packages/shared/src/nomination-pools.ts @@ -1,7 +1,7 @@ import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { type RootTestTree, setupNetworks } from '@e2e-test/shared' import type { ApiPromise } from '@polkadot/api' import type { KeyringPair } from '@polkadot/keyring/types' @@ -10,7 +10,7 @@ import type { PalletNominationPoolsBondedPoolInner } from '@polkadot/types/looku import type { Codec } from '@polkadot/types/types' import { encodeAddress } from '@polkadot/util-crypto' -import { assert, describe, test } from 'vitest' +import { assert } from 'vitest' import { check, @@ -98,7 +98,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() @@ -168,7 +169,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. @@ -259,7 +261,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') @@ -622,7 +624,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( @@ -680,7 +684,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 @@ -805,7 +811,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() @@ -881,7 +889,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 @@ -1050,35 +1060,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 () => { - const [client] = await setupNetworks(chain) - - test('nomination pool lifecycle test', async () => { - await nominationPoolLifecycleTest(client, testConfig.addressEncoding) - }) - - test('nomination pool creation with insufficient funds', async () => { - await nominationPoolCreationFailureTest(client) - }) - - test('nomination pool metadata test', async () => { - await nominationPoolSetMetadataTest(client) - }) - - test('nomination pool double join test: an account can only ever be in one pool at a time', async () => { - await nominationPoolDoubleJoinError(client) - }) - - test('nomination pool global config test', async () => { - await nominationPoolGlobalConfigTest(client) - }) - - test('nomination pools update roles test', async () => { - await nominationPoolsUpdateRolesTest(client, 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), + }, + ], + } } diff --git a/packages/shared/src/people.ts b/packages/shared/src/people.ts index a5f92f36e..cc8523a1a 100644 --- a/packages/shared/src/people.ts +++ b/packages/shared/src/people.ts @@ -12,7 +12,7 @@ import type { StorageValues } from '@acala-network/chopsticks' import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { type RootTestTree, setupNetworks } from '@e2e-test/shared' import type { ApiPromise } from '@polkadot/api' import type { Option, u128 } from '@polkadot/types' @@ -20,7 +20,7 @@ import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } fro import type { HexString } from '@polkadot/util/types' import { encodeAddress } from '@polkadot/util-crypto' -import { assert, describe, test } from 'vitest' +import { assert } from 'vitest' import { check, @@ -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 */ @@ -707,11 +717,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, @@ -719,28 +729,39 @@ export function peopleChainE2ETests< relayChain: Chain, peopleChain: Chain, 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) - }) - - test('setting an on-chain identity, requesting 2 judgements, having 1 provided, and then resetting the identity should work', async () => { - await setIdentityRequestJudgementTwiceThenResetIdentity(peopleClient) - }) - - test('setting on-chain identity, requesting judgement, cancelling the request and then clearing the identity should work', async () => { - await setIdentityThenRequesThenCancelThenClear(peopleClient) - }) - - test('setting on-chain identity, adding sub-identities, removing one, and having another remove itself should work', async () => { - await setIdentityThenAddSubsThenRemove(peopleClient, testConfig.addressEncoding) - }) - - test('adding a registrar as root from the relay chain works', async () => { - await addRegistrarViaRelayAsRoot(relayClient, peopleClient, 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), + }, + ], + } } diff --git a/packages/shared/src/proxy.ts b/packages/shared/src/proxy.ts index 8ff6c7700..d0ec829ea 100644 --- a/packages/shared/src/proxy.ts +++ b/packages/shared/src/proxy.ts @@ -1,7 +1,15 @@ import { type Checker, sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, KusamaProxyTypes, PolkadotProxyTypes, setupNetworks } from '@e2e-test/shared' +import { + type Client, + type DescribeNode, + KusamaProxyTypes, + PolkadotProxyTypes, + type RootTestTree, + setupNetworks, + type TestNode, +} from '@e2e-test/shared' import type { Keyring } from '@polkadot/api' import type { SubmittableExtrinsic } from '@polkadot/api/types' @@ -11,7 +19,7 @@ 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 BN from 'bn.js' import { match } from 'ts-pattern' @@ -1322,10 +1330,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) @@ -1359,16 +1371,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, + } } /// ------- @@ -1841,37 +1863,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 } diff --git a/packages/shared/src/scheduler.ts b/packages/shared/src/scheduler.ts index bf9dd335a..828148a9e 100644 --- a/packages/shared/src/scheduler.ts +++ b/packages/shared/src/scheduler.ts @@ -1,14 +1,14 @@ import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { type Client, type RootTestTree, setupNetworks } from '@e2e-test/shared' import type { SubmittableExtrinsic } from '@polkadot/api/types' import type { PalletSchedulerScheduled, SpWeightsWeightV2Weight } from '@polkadot/types/lookup' import type { ISubmittableResult } from '@polkadot/types/types' import { sha256AsU8a } from '@polkadot/util-crypto' -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' import { check, @@ -76,7 +76,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) @@ -90,7 +92,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() @@ -113,7 +117,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) @@ -154,7 +160,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() @@ -199,7 +207,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() @@ -256,7 +266,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') @@ -315,7 +327,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() @@ -367,7 +381,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') @@ -413,7 +429,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() @@ -476,7 +494,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') @@ -548,7 +568,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) @@ -623,7 +644,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)) @@ -682,7 +705,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 @@ -780,10 +805,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) @@ -878,7 +905,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() @@ -889,7 +918,7 @@ export async function schedulePeriodicTask< adjustIssuanceTx, // call ) - await testPeriodicTask(client, scheduleTx, null) + await testPeriodicTask(chain, scheduleTx, null) } /** @@ -902,7 +931,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() @@ -915,7 +946,7 @@ export async function scheduleNamedPeriodicTask< adjustIssuanceTx, // call ) - await testPeriodicTask(client, scheduleNamedTx, taskId) + await testPeriodicTask(chain, scheduleNamedTx, taskId) } /** @@ -931,7 +962,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) @@ -1059,7 +1092,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() @@ -1174,7 +1208,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') @@ -1316,83 +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 () => { - const [client] = await setupNetworks(chain) - - test('schedule task with wrong origin', async () => { - await scheduleBadOriginTest(client) - }) - - test('schedule named task with wrong origin', async () => { - await scheduleNamedBadOriginTest(client) - }) - - test('cancel scheduled task with wrong origin', async () => { - await cancelScheduledTaskBadOriginTest(client) - }) - - test('cancel named scheduled task with wrong origin', async () => { - await cancelNamedScheduledTaskBadOriginTest(client) - }) - - test('scheduling a call is possible, and the call itself succeeds', async () => { - await scheduledCallExecutes(client) - }) - - test('scheduling a named call is possible, and the call itself succeeds', async () => { - await scheduledNamedCallExecutes(client) - }) - - test('cancelling a scheduled task is possible', async () => { - await cancelScheduledTask(client) - }) - - test('cancelling a named scheduled task is possible', async () => { - await cancelScheduledNamedTask(client) - }) - - test('scheduling a task after a delay is possible', async () => { - await scheduleTaskAfterDelay(client) - }) - - test('scheduling a periodic task is possible', async () => { - await schedulePeriodicTask(client) - }) - - test('scheduling a named periodic task that executes multiple times', async () => { - await scheduleNamedPeriodicTask(client) - }) - - test('scheduling a named task after a delay is possible', async () => { - await scheduleNamedTaskAfterDelay(client) - }) - - test('scheduling an overweight call is possible, but the call itself fails', async () => { - await scheduledOverweightCallFails(client) - }) - - test('execution of scheduled preimage lookup call works', async () => { - await scheduleLookupCall(client) - }) - - test('scheduling a call using a preimage that gets removed', async () => { - await schedulePreimagedCall(client) - }) - - test('priority-based execution of weighted tasks works correctly', async () => { - await schedulePriorityWeightedTasks(client) - }) - - test('setting and canceling retry configuration for unnamed scheduled tasks', async () => { - await scheduleWithRetryConfig(client) - }) - - test('setting and canceling retry configuration for named scheduled tasks', async () => { - await scheduleNamedWithRetryConfig(client) - }) - }) +>(chain: Chain, testConfig: { testSuiteName: string }): RootTestTree { + 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), + }, + ], + } } diff --git a/packages/shared/src/staking.ts b/packages/shared/src/staking.ts index 94234ee12..de5d6c901 100644 --- a/packages/shared/src/staking.ts +++ b/packages/shared/src/staking.ts @@ -1,7 +1,7 @@ import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { type Client, type RootTestTree, setupNetworks } from '@e2e-test/shared' import type { SubmittableExtrinsic } from '@polkadot/api/types' import type { KeyringPair } from '@polkadot/keyring/types' @@ -10,7 +10,7 @@ import type { PalletStakingValidatorPrefs } 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 BN from 'bn.js' import { check, checkEvents, checkSystemEvents, scheduleInlineCallWithOrigin } from './helpers/index.js' @@ -1715,73 +1715,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], + } } diff --git a/packages/shared/src/treasury.ts b/packages/shared/src/treasury.ts index 9f97132f2..03252d3db 100644 --- a/packages/shared/src/treasury.ts +++ b/packages/shared/src/treasury.ts @@ -5,9 +5,10 @@ import { setupNetworks } from '@e2e-test/shared' import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, XcmVersionedLocation } from '@polkadot/types/lookup' -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' 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. @@ -129,7 +130,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, @@ -137,10 +138,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), + }, + ], + } } diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index f88cd2960..1e1ad8f24 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -4,6 +4,10 @@ import type { Chain } from '@e2e-test/networks' import type { ApiPromise, WsProvider } from '@polkadot/api' +import { afterAll, beforeAll, describe, test } from 'vitest' + +import { match } from 'ts-pattern' + export type Prettify = { [K in keyof T]: T[K] } & {} @@ -29,3 +33,77 @@ export type Client< teardown(): Promise pause(): Promise } + +export 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 +} + +export type DescribeNode = { + kind: 'describe' + label: string + 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 RootTestTree = DescribeNode + +/** + * 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: TestTreeChild = { … } + * 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(testTree: TestTreeChild) { + match(testTree) + .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(registerTestTree) + }) + }) + .exhaustive() +} diff --git a/packages/shared/src/vesting.ts b/packages/shared/src/vesting.ts index c5fd80d2c..6c129924d 100644 --- a/packages/shared/src/vesting.ts +++ b/packages/shared/src/vesting.ts @@ -1,12 +1,13 @@ import { sendTransaction } from '@acala-network/chopsticks-testing' import { type Chain, defaultAccountsSr25519 } from '@e2e-test/networks' -import { type Client, setupNetworks } from '@e2e-test/shared' +import { type RootTestTree, setupNetworks } from '@e2e-test/shared' +import type { DispatchError } from '@polkadot/types/interfaces' import type { FrameSystemEventRecord } from '@polkadot/types/lookup' import { encodeAddress } from '@polkadot/util-crypto' -import { assert, describe, expect, test } from 'vitest' +import { assert, expect } from 'vitest' import { check, checkEvents, scheduleInlineCallWithOrigin } from './helpers/index.js' @@ -22,7 +23,9 @@ import { check, checkEvents, scheduleInlineCallWithOrigin } from './helpers/inde 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 @@ -165,7 +168,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 @@ -213,34 +218,17 @@ 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 - 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() @@ -261,7 +249,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 @@ -352,7 +342,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 @@ -373,22 +365,26 @@ 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, - }) + } + + // Perform vested transfers to Eve, to create two vesting schedules. + + 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() @@ -397,15 +393,19 @@ async function testMergeVestingSchedules< await client.dev.newBlock() - currBlockNumber += 1 - await checkEvents(vestingEvents1, 'vesting').toMatchSnapshot('vesting events 1') await checkEvents(vestingEvents2, 'vesting').toMatchSnapshot('vesting events 2') + currBlockNumber += 1 + + // 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)) @@ -435,38 +435,141 @@ async function testMergeVestingSchedules< ) } -export function vestingE2ETests< +async function testVestedTransferFiltered< 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(client, testConfig.addressEncoding) - }) - - test('signed-origin forced removal of vesting schedule fails', async () => { - await testForceRemoveVestedSchedule(client) - }) - - test('forced vested transfer and forced removal of vesting schedule work', async () => { - await testForceVestedTransferAndRemoval(client) - }) - - test('test merger of two vesting schedules', async () => { - await testMergeVestingSchedules(client) - }) - } +>(chain: Chain) { + const [client] = await setupNetworks(chain) + + const alice = defaultAccountsSr25519.alice + const bob = defaultAccountsSr25519.bob - test('signed-origin force-vested transfer fails', async () => { - await testForceVestedTransfer(client) - }) + 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 sendTransaction(tx.signAsync(alice)) + + 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)) +} + +/// 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) + + 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) + 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 relayVestingE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string; addressEncoding: number }): RootTestTree { + 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: 'signed-origin force-vested transfer fails', + testFn: () => testForceVestedTransfer(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: 'merging vesting schedules when none exist fails', + testFn: () => testMergeSchedulesNoSchedule(chain), + }, + ], + } +} + +export function assetHubVestingE2ETests< + TCustom extends Record | undefined, + TInitStorages extends Record> | undefined, +>(chain: Chain, testConfig: { testSuiteName: string }): RootTestTree { + return { + kind: 'describe', + label: testConfig.testSuiteName, + children: [ + { + kind: 'test', + label: 'vested transfer is filtered', + testFn: () => testVestedTransferFiltered(chain), + }, + { + kind: 'test', + 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), + }, + ], + } }