@ecency/wallets 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/index.cjs +3396 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +1627 -0
  4. package/dist/index.d.ts +1627 -2
  5. package/dist/index.mjs +3283 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +28 -15
  8. package/dist/ecency-sdk.es.js +0 -23225
  9. package/dist/internal/scrypt-guard.d.ts +0 -1
  10. package/dist/modules/assets/external/apt/get-apt-asset-balance-query-options.d.ts +0 -8
  11. package/dist/modules/assets/external/apt/get-apt-asset-general-info-query-options.d.ts +0 -28
  12. package/dist/modules/assets/external/apt/index.d.ts +0 -2
  13. package/dist/modules/assets/external/bnb/get-bnb-asset-balance-query-options.d.ts +0 -8
  14. package/dist/modules/assets/external/bnb/get-bnb-asset-general-info-query-options.d.ts +0 -28
  15. package/dist/modules/assets/external/bnb/index.d.ts +0 -2
  16. package/dist/modules/assets/external/btc/get-btc-asset-balance-query-options.d.ts +0 -8
  17. package/dist/modules/assets/external/btc/get-btc-asset-general-info-query-options.d.ts +0 -28
  18. package/dist/modules/assets/external/btc/index.d.ts +0 -2
  19. package/dist/modules/assets/external/common/index.d.ts +0 -1
  20. package/dist/modules/assets/external/common/parse-private-api-balance.d.ts +0 -23
  21. package/dist/modules/assets/external/eth/get-eth-asset-balance-query-options.d.ts +0 -8
  22. package/dist/modules/assets/external/eth/get-eth-asset-general-info-query-options.d.ts +0 -28
  23. package/dist/modules/assets/external/eth/index.d.ts +0 -2
  24. package/dist/modules/assets/external/index.d.ts +0 -7
  25. package/dist/modules/assets/external/sol/get-sol-asset-balance-query-options.d.ts +0 -8
  26. package/dist/modules/assets/external/sol/get-sol-asset-general-info-query-options.d.ts +0 -28
  27. package/dist/modules/assets/external/sol/index.d.ts +0 -2
  28. package/dist/modules/assets/external/ton/get-ton-asset-balance-query-options.d.ts +0 -8
  29. package/dist/modules/assets/external/ton/get-ton-asset-general-info-query-options.d.ts +0 -28
  30. package/dist/modules/assets/external/ton/index.d.ts +0 -2
  31. package/dist/modules/assets/external/tron/get-tron-asset-balance-query-options.d.ts +0 -8
  32. package/dist/modules/assets/external/tron/get-tron-asset-general-info-query-options.d.ts +0 -28
  33. package/dist/modules/assets/external/tron/index.d.ts +0 -2
  34. package/dist/modules/assets/hive/consts/hive-account-operation-groups.d.ts +0 -2
  35. package/dist/modules/assets/hive/consts/index.d.ts +0 -1
  36. package/dist/modules/assets/hive/index.d.ts +0 -2
  37. package/dist/modules/assets/hive/mutations/claim-rewards.d.ts +0 -1
  38. package/dist/modules/assets/hive/mutations/delegate.d.ts +0 -13
  39. package/dist/modules/assets/hive/mutations/index.d.ts +0 -7
  40. package/dist/modules/assets/hive/mutations/power-down.d.ts +0 -11
  41. package/dist/modules/assets/hive/mutations/power-up.d.ts +0 -13
  42. package/dist/modules/assets/hive/mutations/transfer-to-savings.d.ts +0 -13
  43. package/dist/modules/assets/hive/mutations/transfer.d.ts +0 -12
  44. package/dist/modules/assets/hive/mutations/withdraw-route.d.ts +0 -13
  45. package/dist/modules/assets/hive/queries/get-hbd-asset-general-info-query-options.d.ts +0 -76
  46. package/dist/modules/assets/hive/queries/get-hbd-asset-transactions-query-options.d.ts +0 -9
  47. package/dist/modules/assets/hive/queries/get-hive-asset-general-info-query-options.d.ts +0 -28
  48. package/dist/modules/assets/hive/queries/get-hive-asset-metric-query-options.d.ts +0 -43
  49. package/dist/modules/assets/hive/queries/get-hive-asset-transactions-query-options.d.ts +0 -9
  50. package/dist/modules/assets/hive/queries/get-hive-asset-withdrawal-routes-query-options.d.ts +0 -9
  51. package/dist/modules/assets/hive/queries/get-hive-power-asset-general-info-query-options.d.ts +0 -76
  52. package/dist/modules/assets/hive/queries/get-hive-power-asset-transactions-query-options.d.ts +0 -9
  53. package/dist/modules/assets/hive/queries/get-hive-power-delegates-query-options.d.ts +0 -9
  54. package/dist/modules/assets/hive/queries/get-hive-power-delegatings-query-options.d.ts +0 -9
  55. package/dist/modules/assets/hive/queries/index.d.ts +0 -10
  56. package/dist/modules/assets/hive/types/delegated-vesting-share.d.ts +0 -7
  57. package/dist/modules/assets/hive/types/hive-market-metric.d.ts +0 -19
  58. package/dist/modules/assets/hive/types/hive-operation-group.d.ts +0 -1
  59. package/dist/modules/assets/hive/types/hive-transaction.d.ts +0 -198
  60. package/dist/modules/assets/hive/types/hive-withdraw-route.d.ts +0 -7
  61. package/dist/modules/assets/hive/types/index.d.ts +0 -6
  62. package/dist/modules/assets/hive/types/received-vesting-share.d.ts +0 -6
  63. package/dist/modules/assets/hive-engine/index.d.ts +0 -3
  64. package/dist/modules/assets/hive-engine/mutations/delegate.d.ts +0 -12
  65. package/dist/modules/assets/hive-engine/mutations/index.d.ts +0 -5
  66. package/dist/modules/assets/hive-engine/mutations/stake.d.ts +0 -12
  67. package/dist/modules/assets/hive-engine/mutations/transfer.d.ts +0 -13
  68. package/dist/modules/assets/hive-engine/mutations/undelegate.d.ts +0 -12
  69. package/dist/modules/assets/hive-engine/mutations/unstake.d.ts +0 -12
  70. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-general-info-query-options.d.ts +0 -32
  71. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-metrics-query-options.d.ts +0 -9
  72. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-transactions-query-options.d.ts +0 -9
  73. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-balances-query-options.d.ts +0 -9
  74. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-market-query-options.d.ts +0 -9
  75. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.d.ts +0 -9
  76. package/dist/modules/assets/hive-engine/queries/index.d.ts +0 -6
  77. package/dist/modules/assets/hive-engine/types/hive-engine-list-response.d.ts +0 -13
  78. package/dist/modules/assets/hive-engine/types/hive-engine-metric.d.ts +0 -9
  79. package/dist/modules/assets/hive-engine/types/hive-engine-token-balance.d.ts +0 -10
  80. package/dist/modules/assets/hive-engine/types/hive-engine-token-metadata-response.d.ts +0 -16
  81. package/dist/modules/assets/hive-engine/types/hive-engine-transaction.d.ts +0 -14
  82. package/dist/modules/assets/hive-engine/types/index.d.ts +0 -6
  83. package/dist/modules/assets/index.d.ts +0 -6
  84. package/dist/modules/assets/points/index.d.ts +0 -3
  85. package/dist/modules/assets/points/mutations/claim-points.d.ts +0 -2
  86. package/dist/modules/assets/points/mutations/gift.d.ts +0 -14
  87. package/dist/modules/assets/points/mutations/index.d.ts +0 -2
  88. package/dist/modules/assets/points/queries/get-points-asset-general-info-query-options.d.ts +0 -28
  89. package/dist/modules/assets/points/queries/get-points-asset-transactions-query-options.d.ts +0 -41
  90. package/dist/modules/assets/points/queries/get-points-query-options.d.ts +0 -20
  91. package/dist/modules/assets/points/queries/index.d.ts +0 -3
  92. package/dist/modules/assets/points/types/index.d.ts +0 -4
  93. package/dist/modules/assets/points/types/point-transaction-type.d.ts +0 -15
  94. package/dist/modules/assets/points/types/point-transaction.d.ts +0 -10
  95. package/dist/modules/assets/points/types/points-response.d.ts +0 -4
  96. package/dist/modules/assets/points/types/points.d.ts +0 -4
  97. package/dist/modules/assets/spk/index.d.ts +0 -2
  98. package/dist/modules/assets/spk/mutations/index.d.ts +0 -4
  99. package/dist/modules/assets/spk/mutations/lock.d.ts +0 -12
  100. package/dist/modules/assets/spk/mutations/power-up.d.ts +0 -12
  101. package/dist/modules/assets/spk/mutations/transfer.d.ts +0 -14
  102. package/dist/modules/assets/spk/queries/get-larynx-asset-general-info-query-options.d.ts +0 -56
  103. package/dist/modules/assets/spk/queries/get-larynx-power-asset-general-info-query-options.d.ts +0 -76
  104. package/dist/modules/assets/spk/queries/get-spk-asset-general-info-query-options.d.ts +0 -28
  105. package/dist/modules/assets/spk/queries/get-spk-markets-query-options.d.ts +0 -33
  106. package/dist/modules/assets/spk/queries/get-spk-wallet-query-options.d.ts +0 -9
  107. package/dist/modules/assets/spk/queries/index.d.ts +0 -4
  108. package/dist/modules/assets/types/asset-operation.d.ts +0 -17
  109. package/dist/modules/assets/types/general-asset-info.d.ts +0 -12
  110. package/dist/modules/assets/types/general-asset-transaction.d.ts +0 -13
  111. package/dist/modules/assets/types/hive-based-asset-sign-type.d.ts +0 -1
  112. package/dist/modules/assets/types/index.d.ts +0 -5
  113. package/dist/modules/assets/types/spk-wallet.d.ts +0 -60
  114. package/dist/modules/assets/utils/index.d.ts +0 -4
  115. package/dist/modules/assets/utils/is-empty-date.d.ts +0 -1
  116. package/dist/modules/assets/utils/parse-asset.d.ts +0 -17
  117. package/dist/modules/assets/utils/reward-spk.d.ts +0 -2
  118. package/dist/modules/assets/utils/vests-to-hp.d.ts +0 -1
  119. package/dist/modules/wallets/consts/hive-engine-tokens.d.ts +0 -1
  120. package/dist/modules/wallets/consts/index.d.ts +0 -1
  121. package/dist/modules/wallets/enums/ecency-wallet-basic-tokens.d.ts +0 -7
  122. package/dist/modules/wallets/enums/ecency-wallet-currency.d.ts +0 -9
  123. package/dist/modules/wallets/enums/index.d.ts +0 -2
  124. package/dist/modules/wallets/functions/get-keys-from-seed.d.ts +0 -3
  125. package/dist/modules/wallets/functions/index.d.ts +0 -1
  126. package/dist/modules/wallets/index.d.ts +0 -5
  127. package/dist/modules/wallets/mutations/index.d.ts +0 -5
  128. package/dist/modules/wallets/mutations/private-api/check-wallet-existence.d.ts +0 -7
  129. package/dist/modules/wallets/mutations/private-api/create-account-with-wallets.d.ts +0 -6
  130. package/dist/modules/wallets/mutations/private-api/index.d.ts +0 -2
  131. package/dist/modules/wallets/mutations/private-api-namespace.d.ts +0 -2
  132. package/dist/modules/wallets/mutations/save-wallet-information-to-metadata.d.ts +0 -9
  133. package/dist/modules/wallets/mutations/use-import-wallet.d.ts +0 -15
  134. package/dist/modules/wallets/mutations/use-wallet-create.d.ts +0 -11
  135. package/dist/modules/wallets/mutations/wallet-operation.d.ts +0 -2
  136. package/dist/modules/wallets/queries/get-account-wallet-asset-info-query-options.d.ts +0 -13
  137. package/dist/modules/wallets/queries/get-all-tokens-list-query-options.d.ts +0 -30
  138. package/dist/modules/wallets/queries/get-coingecko-price-query-options.d.ts +0 -8
  139. package/dist/modules/wallets/queries/get-tokens-operations-query-options.d.ts +0 -9
  140. package/dist/modules/wallets/queries/index.d.ts +0 -8
  141. package/dist/modules/wallets/queries/use-get-account-wallet-list-query.d.ts +0 -8
  142. package/dist/modules/wallets/queries/use-get-external-wallet-query.d.ts +0 -17
  143. package/dist/modules/wallets/queries/use-hive-keys-query.d.ts +0 -2
  144. package/dist/modules/wallets/queries/use-seed-phrase.d.ts +0 -1
  145. package/dist/modules/wallets/types/account-points-response.d.ts +0 -4
  146. package/dist/modules/wallets/types/ecency-create-wallet-information.d.ts +0 -13
  147. package/dist/modules/wallets/types/ecency-hive-keys.d.ts +0 -12
  148. package/dist/modules/wallets/types/index.d.ts +0 -3
  149. package/dist/modules/wallets/utils/build-external-transaction.d.ts +0 -48
  150. package/dist/modules/wallets/utils/decrypt-memo.d.ts +0 -12
  151. package/dist/modules/wallets/utils/delay.d.ts +0 -1
  152. package/dist/modules/wallets/utils/derive-hive-bip44-keys.d.ts +0 -15
  153. package/dist/modules/wallets/utils/derive-hive-master-password-keys.d.ts +0 -15
  154. package/dist/modules/wallets/utils/detect-hive-key-derivation.d.ts +0 -2
  155. package/dist/modules/wallets/utils/encrypt-memo.d.ts +0 -16
  156. package/dist/modules/wallets/utils/get-wallet.d.ts +0 -3
  157. package/dist/modules/wallets/utils/index.d.ts +0 -12
  158. package/dist/modules/wallets/utils/mnemonic-to-seed-bip-39.d.ts +0 -1
  159. package/dist/modules/wallets/utils/sign-digest.d.ts +0 -7
  160. package/dist/modules/wallets/utils/sign-external-transaction.d.ts +0 -18
  161. package/dist/modules/wallets/utils/sign-transaction.d.ts +0 -23
  162. package/dist/vite.config.d.ts +0 -2
