@paraspell/sdk 7.1.2 → 7.2.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.
@@ -1,7 +1,6 @@
1
1
  import { Signer, AbstractProvider } from 'ethers';
2
2
  import * as polkadot_api from 'polkadot-api';
3
3
  import { PolkadotClient, UnsafeTransaction } from 'polkadot-api';
4
- import * as _polkadot_apps_config_endpoints_types from '@polkadot/apps-config/endpoints/types';
5
4
 
6
5
  type WithApi<TBase, TApi, TRes> = TBase & {
7
6
  api: IPolkadotApi<TApi, TRes>;
@@ -20,6 +19,7 @@ interface IPolkadotApi<TApi, TRes> {
20
19
  getBalanceForeignPolkadotXcm(address: string, id?: string): Promise<bigint>;
21
20
  getMythosForeignBalance(address: string): Promise<bigint>;
22
21
  getAssetHubForeignBalance(address: string, multiLocation: TMultiLocation): Promise<bigint>;
22
+ getForeignAssetsByIdBalance(address: string, assetId: string): Promise<bigint>;
23
23
  getBalanceForeignXTokens(address: string, asset: TAsset): Promise<bigint>;
24
24
  getBalanceForeignAssetsAccount(address: string, assetId: bigint | number): Promise<bigint>;
25
25
  getFromStorage(key: string): Promise<string>;
@@ -29,14 +29,14 @@ interface IPolkadotApi<TApi, TRes> {
29
29
 
30
30
  declare abstract class ParachainNode<TApi, TRes> {
31
31
  private readonly _node;
32
- private readonly _name;
32
+ private readonly _info;
33
33
  private readonly _type;
34
34
  private readonly _version;
35
35
  protected _assetCheckEnabled: boolean;
36
- constructor(node: TNode, name: string, type: TRelayChainType, version: Version);
37
- get name(): string;
36
+ constructor(node: TNodePolkadotKusama, info: string, type: TRelayChainType, version: Version);
37
+ get info(): string;
38
38
  get type(): TRelayChainType;
39
- get node(): TNode;
39
+ get node(): TNodePolkadotKusama;
40
40
  get version(): Version;
41
41
  get assetCheckEnabled(): boolean;
42
42
  protected canUseXTokens(_: TSendInternalOptions<TApi, TRes>): boolean;
@@ -44,7 +44,7 @@ declare abstract class ParachainNode<TApi, TRes> {
44
44
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
45
45
  getProvider(): string;
46
46
  createApiInstance(api: IPolkadotApi<TApi, TRes>): Promise<TApi>;
47
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, _currencyId?: string, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
47
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
48
48
  createPolkadotXcmHeader(scenario: TScenario, version: Version, destination?: TDestination, paraId?: number): TMultiLocationHeader;
49
49
  getNativeAssetSymbol(): string;
50
50
  }
@@ -62,7 +62,7 @@ declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IX
62
62
 
63
63
  declare class Crust<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
64
64
  constructor();
65
- getCurrencySelection<TApi, TRes>({ currency, currencyID }: XTokensTransferInput<TApi, TRes>): TReserveAsset;
65
+ private getCurrencySelection;
66
66
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
67
67
  }
68
68
 
@@ -71,7 +71,8 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
71
71
  private getCurrencySelection;
72
72
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
73
73
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
74
- protected canUseXTokens({ currencySymbol, destination }: TSendInternalOptions<TApi, TRes>): boolean;
74
+ protected canUseXTokens({ asset, destination }: TSendInternalOptions<TApi, TRes>): boolean;
75
+ getProvider(): string;
75
76
  }
76
77
 
77
78
  declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
@@ -80,6 +81,7 @@ declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
80
81
 
81
82
  declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
82
83
  constructor();
84
+ private getCurrencySelection;
83
85
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
84
86
  }
85
87
 
@@ -89,12 +91,14 @@ declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> im
89
91
  }
90
92
 
91
93
  declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
94
+ private static NATIVE_ASSET_ID;
92
95
  constructor();
93
96
  transferToEthereum<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
94
97
  transferToAssetHub<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TTransferReturn<TRes>;
95
98
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
96
99
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
97
- protected canUseXTokens({ destination, currencySymbol, currencyId }: TSendInternalOptions<TApi, TRes>): boolean;
100
+ protected canUseXTokens({ destination, asset }: TSendInternalOptions<TApi, TRes>): boolean;
101
+ getProvider(): string;
98
102
  }
99
103
 
100
104
  declare class Interlay<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -109,6 +113,7 @@ declare class Litentry<TApi, TRes> extends ParachainNode<TApi, TRes> implements
109
113
 
110
114
  declare class Moonbeam<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
111
115
  constructor();
116
+ private getCurrencySelection;
112
117
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
113
118
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
114
119
  getProvider(): string;
