@paraspell/sdk-pjs 11.14.3 → 11.14.5

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
@@ -41,10 +41,6 @@ type TEvmBuilderOptionsBase = {
41
41
  type TPjsEvmBuilderOptions<TApi, TRes> = WithApi<TEvmBuilderOptionsBase, TApi, TRes> & {
42
42
  provider?: AbstractProvider;
43
43
  };
44
- type TBalanceResponse = {
45
- free?: string;
46
- balance?: string;
47
- };
48
44
 
49
45
  /**
50
46
  * Retrieves the native balance for a given account on a specified chain.
@@ -59,7 +55,7 @@ declare const getBalanceNative: (options: _paraspell_sdk_core.TGetBalanceNativeO
59
55
  *
60
56
  * @returns The balance of the foreign asset as a bigint, or null if not found.
61
57
  */
62
- declare const getBalanceForeign: (options: _paraspell_sdk_core.TGetBalanceForeignOptionsBase & {
58
+ declare const getBalanceForeign: (options: _paraspell_sdk_core.TGetBalanceCommonOptions & {
63
59
  currency: _paraspell_sdk_core.TCurrencyCore;
64
60
  } & {
65
61
  api?: TPjsApiOrUrl;
@@ -69,7 +65,9 @@ declare const getBalanceForeign: (options: _paraspell_sdk_core.TGetBalanceForeig
69
65
  *
70
66
  * @returns The asset balance as a bigint.
71
67
  */
72
- declare const getAssetBalance: (options: _paraspell_sdk_core.TGetAssetBalanceOptionsBase & {
68
+ declare const getAssetBalance: (options: _paraspell_sdk_core.TGetBalanceCommonOptions & {
69
+ currency: _paraspell_sdk_core.TCurrencyCore;
70
+ } & {
73
71
  api?: TPjsApiOrUrl;
74
72
  }) => Promise<bigint>;
75
73
  /**
@@ -285,4 +283,4 @@ declare namespace transfer {
285
283
  declare const createChainClient: (chain: TSubstrateChain, builderOptions?: TBuilderOptions<TPjsApiOrUrl>) => Promise<_polkadot_api.ApiPromise>;
286
284
 
287
285
  export { Builder, EvmBuilder, approveToken, assets, claimAssets, convertSs58, createChainClient, depositToken, dryRun, dryRunOrigin, getAssetBalance, getBalanceForeign, getBalanceNative, getBridgeStatus, getOriginFeeDetails, getParaEthTransferFees, getTokenBalance, send, transferEthToPolkadot, transfer as xcmPallet };
288
- export type { Extrinsic, GeneralBuilder, TBalanceResponse, TPjsApi, TPjsApiOrUrl, TPjsEvmBuilderOptions };
286
+ export type { Extrinsic, GeneralBuilder, TPjsApi, TPjsApiOrUrl, TPjsEvmBuilderOptions };