@paraspell/sdk 7.1.1 → 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
 
@@ -216,17 +224,19 @@ declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imp
216
224
  handleBridgeTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): TTransferReturn<TRes>;
217
225
  handleEthBridgeTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TTransferReturn<TRes>;
218
226
  handleMythosTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TTransferReturn<TRes>;
227
+ handleBifrostEthTransfer: <TApi_1, TRes_1>(input: PolkadotXCMTransferInput<TApi_1, TRes_1>) => TTransferReturn<TRes_1>;
219
228
  patchInput<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): PolkadotXCMTransferInput<TApi, TRes>;
229
+ private getSection;
220
230
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
221
231
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
222
- 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;
223
233
  }
224
234
 
225
235
  declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
226
236
  constructor();
227
237
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
228
238
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
229
- 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;
230
240
  }
231
241
 
232
242
  declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
@@ -275,7 +285,7 @@ declare class Astar<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPo
275
285
  constructor();
276
286
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
277
287
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
278
- protected canUseXTokens({ currencySymbol, currencyId }: TSendInternalOptions<TApi, TRes>): boolean;
288
+ protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
279
289
  }
280
290
 
281
291
  type TMultiAsset = TMultiAssetV3 | TMultiAssetV4;
@@ -295,14 +305,34 @@ interface TMultiAssetV4 {
295
305
  }
296
306
 
297
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;
298
317
  type TCurrencySymbol = {
299
- symbol: string;
318
+ symbol: TCurrencySymbolValue;
300
319
  };
301
320
  type TCurrencyCore = TCurrencySymbol | {
302
321
  id: TCurrency;
322
+ } | {
323
+ multilocation: TMultiLocationValue;
324
+ };
325
+ type TCurrencyCoreV1 = {
326
+ symbol: string;
327
+ } | {
328
+ id: TCurrency;
303
329
  };
