@ecency/wallets 1.5.29 → 1.5.31
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/browser/index.d.ts +15 -1650
- package/dist/browser/index.js +60 -3055
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +312 -3217
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +60 -3053
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { UseMutationOptions
|
|
3
|
-
import { AuthContext,
|
|
4
|
-
export {
|
|
2
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
+
import { AuthContext, HiveEngineTokenMetadataResponse, AssetOperation } from '@ecency/sdk';
|
|
4
|
+
export { Asset, AssetOperation, AuthorReward, CancelTransferFromSavings, ClaimRewardBalance, CollateralizedConvert, CommentBenefactor, CommentPayoutUpdate, CommentReward, CurationReward, DelegateVestingShares, DelegatedVestingShare, EffectiveCommentVote, FillCollateralizedConvertRequest, FillConvertRequest, FillOrder, FillRecurrentTransfers, FillVestingWithdraw, GeneralAssetInfo, GeneralAssetTransaction, HIVE_ACCOUNT_OPERATION_GROUPS, HIVE_OPERATION_LIST, HIVE_OPERATION_NAME_BY_ID, HIVE_OPERATION_ORDERS, HiveBasedAssetSignType, HiveEngineMarketResponse, HiveEngineMetric, HiveEngineOpenOrder, HiveEngineOrderBookEntry, HiveEngineToken, HiveEngineTokenBalance, HiveEngineTokenInfo, HiveEngineTokenMetadataResponse, HiveEngineTokenStatus, HiveEngineTransaction, HiveMarketMetric, HiveOperationFilter, HiveOperationFilterKey, HiveOperationFilterValue, HiveOperationGroup, HiveOperationName, HiveTransaction, WithdrawRoute as HiveWithdrawRoute, Interest, LimitOrderCancel, LimitOrderCreate, NaiMap, PointTransaction, PointTransactionType, Points, PointsResponse, ProducerReward, ProposalPay, ReceivedVestingShare, RecurrentTransfers, ReturnVestingDelegation, SetWithdrawRoute, SpkApiWallet, SpkMarkets, Symbol, Token, TokenMetadata, Transfer, TransferToSavings, TransferToVesting, TransformedSpkMarkets, UpdateProposalVotes, VoteProxy, WalletOperationPayload, WithdrawVesting, formattedNumber, getAccountWalletAssetInfoQueryOptions, getAllHiveEngineTokensQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineBalancesWithUsdQueryOptions, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHiveEngineUnclaimedRewardsQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarketsQueryOptions, getSpkWalletQueryOptions, isEmptyDate, parseAsset, resolveHiveOperationFilters, rewardSpk, useClaimPoints, useWalletOperation, vestsToHp } from '@ecency/sdk';
|
|
5
5
|
import { BaseWallet, SignTxParams } from '@okxweb3/coin-base';
|
|
6
|
-
import {
|
|
7
|
-
import { Transaction, SignedTransaction, TransactionConfirmation
|
|
6
|
+
import { Client } from '@hiveio/dhive';
|
|
7
|
+
import { Transaction, SignedTransaction, TransactionConfirmation } from '@hiveio/dhive/lib/chain/transaction';
|
|
8
8
|
import { utxoTx } from '@okxweb3/coin-bitcoin/dist/type';
|
|
9
9
|
import { Network } from '@okxweb3/coin-bitcoin/dist/bitcoinjs-lib';
|
|
10
10
|
import { EthTxParams } from '@okxweb3/coin-ethereum/dist/EthWallet';
|
|
@@ -72,19 +72,19 @@ declare function useWalletCreate(username: string, currency: EcencyWalletCurrenc
|
|
|
72
72
|
importWallet: () => void;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
interface Payload$
|
|
75
|
+
interface Payload$3 {
|
|
76
76
|
currency: string;
|
|
77
77
|
address: string;
|
|
78
78
|
}
|
|
79
|
-
declare function useCreateAccountWithWallets(username: string): _tanstack_react_query.UseMutationResult<Response, Error, Payload$
|
|
79
|
+
declare function useCreateAccountWithWallets(username: string): _tanstack_react_query.UseMutationResult<Response, Error, Payload$3, unknown>;
|
|
80
80
|
|
|
81
|
-
interface Payload$
|
|
81
|
+
interface Payload$2 {
|
|
82
82
|
address: string;
|
|
83
83
|
currency: EcencyWalletCurrency;
|
|
84
84
|
}
|
|
85
|
-
declare function useCheckWalletExistence(): _tanstack_react_query.UseMutationResult<boolean, Error, Payload$
|
|
85
|
+
declare function useCheckWalletExistence(): _tanstack_react_query.UseMutationResult<boolean, Error, Payload$2, unknown>;
|
|
86
86
|
|
|
87
|
-
interface Payload$
|
|
87
|
+
interface Payload$1 {
|
|
88
88
|
tokens: Record<string, string>;
|
|
89
89
|
hiveKeys: {
|
|
90
90
|
ownerPublicKey: string;
|
|
@@ -93,7 +93,7 @@ interface Payload$7 {
|
|
|
93
93
|
memoPublicKey: string;
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
declare function useUpdateAccountWithWallets(username: string, accessToken: string | undefined): _tanstack_react_query.UseMutationResult<Response, Error, Payload$
|
|
96
|
+
declare function useUpdateAccountWithWallets(username: string, accessToken: string | undefined): _tanstack_react_query.UseMutationResult<Response, Error, Payload$1, unknown>;
|
|
97
97
|
|
|
98
98
|
declare const index_useCheckWalletExistence: typeof useCheckWalletExistence;
|
|
99
99
|
declare const index_useCreateAccountWithWallets: typeof useCreateAccountWithWallets;
|
|
@@ -102,7 +102,7 @@ declare namespace index {
|
|
|
102
102
|
export { index_useCheckWalletExistence as useCheckWalletExistence, index_useCreateAccountWithWallets as useCreateAccountWithWallets, index_useUpdateAccountWithWallets as useUpdateAccountWithWallets };
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
interface Payload
|
|
105
|
+
interface Payload {
|
|
106
106
|
privateKeyOrSeed: string;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
@@ -114,7 +114,7 @@ declare function useImportWallet(username: string, currency: EcencyWalletCurrenc
|
|
|
114
114
|
privateKey: string;
|
|
115
115
|
address: any;
|
|
116
116
|
publicKey: string;
|
|
117
|
-
}, Error, Payload
|
|
117
|
+
}, Error, Payload, unknown>;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* Saving of token(s) metadata to Hive profile
|
|
@@ -125,1613 +125,6 @@ declare function useImportWallet(username: string, currency: EcencyWalletCurrenc
|
|
|
125
125
|
type SaveWalletInformationOptions = Pick<UseMutationOptions<unknown, Error, EcencyTokenMetadata[]>, "onSuccess" | "onError">;
|
|
126
126
|
declare function useSaveWalletInformationToMetadata(username: string, auth?: AuthContext, options?: SaveWalletInformationOptions): _tanstack_react_query.UseMutationResult<unknown, Error, EcencyTokenMetadata[], unknown>;
|
|
127
127
|
|
|
128
|
-
declare function getHiveAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
129
|
-
name: string;
|
|
130
|
-
title: string;
|
|
131
|
-
price: number;
|
|
132
|
-
accountBalance: number;
|
|
133
|
-
parts?: undefined;
|
|
134
|
-
} | {
|
|
135
|
-
name: string;
|
|
136
|
-
title: string;
|
|
137
|
-
price: number;
|
|
138
|
-
accountBalance: number;
|
|
139
|
-
parts: {
|
|
140
|
-
name: string;
|
|
141
|
-
balance: number;
|
|
142
|
-
}[];
|
|
143
|
-
}, Error, {
|
|
144
|
-
name: string;
|
|
145
|
-
title: string;
|
|
146
|
-
price: number;
|
|
147
|
-
accountBalance: number;
|
|
148
|
-
parts?: undefined;
|
|
149
|
-
} | {
|
|
150
|
-
name: string;
|
|
151
|
-
title: string;
|
|
152
|
-
price: number;
|
|
153
|
-
accountBalance: number;
|
|
154
|
-
parts: {
|
|
155
|
-
name: string;
|
|
156
|
-
balance: number;
|
|
157
|
-
}[];
|
|
158
|
-
}, string[]>, "queryFn"> & {
|
|
159
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
160
|
-
name: string;
|
|
161
|
-
title: string;
|
|
162
|
-
price: number;
|
|
163
|
-
accountBalance: number;
|
|
164
|
-
parts?: undefined;
|
|
165
|
-
} | {
|
|
166
|
-
name: string;
|
|
167
|
-
title: string;
|
|
168
|
-
price: number;
|
|
169
|
-
accountBalance: number;
|
|
170
|
-
parts: {
|
|
171
|
-
name: string;
|
|
172
|
-
balance: number;
|
|
173
|
-
}[];
|
|
174
|
-
}, string[], never> | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
queryKey: string[] & {
|
|
177
|
-
[dataTagSymbol]: {
|
|
178
|
-
name: string;
|
|
179
|
-
title: string;
|
|
180
|
-
price: number;
|
|
181
|
-
accountBalance: number;
|
|
182
|
-
parts?: undefined;
|
|
183
|
-
} | {
|
|
184
|
-
name: string;
|
|
185
|
-
title: string;
|
|
186
|
-
price: number;
|
|
187
|
-
accountBalance: number;
|
|
188
|
-
parts: {
|
|
189
|
-
name: string;
|
|
190
|
-
balance: number;
|
|
191
|
-
}[];
|
|
192
|
-
};
|
|
193
|
-
[dataTagErrorSymbol]: Error;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
declare function getHivePowerAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
198
|
-
name: string;
|
|
199
|
-
title: string;
|
|
200
|
-
price: number;
|
|
201
|
-
accountBalance: number;
|
|
202
|
-
apr?: undefined;
|
|
203
|
-
parts?: undefined;
|
|
204
|
-
} | {
|
|
205
|
-
name: string;
|
|
206
|
-
title: string;
|
|
207
|
-
price: number;
|
|
208
|
-
accountBalance: number;
|
|
209
|
-
apr: string;
|
|
210
|
-
parts: {
|
|
211
|
-
name: string;
|
|
212
|
-
balance: number;
|
|
213
|
-
}[];
|
|
214
|
-
}, Error, {
|
|
215
|
-
name: string;
|
|
216
|
-
title: string;
|
|
217
|
-
price: number;
|
|
218
|
-
accountBalance: number;
|
|
219
|
-
apr?: undefined;
|
|
220
|
-
parts?: undefined;
|
|
221
|
-
} | {
|
|
222
|
-
name: string;
|
|
223
|
-
title: string;
|
|
224
|
-
price: number;
|
|
225
|
-
accountBalance: number;
|
|
226
|
-
apr: string;
|
|
227
|
-
parts: {
|
|
228
|
-
name: string;
|
|
229
|
-
balance: number;
|
|
230
|
-
}[];
|
|
231
|
-
}, string[]>, "queryFn"> & {
|
|
232
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
233
|
-
name: string;
|
|
234
|
-
title: string;
|
|
235
|
-
price: number;
|
|
236
|
-
accountBalance: number;
|
|
237
|
-
apr?: undefined;
|
|
238
|
-
parts?: undefined;
|
|
239
|
-
} | {
|
|
240
|
-
name: string;
|
|
241
|
-
title: string;
|
|
242
|
-
price: number;
|
|
243
|
-
accountBalance: number;
|
|
244
|
-
apr: string;
|
|
245
|
-
parts: {
|
|
246
|
-
name: string;
|
|
247
|
-
balance: number;
|
|
248
|
-
}[];
|
|
249
|
-
}, string[], never> | undefined;
|
|
250
|
-
} & {
|
|
251
|
-
queryKey: string[] & {
|
|
252
|
-
[dataTagSymbol]: {
|
|
253
|
-
name: string;
|
|
254
|
-
title: string;
|
|
255
|
-
price: number;
|
|
256
|
-
accountBalance: number;
|
|
257
|
-
apr?: undefined;
|
|
258
|
-
parts?: undefined;
|
|
259
|
-
} | {
|
|
260
|
-
name: string;
|
|
261
|
-
title: string;
|
|
262
|
-
price: number;
|
|
263
|
-
accountBalance: number;
|
|
264
|
-
apr: string;
|
|
265
|
-
parts: {
|
|
266
|
-
name: string;
|
|
267
|
-
balance: number;
|
|
268
|
-
}[];
|
|
269
|
-
};
|
|
270
|
-
[dataTagErrorSymbol]: Error;
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
declare function getHbdAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
275
|
-
name: string;
|
|
276
|
-
title: string;
|
|
277
|
-
price: number;
|
|
278
|
-
accountBalance: number;
|
|
279
|
-
apr?: undefined;
|
|
280
|
-
parts?: undefined;
|
|
281
|
-
} | {
|
|
282
|
-
name: string;
|
|
283
|
-
title: string;
|
|
284
|
-
price: number;
|
|
285
|
-
accountBalance: number;
|
|
286
|
-
apr: string;
|
|
287
|
-
parts: {
|
|
288
|
-
name: string;
|
|
289
|
-
balance: number;
|
|
290
|
-
}[];
|
|
291
|
-
}, Error, {
|
|
292
|
-
name: string;
|
|
293
|
-
title: string;
|
|
294
|
-
price: number;
|
|
295
|
-
accountBalance: number;
|
|
296
|
-
apr?: undefined;
|
|
297
|
-
parts?: undefined;
|
|
298
|
-
} | {
|
|
299
|
-
name: string;
|
|
300
|
-
title: string;
|
|
301
|
-
price: number;
|
|
302
|
-
accountBalance: number;
|
|
303
|
-
apr: string;
|
|
304
|
-
parts: {
|
|
305
|
-
name: string;
|
|
306
|
-
balance: number;
|
|
307
|
-
}[];
|
|
308
|
-
}, string[]>, "queryFn"> & {
|
|
309
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
310
|
-
name: string;
|
|
311
|
-
title: string;
|
|
312
|
-
price: number;
|
|
313
|
-
accountBalance: number;
|
|
314
|
-
apr?: undefined;
|
|
315
|
-
parts?: undefined;
|
|
316
|
-
} | {
|
|
317
|
-
name: string;
|
|
318
|
-
title: string;
|
|
319
|
-
price: number;
|
|
320
|
-
accountBalance: number;
|
|
321
|
-
apr: string;
|
|
322
|
-
parts: {
|
|
323
|
-
name: string;
|
|
324
|
-
balance: number;
|
|
325
|
-
}[];
|
|
326
|
-
}, string[], never> | undefined;
|
|
327
|
-
} & {
|
|
328
|
-
queryKey: string[] & {
|
|
329
|
-
[dataTagSymbol]: {
|
|
330
|
-
name: string;
|
|
331
|
-
title: string;
|
|
332
|
-
price: number;
|
|
333
|
-
accountBalance: number;
|
|
334
|
-
apr?: undefined;
|
|
335
|
-
parts?: undefined;
|
|
336
|
-
} | {
|
|
337
|
-
name: string;
|
|
338
|
-
title: string;
|
|
339
|
-
price: number;
|
|
340
|
-
accountBalance: number;
|
|
341
|
-
apr: string;
|
|
342
|
-
parts: {
|
|
343
|
-
name: string;
|
|
344
|
-
balance: number;
|
|
345
|
-
}[];
|
|
346
|
-
};
|
|
347
|
-
[dataTagErrorSymbol]: Error;
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
type HiveOperationGroup = "" | "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
|
|
352
|
-
|
|
353
|
-
type HiveOperationName = OperationName | VirtualOperationName;
|
|
354
|
-
type HiveOperationFilterValue = HiveOperationGroup | HiveOperationName;
|
|
355
|
-
type HiveOperationFilter = HiveOperationFilterValue | HiveOperationFilterValue[];
|
|
356
|
-
type HiveOperationFilterKey = string;
|
|
357
|
-
|
|
358
|
-
interface BaseTransaction {
|
|
359
|
-
num: number;
|
|
360
|
-
type: string;
|
|
361
|
-
timestamp: string;
|
|
362
|
-
trx_id: string;
|
|
363
|
-
}
|
|
364
|
-
interface CurationReward extends BaseTransaction {
|
|
365
|
-
type: "curation_reward";
|
|
366
|
-
comment_author?: string;
|
|
367
|
-
comment_permlink?: string;
|
|
368
|
-
author?: string;
|
|
369
|
-
permlink?: string;
|
|
370
|
-
curator: string;
|
|
371
|
-
reward: string;
|
|
372
|
-
}
|
|
373
|
-
interface AuthorReward extends BaseTransaction {
|
|
374
|
-
type: "author_reward";
|
|
375
|
-
author: string;
|
|
376
|
-
permlink: string;
|
|
377
|
-
hbd_payout: string;
|
|
378
|
-
hive_payout: string;
|
|
379
|
-
vesting_payout: string;
|
|
380
|
-
}
|
|
381
|
-
interface CommentBenefactor extends BaseTransaction {
|
|
382
|
-
type: "comment_benefactor_reward";
|
|
383
|
-
benefactor: string;
|
|
384
|
-
author: string;
|
|
385
|
-
permlink: string;
|
|
386
|
-
hbd_payout: string;
|
|
387
|
-
hive_payout: string;
|
|
388
|
-
vesting_payout: string;
|
|
389
|
-
}
|
|
390
|
-
interface ClaimRewardBalance extends BaseTransaction {
|
|
391
|
-
type: "claim_reward_balance";
|
|
392
|
-
account: string;
|
|
393
|
-
reward_hbd: string;
|
|
394
|
-
reward_hive: string;
|
|
395
|
-
reward_vests: string;
|
|
396
|
-
}
|
|
397
|
-
interface Transfer extends BaseTransaction {
|
|
398
|
-
type: "transfer";
|
|
399
|
-
amount: string;
|
|
400
|
-
memo: string;
|
|
401
|
-
from: string;
|
|
402
|
-
to: string;
|
|
403
|
-
}
|
|
404
|
-
interface TransferToVesting extends BaseTransaction {
|
|
405
|
-
type: "transfer_to_vesting";
|
|
406
|
-
amount: string;
|
|
407
|
-
memo?: string;
|
|
408
|
-
from: string;
|
|
409
|
-
to: string;
|
|
410
|
-
}
|
|
411
|
-
interface SetWithdrawRoute extends BaseTransaction {
|
|
412
|
-
type: "set_withdraw_vesting_route";
|
|
413
|
-
from_account: string;
|
|
414
|
-
to_account: string;
|
|
415
|
-
percent: number;
|
|
416
|
-
auto_vest: boolean;
|
|
417
|
-
}
|
|
418
|
-
interface TransferToSavings extends BaseTransaction {
|
|
419
|
-
type: "transfer_to_savings";
|
|
420
|
-
amount: string;
|
|
421
|
-
memo?: string;
|
|
422
|
-
from: string;
|
|
423
|
-
to: string;
|
|
424
|
-
}
|
|
425
|
-
interface CancelTransferFromSavings extends BaseTransaction {
|
|
426
|
-
from: string;
|
|
427
|
-
request_id: number;
|
|
428
|
-
type: "cancel_transfer_from_savings";
|
|
429
|
-
}
|
|
430
|
-
interface WithdrawVesting extends BaseTransaction {
|
|
431
|
-
type: "withdraw_vesting";
|
|
432
|
-
acc: string;
|
|
433
|
-
vesting_shares: string;
|
|
434
|
-
}
|
|
435
|
-
interface FillOrder extends BaseTransaction {
|
|
436
|
-
type: "fill_order";
|
|
437
|
-
current_pays: string;
|
|
438
|
-
open_pays: string;
|
|
439
|
-
}
|
|
440
|
-
interface LimitOrderCancel extends BaseTransaction {
|
|
441
|
-
type: "limit_order_cancel";
|
|
442
|
-
owner: string;
|
|
443
|
-
orderid: number;
|
|
444
|
-
num: number;
|
|
445
|
-
}
|
|
446
|
-
interface ProducerReward extends BaseTransaction {
|
|
447
|
-
type: "producer_reward";
|
|
448
|
-
vesting_shares: string;
|
|
449
|
-
producer: string;
|
|
450
|
-
}
|
|
451
|
-
interface Interest extends BaseTransaction {
|
|
452
|
-
type: "interest";
|
|
453
|
-
owner: string;
|
|
454
|
-
interest: string;
|
|
455
|
-
}
|
|
456
|
-
interface FillConvertRequest extends BaseTransaction {
|
|
457
|
-
type: "fill_convert_request";
|
|
458
|
-
amount_in: string;
|
|
459
|
-
amount_out: string;
|
|
460
|
-
}
|
|
461
|
-
interface FillCollateralizedConvertRequest extends BaseTransaction {
|
|
462
|
-
type: "fill_collateralized_convert_request";
|
|
463
|
-
owner: string;
|
|
464
|
-
requestid: number;
|
|
465
|
-
amount_in: string;
|
|
466
|
-
amount_out: string;
|
|
467
|
-
excess_collateral: string;
|
|
468
|
-
}
|
|
469
|
-
interface ReturnVestingDelegation extends BaseTransaction {
|
|
470
|
-
type: "return_vesting_delegation";
|
|
471
|
-
vesting_shares: string;
|
|
472
|
-
}
|
|
473
|
-
interface ProposalPay extends BaseTransaction {
|
|
474
|
-
type: "proposal_pay";
|
|
475
|
-
payment: string;
|
|
476
|
-
}
|
|
477
|
-
interface UpdateProposalVotes extends BaseTransaction {
|
|
478
|
-
type: "update_proposal_votes";
|
|
479
|
-
voter: string;
|
|
480
|
-
proposal_ids: [number];
|
|
481
|
-
approve: boolean;
|
|
482
|
-
}
|
|
483
|
-
interface CommentPayoutUpdate extends BaseTransaction {
|
|
484
|
-
type: "comment_payout_update";
|
|
485
|
-
author: string;
|
|
486
|
-
permlink: string;
|
|
487
|
-
}
|
|
488
|
-
interface CommentReward extends BaseTransaction {
|
|
489
|
-
type: "comment_reward";
|
|
490
|
-
author: string;
|
|
491
|
-
permlink: string;
|
|
492
|
-
payout: string;
|
|
493
|
-
}
|
|
494
|
-
interface CollateralizedConvert extends BaseTransaction {
|
|
495
|
-
type: "collateralized_convert";
|
|
496
|
-
owner: string;
|
|
497
|
-
requestid: number;
|
|
498
|
-
amount: string;
|
|
499
|
-
}
|
|
500
|
-
interface RecurrentTransfers extends BaseTransaction {
|
|
501
|
-
type: "recurrent_transfer";
|
|
502
|
-
amount: string;
|
|
503
|
-
memo: string;
|
|
504
|
-
from: string;
|
|
505
|
-
to: string;
|
|
506
|
-
recurrence: number;
|
|
507
|
-
executions: number;
|
|
508
|
-
}
|
|
509
|
-
interface FillRecurrentTransfers extends BaseTransaction {
|
|
510
|
-
type: "fill_recurrent_transfer";
|
|
511
|
-
amount: SMTAsset;
|
|
512
|
-
memo: string;
|
|
513
|
-
from: string;
|
|
514
|
-
to: string;
|
|
515
|
-
remaining_executions: number;
|
|
516
|
-
}
|
|
517
|
-
interface DelegateVestingShares extends BaseTransaction {
|
|
518
|
-
type: "delegate_vesting_shares";
|
|
519
|
-
delegator: string;
|
|
520
|
-
delegatee: string;
|
|
521
|
-
vesting_shares: string;
|
|
522
|
-
}
|
|
523
|
-
interface LimitOrderCreate extends BaseTransaction {
|
|
524
|
-
type: "limit_order_create";
|
|
525
|
-
owner: string;
|
|
526
|
-
orderid: number;
|
|
527
|
-
amount_to_sell: string;
|
|
528
|
-
min_to_receive: string;
|
|
529
|
-
expiration: string;
|
|
530
|
-
}
|
|
531
|
-
interface FillVestingWithdraw extends BaseTransaction {
|
|
532
|
-
type: "fill_vesting_withdraw";
|
|
533
|
-
from_account: string;
|
|
534
|
-
to_account: string;
|
|
535
|
-
withdrawn: string;
|
|
536
|
-
deposited: string;
|
|
537
|
-
}
|
|
538
|
-
interface EffectiveCommentVote extends BaseTransaction {
|
|
539
|
-
type: "effective_comment_vote";
|
|
540
|
-
voter: string;
|
|
541
|
-
author: string;
|
|
542
|
-
permlink: string;
|
|
543
|
-
pending_payout: string;
|
|
544
|
-
total_vote_weight: number;
|
|
545
|
-
rshares: number;
|
|
546
|
-
weight: number;
|
|
547
|
-
}
|
|
548
|
-
interface VoteProxy extends BaseTransaction {
|
|
549
|
-
type: "account_witness_proxy";
|
|
550
|
-
account: string;
|
|
551
|
-
proxy: string;
|
|
552
|
-
}
|
|
553
|
-
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;
|
|
554
|
-
|
|
555
|
-
interface HiveMarketMetric {
|
|
556
|
-
hive: {
|
|
557
|
-
high: number;
|
|
558
|
-
low: number;
|
|
559
|
-
open: number;
|
|
560
|
-
close: number;
|
|
561
|
-
volume: number;
|
|
562
|
-
};
|
|
563
|
-
id: number;
|
|
564
|
-
non_hive: {
|
|
565
|
-
high: number;
|
|
566
|
-
low: number;
|
|
567
|
-
open: number;
|
|
568
|
-
close: number;
|
|
569
|
-
volume: number;
|
|
570
|
-
};
|
|
571
|
-
open: string;
|
|
572
|
-
seconds: number;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
interface HiveWithdrawRoute {
|
|
576
|
-
auto_vest: boolean;
|
|
577
|
-
from_account: string;
|
|
578
|
-
id: number;
|
|
579
|
-
percent: number;
|
|
580
|
-
to_account: string;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
interface DelegatedVestingShare {
|
|
584
|
-
id: number;
|
|
585
|
-
delegatee: string;
|
|
586
|
-
delegator: string;
|
|
587
|
-
min_delegation_time: string;
|
|
588
|
-
vesting_shares: string;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
interface ReceivedVestingShare {
|
|
592
|
-
delegatee: string;
|
|
593
|
-
delegator: string;
|
|
594
|
-
timestamp: string;
|
|
595
|
-
vesting_shares: string;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
declare function resolveHiveOperationFilters(filters: HiveOperationFilter): {
|
|
599
|
-
filterKey: HiveOperationFilterKey;
|
|
600
|
-
filterArgs: any[];
|
|
601
|
-
};
|
|
602
|
-
declare function getHiveAssetTransactionsQueryOptions(username: string | undefined, limit?: number, filters?: HiveOperationFilter): _tanstack_react_query.UseInfiniteQueryOptions<HiveTransaction[], Error, _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>, readonly unknown[], unknown> & {
|
|
603
|
-
initialData: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown> | (() => _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>) | undefined;
|
|
604
|
-
} & {
|
|
605
|
-
queryKey: readonly unknown[] & {
|
|
606
|
-
[dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>;
|
|
607
|
-
[dataTagErrorSymbol]: Error;
|
|
608
|
-
};
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
declare function getHivePowerAssetTransactionsQueryOptions(username: string | undefined, limit?: number, filters?: HiveOperationFilter): _tanstack_react_query.UseInfiniteQueryOptions<HiveTransaction[], Error, _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>, readonly unknown[], unknown> & {
|
|
612
|
-
initialData: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown> | (() => _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>) | undefined;
|
|
613
|
-
} & {
|
|
614
|
-
queryKey: readonly unknown[] & {
|
|
615
|
-
[dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>;
|
|
616
|
-
[dataTagErrorSymbol]: Error;
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
declare function getHbdAssetTransactionsQueryOptions(username: string | undefined, limit?: number, filters?: HiveOperationFilter): _tanstack_react_query.UseInfiniteQueryOptions<HiveTransaction[], Error, _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>, readonly unknown[], unknown> & {
|
|
621
|
-
initialData: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown> | (() => _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>) | undefined;
|
|
622
|
-
} & {
|
|
623
|
-
queryKey: readonly unknown[] & {
|
|
624
|
-
[dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveTransaction[], unknown>;
|
|
625
|
-
[dataTagErrorSymbol]: Error;
|
|
626
|
-
};
|
|
627
|
-
};
|
|
628
|
-
|
|
629
|
-
declare function getHiveAssetMetricQueryOptions(bucketSeconds?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<{
|
|
630
|
-
close: number;
|
|
631
|
-
open: number;
|
|
632
|
-
low: number;
|
|
633
|
-
high: number;
|
|
634
|
-
volume: number;
|
|
635
|
-
time: Date;
|
|
636
|
-
}[], Error, _tanstack_react_query.InfiniteData<{
|
|
637
|
-
close: number;
|
|
638
|
-
open: number;
|
|
639
|
-
low: number;
|
|
640
|
-
high: number;
|
|
641
|
-
volume: number;
|
|
642
|
-
time: Date;
|
|
643
|
-
}[], unknown>, (string | number)[], Date[]>, "queryFn"> & {
|
|
644
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
645
|
-
close: number;
|
|
646
|
-
open: number;
|
|
647
|
-
low: number;
|
|
648
|
-
high: number;
|
|
649
|
-
volume: number;
|
|
650
|
-
time: Date;
|
|
651
|
-
}[], (string | number)[], Date[]> | undefined;
|
|
652
|
-
} & {
|
|
653
|
-
queryKey: (string | number)[] & {
|
|
654
|
-
[dataTagSymbol]: _tanstack_react_query.InfiniteData<{
|
|
655
|
-
close: number;
|
|
656
|
-
open: number;
|
|
657
|
-
low: number;
|
|
658
|
-
high: number;
|
|
659
|
-
volume: number;
|
|
660
|
-
time: Date;
|
|
661
|
-
}[], unknown>;
|
|
662
|
-
[dataTagErrorSymbol]: Error;
|
|
663
|
-
};
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
declare function getHiveAssetWithdrawalRoutesQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveWithdrawRoute[], Error, HiveWithdrawRoute[], (string | undefined)[]>, "queryFn"> & {
|
|
667
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveWithdrawRoute[], (string | undefined)[], never> | undefined;
|
|
668
|
-
} & {
|
|
669
|
-
queryKey: (string | undefined)[] & {
|
|
670
|
-
[dataTagSymbol]: HiveWithdrawRoute[];
|
|
671
|
-
[dataTagErrorSymbol]: Error;
|
|
672
|
-
};
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
declare function getHivePowerDelegatesInfiniteQueryOptions(username: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DelegatedVestingShare[], Error, DelegatedVestingShare[], string[]>, "queryFn"> & {
|
|
676
|
-
queryFn?: _tanstack_react_query.QueryFunction<DelegatedVestingShare[], string[], never> | undefined;
|
|
677
|
-
} & {
|
|
678
|
-
queryKey: string[] & {
|
|
679
|
-
[dataTagSymbol]: DelegatedVestingShare[];
|
|
680
|
-
[dataTagErrorSymbol]: Error;
|
|
681
|
-
};
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
declare function getHivePowerDelegatingsQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ReceivedVestingShare[], Error, ReceivedVestingShare[], string[]>, "queryFn"> & {
|
|
685
|
-
queryFn?: _tanstack_react_query.QueryFunction<ReceivedVestingShare[], string[], never> | undefined;
|
|
686
|
-
} & {
|
|
687
|
-
queryKey: string[] & {
|
|
688
|
-
[dataTagSymbol]: ReceivedVestingShare[];
|
|
689
|
-
[dataTagErrorSymbol]: Error;
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
interface GeneralAssetInfo {
|
|
694
|
-
name: string;
|
|
695
|
-
title: string;
|
|
696
|
-
price: number;
|
|
697
|
-
accountBalance: number;
|
|
698
|
-
apr?: string;
|
|
699
|
-
layer?: string;
|
|
700
|
-
pendingRewards?: number;
|
|
701
|
-
parts?: {
|
|
702
|
-
name: string;
|
|
703
|
-
balance: number;
|
|
704
|
-
}[];
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
interface SpkApiWallet {
|
|
708
|
-
balance: number;
|
|
709
|
-
claim: number;
|
|
710
|
-
drop: {
|
|
711
|
-
availible: {
|
|
712
|
-
amount: number;
|
|
713
|
-
precision: number;
|
|
714
|
-
token: string;
|
|
715
|
-
};
|
|
716
|
-
last_claim: number;
|
|
717
|
-
total_claims: number;
|
|
718
|
-
};
|
|
719
|
-
poweredUp: number;
|
|
720
|
-
granted: {
|
|
721
|
-
t: number;
|
|
722
|
-
[key: string]: number;
|
|
723
|
-
};
|
|
724
|
-
granting: {
|
|
725
|
-
t: number;
|
|
726
|
-
[key: string]: number;
|
|
727
|
-
};
|
|
728
|
-
heldCollateral: number;
|
|
729
|
-
contracts: unknown[];
|
|
730
|
-
up: unknown;
|
|
731
|
-
down: unknown;
|
|
732
|
-
power_downs: {
|
|
733
|
-
[key: string]: string;
|
|
734
|
-
};
|
|
735
|
-
gov_downs: unknown;
|
|
736
|
-
gov: number;
|
|
737
|
-
spk: number;
|
|
738
|
-
spk_block: number;
|
|
739
|
-
tick: string;
|
|
740
|
-
node: string;
|
|
741
|
-
head_block: number;
|
|
742
|
-
behind: number;
|
|
743
|
-
VERSION: string;
|
|
744
|
-
pow: number;
|
|
745
|
-
}
|
|
746
|
-
interface SpkMarkets {
|
|
747
|
-
head_block: number;
|
|
748
|
-
markets: {
|
|
749
|
-
node: {
|
|
750
|
-
[key: string]: {
|
|
751
|
-
lastGood: number;
|
|
752
|
-
report: {
|
|
753
|
-
block: number;
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
stats: any;
|
|
759
|
-
}
|
|
760
|
-
interface TransformedSpkMarkets {
|
|
761
|
-
list: {
|
|
762
|
-
name: string;
|
|
763
|
-
status: string;
|
|
764
|
-
}[];
|
|
765
|
-
raw: SpkMarkets;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
declare enum AssetOperation {
|
|
769
|
-
Transfer = "transfer",
|
|
770
|
-
TransferToSavings = "transfer-saving",
|
|
771
|
-
WithdrawFromSavings = "withdraw-saving",
|
|
772
|
-
Delegate = "delegate",
|
|
773
|
-
PowerUp = "power-up",
|
|
774
|
-
PowerDown = "power-down",
|
|
775
|
-
WithdrawRoutes = "withdraw-routes",
|
|
776
|
-
ClaimInterest = "claim-interest",
|
|
777
|
-
Swap = "swap",
|
|
778
|
-
Convert = "convert",
|
|
779
|
-
Gift = "gift",
|
|
780
|
-
Promote = "promote",
|
|
781
|
-
Claim = "claim",
|
|
782
|
-
Buy = "buy",
|
|
783
|
-
LockLiquidity = "lock",
|
|
784
|
-
Stake = "stake",
|
|
785
|
-
Unstake = "unstake",
|
|
786
|
-
Undelegate = "undelegate"
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
interface GeneralAssetTransaction {
|
|
790
|
-
id: number | string;
|
|
791
|
-
type: OperationName | number | string;
|
|
792
|
-
created: Date;
|
|
793
|
-
results: {
|
|
794
|
-
amount: string | number;
|
|
795
|
-
asset: string;
|
|
796
|
-
}[];
|
|
797
|
-
from?: string;
|
|
798
|
-
to?: string;
|
|
799
|
-
memo?: string;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
type HiveBasedAssetSignType = "key" | "keychain" | "hivesigner" | "hiveauth";
|
|
803
|
-
|
|
804
|
-
interface TransferPayload<T extends HiveBasedAssetSignType> {
|
|
805
|
-
from: string;
|
|
806
|
-
to: string;
|
|
807
|
-
amount: string;
|
|
808
|
-
memo: string;
|
|
809
|
-
type: T;
|
|
810
|
-
}
|
|
811
|
-
declare function transferHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? TransferPayload<T> & {
|
|
812
|
-
key: PrivateKey;
|
|
813
|
-
} : TransferPayload<T>, auth?: AuthContext): Promise<any>;
|
|
814
|
-
|
|
815
|
-
interface Payload$5<T extends HiveBasedAssetSignType> {
|
|
816
|
-
from: string;
|
|
817
|
-
to: string;
|
|
818
|
-
amount: string;
|
|
819
|
-
memo: string;
|
|
820
|
-
type: T;
|
|
821
|
-
}
|
|
822
|
-
declare function transferToSavingsHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$5<T> & {
|
|
823
|
-
key: PrivateKey;
|
|
824
|
-
} : Payload$5<T>, auth?: AuthContext): Promise<any>;
|
|
825
|
-
|
|
826
|
-
interface PayloadBase$1 {
|
|
827
|
-
from: string;
|
|
828
|
-
to: string;
|
|
829
|
-
amount: string;
|
|
830
|
-
memo: string;
|
|
831
|
-
request_id?: number;
|
|
832
|
-
}
|
|
833
|
-
interface PayloadWithKey$1<T extends HiveBasedAssetSignType> extends PayloadBase$1 {
|
|
834
|
-
type: T;
|
|
835
|
-
}
|
|
836
|
-
declare function transferFromSavingsHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? PayloadWithKey$1<T> & {
|
|
837
|
-
key: PrivateKey;
|
|
838
|
-
} : PayloadWithKey$1<T>, auth?: AuthContext): Promise<any>;
|
|
839
|
-
|
|
840
|
-
interface Payload$4<T extends HiveBasedAssetSignType> {
|
|
841
|
-
from: string;
|
|
842
|
-
to: string;
|
|
843
|
-
amount: string;
|
|
844
|
-
memo: string;
|
|
845
|
-
type: T;
|
|
846
|
-
}
|
|
847
|
-
declare function powerUpHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$4<T> & {
|
|
848
|
-
key: PrivateKey;
|
|
849
|
-
} : Payload$4<T>, auth?: AuthContext): Promise<any>;
|
|
850
|
-
|
|
851
|
-
interface Payload$3<T extends HiveBasedAssetSignType> {
|
|
852
|
-
from: string;
|
|
853
|
-
to: string;
|
|
854
|
-
amount: string;
|
|
855
|
-
memo: string;
|
|
856
|
-
type: T;
|
|
857
|
-
}
|
|
858
|
-
declare function delegateHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$3<T> & {
|
|
859
|
-
key: PrivateKey;
|
|
860
|
-
} : Payload$3<T>, auth?: AuthContext): Promise<any>;
|
|
861
|
-
|
|
862
|
-
interface Payload$2<T extends HiveBasedAssetSignType> {
|
|
863
|
-
from: string;
|
|
864
|
-
amount: string;
|
|
865
|
-
type: T;
|
|
866
|
-
}
|
|
867
|
-
declare function powerDownHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$2<T> & {
|
|
868
|
-
key: PrivateKey;
|
|
869
|
-
} : Payload$2<T>, auth?: AuthContext): Promise<any>;
|
|
870
|
-
|
|
871
|
-
interface Payload$1<T extends HiveBasedAssetSignType> {
|
|
872
|
-
from_account: string;
|
|
873
|
-
to_account: string;
|
|
874
|
-
percent: number;
|
|
875
|
-
auto_vest: boolean;
|
|
876
|
-
type: T;
|
|
877
|
-
}
|
|
878
|
-
declare function withdrawVestingRouteHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload$1<T> & {
|
|
879
|
-
key: PrivateKey;
|
|
880
|
-
} : Payload$1<T>, auth?: AuthContext): Promise<any>;
|
|
881
|
-
|
|
882
|
-
declare function useClaimRewards(username: string, auth: AuthContext | undefined, onSuccess: () => void): ReturnType<typeof useBroadcastMutation<void>>;
|
|
883
|
-
|
|
884
|
-
interface PayloadBase {
|
|
885
|
-
from: string;
|
|
886
|
-
to: string;
|
|
887
|
-
amount: string;
|
|
888
|
-
memo: string;
|
|
889
|
-
request_id?: number;
|
|
890
|
-
}
|
|
891
|
-
interface PayloadWithKey<T extends HiveBasedAssetSignType> extends PayloadBase {
|
|
892
|
-
type: T;
|
|
893
|
-
}
|
|
894
|
-
declare function claimInterestHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? PayloadWithKey<T> & {
|
|
895
|
-
key: PrivateKey;
|
|
896
|
-
} : PayloadWithKey<T>, auth?: AuthContext): Promise<any>;
|
|
897
|
-
|
|
898
|
-
interface Payload<T extends HiveBasedAssetSignType> {
|
|
899
|
-
from: string;
|
|
900
|
-
amount: string;
|
|
901
|
-
type: T;
|
|
902
|
-
}
|
|
903
|
-
declare function convertHbd<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
|
|
904
|
-
key: PrivateKey;
|
|
905
|
-
} : Payload<T>, auth?: AuthContext): Promise<any>;
|
|
906
|
-
|
|
907
|
-
declare const HIVE_ACCOUNT_OPERATION_GROUPS: Record<HiveOperationGroup, number[]>;
|
|
908
|
-
|
|
909
|
-
declare const HIVE_OPERATION_LIST: HiveOperationName[];
|
|
910
|
-
|
|
911
|
-
declare const HIVE_OPERATION_ORDERS: Record<HiveOperationName, number>;
|
|
912
|
-
declare const HIVE_OPERATION_NAME_BY_ID: Record<number, HiveOperationName>;
|
|
913
|
-
|
|
914
|
-
declare enum Symbol {
|
|
915
|
-
HIVE = "HIVE",
|
|
916
|
-
HBD = "HBD",
|
|
917
|
-
VESTS = "VESTS",
|
|
918
|
-
SPK = "SPK"
|
|
919
|
-
}
|
|
920
|
-
declare enum NaiMap {
|
|
921
|
-
"@@000000021" = "HIVE",
|
|
922
|
-
"@@000000013" = "HBD",
|
|
923
|
-
"@@000000037" = "VESTS"
|
|
924
|
-
}
|
|
925
|
-
interface Asset {
|
|
926
|
-
amount: number;
|
|
927
|
-
symbol: Symbol;
|
|
928
|
-
}
|
|
929
|
-
declare function parseAsset(sval: string | SMTAsset): Asset;
|
|
930
|
-
|
|
931
|
-
declare function isEmptyDate(s: string | undefined): boolean;
|
|
932
|
-
|
|
933
|
-
declare function vestsToHp(vests: number, hivePerMVests: number): number;
|
|
934
|
-
|
|
935
|
-
declare function rewardSpk(data: SpkApiWallet, sstats: any): number;
|
|
936
|
-
|
|
937
|
-
type HiveAuthKeyType$1 = "posting" | "active";
|
|
938
|
-
type HiveAuthBroadcastHandler = (username: string, operations: Operation[], keyType: HiveAuthKeyType$1) => Promise<TransactionConfirmation>;
|
|
939
|
-
|
|
940
|
-
type HiveAuthKeyType = "posting" | "active";
|
|
941
|
-
declare function registerWalletHiveAuthBroadcast(handler: HiveAuthBroadcastHandler): void;
|
|
942
|
-
declare function broadcastWithWalletHiveAuth(username: string, operations: Operation[], keyType: HiveAuthKeyType): Promise<TransactionConfirmation>;
|
|
943
|
-
declare function hasWalletHiveAuthBroadcast(): boolean;
|
|
944
|
-
|
|
945
|
-
interface SpkTransferPayload<T extends HiveBasedAssetSignType> {
|
|
946
|
-
from: string;
|
|
947
|
-
to: string;
|
|
948
|
-
amount: string;
|
|
949
|
-
memo?: string;
|
|
950
|
-
type: T;
|
|
951
|
-
}
|
|
952
|
-
declare function transferSpk<T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkTransferPayload<T> & {
|
|
953
|
-
key: PrivateKey;
|
|
954
|
-
} : SpkTransferPayload<T>, auth?: AuthContext): Promise<any>;
|
|
955
|
-
|
|
956
|
-
interface SpkLockPayload<T extends HiveBasedAssetSignType> {
|
|
957
|
-
mode: "lock" | "unlock";
|
|
958
|
-
from: string;
|
|
959
|
-
amount: string;
|
|
960
|
-
type: T;
|
|
961
|
-
}
|
|
962
|
-
declare const lockLarynx: <T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkLockPayload<T> & {
|
|
963
|
-
key: PrivateKey;
|
|
964
|
-
} : SpkLockPayload<T>, auth?: AuthContext) => Promise<any>;
|
|
965
|
-
|
|
966
|
-
interface SpkPowerPayload<T extends HiveBasedAssetSignType> {
|
|
967
|
-
mode: "up" | "down";
|
|
968
|
-
from: string;
|
|
969
|
-
amount: string;
|
|
970
|
-
type: T;
|
|
971
|
-
}
|
|
972
|
-
declare function powerUpLarynx<T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkPowerPayload<T> & {
|
|
973
|
-
key: PrivateKey;
|
|
974
|
-
} : SpkPowerPayload<T>, auth?: AuthContext): Promise<any>;
|
|
975
|
-
|
|
976
|
-
interface LarynxTransferPayload<T extends HiveBasedAssetSignType> {
|
|
977
|
-
from: string;
|
|
978
|
-
to: string;
|
|
979
|
-
amount: string;
|
|
980
|
-
memo?: string;
|
|
981
|
-
type: T;
|
|
982
|
-
}
|
|
983
|
-
declare function transferLarynx<T extends HiveBasedAssetSignType>(payload: T extends "key" ? LarynxTransferPayload<T> & {
|
|
984
|
-
key: PrivateKey;
|
|
985
|
-
} : LarynxTransferPayload<T>, auth?: AuthContext): Promise<any>;
|
|
986
|
-
|
|
987
|
-
declare function getLarynxAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
988
|
-
name: string;
|
|
989
|
-
title: string;
|
|
990
|
-
price: number;
|
|
991
|
-
accountBalance: number;
|
|
992
|
-
layer?: undefined;
|
|
993
|
-
} | {
|
|
994
|
-
name: string;
|
|
995
|
-
layer: string;
|
|
996
|
-
title: string;
|
|
997
|
-
price: number;
|
|
998
|
-
accountBalance: number;
|
|
999
|
-
}, Error, {
|
|
1000
|
-
name: string;
|
|
1001
|
-
title: string;
|
|
1002
|
-
price: number;
|
|
1003
|
-
accountBalance: number;
|
|
1004
|
-
layer?: undefined;
|
|
1005
|
-
} | {
|
|
1006
|
-
name: string;
|
|
1007
|
-
layer: string;
|
|
1008
|
-
title: string;
|
|
1009
|
-
price: number;
|
|
1010
|
-
accountBalance: number;
|
|
1011
|
-
}, string[]>, "queryFn"> & {
|
|
1012
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1013
|
-
name: string;
|
|
1014
|
-
title: string;
|
|
1015
|
-
price: number;
|
|
1016
|
-
accountBalance: number;
|
|
1017
|
-
layer?: undefined;
|
|
1018
|
-
} | {
|
|
1019
|
-
name: string;
|
|
1020
|
-
layer: string;
|
|
1021
|
-
title: string;
|
|
1022
|
-
price: number;
|
|
1023
|
-
accountBalance: number;
|
|
1024
|
-
}, string[], never> | undefined;
|
|
1025
|
-
} & {
|
|
1026
|
-
queryKey: string[] & {
|
|
1027
|
-
[dataTagSymbol]: {
|
|
1028
|
-
name: string;
|
|
1029
|
-
title: string;
|
|
1030
|
-
price: number;
|
|
1031
|
-
accountBalance: number;
|
|
1032
|
-
layer?: undefined;
|
|
1033
|
-
} | {
|
|
1034
|
-
name: string;
|
|
1035
|
-
layer: string;
|
|
1036
|
-
title: string;
|
|
1037
|
-
price: number;
|
|
1038
|
-
accountBalance: number;
|
|
1039
|
-
};
|
|
1040
|
-
[dataTagErrorSymbol]: Error;
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
declare function getSpkAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1045
|
-
name: string;
|
|
1046
|
-
layer: string;
|
|
1047
|
-
title: string;
|
|
1048
|
-
price: number;
|
|
1049
|
-
accountBalance: number;
|
|
1050
|
-
}, Error, {
|
|
1051
|
-
name: string;
|
|
1052
|
-
layer: string;
|
|
1053
|
-
title: string;
|
|
1054
|
-
price: number;
|
|
1055
|
-
accountBalance: number;
|
|
1056
|
-
}, string[]>, "queryFn"> & {
|
|
1057
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1058
|
-
name: string;
|
|
1059
|
-
layer: string;
|
|
1060
|
-
title: string;
|
|
1061
|
-
price: number;
|
|
1062
|
-
accountBalance: number;
|
|
1063
|
-
}, string[], never> | undefined;
|
|
1064
|
-
} & {
|
|
1065
|
-
queryKey: string[] & {
|
|
1066
|
-
[dataTagSymbol]: {
|
|
1067
|
-
name: string;
|
|
1068
|
-
layer: string;
|
|
1069
|
-
title: string;
|
|
1070
|
-
price: number;
|
|
1071
|
-
accountBalance: number;
|
|
1072
|
-
};
|
|
1073
|
-
[dataTagErrorSymbol]: Error;
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
|
|
1077
|
-
declare function getLarynxPowerAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1078
|
-
name: string;
|
|
1079
|
-
title: string;
|
|
1080
|
-
price: number;
|
|
1081
|
-
accountBalance: number;
|
|
1082
|
-
layer?: undefined;
|
|
1083
|
-
parts?: undefined;
|
|
1084
|
-
} | {
|
|
1085
|
-
name: string;
|
|
1086
|
-
title: string;
|
|
1087
|
-
layer: string;
|
|
1088
|
-
price: number;
|
|
1089
|
-
accountBalance: number;
|
|
1090
|
-
parts: {
|
|
1091
|
-
name: string;
|
|
1092
|
-
balance: number;
|
|
1093
|
-
}[];
|
|
1094
|
-
}, Error, {
|
|
1095
|
-
name: string;
|
|
1096
|
-
title: string;
|
|
1097
|
-
price: number;
|
|
1098
|
-
accountBalance: number;
|
|
1099
|
-
layer?: undefined;
|
|
1100
|
-
parts?: undefined;
|
|
1101
|
-
} | {
|
|
1102
|
-
name: string;
|
|
1103
|
-
title: string;
|
|
1104
|
-
layer: string;
|
|
1105
|
-
price: number;
|
|
1106
|
-
accountBalance: number;
|
|
1107
|
-
parts: {
|
|
1108
|
-
name: string;
|
|
1109
|
-
balance: number;
|
|
1110
|
-
}[];
|
|
1111
|
-
}, string[]>, "queryFn"> & {
|
|
1112
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1113
|
-
name: string;
|
|
1114
|
-
title: string;
|
|
1115
|
-
price: number;
|
|
1116
|
-
accountBalance: number;
|
|
1117
|
-
layer?: undefined;
|
|
1118
|
-
parts?: undefined;
|
|
1119
|
-
} | {
|
|
1120
|
-
name: string;
|
|
1121
|
-
title: string;
|
|
1122
|
-
layer: string;
|
|
1123
|
-
price: number;
|
|
1124
|
-
accountBalance: number;
|
|
1125
|
-
parts: {
|
|
1126
|
-
name: string;
|
|
1127
|
-
balance: number;
|
|
1128
|
-
}[];
|
|
1129
|
-
}, string[], never> | undefined;
|
|
1130
|
-
} & {
|
|
1131
|
-
queryKey: string[] & {
|
|
1132
|
-
[dataTagSymbol]: {
|
|
1133
|
-
name: string;
|
|
1134
|
-
title: string;
|
|
1135
|
-
price: number;
|
|
1136
|
-
accountBalance: number;
|
|
1137
|
-
layer?: undefined;
|
|
1138
|
-
parts?: undefined;
|
|
1139
|
-
} | {
|
|
1140
|
-
name: string;
|
|
1141
|
-
title: string;
|
|
1142
|
-
layer: string;
|
|
1143
|
-
price: number;
|
|
1144
|
-
accountBalance: number;
|
|
1145
|
-
parts: {
|
|
1146
|
-
name: string;
|
|
1147
|
-
balance: number;
|
|
1148
|
-
}[];
|
|
1149
|
-
};
|
|
1150
|
-
[dataTagErrorSymbol]: Error;
|
|
1151
|
-
};
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
|
-
declare function getSpkMarketsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1155
|
-
list: {
|
|
1156
|
-
name: string;
|
|
1157
|
-
status: string;
|
|
1158
|
-
}[];
|
|
1159
|
-
raw: SpkMarkets;
|
|
1160
|
-
}, Error, {
|
|
1161
|
-
list: {
|
|
1162
|
-
name: string;
|
|
1163
|
-
status: string;
|
|
1164
|
-
}[];
|
|
1165
|
-
raw: SpkMarkets;
|
|
1166
|
-
}, string[]>, "queryFn"> & {
|
|
1167
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1168
|
-
list: {
|
|
1169
|
-
name: string;
|
|
1170
|
-
status: string;
|
|
1171
|
-
}[];
|
|
1172
|
-
raw: SpkMarkets;
|
|
1173
|
-
}, string[], never> | undefined;
|
|
1174
|
-
} & {
|
|
1175
|
-
queryKey: string[] & {
|
|
1176
|
-
[dataTagSymbol]: {
|
|
1177
|
-
list: {
|
|
1178
|
-
name: string;
|
|
1179
|
-
status: string;
|
|
1180
|
-
}[];
|
|
1181
|
-
raw: SpkMarkets;
|
|
1182
|
-
};
|
|
1183
|
-
[dataTagErrorSymbol]: Error;
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
|
|
1187
|
-
declare function getSpkWalletQueryOptions(username?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<SpkApiWallet, Error, SpkApiWallet, (string | undefined)[]>, "queryFn"> & {
|
|
1188
|
-
queryFn?: _tanstack_react_query.QueryFunction<SpkApiWallet, (string | undefined)[], never> | undefined;
|
|
1189
|
-
} & {
|
|
1190
|
-
queryKey: (string | undefined)[] & {
|
|
1191
|
-
[dataTagSymbol]: SpkApiWallet;
|
|
1192
|
-
[dataTagErrorSymbol]: Error;
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
interface HiveEngineMarketResponse {
|
|
1197
|
-
_id: number;
|
|
1198
|
-
symbol: string;
|
|
1199
|
-
volume: string;
|
|
1200
|
-
volumeExpiration: number;
|
|
1201
|
-
lastPrice: string;
|
|
1202
|
-
lowestAsk: string;
|
|
1203
|
-
highestBid: string;
|
|
1204
|
-
lastDayPrice: string;
|
|
1205
|
-
lastDayPriceExpiration: number;
|
|
1206
|
-
priceChangeHive: string;
|
|
1207
|
-
priceChangePercent: string;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
interface HiveEngineTokenMetadataResponse {
|
|
1211
|
-
issuer: string;
|
|
1212
|
-
symbol: string;
|
|
1213
|
-
name: string;
|
|
1214
|
-
metadata: string;
|
|
1215
|
-
precision: number;
|
|
1216
|
-
maxSupply: string;
|
|
1217
|
-
supply: string;
|
|
1218
|
-
circulatingSupply: string;
|
|
1219
|
-
stakingEnabled: boolean;
|
|
1220
|
-
unstakingCooldown: number;
|
|
1221
|
-
delegationEnabled: boolean;
|
|
1222
|
-
undelegationCooldown: number;
|
|
1223
|
-
numberTransactions: number;
|
|
1224
|
-
totalStaked: string;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
interface HiveEngineTokenBalance {
|
|
1228
|
-
account: string;
|
|
1229
|
-
balance: string;
|
|
1230
|
-
delegationsIn: string;
|
|
1231
|
-
delegationsOut: string;
|
|
1232
|
-
pendingUndelegations: string;
|
|
1233
|
-
pendingUnstake: string;
|
|
1234
|
-
stake: string;
|
|
1235
|
-
symbol: string;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
interface HiveEngineTransaction {
|
|
1239
|
-
_id: string;
|
|
1240
|
-
blockNumber: number;
|
|
1241
|
-
transactionId: string;
|
|
1242
|
-
timestamp: number;
|
|
1243
|
-
operation: string;
|
|
1244
|
-
from: string;
|
|
1245
|
-
to: string;
|
|
1246
|
-
symbol: string;
|
|
1247
|
-
quantity: string;
|
|
1248
|
-
memo: any;
|
|
1249
|
-
account: string;
|
|
1250
|
-
authorperm?: string;
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
interface HiveEngineMetric {
|
|
1254
|
-
baseVolume: string;
|
|
1255
|
-
close: string;
|
|
1256
|
-
high: string;
|
|
1257
|
-
low: string;
|
|
1258
|
-
open: string;
|
|
1259
|
-
quoteVolume: string;
|
|
1260
|
-
timestamp: number;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
interface HiveEngineTokenStatus {
|
|
1264
|
-
symbol: string;
|
|
1265
|
-
pending_token: number;
|
|
1266
|
-
precision: number;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
interface HiveEngineTokenInfo {
|
|
1270
|
-
highestBid: string;
|
|
1271
|
-
lastDayPrice: string;
|
|
1272
|
-
lastDayPriceExpiration: number;
|
|
1273
|
-
lastPrice: string;
|
|
1274
|
-
lowestAsk: string;
|
|
1275
|
-
priceChangeHive: string;
|
|
1276
|
-
priceChangePercent: string;
|
|
1277
|
-
symbol: string;
|
|
1278
|
-
volume: string;
|
|
1279
|
-
volumeExpiration: number;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
interface HiveEngineOrderBookEntry {
|
|
1283
|
-
_id: number;
|
|
1284
|
-
txId: string;
|
|
1285
|
-
timestamp: number;
|
|
1286
|
-
account: string;
|
|
1287
|
-
symbol: string;
|
|
1288
|
-
quantity: string;
|
|
1289
|
-
price: string;
|
|
1290
|
-
expiration: number;
|
|
1291
|
-
tokensLocked?: string;
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
interface HiveEngineOpenOrder {
|
|
1295
|
-
id: string;
|
|
1296
|
-
type: "buy" | "sell";
|
|
1297
|
-
account: string;
|
|
1298
|
-
symbol: string;
|
|
1299
|
-
quantity: string;
|
|
1300
|
-
price: string;
|
|
1301
|
-
total: string;
|
|
1302
|
-
timestamp: number;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
interface Token {
|
|
1306
|
-
issuer: string;
|
|
1307
|
-
symbol: string;
|
|
1308
|
-
name: string;
|
|
1309
|
-
metadata: string;
|
|
1310
|
-
precision: number;
|
|
1311
|
-
maxSupply: string;
|
|
1312
|
-
supply: string;
|
|
1313
|
-
circulatingSupply: string;
|
|
1314
|
-
stakingEnabled: boolean;
|
|
1315
|
-
unstakingCooldown: number;
|
|
1316
|
-
delegationEnabled: boolean;
|
|
1317
|
-
undelegationCooldown: number;
|
|
1318
|
-
numberTransactions: number;
|
|
1319
|
-
totalStaked: string;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
interface TokenMetadata {
|
|
1323
|
-
desc: string;
|
|
1324
|
-
url: string;
|
|
1325
|
-
icon: string;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* Get all Hive Engine tokens with optional filtering by account and symbol
|
|
1330
|
-
* @param account - Optional account to filter tokens by
|
|
1331
|
-
* @param symbol - Optional symbol to filter tokens by
|
|
1332
|
-
*/
|
|
1333
|
-
declare function getAllHiveEngineTokensQueryOptions(account?: string, symbol?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenInfo[], Error, HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined]>, "queryFn"> & {
|
|
1334
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined], never> | undefined;
|
|
1335
|
-
} & {
|
|
1336
|
-
queryKey: readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined] & {
|
|
1337
|
-
[dataTagSymbol]: HiveEngineTokenInfo[];
|
|
1338
|
-
[dataTagErrorSymbol]: Error;
|
|
1339
|
-
};
|
|
1340
|
-
};
|
|
1341
|
-
|
|
1342
|
-
interface Options$1 {
|
|
1343
|
-
fractionDigits?: number;
|
|
1344
|
-
prefix?: string;
|
|
1345
|
-
suffix?: string;
|
|
1346
|
-
}
|
|
1347
|
-
declare function formattedNumber(value: number | string, options?: Options$1 | undefined): string;
|
|
1348
|
-
|
|
1349
|
-
interface HiveEngineTokenProps {
|
|
1350
|
-
symbol: string;
|
|
1351
|
-
name: string;
|
|
1352
|
-
icon: string;
|
|
1353
|
-
precision: number;
|
|
1354
|
-
stakingEnabled: boolean;
|
|
1355
|
-
delegationEnabled: boolean;
|
|
1356
|
-
balance: string;
|
|
1357
|
-
stake: string;
|
|
1358
|
-
delegationsIn: string;
|
|
1359
|
-
delegationsOut: string;
|
|
1360
|
-
usdValue: number;
|
|
1361
|
-
}
|
|
1362
|
-
declare class HiveEngineToken {
|
|
1363
|
-
symbol: string;
|
|
1364
|
-
name?: string;
|
|
1365
|
-
icon?: string;
|
|
1366
|
-
precision?: number;
|
|
1367
|
-
stakingEnabled?: boolean;
|
|
1368
|
-
delegationEnabled?: boolean;
|
|
1369
|
-
balance: number;
|
|
1370
|
-
stake: number;
|
|
1371
|
-
stakedBalance: number;
|
|
1372
|
-
delegationsIn: number;
|
|
1373
|
-
delegationsOut: number;
|
|
1374
|
-
usdValue: number;
|
|
1375
|
-
constructor(props: HiveEngineTokenProps);
|
|
1376
|
-
hasDelegations: () => boolean;
|
|
1377
|
-
delegations: () => string;
|
|
1378
|
-
staked: () => string;
|
|
1379
|
-
balanced: () => string;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
interface DynamicProps {
|
|
1383
|
-
base: number;
|
|
1384
|
-
quote: number;
|
|
1385
|
-
}
|
|
1386
|
-
/**
|
|
1387
|
-
* Get token balances with USD values
|
|
1388
|
-
* @param account - Account to get balances for
|
|
1389
|
-
* @param dynamicProps - Dynamic props with base/quote for price calculation
|
|
1390
|
-
* @param allTokens - All token metrics for price info
|
|
1391
|
-
*/
|
|
1392
|
-
declare function getHiveEngineBalancesWithUsdQueryOptions(account: string, dynamicProps?: DynamicProps, allTokens?: HiveEngineTokenInfo[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineToken[], Error, HiveEngineToken[], readonly ["assets", "hive-engine", "balances-with-usd", string, DynamicProps | undefined, HiveEngineTokenInfo[] | undefined]>, "queryFn"> & {
|
|
1393
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineToken[], readonly ["assets", "hive-engine", "balances-with-usd", string, DynamicProps | undefined, HiveEngineTokenInfo[] | undefined], never> | undefined;
|
|
1394
|
-
} & {
|
|
1395
|
-
queryKey: readonly ["assets", "hive-engine", "balances-with-usd", string, DynamicProps | undefined, HiveEngineTokenInfo[] | undefined] & {
|
|
1396
|
-
[dataTagSymbol]: HiveEngineToken[];
|
|
1397
|
-
[dataTagErrorSymbol]: Error;
|
|
1398
|
-
};
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
declare function getHiveEngineTokenGeneralInfoQueryOptions(username?: string, symbol?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1402
|
-
name: string;
|
|
1403
|
-
title: string;
|
|
1404
|
-
price: number;
|
|
1405
|
-
accountBalance: number;
|
|
1406
|
-
layer: string;
|
|
1407
|
-
parts: {
|
|
1408
|
-
name: string;
|
|
1409
|
-
balance: number;
|
|
1410
|
-
}[];
|
|
1411
|
-
}, Error, {
|
|
1412
|
-
name: string;
|
|
1413
|
-
title: string;
|
|
1414
|
-
price: number;
|
|
1415
|
-
accountBalance: number;
|
|
1416
|
-
layer: string;
|
|
1417
|
-
parts: {
|
|
1418
|
-
name: string;
|
|
1419
|
-
balance: number;
|
|
1420
|
-
}[];
|
|
1421
|
-
}, (string | undefined)[]>, "queryFn"> & {
|
|
1422
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1423
|
-
name: string;
|
|
1424
|
-
title: string;
|
|
1425
|
-
price: number;
|
|
1426
|
-
accountBalance: number;
|
|
1427
|
-
layer: string;
|
|
1428
|
-
parts: {
|
|
1429
|
-
name: string;
|
|
1430
|
-
balance: number;
|
|
1431
|
-
}[];
|
|
1432
|
-
}, (string | undefined)[], never> | undefined;
|
|
1433
|
-
} & {
|
|
1434
|
-
queryKey: (string | undefined)[] & {
|
|
1435
|
-
[dataTagSymbol]: {
|
|
1436
|
-
name: string;
|
|
1437
|
-
title: string;
|
|
1438
|
-
price: number;
|
|
1439
|
-
accountBalance: number;
|
|
1440
|
-
layer: string;
|
|
1441
|
-
parts: {
|
|
1442
|
-
name: string;
|
|
1443
|
-
balance: number;
|
|
1444
|
-
}[];
|
|
1445
|
-
};
|
|
1446
|
-
[dataTagErrorSymbol]: Error;
|
|
1447
|
-
};
|
|
1448
|
-
};
|
|
1449
|
-
|
|
1450
|
-
declare function getHiveEngineTokensMetadataQueryOptions(tokens: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenMetadataResponse[], Error, HiveEngineTokenMetadataResponse[], readonly ["assets", "hive-engine", "metadata-list", string[]]>, "queryFn"> & {
|
|
1451
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenMetadataResponse[], readonly ["assets", "hive-engine", "metadata-list", string[]], never> | undefined;
|
|
1452
|
-
} & {
|
|
1453
|
-
queryKey: readonly ["assets", "hive-engine", "metadata-list", string[]] & {
|
|
1454
|
-
[dataTagSymbol]: HiveEngineTokenMetadataResponse[];
|
|
1455
|
-
[dataTagErrorSymbol]: Error;
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
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"> & {
|
|
1460
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTransaction[], readonly unknown[], unknown> | undefined;
|
|
1461
|
-
} & {
|
|
1462
|
-
queryKey: readonly unknown[] & {
|
|
1463
|
-
[dataTagSymbol]: _tanstack_react_query.InfiniteData<HiveEngineTransaction[], unknown>;
|
|
1464
|
-
[dataTagErrorSymbol]: Error;
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
|
|
1468
|
-
declare function getHiveEngineTokensMetricsQueryOptions(symbol: string, interval?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineMetric[], Error, HiveEngineMetric[], string[]>, "queryFn"> & {
|
|
1469
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineMetric[], string[], never> | undefined;
|
|
1470
|
-
} & {
|
|
1471
|
-
queryKey: string[] & {
|
|
1472
|
-
[dataTagSymbol]: HiveEngineMetric[];
|
|
1473
|
-
[dataTagErrorSymbol]: Error;
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
|
|
1477
|
-
declare function getHiveEngineTokensMarketQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineMarketResponse[], Error, HiveEngineMarketResponse[], string[]>, "queryFn"> & {
|
|
1478
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineMarketResponse[], string[], never> | undefined;
|
|
1479
|
-
} & {
|
|
1480
|
-
queryKey: string[] & {
|
|
1481
|
-
[dataTagSymbol]: HiveEngineMarketResponse[];
|
|
1482
|
-
[dataTagErrorSymbol]: Error;
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1485
|
-
|
|
1486
|
-
declare function getHiveEngineTokensBalancesQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenBalance[], Error, HiveEngineTokenBalance[], readonly ["assets", "hive-engine", "balances", string]>, "queryFn"> & {
|
|
1487
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenBalance[], readonly ["assets", "hive-engine", "balances", string], never> | undefined;
|
|
1488
|
-
} & {
|
|
1489
|
-
queryKey: readonly ["assets", "hive-engine", "balances", string] & {
|
|
1490
|
-
[dataTagSymbol]: HiveEngineTokenBalance[];
|
|
1491
|
-
[dataTagErrorSymbol]: Error;
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
declare function getHiveEngineUnclaimedRewardsQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenStatus[], Error, HiveEngineTokenStatus[], (string | undefined)[]>, "queryFn"> & {
|
|
1496
|
-
queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenStatus[], (string | undefined)[], never> | undefined;
|
|
1497
|
-
} & {
|
|
1498
|
-
queryKey: (string | undefined)[] & {
|
|
1499
|
-
[dataTagSymbol]: HiveEngineTokenStatus[];
|
|
1500
|
-
[dataTagErrorSymbol]: Error;
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
|
|
1504
|
-
interface DelegateEnginePayload<T extends HiveBasedAssetSignType> {
|
|
1505
|
-
from: string;
|
|
1506
|
-
to: string;
|
|
1507
|
-
amount: string;
|
|
1508
|
-
asset: string;
|
|
1509
|
-
type: T;
|
|
1510
|
-
}
|
|
1511
|
-
declare function delegateEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? DelegateEnginePayload<T> & {
|
|
1512
|
-
key: PrivateKey;
|
|
1513
|
-
} : DelegateEnginePayload<T>, auth?: AuthContext): Promise<any>;
|
|
1514
|
-
|
|
1515
|
-
interface UndelegateEnginePayload<T extends HiveBasedAssetSignType> {
|
|
1516
|
-
from: string;
|
|
1517
|
-
to: string;
|
|
1518
|
-
amount: string;
|
|
1519
|
-
asset: string;
|
|
1520
|
-
type: T;
|
|
1521
|
-
}
|
|
1522
|
-
declare function undelegateEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? UndelegateEnginePayload<T> & {
|
|
1523
|
-
key: PrivateKey;
|
|
1524
|
-
} : UndelegateEnginePayload<T>, auth?: AuthContext): Promise<any>;
|
|
1525
|
-
|
|
1526
|
-
interface StakeEnginePayload<T extends HiveBasedAssetSignType> {
|
|
1527
|
-
from: string;
|
|
1528
|
-
to: string;
|
|
1529
|
-
amount: string;
|
|
1530
|
-
asset: string;
|
|
1531
|
-
type: T;
|
|
1532
|
-
}
|
|
1533
|
-
declare function stakeEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? StakeEnginePayload<T> & {
|
|
1534
|
-
key: PrivateKey;
|
|
1535
|
-
} : StakeEnginePayload<T>, auth?: AuthContext): Promise<any>;
|
|
1536
|
-
|
|
1537
|
-
interface UnstakeEnginePayload<T extends HiveBasedAssetSignType> {
|
|
1538
|
-
from: string;
|
|
1539
|
-
to: string;
|
|
1540
|
-
amount: string;
|
|
1541
|
-
asset: string;
|
|
1542
|
-
type: T;
|
|
1543
|
-
}
|
|
1544
|
-
declare function unstakeEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? UnstakeEnginePayload<T> & {
|
|
1545
|
-
key: PrivateKey;
|
|
1546
|
-
} : UnstakeEnginePayload<T>, auth?: AuthContext): Promise<any>;
|
|
1547
|
-
|
|
1548
|
-
interface TransferEnginePayload<T extends HiveBasedAssetSignType> {
|
|
1549
|
-
from: string;
|
|
1550
|
-
to: string;
|
|
1551
|
-
amount: string;
|
|
1552
|
-
memo: string;
|
|
1553
|
-
asset: string;
|
|
1554
|
-
type: T;
|
|
1555
|
-
}
|
|
1556
|
-
declare function transferEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? TransferEnginePayload<T> & {
|
|
1557
|
-
key: PrivateKey;
|
|
1558
|
-
} : TransferEnginePayload<T>, auth?: AuthContext): Promise<any>;
|
|
1559
|
-
|
|
1560
|
-
type EngineOrderSignMethod = "key" | "keychain" | "hivesigner" | "hiveauth";
|
|
1561
|
-
interface EngineOrderBroadcastOptions {
|
|
1562
|
-
method?: EngineOrderSignMethod;
|
|
1563
|
-
key?: PrivateKey;
|
|
1564
|
-
auth?: AuthContext;
|
|
1565
|
-
}
|
|
1566
|
-
declare const placeHiveEngineBuyOrder: (account: string, symbol: string, quantity: string, price: string, options?: EngineOrderBroadcastOptions) => Promise<any>;
|
|
1567
|
-
declare const placeHiveEngineSellOrder: (account: string, symbol: string, quantity: string, price: string, options?: EngineOrderBroadcastOptions) => Promise<any>;
|
|
1568
|
-
declare const cancelHiveEngineOrder: (account: string, type: "buy" | "sell", orderId: string, options?: EngineOrderBroadcastOptions) => Promise<any>;
|
|
1569
|
-
|
|
1570
|
-
interface ClaimRewardsPayload<T extends HiveBasedAssetSignType> {
|
|
1571
|
-
account: string;
|
|
1572
|
-
tokens: string[];
|
|
1573
|
-
type: T;
|
|
1574
|
-
}
|
|
1575
|
-
declare function claimHiveEngineRewards<T extends HiveBasedAssetSignType>(payload: T extends "key" ? ClaimRewardsPayload<T> & {
|
|
1576
|
-
key: PrivateKey;
|
|
1577
|
-
} : ClaimRewardsPayload<T>, auth?: AuthContext): Promise<any>;
|
|
1578
|
-
|
|
1579
|
-
declare function useClaimPoints(username: string | undefined, accessToken: string | undefined, onSuccess?: () => void, onError?: Parameters<typeof useMutation>["0"]["onError"]): _tanstack_react_query.UseMutationResult<any, unknown, unknown, unknown>;
|
|
1580
|
-
|
|
1581
|
-
type PointsSignType = "key" | "keychain" | "hivesigner" | "hiveauth";
|
|
1582
|
-
interface PointsTransferPayloadBase {
|
|
1583
|
-
from: string;
|
|
1584
|
-
to: string;
|
|
1585
|
-
amount: string;
|
|
1586
|
-
memo: string;
|
|
1587
|
-
type: PointsSignType;
|
|
1588
|
-
}
|
|
1589
|
-
type PointsTransferPayload<T extends PointsSignType> = T extends "key" ? PointsTransferPayloadBase & {
|
|
1590
|
-
key: PrivateKey;
|
|
1591
|
-
} : PointsTransferPayloadBase;
|
|
1592
|
-
declare function transferPoint<T extends PointsSignType>({ from, to, amount, memo, type, ...payload }: PointsTransferPayload<T>, auth?: AuthContext): Promise<unknown>;
|
|
1593
|
-
|
|
1594
|
-
declare function getPointsQueryOptions(username?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1595
|
-
readonly points: any;
|
|
1596
|
-
readonly uPoints: any;
|
|
1597
|
-
}, Error, {
|
|
1598
|
-
readonly points: any;
|
|
1599
|
-
readonly uPoints: any;
|
|
1600
|
-
}, (string | undefined)[]>, "queryFn"> & {
|
|
1601
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1602
|
-
readonly points: any;
|
|
1603
|
-
readonly uPoints: any;
|
|
1604
|
-
}, (string | undefined)[], never> | undefined;
|
|
1605
|
-
} & {
|
|
1606
|
-
queryKey: (string | undefined)[] & {
|
|
1607
|
-
[dataTagSymbol]: {
|
|
1608
|
-
readonly points: any;
|
|
1609
|
-
readonly uPoints: any;
|
|
1610
|
-
};
|
|
1611
|
-
[dataTagErrorSymbol]: Error;
|
|
1612
|
-
};
|
|
1613
|
-
};
|
|
1614
|
-
|
|
1615
|
-
declare function getPointsAssetGeneralInfoQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1616
|
-
name: string;
|
|
1617
|
-
title: string;
|
|
1618
|
-
price: number;
|
|
1619
|
-
accountBalance: number;
|
|
1620
|
-
}, Error, {
|
|
1621
|
-
name: string;
|
|
1622
|
-
title: string;
|
|
1623
|
-
price: number;
|
|
1624
|
-
accountBalance: number;
|
|
1625
|
-
}, string[]>, "queryFn"> & {
|
|
1626
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1627
|
-
name: string;
|
|
1628
|
-
title: string;
|
|
1629
|
-
price: number;
|
|
1630
|
-
accountBalance: number;
|
|
1631
|
-
}, string[], never> | undefined;
|
|
1632
|
-
} & {
|
|
1633
|
-
queryKey: string[] & {
|
|
1634
|
-
[dataTagSymbol]: {
|
|
1635
|
-
name: string;
|
|
1636
|
-
title: string;
|
|
1637
|
-
price: number;
|
|
1638
|
-
accountBalance: number;
|
|
1639
|
-
};
|
|
1640
|
-
[dataTagErrorSymbol]: Error;
|
|
1641
|
-
};
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
|
-
interface PointsResponse {
|
|
1645
|
-
points: string;
|
|
1646
|
-
unclaimed_points: string;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
interface Points {
|
|
1650
|
-
points: string;
|
|
1651
|
-
uPoints: string;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
declare enum PointTransactionType {
|
|
1655
|
-
CHECKIN = 10,
|
|
1656
|
-
LOGIN = 20,
|
|
1657
|
-
CHECKIN_EXTRA = 30,
|
|
1658
|
-
POST = 100,
|
|
1659
|
-
COMMENT = 110,
|
|
1660
|
-
VOTE = 120,
|
|
1661
|
-
REBLOG = 130,
|
|
1662
|
-
DELEGATION = 150,
|
|
1663
|
-
REFERRAL = 160,
|
|
1664
|
-
COMMUNITY = 170,
|
|
1665
|
-
TRANSFER_SENT = 998,
|
|
1666
|
-
TRANSFER_INCOMING = 999,
|
|
1667
|
-
MINTED = 991
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
interface PointTransaction {
|
|
1671
|
-
id: number;
|
|
1672
|
-
type: PointTransactionType;
|
|
1673
|
-
created: string;
|
|
1674
|
-
memo: string | null;
|
|
1675
|
-
amount: string;
|
|
1676
|
-
sender: string | null;
|
|
1677
|
-
receiver: string | null;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
declare function getPointsAssetTransactionsQueryOptions(username: string | undefined, type?: PointTransactionType): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1681
|
-
created: Date;
|
|
1682
|
-
type: PointTransactionType;
|
|
1683
|
-
results: {
|
|
1684
|
-
amount: number;
|
|
1685
|
-
asset: string;
|
|
1686
|
-
}[];
|
|
1687
|
-
id: number;
|
|
1688
|
-
from: string | undefined;
|
|
1689
|
-
to: string | undefined;
|
|
1690
|
-
memo: string | undefined;
|
|
1691
|
-
}[], Error, {
|
|
1692
|
-
created: Date;
|
|
1693
|
-
type: PointTransactionType;
|
|
1694
|
-
results: {
|
|
1695
|
-
amount: number;
|
|
1696
|
-
asset: string;
|
|
1697
|
-
}[];
|
|
1698
|
-
id: number;
|
|
1699
|
-
from: string | undefined;
|
|
1700
|
-
to: string | undefined;
|
|
1701
|
-
memo: string | undefined;
|
|
1702
|
-
}[], (string | PointTransactionType | undefined)[]>, "queryFn"> & {
|
|
1703
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1704
|
-
created: Date;
|
|
1705
|
-
type: PointTransactionType;
|
|
1706
|
-
results: {
|
|
1707
|
-
amount: number;
|
|
1708
|
-
asset: string;
|
|
1709
|
-
}[];
|
|
1710
|
-
id: number;
|
|
1711
|
-
from: string | undefined;
|
|
1712
|
-
to: string | undefined;
|
|
1713
|
-
memo: string | undefined;
|
|
1714
|
-
}[], (string | PointTransactionType | undefined)[], never> | undefined;
|
|
1715
|
-
} & {
|
|
1716
|
-
queryKey: (string | PointTransactionType | undefined)[] & {
|
|
1717
|
-
[dataTagSymbol]: {
|
|
1718
|
-
created: Date;
|
|
1719
|
-
type: PointTransactionType;
|
|
1720
|
-
results: {
|
|
1721
|
-
amount: number;
|
|
1722
|
-
asset: string;
|
|
1723
|
-
}[];
|
|
1724
|
-
id: number;
|
|
1725
|
-
from: string | undefined;
|
|
1726
|
-
to: string | undefined;
|
|
1727
|
-
memo: string | undefined;
|
|
1728
|
-
}[];
|
|
1729
|
-
[dataTagErrorSymbol]: Error;
|
|
1730
|
-
};
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
declare function useWalletOperation(username: string, asset: string, operation: AssetOperation, auth?: AuthContext): _tanstack_react_query.UseMutationResult<any, Error, Record<string, unknown>, unknown>;
|
|
1734
|
-
|
|
1735
128
|
interface ExternalWalletBalance {
|
|
1736
129
|
chain: string;
|
|
1737
130
|
unit: string;
|
|
@@ -1800,19 +193,6 @@ declare function getAccountWalletListQueryOptions(username: string, currency?: s
|
|
|
1800
193
|
};
|
|
1801
194
|
};
|
|
1802
195
|
|
|
1803
|
-
interface Options {
|
|
1804
|
-
refetch: boolean;
|
|
1805
|
-
currency?: string;
|
|
1806
|
-
}
|
|
1807
|
-
declare function getAccountWalletAssetInfoQueryOptions(username: string, asset: string, options?: Options): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GeneralAssetInfo | undefined, Error, GeneralAssetInfo | undefined, string[]>, "queryFn"> & {
|
|
1808
|
-
queryFn?: _tanstack_react_query.QueryFunction<GeneralAssetInfo | undefined, string[], never> | undefined;
|
|
1809
|
-
} & {
|
|
1810
|
-
queryKey: string[] & {
|
|
1811
|
-
[dataTagSymbol]: GeneralAssetInfo | undefined;
|
|
1812
|
-
[dataTagErrorSymbol]: Error;
|
|
1813
|
-
};
|
|
1814
|
-
};
|
|
1815
|
-
|
|
1816
196
|
declare function getTokenOperationsQueryOptions(token: string, username: string, isForOwner?: boolean, currency?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AssetOperation[], Error, AssetOperation[], (string | boolean)[]>, "queryFn"> & {
|
|
1817
197
|
queryFn?: _tanstack_react_query.QueryFunction<AssetOperation[], (string | boolean)[], never> | undefined;
|
|
1818
198
|
} & {
|
|
@@ -1824,21 +204,6 @@ declare function getTokenOperationsQueryOptions(token: string, username: string,
|
|
|
1824
204
|
|
|
1825
205
|
declare function useWalletsCacheQuery(username?: string): _tanstack_react_query.DefinedUseQueryResult<Map<EcencyWalletCurrency, EcencyTokenMetadata>, Error>;
|
|
1826
206
|
|
|
1827
|
-
type VisionPortfolioWalletItem = PortfolioWalletItem;
|
|
1828
|
-
type VisionPortfolioResponse = PortfolioResponse;
|
|
1829
|
-
/**
|
|
1830
|
-
* @deprecated Use getPortfolioQueryOptions from @ecency/sdk instead
|
|
1831
|
-
* This wrapper is maintained for backwards compatibility
|
|
1832
|
-
*/
|
|
1833
|
-
declare function getVisionPortfolioQueryOptions(username: string, currency?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PortfolioResponse, Error, PortfolioResponse, string[]>, "queryFn"> & {
|
|
1834
|
-
queryFn?: _tanstack_react_query.QueryFunction<PortfolioResponse, string[], never> | undefined;
|
|
1835
|
-
} & {
|
|
1836
|
-
queryKey: string[] & {
|
|
1837
|
-
[dataTagSymbol]: PortfolioResponse;
|
|
1838
|
-
[dataTagErrorSymbol]: Error;
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
|
|
1842
207
|
declare function delay(ms: number): Promise<unknown>;
|
|
1843
208
|
|
|
1844
209
|
declare function getWallet(currency: EcencyWalletCurrency): BaseWallet | undefined;
|
|
@@ -1907,7 +272,7 @@ declare function signTx(tx: Transaction, privateKey: string, chainId?: string):
|
|
|
1907
272
|
* @param chainId Optional chain id as a hex string.
|
|
1908
273
|
* @returns Broadcast confirmation.
|
|
1909
274
|
*/
|
|
1910
|
-
declare function signTxAndBroadcast(client: Client, tx: Transaction, privateKey: string, chainId?: string): Promise<TransactionConfirmation
|
|
275
|
+
declare function signTxAndBroadcast(client: Client, tx: Transaction, privateKey: string, chainId?: string): Promise<TransactionConfirmation>;
|
|
1911
276
|
|
|
1912
277
|
/**
|
|
1913
278
|
* Encrypt a memo using explicit keys.
|
|
@@ -1998,4 +363,4 @@ declare function buildExternalTx(currency: EcencyWalletCurrency, tx: ExternalTxP
|
|
|
1998
363
|
|
|
1999
364
|
declare function getBoundFetch(): typeof fetch;
|
|
2000
365
|
|
|
2001
|
-
export { type AccountPointsResponse, type
|
|
366
|
+
export { type AccountPointsResponse, type EcencyHiveKeys, type EcencyTokenMetadata, EcencyWalletBasicTokens, EcencyWalletCurrency, index as EcencyWalletsPrivateApi, type ExternalTxParams, type ExternalWalletBalance, type HiveKeyDerivation, type HiveRole, buildAptTx, buildEthTx, buildExternalTx, buildPsbt, buildSolTx, buildTonTx, buildTronTx, decryptMemoWithAccounts, decryptMemoWithKeys, delay, deriveHiveKey, deriveHiveKeys, deriveHiveMasterPasswordKey, deriveHiveMasterPasswordKeys, detectHiveKeyDerivation, encryptMemoWithAccounts, encryptMemoWithKeys, getAccountWalletListQueryOptions, getAllTokensListQueryOptions, getBoundFetch, getTokenOperationsQueryOptions, getTokenPriceQueryOptions, getWallet, mnemonicToSeedBip39, signDigest, signExternalTx, signExternalTxAndBroadcast, signTx, signTxAndBroadcast, useGetExternalWalletBalanceQuery, useHiveKeysQuery, useImportWallet, useSaveWalletInformationToMetadata, useSeedPhrase, useWalletCreate, useWalletsCacheQuery };
|