@@ -121,6 +126,7 @@ declare class Parallel<TApi, TRes> extends ParachainNode<TApi, TRes> implements
121
126
 
122
127
  declare class Altair<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
123
128
  constructor();
129
+ private getCurrencySelection;
124
130
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
125
131
  }
126
132
 
@@ -144,6 +150,7 @@ declare class Basilisk<TApi, TRes> extends ParachainNode<TApi, TRes> implements
144
150
  declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
145
151
  constructor();
146
152
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
153
+ getProvider(): string;
147
154
  }
148
155
 
149
156
  declare class Pioneer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -168,6 +175,7 @@ declare class ParallelHeiko<TApi, TRes> extends ParachainNode<TApi, TRes> implem
168
175
 
169
176
  declare class Moonriver<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
170
177
  constructor();
178
+ private getCurrencySelection;
171
179
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
172
180
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
173
181
  getProvider(): string;
@@ -185,7 +193,7 @@ declare class Calamari<TApi, TRes> extends ParachainNode<TApi, TRes> implements
185
193
 
186
194
  declare class CrustShadow<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
187
195
  constructor();
188
- getCurrencySelection<TApi, TRes>({ currency, currencyID }: XTokensTransferInput<TApi, TRes>): TReserveAsset;
196
+ private getCurrencySelection;
189
197
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
190
198
  }
191
199
 
@@ -218,16 +226,17 @@ declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imp
218
226
  handleMythosTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TTransferReturn<TRes>;
219
227
  handleBifrostEthTransfer: <TApi_1, TRes_1>(input: PolkadotXCMTransferInput<TApi_1, TRes_1>) => TTransferReturn<TRes_1>;
220
228
  patchInput<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): PolkadotXCMTransferInput<TApi, TRes>;
229
+ private getSection;
221
230
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
222
231
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
223
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
232
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
224
233
  }
225
234
 
226
235
  declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
227
236
  constructor();
228
237
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
229
238
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
230
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
239
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
231
240
  }
232
241
 
233
242
  declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -276,7 +285,7 @@ declare class Astar<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPo
276
285
  constructor();
277
286
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
278
287
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
279
- protected canUseXTokens({ currencySymbol, currencyId }: TSendInternalOptions<TApi, TRes>): boolean;
288
+ protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
280
289
  }
281
290
 
282
291
  type TMultiAsset = TMultiAssetV3 | TMultiAssetV4;
@@ -296,14 +305,34 @@ interface TMultiAssetV4 {
296
305
  }
297
306
 
298
307
  type TCurrency = string | number | bigint;
308
+ type TSymbolSpecifier = {
309
+ type: 'Native' | 'Foreign' | 'ForeignAbstract';
310
+ value: string;
311
+ };
312
+ type TOverrideMultiLocationSpecifier = {
313
+ type: 'Override';
314
+ value: TMultiLocation;
315
+ };
316
+ type TCurrencySymbolValue = string | TSymbolSpecifier;
299
317
  type TCurrencySymbol = {
300
- symbol: string;
318
+ symbol: TCurrencySymbolValue;
301
319
  };
302
320
  type TCurrencyCore = TCurrencySymbol | {
303
321
  id: TCurrency;
322
+ } | {
323
+ multilocation: TMultiLocationValue;
324
+ };
325
+ type TCurrencyCoreV1 = {
326
+ symbol: string;
327
+ } | {
328
+ id: TCurrency;
304
329
  };
