Skip to content

Commit

Permalink
moonbeam to ethereum configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Dec 19, 2024
1 parent ab5db81 commit 11570f0
Showing 1 changed file with 174 additions and 3 deletions.
177 changes: 174 additions & 3 deletions packages/config/src/mrl-configs/moonbeam.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,54 @@
import { BalanceBuilder, MrlBuilder } from '@moonbeam-network/xcm-builder';
import { glmr, peaq } from '../assets';
import {
dai,
eth,
glmr,
peaq,
usdc,
usdcwh,
usdt,
usdtwh,
wbtc,
weth,
} from '../assets';
import { ethereum, moonbeam } from '../chains';
import { MrlChainRoutes } from '../types/MrlChainRoutes';

export const moonbeamRoutes = new MrlChainRoutes({
chain: moonbeam,
routes: [
{
source: {
asset: weth,
balance: BalanceBuilder().evm().erc20(),
destinationFee: {
asset: weth,
balance: BalanceBuilder().evm().erc20(),
},
},
destination: {
asset: eth,
chain: ethereum,
balance: BalanceBuilder().evm().native(),
fee: {
asset: eth,
amount: 0,
},
},
mrl: {
isAutomaticPossible: true,
transfer: MrlBuilder().wormhole().wormhole().tokenTransfer(),
moonChain: {
asset: weth,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: glmr,
amount: 0,
balance: BalanceBuilder().substrate().system().account(),
},
},
},
},
{
source: {
asset: peaq,
Expand All @@ -21,7 +64,7 @@ export const moonbeamRoutes = new MrlChainRoutes({
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: peaq,
amount: 0.004,
amount: 0,
},
},
mrl: {
Expand All @@ -32,7 +75,135 @@ export const moonbeamRoutes = new MrlChainRoutes({
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: glmr,
amount: 0.15,
amount: 0,
balance: BalanceBuilder().substrate().system().account(),
},
},
},
},
{
source: {
asset: usdcwh,
balance: BalanceBuilder().evm().erc20(),
destinationFee: {
asset: usdcwh,
balance: BalanceBuilder().evm().erc20(),
},
},
destination: {
asset: usdc,
chain: ethereum,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: usdc,
amount: 0,
},
},
mrl: {
isAutomaticPossible: true,
transfer: MrlBuilder().wormhole().wormhole().tokenTransfer(),
moonChain: {
asset: usdcwh,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: glmr,
amount: 0,
balance: BalanceBuilder().substrate().system().account(),
},
},
},
},
{
source: {
asset: usdtwh,
balance: BalanceBuilder().evm().erc20(),
destinationFee: {
asset: usdtwh,
balance: BalanceBuilder().evm().erc20(),
},
},
destination: {
asset: usdt,
chain: ethereum,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: usdt,
amount: 0,
},
},
mrl: {
isAutomaticPossible: true,
transfer: MrlBuilder().wormhole().wormhole().tokenTransfer(),
moonChain: {
asset: usdtwh,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: glmr,
amount: 0,
balance: BalanceBuilder().substrate().system().account(),
},
},
},
},
{
source: {
asset: dai,
balance: BalanceBuilder().evm().erc20(),
destinationFee: {
asset: dai,
balance: BalanceBuilder().evm().erc20(),
},
},
destination: {
asset: dai,
chain: ethereum,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: dai,
amount: 0,
},
},
mrl: {
isAutomaticPossible: true,
transfer: MrlBuilder().wormhole().wormhole().tokenTransfer(),
moonChain: {
asset: dai,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: glmr,
amount: 0,
balance: BalanceBuilder().substrate().system().account(),
},
},
},
},
{
source: {
asset: wbtc,
balance: BalanceBuilder().evm().erc20(),
destinationFee: {
asset: wbtc,
balance: BalanceBuilder().evm().erc20(),
},
},
destination: {
asset: wbtc,
chain: ethereum,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: wbtc,
amount: 0,
},
},
mrl: {
isAutomaticPossible: true,
transfer: MrlBuilder().wormhole().wormhole().tokenTransfer(),
moonChain: {
asset: wbtc,
balance: BalanceBuilder().evm().erc20(),
fee: {
asset: glmr,
amount: 0,
balance: BalanceBuilder().substrate().system().account(),
},
},
Expand Down

0 comments on commit 11570f0

Please sign in to comment.