hive-react-kit 1.10.2 → 1.10.3
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.
|
@@ -25,7 +25,7 @@ interface WalletProps {
|
|
|
25
25
|
onTransfer?: (to: string, amount: string, currency: Currency, memo: string) => void | boolean | Promise<void | boolean>;
|
|
26
26
|
onPowerUp?: (to: string, amount: string) => void | boolean | Promise<void | boolean>;
|
|
27
27
|
onPowerDown?: (hp: string) => void | boolean | Promise<void | boolean>;
|
|
28
|
-
onTransferToSavings?: (currency: Currency, amount: string, memo: string) => void | boolean | Promise<void | boolean>;
|
|
28
|
+
onTransferToSavings?: (to: string, currency: Currency, amount: string, memo: string) => void | boolean | Promise<void | boolean>;
|
|
29
29
|
onTransferFromSavings?: (currency: Currency, amount: string, memo: string) => void | boolean | Promise<void | boolean>;
|
|
30
30
|
/** Cancels the in-progress HP power-down (broadcasts `withdraw_vesting`
|
|
31
31
|
* with 0 vests). Surfaces a STOP button on the Hive Power row when the
|
|
@@ -17,6 +17,7 @@ export declare const TransferModal: React.FC<{
|
|
|
17
17
|
}>;
|
|
18
18
|
export declare const PowerUpModal: React.FC<{
|
|
19
19
|
from: string;
|
|
20
|
+
toDefault?: string;
|
|
20
21
|
hiveBalance?: string;
|
|
21
22
|
onClose: () => void;
|
|
22
23
|
onSubmit: (to: string, amount: string) => void | boolean | Promise<void | boolean>;
|
|
@@ -30,10 +31,11 @@ export declare const PowerDownModal: React.FC<{
|
|
|
30
31
|
export declare const SavingsModal: React.FC<{
|
|
31
32
|
mode: "add" | "remove";
|
|
32
33
|
from: string;
|
|
34
|
+
toDefault?: string;
|
|
33
35
|
currency: Currency;
|
|
34
36
|
availableBalance?: string;
|
|
35
37
|
onClose: () => void;
|
|
36
|
-
onSubmit:
|
|
38
|
+
onSubmit: any;
|
|
37
39
|
}>;
|
|
38
40
|
export declare const ConfirmActionModal: React.FC<{
|
|
39
41
|
title: string;
|
|
@@ -133,7 +133,7 @@ export interface UserDetailProfileProps {
|
|
|
133
133
|
/** Wallet tab — power down (unstake HP → HIVE over 13 weeks). */
|
|
134
134
|
onPowerDown?: (hp: string) => void | boolean | Promise<void | boolean>;
|
|
135
135
|
/** Wallet tab — add to savings (transfer_to_savings). */
|
|
136
|
-
onTransferToSavings?: (currency: "HIVE" | "HBD", amount: string, memo: string) => void | boolean | Promise<void | boolean>;
|
|
136
|
+
onTransferToSavings?: (to: string, currency: "HIVE" | "HBD", amount: string, memo: string) => void | boolean | Promise<void | boolean>;
|
|
137
137
|
/** Wallet tab — withdraw from savings (transfer_from_savings). */
|
|
138
138
|
onTransferFromSavings?: (currency: "HIVE" | "HBD", amount: string, memo: string) => void | boolean | Promise<void | boolean>;
|
|
139
139
|
/** Wallet tab — stop an in-progress power-down (withdraw_vesting with 0). */
|