305
- type TCurrencyInput = TCurrencyCore | {
306
- multilocation: TMultiLocation;
330
+ type TMultiLocationValue = string | TMultiLocation | TJunction[];
331
+ type TMultiLocationValueWithOverride = TMultiLocationValue | TOverrideMultiLocationSpecifier;
332
+ type TCurrencyInput = TCurrencySymbol | {
333
+ id: TCurrency;
334
+ } | {
335
+ multilocation: TMultiLocationValueWithOverride;
307
336
  } | {
308
337
  multiasset: TMultiAsset[];
309
338
  };
@@ -327,18 +356,18 @@ type TCurrencySelectionHeader = {
327
356
  type TCurrencySelectionHeaderArr = {
328
357
  [key in Version]?: [TCurrencySelection | TCurrencySelectionV4];
329
358
  };
330
- type TForeignAsset = {
359
+ type TXcmForeignAsset = {
331
360
  ForeignAsset: string | number | bigint | undefined;
332
361
  };
333
362
  type TForeignAssetId = {
334
- ForeignAssetId: string | undefined;
363
+ ForeignAssetId: bigint | undefined;
335
364
  };
336
- type TForeignOrTokenAsset = TForeignAsset | {
365
+ type TForeignOrTokenAsset = TXcmForeignAsset | {
337
366
  Token: string | undefined;
338
367
  };
339
- type TForeignOrNativeAsset = TForeignAsset | 'Native';
368
+ type TForeignOrNativeAsset = TXcmForeignAsset | 'Native';
340
369
  type TXcmAsset = {
341
- XCM: string | undefined;
370
+ XCM: number | undefined;
342
371
  };
343
372
  type TMantaAsset = {
344
373
  MantaCurrency: bigint | undefined;
@@ -347,7 +376,7 @@ type TNativeTokenAsset = 'NativeToken';
347
376
  type TNodleAsset = 'NodleNative';
348
377
  type TZeitgeistAsset = 'Ztg';
349
378
  type TOtherReserveAsset = {
350
- OtherReserve: string | undefined;
379
+ OtherReserve: string | bigint | undefined;
351
380
  };
352
381
  type TSelfReserveAsset = 'SelfReserve';
353
382
  type TReserveAsset = TOtherReserveAsset | TSelfReserveAsset;
@@ -364,7 +393,7 @@ type TBifrostToken = {
364
393
  } | {
365
394
  Token2: number;
366
395
  };
367
- type TXTokensCurrencySelection = TCurrencySelectionHeader | TCurrencySelectionHeaderArr | TForeignAsset | TForeignAssetId | TForeignOrTokenAsset | TXcmAsset | TMantaAsset | TOtherReserveAsset | TBifrostToken | string | bigint | undefined;
396
+ type TXTokensCurrencySelection = TCurrencySelectionHeader | TCurrencySelectionHeaderArr | TXcmForeignAsset | TForeignAssetId | TForeignOrTokenAsset | TXcmAsset | TMantaAsset | TOtherReserveAsset | TBifrostToken | string | bigint | number | undefined;
368
397
 
369
398
  type TPallet = (typeof SUPPORTED_PALLETS)[number];
370
399
  interface TPalletMap {
@@ -373,6 +402,32 @@ interface TPalletMap {
373
402
  }
374
403
  type TPalletJsonMap = Record<TNodePolkadotKusama, TPalletMap>;
375
404
 
405
+ type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
406
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
407
+ }[Keys];
408
+ type TBaseAsset = {
409
+ symbol?: string;
410
+ decimals?: number;
411
+ manuallyAdded?: boolean;
412
+ alias?: string;
413
+ };
414
+ type TNativeAsset = TBaseAsset & {
415
+ symbol: string;
416
+ };
417
+ type TForeignAsset = TBaseAsset & AtLeastOne<{
418
+ assetId?: string;
419
+ multiLocation?: object;
420
+ xcmInterior?: object[];
421
+ }>;
422
+ type TAsset = TNativeAsset | TForeignAsset;
423
+ type TNodeAssets = {
424
+ relayChainAssetSymbol: TRelayChainSymbol;
425
+ nativeAssetSymbol: string;
426
+ nativeAssets: TNativeAsset[];
427
+ otherAssets: TForeignAsset[];
428
+ };
429
+ type TAssetJsonMap = Record<TNodeWithRelayChains, TNodeAssets>;
430
+
376
431
  type HexString$1 = `0x${string}`;
377
432
  type PolkadotXCMTransferInput<TApi, TRes> = {
378
433
  api: IPolkadotApi<TApi, TRes>;
@@ -382,8 +437,7 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
382
437
  address: TAddress;
383
438
  currencySelection: TCurrencySelectionHeaderArr;
384
439
  scenario: TScenario;
385
- currencySymbol: string | undefined;
386
- currencyId: string | undefined;
440
+ asset: TAsset;
387
441
  destination?: TDestination;
388
442
  paraIdTo?: number;
389
443
  feeAsset?: TCurrency;
@@ -394,13 +448,12 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
394
448
  };
395
449
  type XTokensTransferInput<TApi, TRes> = {
396
450
  api: IPolkadotApi<TApi, TRes>;
397
- currency: string | undefined;
398
- currencyID: string | undefined;
451
+ asset: TAsset;
399
452
  amount: string;
400
453
  addressSelection: TMultiLocationHeader;
401
454
  fees: number;
402
455
  scenario: TScenario;
403
- origin: TNode;
456
+ origin: TNodePolkadotKusama;
404
457
  destination?: TDestination;
405
458
  paraIdTo?: number;
406
459
  overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
@@ -409,11 +462,10 @@ type XTokensTransferInput<TApi, TRes> = {
409
462
  };
410
463
  type XTransferTransferInput<TApi, TRes> = {
411
464
  api: IPolkadotApi<TApi, TRes>;
412
- currency: string | undefined;
413
- currencyID: string | undefined;
465
+ asset: TAsset;
414
466
  amount: string;
415
467
  recipientAddress: TAddress;
416
- origin: TNode;
468
+ origin: TNodePolkadotKusama;
417
469
  paraId?: number;
418
470
  destination?: TDestination;
419
471
  overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
@@ -450,6 +502,7 @@ declare enum Parents {
450
502
  type TAmount = string | number | bigint;
451
503
  type TAddress = string | TMultiLocation;
452
504
  type TDestination = TNode | TMultiLocation;
505
+ type TRelayToParaDestination = TNodePolkadotKusama | TMultiLocation;
453
506
  type TSendBaseOptions<TApi, TRes> = {
454
507
  /**
455
508
  * The destination address. A SS58 or H160 format.
@@ -487,7 +540,7 @@ type TSendOptions<TApi, TRes> = WithApi<TSendBaseOptions<TApi, TRes>, TApi, TRes
487
540
  /**
488
541
  * The origin node
489
542
  */
490
- origin: TNode;
543
+ origin: TNodePolkadotKusama;
491
544
  /**
492
545
  * The currency to transfer. Either ID, symbol, multi-location, or multi-asset
493
546
  */
@@ -499,8 +552,7 @@ type TSendOptions<TApi, TRes> = WithApi<TSendBaseOptions<TApi, TRes>, TApi, TRes
499
552
  };
500
553
  type TSendInternalOptions<TApi, TRes> = TSendBaseOptions<TApi, TRes> & {
501
554
  api: IPolkadotApi<TApi, TRes>;
502
- currencySymbol: string | undefined;
503
- currencyId: string | undefined;
555
+ asset: TAsset;
504
556
  amount: string;
505
557
  overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
506
558
  serializedApiCallEnabled?: boolean;
@@ -509,7 +561,7 @@ type TRelayToParaBaseOptions<TApi, TRes> = {
509
561
  /**
510
562
  * The destination node or multi-location
511
563
  */
512
- destination: TDestination;
564
+ destination: TRelayToParaDestination;
513
565
  /**
514
566
  * The destination address. A SS58 or H160 format.
515
567
  */
@@ -552,7 +604,7 @@ type CheckKeepAliveOptions<TApi, TRes> = {
552
604
  amount: string;
553
605
  originNode?: TNodePolkadotKusama;
554
606
  destApi: IPolkadotApi<TApi, TRes>;
555
- currencySymbol?: string;
607
+ asset: TAsset;
556
608
  destNode?: TNodePolkadotKusama;
557
609
  };
558
610
  type TDestWeight = {
@@ -626,29 +678,6 @@ interface Junctions {
626
678
  X6?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
627
679
  X7?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
628
680
  X8?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
629
- X9?: [
630
- TJunction,
631
- TJunction,
632
- TJunction,
633
- TJunction,
634
- TJunction,
635
- TJunction,
636
- TJunction,
637
- TJunction,
638
- TJunction
639
- ];
640
- X10?: [
641
- TJunction,
642
- TJunction,
643
- TJunction,
644
- TJunction,
645
- TJunction,
646
- TJunction,
647
- TJunction,
648
- TJunction,
649
- TJunction,
650
- TJunction
651
- ];
652
681
  }
653
682
  interface TMultiLocation {
654
683
  parents: StringOrNumber;
@@ -660,9 +689,10 @@ type TMultiLocationHeader = {
660
689
 
661
690
  declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
662
691
  constructor();
692
+ private getCurrencySelection;
663
693
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
664
694
  transferRelayToPara(): TSerializedApiCallV2;
665
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string, overridedMultiLocation?: TMultiLocation): TCurrencySelectionHeaderArr;
695
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset, overridedMultiLocation?: TMultiLocation): TCurrencySelectionHeaderArr;
666
696
  getProvider(): string;
667
697
  }
668
698
 
@@ -670,7 +700,7 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
670
700
  constructor();
671
701
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
672
702
  transferRelayToPara(): TSerializedApiCallV2;
673
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string): TCurrencySelectionHeaderArr;
703
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
674
704
  }
675
705
 
676
706
  declare class Quartz<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -683,7 +713,7 @@ declare class Shiden<TApi, TRes> extends ParachainNode<TApi, TRes> implements IP
683
713
  constructor();
684
714
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
685
715
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
686
- protected canUseXTokens({ currencySymbol, currencyId }: TSendInternalOptions<TApi, TRes>): boolean;
716
+ protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
687
717
  }
688
718
 
689
719
  declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -691,9 +721,9 @@ declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
691
721
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
692
722
  }
693
723
 
694
- declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
724
+ declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
695
725
  constructor();
696
- transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
726
+ transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
697
727
  transferRelayToPara(): TSerializedApiCallV2;
698
728
  }
699
729
 
@@ -711,10 +741,12 @@ declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements
711
741
  declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
712
742
  constructor();
713
743
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
744
+ getProvider(): string;
714
745
  }
715
746
 
716
747
  declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
717
748
  constructor();
749
+ private getCurrencySelection;
718
750
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
719
751
  }
720
752
 
@@ -722,7 +754,7 @@ declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implemen
722
754
  constructor();
723
755
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
724
756
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
725
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string): TCurrencySelectionHeaderArr;
757
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
726
758
  }
727
759
 
728
760
  declare class Khala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
@@ -766,10 +798,6 @@ declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> impl
766
798
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
767
799
  }
