Skip to content

Commit

Permalink
Tuple changed to struct (#2791)
Browse files Browse the repository at this point in the history
(also made some of the results to be in one line
so they are similar to the others)
gilescope authored Jun 28, 2023
1 parent 4baf907 commit 60b92a7
Showing 12 changed files with 41 additions and 69 deletions.
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.SupportedVersionChanged
result: [{ parents: 0, interior: { X1: { Parachain: *ap_id }}}, *xcm_version ]
result: { location: { parents: 0, interior: { X1: { Parachain: *ap_id }}}, version: *xcm_version }
- extrinsics: # Relay Chain sets supported version for Penpal Parachain
- chain: *relay_chain
sudo: true
@@ -81,7 +81,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.SupportedVersionChanged
result: [{ parents: 0, interior: { X1: { Parachain: *pp_id }}}, *xcm_version ]
result: { location: { parents: 0, interior: { X1: { Parachain: *pp_id }}}, version: *xcm_version }
- extrinsics: # Asset Parachain sets supported version for Relay Chain through it
- chain: *relay_chain
signer: *rc_signer
@@ -124,7 +124,7 @@ tests:
}
- name: polkadotXcm.SupportedVersionChanged
chain: *assets_parachain
result: [{ parents: 1, interior: Here }, *xcm_version ]
result: { location: { parents: 1, interior: Here }, version: *xcm_version }
- extrinsics: # Penpal Parachain sets supported version for Relay Chain
- chain: *penpal_parachain
signer: *pp_signer
@@ -142,4 +142,4 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: polkadotXcm.SupportedVersionChanged
result: [{ parents: 1, interior: Here }, *xcm_version ]
result: { location: { parents: 1, interior: Here }, version: *xcm_version }
Original file line number Diff line number Diff line change
@@ -73,13 +73,11 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '764,772,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '764,772,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
}
result: { outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}}
- queries:
balance_rc_sender_after:
chain: *relay_chain
@@ -153,9 +151,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}
}
result: { outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}}
- queries:
forced_created_asset:
chain: *assets_parachain
@@ -218,7 +214,7 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '750,645,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '750,645,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
Original file line number Diff line number Diff line change
@@ -57,13 +57,11 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '761,173,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '761,173,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
}
result: { outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}}

