@ecency/wallets 1.3.20 → 1.4.1

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 (29) hide show
  1. package/dist/ecency-sdk.es.js +9800 -9384
  2. package/dist/modules/assets/external/apt/get-apt-asset-balance-query-options.d.ts +8 -0
  3. package/dist/modules/assets/external/apt/get-apt-asset-general-info-query-options.d.ts +28 -0
  4. package/dist/modules/assets/external/apt/index.d.ts +2 -0
  5. package/dist/modules/assets/external/bnb/get-bnb-asset-balance-query-options.d.ts +8 -0
  6. package/dist/modules/assets/external/bnb/get-bnb-asset-general-info-query-options.d.ts +28 -0
  7. package/dist/modules/assets/external/bnb/index.d.ts +2 -0
  8. package/dist/modules/assets/external/btc/get-btc-asset-balance-query-options.d.ts +8 -0
  9. package/dist/modules/assets/external/btc/get-btc-asset-general-info-query-options.d.ts +28 -0
  10. package/dist/modules/assets/external/btc/index.d.ts +2 -0
  11. package/dist/modules/assets/external/common/index.d.ts +1 -0
  12. package/dist/modules/assets/external/common/parse-private-api-balance.d.ts +23 -0
  13. package/dist/modules/assets/external/eth/get-eth-asset-balance-query-options.d.ts +8 -0
  14. package/dist/modules/assets/external/eth/get-eth-asset-general-info-query-options.d.ts +28 -0
  15. package/dist/modules/assets/external/eth/index.d.ts +2 -0
  16. package/dist/modules/assets/external/index.d.ts +7 -0
  17. package/dist/modules/assets/external/sol/get-sol-asset-balance-query-options.d.ts +8 -0
  18. package/dist/modules/assets/external/sol/get-sol-asset-general-info-query-options.d.ts +28 -0
  19. package/dist/modules/assets/external/sol/index.d.ts +2 -0
  20. package/dist/modules/assets/external/ton/get-ton-asset-balance-query-options.d.ts +8 -0
  21. package/dist/modules/assets/external/ton/get-ton-asset-general-info-query-options.d.ts +28 -0
  22. package/dist/modules/assets/external/ton/index.d.ts +2 -0
  23. package/dist/modules/assets/external/tron/get-tron-asset-balance-query-options.d.ts +8 -0
  24. package/dist/modules/assets/external/tron/get-tron-asset-general-info-query-options.d.ts +28 -0
  25. package/dist/modules/assets/external/tron/index.d.ts +2 -0
  26. package/dist/modules/wallets/queries/get-coingecko-price-query-options.d.ts +8 -0
  27. package/dist/modules/wallets/queries/index.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/dist/modules/wallets/queries/use-coingecko-price-query.d.ts +0 -2
@@ -0,0 +1,8 @@
1
+ export declare function getAptAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getAptAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-apt-asset-general-info-query-options';
2
+ export * from './get-apt-asset-balance-query-options';
@@ -0,0 +1,8 @@
1
+ export declare function getBnbAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getBnbAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-bnb-asset-general-info-query-options';
2
+ export * from './get-bnb-asset-balance-query-options';
@@ -0,0 +1,8 @@
1
+ export declare function getBtcAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getBtcAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-btc-asset-general-info-query-options';
2
+ export * from './get-btc-asset-balance-query-options';
@@ -0,0 +1 @@
1
+ export declare function getAddressFromAccount(username: string, tokenName: string): Promise<any>;
@@ -0,0 +1,23 @@
1
+ export interface ExternalWalletBalance {
2
+ chain: string;
3
+ unit: string;
4
+ raw?: unknown;
5
+ nodeId?: string;
6
+ /**
7
+ * Balance represented as a BigInt for convenience.
8
+ */
9
+ balanceBigInt: bigint;
10
+ /**
11
+ * Balance returned as a string to preserve precision for UIs that cannot
12
+ * handle bigint values directly.
13
+ */
14
+ balanceString: string;
15
+ }
16
+ export interface PrivateApiBalanceResponse {
17
+ chain: string;
18
+ balance: number | string;
19
+ unit: string;
20
+ raw?: unknown;
21
+ nodeId?: string;
22
+ }
23
+ export declare function parsePrivateApiBalance(result: PrivateApiBalanceResponse, expectedChain: string): ExternalWalletBalance;
@@ -0,0 +1,8 @@
1
+ export declare function getEthAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getEthAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-eth-asset-general-info-query-options';
2
+ export * from './get-eth-asset-balance-query-options';
@@ -0,0 +1,7 @@
1
+ export * from './apt';
2
+ export * from './bnb';
3
+ export * from './btc';
4
+ export * from './eth';
5
+ export * from './sol';
6
+ export * from './ton';
7
+ export * from './tron';
@@ -0,0 +1,8 @@
1
+ export declare function getSolAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getSolAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-sol-asset-general-info-query-options';
2
+ export * from './get-sol-asset-balance-query-options';
@@ -0,0 +1,8 @@
1
+ export declare function getTonAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getTonAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-ton-asset-general-info-query-options';
2
+ export * from './get-ton-asset-balance-query-options';
@@ -0,0 +1,8 @@
1
+ export declare function getTronAssetBalanceQueryOptions(address: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, string[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, string[], never> | undefined;
3
+ } & {
4
+ queryKey: string[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -0,0 +1,28 @@
1
+ export declare function getTronAssetGeneralInfoQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ name: string;
3
+ title: string;
4
+ price: number;
5
+ accountBalance: number;
6
+ }, Error, {
7
+ name: string;
8
+ title: string;
9
+ price: number;
10
+ accountBalance: number;
11
+ }, string[]>, "queryFn"> & {
12
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
13
+ name: string;
14
+ title: string;
15
+ price: number;
16
+ accountBalance: number;
17
+ }, string[], never> | undefined;
18
+ } & {
19
+ queryKey: string[] & {
20
+ [dataTagSymbol]: {
21
+ name: string;
22
+ title: string;
23
+ price: number;
24
+ accountBalance: number;
25
+ };
26
+ [dataTagErrorSymbol]: Error;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './get-tron-asset-general-info-query-options';
2
+ export * from './get-tron-asset-balance-query-options';
@@ -0,0 +1,8 @@
1
+ export declare function getCoinGeckoPriceQueryOptions(currency?: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<number, Error, number, (string | undefined)[]>, "queryFn"> & {
2
+ queryFn?: import('@tanstack/query-core').QueryFunction<number, (string | undefined)[], never> | undefined;
3
+ } & {
4
+ queryKey: (string | undefined)[] & {
5
+ [dataTagSymbol]: number;
6
+ [dataTagErrorSymbol]: Error;
7
+ };
8
+ };
@@ -1,6 +1,6 @@
1
1
  export * from './use-get-external-wallet-query';
2
2
  export * from './use-seed-phrase';
3
- export * from './use-coingecko-price-query';
3
+ export * from './get-coingecko-price-query-options';
4
4
  export * from './use-hive-keys-query';
5
5
  export * from './get-all-tokens-list-query-options';
6
6
  export * from './use-get-account-wallet-list-query';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/wallets",
3
3
  "private": false,
4
- "version": "1.3.20",
4
+ "version": "1.4.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",
@@ -1,2 +0,0 @@
1
- import { EcencyWalletCurrency } from '../enums';
2
- export declare function useCoinGeckoPriceQuery(currency?: EcencyWalletCurrency): import('@tanstack/react-query').UseQueryResult<number, Error>;