768
800
 
769
- declare class Ethereum<TApi, TRes> extends ParachainNode<TApi, TRes> {
770
- constructor();
771
- }
772
-
773
801
  declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
774
802
  constructor();
775
803
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
@@ -783,8 +811,12 @@ declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTo
783
811
  getProvider(): string;
784
812
  }
785
813
 
786
- declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> {
814
+ declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
787
815
  constructor();
816
+ private getAssetMultiLocation;
817
+ transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
818
+ transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
819
+ getProvider(): string;
788
820
  }
789
821
 
790
822
  /**
@@ -861,7 +893,6 @@ declare const nodes: <TApi, TRes>() => {
861
893
  Subsocial: Subsocial<TApi, TRes>;
862
894
  KiltSpiritnet: KiltSpiritnet<TApi, TRes>;
863
895
  Curio: Curio<TApi, TRes>;
864
- Ethereum: Ethereum<TApi, TRes>;
865
896
  Mythos: Mythos<TApi, TRes>;
866
897
  Peaq: Peaq<TApi, TRes>;
867
898
  Polimec: Polimec<TApi, TRes>;
@@ -879,29 +910,6 @@ type TNodeDotKsmWithRelayChains = Exclude<TNodeWithRelayChains, 'Ethereum'>;
879
910
  type TRelayChainType = 'polkadot' | 'kusama';
880
911
  type TRelayChainSymbol = 'DOT' | 'KSM';
881
912
 
882
- type TAsset = TNativeAssetDetails | TAssetDetails;
883
- type TAssetDetails = {
884
- assetId: string;
885
- symbol?: string;
886
- decimals?: number;
887
- manuallyAdded?: boolean;
888
- };
889
- type TNativeAssetDetails = {
890
- assetId?: string;
891
- symbol: string;
892
- decimals: number;
893
- manuallyAdded?: boolean;
894
- };
895
- type TNodeAssets = {
896
- paraId?: number;
897
- relayChainAssetSymbol: TRelayChainSymbol;
898
- nativeAssetSymbol: string;
899
- nativeAssets: TNativeAssetDetails[];
900
- otherAssets: TAssetDetails[];
901
- multiLocations?: TMultiLocation[];
902
- };
903
- type TAssetJsonMap = Record<TNodeWithRelayChains, TNodeAssets>;
904
-
905
913
  type TEdJsonMap = Record<TNodeDotKsmWithRelayChains, string | null>;
906
914
 
907
915
  /**
@@ -919,7 +927,7 @@ type TEvmBuilderOptions = {
919
927
  /**
920
928
  * The currency to transfer. Symbol or ID.
921
929
  */
