@paraspell/sdk 5.10.0 → 6.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/dist/index.d.ts CHANGED
@@ -20,13 +20,17 @@ interface TMultiAssetV4 {
20
20
  }
21
21
 
22
22
  type TCurrency = string | number | bigint;
23
- type TCurrencySpecifier = {
23
+ type TCurrencySymbol = {
24
24
  symbol: string;
25
- } | {
25
+ };
26
+ type TCurrencyCore = TCurrencySymbol | {
26
27
  id: TCurrency;
27
28
  };
28
- type TCurrencyCore = TCurrency | TMultiLocation | TMultiAsset[];
29
- type TCurrencyInput = TCurrencyCore | TCurrencySpecifier;
29
+ type TCurrencyInput = TCurrencyCore | {
30
+ multilocation: TMultiLocation;
31
+ } | {
32
+ multiasset: TMultiAsset[];
33
+ };
30
34
  interface TCurrencySelection {
31
35
  id: {
32
36
  Concrete: TMultiLocation;
@@ -189,7 +193,7 @@ type TTransferReturn = Extrinsic | TSerializedApiCall;
189
193
  type TSerializedApiCall = {
190
194
  module: string;
191
195
  section: string;
192
- parameters: any[];
196
+ parameters: unknown[];
193
197
  };
194
198
  type CheckKeepAliveOptions = {
195
199
  originApi: ApiPromise;
@@ -200,6 +204,16 @@ type CheckKeepAliveOptions = {
200
204
  currencySymbol?: string;
201
205
  destNode?: TNodePolkadotKusama;
202
206
  };
207
+ type TDestWeight = {
208
+ refTime: string;
209
+ proofSize: string;
210
+ };
211
+ type XTransferModule = 'xTransfer';
212
+ type XTransferSection = 'transfer';
213
+ type XTokensModule = 'xTokens';
214
+ type XTokensSection = 'transfer' | 'transferMultiasset';
215
+ type PolkadotXcmModule = 'polkadotXcm';
216
+ type PolkadotXcmSection = 'limitedTeleportAssets' | 'limitedReserveTransferAssets' | 'reserveTransferAssets' | 'reserveWithdrawAssets' | 'transferAssets';
203
217
 
204
218
  type JunctionType = 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus';
205
219
  type NetworkId = string | null;
@@ -499,6 +513,14 @@ declare class CoretimeKusama extends ParachainNode implements IPolkadotXCMTransf
499
513
  transferRelayToPara(options: TRelayToParaInternalOptions): TSerializedApiCall;
500
514
  }
501
515
 
516
+ declare class CoretimePolkadot extends ParachainNode implements IPolkadotXCMTransfer {
517
+ constructor();
518
+ _assetCheckEnabled: boolean;
519
+ transferPolkadotXCM(input: PolkadotXCMTransferInput): TTransferReturn;
520
+ transferRelayToPara(options: TRelayToParaInternalOptions): TSerializedApiCall;
521
+ getProvider(): string;
522
+ }
523
+
502
524
  declare class Encointer extends ParachainNode implements IPolkadotXCMTransfer {
503
525
  constructor();
504
526
  transferPolkadotXCM(input: PolkadotXCMTransferInput): TTransferReturn;
@@ -641,10 +663,10 @@ declare class Peaq extends ParachainNode implements IXTokensTransfer {
641
663
  getProvider(): string;
642
664
  }
643
665
 
644
- declare const NODE_NAMES_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq"];
645
- declare const NODE_NAMES: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Ethereum"];
646
- declare const NODES_WITH_RELAY_CHAINS: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Ethereum", "Polkadot", "Kusama"];
647
- declare const NODES_WITH_RELAY_CHAINS_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Polkadot", "Kusama"];
666
+ declare const NODE_NAMES_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq"];
667
+ declare const NODE_NAMES: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Ethereum"];
668
+ declare const NODES_WITH_RELAY_CHAINS: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Ethereum", "Polkadot", "Kusama"];
669
+ declare const NODES_WITH_RELAY_CHAINS_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Pioneer", "Calamari", "CrustShadow", "Crab", "Imbue", "Integritee", "InvArchTinker", "Karura", "Kintsugi", "Litmus", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "Robonomics", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Polkadex", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Polkadot", "Kusama"];
648
670
  declare const nodes: {
649
671
  AssetHubPolkadot: AssetHubPolkadot;
650
672
  Acala: Acala;
@@ -665,6 +687,7 @@ declare const nodes: {
665
687
  Parallel: Parallel;
666
688
  AssetHubKusama: AssetHubKusama;
667
689
  CoretimeKusama: CoretimeKusama;
690
+ CoretimePolkadot: CoretimePolkadot;
668
691
  Encointer: Encointer;
669
692
  Altair: Altair;
670
693
  Amplitude: Amplitude;
@@ -731,6 +754,7 @@ type TNodeAssets = {
731
754
  nativeAssetSymbol: string;
732
755
  nativeAssets: TNativeAssetDetails[];
733
756
  otherAssets: TAssetDetails[];
757
+ multiLocations?: TMultiLocation[];
734
758
  };
735
759
  type TAssetJsonMap = Record<TNodeWithRelayChains, TNodeAssets>;
736
760
 
@@ -741,32 +765,12 @@ interface TPalletMap {
741
765
  }
742
766
  type TPalletJsonMap = Record<TNodePolkadotKusama, TPalletMap>;
743
767
 
744
- interface TOpenChannelOptions {
745
- api: ApiPromise;
746
- origin: TNode;
747
- destination: TNode;
748
- maxSize: number;
749
- maxMessageSize: number;
750
- }
751
- interface TCloseChannelOptions {
752
- api: ApiPromise;
753
- origin: TNode;
754
- inbound: number;
755
- outbound: number;
756
- }
757
- interface TCloseChannelInternalOptions extends TCloseChannelOptions {
758
- serializedApiCallEnabled?: boolean;
759
- }
760
- interface TOpenChannelInternalOptions extends TOpenChannelOptions {
761
- serializedApiCallEnabled?: boolean;
762
- }
763
-
764
768
  type TEdJsonMap = Record<TNodeDotKsmWithRelayChains, string | null>;
765
769
 
766
770
  type TEvmBuilderOptions = {
767
771
  to: TNodePolkadotKusama;
768
772
  amount: string;
769
- currency: string;
773
+ currency: TCurrencyCore;
770
774
  address: string;
771
775
  signer: Signer;
772
776
  };
@@ -778,6 +782,7 @@ type TSerializedEthTransfer = {
778
782
  destinationParaId: number;
779
783
  destinationFee: bigint;
780
784
  amount: bigint;
785
+ fee: bigint;
781
786
  };
782
787
  type OptionalProperties<T> = {
783
788
  [P in keyof T]?: T[P] | undefined;
@@ -791,60 +796,6 @@ type TBatchOptions = {
791
796
  mode: BatchMode;
792
797
  };
793
798
 
794
- declare const sendSerializedApiCall: (options: TSendOptions) => Promise<TSerializedApiCall>;
795
- declare const send: (options: TSendOptions) => Promise<Extrinsic>;
796
- declare const transferRelayToParaCommon: (options: TRelayToParaCommonOptions) => Promise<TTransferReturn>;
797
- declare const transferRelayToPara: (options: TRelayToParaOptions) => Promise<Extrinsic>;
798
- declare const transferRelayToParaSerializedApiCall: (options: TRelayToParaOptions) => Promise<TSerializedApiCall>;
799
-
800
- declare const buildEthTransferOptions: ({ currency, to, address, destAddress, amount }: TSerializeEthTransferOptions) => Promise<TSerializedEthTransfer>;
801
-
802
- declare const index$3_buildEthTransferOptions: typeof buildEthTransferOptions;
803
- declare const index$3_send: typeof send;
804
- declare const index$3_sendSerializedApiCall: typeof sendSerializedApiCall;
805
- declare const index$3_transferRelayToPara: typeof transferRelayToPara;
806
- declare const index$3_transferRelayToParaCommon: typeof transferRelayToParaCommon;
807
- declare const index$3_transferRelayToParaSerializedApiCall: typeof transferRelayToParaSerializedApiCall;
808
- declare namespace index$3 {
809
- export { index$3_buildEthTransferOptions as buildEthTransferOptions, index$3_send as send, index$3_sendSerializedApiCall as sendSerializedApiCall, index$3_transferRelayToPara as transferRelayToPara, index$3_transferRelayToParaCommon as transferRelayToParaCommon, index$3_transferRelayToParaSerializedApiCall as transferRelayToParaSerializedApiCall };
810
- }
811
-
812
- declare const openChannel: (options: TOpenChannelOptions) => Extrinsic;
813
- declare const openChannelSerializedApiCall: (options: TOpenChannelOptions) => TSerializedApiCall;
814
-
815
- declare const index$2_openChannel: typeof openChannel;
816
- declare const index$2_openChannelSerializedApiCall: typeof openChannelSerializedApiCall;
817
- declare namespace index$2 {
818
- export { index$2_openChannel as openChannel, index$2_openChannelSerializedApiCall as openChannelSerializedApiCall };
819
- }
820
-
821
- declare const closeChannel: (options: TCloseChannelOptions) => Extrinsic;
822
- declare const closeChannelSerializedApiCall: (options: TCloseChannelOptions) => TSerializedApiCall;
823
-
824
- declare const index$1_closeChannel: typeof closeChannel;
825
- declare const index$1_closeChannelSerializedApiCall: typeof closeChannelSerializedApiCall;
826
- declare namespace index$1 {
827
- export { index$1_closeChannel as closeChannel, index$1_closeChannelSerializedApiCall as closeChannelSerializedApiCall };
828
- }
829
-
830
- declare const getAssetsObject: (node: TNodeWithRelayChains) => TNodeAssets;
831
- declare const getAssetId: (node: TNode, symbol: string) => string | null;
832
- declare const getRelayChainSymbol: (node: TNodeWithRelayChains) => TRelayChainSymbol;
833
- declare const getNativeAssets: (node: TNode) => TNativeAssetDetails[];
834
- declare const getOtherAssets: (node: TNode) => TAssetDetails[];
835
- declare const getAssets: (node: TNodeWithRelayChains) => TAsset[];
836
- declare const getAllAssetsSymbols: (node: TNodeWithRelayChains) => string[];
837
- declare const getNativeAssetSymbol: (node: TNodeWithRelayChains) => string;
838
- declare const hasSupportForAsset: (node: TNode, symbol: string) => boolean;
839
- declare const getSupportedAssets: (origin: TNodeWithRelayChains, destination: TNodeWithRelayChains) => TAsset[];
840
- declare const getAssetDecimals: (node: TNodeWithRelayChains, symbol: string) => number | null;
841
- declare const getParaId: (node: TNode) => number;
842
- declare const getTNode: (paraId: number) => TNode | null;
843
-
844
- declare const getBalanceNative: (address: string, node: TNodeWithRelayChains, api?: ApiPromise) => Promise<bigint>;
845
-
846
- declare const getBalanceForeign: (address: string, node: TNodePolkadotKusama, symbolOrId: string, api?: ApiPromise) => Promise<bigint | null>;
847
-
848
799
  interface TTransferInfo {
849
800
  chain: {
850
801
  origin: TNodeWithRelayChains;
@@ -873,7 +824,46 @@ interface TTransferInfo {
873
824
  existentialDeposit: bigint;
874
825
  };
875
826
  }
876
- declare const getTransferInfo: (origin: TNodeDotKsmWithRelayChains, destination: TNodeDotKsmWithRelayChains, accountOrigin: string, accountDestination: string, assetSymbolOrId: string, amount: string) => Promise<TTransferInfo>;
827
+
828
+ declare const sendSerializedApiCall: (options: TSendOptions) => Promise<TSerializedApiCall>;
829
+ declare const send: (options: TSendOptions) => Promise<Extrinsic>;
830
+ declare const transferRelayToParaCommon: (options: TRelayToParaCommonOptions) => Promise<TTransferReturn>;
831
+ declare const transferRelayToPara: (options: TRelayToParaOptions) => Promise<Extrinsic>;
832
+ declare const transferRelayToParaSerializedApiCall: (options: TRelayToParaOptions) => Promise<TSerializedApiCall>;
833
+
834
+ declare const buildEthTransferOptions: ({ currency, to, address, destAddress, amount }: TSerializeEthTransferOptions) => Promise<TSerializedEthTransfer>;
835
+
836
+ declare const index$1_buildEthTransferOptions: typeof buildEthTransferOptions;
837
+ declare const index$1_send: typeof send;
838
+ declare const index$1_sendSerializedApiCall: typeof sendSerializedApiCall;
839
+ declare const index$1_transferRelayToPara: typeof transferRelayToPara;
840
+ declare const index$1_transferRelayToParaCommon: typeof transferRelayToParaCommon;
841
+ declare const index$1_transferRelayToParaSerializedApiCall: typeof transferRelayToParaSerializedApiCall;
842
+ declare namespace index$1 {
843
+ export { index$1_buildEthTransferOptions as buildEthTransferOptions, index$1_send as send, index$1_sendSerializedApiCall as sendSerializedApiCall, index$1_transferRelayToPara as transferRelayToPara, index$1_transferRelayToParaCommon as transferRelayToParaCommon, index$1_transferRelayToParaSerializedApiCall as transferRelayToParaSerializedApiCall };
844
+ }
845
+
846
+ declare const getAssetsObject: (node: TNodeWithRelayChains) => TNodeAssets;
847
+ declare const getAssetId: (node: TNode, symbol: string) => string | null;
848
+ declare const getRelayChainSymbol: (node: TNodeWithRelayChains) => TRelayChainSymbol;
849
+ declare const getNativeAssets: (node: TNode) => TNativeAssetDetails[];
850
+ declare const getOtherAssets: (node: TNode) => TAssetDetails[];
851
+ declare const getAssets: (node: TNodeWithRelayChains) => TAsset[];
852
+ declare const getAllAssetsSymbols: (node: TNodeWithRelayChains) => string[];
853
+ declare const getNativeAssetSymbol: (node: TNodeWithRelayChains) => string;
854
+ declare const hasSupportForAsset: (node: TNode, symbol: string) => boolean;
855
+ declare const getSupportedAssets: (origin: TNodeWithRelayChains, destination: TNodeWithRelayChains) => TAsset[];
856
+ declare const getAssetDecimals: (node: TNodeWithRelayChains, symbol: string) => number | null;
857
+ declare const getParaId: (node: TNode) => number;
858
+ declare const getTNode: (paraId: number) => TNode | null;
859
+
860
+ declare const getExistentialDeposit: (node: TNodeDotKsmWithRelayChains) => string | null;
861
+
862
+ declare const getBalanceNative: (address: string, node: TNodeWithRelayChains, api?: ApiPromise) => Promise<bigint>;
863
+
864
+ declare const getBalanceForeign: (address: string, node: TNodePolkadotKusama, symbolOrId: TCurrencyCore, api?: ApiPromise) => Promise<bigint | null>;
865
+
866
+ declare const getTransferInfo: (origin: TNodeDotKsmWithRelayChains, destination: TNodeDotKsmWithRelayChains, accountOrigin: string, accountDestination: string, currency: TCurrencyCore, amount: string) => Promise<TTransferInfo>;
877
867
 
878
868
  declare const index_getAllAssetsSymbols: typeof getAllAssetsSymbols;
879
869
  declare const index_getAssetDecimals: typeof getAssetDecimals;
@@ -882,6 +872,7 @@ declare const index_getAssets: typeof getAssets;
882
872
  declare const index_getAssetsObject: typeof getAssetsObject;
883
873
  declare const index_getBalanceForeign: typeof getBalanceForeign;
884
874
  declare const index_getBalanceNative: typeof getBalanceNative;
875
+ declare const index_getExistentialDeposit: typeof getExistentialDeposit;
885
876
  declare const index_getNativeAssetSymbol: typeof getNativeAssetSymbol;
886
877
  declare const index_getNativeAssets: typeof getNativeAssets;
887
878
  declare const index_getOtherAssets: typeof getOtherAssets;
@@ -892,53 +883,12 @@ declare const index_getTNode: typeof getTNode;
892
883
  declare const index_getTransferInfo: typeof getTransferInfo;
893
884
  declare const index_hasSupportForAsset: typeof hasSupportForAsset;
894
885
  declare namespace index {
895
- export { index_getAllAssetsSymbols as getAllAssetsSymbols, index_getAssetDecimals as getAssetDecimals, index_getAssetId as getAssetId, index_getAssets as getAssets, index_getAssetsObject as getAssetsObject, index_getBalanceForeign as getBalanceForeign, index_getBalanceNative as getBalanceNative, index_getNativeAssetSymbol as getNativeAssetSymbol, index_getNativeAssets as getNativeAssets, index_getOtherAssets as getOtherAssets, index_getParaId as getParaId, index_getRelayChainSymbol as getRelayChainSymbol, index_getSupportedAssets as getSupportedAssets, index_getTNode as getTNode, index_getTransferInfo as getTransferInfo, index_hasSupportForAsset as hasSupportForAsset };
886
+ export { index_getAllAssetsSymbols as getAllAssetsSymbols, index_getAssetDecimals as getAssetDecimals, index_getAssetId as getAssetId, index_getAssets as getAssets, index_getAssetsObject as getAssetsObject, index_getBalanceForeign as getBalanceForeign, index_getBalanceNative as getBalanceNative, index_getExistentialDeposit as getExistentialDeposit, index_getNativeAssetSymbol as getNativeAssetSymbol, index_getNativeAssets as getNativeAssets, index_getOtherAssets as getOtherAssets, index_getParaId as getParaId, index_getRelayChainSymbol as getRelayChainSymbol, index_getSupportedAssets as getSupportedAssets, index_getTNode as getTNode, index_getTransferInfo as getTransferInfo, index_hasSupportForAsset as hasSupportForAsset };
896
887
  }
897
888
 
898
889
  declare const getDefaultPallet: (node: TNodePolkadotKusama) => TPallet;
899
890
  declare const getSupportedPallets: (node: TNodePolkadotKusama) => TPallet[];
900
891
 
901
- interface OutboundCloseChannelBuilder {
902
- outbound: (inbound: number) => FinalBuilder;
903
- }
904
- interface InboundCloseChannelBuilder {
905
- inbound: (inbound: number) => OutboundCloseChannelBuilder;
906
- }
907
- declare class CloseChannelBuilder implements InboundCloseChannelBuilder, OutboundCloseChannelBuilder, FinalBuilder {
908
- private readonly api;
909
- private readonly from;
910
- private _inbound;
911
- private _outbound;
912
- private constructor();
913
- static create(api: ApiPromise, from: TNode): InboundCloseChannelBuilder;
914
- inbound(inbound: number): this;
915
- outbound(outbound: number): this;
916
- private buildOptions;
917
- build(): Extrinsic;
918
- buildSerializedApiCall(): TSerializedApiCall;
919
- }
920
-
921
- interface MaxMessageSizeOpenChannelBuilder {
922
- maxMessageSize: (size: number) => FinalBuilder;
923
- }
924
- interface MaxSizeOpenChannelBuilder {
925
- maxSize: (size: number) => MaxMessageSizeOpenChannelBuilder;
926
- }
927
- declare class OpenChannelBuilder implements MaxSizeOpenChannelBuilder, MaxMessageSizeOpenChannelBuilder, FinalBuilder {
928
- private readonly api;
929
- private readonly from;
930
- private readonly to;
931
- private _maxSize;
932
- private _maxMessageSize;
933
- private constructor();
934
- static create(api: ApiPromise, from: TNode, to: TDestination): MaxSizeOpenChannelBuilder;
935
- maxSize(size: number): this;
936
- maxMessageSize(size: number): this;
937
- private buildOptions;
938
- build(): Extrinsic;
939
- buildSerializedApiCall(): TSerializedApiCall;
940
- }
941
-
942
892
  type TOptions = TSendOptions | TRelayToParaOptions;
943
893
  type TTransaction = {
944
894
  func: (options: TOptions) => Promise<Extrinsic>;
@@ -963,7 +913,6 @@ declare class ToGeneralBuilder {
963
913
  private readonly paraIdTo?;
964
914
  constructor(api: ApiPromise | undefined, from: TNode, to: TDestination, batchManager: BatchTransactionManager, paraIdTo?: number);
965
915
  currency(currency: TCurrencyInput): AmountOrFeeAssetBuilder;
966
- openChannel(): MaxSizeOpenChannelBuilder;
967
916
  }
968
917
  declare class FromGeneralBuilder {
969
918
  private batchManager;
@@ -974,7 +923,6 @@ declare class FromGeneralBuilder {
974
923
  to(node: TDestination, paraIdTo?: number): ToGeneralBuilder;
975
924
  feeAsset(feeAsset: TCurrency): AmountBuilder;
976
925
  amount(amount: TAmount | null): AddressBuilder;
977
- closeChannel(): InboundCloseChannelBuilder;
978
926
  }
979
927
  declare class GeneralBuilder {
980
928
  private readonly batchManager;
@@ -988,10 +936,6 @@ declare class GeneralBuilder {
988
936
  buildBatch(options?: TBatchOptions): Promise<Extrinsic>;
989
937
  }
990
938
  declare const Builder: (api?: ApiPromise) => GeneralBuilder;
991
- interface FinalBuilder {
992
- build: () => Extrinsic | never;
993
- buildSerializedApiCall: () => TSerializedApiCall;
994
- }
995
939
  interface FinalBuilderAsync {
996
940
  build: () => Promise<Extrinsic>;
997
941
  buildSerializedApiCall: () => Promise<TSerializedApiCall>;
@@ -1010,7 +954,7 @@ interface AmountBuilder {
1010
954
  }
1011
955
  interface AmountOrFeeAssetBuilder {
1012
956
  amount: (amount: TAmount | null) => AddressBuilder;
1013
- feeAsset: (feeAsset: TCurrencyInput) => AmountBuilder;
957
+ feeAsset: (feeAsset: TCurrency) => AmountBuilder;
1014
958
  }
1015
959
  interface FungibleBuilder {
1016
960
  fungible: (multiAssets: TMultiAsset[]) => AccountBuilder;
@@ -1028,7 +972,7 @@ declare class EvmBuilderClass {
1028
972
  constructor(provider: AbstractProvider);
1029
973
  to(node: TNodePolkadotKusama): this;
1030
974
  amount(amount: string): this;
1031
- currency(currency: string): this;
975
+ currency(currency: TCurrencyCore): this;
1032
976
  address(address: string): this;
1033
977
  signer(signer: Signer): this;
1034
978
  build(): Promise<void>;
@@ -1040,6 +984,8 @@ declare const getNodeEndpointOption: (node: TNodePolkadotKusama) => _polkadot_ap
1040
984
  declare const getAllNodeProviders: (node: TNodePolkadotKusama) => string[];
1041
985
  declare const getNodeProvider: (node: TNodeWithRelayChains) => string;
1042
986
  declare const createApiInstanceForNode: (node: TNodeWithRelayChains) => Promise<ApiPromise>;
987
+ declare const determineRelayChain: (node: TNodeWithRelayChains) => TNodeDotKsmWithRelayChains;
988
+ declare const isRelayChain: (node: TNodeWithRelayChains) => boolean;
1043
989
 
1044
990
  declare class InvalidCurrencyError extends Error {
1045
991
  constructor(message: string);
@@ -1065,6 +1011,4 @@ declare class DuplicateAssetError extends Error {
1065
1011
  constructor(symbol: string);
1066
1012
  }
1067
1013
 
1068
- declare const getExistentialDeposit: (node: TNodeDotKsmWithRelayChains) => string | null;
1069
-
1070
- export { BatchMode, Builder, type CheckKeepAliveOptions, CloseChannelBuilder, DuplicateAssetError, EvmBuilder, type Extrinsic, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, type InboundCloseChannelBuilder, IncompatibleNodesError, InvalidCurrencyError, type JunctionType, type Junctions, type MaxMessageSizeOpenChannelBuilder, type MaxSizeOpenChannelBuilder, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, NoXCMSupportImplementedError, NodeNotSupportedError, OpenChannelBuilder, type OutboundCloseChannelBuilder, Parents, type PolkadotXCMTransferInput, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetDetails, type TAssetJsonMap, type TBatchOptions, type TCloseChannelInternalOptions, type TCloseChannelOptions, type TCurrency, type TCurrencyCore, type TCurrencyInput, type TCurrencySelection, type TCurrencySelectionHeader, type TCurrencySelectionHeaderArr, type TCurrencySelectionV4, type TCurrencySpecifier, type TDestination, type TEdJsonMap, type TEvmBuilderOptions, type TForeignAsset, type TForeignAssetId, type TForeignOrNativeAsset, type TForeignOrTokenAsset, 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 TOpenChannelInternalOptions, type TOpenChannelOptions, type TOptionalEvmBuilderOptions, type TOtherReserveAsset, type TPallet, type TPalletJsonMap, type TPalletMap, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaCommonOptions, type TRelayToParaInternalOptions, type TRelayToParaOptions, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSendOptionsCommon, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedEthTransfer, type TTransferReturn, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXcmAsset, type TZeitgeistAsset, Version, type XTokensTransferInput, type XTransferTransferInput, index as assets, buildEthTransferOptions, index$1 as closeChannels, createApiInstanceForNode, getAllAssetsSymbols, getAllNodeProviders, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeEndpointOption, getNodeProvider, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, index$2 as openChannels, send, sendSerializedApiCall, transferRelayToPara, transferRelayToParaCommon, transferRelayToParaSerializedApiCall, index$3 as xcmPallet };
1014
+ export { BatchMode, Builder, type CheckKeepAliveOptions, DuplicateAssetError, EvmBuilder, type Extrinsic, GeneralBuilder, 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 PolkadotXcmModule, type PolkadotXcmSection, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetDetails, type TAssetJsonMap, type TBatchOptions, 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 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 TOtherReserveAsset, type TPallet, type TPalletJsonMap, type TPalletMap, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaCommonOptions, type TRelayToParaInternalOptions, type TRelayToParaOptions, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSendOptionsCommon, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedEthTransfer, type TTransferInfo, type TTransferReturn, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXcmAsset, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, type XTokensModule, type XTokensSection, type XTokensTransferInput, type XTransferModule, type XTransferSection, type XTransferTransferInput, index as assets, buildEthTransferOptions, createApiInstanceForNode, determineRelayChain, getAllAssetsSymbols, getAllNodeProviders, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeEndpointOption, getNodeProvider, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isRelayChain, send, sendSerializedApiCall, transferRelayToPara, transferRelayToParaCommon, transferRelayToParaSerializedApiCall, index$1 as xcmPallet };