@ecency/wallets 1.4.1 → 1.4.5

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 (170) hide show
  1. package/dist/browser/index.d.ts +1643 -0
  2. package/dist/browser/index.js +3328 -0
  3. package/dist/browser/index.js.map +1 -0
  4. package/dist/index.browser.mjs +3338 -0
  5. package/dist/index.browser.mjs.map +1 -0
  6. package/dist/index.cjs +3453 -0
  7. package/dist/index.cjs.map +1 -0
  8. package/dist/index.d.ts +1643 -2
  9. package/dist/index.mjs +3338 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/dist/node/index.cjs +3443 -0
  12. package/dist/node/index.cjs.map +1 -0
  13. package/dist/node/index.mjs +3328 -0
  14. package/dist/node/index.mjs.map +1 -0
  15. package/package.json +58 -28
  16. package/dist/ecency-sdk.es.js +0 -23225
  17. package/dist/internal/scrypt-guard.d.ts +0 -1
  18. package/dist/modules/assets/external/apt/get-apt-asset-balance-query-options.d.ts +0 -8
  19. package/dist/modules/assets/external/apt/get-apt-asset-general-info-query-options.d.ts +0 -28
  20. package/dist/modules/assets/external/apt/index.d.ts +0 -2
  21. package/dist/modules/assets/external/bnb/get-bnb-asset-balance-query-options.d.ts +0 -8
  22. package/dist/modules/assets/external/bnb/get-bnb-asset-general-info-query-options.d.ts +0 -28
  23. package/dist/modules/assets/external/bnb/index.d.ts +0 -2
  24. package/dist/modules/assets/external/btc/get-btc-asset-balance-query-options.d.ts +0 -8
  25. package/dist/modules/assets/external/btc/get-btc-asset-general-info-query-options.d.ts +0 -28
  26. package/dist/modules/assets/external/btc/index.d.ts +0 -2
  27. package/dist/modules/assets/external/common/index.d.ts +0 -1
  28. package/dist/modules/assets/external/common/parse-private-api-balance.d.ts +0 -23
  29. package/dist/modules/assets/external/eth/get-eth-asset-balance-query-options.d.ts +0 -8
  30. package/dist/modules/assets/external/eth/get-eth-asset-general-info-query-options.d.ts +0 -28
  31. package/dist/modules/assets/external/eth/index.d.ts +0 -2
  32. package/dist/modules/assets/external/index.d.ts +0 -7
  33. package/dist/modules/assets/external/sol/get-sol-asset-balance-query-options.d.ts +0 -8
  34. package/dist/modules/assets/external/sol/get-sol-asset-general-info-query-options.d.ts +0 -28
  35. package/dist/modules/assets/external/sol/index.d.ts +0 -2
  36. package/dist/modules/assets/external/ton/get-ton-asset-balance-query-options.d.ts +0 -8
  37. package/dist/modules/assets/external/ton/get-ton-asset-general-info-query-options.d.ts +0 -28
  38. package/dist/modules/assets/external/ton/index.d.ts +0 -2
  39. package/dist/modules/assets/external/tron/get-tron-asset-balance-query-options.d.ts +0 -8
  40. package/dist/modules/assets/external/tron/get-tron-asset-general-info-query-options.d.ts +0 -28
  41. package/dist/modules/assets/external/tron/index.d.ts +0 -2
  42. package/dist/modules/assets/hive/consts/hive-account-operation-groups.d.ts +0 -2
  43. package/dist/modules/assets/hive/consts/index.d.ts +0 -1
  44. package/dist/modules/assets/hive/index.d.ts +0 -2
  45. package/dist/modules/assets/hive/mutations/claim-rewards.d.ts +0 -1
  46. package/dist/modules/assets/hive/mutations/delegate.d.ts +0 -13
  47. package/dist/modules/assets/hive/mutations/index.d.ts +0 -7
  48. package/dist/modules/assets/hive/mutations/power-down.d.ts +0 -11
  49. package/dist/modules/assets/hive/mutations/power-up.d.ts +0 -13
  50. package/dist/modules/assets/hive/mutations/transfer-to-savings.d.ts +0 -13
  51. package/dist/modules/assets/hive/mutations/transfer.d.ts +0 -12
  52. package/dist/modules/assets/hive/mutations/withdraw-route.d.ts +0 -13
  53. package/dist/modules/assets/hive/queries/get-hbd-asset-general-info-query-options.d.ts +0 -76
  54. package/dist/modules/assets/hive/queries/get-hbd-asset-transactions-query-options.d.ts +0 -9
  55. package/dist/modules/assets/hive/queries/get-hive-asset-general-info-query-options.d.ts +0 -28
  56. package/dist/modules/assets/hive/queries/get-hive-asset-metric-query-options.d.ts +0 -43
  57. package/dist/modules/assets/hive/queries/get-hive-asset-transactions-query-options.d.ts +0 -9
  58. package/dist/modules/assets/hive/queries/get-hive-asset-withdrawal-routes-query-options.d.ts +0 -9
  59. package/dist/modules/assets/hive/queries/get-hive-power-asset-general-info-query-options.d.ts +0 -76
  60. package/dist/modules/assets/hive/queries/get-hive-power-asset-transactions-query-options.d.ts +0 -9
  61. package/dist/modules/assets/hive/queries/get-hive-power-delegates-query-options.d.ts +0 -9
  62. package/dist/modules/assets/hive/queries/get-hive-power-delegatings-query-options.d.ts +0 -9
  63. package/dist/modules/assets/hive/queries/index.d.ts +0 -10
  64. package/dist/modules/assets/hive/types/delegated-vesting-share.d.ts +0 -7
  65. package/dist/modules/assets/hive/types/hive-market-metric.d.ts +0 -19
  66. package/dist/modules/assets/hive/types/hive-operation-group.d.ts +0 -1
  67. package/dist/modules/assets/hive/types/hive-transaction.d.ts +0 -198
  68. package/dist/modules/assets/hive/types/hive-withdraw-route.d.ts +0 -7
  69. package/dist/modules/assets/hive/types/index.d.ts +0 -6
  70. package/dist/modules/assets/hive/types/received-vesting-share.d.ts +0 -6
  71. package/dist/modules/assets/hive-engine/index.d.ts +0 -3
  72. package/dist/modules/assets/hive-engine/mutations/delegate.d.ts +0 -12
  73. package/dist/modules/assets/hive-engine/mutations/index.d.ts +0 -5
  74. package/dist/modules/assets/hive-engine/mutations/stake.d.ts +0 -12
  75. package/dist/modules/assets/hive-engine/mutations/transfer.d.ts +0 -13
  76. package/dist/modules/assets/hive-engine/mutations/undelegate.d.ts +0 -12
  77. package/dist/modules/assets/hive-engine/mutations/unstake.d.ts +0 -12
  78. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-general-info-query-options.d.ts +0 -32
  79. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-metrics-query-options.d.ts +0 -9
  80. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-transactions-query-options.d.ts +0 -9
  81. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-balances-query-options.d.ts +0 -9
  82. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-market-query-options.d.ts +0 -9
  83. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.d.ts +0 -9
  84. package/dist/modules/assets/hive-engine/queries/index.d.ts +0 -6
  85. package/dist/modules/assets/hive-engine/types/hive-engine-list-response.d.ts +0 -13
  86. package/dist/modules/assets/hive-engine/types/hive-engine-metric.d.ts +0 -9
  87. package/dist/modules/assets/hive-engine/types/hive-engine-token-balance.d.ts +0 -10
  88. package/dist/modules/assets/hive-engine/types/hive-engine-token-metadata-response.d.ts +0 -16
  89. package/dist/modules/assets/hive-engine/types/hive-engine-transaction.d.ts +0 -14
  90. package/dist/modules/assets/hive-engine/types/index.d.ts +0 -6
  91. package/dist/modules/assets/index.d.ts +0 -6
  92. package/dist/modules/assets/points/index.d.ts +0 -3
  93. package/dist/modules/assets/points/mutations/claim-points.d.ts +0 -2
  94. package/dist/modules/assets/points/mutations/gift.d.ts +0 -14
  95. package/dist/modules/assets/points/mutations/index.d.ts +0 -2
  96. package/dist/modules/assets/points/queries/get-points-asset-general-info-query-options.d.ts +0 -28
  97. package/dist/modules/assets/points/queries/get-points-asset-transactions-query-options.d.ts +0 -41
  98. package/dist/modules/assets/points/queries/get-points-query-options.d.ts +0 -20
  99. package/dist/modules/assets/points/queries/index.d.ts +0 -3
  100. package/dist/modules/assets/points/types/index.d.ts +0 -4
  101. package/dist/modules/assets/points/types/point-transaction-type.d.ts +0 -15
  102. package/dist/modules/assets/points/types/point-transaction.d.ts +0 -10
  103. package/dist/modules/assets/points/types/points-response.d.ts +0 -4
  104. package/dist/modules/assets/points/types/points.d.ts +0 -4
  105. package/dist/modules/assets/spk/index.d.ts +0 -2
  106. package/dist/modules/assets/spk/mutations/index.d.ts +0 -4
  107. package/dist/modules/assets/spk/mutations/lock.d.ts +0 -12
  108. package/dist/modules/assets/spk/mutations/power-up.d.ts +0 -12
  109. package/dist/modules/assets/spk/mutations/transfer.d.ts +0 -14
  110. package/dist/modules/assets/spk/queries/get-larynx-asset-general-info-query-options.d.ts +0 -56
  111. package/dist/modules/assets/spk/queries/get-larynx-power-asset-general-info-query-options.d.ts +0 -76
  112. package/dist/modules/assets/spk/queries/get-spk-asset-general-info-query-options.d.ts +0 -28
  113. package/dist/modules/assets/spk/queries/get-spk-markets-query-options.d.ts +0 -33
  114. package/dist/modules/assets/spk/queries/get-spk-wallet-query-options.d.ts +0 -9
  115. package/dist/modules/assets/spk/queries/index.d.ts +0 -4
  116. package/dist/modules/assets/types/asset-operation.d.ts +0 -17
  117. package/dist/modules/assets/types/general-asset-info.d.ts +0 -12
  118. package/dist/modules/assets/types/general-asset-transaction.d.ts +0 -13
  119. package/dist/modules/assets/types/hive-based-asset-sign-type.d.ts +0 -1
  120. package/dist/modules/assets/types/index.d.ts +0 -5
  121. package/dist/modules/assets/types/spk-wallet.d.ts +0 -60
  122. package/dist/modules/assets/utils/index.d.ts +0 -4
  123. package/dist/modules/assets/utils/is-empty-date.d.ts +0 -1
  124. package/dist/modules/assets/utils/parse-asset.d.ts +0 -17
  125. package/dist/modules/assets/utils/reward-spk.d.ts +0 -2
  126. package/dist/modules/assets/utils/vests-to-hp.d.ts +0 -1
  127. package/dist/modules/wallets/consts/hive-engine-tokens.d.ts +0 -1
  128. package/dist/modules/wallets/consts/index.d.ts +0 -1
  129. package/dist/modules/wallets/enums/ecency-wallet-basic-tokens.d.ts +0 -7
  130. package/dist/modules/wallets/enums/ecency-wallet-currency.d.ts +0 -9
  131. package/dist/modules/wallets/enums/index.d.ts +0 -2
  132. package/dist/modules/wallets/functions/get-keys-from-seed.d.ts +0 -3
  133. package/dist/modules/wallets/functions/index.d.ts +0 -1
  134. package/dist/modules/wallets/index.d.ts +0 -5
  135. package/dist/modules/wallets/mutations/index.d.ts +0 -5
  136. package/dist/modules/wallets/mutations/private-api/check-wallet-existence.d.ts +0 -7
  137. package/dist/modules/wallets/mutations/private-api/create-account-with-wallets.d.ts +0 -6
  138. package/dist/modules/wallets/mutations/private-api/index.d.ts +0 -2
  139. package/dist/modules/wallets/mutations/private-api-namespace.d.ts +0 -2
  140. package/dist/modules/wallets/mutations/save-wallet-information-to-metadata.d.ts +0 -9
  141. package/dist/modules/wallets/mutations/use-import-wallet.d.ts +0 -15
  142. package/dist/modules/wallets/mutations/use-wallet-create.d.ts +0 -11
  143. package/dist/modules/wallets/mutations/wallet-operation.d.ts +0 -2
  144. package/dist/modules/wallets/queries/get-account-wallet-asset-info-query-options.d.ts +0 -13
  145. package/dist/modules/wallets/queries/get-all-tokens-list-query-options.d.ts +0 -30
  146. package/dist/modules/wallets/queries/get-coingecko-price-query-options.d.ts +0 -8
  147. package/dist/modules/wallets/queries/get-tokens-operations-query-options.d.ts +0 -9
  148. package/dist/modules/wallets/queries/index.d.ts +0 -8
  149. package/dist/modules/wallets/queries/use-get-account-wallet-list-query.d.ts +0 -8
  150. package/dist/modules/wallets/queries/use-get-external-wallet-query.d.ts +0 -17
  151. package/dist/modules/wallets/queries/use-hive-keys-query.d.ts +0 -2
  152. package/dist/modules/wallets/queries/use-seed-phrase.d.ts +0 -1
  153. package/dist/modules/wallets/types/account-points-response.d.ts +0 -4
  154. package/dist/modules/wallets/types/ecency-create-wallet-information.d.ts +0 -13
  155. package/dist/modules/wallets/types/ecency-hive-keys.d.ts +0 -12
  156. package/dist/modules/wallets/types/index.d.ts +0 -3
  157. package/dist/modules/wallets/utils/build-external-transaction.d.ts +0 -48
  158. package/dist/modules/wallets/utils/decrypt-memo.d.ts +0 -12
  159. package/dist/modules/wallets/utils/delay.d.ts +0 -1
  160. package/dist/modules/wallets/utils/derive-hive-bip44-keys.d.ts +0 -15
  161. package/dist/modules/wallets/utils/derive-hive-master-password-keys.d.ts +0 -15
  162. package/dist/modules/wallets/utils/detect-hive-key-derivation.d.ts +0 -2
  163. package/dist/modules/wallets/utils/encrypt-memo.d.ts +0 -16
  164. package/dist/modules/wallets/utils/get-wallet.d.ts +0 -3
  165. package/dist/modules/wallets/utils/index.d.ts +0 -12
  166. package/dist/modules/wallets/utils/mnemonic-to-seed-bip-39.d.ts +0 -1
  167. package/dist/modules/wallets/utils/sign-digest.d.ts +0 -7
  168. package/dist/modules/wallets/utils/sign-external-transaction.d.ts +0 -18
  169. package/dist/modules/wallets/utils/sign-transaction.d.ts +0 -23
  170. package/dist/vite.config.d.ts +0 -2
