@ecency/wallets 1.4.1 → 1.4.2

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.
Files changed (162) hide show
  1. package/dist/index.cjs +3396 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +1627 -0
  4. package/dist/index.d.ts +1627 -2
  5. package/dist/index.mjs +3283 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +28 -15
  8. package/dist/ecency-sdk.es.js +0 -23225
  9. package/dist/internal/scrypt-guard.d.ts +0 -1
  10. package/dist/modules/assets/external/apt/get-apt-asset-balance-query-options.d.ts +0 -8
  11. package/dist/modules/assets/external/apt/get-apt-asset-general-info-query-options.d.ts +0 -28
  12. package/dist/modules/assets/external/apt/index.d.ts +0 -2
  13. package/dist/modules/assets/external/bnb/get-bnb-asset-balance-query-options.d.ts +0 -8
  14. package/dist/modules/assets/external/bnb/get-bnb-asset-general-info-query-options.d.ts +0 -28
  15. package/dist/modules/assets/external/bnb/index.d.ts +0 -2
  16. package/dist/modules/assets/external/btc/get-btc-asset-balance-query-options.d.ts +0 -8
  17. package/dist/modules/assets/external/btc/get-btc-asset-general-info-query-options.d.ts +0 -28
  18. package/dist/modules/assets/external/btc/index.d.ts +0 -2
  19. package/dist/modules/assets/external/common/index.d.ts +0 -1
  20. package/dist/modules/assets/external/common/parse-private-api-balance.d.ts +0 -23
  21. package/dist/modules/assets/external/eth/get-eth-asset-balance-query-options.d.ts +0 -8
  22. package/dist/modules/assets/external/eth/get-eth-asset-general-info-query-options.d.ts +0 -28
  23. package/dist/modules/assets/external/eth/index.d.ts +0 -2
  24. package/dist/modules/assets/external/index.d.ts +0 -7
  25. package/dist/modules/assets/external/sol/get-sol-asset-balance-query-options.d.ts +0 -8
  26. package/dist/modules/assets/external/sol/get-sol-asset-general-info-query-options.d.ts +0 -28
  27. package/dist/modules/assets/external/sol/index.d.ts +0 -2
  28. package/dist/modules/assets/external/ton/get-ton-asset-balance-query-options.d.ts +0 -8
  29. package/dist/modules/assets/external/ton/get-ton-asset-general-info-query-options.d.ts +0 -28
  30. package/dist/modules/assets/external/ton/index.d.ts +0 -2
  31. package/dist/modules/assets/external/tron/get-tron-asset-balance-query-options.d.ts +0 -8
  32. package/dist/modules/assets/external/tron/get-tron-asset-general-info-query-options.d.ts +0 -28
  33. package/dist/modules/assets/external/tron/index.d.ts +0 -2
  34. package/dist/modules/assets/hive/consts/hive-account-operation-groups.d.ts +0 -2
  35. package/dist/modules/assets/hive/consts/index.d.ts +0 -1
  36. package/dist/modules/assets/hive/index.d.ts +0 -2
  37. package/dist/modules/assets/hive/mutations/claim-rewards.d.ts +0 -1
  38. package/dist/modules/assets/hive/mutations/delegate.d.ts +0 -13
  39. package/dist/modules/assets/hive/mutations/index.d.ts +0 -7
  40. package/dist/modules/assets/hive/mutations/power-down.d.ts +0 -11
  41. package/dist/modules/assets/hive/mutations/power-up.d.ts +0 -13
  42. package/dist/modules/assets/hive/mutations/transfer-to-savings.d.ts +0 -13
  43. package/dist/modules/assets/hive/mutations/transfer.d.ts +0 -12
  44. package/dist/modules/assets/hive/mutations/withdraw-route.d.ts +0 -13
  45. package/dist/modules/assets/hive/queries/get-hbd-asset-general-info-query-options.d.ts +0 -76
  46. package/dist/modules/assets/hive/queries/get-hbd-asset-transactions-query-options.d.ts +0 -9
  47. package/dist/modules/assets/hive/queries/get-hive-asset-general-info-query-options.d.ts +0 -28
  48. package/dist/modules/assets/hive/queries/get-hive-asset-metric-query-options.d.ts +0 -43
  49. package/dist/modules/assets/hive/queries/get-hive-asset-transactions-query-options.d.ts +0 -9
  50. package/dist/modules/assets/hive/queries/get-hive-asset-withdrawal-routes-query-options.d.ts +0 -9
  51. package/dist/modules/assets/hive/queries/get-hive-power-asset-general-info-query-options.d.ts +0 -76
  52. package/dist/modules/assets/hive/queries/get-hive-power-asset-transactions-query-options.d.ts +0 -9
  53. package/dist/modules/assets/hive/queries/get-hive-power-delegates-query-options.d.ts +0 -9
  54. package/dist/modules/assets/hive/queries/get-hive-power-delegatings-query-options.d.ts +0 -9
  55. package/dist/modules/assets/hive/queries/index.d.ts +0 -10
  56. package/dist/modules/assets/hive/types/delegated-vesting-share.d.ts +0 -7
  57. package/dist/modules/assets/hive/types/hive-market-metric.d.ts +0 -19
  58. package/dist/modules/assets/hive/types/hive-operation-group.d.ts +0 -1
  59. package/dist/modules/assets/hive/types/hive-transaction.d.ts +0 -198
  60. package/dist/modules/assets/hive/types/hive-withdraw-route.d.ts +0 -7
  61. package/dist/modules/assets/hive/types/index.d.ts +0 -6
  62. package/dist/modules/assets/hive/types/received-vesting-share.d.ts +0 -6
  63. package/dist/modules/assets/hive-engine/index.d.ts +0 -3
  64. package/dist/modules/assets/hive-engine/mutations/delegate.d.ts +0 -12
  65. package/dist/modules/assets/hive-engine/mutations/index.d.ts +0 -5
  66. package/dist/modules/assets/hive-engine/mutations/stake.d.ts +0 -12
  67. package/dist/modules/assets/hive-engine/mutations/transfer.d.ts +0 -13
  68. package/dist/modules/assets/hive-engine/mutations/undelegate.d.ts +0 -12
  69. package/dist/modules/assets/hive-engine/mutations/unstake.d.ts +0 -12
  70. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-general-info-query-options.d.ts +0 -32
  71. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-metrics-query-options.d.ts +0 -9
  72. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-transactions-query-options.d.ts +0 -9
  73. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-balances-query-options.d.ts +0 -9
  74. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-market-query-options.d.ts +0 -9
  75. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.d.ts +0 -9
  76. package/dist/modules/assets/hive-engine/queries/index.d.ts +0 -6
  77. package/dist/modules/assets/hive-engine/types/hive-engine-list-response.d.ts +0 -13
  78. package/dist/modules/assets/hive-engine/types/hive-engine-metric.d.ts +0 -9
  79. package/dist/modules/assets/hive-engine/types/hive-engine-token-balance.d.ts +0 -10
  80. package/dist/modules/assets/hive-engine/types/hive-engine-token-metadata-response.d.ts +0 -16
  81. package/dist/modules/assets/hive-engine/types/hive-engine-transaction.d.ts +0 -14
  82. package/dist/modules/assets/hive-engine/types/index.d.ts +0 -6
  83. package/dist/modules/assets/index.d.ts +0 -6
  84. package/dist/modules/assets/points/index.d.ts +0 -3
  85. package/dist/modules/assets/points/mutations/claim-points.d.ts +0 -2
  86. package/dist/modules/assets/points/mutations/gift.d.ts +0 -14
  87. package/dist/modules/assets/points/mutations/index.d.ts +0 -2
  88. package/dist/modules/assets/points/queries/get-points-asset-general-info-query-options.d.ts +0 -28
  89. package/dist/modules/assets/points/queries/get-points-asset-transactions-query-options.d.ts +0 -41
  90. package/dist/modules/assets/points/queries/get-points-query-options.d.ts +0 -20
  91. package/dist/modules/assets/points/queries/index.d.ts +0 -3
  92. package/dist/modules/assets/points/types/index.d.ts +0 -4
  93. package/dist/modules/assets/points/types/point-transaction-type.d.ts +0 -15
  94. package/dist/modules/assets/points/types/point-transaction.d.ts +0 -10
  95. package/dist/modules/assets/points/types/points-response.d.ts +0 -4
  96. package/dist/modules/assets/points/types/points.d.ts +0 -4
  97. package/dist/modules/assets/spk/index.d.ts +0 -2
  98. package/dist/modules/assets/spk/mutations/index.d.ts +0 -4
  99. package/dist/modules/assets/spk/mutations/lock.d.ts +0 -12
  100. package/dist/modules/assets/spk/mutations/power-up.d.ts +0 -12
  101. package/dist/modules/assets/spk/mutations/transfer.d.ts +0 -14
  102. package/dist/modules/assets/spk/queries/get-larynx-asset-general-info-query-options.d.ts +0 -56
  103. package/dist/modules/assets/spk/queries/get-larynx-power-asset-general-info-query-options.d.ts +0 -76
  104. package/dist/modules/assets/spk/queries/get-spk-asset-general-info-query-options.d.ts +0 -28
  105. package/dist/modules/assets/spk/queries/get-spk-markets-query-options.d.ts +0 -33
  106. package/dist/modules/assets/spk/queries/get-spk-wallet-query-options.d.ts +0 -9
  107. package/dist/modules/assets/spk/queries/index.d.ts +0 -4
  108. package/dist/modules/assets/types/asset-operation.d.ts +0 -17
  109. package/dist/modules/assets/types/general-asset-info.d.ts +0 -12
  110. package/dist/modules/assets/types/general-asset-transaction.d.ts +0 -13
  111. package/dist/modules/assets/types/hive-based-asset-sign-type.d.ts +0 -1
  112. package/dist/modules/assets/types/index.d.ts +0 -5
  113. package/dist/modules/assets/types/spk-wallet.d.ts +0 -60
  114. package/dist/modules/assets/utils/index.d.ts +0 -4
  115. package/dist/modules/assets/utils/is-empty-date.d.ts +0 -1
  116. package/dist/modules/assets/utils/parse-asset.d.ts +0 -17
  117. package/dist/modules/assets/utils/reward-spk.d.ts +0 -2
  118. package/dist/modules/assets/utils/vests-to-hp.d.ts +0 -1
  119. package/dist/modules/wallets/consts/hive-engine-tokens.d.ts +0 -1
  120. package/dist/modules/wallets/consts/index.d.ts +0 -1
  121. package/dist/modules/wallets/enums/ecency-wallet-basic-tokens.d.ts +0 -7
  122. package/dist/modules/wallets/enums/ecency-wallet-currency.d.ts +0 -9
  123. package/dist/modules/wallets/enums/index.d.ts +0 -2
  124. package/dist/modules/wallets/functions/get-keys-from-seed.d.ts +0 -3
  125. package/dist/modules/wallets/functions/index.d.ts +0 -1
  126. package/dist/modules/wallets/index.d.ts +0 -5
  127. package/dist/modules/wallets/mutations/index.d.ts +0 -5
  128. package/dist/modules/wallets/mutations/private-api/check-wallet-existence.d.ts +0 -7
  129. package/dist/modules/wallets/mutations/private-api/create-account-with-wallets.d.ts +0 -6
  130. package/dist/modules/wallets/mutations/private-api/index.d.ts +0 -2
  131. package/dist/modules/wallets/mutations/private-api-namespace.d.ts +0 -2
  132. package/dist/modules/wallets/mutations/save-wallet-information-to-metadata.d.ts +0 -9
  133. package/dist/modules/wallets/mutations/use-import-wallet.d.ts +0 -15
  134. package/dist/modules/wallets/mutations/use-wallet-create.d.ts +0 -11
  135. package/dist/modules/wallets/mutations/wallet-operation.d.ts +0 -2
  136. package/dist/modules/wallets/queries/get-account-wallet-asset-info-query-options.d.ts +0 -13
  137. package/dist/modules/wallets/queries/get-all-tokens-list-query-options.d.ts +0 -30
  138. package/dist/modules/wallets/queries/get-coingecko-price-query-options.d.ts +0 -8
  139. package/dist/modules/wallets/queries/get-tokens-operations-query-options.d.ts +0 -9
  140. package/dist/modules/wallets/queries/index.d.ts +0 -8
  141. package/dist/modules/wallets/queries/use-get-account-wallet-list-query.d.ts +0 -8
  142. package/dist/modules/wallets/queries/use-get-external-wallet-query.d.ts +0 -17
  143. package/dist/modules/wallets/queries/use-hive-keys-query.d.ts +0 -2
  144. package/dist/modules/wallets/queries/use-seed-phrase.d.ts +0 -1
  145. package/dist/modules/wallets/types/account-points-response.d.ts +0 -4
  146. package/dist/modules/wallets/types/ecency-create-wallet-information.d.ts +0 -13
  147. package/dist/modules/wallets/types/ecency-hive-keys.d.ts +0 -12
  148. package/dist/modules/wallets/types/index.d.ts +0 -3
  149. package/dist/modules/wallets/utils/build-external-transaction.d.ts +0 -48
  150. package/dist/modules/wallets/utils/decrypt-memo.d.ts +0 -12
  151. package/dist/modules/wallets/utils/delay.d.ts +0 -1
  152. package/dist/modules/wallets/utils/derive-hive-bip44-keys.d.ts +0 -15
  153. package/dist/modules/wallets/utils/derive-hive-master-password-keys.d.ts +0 -15
  154. package/dist/modules/wallets/utils/detect-hive-key-derivation.d.ts +0 -2
  155. package/dist/modules/wallets/utils/encrypt-memo.d.ts +0 -16
  156. package/dist/modules/wallets/utils/get-wallet.d.ts +0 -3
  157. package/dist/modules/wallets/utils/index.d.ts +0 -12
  158. package/dist/modules/wallets/utils/mnemonic-to-seed-bip-39.d.ts +0 -1
  159. package/dist/modules/wallets/utils/sign-digest.d.ts +0 -7
  160. package/dist/modules/wallets/utils/sign-external-transaction.d.ts +0 -18
  161. package/dist/modules/wallets/utils/sign-transaction.d.ts +0 -23
  162. package/dist/vite.config.d.ts +0 -2
