diff --git a/packages/xcm-cfg/src/chains.ts b/packages/xcm-cfg/src/chains.ts index 6c0072bc..93cf3d8d 100644 --- a/packages/xcm-cfg/src/chains.ts +++ b/packages/xcm-cfg/src/chains.ts @@ -124,6 +124,12 @@ export const bifrost = new Parachain({ metadataId: { VToken2: 0 }, decimals: 10, }, + { + asset: dot, + id: { Token2: 0 }, + metadataId: { Token2: 0 }, + decimals: 10, + }, ], ecosystem: Ecosystem.Polkadot, genesisHash: diff --git a/packages/xcm-cfg/src/configs/bifrost.ts b/packages/xcm-cfg/src/configs/bifrost.ts index 8cfe63ef..4e232bde 100644 --- a/packages/xcm-cfg/src/configs/bifrost.ts +++ b/packages/xcm-cfg/src/configs/bifrost.ts @@ -4,7 +4,7 @@ import { } from '@moonbeam-network/xcm-builder'; import { AssetConfig, ChainConfig } from '@moonbeam-network/xcm-config'; -import { bnc, vdot } from '../assets'; +import { bnc, vdot, dot } from '../assets'; import { bifrost, hydraDX } from '../chains'; import { ExtrinsicBuilderV2 } from '../builders'; @@ -35,6 +35,21 @@ const toHydraDX: AssetConfig[] = [ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: dot, + balance: BalanceBuilder().substrate().tokens().accounts(), + destination: hydraDX, + destinationFee: { + amount: 0.0013, + asset: dot, + balance: BalanceBuilder().substrate().tokens().accounts(), + }, + extrinsic: ExtrinsicBuilderV2().xTokens().transfer(), + fee: { + asset: bnc, + balance: BalanceBuilder().substrate().system().account(), + } + }), ]; export const bifrostConfig = new ChainConfig({ diff --git a/packages/xcm-cfg/src/configs/hydraDX.ts b/packages/xcm-cfg/src/configs/hydraDX.ts index e0cafd27..b02bdeba 100644 --- a/packages/xcm-cfg/src/configs/hydraDX.ts +++ b/packages/xcm-cfg/src/configs/hydraDX.ts @@ -182,6 +182,21 @@ const toBifrost: AssetConfig[] = [ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: dot, + balance: BalanceBuilder().substrate().tokens().accounts(), + destination: bifrost, + destinationFee: { + amount: 0.001, + asset: dot, + balance: BalanceBuilder().substrate().tokens().accounts(), + }, + extrinsic: ExtrinsicBuilder().xTokens().transfer(), + fee: { + asset: hdx, + balance: BalanceBuilder().substrate().system().account(), + }, + }), ]; const toCentrifuge: AssetConfig[] = [