922
- currency: TCurrencyCore;
930
+ currency: TCurrencyCoreV1;
923
931
  /**
924
932
  * The Polkadot destination address.
925
933
  */
@@ -1010,6 +1018,18 @@ type TGetTransferInfoOptionsBase = {
1010
1018
  };
1011
1019
  type TGetTransferInfoOptions<TApi, TRes> = WithApi<TGetTransferInfoOptionsBase, TApi, TRes>;
1012
1020
 
1021
+ type TProviderEntry = {
1022
+ name: string;
1023
+ endpoint: string;
1024
+ };
1025
+ type TNodeConfig = {
1026
+ name: string;
1027
+ info: string;
1028
+ paraId: number;
1029
+ providers: TProviderEntry[];
1030
+ };
1031
+ type TNodeConfigMap = Record<TNodeDotKsmWithRelayChains, TNodeConfig>;
1032
+
1013
1033
  declare const sendSerializedApiCall: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
1014
1034
  declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TRes>;
1015
1035
  declare const transferRelayToParaCommon: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>, serializedApiCallEnabled?: boolean) => Promise<TTransferReturn<TRes>>;
@@ -1143,14 +1163,14 @@ declare const getRelayChainSymbol: (node: TNodeWithRelayChains) => TRelayChainSy
1143
1163
  * @param node - The node for which to get native assets.
1144
1164
  * @returns An array of native asset details.
1145
1165
  */
1146
- declare const getNativeAssets: (node: TNode) => TNativeAssetDetails[];
1166
+ declare const getNativeAssets: (node: TNode) => TNativeAsset[];
1147
1167
  /**
1148
1168
  * Retrieves the list of other (non-native) assets for a specified node.
1149
1169
  *
1150
1170
  * @param node - The node for which to get other assets.
1151
1171
  * @returns An array of other asset details.
1152
1172
  */
