forked from open-web3-stack/polkadot-ecosystem-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.polkadot.test.ts
34 lines (29 loc) · 1.19 KB
/
people.polkadot.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { describe } from 'vitest'
import { defaultAccounts } from '@e2e-test/networks'
import { peoplePolkadot, polkadot } from '@e2e-test/networks/chains'
import { query, tx } from '@e2e-test/shared/api'
import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm'
import { setupNetworks } from '@e2e-test/shared'
describe('polkadot & peoplePolkadot', async () => {
const [polkadotClient, peopleClient] = await setupNetworks(polkadot, peoplePolkadot)
const peopleDOT = peoplePolkadot.custom.dot
const polkadotDOT = polkadot.custom.dot
runXcmPalletDown('polkadot transfer DOT to peoplePolkadot', async () => {
return {
fromChain: polkadotClient,
toChain: peopleClient,
balance: query.balances,
toAccount: defaultAccounts.dave,
tx: tx.xcmPallet.teleportAssetsV3(polkadotDOT, 1e12, tx.xcmPallet.parachainV3(0, peoplePolkadot.paraId!)),
}
})
runXcmPalletUp('peoplePolkadot transfer DOT to polkadot', async () => {
return {
fromChain: peopleClient,
toChain: polkadotClient,
balance: query.balances,
toAccount: defaultAccounts.dave,
tx: tx.xcmPallet.teleportAssetsV3(peopleDOT, 1e12, tx.xcmPallet.relaychainV4),
}
})
})