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