1153
- declare const getOtherAssets: (node: TNode) => TAssetDetails[];
1173
+ declare const getOtherAssets: (node: TNode) => TForeignAsset[];
1154
1174
  /**
1155
1175
  * Retrieves the complete list of assets for a specified node, including relay chain asset, native, and other assets.
1156
1176
  *
@@ -1188,13 +1208,6 @@ declare const hasSupportForAsset: (node: TNode, symbol: string) => boolean;
1188
1208
  * @returns The number of decimals if the asset is found; otherwise, null.
1189
1209
  */
1190
1210
  declare const getAssetDecimals: (node: TNodeWithRelayChains, symbol: string) => number | null;
1191
- /**
1192
- * Retrieves the parachain ID for a specified node.
1193
- *
1194
- * @param node - The node for which to get the paraId.
1195
- * @returns The parachain ID of the node.
1196
- */
1197
- declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
1198
1211
  /**
1199
1212
  * Retrieves the node name corresponding to a specified parachain ID.
1200
1213
  *
@@ -1211,6 +1224,12 @@ declare const getTNode: (paraId: number, ecosystem: TRelayChainType) => TNodeDot
1211
1224
  */
1212
1225
  declare const getExistentialDeposit: (node: TNodeDotKsmWithRelayChains) => string | null;
1213
1226
 
1227
+ declare const Native: (symbol: string) => TSymbolSpecifier;
1228
+ declare const Foreign: (symbol: string) => TSymbolSpecifier;
1229
+ declare const ForeignAbstract: (symbol: string) => TSymbolSpecifier;
1230
+
1231
+ declare const Override: (multiLocation: TMultiLocation) => TOverrideMultiLocationSpecifier;
1232
+
1214
1233
  /**
1215
1234
  * Retrieves the list of assets that are supported for transfers between two specified nodes.
1216
1235
  *
@@ -1264,6 +1283,10 @@ declare const getOriginFeeDetails: (options: TGetOriginFeeDetailsOptionsBase & {
1264
1283
  api?: TPapiApiOrUrl;
1265
1284
  }) => Promise<TOriginFeeDetails>;
1266
1285
 
1286
+ declare const assets_Foreign: typeof Foreign;
1287
+ declare const assets_ForeignAbstract: typeof ForeignAbstract;
1288
+ declare const assets_Native: typeof Native;
1289
+ declare const assets_Override: typeof Override;
1267
1290
  declare const assets_claimAssets: typeof claimAssets;
1268
1291
  declare const assets_getAllAssetsSymbols: typeof getAllAssetsSymbols;
1269
1292
  declare const assets_getAssetBalance: typeof getAssetBalance;
@@ -1278,14 +1301,13 @@ declare const assets_getNativeAssetSymbol: typeof getNativeAssetSymbol;
1278
1301
  declare const assets_getNativeAssets: typeof getNativeAssets;
1279
1302
  declare const assets_getOriginFeeDetails: typeof getOriginFeeDetails;
1280
1303
  declare const assets_getOtherAssets: typeof getOtherAssets;
1281
- declare const assets_getParaId: typeof getParaId;
1282
1304
  declare const assets_getRelayChainSymbol: typeof getRelayChainSymbol;
1283
1305
  declare const assets_getSupportedAssets: typeof getSupportedAssets;
1284
1306
  declare const assets_getTNode: typeof getTNode;
1285
1307
  declare const assets_getTransferInfo: typeof getTransferInfo;
1286
1308
  declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
1287
1309
  declare namespace assets {
1288
- export { assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getParaId as getParaId, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_hasSupportForAsset as hasSupportForAsset };
1310
+ export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_hasSupportForAsset as hasSupportForAsset };
1289
1311
  }
1290
1312
 
1291
1313
  /**
@@ -1328,7 +1350,7 @@ declare class ToGeneralBuilder<TApi, TRes> {
1328
1350
  private readonly from;
1329
1351
  private readonly to;
1330
1352
  private readonly paraIdTo?;
1331
- constructor(api: IPolkadotApi<TApi, TRes>, from: TNode, to: TDestination, batchManager: BatchTransactionManager<TApi, TRes>, paraIdTo?: number);
1353
+ constructor(api: IPolkadotApi<TApi, TRes>, from: TNodePolkadotKusama, to: TDestination, batchManager: BatchTransactionManager<TApi, TRes>, paraIdTo?: number);
1332
1354
  /**
1333
1355
  * Specifies the currency to be used in the transaction. Symbol, ID, multi-location or multi-asset.
1334
1356
  *
@@ -1345,7 +1367,7 @@ declare class FromGeneralBuilder<TApi, TRes> {
1345
1367
  private readonly api;
1346
1368
  private readonly from;
1347
1369
  private _feeAsset?;
1348
- constructor(api: IPolkadotApi<TApi, TRes>, from: TNode, batchManager: BatchTransactionManager<TApi, TRes>);
1370
+ constructor(api: IPolkadotApi<TApi, TRes>, from: TNodePolkadotKusama, batchManager: BatchTransactionManager<TApi, TRes>);
1349
1371
  /**
1350
1372
  * Specifies the destination node for the transaction.
1351
1373
  *
@@ -1465,7 +1487,7 @@ declare class EvmBuilderClass {
1465
1487
  * @param currency - The currency to be transferred.
1466
1488
  * @returns An instance of EvmBuilder
1467
1489
  */
