@ecency/wallets 1.2.23 → 1.3.0

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 (89) hide show
  1. package/dist/ecency-sdk.es.js +1888 -257
  2. package/dist/modules/assets/hive/consts/hive-account-operation-groups.d.ts +2 -0
  3. package/dist/modules/assets/hive/consts/index.d.ts +1 -0
  4. package/dist/modules/assets/hive/index.d.ts +2 -0
  5. package/dist/modules/assets/hive/mutations/delegate.d.ts +13 -0
  6. package/dist/modules/assets/hive/mutations/index.d.ts +6 -0
  7. package/dist/modules/assets/hive/mutations/power-down.d.ts +11 -0
  8. package/dist/modules/assets/hive/mutations/power-up.d.ts +13 -0
  9. package/dist/modules/assets/hive/mutations/transfer-to-savings.d.ts +13 -0
  10. package/dist/modules/assets/hive/mutations/transfer.d.ts +12 -0
  11. package/dist/modules/assets/hive/mutations/withdraw-route.d.ts +13 -0
  12. package/dist/modules/assets/hive/queries/get-hbd-asset-general-info-query-options.d.ts +76 -0
  13. package/dist/modules/assets/hive/queries/get-hbd-asset-transactions-query-options.d.ts +9 -0
  14. package/dist/modules/assets/hive/queries/get-hive-asset-general-info-query-options.d.ts +28 -0
  15. package/dist/modules/assets/hive/queries/get-hive-asset-metric-query-options.d.ts +43 -0
  16. package/dist/modules/assets/hive/queries/get-hive-asset-transactions-query-options.d.ts +9 -0
  17. package/dist/modules/assets/hive/queries/get-hive-asset-withdrawal-routes-query-options.d.ts +9 -0
  18. package/dist/modules/assets/hive/queries/get-hive-power-asset-general-info-query-options.d.ts +76 -0
  19. package/dist/modules/assets/hive/queries/get-hive-power-asset-transactions-query-options.d.ts +9 -0
  20. package/dist/modules/assets/hive/queries/index.d.ts +8 -0
  21. package/dist/modules/assets/hive/types/hive-market-metric.d.ts +19 -0
  22. package/dist/modules/assets/hive/types/hive-operation-group.d.ts +1 -0
  23. package/dist/modules/assets/hive/types/hive-transaction.d.ts +198 -0
  24. package/dist/modules/assets/hive/types/hive-withdraw-route.d.ts +7 -0
  25. package/dist/modules/assets/hive/types/index.d.ts +4 -0
  26. package/dist/modules/assets/hive-engine/index.d.ts +3 -0
  27. package/dist/modules/assets/hive-engine/mutations/delegate.d.ts +12 -0
  28. package/dist/modules/assets/hive-engine/mutations/index.d.ts +5 -0
  29. package/dist/modules/assets/hive-engine/mutations/stake.d.ts +12 -0
  30. package/dist/modules/assets/hive-engine/mutations/transfer.d.ts +13 -0
  31. package/dist/modules/assets/hive-engine/mutations/undelegate.d.ts +12 -0
  32. package/dist/modules/assets/hive-engine/mutations/unstake.d.ts +12 -0
  33. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-general-info-query-options.d.ts +32 -0
  34. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-metrics-query-options.d.ts +9 -0
  35. package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-transactions-query-options.d.ts +9 -0
  36. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-balances-query-options.d.ts +9 -0
  37. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-market-query-options.d.ts +9 -0
  38. package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.d.ts +9 -0
  39. package/dist/modules/assets/hive-engine/queries/index.d.ts +6 -0
  40. package/dist/modules/assets/hive-engine/types/hive-engine-list-response.d.ts +13 -0
  41. package/dist/modules/assets/hive-engine/types/hive-engine-metric.d.ts +9 -0
  42. package/dist/modules/assets/hive-engine/types/hive-engine-token-balance.d.ts +10 -0
  43. package/dist/modules/assets/hive-engine/types/hive-engine-token-metadata-response.d.ts +16 -0
  44. package/dist/modules/assets/hive-engine/types/hive-engine-transaction.d.ts +14 -0
  45. package/dist/modules/assets/hive-engine/types/index.d.ts +6 -0
  46. package/dist/modules/assets/index.d.ts +5 -0
  47. package/dist/modules/assets/points/mutations/gift.d.ts +14 -0
  48. package/dist/modules/assets/points/mutations/index.d.ts +1 -0
  49. package/dist/modules/assets/points/queries/get-points-asset-general-info-query-options.d.ts +28 -0
  50. package/dist/modules/assets/points/queries/get-points-asset-transactions-query-options.d.ts +41 -0
  51. package/dist/modules/assets/points/queries/index.d.ts +2 -0
  52. package/dist/modules/assets/points/types/index.d.ts +2 -0
  53. package/dist/modules/assets/points/types/point-transaction-type.d.ts +15 -0
  54. package/dist/modules/assets/points/types/point-transaction.d.ts +10 -0
  55. package/dist/modules/assets/spk/index.d.ts +2 -0
  56. package/dist/modules/assets/spk/mutations/index.d.ts +4 -0
  57. package/dist/modules/assets/spk/mutations/lock.d.ts +12 -0
  58. package/dist/modules/assets/spk/mutations/power-up.d.ts +12 -0
  59. package/dist/modules/assets/spk/mutations/transfer.d.ts +14 -0
  60. package/dist/modules/assets/spk/queries/get-larynx-asset-general-info-query-options.d.ts +56 -0
  61. package/dist/modules/assets/spk/queries/get-larynx-power-asset-general-info-query-options.d.ts +76 -0
  62. package/dist/modules/assets/spk/queries/get-spk-asset-general-info-query-options.d.ts +28 -0
  63. package/dist/modules/assets/spk/queries/get-spk-markets-query-options.d.ts +33 -0
  64. package/dist/modules/assets/spk/queries/get-spk-wallet-query-options.d.ts +9 -0
  65. package/dist/modules/assets/spk/queries/index.d.ts +4 -0
  66. package/dist/modules/assets/types/asset-operation.d.ts +17 -0
  67. package/dist/modules/assets/types/general-asset-info.d.ts +12 -0
  68. package/dist/modules/assets/types/general-asset-transaction.d.ts +13 -0
  69. package/dist/modules/assets/types/hive-based-asset-sign-type.d.ts +1 -0
  70. package/dist/modules/assets/types/index.d.ts +5 -0
  71. package/dist/modules/assets/types/spk-wallet.d.ts +60 -0
  72. package/dist/modules/assets/utils/index.d.ts +4 -0
  73. package/dist/modules/assets/utils/is-empty-date.d.ts +1 -0
  74. package/dist/modules/assets/utils/parse-asset.d.ts +17 -0
  75. package/dist/modules/assets/utils/reward-spk.d.ts +2 -0
  76. package/dist/modules/assets/utils/vests-to-hp.d.ts +1 -0
  77. package/dist/modules/wallets/consts/hive-engine-tokens.d.ts +1 -0
  78. package/dist/modules/wallets/consts/index.d.ts +1 -0
  79. package/dist/modules/wallets/mutations/change-assets-list.d.ts +1 -0
  80. package/dist/modules/wallets/mutations/index.d.ts +2 -0
  81. package/dist/modules/wallets/mutations/wallet-operation.d.ts +2 -0
  82. package/dist/modules/wallets/queries/get-account-wallet-asset-info-query-options.d.ts +13 -0
  83. package/dist/modules/wallets/queries/get-all-tokens-list-query-options.d.ts +26 -0
  84. package/dist/modules/wallets/queries/get-tokens-operations-query-options.d.ts +9 -0
  85. package/dist/modules/wallets/queries/index.d.ts +4 -2
  86. package/dist/modules/wallets/queries/use-get-account-wallet-list-query.d.ts +3 -4
  87. package/package.json +3 -2
  88. package/dist/modules/wallets/queries/get-account-points-query-options.d.ts +0 -9
  89. package/dist/modules/wallets/queries/use-get-all-tokens-list-query.d.ts +0 -6
