@ecency/wallets 1.2.24 → 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,2 @@
1
+ import { HiveOperationGroup } from '../types';
2
+ export declare const HIVE_ACCOUNT_OPERATION_GROUPS: Record<HiveOperationGroup, number[]>;
@@ -0,0 +1 @@
1
+ export * from './hive-account-operation-groups';
@@ -0,0 +1,2 @@
1
+ export * from './queries';
2
+ export * from './mutations';
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,11 @@
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 {};
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,12 @@
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>;
@@ -0,0 +1,13 @@
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 {};
@@ -0,0 +1,76 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1,43 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,76 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,8 @@
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';
@@ -0,0 +1,19 @@
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
+ }
@@ -0,0 +1 @@
1
+ export type HiveOperationGroup = "" | "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
@@ -0,0 +1,198 @@
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 {};
@@ -0,0 +1,7 @@
1
+ export interface HiveWithdrawRoute {
2
+ auto_vest: boolean;
3
+ from_account: string;
4
+ id: number;
5
+ percent: number;
6
+ to_account: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ export * from './hive-operation-group';
2
+ export * from './hive-transaction';
3
+ export * from './hive-market-metric';
4
+ export * from './hive-withdraw-route.ts';
@@ -0,0 +1,3 @@
1
+ export * from './queries';
2
+ export * from './types';
3
+ export * from './mutations';
@@ -0,0 +1,12 @@
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>;
@@ -0,0 +1,5 @@
1
+ export * from './delegate';
2
+ export * from './undelegate';
3
+ export * from './stake';
4
+ export * from './unstake';
5
+ export * from './transfer';
@@ -0,0 +1,12 @@
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>;
@@ -0,0 +1,13 @@
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>;