-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* standarize transferAsset and feeAsset * -wip- implement relay fee to transfers coming from parachains * clean * unify wh builder args * revert change in extrinsic builder and add relay fee calculation in source data withj provider checking * revert deconstructing not needed * address TODOs * remove provider enum and apply fixes * change property name
- Loading branch information
Showing
15 changed files
with
238 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { BalanceBuilder, MrlBuilder } from '@moonbeam-network/xcm-builder'; | ||
import { betaDEV, dev, ftm, ftmwh } from '../assets'; | ||
import { fantomTestnet, moonbaseBeta } from '../chains'; | ||
import { ChainRoutes } from '../types/ChainRoutes'; | ||
|
||
export const moonbaseBetaRoutes = new ChainRoutes({ | ||
chain: moonbaseBeta, | ||
routes: [ | ||
{ | ||
source: { | ||
asset: ftmwh, | ||
balance: BalanceBuilder().substrate().assets().account(), | ||
destinationFee: { | ||
asset: ftmwh, | ||
balance: BalanceBuilder().substrate().assets().account(), | ||
}, | ||
fee: { | ||
asset: betaDEV, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
}, | ||
destination: { | ||
asset: ftm, | ||
chain: fantomTestnet, | ||
balance: BalanceBuilder().evm().native(), | ||
fee: { | ||
asset: ftm, | ||
amount: 0, | ||
}, | ||
}, | ||
mrl: { | ||
isAutomaticPossible: true, | ||
transfer: MrlBuilder().wormhole().extrinsic().polkadotXcm().send(), | ||
moonChain: { | ||
asset: ftmwh, | ||
fee: { | ||
asset: dev, | ||
amount: 0.1, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.