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:
Ignacio Palacios
2023-05-24 20:07:22 +02:00
committed by GitHub
parent 7c884813c3
commit 5c91c70b78
21 changed files with 392 additions and 532 deletions
+10 -11
View File
@@ -89,14 +89,13 @@ impl BlockAnnounceData {
/// ///
/// This will not check the signature, for this you should use [`BlockAnnounceData::check_signature`]. /// This will not check the signature, for this you should use [`BlockAnnounceData::check_signature`].
fn validate(&self, encoded_header: Vec<u8>) -> Result<(), Validation> { fn validate(&self, encoded_header: Vec<u8>) -> Result<(), Validation> {
let candidate_hash = if let CompactStatement::Seconded(h) = let candidate_hash =
self.statement.unchecked_payload() if let CompactStatement::Seconded(h) = self.statement.unchecked_payload() {
{ h
h } else {
} else { tracing::debug!(target: LOG_TARGET, "`CompactStatement` isn't the candidate variant!",);
tracing::debug!(target: LOG_TARGET, "`CompactStatement` isn't the candidate variant!",); return Err(Validation::Failure { disconnect: true })
return Err(Validation::Failure { disconnect: true }) };
};
if *candidate_hash != self.receipt.hash() { if *candidate_hash != self.receipt.hash() {
tracing::debug!( tracing::debug!(
@@ -334,9 +333,9 @@ where
let relay_chain_is_syncing = relay_chain_interface let relay_chain_is_syncing = relay_chain_interface
.is_major_syncing() .is_major_syncing()
.await .await
.map_err(|e| { .map_err(
tracing::error!(target: LOG_TARGET, "Unable to determine sync status. {}", e) |e| tracing::error!(target: LOG_TARGET, "Unable to determine sync status. {}", e),
}) )
.unwrap_or(false); .unwrap_or(false);
if relay_chain_is_syncing { if relay_chain_is_syncing {
@@ -11,8 +11,9 @@ settings:
paraId: &pp_id 2000 paraId: &pp_id 2000
variables: variables:
common: common:
xcm_version: &xcm_version '3' xcm_version: &xcm_version 3
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 200000} require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 200000}
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
chains: chains:
relay_chain: relay_chain:
signer: &rc_signer //Alice signer: &rc_signer //Alice
@@ -56,13 +57,9 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.SupportedVersionChanged - name: xcmPallet.SupportedVersionChanged
attributes: result: [{ parents: 0, interior: { X1: { Parachain: *ap_id }}}, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Relay Chain sets supported version for Penpal Parachain - extrinsics: # Relay Chain sets supported version for Penpal Parachain
- chain: *relay_chain - chain: *relay_chain
sudo: true sudo: true
@@ -82,13 +79,9 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.SupportedVersionChanged - name: xcmPallet.SupportedVersionChanged
attributes: result: [{ parents: 0, interior: { X1: { Parachain: *pp_id }}}, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Asset Parachain sets supported version for Relay Chain through it - extrinsics: # Asset Parachain sets supported version for Relay Chain through it
- chain: *relay_chain - chain: *relay_chain
signer: *rc_signer signer: *rc_signer
@@ -101,11 +94,11 @@ tests:
v3: [ #message v3: [ #message
{ {
UnpaidExecution: { UnpaidExecution: {
weightLimit: { weightLimit: {
limited: { limited: {
refTime: 2200000000, refTime: 2200000000,
proofSize: 200000 proofSize: 200000
} }
} }
} }
}, },
@@ -121,15 +114,17 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - 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 - name: polkadotXcm.SupportedVersionChanged
chain: *assets_parachain chain: *assets_parachain
attributes: result: [{ parents: 1, interior: Here }, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Penpal Parachain sets supported version for Relay Chain - extrinsics: # Penpal Parachain sets supported version for Relay Chain
- chain: *penpal_parachain - chain: *penpal_parachain
signer: *pp_signer signer: *pp_signer
@@ -145,10 +140,6 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: polkadotXcm.SupportedVersionChanged - name: polkadotXcm.SupportedVersionChanged
attributes: result: [{ parents: 1, interior: Here }, *xcm_version ]
- type: u32
value: *xcm_version
@@ -7,20 +7,23 @@ settings:
wsPort: 9910 wsPort: 9910
paraId: &ap_id 1000 paraId: &ap_id 1000
variables: variables:
relay_chain: common:
signer: &rc_signer //Alice weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F chains:
assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}} relay_chain:
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' signer: &rc_signer //Alice
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}} wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}} assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}}
amount: &amount 1000000000000 assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }} assets_parachain_beneficiary: &ap_benf { v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
require_weight_at_most: &rc_weight_at_most {refTime: 1000000000, proofSize: 200000} ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}}
assets_parachain_account: amount: &amount 1000000000000
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
asset_id: &asset_id 1 require_weight_at_most: &rc_weight_at_most { refTime: 1000000000, proofSize: 200000 }
asset_min_balance: &asset_ed 1000 assets_parachain_account:
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
asset_id: &asset_id 1
asset_min_balance: &asset_ed 1000
decodedCalls: decodedCalls:
force_create_asset: force_create_asset:
chain: *assets_parachain chain: *assets_parachain
@@ -69,16 +72,14 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '764,772,000', proofSize: 0 }}]
xcmOutcome: Complete
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
threshold: [10, 10] }
value: {"refTime":"162,379,000","proofSize":"0"}
- queries: - queries:
balance_rc_sender_after: balance_rc_sender_after:
chain: *relay_chain chain: *relay_chain
@@ -151,11 +152,10 @@ tests:
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}
threshold: [10, 10] }
value: {"refTime":"1,014,103,000","proofSize":"200,000"}
- queries: - queries:
forced_created_asset: forced_created_asset:
chain: *assets_parachain chain: *assets_parachain
@@ -196,9 +196,7 @@ tests:
] ]
events: events:
- name: system.ExtrinsicFailed - name: system.ExtrinsicFailed
attributes: result: { dispatchError: BadOrigin }
- type: SpRuntimeDispatchError
value: BadOrigin
- name: xcmPallet.limitedReserveTransferAssets - name: xcmPallet.limitedReserveTransferAssets
before: *before_get_balances before: *before_get_balances
@@ -219,17 +217,19 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '750,645,000', proofSize: 0 }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"750,645,000","proofSize":"0"}
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Incomplete outcome: {
value: [{"refTime":"1,000,000,000","proofSize":"0"},"UntrustedReserveLocation"] Incomplete: [
{ refTime: '1,000,000,000', proofSize: 0 },
UntrustedReserveLocation
]
}
}
- queries: - queries:
balance_rc_sender_after: balance_rc_sender_after:
chain: *relay_chain chain: *relay_chain
@@ -10,22 +10,24 @@ settings:
common: common:
amount: &amount 1000000000000 amount: &amount 1000000000000
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 0} require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 0}
relay_chain: weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
signer: &rc_signer //Alice chains:
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F #Alice relay_chain:
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}} signer: &rc_signer //Alice
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F #Alice
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}} assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}} assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }} assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
assets_parachain_account: ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
signer: &ap_signer //Alice ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F assets_parachain_account:
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}} signer: &ap_signer //Alice
assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' #Alice wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
relay_chain_beneficiary: &rc_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *rc_acc }}}}} relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
ksm: &ap_ksm { concrete: { parents: 1, interior: { here: true }}} assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' #Alice
ksm_fungible: &ap_ksm_fungible { id: *ap_ksm, fun: { fungible: *amount }} 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: decodedCalls:
system_remark: system_remark:
chain: *relay_chain chain: *relay_chain
@@ -54,18 +56,14 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '761,173,000', proofSize: 0 }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"761,173,000","proofSize":"0"}
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
threshold: [10, 10] }
value: {"refTime":"162,379,000","proofSize":"0"}
- name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver - name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver
actions: actions:
@@ -97,18 +95,12 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '539,494,000', proofSize: '7,133' }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"539,494,000","proofSize":"7,133"}
- name: ump.ExecutedUpward - name: ump.ExecutedUpward
chain: *relay_chain chain: *relay_chain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '298,716,000', proofSize: 0 }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"298,716,000","proofSize":"0"}
- queries: - queries:
balance_ap_sender_after: balance_ap_sender_after:
chain: *assets_parachain chain: *assets_parachain
@@ -178,9 +170,7 @@ tests:
] ]
events: events:
- name: system.ExtrinsicFailed - name: system.ExtrinsicFailed
attributes: result: { dispatchError: BadOrigin }
- type: SpRuntimeDispatchError
value: BadOrigin
- name: polkadotXcm.limitedReserveTransferAssets - name: polkadotXcm.limitedReserveTransferAssets
its: its:
@@ -200,7 +190,4 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: result: [{ Error: Barrier }]
- type: XcmV3TraitsOutcome
xcmOutcome: Error
value: Barrier
@@ -3,23 +3,22 @@ settings:
chains: chains:
relay_chain: &relay_chain relay_chain: &relay_chain
wsPort: 9900 wsPort: 9900
assets_parachain: &assets_parachain assets_parachain:
wsPort: 9910 wsPort: 9910
paraId: &ap_id 1000 paraId: &ap_id 1000
penpal_parachain: &penpal_parachain penpal_parachain:
wsPort: 9920 wsPort: 9920
paraId: &pp_id 2000 paraId: &pp_id 2000
variables: variables:
common: common:
amount: &amount 2000000000000 amount: &amount 2000000000000
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 20000}
hrmp_channels: hrmp_channels:
proposed_max_capacity: &max_capacity 8 proposed_max_capacity: &max_capacity 8
proposed_max_message_size: &max_message_size 8192 proposed_max_message_size: &max_message_size 8192
channel: &channel { channel: &channel {
maxCapacity: 8, maxCapacity: *max_capacity,
maxTotalSize: 8192, maxTotalSize: *max_message_size,
maxMessageSize: 8192, maxMessageSize: *max_message_size,
msgCount: 0, msgCount: 0,
totalSize: 0, totalSize: 0,
mqcHead: null, mqcHead: null,
@@ -29,17 +28,10 @@ settings:
chains: chains:
relay_chain: relay_chain:
signer: &rc_signer //Alice 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: assets_parachain_account:
sovereign_account: &ap_sovereign F7fq1jSNVTPfJmaHaXCMtatT1EZefCUsa7rRiQVNR5efcah sovereign_account: &ap_sovereign F7fq1jSNVTPfJmaHaXCMtatT1EZefCUsa7rRiQVNR5efcah
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
penpal_parachain: penpal_parachain:
sovereign_account: &pp_sovereign F7fq1jMZkfuCuoMTyiEVAP2DMpMt18WopgBqTJznLihLNbZ sovereign_account: &pp_sovereign F7fq1jMZkfuCuoMTyiEVAP2DMpMt18WopgBqTJznLihLNbZ
signer: &pp_signer //Alice
tests: tests:
- name: HRMP - name: HRMP
@@ -72,7 +64,7 @@ tests:
events: events:
- name: balances.Transfer - name: balances.Transfer
describes: describes:
- name: hrmp.hrmpInitOpenChannel (Penpal Parachain → Assets Parachain) - name: hrmp.forceOpenHrmpChannel (Penpal Parachain → Assets Parachain)
its: its:
- name: Open Penpal Parachain to Assets Parachain - name: Open Penpal Parachain to Assets Parachain
actions: actions:
@@ -83,18 +75,17 @@ tests:
pallet: hrmp pallet: hrmp
call: forceOpenHrmpChannel call: forceOpenHrmpChannel
args: [ args: [
2000, *pp_id,
1000, *ap_id,
8, *max_capacity,
8192 *max_message_size
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: hrmp.HrmpChannelForceOpened - name: hrmp.HrmpChannelForceOpened
- name: hrmp.hrmpInitOpenChannel (Assets Parachain → PenPal Parachain)
- name: hrmp.forceOpenHrmpChannel (Assets Parachain → PenPal Parachain)
its: its:
- name: Open Assets Parachain to PenPal Parachain - name: Open Assets Parachain to PenPal Parachain
actions: actions:
@@ -105,17 +96,16 @@ tests:
pallet: hrmp pallet: hrmp
call: forceOpenHrmpChannel call: forceOpenHrmpChannel
args: [ args: [
1000, *ap_id,
2000, *pp_id,
8, *max_capacity,
8192 *max_message_size
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: hrmp.HrmpChannelForceOpened - name: hrmp.HrmpChannelForceOpened
- name: hrmp.forceProcessHrmpOpen (make sure all the channels are open) - name: hrmp.forceProcessHrmpOpen (make sure all the channels are open)
its: its:
- name: Make sure all the pending channels are open - name: Make sure all the pending channels are open
@@ -129,6 +119,4 @@ tests:
args: [ 2 ] args: [ 2 ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
@@ -17,6 +17,7 @@ settings:
amount: &amount 100000000000 amount: &amount 100000000000
require_weight_at_most: &weight_at_most {refTime: 1200000000, proofSize: 20000} require_weight_at_most: &weight_at_most {refTime: 1200000000, proofSize: 20000}
amount_to_send: &amount_to_send 500000000000 amount_to_send: &amount_to_send 500000000000
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
chains: chains:
relay_chain: relay_chain:
signer: &rc_signer //Alice signer: &rc_signer //Alice
@@ -83,7 +84,7 @@ tests:
} }
}, },
{ {
SetTopic: "0x0123456789012345678901234567891201234567890123456789012345678912" SetTopic: '0x0123456789012345678901234567891201234567890123456789012345678912'
}, },
{ {
Transact: { Transact: {
@@ -99,11 +100,10 @@ tests:
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}
threshold: [10, 10] }
value: {"refTime":"1,216,703,000","proofSize":"20,000"}
- queries: - queries:
forced_created_asset: forced_created_asset:
chain: *assets_parachain chain: *assets_parachain
@@ -128,6 +128,7 @@ tests:
] ]
events: events:
- name: assets.Issued - name: assets.Issued
result: { assetId: *asset_id, owner: *ap_wallet, amount: *mint_amount }
its: its:
- name: Assets Parachain should be able to reserve transfer an Asset to Penpal Parachain - name: Assets Parachain should be able to reserve transfer an Asset to Penpal Parachain
@@ -180,19 +181,15 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"679,150,000","proofSize":"6,196"}
- name: assets.Transferred - name: assets.Transferred
attributes: result: {
- type: AccountId32 assetId: *asset_id,
value: *pp_sovereign_sibl from: *ap_wallet,
- name: assets.Transferred to: *pp_sovereign_sibl,
attributes: amount: *amount_to_send
- type: u128 }
value: *amount_to_send
- name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain - name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain
its: its:
@@ -227,19 +224,13 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"679,150,000","proofSize":"6,196"}
- name: balances.Endowed - name: balances.Endowed
attributes: result: {
- type: AccountId32 account: *pp_sovereign_sibl,
value: *pp_sovereign_sibl freeBalance: *amount
- name: balances.Endowed }
attributes:
- type: u128
value: *amount
- name: polkadotXcm.send( assets.forceCreateAsset ) | Penpal Parachain -> Assets Parachain - name: polkadotXcm.send( assets.forceCreateAsset ) | Penpal Parachain -> Assets Parachain
before: before:
@@ -320,20 +311,14 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: polkadotXcm.Sent - name: polkadotXcm.Sent
- name: assets.Burned - name: assets.Burned
chain: *assets_parachain chain: *assets_parachain
attributes: result: { assetId: *asset_id, owner: *pp_sovereign_sibl }
- type: AccountId32
value: *pp_sovereign_sibl
- name: assets.Issued - name: assets.Issued
chain: *assets_parachain chain: *assets_parachain
attributes: result: { assetId: *asset_id }
- type: u32
value: *asset_id
- queries: - queries:
assets_balance_pp_sovereign_after: assets_balance_pp_sovereign_after:
chain: *assets_parachain chain: *assets_parachain
@@ -398,6 +383,8 @@ tests:
events: events:
- name: xcmpQueue.Fail - name: xcmpQueue.Fail
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsError result: {
value: FailedToTransactAsset error: FailedToTransactAsset,
weight: { refTime: '152,426,000', proofSize: '3,593' }
}
@@ -7,6 +7,7 @@ chain = "kusama-local"
name = "alice" name = "alice"
ws_port = 9900 ws_port = 9900
validator = true validator = true
args = ["--state-cache-size=0"]
[[relaychain.nodes]] [[relaychain.nodes]]
name = "bob" name = "bob"
@@ -32,7 +33,7 @@ cumulus_based = true
name = "collator1" name = "collator1"
ws_port = 9910 ws_port = 9910
command = "./bin/polkadot-parachain" command = "./bin/polkadot-parachain"
args = [ "-lxcm=trace" ] args = [ "-lxcm=trace", "--state-cache-size=0" ]
[[parachains.collators]] [[parachains.collators]]
name = "collator2" name = "collator2"
@@ -49,7 +50,7 @@ cumulus_based = true
name = "collator3" name = "collator3"
ws_port = 9920 ws_port = 9920
command = "./bin/polkadot-parachain" command = "./bin/polkadot-parachain"
args = [ "-lxcm=trace" ] args = [ "-lxcm=trace", "--state-cache-size=0" ]
[[parachains.collators]] [[parachains.collators]]
name = "collator4" name = "collator4"
@@ -13,6 +13,7 @@ settings:
common: common:
xcm_version: &xcm_version '3' xcm_version: &xcm_version '3'
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 200000} require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 200000}
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
chains: chains:
relay_chain: relay_chain:
signer: &rc_signer //Alice signer: &rc_signer //Alice
@@ -56,13 +57,9 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.SupportedVersionChanged - name: xcmPallet.SupportedVersionChanged
attributes: result: [{ parents: 0, interior: { X1: { Parachain: *ap_id }}}, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Relay Chain sets supported version for Penpal Parachain - extrinsics: # Relay Chain sets supported version for Penpal Parachain
- chain: *relay_chain - chain: *relay_chain
sudo: true sudo: true
@@ -82,13 +79,9 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.SupportedVersionChanged - name: xcmPallet.SupportedVersionChanged
attributes: result: [{ parents: 0, interior: { X1: { Parachain: *pp_id }}}, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Asset Parachain sets supported version for Relay Chain through it - extrinsics: # Asset Parachain sets supported version for Relay Chain through it
- chain: *relay_chain - chain: *relay_chain
signer: *rc_signer signer: *rc_signer
@@ -121,15 +114,17 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - 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 - name: polkadotXcm.SupportedVersionChanged
chain: *assets_parachain chain: *assets_parachain
attributes: result: [{ parents: 1, interior: Here }, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Penpal Parachain sets supported version for Relay Chain - extrinsics: # Penpal Parachain sets supported version for Relay Chain
- chain: *penpal_parachain - chain: *penpal_parachain
signer: *pp_signer signer: *pp_signer
@@ -145,10 +140,6 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: polkadotXcm.SupportedVersionChanged - name: polkadotXcm.SupportedVersionChanged
attributes: result: [{ parents: 1, interior: Here }, *xcm_version ]
- type: u32
value: *xcm_version
@@ -7,20 +7,23 @@ settings:
wsPort: 9810 wsPort: 9810
paraId: &ap_id 1000 paraId: &ap_id 1000
variables: variables:
relay_chain: common:
signer: &rc_signer //Alice weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F chains:
assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}} relay_chain:
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' signer: &rc_signer //Alice
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}} wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}} assets_parachain_destination: &ap_dest { v3: { parents: 0, interior: { x1: { parachain: *ap_id }}}}
amount: &amount 1000000000000 assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }} assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
require_weight_at_most: &rc_weight_at_most {refTime: 1000000000, proofSize: 200000} ksm: &rc_ksm { concrete: { parents: 0, interior: { here: true }}}
assets_parachain_account: amount: &amount 1000000000000
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
asset_id: &asset_id 1 require_weight_at_most: &rc_weight_at_most {refTime: 1000000000, proofSize: 200000}
asset_min_balance: &asset_ed 1000 assets_parachain_account:
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
asset_id: &asset_id 1
asset_min_balance: &asset_ed 1000
decodedCalls: decodedCalls:
force_create_asset: force_create_asset:
chain: *assets_parachain chain: *assets_parachain
@@ -69,16 +72,14 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
threshold: [10, 10] }
value: {"refTime":"162,909,000","proofSize":"0"}
- queries: - queries:
balance_rc_sender_after: balance_rc_sender_after:
chain: *relay_chain chain: *relay_chain
@@ -151,11 +152,10 @@ tests:
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}
threshold: [10, 10] }
value: {"refTime":"1,015,234,000","proofSize":"200,000"}
- queries: - queries:
forced_created_asset: forced_created_asset:
chain: *assets_parachain chain: *assets_parachain
@@ -196,9 +196,7 @@ tests:
] ]
events: events:
- name: system.ExtrinsicFailed - name: system.ExtrinsicFailed
attributes: result: { dispatchError: BadOrigin }
- type: SpRuntimeDispatchError
value: BadOrigin
- name: xcmPallet.limitedReserveTransferAssets - name: xcmPallet.limitedReserveTransferAssets
before: *before_get_balances before: *before_get_balances
@@ -219,16 +217,19 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '2,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
value: {"refTime":"2,000,000,000","proofSize":"0"}
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Incomplete outcome: {
value: [{"refTime":"1,000,000,000","proofSize":"0"},"UntrustedReserveLocation"] Incomplete: [
{ refTime: '1,000,000,000', proofSize: 0 },
UntrustedReserveLocation
]
}
}
- queries: - queries:
balance_rc_sender_after: balance_rc_sender_after:
chain: *relay_chain chain: *relay_chain
@@ -10,22 +10,24 @@ settings:
common: common:
amount: &amount 1000000000000 amount: &amount 1000000000000
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 0} require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 0}
relay_chain: weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
signer: &rc_signer //Alice chains:
wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F relay_chain:
assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}} signer: &rc_signer //Alice
assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' wallet: &rc_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}} assets_parachain_destination: &ap_dest { v3: { 0, interior: { x1: { parachain: *ap_id }}}}
ksm: &rc_ksm { concrete: { 0, interior: { here: true }}} assets_parachain_account: &ap_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }} assets_parachain_beneficiary: &ap_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *ap_acc }}}}}
assets_parachain_account: ksm: &rc_ksm { concrete: { 0, interior: { here: true }}}
signer: &ap_signer //Alice ksm_fungible: &rc_ksm_fungible { id: *rc_ksm, fun: { fungible: *amount }}
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F assets_parachain_account:
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}} signer: &ap_signer //Alice
assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F
relay_chain_beneficiary: &rc_benf {v3: { parents: 0, interior: { x1: { accountId32: { id: *rc_acc }}}}} relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
ksm: &ap_ksm { concrete: { parents: 1, interior: { here: true }}} assets_parachain_account: &rc_acc '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
ksm_fungible: &ap_ksm_fungible { id: *ap_ksm, fun: { fungible: *amount }} 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: decodedCalls:
system_remark: system_remark:
chain: *relay_chain chain: *relay_chain
@@ -54,17 +56,14 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
value: {"refTime":"3,000,000,000","proofSize":"0"}
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
threshold: [10, 10] }
value: {"refTime":"162,909,000","proofSize":"0"}
- name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver - name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver
actions: actions:
@@ -97,17 +96,12 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '533,283,000', proofSize: '7,096' }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"533,283,000","proofSize":"7,096"}
- name: ump.ExecutedUpward - name: ump.ExecutedUpward
chain: *relay_chain chain: *relay_chain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '4,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
value: {"refTime":"4,000,000,000","proofSize":"0"}
- queries: - queries:
balance_ap_sender_after: balance_ap_sender_after:
chain: *assets_parachain chain: *assets_parachain
@@ -199,7 +193,4 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: result: [{ Error: Barrier }]
- type: XcmV3TraitsOutcome
xcmOutcome: Error
value: Barrier
@@ -3,23 +3,22 @@ settings:
chains: chains:
relay_chain: &relay_chain relay_chain: &relay_chain
wsPort: 9800 wsPort: 9800
assets_parachain: &assets_parachain assets_parachain:
wsPort: 9810 wsPort: 9810
paraId: &ap_id 1000 paraId: &ap_id 1000
penpal_parachain: &penpal_parachain penpal_parachain:
wsPort: 9820 wsPort: 9820
paraId: &pp_id 2000 paraId: &pp_id 2000
variables: variables:
common: common:
amount: &amount 2000000000000 amount: &amount 2000000000000
require_weight_at_most: &weight_at_most {refTime: 1000000000, proofSize: 20000}
hrmp_channels: hrmp_channels:
proposed_max_capacity: &max_capacity 8 proposed_max_capacity: &max_capacity 8
proposed_max_message_size: &max_message_size 8192 proposed_max_message_size: &max_message_size 8192
channel: &channel { channel: &channel {
maxCapacity: 8, maxCapacity: *max_capacity,
maxTotalSize: 8192, maxTotalSize: *max_message_size,
maxMessageSize: 8192, maxMessageSize: *max_message_size,
msgCount: 0, msgCount: 0,
totalSize: 0, totalSize: 0,
mqcHead: null, mqcHead: null,
@@ -29,15 +28,10 @@ settings:
chains: chains:
relay_chain: relay_chain:
signer: &rc_signer //Alice 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: assets_parachain_account:
sovereign_account: &ap_sovereign 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ sovereign_account: &ap_sovereign 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ
relay_chain_destination: &rc_dest { v3: { parents: 1, interior: { here: true }}}
penpal_parachain: penpal_parachain:
sovereign_account: &pp_sovereign F7fq1jMZkfuCuoMTyiEVAP2DMpMt18WopgBqTJznLihLNbZ sovereign_account: &pp_sovereign F7fq1jMZkfuCuoMTyiEVAP2DMpMt18WopgBqTJznLihLNbZ
signer: &pp_signer //Alice
tests: tests:
- name: HRMP - name: HRMP
@@ -81,16 +75,14 @@ tests:
pallet: hrmp pallet: hrmp
call: forceOpenHrmpChannel call: forceOpenHrmpChannel
args: [ args: [
2000, *pp_id,
1000, *ap_id,
8, *max_capacity,
8192 *max_message_size
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: hrmp.HrmpChannelForceOpened - name: hrmp.HrmpChannelForceOpened
- name: hrmp.hrmpInitOpenChannel (Assets Parachain → PenPal Parachain) - name: hrmp.hrmpInitOpenChannel (Assets Parachain → PenPal Parachain)
its: its:
@@ -103,16 +95,14 @@ tests:
pallet: hrmp pallet: hrmp
call: forceOpenHrmpChannel call: forceOpenHrmpChannel
args: [ args: [
1000, *ap_id,
2000, *pp_id,
8, *max_capacity,
8192 *max_message_size
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: hrmp.HrmpChannelForceOpened - name: hrmp.HrmpChannelForceOpened
- name: hrmp.forceProcessHrmpOpen (make sure all the channels are open) - name: hrmp.forceProcessHrmpOpen (make sure all the channels are open)
its: its:
@@ -127,6 +117,4 @@ tests:
args: [ 2 ] args: [ 2 ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: 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: settings:
chains: chains:
relay_chain: &relay_chain relay_chain: &relay_chain
@@ -15,6 +17,7 @@ settings:
amount: &amount 1000000000000 amount: &amount 1000000000000
require_weight_at_most: &weight_at_most {refTime: 1200000000, proofSize: 20000} require_weight_at_most: &weight_at_most {refTime: 1200000000, proofSize: 20000}
amount_to_send: &amount_to_send 500000000000 amount_to_send: &amount_to_send 500000000000
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
chains: chains:
relay_chain: relay_chain:
signer: &rc_signer //Alice 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_dest_routed: &ap_dest_routed { v3: { parents: 1, interior: { x1: { parachain: *ap_id } }}}
assets_parachain_account: assets_parachain_account:
signer: &ap_signer //Alice signer: &ap_signer //Alice
wallet: &ap_wallet HNZata7iMYWmk5RvZRTiAsSDhV8366zq2YGb3tLH5Upf74F wallet: &ap_wallet 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5
asset_id: &asset_id 2 asset_id: &asset_id 2
assets_pallet_id: &assets_pallet_id 50 assets_pallet_id: &assets_pallet_id 50
asset_min_balance: &asset_ed 1000 asset_min_balance: &asset_ed 1000
@@ -81,7 +84,7 @@ tests:
} }
}, },
{ {
SetTopic: "0x0123456789012345678901234567891201234567890123456789012345678912" SetTopic: '0x0123456789012345678901234567891201234567890123456789012345678912'
}, },
{ {
Transact: { Transact: {
@@ -97,11 +100,10 @@ tests:
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}
threshold: [10, 10] }
value: {"refTime":"1,218,405,000","proofSize":"20,000"}
- queries: - queries:
forced_created_asset: forced_created_asset:
chain: *assets_parachain chain: *assets_parachain
@@ -126,6 +128,7 @@ tests:
] ]
events: events:
- name: assets.Issued - name: assets.Issued
result: { assetId: *asset_id, owner: *ap_wallet, amount: *mint_amount }
its: its:
- name: Assets Parachain should be able to reserve transfer an Asset to Penpal Parachain - name: Assets Parachain should be able to reserve transfer an Asset to Penpal Parachain
@@ -178,19 +181,15 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '673,627,000', proofSize: '6,196' }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"673,627,000","proofSize":"6,196"}
- name: assets.Transferred - name: assets.Transferred
attributes: result: {
- type: AccountId32 assetId: *asset_id,
value: *pp_sovereign_sibl from: *ap_wallet,
- name: assets.Transferred to: *pp_sovereign_sibl,
attributes: amount: *amount_to_send
- type: u128 }
value: *amount_to_send
- name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain - name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain
its: its:
@@ -225,19 +224,13 @@ tests:
] ]
events: events:
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
xcmOutcome: Complete
threshold: [10, 10]
value: {"refTime":"673,627,000","proofSize":"6,196"}
- name: balances.Endowed - name: balances.Endowed
attributes: result: {
- type: AccountId32 account: *pp_sovereign_sibl,
value: *pp_sovereign_sibl freeBalance: *amount
- name: balances.Endowed }
attributes:
- type: u128
value: *amount
- name: polkadotXcm.send( assets.forceCreateAsset ) | Penpal Parachain -> Assets Parachain - name: polkadotXcm.send( assets.forceCreateAsset ) | Penpal Parachain -> Assets Parachain
before: before:
@@ -318,20 +311,14 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: polkadotXcm.Sent - name: polkadotXcm.Sent
- name: assets.Burned - name: assets.Burned
chain: *assets_parachain chain: *assets_parachain
attributes: result: { assetId: *asset_id, owner: *pp_sovereign_sibl }
- type: AccountId32
value: *pp_sovereign_sibl
- name: assets.Issued - name: assets.Issued
chain: *assets_parachain chain: *assets_parachain
attributes: result: { assetId: *asset_id }
- type: u32
value: *asset_id
- queries: - queries:
assets_balance_pp_sovereign_after: assets_balance_pp_sovereign_after:
chain: *assets_parachain chain: *assets_parachain
@@ -396,6 +383,8 @@ tests:
events: events:
- name: xcmpQueue.Fail - name: xcmpQueue.Fail
chain: *assets_parachain chain: *assets_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsError result: {
value: FailedToTransactAsset error: FailedToTransactAsset,
weight: { refTime: '152,426,000', proofSize: '3,593' }
}
@@ -7,6 +7,7 @@ chain = "polkadot-local"
name = "alice" name = "alice"
ws_port = 9800 ws_port = 9800
validator = true validator = true
args = ["--state-cache-size=0"]
[[relaychain.nodes]] [[relaychain.nodes]]
name = "bob" name = "bob"
@@ -32,7 +33,7 @@ cumulus_based = true
name = "collator1" name = "collator1"
ws_port = 9810 ws_port = 9810
command = "./bin/polkadot-parachain" command = "./bin/polkadot-parachain"
args = [ "-lxcm=trace" ] args = [ "-lxcm=trace", "--state-cache-size=0" ]
[[parachains.collators]] [[parachains.collators]]
name = "collator2" name = "collator2"
@@ -50,7 +51,7 @@ cumulus_based = true
name = "collator3" name = "collator3"
ws_port = 9820 ws_port = 9820
command = "./bin/polkadot-parachain" command = "./bin/polkadot-parachain"
args = [ "-lxcm=trace" ] args = [ "-lxcm=trace", "--state-cache-size=0" ]
[[parachains.collators]] [[parachains.collators]]
name = "collator4" name = "collator4"
@@ -7,12 +7,13 @@ settings:
wsPort: 9710 wsPort: 9710
paraId: &cp_id 1001 paraId: &cp_id 1001
variables: variables:
xcm_version: &xcm_version '3' xcm_version: &xcm_version 3
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
chains: chains:
accounts: accounts:
alice_signer: &alice_signer //Alice alice_signer: &alice_signer //Alice
decodedCalls: decodedCalls:
ap_force_xcm_version: cp_force_xcm_version:
chain: *collectives_parachain chain: *collectives_parachain
pallet: polkadotXcm pallet: polkadotXcm
call: forceXcmVersion call: forceXcmVersion
@@ -48,13 +49,9 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.SupportedVersionChanged - name: xcmPallet.SupportedVersionChanged
attributes: result: [{ parents: 0, interior: { X1: { Parachain: *cp_id }}}, *xcm_version ]
- type: u32
value: *xcm_version
- extrinsics: # Collectives Parachain sets supported version for Relay Chain through it - extrinsics: # Collectives Parachain sets supported version for Relay Chain through it
- chain: *relay_chain - chain: *relay_chain
signer: *alice_signer signer: *alice_signer
@@ -82,7 +79,7 @@ tests:
refTime: 200000000, # 200_000_000 refTime: 200000000, # 200_000_000
proofSize: 0, proofSize: 0,
}, },
call: $ap_force_xcm_version call: $cp_force_xcm_version
} }
} }
] ]
@@ -90,17 +87,14 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: polkadotXcm.SupportedVersionChanged
chain: *collectives_parachain
attributes:
- type: u32
value: *xcm_version
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '2,200,000,000', proofSize: 0 }}
}
- name: polkadotXcm.SupportedVersionChanged
chain: *collectives_parachain
result: [{ parents: 1, interior: Here }, *xcm_version ]
@@ -7,10 +7,13 @@ settings:
wsPort: 9710 wsPort: 9710
paraId: &cp_id 1001 paraId: &cp_id 1001
variables: variables:
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
accounts: accounts:
alice_signer: &acc_alice_signer //Alice alice_signer: &acc_alice_signer //Alice
alice_account32: &acc_alice_acc32 '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' alice_account32: &acc_alice_acc32 '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
alice_ss58: &acc_alice_ss58 '15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5' alice_ss58: &acc_alice_ss58 '15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5'
checking_account: &checking_account '13UVJyLnbVp9x5XDyJv8g8r3UddNwBrdaH7AADCmw9XQWvYW'
tests: tests:
- name: Teleport assets from Relay Chain to Collectives Parachain successful. - name: Teleport assets from Relay Chain to Collectives Parachain successful.
@@ -57,15 +60,14 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
chain: *relay_chain threshold: *weight_threshold
attributes: result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
- type: XcmV3TraitsOutcome
xcmOutcome: Complete
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '4,000,000,000', proofSize: 0 }}
}
- queries: - queries:
balance_rc_alice_2: balance_rc_alice_2:
chain: *relay_chain chain: *relay_chain
@@ -121,28 +123,17 @@ tests:
] ]
events: events:
- name: balances.Withdraw - name: balances.Withdraw
attributes: result: { who: *acc_alice_ss58, amount: 10000000000000 }
- type: AccountId32
key: who
value: *acc_alice_ss58
- type: u128
key: amount
value: 10000000000000
- name: polkadotXcm.Attempted - name: polkadotXcm.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
- name: balances.Withdraw - name: balances.Withdraw
chain: *relay_chain chain: *relay_chain
attributes: result: { who: *checking_account, amount: 10000000000000 } # amount received and withdrawn from registry account
- type: u128
key: amount
value: 10000000000000 # amount received and withdrawn from registry account
- name: ump.ExecutedUpward - name: ump.ExecutedUpward
chain: *relay_chain chain: *relay_chain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '4,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
- queries: - queries:
balance_rc_alice_3: balance_rc_alice_3:
chain: *relay_chain chain: *relay_chain
@@ -7,11 +7,11 @@ settings:
wsPort: 9710 wsPort: 9710
paraId: &cp_id 1001 paraId: &cp_id 1001
variables: variables:
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
chains: chains:
accounts: accounts:
alice_signer: &alice_signer //Alice alice_signer: &alice_signer //Alice
alice_account32: &alice_acc32 '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' alice_account32: &alice_acc32 '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
alice_ss58: &acc_alice_ss58 '15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5'
tests: tests:
- name: Reserve assets from Relay Chain to Collectives Parachain fails - name: Reserve assets from Relay Chain to Collectives Parachain fails
@@ -38,12 +38,16 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
chain: *relay_chain threshold: *weight_threshold
attributes: result: [{ Complete: { refTime: '2,000,000,000', proofSize: 0 }}]
- type: XcmV3TraitsOutcome
xcmOutcome: Complete
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Incomplete outcome: {
Incomplete: [
{ refTime: '1,000,000,000', proofSize: 0 },
UntrustedReserveLocation
]
}
}
@@ -1,15 +1,13 @@
--- ---
settings: settings:
chains: chains:
relay_chain: &relay_chain relay_chain:
wsPort: 9700 wsPort: 9700
collectives_parachain: &collectives_parachain collectives_parachain: &collectives_parachain
wsPort: 9710 wsPort: 9710
paraId: &cp_id 1001
variables: variables:
accounts: accounts:
alice_signer: &alice_signer //Alice alice_signer: &alice_signer //Alice
alice_account32: &cp_alice_acc32 '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'
tests: tests:
- name: Alice fails to join an the Alliance, since it is not initialized yet. - name: Alice fails to join an the Alliance, since it is not initialized yet.
@@ -24,11 +22,8 @@ tests:
args: [] args: []
events: events:
- name: system.ExtrinsicFailed - name: system.ExtrinsicFailed
attributes: result: {
- type: SpRuntimeDispatchError dispatchError: { Module: { index: 50, error: '0x00000000' }}
key: dispatchError }
# TODO assert with Alliance Error variant - alliance.AllianceNotYetInitialized # TODO assert with Alliance Error variant - alliance.AllianceNotYetInitialized
# issue - https://github.com/paritytech/parachains-integration-tests/issues/59 # issue - https://github.com/paritytech/parachains-integration-tests/issues/59
value: {"Module":{"index":"50","error":"0x00000000"}}
@@ -7,23 +7,16 @@ settings:
wsPort: 9710 wsPort: 9710
paraId: &coll_para_id 1001 paraId: &coll_para_id 1001
variables: variables:
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
accounts: accounts:
alice_signer: &acc_alice_signer //Alice alice_signer: &acc_alice_signer //Alice
alice_account32: &acc_alice_acc32 "0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d" liam_account32: &acc_liam_acc32 "0x3614671a5de540d891eb8c4939c8153a4aa790602b347c18177b86d0fc546221" # //Liam
liam_signer: &acc_liam_signer //Liam olivia_account32: &acc_olivia_acc32 "0x24ee8a659c6716fe9f7cb4e9e028602aa12867654ca02737da9171b7ff697d5c" # //Olivia
liam_account32: &acc_liam_acc32 "0x3614671a5de540d891eb8c4939c8153a4aa790602b347c18177b86d0fc546221" noah_account32: &acc_noah_acc32 "0x9c6ad3bc3aa2f1b2e837898e6da9980445f7ef8b3eee0b8c8e305f8cfae68517" # //Noah
olivia_signer: &acc_olivia_signer //Olivia emma_account32: &acc_emma_acc32 "0x8ac272b333ba1127c8db57fa777ec820b24598a236efa648caf0d26d86f64572" # //Emma
olivia_account32: &acc_olivia_acc32 "0x24ee8a659c6716fe9f7cb4e9e028602aa12867654ca02737da9171b7ff697d5c" james_account32: &acc_james_acc32 "0x9a52805151a0b5effc084af9264011139872a21a3950cb9ae0b2955c4bf92c18" # //James
noah_signer: &acc_noah_signer //Noah ava_account32: &acc_ava_acc32 "0x348ef0b8776adbc09c862ddc29b1d193b9e24738e54eea3b0609c83856dc101c" # //Ava
noah_account32: &acc_noah_acc32 "0x9c6ad3bc3aa2f1b2e837898e6da9980445f7ef8b3eee0b8c8e305f8cfae68517" mia_account32: &acc_mia_acc32 "0xaebf15374cf7e758d10232514c569a7abf81cc1b8f1e81a73dbc608a0e335264" # //Mia
emma_signer: &acc_emma_signer //Emma
emma_account32: &acc_emma_acc32 "0x8ac272b333ba1127c8db57fa777ec820b24598a236efa648caf0d26d86f64572"
james_signer: &acc_james_signer //James
james_account32: &acc_james_acc32 "0x9a52805151a0b5effc084af9264011139872a21a3950cb9ae0b2955c4bf92c18"
ava_signer: &acc_ava_signer //Ava
ava_account32: &acc_ava_acc32 "0x348ef0b8776adbc09c862ddc29b1d193b9e24738e54eea3b0609c83856dc101c"
mia_signer: &acc_mia_signer //Mia
mia_account32: &acc_mia_acc32 "0xaebf15374cf7e758d10232514c569a7abf81cc1b8f1e81a73dbc608a0e335264"
decodedCalls: decodedCalls:
init_alliance_members: init_alliance_members:
chain: *collectives_parachain chain: *collectives_parachain
@@ -109,17 +102,16 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: alliance.MembersInitialized - name: alliance.MembersInitialized
chain: *collectives_parachain chain: *collectives_parachain
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}
}
- name: Alliance init call fails. - name: Alliance init call fails.
actions: actions:
@@ -162,15 +154,14 @@ tests:
# Next test with a disband call will fail, if this call does not fail, # Next test with a disband call will fail, if this call does not fail,
# since a witness data from a disband call will be invalid. # since a witness data from a disband call will be invalid.
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}
}
- name: Alliance disbanded and initialized again. - name: Alliance disbanded and initialized again.
actions: actions:
@@ -209,27 +200,17 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: alliance.AllianceDisbanded - name: alliance.AllianceDisbanded
chain: *collectives_parachain chain: *collectives_parachain
attributes: result: { fellowMembers: 6, allyMembers: 1, unreserved: 0 }
- type: u32
key: fellowMembers
value: 6
- type: u32
key: allyMembers
value: 1
- type: u32
key: unreserved
value: 0
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '3,321,495,872', proofSize: '181,779' }}
}
- name: Alliance initiated, founders and fellows are set. - name: Alliance initiated, founders and fellows are set.
actions: actions:
- extrinsics: - extrinsics:
@@ -267,14 +248,13 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: alliance.MembersInitialized - name: alliance.MembersInitialized
chain: *collectives_parachain chain: *collectives_parachain
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}
}
@@ -1,15 +1,14 @@
--- ---
settings: settings:
chains: chains:
relay_chain: &relay_chain relay_chain:
wsPort: 9700 wsPort: 9700
collectives_parachain: &collectives_parachain collectives_parachain: &collectives_parachain
wsPort: 9710 wsPort: 9710
paraId: &cp_id 1001 paraId: 1001
variables: variables:
accounts: accounts:
liam_signer: &acc_liam_signer //Liam liam_signer: &acc_liam_signer //Liam
liam_account32: &acc_liam_acc32 "0x3614671a5de540d891eb8c4939c8153a4aa790602b347c18177b86d0fc546221"
tests: tests:
- name: Liam fails to join an the Alliance, Liam is already a member. - name: Liam fails to join an the Alliance, Liam is already a member.
@@ -24,11 +23,8 @@ tests:
args: [] args: []
events: events:
- name: system.ExtrinsicFailed - name: system.ExtrinsicFailed
attributes: result: {
- type: SpRuntimeDispatchError dispatchError: { Module: { index: 50, error: '0x02000000' }}
key: dispatchError }
# TODO assert with Alliance Error variant - alliance.AllianceNotYetInitialized # TODO assert with Alliance Error variant - alliance.AllianceNotYetInitialized
# issue - https://github.com/paritytech/parachains-integration-tests/issues/59 # issue - https://github.com/paritytech/parachains-integration-tests/issues/59
value: {"Module":{"index":"50","error":"0x02000000"}}
@@ -7,6 +7,7 @@ settings:
wsPort: 9710 wsPort: 9710
paraId: &cp_id 1001 paraId: &cp_id 1001
variables: variables:
weight_threshold: &weight_threshold { refTime: [10, 10], proofSize: [10, 10] }
init_teleport_amount: &init_teleport_amount 20000000000000 # 20_000_000_000_000 init_teleport_amount: &init_teleport_amount 20000000000000 # 20_000_000_000_000
accounts: accounts:
alice_signer: &acc_alice_signer //Alice alice_signer: &acc_alice_signer //Alice
@@ -41,20 +42,17 @@ tests:
] ]
events: events:
- name: xcmPallet.Attempted - name: xcmPallet.Attempted
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
xcmOutcome: Complete
- name: balances.Deposit - name: balances.Deposit
chain: *collectives_parachain chain: *collectives_parachain
attributes: result: { who: *acc_alice_ss58 }
- type: AccountId32
key: who
value: *acc_alice_ss58
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '4,000,000,000', proofSize: 0 }}
}
- name: Get the balances of the Relay Chain's treasury & Collectives parachain's future alliance member - name: Get the balances of the Relay Chain's treasury & Collectives parachain's future alliance member
actions: actions:
- queries: - queries:
@@ -80,18 +78,9 @@ tests:
events: events:
- name: balances.Reserved - name: balances.Reserved
chain: *collectives_parachain chain: *collectives_parachain
attributes: result: { who: *acc_alice_ss58, amount: '10,000,000,000,000' }
- type: AccountId32
key: who
value: *acc_alice_ss58
- type: u128
key: amount
value: 10,000,000,000,000
- name: alliance.NewAllyJoined - name: alliance.NewAllyJoined
attributes: result: { ally: *acc_alice_ss58 }
- type: AccountId32
key: ally
value: *acc_alice_ss58
- queries: - queries:
balance_cp_alice_after: balance_cp_alice_after:
chain: *collectives_parachain chain: *collectives_parachain
@@ -148,21 +137,17 @@ tests:
] ]
events: events:
- name: sudo.Sudid - name: sudo.Sudid
attributes: result: { sudoResult: Ok }
- type: Result<Null, SpRuntimeDispatchError>
value: Ok
- name: xcmPallet.Sent - name: xcmPallet.Sent
- name: alliance.MemberKicked - name: alliance.MemberKicked
chain: *collectives_parachain chain: *collectives_parachain
attributes: result: { member: *acc_alice_ss58 }
- type: AccountId32
key: member
value: *acc_alice_ss58
- name: dmpQueue.ExecutedDownward - name: dmpQueue.ExecutedDownward
chain: *collectives_parachain chain: *collectives_parachain
attributes: threshold: *weight_threshold
- type: XcmV3TraitsOutcome result: {
xcmOutcome: Complete outcome: { Complete: { refTime: '4,000,000,000', proofSize: '1,000,000' }}
}
- queries: - queries:
balance_rc_treasury_after: balance_rc_treasury_after:
@@ -7,20 +7,21 @@ chain = "polkadot-local"
name = "alice" name = "alice"
ws_port = 9700 ws_port = 9700
validator = true validator = true
args = ["--state-cache-size=0"]
[[relaychain.nodes]] [[relaychain.nodes]]
name = "bob" name = "bob"
ws_port = 9701 ws_port = 9701
validator = true validator = true
[[relaychain.nodes]] [[relaychain.nodes]]
name = "charlie" name = "charlie"
ws_port = 9702 ws_port = 9702
validator = true validator = true
[[relaychain.nodes]] [[relaychain.nodes]]
name = "dave" name = "dave"
ws_port = 9703 ws_port = 9703
validator = true validator = true
[[parachains]] [[parachains]]
@@ -32,10 +33,10 @@ cumulus_based = true
name = "collator1" name = "collator1"
ws_port = 9710 ws_port = 9710
command = "./bin/polkadot-parachain" command = "./bin/polkadot-parachain"
args = ["-lxcm=trace"] args = [ "-lxcm=trace", "--state-cache-size=0" ]
[[parachains.collators]] [[parachains.collators]]
name = "collator2" name = "collator2"
ws_port = 9711 ws_port = 9711
command = "./bin/polkadot-parachain" command = "./bin/polkadot-parachain"
args = ["-lxcm=trace"] args = ["-lxcm=trace"]