1468
- currency(currency: TCurrencyCore): this;
1490
+ currency(currency: TCurrencyCoreV1): this;
1469
1491
  /**
1470
1492
  * Specifies the recipient address on Polkadot.
1471
1493
  *
@@ -1507,30 +1529,15 @@ declare const GeneralBuilder: {
1507
1529
  new (batchManager: BatchTransactionManager<polkadot_api.PolkadotClient, TPapiTransaction>, api: IPolkadotApi<polkadot_api.PolkadotClient, TPapiTransaction>, _from?: TNode | undefined, _to?: TDestination | undefined): GeneralBuilder$1<polkadot_api.PolkadotClient, TPapiTransaction>;
1508
1530
  };
1509
1531
 
1510
- declare const createApiInstanceForNode: (node: TNodeWithRelayChains) => Promise<polkadot_api.PolkadotClient>;
1532
+ declare const isForeignAsset: (asset: TAsset) => asset is TForeignAsset;
1533
+
1534
+ declare const createApiInstanceForNode: (node: TNodeDotKsmWithRelayChains) => Promise<polkadot_api.PolkadotClient>;
1511
1535
  declare const createPapiApiCall: <TArgs extends Record<string, unknown>, TResult>(apiCall: (options: TArgs & {
1512
1536
  api: IPolkadotApi<TPapiApi, TPapiTransaction>;
1513
1537
  }) => Promise<TResult>) => (options: TArgs & {
1514
1538
  api?: TPapiApiOrUrl;
1515
1539
  }) => Promise<TResult>;
1516
1540
 
1517
- /**
1518
- * Retrieves the WS provider URL for a specified node.
1519
- *
1520
- * @param node - The node for which to get the WS provider URL.
1521
- * @returns The WS provider URL as a string.
1522
- */
1523
- declare const getNodeProvider: (node: TNodeWithRelayChains) => string;
1524
-
1525
- /**
1526
- * Retrieves all WS provider URLs for a specified Polkadot or Kusama node.
1527
- *
1528
- * @param node - The Polkadot or Kusama node.
1529
- * @returns An array of WS provider URLs.
1530
- * @throws Error if the node does not have any providers.
1531
- */
1532
- declare const getAllNodeProviders: (node: TNodePolkadotKusama) => string[];
1533
-
1534
1541
  /**
1535
1542
  * Retrieves the node instance for a given node.
1536
1543
  *
@@ -1539,14 +1546,6 @@ declare const getAllNodeProviders: (node: TNodePolkadotKusama) => string[];
1539
1546
  */
1540
1547
  declare const getNode: <TApi, TRes, T extends keyof ReturnType<typeof nodes>>(node: T) => ReturnType<typeof nodes<TApi, TRes>>[T];
1541
1548
 
1542
- /**
1543
- * Retrieves the endpoint option for a given Polkadot or Kusama node.
1544
- *
1545
- * @param node - The Polkadot or Kusama node for which to get the endpoint option.
1546
- * @returns The endpoint option object if found; otherwise, undefined.
1547
- */
1548
- declare const getNodeEndpointOption: (node: TNodePolkadotKusama) => _polkadot_apps_config_endpoints_types.EndpointOption | undefined;
1549
-
1550
1549
  /**
1551
1550
  * Determines the relay chain for a given node.
1552
1551
  *
@@ -1560,7 +1559,7 @@ declare const determineRelayChain: (node: TNodeWithRelayChains) => TNodeDotKsmWi
1560
1559
  * @param node - The node to check.
1561
1560
  * @returns True if the node is 'Polkadot' or 'Kusama'; otherwise, false.
1562
1561
  */
1563
- declare const isRelayChain: (node: TNodeWithRelayChains) => boolean;
1562
+ declare const isRelayChain: (node: TNodeWithRelayChains) => node is "Polkadot" | "Kusama";
1564
1563
 
1565
1564
  /**
1566
1565
  * Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
@@ -1633,7 +1632,7 @@ declare class DuplicateAssetError extends Error {
1633
1632
  *
1634
1633
  * @param symbol - The symbol of the asset causing the duplication error.
1635
1634
  */
1636
- constructor(symbol: string);
1635
+ constructor(msg: string);
1637
1636
  }
1638
1637
 
