@moonbeam-network/xcm-config 1.0.0-dev.238 → 1.0.0-dev.239
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.d.ts +2 -2
- package/build/index.mjs +43 -13
- package/build/index.mjs.map +1 -1
- package/package.json +4 -4
package/build/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare const kar: Asset;
|
|
|
35
35
|
declare const kbtc: Asset;
|
|
36
36
|
declare const kint: Asset;
|
|
37
37
|
declare const ksm: Asset;
|
|
38
|
-
declare const
|
|
38
|
+
declare const lamaGLMR: Asset;
|
|
39
39
|
declare const laos: Asset;
|
|
40
40
|
declare const ldot: Asset;
|
|
41
41
|
declare const lit: Asset;
|
|
@@ -309,4 +309,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
309
309
|
declare const xcmRoutesList: ChainRoutes[];
|
|
310
310
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
311
311
|
|
|
312
|
-
export { AssetRoute, type AssetRouteConstructorParams, ChainRoutes, type ChainRoutesConstructorParams, ConfigService, type ConfigServiceOptions, type DestinationConfig, type DestinationFeeConfig, type FeeConfig, type MoonChainConfig, type MoonChainFeeConfig, MrlAssetRoute, type MrlAssetRouteConstructorParams, MrlChainRoutes, type MrlChainRoutesConstructorParams, type MrlConfig, type MrlSourceConfig, type SourceConfig, aca, acala, agng, alan, alphanetAssetHub, alphanetRelay, ampe, apillon, aseed, assetsList, assetsMap, astar, astr, auq, axlusdc, bifrostKusama, bifrostPolkadot, bnc, centrifuge, cfg, chainsList, chainsMap, crab, crossEcosystemsRoutesList, crossEcosystemsRoutesMap, crustShadow, csm, dai, darwinia, darwiniaCrab, ded, dev, devBeta, devStage, dot, eq, eqd, eth, ethereum, eurc, fantomTestnet, fil, ftm, ftmwh, getKey, getMoonChain, glmr, hdx, hydration, hydrationAlphanet, ibtc, integritee, interlay, intr, kar, karura, kbtc, kint, kintsugi, ksm, kusama, kusamaAssetHub,
|
|
312
|
+
export { AssetRoute, type AssetRouteConstructorParams, ChainRoutes, type ChainRoutesConstructorParams, ConfigService, type ConfigServiceOptions, type DestinationConfig, type DestinationFeeConfig, type FeeConfig, type MoonChainConfig, type MoonChainFeeConfig, MrlAssetRoute, type MrlAssetRouteConstructorParams, MrlChainRoutes, type MrlChainRoutesConstructorParams, type MrlConfig, type MrlSourceConfig, type SourceConfig, aca, acala, agng, alan, alphanetAssetHub, alphanetRelay, ampe, apillon, aseed, assetsList, assetsMap, astar, astr, auq, axlusdc, bifrostKusama, bifrostPolkadot, bnc, centrifuge, cfg, chainsList, chainsMap, crab, crossEcosystemsRoutesList, crossEcosystemsRoutesMap, crustShadow, csm, dai, darwinia, darwiniaCrab, ded, dev, devBeta, devStage, dot, eq, eqd, eth, ethereum, eurc, fantomTestnet, fil, ftm, ftmwh, getKey, getMoonChain, glmr, hdx, hydration, hydrationAlphanet, ibtc, integritee, interlay, intr, kar, karura, kbtc, kint, kintsugi, ksm, kusama, kusamaAssetHub, lamaGLMR, laos, laosAlphanet, laosMainnet, ldot, lit, manta, mantaParachain, maos, moonbaseAlpha, moonbaseBeta, moonbaseStage, moonbeam, moonlama, moonriver, moonsama, movr, movrsama, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, phala, pica, pink, pizza, pizzaUSDC, polkadot, polkadotAssetHub, ring, rmrk, robonomics, sdn, shiden, soon, stink, sub, teer, tnkr, tt1, tur, turingAlphanet, uniqueAlpha, unit, usdc, usdcwh, usdt, usdtwh, vastr, vbnc, vdot, vfil, vglmr, vksm, vmanta, vmovr, wbtc, wbtce, weth, wethe, wftm, wifd, wstethe, xcmRoutesList, xcmRoutesMap, xrt, zeitgeist, ztg };
|
package/build/index.mjs
CHANGED
|
@@ -136,9 +136,9 @@ var ksm = new Asset({
|
|
|
136
136
|
key: "ksm",
|
|
137
137
|
originSymbol: "KSM"
|
|
138
138
|
});
|
|
139
|
-
var
|
|
140
|
-
key: "lama",
|
|
141
|
-
originSymbol: "
|
|
139
|
+
var lamaGLMR = new Asset({
|
|
140
|
+
key: "lama-glmr",
|
|
141
|
+
originSymbol: "lamaGLMR"
|
|
142
142
|
});
|
|
143
143
|
var laos = new Asset({
|
|
144
144
|
key: "laos",
|
|
@@ -379,7 +379,7 @@ var assetsList = [
|
|
|
379
379
|
kbtc,
|
|
380
380
|
kint,
|
|
381
381
|
ksm,
|
|
382
|
-
|
|
382
|
+
lamaGLMR,
|
|
383
383
|
laos,
|
|
384
384
|
ldot,
|
|
385
385
|
lit,
|
|
@@ -1452,7 +1452,7 @@ var moonbaseStage = new EvmParachain({
|
|
|
1452
1452
|
var moonlama = new EvmParachain({
|
|
1453
1453
|
assets: [
|
|
1454
1454
|
// this is actually the GLMR asset
|
|
1455
|
-
ChainAsset.fromAsset(
|
|
1455
|
+
ChainAsset.fromAsset(lamaGLMR, {
|
|
1456
1456
|
address: "0x0000000000000000000000000000000000000802",
|
|
1457
1457
|
decimals: 18,
|
|
1458
1458
|
ids: {
|
|
@@ -1480,7 +1480,7 @@ var moonlama = new EvmParachain({
|
|
|
1480
1480
|
isTestChain: true,
|
|
1481
1481
|
key: "moonlama",
|
|
1482
1482
|
name: "Moonlama",
|
|
1483
|
-
nativeAsset:
|
|
1483
|
+
nativeAsset: lamaGLMR,
|
|
1484
1484
|
parachainId: 2004,
|
|
1485
1485
|
relayGenesisHash: "0xd0a2c75ad080394edaaa9cd1c766b543478efb415db1b6cd7772536c9a413167",
|
|
1486
1486
|
rpc: "https://moonlama.api.moondev.network",
|
|
@@ -1498,7 +1498,7 @@ var moonsama = new EvmParachain({
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}),
|
|
1500
1500
|
// this is actually the GLMR asset on Moonlama
|
|
1501
|
-
ChainAsset.fromAsset(
|
|
1501
|
+
ChainAsset.fromAsset(lamaGLMR, {
|
|
1502
1502
|
address: "0xffffffff1a49463978f19dfd6983f2fa1885c254",
|
|
1503
1503
|
decimals: 18,
|
|
1504
1504
|
ids: {
|
|
@@ -3074,12 +3074,40 @@ import { Ecosystem as Ecosystem3 } from "@moonbeam-network/xcm-types";
|
|
|
3074
3074
|
var moonlamaRoutes = new ChainRoutes({
|
|
3075
3075
|
chain: moonlama,
|
|
3076
3076
|
routes: [
|
|
3077
|
+
{
|
|
3078
|
+
source: {
|
|
3079
|
+
asset: lamaGLMR,
|
|
3080
|
+
balance: BalanceBuilder3().evm().native(),
|
|
3081
|
+
fee: {
|
|
3082
|
+
asset: lamaGLMR,
|
|
3083
|
+
balance: BalanceBuilder3().evm().native()
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3086
|
+
destination: {
|
|
3087
|
+
asset: lamaGLMR,
|
|
3088
|
+
chain: moonsama,
|
|
3089
|
+
balance: BalanceBuilder3().evm().erc20(),
|
|
3090
|
+
fee: {
|
|
3091
|
+
asset: lamaGLMR,
|
|
3092
|
+
amount: 1e-4,
|
|
3093
|
+
// amount: FeeBuilder().xcmPaymentApi().fromPalletInstance({
|
|
3094
|
+
// isAssetReserveChain: false,
|
|
3095
|
+
// isEcosystemBridge: true,
|
|
3096
|
+
// }),
|
|
3097
|
+
balance: BalanceBuilder3().substrate().system().account()
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
3100
|
+
extrinsic: ExtrinsicBuilder3().polkadotXcm().transferAssetsToEcosystem().X4({
|
|
3101
|
+
globalConsensus: Ecosystem3.Kusama
|
|
3102
|
+
}),
|
|
3103
|
+
monitoring: MonitoringBuilder3().monitorEvent().polkadotXcm().messageQueue()
|
|
3104
|
+
},
|
|
3077
3105
|
{
|
|
3078
3106
|
source: {
|
|
3079
3107
|
asset: pizza,
|
|
3080
3108
|
balance: BalanceBuilder3().evm().erc20(),
|
|
3081
3109
|
fee: {
|
|
3082
|
-
asset:
|
|
3110
|
+
asset: lamaGLMR,
|
|
3083
3111
|
balance: BalanceBuilder3().evm().native()
|
|
3084
3112
|
}
|
|
3085
3113
|
},
|
|
@@ -3097,7 +3125,9 @@ var moonlamaRoutes = new ChainRoutes({
|
|
|
3097
3125
|
balance: BalanceBuilder3().substrate().system().account()
|
|
3098
3126
|
}
|
|
3099
3127
|
},
|
|
3100
|
-
extrinsic: ExtrinsicBuilder3().polkadotXcm().transferAssetsToEcosystem().X2(
|
|
3128
|
+
extrinsic: ExtrinsicBuilder3().polkadotXcm().transferAssetsToEcosystem().X2({
|
|
3129
|
+
globalConsensus: Ecosystem3.Kusama
|
|
3130
|
+
}),
|
|
3101
3131
|
monitoring: MonitoringBuilder3().monitorEvent().polkadotXcm().messageQueue()
|
|
3102
3132
|
},
|
|
3103
3133
|
{
|
|
@@ -3105,7 +3135,7 @@ var moonlamaRoutes = new ChainRoutes({
|
|
|
3105
3135
|
asset: pizzaUSDC,
|
|
3106
3136
|
balance: BalanceBuilder3().evm().erc20(),
|
|
3107
3137
|
fee: {
|
|
3108
|
-
asset:
|
|
3138
|
+
asset: lamaGLMR,
|
|
3109
3139
|
balance: BalanceBuilder3().evm().native()
|
|
3110
3140
|
}
|
|
3111
3141
|
},
|
|
@@ -3151,11 +3181,11 @@ var moonsamaRoutes = new ChainRoutes({
|
|
|
3151
3181
|
}
|
|
3152
3182
|
},
|
|
3153
3183
|
destination: {
|
|
3154
|
-
asset:
|
|
3184
|
+
asset: lamaGLMR,
|
|
3155
3185
|
chain: moonlama,
|
|
3156
3186
|
balance: BalanceBuilder4().evm().erc20(),
|
|
3157
3187
|
fee: {
|
|
3158
|
-
asset:
|
|
3188
|
+
asset: lamaGLMR,
|
|
3159
3189
|
amount: FeeBuilder3().xcmPaymentApi().fromAssetIdQuery({
|
|
3160
3190
|
isAssetReserveChain: false,
|
|
3161
3191
|
isEcosystemBridge: true
|
|
@@ -10273,7 +10303,7 @@ export {
|
|
|
10273
10303
|
ksm,
|
|
10274
10304
|
kusama,
|
|
10275
10305
|
kusamaAssetHub,
|
|
10276
|
-
|
|
10306
|
+
lamaGLMR,
|
|
10277
10307
|
laos,
|
|
10278
10308
|
laosAlphanet,
|
|
10279
10309
|
laosMainnet,
|