- name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver
actions:
@@ -96,7 +94,7 @@ tests:
events:
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '539,494,000', proofSize: '7,133' }}]
result: { outcome: { Complete: { refTime: '539,494,000', proofSize: '7,133' }}}
- name: messageQueue.Processed
chain: *relay_chain
threshold: *weight_threshold
@@ -190,4 +188,4 @@ tests:
]
events:
- name: polkadotXcm.Attempted
result: [{ Error: Barrier }]
result: { outcome: { Error: Barrier }}
Original file line number Diff line number Diff line change
@@ -101,9 +101,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}
}
result: { outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}}
- queries:
forced_created_asset:
chain: *assets_parachain
@@ -182,7 +180,7 @@ tests:
events:
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
result: { outcome: { Complete: { refTime: '679,150,000', proofSize: '6,196' }}}
- name: assets.Transferred
result: {
assetId: *asset_id,
@@ -225,7 +223,7 @@ tests:
events:
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
result: { outcome: { Complete: { refTime: '679,150,000', proofSize: '6,196' }}}
- name: balances.Endowed
result: {
account: *pp_sovereign_sibl,
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.SupportedVersionChanged
result: [{ parents: 0, interior: { X1: { Parachain: *ap_id }}}, *xcm_version ]
result: { location: { parents: 0, interior: { X1: { Parachain: *ap_id }}}, version: *xcm_version }
- extrinsics: # Relay Chain sets supported version for Penpal Parachain
- chain: *relay_chain
sudo: true
@@ -81,7 +81,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.SupportedVersionChanged
result: [{ parents: 0, interior: { X1: { Parachain: *pp_id }}}, *xcm_version ]
result: { location: { parents: 0, interior: { X1: { Parachain: *pp_id }}}, version: *xcm_version }
- extrinsics: # Asset Parachain sets supported version for Relay Chain through it
- chain: *relay_chain
signer: *rc_signer
@@ -124,7 +124,7 @@ tests:
}
- name: polkadotXcm.SupportedVersionChanged
chain: *assets_parachain
result: [{ parents: 1, interior: Here }, *xcm_version ]
result: { location: { parents: 1, interior: Here }, version: *xcm_version }
- extrinsics: # Penpal Parachain sets supported version for Relay Chain
- chain: *penpal_parachain
signer: *pp_signer
@@ -142,4 +142,4 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: polkadotXcm.SupportedVersionChanged
result: [{ parents: 1, interior: Here }, *xcm_version ]
result: { location: { parents: 1, interior: Here}, version: *xcm_version }
Original file line number Diff line number Diff line change
@@ -73,13 +73,11 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
}
result: { outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}}
- queries:
balance_rc_sender_after:
chain: *relay_chain
@@ -153,9 +151,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}
}
result: { outcome: { Complete: { refTime: '1,014,103,000', proofSize: '200,000' }}}
- queries:
forced_created_asset:
chain: *assets_parachain
@@ -218,7 +214,7 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '2,000,000,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '2,000,000,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
Original file line number Diff line number Diff line change
@@ -57,13 +57,11 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '166,944,000', proofSize: 0 }}
}
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,7 +95,7 @@ tests:
events:
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '533,283,000', proofSize: '7,096' }}]
result: { outcome: { Complete: { refTime: '533,283,000', proofSize: '7,096' }}}
- name: messageQueue.Processed
chain: *relay_chain
threshold: *weight_threshold
@@ -193,4 +191,4 @@ tests:
]
events:
- name: polkadotXcm.Attempted
result: [{ Error: Barrier }]
result: { outcome: { Error: Barrier }}
Original file line number Diff line number Diff line change
@@ -101,9 +101,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *assets_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}
}
result: { outcome: { Complete: { refTime: '1,216,703,000', proofSize: '20,000' }}}
- queries:
forced_created_asset:
chain: *assets_parachain
@@ -182,7 +180,7 @@ tests:
events:
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '673,627,000', proofSize: '6,196' }}]
result: { outcome: { Complete: { refTime: '673,627,000', proofSize: '6,196' }}}
- name: assets.Transferred
result: {
assetId: *asset_id,
@@ -225,7 +223,7 @@ tests:
events:
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '679,150,000', proofSize: '6,196' }}]
result: { outcome: { Complete: { refTime: '679,150,000', proofSize: '6,196' }}}
- name: balances.Endowed
result: {
account: *pp_sovereign_sibl,
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ tests:
- name: sudo.Sudid
result: { sudoResult: Ok }
- name: xcmPallet.SupportedVersionChanged
result: [{ parents: 0, interior: { X1: { Parachain: *cp_id }}}, *xcm_version ]
result: { location: { parents: 0, interior: { X1: { Parachain: *cp_id }}}, version: *xcm_version }
- extrinsics: # Collectives Parachain sets supported version for Relay Chain through it
- chain: *relay_chain
signer: *alice_signer
@@ -92,9 +92,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '2,200,000,000', proofSize: 0 }}
}
result: { outcome: { Complete: { refTime: '2,200,000,000', proofSize: 0 }}}
- name: polkadotXcm.SupportedVersionChanged
chain: *collectives_parachain
result: [{ parents: 1, interior: Here }, *xcm_version ]
result: { location: { parents: 1, interior: Here }, version: *xcm_version }
Original file line number Diff line number Diff line change
@@ -61,13 +61,11 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '4,000,000,000', proofSize: 0 }}
}
result: { outcome: { Complete: { refTime: '4,000,000,000', proofSize: 0 }}}
- queries:
balance_rc_alice_2:
chain: *relay_chain
@@ -126,7 +124,7 @@ tests:
result: { who: *acc_alice_ss58, amount: 10000000000000 }
- name: polkadotXcm.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '3,000,000,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: 0 }}}
- name: balances.Withdraw
chain: *relay_chain
result: { who: *checking_account, amount: 10000000000000 } # amount received and withdrawn from registry account
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ tests:
events:
- name: xcmPallet.Attempted
threshold: *weight_threshold
result: [{ Complete: { refTime: '2,000,000,000', proofSize: 0 }}]
result: { outcome: { Complete: { refTime: '2,000,000,000', proofSize: 0 }}}
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
Original file line number Diff line number Diff line change
@@ -109,9 +109,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}
}
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}}

- name: Alliance init call fails.
actions:
@@ -159,9 +157,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}
}
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}}

- name: Alliance disbanded and initialized again.
actions:
@@ -208,9 +204,7 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '3,321,495,872', proofSize: '181,779' }}
}
result: { outcome: { Complete: { refTime: '3,321,495,872', proofSize: '181,779' }}}
- name: Alliance initiated, founders and fellows are set.
actions:
- extrinsics:
@@ -255,6 +249,4 @@ tests:
- name: dmpQueue.ExecutedDownward
chain: *collectives_parachain
threshold: *weight_threshold
result: {
outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}
}
result: { outcome: { Complete: { refTime: '3,000,000,000', proofSize: '1,000,000' }}}

0 comments on commit 60b92a7

Please sign in to comment.