@@ -0,0 +1,12 @@
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>;
@@ -0,0 +1,12 @@
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>;
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,6 @@
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 +1,6 @@
1
+ export * from './hive';
2
+ export * from './types';
3
+ export * from './utils';
4
+ export * from './spk';
5
+ export * from './hive-engine';
1
6
  export * from './points';
@@ -0,0 +1,14 @@
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 +1,2 @@
1
1
  export * from './claim-points';
2
+ export * from './gift';
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1,41 @@
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 | 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 | undefined)[], never> | undefined;
28
+ } & {
29
+ queryKey: (string | 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 +1,3 @@
1
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,2 +1,4 @@
1
1
  export * from './points-response';
2
2
  export * from './points';
3
+ export * from './point-transaction-type';
4
+ export * from './point-transaction';
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './mutations';
2
+ export * from './queries';
@@ -0,0 +1,4 @@
1
+ export * from './transfer';
2
+ export * from './lock';
3
+ export * from './transfer';
4
+ export * from './power-up';
@@ -0,0 +1,12 @@
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 {};
@@ -0,0 +1,12 @@
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 {};
@@ -0,0 +1,14 @@
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 {};
@@ -0,0 +1,56 @@
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
+ };
@@ -0,0 +1,76 @@
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
+ };
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1,33 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,4 @@
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';
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1 @@
1
+ export type HiveBasedAssetSignType = "key" | "keychain" | "hivesigner";