diff --git a/packages/xcm-cfg/src/chains.ts b/packages/xcm-cfg/src/chains.ts index 93cf3d8d..2219d735 100644 --- a/packages/xcm-cfg/src/chains.ts +++ b/packages/xcm-cfg/src/chains.ts @@ -399,6 +399,16 @@ export const zeitgeist = new Parachain({ asset: ztg, id: 'Ztg', }, + { + asset: usdc_mwh, + id: { ForeignAsset: 1 }, + decimals: 6, + }, + { + asset: glmr, + id: { ForeignAsset: 3 }, + decimals: 18, + }, ], ecosystem: Ecosystem.Polkadot, genesisHash: diff --git a/packages/xcm-cfg/src/configs/hydraDX.ts b/packages/xcm-cfg/src/configs/hydraDX.ts index d1e8ca5e..2d28228c 100644 --- a/packages/xcm-cfg/src/configs/hydraDX.ts +++ b/packages/xcm-cfg/src/configs/hydraDX.ts @@ -407,6 +407,21 @@ const toZeitgeist: AssetConfig[] = [ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: usdc_mwh, + balance: BalanceBuilder().substrate().tokens().accounts(), + destination: zeitgeist, + destinationFee: { + amount: 0.1, + asset: glmr, + balance: BalanceBuilder().substrate().tokens().accounts(), + }, + extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(), + fee: { + asset: hdx, + balance: BalanceBuilder().substrate().system().account(), + }, + }), ]; const toPhala: AssetConfig[] = [ diff --git a/packages/xcm-cfg/src/configs/zeitgeist.ts b/packages/xcm-cfg/src/configs/zeitgeist.ts index e958b8ca..0f3e3f64 100644 --- a/packages/xcm-cfg/src/configs/zeitgeist.ts +++ b/packages/xcm-cfg/src/configs/zeitgeist.ts @@ -4,7 +4,7 @@ import { } from '@moonbeam-network/xcm-builder'; import { AssetConfig, ChainConfig } from '@moonbeam-network/xcm-config'; -import { ztg } from '../assets'; +import { usdc_mwh, ztg, glmr } from '../assets'; import { hydraDX, zeitgeist } from '../chains'; const toHydraDX: AssetConfig[] = [ @@ -19,6 +19,21 @@ const toHydraDX: AssetConfig[] = [ }, extrinsic: ExtrinsicBuilder().xTokens().transfer(), }), + new AssetConfig({ + asset: usdc_mwh, + balance: BalanceBuilder().substrate().tokens().accounts(), + destination: hydraDX, + destinationFee: { + amount: 0.1, + asset: glmr, + balance: BalanceBuilder().substrate().tokens().accounts(), + }, + extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(), + fee: { + asset: ztg, + balance: BalanceBuilder().substrate().system().account(), + }, + }), ]; export const zeitgeistConfig = new ChainConfig({