-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
121 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
chopsticks/xcm-transfer/__snapshots__/polkadot-assethub.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > balance on from chain 1`] = ` | ||
{ | ||
"consumers": 0, | ||
"data": { | ||
"flags": "0x80000000000000000000000000000000", | ||
"free": "(rounded 9000000000000)", | ||
"frozen": 0, | ||
"reserved": 0, | ||
}, | ||
"nonce": 1, | ||
"providers": 1, | ||
"sufficients": 0, | ||
} | ||
`; | ||
|
||
exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > balance on to chain 1`] = ` | ||
{ | ||
"consumers": 0, | ||
"data": { | ||
"flags": "0x80000000000000000000000000000000", | ||
"free": "(rounded 11000000000000)", | ||
"frozen": 0, | ||
"reserved": 0, | ||
}, | ||
"nonce": 0, | ||
"providers": 1, | ||
"sufficients": 0, | ||
} | ||
`; | ||
|
||
exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > to chain dmp events 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"count": 1, | ||
}, | ||
"method": "DownwardMessagesReceived", | ||
"section": "parachainSystem", | ||
}, | ||
{ | ||
"data": { | ||
"messageId": "(hash)", | ||
"outcome": { | ||
"Complete": { | ||
"proofSize": 0, | ||
"refTime": "(rounded 160000000)", | ||
}, | ||
}, | ||
}, | ||
"method": "ExecutedDownward", | ||
"section": "dmpQueue", | ||
}, | ||
{ | ||
"data": { | ||
"dmqHead": "(hash)", | ||
"weightUsed": { | ||
"proofSize": 0, | ||
"refTime": "(rounded 160000000)", | ||
}, | ||
}, | ||
"method": "DownwardMessagesProcessed", | ||
"section": "parachainSystem", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > tx events 1`] = ` | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"Complete": { | ||
"proofSize": 0, | ||
"refTime": 3000000000, | ||
}, | ||
}, | ||
], | ||
"method": "Attempted", | ||
"section": "xcmPallet", | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { query, tx } from '../../helpers/api' | ||
|
||
import { polkadot } from '../../networks/polkadot' | ||
import { statemint } from '../../networks/statemint' | ||
|
||
import buildTest from './shared' | ||
|
||
const tests = [ | ||
{ | ||
from: 'polkadot', | ||
to: 'statemint', | ||
name: 'DOT', | ||
test: { | ||
xcmPalletDown: { | ||
tx: tx.xcmPallet.teleportAssets(polkadot.dot, 1e12, tx.xcmPallet.parachainV3(0, statemint.paraId)), | ||
balance: query.balances, | ||
}, | ||
}, | ||
}, | ||
] as const | ||
|
||
|
||
export type TestType = (typeof tests)[number] | ||
|
||
buildTest(tests) |