@moonbeam-network/xcm-config 1.0.0-dev.153 → 1.0.0-dev.155
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 +4 -1
- package/build/index.mjs +207 -0
- package/build/index.mjs.map +1 -1
- package/package.json +7 -7
package/build/index.d.ts
CHANGED
|
@@ -212,6 +212,9 @@ declare const wftm: Asset;
|
|
|
212
212
|
declare const wifd: Asset;
|
|
213
213
|
declare const xrt: Asset;
|
|
214
214
|
declare const ztg: Asset;
|
|
215
|
+
declare const wbtce: Asset;
|
|
216
|
+
declare const wstethe: Asset;
|
|
217
|
+
declare const wethe: Asset;
|
|
215
218
|
declare const assetsList: Asset[];
|
|
216
219
|
declare const assetsMap: Map<string, Asset>;
|
|
217
220
|
|
|
@@ -275,4 +278,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
275
278
|
declare const xcmRoutesList: ChainRoutes[];
|
|
276
279
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
277
280
|
|
|
278
|
-
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, atom, auq, axlusdc, betaDEV, bifrostKusama, bifrostPolkadot, bnc, bncs, calamari, centrifuge, cfg, chainsList, chainsMap, crab, crustShadow, csm, dai, darwinia, darwiniaCrab, ded, dev, dot, eq, eqd, fantomTestnet, fil, ftm, ftmwh, getKey, getMoonChain, glmr, hdx, hydration, hydrationAlphanet, ibtc, integritee, interlay, intr, kar, karura, kbtc, khala, kint, kintsugi, kma, ksm, kusama, kusamaAssetHub, ldot, lit, mangataKusama, manta, mantaParachain, mgx, moonbaseAlpha, moonbaseBeta, moonbeam, moonriver, movr, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, phala, pica, picasso, picassoAlphanet, pink, polkadot, polkadotAssetHub, ring, rmrk, robonomics, sdn, shiden, soon, stink, sub, subsocial, teer, tinkernet, tnkr, tt1, tur, turing, turingAlphanet, uniqueAlpha, unit, usdc, usdcwh, usdt, usdtwh, vastr, vbnc, vdot, vfil, vglmr, vksm, vmanta, vmovr, wbtc, weth, wftm, wifd, xcmRoutesList, xcmRoutesMap, xrt, zeitgeist, ztg };
|
|
281
|
+
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, atom, auq, axlusdc, betaDEV, bifrostKusama, bifrostPolkadot, bnc, bncs, calamari, centrifuge, cfg, chainsList, chainsMap, crab, crustShadow, csm, dai, darwinia, darwiniaCrab, ded, dev, dot, eq, eqd, fantomTestnet, fil, ftm, ftmwh, getKey, getMoonChain, glmr, hdx, hydration, hydrationAlphanet, ibtc, integritee, interlay, intr, kar, karura, kbtc, khala, kint, kintsugi, kma, ksm, kusama, kusamaAssetHub, ldot, lit, mangataKusama, manta, mantaParachain, mgx, moonbaseAlpha, moonbaseBeta, moonbeam, moonriver, movr, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, phala, pica, picasso, picassoAlphanet, pink, polkadot, polkadotAssetHub, ring, rmrk, robonomics, sdn, shiden, soon, stink, sub, subsocial, teer, tinkernet, tnkr, tt1, tur, turing, 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
|
@@ -312,6 +312,18 @@ var ztg = new Asset({
|
|
|
312
312
|
key: "ztg",
|
|
313
313
|
originSymbol: "ZTG"
|
|
314
314
|
});
|
|
315
|
+
var wbtce = new Asset({
|
|
316
|
+
key: "wbtce",
|
|
317
|
+
originSymbol: "WBTC.e"
|
|
318
|
+
});
|
|
319
|
+
var wstethe = new Asset({
|
|
320
|
+
key: "wstethe",
|
|
321
|
+
originSymbol: "wstETH.e"
|
|
322
|
+
});
|
|
323
|
+
var wethe = new Asset({
|
|
324
|
+
key: "wethe",
|
|
325
|
+
originSymbol: "WETH.e"
|
|
326
|
+
});
|
|
315
327
|
var assetsList = [
|
|
316
328
|
aca,
|
|
317
329
|
agng,
|
|
@@ -386,9 +398,12 @@ var assetsList = [
|
|
|
386
398
|
vmanta,
|
|
387
399
|
vmovr,
|
|
388
400
|
wbtc,
|
|
401
|
+
wbtce,
|
|
389
402
|
weth,
|
|
403
|
+
wethe,
|
|
390
404
|
wftm,
|
|
391
405
|
wifd,
|
|
406
|
+
wstethe,
|
|
392
407
|
xrt,
|
|
393
408
|
ztg
|
|
394
409
|
];
|
|
@@ -1598,6 +1613,27 @@ var moonbeam = new EvmParachain({
|
|
|
1598
1613
|
ids: {
|
|
1599
1614
|
id: "61295607754960722617854661686514597014"
|
|
1600
1615
|
}
|
|
1616
|
+
}),
|
|
1617
|
+
ChainAsset.fromAsset(wbtce, {
|
|
1618
|
+
address: "0xffffffff1b4bb1ac5749f73d866ffc91a3432c47",
|
|
1619
|
+
decimals: 8,
|
|
1620
|
+
ids: {
|
|
1621
|
+
id: "36282181791341254438422467838694599751"
|
|
1622
|
+
}
|
|
1623
|
+
}),
|
|
1624
|
+
ChainAsset.fromAsset(wethe, {
|
|
1625
|
+
address: "0xffffffff86829afe1521ad2296719df3ace8ded7",
|
|
1626
|
+
decimals: 18,
|
|
1627
|
+
ids: {
|
|
1628
|
+
id: "178794693648360392906933130845919698647"
|
|
1629
|
+
}
|
|
1630
|
+
}),
|
|
1631
|
+
ChainAsset.fromAsset(wstethe, {
|
|
1632
|
+
address: "0xffffffff5d5deb44bf7278dee5381beb24cb6573",
|
|
1633
|
+
decimals: 18,
|
|
1634
|
+
ids: {
|
|
1635
|
+
id: "124105859028862849477017063633156007283"
|
|
1636
|
+
}
|
|
1601
1637
|
})
|
|
1602
1638
|
],
|
|
1603
1639
|
ecosystem: Ecosystem.Polkadot,
|
|
@@ -2254,6 +2290,18 @@ var polkadotAssetHub = new Parachain({
|
|
|
2254
2290
|
id: 17,
|
|
2255
2291
|
palletInstance: 50
|
|
2256
2292
|
}
|
|
2293
|
+
}),
|
|
2294
|
+
ChainAsset.fromAsset(wbtce, {
|
|
2295
|
+
address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
|
|
2296
|
+
decimals: 8
|
|
2297
|
+
}),
|
|
2298
|
+
ChainAsset.fromAsset(wethe, {
|
|
2299
|
+
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
2300
|
+
decimals: 18
|
|
2301
|
+
}),
|
|
2302
|
+
ChainAsset.fromAsset(wstethe, {
|
|
2303
|
+
address: "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
|
|
2304
|
+
decimals: 18
|
|
2257
2305
|
})
|
|
2258
2306
|
],
|
|
2259
2307
|
checkSovereignAccountBalances: true,
|
|
@@ -6654,6 +6702,81 @@ var moonbeamRoutes = new ChainRoutes({
|
|
|
6654
6702
|
}
|
|
6655
6703
|
},
|
|
6656
6704
|
contract: ContractBuilder2().Xtokens().transfer()
|
|
6705
|
+
},
|
|
6706
|
+
{
|
|
6707
|
+
source: {
|
|
6708
|
+
asset: wbtce,
|
|
6709
|
+
balance: BalanceBuilder30().substrate().assets().account(),
|
|
6710
|
+
fee: {
|
|
6711
|
+
asset: glmr,
|
|
6712
|
+
balance: BalanceBuilder30().substrate().system().account()
|
|
6713
|
+
},
|
|
6714
|
+
destinationFee: {
|
|
6715
|
+
balance: BalanceBuilder30().substrate().assets().account()
|
|
6716
|
+
}
|
|
6717
|
+
},
|
|
6718
|
+
destination: {
|
|
6719
|
+
asset: wbtce,
|
|
6720
|
+
chain: polkadotAssetHub,
|
|
6721
|
+
balance: BalanceBuilder30().substrate().foreignAssets().account(),
|
|
6722
|
+
fee: {
|
|
6723
|
+
amount: 4e-7,
|
|
6724
|
+
asset: wbtce,
|
|
6725
|
+
balance: BalanceBuilder30().substrate().foreignAssets().account()
|
|
6726
|
+
},
|
|
6727
|
+
min: AssetMinBuilder10().foreignAssets().asset()
|
|
6728
|
+
},
|
|
6729
|
+
contract: ContractBuilder2().Xtokens().transfer()
|
|
6730
|
+
},
|
|
6731
|
+
{
|
|
6732
|
+
source: {
|
|
6733
|
+
asset: wethe,
|
|
6734
|
+
balance: BalanceBuilder30().substrate().assets().account(),
|
|
6735
|
+
fee: {
|
|
6736
|
+
asset: glmr,
|
|
6737
|
+
balance: BalanceBuilder30().substrate().system().account()
|
|
6738
|
+
},
|
|
6739
|
+
destinationFee: {
|
|
6740
|
+
balance: BalanceBuilder30().substrate().assets().account()
|
|
6741
|
+
}
|
|
6742
|
+
},
|
|
6743
|
+
destination: {
|
|
6744
|
+
asset: wethe,
|
|
6745
|
+
chain: polkadotAssetHub,
|
|
6746
|
+
balance: BalanceBuilder30().substrate().foreignAssets().account(),
|
|
6747
|
+
fee: {
|
|
6748
|
+
amount: 35e-7,
|
|
6749
|
+
asset: wethe,
|
|
6750
|
+
balance: BalanceBuilder30().substrate().foreignAssets().account()
|
|
6751
|
+
},
|
|
6752
|
+
min: AssetMinBuilder10().foreignAssets().asset()
|
|
6753
|
+
},
|
|
6754
|
+
contract: ContractBuilder2().Xtokens().transfer()
|
|
6755
|
+
},
|
|
6756
|
+
{
|
|
6757
|
+
source: {
|
|
6758
|
+
asset: wstethe,
|
|
6759
|
+
balance: BalanceBuilder30().substrate().assets().account(),
|
|
6760
|
+
fee: {
|
|
6761
|
+
asset: glmr,
|
|
6762
|
+
balance: BalanceBuilder30().substrate().system().account()
|
|
6763
|
+
},
|
|
6764
|
+
destinationFee: {
|
|
6765
|
+
balance: BalanceBuilder30().substrate().assets().account()
|
|
6766
|
+
}
|
|
6767
|
+
},
|
|
6768
|
+
destination: {
|
|
6769
|
+
asset: wstethe,
|
|
6770
|
+
chain: polkadotAssetHub,
|
|
6771
|
+
balance: BalanceBuilder30().substrate().foreignAssets().account(),
|
|
6772
|
+
fee: {
|
|
6773
|
+
amount: 6e-6,
|
|
6774
|
+
asset: wstethe,
|
|
6775
|
+
balance: BalanceBuilder30().substrate().foreignAssets().account()
|
|
6776
|
+
},
|
|
6777
|
+
min: AssetMinBuilder10().foreignAssets().asset()
|
|
6778
|
+
},
|
|
6779
|
+
contract: ContractBuilder2().Xtokens().transfer()
|
|
6657
6780
|
}
|
|
6658
6781
|
]
|
|
6659
6782
|
});
|
|
@@ -8457,6 +8580,87 @@ var polkadotAssetHubRoutes = new ChainRoutes({
|
|
|
8457
8580
|
}
|
|
8458
8581
|
},
|
|
8459
8582
|
extrinsic: ExtrinsicBuilder34().polkadotXcm().limitedReserveTransferAssets().X2()
|
|
8583
|
+
},
|
|
8584
|
+
{
|
|
8585
|
+
source: {
|
|
8586
|
+
asset: wbtce,
|
|
8587
|
+
balance: BalanceBuilder44().substrate().foreignAssets().account(),
|
|
8588
|
+
fee: {
|
|
8589
|
+
asset: dot,
|
|
8590
|
+
balance: BalanceBuilder44().substrate().system().account(),
|
|
8591
|
+
extra: extra2
|
|
8592
|
+
},
|
|
8593
|
+
min: AssetMinBuilder16().foreignAssets().asset(),
|
|
8594
|
+
destinationFee: {
|
|
8595
|
+
balance: BalanceBuilder44().substrate().foreignAssets().account()
|
|
8596
|
+
}
|
|
8597
|
+
},
|
|
8598
|
+
destination: {
|
|
8599
|
+
asset: wbtce,
|
|
8600
|
+
chain: moonbeam,
|
|
8601
|
+
balance: BalanceBuilder44().substrate().assets().account(),
|
|
8602
|
+
fee: {
|
|
8603
|
+
amount: FeeBuilder36().xcmPaymentApi().xcmPaymentFee({
|
|
8604
|
+
isAssetReserveChain: false
|
|
8605
|
+
}),
|
|
8606
|
+
asset: wbtce
|
|
8607
|
+
}
|
|
8608
|
+
},
|
|
8609
|
+
extrinsic: ExtrinsicBuilder34().polkadotXcm().transferAssetsUsingTypeAndThen().globalConsensusEthereum()
|
|
8610
|
+
},
|
|
8611
|
+
{
|
|
8612
|
+
source: {
|
|
8613
|
+
asset: wethe,
|
|
8614
|
+
balance: BalanceBuilder44().substrate().foreignAssets().account(),
|
|
8615
|
+
fee: {
|
|
8616
|
+
asset: dot,
|
|
8617
|
+
balance: BalanceBuilder44().substrate().system().account(),
|
|
8618
|
+
extra: extra2
|
|
8619
|
+
},
|
|
8620
|
+
min: AssetMinBuilder16().foreignAssets().asset(),
|
|
8621
|
+
destinationFee: {
|
|
8622
|
+
balance: BalanceBuilder44().substrate().foreignAssets().account()
|
|
8623
|
+
}
|
|
8624
|
+
},
|
|
8625
|
+
destination: {
|
|
8626
|
+
asset: wethe,
|
|
8627
|
+
chain: moonbeam,
|
|
8628
|
+
balance: BalanceBuilder44().substrate().assets().account(),
|
|
8629
|
+
fee: {
|
|
8630
|
+
amount: FeeBuilder36().xcmPaymentApi().xcmPaymentFee({
|
|
8631
|
+
isAssetReserveChain: false
|
|
8632
|
+
}),
|
|
8633
|
+
asset: wethe
|
|
8634
|
+
}
|
|
8635
|
+
},
|
|
8636
|
+
extrinsic: ExtrinsicBuilder34().polkadotXcm().transferAssetsUsingTypeAndThen().globalConsensusEthereum()
|
|
8637
|
+
},
|
|
8638
|
+
{
|
|
8639
|
+
source: {
|
|
8640
|
+
asset: wstethe,
|
|
8641
|
+
balance: BalanceBuilder44().substrate().foreignAssets().account(),
|
|
8642
|
+
fee: {
|
|
8643
|
+
asset: dot,
|
|
8644
|
+
balance: BalanceBuilder44().substrate().system().account(),
|
|
8645
|
+
extra: extra2
|
|
8646
|
+
},
|
|
8647
|
+
min: AssetMinBuilder16().foreignAssets().asset(),
|
|
8648
|
+
destinationFee: {
|
|
8649
|
+
balance: BalanceBuilder44().substrate().foreignAssets().account()
|
|
8650
|
+
}
|
|
8651
|
+
},
|
|
8652
|
+
destination: {
|
|
8653
|
+
asset: wstethe,
|
|
8654
|
+
chain: moonbeam,
|
|
8655
|
+
balance: BalanceBuilder44().substrate().assets().account(),
|
|
8656
|
+
fee: {
|
|
8657
|
+
amount: FeeBuilder36().xcmPaymentApi().xcmPaymentFee({
|
|
8658
|
+
isAssetReserveChain: false
|
|
8659
|
+
}),
|
|
8660
|
+
asset: wstethe
|
|
8661
|
+
}
|
|
8662
|
+
},
|
|
8663
|
+
extrinsic: ExtrinsicBuilder34().polkadotXcm().transferAssetsUsingTypeAndThen().globalConsensusEthereum()
|
|
8460
8664
|
}
|
|
8461
8665
|
]
|
|
8462
8666
|
});
|
|
@@ -8975,9 +9179,12 @@ export {
|
|
|
8975
9179
|
vmanta,
|
|
8976
9180
|
vmovr,
|
|
8977
9181
|
wbtc,
|
|
9182
|
+
wbtce,
|
|
8978
9183
|
weth,
|
|
9184
|
+
wethe,
|
|
8979
9185
|
wftm,
|
|
8980
9186
|
wifd,
|
|
9187
|
+
wstethe,
|
|
8981
9188
|
xcmRoutesList,
|
|
8982
9189
|
xcmRoutesMap,
|
|
8983
9190
|
xrt,
|