@ecency/wallets 1.4.1 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +1643 -0
- package/dist/browser/index.js +3328 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/index.browser.mjs +3338 -0
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.cjs +3453 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1643 -2
- package/dist/index.mjs +3338 -0
- package/dist/index.mjs.map +1 -0
- package/dist/node/index.cjs +3443 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.mjs +3328 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +58 -28
- package/dist/ecency-sdk.es.js +0 -23225
- package/dist/internal/scrypt-guard.d.ts +0 -1
- package/dist/modules/assets/external/apt/get-apt-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/apt/get-apt-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/apt/index.d.ts +0 -2
- package/dist/modules/assets/external/bnb/get-bnb-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/bnb/get-bnb-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/bnb/index.d.ts +0 -2
- package/dist/modules/assets/external/btc/get-btc-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/btc/get-btc-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/btc/index.d.ts +0 -2
- package/dist/modules/assets/external/common/index.d.ts +0 -1
- package/dist/modules/assets/external/common/parse-private-api-balance.d.ts +0 -23
- package/dist/modules/assets/external/eth/get-eth-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/eth/get-eth-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/eth/index.d.ts +0 -2
- package/dist/modules/assets/external/index.d.ts +0 -7
- package/dist/modules/assets/external/sol/get-sol-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/sol/get-sol-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/sol/index.d.ts +0 -2
- package/dist/modules/assets/external/ton/get-ton-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/ton/get-ton-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/ton/index.d.ts +0 -2
- package/dist/modules/assets/external/tron/get-tron-asset-balance-query-options.d.ts +0 -8
- package/dist/modules/assets/external/tron/get-tron-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/external/tron/index.d.ts +0 -2
- package/dist/modules/assets/hive/consts/hive-account-operation-groups.d.ts +0 -2
- package/dist/modules/assets/hive/consts/index.d.ts +0 -1
- package/dist/modules/assets/hive/index.d.ts +0 -2
- package/dist/modules/assets/hive/mutations/claim-rewards.d.ts +0 -1
- package/dist/modules/assets/hive/mutations/delegate.d.ts +0 -13
- package/dist/modules/assets/hive/mutations/index.d.ts +0 -7
- package/dist/modules/assets/hive/mutations/power-down.d.ts +0 -11
- package/dist/modules/assets/hive/mutations/power-up.d.ts +0 -13
- package/dist/modules/assets/hive/mutations/transfer-to-savings.d.ts +0 -13
- package/dist/modules/assets/hive/mutations/transfer.d.ts +0 -12
- package/dist/modules/assets/hive/mutations/withdraw-route.d.ts +0 -13
- package/dist/modules/assets/hive/queries/get-hbd-asset-general-info-query-options.d.ts +0 -76
- package/dist/modules/assets/hive/queries/get-hbd-asset-transactions-query-options.d.ts +0 -9
- package/dist/modules/assets/hive/queries/get-hive-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/hive/queries/get-hive-asset-metric-query-options.d.ts +0 -43
- package/dist/modules/assets/hive/queries/get-hive-asset-transactions-query-options.d.ts +0 -9
- package/dist/modules/assets/hive/queries/get-hive-asset-withdrawal-routes-query-options.d.ts +0 -9
- package/dist/modules/assets/hive/queries/get-hive-power-asset-general-info-query-options.d.ts +0 -76
- package/dist/modules/assets/hive/queries/get-hive-power-asset-transactions-query-options.d.ts +0 -9
- package/dist/modules/assets/hive/queries/get-hive-power-delegates-query-options.d.ts +0 -9
- package/dist/modules/assets/hive/queries/get-hive-power-delegatings-query-options.d.ts +0 -9
- package/dist/modules/assets/hive/queries/index.d.ts +0 -10
- package/dist/modules/assets/hive/types/delegated-vesting-share.d.ts +0 -7
- package/dist/modules/assets/hive/types/hive-market-metric.d.ts +0 -19
- package/dist/modules/assets/hive/types/hive-operation-group.d.ts +0 -1
- package/dist/modules/assets/hive/types/hive-transaction.d.ts +0 -198
- package/dist/modules/assets/hive/types/hive-withdraw-route.d.ts +0 -7
- package/dist/modules/assets/hive/types/index.d.ts +0 -6
- package/dist/modules/assets/hive/types/received-vesting-share.d.ts +0 -6
- package/dist/modules/assets/hive-engine/index.d.ts +0 -3
- package/dist/modules/assets/hive-engine/mutations/delegate.d.ts +0 -12
- package/dist/modules/assets/hive-engine/mutations/index.d.ts +0 -5
- package/dist/modules/assets/hive-engine/mutations/stake.d.ts +0 -12
- package/dist/modules/assets/hive-engine/mutations/transfer.d.ts +0 -13
- package/dist/modules/assets/hive-engine/mutations/undelegate.d.ts +0 -12
- package/dist/modules/assets/hive-engine/mutations/unstake.d.ts +0 -12
- package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-general-info-query-options.d.ts +0 -32
- package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-metrics-query-options.d.ts +0 -9
- package/dist/modules/assets/hive-engine/queries/get-hive-engine-token-transactions-query-options.d.ts +0 -9
- package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-balances-query-options.d.ts +0 -9
- package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-market-query-options.d.ts +0 -9
- package/dist/modules/assets/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.d.ts +0 -9
- package/dist/modules/assets/hive-engine/queries/index.d.ts +0 -6
- package/dist/modules/assets/hive-engine/types/hive-engine-list-response.d.ts +0 -13
- package/dist/modules/assets/hive-engine/types/hive-engine-metric.d.ts +0 -9
- package/dist/modules/assets/hive-engine/types/hive-engine-token-balance.d.ts +0 -10
- package/dist/modules/assets/hive-engine/types/hive-engine-token-metadata-response.d.ts +0 -16
- package/dist/modules/assets/hive-engine/types/hive-engine-transaction.d.ts +0 -14
- package/dist/modules/assets/hive-engine/types/index.d.ts +0 -6
- package/dist/modules/assets/index.d.ts +0 -6
- package/dist/modules/assets/points/index.d.ts +0 -3
- package/dist/modules/assets/points/mutations/claim-points.d.ts +0 -2
- package/dist/modules/assets/points/mutations/gift.d.ts +0 -14
- package/dist/modules/assets/points/mutations/index.d.ts +0 -2
- package/dist/modules/assets/points/queries/get-points-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/points/queries/get-points-asset-transactions-query-options.d.ts +0 -41
- package/dist/modules/assets/points/queries/get-points-query-options.d.ts +0 -20
- package/dist/modules/assets/points/queries/index.d.ts +0 -3
- package/dist/modules/assets/points/types/index.d.ts +0 -4
- package/dist/modules/assets/points/types/point-transaction-type.d.ts +0 -15
- package/dist/modules/assets/points/types/point-transaction.d.ts +0 -10
- package/dist/modules/assets/points/types/points-response.d.ts +0 -4
- package/dist/modules/assets/points/types/points.d.ts +0 -4
- package/dist/modules/assets/spk/index.d.ts +0 -2
- package/dist/modules/assets/spk/mutations/index.d.ts +0 -4
- package/dist/modules/assets/spk/mutations/lock.d.ts +0 -12
- package/dist/modules/assets/spk/mutations/power-up.d.ts +0 -12
- package/dist/modules/assets/spk/mutations/transfer.d.ts +0 -14
- package/dist/modules/assets/spk/queries/get-larynx-asset-general-info-query-options.d.ts +0 -56
- package/dist/modules/assets/spk/queries/get-larynx-power-asset-general-info-query-options.d.ts +0 -76
- package/dist/modules/assets/spk/queries/get-spk-asset-general-info-query-options.d.ts +0 -28
- package/dist/modules/assets/spk/queries/get-spk-markets-query-options.d.ts +0 -33
- package/dist/modules/assets/spk/queries/get-spk-wallet-query-options.d.ts +0 -9
- package/dist/modules/assets/spk/queries/index.d.ts +0 -4
- package/dist/modules/assets/types/asset-operation.d.ts +0 -17
- package/dist/modules/assets/types/general-asset-info.d.ts +0 -12
- package/dist/modules/assets/types/general-asset-transaction.d.ts +0 -13
- package/dist/modules/assets/types/hive-based-asset-sign-type.d.ts +0 -1
- package/dist/modules/assets/types/index.d.ts +0 -5
- package/dist/modules/assets/types/spk-wallet.d.ts +0 -60
- package/dist/modules/assets/utils/index.d.ts +0 -4
- package/dist/modules/assets/utils/is-empty-date.d.ts +0 -1
- package/dist/modules/assets/utils/parse-asset.d.ts +0 -17
- package/dist/modules/assets/utils/reward-spk.d.ts +0 -2
- package/dist/modules/assets/utils/vests-to-hp.d.ts +0 -1
- package/dist/modules/wallets/consts/hive-engine-tokens.d.ts +0 -1
- package/dist/modules/wallets/consts/index.d.ts +0 -1
- package/dist/modules/wallets/enums/ecency-wallet-basic-tokens.d.ts +0 -7
- package/dist/modules/wallets/enums/ecency-wallet-currency.d.ts +0 -9
- package/dist/modules/wallets/enums/index.d.ts +0 -2
- package/dist/modules/wallets/functions/get-keys-from-seed.d.ts +0 -3
- package/dist/modules/wallets/functions/index.d.ts +0 -1
- package/dist/modules/wallets/index.d.ts +0 -5
- package/dist/modules/wallets/mutations/index.d.ts +0 -5
- package/dist/modules/wallets/mutations/private-api/check-wallet-existence.d.ts +0 -7
- package/dist/modules/wallets/mutations/private-api/create-account-with-wallets.d.ts +0 -6
- package/dist/modules/wallets/mutations/private-api/index.d.ts +0 -2
- package/dist/modules/wallets/mutations/private-api-namespace.d.ts +0 -2
- package/dist/modules/wallets/mutations/save-wallet-information-to-metadata.d.ts +0 -9
- package/dist/modules/wallets/mutations/use-import-wallet.d.ts +0 -15
- package/dist/modules/wallets/mutations/use-wallet-create.d.ts +0 -11
- package/dist/modules/wallets/mutations/wallet-operation.d.ts +0 -2
- package/dist/modules/wallets/queries/get-account-wallet-asset-info-query-options.d.ts +0 -13
- package/dist/modules/wallets/queries/get-all-tokens-list-query-options.d.ts +0 -30
- package/dist/modules/wallets/queries/get-coingecko-price-query-options.d.ts +0 -8
- package/dist/modules/wallets/queries/get-tokens-operations-query-options.d.ts +0 -9
- package/dist/modules/wallets/queries/index.d.ts +0 -8
- package/dist/modules/wallets/queries/use-get-account-wallet-list-query.d.ts +0 -8
- package/dist/modules/wallets/queries/use-get-external-wallet-query.d.ts +0 -17
- package/dist/modules/wallets/queries/use-hive-keys-query.d.ts +0 -2
- package/dist/modules/wallets/queries/use-seed-phrase.d.ts +0 -1
- package/dist/modules/wallets/types/account-points-response.d.ts +0 -4
- package/dist/modules/wallets/types/ecency-create-wallet-information.d.ts +0 -13
- package/dist/modules/wallets/types/ecency-hive-keys.d.ts +0 -12
- package/dist/modules/wallets/types/index.d.ts +0 -3
- package/dist/modules/wallets/utils/build-external-transaction.d.ts +0 -48
- package/dist/modules/wallets/utils/decrypt-memo.d.ts +0 -12
- package/dist/modules/wallets/utils/delay.d.ts +0 -1
- package/dist/modules/wallets/utils/derive-hive-bip44-keys.d.ts +0 -15
- package/dist/modules/wallets/utils/derive-hive-master-password-keys.d.ts +0 -15
- package/dist/modules/wallets/utils/detect-hive-key-derivation.d.ts +0 -2
- package/dist/modules/wallets/utils/encrypt-memo.d.ts +0 -16
- package/dist/modules/wallets/utils/get-wallet.d.ts +0 -3
- package/dist/modules/wallets/utils/index.d.ts +0 -12
- package/dist/modules/wallets/utils/mnemonic-to-seed-bip-39.d.ts +0 -1
- package/dist/modules/wallets/utils/sign-digest.d.ts +0 -7
- package/dist/modules/wallets/utils/sign-external-transaction.d.ts +0 -18
- package/dist/modules/wallets/utils/sign-transaction.d.ts +0 -23
- 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,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,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,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
|
-
};
|
package/dist/modules/assets/spk/queries/get-larynx-power-asset-general-info-query-options.d.ts
DELETED
|
@@ -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,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,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,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 +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 +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 +0,0 @@
|
|
|
1
|
-
export * from './get-keys-from-seed';
|
|
@@ -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 {};
|