304
- type TCurrencyInput = TCurrencyCore | {
305
- multilocation: TMultiLocation;
330
+ type TMultiLocationValue = string | TMultiLocation | TJunction[];
331
+ type TMultiLocationValueWithOverride = TMultiLocationValue | TOverrideMultiLocationSpecifier;
332
+ type TCurrencyInput = TCurrencySymbol | {
333
+ id: TCurrency;
334
+ } | {
335
+ multilocation: TMultiLocationValueWithOverride;
306
336
  } | {
307
337
  multiasset: TMultiAsset[];
308
338
  };
@@ -326,18 +356,18 @@ type TCurrencySelectionHeader = {
326
356
  type TCurrencySelectionHeaderArr = {
327
357
  [key in Version]?: [TCurrencySelection | TCurrencySelectionV4];
328
358
  };
329
- type TForeignAsset = {
359
+ type TXcmForeignAsset = {
330
360
  ForeignAsset: string | number | bigint | undefined;
331
361
  };
332
362
  type TForeignAssetId = {
333
- ForeignAssetId: string | undefined;
363
+ ForeignAssetId: bigint | undefined;
334
364
  };
335
- type TForeignOrTokenAsset = TForeignAsset | {
365
+ type TForeignOrTokenAsset = TXcmForeignAsset | {
336
366
  Token: string | undefined;
337
367
  };
338
- type TForeignOrNativeAsset = TForeignAsset | 'Native';
368
+ type TForeignOrNativeAsset = TXcmForeignAsset | 'Native';
339
369
  type TXcmAsset = {
340
- XCM: string | undefined;
370
+ XCM: number | undefined;
341
371
  };
342
372
  type TMantaAsset = {
343
373
  MantaCurrency: bigint | undefined;
@@ -346,7 +376,7 @@ type TNativeTokenAsset = 'NativeToken';
346
376
  type TNodleAsset = 'NodleNative';
347
377
  type TZeitgeistAsset = 'Ztg';
348
378
  type TOtherReserveAsset = {
349
- OtherReserve: string | undefined;
379
+ OtherReserve: string | bigint | undefined;
350
380
  };
351
381
  type TSelfReserveAsset = 'SelfReserve';
352
382
  type TReserveAsset = TOtherReserveAsset | TSelfReserveAsset;
@@ -363,7 +393,7 @@ type TBifrostToken = {
363
393
  } | {
364
394
  Token2: number;
365
395
  };
366
- 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;
367
397
 
368
398
  type TPallet = (typeof SUPPORTED_PALLETS)[number];
369
399
  interface TPalletMap {
@@ -372,6 +402,32 @@ interface TPalletMap {
372
402
  }
373
403
  type TPalletJsonMap = Record<TNodePolkadotKusama, TPalletMap>;
374
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
+
375
431
  type HexString$1 = `0x${string}`;
376
432
  type PolkadotXCMTransferInput<TApi, TRes> = {
377
433
  api: IPolkadotApi<TApi, TRes>;
@@ -381,8 +437,7 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
381
437
  address: TAddress;
382
438
  currencySelection: TCurrencySelectionHeaderArr;
383
439
  scenario: TScenario;
384
- currencySymbol: string | undefined;
385
- currencyId: string | undefined;
440
+ asset: TAsset;
386
441
  destination?: TDestination;
387
442
  paraIdTo?: number;
388
443
  feeAsset?: TCurrency;
@@ -393,13 +448,12 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
393
448
  };
394
449
  type XTokensTransferInput<TApi, TRes> = {
395
450
  api: IPolkadotApi<TApi, TRes>;
396
- currency: string | undefined;
397
- currencyID: string | undefined;
451
+ asset: TAsset;
398
452
  amount: string;
399
453
  addressSelection: TMultiLocationHeader;
400
454
  fees: number;
401
455
  scenario: TScenario;
402
- origin: TNode;
456
+ origin: TNodePolkadotKusama;
403
457
  destination?: TDestination;
404
458
  paraIdTo?: number;
405
459
  overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
@@ -408,11 +462,10 @@ type XTokensTransferInput<TApi, TRes> = {
408
462
  };
409
463
  type XTransferTransferInput<TApi, TRes> = {
410
464
  api: IPolkadotApi<TApi, TRes>;
411
- currency: string | undefined;
412
- currencyID: string | undefined;
465
+ asset: TAsset;
413
466
  amount: string;
414
467
  recipientAddress: TAddress;
415
- origin: TNode;
468
+ origin: TNodePolkadotKusama;
416
469
  paraId?: number;
417
470
  destination?: TDestination;
418
471
  overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
@@ -449,6 +502,7 @@ declare enum Parents {
449
502
  type TAmount = string | number | bigint;
450
503
  type TAddress = string | TMultiLocation;
451
504
  type TDestination = TNode | TMultiLocation;
505
+ type TRelayToParaDestination = TNodePolkadotKusama | TMultiLocation;
452
506
  type TSendBaseOptions<TApi, TRes> = {
453
507
  /**
454
508
  * The destination address. A SS58 or H160 format.
@@ -486,7 +540,7 @@ type TSendOptions<TApi, TRes> = WithApi<TSendBaseOptions<TApi, TRes>, TApi, TRes
486
540
  /**
487
541
  * The origin node
488
542
  */
489
- origin: TNode;
543
+ origin: TNodePolkadotKusama;
490
544
  /**
491
545
  * The currency to transfer. Either ID, symbol, multi-location, or multi-asset
492
546
  */
@@ -498,8 +552,7 @@ type TSendOptions<TApi, TRes> = WithApi<TSendBaseOptions<TApi, TRes>, TApi, TRes
498
552
  };
499
553
  type TSendInternalOptions<TApi, TRes> = TSendBaseOptions<TApi, TRes> & {
500
554
  api: IPolkadotApi<TApi, TRes>;
501
- currencySymbol: string | undefined;
502
- currencyId: string | undefined;
555
+ asset: TAsset;
503
556
  amount: string;
504
557
  overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
505
558
  serializedApiCallEnabled?: boolean;
@@ -508,7 +561,7 @@ type TRelayToParaBaseOptions<TApi, TRes> = {
508
561
  /**
509
562
  * The destination node or multi-location
510
563
  */
511
- destination: TDestination;
564
+ destination: TRelayToParaDestination;
512
565
  /**
513
566
  * The destination address. A SS58 or H160 format.
514
567
  */
@@ -551,7 +604,7 @@ type CheckKeepAliveOptions<TApi, TRes> = {
551
604
  amount: string;
552
605
  originNode?: TNodePolkadotKusama;
553
606
  destApi: IPolkadotApi<TApi, TRes>;
554
- currencySymbol?: string;
607
+ asset: TAsset;
555
608
  destNode?: TNodePolkadotKusama;
556
609
  };
557
610
  type TDestWeight = {
@@ -625,29 +678,6 @@ interface Junctions {
625
678
  X6?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
626
679
  X7?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
627
680
  X8?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
628
- X9?: [
629
- TJunction,
630
- TJunction,
631
- TJunction,
632
- TJunction,
633
- TJunction,
634
- TJunction,
635
- TJunction,
636
- TJunction,
637
- TJunction
638
- ];
639
- X10?: [
640
- TJunction,
641
- TJunction,
642
- TJunction,
643
- TJunction,
644
- TJunction,
645
- TJunction,
646
- TJunction,
647
- TJunction,
648
- TJunction,
649
- TJunction
650
- ];
651
681
  }
652
682
  interface TMultiLocation {
653
683
  parents: StringOrNumber;
@@ -659,9 +689,10 @@ type TMultiLocationHeader = {
659
689
 
660
690
  declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
661
691
  constructor();
692
+ private getCurrencySelection;
662
693
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
663
694
  transferRelayToPara(): TSerializedApiCallV2;
664
- 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;
665
696
  getProvider(): string;
666
697
  }
667
698
 
@@ -669,7 +700,7 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
669
700
  constructor();
670
701
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
671
702
  transferRelayToPara(): TSerializedApiCallV2;
672
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string): TCurrencySelectionHeaderArr;
703
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
673
704
  }
674
705
 
675
706
  declare class Quartz<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -682,7 +713,7 @@ declare class Shiden<TApi, TRes> extends ParachainNode<TApi, TRes> implements IP
682
713
  constructor();
683
714
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
684
715
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
685
- protected canUseXTokens({ currencySymbol, currencyId }: TSendInternalOptions<TApi, TRes>): boolean;
716
+ protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
686
717
  }
687
718
 
688
719
  declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -690,9 +721,9 @@ declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
690
721
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
691
722
  }
692
723
 
693
- declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
724
+ declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
694
725
  constructor();
695
- transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
726
+ transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
696
727
  transferRelayToPara(): TSerializedApiCallV2;
697
728
  }
698
729
 
@@ -710,10 +741,12 @@ declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements
710
741
  declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
711
742
  constructor();
712
743
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
744
+ getProvider(): string;
713
745
  }
714
746
 
715
747
  declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
716
748
  constructor();
749
+ private getCurrencySelection;
717
750
  transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TTransferReturn<TRes>;
718
751
  }
719
752
 
@@ -721,7 +754,7 @@ declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implemen
721
754
  constructor();
722
755
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
723
756
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
724
- createCurrencySpec(amount: string, scenario: TScenario, version: Version, currencyId?: string): TCurrencySelectionHeaderArr;
757
+ createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
725
758
  }
726
759
 
727
760
  declare class Khala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
@@ -765,10 +798,6 @@ declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> impl
765
798
  transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCallV2;
766
799
  }
767
800
 
768
- declare class Ethereum<TApi, TRes> extends ParachainNode<TApi, TRes> {
769
- constructor();
770
- }
771
-
772
801
  declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
773
802
  constructor();
774
803
  transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TTransferReturn<TRes>>;
@@ -782,8 +811,12 @@ declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTo
782
811
  getProvider(): string;
783
812
  }
784
813
 
785
- declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> {
814
+ declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
786
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;
787
820
  }
788
821
 
789
822
  /**
@@ -860,7 +893,6 @@ declare const nodes: <TApi, TRes>() => {
860
893
  Subsocial: Subsocial<TApi, TRes>;
861
894
  KiltSpiritnet: KiltSpiritnet<TApi, TRes>;
862
895
  Curio: Curio<TApi, TRes>;
863
- Ethereum: Ethereum<TApi, TRes>;
864
896
  Mythos: Mythos<TApi, TRes>;
865
897
  Peaq: Peaq<TApi, TRes>;
866
898
  Polimec: Polimec<TApi, TRes>;
@@ -878,27 +910,6 @@ type TNodeDotKsmWithRelayChains = Exclude<TNodeWithRelayChains, 'Ethereum'>;
878
910
  type TRelayChainType = 'polkadot' | 'kusama';
879
911
  type TRelayChainSymbol = 'DOT' | 'KSM';
880
912
 
881
- type TAsset = TNativeAssetDetails | TAssetDetails;
882
- type TAssetDetails = {
883
- assetId: string;
884
- symbol?: string;
885
- decimals?: number;
886
- };
887
- type TNativeAssetDetails = {
888
- assetId?: string;
889
- symbol: string;
890
- decimals: number;
891
- };
892
- type TNodeAssets = {
893
- paraId?: number;
894
- relayChainAssetSymbol: TRelayChainSymbol;
895
- nativeAssetSymbol: string;
896
- nativeAssets: TNativeAssetDetails[];
897
- otherAssets: TAssetDetails[];
898
- multiLocations?: TMultiLocation[];
899
- };
900
- type TAssetJsonMap = Record<TNodeWithRelayChains, TNodeAssets>;
901
-
902
913
  type TEdJsonMap = Record<TNodeDotKsmWithRelayChains, string | null>;
903
914
 
904
915
  /**
@@ -916,7 +927,7 @@ type TEvmBuilderOptions = {
916
927
  /**
917
928
  * The currency to transfer. Symbol or ID.
918
929
  */
919
- currency: TCurrencyCore;
930
+ currency: TCurrencyCoreV1;
920
931
  /**
921
932
  * The Polkadot destination address.
922
933
  */
@@ -1007,6 +1018,18 @@ type TGetTransferInfoOptionsBase = {
1007
1018
  };
1008
1019
  type TGetTransferInfoOptions<TApi, TRes> = WithApi<TGetTransferInfoOptionsBase, TApi, TRes>;
1009
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
+
1010
1033
  declare const sendSerializedApiCall: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
1011
1034
  declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TRes>;
1012
1035
  declare const transferRelayToParaCommon: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>, serializedApiCallEnabled?: boolean) => Promise<TTransferReturn<TRes>>;
@@ -1099,9 +1122,13 @@ type TGetOriginFeeDetailsOptionsBase = {
1099
1122
  */
1100
1123
  amount: string;
1101
1124
  /**
1102
- * The account to transfer from.
1125
+ * The origin account.
1103
1126
  */
1104
1127
  account: string;
1128
+ /**
1129
+ * The destination account.
1130
+ */
1131
+ accountDestination: string;
1105
1132
  /**
1106
1133
  * The fee margin percentage.
1107
1134
  */
@@ -1136,14 +1163,14 @@ declare const getRelayChainSymbol: (node: TNodeWithRelayChains) => TRelayChainSy
1136
1163
  * @param node - The node for which to get native assets.
1137
1164
  * @returns An array of native asset details.
1138
1165
  */
1139
- declare const getNativeAssets: (node: TNode) => TNativeAssetDetails[];
1166
+ declare const getNativeAssets: (node: TNode) => TNativeAsset[];
1140
1167
  /**
1141
1168
  * Retrieves the list of other (non-native) assets for a specified node.
1142
1169
  *
1143
1170
  * @param node - The node for which to get other assets.
1144
1171
  * @returns An array of other asset details.
1145
1172
  */
1146
- declare const getOtherAssets: (node: TNode) => TAssetDetails[];
1173
+ declare const getOtherAssets: (node: TNode) => TForeignAsset[];
1147
1174
  /**
1148
1175
  * Retrieves the complete list of assets for a specified node, including relay chain asset, native, and other assets.
1149
1176
  *
@@ -1181,13 +1208,6 @@ declare const hasSupportForAsset: (node: TNode, symbol: string) => boolean;
1181
1208
  * @returns The number of decimals if the asset is found; otherwise, null.
1182
1209
  */
1183
1210
  declare const getAssetDecimals: (node: TNodeWithRelayChains, symbol: string) => number | null;
1184
- /**
1185
- * Retrieves the parachain ID for a specified node.
1186
- *
1187
- * @param node - The node for which to get the paraId.
1188
- * @returns The parachain ID of the node.
1189
- */
1190
- declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
1191
1211
  /**
1192
1212
  * Retrieves the node name corresponding to a specified parachain ID.
1193
1213
  *
@@ -1204,6 +1224,12 @@ declare const getTNode: (paraId: number, ecosystem: TRelayChainType) => TNodeDot
1204
1224
  */
1205
1225
  declare const getExistentialDeposit: (node: TNodeDotKsmWithRelayChains) => string | null;
1206
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
+
1207
1233
  /**
1208
1234
  * Retrieves the list of assets that are supported for transfers between two specified nodes.
1209
1235
  *
@@ -1257,6 +1283,10 @@ declare const getOriginFeeDetails: (options: TGetOriginFeeDetailsOptionsBase & {
1257
1283
  api?: TPapiApiOrUrl;
1258
1284
  }) => Promise<TOriginFeeDetails>;
1259
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;
1260
1290
  declare const assets_claimAssets: typeof claimAssets;
1261
1291
  declare const assets_getAllAssetsSymbols: typeof getAllAssetsSymbols;
1262
1292
  declare const assets_getAssetBalance: typeof getAssetBalance;
@@ -1271,14 +1301,13 @@ declare const assets_getNativeAssetSymbol: typeof getNativeAssetSymbol;
1271
1301
  declare const assets_getNativeAssets: typeof getNativeAssets;
1272
1302
  declare const assets_getOriginFeeDetails: typeof getOriginFeeDetails;
1273
1303
  declare const assets_getOtherAssets: typeof getOtherAssets;
1274
- declare const assets_getParaId: typeof getParaId;
1275
1304
  declare const assets_getRelayChainSymbol: typeof getRelayChainSymbol;
1276
1305
  declare const assets_getSupportedAssets: typeof getSupportedAssets;
1277
1306
  declare const assets_getTNode: typeof getTNode;
1278
1307
  declare const assets_getTransferInfo: typeof getTransferInfo;
1279
1308
  declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
1280
1309
  declare namespace assets {
1281
- 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 };
1282
1311
  }
1283
1312
 
1284
1313
  /**
@@ -1321,7 +1350,7 @@ declare class ToGeneralBuilder<TApi, TRes> {
1321
1350
  private readonly from;
1322
1351
  private readonly to;
1323
1352
  private readonly paraIdTo?;
1324
- 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);
1325
1354
  /**
1326
1355
  * Specifies the currency to be used in the transaction. Symbol, ID, multi-location or multi-asset.
1327
1356
  *
@@ -1338,7 +1367,7 @@ declare class FromGeneralBuilder<TApi, TRes> {
1338
1367
  private readonly api;
1339
1368
  private readonly from;
1340
1369
  private _feeAsset?;
1341
- constructor(api: IPolkadotApi<TApi, TRes>, from: TNode, batchManager: BatchTransactionManager<TApi, TRes>);
1370
+ constructor(api: IPolkadotApi<TApi, TRes>, from: TNodePolkadotKusama, batchManager: BatchTransactionManager<TApi, TRes>);
1342
1371
  /**
1343
1372
  * Specifies the destination node for the transaction.
1344
1373
  *
@@ -1458,7 +1487,7 @@ declare class EvmBuilderClass {
1458
1487
  * @param currency - The currency to be transferred.
1459
1488
  * @returns An instance of EvmBuilder
1460
1489
  */
1461
- currency(currency: TCurrencyCore): this;
1490
+ currency(currency: TCurrencyCoreV1): this;
1462
1491
  /**
1463
1492
  * Specifies the recipient address on Polkadot.
1464
1493
  *
@@ -1500,30 +1529,15 @@ declare const GeneralBuilder: {
1500
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>;
1501
1530
  };
1502
1531
 
1503
- 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>;
1504
1535
  declare const createPapiApiCall: <TArgs extends Record<string, unknown>, TResult>(apiCall: (options: TArgs & {
1505
1536
  api: IPolkadotApi<TPapiApi, TPapiTransaction>;
1506
1537
  }) => Promise<TResult>) => (options: TArgs & {
1507
1538
  api?: TPapiApiOrUrl;
1508
1539
  }) => Promise<TResult>;
1509
1540
 
1510
- /**
1511
- * Retrieves the WS provider URL for a specified node.
1512
- *
1513
- * @param node - The node for which to get the WS provider URL.
1514
- * @returns The WS provider URL as a string.
1515
- */
1516
- declare const getNodeProvider: (node: TNodeWithRelayChains) => string;
1517
-
1518
- /**
1519
- * Retrieves all WS provider URLs for a specified Polkadot or Kusama node.
1520
- *
1521
- * @param node - The Polkadot or Kusama node.
1522
- * @returns An array of WS provider URLs.
1523
- * @throws Error if the node does not have any providers.
1524
- */
1525
- declare const getAllNodeProviders: (node: TNodePolkadotKusama) => string[];
1526
-
1527
1541
  /**
1528
1542
  * Retrieves the node instance for a given node.
1529
1543
  *
@@ -1532,14 +1546,6 @@ declare const getAllNodeProviders: (node: TNodePolkadotKusama) => string[];
1532
1546
  */
1533
1547
  declare const getNode: <TApi, TRes, T extends keyof ReturnType<typeof nodes>>(node: T) => ReturnType<typeof nodes<TApi, TRes>>[T];
1534
1548
 
1535
- /**
1536
- * Retrieves the endpoint option for a given Polkadot or Kusama node.
1537
- *
1538
- * @param node - The Polkadot or Kusama node for which to get the endpoint option.
1539
- * @returns The endpoint option object if found; otherwise, undefined.
1540
- */
1541
- declare const getNodeEndpointOption: (node: TNodePolkadotKusama) => _polkadot_apps_config_endpoints_types.EndpointOption | undefined;
1542
-
1543
1549
  /**
1544
1550
  * Determines the relay chain for a given node.
1545
1551
  *
@@ -1553,7 +1559,7 @@ declare const determineRelayChain: (node: TNodeWithRelayChains) => TNodeDotKsmWi
1553
1559
  * @param node - The node to check.
1554
1560
  * @returns True if the node is 'Polkadot' or 'Kusama'; otherwise, false.
1555
1561
  */
1556
- declare const isRelayChain: (node: TNodeWithRelayChains) => boolean;
1562
+ declare const isRelayChain: (node: TNodeWithRelayChains) => node is "Polkadot" | "Kusama";
1557
1563
 
1558
1564
  /**
1559
1565
  * Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
@@ -1626,7 +1632,7 @@ declare class DuplicateAssetError extends Error {
1626
1632
  *
1627
1633
  * @param symbol - The symbol of the asset causing the duplication error.
1628
1634
  */
1629
- constructor(symbol: string);
1635
+ constructor(msg: string);
1630
1636
  }
1631
1637
 
1632
1638
  /**
@@ -1641,4 +1647,18 @@ declare class DuplicateAssetIdError extends Error {
1641
1647
  constructor(id: string);
1642
1648
  }
1643
1649
 
1644
- 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 };