1639
1638
  /**
@@ -1648,4 +1647,18 @@ declare class DuplicateAssetIdError extends Error {
1648
1647
  constructor(id: string);
1649
1648
  }
1650
1649
 
1651
- export { BatchMode, Builder, type CheckKeepAliveOptions, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, GeneralBuilder, type HexString$1 as HexString, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidCurrencyError, type JunctionParachain, type JunctionType, type Junctions, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, NoXCMSupportImplementedError, NodeNotSupportedError, Parents, type PolkadotXCMTransferInput, type PolkadotXcmSection, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetDetails, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, type TCurrency, type TCurrencyCore, type TCurrencyInput, type TCurrencySelection, type TCurrencySelectionHeader, type TCurrencySelectionHeaderArr, type TCurrencySelectionV4, type TCurrencySymbol, type TDestWeight, type TDestination, type TEdJsonMap, type TEvmBuilderOptions, type TForeignAsset, type TForeignAssetId, type TForeignOrNativeAsset, type TForeignOrTokenAsset, type TGetTransferInfoOptions, type TGetTransferInfoOptionsBase, type TJunction, type TMantaAsset, type TMultiAsset, type TMultiAssetV3, type TMultiAssetV4, type TMultiLocation, type TMultiLocationHeader, type TNativeAssetDetails, type TNativeTokenAsset, type TNode, type TNodeAssets, type TNodeDotKsmWithRelayChains, type TNodePolkadotKusama, type TNodeWithRelayChains, type TNodleAsset, type TOptionalEvmBuilderOptions, type TOriginFeeDetails, type TOtherReserveAsset, type TPallet, type TPalletJsonMap, type TPalletMap, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaOptions, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedApiCallV2, type TSerializedEthTransfer, type TTransferInfo, type TTransferReturn, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXcmAsset, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, type XTokensSection, type XTokensTransferInput, type XTransferSection, type XTransferTransferInput, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPapiApiCall, determineRelayChain, getAllAssetsSymbols, getAllNodeProviders, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeEndpointOption, getNodeProvider, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isRelayChain, send, sendSerializedApiCall, transferRelayToPara, transferRelayToParaCommon, transferRelayToParaSerializedApiCall, index as xcmPallet };
1650
+ declare const getNodeConfig: (node: TNodeDotKsmWithRelayChains) => TNodeConfig;
1651
+
1652
+ declare const getNodeProviders: (node: TNodeDotKsmWithRelayChains) => string[];
1653
+
1654
+ declare const getNodeProvider: (node: TNodeDotKsmWithRelayChains) => string;
1655
+
1656
+ /**
1657
+ * Retrieves the parachain ID for a specified node.
1658
+ *
1659
+ * @param node - The node for which to get the paraId.
1660
+ * @returns The parachain ID of the node.
1661
+ */
1662
+ declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
1663
+
1664
+ export { BatchMode, Builder, type CheckKeepAliveOptions, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, type HexString$1 as HexString, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidCurrencyError, type JunctionParachain, type JunctionType, type Junctions, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, type PolkadotXCMTransferInput, type PolkadotXcmSection, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, type TCurrency, type TCurrencyCore, type TCurrencyCoreV1, type TCurrencyInput, type TCurrencySelection, type TCurrencySelectionHeader, type TCurrencySelectionHeaderArr, type TCurrencySelectionV4, type TCurrencySymbol, type TCurrencySymbolValue, type TDestWeight, type TDestination, type TEdJsonMap, type TEvmBuilderOptions, type TForeignAsset, type TForeignAssetId, type TForeignOrNativeAsset, type TForeignOrTokenAsset, type TGetTransferInfoOptions, type TGetTransferInfoOptionsBase, type TJunction, type TMantaAsset, type TMultiAsset, type TMultiAssetV3, type TMultiAssetV4, type TMultiLocation, type TMultiLocationHeader, type TMultiLocationValue, type TMultiLocationValueWithOverride, type TNativeAsset, type TNativeTokenAsset, type TNode, type TNodeAssets, type TNodeConfig, type TNodeConfigMap, type TNodeDotKsmWithRelayChains, type TNodePolkadotKusama, type TNodeWithRelayChains, type TNodleAsset, type TOptionalEvmBuilderOptions, type TOriginFeeDetails, type TOtherReserveAsset, type TOverrideMultiLocationSpecifier, type TPallet, type TPalletJsonMap, type TPalletMap, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, type TProviderEntry, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaDestination, type TRelayToParaOptions, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedApiCallV2, type TSerializedEthTransfer, type TSymbolSpecifier, type TTransferInfo, type TTransferReturn, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXcmAsset, type TXcmForeignAsset, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, type XTokensSection, type XTokensTransferInput, type XTransferSection, type XTransferTransferInput, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPapiApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isForeignAsset, isRelayChain, send, sendSerializedApiCall, transferRelayToPara, transferRelayToParaCommon, transferRelayToParaSerializedApiCall, index as xcmPallet };