@moonbeam-network/xcm-config 1.0.0-dev.283 → 1.0.0-dev.285
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 +5 -12
- package/build/index.mjs +1 -4
- 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, BridgeFeeConfigBuilder } from '@moonbeam-network/xcm-builder';
|
|
3
3
|
|
|
4
4
|
declare const aca: Asset;
|
|
5
5
|
declare const agng: Asset;
|
|
@@ -153,18 +153,13 @@ 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
|
-
}
|
|
165
160
|
interface MrlSourceConfig extends SourceConfig {
|
|
166
161
|
/** Protocol bridge fee (e.g., Snowbridge fee) */
|
|
167
|
-
protocolFee?:
|
|
162
|
+
protocolFee?: number | BridgeFeeConfigBuilder;
|
|
168
163
|
bridgeChainFee?: {
|
|
169
164
|
asset: Asset;
|
|
170
165
|
balance: BalanceConfigBuilder;
|
|
@@ -180,9 +175,7 @@ interface BridgeChainFeeConfig extends FeeConfig {
|
|
|
180
175
|
amount: number | FeeConfigBuilder;
|
|
181
176
|
}
|
|
182
177
|
declare class MrlAssetRoute extends AssetRoute {
|
|
183
|
-
readonly mrl: MrlConfig
|
|
184
|
-
isAutomaticPossible: boolean;
|
|
185
|
-
};
|
|
178
|
+
readonly mrl: MrlConfig;
|
|
186
179
|
readonly source: MrlSourceConfig;
|
|
187
180
|
constructor({ source, destination, contract, extrinsic, mrl, }: MrlAssetRouteConstructorParams & {
|
|
188
181
|
source: MrlSourceConfig;
|
|
@@ -317,4 +310,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
317
310
|
declare const xcmRoutesList: ChainRoutes[];
|
|
318
311
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
319
312
|
|
|
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
|
|
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 };
|
package/build/index.mjs
CHANGED
|
@@ -3672,10 +3672,7 @@ var MrlAssetRoute = class extends AssetRoute {
|
|
|
3672
3672
|
mrl
|
|
3673
3673
|
}) {
|
|
3674
3674
|
super({ source, destination, contract, extrinsic });
|
|
3675
|
-
this.mrl =
|
|
3676
|
-
...mrl,
|
|
3677
|
-
isAutomaticPossible: mrl.isAutomaticPossible ?? true
|
|
3678
|
-
};
|
|
3675
|
+
this.mrl = mrl;
|
|
3679
3676
|
this.source = source;
|
|
3680
3677
|
}
|
|
3681
3678
|
};
|