From 71ee2878876bad059f487a488c3cc3ecf84c679f Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Fri, 29 Dec 2023 21:06:03 +1300 Subject: [PATCH] finish config --- packages/config/src/chains.ts | 4 +-- packages/config/src/configs/moonbeam.ts | 41 ++++++++++++++++--------- packages/config/src/configs/pendulum.ts | 2 +- 3 files changed, 29 insertions(+), 18 deletions(-) diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 471a0b30..3eda27a3 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -1170,7 +1170,7 @@ export const pendulum = new Parachain({ { asset: glmr, decimals: 18, - id: { XCM: 1 }, + id: { XCM: 6 }, }, ], ecosystem: Ecosystem.Polkadot, @@ -1180,7 +1180,7 @@ export const pendulum = new Parachain({ name: 'Pendulum', parachainId: 2094, ss58Format: 56, - ws: 'wss://pendulum-rpc.dwellir.com/', + ws: 'wss://rpc-pendulum.prd.pendulumchain.tech', }); export const pendulumAlphanet = new Parachain({ diff --git a/packages/config/src/configs/moonbeam.ts b/packages/config/src/configs/moonbeam.ts index b88a75b3..3d9c281e 100644 --- a/packages/config/src/configs/moonbeam.ts +++ b/packages/config/src/configs/moonbeam.ts @@ -146,6 +146,17 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: glmr, + balance: BalanceBuilder().substrate().system().account(), + contract: ContractBuilder().Xtokens().transfer(), + destination: pendulum, + destinationFee: { + amount: 0.0002, // + asset: glmr, + balance: BalanceBuilder().substrate().system().account(), + }, + }), new AssetConfig({ asset: aca, balance: BalanceBuilder().substrate().assets().account(), @@ -356,6 +367,21 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), + new AssetConfig({ + asset: pen, + balance: BalanceBuilder().substrate().assets().account(), + contract: ContractBuilder().Xtokens().transfer(), + destination: pendulum, + destinationFee: { + amount: 0.01, + asset: pen, + balance: BalanceBuilder().substrate().assets().account(), + }, + fee: { + asset: glmr, + balance: BalanceBuilder().substrate().system().account(), + }, + }), new AssetConfig({ asset: pha, balance: BalanceBuilder().substrate().assets().account(), @@ -581,21 +607,6 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), - new AssetConfig({ - asset: pen, - balance: BalanceBuilder().substrate().assets().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: pendulum, - destinationFee: { - amount: 0.01, - asset: pen, - balance: BalanceBuilder().substrate().assets().account(), - }, - fee: { - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - }, - }), new AssetConfig({ asset: sub, balance: BalanceBuilder().substrate().assets().account(), diff --git a/packages/config/src/configs/pendulum.ts b/packages/config/src/configs/pendulum.ts index 1e232f69..a8876599 100644 --- a/packages/config/src/configs/pendulum.ts +++ b/packages/config/src/configs/pendulum.ts @@ -26,7 +26,7 @@ export const pendulumConfig = new ChainConfig({ balance: BalanceBuilder().substrate().tokens().accounts(), destination: moonbeam, destinationFee: { - amount: 0.01, // TODO + amount: 0.01, asset: glmr, balance: BalanceBuilder().substrate().tokens().accounts(), },