hive-react-kit 0.7.4 → 0.7.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.
- package/dist/build.css +54 -0
- package/dist/index.cjs.js +79 -79
- package/dist/index.esm.js +5693 -5402
- package/dist/store/walletStore.d.ts +6 -0
- package/dist/types/wallet.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import type { WalletStore } from "../types/wallet";
|
|
2
|
+
declare const getLocalCurrency: () => string;
|
|
3
|
+
declare const SUPPORTED_CURRENCIES: {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}[];
|
|
7
|
+
export { SUPPORTED_CURRENCIES, getLocalCurrency };
|
|
2
8
|
export declare const useWalletStore: import("zustand").UseBoundStore<import("zustand").StoreApi<WalletStore>>;
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface WalletData {
|
|
|
5
5
|
savings_hbd_balance: string;
|
|
6
6
|
hive_power: string;
|
|
7
7
|
estimated_value: string;
|
|
8
|
+
estimated_value_usd: number;
|
|
8
9
|
error?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface Transaction {
|
|
@@ -24,8 +25,13 @@ export interface WalletStore {
|
|
|
24
25
|
transactions: Transaction[];
|
|
25
26
|
isLoadingTransactions: boolean;
|
|
26
27
|
transactionError: string | null;
|
|
28
|
+
selectedCurrency: string;
|
|
29
|
+
localCurrency: string;
|
|
30
|
+
exchangeRates: Record<string, number>;
|
|
27
31
|
setWalletData: (data: WalletData | null) => void;
|
|
28
32
|
clearWalletData: () => void;
|
|
29
33
|
fetchWalletData: (username: string) => Promise<WalletData>;
|
|
30
34
|
fetchTransactions: (username: string, limit?: number) => Promise<Transaction[]>;
|
|
35
|
+
setSelectedCurrency: (currency: string) => void;
|
|
36
|
+
getFormattedEstimatedValue: () => string;
|
|
31
37
|
}
|