@moonbeam-network/xcm-config 1.0.0-dev.267 → 1.0.0-dev.269
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 +11 -13
- package/build/index.mjs +1013 -947
- package/build/index.mjs.map +1 -1
- package/package.json +4 -4
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Asset, AnyChain, SetOptional, ChainAsset, AnyAsset,
|
|
2
|
-
import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder
|
|
1
|
+
import { Asset, AnyChain, SetOptional, ChainAsset, AnyAsset, Ecosystem, Parachain, EvmParachain, EvmChain } from '@moonbeam-network/xcm-types';
|
|
2
|
+
import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder } from '@moonbeam-network/xcm-builder';
|
|
3
3
|
|
|
4
4
|
declare const aca: Asset;
|
|
5
5
|
declare const agng: Asset;
|
|
@@ -110,14 +110,14 @@ interface SourceConfig {
|
|
|
110
110
|
min?: AssetMinConfigBuilder;
|
|
111
111
|
}
|
|
112
112
|
interface DestinationConfig extends Omit<SourceConfig, 'fee'> {
|
|
113
|
-
fee:
|
|
113
|
+
fee: DestinationFeeConfig;
|
|
114
114
|
}
|
|
115
115
|
interface FeeConfig {
|
|
116
116
|
asset: Asset;
|
|
117
117
|
balance: BalanceConfigBuilder;
|
|
118
118
|
extra?: number;
|
|
119
119
|
}
|
|
120
|
-
interface
|
|
120
|
+
interface DestinationFeeConfig extends SetOptional<FeeConfig, 'balance'> {
|
|
121
121
|
amount: number | FeeConfigBuilder;
|
|
122
122
|
}
|
|
123
123
|
declare class AssetRoute {
|
|
@@ -155,23 +155,20 @@ interface MrlAssetRouteConstructorParams extends AssetRouteConstructorParams {
|
|
|
155
155
|
interface MrlConfig {
|
|
156
156
|
isAutomaticPossible: boolean;
|
|
157
157
|
transfer: MrlConfigBuilder;
|
|
158
|
-
|
|
158
|
+
moonChain: MoonChainConfig;
|
|
159
159
|
}
|
|
160
160
|
interface MrlSourceConfig extends SourceConfig {
|
|
161
|
-
|
|
162
|
-
protocolFee?: number | BridgeFeeConfigBuilder;
|
|
163
|
-
bridgeChainFee?: {
|
|
161
|
+
moonChainFee?: {
|
|
164
162
|
asset: Asset;
|
|
165
163
|
balance: BalanceConfigBuilder;
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
|
-
interface
|
|
166
|
+
interface MoonChainConfig {
|
|
169
167
|
asset: Asset;
|
|
170
168
|
balance: BalanceConfigBuilder;
|
|
171
|
-
|
|
172
|
-
fee: BridgeChainFeeConfig;
|
|
169
|
+
fee: MoonChainFeeConfig;
|
|
173
170
|
}
|
|
174
|
-
interface
|
|
171
|
+
interface MoonChainFeeConfig extends FeeConfig {
|
|
175
172
|
amount: number | FeeConfigBuilder;
|
|
176
173
|
}
|
|
177
174
|
declare class MrlAssetRoute extends AssetRoute {
|
|
@@ -301,6 +298,7 @@ declare const chainsList: AnyChain[];
|
|
|
301
298
|
declare const chainsMap: Map<string, AnyChain>;
|
|
302
299
|
|
|
303
300
|
declare function getKey(keyOrModel: string | AnyAsset | AnyChain): string;
|
|
301
|
+
declare function getMoonChain(chain: AnyChain): EvmParachain;
|
|
304
302
|
|
|
305
303
|
declare const crossEcosystemsRoutesList: ChainRoutes[];
|
|
306
304
|
declare const crossEcosystemsRoutesMap: Map<string, ChainRoutes>;
|
|
@@ -311,4 +309,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
311
309
|
declare const xcmRoutesList: ChainRoutes[];
|
|
312
310
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
313
311
|
|
|
314
|
-
export { AssetRoute, type AssetRouteConstructorParams,
|
|
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, 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, phala, 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 };
|