Skip to content

Commit

Permalink
add destination min balance builders and fix aseed configuration in m…
Browse files Browse the repository at this point in the history
…oonriver
  • Loading branch information
mmaurello committed Nov 14, 2024
1 parent 6ace529 commit 9b4ea34
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 26 deletions.
11 changes: 10 additions & 1 deletion packages/config/src/xcm-configs/moonbaseAlpha.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { BalanceBuilder, ContractBuilder } from '@moonbeam-network/xcm-builder';
import {
AssetMinBuilder,
BalanceBuilder,
ContractBuilder,
} from '@moonbeam-network/xcm-builder';
import {
agng,
alan,
Expand Down Expand Up @@ -243,6 +247,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({
amount: 5,
asset: tt1,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -419,6 +424,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({
amount: 0.00000001,
asset: dev,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -442,6 +448,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({
amount: 0.01,
asset: ftmwh,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -484,6 +491,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({
amount: 0.00000001,
asset: dev,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand All @@ -507,6 +515,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({
amount: 0.01,
asset: ftmwh,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand Down
27 changes: 26 additions & 1 deletion packages/config/src/xcm-configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
ldot,
manta,
neuro,
nodl,
peaq,
pen,
pha,
Expand Down Expand Up @@ -86,6 +85,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.01,
asset: glmr,
},
min: AssetMinBuilder().assetRegistry().assetMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -124,6 +124,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.000001,
asset: glmr,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -181,6 +182,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.1,
asset: glmr,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -307,6 +309,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.256,
asset: aseed,
},
min: AssetMinBuilder().assetRegistry().assetMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -468,6 +471,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.001,
asset: ldot,
},
min: AssetMinBuilder().assetRegistry().assetMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -606,6 +610,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.02,
asset: usdt,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -629,6 +634,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.02,
asset: usdc,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -870,6 +876,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: vastr,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -893,6 +900,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.0000001,
asset: vdot,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -916,6 +924,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00000001,
asset: vfil,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -939,6 +948,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00000001,
asset: vglmr,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -962,6 +972,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00000001,
asset: vmanta,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -1031,6 +1042,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00000001,
asset: fil,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -1100,6 +1112,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.0001,
asset: bncs,
},
min: AssetMinBuilder().assetRegistry().currencyMetadatas(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -1119,6 +1132,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00000001,
asset: glmr,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -1142,6 +1156,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: usdcwh,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -1165,6 +1180,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: usdtwh,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -1188,6 +1204,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: dai,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -1211,6 +1228,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.000001,
asset: weth,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand All @@ -1234,6 +1252,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.000001,
asset: wbtc,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transfer(),
},
Expand Down Expand Up @@ -1276,6 +1295,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00000001,
asset: glmr,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand All @@ -1299,6 +1319,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: usdcwh,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand All @@ -1322,6 +1343,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: usdtwh,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand All @@ -1345,6 +1367,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.00001,
asset: dai,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand All @@ -1368,6 +1391,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.000001,
asset: weth,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand All @@ -1391,6 +1415,7 @@ export const moonbeamRoutes = new ChainRoutes({
amount: 0.000001,
asset: wbtc,
},
min: AssetMinBuilder().assets().asset(),
},
contract: ContractBuilder().Xtokens().transferWithEvmTo32(),
},
Expand Down
Loading

0 comments on commit 9b4ea34

Please sign in to comment.