@moonbeam-network/xcm-config 0.5.0 → 1.0.0
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/README.md +13 -2
- package/build/index.cjs +1 -1
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +240 -1759
- package/build/index.mjs +1 -1
- package/build/index.mjs.map +1 -1
- package/package.json +8 -6
package/build/index.d.ts
CHANGED
|
@@ -1,1771 +1,252 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
interface MoonChain extends ChainBase<MoonChainKey> {
|
|
75
|
-
chainId: number;
|
|
76
|
-
decimals: number;
|
|
77
|
-
unitsPerSecond: bigint;
|
|
78
|
-
}
|
|
79
|
-
interface Chain<ChainKeys extends ChainKey = ChainKey>
|
|
80
|
-
extends ChainBase<ChainKeys> {
|
|
81
|
-
weight: number;
|
|
82
|
-
moonAssetId?: number | bigint;
|
|
83
|
-
palletInstance?: number;
|
|
84
|
-
/**
|
|
85
|
-
* units per second - a number of units per second
|
|
86
|
-
* unitsPerSecond = weightPerSecond * baseExtrinsicCost / baseExtrinsicWeight
|
|
87
|
-
*/
|
|
88
|
-
unitsPerSecond?: bigint;
|
|
89
|
-
ss58Format?: number;
|
|
90
|
-
usesEthereumAccounts?: boolean;
|
|
91
|
-
genesisHash: string;
|
|
92
|
-
assetsDecimals?: Record<string, number>;
|
|
93
|
-
}
|
|
94
|
-
interface XcmFeeAsset<Symbols extends AssetSymbol = AssetSymbol> {
|
|
95
|
-
balance: BalanceConfig<Symbols>;
|
|
96
|
-
asset: Asset<Symbols>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
declare enum MoonChainKey {
|
|
100
|
-
MoonbaseAlpha = 'MoonbaseAlpha',
|
|
101
|
-
Moonbeam = 'Moonbeam',
|
|
102
|
-
Moonriver = 'Moonriver',
|
|
103
|
-
}
|
|
104
|
-
declare const MOON_CHAINS: Record<MoonChainKey, MoonChain>;
|
|
105
|
-
declare enum ChainKey {
|
|
106
|
-
Acala = 'Acala',
|
|
107
|
-
AlphanetRelay = 'AlphanetRelay',
|
|
108
|
-
Astar = 'Astar',
|
|
109
|
-
Bifrost = 'Bifrost',
|
|
110
|
-
BitCountryPioneer = 'BitCountryPioneer',
|
|
111
|
-
BifrostPolkadot = 'BifrostPolkadot',
|
|
112
|
-
Calamari = 'Calamari',
|
|
113
|
-
Crab = 'Crab',
|
|
114
|
-
CrustShadow = 'CrustShadow',
|
|
115
|
-
Darwinia = 'Darwinia',
|
|
116
|
-
DarwiniaPangoro = 'DarwiniaPangoro',
|
|
117
|
-
Equilibrium = 'Equilibrium',
|
|
118
|
-
EquilibriumAlphanet = 'EquilibriumAlphanet',
|
|
119
|
-
HydraDX = 'HydraDX',
|
|
120
|
-
Integritee = 'Integritee',
|
|
121
|
-
Interlay = 'Interlay',
|
|
122
|
-
Karura = 'Karura',
|
|
123
|
-
Khala = 'Khala',
|
|
124
|
-
Kintsugi = 'Kintsugi',
|
|
125
|
-
Kusama = 'Kusama',
|
|
126
|
-
LitentryAlphanet = 'LitentryAlphanet',
|
|
127
|
-
Litmus = 'Litmus',
|
|
128
|
-
MoonbaseBeta = 'MoonbaseBeta',
|
|
129
|
-
Parallel = 'Parallel',
|
|
130
|
-
ParallelHeiko = 'ParallelHeiko',
|
|
131
|
-
Phala = 'Phala',
|
|
132
|
-
Polkadot = 'Polkadot',
|
|
133
|
-
Robonomics = 'Robonomics',
|
|
134
|
-
Shiden = 'Shiden',
|
|
135
|
-
Statemine = 'Statemine',
|
|
136
|
-
StatemineAlphanet = 'StatemineAlphanet',
|
|
137
|
-
Statemint = 'Statemint',
|
|
138
|
-
UniqueAlpha = 'UniqueAlpha',
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
declare enum BalancePallet {
|
|
142
|
-
Assets = 'assets',
|
|
143
|
-
AssetRegistry = 'assetRegistry',
|
|
144
|
-
OrmlTokens = 'ormlTokens',
|
|
145
|
-
System = 'system',
|
|
146
|
-
Tokens = 'tokens',
|
|
147
|
-
}
|
|
148
|
-
declare enum BalanceFunction {
|
|
149
|
-
Account = 'account',
|
|
150
|
-
Accounts = 'accounts',
|
|
151
|
-
Asset = 'asset',
|
|
152
|
-
AssetMetadatas = 'assetMetadatas',
|
|
153
|
-
CurrencyMetadatas = 'currencyMetadatas',
|
|
154
|
-
}
|
|
155
|
-
declare enum BalanceCurrencyTypes {
|
|
156
|
-
Token = 'Token',
|
|
157
|
-
Token2 = 'Token2',
|
|
158
|
-
ForeignAsset = 'ForeignAsset',
|
|
159
|
-
NativeToken = 'NativeToken',
|
|
160
|
-
MiningResource = 'MiningResource',
|
|
161
|
-
FungibleToken = 'FungibleToken',
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
type BalanceConfig<Symbols extends AssetSymbol = AssetSymbol> =
|
|
165
|
-
| SystemBalanceConfig
|
|
166
|
-
| AssetsBalanceConfig
|
|
167
|
-
| EquilibriumSystemBalanceConfig
|
|
168
|
-
| OrmlTokensBalanceConfig
|
|
169
|
-
| TokensBalanceConfig<Symbols>;
|
|
170
|
-
interface SystemBalanceConfig<Data = PalletBalancesAccountData> {
|
|
171
|
-
pallet: BalancePallet.System;
|
|
172
|
-
function: BalanceFunction.Account;
|
|
173
|
-
path: ['data'];
|
|
174
|
-
getParams: (account: string) => [string];
|
|
175
|
-
calc: (data: Data) => bigint;
|
|
176
|
-
}
|
|
177
|
-
type EquilibriumSystemBalanceConfig = SystemBalanceConfig<Type>;
|
|
178
|
-
type EquilibriumSystemBalanceData = Array<
|
|
179
|
-
[
|
|
180
|
-
number,
|
|
181
|
-
{
|
|
182
|
-
positive: number;
|
|
183
|
-
},
|
|
184
|
-
]
|
|
185
|
-
>;
|
|
186
|
-
interface AssetsBalanceConfig {
|
|
187
|
-
pallet: BalancePallet.Assets;
|
|
188
|
-
function: BalanceFunction.Account;
|
|
189
|
-
path: ['balance'];
|
|
190
|
-
getParams: (account: string) => [AssetId, string];
|
|
191
|
-
calc: (balance: u128) => bigint;
|
|
192
|
-
}
|
|
193
|
-
interface TokensPalletAccountData {
|
|
194
|
-
free: u128;
|
|
195
|
-
reserved: u128;
|
|
196
|
-
frozen: u128;
|
|
197
|
-
}
|
|
198
|
-
interface OrmlTokensBalanceConfig {
|
|
199
|
-
pallet: BalancePallet.OrmlTokens;
|
|
200
|
-
function: BalanceFunction.Accounts;
|
|
201
|
-
path: [];
|
|
202
|
-
getParams: (account: string) => [
|
|
203
|
-
string,
|
|
204
|
-
{
|
|
205
|
-
ForeignAsset: AssetId;
|
|
206
|
-
},
|
|
207
|
-
];
|
|
208
|
-
calc: (data: TokensPalletAccountData) => bigint;
|
|
209
|
-
}
|
|
210
|
-
interface TokensBalanceConfig<Symbols extends AssetSymbol = AssetSymbol> {
|
|
211
|
-
pallet: BalancePallet.Tokens;
|
|
212
|
-
function: BalanceFunction.Accounts;
|
|
213
|
-
path: [];
|
|
214
|
-
getParams: (account: string) => [string, TokensBalanceParamAsset<Symbols>];
|
|
215
|
-
calc: (data: TokensPalletAccountData) => bigint;
|
|
216
|
-
}
|
|
217
|
-
type TokensBalanceParamAsset<Symbols extends AssetSymbol = AssetSymbol> =
|
|
218
|
-
| {
|
|
219
|
-
[BalanceCurrencyTypes.Token]: Symbols | AssetSymbol.KUSD;
|
|
220
|
-
}
|
|
221
|
-
| {
|
|
222
|
-
[BalanceCurrencyTypes.ForeignAsset]: AssetId;
|
|
223
|
-
}
|
|
224
|
-
| {
|
|
225
|
-
[BalanceCurrencyTypes.MiningResource]: AssetId;
|
|
226
|
-
}
|
|
227
|
-
| {
|
|
228
|
-
[BalanceCurrencyTypes.FungibleToken]: AssetId;
|
|
229
|
-
}
|
|
230
|
-
| {
|
|
231
|
-
[BalanceCurrencyTypes.Token2]: AssetId;
|
|
232
|
-
}
|
|
233
|
-
| AssetId;
|
|
234
|
-
type MinBalanceConfig = MinBalanceAssetsConfig | MinBalanceAssetRegistryConfig;
|
|
235
|
-
interface MinBalanceAssetsConfig {
|
|
236
|
-
pallet: BalancePallet.Assets;
|
|
237
|
-
function: BalanceFunction.Asset;
|
|
238
|
-
path: ['minBalance'];
|
|
239
|
-
params: [AssetId];
|
|
240
|
-
}
|
|
241
|
-
interface MinBalanceAssetRegistryConfig {
|
|
242
|
-
pallet: BalancePallet.AssetRegistry;
|
|
243
|
-
function: BalanceFunction.AssetMetadatas | BalanceFunction.CurrencyMetadatas;
|
|
244
|
-
path: ['minimalBalance'];
|
|
245
|
-
params: [
|
|
246
|
-
| {
|
|
247
|
-
ForeignAssetId: AssetId;
|
|
248
|
-
}
|
|
249
|
-
| {
|
|
250
|
-
Token2: AssetId;
|
|
251
|
-
},
|
|
252
|
-
];
|
|
253
|
-
}
|
|
254
|
-
interface PalletBalancesAccountDataOld extends Struct {
|
|
255
|
-
readonly free: u128;
|
|
256
|
-
readonly reserved: u128;
|
|
257
|
-
readonly miscFrozen: u128;
|
|
258
|
-
readonly feeFrozen: u128;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
declare function createBalanceBuilder<
|
|
262
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
263
|
-
>(): {
|
|
264
|
-
assets: typeof assets;
|
|
265
|
-
minAssetPallet: typeof minAssetPallet;
|
|
266
|
-
minAssetRegistryPallet: typeof minAssetRegistryPallet;
|
|
267
|
-
minCurrencyMetadata: typeof minCurrencyMetadata;
|
|
268
|
-
ormlTokens: typeof ormlTokens;
|
|
269
|
-
system: typeof system;
|
|
270
|
-
systemEquilibrium: typeof systemEquilibrium;
|
|
271
|
-
tokens: () => {
|
|
272
|
-
tokensBase: (asset: AssetId | Symbols) => TokensBalanceConfig<Symbols>;
|
|
273
|
-
foreignAsset: (asset: AssetId | Symbols) => TokensBalanceConfig<Symbols>;
|
|
274
|
-
fungibleToken: (asset: AssetId) => TokensBalanceConfig<Symbols>;
|
|
275
|
-
miningResource: (asset: AssetId) => TokensBalanceConfig<Symbols>;
|
|
276
|
-
token: (asset: AssetSymbol.KUSD | Symbols) => TokensBalanceConfig<Symbols>;
|
|
277
|
-
token2: (asset: AssetId) => TokensBalanceConfig<Symbols>;
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
declare function assets(asset: AssetId): AssetsBalanceConfig;
|
|
281
|
-
declare function minAssetPallet(asset: AssetId): MinBalanceAssetsConfig;
|
|
282
|
-
declare function minAssetRegistryPallet(
|
|
283
|
-
asset: AssetId,
|
|
284
|
-
): MinBalanceAssetRegistryConfig;
|
|
285
|
-
declare function minCurrencyMetadata(
|
|
286
|
-
asset: AssetId,
|
|
287
|
-
): MinBalanceAssetRegistryConfig;
|
|
288
|
-
declare function ormlTokens(asset: AssetId): OrmlTokensBalanceConfig;
|
|
289
|
-
declare function system(): SystemBalanceConfig;
|
|
290
|
-
declare function systemEquilibrium(id: number): EquilibriumSystemBalanceConfig;
|
|
291
|
-
|
|
292
|
-
type Parents = 0 | 1;
|
|
293
|
-
interface XcmExtrinsicGetParams {
|
|
294
|
-
account: string;
|
|
295
|
-
amount: bigint;
|
|
296
|
-
extrinsicCall?: SubmittableExtrinsicFunction<'promise'>;
|
|
297
|
-
fee?: bigint;
|
|
298
|
-
}
|
|
299
|
-
declare enum XcmVersion {
|
|
300
|
-
v1 = 'V1',
|
|
301
|
-
v2 = 'V2',
|
|
302
|
-
v3 = 'V3',
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
declare enum ExtrinsicPallet {
|
|
306
|
-
PolkadotXcm = 'polkadotXcm',
|
|
307
|
-
XcmPallet = 'xcmPallet',
|
|
308
|
-
XTokens = 'xTokens',
|
|
309
|
-
XTransfer = 'xTransfer',
|
|
310
|
-
EqBalances = 'eqBalances',
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
declare enum PolkadotXcmExtrinsic {
|
|
314
|
-
LimitedReserveTransferAssets = 'limitedReserveTransferAssets',
|
|
315
|
-
LimitedReserveWithdrawAssets = 'limitedReserveWithdrawAssets',
|
|
316
|
-
}
|
|
317
|
-
declare enum PolkadotXcmExtrinsicSuccessEvent {
|
|
318
|
-
Attempted = 'Attempted',
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
interface PolkadotXcmPallet {
|
|
322
|
-
pallet: ExtrinsicPallet.PolkadotXcm;
|
|
323
|
-
extrinsic: PolkadotXcmExtrinsic;
|
|
324
|
-
successEvent: PolkadotXcmExtrinsicSuccessEvent;
|
|
325
|
-
getParams: (params: XcmExtrinsicGetParams) => PolkadotXcmPalletParams;
|
|
326
|
-
}
|
|
327
|
-
type PolkadotXcmPalletParams = [
|
|
328
|
-
/**
|
|
329
|
-
* destination
|
|
330
|
-
*/
|
|
331
|
-
{
|
|
332
|
-
[v in XcmVersion]?: {
|
|
333
|
-
parents: Parents;
|
|
334
|
-
interior: {
|
|
335
|
-
X1: {
|
|
336
|
-
Parachain: number;
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
},
|
|
341
|
-
/**
|
|
342
|
-
* beneficiary
|
|
343
|
-
*/
|
|
344
|
-
{
|
|
345
|
-
[v in XcmVersion]?: {
|
|
346
|
-
parents: 0;
|
|
347
|
-
interior: {
|
|
348
|
-
X1: {
|
|
349
|
-
AccountKey20: {
|
|
350
|
-
network: 'Any';
|
|
351
|
-
/**
|
|
352
|
-
* account
|
|
353
|
-
*/
|
|
354
|
-
key: string;
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
|
-
},
|
|
360
|
-
/**
|
|
361
|
-
* asset
|
|
362
|
-
*/
|
|
363
|
-
{
|
|
364
|
-
[v in XcmVersion]?: PolkadotXcmAssetParam[];
|
|
365
|
-
},
|
|
366
|
-
/**
|
|
367
|
-
* fee
|
|
368
|
-
*/
|
|
369
|
-
0,
|
|
370
|
-
/**
|
|
371
|
-
* weight
|
|
372
|
-
*/
|
|
373
|
-
'Unlimited',
|
|
374
|
-
];
|
|
375
|
-
type PolkadotXcmAssetParam = {
|
|
376
|
-
id: {
|
|
377
|
-
Concrete: {
|
|
378
|
-
parents: Parents;
|
|
379
|
-
interior:
|
|
380
|
-
| 'Here'
|
|
381
|
-
| PolkadotXcmAssetParamInteriorX1
|
|
382
|
-
| PolkadotXcmAssetParamInteriorX2;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
fun: {
|
|
386
|
-
Fungible: bigint;
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
interface PolkadotXcmAssetParamInteriorX1 {
|
|
390
|
-
X1: {
|
|
391
|
-
PalletInstance: number;
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
interface PolkadotXcmAssetParamInteriorX2 {
|
|
395
|
-
X2:
|
|
396
|
-
| [
|
|
397
|
-
{
|
|
398
|
-
PalletInstance: number;
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
GeneralIndex: AssetId;
|
|
402
|
-
},
|
|
403
|
-
]
|
|
404
|
-
| [
|
|
405
|
-
{
|
|
406
|
-
Parachain: number;
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
PalletInstance: number;
|
|
410
|
-
},
|
|
411
|
-
];
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
declare function polkadotXcm(chain: MoonChain): {
|
|
415
|
-
limitedReserveTransferAssets: () => {
|
|
416
|
-
successEvent: (event: PolkadotXcmExtrinsicSuccessEvent) => {
|
|
417
|
-
V1V2: () => {
|
|
418
|
-
here: () => PolkadotXcmPallet;
|
|
419
|
-
X1: () => PolkadotXcmPallet;
|
|
420
|
-
X2: (palletInstance: number, assetId: AssetId) => PolkadotXcmPallet;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
limitedReserveWithdrawAssets: () => {
|
|
425
|
-
successEvent: (event: PolkadotXcmExtrinsicSuccessEvent) => {
|
|
426
|
-
V1V2: () => {
|
|
427
|
-
X2: (palletInstance: number) => PolkadotXcmPallet;
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
declare function getCreateV1V2Extrinsic(
|
|
434
|
-
extrinsic: PolkadotXcmExtrinsic,
|
|
435
|
-
event: PolkadotXcmExtrinsicSuccessEvent,
|
|
436
|
-
config: MoonChain,
|
|
437
|
-
parents?: Parents,
|
|
438
|
-
): (getAsset: (amount: bigint) => PolkadotXcmAssetParam[]) => PolkadotXcmPallet;
|
|
439
|
-
|
|
440
|
-
declare function xcmPallet(chain: MoonChain): {
|
|
441
|
-
limitedReserveTransferAssets: () => {
|
|
442
|
-
successEvent: (event: PolkadotXcmExtrinsicSuccessEvent) => {
|
|
443
|
-
pallet: ExtrinsicPallet;
|
|
444
|
-
extrinsic: PolkadotXcmExtrinsic;
|
|
445
|
-
successEvent: PolkadotXcmExtrinsicSuccessEvent;
|
|
446
|
-
getParams: (params: XcmExtrinsicGetParams) => PolkadotXcmPalletParams;
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
interface XcmPallet extends Omit<PolkadotXcmPallet, 'pallet'> {
|
|
452
|
-
pallet: ExtrinsicPallet.XcmPallet;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
declare enum XTokensExtrinsic {
|
|
456
|
-
Transfer = 'transfer',
|
|
457
|
-
TransferMultiAsset = 'transferMultiasset',
|
|
458
|
-
TransferMultiCurrencies = 'transferMulticurrencies',
|
|
459
|
-
}
|
|
460
|
-
declare enum XTokensExtrinsicSuccessEvent {
|
|
461
|
-
Transferred = 'Transferred',
|
|
462
|
-
TransferredMultiAssets = 'TransferredMultiAssets',
|
|
463
|
-
TransferredMultiCurrencies = 'TransferredMultiCurrencies',
|
|
464
|
-
}
|
|
465
|
-
declare enum XTokensExtrinsicCurrencyTypes {
|
|
466
|
-
ForeignAsset = 'ForeignAsset',
|
|
467
|
-
FungibleToken = 'FungibleToken',
|
|
468
|
-
MantaCurrency = 'MantaCurrency',
|
|
469
|
-
MiningResource = 'MiningResource',
|
|
470
|
-
Native = 'Native',
|
|
471
|
-
NativeAssetId = 'NativeAssetId',
|
|
472
|
-
NativeToken = 'NativeToken',
|
|
473
|
-
OtherReserve = 'OtherReserve',
|
|
474
|
-
Token = 'Token',
|
|
475
|
-
Token2 = 'Token2',
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
type XTokensPallet<Symbols extends AssetSymbol = AssetSymbol> =
|
|
479
|
-
| XTokensTransferExtrinsic<Symbols>
|
|
480
|
-
| XTokensTransferMultiAssetExtrinsic<Symbols>
|
|
481
|
-
| XTokensTransferMultiCurrenciesExtrinsic<Symbols>;
|
|
482
|
-
type XTokensTransferExtrinsic<Symbols extends AssetSymbol = AssetSymbol> =
|
|
483
|
-
XTokensBaseExtrinsic<XTokensExtrinsic.Transfer, Symbols>;
|
|
484
|
-
type XTokensTransferMultiAssetExtrinsic<
|
|
485
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
486
|
-
> = XTokensBaseExtrinsic<XTokensExtrinsic.TransferMultiAsset, Symbols>;
|
|
487
|
-
type XTokensTransferMultiCurrenciesExtrinsic<
|
|
488
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
489
|
-
> = XTokensBaseExtrinsic<XTokensExtrinsic.TransferMultiCurrencies, Symbols>;
|
|
490
|
-
type XTokensWeightLimit =
|
|
491
|
-
| number
|
|
492
|
-
| {
|
|
493
|
-
Limited: number;
|
|
494
|
-
}
|
|
495
|
-
| {
|
|
496
|
-
Limited: {
|
|
497
|
-
refTime: number;
|
|
498
|
-
proofSize: number;
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
interface XTokensBaseExtrinsic<
|
|
502
|
-
Extrinsic extends XTokensExtrinsic,
|
|
503
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
504
|
-
> {
|
|
505
|
-
pallet: ExtrinsicPallet.XTokens;
|
|
506
|
-
extrinsic: Extrinsic;
|
|
507
|
-
successEvent: XTokensExtrinsicSuccessEvent;
|
|
508
|
-
getParams: (
|
|
509
|
-
params: XcmExtrinsicGetParams,
|
|
510
|
-
) => XTokensParamsByExtrinsic<Symbols>[Extrinsic];
|
|
511
|
-
}
|
|
512
|
-
interface XTokensParamsByExtrinsic<Symbols extends AssetSymbol = AssetSymbol> {
|
|
513
|
-
[XTokensExtrinsic.Transfer]: XTokensTransferExtrinsicParams<Symbols>;
|
|
514
|
-
[XTokensExtrinsic.TransferMultiAsset]: XTokensTransferMultiAssetExtrinsicParams<Symbols>;
|
|
515
|
-
[XTokensExtrinsic.TransferMultiCurrencies]: XTokensTransferMultiCurrenciesExtrinsicParams<Symbols>;
|
|
516
|
-
}
|
|
517
|
-
type XTokensTransferExtrinsicParams<Symbols extends AssetSymbol = AssetSymbol> =
|
|
518
|
-
[
|
|
519
|
-
/**
|
|
520
|
-
* asset
|
|
521
|
-
*/
|
|
522
|
-
XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
523
|
-
/**
|
|
524
|
-
* amount
|
|
525
|
-
*/
|
|
526
|
-
bigint,
|
|
527
|
-
/**
|
|
528
|
-
* destination
|
|
529
|
-
*/
|
|
530
|
-
{
|
|
531
|
-
[Key in XcmVersion]?: {
|
|
532
|
-
parents: 1;
|
|
533
|
-
interior: {
|
|
534
|
-
X2: [
|
|
535
|
-
{
|
|
536
|
-
Parachain: number;
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
AccountKey20: {
|
|
540
|
-
network: 'Any';
|
|
541
|
-
/**
|
|
542
|
-
* account
|
|
543
|
-
*/
|
|
544
|
-
key: string;
|
|
545
|
-
};
|
|
546
|
-
},
|
|
547
|
-
];
|
|
548
|
-
};
|
|
549
|
-
};
|
|
550
|
-
},
|
|
551
|
-
/**
|
|
552
|
-
* weight
|
|
553
|
-
*/
|
|
554
|
-
XTokensWeightLimit,
|
|
555
|
-
];
|
|
556
|
-
type XTokensTransferMultiAssetExtrinsicParams<
|
|
557
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
558
|
-
> = [
|
|
559
|
-
/**
|
|
560
|
-
* asset
|
|
561
|
-
*/
|
|
562
|
-
{
|
|
563
|
-
V1: {
|
|
564
|
-
id: {
|
|
565
|
-
Concrete: {
|
|
566
|
-
parents: 1;
|
|
567
|
-
interior: {
|
|
568
|
-
X2: [
|
|
569
|
-
{
|
|
570
|
-
Parachain: number;
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
GeneralKey: Symbols;
|
|
574
|
-
},
|
|
575
|
-
];
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
};
|
|
579
|
-
fun: {
|
|
580
|
-
/**
|
|
581
|
-
* amount
|
|
582
|
-
*/
|
|
583
|
-
Fungible: bigint;
|
|
584
|
-
};
|
|
585
|
-
};
|
|
586
|
-
},
|
|
587
|
-
/**
|
|
588
|
-
* destination
|
|
589
|
-
*/
|
|
590
|
-
{
|
|
591
|
-
V1: {
|
|
592
|
-
parents: 1;
|
|
593
|
-
interior: {
|
|
594
|
-
X2: [
|
|
595
|
-
{
|
|
596
|
-
Parachain: number;
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
AccountKey20: {
|
|
600
|
-
network: 'Any';
|
|
601
|
-
key: string;
|
|
602
|
-
};
|
|
603
|
-
},
|
|
604
|
-
];
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
},
|
|
608
|
-
/**
|
|
609
|
-
* weight
|
|
610
|
-
*/
|
|
611
|
-
XTokensWeightLimit,
|
|
612
|
-
];
|
|
613
|
-
type XTokensTransferMultiCurrenciesExtrinsicParams<
|
|
614
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
615
|
-
> = [
|
|
616
|
-
[
|
|
617
|
-
[
|
|
618
|
-
XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
619
|
-
/**
|
|
620
|
-
* amount
|
|
621
|
-
*/
|
|
622
|
-
bigint,
|
|
623
|
-
],
|
|
624
|
-
[
|
|
625
|
-
XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
626
|
-
/**
|
|
627
|
-
* fee
|
|
628
|
-
*/
|
|
629
|
-
bigint,
|
|
630
|
-
],
|
|
631
|
-
],
|
|
632
|
-
/**
|
|
633
|
-
* fee item
|
|
634
|
-
*/
|
|
635
|
-
1,
|
|
636
|
-
{
|
|
637
|
-
V1: {
|
|
638
|
-
parents: 1;
|
|
639
|
-
interior: {
|
|
640
|
-
X2: [
|
|
641
|
-
{
|
|
642
|
-
Parachain: number;
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
AccountKey20: {
|
|
646
|
-
network: 'Any';
|
|
647
|
-
/**
|
|
648
|
-
* account
|
|
649
|
-
*/
|
|
650
|
-
key: string;
|
|
651
|
-
};
|
|
652
|
-
},
|
|
653
|
-
];
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
},
|
|
657
|
-
/**
|
|
658
|
-
* weight
|
|
659
|
-
*/
|
|
660
|
-
XTokensWeightLimit,
|
|
661
|
-
];
|
|
662
|
-
type XTokensTransferExtrinsicParamsAsset<
|
|
663
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
664
|
-
> =
|
|
665
|
-
| {
|
|
666
|
-
[XTokensExtrinsicCurrencyTypes.Token]: Symbols | AssetSymbol.KUSD;
|
|
667
|
-
}
|
|
668
|
-
| {
|
|
669
|
-
[XTokensExtrinsicCurrencyTypes.Token2]: AssetId;
|
|
670
|
-
}
|
|
671
|
-
| {
|
|
672
|
-
[XTokensExtrinsicCurrencyTypes.Native]: Symbols;
|
|
673
|
-
}
|
|
674
|
-
| {
|
|
675
|
-
[XTokensExtrinsicCurrencyTypes.NativeAssetId]: 'Here';
|
|
676
|
-
}
|
|
677
|
-
| {
|
|
678
|
-
[XTokensExtrinsicCurrencyTypes.NativeToken]: AssetId;
|
|
679
|
-
}
|
|
680
|
-
| {
|
|
681
|
-
[XTokensExtrinsicCurrencyTypes.MiningResource]: AssetId;
|
|
682
|
-
}
|
|
683
|
-
| {
|
|
684
|
-
[XTokensExtrinsicCurrencyTypes.ForeignAsset]: AssetId;
|
|
685
|
-
}
|
|
686
|
-
| {
|
|
687
|
-
[XTokensExtrinsicCurrencyTypes.FungibleToken]: AssetId;
|
|
688
|
-
}
|
|
689
|
-
| {
|
|
690
|
-
[XTokensExtrinsicCurrencyTypes.MantaCurrency]: AssetId;
|
|
691
|
-
}
|
|
692
|
-
| {
|
|
693
|
-
[XTokensExtrinsicCurrencyTypes.OtherReserve]: AssetId;
|
|
694
|
-
}
|
|
695
|
-
| Symbols
|
|
696
|
-
| AssetId
|
|
697
|
-
| 'SelfReserve';
|
|
698
|
-
|
|
699
|
-
declare function xTokens<
|
|
700
|
-
Symbols extends AssetSymbol,
|
|
701
|
-
ChainKeys extends ChainKey,
|
|
702
|
-
>(
|
|
703
|
-
chain: MoonChain,
|
|
704
|
-
): {
|
|
705
|
-
transfer: () => {
|
|
706
|
-
successEvent: (event: XTokensExtrinsicSuccessEvent) => {
|
|
707
|
-
origin: (origin: Chain<ChainKeys>) => {
|
|
708
|
-
asset: (
|
|
709
|
-
token: XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
710
|
-
) => XTokensTransferExtrinsic<Symbols>;
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
transferMultiAsset: () => {
|
|
715
|
-
successEvent: (event: XTokensExtrinsicSuccessEvent) => {
|
|
716
|
-
origin: (origin: Chain<ChainKeys>) => {
|
|
717
|
-
asset: (
|
|
718
|
-
asset: Asset<Symbols>,
|
|
719
|
-
) => XTokensTransferMultiAssetExtrinsic<Symbols>;
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
};
|
|
723
|
-
transferMultiCurrencies: () => {
|
|
724
|
-
successEvent: (event: XTokensExtrinsicSuccessEvent) => {
|
|
725
|
-
origin: (origin: Chain<ChainKeys>) => {
|
|
726
|
-
assets: (
|
|
727
|
-
asset: XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
728
|
-
feeAsset: XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
729
|
-
) => XTokensTransferMultiCurrenciesExtrinsic<Symbols>;
|
|
730
|
-
};
|
|
731
|
-
};
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
|
|
735
|
-
declare enum XTransferExtrinsic {
|
|
736
|
-
Transfer = 'transfer',
|
|
737
|
-
}
|
|
738
|
-
declare enum XTransferExtrinsicSuccessEvent {
|
|
739
|
-
Deposited = 'Deposited',
|
|
740
|
-
Withdrawn = 'Withdrawn',
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
interface XTransferPallet {
|
|
744
|
-
pallet: ExtrinsicPallet.XTransfer;
|
|
745
|
-
extrinsic: XTransferExtrinsic;
|
|
746
|
-
successEvent: XTransferExtrinsicSuccessEvent;
|
|
747
|
-
getParams: (params: XcmExtrinsicGetParams) => XTransferPalletParams;
|
|
748
|
-
}
|
|
749
|
-
type XTransferPalletParams = [
|
|
750
|
-
/**
|
|
751
|
-
* asset
|
|
752
|
-
*/
|
|
753
|
-
{
|
|
754
|
-
id: {
|
|
755
|
-
Concrete: XTransferConcreteParam;
|
|
756
|
-
};
|
|
757
|
-
fun: {
|
|
758
|
-
Fungible: bigint;
|
|
759
|
-
};
|
|
760
|
-
},
|
|
761
|
-
/**
|
|
762
|
-
* destination
|
|
763
|
-
*/
|
|
764
|
-
{
|
|
765
|
-
parents: 1;
|
|
766
|
-
interior: {
|
|
767
|
-
X2: [
|
|
768
|
-
{
|
|
769
|
-
Parachain: number;
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
AccountKey20: {
|
|
773
|
-
/**
|
|
774
|
-
* account
|
|
775
|
-
*/
|
|
776
|
-
key: string;
|
|
777
|
-
};
|
|
778
|
-
},
|
|
779
|
-
];
|
|
780
|
-
};
|
|
781
|
-
},
|
|
782
|
-
/**
|
|
783
|
-
* weight
|
|
784
|
-
*/
|
|
785
|
-
{
|
|
786
|
-
refTime: 5_000_000_000;
|
|
787
|
-
proofSize: 0;
|
|
788
|
-
},
|
|
789
|
-
];
|
|
790
|
-
interface XTransferConcreteParam {
|
|
791
|
-
parents: Parents;
|
|
792
|
-
interior: XTransferInteriorParam;
|
|
793
|
-
}
|
|
794
|
-
type XTransferInteriorParam =
|
|
795
|
-
| 'Here'
|
|
796
|
-
| {
|
|
797
|
-
X2: [
|
|
798
|
-
{
|
|
799
|
-
Parachain: number;
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
PalletInstance: number;
|
|
803
|
-
},
|
|
804
|
-
];
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
declare function xTransfer(chain: MoonChain): {
|
|
808
|
-
transfer: () => {
|
|
809
|
-
successEvent: (event: XTransferExtrinsicSuccessEvent) => {
|
|
810
|
-
here: () => XTransferPallet;
|
|
811
|
-
X2: (palletInstance: number) => XTransferPallet;
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
declare enum EqBalancesExtrinsic {
|
|
817
|
-
XcmTransfer = 'xcmTransfer',
|
|
818
|
-
TransferXcm = 'transferXcm',
|
|
819
|
-
}
|
|
820
|
-
declare enum EqBalancesSuccessEvent {
|
|
821
|
-
ExtrinsicSuccess = 'ExtrinsicSuccess',
|
|
822
|
-
}
|
|
823
|
-
declare enum EqBalancesFee {
|
|
824
|
-
SovereignAccWillPay = 'SovereignAccWillPay',
|
|
825
|
-
TargetChainAccWillPay = 'TargetChainAccWillPay',
|
|
826
|
-
ThisAccWillPay = 'ThisAccWillPay',
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
interface EqBalancesXcmTransfer {
|
|
830
|
-
pallet: ExtrinsicPallet.EqBalances;
|
|
831
|
-
extrinsic: EqBalancesExtrinsic.XcmTransfer;
|
|
832
|
-
successEvent: EqBalancesSuccessEvent;
|
|
833
|
-
getParams: (params: XcmExtrinsicGetParams) => EqBalancesXcmTransferParams;
|
|
834
|
-
}
|
|
835
|
-
interface EqBalancesTransferXcm {
|
|
836
|
-
pallet: ExtrinsicPallet.EqBalances;
|
|
837
|
-
extrinsic: EqBalancesExtrinsic.TransferXcm;
|
|
838
|
-
successEvent: EqBalancesSuccessEvent;
|
|
839
|
-
getParams: (params: XcmExtrinsicGetParams) => EqBalancesTransferXcmParams;
|
|
840
|
-
}
|
|
841
|
-
type EqBalancesXcmTransferParams = [
|
|
842
|
-
/**
|
|
843
|
-
* asset
|
|
844
|
-
*/
|
|
845
|
-
number,
|
|
846
|
-
/**
|
|
847
|
-
* amount
|
|
848
|
-
*/
|
|
849
|
-
bigint,
|
|
850
|
-
/**
|
|
851
|
-
* destination
|
|
852
|
-
*/
|
|
853
|
-
{
|
|
854
|
-
parents: 1;
|
|
855
|
-
interior: {
|
|
856
|
-
X2: [
|
|
857
|
-
{
|
|
858
|
-
Parachain: number;
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
AccountKey20: {
|
|
862
|
-
network: 'Any';
|
|
863
|
-
/**
|
|
864
|
-
* account
|
|
865
|
-
*/
|
|
866
|
-
key: string;
|
|
867
|
-
};
|
|
868
|
-
},
|
|
869
|
-
];
|
|
870
|
-
};
|
|
871
|
-
},
|
|
872
|
-
/**
|
|
873
|
-
* Fee type
|
|
874
|
-
*/
|
|
875
|
-
EqBalancesFee,
|
|
876
|
-
];
|
|
877
|
-
type EqBalancesTransferXcmParams = [
|
|
878
|
-
/**
|
|
879
|
-
* asset
|
|
880
|
-
*/
|
|
881
|
-
TransferXcmAsset,
|
|
882
|
-
/**
|
|
883
|
-
* Fee
|
|
884
|
-
*/
|
|
885
|
-
TransferXcmAsset,
|
|
886
|
-
{
|
|
887
|
-
parents: 1;
|
|
888
|
-
interior: {
|
|
889
|
-
X2: [
|
|
890
|
-
{
|
|
891
|
-
Parachain: number;
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
AccountKey20: {
|
|
895
|
-
network: 'Any';
|
|
896
|
-
/**
|
|
897
|
-
* account
|
|
898
|
-
*/
|
|
899
|
-
key: string;
|
|
900
|
-
};
|
|
901
|
-
},
|
|
902
|
-
];
|
|
903
|
-
};
|
|
904
|
-
},
|
|
905
|
-
];
|
|
906
|
-
/**
|
|
907
|
-
* [id, amount]
|
|
908
|
-
*/
|
|
909
|
-
type TransferXcmAsset = [number, bigint];
|
|
910
|
-
|
|
911
|
-
declare function createExtrinsicBuilder<
|
|
912
|
-
Symbols extends AssetSymbol,
|
|
913
|
-
ChainKeys extends ChainKey,
|
|
914
|
-
>(
|
|
915
|
-
chain: MoonChain,
|
|
916
|
-
): {
|
|
917
|
-
polkadotXcm: () => {
|
|
918
|
-
limitedReserveTransferAssets: () => {
|
|
919
|
-
successEvent: (event: PolkadotXcmExtrinsicSuccessEvent) => {
|
|
920
|
-
V1V2: () => {
|
|
921
|
-
here: () => PolkadotXcmPallet;
|
|
922
|
-
X1: () => PolkadotXcmPallet;
|
|
923
|
-
X2: (palletInstance: number, assetId: AssetId) => PolkadotXcmPallet;
|
|
924
|
-
};
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
limitedReserveWithdrawAssets: () => {
|
|
928
|
-
successEvent: (event: PolkadotXcmExtrinsicSuccessEvent) => {
|
|
929
|
-
V1V2: () => {
|
|
930
|
-
X2: (palletInstance: number) => PolkadotXcmPallet;
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
xcmPallet: () => {
|
|
936
|
-
limitedReserveTransferAssets: () => {
|
|
937
|
-
successEvent: (event: PolkadotXcmExtrinsicSuccessEvent) => {
|
|
938
|
-
pallet: ExtrinsicPallet;
|
|
939
|
-
extrinsic: PolkadotXcmExtrinsic;
|
|
940
|
-
successEvent: PolkadotXcmExtrinsicSuccessEvent;
|
|
941
|
-
getParams: (params: XcmExtrinsicGetParams) => PolkadotXcmPalletParams;
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
};
|
|
945
|
-
xTokens: () => {
|
|
946
|
-
transfer: () => {
|
|
947
|
-
successEvent: (event: XTokensExtrinsicSuccessEvent) => {
|
|
948
|
-
origin: (origin: Chain<ChainKeys>) => {
|
|
949
|
-
asset: (
|
|
950
|
-
token: XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
951
|
-
) => XTokensTransferExtrinsic<Symbols>;
|
|
952
|
-
};
|
|
953
|
-
};
|
|
954
|
-
};
|
|
955
|
-
transferMultiAsset: () => {
|
|
956
|
-
successEvent: (event: XTokensExtrinsicSuccessEvent) => {
|
|
957
|
-
origin: (origin: Chain<ChainKeys>) => {
|
|
958
|
-
asset: (
|
|
959
|
-
asset: Asset<Symbols>,
|
|
960
|
-
) => XTokensTransferMultiAssetExtrinsic<Symbols>;
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
transferMultiCurrencies: () => {
|
|
965
|
-
successEvent: (event: XTokensExtrinsicSuccessEvent) => {
|
|
966
|
-
origin: (origin: Chain<ChainKeys>) => {
|
|
967
|
-
assets: (
|
|
968
|
-
asset: XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
969
|
-
feeAsset: XTokensTransferExtrinsicParamsAsset<Symbols>,
|
|
970
|
-
) => XTokensTransferMultiCurrenciesExtrinsic<Symbols>;
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
xTransfer: () => {
|
|
976
|
-
transfer: () => {
|
|
977
|
-
successEvent: (event: XTransferExtrinsicSuccessEvent) => {
|
|
978
|
-
here: () => XTransferPallet;
|
|
979
|
-
X2: (palletInstance: number) => XTransferPallet;
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
|
-
eqBalances: () => {
|
|
984
|
-
xcmTransfer: () => {
|
|
985
|
-
successEvent: (event: EqBalancesSuccessEvent) => {
|
|
986
|
-
asset: (id: number) => {
|
|
987
|
-
fee: (fee: EqBalancesFee) => EqBalancesXcmTransfer;
|
|
988
|
-
};
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
transferXcm: () => {
|
|
992
|
-
successEvent: (event: EqBalancesSuccessEvent) => {
|
|
993
|
-
asset: (assetId: number) => {
|
|
994
|
-
feeAsset: (feeAssetId: number) => EqBalancesTransferXcm;
|
|
995
|
-
};
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
};
|
|
999
|
-
};
|
|
1000
|
-
|
|
1001
|
-
type ExtrinsicConfig<Symbols extends AssetSymbol = AssetSymbol> =
|
|
1002
|
-
| PolkadotXcmPallet
|
|
1003
|
-
| XcmPallet
|
|
1004
|
-
| XTokensPallet<Symbols>
|
|
1005
|
-
| XTransferPallet;
|
|
1006
|
-
|
|
1007
|
-
interface DepositConfig<
|
|
1008
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1009
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1010
|
-
> {
|
|
1011
|
-
/**
|
|
1012
|
-
* Balance of asset being sent
|
|
1013
|
-
*/
|
|
1014
|
-
balance: BalanceConfig<Symbols>;
|
|
1015
|
-
/**
|
|
1016
|
-
* Deposit extrinsic
|
|
1017
|
-
*/
|
|
1018
|
-
extrinsic: ExtrinsicConfig<Symbols>;
|
|
1019
|
-
/**
|
|
1020
|
-
* Chain where the asset(s) will be sent from
|
|
1021
|
-
*/
|
|
1022
|
-
source: Chain<ChainKeys>;
|
|
1023
|
-
/**
|
|
1024
|
-
* Optional - Balance config for the native token (the one that will pay the
|
|
1025
|
-
* extrinsic fees). Needed if the asset being sent is NOT the native token
|
|
1026
|
-
* of the origin chain (is not the asset paying for the extrinsic fees).
|
|
1027
|
-
*/
|
|
1028
|
-
sourceFeeBalance?: BalanceConfig<Symbols>;
|
|
1029
|
-
/**
|
|
1030
|
-
* Optional - Config for querying the minimum balance for the asset in the
|
|
1031
|
-
* foreign chain.
|
|
1032
|
-
*/
|
|
1033
|
-
sourceMinBalance?: MinBalanceConfig;
|
|
1034
|
-
/**
|
|
1035
|
-
* Optional - Asset to pay for the XCM fee in Moon*. Needed if the asset being
|
|
1036
|
-
* sent is not accepted as XCM fee payment method.
|
|
1037
|
-
*/
|
|
1038
|
-
xcmFeeAsset?: XcmFeeAsset<Symbols>;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
interface DestinationMultilocationV1 {
|
|
1042
|
-
V1: {
|
|
1043
|
-
parents: Parents;
|
|
1044
|
-
interior: {
|
|
1045
|
-
X1: {
|
|
1046
|
-
Parachain: number;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
};
|
|
1050
|
-
toPrecompileMultilocation: () => PrecompileDestinationMultilocationV1;
|
|
1051
|
-
}
|
|
1052
|
-
type PrecompileDestinationMultilocationV1 = [Parents, [string]];
|
|
1053
|
-
interface GetterAccountMultilocationV1 {
|
|
1054
|
-
get: (account: string) => AccountMultilocationV1;
|
|
1055
|
-
}
|
|
1056
|
-
interface AccountMultilocationV1 {
|
|
1057
|
-
parents: Parents;
|
|
1058
|
-
interior: {
|
|
1059
|
-
X2: [
|
|
1060
|
-
{
|
|
1061
|
-
Parachain: number;
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
AccountKey20: {
|
|
1065
|
-
network: 'Any';
|
|
1066
|
-
key: string;
|
|
1067
|
-
};
|
|
1068
|
-
},
|
|
1069
|
-
];
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
declare function createMultilocationBuilder(): {
|
|
1074
|
-
v1: () => {
|
|
1075
|
-
destination: (
|
|
1076
|
-
parachainId: number,
|
|
1077
|
-
parents?: Parents,
|
|
1078
|
-
) => DestinationMultilocationV1;
|
|
1079
|
-
account: (
|
|
1080
|
-
parachainId: number,
|
|
1081
|
-
parents?: Parents,
|
|
1082
|
-
) => GetterAccountMultilocationV1;
|
|
1083
|
-
};
|
|
1084
|
-
};
|
|
1085
|
-
|
|
1086
|
-
interface XcmTransactThroughSigned {
|
|
1087
|
-
getParams: (
|
|
1088
|
-
params: XcmTransactThroughSignedGetParams,
|
|
1089
|
-
) => XcmTransactThroughSignedParams;
|
|
1090
|
-
}
|
|
1091
|
-
interface XcmTransactThroughSignedMultilocation {
|
|
1092
|
-
getParams: (
|
|
1093
|
-
params: XcmTransactThroughSignedGetParams,
|
|
1094
|
-
) => PrecompileXcmTransactThroughSignedMultilocationParams;
|
|
1095
|
-
}
|
|
1096
|
-
interface XcmTransactThroughSignedGetParams {
|
|
1097
|
-
callHash: string;
|
|
1098
|
-
overallFee: bigint;
|
|
1099
|
-
overallWeight: bigint;
|
|
1100
|
-
txWeight: bigint;
|
|
1101
|
-
}
|
|
1102
|
-
interface PrecompileXcmTransactThroughSignedMultilocationParams {
|
|
1103
|
-
/**
|
|
1104
|
-
* 1 - if transaction is going through a relay chain
|
|
1105
|
-
* `0x0000000${parachainId.toString(16)}`
|
|
1106
|
-
*/
|
|
1107
|
-
destination: [1, [string]];
|
|
1108
|
-
/**
|
|
1109
|
-
* 1 - if transaction is going through a relay chain
|
|
1110
|
-
* `0x0000000${parachainId.toString(16)}`
|
|
1111
|
-
* `0x040${palletInstance}`
|
|
1112
|
-
*/
|
|
1113
|
-
asset: [1, [string, string]];
|
|
1114
|
-
/**
|
|
1115
|
-
* transaction weight - a weight of the transaction
|
|
1116
|
-
* const call = betaApi.createType('Call', hexToU8a(callHash));
|
|
1117
|
-
* const { weight } = await betaApi.tx(call).paymentInfo(pair.address);
|
|
1118
|
-
* const txWeight = weight.toBigInt();
|
|
1119
|
-
*/
|
|
1120
|
-
txWeight: bigint;
|
|
1121
|
-
/**
|
|
1122
|
-
* call hash - a hash of the transaction
|
|
1123
|
-
*/
|
|
1124
|
-
callHash: string;
|
|
1125
|
-
/**
|
|
1126
|
-
* fee - a fee of the transaction
|
|
1127
|
-
* (overallWeight * unitsPerSecond) / 1_000_000_000_000n
|
|
1128
|
-
*/
|
|
1129
|
-
overallFee: bigint;
|
|
1130
|
-
/**
|
|
1131
|
-
* overall weight - a weight of the transaction
|
|
1132
|
-
* const overallWeight =
|
|
1133
|
-
* descendOriginWeight +
|
|
1134
|
-
* withdrawAssetWeight +
|
|
1135
|
-
* buyExecutionWeight +
|
|
1136
|
-
* transactWeight +
|
|
1137
|
-
* baseExtrinsicWeight +
|
|
1138
|
-
* txWeight;
|
|
1139
|
-
*/
|
|
1140
|
-
overallWeight: bigint;
|
|
1141
|
-
}
|
|
1142
|
-
type XcmTransactThroughSignedParams = [
|
|
1143
|
-
{
|
|
1144
|
-
V1: {
|
|
1145
|
-
parents: 1;
|
|
1146
|
-
interior: {
|
|
1147
|
-
X1: {
|
|
1148
|
-
Parachain: number;
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
};
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
currency: {
|
|
1155
|
-
AsMultiLocation: {
|
|
1156
|
-
V1: {
|
|
1157
|
-
parents: 1;
|
|
1158
|
-
interior: {
|
|
1159
|
-
X2: [
|
|
1160
|
-
{
|
|
1161
|
-
Parachain: number;
|
|
1162
|
-
},
|
|
1163
|
-
{
|
|
1164
|
-
PalletInstance: number;
|
|
1165
|
-
},
|
|
1166
|
-
];
|
|
1167
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
Asset,
|
|
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 {
|
|
27
|
+
asset: Asset;
|
|
28
|
+
amount: number | FeeConfigBuilder;
|
|
29
|
+
}
|
|
30
|
+
interface FeeAssetConfig {
|
|
31
|
+
asset: Asset;
|
|
32
|
+
balance: BalanceConfigBuilder;
|
|
33
|
+
}
|
|
34
|
+
declare class AssetConfig {
|
|
35
|
+
readonly asset: Asset;
|
|
36
|
+
readonly balance: BalanceConfigBuilder;
|
|
37
|
+
readonly contract?: ContractConfigBuilder;
|
|
38
|
+
readonly destination: AnyChain;
|
|
39
|
+
readonly destinationFee: DestinationFeeConfig;
|
|
40
|
+
readonly extrinsic?: ExtrinsicConfigBuilder;
|
|
41
|
+
readonly fee?: FeeAssetConfig;
|
|
42
|
+
readonly min?: AssetMinConfigBuilder;
|
|
43
|
+
constructor({
|
|
44
|
+
asset,
|
|
45
|
+
balance,
|
|
46
|
+
contract,
|
|
47
|
+
destination,
|
|
48
|
+
destinationFee,
|
|
49
|
+
extrinsic,
|
|
50
|
+
fee,
|
|
51
|
+
min,
|
|
52
|
+
}: AssetConfigConstructorParams);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface TransferConfig {
|
|
56
|
+
asset: Asset;
|
|
57
|
+
source: ChainTransferConfig;
|
|
58
|
+
destination: ChainTransferConfig;
|
|
59
|
+
}
|
|
60
|
+
interface ChainTransferConfig {
|
|
61
|
+
chain: AnyChain;
|
|
62
|
+
config: AssetConfig;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare function ConfigBuilder(): {
|
|
66
|
+
assets: (ecosystem?: Ecosystem) => {
|
|
67
|
+
assets: Asset[];
|
|
68
|
+
asset: (keyOrAsset: string | Asset) => {
|
|
69
|
+
sourceChains: AnyChain[];
|
|
70
|
+
source: (keyOrChain: string | AnyChain) => {
|
|
71
|
+
destinationChains: AnyChain[];
|
|
72
|
+
destination: (keyOrChain: string | AnyChain) => {
|
|
73
|
+
build: () => TransferConfig;
|
|
1168
74
|
};
|
|
1169
75
|
};
|
|
1170
76
|
};
|
|
1171
|
-
/**
|
|
1172
|
-
* fee
|
|
1173
|
-
*/
|
|
1174
|
-
feeAmount: bigint;
|
|
1175
|
-
},
|
|
1176
|
-
/**
|
|
1177
|
-
* callHash
|
|
1178
|
-
*/
|
|
1179
|
-
string,
|
|
1180
|
-
{
|
|
1181
|
-
/**
|
|
1182
|
-
* txWeight
|
|
1183
|
-
*/
|
|
1184
|
-
transactRequiredWeightAtMost: bigint;
|
|
1185
|
-
overallWeight: bigint;
|
|
1186
|
-
},
|
|
1187
|
-
];
|
|
1188
|
-
|
|
1189
|
-
declare function createTransactBuilder<
|
|
1190
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1191
|
-
>(): {
|
|
1192
|
-
xcmTransactor: () => {
|
|
1193
|
-
transactThroughSigned: (
|
|
1194
|
-
chain: Chain<ChainKeys>,
|
|
1195
|
-
) => XcmTransactThroughSigned;
|
|
1196
|
-
transactThroughSignedMultilocation: (
|
|
1197
|
-
chain: Chain<ChainKeys>,
|
|
1198
|
-
) => XcmTransactThroughSignedMultilocation;
|
|
1199
77
|
};
|
|
1200
78
|
};
|
|
1201
79
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
80
|
+
declare const aca: Asset;
|
|
81
|
+
declare const astr: Asset;
|
|
82
|
+
declare const auq: Asset;
|
|
83
|
+
declare const ausd: Asset;
|
|
84
|
+
declare const bnc: Asset;
|
|
85
|
+
declare const crab: Asset;
|
|
86
|
+
declare const csm: Asset;
|
|
87
|
+
declare const dev: Asset;
|
|
88
|
+
declare const dot: Asset;
|
|
89
|
+
declare const eq: Asset;
|
|
90
|
+
declare const eqd: Asset;
|
|
91
|
+
declare const glmr: Asset;
|
|
92
|
+
declare const hdx: Asset;
|
|
93
|
+
declare const hko: Asset;
|
|
94
|
+
declare const ibtc: Asset;
|
|
95
|
+
declare const intr: Asset;
|
|
96
|
+
declare const kar: Asset;
|
|
97
|
+
declare const kbtc: Asset;
|
|
98
|
+
declare const kint: Asset;
|
|
99
|
+
declare const kma: Asset;
|
|
100
|
+
declare const ksm: Asset;
|
|
101
|
+
declare const lit: Asset;
|
|
102
|
+
declare const movr: Asset;
|
|
103
|
+
declare const para: Asset;
|
|
104
|
+
declare const paring: Asset;
|
|
105
|
+
declare const pha: Asset;
|
|
106
|
+
declare const ring: Asset;
|
|
107
|
+
declare const rmrk: Asset;
|
|
108
|
+
declare const sdn: Asset;
|
|
109
|
+
declare const teer: Asset;
|
|
110
|
+
declare const tt1: Asset;
|
|
111
|
+
declare const unit: Asset;
|
|
112
|
+
declare const usdt: Asset;
|
|
113
|
+
declare const xrt: Asset;
|
|
114
|
+
declare const assetsList: Asset[];
|
|
115
|
+
declare const assetsMap: Map<string, Asset>;
|
|
116
|
+
|
|
117
|
+
declare const acala: Parachain;
|
|
118
|
+
declare const alphanetRelay: Parachain;
|
|
119
|
+
declare const astar: Parachain;
|
|
120
|
+
declare const bifrostKusama: Parachain;
|
|
121
|
+
declare const bifrostPolkadot: Parachain;
|
|
122
|
+
declare const calamari: Parachain;
|
|
123
|
+
declare const crustShadow: Parachain;
|
|
124
|
+
declare const darwinia: EvmParachain;
|
|
125
|
+
declare const darwiniaCrab: EvmParachain;
|
|
126
|
+
declare const darwiniaPangoro: EvmParachain;
|
|
127
|
+
declare const equilibrium: Parachain;
|
|
128
|
+
declare const equilibriumAlphanet: Parachain;
|
|
129
|
+
declare const hydraDX: Parachain;
|
|
130
|
+
declare const interlay: Parachain;
|
|
131
|
+
declare const integritee: Parachain;
|
|
132
|
+
declare const karura: Parachain;
|
|
133
|
+
declare const khala: Parachain;
|
|
134
|
+
declare const kintsugi: Parachain;
|
|
135
|
+
declare const kusama: Parachain;
|
|
136
|
+
declare const litentryAlphanet: Parachain;
|
|
137
|
+
declare const litmus: Parachain;
|
|
138
|
+
declare const moonbaseAlpha: EvmParachain;
|
|
139
|
+
declare const moonbaseBeta: EvmParachain;
|
|
140
|
+
declare const moonbeam: EvmParachain;
|
|
141
|
+
declare const moonriver: EvmParachain;
|
|
142
|
+
declare const parallel: Parachain;
|
|
143
|
+
declare const parallelHeiko: Parachain;
|
|
144
|
+
declare const phala: Parachain;
|
|
145
|
+
declare const polkadot: Parachain;
|
|
146
|
+
declare const robonomics: Parachain;
|
|
147
|
+
declare const shiden: Parachain;
|
|
148
|
+
declare const statemine: Parachain;
|
|
149
|
+
declare const statemineAlphanet: Parachain;
|
|
150
|
+
declare const statemint: Parachain;
|
|
151
|
+
declare const uniqueAlpha: Parachain;
|
|
152
|
+
declare const chainsList: AnyChain[];
|
|
153
|
+
declare const chainsMap: Map<string, AnyChain>;
|
|
154
|
+
|
|
155
|
+
interface ChainConfigConstructorParams {
|
|
156
|
+
assets: AssetConfig[];
|
|
157
|
+
chain: AnyChain;
|
|
158
|
+
}
|
|
159
|
+
declare class ChainConfig {
|
|
160
|
+
#private;
|
|
161
|
+
readonly chain: AnyChain;
|
|
162
|
+
constructor({ assets, chain }: ChainConfigConstructorParams);
|
|
163
|
+
getAssetsConfigs(): AssetConfig[];
|
|
164
|
+
getAssetConfigs(asset: Asset): AssetConfig[];
|
|
165
|
+
getAssetDestinations(asset: Asset): AnyChain[];
|
|
166
|
+
getAssetDestinationConfig(asset: Asset, destination: AnyChain): AssetConfig;
|
|
1218
167
|
}
|
|
1219
|
-
type WithdrawXTokensParams = [
|
|
1220
|
-
/**
|
|
1221
|
-
* 1 - if transaction is going through a relay chain
|
|
1222
|
-
*/
|
|
1223
|
-
1,
|
|
1224
|
-
(
|
|
1225
|
-
| [
|
|
1226
|
-
/**
|
|
1227
|
-
* example '0x00000007DC'
|
|
1228
|
-
* 7DC - parachain id in hex
|
|
1229
|
-
* can be found here:
|
|
1230
|
-
* - https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/parachains
|
|
1231
|
-
* - https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/parachains
|
|
1232
|
-
*/
|
|
1233
|
-
string,
|
|
1234
|
-
/**
|
|
1235
|
-
* example '0x01%account%00',
|
|
1236
|
-
* enum = 01 (AccountId32)
|
|
1237
|
-
* networkId = 00 (any)
|
|
1238
|
-
*/
|
|
1239
|
-
string,
|
|
1240
|
-
]
|
|
1241
|
-
| [
|
|
1242
|
-
/**
|
|
1243
|
-
* example '0x01%account%00',
|
|
1244
|
-
* enum = 01 (AccountId32)
|
|
1245
|
-
* networkId = 00 (any)
|
|
1246
|
-
*/
|
|
1247
|
-
string,
|
|
1248
|
-
]
|
|
1249
|
-
),
|
|
1250
|
-
];
|
|
1251
|
-
interface WithdrawXTokensOptions<
|
|
1252
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1253
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1254
|
-
> {
|
|
1255
|
-
balance: BalanceConfig<Symbols>;
|
|
1256
|
-
destination: Chain<ChainKeys>;
|
|
1257
|
-
feePerWeight: number;
|
|
1258
|
-
sourceMinBalance?: MinBalanceConfig;
|
|
1259
|
-
weight?: number;
|
|
1260
|
-
xcmFeeAsset?: WithdrawXcmFeeAsset<Symbols>;
|
|
1261
|
-
}
|
|
1262
|
-
interface WithdrawXcmFeeAsset<Symbols extends AssetSymbol = AssetSymbol> {
|
|
1263
|
-
asset: Asset<Symbols>;
|
|
1264
|
-
balance: {
|
|
1265
|
-
origin: BalanceConfig<Symbols>;
|
|
1266
|
-
destination: BalanceConfig<Symbols>;
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
declare function createWithdrawBuilder<
|
|
1271
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1272
|
-
>(): {
|
|
1273
|
-
xTokens: (
|
|
1274
|
-
options: WithdrawXTokensOptions<Symbols>,
|
|
1275
|
-
) => WithdrawXTokensConfig<Symbols, ChainKey>;
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
interface CreateConfigParams<
|
|
1279
|
-
Symbols extends AssetSymbol,
|
|
1280
|
-
ChainKeys extends ChainKey,
|
|
1281
|
-
> {
|
|
1282
|
-
assets: AssetsMap<Symbols>;
|
|
1283
|
-
moonAsset: Asset<Symbols>;
|
|
1284
|
-
moonChain: MoonChain;
|
|
1285
|
-
chains: ChainsMap<ChainKeys>;
|
|
1286
|
-
configs: ChainXcmConfigs<Symbols, ChainKeys>;
|
|
1287
|
-
transact: ChainTransactConfigs<Symbols, ChainKeys>;
|
|
1288
|
-
}
|
|
1289
|
-
interface XcmConfigBuilder<
|
|
1290
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1291
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1292
|
-
> {
|
|
1293
|
-
symbols: Symbols[];
|
|
1294
|
-
assets: AssetsMap<Symbols>;
|
|
1295
|
-
moonAsset: Asset<Symbols>;
|
|
1296
|
-
moonChain: MoonChain;
|
|
1297
|
-
deposit: (
|
|
1298
|
-
symbolOrAsset: Symbols | Asset<Symbols>,
|
|
1299
|
-
) => DepositConfigBuilder<Symbols, ChainKeys>;
|
|
1300
|
-
withdraw: (
|
|
1301
|
-
symbolOrAsset: Symbols | Asset<Symbols>,
|
|
1302
|
-
) => WithdrawConfigBuilder<Symbols, ChainKeys>;
|
|
1303
|
-
transact: () => TransactConfigBuilder<Symbols, ChainKeys>;
|
|
1304
|
-
}
|
|
1305
|
-
interface DepositConfigBuilder<
|
|
1306
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1307
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1308
|
-
> {
|
|
1309
|
-
chains: Chain<ChainKeys>[];
|
|
1310
|
-
from: (keyOrChain: ChainKeys | Chain<ChainKeys>) => {
|
|
1311
|
-
asset: Asset<Symbols>;
|
|
1312
|
-
origin: Chain<ChainKeys> | MoonChain;
|
|
1313
|
-
config: DepositConfig<Symbols>;
|
|
1314
|
-
};
|
|
1315
|
-
}
|
|
1316
|
-
interface WithdrawConfigBuilder<
|
|
1317
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1318
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1319
|
-
> {
|
|
1320
|
-
chains: Chain<ChainKeys>[];
|
|
1321
|
-
to: (keyOrChain: ChainKeys | Chain<ChainKeys>) => {
|
|
1322
|
-
asset: Asset<Symbols>;
|
|
1323
|
-
origin: Chain<ChainKeys> | MoonChain;
|
|
1324
|
-
config: WithdrawConfig<Symbols>;
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
type AssetsMap<Symbols extends AssetSymbol = AssetSymbol> = Record<
|
|
1328
|
-
Symbols,
|
|
1329
|
-
Asset<Symbols>
|
|
1330
|
-
>;
|
|
1331
|
-
type ChainsMap<ChainKeys extends ChainKey = ChainKey> = Record<
|
|
1332
|
-
ChainKeys,
|
|
1333
|
-
Chain<ChainKeys>
|
|
1334
|
-
>;
|
|
1335
|
-
type ChainXcmConfigs<
|
|
1336
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1337
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1338
|
-
> = Partial<Record<AssetSymbol, XcmConfig<Symbols, ChainKeys>>>;
|
|
1339
|
-
interface XcmConfig<
|
|
1340
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1341
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1342
|
-
> {
|
|
1343
|
-
asset: Asset<Symbols>;
|
|
1344
|
-
origin: Chain<ChainKeys> | MoonChain;
|
|
1345
|
-
deposit: Partial<Record<ChainKeys, DepositConfig<Symbols>>>;
|
|
1346
|
-
withdraw: Partial<Record<ChainKeys, WithdrawConfig<Symbols>>>;
|
|
1347
|
-
}
|
|
1348
|
-
type ChainTransactConfigs<
|
|
1349
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1350
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1351
|
-
> = Partial<Record<ChainKeys, TransactConfig<Symbols, ChainKeys>>>;
|
|
1352
|
-
interface TransactConfigBuilder<
|
|
1353
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1354
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1355
|
-
> {
|
|
1356
|
-
chainsFrom: Chain<ChainKeys>[];
|
|
1357
|
-
chainsTo: Chain<ChainKeys>[];
|
|
1358
|
-
from: (
|
|
1359
|
-
keyOrChain: ChainKeys | Chain<ChainKeys>,
|
|
1360
|
-
) => TransactConfigFromBuilder<Symbols, ChainKeys>;
|
|
1361
|
-
to: (
|
|
1362
|
-
keyOrChain: ChainKeys | Chain<ChainKeys>,
|
|
1363
|
-
) => TransactConfigToBuilder<Symbols, ChainKeys>;
|
|
1364
|
-
}
|
|
1365
|
-
interface TransactConfigFromBuilder<
|
|
1366
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1367
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1368
|
-
> {
|
|
1369
|
-
chain: Chain<ChainKeys>;
|
|
1370
|
-
config: TransactFromConfig;
|
|
1371
|
-
balance: BalanceConfig<Symbols>;
|
|
1372
|
-
getOverallWeight: (txWeight: bigint) => bigint;
|
|
1373
|
-
getOverallFee: (overallWeight: bigint) => bigint;
|
|
1374
|
-
}
|
|
1375
|
-
interface TransactConfigToBuilder<
|
|
1376
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1377
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1378
|
-
> {
|
|
1379
|
-
chain: Chain<ChainKeys>;
|
|
1380
|
-
config: TransactToConfig;
|
|
1381
|
-
balance: BalanceConfig<Symbols>;
|
|
1382
|
-
getOverallWeight: (txWeight: bigint) => bigint;
|
|
1383
|
-
getOverallFee: (overallWeight: bigint) => bigint;
|
|
1384
|
-
}
|
|
1385
|
-
interface TransactConfig<
|
|
1386
|
-
Symbols extends AssetSymbol = AssetSymbol,
|
|
1387
|
-
ChainKeys extends ChainKey = ChainKey,
|
|
1388
|
-
> {
|
|
1389
|
-
chain: Chain<ChainKeys>;
|
|
1390
|
-
unitsPerSecond: bigint;
|
|
1391
|
-
balance: BalanceConfig<Symbols>;
|
|
1392
|
-
from?: TransactFromConfig;
|
|
1393
|
-
to?: TransactToConfig;
|
|
1394
|
-
}
|
|
1395
|
-
interface TransactFromConfig {
|
|
1396
|
-
multilocation: {
|
|
1397
|
-
account: GetterAccountMultilocationV1;
|
|
1398
|
-
};
|
|
1399
|
-
transact: XcmTransactThroughSigned;
|
|
1400
|
-
}
|
|
1401
|
-
interface TransactToConfig {
|
|
1402
|
-
multilocation: {
|
|
1403
|
-
account: GetterAccountMultilocationV1;
|
|
1404
|
-
};
|
|
1405
|
-
transact: XcmTransactThroughSignedMultilocation;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
declare function createConfig<
|
|
1409
|
-
Symbols extends AssetSymbol,
|
|
1410
|
-
ChainKeys extends ChainKey,
|
|
1411
|
-
>({
|
|
1412
|
-
assets,
|
|
1413
|
-
moonAsset,
|
|
1414
|
-
moonChain,
|
|
1415
|
-
chains,
|
|
1416
|
-
configs,
|
|
1417
|
-
transact,
|
|
1418
|
-
}: CreateConfigParams<Symbols, ChainKeys>): XcmConfigBuilder<
|
|
1419
|
-
Symbols,
|
|
1420
|
-
ChainKeys
|
|
1421
|
-
>;
|
|
1422
|
-
declare const moonbase: XcmConfigBuilder<
|
|
1423
|
-
| AssetSymbol.AUQ
|
|
1424
|
-
| AssetSymbol.BIT
|
|
1425
|
-
| AssetSymbol.DEV
|
|
1426
|
-
| AssetSymbol.EQ
|
|
1427
|
-
| AssetSymbol.EQD
|
|
1428
|
-
| AssetSymbol.LIT
|
|
1429
|
-
| AssetSymbol.NEER
|
|
1430
|
-
| AssetSymbol.PARING
|
|
1431
|
-
| AssetSymbol.TT1
|
|
1432
|
-
| AssetSymbol.UNIT,
|
|
1433
|
-
| ChainKey.AlphanetRelay
|
|
1434
|
-
| ChainKey.BitCountryPioneer
|
|
1435
|
-
| ChainKey.DarwiniaPangoro
|
|
1436
|
-
| ChainKey.EquilibriumAlphanet
|
|
1437
|
-
| ChainKey.LitentryAlphanet
|
|
1438
|
-
| ChainKey.MoonbaseBeta
|
|
1439
|
-
| ChainKey.StatemineAlphanet
|
|
1440
|
-
| ChainKey.UniqueAlpha
|
|
1441
|
-
>;
|
|
1442
|
-
declare const moonbeam: XcmConfigBuilder<
|
|
1443
|
-
| AssetSymbol.ACA
|
|
1444
|
-
| AssetSymbol.ASTR
|
|
1445
|
-
| AssetSymbol.AUSD
|
|
1446
|
-
| AssetSymbol.BNC
|
|
1447
|
-
| AssetSymbol.DOT
|
|
1448
|
-
| AssetSymbol.EQ
|
|
1449
|
-
| AssetSymbol.EQD
|
|
1450
|
-
| AssetSymbol.GLMR
|
|
1451
|
-
| AssetSymbol.HDX
|
|
1452
|
-
| AssetSymbol.IBTC
|
|
1453
|
-
| AssetSymbol.INTR
|
|
1454
|
-
| AssetSymbol.PARA
|
|
1455
|
-
| AssetSymbol.PHA
|
|
1456
|
-
| AssetSymbol.RING
|
|
1457
|
-
| AssetSymbol.USDT,
|
|
1458
|
-
| ChainKey.Acala
|
|
1459
|
-
| ChainKey.Astar
|
|
1460
|
-
| ChainKey.BifrostPolkadot
|
|
1461
|
-
| ChainKey.Darwinia
|
|
1462
|
-
| ChainKey.Equilibrium
|
|
1463
|
-
| ChainKey.HydraDX
|
|
1464
|
-
| ChainKey.Interlay
|
|
1465
|
-
| ChainKey.Parallel
|
|
1466
|
-
| ChainKey.Phala
|
|
1467
|
-
| ChainKey.Polkadot
|
|
1468
|
-
| ChainKey.Statemint
|
|
1469
|
-
>;
|
|
1470
|
-
declare const moonriver: XcmConfigBuilder<
|
|
1471
|
-
| AssetSymbol.AUSD
|
|
1472
|
-
| AssetSymbol.BNC
|
|
1473
|
-
| AssetSymbol.CRAB
|
|
1474
|
-
| AssetSymbol.CSM
|
|
1475
|
-
| AssetSymbol.HKO
|
|
1476
|
-
| AssetSymbol.KAR
|
|
1477
|
-
| AssetSymbol.KBTC
|
|
1478
|
-
| AssetSymbol.KINT
|
|
1479
|
-
| AssetSymbol.KMA
|
|
1480
|
-
| AssetSymbol.KSM
|
|
1481
|
-
| AssetSymbol.LIT
|
|
1482
|
-
| AssetSymbol.MOVR
|
|
1483
|
-
| AssetSymbol.PHA
|
|
1484
|
-
| AssetSymbol.RMRK
|
|
1485
|
-
| AssetSymbol.SDN
|
|
1486
|
-
| AssetSymbol.TEER
|
|
1487
|
-
| AssetSymbol.USDT
|
|
1488
|
-
| AssetSymbol.XRT,
|
|
1489
|
-
| ChainKey.Bifrost
|
|
1490
|
-
| ChainKey.Calamari
|
|
1491
|
-
| ChainKey.Crab
|
|
1492
|
-
| ChainKey.CrustShadow
|
|
1493
|
-
| ChainKey.Integritee
|
|
1494
|
-
| ChainKey.Karura
|
|
1495
|
-
| ChainKey.Khala
|
|
1496
|
-
| ChainKey.Kintsugi
|
|
1497
|
-
| ChainKey.Kusama
|
|
1498
|
-
| ChainKey.Litmus
|
|
1499
|
-
| ChainKey.Parallel
|
|
1500
|
-
| ChainKey.Robonomics
|
|
1501
|
-
| ChainKey.Shiden
|
|
1502
|
-
| ChainKey.Statemine
|
|
1503
|
-
>;
|
|
1504
|
-
|
|
1505
|
-
declare function isMultiCurrency<Symbols extends AssetSymbol = AssetSymbol>(
|
|
1506
|
-
extrinsic: ExtrinsicConfig<Symbols>,
|
|
1507
|
-
): extrinsic is XTokensTransferMultiCurrenciesExtrinsic<Symbols>;
|
|
1508
|
-
|
|
1509
|
-
declare const MOONBASE_ASSETS: readonly [
|
|
1510
|
-
AssetSymbol.AUQ,
|
|
1511
|
-
AssetSymbol.BIT,
|
|
1512
|
-
AssetSymbol.DEV,
|
|
1513
|
-
AssetSymbol.EQ,
|
|
1514
|
-
AssetSymbol.EQD,
|
|
1515
|
-
AssetSymbol.LIT,
|
|
1516
|
-
AssetSymbol.NEER,
|
|
1517
|
-
AssetSymbol.PARING,
|
|
1518
|
-
AssetSymbol.TT1,
|
|
1519
|
-
AssetSymbol.UNIT,
|
|
1520
|
-
];
|
|
1521
|
-
declare const MOONBASE_ASSETS_MAP: AssetsMap<MoonbaseAssets>;
|
|
1522
|
-
|
|
1523
|
-
declare const MOONBASE_CHAINS: readonly [
|
|
1524
|
-
ChainKey.AlphanetRelay,
|
|
1525
|
-
ChainKey.EquilibriumAlphanet,
|
|
1526
|
-
ChainKey.LitentryAlphanet,
|
|
1527
|
-
ChainKey.BitCountryPioneer,
|
|
1528
|
-
ChainKey.DarwiniaPangoro,
|
|
1529
|
-
ChainKey.MoonbaseBeta,
|
|
1530
|
-
ChainKey.StatemineAlphanet,
|
|
1531
|
-
ChainKey.UniqueAlpha,
|
|
1532
|
-
];
|
|
1533
|
-
declare const MOONBASE_CHAINS_MAP: ChainsMap<MoonbaseChains>;
|
|
1534
|
-
|
|
1535
|
-
type MoonbaseAssets = (typeof MOONBASE_ASSETS)[number];
|
|
1536
|
-
type MoonbaseChains = (typeof MOONBASE_CHAINS)[number];
|
|
1537
|
-
type MoonbaseXcmConfig = XcmConfig<MoonbaseAssets, MoonbaseChains>;
|
|
1538
|
-
type MoonbaseXcmConfigs = ChainXcmConfigs<MoonbaseAssets, MoonbaseChains>;
|
|
1539
|
-
type MoonbaseTransactConfig = TransactConfig<MoonbaseAssets, MoonbaseChains>;
|
|
1540
|
-
type MoonbaseTransactConfigs = ChainTransactConfigs<
|
|
1541
|
-
MoonbaseAssets,
|
|
1542
|
-
MoonbaseChains
|
|
1543
|
-
>;
|
|
1544
|
-
|
|
1545
|
-
declare const MOONBASE_CONFIGS: MoonbaseXcmConfigs;
|
|
1546
|
-
|
|
1547
|
-
declare const MOONBASE_TRANSACT_CONFIGS: MoonbaseTransactConfigs;
|
|
1548
|
-
|
|
1549
|
-
declare const MOONBEAM_ASSETS: readonly [
|
|
1550
|
-
AssetSymbol.ACA,
|
|
1551
|
-
AssetSymbol.ASTR,
|
|
1552
|
-
AssetSymbol.AUSD,
|
|
1553
|
-
AssetSymbol.BNC,
|
|
1554
|
-
AssetSymbol.EQ,
|
|
1555
|
-
AssetSymbol.EQD,
|
|
1556
|
-
AssetSymbol.DOT,
|
|
1557
|
-
AssetSymbol.GLMR,
|
|
1558
|
-
AssetSymbol.HDX,
|
|
1559
|
-
AssetSymbol.IBTC,
|
|
1560
|
-
AssetSymbol.INTR,
|
|
1561
|
-
AssetSymbol.PARA,
|
|
1562
|
-
AssetSymbol.PHA,
|
|
1563
|
-
AssetSymbol.RING,
|
|
1564
|
-
AssetSymbol.USDT,
|
|
1565
|
-
];
|
|
1566
|
-
declare const MOONBEAM_ASSETS_MAP: AssetsMap<MoonbeamAssets>;
|
|
1567
|
-
|
|
1568
|
-
declare const MOONBEAM_CHAINS: readonly [
|
|
1569
|
-
ChainKey.Acala,
|
|
1570
|
-
ChainKey.Astar,
|
|
1571
|
-
ChainKey.BifrostPolkadot,
|
|
1572
|
-
ChainKey.Darwinia,
|
|
1573
|
-
ChainKey.Equilibrium,
|
|
1574
|
-
ChainKey.HydraDX,
|
|
1575
|
-
ChainKey.Interlay,
|
|
1576
|
-
ChainKey.Parallel,
|
|
1577
|
-
ChainKey.Phala,
|
|
1578
|
-
ChainKey.Polkadot,
|
|
1579
|
-
ChainKey.Statemint,
|
|
1580
|
-
];
|
|
1581
|
-
declare const MOONBEAM_CHAINS_MAP: ChainsMap<MoonbeamChains>;
|
|
1582
|
-
|
|
1583
|
-
type MoonbeamAssets = (typeof MOONBEAM_ASSETS)[number];
|
|
1584
|
-
type MoonbeamChains = (typeof MOONBEAM_CHAINS)[number];
|
|
1585
|
-
type MoonbeamXcmConfig = XcmConfig<MoonbeamAssets, MoonbeamChains>;
|
|
1586
|
-
type MoonbeamXcmConfigs = ChainXcmConfigs<MoonbeamAssets, MoonbeamChains>;
|
|
1587
|
-
|
|
1588
|
-
declare const MOONBEAM_CONFIGS: MoonbeamXcmConfigs;
|
|
1589
|
-
|
|
1590
|
-
declare const MOONRIVER_ASSETS: readonly [
|
|
1591
|
-
AssetSymbol.AUSD,
|
|
1592
|
-
AssetSymbol.BNC,
|
|
1593
|
-
AssetSymbol.CRAB,
|
|
1594
|
-
AssetSymbol.CSM,
|
|
1595
|
-
AssetSymbol.HKO,
|
|
1596
|
-
AssetSymbol.KAR,
|
|
1597
|
-
AssetSymbol.KBTC,
|
|
1598
|
-
AssetSymbol.KINT,
|
|
1599
|
-
AssetSymbol.KMA,
|
|
1600
|
-
AssetSymbol.KSM,
|
|
1601
|
-
AssetSymbol.LIT,
|
|
1602
|
-
AssetSymbol.MOVR,
|
|
1603
|
-
AssetSymbol.PHA,
|
|
1604
|
-
AssetSymbol.RMRK,
|
|
1605
|
-
AssetSymbol.SDN,
|
|
1606
|
-
AssetSymbol.TEER,
|
|
1607
|
-
AssetSymbol.USDT,
|
|
1608
|
-
AssetSymbol.XRT,
|
|
1609
|
-
];
|
|
1610
|
-
declare const MOONRIVER_ASSETS_MAP: AssetsMap<MoonriverAssets>;
|
|
1611
|
-
|
|
1612
|
-
declare const MOONRIVER_CHAINS: readonly [
|
|
1613
|
-
ChainKey.Bifrost,
|
|
1614
|
-
ChainKey.Calamari,
|
|
1615
|
-
ChainKey.CrustShadow,
|
|
1616
|
-
ChainKey.Crab,
|
|
1617
|
-
ChainKey.Integritee,
|
|
1618
|
-
ChainKey.Karura,
|
|
1619
|
-
ChainKey.Khala,
|
|
1620
|
-
ChainKey.Kintsugi,
|
|
1621
|
-
ChainKey.Kusama,
|
|
1622
|
-
ChainKey.Litmus,
|
|
1623
|
-
ChainKey.Parallel,
|
|
1624
|
-
ChainKey.Robonomics,
|
|
1625
|
-
ChainKey.Shiden,
|
|
1626
|
-
ChainKey.Statemine,
|
|
1627
|
-
];
|
|
1628
|
-
declare const MOONRIVER_CHAINS_MAP: ChainsMap<MoonriverChains>;
|
|
1629
|
-
|
|
1630
|
-
type MoonriverAssets = (typeof MOONRIVER_ASSETS)[number];
|
|
1631
|
-
type MoonriverChains = (typeof MOONRIVER_CHAINS)[number];
|
|
1632
|
-
type MoonriverXcmConfig = XcmConfig<MoonriverAssets, MoonriverChains>;
|
|
1633
|
-
type MoonriverXcmConfigs = ChainXcmConfigs<MoonriverAssets, MoonriverChains>;
|
|
1634
|
-
|
|
1635
|
-
declare const MOONRIVER_CONFIGS: MoonriverXcmConfigs;
|
|
1636
168
|
|
|
1637
169
|
export {
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
MoonriverChains,
|
|
1697
|
-
MoonriverXcmConfig,
|
|
1698
|
-
MoonriverXcmConfigs,
|
|
1699
|
-
OrmlTokensBalanceConfig,
|
|
1700
|
-
PalletBalancesAccountDataOld,
|
|
1701
|
-
Parents,
|
|
1702
|
-
PolkadotXcmAssetParam,
|
|
1703
|
-
PolkadotXcmAssetParamInteriorX1,
|
|
1704
|
-
PolkadotXcmAssetParamInteriorX2,
|
|
1705
|
-
PolkadotXcmExtrinsic,
|
|
1706
|
-
PolkadotXcmExtrinsicSuccessEvent,
|
|
1707
|
-
PolkadotXcmPallet,
|
|
1708
|
-
PolkadotXcmPalletParams,
|
|
1709
|
-
PrecompileDestinationMultilocationV1,
|
|
1710
|
-
PrecompileXcmTransactThroughSignedMultilocationParams,
|
|
1711
|
-
SystemBalanceConfig,
|
|
1712
|
-
TokensBalanceConfig,
|
|
1713
|
-
TokensBalanceParamAsset,
|
|
1714
|
-
TokensPalletAccountData,
|
|
1715
|
-
TransactConfig,
|
|
1716
|
-
TransactConfigBuilder,
|
|
1717
|
-
TransactConfigFromBuilder,
|
|
1718
|
-
TransactConfigToBuilder,
|
|
1719
|
-
TransactFromConfig,
|
|
1720
|
-
TransactToConfig,
|
|
1721
|
-
WithdrawConfig,
|
|
1722
|
-
WithdrawConfigBuilder,
|
|
1723
|
-
WithdrawXTokensConfig,
|
|
1724
|
-
WithdrawXTokensOptions,
|
|
1725
|
-
WithdrawXTokensParams,
|
|
1726
|
-
XTokensBaseExtrinsic,
|
|
1727
|
-
XTokensExtrinsic,
|
|
1728
|
-
XTokensExtrinsicCurrencyTypes,
|
|
1729
|
-
XTokensExtrinsicSuccessEvent,
|
|
1730
|
-
XTokensPallet,
|
|
1731
|
-
XTokensParamsByExtrinsic,
|
|
1732
|
-
XTokensTransferExtrinsic,
|
|
1733
|
-
XTokensTransferExtrinsicParams,
|
|
1734
|
-
XTokensTransferExtrinsicParamsAsset,
|
|
1735
|
-
XTokensTransferMultiAssetExtrinsic,
|
|
1736
|
-
XTokensTransferMultiAssetExtrinsicParams,
|
|
1737
|
-
XTokensTransferMultiCurrenciesExtrinsic,
|
|
1738
|
-
XTokensTransferMultiCurrenciesExtrinsicParams,
|
|
1739
|
-
XTokensWeightLimit,
|
|
1740
|
-
XTransferConcreteParam,
|
|
1741
|
-
XTransferExtrinsic,
|
|
1742
|
-
XTransferExtrinsicSuccessEvent,
|
|
1743
|
-
XTransferInteriorParam,
|
|
1744
|
-
XTransferPallet,
|
|
1745
|
-
XTransferPalletParams,
|
|
1746
|
-
XcmConfig,
|
|
1747
|
-
XcmConfigBuilder,
|
|
1748
|
-
XcmExtrinsicGetParams,
|
|
1749
|
-
XcmFeeAsset,
|
|
1750
|
-
XcmPallet,
|
|
1751
|
-
XcmTransactThroughSigned,
|
|
1752
|
-
XcmTransactThroughSignedGetParams,
|
|
1753
|
-
XcmTransactThroughSignedMultilocation,
|
|
1754
|
-
XcmTransactThroughSignedParams,
|
|
1755
|
-
XcmVersion,
|
|
1756
|
-
createBalanceBuilder,
|
|
1757
|
-
createConfig,
|
|
1758
|
-
createExtrinsicBuilder,
|
|
1759
|
-
createMultilocationBuilder,
|
|
1760
|
-
createTransactBuilder,
|
|
1761
|
-
createWithdrawBuilder,
|
|
1762
|
-
getCreateV1V2Extrinsic,
|
|
1763
|
-
isMultiCurrency,
|
|
1764
|
-
moonbase,
|
|
170
|
+
AssetConfig,
|
|
171
|
+
AssetConfigConstructorParams,
|
|
172
|
+
ChainConfig,
|
|
173
|
+
ChainConfigConstructorParams,
|
|
174
|
+
ChainTransferConfig,
|
|
175
|
+
ConfigBuilder,
|
|
176
|
+
DestinationFeeConfig,
|
|
177
|
+
FeeAssetConfig,
|
|
178
|
+
TransferConfig,
|
|
179
|
+
aca,
|
|
180
|
+
acala,
|
|
181
|
+
alphanetRelay,
|
|
182
|
+
assetsList,
|
|
183
|
+
assetsMap,
|
|
184
|
+
astar,
|
|
185
|
+
astr,
|
|
186
|
+
auq,
|
|
187
|
+
ausd,
|
|
188
|
+
bifrostKusama,
|
|
189
|
+
bifrostPolkadot,
|
|
190
|
+
bnc,
|
|
191
|
+
calamari,
|
|
192
|
+
chainsList,
|
|
193
|
+
chainsMap,
|
|
194
|
+
crab,
|
|
195
|
+
crustShadow,
|
|
196
|
+
csm,
|
|
197
|
+
darwinia,
|
|
198
|
+
darwiniaCrab,
|
|
199
|
+
darwiniaPangoro,
|
|
200
|
+
dev,
|
|
201
|
+
dot,
|
|
202
|
+
eq,
|
|
203
|
+
eqd,
|
|
204
|
+
equilibrium,
|
|
205
|
+
equilibriumAlphanet,
|
|
206
|
+
glmr,
|
|
207
|
+
hdx,
|
|
208
|
+
hko,
|
|
209
|
+
hydraDX,
|
|
210
|
+
ibtc,
|
|
211
|
+
integritee,
|
|
212
|
+
interlay,
|
|
213
|
+
intr,
|
|
214
|
+
kar,
|
|
215
|
+
karura,
|
|
216
|
+
kbtc,
|
|
217
|
+
khala,
|
|
218
|
+
kint,
|
|
219
|
+
kintsugi,
|
|
220
|
+
kma,
|
|
221
|
+
ksm,
|
|
222
|
+
kusama,
|
|
223
|
+
lit,
|
|
224
|
+
litentryAlphanet,
|
|
225
|
+
litmus,
|
|
226
|
+
moonbaseAlpha,
|
|
227
|
+
moonbaseBeta,
|
|
1765
228
|
moonbeam,
|
|
1766
229
|
moonriver,
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
230
|
+
movr,
|
|
231
|
+
para,
|
|
232
|
+
parallel,
|
|
233
|
+
parallelHeiko,
|
|
234
|
+
paring,
|
|
235
|
+
pha,
|
|
236
|
+
phala,
|
|
237
|
+
polkadot,
|
|
238
|
+
ring,
|
|
239
|
+
rmrk,
|
|
240
|
+
robonomics,
|
|
241
|
+
sdn,
|
|
242
|
+
shiden,
|
|
243
|
+
statemine,
|
|
244
|
+
statemineAlphanet,
|
|
245
|
+
statemint,
|
|
246
|
+
teer,
|
|
247
|
+
tt1,
|
|
248
|
+
uniqueAlpha,
|
|
249
|
+
unit,
|
|
250
|
+
usdt,
|
|
251
|
+
xrt,
|
|
1771
252
|
};
|