Skip to content

Commit

Permalink
add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
green-jay committed Dec 23, 2024
1 parent 27af916 commit 69888aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-peaches-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@galacticcouncil/xcm-cfg': minor
---

lowers usdc fee
12 changes: 6 additions & 6 deletions examples/xcm-transfer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const wallet = new Wallet({
configureExternal(externals, configService);

// Define transfer
const srcChain = configService.getChain('ethereum');
const destChain = configService.getChain('hydration');
const asset = configService.getAsset('eth');
const srcChain = configService.getChain('hydration');
const destChain = configService.getChain('assethub');
const asset = configService.getAsset('usdc');

const configBuilder = ConfigBuilder(configService);
const { sourceChains } = configBuilder.assets().asset(asset);
Expand All @@ -71,8 +71,8 @@ logDestChains(asset.key, destinationChains);
logSrcChains(asset.key, sourceChains);

// Define source & dest accounts
const srcAddr = 'INSERT_ADDRESS';
const destAddr = 'INSERT_ADDRESS';
const srcAddr = '7NPoMQbiA6trJKkjB35uk96MeJD4PGWkLQLH7k7hXEkZpiba';
const destAddr = '7NPoMQbiA6trJKkjB35uk96MeJD4PGWkLQLH7k7hXEkZpiba';

// Subscribe source chain token balance
const balanceObserver = (balances: AssetAmount[]) => console.log(balances);
Expand Down Expand Up @@ -101,7 +101,7 @@ const feeInfo = [
fee.toDecimal(fee.decimals),
fee.originSymbol,
].join(' ');
const call: XCall = await xTransfer.buildCall('0.1');
const call: XCall = await xTransfer.buildCall('1');

// Dump transfer info
console.log(xTransfer);
Expand Down

0 comments on commit 69888aa

Please sign in to comment.