forked from open-web3-stack/polkadot-ecosystem-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.kusama.test.ts
34 lines (29 loc) · 1.16 KB
/
people.kusama.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 { kusama, peopleKusama } 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('kusama & peopleKusama', async () => {
const [kusamaClient, peopleClient] = await setupNetworks(kusama, peopleKusama)
const peopleKSM = peopleKusama.custom.ksm
const kusamaKSM = kusama.custom.ksm
runXcmPalletDown('kusama transfer KSM to peopleKusama', async () => {
return {
fromChain: kusamaClient,
toChain: peopleClient,
balance: query.balances,
toAccount: defaultAccounts.dave,
tx: tx.xcmPallet.teleportAssetsV3(kusamaKSM, 1e12, tx.xcmPallet.parachainV3(0, peopleKusama.paraId!)),
}
})
runXcmPalletUp('peopleKusama transfer KSM to kusama', async () => {
return {
fromChain: peopleClient,
toChain: kusamaClient,
balance: query.balances,
toAccount: defaultAccounts.dave,
tx: tx.xcmPallet.teleportAssetsV3(peopleKSM, 1e12, tx.xcmPallet.relaychainV4),
}
})
})