From 04f22adbd2e763279b3759b58d28ccd16438fd1a Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Thu, 21 Mar 2024 22:13:16 +1300 Subject: [PATCH] add missing configurations for moonbase-alpha --- packages/config/src/chains.ts | 8 ++++++++ packages/config/src/configs/moonbaseAlpha.ts | 18 +++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 7d6604d0..11f0657e 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -748,6 +748,14 @@ export const moonbaseAlpha = new EvmParachain({ asset: ftmwh, id: '0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee', }, + { + asset: hdx, + id: '69606720909260275826784788104880799692', + }, + { + asset: usdcwh, + id: '0xD909178CC99d318e4D46e7E66a972955859670E1', + }, ], ecosystem: Ecosystem.AlphanetRelay, genesisHash: diff --git a/packages/config/src/configs/moonbaseAlpha.ts b/packages/config/src/configs/moonbaseAlpha.ts index 1169d1c2..0742e00c 100644 --- a/packages/config/src/configs/moonbaseAlpha.ts +++ b/packages/config/src/configs/moonbaseAlpha.ts @@ -11,6 +11,7 @@ import { tt1, tur, unit, + usdcwh, } from '../assets'; import { alphanetAssetHub, @@ -207,13 +208,28 @@ export const moonbaseAlphaConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: usdcwh, + balance: BalanceBuilder().evm().erc20(), + contract: ContractBuilder().Xtokens().transfer(), + destination: hydraDxAlphanet, + destinationFee: { + amount: 0.1, + asset: hdx, + balance: BalanceBuilder().substrate().system().account(), + }, + fee: { + asset: dev, + balance: BalanceBuilder().substrate().system().account(), + }, + }), new AssetConfig({ asset: ftmwh, balance: BalanceBuilder().evm().erc20(), contract: ContractBuilder().Xtokens().transfer(), destination: hydraDxAlphanet, destinationFee: { - amount: 0.1, // not sure + amount: 0.1, asset: hdx, balance: BalanceBuilder().substrate().system().account(), },