@ecency/wallets 1.3.16 → 1.3.18

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,9 +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
- export declare function useGetExternalWalletBalanceQuery(currency: EcencyWalletCurrency, address: string): import('@tanstack/react-query').UseQueryResult<number, Error>;
2
+ export interface ExternalWalletBalance {
3
+ chain: string;
4
+ unit: string;
5
+ raw?: unknown;
6
+ nodeId?: string;
7
+ /**
8
+ * Balance represented as a BigInt for convenience.
9
+ */
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;
16
+ }
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.16",
4
+ "version": "1.3.18",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",