@moonbeam-network/xcm-config 1.0.0-dev.270 → 1.0.0-dev.272
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 +13 -12
- package/build/index.mjs +986 -1140
- 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, Ecosystem, Parachain, EvmParachain, EvmChain } from '@moonbeam-network/xcm-types';
|
|
2
|
-
import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder } from '@moonbeam-network/xcm-builder';
|
|
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, BridgeFeeConfigBuilder } 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: FeeAmountConfig;
|
|
114
114
|
}
|
|
115
115
|
interface FeeConfig {
|
|
116
116
|
asset: Asset;
|
|
117
117
|
balance: BalanceConfigBuilder;
|
|
118
118
|
extra?: number;
|
|
119
119
|
}
|
|
120
|
-
interface
|
|
120
|
+
interface FeeAmountConfig extends SetOptional<FeeConfig, 'balance'> {
|
|
121
121
|
amount: number | FeeConfigBuilder;
|
|
122
122
|
}
|
|
123
123
|
declare class AssetRoute {
|
|
@@ -155,20 +155,23 @@ interface MrlAssetRouteConstructorParams extends AssetRouteConstructorParams {
|
|
|
155
155
|
interface MrlConfig {
|
|
156
156
|
isAutomaticPossible: boolean;
|
|
157
157
|
transfer: MrlConfigBuilder;
|
|
158
|
-
|
|
158
|
+
bridgeChain: BridgeChainConfig;
|
|
159
159
|
}
|
|
160
160
|
interface MrlSourceConfig extends SourceConfig {
|
|
161
|
-
|
|
161
|
+
/** Protocol bridge fee (e.g., Snowbridge fee) */
|
|
162
|
+
protocolFee?: number | BridgeFeeConfigBuilder;
|
|
163
|
+
bridgeChainFee?: {
|
|
162
164
|
asset: Asset;
|
|
163
165
|
balance: BalanceConfigBuilder;
|
|
164
166
|
};
|
|
165
167
|
}
|
|
166
|
-
interface
|
|
168
|
+
interface BridgeChainConfig {
|
|
167
169
|
asset: Asset;
|
|
168
170
|
balance: BalanceConfigBuilder;
|
|
169
|
-
|
|
171
|
+
chain: AnyParachain;
|
|
172
|
+
fee: BridgeChainFeeConfig;
|
|
170
173
|
}
|
|
171
|
-
interface
|
|
174
|
+
interface BridgeChainFeeConfig extends FeeConfig {
|
|
172
175
|
amount: number | FeeConfigBuilder;
|
|
173
176
|
}
|
|
174
177
|
declare class MrlAssetRoute extends AssetRoute {
|
|
@@ -286,7 +289,6 @@ declare const peaqEvm: EvmParachain;
|
|
|
286
289
|
declare const peaqEvmAlphanet: EvmParachain;
|
|
287
290
|
declare const pendulum: Parachain;
|
|
288
291
|
declare const pendulumAlphanet: Parachain;
|
|
289
|
-
declare const phala: Parachain;
|
|
290
292
|
declare const polkadot: Parachain;
|
|
291
293
|
declare const polkadotAssetHub: Parachain;
|
|
292
294
|
declare const robonomics: Parachain;
|
|
@@ -298,7 +300,6 @@ declare const chainsList: AnyChain[];
|
|
|
298
300
|
declare const chainsMap: Map<string, AnyChain>;
|
|
299
301
|
|
|
300
302
|
declare function getKey(keyOrModel: string | AnyAsset | AnyChain): string;
|
|
301
|
-
declare function getMoonChain(chain: AnyChain): EvmParachain;
|
|
302
303
|
|
|
303
304
|
declare const crossEcosystemsRoutesList: ChainRoutes[];
|
|
304
305
|
declare const crossEcosystemsRoutesMap: Map<string, ChainRoutes>;
|
|
@@ -309,4 +310,4 @@ declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
|
309
310
|
declare const xcmRoutesList: ChainRoutes[];
|
|
310
311
|
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
311
312
|
|
|
312
|
-
export { AssetRoute, type AssetRouteConstructorParams, ChainRoutes, type ChainRoutesConstructorParams, ConfigService, type ConfigServiceOptions, type DestinationConfig, 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 };
|