@@ -1 +0,0 @@
1
- export declare function rememberScryptBsvVersion(): void;
@@ -1,8 +0,0 @@
1
- export declare function getAptAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getAptAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-apt-asset-general-info-query-options';
2
- export * from './get-apt-asset-balance-query-options';
@@ -1,8 +0,0 @@
1
- export declare function getBnbAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getBnbAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-bnb-asset-general-info-query-options';
2
- export * from './get-bnb-asset-balance-query-options';
@@ -1,8 +0,0 @@
1
- export declare function getBtcAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getBtcAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-btc-asset-general-info-query-options';
2
- export * from './get-btc-asset-balance-query-options';
@@ -1 +0,0 @@
1
- export declare function getAddressFromAccount(username: string, tokenName: string): Promise<any>;
@@ -1,23 +0,0 @@
1
- export interface ExternalWalletBalance {
2
- chain: string;
3
- unit: string;
4
- raw?: unknown;
5
- nodeId?: string;
6
- /**
7
- * Balance represented as a BigInt for convenience.
8
- */
9
- balanceBigInt: bigint;
10
- /**
11
- * Balance returned as a string to preserve precision for UIs that cannot
12
- * handle bigint values directly.
13
- */
14
- balanceString: string;
15
- }
16
- export interface PrivateApiBalanceResponse {
17
- chain: string;
18
- balance: number | string;
19
- unit: string;
20
- raw?: unknown;
21
- nodeId?: string;
22
- }
23
- export declare function parsePrivateApiBalance(result: PrivateApiBalanceResponse, expectedChain: string): ExternalWalletBalance;
@@ -1,8 +0,0 @@
1
- export declare function getEthAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getEthAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-eth-asset-general-info-query-options';
2
- export * from './get-eth-asset-balance-query-options';
@@ -1,7 +0,0 @@
1
- export * from './apt';
2
- export * from './bnb';
3
- export * from './btc';
4
- export * from './eth';
5
- export * from './sol';
6
- export * from './ton';
7
- export * from './tron';
@@ -1,8 +0,0 @@
1
- export declare function getSolAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getSolAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-sol-asset-general-info-query-options';
2
- export * from './get-sol-asset-balance-query-options';
@@ -1,8 +0,0 @@
1
- export declare function getTonAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getTonAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-ton-asset-general-info-query-options';
2
- export * from './get-ton-asset-balance-query-options';
@@ -1,8 +0,0 @@
1
- export declare function getTronAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: number;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,28 +0,0 @@
1
- export declare function getTronAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export * from './get-tron-asset-general-info-query-options';
2
- export * from './get-tron-asset-balance-query-options';
@@ -1,2 +0,0 @@
1
- import { HiveOperationGroup } from '../types';
2
- export declare const HIVE_ACCOUNT_OPERATION_GROUPS: Record<HiveOperationGroup, number[]>;
@@ -1 +0,0 @@
1
- export * from './hive-account-operation-groups';
@@ -1,2 +0,0 @@
1
- export * from './queries';
2
- export * from './mutations';
@@ -1 +0,0 @@
1
- export declare function useClaimRewards(username: string, onSuccess: () => void): import('@tanstack/react-query').UseMutationResult<unknown, Error, unknown, unknown>;
@@ -1,13 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface Payload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- memo: string;
8
- type: T;
9
- }
10
- export declare function delegateHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
11
- key: PrivateKey;
12
- } : Payload<T>): Promise<unknown>;
13
- export {};
@@ -1,7 +0,0 @@
1
- export * from './transfer';
2
- export * from './transfer-to-savings';
3
- export * from './power-up';
4
- export * from './delegate';
5
- export * from './power-down';
6
- export * from './withdraw-route';
7
- export * from './claim-rewards';
@@ -1,11 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface Payload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- amount: string;
6
- type: T;
7
- }
8
- export declare function powerDownHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
9
- key: PrivateKey;
10
- } : Payload<T>): Promise<unknown>;
11
- export {};
@@ -1,13 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface Payload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- memo: string;
8
- type: T;
9
- }
10
- export declare function powerUpHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
11
- key: PrivateKey;
12
- } : Payload<T>): Promise<unknown>;
13
- export {};
@@ -1,13 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface Payload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- memo: string;
8
- type: T;
9
- }
10
- export declare function transferToSavingsHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
11
- key: PrivateKey;
12
- } : Payload<T>): Promise<unknown>;
13
- export {};
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- export interface TransferPayload<T extends HiveBasedAssetSignType> {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- memo: string;
8
- type: T;
9
- }
10
- export declare function transferHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? TransferPayload<T> & {
11
- key: PrivateKey;
12
- } : TransferPayload<T>): Promise<unknown>;
@@ -1,13 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface Payload<T extends HiveBasedAssetSignType> {
4
- from_account: string;
5
- to_account: string;
6
- percent: number;
7
- auto_vest: boolean;
8
- type: T;
9
- }
10
- export declare function withdrawVestingRouteHive<T extends HiveBasedAssetSignType>(payload: T extends "key" ? Payload<T> & {
11
- key: PrivateKey;
12
- } : Payload<T>): Promise<unknown>;
13
- export {};
@@ -1,76 +0,0 @@
1
- export declare function getHbdAssetGeneralInfoQueryOptions(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 getHbdAssetTransactionsQueryOptions(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,28 +0,0 @@
1
- export declare function getHiveAssetGeneralInfoQueryOptions(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
- }, Error, {
7
- name: string;
8
- title: string;
9
- price: number;
10
- accountBalance: number;
11
- }, string[]>, "queryFn"> & {
12
- queryFn?: import('@tanstack/query-core').QueryFunction<{
13
- name: string;
14
- title: string;
15
- price: number;
16
- accountBalance: number;
17
- }, string[], never> | undefined;
18
- } & {
19
- queryKey: string[] & {
20
- [dataTagSymbol]: {
21
- name: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- };
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
@@ -1,43 +0,0 @@
1
- export declare function getHiveAssetMetricQueryOptions(bucketSeconds?: number): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseInfiniteQueryOptions<{
2
- close: number;
3
- open: number;
4
- low: number;
5
- high: number;
6
- volume: number;
7
- time: Date;
8
- }[], Error, import('@tanstack/query-core').InfiniteData<{
9
- close: number;
10
- open: number;
11
- low: number;
12
- high: number;
13
- volume: number;
14
- time: Date;
15
- }[], unknown>, {
16
- close: number;
17
- open: number;
18
- low: number;
19
- high: number;
20
- volume: number;
21
- time: Date;
22
- }[], (string | number)[], Date[]>, "queryFn"> & {
23
- queryFn?: import('@tanstack/query-core').QueryFunction<{
24
- close: number;
25
- open: number;
26
- low: number;
27
- high: number;
28
- volume: number;
29
- time: Date;
30
- }[], (string | number)[], Date[]> | undefined;
31
- } & {
32
- queryKey: (string | number)[] & {
33
- [dataTagSymbol]: import('@tanstack/query-core').InfiniteData<{
34
- close: number;
35
- open: number;
36
- low: number;
37
- high: number;
38
- volume: number;
39
- time: Date;
40
- }[], unknown>;
41
- [dataTagErrorSymbol]: Error;
42
- };
43
- };
@@ -1,9 +0,0 @@
1
- import { HiveOperationGroup, HiveTransaction } from '../types';
2
- export declare function getHiveAssetTransactionsQueryOptions(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 { HiveWithdrawRoute } from '../types';
2
- export declare function getHiveAssetWithdrawalRoutesQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<HiveWithdrawRoute[], Error, HiveWithdrawRoute[], (string | undefined)[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<HiveWithdrawRoute[], (string | undefined)[], never> | undefined;
4
- } & {
5
- queryKey: (string | undefined)[] & {
6
- [dataTagSymbol]: HiveWithdrawRoute[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };