@moonbeam-network/xcm-config 1.0.0-dev.235 → 1.0.0-dev.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.mjs CHANGED
@@ -398,6 +398,7 @@ var assetsList = [
398
398
  pica,
399
399
  pink,
400
400
  pizza,
401
+ pizzaUSDC,
401
402
  ring,
402
403
  rmrk,
403
404
  sdn,
@@ -1450,6 +1451,7 @@ var moonbaseStage = new EvmParachain({
1450
1451
  });
1451
1452
  var moonlama = new EvmParachain({
1452
1453
  assets: [
1454
+ // this is actually the GLMR asset
1453
1455
  ChainAsset.fromAsset(lama, {
1454
1456
  address: "0x0000000000000000000000000000000000000802",
1455
1457
  decimals: 18,
@@ -1466,18 +1468,10 @@ var moonlama = new EvmParachain({
1466
1468
  }),
1467
1469
  ChainAsset.fromAsset(pizzaUSDC, {
1468
1470
  address: "0x385c00353cff4c3129306e0a6dcd1947e8354133",
1469
- decimals: 18,
1471
+ decimals: 6,
1470
1472
  ids: {
1471
1473
  palletInstance: 110
1472
1474
  }
1473
- }),
1474
- ChainAsset.fromAsset(glmr, {
1475
- address: "",
1476
- // NOT SURE ABOUT THIS
1477
- decimals: 18,
1478
- ids: {
1479
- palletInstance: 10
1480
- }
1481
1475
  })
1482
1476
  ],
1483
1477
  ecosystem: Ecosystem.MoonlamaRelay,
@@ -1495,6 +1489,7 @@ var moonlama = new EvmParachain({
1495
1489
  });
1496
1490
  var moonsama = new EvmParachain({
1497
1491
  assets: [
1492
+ // this is actually the MOVR asset
1498
1493
  ChainAsset.fromAsset(movrsama, {
1499
1494
  address: "0x0000000000000000000000000000000000000802",
1500
1495
  decimals: 18,
@@ -1502,7 +1497,8 @@ var moonsama = new EvmParachain({
1502
1497
  palletInstance: 3
1503
1498
  }
1504
1499
  }),
1505
- ChainAsset.fromAsset(glmr, {
1500
+ // this is actually the GLMR asset on Moonlama
1501
+ ChainAsset.fromAsset(lama, {
1506
1502
  address: "0xffffffff1a49463978f19dfd6983f2fa1885c254",
1507
1503
  decimals: 18,
1508
1504
  ids: {
@@ -1520,7 +1516,7 @@ var moonsama = new EvmParachain({
1520
1516
  }),
1521
1517
  ChainAsset.fromAsset(pizzaUSDC, {
1522
1518
  address: "0xffffffffa993c0ca4b46667277c3caaa5a4da783",
1523
- decimals: 18,
1519
+ decimals: 6,
1524
1520
  ids: {
1525
1521
  palletInstance: 3
1526
1522
  // NOT SURE ABOUT THIS
@@ -3102,6 +3098,32 @@ var moonlamaRoutes = new ChainRoutes({
3102
3098
  },
3103
3099
  extrinsic: ExtrinsicBuilder3().polkadotXcm().transferAssetsToEcosystem().X2(),
3104
3100
  monitoring: MonitoringBuilder3().monitorEvent().polkadotXcm().messageQueue()
3101
+ },
3102
+ {
3103
+ source: {
3104
+ asset: pizzaUSDC,
3105
+ balance: BalanceBuilder3().evm().erc20(),
3106
+ fee: {
3107
+ asset: lama,
3108
+ balance: BalanceBuilder3().evm().native()
3109
+ }
3110
+ },
3111
+ destination: {
3112
+ asset: pizzaUSDC,
3113
+ chain: moonsama,
3114
+ balance: BalanceBuilder3().evm().erc20(),
3115
+ fee: {
3116
+ asset: pizzaUSDC,
3117
+ amount: 1e-4,
3118
+ // amount: FeeBuilder().xcmPaymentApi().fromPalletInstance({
3119
+ // isAssetReserveChain: false,
3120
+ // isEcosystemBridge: true,
3121
+ // }),
3122
+ balance: BalanceBuilder3().substrate().system().account()
3123
+ }
3124
+ },
3125
+ extrinsic: ExtrinsicBuilder3().polkadotXcm().transferAssetsToEcosystem().X2(),
3126
+ monitoring: MonitoringBuilder3().monitorEvent().polkadotXcm().messageQueue()
3105
3127
  }
3106
3128
  ]
3107
3129
  });