@moonbeam-network/xcm-config 1.0.0-dev.281 → 1.0.0-dev.283
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 +12 -5
- package/build/index.mjs +4 -1
- package/build/index.mjs.map +1 -1
- package/package.json +4 -4
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Asset, AnyChain, SetOptional, ChainAsset, AnyAsset, AnyParachain, Ecosystem, Parachain, EvmParachain, EvmChain } from '@moonbeam-network/xcm-types';
|
|
2
|
-
import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder,
|
|
2
|
+
import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder, ProtocolFeeConfigBuilder } from '@moonbeam-network/xcm-builder';
|
|
3
3
|
|
|
4
4
|
declare const aca: Asset;
|
|
5
5
|
declare const agng: Asset;
|
|
@@ -153,13 +153,18 @@ interface MrlAssetRouteConstructorParams extends AssetRouteConstructorParams {
|
|
|
153
153
|
mrl: MrlConfig;
|
|
154
154
|
}
|
|
155
155
|
interface MrlConfig {
|
|
156
|
-
isAutomaticPossible
|
|
156
|
+
isAutomaticPossible?: boolean;
|
|
157
157
|
transfer: MrlConfigBuilder;
|
|
158
158
|
bridgeChain: BridgeChainConfig;
|
|
159
159
|
}
|
|
160
|
+
interface ProtocolFeeConfig {
|
|
161
|
+
amount: number | ProtocolFeeConfigBuilder;
|
|
162
|
+
asset: Asset;
|
|
163
|
+
balance: BalanceConfigBuilder;
|
|
164
|
+
}
|
|
160
165
|
interface MrlSourceConfig extends SourceConfig {
|
|
161
166
|
/** Protocol bridge fee (e.g., Snowbridge fee) */
|
|
162
|
-
protocolFee?:
|
|
167
|
+
protocolFee?: ProtocolFeeConfig;
|
|
163
168
|
bridgeChainFee?: {
|
|
164
169
|
asset: Asset;
|
|
165
170
|
balance: BalanceConfigBuilder;
|
|
@@ -175,7 +180,9 @@ interface BridgeChainFeeConfig extends FeeConfig {
|
|
|
175
180
|
amount: number | FeeConfigBuilder;
|
|
176
181
|
}
|
|
177
182
|
declare class MrlAssetRoute extends AssetRoute {
|
|
178
|
-
readonly mrl: MrlConfig
|
|
183
|
+
readonly mrl: MrlConfig & {
|
|
184
|
+
isAutomaticPossible: boolean;
|
|
185
|
+
};
|
|
179
186
|
readonly source: MrlSourceConfig;
|
|
180
187
|
constructor({ source, destination, contract, extrinsic, mrl, }: MrlAssetRouteConstructorParams & {
|
|
181
188
|
source: MrlSourceConfig;
|
|
@@ -310,4 +317,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
310
317
|
declare const xcmRoutesList: ChainRoutes[];
|
|
311
318
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
312
319
|
|
|
313
|
-
export { AssetRoute, type AssetRouteConstructorParams, type BridgeChainConfig, type BridgeChainFeeConfig, ChainRoutes, type ChainRoutesConstructorParams, ConfigService, type ConfigServiceOptions, type DestinationConfig, type FeeAmountConfig, type FeeConfig, 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, glmr, hdx, hydration, hydrationAlphanet, ibtc, 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, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, pica, pink, pizza, pizzaUSDC, polkadot, polkadotAssetHub, ring, rmrk, robonomics, samaMOVR, sdn, shiden, soon, stink, sub, teer, tnkr, tt1, tur, turingAlphanet, uniqueAlpha, unit, usdc, usdcwh, usdt, usdtksm, usdtwh, vastr, vbnc, vdot, vfil, vglmr, vksm, vmanta, vmovr, wbtc, wbtce, weth, wethe, wftm, wifd, wstethe, xcmRoutesList, xcmRoutesMap, xrt, zeitgeist, ztg };
|
|
320
|
+
export { AssetRoute, type AssetRouteConstructorParams, type BridgeChainConfig, type BridgeChainFeeConfig, ChainRoutes, type ChainRoutesConstructorParams, ConfigService, type ConfigServiceOptions, type DestinationConfig, type FeeAmountConfig, type FeeConfig, MrlAssetRoute, type MrlAssetRouteConstructorParams, MrlChainRoutes, type MrlChainRoutesConstructorParams, type MrlConfig, type MrlSourceConfig, type ProtocolFeeConfig, 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, glmr, hdx, hydration, hydrationAlphanet, ibtc, 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, mrlRoutesList, mrlRoutesMap, neuro, neuroweb, nodl, originTrailAlphanet, otp, para, paring, peaq, peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, pen, pendulum, pendulumAlphanet, pha, pica, pink, pizza, pizzaUSDC, polkadot, polkadotAssetHub, ring, rmrk, robonomics, samaMOVR, sdn, shiden, soon, stink, sub, teer, tnkr, tt1, tur, turingAlphanet, uniqueAlpha, unit, usdc, usdcwh, usdt, usdtksm, 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
|
@@ -3672,7 +3672,10 @@ var MrlAssetRoute = class extends AssetRoute {
|
|
|
3672
3672
|
mrl
|
|
3673
3673
|
}) {
|
|
3674
3674
|
super({ source, destination, contract, extrinsic });
|
|
3675
|
-
this.mrl =
|
|
3675
|
+
this.mrl = {
|
|
3676
|
+
...mrl,
|
|
3677
|
+
isAutomaticPossible: mrl.isAutomaticPossible ?? true
|
|
3678
|
+
};
|
|
3676
3679
|
this.source = source;
|
|
3677
3680
|
}
|
|
3678
3681
|
};
|