@@ -1,76 +0,0 @@
1
- export declare function getHivePowerAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
- name: string;
3
- title: string;
4
- price: number;
5
- accountBalance: number;
6
- apr?: undefined;
7
- parts?: undefined;
8
- } | {
9
- name: string;
10
- title: string;
11
- price: number;
12
- accountBalance: number;
13
- apr: string;
14
- parts: {
15
- name: string;
16
- balance: number;
17
- }[];
18
- }, Error, {
19
- name: string;
20
- title: string;
21
- price: number;
22
- accountBalance: number;
23
- apr?: undefined;
24
- parts?: undefined;
25
- } | {
26
- name: string;
27
- title: string;
28
- price: number;
29
- accountBalance: number;
30
- apr: string;
31
- parts: {
32
- name: string;
33
- balance: number;
34
- }[];
35
- }, string[]>, "queryFn"> & {
36
- queryFn?: import('@tanstack/query-core').QueryFunction<{
37
- name: string;
38
- title: string;
39
- price: number;
40
- accountBalance: number;
41
- apr?: undefined;
42
- parts?: undefined;
43
- } | {
44
- name: string;
45
- title: string;
46
- price: number;
47
- accountBalance: number;
48
- apr: string;
49
- parts: {
50
- name: string;
51
- balance: number;
52
- }[];
53
- }, string[], never> | undefined;
54
- } & {
55
- queryKey: string[] & {
56
- [dataTagSymbol]: {
57
- name: string;
58
- title: string;
59
- price: number;
60
- accountBalance: number;
61
- apr?: undefined;
62
- parts?: undefined;
63
- } | {
64
- name: string;
65
- title: string;
66
- price: number;
67
- accountBalance: number;
68
- apr: string;
69
- parts: {
70
- name: string;
71
- balance: number;
72
- }[];
73
- };
74
- [dataTagErrorSymbol]: Error;
75
- };
76
- };
@@ -1,9 +0,0 @@
1
- import { HiveOperationGroup, HiveTransaction } from '../types';
2
- export declare function getHivePowerAssetTransactionsQueryOptions(username: string | undefined, limit: number | undefined, group: HiveOperationGroup): import('@tanstack/react-query').UseInfiniteQueryOptions<HiveTransaction[], Error, import('@tanstack/query-core').InfiniteData<HiveTransaction[], unknown>, HiveTransaction[], readonly unknown[], unknown> & {
3
- initialData: import('@tanstack/query-core').InfiniteData<HiveTransaction[], unknown> | (() => import('@tanstack/query-core').InfiniteData<HiveTransaction[], unknown>) | undefined;
4
- } & {
5
- queryKey: readonly unknown[] & {
6
- [dataTagSymbol]: import('@tanstack/query-core').InfiniteData<HiveTransaction[], unknown>;
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,9 +0,0 @@
1
- import { DelegatedVestingShare } from '../types';
2
- export declare function getHivePowerDelegatesInfiniteQueryOptions(username: string, limit?: number): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<DelegatedVestingShare[], Error, DelegatedVestingShare[], string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<DelegatedVestingShare[], string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: DelegatedVestingShare[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,9 +0,0 @@
1
- import { ReceivedVestingShare } from '../types';
2
- export declare function getHivePowerDelegatingsQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ReceivedVestingShare[], Error, ReceivedVestingShare[], string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<ReceivedVestingShare[], string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: ReceivedVestingShare[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,10 +0,0 @@
1
- export * from './get-hive-asset-general-info-query-options';
2
- export * from './get-hive-power-asset-general-info-query-options';
3
- export * from './get-hbd-asset-general-info-query-options';
4
- export * from './get-hive-asset-transactions-query-options';
5
- export * from './get-hive-power-asset-transactions-query-options';
6
- export * from './get-hbd-asset-transactions-query-options';
7
- export * from './get-hive-asset-metric-query-options';
8
- export * from './get-hive-asset-withdrawal-routes-query-options.ts';
9
- export * from './get-hive-power-delegates-query-options.ts';
10
- export * from './get-hive-power-delegatings-query-options.ts';
@@ -1,7 +0,0 @@
1
- export interface DelegatedVestingShare {
2
- id: number;
3
- delegatee: string;
4
- delegator: string;
5
- min_delegation_time: string;
6
- vesting_shares: string;
7
- }
@@ -1,19 +0,0 @@
1
- export interface HiveMarketMetric {
2
- hive: {
3
- high: number;
4
- low: number;
5
- open: number;
6
- close: number;
7
- volume: number;
8
- };
9
- id: number;
10
- non_hive: {
11
- high: number;
12
- low: number;
13
- open: number;
14
- close: number;
15
- volume: number;
16
- };
17
- open: string;
18
- seconds: number;
19
- }
@@ -1 +0,0 @@
1
- export type HiveOperationGroup = "" | "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
@@ -1,198 +0,0 @@
1
- import { SMTAsset } from '@hiveio/dhive';
2
- interface BaseTransaction {
3
- num: number;
4
- type: string;
5
- timestamp: string;
6
- trx_id: string;
7
- }
8
- export interface CurationReward extends BaseTransaction {
9
- type: "curation_reward";
10
- comment_author?: string;
11
- comment_permlink?: string;
12
- author?: string;
13
- permlink?: string;
14
- curator: string;
15
- reward: string;
16
- }
17
- export interface AuthorReward extends BaseTransaction {
18
- type: "author_reward";
19
- author: string;
20
- permlink: string;
21
- hbd_payout: string;
22
- hive_payout: string;
23
- vesting_payout: string;
24
- }
25
- export interface CommentBenefactor extends BaseTransaction {
26
- type: "comment_benefactor_reward";
27
- benefactor: string;
28
- author: string;
29
- permlink: string;
30
- hbd_payout: string;
31
- hive_payout: string;
32
- vesting_payout: string;
33
- }
34
- export interface ClaimRewardBalance extends BaseTransaction {
35
- type: "claim_reward_balance";
36
- account: string;
37
- reward_hbd: string;
38
- reward_hive: string;
39
- reward_vests: string;
40
- }
41
- export interface Transfer extends BaseTransaction {
42
- type: "transfer";
43
- amount: string;
44
- memo: string;
45
- from: string;
46
- to: string;
47
- }
48
- export interface TransferToVesting extends BaseTransaction {
49
- type: "transfer_to_vesting";
50
- amount: string;
51
- memo?: string;
52
- from: string;
53
- to: string;
54
- }
55
- export interface SetWithdrawRoute extends BaseTransaction {
56
- type: "set_withdraw_vesting_route";
57
- from_account: string;
58
- to_account: string;
59
- percent: number;
60
- auto_vest: boolean;
61
- }
62
- export interface TransferToSavings extends BaseTransaction {
63
- type: "transfer_to_savings";
64
- amount: string;
65
- memo?: string;
66
- from: string;
67
- to: string;
68
- }
69
- export interface CancelTransferFromSavings extends BaseTransaction {
70
- from: string;
71
- request_id: number;
72
- type: "cancel_transfer_from_savings";
73
- }
74
- export interface WithdrawVesting extends BaseTransaction {
75
- type: "withdraw_vesting";
76
- acc: string;
77
- vesting_shares: string;
78
- }
79
- export interface FillOrder extends BaseTransaction {
80
- type: "fill_order";
81
- current_pays: string;
82
- open_pays: string;
83
- }
84
- export interface LimitOrderCancel extends BaseTransaction {
85
- type: "limit_order_cancel";
86
- owner: string;
87
- orderid: number;
88
- num: number;
89
- }
90
- export interface ProducerReward extends BaseTransaction {
91
- type: "producer_reward";
92
- vesting_shares: string;
93
- producer: string;
94
- }
95
- export interface Interest extends BaseTransaction {
96
- type: "interest";
97
- owner: string;
98
- interest: string;
99
- }
100
- export interface FillConvertRequest extends BaseTransaction {
101
- type: "fill_convert_request";
102
- amount_in: string;
103
- amount_out: string;
104
- }
105
- export interface FillCollateralizedConvertRequest extends BaseTransaction {
106
- type: "fill_collateralized_convert_request";
107
- owner: string;
108
- requestid: number;
109
- amount_in: string;
110
- amount_out: string;
111
- excess_collateral: string;
112
- }
113
- export interface ReturnVestingDelegation extends BaseTransaction {
114
- type: "return_vesting_delegation";
115
- vesting_shares: string;
116
- }
117
- export interface ProposalPay extends BaseTransaction {
118
- type: "proposal_pay";
119
- payment: string;
120
- }
121
- export interface UpdateProposalVotes extends BaseTransaction {
122
- type: "update_proposal_votes";
123
- voter: string;
124
- proposal_ids: [number];
125
- approve: boolean;
126
- }
127
- export interface CommentPayoutUpdate extends BaseTransaction {
128
- type: "comment_payout_update";
129
- author: string;
130
- permlink: string;
131
- }
132
- export interface CommentReward extends BaseTransaction {
133
- type: "comment_reward";
134
- author: string;
135
- permlink: string;
136
- payout: string;
137
- }
138
- export interface CollateralizedConvert extends BaseTransaction {
139
- type: "collateralized_convert";
140
- owner: string;
141
- requestid: number;
142
- amount: string;
143
- }
144
- export interface RecurrentTransfers extends BaseTransaction {
145
- type: "recurrent_transfer";
146
- amount: string;
147
- memo: string;
148
- from: string;
149
- to: string;
150
- recurrence: number;
151
- executions: number;
152
- }
153
- export interface FillRecurrentTransfers extends BaseTransaction {
154
- type: "fill_recurrent_transfer";
155
- amount: SMTAsset;
156
- memo: string;
157
- from: string;
158
- to: string;
159
- remaining_executions: number;
160
- }
161
- export interface DelegateVestingShares extends BaseTransaction {
162
- type: "delegate_vesting_shares";
163
- delegator: string;
164
- delegatee: string;
165
- vesting_shares: string;
166
- }
167
- export interface LimitOrderCreate extends BaseTransaction {
168
- type: "limit_order_create";
169
- owner: string;
170
- orderid: number;
171
- amount_to_sell: string;
172
- min_to_receive: string;
173
- expiration: string;
174
- }
175
- export interface FillVestingWithdraw extends BaseTransaction {
176
- type: "fill_vesting_withdraw";
177
- from_account: string;
178
- to_account: string;
179
- withdrawn: string;
180
- deposited: string;
181
- }
182
- export interface EffectiveCommentVote extends BaseTransaction {
183
- type: "effective_comment_vote";
184
- voter: string;
185
- author: string;
186
- permlink: string;
187
- pending_payout: string;
188
- total_vote_weight: number;
189
- rshares: number;
190
- weight: number;
191
- }
192
- export interface VoteProxy extends BaseTransaction {
193
- type: "account_witness_proxy";
194
- account: string;
195
- proxy: string;
196
- }
197
- export 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;
198
- export {};
@@ -1,7 +0,0 @@
1
- export interface HiveWithdrawRoute {
2
- auto_vest: boolean;
3
- from_account: string;
4
- id: number;
5
- percent: number;
6
- to_account: string;
7
- }
@@ -1,6 +0,0 @@
1
- export * from './hive-operation-group';
2
- export * from './hive-transaction';
3
- export * from './hive-market-metric';
4
- export * from './hive-withdraw-route';
5
- export * from './delegated-vesting-share';
6
- export * from './received-vesting-share';
@@ -1,6 +0,0 @@
1
- export interface ReceivedVestingShare {
2
- delegatee: string;
3
- delegator: string;
4
- timestamp: string;
5
- vesting_shares: string;
6
- }
@@ -1,3 +0,0 @@
1
- export * from './queries';
2
- export * from './types';
3
- export * from './mutations';
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- export interface DelegateEnginePayload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- asset: string;
8
- type: T;
9
- }
10
- export declare function delegateEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? DelegateEnginePayload<T> & {
11
- key: PrivateKey;
12
- } : DelegateEnginePayload<T>): Promise<unknown>;
@@ -1,5 +0,0 @@
1
- export * from './delegate';
2
- export * from './undelegate';
3
- export * from './stake';
4
- export * from './unstake';
5
- export * from './transfer';
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- export interface StakeEnginePayload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- asset: string;
8
- type: T;
9
- }
10
- export declare function stakeEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? StakeEnginePayload<T> & {
11
- key: PrivateKey;
12
- } : StakeEnginePayload<T>): Promise<unknown>;
@@ -1,13 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- export interface TransferEnginePayload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- memo: string;
8
- asset: string;
9
- type: T;
10
- }
11
- export declare function transferEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? TransferEnginePayload<T> & {
12
- key: PrivateKey;
13
- } : TransferEnginePayload<T>): Promise<unknown>;
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- export interface UndelegateEnginePayload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- asset: string;
8
- type: T;
9
- }
10
- export declare function undelegateEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? UndelegateEnginePayload<T> & {
11
- key: PrivateKey;
12
- } : UndelegateEnginePayload<T>): Promise<unknown>;
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- export interface UnstakeEnginePayload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- asset: string;
8
- type: T;
9
- }
10
- export declare function unstakeEngineToken<T extends HiveBasedAssetSignType>(payload: T extends "key" ? UnstakeEnginePayload<T> & {
11
- key: PrivateKey;
12
- } : UnstakeEnginePayload<T>): Promise<unknown>;
@@ -1,32 +0,0 @@
1
- export declare function getHiveEngineTokenGeneralInfoQueryOptions(username?: string, symbol?: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
- name: string;
3
- title: string;
4
- price: number;
5
- accountBalance: number;
6
- layer: string;
7
- }, Error, {
8
- name: string;
9
- title: string;
10
- price: number;
11
- accountBalance: number;
12
- layer: string;
13
- }, (string | undefined)[]>, "queryFn"> & {
14
- queryFn?: import('@tanstack/query-core').QueryFunction<{
15
- name: string;
16
- title: string;
17
- price: number;
18
- accountBalance: number;
19
- layer: string;
20
- }, (string | undefined)[], never> | undefined;
21
- } & {
22
- queryKey: (string | undefined)[] & {
23
- [dataTagSymbol]: {
24
- name: string;
25
- title: string;
26
- price: number;
27
- accountBalance: number;
28
- layer: string;
29
- };
30
- [dataTagErrorSymbol]: Error;
31
- };
32
- };
@@ -1,9 +0,0 @@
1
- import { HiveEngineMetric } from '../types';
2
- export declare function getHiveEngineTokensMetricsQueryOptions(symbol: string, interval?: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<HiveEngineMetric[], Error, HiveEngineMetric[], string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<HiveEngineMetric[], string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: HiveEngineMetric[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,9 +0,0 @@
1
- import { HiveEngineTransaction } from '../types';
2
- export declare function getHiveEngineTokenTransactionsQueryOptions(username: string | undefined, symbol: string, limit?: number): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseInfiniteQueryOptions<HiveEngineTransaction[], Error, import('@tanstack/query-core').InfiniteData<HiveEngineTransaction[], unknown>, HiveEngineTransaction[], readonly unknown[], unknown>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<HiveEngineTransaction[], readonly unknown[], unknown> | undefined;
4
- } & {
5
- queryKey: readonly unknown[] & {
6
- [dataTagSymbol]: import('@tanstack/query-core').InfiniteData<HiveEngineTransaction[], unknown>;
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,9 +0,0 @@
1
- import { HiveEngineTokenBalance } from '../types';
2
- export declare function getHiveEngineTokensBalancesQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<HiveEngineTokenBalance[], Error, HiveEngineTokenBalance[], string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<HiveEngineTokenBalance[], string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: HiveEngineTokenBalance[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,9 +0,0 @@
1
- import { HiveEngineMarketResponse } from '../types';
2
- export declare function getHiveEngineTokensMarketQueryOptions(): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<HiveEngineMarketResponse[], Error, HiveEngineMarketResponse[], string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<HiveEngineMarketResponse[], string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: HiveEngineMarketResponse[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,9 +0,0 @@
1
- import { HiveEngineTokenMetadataResponse } from '../types';
2
- export declare function getHiveEngineTokensMetadataQueryOptions(tokens: string[]): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<HiveEngineTokenMetadataResponse[], Error, HiveEngineTokenMetadataResponse[], (string | string[])[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<HiveEngineTokenMetadataResponse[], (string | string[])[], never> | undefined;
4
- } & {
5
- queryKey: (string | string[])[] & {
6
- [dataTagSymbol]: HiveEngineTokenMetadataResponse[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,6 +0,0 @@
1
- export * from './get-hive-engine-token-general-info-query-options';
2
- export * from './get-hive-engine-tokens-metadata-query-options';
3
- export * from './get-hive-engine-token-transactions-query-options';
4
- export * from './get-hive-engine-token-metrics-query-options';
5
- export * from './get-hive-engine-tokens-market-query-options';
6
- export * from './get-hive-engine-tokens-balances-query-options';
@@ -1,13 +0,0 @@
1
- export interface HiveEngineMarketResponse {
2
- _id: number;
3
- symbol: string;
4
- volume: string;
5
- volumeExpiration: number;
6
- lastPrice: string;
7
- lowestAsk: string;
8
- highestBid: string;
9
- lastDayPrice: string;
10
- lastDayPriceExpiration: number;
11
- priceChangeHive: string;
12
- priceChangePercent: string;
13
- }
@@ -1,9 +0,0 @@
1
- export interface HiveEngineMetric {
2
- baseVolume: string;
3
- close: string;
4
- high: string;
5
- low: string;
6
- open: string;
7
- quoteVolume: string;
8
- timestamp: number;
9
- }
@@ -1,10 +0,0 @@
1
- export interface HiveEngineTokenBalance {
2
- account: string;
3
- balance: string;
4
- delegationsIn: string;
5
- delegationsOut: string;
6
- pendingUndelegations: string;
7
- pendingUnstake: string;
8
- stake: string;
9
- symbol: string;
10
- }
@@ -1,16 +0,0 @@
1
- export interface HiveEngineTokenMetadataResponse {
2
- issuer: string;
3
- symbol: string;
4
- name: string;
5
- metadata: string;
6
- precision: number;
7
- maxSupply: string;
8
- supply: string;
9
- circulatingSupply: string;
10
- stakingEnabled: boolean;
11
- unstakingCooldown: number;
12
- delegationEnabled: boolean;
13
- undelegationCooldown: number;
14
- numberTransactions: number;
15
- totalStaked: string;
16
- }
@@ -1,14 +0,0 @@
1
- export interface HiveEngineTransaction {
2
- _id: string;
3
- blockNumber: number;
4
- transactionId: string;
5
- timestamp: number;
6
- operation: string;
7
- from: string;
8
- to: string;
9
- symbol: string;
10
- quantity: string;
11
- memo: any;
12
- account: string;
13
- authorperm?: string;
14
- }
@@ -1,6 +0,0 @@
1
- export * from './hive-engine-list-response';
2
- export * from './hive-engine-token-metadata-response';
3
- export * from './hive-engine-token-balance';
4
- export * from './hive-engine-transaction';
5
- export * from './hive-engine-metric';
6
- export * from './hive-engine-token-balance';
@@ -1,6 +0,0 @@
1
- export * from './hive';
2
- export * from './types';
3
- export * from './utils';
4
- export * from './spk';
5
- export * from './hive-engine';
6
- export * from './points';
@@ -1,3 +0,0 @@
1
- export * from './mutations';
2
- export * from './queries';
3
- export * from './types';
@@ -1,2 +0,0 @@
1
- import { useMutation } from '@tanstack/react-query';
2
- export declare function useClaimPoints(username: string | undefined, onSuccess?: () => void, onError?: Parameters<typeof useMutation>["0"]["onError"]): import('@tanstack/react-query').UseMutationResult<Response, unknown, unknown, unknown>;