From c3fac9e6cc0088cae07dae5bddba3e7f2cc8a8f0 Mon Sep 17 00:00:00 2001 From: green-jay Date: Wed, 10 Jan 2024 13:14:10 +0100 Subject: [PATCH] configure fees --- packages/xcm-cfg/src/chains.ts | 6 ++++-- packages/xcm-cfg/src/configs/hydraDX.ts | 4 ++-- packages/xcm-cfg/src/configs/nodle.ts | 4 ++-- packages/xcm-cfg/src/configs/unique.ts | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/xcm-cfg/src/chains.ts b/packages/xcm-cfg/src/chains.ts index f9ffa467..8b7032ed 100644 --- a/packages/xcm-cfg/src/chains.ts +++ b/packages/xcm-cfg/src/chains.ts @@ -427,7 +427,7 @@ export const nodle = new Parachain({ // NOTE: no meta for native token { asset: nodl, - metadataId: 99999999, + id: 'NodleNative', }, ], ecosystem: Ecosystem.Polkadot, @@ -445,7 +445,7 @@ export const unique = new Parachain({ // NOTE: no meta for native token { asset: unq, - metadataId: 99999999, + id: 0, }, ], ecosystem: Ecosystem.Polkadot, @@ -471,6 +471,8 @@ export const chains: AnyChain[] = [ subsocial, zeitgeist, phala, + unique, + nodle ]; export const chainsMap = new Map( diff --git a/packages/xcm-cfg/src/configs/hydraDX.ts b/packages/xcm-cfg/src/configs/hydraDX.ts index 95743236..e0cafd27 100644 --- a/packages/xcm-cfg/src/configs/hydraDX.ts +++ b/packages/xcm-cfg/src/configs/hydraDX.ts @@ -418,7 +418,7 @@ const toNodle: AssetConfig[] = [ balance: BalanceBuilder().substrate().tokens().accounts(), destination: nodle, destinationFee: { - amount: 0.0018, + amount: 0.0012, asset: nodl, balance: BalanceBuilder().substrate().tokens().accounts(), }, @@ -436,7 +436,7 @@ const toUnique: AssetConfig[] = [ balance: BalanceBuilder().substrate().tokens().accounts(), destination: unique, destinationFee: { - amount: 0.000078, + amount: 0, asset: unq, balance: BalanceBuilder().substrate().tokens().accounts(), }, diff --git a/packages/xcm-cfg/src/configs/nodle.ts b/packages/xcm-cfg/src/configs/nodle.ts index 9850f0ce..eb374c59 100644 --- a/packages/xcm-cfg/src/configs/nodle.ts +++ b/packages/xcm-cfg/src/configs/nodle.ts @@ -13,11 +13,11 @@ export const nodleConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), destination: hydraDX, destinationFee: { - amount: 1.8, + amount: 0.2, asset: nodl, balance: BalanceBuilder().substrate().system().account(), }, - extrinsic: ExtrinsicBuilder().xTransfer().transfer().here(), + extrinsic: ExtrinsicBuilder().xTokens().transfer(), }), ], chain: nodle, diff --git a/packages/xcm-cfg/src/configs/unique.ts b/packages/xcm-cfg/src/configs/unique.ts index 926e3a38..a2ad14ea 100644 --- a/packages/xcm-cfg/src/configs/unique.ts +++ b/packages/xcm-cfg/src/configs/unique.ts @@ -13,11 +13,11 @@ export const uniqueConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), destination: hydraDX, destinationFee: { - amount: 1.8, + amount: 0.22, asset: unq, balance: BalanceBuilder().substrate().system().account(), }, - extrinsic: ExtrinsicBuilder().xTransfer().transfer().here(), + extrinsic: ExtrinsicBuilder().xTokens().transfer(), }), ], chain: unique,