@paraspell/sdk 7.2.5 → 7.2.6

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.
@@ -17,6 +17,7 @@ interface IPolkadotApi<TApi, TRes> {
17
17
  callTxMethod(serializedCall: TSerializedApiCall): TRes;
18
18
  calculateTransactionFee(tx: TRes, address: string): Promise<bigint>;
19
19
  getBalanceNative(address: string): Promise<bigint>;
20
+ getBalanceNativeAcala(address: string, symbol: string): Promise<bigint>;
20
21
  getBalanceForeignPolkadotXcm(address: string, id?: string): Promise<bigint>;
21
22
  getMythosForeignBalance(address: string): Promise<bigint>;
22
23
  getAssetHubForeignBalance(address: string, multiLocation: TMultiLocation): Promise<bigint>;
@@ -131,6 +132,7 @@ declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implement
131
132
  constructor();
132
133
  private getCurrencySelection;
133
134
  transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
135
+ getProvider(): string;
134
136
  }
135
137
 
136
138
  declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
@@ -449,6 +451,7 @@ type TBaseAsset = {
449
451
  decimals?: number;
450
452
  manuallyAdded?: boolean;
451
453
  alias?: string;
454
+ existentialDeposit?: string;
452
455
  };
453
456
  type TNativeAsset = TBaseAsset;
454
457
  type TForeignAsset = TBaseAsset & AtLeastOne<{
@@ -1090,6 +1093,12 @@ type TGetBalanceNativeOptionsBase = {
1090
1093
  * The node on which to query the balance.
1091
1094
  */
1092
1095
  node: TNodeDotKsmWithRelayChains;
1096
+ /**
1097
+ * The native currency to query.
1098
+ */
1099
+ currency?: {
1100
+ symbol: string;
1101
+ };
1093
1102
  };
1094
1103
  /**
1095
1104
  * Retrieves the balance of a foreign asset for a given account on a specified node.
@@ -1152,6 +1161,58 @@ type TGetOriginFeeDetailsOptionsBase = {
1152
1161
  */
1153
1162
  feeMarginPercentage?: number;
1154
1163
  };
1164
+ type TGetMaxNativeTransferableAmountOptionsBase = {
1165
+ /**
1166
+ * The address of the account.
1167
+ */
1168
+ address: string;
1169
+ /**
1170
+ * The node on which to query the balance.
1171
+ */
1172
+ node: TNodeDotKsmWithRelayChains;
1173
+ /**
1174
+ * The currency to query.
1175
+ */
1176
+ currency?: {
1177
+ symbol: string;
1178
+ };
1179
+ };
1180
+ type TGetMaxForeignTransferableAmountOptionsBase = {
1181
+ /**
1182
+ * The address of the account.
1183
+ */
1184
+ address: string;
1185
+ /**
1186
+ * The node on which to query the balance.
1187
+ */
1188
+ node: TNodePolkadotKusama;
1189
+ /**
1190
+ * The currency to query.
1191
+ */
1192
+ currency: TCurrencyCore;
1193
+ };
1194
+ type TGetTransferableAmountOptionsBase = {
1195
+ /**
1196
+ * The address of the account.
1197
+ */
1198
+ address: string;
1199
+ /**
1200
+ * The node on which to query the balance.
1201
+ */
1202
+ node: TNodeDotKsmWithRelayChains;
1203
+ /**
1204
+ * The currency to query.
1205
+ */
1206
+ currency: TCurrencyCore;
1207
+ };
1208
+
1209
+ /**
1210
+ * Retrieves the existential deposit value for a given node.
1211
+ *
1212
+ * @param node - The node for which to get the existential deposit.
1213
+ * @returns The existential deposit as a string if available; otherwise, null.
1214
+ */
1215
+ declare const getExistentialDeposit: (node: TNodeWithRelayChains, currency?: TCurrencyCore) => string | null;
1155
1216
 
1156
1217
  /**
1157
1218
  * Retrieves the assets object for a given node containing the native and foreign assets.
@@ -1235,14 +1296,6 @@ declare const getAssetDecimals: (node: TNodeWithRelayChains, symbol: string) =>
1235
1296
  */
1236
1297
  declare const getTNode: (paraId: number, ecosystem: TRelayChainType) => TNodeDotKsmWithRelayChains | null;
1237
1298
 
1238
- /**
1239
- * Retrieves the existential deposit value for a given node.
1240
- *
1241
- * @param node - The node for which to get the existential deposit.
1242
- * @returns The existential deposit as a string if available; otherwise, null.
1243
- */
1244
- declare const getExistentialDeposit: (node: TNodeDotKsmWithRelayChains) => string | null;
1245
-
1246
1299
  declare const Native: (symbol: string) => TSymbolSpecifier;
