Collectives integration tests xcm v3 (#2221)

* Collectives integration tests xcm v3

* remove comment

* review fixs

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Muharem Ismailov
2023-05-16 17:03:26 +02:00
committed by GitHub
parent 47858e90e4
commit 90de06876a
5 changed files with 129 additions and 117 deletions
@@ -7,7 +7,7 @@ settings:
wsPort: 9710
paraId: &cp_id 1001
variables:
xcm_version: &xcm_version '2'
xcm_version: &xcm_version '3'
chains:
accounts:
alice_signer: &alice_signer //Alice
@@ -62,13 +62,26 @@ tests:
pallet: xcmPallet
call: send
args: [
{ v1: { 0, interior: { x1: { parachain: *cp_id }}}}, # destination
{ v3: { 0, interior: { x1: { parachain: *cp_id }}}}, # destination
{
v2: [ # message
v3: [ # message
{
UnpaidExecution: {
weightLimit: {
limited: {
refTime: 2200000000, # 2_200_000_000
proofSize: 200000, # 200_000
},
}
}
},
{
Transact: {
originType: Superuser,
requireWeightAtMost: 1000000000, # 1_000_000_000
originKind: Superuser,
requireWeightAtMost: {
refTime: 200000000, # 200_000_000
proofSize: 0,
},
call: $ap_force_xcm_version
}
}
@@ -89,7 +102,5 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
attributes:
- type: XcmV2TraitsOutcome
- type: XcmV3TraitsOutcome
xcmOutcome: Complete
# the weight must be static
value: 2,000,000,000