Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable moonbeam transfer test #110

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 72 additions & 60 deletions packages/polkadot/src/acala.moonbeam.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,32 @@ describe('acala & moonbeam', async () => {
}
})

runXtokenstHorizontal('moonbeam transfer DOT to acala', async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeamDot, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeamDot),
fromAccount: defaultAccounts.alith,

toChain: acalaClient,
toBalance: query.tokens(acalaDot),
toAccount: defaultAccounts.alice,

routeChain: polkadotClient,
isCheckUmp: true,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeamDot }, 1e12, tx.xtokens.parachainV3(acala.paraId!)),
}
})
runXtokenstHorizontal(
'moonbeam transfer DOT to acala',
async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeamDot, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeamDot),
fromAccount: defaultAccounts.alith,

toChain: acalaClient,
toBalance: query.tokens(acalaDot),
toAccount: defaultAccounts.alice,

routeChain: polkadotClient,
isCheckUmp: true,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeamDot }, 1e12, tx.xtokens.parachainV3(acala.paraId!)),
}
},
{ skip: true }, // TODO: https://github.com/open-web3-stack/polkadot-ecosystem-tests/pull/109
)

runXtokenstHorizontal('acala transfer ACA to moonbeam', async () => {
return {
Expand All @@ -66,25 +70,29 @@ describe('acala & moonbeam', async () => {
}
})

runXtokenstHorizontal('moonbeam transfer ACA to acala', async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeam.custom.aca, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeam.custom.aca),
fromAccount: defaultAccounts.alith,

toChain: acalaClient,
toBalance: query.balances,
toAccount: defaultAccounts.bob,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeam.custom.aca }, 1e12, tx.xtokens.parachainV3(acala.paraId!)),
}
})
runXtokenstHorizontal(
'moonbeam transfer ACA to acala',
async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeam.custom.aca, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeam.custom.aca),
fromAccount: defaultAccounts.alith,

toChain: acalaClient,
toBalance: query.balances,
toAccount: defaultAccounts.bob,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeam.custom.aca }, 1e12, tx.xtokens.parachainV3(acala.paraId!)),
}
},
{ skip: true }, // TODO: https://github.com/open-web3-stack/polkadot-ecosystem-tests/pull/109
)

runXtokenstHorizontal('acala transfer LDOT to moonbeam', async () => {
return {
Expand All @@ -100,23 +108,27 @@ describe('acala & moonbeam', async () => {
}
})

runXtokenstHorizontal('moonbeam transfer LDOT to acala', async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeam.custom.ldot, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeam.custom.ldot),
fromAccount: defaultAccounts.alith,

toChain: acalaClient,
toBalance: query.tokens(acala.custom.ldot),
toAccount: defaultAccounts.bob,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeam.custom.ldot }, 1e12, tx.xtokens.parachainV3(acala.paraId!)),
}
})
runXtokenstHorizontal(
'moonbeam transfer LDOT to acala',
async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeam.custom.ldot, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeam.custom.ldot),
fromAccount: defaultAccounts.alith,

toChain: acalaClient,
toBalance: query.tokens(acala.custom.ldot),
toAccount: defaultAccounts.bob,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeam.custom.ldot }, 1e12, tx.xtokens.parachainV3(acala.paraId!)),
}
},
{ skip: true }, // TODO: https://github.com/open-web3-stack/polkadot-ecosystem-tests/pull/109
)
})
40 changes: 22 additions & 18 deletions packages/polkadot/src/hydration.moonbeam.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,32 @@ describe('hydration & moonbeam', async () => {
}
})

runXtokenstHorizontal('moonbeam transfer DOT to hydration', async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeamDot, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})
runXtokenstHorizontal(
'moonbeam transfer DOT to hydration',
async () => {
await moonbeamClient.dev.setStorage({
Assets: {
account: [[[moonbeamDot, defaultAccounts.alith.address], { balance: 10e12 }]],
},
})

return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeamDot),
fromAccount: defaultAccounts.alith,
return {
fromChain: moonbeamClient,
fromBalance: query.assets(moonbeamDot),
fromAccount: defaultAccounts.alith,

toChain: hydrationClient,
toBalance: query.tokens(hydrationDot),
toAccount: defaultAccounts.bob,
toChain: hydrationClient,
toBalance: query.tokens(hydrationDot),
toAccount: defaultAccounts.bob,

routeChain: polkadotClient,
isCheckUmp: true,
routeChain: polkadotClient,
isCheckUmp: true,

tx: tx.xtokens.transfer({ ForeignAsset: moonbeamDot }, 2e10, tx.xtokens.parachainV3(hydration.paraId!)),
}
})
tx: tx.xtokens.transfer({ ForeignAsset: moonbeamDot }, 2e10, tx.xtokens.parachainV3(hydration.paraId!)),
}
},
{ skip: true }, // TODO: https://github.com/open-web3-stack/polkadot-ecosystem-tests/pull/109
)

runXtokenstHorizontal('hydration transfer GLMR to moonbeam', async () => {
await hydrationClient.dev.setStorage({
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/xcm/runXtokenstHorizontal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export const runXtokenstHorizontal = (
isCheckUmp?: boolean
precision?: number
}>,
options: { only?: boolean } = {},
options: { only?: boolean; skip?: boolean } = {},
) => {
const itfn = options.only ? it.only : it
const itfn = options.only ? it.only : options.skip ? it.skip : it
itfn(
name,
async () => {
Expand Down