@ecency/wallets 1.4.0 → 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 -23215
  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,14 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- type PointsSignType = "key" | "keychain" | "hivesigner";
3
- interface PointsTransferPayloadBase {
4
- from: string;
5
- to: string;
6
- amount: string;
7
- memo: string;
8
- type: PointsSignType;
9
- }
10
- type PointsTransferPayload<T extends PointsSignType> = T extends "key" ? PointsTransferPayloadBase & {
11
- key: PrivateKey;
12
- } : PointsTransferPayloadBase;
13
- export declare function transferPoint<T extends PointsSignType>({ from, to, amount, memo, type, ...payload }: PointsTransferPayload<T>): Promise<unknown>;
14
- export {};
@@ -1,2 +0,0 @@
1
- export * from './claim-points';
2
- export * from './gift';
@@ -1,28 +0,0 @@
1
- export declare function getPointsAssetGeneralInfoQueryOptions(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,41 +0,0 @@
1
- import { PointTransactionType } from '../types';
2
- export declare function getPointsAssetTransactionsQueryOptions(username: string | undefined, type?: PointTransactionType): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
3
- created: Date;
4
- type: PointTransactionType;
5
- results: {
6
- amount: number;
7
- asset: string;
8
- }[];
9
- id: number;
10
- }[], Error, {
11
- created: Date;
12
- type: PointTransactionType;
13
- results: {
14
- amount: number;
15
- asset: string;
16
- }[];
17
- id: number;
18
- }[], (string | PointTransactionType | undefined)[]>, "queryFn"> & {
19
- queryFn?: import('@tanstack/query-core').QueryFunction<{
20
- created: Date;
21
- type: PointTransactionType;
22
- results: {
23
- amount: number;
24
- asset: string;
25
- }[];
26
- id: number;
27
- }[], (string | PointTransactionType | undefined)[], never> | undefined;
28
- } & {
29
- queryKey: (string | PointTransactionType | undefined)[] & {
30
- [dataTagSymbol]: {
31
- created: Date;
32
- type: PointTransactionType;
33
- results: {
34
- amount: number;
35
- asset: string;
36
- }[];
37
- id: number;
38
- }[];
39
- [dataTagErrorSymbol]: Error;
40
- };
41
- };
@@ -1,20 +0,0 @@
1
- export declare function getPointsQueryOptions(username?: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
- readonly points: any;
3
- readonly uPoints: any;
4
- }, Error, {
5
- readonly points: any;
6
- readonly uPoints: any;
7
- }, (string | undefined)[]>, "queryFn"> & {
8
- queryFn?: import('@tanstack/query-core').QueryFunction<{
9
- readonly points: any;
10
- readonly uPoints: any;
11
- }, (string | undefined)[], never> | undefined;
12
- } & {
13
- queryKey: (string | undefined)[] & {
14
- [dataTagSymbol]: {
15
- readonly points: any;
16
- readonly uPoints: any;
17
- };
18
- [dataTagErrorSymbol]: Error;
19
- };
20
- };
@@ -1,3 +0,0 @@
1
- export * from './get-points-query-options';
2
- export * from './get-points-asset-general-info-query-options';
3
- export * from './get-points-asset-transactions-query-options';
@@ -1,4 +0,0 @@
1
- export * from './points-response';
2
- export * from './points';
3
- export * from './point-transaction-type';
4
- export * from './point-transaction';
@@ -1,15 +0,0 @@
1
- export declare enum PointTransactionType {
2
- CHECKIN = 10,
3
- LOGIN = 20,
4
- CHECKIN_EXTRA = 30,
5
- POST = 100,
6
- COMMENT = 110,
7
- VOTE = 120,
8
- REBLOG = 130,
9
- DELEGATION = 150,
10
- REFERRAL = 160,
11
- COMMUNITY = 170,
12
- TRANSFER_SENT = 998,
13
- TRANSFER_INCOMING = 999,
14
- MINTED = 991
15
- }
@@ -1,10 +0,0 @@
1
- import { PointTransactionType } from './point-transaction-type';
2
- export interface PointTransaction {
3
- id: number;
4
- type: PointTransactionType;
5
- created: string;
6
- memo: string | null;
7
- amount: string;
8
- sender: string | null;
9
- receiver: string | null;
10
- }
@@ -1,4 +0,0 @@
1
- export interface PointsResponse {
2
- points: string;
3
- unclaimed_points: string;
4
- }
@@ -1,4 +0,0 @@
1
- export interface Points {
2
- points: string;
3
- uPoints: string;
4
- }
@@ -1,2 +0,0 @@
1
- export * from './mutations';
2
- export * from './queries';
@@ -1,4 +0,0 @@
1
- export * from './transfer';
2
- export * from './lock';
3
- export * from './transfer';
4
- export * from './power-up';
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface SpkLockPayload<T extends HiveBasedAssetSignType> {
4
- mode: "lock" | "unlock";
5
- from: string;
6
- amount: string;
7
- type: T;
8
- }
9
- export declare const lockLarynx: <T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkLockPayload<T> & {
10
- key: PrivateKey;
11
- } : SpkLockPayload<T>) => Promise<unknown>;
12
- export {};
@@ -1,12 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface SpkPowerPayload<T extends HiveBasedAssetSignType> {
4
- mode: "up" | "down";
5
- from: string;
6
- amount: string;
7
- type: T;
8
- }
9
- export declare function powerUpLarynx<T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkPowerPayload<T> & {
10
- key: PrivateKey;
11
- } : SpkPowerPayload<T>): Promise<unknown>;
12
- export {};
@@ -1,14 +0,0 @@
1
- import { PrivateKey } from '@hiveio/dhive';
2
- import { HiveBasedAssetSignType } from '../../types';
3
- interface SpkTransferPayload<T extends HiveBasedAssetSignType> {
4
- id: string;
5
- from: string;
6
- to: string;
7
- amount: string;
8
- memo?: string;
9
- type: T;
10
- }
11
- export declare function transferSpk<T extends HiveBasedAssetSignType>(payload: T extends "key" ? SpkTransferPayload<T> & {
12
- key: PrivateKey;
13
- } : SpkTransferPayload<T>): Promise<unknown>;
14
- export {};
@@ -1,56 +0,0 @@
1
- export declare function getLarynxAssetGeneralInfoQueryOptions(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
- layer?: undefined;
7
- } | {
8
- name: string;
9
- layer: string;
10
- title: string;
11
- price: number;
12
- accountBalance: number;
13
- }, Error, {
14
- name: string;
15
- title: string;
16
- price: number;
17
- accountBalance: number;
18
- layer?: undefined;
19
- } | {
20
- name: string;
21
- layer: string;
22
- title: string;
23
- price: number;
24
- accountBalance: number;
25
- }, string[]>, "queryFn"> & {
26
- queryFn?: import('@tanstack/query-core').QueryFunction<{
27
- name: string;
28
- title: string;
29
- price: number;
30
- accountBalance: number;
31
- layer?: undefined;
32
- } | {
33
- name: string;
34
- layer: string;
35
- title: string;
36
- price: number;
37
- accountBalance: number;
38
- }, string[], never> | undefined;
39
- } & {
40
- queryKey: string[] & {
41
- [dataTagSymbol]: {
42
- name: string;
43
- title: string;
44
- price: number;
45
- accountBalance: number;
46
- layer?: undefined;
47
- } | {
48
- name: string;
49
- layer: string;
50
- title: string;
51
- price: number;
52
- accountBalance: number;
53
- };
54
- [dataTagErrorSymbol]: Error;
55
- };
56
- };
@@ -1,76 +0,0 @@
1
- export declare function getLarynxPowerAssetGeneralInfoQueryOptions(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
- layer?: undefined;
7
- parts?: undefined;
8
- } | {
9
- name: string;
10
- title: string;
11
- layer: string;
12
- price: number;
13
- accountBalance: number;
14
- parts: {
15
- name: string;
16
- balance: number;
17
- }[];
18
- }, Error, {
19
- name: string;
20
- title: string;
21
- price: number;
22
- accountBalance: number;
23
- layer?: undefined;
24
- parts?: undefined;
25
- } | {
26
- name: string;
27
- title: string;
28
- layer: string;
29
- price: number;
30
- accountBalance: number;
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
- layer?: undefined;
42
- parts?: undefined;
43
- } | {
44
- name: string;
45
- title: string;
46
- layer: string;
47
- price: number;
48
- accountBalance: number;
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
- layer?: undefined;
62
- parts?: undefined;
63
- } | {
64
- name: string;
65
- title: string;
66
- layer: string;
67
- price: number;
68
- accountBalance: number;
69
- parts: {
70
- name: string;
71
- balance: number;
72
- }[];
73
- };
74
- [dataTagErrorSymbol]: Error;
75
- };
76
- };
@@ -1,28 +0,0 @@
1
- export declare function getSpkAssetGeneralInfoQueryOptions(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,33 +0,0 @@
1
- import { SpkMarkets } from '../../types';
2
- export declare function getSpkMarketsQueryOptions(): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
3
- list: {
4
- name: string;
5
- status: string;
6
- }[];
7
- raw: SpkMarkets;
8
- }, Error, {
9
- list: {
10
- name: string;
11
- status: string;
12
- }[];
13
- raw: SpkMarkets;
14
- }, string[]>, "queryFn"> & {
15
- queryFn?: import('@tanstack/query-core').QueryFunction<{
16
- list: {
17
- name: string;
18
- status: string;
19
- }[];
20
- raw: SpkMarkets;
21
- }, string[], never> | undefined;
22
- } & {
23
- queryKey: string[] & {
24
- [dataTagSymbol]: {
25
- list: {
26
- name: string;
27
- status: string;
28
- }[];
29
- raw: SpkMarkets;
30
- };
31
- [dataTagErrorSymbol]: Error;
32
- };
33
- };
@@ -1,9 +0,0 @@
1
- import { SpkApiWallet } from '../../types';
2
- export declare function getSpkWalletQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<SpkApiWallet, Error, SpkApiWallet, string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<SpkApiWallet, string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: SpkApiWallet;
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,4 +0,0 @@
1
- export * from './get-larynx-asset-general-info-query-options';
2
- export * from './get-spk-asset-general-info-query-options';
3
- export * from './get-larynx-power-asset-general-info-query-options';
4
- export * from './get-spk-markets-query-options';
@@ -1,17 +0,0 @@
1
- export declare enum AssetOperation {
2
- Transfer = "transfer",
3
- TransferToSavings = "transfer-saving",
4
- Delegate = "delegate",
5
- PowerUp = "power-up",
6
- PowerDown = "power-down",
7
- WithdrawRoutes = "withdraw-saving",
8
- Swap = "swap",
9
- Gift = "gift",
10
- Promote = "promote",
11
- Claim = "claim",
12
- Buy = "buy",
13
- LockLiquidity = "lock",
14
- Stake = "stake",
15
- Unstake = "unstake",
16
- Undelegate = "undelegate"
17
- }
@@ -1,12 +0,0 @@
1
- export interface GeneralAssetInfo {
2
- name: string;
3
- title: string;
4
- price: number;
5
- accountBalance: number;
6
- apr?: string;
7
- layer?: string;
8
- parts?: {
9
- name: string;
10
- balance: number;
11
- }[];
12
- }
@@ -1,13 +0,0 @@
1
- import { OperationName } from '@hiveio/dhive';
2
- export interface GeneralAssetTransaction {
3
- id: number | string;
4
- type: OperationName | number | string;
5
- created: Date;
6
- results: {
7
- amount: string | number;
8
- asset: string;
9
- }[];
10
- from?: string;
11
- to?: string;
12
- memo?: string;
13
- }
@@ -1 +0,0 @@
1
- export type HiveBasedAssetSignType = "key" | "keychain" | "hivesigner";
@@ -1,5 +0,0 @@
1
- export * from './general-asset-info';
2
- export * from './spk-wallet';
3
- export * from './asset-operation';
4
- export * from './general-asset-transaction';
5
- export * from './hive-based-asset-sign-type';
@@ -1,60 +0,0 @@
1
- export interface SpkApiWallet {
2
- balance: number;
3
- claim: number;
4
- drop: {
5
- availible: {
6
- amount: number;
7
- precision: number;
8
- token: string;
9
- };
10
- last_claim: number;
11
- total_claims: number;
12
- };
13
- poweredUp: number;
14
- granted: {
15
- t: number;
16
- [key: string]: number;
17
- };
18
- granting: {
19
- t: number;
20
- [key: string]: number;
21
- };
22
- heldCollateral: number;
23
- contracts: unknown[];
24
- up: unknown;
25
- down: unknown;
26
- power_downs: {
27
- [key: string]: string;
28
- };
29
- gov_downs: unknown;
30
- gov: number;
31
- spk: number;
32
- spk_block: number;
33
- tick: string;
34
- node: string;
35
- head_block: number;
36
- behind: number;
37
- VERSION: string;
38
- pow: number;
39
- }
40
- export interface SpkMarkets {
41
- head_block: number;
42
- markets: {
43
- node: {
44
- [key: string]: {
45
- lastGood: number;
46
- report: {
47
- block: number;
48
- };
49
- };
50
- };
51
- };
52
- stats: any;
53
- }
54
- export interface TransformedSpkMarkets {
55
- list: {
56
- name: string;
57
- status: string;
58
- }[];
59
- raw: SpkMarkets;
60
- }
@@ -1,4 +0,0 @@
1
- export * from './parse-asset';
2
- export * from './is-empty-date';
3
- export * from './vests-to-hp';
4
- export * from './reward-spk';
@@ -1 +0,0 @@
1
- export declare function isEmptyDate(s: string | undefined): boolean;
@@ -1,17 +0,0 @@
1
- import { SMTAsset } from '@hiveio/dhive';
2
- export declare enum Symbol {
3
- HIVE = "HIVE",
4
- HBD = "HBD",
5
- VESTS = "VESTS",
6
- SPK = "SPK"
7
- }
8
- export declare enum NaiMap {
9
- "@@000000021" = "HIVE",
10
- "@@000000013" = "HBD",
11
- "@@000000037" = "VESTS"
12
- }
13
- export interface Asset {
14
- amount: number;
15
- symbol: Symbol;
16
- }
17
- export declare function parseAsset(sval: string | SMTAsset): Asset;
@@ -1,2 +0,0 @@
1
- import { SpkApiWallet } from '../types';
2
- export declare function rewardSpk(data: SpkApiWallet, sstats: any): number;
@@ -1 +0,0 @@
1
- export declare function vestsToHp(vests: number, hivePerMVests: number): number;
@@ -1 +0,0 @@
1
- export declare const HiveEngineTokens: string[];
@@ -1 +0,0 @@
1
- export * from './hive-engine-tokens';
@@ -1,7 +0,0 @@
1
- export declare enum EcencyWalletBasicTokens {
2
- Points = "POINTS",
3
- HivePower = "HP",
4
- Hive = "HIVE",
5
- HiveDollar = "HBD",
6
- Spk = "SPK"
7
- }
@@ -1,9 +0,0 @@
1
- export declare enum EcencyWalletCurrency {
2
- BTC = "BTC",
3
- ETH = "ETH",
4
- BNB = "BNB",
5
- APT = "APT",
6
- TON = "TON",
7
- TRON = "TRX",
8
- SOL = "SOL"
9
- }
@@ -1,2 +0,0 @@
1
- export * from './ecency-wallet-currency';
2
- export * from './ecency-wallet-basic-tokens';
@@ -1,3 +0,0 @@
1
- import { EcencyWalletCurrency } from '../enums';
2
- import { BaseWallet } from '@okxweb3/coin-base';
3
- export declare function getKeysFromSeed(mnemonic: string, wallet: BaseWallet, currency: EcencyWalletCurrency): Promise<never[] | readonly [any, any]>;
@@ -1 +0,0 @@
1
- export * from './get-keys-from-seed';
@@ -1,5 +0,0 @@
1
- export * from './enums';
2
- export * from './mutations';
3
- export * from './queries';
4
- export * from './types';
5
- export * from './utils';
@@ -1,5 +0,0 @@
1
- export * from './use-wallet-create';
2
- export * from './private-api-namespace';
3
- export * from './use-import-wallet';
4
- export * from './save-wallet-information-to-metadata';
5
- export * from './wallet-operation';
@@ -1,7 +0,0 @@
1
- import { EcencyWalletCurrency } from '../../enums';
2
- interface Payload {
3
- address: string;
4
- currency: EcencyWalletCurrency;
5
- }
6
- export declare function useCheckWalletExistence(): import('@tanstack/react-query').UseMutationResult<boolean, Error, Payload, unknown>;
7
- export {};
@@ -1,6 +0,0 @@
1
- interface Payload {
2
- currency: string;
3
- address: string;
4
- }
5
- export declare function useCreateAccountWithWallets(username: string): import('@tanstack/react-query').UseMutationResult<Response, Error, Payload, unknown>;
6
- export {};
@@ -1,2 +0,0 @@
1
- export * from './create-account-with-wallets';
2
- export * from './check-wallet-existence';
@@ -1,2 +0,0 @@
1
- import * as EcencyWalletsPrivateApi from "./private-api";
2
- export { EcencyWalletsPrivateApi };