1247
1300
  declare const Foreign: (symbol: string) => TSymbolSpecifier;
1248
1301
  declare const ForeignAbstract: (symbol: string) => TSymbolSpecifier;
@@ -1301,6 +1354,15 @@ declare const claimAssets: (options: TAssetClaimOptionsBase & {
1301
1354
  declare const getOriginFeeDetails: (options: TGetOriginFeeDetailsOptionsBase & {
1302
1355
  api?: TPapiApiOrUrl;
1303
1356
  }) => Promise<TOriginFeeDetails>;
1357
+ declare const getMaxNativeTransferableAmount: (options: TGetMaxNativeTransferableAmountOptionsBase & {
1358
+ api?: TPapiApiOrUrl;
1359
+ }) => Promise<bigint>;
1360
+ declare const getMaxForeignTransferableAmount: (options: TGetMaxForeignTransferableAmountOptionsBase & {
1361
+ api?: TPapiApiOrUrl;
1362
+ }) => Promise<bigint>;
1363
+ declare const getTransferableAmount: (options: TGetTransferableAmountOptionsBase & {
1364
+ api?: TPapiApiOrUrl;
1365
+ }) => Promise<bigint>;
1304
1366
 
1305
1367
  declare const assets_Foreign: typeof Foreign;
1306
1368
  declare const assets_ForeignAbstract: typeof ForeignAbstract;
@@ -1316,6 +1378,8 @@ declare const assets_getAssetsObject: typeof getAssetsObject;
1316
1378
  declare const assets_getBalanceForeign: typeof getBalanceForeign;
1317
1379
  declare const assets_getBalanceNative: typeof getBalanceNative;
1318
1380
  declare const assets_getExistentialDeposit: typeof getExistentialDeposit;
1381
+ declare const assets_getMaxForeignTransferableAmount: typeof getMaxForeignTransferableAmount;
1382
+ declare const assets_getMaxNativeTransferableAmount: typeof getMaxNativeTransferableAmount;
1319
1383
  declare const assets_getNativeAssetSymbol: typeof getNativeAssetSymbol;
1320
1384
  declare const assets_getNativeAssets: typeof getNativeAssets;
1321
1385
  declare const assets_getOriginFeeDetails: typeof getOriginFeeDetails;
@@ -1324,10 +1388,11 @@ declare const assets_getRelayChainSymbol: typeof getRelayChainSymbol;
1324
1388
  declare const assets_getSupportedAssets: typeof getSupportedAssets;
1325
1389
  declare const assets_getTNode: typeof getTNode;
1326
1390
  declare const assets_getTransferInfo: typeof getTransferInfo;
1391
+ declare const assets_getTransferableAmount: typeof getTransferableAmount;
1327
1392
  declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
1328
1393
  declare const assets_isNodeEvm: typeof isNodeEvm;
1329
1394
  declare namespace assets {
1330
- 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, assets_isNodeEvm as isNodeEvm };
1395
+ 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_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, 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_getTransferableAmount as getTransferableAmount, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm };
1331
1396
  }
1332
1397
 
1333
1398
  /**
@@ -1691,4 +1756,4 @@ declare const getNodeProvider: (node: TNodeDotKsmWithRelayChains) => string;
1691
1756
  */
1692
1757
  declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
1693
1758
 
1694
- export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, type TCheckKeepAliveOptions, 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 THexString$1 as THexString, type TJunction, type TJunctionParachain, type TJunctionType, type TJunctions, 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 TPolkadotXCMTransferOptions, type TPolkadotXcmSection, type TProviderEntry, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaDestination, type TRelayToParaOptions, type TRelayToParaOverrides, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedEthTransfer, type TSymbolSpecifier, type TTransferInfo, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXTokensSection, type TXTokensTransferOptions, type TXTransferSection, type TXTransferTransferOptions, type TXcmAsset, type TXcmForeignAsset, type TXcmPalletSection, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, 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, isNodeEvm, isRelayChain, send, transferRelayToPara, index as xcmPallet };
1759
+ export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, type TCheckKeepAliveOptions, 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 THexString$1 as THexString, type TJunction, type TJunctionParachain, type TJunctionType, type TJunctions, 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 TPolkadotXCMTransferOptions, type TPolkadotXcmSection, type TProviderEntry, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaDestination, type TRelayToParaOptions, type TRelayToParaOverrides, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedEthTransfer, type TSymbolSpecifier, type TTransferInfo, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXTokensSection, type TXTokensTransferOptions, type TXTransferSection, type TXTransferTransferOptions, type TXcmAsset, type TXcmForeignAsset, type TXcmPalletSection, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPapiApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, getTransferableAmount, hasSupportForAsset, isForeignAsset, isNodeEvm, isRelayChain, send, transferRelayToPara, index as xcmPallet };