mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
Update & revamp e2e tests (#2614)
* update & revamp e2e tests * add seeds as comments * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -11,8 +11,9 @@ settings:
|
||||
paraId: &pp_id 2000
|
||||
variables:
|
||||
common:
|
||||
xcm_version: &xcm_version '3'
|
||||
xcm_version: &xcm_version 3
|
||||
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 200000}
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
@@ -56,13 +57,9 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: xcmPallet.SupportedVersionChanged
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 0, interior: { X1: { Parachain: *ap_id }}}, *xcm_version ]
|
||||
- extrinsics: # Relay Chain sets supported version for Penpal Parachain
|
||||
- chain: *relay_chain
|
||||
sudo: true
|
||||
@@ -82,13 +79,9 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: xcmPallet.SupportedVersionChanged
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 0, interior: { X1: { Parachain: *pp_id }}}, *xcm_version ]
|
||||
- extrinsics: # Asset Parachain sets supported version for Relay Chain through it
|
||||
- chain: *relay_chain
|
||||
signer: *rc_signer
|
||||
@@ -101,11 +94,11 @@ tests:
|
||||
v3: [ #message
|
||||
{
|
||||
UnpaidExecution: {
|
||||
weightLimit: {
|
||||
limited: {
|
||||
refTime: 2200000000,
|
||||
proofSize: 200000
|
||||
}
|
||||
weightLimit: {
|
||||
limited: {
|
||||
refTime: 2200000000,
|
||||
proofSize: 200000
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -121,15 +114,17 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: xcmPallet.Sent
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '1,019,210,000', proofSize: '200,000' }}
|
||||
}
|
||||
- name: polkadotXcm.SupportedVersionChanged
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 1, interior: Here }, *xcm_version ]
|
||||
- extrinsics: # Penpal Parachain sets supported version for Relay Chain
|
||||
- chain: *penpal_parachain
|
||||
signer: *pp_signer
|
||||
@@ -145,10 +140,6 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: polkadotXcm.SupportedVersionChanged
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 1, interior: Here }, *xcm_version ]
|
||||
|
||||
@@ -7,20 +7,23 @@ settings:
|
||||
wsPort: 9910
|
||||
paraId: &ap_id 1000
|
||||
variables:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}}
|
||||
amount: &amount 1000000000000
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
require_weight_at_most: &rc_weight_at_most {refTime: 1000000000, proofSize: 200000}
|
||||
assets_parachain_account:
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
asset_id: &asset_id 1
|
||||
asset_min_balance: &asset_ed 1000
|
||||
common:
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf { v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}}
|
||||
amount: &amount 1000000000000
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
require_weight_at_most: &rc_weight_at_most { refTime: 1000000000, proofSize: 200000 }
|
||||
assets_parachain_account:
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
asset_id: &asset_id 1
|
||||
asset_min_balance: &asset_ed 1000
|
||||
decodedCalls:
|
||||
force_create_asset:
|
||||
chain: *assets_parachain
|
||||
@@ -69,16 +72,14 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: xcmPallet.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '764,772,000', proofSize: 0 }}]
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"162,379,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
|
||||
}
|
||||
- queries:
|
||||
balance_rc_sender_after:
|
||||
chain: *relay_chain
|
||||
@@ -151,11 +152,10 @@ tests:
|
||||
- name: xcmPallet.Sent
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"1,014,103,000","proofSize":"200,000"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}
|
||||
}
|
||||
- queries:
|
||||
forced_created_asset:
|
||||
chain: *assets_parachain
|
||||
@@ -196,9 +196,7 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: system.ExtrinsicFailed
|
||||
attributes:
|
||||
- type: SpRuntimeDispatchError
|
||||
value: BadOrigin
|
||||
result: { dispatchError: BadOrigin }
|
||||
|
||||
- name: xcmPallet.limitedReserveTransferAssets
|
||||
before: *before_get_balances
|
||||
@@ -219,17 +217,19 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: xcmPallet.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"750,645,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '750,645,000', proofSize: 0 }}]
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Incomplete
|
||||
value: [{"refTime":"1,000,000,000","proofSize":"0"},"UntrustedReserveLocation"]
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: {
|
||||
Incomplete: [
|
||||
{ refTime: '1,000,000,000', proofSize: 0 },
|
||||
UntrustedReserveLocation
|
||||
]
|
||||
}
|
||||
}
|
||||
- queries:
|
||||
balance_rc_sender_after:
|
||||
chain: *relay_chain
|
||||
|
||||
@@ -10,22 +10,24 @@ settings:
|
||||
common:
|
||||
amount: &amount 1000000000000
|
||||
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 0}
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F #Alice
|
||||
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
assets_parachain_account:
|
||||
signer: &ap_signer //Alice
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
|
||||
assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' #Alice
|
||||
relay_chain_beneficiary: &rc_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *rc_acc }}}}}
|
||||
ksm: &ap_ksm { concrete: { parents: 1, interior: { here: true }}}
|
||||
ksm_fungible: &ap_ksm_fungible { id: *ap_ksm, fun: { fungible: *amount }}
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F #Alice
|
||||
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
assets_parachain_account:
|
||||
signer: &ap_signer //Alice
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
|
||||
assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' #Alice
|
||||
relay_chain_beneficiary: &rc_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *rc_acc }}}}}
|
||||
ksm: &ap_ksm { concrete: { parents: 1, interior: { here: true }}}
|
||||
ksm_fungible: &ap_ksm_fungible { id: *ap_ksm, fun: { fungible: *amount }}
|
||||
decodedCalls:
|
||||
system_remark:
|
||||
chain: *relay_chain
|
||||
@@ -54,18 +56,14 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: xcmPallet.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"761,173,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '761,173,000', proofSize: 0 }}]
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"162,379,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
|
||||
}
|
||||
|
||||
- name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver
|
||||
actions:
|
||||
@@ -97,18 +95,12 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"539,494,000","proofSize":"7,133"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '539,494,000', proofSize: '7,133' }}]
|
||||
- name: ump.ExecutedUpward
|
||||
chain: *relay_chain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"298,716,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '298,716,000', proofSize: 0 }}]
|
||||
- queries:
|
||||
balance_ap_sender_after:
|
||||
chain: *assets_parachain
|
||||
@@ -178,9 +170,7 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: system.ExtrinsicFailed
|
||||
attributes:
|
||||
- type: SpRuntimeDispatchError
|
||||
value: BadOrigin
|
||||
result: { dispatchError: BadOrigin }
|
||||
|
||||
- name: polkadotXcm.limitedReserveTransferAssets
|
||||
its:
|
||||
@@ -200,7 +190,4 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Error
|
||||
value: Barrier
|
||||
result: [{ Error: Barrier }]
|
||||
|
||||
+20
-32
@@ -3,23 +3,22 @@ settings:
|
||||
chains:
|
||||
relay_chain: &relay_chain
|
||||
wsPort: 9900
|
||||
assets_parachain: &assets_parachain
|
||||
assets_parachain:
|
||||
wsPort: 9910
|
||||
paraId: &ap_id 1000
|
||||
penpal_parachain: &penpal_parachain
|
||||
penpal_parachain:
|
||||
wsPort: 9920
|
||||
paraId: &pp_id 2000
|
||||
variables:
|
||||
common:
|
||||
amount: &amount 2000000000000
|
||||
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 20000}
|
||||
hrmp_channels:
|
||||
proposed_max_capacity: &max_capacity 8
|
||||
proposed_max_message_size: &max_message_size 8192
|
||||
channel: &channel {
|
||||
maxCapacity: 8,
|
||||
maxTotalSize: 8192,
|
||||
maxMessageSize: 8192,
|
||||
maxCapacity: *max_capacity,
|
||||
maxTotalSize: *max_message_size,
|
||||
maxMessageSize: *max_message_size,
|
||||
msgCount: 0,
|
||||
totalSize: 0,
|
||||
mqcHead: null,
|
||||
@@ -29,17 +28,10 @@ settings:
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
assets_parachain_account:
|
||||
sovereign_account: &ap_sovereign F7fq1jSNVTPfJmaHaXCMtatT1EZefCUsa7rRiQVNR5efcah
|
||||
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
|
||||
penpal_parachain:
|
||||
sovereign_account: &pp_sovereign F7fq1jMZkfuCuoMTyiEVAP2DMpMt18WopgBqTJznLihLNbZ
|
||||
signer: &pp_signer //Alice
|
||||
|
||||
tests:
|
||||
- name: HRMP
|
||||
@@ -72,7 +64,7 @@ tests:
|
||||
events:
|
||||
- name: balances.Transfer
|
||||
describes:
|
||||
- name: hrmp.hrmpInitOpenChannel (Penpal Parachain → Assets Parachain)
|
||||
- name: hrmp.forceOpenHrmpChannel (Penpal Parachain → Assets Parachain)
|
||||
its:
|
||||
- name: Open Penpal Parachain to Assets Parachain
|
||||
actions:
|
||||
@@ -83,18 +75,17 @@ tests:
|
||||
pallet: hrmp
|
||||
call: forceOpenHrmpChannel
|
||||
args: [
|
||||
2000,
|
||||
1000,
|
||||
8,
|
||||
8192
|
||||
*pp_id,
|
||||
*ap_id,
|
||||
*max_capacity,
|
||||
*max_message_size
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: hrmp.HrmpChannelForceOpened
|
||||
- name: hrmp.hrmpInitOpenChannel (Assets Parachain → PenPal Parachain)
|
||||
|
||||
- name: hrmp.forceOpenHrmpChannel (Assets Parachain → PenPal Parachain)
|
||||
its:
|
||||
- name: Open Assets Parachain to PenPal Parachain
|
||||
actions:
|
||||
@@ -105,17 +96,16 @@ tests:
|
||||
pallet: hrmp
|
||||
call: forceOpenHrmpChannel
|
||||
args: [
|
||||
1000,
|
||||
2000,
|
||||
8,
|
||||
8192
|
||||
*ap_id,
|
||||
*pp_id,
|
||||
*max_capacity,
|
||||
*max_message_size
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: hrmp.HrmpChannelForceOpened
|
||||
|
||||
- name: hrmp.forceProcessHrmpOpen (make sure all the channels are open)
|
||||
its:
|
||||
- name: Make sure all the pending channels are open
|
||||
@@ -129,6 +119,4 @@ tests:
|
||||
args: [ 2 ]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
@@ -17,6 +17,7 @@ settings:
|
||||
amount: &amount 100000000000
|
||||
require_weight_at_most: &weight_at_most {refTime: 1200000000, proofSize: 20000}
|
||||
amount_to_send: &amount_to_send 500000000000
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
@@ -83,7 +84,7 @@ tests:
|
||||
}
|
||||
},
|
||||
{
|
||||
SetTopic: "0x0123456789012345678901234567891201234567890123456789012345678912"
|
||||
SetTopic: '0x0123456789012345678901234567891201234567890123456789012345678912'
|
||||
},
|
||||
{
|
||||
Transact: {
|
||||
@@ -99,11 +100,10 @@ tests:
|
||||
- name: xcmPallet.Sent
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"1,216,703,000","proofSize":"20,000"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}
|
||||
}
|
||||
- queries:
|
||||
forced_created_asset:
|
||||
chain: *assets_parachain
|
||||
@@ -128,6 +128,7 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: assets.Issued
|
||||
result: { assetId: *asset_id, owner: *ap_wallet, amount: *mint_amount }
|
||||
|
||||
its:
|
||||
- name: Assets Parachain should be able to reserve transfer an Asset to Penpal Parachain
|
||||
@@ -180,19 +181,15 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"679,150,000","proofSize":"6,196"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
|
||||
- name: assets.Transferred
|
||||
attributes:
|
||||
- type: AccountId32
|
||||
value: *pp_sovereign_sibl
|
||||
- name: assets.Transferred
|
||||
attributes:
|
||||
- type: u128
|
||||
value: *amount_to_send
|
||||
result: {
|
||||
assetId: *asset_id,
|
||||
from: *ap_wallet,
|
||||
to: *pp_sovereign_sibl,
|
||||
amount: *amount_to_send
|
||||
}
|
||||
|
||||
- name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain
|
||||
its:
|
||||
@@ -227,19 +224,13 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"679,150,000","proofSize":"6,196"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
|
||||
- name: balances.Endowed
|
||||
attributes:
|
||||
- type: AccountId32
|
||||
value: *pp_sovereign_sibl
|
||||
- name: balances.Endowed
|
||||
attributes:
|
||||
- type: u128
|
||||
value: *amount
|
||||
result: {
|
||||
account: *pp_sovereign_sibl,
|
||||
freeBalance: *amount
|
||||
}
|
||||
|
||||
- name: polkadotXcm.send( assets.forceCreateAsset ) | Penpal Parachain -> Assets Parachain
|
||||
before:
|
||||
@@ -320,20 +311,14 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: polkadotXcm.Sent
|
||||
- name: assets.Burned
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: AccountId32
|
||||
value: *pp_sovereign_sibl
|
||||
result: { assetId: *asset_id, owner: *pp_sovereign_sibl }
|
||||
- name: assets.Issued
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *asset_id
|
||||
result: { assetId: *asset_id }
|
||||
- queries:
|
||||
assets_balance_pp_sovereign_after:
|
||||
chain: *assets_parachain
|
||||
@@ -398,6 +383,8 @@ tests:
|
||||
events:
|
||||
- name: xcmpQueue.Fail
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsError
|
||||
value: FailedToTransactAsset
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
error: FailedToTransactAsset,
|
||||
weight: { refTime: '152,426,000', proofSize: '3,593' }
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ chain = "kusama-local"
|
||||
name = "alice"
|
||||
ws_port = 9900
|
||||
validator = true
|
||||
args = ["--state-cache-size=0"]
|
||||
|
||||
[[relaychain.nodes]]
|
||||
name = "bob"
|
||||
@@ -32,7 +33,7 @@ cumulus_based = true
|
||||
name = "collator1"
|
||||
ws_port = 9910
|
||||
command = "./bin/polkadot-parachain"
|
||||
args = [ "-lxcm=trace" ]
|
||||
args = [ "-lxcm=trace", "--state-cache-size=0" ]
|
||||
|
||||
[[parachains.collators]]
|
||||
name = "collator2"
|
||||
@@ -49,7 +50,7 @@ cumulus_based = true
|
||||
name = "collator3"
|
||||
ws_port = 9920
|
||||
command = "./bin/polkadot-parachain"
|
||||
args = [ "-lxcm=trace" ]
|
||||
args = [ "-lxcm=trace", "--state-cache-size=0" ]
|
||||
|
||||
[[parachains.collators]]
|
||||
name = "collator4"
|
||||
|
||||
@@ -13,6 +13,7 @@ settings:
|
||||
common:
|
||||
xcm_version: &xcm_version '3'
|
||||
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 200000}
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
@@ -56,13 +57,9 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: xcmPallet.SupportedVersionChanged
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 0, interior: { X1: { Parachain: *ap_id }}}, *xcm_version ]
|
||||
- extrinsics: # Relay Chain sets supported version for Penpal Parachain
|
||||
- chain: *relay_chain
|
||||
sudo: true
|
||||
@@ -82,13 +79,9 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: xcmPallet.SupportedVersionChanged
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 0, interior: { X1: { Parachain: *pp_id }}}, *xcm_version ]
|
||||
- extrinsics: # Asset Parachain sets supported version for Relay Chain through it
|
||||
- chain: *relay_chain
|
||||
signer: *rc_signer
|
||||
@@ -121,15 +114,17 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: xcmPallet.Sent
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '1,019,210,000', proofSize: '200,000' }}
|
||||
}
|
||||
- name: polkadotXcm.SupportedVersionChanged
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 1, interior: Here }, *xcm_version ]
|
||||
- extrinsics: # Penpal Parachain sets supported version for Relay Chain
|
||||
- chain: *penpal_parachain
|
||||
signer: *pp_signer
|
||||
@@ -145,10 +140,6 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: polkadotXcm.SupportedVersionChanged
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *xcm_version
|
||||
result: [{ parents: 1, interior: Here }, *xcm_version ]
|
||||
|
||||
@@ -7,20 +7,23 @@ settings:
|
||||
wsPort: 9810
|
||||
paraId: &ap_id 1000
|
||||
variables:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}}
|
||||
amount: &amount 1000000000000
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
require_weight_at_most: &rc_weight_at_most {refTime: 1000000000, proofSize: 200000}
|
||||
assets_parachain_account:
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
asset_id: &asset_id 1
|
||||
asset_min_balance: &asset_ed 1000
|
||||
common:
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}}
|
||||
amount: &amount 1000000000000
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
require_weight_at_most: &rc_weight_at_most {refTime: 1000000000, proofSize: 200000}
|
||||
assets_parachain_account:
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
asset_id: &asset_id 1
|
||||
asset_min_balance: &asset_ed 1000
|
||||
decodedCalls:
|
||||
force_create_asset:
|
||||
chain: *assets_parachain
|
||||
@@ -69,16 +72,14 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: xcmPallet.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"162,909,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
|
||||
}
|
||||
- queries:
|
||||
balance_rc_sender_after:
|
||||
chain: *relay_chain
|
||||
@@ -151,11 +152,10 @@ tests:
|
||||
- name: xcmPallet.Sent
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"1,015,234,000","proofSize":"200,000"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}
|
||||
}
|
||||
- queries:
|
||||
forced_created_asset:
|
||||
chain: *assets_parachain
|
||||
@@ -196,9 +196,7 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: system.ExtrinsicFailed
|
||||
attributes:
|
||||
- type: SpRuntimeDispatchError
|
||||
value: BadOrigin
|
||||
result: { dispatchError: BadOrigin }
|
||||
|
||||
- name: xcmPallet.limitedReserveTransferAssets
|
||||
before: *before_get_balances
|
||||
@@ -219,16 +217,19 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: xcmPallet.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
value: {"refTime":"2,000,000,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '2,000,000,000', proofSize: 0 }}]
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Incomplete
|
||||
value: [{"refTime":"1,000,000,000","proofSize":"0"},"UntrustedReserveLocation"]
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: {
|
||||
Incomplete: [
|
||||
{ refTime: '1,000,000,000', proofSize: 0 },
|
||||
UntrustedReserveLocation
|
||||
]
|
||||
}
|
||||
}
|
||||
- queries:
|
||||
balance_rc_sender_after:
|
||||
chain: *relay_chain
|
||||
|
||||
@@ -10,22 +10,24 @@ settings:
|
||||
common:
|
||||
amount: &amount 1000000000000
|
||||
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 0}
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
assets_parachain_account:
|
||||
signer: &ap_signer //Alice
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
|
||||
assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
relay_chain_beneficiary: &rc_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *rc_acc }}}}}
|
||||
ksm: &ap_ksm { concrete: { parents: 1, interior: { here: true }}}
|
||||
ksm_fungible: &ap_ksm_fungible { id: *ap_ksm, fun: { fungible: *amount }}
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
|
||||
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
assets_parachain_account:
|
||||
signer: &ap_signer //Alice
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
|
||||
assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
|
||||
relay_chain_beneficiary: &rc_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *rc_acc }}}}}
|
||||
ksm: &ap_ksm { concrete: { parents: 1, interior: { here: true }}}
|
||||
ksm_fungible: &ap_ksm_fungible { id: *ap_ksm, fun: { fungible: *amount }}
|
||||
decodedCalls:
|
||||
system_remark:
|
||||
chain: *relay_chain
|
||||
@@ -54,17 +56,14 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: xcmPallet.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
value: {"refTime":"3,000,000,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"162,909,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
|
||||
}
|
||||
|
||||
- name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver
|
||||
actions:
|
||||
@@ -97,17 +96,12 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"533,283,000","proofSize":"7,096"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '533,283,000', proofSize: '7,096' }}]
|
||||
- name: ump.ExecutedUpward
|
||||
chain: *relay_chain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
value: {"refTime":"4,000,000,000","proofSize":"0"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '4,000,000,000', proofSize: 0 }}]
|
||||
- queries:
|
||||
balance_ap_sender_after:
|
||||
chain: *assets_parachain
|
||||
@@ -199,7 +193,4 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Error
|
||||
value: Barrier
|
||||
result: [{ Error: Barrier }]
|
||||
|
||||
+16
-28
@@ -3,23 +3,22 @@ settings:
|
||||
chains:
|
||||
relay_chain: &relay_chain
|
||||
wsPort: 9800
|
||||
assets_parachain: &assets_parachain
|
||||
assets_parachain:
|
||||
wsPort: 9810
|
||||
paraId: &ap_id 1000
|
||||
penpal_parachain: &penpal_parachain
|
||||
penpal_parachain:
|
||||
wsPort: 9820
|
||||
paraId: &pp_id 2000
|
||||
variables:
|
||||
common:
|
||||
amount: &amount 2000000000000
|
||||
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 20000}
|
||||
hrmp_channels:
|
||||
proposed_max_capacity: &max_capacity 8
|
||||
proposed_max_message_size: &max_message_size 8192
|
||||
channel: &channel {
|
||||
maxCapacity: 8,
|
||||
maxTotalSize: 8192,
|
||||
maxMessageSize: 8192,
|
||||
maxCapacity: *max_capacity,
|
||||
maxTotalSize: *max_message_size,
|
||||
maxMessageSize: *max_message_size,
|
||||
msgCount: 0,
|
||||
totalSize: 0,
|
||||
mqcHead: null,
|
||||
@@ -29,15 +28,10 @@ settings:
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
|
||||
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
|
||||
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
|
||||
assets_parachain_account:
|
||||
sovereign_account: &ap_sovereign 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ
|
||||
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
|
||||
penpal_parachain:
|
||||
sovereign_account: &pp_sovereign F7fq1jMZkfuCuoMTyiEVAP2DMpMt18WopgBqTJznLihLNbZ
|
||||
signer: &pp_signer //Alice
|
||||
|
||||
tests:
|
||||
- name: HRMP
|
||||
@@ -81,16 +75,14 @@ tests:
|
||||
pallet: hrmp
|
||||
call: forceOpenHrmpChannel
|
||||
args: [
|
||||
2000,
|
||||
1000,
|
||||
8,
|
||||
8192
|
||||
*pp_id,
|
||||
*ap_id,
|
||||
*max_capacity,
|
||||
*max_message_size
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: hrmp.HrmpChannelForceOpened
|
||||
- name: hrmp.hrmpInitOpenChannel (Assets Parachain → PenPal Parachain)
|
||||
its:
|
||||
@@ -103,16 +95,14 @@ tests:
|
||||
pallet: hrmp
|
||||
call: forceOpenHrmpChannel
|
||||
args: [
|
||||
1000,
|
||||
2000,
|
||||
8,
|
||||
8192
|
||||
*ap_id,
|
||||
*pp_id,
|
||||
*max_capacity,
|
||||
*max_message_size
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: hrmp.HrmpChannelForceOpened
|
||||
- name: hrmp.forceProcessHrmpOpen (make sure all the channels are open)
|
||||
its:
|
||||
@@ -127,6 +117,4 @@ tests:
|
||||
args: [ 2 ]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
# Note: This tests depends on the 3_hrmp-open-channels.yml for opening channels, otherwise teleports aren't going to
|
||||
# work.
|
||||
settings:
|
||||
chains:
|
||||
relay_chain: &relay_chain
|
||||
@@ -15,6 +17,7 @@ settings:
|
||||
amount: &amount 1000000000000
|
||||
require_weight_at_most: &weight_at_most {refTime: 1200000000, proofSize: 20000}
|
||||
amount_to_send: &amount_to_send 500000000000
|
||||
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
|
||||
chains:
|
||||
relay_chain:
|
||||
signer: &rc_signer //Alice
|
||||
@@ -22,7 +25,7 @@ settings:
|
||||
assets_parachain_dest_routed: &ap_dest_routed { v3: { parents: 1, interior: { x1: { parachain: *ap_id } }}}
|
||||
assets_parachain_account:
|
||||
signer: &ap_signer //Alice
|
||||
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
|
||||
wallet: &ap_wallet 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5
|
||||
asset_id: &asset_id 2
|
||||
assets_pallet_id: &assets_pallet_id 50
|
||||
asset_min_balance: &asset_ed 1000
|
||||
@@ -81,7 +84,7 @@ tests:
|
||||
}
|
||||
},
|
||||
{
|
||||
SetTopic: "0x0123456789012345678901234567891201234567890123456789012345678912"
|
||||
SetTopic: '0x0123456789012345678901234567891201234567890123456789012345678912'
|
||||
},
|
||||
{
|
||||
Transact: {
|
||||
@@ -97,11 +100,10 @@ tests:
|
||||
- name: xcmPallet.Sent
|
||||
- name: dmpQueue.ExecutedDownward
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"1,218,405,000","proofSize":"20,000"}
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}
|
||||
}
|
||||
- queries:
|
||||
forced_created_asset:
|
||||
chain: *assets_parachain
|
||||
@@ -126,6 +128,7 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: assets.Issued
|
||||
result: { assetId: *asset_id, owner: *ap_wallet, amount: *mint_amount }
|
||||
|
||||
its:
|
||||
- name: Assets Parachain should be able to reserve transfer an Asset to Penpal Parachain
|
||||
@@ -178,19 +181,15 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"673,627,000","proofSize":"6,196"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '673,627,000', proofSize: '6,196' }}]
|
||||
- name: assets.Transferred
|
||||
attributes:
|
||||
- type: AccountId32
|
||||
value: *pp_sovereign_sibl
|
||||
- name: assets.Transferred
|
||||
attributes:
|
||||
- type: u128
|
||||
value: *amount_to_send
|
||||
result: {
|
||||
assetId: *asset_id,
|
||||
from: *ap_wallet,
|
||||
to: *pp_sovereign_sibl,
|
||||
amount: *amount_to_send
|
||||
}
|
||||
|
||||
- name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain
|
||||
its:
|
||||
@@ -225,19 +224,13 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: polkadotXcm.Attempted
|
||||
attributes:
|
||||
- type: XcmV3TraitsOutcome
|
||||
xcmOutcome: Complete
|
||||
threshold: [10, 10]
|
||||
value: {"refTime":"673,627,000","proofSize":"6,196"}
|
||||
threshold: *weight_threshold
|
||||
result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
|
||||
- name: balances.Endowed
|
||||
attributes:
|
||||
- type: AccountId32
|
||||
value: *pp_sovereign_sibl
|
||||
- name: balances.Endowed
|
||||
attributes:
|
||||
- type: u128
|
||||
value: *amount
|
||||
result: {
|
||||
account: *pp_sovereign_sibl,
|
||||
freeBalance: *amount
|
||||
}
|
||||
|
||||
- name: polkadotXcm.send( assets.forceCreateAsset ) | Penpal Parachain -> Assets Parachain
|
||||
before:
|
||||
@@ -318,20 +311,14 @@ tests:
|
||||
]
|
||||
events:
|
||||
- name: sudo.Sudid
|
||||
attributes:
|
||||
- type: Result<Null, SpRuntimeDispatchError>
|
||||
value: Ok
|
||||
result: { sudoResult: Ok }
|
||||
- name: polkadotXcm.Sent
|
||||
- name: assets.Burned
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: AccountId32
|
||||
value: *pp_sovereign_sibl
|
||||
result: { assetId: *asset_id, owner: *pp_sovereign_sibl }
|
||||
- name: assets.Issued
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: u32
|
||||
value: *asset_id
|
||||
result: { assetId: *asset_id }
|
||||
- queries:
|
||||
assets_balance_pp_sovereign_after:
|
||||
chain: *assets_parachain
|
||||
@@ -396,6 +383,8 @@ tests:
|
||||
events:
|
||||
- name: xcmpQueue.Fail
|
||||
chain: *assets_parachain
|
||||
attributes:
|
||||
- type: XcmV3TraitsError
|
||||
value: FailedToTransactAsset
|
||||
threshold: *weight_threshold
|
||||
result: {
|
||||
error: FailedToTransactAsset,
|
||||
weight: { refTime: '152,426,000', proofSize: '3,593' }
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ chain = "polkadot-local"
|
||||
name = "alice"
|
||||
ws_port = 9800
|
||||
validator = true
|
||||
args = ["--state-cache-size=0"]
|
||||
|
||||
[[relaychain.nodes]]
|
||||
name = "bob"
|
||||
@@ -32,7 +33,7 @@ cumulus_based = true
|
||||
name = "collator1"
|
||||
ws_port = 9810
|
||||
command = "./bin/polkadot-parachain"
|
||||
args = [ "-lxcm=trace" ]
|
||||
args = [ "-lxcm=trace", "--state-cache-size=0" ]
|
||||
|
||||
[[parachains.collators]]
|
||||
name = "collator2"
|
||||
@@ -50,7 +51,7 @@ cumulus_based = true
|
||||
name = "collator3"
|
||||
ws_port = 9820
|
||||
command = "./bin/polkadot-parachain"
|
||||
args = [ "-lxcm=trace" ]
|
||||
args = [ "-lxcm=trace", "--state-cache-size=0" ]
|
||||
|
||||
[[parachains.collators]]
|
||||
name = "collator4"
|
||||
|
||||
Reference in New Issue
Block a user