@moonbeam-network/xcm-config 1.0.0-dev.30 → 1.0.0-dev.300
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/LICENSE +1 -1
- package/README.md +38 -8
- package/build/index.d.mts +317 -0
- package/build/index.d.ts +234 -286
- package/build/index.mjs +10511 -1
- package/build/index.mjs.map +1 -1
- package/package.json +25 -32
- package/build/index.cjs +0 -2
- package/build/index.cjs.map +0 -1
package/build/index.d.ts
CHANGED
|
@@ -1,369 +1,317 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
AnyChain,
|
|
4
|
-
Ecosystem,
|
|
5
|
-
Parachain,
|
|
6
|
-
EvmParachain,
|
|
7
|
-
} from '@moonbeam-network/xcm-types';
|
|
8
|
-
import {
|
|
9
|
-
BalanceConfigBuilder,
|
|
10
|
-
ContractConfigBuilder,
|
|
11
|
-
ExtrinsicConfigBuilder,
|
|
12
|
-
AssetMinConfigBuilder,
|
|
13
|
-
FeeConfigBuilder,
|
|
14
|
-
} from '@moonbeam-network/xcm-builder';
|
|
15
|
-
|
|
16
|
-
interface AssetConfigConstructorParams {
|
|
17
|
-
asset: Asset;
|
|
18
|
-
balance: BalanceConfigBuilder;
|
|
19
|
-
contract?: ContractConfigBuilder;
|
|
20
|
-
destination: AnyChain;
|
|
21
|
-
destinationFee: DestinationFeeConfig;
|
|
22
|
-
extrinsic?: ExtrinsicConfigBuilder;
|
|
23
|
-
fee?: FeeAssetConfig;
|
|
24
|
-
min?: AssetMinConfigBuilder;
|
|
25
|
-
}
|
|
26
|
-
interface DestinationFeeConfig extends FeeAssetConfig {
|
|
27
|
-
amount: number | FeeConfigBuilder;
|
|
28
|
-
}
|
|
29
|
-
interface FeeAssetConfig {
|
|
30
|
-
asset: Asset;
|
|
31
|
-
balance: BalanceConfigBuilder;
|
|
32
|
-
}
|
|
33
|
-
declare class AssetConfig {
|
|
34
|
-
readonly asset: Asset;
|
|
35
|
-
readonly balance: BalanceConfigBuilder;
|
|
36
|
-
readonly contract?: ContractConfigBuilder;
|
|
37
|
-
readonly destination: AnyChain;
|
|
38
|
-
readonly destinationFee: DestinationFeeConfig;
|
|
39
|
-
readonly extrinsic?: ExtrinsicConfigBuilder;
|
|
40
|
-
readonly fee?: FeeAssetConfig;
|
|
41
|
-
readonly min?: AssetMinConfigBuilder;
|
|
42
|
-
constructor({
|
|
43
|
-
asset,
|
|
44
|
-
balance,
|
|
45
|
-
contract,
|
|
46
|
-
destination,
|
|
47
|
-
destinationFee,
|
|
48
|
-
extrinsic,
|
|
49
|
-
fee,
|
|
50
|
-
min,
|
|
51
|
-
}: AssetConfigConstructorParams);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface ChainConfigConstructorParams {
|
|
55
|
-
assets: AssetConfig[];
|
|
56
|
-
chain: AnyChain;
|
|
57
|
-
}
|
|
58
|
-
declare class ChainConfig {
|
|
59
|
-
#private;
|
|
60
|
-
readonly chain: AnyChain;
|
|
61
|
-
constructor({ assets, chain }: ChainConfigConstructorParams);
|
|
62
|
-
getAssetsConfigs(): AssetConfig[];
|
|
63
|
-
getAssetConfigs(asset: Asset): AssetConfig[];
|
|
64
|
-
getAssetDestinations(asset: Asset): AnyChain[];
|
|
65
|
-
getAssetDestinationConfig(asset: Asset, destination: AnyChain): AssetConfig;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
interface IConfigService {
|
|
69
|
-
getEcosystemAssets(ecosystem?: Ecosystem): Asset[];
|
|
70
|
-
getAsset(keyOrAsset: string | Asset): Asset;
|
|
71
|
-
getChain(keyOrAsset: string | AnyChain): AnyChain;
|
|
72
|
-
getSourceChains(asset: Asset, ecosystem: Ecosystem | undefined): AnyChain[];
|
|
73
|
-
getDestinationChains(asset: Asset, source: AnyChain): AnyChain[];
|
|
74
|
-
getAssetDestinationConfig(
|
|
75
|
-
asset: Asset,
|
|
76
|
-
source: AnyChain,
|
|
77
|
-
destination: AnyChain,
|
|
78
|
-
): AssetConfig;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface ConfigServiceOptions {
|
|
82
|
-
assets?: Map<string, Asset>;
|
|
83
|
-
chains?: Map<string, AnyChain>;
|
|
84
|
-
chainsConfig?: Map<string, ChainConfig>;
|
|
85
|
-
}
|
|
86
|
-
declare class ConfigService implements IConfigService {
|
|
87
|
-
protected assets: Map<string, Asset>;
|
|
88
|
-
protected chains: Map<string, AnyChain>;
|
|
89
|
-
protected chainsConfig: Map<string, ChainConfig>;
|
|
90
|
-
constructor(options?: ConfigServiceOptions);
|
|
91
|
-
getEcosystemAssets(ecosystem?: Ecosystem): Asset[];
|
|
92
|
-
getAsset(keyOrAsset: string | Asset): Asset;
|
|
93
|
-
getChain(keyOrAsset: string | AnyChain): AnyChain;
|
|
94
|
-
getChainConfig(keyOrAsset: string | AnyChain): ChainConfig;
|
|
95
|
-
getSourceChains(asset: Asset, ecosystem: Ecosystem | undefined): AnyChain[];
|
|
96
|
-
getDestinationChains(asset: Asset, source: AnyChain): AnyChain[];
|
|
97
|
-
getAssetDestinationConfig(
|
|
98
|
-
asset: Asset,
|
|
99
|
-
source: AnyChain,
|
|
100
|
-
destination: AnyChain,
|
|
101
|
-
): AssetConfig;
|
|
102
|
-
updateAsset(asset: Asset): void;
|
|
103
|
-
updateChain(chain: AnyChain): void;
|
|
104
|
-
updateChainConfig(chainConfig: ChainConfig): void;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface TransferConfig {
|
|
108
|
-
asset: Asset;
|
|
109
|
-
source: ChainTransferConfig;
|
|
110
|
-
destination: ChainTransferConfig;
|
|
111
|
-
}
|
|
112
|
-
interface ChainTransferConfig {
|
|
113
|
-
chain: AnyChain;
|
|
114
|
-
config: AssetConfig;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare function ConfigBuilder(service?: IConfigService): {
|
|
118
|
-
assets: (ecosystem?: Ecosystem) => {
|
|
119
|
-
assets: Asset[];
|
|
120
|
-
asset: (keyOrAsset: string | Asset) => {
|
|
121
|
-
sourceChains: AnyChain[];
|
|
122
|
-
source: (keyOrChain: string | AnyChain) => {
|
|
123
|
-
destinationChains: AnyChain[];
|
|
124
|
-
destination: (keyOrChain: string | AnyChain) => {
|
|
125
|
-
build: () => TransferConfig;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
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, ProtocolFeeConfigBuilder } from '@moonbeam-network/xcm-builder';
|
|
131
3
|
|
|
132
4
|
declare const aca: Asset;
|
|
5
|
+
declare const agng: Asset;
|
|
133
6
|
declare const alan: Asset;
|
|
7
|
+
declare const ampe: Asset;
|
|
8
|
+
declare const apillon: Asset;
|
|
9
|
+
declare const aseed: Asset;
|
|
134
10
|
declare const astr: Asset;
|
|
135
|
-
declare const atom: Asset;
|
|
136
11
|
declare const auq: Asset;
|
|
137
|
-
declare const
|
|
138
|
-
declare const betaDEV: Asset;
|
|
12
|
+
declare const axlusdc: Asset;
|
|
139
13
|
declare const bnc: Asset;
|
|
140
14
|
declare const cfg: Asset;
|
|
141
|
-
declare const crab: Asset;
|
|
142
15
|
declare const csm: Asset;
|
|
16
|
+
declare const dai: Asset;
|
|
17
|
+
declare const ded: Asset;
|
|
143
18
|
declare const dev: Asset;
|
|
19
|
+
declare const devBeta: Asset;
|
|
20
|
+
declare const devStage: Asset;
|
|
144
21
|
declare const dot: Asset;
|
|
145
22
|
declare const eq: Asset;
|
|
146
23
|
declare const eqd: Asset;
|
|
147
|
-
declare const
|
|
24
|
+
declare const eth: Asset;
|
|
25
|
+
declare const eurc: Asset;
|
|
148
26
|
declare const fil: Asset;
|
|
27
|
+
declare const ftm: Asset;
|
|
28
|
+
declare const ftmwh: Asset;
|
|
149
29
|
declare const glmr: Asset;
|
|
150
30
|
declare const hdx: Asset;
|
|
151
|
-
declare const hko: Asset;
|
|
152
31
|
declare const ibtc: Asset;
|
|
153
32
|
declare const intr: Asset;
|
|
154
33
|
declare const kar: Asset;
|
|
155
34
|
declare const kbtc: Asset;
|
|
156
35
|
declare const kint: Asset;
|
|
157
|
-
declare const kma: Asset;
|
|
158
36
|
declare const ksm: Asset;
|
|
37
|
+
declare const lamaGLMR: Asset;
|
|
38
|
+
declare const laos: Asset;
|
|
159
39
|
declare const ldot: Asset;
|
|
160
40
|
declare const lit: Asset;
|
|
161
|
-
declare const
|
|
41
|
+
declare const manta: Asset;
|
|
42
|
+
declare const maos: Asset;
|
|
162
43
|
declare const movr: Asset;
|
|
44
|
+
declare const samaMOVR: Asset;
|
|
45
|
+
declare const neuro: Asset;
|
|
163
46
|
declare const nodl: Asset;
|
|
164
47
|
declare const otp: Asset;
|
|
165
48
|
declare const para: Asset;
|
|
166
49
|
declare const paring: Asset;
|
|
50
|
+
declare const peaq: Asset;
|
|
51
|
+
declare const pen: Asset;
|
|
167
52
|
declare const pha: Asset;
|
|
168
53
|
declare const pica: Asset;
|
|
54
|
+
declare const pink: Asset;
|
|
55
|
+
declare const pizza: Asset;
|
|
56
|
+
declare const pizzaUSDC: Asset;
|
|
169
57
|
declare const ring: Asset;
|
|
170
58
|
declare const rmrk: Asset;
|
|
171
59
|
declare const sdn: Asset;
|
|
172
60
|
declare const soon: Asset;
|
|
61
|
+
declare const stink: Asset;
|
|
173
62
|
declare const sub: Asset;
|
|
174
63
|
declare const teer: Asset;
|
|
64
|
+
declare const tnkr: Asset;
|
|
175
65
|
declare const tt1: Asset;
|
|
176
66
|
declare const tur: Asset;
|
|
177
67
|
declare const unit: Asset;
|
|
178
68
|
declare const usdc: Asset;
|
|
179
69
|
declare const usdcwh: Asset;
|
|
180
70
|
declare const usdt: Asset;
|
|
71
|
+
declare const usdtksm: Asset;
|
|
181
72
|
declare const usdtwh: Asset;
|
|
182
|
-
declare const
|
|
183
|
-
declare const weth: Asset;
|
|
184
|
-
declare const wftm: Asset;
|
|
73
|
+
declare const vastr: Asset;
|
|
185
74
|
declare const vbnc: Asset;
|
|
186
75
|
declare const vdot: Asset;
|
|
187
76
|
declare const vfil: Asset;
|
|
188
77
|
declare const vglmr: Asset;
|
|
189
78
|
declare const vksm: Asset;
|
|
79
|
+
declare const vmanta: Asset;
|
|
190
80
|
declare const vmovr: Asset;
|
|
81
|
+
declare const wbtc: Asset;
|
|
82
|
+
declare const weth: Asset;
|
|
83
|
+
declare const wftm: Asset;
|
|
84
|
+
declare const wifd: Asset;
|
|
191
85
|
declare const xrt: Asset;
|
|
192
86
|
declare const ztg: Asset;
|
|
87
|
+
declare const wbtce: Asset;
|
|
88
|
+
declare const wstethe: Asset;
|
|
89
|
+
declare const wethe: Asset;
|
|
193
90
|
declare const assetsList: Asset[];
|
|
194
91
|
declare const assetsMap: Map<string, Asset>;
|
|
195
92
|
|
|
93
|
+
interface AssetRouteConstructorParams {
|
|
94
|
+
source: SourceConfig;
|
|
95
|
+
destination: DestinationConfig;
|
|
96
|
+
contract?: ContractConfigBuilder;
|
|
97
|
+
extrinsic?: ExtrinsicConfigBuilder;
|
|
98
|
+
monitoring?: EventMonitoringConfig;
|
|
99
|
+
}
|
|
100
|
+
interface SourceConfig {
|
|
101
|
+
asset: Asset;
|
|
102
|
+
chain: AnyChain;
|
|
103
|
+
balance: BalanceConfigBuilder;
|
|
104
|
+
fee: FeeConfig;
|
|
105
|
+
destinationFee?: {
|
|
106
|
+
asset?: Asset;
|
|
107
|
+
balance: BalanceConfigBuilder;
|
|
108
|
+
};
|
|
109
|
+
min?: AssetMinConfigBuilder;
|
|
110
|
+
}
|
|
111
|
+
interface DestinationConfig extends Omit<SourceConfig, 'fee'> {
|
|
112
|
+
fee: FeeAmountConfig;
|
|
113
|
+
}
|
|
114
|
+
interface FeeConfig {
|
|
115
|
+
asset: Asset;
|
|
116
|
+
balance: BalanceConfigBuilder;
|
|
117
|
+
extra?: number;
|
|
118
|
+
}
|
|
119
|
+
interface FeeAmountConfig extends SetOptional<FeeConfig, 'balance'> {
|
|
120
|
+
amount: number | FeeConfigBuilder;
|
|
121
|
+
}
|
|
122
|
+
declare class AssetRoute {
|
|
123
|
+
readonly source: SourceConfig;
|
|
124
|
+
readonly destination: DestinationConfig;
|
|
125
|
+
readonly contract?: ContractConfigBuilder;
|
|
126
|
+
readonly extrinsic?: ExtrinsicConfigBuilder;
|
|
127
|
+
readonly monitoring?: EventMonitoringConfig;
|
|
128
|
+
constructor({ source, destination, contract, extrinsic, monitoring, }: AssetRouteConstructorParams);
|
|
129
|
+
getDestinationFeeAssetOnSource(): ChainAsset;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface ChainRoutesConstructorParams {
|
|
133
|
+
chain: AnyChain;
|
|
134
|
+
routes: RoutesParam[];
|
|
135
|
+
}
|
|
136
|
+
interface RoutesParam extends Omit<AssetRouteConstructorParams, 'source'> {
|
|
137
|
+
source: Omit<SourceConfig, 'chain'>;
|
|
138
|
+
}
|
|
139
|
+
declare class ChainRoutes {
|
|
140
|
+
readonly chain: AnyChain;
|
|
141
|
+
protected routes: Map<string, AssetRoute>;
|
|
142
|
+
constructor({ chain, routes }: ChainRoutesConstructorParams);
|
|
143
|
+
getRoutes(): AssetRoute[];
|
|
144
|
+
getAssetRoutes(keyOrAsset: string | AnyAsset): AssetRoute[];
|
|
145
|
+
getAssetDestinations(keyOrAsset: string | AnyAsset): AnyChain[];
|
|
146
|
+
getDestinationAssets(keyOrChain: string | AnyChain): Asset[];
|
|
147
|
+
getAssetRoute(asset: string | AnyAsset, destination: string | AnyChain): AssetRoute;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface MrlAssetRouteConstructorParams extends AssetRouteConstructorParams {
|
|
151
|
+
source: MrlSourceConfig;
|
|
152
|
+
mrl: MrlConfig;
|
|
153
|
+
}
|
|
154
|
+
interface MrlConfig {
|
|
155
|
+
isAutomaticPossible?: boolean;
|
|
156
|
+
transfer: MrlConfigBuilder;
|
|
157
|
+
bridgeChain: BridgeChainConfig;
|
|
158
|
+
}
|
|
159
|
+
interface ProtocolFeeConfig {
|
|
160
|
+
amount: number | ProtocolFeeConfigBuilder;
|
|
161
|
+
asset: Asset;
|
|
162
|
+
balance: BalanceConfigBuilder;
|
|
163
|
+
}
|
|
164
|
+
interface MrlSourceConfig extends SourceConfig {
|
|
165
|
+
/** Protocol bridge fee (e.g., Snowbridge fee) */
|
|
166
|
+
protocolFee?: ProtocolFeeConfig;
|
|
167
|
+
bridgeChainFee?: {
|
|
168
|
+
asset: Asset;
|
|
169
|
+
balance: BalanceConfigBuilder;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
interface BridgeChainConfig {
|
|
173
|
+
asset: Asset;
|
|
174
|
+
balance: BalanceConfigBuilder;
|
|
175
|
+
chain: AnyParachain;
|
|
176
|
+
fee: BridgeChainFeeConfig;
|
|
177
|
+
}
|
|
178
|
+
interface BridgeChainFeeConfig extends FeeConfig {
|
|
179
|
+
amount: number | FeeConfigBuilder;
|
|
180
|
+
}
|
|
181
|
+
declare class MrlAssetRoute extends AssetRoute {
|
|
182
|
+
readonly mrl: MrlConfig & {
|
|
183
|
+
isAutomaticPossible: boolean;
|
|
184
|
+
};
|
|
185
|
+
readonly source: MrlSourceConfig;
|
|
186
|
+
constructor({ source, destination, contract, extrinsic, mrl, }: MrlAssetRouteConstructorParams & {
|
|
187
|
+
source: MrlSourceConfig;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface MrlChainRoutesConstructorParams extends ChainRoutesConstructorParams {
|
|
192
|
+
routes: MrlRoutesParam[];
|
|
193
|
+
}
|
|
194
|
+
interface MrlRoutesParam extends Omit<MrlAssetRouteConstructorParams, 'source'> {
|
|
195
|
+
source: Omit<MrlSourceConfig, 'chain'>;
|
|
196
|
+
}
|
|
197
|
+
declare class MrlChainRoutes extends ChainRoutes {
|
|
198
|
+
protected routes: Map<string, MrlAssetRoute>;
|
|
199
|
+
constructor({ chain, routes }: MrlChainRoutesConstructorParams);
|
|
200
|
+
getRoutes(): MrlAssetRoute[];
|
|
201
|
+
getAssetRoute(asset: string | AnyAsset, destination: string | AnyChain): MrlAssetRoute;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Configuration options for initializing the ConfigService.
|
|
206
|
+
* This interface defines the structure for configuring assets, chains, routes, and endpoints.
|
|
207
|
+
*/
|
|
208
|
+
interface ConfigServiceOptions {
|
|
209
|
+
/**
|
|
210
|
+
* Optional map of assets where the key is the asset identifier and the value is the Asset object.
|
|
211
|
+
* If not provided, defaults to the predefined assetsMap.
|
|
212
|
+
*/
|
|
213
|
+
assets?: Map<string, Asset>;
|
|
214
|
+
/**
|
|
215
|
+
* Optional map of chains where the key is the chain identifier and the value is the Chain object.
|
|
216
|
+
* If not provided, defaults to the predefined chainsMap.
|
|
217
|
+
*/
|
|
218
|
+
chains?: Map<string, AnyChain>;
|
|
219
|
+
/**
|
|
220
|
+
* Routes configuration.
|
|
221
|
+
*/
|
|
222
|
+
routes: Map<string, ChainRoutes | MrlChainRoutes>;
|
|
223
|
+
}
|
|
224
|
+
declare class ConfigService {
|
|
225
|
+
protected assets: Map<string, Asset>;
|
|
226
|
+
protected chains: Map<string, AnyChain>;
|
|
227
|
+
protected routes: Map<string, ChainRoutes | MrlChainRoutes>;
|
|
228
|
+
constructor(options: ConfigServiceOptions);
|
|
229
|
+
getAsset(keyOrAsset: string | Asset): Asset;
|
|
230
|
+
getEcosystemAssets(ecosystem?: Ecosystem): Asset[];
|
|
231
|
+
getChain(keyOrChain: string | AnyChain): AnyChain;
|
|
232
|
+
getChainRoutes(keyOrChain: string | AnyChain): ChainRoutes | MrlChainRoutes;
|
|
233
|
+
getSourceChains({ asset, ecosystem, }: {
|
|
234
|
+
asset?: string | Asset;
|
|
235
|
+
ecosystem?: Ecosystem;
|
|
236
|
+
}): AnyChain[];
|
|
237
|
+
getDestinationChains({ asset, source, }: {
|
|
238
|
+
asset?: string | AnyAsset;
|
|
239
|
+
source: string | AnyChain;
|
|
240
|
+
}): AnyChain[];
|
|
241
|
+
getAssetRoute({ asset, source, destination, }: {
|
|
242
|
+
asset: string | AnyAsset;
|
|
243
|
+
source: string | AnyChain;
|
|
244
|
+
destination: string | AnyChain;
|
|
245
|
+
}): AssetRoute | MrlAssetRoute;
|
|
246
|
+
getRouteAssets({ source, destination, }: {
|
|
247
|
+
source: string | AnyChain;
|
|
248
|
+
destination: string | AnyChain;
|
|
249
|
+
}): Asset[];
|
|
250
|
+
updateAsset(asset: Asset): void;
|
|
251
|
+
updateChain(chain: AnyChain): void;
|
|
252
|
+
updateChainRoute(route: ChainRoutes): void;
|
|
253
|
+
updateEndpoints(endpoints: {
|
|
254
|
+
[key: string]: {
|
|
255
|
+
rpc: string;
|
|
256
|
+
ws: string[];
|
|
257
|
+
};
|
|
258
|
+
}): void;
|
|
259
|
+
}
|
|
260
|
+
|
|
196
261
|
declare const acala: Parachain;
|
|
197
262
|
declare const alphanetAssetHub: Parachain;
|
|
198
263
|
declare const alphanetRelay: Parachain;
|
|
199
264
|
declare const astar: Parachain;
|
|
200
265
|
declare const bifrostKusama: Parachain;
|
|
201
266
|
declare const bifrostPolkadot: Parachain;
|
|
202
|
-
declare const calamari: Parachain;
|
|
203
267
|
declare const centrifuge: Parachain;
|
|
204
268
|
declare const crustShadow: Parachain;
|
|
205
269
|
declare const darwinia: EvmParachain;
|
|
206
|
-
declare const
|
|
207
|
-
declare const
|
|
208
|
-
declare const
|
|
209
|
-
declare const
|
|
210
|
-
declare const hydraDX: Parachain;
|
|
270
|
+
declare const ethereum: EvmChain;
|
|
271
|
+
declare const fantomTestnet: EvmChain;
|
|
272
|
+
declare const hydration: Parachain;
|
|
273
|
+
declare const hydrationAlphanet: Parachain;
|
|
211
274
|
declare const interlay: Parachain;
|
|
212
|
-
declare const integritee: Parachain;
|
|
213
275
|
declare const karura: Parachain;
|
|
214
|
-
declare const khala: Parachain;
|
|
215
276
|
declare const kintsugi: Parachain;
|
|
216
277
|
declare const kusama: Parachain;
|
|
217
278
|
declare const kusamaAssetHub: Parachain;
|
|
218
|
-
declare const
|
|
219
|
-
declare const
|
|
220
|
-
declare const
|
|
279
|
+
declare const mantaParachain: Parachain;
|
|
280
|
+
declare const laosAlphanet: EvmParachain;
|
|
281
|
+
declare const laosMainnet: EvmParachain;
|
|
221
282
|
declare const moonbaseAlpha: EvmParachain;
|
|
222
283
|
declare const moonbaseBeta: EvmParachain;
|
|
284
|
+
declare const moonbaseStage: EvmParachain;
|
|
285
|
+
declare const moonlama: EvmParachain;
|
|
286
|
+
declare const moonsama: EvmParachain;
|
|
223
287
|
declare const moonbeam: EvmParachain;
|
|
224
288
|
declare const moonriver: EvmParachain;
|
|
225
|
-
declare const
|
|
226
|
-
declare const originTrail: Parachain;
|
|
289
|
+
declare const neuroweb: Parachain;
|
|
227
290
|
declare const originTrailAlphanet: Parachain;
|
|
228
|
-
declare const
|
|
229
|
-
declare const
|
|
230
|
-
declare const
|
|
231
|
-
declare const
|
|
232
|
-
declare const
|
|
291
|
+
declare const peaqAlphanet: Parachain;
|
|
292
|
+
declare const peaqChain: Parachain;
|
|
293
|
+
declare const peaqEvm: EvmParachain;
|
|
294
|
+
declare const peaqEvmAlphanet: EvmParachain;
|
|
295
|
+
declare const pendulum: Parachain;
|
|
233
296
|
declare const polkadot: Parachain;
|
|
234
297
|
declare const polkadotAssetHub: Parachain;
|
|
235
298
|
declare const robonomics: Parachain;
|
|
236
299
|
declare const shiden: Parachain;
|
|
237
|
-
declare const subsocial: Parachain;
|
|
238
|
-
declare const turing: Parachain;
|
|
239
300
|
declare const turingAlphanet: Parachain;
|
|
240
301
|
declare const uniqueAlpha: Parachain;
|
|
241
302
|
declare const zeitgeist: Parachain;
|
|
242
303
|
declare const chainsList: AnyChain[];
|
|
243
304
|
declare const chainsMap: Map<string, AnyChain>;
|
|
244
305
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
TransferConfig,
|
|
258
|
-
aca,
|
|
259
|
-
acala,
|
|
260
|
-
alan,
|
|
261
|
-
alphanetAssetHub,
|
|
262
|
-
alphanetRelay,
|
|
263
|
-
aseed,
|
|
264
|
-
assetsList,
|
|
265
|
-
assetsMap,
|
|
266
|
-
astar,
|
|
267
|
-
astr,
|
|
268
|
-
atom,
|
|
269
|
-
auq,
|
|
270
|
-
betaDEV,
|
|
271
|
-
bifrostKusama,
|
|
272
|
-
bifrostPolkadot,
|
|
273
|
-
bnc,
|
|
274
|
-
calamari,
|
|
275
|
-
centrifuge,
|
|
276
|
-
cfg,
|
|
277
|
-
chainsList,
|
|
278
|
-
chainsMap,
|
|
279
|
-
crab,
|
|
280
|
-
crustShadow,
|
|
281
|
-
csm,
|
|
282
|
-
dai,
|
|
283
|
-
darwinia,
|
|
284
|
-
darwiniaCrab,
|
|
285
|
-
darwiniaPangoro,
|
|
286
|
-
dev,
|
|
287
|
-
dot,
|
|
288
|
-
eq,
|
|
289
|
-
eqd,
|
|
290
|
-
equilibrium,
|
|
291
|
-
equilibriumAlphanet,
|
|
292
|
-
fil,
|
|
293
|
-
glmr,
|
|
294
|
-
hdx,
|
|
295
|
-
hko,
|
|
296
|
-
hydraDX,
|
|
297
|
-
ibtc,
|
|
298
|
-
integritee,
|
|
299
|
-
interlay,
|
|
300
|
-
intr,
|
|
301
|
-
kar,
|
|
302
|
-
karura,
|
|
303
|
-
kbtc,
|
|
304
|
-
khala,
|
|
305
|
-
kint,
|
|
306
|
-
kintsugi,
|
|
307
|
-
kma,
|
|
308
|
-
ksm,
|
|
309
|
-
kusama,
|
|
310
|
-
kusamaAssetHub,
|
|
311
|
-
ldot,
|
|
312
|
-
lit,
|
|
313
|
-
litentryAlphanet,
|
|
314
|
-
litmus,
|
|
315
|
-
mangataKusama,
|
|
316
|
-
mgx,
|
|
317
|
-
moonbaseAlpha,
|
|
318
|
-
moonbaseBeta,
|
|
319
|
-
moonbeam,
|
|
320
|
-
moonriver,
|
|
321
|
-
movr,
|
|
322
|
-
nodl,
|
|
323
|
-
nodle,
|
|
324
|
-
originTrail,
|
|
325
|
-
originTrailAlphanet,
|
|
326
|
-
otp,
|
|
327
|
-
para,
|
|
328
|
-
parallel,
|
|
329
|
-
parallelHeiko,
|
|
330
|
-
paring,
|
|
331
|
-
pha,
|
|
332
|
-
phala,
|
|
333
|
-
pica,
|
|
334
|
-
picasso,
|
|
335
|
-
picassoAlphanet,
|
|
336
|
-
polkadot,
|
|
337
|
-
polkadotAssetHub,
|
|
338
|
-
ring,
|
|
339
|
-
rmrk,
|
|
340
|
-
robonomics,
|
|
341
|
-
sdn,
|
|
342
|
-
shiden,
|
|
343
|
-
soon,
|
|
344
|
-
sub,
|
|
345
|
-
subsocial,
|
|
346
|
-
teer,
|
|
347
|
-
tt1,
|
|
348
|
-
tur,
|
|
349
|
-
turing,
|
|
350
|
-
turingAlphanet,
|
|
351
|
-
uniqueAlpha,
|
|
352
|
-
unit,
|
|
353
|
-
usdc,
|
|
354
|
-
usdcwh,
|
|
355
|
-
usdt,
|
|
356
|
-
usdtwh,
|
|
357
|
-
vbnc,
|
|
358
|
-
vdot,
|
|
359
|
-
vfil,
|
|
360
|
-
vglmr,
|
|
361
|
-
vksm,
|
|
362
|
-
vmovr,
|
|
363
|
-
wbtc,
|
|
364
|
-
weth,
|
|
365
|
-
wftm,
|
|
366
|
-
xrt,
|
|
367
|
-
zeitgeist,
|
|
368
|
-
ztg,
|
|
369
|
-
};
|
|
306
|
+
declare function getKey(keyOrModel: string | AnyAsset | AnyChain): string;
|
|
307
|
+
|
|
308
|
+
declare const crossEcosystemsRoutesList: ChainRoutes[];
|
|
309
|
+
declare const crossEcosystemsRoutesMap: Map<string, ChainRoutes>;
|
|
310
|
+
|
|
311
|
+
declare const mrlRoutesList: MrlChainRoutes[];
|
|
312
|
+
declare const mrlRoutesMap: Map<string, MrlChainRoutes>;
|
|
313
|
+
|
|
314
|
+
declare const xcmRoutesList: ChainRoutes[];
|
|
315
|
+
declare const xcmRoutesMap: Map<string, ChainRoutes>;
|
|
316
|
+
|
|
317
|
+
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, crossEcosystemsRoutesList, crossEcosystemsRoutesMap, crustShadow, csm, dai, darwinia, 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, 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 };
|