@moonbeam-network/xcm-config 3.2.2 → 3.2.4
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 +1 -2
- package/build/index.mjs +34 -106
- package/build/index.mjs.map +1 -1
- package/package.json +7 -7
package/build/index.d.ts
CHANGED
|
@@ -264,7 +264,6 @@ declare const polkadot: Parachain;
|
|
|
264
264
|
declare const polkadotAssetHub: Parachain;
|
|
265
265
|
declare const robonomics: Parachain;
|
|
266
266
|
declare const shiden: Parachain;
|
|
267
|
-
declare const subsocial: Parachain;
|
|
268
267
|
declare const turingAlphanet: Parachain;
|
|
269
268
|
declare const uniqueAlpha: Parachain;
|
|
270
269
|
declare const zeitgeist: Parachain;
|
|
@@ -280,4 +279,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
280
279
|
declare const xcmRoutesList: ChainRoutes[];
|
|
281
280
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
282
281
|
|
|
283
|
-
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, betaDEV, bifrostKusama, bifrostPolkadot, bnc, bncs, centrifuge, cfg, chainsList, chainsMap, crab, crustShadow, csm, dai, darwinia, darwiniaCrab, ded, dev, 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, laos, laosAlphanet, laosMainnet, ldot, lit, mangataKusama, manta, mantaParachain, maos, mgx, moonbaseAlpha, moonbaseBeta, moonbaseStage, moonbeam, moonriver, movr, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, phala, pica, pink, polkadot, polkadotAssetHub, ring, rmrk, robonomics, sdn, shiden, soon, stink, sub,
|
|
282
|
+
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, betaDEV, bifrostKusama, bifrostPolkadot, bnc, bncs, centrifuge, cfg, chainsList, chainsMap, crab, crustShadow, csm, dai, darwinia, darwiniaCrab, ded, dev, 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, laos, laosAlphanet, laosMainnet, ldot, lit, mangataKusama, manta, mantaParachain, maos, mgx, moonbaseAlpha, moonbaseBeta, moonbaseStage, moonbeam, moonriver, movr, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, phala, pica, pink, 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
|
@@ -2384,17 +2384,6 @@ var shiden = new Parachain({
|
|
|
2384
2384
|
"wss://shiden.api.onfinality.io/public-ws"
|
|
2385
2385
|
]
|
|
2386
2386
|
});
|
|
2387
|
-
var subsocial = new Parachain({
|
|
2388
|
-
assets: [ChainAsset.fromAsset(sub, { decimals: 10 })],
|
|
2389
|
-
ecosystem: Ecosystem.Polkadot,
|
|
2390
|
-
genesisHash: "0x4a12be580bb959937a1c7a61d5cf24428ed67fa571974b4007645d1886e7c89f",
|
|
2391
|
-
key: "subsocial",
|
|
2392
|
-
name: "Subsocial",
|
|
2393
|
-
nativeAsset: sub,
|
|
2394
|
-
parachainId: 2101,
|
|
2395
|
-
ss58Format: 28,
|
|
2396
|
-
ws: ["wss://para.subsocial.network", "wss://subsocial-rpc.dwellir.com"]
|
|
2397
|
-
});
|
|
2398
2387
|
var turingAlphanet = new Parachain({
|
|
2399
2388
|
assets: [
|
|
2400
2389
|
ChainAsset.fromAsset(tur, {
|
|
@@ -2508,7 +2497,6 @@ var chainsList = [
|
|
|
2508
2497
|
polkadotAssetHub,
|
|
2509
2498
|
robonomics,
|
|
2510
2499
|
shiden,
|
|
2511
|
-
subsocial,
|
|
2512
2500
|
// turing,
|
|
2513
2501
|
turingAlphanet,
|
|
2514
2502
|
uniqueAlpha,
|
|
@@ -7279,29 +7267,6 @@ var moonbeamRoutes2 = new ChainRoutes({
|
|
|
7279
7267
|
},
|
|
7280
7268
|
contract: ContractBuilder2().XcmPrecompile().transferAssetsToPara32()
|
|
7281
7269
|
},
|
|
7282
|
-
{
|
|
7283
|
-
source: {
|
|
7284
|
-
asset: sub,
|
|
7285
|
-
balance: BalanceBuilder33().evm().erc20(),
|
|
7286
|
-
fee: {
|
|
7287
|
-
asset: glmr,
|
|
7288
|
-
balance: BalanceBuilder33().substrate().system().account()
|
|
7289
|
-
},
|
|
7290
|
-
destinationFee: {
|
|
7291
|
-
balance: BalanceBuilder33().evm().erc20()
|
|
7292
|
-
}
|
|
7293
|
-
},
|
|
7294
|
-
destination: {
|
|
7295
|
-
asset: sub,
|
|
7296
|
-
chain: subsocial,
|
|
7297
|
-
balance: BalanceBuilder33().substrate().system().account(),
|
|
7298
|
-
fee: {
|
|
7299
|
-
amount: 1,
|
|
7300
|
-
asset: sub
|
|
7301
|
-
}
|
|
7302
|
-
},
|
|
7303
|
-
contract: ContractBuilder2().XcmPrecompile().transferAssetsToPara32()
|
|
7304
|
-
},
|
|
7305
7270
|
{
|
|
7306
7271
|
source: {
|
|
7307
7272
|
asset: bncs,
|
|
@@ -9596,104 +9561,69 @@ var shidenRoutes = new ChainRoutes({
|
|
|
9596
9561
|
]
|
|
9597
9562
|
});
|
|
9598
9563
|
|
|
9599
|
-
// src/xcm-configs/
|
|
9564
|
+
// src/xcm-configs/turingAlphanet.ts
|
|
9600
9565
|
import {
|
|
9601
9566
|
BalanceBuilder as BalanceBuilder48,
|
|
9602
9567
|
ExtrinsicBuilder as ExtrinsicBuilder35,
|
|
9603
9568
|
FeeBuilder as FeeBuilder40
|
|
9604
9569
|
} from "@moonbeam-network/xcm-builder";
|
|
9605
|
-
var subsocialRoutes = new ChainRoutes({
|
|
9606
|
-
chain: subsocial,
|
|
9607
|
-
routes: [
|
|
9608
|
-
{
|
|
9609
|
-
source: {
|
|
9610
|
-
asset: sub,
|
|
9611
|
-
balance: BalanceBuilder48().substrate().system().account(),
|
|
9612
|
-
fee: {
|
|
9613
|
-
asset: sub,
|
|
9614
|
-
balance: BalanceBuilder48().substrate().system().account()
|
|
9615
|
-
},
|
|
9616
|
-
destinationFee: {
|
|
9617
|
-
balance: BalanceBuilder48().substrate().system().account()
|
|
9618
|
-
}
|
|
9619
|
-
},
|
|
9620
|
-
destination: {
|
|
9621
|
-
asset: sub,
|
|
9622
|
-
chain: moonbeam,
|
|
9623
|
-
balance: BalanceBuilder48().evm().erc20(),
|
|
9624
|
-
fee: {
|
|
9625
|
-
amount: FeeBuilder40().xcmPaymentApi().fromAssetIdQuery({ isAssetReserveChain: false }),
|
|
9626
|
-
asset: sub
|
|
9627
|
-
}
|
|
9628
|
-
},
|
|
9629
|
-
extrinsic: ExtrinsicBuilder35().polkadotXcm().limitedReserveTransferAssets().here()
|
|
9630
|
-
}
|
|
9631
|
-
]
|
|
9632
|
-
});
|
|
9633
|
-
|
|
9634
|
-
// src/xcm-configs/turingAlphanet.ts
|
|
9635
|
-
import {
|
|
9636
|
-
BalanceBuilder as BalanceBuilder49,
|
|
9637
|
-
ExtrinsicBuilder as ExtrinsicBuilder36,
|
|
9638
|
-
FeeBuilder as FeeBuilder41
|
|
9639
|
-
} from "@moonbeam-network/xcm-builder";
|
|
9640
9570
|
var turingAlphanetRoutes = new ChainRoutes({
|
|
9641
9571
|
chain: turingAlphanet,
|
|
9642
9572
|
routes: [
|
|
9643
9573
|
{
|
|
9644
9574
|
source: {
|
|
9645
9575
|
asset: tur,
|
|
9646
|
-
balance:
|
|
9576
|
+
balance: BalanceBuilder48().substrate().system().account(),
|
|
9647
9577
|
fee: {
|
|
9648
9578
|
asset: tur,
|
|
9649
|
-
balance:
|
|
9579
|
+
balance: BalanceBuilder48().substrate().system().account()
|
|
9650
9580
|
},
|
|
9651
9581
|
destinationFee: {
|
|
9652
|
-
balance:
|
|
9582
|
+
balance: BalanceBuilder48().substrate().system().account()
|
|
9653
9583
|
}
|
|
9654
9584
|
},
|
|
9655
9585
|
destination: {
|
|
9656
9586
|
asset: tur,
|
|
9657
9587
|
chain: moonbaseAlpha,
|
|
9658
|
-
balance:
|
|
9588
|
+
balance: BalanceBuilder48().evm().erc20(),
|
|
9659
9589
|
fee: {
|
|
9660
|
-
amount:
|
|
9590
|
+
amount: FeeBuilder40().xcmPaymentApi().fromAssetIdQuery({ isAssetReserveChain: false }),
|
|
9661
9591
|
asset: tur
|
|
9662
9592
|
}
|
|
9663
9593
|
},
|
|
9664
|
-
extrinsic:
|
|
9594
|
+
extrinsic: ExtrinsicBuilder35().xTokens().transferMultiAsset(turingAlphanet.parachainId).X1()
|
|
9665
9595
|
},
|
|
9666
9596
|
{
|
|
9667
9597
|
source: {
|
|
9668
9598
|
asset: dev,
|
|
9669
|
-
balance:
|
|
9599
|
+
balance: BalanceBuilder48().substrate().tokens().accounts(),
|
|
9670
9600
|
fee: {
|
|
9671
9601
|
asset: tur,
|
|
9672
|
-
balance:
|
|
9602
|
+
balance: BalanceBuilder48().substrate().system().account()
|
|
9673
9603
|
},
|
|
9674
9604
|
destinationFee: {
|
|
9675
|
-
balance:
|
|
9605
|
+
balance: BalanceBuilder48().substrate().tokens().accounts()
|
|
9676
9606
|
}
|
|
9677
9607
|
},
|
|
9678
9608
|
destination: {
|
|
9679
9609
|
asset: dev,
|
|
9680
9610
|
chain: moonbaseAlpha,
|
|
9681
|
-
balance:
|
|
9611
|
+
balance: BalanceBuilder48().substrate().system().account(),
|
|
9682
9612
|
fee: {
|
|
9683
|
-
amount:
|
|
9613
|
+
amount: FeeBuilder40().xcmPaymentApi().fromPalletInstance({ isAssetReserveChain: true }),
|
|
9684
9614
|
asset: dev
|
|
9685
9615
|
}
|
|
9686
9616
|
},
|
|
9687
|
-
extrinsic:
|
|
9617
|
+
extrinsic: ExtrinsicBuilder35().xTokens().transfer()
|
|
9688
9618
|
}
|
|
9689
9619
|
]
|
|
9690
9620
|
});
|
|
9691
9621
|
|
|
9692
9622
|
// src/xcm-configs/zeitgeist.ts
|
|
9693
9623
|
import {
|
|
9694
|
-
BalanceBuilder as
|
|
9695
|
-
ExtrinsicBuilder as
|
|
9696
|
-
FeeBuilder as
|
|
9624
|
+
BalanceBuilder as BalanceBuilder49,
|
|
9625
|
+
ExtrinsicBuilder as ExtrinsicBuilder36,
|
|
9626
|
+
FeeBuilder as FeeBuilder41
|
|
9697
9627
|
} from "@moonbeam-network/xcm-builder";
|
|
9698
9628
|
var zeitgeistRoutes = new ChainRoutes({
|
|
9699
9629
|
chain: zeitgeist,
|
|
@@ -9701,71 +9631,71 @@ var zeitgeistRoutes = new ChainRoutes({
|
|
|
9701
9631
|
{
|
|
9702
9632
|
source: {
|
|
9703
9633
|
asset: ztg,
|
|
9704
|
-
balance:
|
|
9634
|
+
balance: BalanceBuilder49().substrate().system().account(),
|
|
9705
9635
|
fee: {
|
|
9706
9636
|
asset: ztg,
|
|
9707
|
-
balance:
|
|
9637
|
+
balance: BalanceBuilder49().substrate().system().account()
|
|
9708
9638
|
},
|
|
9709
9639
|
destinationFee: {
|
|
9710
|
-
balance:
|
|
9640
|
+
balance: BalanceBuilder49().substrate().system().account()
|
|
9711
9641
|
}
|
|
9712
9642
|
},
|
|
9713
9643
|
destination: {
|
|
9714
9644
|
asset: ztg,
|
|
9715
9645
|
chain: moonbeam,
|
|
9716
|
-
balance:
|
|
9646
|
+
balance: BalanceBuilder49().evm().erc20(),
|
|
9717
9647
|
fee: {
|
|
9718
|
-
amount:
|
|
9648
|
+
amount: FeeBuilder41().xcmPaymentApi().fromAssetIdQuery({ isAssetReserveChain: false }),
|
|
9719
9649
|
asset: ztg
|
|
9720
9650
|
}
|
|
9721
9651
|
},
|
|
9722
|
-
extrinsic:
|
|
9652
|
+
extrinsic: ExtrinsicBuilder36().xTokens().transfer()
|
|
9723
9653
|
},
|
|
9724
9654
|
{
|
|
9725
9655
|
source: {
|
|
9726
9656
|
asset: usdcwh,
|
|
9727
|
-
balance:
|
|
9657
|
+
balance: BalanceBuilder49().substrate().tokens().accounts(),
|
|
9728
9658
|
fee: {
|
|
9729
9659
|
asset: ztg,
|
|
9730
|
-
balance:
|
|
9660
|
+
balance: BalanceBuilder49().substrate().system().account()
|
|
9731
9661
|
},
|
|
9732
9662
|
destinationFee: {
|
|
9733
|
-
balance:
|
|
9663
|
+
balance: BalanceBuilder49().substrate().tokens().accounts()
|
|
9734
9664
|
}
|
|
9735
9665
|
},
|
|
9736
9666
|
destination: {
|
|
9737
9667
|
asset: usdcwh,
|
|
9738
9668
|
chain: moonbeam,
|
|
9739
|
-
balance:
|
|
9669
|
+
balance: BalanceBuilder49().evm().erc20(),
|
|
9740
9670
|
fee: {
|
|
9741
|
-
amount:
|
|
9671
|
+
amount: FeeBuilder41().xcmPaymentApi().fromPalletInstanceAndAccountKey20({ isAssetReserveChain: true }),
|
|
9742
9672
|
asset: glmr
|
|
9743
9673
|
}
|
|
9744
9674
|
},
|
|
9745
|
-
extrinsic:
|
|
9675
|
+
extrinsic: ExtrinsicBuilder36().xTokens().transferMultiCurrencies()
|
|
9746
9676
|
},
|
|
9747
9677
|
{
|
|
9748
9678
|
source: {
|
|
9749
9679
|
asset: glmr,
|
|
9750
|
-
balance:
|
|
9680
|
+
balance: BalanceBuilder49().substrate().tokens().accounts(),
|
|
9751
9681
|
fee: {
|
|
9752
9682
|
asset: ztg,
|
|
9753
|
-
balance:
|
|
9683
|
+
balance: BalanceBuilder49().substrate().system().account()
|
|
9754
9684
|
},
|
|
9755
9685
|
destinationFee: {
|
|
9756
|
-
balance:
|
|
9686
|
+
balance: BalanceBuilder49().substrate().tokens().accounts()
|
|
9757
9687
|
}
|
|
9758
9688
|
},
|
|
9759
9689
|
destination: {
|
|
9760
9690
|
asset: glmr,
|
|
9761
9691
|
chain: moonbeam,
|
|
9762
|
-
balance:
|
|
9692
|
+
balance: BalanceBuilder49().substrate().system().account(),
|
|
9763
9693
|
fee: {
|
|
9764
|
-
amount:
|
|
9694
|
+
amount: FeeBuilder41().xcmPaymentApi().fromPalletInstance({ isAssetReserveChain: true }),
|
|
9765
9695
|
asset: glmr
|
|
9766
9696
|
}
|
|
9767
9697
|
},
|
|
9768
|
-
extrinsic:
|
|
9698
|
+
extrinsic: ExtrinsicBuilder36().xTokens().transfer()
|
|
9769
9699
|
}
|
|
9770
9700
|
]
|
|
9771
9701
|
});
|
|
@@ -9811,7 +9741,6 @@ var xcmRoutesList = [
|
|
|
9811
9741
|
alphanetAssetHubRoutes,
|
|
9812
9742
|
kusamaAssetHubRoutes,
|
|
9813
9743
|
polkadotAssetHubRoutes,
|
|
9814
|
-
subsocialRoutes,
|
|
9815
9744
|
// turingRoutes,
|
|
9816
9745
|
turingAlphanetRoutes,
|
|
9817
9746
|
zeitgeistRoutes
|
|
@@ -9932,7 +9861,6 @@ export {
|
|
|
9932
9861
|
soon,
|
|
9933
9862
|
stink,
|
|
9934
9863
|
sub,
|
|
9935
|
-
subsocial,
|
|
9936
9864
|
teer,
|
|
9937
9865
|
tnkr,
|
|
9938
9866
|
tt1,
|