@ecency/wallets 1.3.17 → 1.3.19

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.
@@ -0,0 +1 @@
1
+ export declare function rememberScryptBsvVersion(): void;
@@ -1,16 +1,17 @@
1
1
  import { EcencyWalletCurrency } from '../enums';
2
- /**
3
- * Returns information about the actual balance of the given currency address
4
- * using various of public APIs
5
- * @param currency
6
- * @param address
7
- * @returns
8
- */
9
- interface UseGetExternalWalletBalanceQueryOptions {
2
+ export interface ExternalWalletBalance {
3
+ chain: string;
4
+ unit: string;
5
+ raw?: unknown;
6
+ nodeId?: string;
10
7
  /**
11
- * When true, Chainstack will be queried before Bitquery and public APIs.
8
+ * Balance represented as a BigInt for convenience.
12
9
  */
13
- reverseProviderOrder?: boolean;
10
+ balanceBigInt: bigint;
11
+ /**
12
+ * Balance returned as a string to preserve precision for UIs that cannot
13
+ * handle bigint values directly.
14
+ */
15
+ balanceString: string;
14
16
  }
15
- export declare function useGetExternalWalletBalanceQuery(currency: EcencyWalletCurrency, address: string, options?: UseGetExternalWalletBalanceQueryOptions): import('@tanstack/react-query').UseQueryResult<number, Error>;
16
- export {};
17
+ export declare function useGetExternalWalletBalanceQuery(currency: EcencyWalletCurrency, address: string): import('@tanstack/react-query').UseQueryResult<ExternalWalletBalance, Error>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/wallets",
3
3
  "private": false,
4
- "version": "1.3.17",
4
+ "version": "1.3.19",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",