package/dist/index.d.ts CHANGED
@@ -1,2 +1,1627 @@
1
- export * from './modules/wallets';
2
- export * from './modules/assets';
1
+ import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import { UseMutationOptions, useMutation } from '@tanstack/react-query';
3
+ import { BaseWallet, SignTxParams } from '@okxweb3/coin-base';
4
+ import { SMTAsset, OperationName, PrivateKey, Client } from '@hiveio/dhive';
5
+ import { Transaction, SignedTransaction, TransactionConfirmation } from '@hiveio/dhive/lib/chain/transaction';
6
+ import { utxoTx } from '@okxweb3/coin-bitcoin/dist/type';
7
+ import { Network } from '@okxweb3/coin-bitcoin/dist/bitcoinjs-lib';
8
+ import { EthTxParams } from '@okxweb3/coin-ethereum/dist/EthWallet';
9
+ import { SolSignParam } from '@okxweb3/coin-solana/dist/SolWallet';
10
+ import { TrxSignParam } from '@okxweb3/coin-tron/dist/TrxWallet';
11
+ import { TxData } from '@okxweb3/coin-ton/dist/api/types';
12
+ import { AptosParam } from '@okxweb3/coin-aptos/dist/AptosWallet';
13
+ import { useBroadcastMutation } from '@ecency/sdk';
14
+
15
+ declare enum EcencyWalletCurrency {
16
+ BTC = "BTC",
17
+ ETH = "ETH",
18
+ BNB = "BNB",
19
+ APT = "APT",
20
+ TON = "TON",
21
+ TRON = "TRX",
22
+ SOL = "SOL"
23
+ }
24
+
25
+ declare enum EcencyWalletBasicTokens {
26
+ Points = "POINTS",
27
+ HivePower = "HP",
28
+ Hive = "HIVE",
29
+ HiveDollar = "HBD",
30
+ Spk = "SPK"
31
+ }
32
+
33
+ interface EcencyTokenMetadata {
34
+ address?: string;
35
+ privateKey?: string;
36
+ publicKey?: string;
37
+ username?: string;
38
+ currency?: string;
39
+ custom?: boolean;
40
+ type: string;
41
+ /**
42
+ * Represents showing of the token in the Ecency wallet
43
+ */
44
+ show?: boolean;
45
+ }
46
+
47
+ interface EcencyHiveKeys {
48
+ username: string;
49
+ owner: string;
50
+ active: string;
51
+ posting: string;
52
+ memo: string;
53
+ masterPassword: string;
54
+ ownerPubkey: string;
55
+ activePubkey: string;
56
+ postingPubkey: string;
57
+ memoPubkey: string;
58
+ }
59
+
60
+ interface AccountPointsResponse {
61
+ points: string;
62
+ unclaimed_points: string;
63
+ }
64
+
65
+ /**
66
+ * Uses for creating wallet logically in the application
67
+ *
68
+ * Keep attention: this mutation doesn't save wallet to somewhere in a server
69
+ */
70
+ declare function useWalletCreate(username: string, currency: EcencyWalletCurrency): {
71
+ createWallet: _tanstack_react_query.UseMutationResult<EcencyTokenMetadata, Error, void, unknown>;
72
+ importWallet: () => void;
73
+ };
74
+
75
+ interface Payload$7 {
76
+ currency: string;
77
+ address: string;
78
+ }
79
+ declare function useCreateAccountWithWallets(username: string): _tanstack_react_query.UseMutationResult<Response, Error, Payload$7, unknown>;
80
+
81
+ interface Payload$6 {
82
+ address: string;
83
+ currency: EcencyWalletCurrency;
84
+ }
85
+ declare function useCheckWalletExistence(): _tanstack_react_query.UseMutationResult<boolean, Error, Payload$6, unknown>;
86
+
87
+ declare const index_useCheckWalletExistence: typeof useCheckWalletExistence;
88
+ declare const index_useCreateAccountWithWallets: typeof useCreateAccountWithWallets;
89
+ declare namespace index {
90
+ export { index_useCheckWalletExistence as useCheckWalletExistence, index_useCreateAccountWithWallets as useCreateAccountWithWallets };
91
+ }
92
+
93
+ interface Payload$5 {
94
+ privateKeyOrSeed: string;
95
+ }
96
+ /**
97
+ * This mutation uses for importing an existing wallet, validation and saving logically in application
98
+ *
99
+ * Keep attention: this mutation doesn't save wallet to somewhere in a server
100
+ */
101
+ declare function useImportWallet(username: string, currency: EcencyWalletCurrency): _tanstack_react_query.UseMutationResult<{
102
+ privateKey: string;
103
+ address: any;
104
+ publicKey: string;
105
+ }, Error, Payload$5, unknown>;
106
+
107
+ /**
108
+ * Saving of token(s) metadata to Hive profile
109
+ * It may contain: external wallets(see EcencyWalletCurrency), Hive tokens arrangement
110
+ *
111
+ * Basically, this mutation is a convenient wrapper for update profile operation
112
+ */
113
+ type SaveWalletInformationOptions = Pick<UseMutationOptions<unknown, Error, EcencyTokenMetadata[]>, "onSuccess" | "onError">;
114
+ declare function useSaveWalletInformationToMetadata(username: string, options?: SaveWalletInformationOptions): _tanstack_react_query.UseMutationResult<unknown, Error, EcencyTokenMetadata[], unknown>;
115
+
116
+ declare function getHiveAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
117
+ name: string;
118
+ title: string;
119
+ price: number;
120
+ accountBalance: number;
121
+ }, Error, {
122
+ name: string;
123
+ title: string;
124
+ price: number;
125
+ accountBalance: number;
126
+ }, string[]>, "queryFn"> & {
127
+ queryFn?: _tanstack_react_query.QueryFunction<{
128
+ name: string;
129
+ title: string;
130
+ price: number;
131
+ accountBalance: number;
132
+ }, string[], never> | undefined;
133
+ } & {
134
+ queryKey: string[] & {
135
+ [dataTagSymbol]: {
136
+ name: string;
137
+ title: string;
138
+ price: number;
139
+ accountBalance: number;
140
+ };
141
+ [dataTagErrorSymbol]: Error;
142
+ };
143
+ };
144
+
145
+ declare function getHivePowerAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
146
+ name: string;
147
+ title: string;
148
+ price: number;
149
+ accountBalance: number;
150
+ apr?: undefined;
151
+ parts?: undefined;
152
+ } | {
153
+ name: string;
154
+ title: string;
155
+ price: number;
156
+ accountBalance: number;
157
+ apr: string;
158
+ parts: {
159
+ name: string;
160
+ balance: number;
161
+ }[];
162
+ }, Error, {
163
+ name: string;
164
+ title: string;
165
+ price: number;
166
+ accountBalance: number;
167
+ apr?: undefined;
168
+ parts?: undefined;
169
+ } | {
170
+ name: string;
171
+ title: string;
172
+ price: number;
173
+ accountBalance: number;
174
+ apr: string;
175
+ parts: {
176
+ name: string;
177
+ balance: number;
178
+ }[];
179
+ }, string[]>, "queryFn"> & {
180
+ queryFn?: _tanstack_react_query.QueryFunction<{
181
+ name: string;
182
+ title: string;
183
+ price: number;
184
+ accountBalance: number;
185
+ apr?: undefined;
186
+ parts?: undefined;
187
+ } | {
188
+ name: string;
189
+ title: string;
190
+ price: number;
191
+ accountBalance: number;
192
+ apr: string;
193
+ parts: {
194
+ name: string;
195
+ balance: number;
196
+ }[];
197
+ }, string[], never> | undefined;
198
+ } & {
199
+ queryKey: string[] & {
200
+ [dataTagSymbol]: {
201
+ name: string;
202
+ title: string;
203
+ price: number;
204
+ accountBalance: number;
205
+ apr?: undefined;
206
+ parts?: undefined;
207
+ } | {
208
+ name: string;
209
+ title: string;
210
+ price: number;
211
+ accountBalance: number;
212
+ apr: string;
213
+ parts: {
214
+ name: string;
215
+ balance: number;
216
+ }[];
217
+ };
218
+ [dataTagErrorSymbol]: Error;
219
+ };
220
+ };
221
+
222
+ declare function getHbdAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
223
+ name: string;
224
+ title: string;
225
+ price: number;
226
+ accountBalance: number;
227
+ apr?: undefined;
228
+ parts?: undefined;
229
+ } | {
230
+ name: string;
231
+ title: string;
232
+ price: number;
233
+ accountBalance: number;
234
+ apr: string;
235
+ parts: {
236
+ name: string;
237
+ balance: number;
238
+ }[];
239
+ }, Error, {
240
+ name: string;
241
+ title: string;
242
+ price: number;
243
+ accountBalance: number;
244
+ apr?: undefined;
245
+ parts?: undefined;
246
+ } | {
247
+ name: string;
248
+ title: string;
249
+ price: number;
250
+ accountBalance: number;
251
+ apr: string;
252
+ parts: {
253
+ name: string;
254
+ balance: number;
255
+ }[];
256
+ }, string[]>, "queryFn"> & {
257
+ queryFn?: _tanstack_react_query.QueryFunction<{
258
+ name: string;
259
+ title: string;
260
+ price: number;
261
+ accountBalance: number;
262
+ apr?: undefined;
263
+ parts?: undefined;
264
+ } | {
265
+ name: string;
266
+ title: string;
267
+ price: number;
268
+ accountBalance: number;
269
+ apr: string;
270
+ parts: {
271
+ name: string;
272
+ balance: number;
273
+ }[];
274
+ }, string[], never> | undefined;
275
+ } & {
276
+ queryKey: string[] & {
277
+ [dataTagSymbol]: {
278
+ name: string;
279
+ title: string;
280
+ price: number;
281
+ accountBalance: number;
282
+ apr?: undefined;
283
+ parts?: undefined;
284
+ } | {
285
+ name: string;
286
+ title: string;
287
+ price: number;
288
+ accountBalance: number;
289
+ apr: string;
290
+ parts: {
291
+ name: string;
292
+ balance: number;
293
+ }[];
294
+ };
295
+ [dataTagErrorSymbol]: Error;
296
+ };
297
+ };
298
+
299
+ type HiveOperationGroup = "" | "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
300
+
301
+ interface BaseTransaction {
302
+ num: number;
303
+ type: string;
304
+ timestamp: string;
305
+ trx_id: string;
306
+ }
307
+ interface CurationReward extends BaseTransaction {
308
+ type: "curation_reward";
309
+ comment_author?: string;
310
+ comment_permlink?: string;
311
+ author?: string;
312
+ permlink?: string;
313
+ curator: string;
314
+ reward: string;
315
+ }
316
+ interface AuthorReward extends BaseTransaction {
317
+ type: "author_reward";
318
+ author: string;
319
+ permlink: string;
320
+ hbd_payout: string;
321
+ hive_payout: string;
322
+ vesting_payout: string;
323
+ }
324
+ interface CommentBenefactor extends BaseTransaction {
325
+ type: "comment_benefactor_reward";
326
+ benefactor: string;
327
+ author: string;
328
+ permlink: string;
329
+ hbd_payout: string;
330
+ hive_payout: string;
331
+ vesting_payout: string;
332
+ }
333
+ interface ClaimRewardBalance extends BaseTransaction {
334
+ type: "claim_reward_balance";
335
+ account: string;
336
+ reward_hbd: string;
337
+ reward_hive: string;
338
+ reward_vests: string;
339
+ }
340
+ interface Transfer extends BaseTransaction {
341
+ type: "transfer";
342
+ amount: string;
343
+ memo: string;
344
+ from: string;
345
+ to: string;
346
+ }
347
+ interface TransferToVesting extends BaseTransaction {
348
+ type: "transfer_to_vesting";
349
+ amount: string;
350
+ memo?: string;
351
+ from: string;
352
+ to: string;
353
+ }
354
+ interface SetWithdrawRoute extends BaseTransaction {
355
+ type: "set_withdraw_vesting_route";
356
+ from_account: string;
357
+ to_account: string;
358
+ percent: number;
359
+ auto_vest: boolean;
360
+ }
361
+ interface TransferToSavings extends BaseTransaction {
362
+ type: "transfer_to_savings";
363
+ amount: string;
364
+ memo?: string;
365
+ from: string;
366
+ to: string;
367
+ }
368
+ interface CancelTransferFromSavings extends BaseTransaction {
369
+ from: string;
370
+ request_id: number;
371
+ type: "cancel_transfer_from_savings";
372
+ }
373
+ interface WithdrawVesting extends BaseTransaction {
374
+ type: "withdraw_vesting";
375
+ acc: string;
376
+ vesting_shares: string;
377
+ }
378
+ interface FillOrder extends BaseTransaction {
379
+ type: "fill_order";
380
+ current_pays: string;
381
+ open_pays: string;
382
+ }
383
+ interface LimitOrderCancel extends BaseTransaction {
384
+ type: "limit_order_cancel";
385
+ owner: string;
386
+ orderid: number;
387
+ num: number;
388
+ }
389
+ interface ProducerReward extends BaseTransaction {
390
+ type: "producer_reward";
391
+ vesting_shares: string;
392
+ producer: string;
393
+ }
394
+ interface Interest extends BaseTransaction {
395
+ type: "interest";
396
+ owner: string;
397
+ interest: string;
398
+ }
399
+ interface FillConvertRequest extends BaseTransaction {
400
+ type: "fill_convert_request";
401
+ amount_in: string;
402
+ amount_out: string;
403
+ }
404
+ interface FillCollateralizedConvertRequest extends BaseTransaction {
405
+ type: "fill_collateralized_convert_request";
406
+ owner: string;
407
+ requestid: number;
408
+ amount_in: string;
409
+ amount_out: string;
410
+ excess_collateral: string;
411
+ }
412
+ interface ReturnVestingDelegation extends BaseTransaction {
413
+ type: "return_vesting_delegation";
414
+ vesting_shares: string;
415
+ }
416
+ interface ProposalPay extends BaseTransaction {
417
+ type: "proposal_pay";
418
+ payment: string;
419
+ }
420
+ interface UpdateProposalVotes extends BaseTransaction {
421
+ type: "update_proposal_votes";
422
+ voter: string;
423
+ proposal_ids: [number];
424
+ approve: boolean;
425
+ }
426
+ interface CommentPayoutUpdate extends BaseTransaction {
427
+ type: "comment_payout_update";
428
+ author: string;
429
+ permlink: string;
430
+ }
431
+ interface CommentReward extends BaseTransaction {
432
+ type: "comment_reward";
433
+ author: string;
434
+ permlink: string;
435
+ payout: string;
436
+ }
437
+ interface CollateralizedConvert extends BaseTransaction {
438
+ type: "collateralized_convert";
439
+ owner: string;
440
+ requestid: number;
441
+ amount: string;
442
+ }
443
+ interface RecurrentTransfers extends BaseTransaction {
444
+ type: "recurrent_transfer";
445
+ amount: string;
446
+ memo: string;
447
+ from: string;
448
+ to: string;
449
+ recurrence: number;
450
+ executions: number;
451
+ }
452
+ interface FillRecurrentTransfers extends BaseTransaction {
453
+ type: "fill_recurrent_transfer";
454
+ amount: SMTAsset;
455
+ memo: string;
456
+ from: string;
457
+ to: string;
458
+ remaining_executions: number;
459
+ }
460
+ interface DelegateVestingShares extends BaseTransaction {
461
+ type: "delegate_vesting_shares";
462
+ delegator: string;
463
+ delegatee: string;
464
+ vesting_shares: string;
465
+ }
466
+ interface LimitOrderCreate extends BaseTransaction {
467
+ type: "limit_order_create";
468
+ owner: string;
469
+ orderid: number;
470
+ amount_to_sell: string;
471
+ min_to_receive: string;
472
+ expiration: string;
473
+ }
474
+ interface FillVestingWithdraw extends BaseTransaction {
475
+ type: "fill_vesting_withdraw";
476
+ from_account: string;
477
+ to_account: string;
478
+ withdrawn: string;
479
+ deposited: string;
480
+ }
481
+ interface EffectiveCommentVote extends BaseTransaction {
482
+ type: "effective_comment_vote";
483
+ voter: string;
484
+ author: string;
485
+ permlink: string;
486
+ pending_payout: string;
487
+ total_vote_weight: number;
488
+ rshares: number;
489
+ weight: number;
490
+ }
491
+ interface VoteProxy extends BaseTransaction {
492
+ type: "account_witness_proxy";
493
+ account: string;
494
+ proxy: string;
495
+ }
496
+ type HiveTransaction = CurationReward | AuthorReward | CommentBenefactor | ClaimRewardBalance | Transfer | TransferToVesting | TransferToSavings | CancelTransferFromSavings | WithdrawVesting | SetWithdrawRoute | FillOrder | ProducerReward | Interest | FillConvertRequest | FillCollateralizedConvertRequest | ReturnVestingDelegation | ProposalPay | UpdateProposalVotes | CommentPayoutUpdate | CommentReward | CollateralizedConvert | RecurrentTransfers | FillRecurrentTransfers | LimitOrderCreate | LimitOrderCancel | FillVestingWithdraw | EffectiveCommentVote | VoteProxy | DelegateVestingShares;
497
+
498
+ interface HiveWithdrawRoute {
499
+ auto_vest: boolean;
500
+ from_account: string;
501
+ id: number;
502
+ percent: number;
503
+ to_account: string;
504
+ }
505
+
506
+ interface DelegatedVestingShare {
507
+ id: number;
508
+ delegatee: string;
509
+ delegator: string;
510
+ min_delegation_time: string;
511
+ vesting_shares: string;
512
+ }
513
+
514
+ interface ReceivedVestingShare {
515
+ delegatee: string;
516
+ delegator: string;
517
+ timestamp: string;
518
+ vesting_shares: string;
519
+ }
520
+
521
+ declare function getHiveAssetTransactionsQueryOptions(username: string | undefined, limit: number | undefined, group: HiveOperationGroup): _tanstack_react_query.UseInfiniteQueryOptions<HiveTransaction[], Error, _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>, readonly unknown[], unknown> & {
522
+ initialData: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown> | (() => _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>) | undefined;
523
+ } & {
524
+ queryKey: readonly unknown[] & {
525
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>;
526
+ [dataTagErrorSymbol]: Error;
527
+ };
528
+ };
529
+
530
+ declare function getHivePowerAssetTransactionsQueryOptions(username: string | undefined, limit: number | undefined, group: HiveOperationGroup): _tanstack_react_query.UseInfiniteQueryOptions<HiveTransaction[], Error, _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>, readonly unknown[], unknown> & {
531
+ initialData: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown> | (() => _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>) | undefined;
532
+ } & {
533
+ queryKey: readonly unknown[] & {
534
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>;
535
+ [dataTagErrorSymbol]: Error;
536
+ };
537
+ };
538
+
539
+ declare function getHbdAssetTransactionsQueryOptions(username: string | undefined, limit: number | undefined, group: HiveOperationGroup): _tanstack_react_query.UseInfiniteQueryOptions<HiveTransaction[], Error, _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>, readonly unknown[], unknown> & {
540
+ initialData: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown> | (() => _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>) | undefined;
541
+ } & {
542
+ queryKey: readonly unknown[] & {
543
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>;
544
+ [dataTagErrorSymbol]: Error;
545
+ };
546
+ };
547
+
548
+ declare function getHiveAssetMetricQueryOptions(bucketSeconds?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<{
549
+ close: number;
550
+ open: number;
551
+ low: number;
552
+ high: number;
553
+ volume: number;
554
+ time: Date;
555
+ }[], Error, _tanstack_react_query.InfiniteData<{
556
+ close: number;
557
+ open: number;
558
+ low: number;
559
+ high: number;
560
+ volume: number;
561
+ time: Date;
562
+ }[], unknown>, (string | number)[], Date[]>, "queryFn"> & {
563
+ queryFn?: _tanstack_react_query.QueryFunction<{
564
+ close: number;
565
+ open: number;
566
+ low: number;
567
+ high: number;
568
+ volume: number;
569
+ time: Date;
570
+ }[], (string | number)[], Date[]> | undefined;
571
+ } & {
572
+ queryKey: (string | number)[] & {
573
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<{
574
+ close: number;
575
+ open: number;
576
+ low: number;
577
+ high: number;
578
+ volume: number;
579
+ time: Date;
580
+ }[], unknown>;
581
+ [dataTagErrorSymbol]: Error;
582
+ };
583
+ };
584
+
585
+ declare function getHiveAssetWithdrawalRoutesQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveWithdrawRoute[], Error, HiveWithdrawRoute[], (string | undefined)[]>, "queryFn"> & {
586
+ queryFn?: _tanstack_react_query.QueryFunction<HiveWithdrawRoute[], (string | undefined)[], never> | undefined;
587
+ } & {
588
+ queryKey: (string | undefined)[] & {
589
+ [dataTagSymbol]: HiveWithdrawRoute[];
590
+ [dataTagErrorSymbol]: Error;
591
+ };
592
+ };
593
+
594
+ declare function getHivePowerDelegatesInfiniteQueryOptions(username: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DelegatedVestingShare[], Error, DelegatedVestingShare[], string[]>, "queryFn"> & {
595
+ queryFn?: _tanstack_react_query.QueryFunction<DelegatedVestingShare[], string[], never> | undefined;
596
+ } & {
597
+ queryKey: string[] & {
598
+ [dataTagSymbol]: DelegatedVestingShare[];
599
+ [dataTagErrorSymbol]: Error;
600
+ };
601
+ };
602
+
603
+ declare function getHivePowerDelegatingsQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ReceivedVestingShare[], Error, ReceivedVestingShare[], string[]>, "queryFn"> & {
604
+ queryFn?: _tanstack_react_query.QueryFunction<ReceivedVestingShare[], string[], never> | undefined;
605
+ } & {
606
+ queryKey: string[] & {
607
+ [dataTagSymbol]: ReceivedVestingShare[];
608
+ [dataTagErrorSymbol]: Error;
609
+ };
610
+ };
611
+
612
+ interface GeneralAssetInfo {
613
+ name: string;
614
+ title: string;
615
+ price: number;
616
+ accountBalance: number;
617
+ apr?: string;
618
+ layer?: string;
619
+ parts?: {
620
+ name: string;
621
+ balance: number;
622
+ }[];
623
+ }
624
+
625
+ interface SpkApiWallet {
626
+ balance: number;
627
+ claim: number;
628
+ drop: {
629
+ availible: {
630
+ amount: number;
631
+ precision: number;
632
+ token: string;
633
+ };
634
+ last_claim: number;
635
+ total_claims: number;
636
+ };
637
+ poweredUp: number;
638
+ granted: {
639
+ t: number;
640
+ [key: string]: number;
641
+ };
642
+ granting: {
643
+ t: number;
644
+ [key: string]: number;
645
+ };
646
+ heldCollateral: number;
647
+ contracts: unknown[];
648
+ up: unknown;
649
+ down: unknown;
650
+ power_downs: {
651
+ [key: string]: string;
652
+ };
653
+ gov_downs: unknown;
654
+ gov: number;
655
+ spk: number;
656
+ spk_block: number;
657
+ tick: string;
658
+ node: string;
659
+ head_block: number;
660
+ behind: number;
661
+ VERSION: string;
662
+ pow: number;
663
+ }
664
+ interface SpkMarkets {
665
+ head_block: number;
666
+ markets: {
667
+ node: {
668
+ [key: string]: {
669
+ lastGood: number;
670
+ report: {
671
+ block: number;
672
+ };
673
+ };
674
+ };
675
+ };
676
+ stats: any;
677
+ }
678
+ interface TransformedSpkMarkets {
679
+ list: {
680
+ name: string;
681
+ status: string;
682
+ }[];
683
+ raw: SpkMarkets;
684
+ }
685
+
686
+ declare enum AssetOperation {
687
+ Transfer = "transfer",
688
+ TransferToSavings = "transfer-saving",
689
+ Delegate = "delegate",
690
+ PowerUp = "power-up",
691
+ PowerDown = "power-down",
692
+ WithdrawRoutes = "withdraw-saving",
693
+ Swap = "swap",
694
+ Gift = "gift",
695
+ Promote = "promote",
696
+ Claim = "claim",
697
+ Buy = "buy",
698
+ LockLiquidity = "lock",
699
+ Stake = "stake",
700
+ Unstake = "unstake",
701
+ Undelegate = "undelegate"
702
+ }
703
+
704
+ interface GeneralAssetTransaction {
705
+ id: number | string;
706
+ type: OperationName | number | string;
707
+ created: Date;
708
+ results: {
709
+ amount: string | number;
710
+ asset: string;
711
+ }[];
712
+ from?: string;
713
+ to?: string;
714
+ memo?: string;
715
+ }
716
+
717
+ type HiveBasedAssetSignType = "key" | "keychain" | "hivesigner";
718
+
719
+ interface TransferPayload<T extends HiveBasedAssetSignType> {
720
+ from: string;
721
+ to: string;
722
+ amount: string;
723
+ memo: string;
724
+ type: T;
725
+ }
726
+ declare function transferHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? TransferPayload<T> & {
727
+ key: PrivateKey;
728
+ } : TransferPayload<T>): Promise<unknown>;
729
+
730
+ interface Payload$4<T extends HiveBasedAssetSignType> {
731
+ from: string;
732
+ to: string;
733
+ amount: string;
734
+ memo: string;
735
+ type: T;
736
+ }
737
+ declare function transferToSavingsHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$4<T> & {
738
+ key: PrivateKey;
739
+ } : Payload$4<T>): Promise<unknown>;
740
+
741
+ interface Payload$3<T extends HiveBasedAssetSignType> {
742
+ from: string;
743
+ to: string;
744
+ amount: string;
745
+ memo: string;
746
+ type: T;
747
+ }
748
+ declare function powerUpHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$3<T> & {
749
+ key: PrivateKey;
750
+ } : Payload$3<T>): Promise<unknown>;
751
+
752
+ interface Payload$2<T extends HiveBasedAssetSignType> {
753
+ from: string;
754
+ to: string;
755
+ amount: string;
756
+ memo: string;
757
+ type: T;
758
+ }
759
+ declare function delegateHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$2<T> & {
760
+ key: PrivateKey;
761
+ } : Payload$2<T>): Promise<unknown>;
762
+
763
+ interface Payload$1<T extends HiveBasedAssetSignType> {
764
+ from: string;
765
+ amount: string;
766
+ type: T;
767
+ }
768
+ declare function powerDownHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$1<T> & {
769
+ key: PrivateKey;
770
+ } : Payload$1<T>): Promise<unknown>;
771
+
772
+ interface Payload<T extends HiveBasedAssetSignType> {
773
+ from_account: string;
774
+ to_account: string;
775
+ percent: number;
776
+ auto_vest: boolean;
777
+ type: T;
778
+ }
779
+ declare function withdrawVestingRouteHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
780
+ key: PrivateKey;
781
+ } : Payload<T>): Promise<unknown>;
782
+
783
+ declare function useClaimRewards(username: string, onSuccess: () => void): ReturnType<typeof useBroadcastMutation<void>>;
784
+
785
+ declare enum Symbol {
786
+ HIVE = "HIVE",
787
+ HBD = "HBD",
788
+ VESTS = "VESTS",
789
+ SPK = "SPK"
790
+ }
791
+ declare enum NaiMap {
792
+ "@@000000021" = "HIVE",
793
+ "@@000000013" = "HBD",
794
+ "@@000000037" = "VESTS"
795
+ }
796
+ interface Asset {
797
+ amount: number;
798
+ symbol: Symbol;
799
+ }
800
+ declare function parseAsset(sval: string | SMTAsset): Asset;
801
+
802
+ declare function isEmptyDate(s: string | undefined): boolean;
803
+
804
+ declare function vestsToHp(vests: number, hivePerMVests: number): number;
805
+
806
+ declare function rewardSpk(data: SpkApiWallet, sstats: any): number;
807
+
808
+ interface SpkTransferPayload<T extends HiveBasedAssetSignType> {
809
+ id: string;
810
+ from: string;
811
+ to: string;
812
+ amount: string;
813
+ memo?: string;
814
+ type: T;
815
+ }
816
+ declare function transferSpk<T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkTransferPayload<T> & {
817
+ key: PrivateKey;
818
+ } : SpkTransferPayload<T>): Promise<unknown>;
819
+
820
+ interface SpkLockPayload<T extends HiveBasedAssetSignType> {
821
+ mode: "lock" | "unlock";
822
+ from: string;
823
+ amount: string;
824
+ type: T;
825
+ }
826
+ declare const lockLarynx: <T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkLockPayload<T> & {
827
+ key: PrivateKey;
828
+ } : SpkLockPayload<T>) => Promise<unknown>;
829
+
830
+ interface SpkPowerPayload<T extends HiveBasedAssetSignType> {
831
+ mode: "up" | "down";
832
+ from: string;
833
+ amount: string;
834
+ type: T;
835
+ }
836
+ declare function powerUpLarynx<T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkPowerPayload<T> & {
837
+ key: PrivateKey;
838
+ } : SpkPowerPayload<T>): Promise<unknown>;
839
+
840
+ declare function getLarynxAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
841
+ name: string;
842
+ title: string;
843
+ price: number;
844
+ accountBalance: number;
845
+ layer?: undefined;
846
+ } | {
847
+ name: string;
848
+ layer: string;
849
+ title: string;
850
+ price: number;
851
+ accountBalance: number;
852
+ }, Error, {
853
+ name: string;
854
+ title: string;
855
+ price: number;
856
+ accountBalance: number;
857
+ layer?: undefined;
858
+ } | {
859
+ name: string;
860
+ layer: string;
861
+ title: string;
862
+ price: number;
863
+ accountBalance: number;
864
+ }, string[]>, "queryFn"> & {
865
+ queryFn?: _tanstack_react_query.QueryFunction<{
866
+ name: string;
867
+ title: string;
868
+ price: number;
869
+ accountBalance: number;
870
+ layer?: undefined;
871
+ } | {
872
+ name: string;
873
+ layer: string;
874
+ title: string;
875
+ price: number;
876
+ accountBalance: number;
877
+ }, string[], never> | undefined;
878
+ } & {
879
+ queryKey: string[] & {
880
+ [dataTagSymbol]: {
881
+ name: string;
882
+ title: string;
883
+ price: number;
884
+ accountBalance: number;
885
+ layer?: undefined;
886
+ } | {
887
+ name: string;
888
+ layer: string;
889
+ title: string;
890
+ price: number;
891
+ accountBalance: number;
892
+ };
893
+ [dataTagErrorSymbol]: Error;
894
+ };
895
+ };
896
+
897
+ declare function getSpkAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
898
+ name: string;
899
+ title: string;
900
+ price: number;
901
+ accountBalance: number;
902
+ }, Error, {
903
+ name: string;
904
+ title: string;
905
+ price: number;
906
+ accountBalance: number;
907
+ }, string[]>, "queryFn"> & {
908
+ queryFn?: _tanstack_react_query.QueryFunction<{
909
+ name: string;
910
+ title: string;
911
+ price: number;
912
+ accountBalance: number;
913
+ }, string[], never> | undefined;
914
+ } & {
915
+ queryKey: string[] & {
916
+ [dataTagSymbol]: {
917
+ name: string;
918
+ title: string;
919
+ price: number;
920
+ accountBalance: number;
921
+ };
922
+ [dataTagErrorSymbol]: Error;
923
+ };
924
+ };
925
+
926
+ declare function getLarynxPowerAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
927
+ name: string;
928
+ title: string;
929
+ price: number;
930
+ accountBalance: number;
931
+ layer?: undefined;
932
+ parts?: undefined;
933
+ } | {
934
+ name: string;
935
+ title: string;
936
+ layer: string;
937
+ price: number;
938
+ accountBalance: number;
939
+ parts: {
940
+ name: string;
941
+ balance: number;
942
+ }[];
943
+ }, Error, {
944
+ name: string;
945
+ title: string;
946
+ price: number;
947
+ accountBalance: number;
948
+ layer?: undefined;
949
+ parts?: undefined;
950
+ } | {
951
+ name: string;
952
+ title: string;
953
+ layer: string;
954
+ price: number;
955
+ accountBalance: number;
956
+ parts: {
957
+ name: string;
958
+ balance: number;
959
+ }[];
960
+ }, string[]>, "queryFn"> & {
961
+ queryFn?: _tanstack_react_query.QueryFunction<{
962
+ name: string;
963
+ title: string;
964
+ price: number;
965
+ accountBalance: number;
966
+ layer?: undefined;
967
+ parts?: undefined;
968
+ } | {
969
+ name: string;
970
+ title: string;
971
+ layer: string;
972
+ price: number;
973
+ accountBalance: number;
974
+ parts: {
975
+ name: string;
976
+ balance: number;
977
+ }[];
978
+ }, string[], never> | undefined;
979
+ } & {
980
+ queryKey: string[] & {
981
+ [dataTagSymbol]: {
982
+ name: string;
983
+ title: string;
984
+ price: number;
985
+ accountBalance: number;
986
+ layer?: undefined;
987
+ parts?: undefined;
988
+ } | {
989
+ name: string;
990
+ title: string;
991
+ layer: string;
992
+ price: number;
993
+ accountBalance: number;
994
+ parts: {
995
+ name: string;
996
+ balance: number;
997
+ }[];
998
+ };
999
+ [dataTagErrorSymbol]: Error;
1000
+ };
1001
+ };
1002
+
1003
+ declare function getSpkMarketsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1004
+ list: {
1005
+ name: string;
1006
+ status: string;
1007
+ }[];
1008
+ raw: SpkMarkets;
1009
+ }, Error, {
1010
+ list: {
1011
+ name: string;
1012
+ status: string;
1013
+ }[];
1014
+ raw: SpkMarkets;
1015
+ }, string[]>, "queryFn"> & {
1016
+ queryFn?: _tanstack_react_query.QueryFunction<{
1017
+ list: {
1018
+ name: string;
1019
+ status: string;
1020
+ }[];
1021
+ raw: SpkMarkets;
1022
+ }, string[], never> | undefined;
1023
+ } & {
1024
+ queryKey: string[] & {
1025
+ [dataTagSymbol]: {
1026
+ list: {
1027
+ name: string;
1028
+ status: string;
1029
+ }[];
1030
+ raw: SpkMarkets;
1031
+ };
1032
+ [dataTagErrorSymbol]: Error;
1033
+ };
1034
+ };
1035
+
1036
+ declare function getHiveEngineTokenGeneralInfoQueryOptions(username?: string, symbol?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1037
+ name: string;
1038
+ title: string;
1039
+ price: number;
1040
+ accountBalance: number;
1041
+ layer: string;
1042
+ }, Error, {
1043
+ name: string;
1044
+ title: string;
1045
+ price: number;
1046
+ accountBalance: number;
1047
+ layer: string;
1048
+ }, (string | undefined)[]>, "queryFn"> & {
1049
+ queryFn?: _tanstack_react_query.QueryFunction<{
1050
+ name: string;
1051
+ title: string;
1052
+ price: number;
1053
+ accountBalance: number;
1054
+ layer: string;
1055
+ }, (string | undefined)[], never> | undefined;
1056
+ } & {
1057
+ queryKey: (string | undefined)[] & {
1058
+ [dataTagSymbol]: {
1059
+ name: string;
1060
+ title: string;
1061
+ price: number;
1062
+ accountBalance: number;
1063
+ layer: string;
1064
+ };
1065
+ [dataTagErrorSymbol]: Error;
1066
+ };
1067
+ };
1068
+
1069
+ interface HiveEngineMarketResponse {
1070
+ _id: number;
1071
+ symbol: string;
1072
+ volume: string;
1073
+ volumeExpiration: number;
1074
+ lastPrice: string;
1075
+ lowestAsk: string;
1076
+ highestBid: string;
1077
+ lastDayPrice: string;
1078
+ lastDayPriceExpiration: number;
1079
+ priceChangeHive: string;
1080
+ priceChangePercent: string;
1081
+ }
1082
+
1083
+ interface HiveEngineTokenMetadataResponse {
1084
+ issuer: string;
1085
+ symbol: string;
1086
+ name: string;
1087
+ metadata: string;
1088
+ precision: number;
1089
+ maxSupply: string;
1090
+ supply: string;
1091
+ circulatingSupply: string;
1092
+ stakingEnabled: boolean;
1093
+ unstakingCooldown: number;
1094
+ delegationEnabled: boolean;
1095
+ undelegationCooldown: number;
1096
+ numberTransactions: number;
1097
+ totalStaked: string;
1098
+ }
1099
+
1100
+ interface HiveEngineTokenBalance {
1101
+ account: string;
1102
+ balance: string;
1103
+ delegationsIn: string;
1104
+ delegationsOut: string;
1105
+ pendingUndelegations: string;
1106
+ pendingUnstake: string;
1107
+ stake: string;
1108
+ symbol: string;
1109
+ }
1110
+
1111
+ interface HiveEngineTransaction {
1112
+ _id: string;
1113
+ blockNumber: number;
1114
+ transactionId: string;
1115
+ timestamp: number;
1116
+ operation: string;
1117
+ from: string;
1118
+ to: string;
1119
+ symbol: string;
1120
+ quantity: string;
1121
+ memo: any;
1122
+ account: string;
1123
+ authorperm?: string;
1124
+ }
1125
+
1126
+ interface HiveEngineMetric {
1127
+ baseVolume: string;
1128
+ close: string;
1129
+ high: string;
1130
+ low: string;
1131
+ open: string;
1132
+ quoteVolume: string;
1133
+ timestamp: number;
1134
+ }
1135
+
1136
+ declare function getHiveEngineTokensMetadataQueryOptions(tokens: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenMetadataResponse[], Error, HiveEngineTokenMetadataResponse[], (string | string[])[]>, "queryFn"> & {
1137
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenMetadataResponse[], (string | string[])[], never> | undefined;
1138
+ } & {
1139
+ queryKey: (string | string[])[] & {
1140
+ [dataTagSymbol]: HiveEngineTokenMetadataResponse[];
1141
+ [dataTagErrorSymbol]: Error;
1142
+ };
1143
+ };
1144
+
1145
+ declare function getHiveEngineTokenTransactionsQueryOptions(username: string | undefined, symbol: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<HiveEngineTransaction[], Error, _tanstack_react_query.InfiniteData<HiveEngineTransaction[], unknown>, readonly unknown[], unknown>, "queryFn"> & {
1146
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTransaction[], readonly unknown[], unknown> | undefined;
1147
+ } & {
1148
+ queryKey: readonly unknown[] & {
1149
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveEngineTransaction[], unknown>;
1150
+ [dataTagErrorSymbol]: Error;
1151
+ };
1152
+ };
1153
+
1154
+ declare function getHiveEngineTokensMetricsQueryOptions(symbol: string, interval?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineMetric[], Error, HiveEngineMetric[], string[]>, "queryFn"> & {
1155
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineMetric[], string[], never> | undefined;
1156
+ } & {
1157
+ queryKey: string[] & {
1158
+ [dataTagSymbol]: HiveEngineMetric[];
1159
+ [dataTagErrorSymbol]: Error;
1160
+ };
1161
+ };
1162
+
1163
+ declare function getHiveEngineTokensMarketQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineMarketResponse[], Error, HiveEngineMarketResponse[], string[]>, "queryFn"> & {
1164
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineMarketResponse[], string[], never> | undefined;
1165
+ } & {
1166
+ queryKey: string[] & {
1167
+ [dataTagSymbol]: HiveEngineMarketResponse[];
1168
+ [dataTagErrorSymbol]: Error;
1169
+ };
1170
+ };
1171
+
1172
+ declare function getHiveEngineTokensBalancesQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenBalance[], Error, HiveEngineTokenBalance[], string[]>, "queryFn"> & {
1173
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenBalance[], string[], never> | undefined;
1174
+ } & {
1175
+ queryKey: string[] & {
1176
+ [dataTagSymbol]: HiveEngineTokenBalance[];
1177
+ [dataTagErrorSymbol]: Error;
1178
+ };
1179
+ };
1180
+
1181
+ interface DelegateEnginePayload<T extends HiveBasedAssetSignType> {
1182
+ from: string;
1183
+ to: string;
1184
+ amount: string;
1185
+ asset: string;
1186
+ type: T;
1187
+ }
1188
+ declare function delegateEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? DelegateEnginePayload<T> & {
1189
+ key: PrivateKey;
1190
+ } : DelegateEnginePayload<T>): Promise<unknown>;
1191
+
1192
+ interface UndelegateEnginePayload<T extends HiveBasedAssetSignType> {
1193
+ from: string;
1194
+ to: string;
1195
+ amount: string;
1196
+ asset: string;
1197
+ type: T;
1198
+ }
1199
+ declare function undelegateEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? UndelegateEnginePayload<T> & {
1200
+ key: PrivateKey;
1201
+ } : UndelegateEnginePayload<T>): Promise<unknown>;
1202
+
1203
+ interface StakeEnginePayload<T extends HiveBasedAssetSignType> {
1204
+ from: string;
1205
+ to: string;
1206
+ amount: string;
1207
+ asset: string;
1208
+ type: T;
1209
+ }
1210
+ declare function stakeEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? StakeEnginePayload<T> & {
1211
+ key: PrivateKey;
1212
+ } : StakeEnginePayload<T>): Promise<unknown>;
1213
+
1214
+ interface UnstakeEnginePayload<T extends HiveBasedAssetSignType> {
1215
+ from: string;
1216
+ to: string;
1217
+ amount: string;
1218
+ asset: string;
1219
+ type: T;
1220
+ }
1221
+ declare function unstakeEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? UnstakeEnginePayload<T> & {
1222
+ key: PrivateKey;
1223
+ } : UnstakeEnginePayload<T>): Promise<unknown>;
1224
+
1225
+ interface TransferEnginePayload<T extends HiveBasedAssetSignType> {
1226
+ from: string;
1227
+ to: string;
1228
+ amount: string;
1229
+ memo: string;
1230
+ asset: string;
1231
+ type: T;
1232
+ }
1233
+ declare function transferEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? TransferEnginePayload<T> & {
1234
+ key: PrivateKey;
1235
+ } : TransferEnginePayload<T>): Promise<unknown>;
1236
+
1237
+ declare function useClaimPoints(username: string | undefined, onSuccess?: () => void, onError?: Parameters<typeof useMutation>["0"]["onError"]): _tanstack_react_query.UseMutationResult<Response, unknown, unknown, unknown>;
1238
+
1239
+ type PointsSignType = "key" | "keychain" | "hivesigner";
1240
+ interface PointsTransferPayloadBase {
1241
+ from: string;
1242
+ to: string;
1243
+ amount: string;
1244
+ memo: string;
1245
+ type: PointsSignType;
1246
+ }
1247
+ type PointsTransferPayload<T extends PointsSignType> = T extends "key" ? PointsTransferPayloadBase & {
1248
+ key: PrivateKey;
1249
+ } : PointsTransferPayloadBase;
1250
+ declare function transferPoint<T extends PointsSignType>({ from, to, amount, memo, type, ...payload }: PointsTransferPayload<T>): Promise<unknown>;
1251
+
1252
+ declare function getPointsQueryOptions(username?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1253
+ readonly points: any;
1254
+ readonly uPoints: any;
1255
+ }, Error, {
1256
+ readonly points: any;
1257
+ readonly uPoints: any;
1258
+ }, (string | undefined)[]>, "queryFn"> & {
1259
+ queryFn?: _tanstack_react_query.QueryFunction<{
1260
+ readonly points: any;
1261
+ readonly uPoints: any;
1262
+ }, (string | undefined)[], never> | undefined;
1263
+ } & {
1264
+ queryKey: (string | undefined)[] & {
1265
+ [dataTagSymbol]: {
1266
+ readonly points: any;
1267
+ readonly uPoints: any;
1268
+ };
1269
+ [dataTagErrorSymbol]: Error;
1270
+ };
1271
+ };
1272
+
1273
+ declare function getPointsAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1274
+ name: string;
1275
+ title: string;
1276
+ price: number;
1277
+ accountBalance: number;
1278
+ }, Error, {
1279
+ name: string;
1280
+ title: string;
1281
+ price: number;
1282
+ accountBalance: number;
1283
+ }, string[]>, "queryFn"> & {
1284
+ queryFn?: _tanstack_react_query.QueryFunction<{
1285
+ name: string;
1286
+ title: string;
1287
+ price: number;
1288
+ accountBalance: number;
1289
+ }, string[], never> | undefined;
1290
+ } & {
1291
+ queryKey: string[] & {
1292
+ [dataTagSymbol]: {
1293
+ name: string;
1294
+ title: string;
1295
+ price: number;
1296
+ accountBalance: number;
1297
+ };
1298
+ [dataTagErrorSymbol]: Error;
1299
+ };
1300
+ };
1301
+
1302
+ interface PointsResponse {
1303
+ points: string;
1304
+ unclaimed_points: string;
1305
+ }
1306
+
1307
+ interface Points {
1308
+ points: string;
1309
+ uPoints: string;
1310
+ }
1311
+
1312
+ declare enum PointTransactionType {
1313
+ CHECKIN = 10,
1314
+ LOGIN = 20,
1315
+ CHECKIN_EXTRA = 30,
1316
+ POST = 100,
1317
+ COMMENT = 110,
1318
+ VOTE = 120,
1319
+ REBLOG = 130,
1320
+ DELEGATION = 150,
1321
+ REFERRAL = 160,
1322
+ COMMUNITY = 170,
1323
+ TRANSFER_SENT = 998,
1324
+ TRANSFER_INCOMING = 999,
1325
+ MINTED = 991
1326
+ }
1327
+
1328
+ interface PointTransaction {
1329
+ id: number;
1330
+ type: PointTransactionType;
1331
+ created: string;
1332
+ memo: string | null;
1333
+ amount: string;
1334
+ sender: string | null;
1335
+ receiver: string | null;
1336
+ }
1337
+
1338
+ declare function getPointsAssetTransactionsQueryOptions(username: string | undefined, type?: PointTransactionType): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1339
+ created: Date;
1340
+ type: PointTransactionType;
1341
+ results: {
1342
+ amount: number;
1343
+ asset: string;
1344
+ }[];
1345
+ id: number;
1346
+ }[], Error, {
1347
+ created: Date;
1348
+ type: PointTransactionType;
1349
+ results: {
1350
+ amount: number;
1351
+ asset: string;
1352
+ }[];
1353
+ id: number;
1354
+ }[], (string | PointTransactionType | undefined)[]>, "queryFn"> & {
1355
+ queryFn?: _tanstack_react_query.QueryFunction<{
1356
+ created: Date;
1357
+ type: PointTransactionType;
1358
+ results: {
1359
+ amount: number;
1360
+ asset: string;
1361
+ }[];
1362
+ id: number;
1363
+ }[], (string | PointTransactionType | undefined)[], never> | undefined;
1364
+ } & {
1365
+ queryKey: (string | PointTransactionType | undefined)[] & {
1366
+ [dataTagSymbol]: {
1367
+ created: Date;
1368
+ type: PointTransactionType;
1369
+ results: {
1370
+ amount: number;
1371
+ asset: string;
1372
+ }[];
1373
+ id: number;
1374
+ }[];
1375
+ [dataTagErrorSymbol]: Error;
1376
+ };
1377
+ };
1378
+
1379
+ declare function useWalletOperation(username: string, asset: string, operation: AssetOperation): _tanstack_react_query.UseMutationResult<any, Error, Record<string, unknown>, unknown>;
1380
+
1381
+ interface ExternalWalletBalance {
1382
+ chain: string;
1383
+ unit: string;
1384
+ raw?: unknown;
1385
+ nodeId?: string;
1386
+ /**
1387
+ * Balance represented as a BigInt for convenience.
1388
+ */
1389
+ balanceBigInt: bigint;
1390
+ /**
1391
+ * Balance returned as a string to preserve precision for UIs that cannot
1392
+ * handle bigint values directly.
1393
+ */
1394
+ balanceString: string;
1395
+ }
1396
+ declare function useGetExternalWalletBalanceQuery(currency: EcencyWalletCurrency, address: string): _tanstack_react_query.UseQueryResult<ExternalWalletBalance, Error>;
1397
+
1398
+ declare function useSeedPhrase(username: string): _tanstack_react_query.UseQueryResult<string, Error>;
1399
+
1400
+ declare function getCoinGeckoPriceQueryOptions(currency?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<number, Error, number, (string | undefined)[]>, "queryFn"> & {
1401
+ queryFn?: _tanstack_react_query.QueryFunction<number, (string | undefined)[], never> | undefined;
1402
+ } & {
1403
+ queryKey: (string | undefined)[] & {
1404
+ [dataTagSymbol]: number;
1405
+ [dataTagErrorSymbol]: Error;
1406
+ };
1407
+ };
1408
+
1409
+ declare function useHiveKeysQuery(username: string): _tanstack_react_query.UseQueryResult<EcencyHiveKeys, Error>;
1410
+
1411
+ declare function getAllTokensListQueryOptions(query: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1412
+ basic: EcencyWalletBasicTokens[];
1413
+ external: EcencyWalletCurrency[];
1414
+ spk: string[];
1415
+ layer2: HiveEngineTokenMetadataResponse[] | undefined;
1416
+ }, Error, {
1417
+ basic: EcencyWalletBasicTokens[];
1418
+ external: EcencyWalletCurrency[];
1419
+ spk: string[];
1420
+ layer2: HiveEngineTokenMetadataResponse[] | undefined;
1421
+ }, string[]>, "queryFn"> & {
1422
+ queryFn?: _tanstack_react_query.QueryFunction<{
1423
+ basic: EcencyWalletBasicTokens[];
1424
+ external: EcencyWalletCurrency[];
1425
+ spk: string[];
1426
+ layer2: HiveEngineTokenMetadataResponse[] | undefined;
1427
+ }, string[], never> | undefined;
1428
+ } & {
1429
+ queryKey: string[] & {
1430
+ [dataTagSymbol]: {
1431
+ basic: EcencyWalletBasicTokens[];
1432
+ external: EcencyWalletCurrency[];
1433
+ spk: string[];
1434
+ layer2: HiveEngineTokenMetadataResponse[] | undefined;
1435
+ };
1436
+ [dataTagErrorSymbol]: Error;
1437
+ };
1438
+ };
1439
+
1440
+ declare function getAccountWalletListQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], string[]>, "queryFn"> & {
1441
+ queryFn?: _tanstack_react_query.QueryFunction<string[], string[], never> | undefined;
1442
+ } & {
1443
+ queryKey: string[] & {
1444
+ [dataTagSymbol]: string[];
1445
+ [dataTagErrorSymbol]: Error;
1446
+ };
1447
+ };
1448
+
1449
+ interface Options {
1450
+ refetch: boolean;
1451
+ }
1452
+ declare function getAccountWalletAssetInfoQueryOptions(username: string, asset: string, options?: Options): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GeneralAssetInfo | undefined, Error, GeneralAssetInfo | undefined, string[]>, "queryFn"> & {
1453
+ queryFn?: _tanstack_react_query.QueryFunction<GeneralAssetInfo | undefined, string[], never> | undefined;
1454
+ } & {
1455
+ queryKey: string[] & {
1456
+ [dataTagSymbol]: GeneralAssetInfo | undefined;
1457
+ [dataTagErrorSymbol]: Error;
1458
+ };
1459
+ };
1460
+
1461
+ declare function getTokenOperationsQueryOptions(token: string, username: string, isForOwner?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AssetOperation[], Error, AssetOperation[], (string | boolean)[]>, "queryFn"> & {
1462
+ queryFn?: _tanstack_react_query.QueryFunction<AssetOperation[], (string | boolean)[], never> | undefined;
1463
+ } & {
1464
+ queryKey: (string | boolean)[] & {
1465
+ [dataTagSymbol]: AssetOperation[];
1466
+ [dataTagErrorSymbol]: Error;
1467
+ };
1468
+ };
1469
+
1470
+ declare function delay(ms: number): Promise<unknown>;
1471
+
1472
+ declare function getWallet(currency: EcencyWalletCurrency): BaseWallet | undefined;
1473
+
1474
+ declare function mnemonicToSeedBip39(value: string): string;
1475
+
1476
+ type HiveRole = "owner" | "active" | "posting" | "memo";
1477
+ declare function deriveHiveKey(mnemonic: string, role: HiveRole, accountIndex?: number): {
1478
+ readonly privateKey: string;
1479
+ readonly publicKey: string;
1480
+ };
1481
+ declare function deriveHiveKeys(mnemonic: string, accountIndex?: number): {
1482
+ readonly owner: string;
1483
+ readonly active: string;
1484
+ readonly posting: string;
1485
+ readonly memo: string;
1486
+ readonly ownerPubkey: string;
1487
+ readonly activePubkey: string;
1488
+ readonly postingPubkey: string;
1489
+ readonly memoPubkey: string;
1490
+ };
1491
+
1492
+ declare function deriveHiveMasterPasswordKey(username: string, masterPassword: string, role: HiveRole): {
1493
+ readonly privateKey: string;
1494
+ readonly publicKey: string;
1495
+ };
1496
+ declare function deriveHiveMasterPasswordKeys(username: string, masterPassword: string): {
1497
+ readonly owner: string;
1498
+ readonly active: string;
1499
+ readonly posting: string;
1500
+ readonly memo: string;
1501
+ readonly ownerPubkey: string;
1502
+ readonly activePubkey: string;
1503
+ readonly postingPubkey: string;
1504
+ readonly memoPubkey: string;
1505
+ };
1506
+
1507
+ type HiveKeyDerivation = "bip44" | "master-password" | "unknown";
1508
+ declare function detectHiveKeyDerivation(username: string, seed: string, type?: "active" | "owner"): Promise<HiveKeyDerivation>;
1509
+
1510
+ /**
1511
+ * Sign a digest using the provided private key.
1512
+ * @param digest Digest as a Buffer or hex string.
1513
+ * @param privateKey Private key in WIF format.
1514
+ * @returns Hex encoded signature string.
1515
+ */
1516
+ declare function signDigest(digest: Buffer | string, privateKey: string): string;
1517
+
1518
+ /**
1519
+ * Sign a transaction with the given private key.
1520
+ * Optionally a custom chain id can be provided.
1521
+ *
1522
+ * @param tx Transaction to sign.
1523
+ * @param privateKey Private key in WIF format.
1524
+ * @param chainId Optional chain id as a hex string.
1525
+ * @returns Signed transaction including the signature.
1526
+ */
1527
+ declare function signTx(tx: Transaction, privateKey: string, chainId?: string): SignedTransaction;
1528
+ /**
1529
+ * Sign a transaction and broadcast it to the network.
1530
+ * Optionally a custom chain id can be provided.
1531
+ *
1532
+ * @param client Hive client instance used for broadcasting.
1533
+ * @param tx Transaction to sign.
1534
+ * @param privateKey Private key in WIF format.
1535
+ * @param chainId Optional chain id as a hex string.
1536
+ * @returns Broadcast confirmation.
1537
+ */
1538
+ declare function signTxAndBroadcast(client: Client, tx: Transaction, privateKey: string, chainId?: string): Promise<TransactionConfirmation>;
1539
+
1540
+ /**
1541
+ * Encrypt a memo using explicit keys.
1542
+ * @param privateKey Sender's private memo key in WIF format.
1543
+ * @param publicKey Recipient's public memo key.
1544
+ * @param memo Memo text to encrypt.
1545
+ */
1546
+ declare function encryptMemoWithKeys(privateKey: string, publicKey: string, memo: string): string;
1547
+ /**
1548
+ * Encrypt a memo by looking up the recipient's memo key from the blockchain.
1549
+ * @param client Hive client instance used to fetch account information.
1550
+ * @param fromPrivateKey Sender's private memo key.
1551
+ * @param toAccount Recipient account name.
1552
+ * @param memo Memo text to encrypt.
1553
+ */
1554
+ declare function encryptMemoWithAccounts(client: Client, fromPrivateKey: string, toAccount: string, memo: string): Promise<string>;
1555
+
1556
+ /**
1557
+ * Decrypt an encrypted memo using the recipient's private key.
1558
+ * @param privateKey Private memo key in WIF format.
1559
+ * @param memo Encrypted memo string.
1560
+ */
1561
+ declare function decryptMemoWithKeys(privateKey: string, memo: string): string;
1562
+ /**
1563
+ * Decrypt a memo using account information.
1564
+ * This is an alias of {@link decryptMemoWithKeys} and provided for
1565
+ * API symmetry with {@link encryptMemoWithAccounts}.
1566
+ */
1567
+ declare const decryptMemoWithAccounts: typeof decryptMemoWithKeys;
1568
+
1569
+ /**
1570
+ * Sign a transaction for an external chain supported by okxweb3 wallets.
1571
+ *
1572
+ * @param currency Chain identifier.
1573
+ * @param params Signing parameters accepted by okxweb3 wallets.
1574
+ */
1575
+ declare function signExternalTx(currency: EcencyWalletCurrency, params: SignTxParams): Promise<any>;
1576
+ /**
1577
+ * Sign and broadcast a transaction for an external chain. The transaction is
1578
+ * signed locally and then sent to a public RPC endpoint for broadcasting.
1579
+ *
1580
+ * @param currency Chain identifier.
1581
+ * @param params Signing parameters accepted by okxweb3 wallets.
1582
+ * @returns RPC response or broadcasted transaction hash.
1583
+ */
1584
+ declare function signExternalTxAndBroadcast(currency: EcencyWalletCurrency, params: SignTxParams): Promise<any>;
1585
+
1586
+ /**
1587
+ * Union type covering all chain-specific build parameters.
1588
+ */
1589
+ type ExternalTxParams = utxoTx | EthTxParams | SolSignParam | TrxSignParam | TxData | AptosParam;
1590
+ /**
1591
+ * Build a Bitcoin PSBT from UTXO inputs and desired outputs.
1592
+ *
1593
+ * @param tx Transaction description accepted by @okxweb3/coin-bitcoin.
1594
+ * @returns Hex encoded PSBT ready for signing.
1595
+ */
1596
+ declare function buildPsbt(tx: utxoTx, network?: Network, maximumFeeRate?: number): string;
1597
+ /**
1598
+ * Helper returning raw Ethereum transaction data ready for signing.
1599
+ *
1600
+ * The returned object can be passed directly to signExternalTx.
1601
+ */
1602
+ declare function buildEthTx(data: EthTxParams): EthTxParams;
1603
+ /**
1604
+ * Helper returning Solana transaction params used by signExternalTx.
1605
+ */
1606
+ declare function buildSolTx(data: SolSignParam): SolSignParam;
1607
+ /**
1608
+ * Helper returning Tron transaction params used by signExternalTx.
1609
+ */
1610
+ declare function buildTronTx(data: TrxSignParam): TrxSignParam;
1611
+ /**
1612
+ * Helper returning TON transaction params used by signExternalTx.
1613
+ */
1614
+ declare function buildTonTx(data: TxData): TxData;
1615
+ /**
1616
+ * Helper returning Aptos transaction params used by signExternalTx.
1617
+ */
1618
+ declare function buildAptTx(data: AptosParam): AptosParam;
1619
+ /**
1620
+ * Build a transaction for an external chain supported by okxweb3 wallets.
1621
+ *
1622
+ * @param currency Chain identifier.
1623
+ * @param tx Chain specific transaction description.
1624
+ */
1625
+ declare function buildExternalTx(currency: EcencyWalletCurrency, tx: ExternalTxParams): string | EthTxParams | SolSignParam | TrxSignParam | TxData | AptosParam;
1626
+
1627
+ export { type AccountPointsResponse, type Asset, AssetOperation, type DelegateEnginePayload, type EcencyHiveKeys, type EcencyTokenMetadata, EcencyWalletBasicTokens, EcencyWalletCurrency, index as EcencyWalletsPrivateApi, type ExternalTxParams, type ExternalWalletBalance, type GeneralAssetInfo, type GeneralAssetTransaction, type HiveBasedAssetSignType, type HiveEngineMarketResponse, type HiveEngineMetric, type HiveEngineTokenBalance, type HiveEngineTokenMetadataResponse, type HiveEngineTransaction, type HiveKeyDerivation, type HiveRole, NaiMap, type PointTransaction, PointTransactionType, type Points, type PointsResponse, type SpkApiWallet, type SpkMarkets, type StakeEnginePayload, Symbol, type TransferEnginePayload, type TransferPayload, type TransformedSpkMarkets, type UndelegateEnginePayload, type UnstakeEnginePayload, buildAptTx, buildEthTx, buildExternalTx, buildPsbt, buildSolTx, buildTonTx, buildTronTx, decryptMemoWithAccounts, decryptMemoWithKeys, delay, delegateEngineToken, delegateHive, deriveHiveKey, deriveHiveKeys, deriveHiveMasterPasswordKey, deriveHiveMasterPasswordKeys, detectHiveKeyDerivation, encryptMemoWithAccounts, encryptMemoWithKeys, getAccountWalletAssetInfoQueryOptions, getAccountWalletListQueryOptions, getAllTokensListQueryOptions, getCoinGeckoPriceQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarketsQueryOptions, getTokenOperationsQueryOptions, getWallet, isEmptyDate, lockLarynx, mnemonicToSeedBip39, parseAsset, powerDownHive, powerUpHive, powerUpLarynx, rewardSpk, signDigest, signExternalTx, signExternalTxAndBroadcast, signTx, signTxAndBroadcast, stakeEngineToken, transferEngineToken, transferHive, transferPoint, transferSpk, transferToSavingsHive, undelegateEngineToken, unstakeEngineToken, useClaimPoints, useClaimRewards, useGetExternalWalletBalanceQuery, useHiveKeysQuery, useImportWallet, useSaveWalletInformationToMetadata, useSeedPhrase, useWalletCreate, useWalletOperation, vestsToHp, withdrawVestingRouteHive };