@ecency/sdk 1.0.55 → 1.1.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.
- package/dist/ecency-sdk.es.js +300 -220
- package/dist/index.d.ts +0 -1
- package/dist/modules/accounts/mutations/use-account-update.d.ts +2 -5
- package/dist/modules/accounts/queries/get-account-full-query-options.d.ts +208 -328
- package/dist/modules/accounts/types/account-profile.d.ts +14 -0
- package/dist/modules/accounts/types/full-account.d.ts +52 -0
- package/dist/modules/accounts/types/index.d.ts +2 -0
- package/dist/modules/core/config.d.ts +1 -0
- package/dist/modules/core/index.d.ts +2 -0
- package/dist/modules/core/queries/get-dynamic-props-query-options.d.ts +9 -0
- package/dist/modules/core/queries/index.d.ts +1 -0
- package/dist/modules/core/types/dynamic-props.d.ts +15 -0
- package/dist/modules/core/types/index.d.ts +1 -0
- package/dist/modules/core/utils/index.d.ts +1 -0
- package/dist/modules/core/utils/parse-asset.d.ts +17 -0
- package/dist/modules/keychain/keychain.d.ts +1 -0
- package/package.json +1 -1
- package/dist/modules/hive-engine/index.d.ts +0 -1
- package/dist/modules/hive-engine/queries/index.d.ts +0 -1
- package/dist/modules/hive-engine/queries/use-get-hive-engine-tokens-list-query-options.d.ts +0 -8
- package/dist/modules/hive-engine/types/hive-engine-list-response.d.ts +0 -18
- package/dist/modules/hive-engine/types/index.d.ts +0 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
import { DynamicProps } from '../types';
|
2
|
+
export declare function getDynamicPropsQueryOptions(): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<DynamicProps, Error, DynamicProps, string[]>, "queryFn"> & {
|
3
|
+
queryFn?: import('@tanstack/query-core').QueryFunction<DynamicProps, string[], never> | undefined;
|
4
|
+
} & {
|
5
|
+
queryKey: string[] & {
|
6
|
+
[dataTagSymbol]: DynamicProps;
|
7
|
+
[dataTagErrorSymbol]: Error;
|
8
|
+
};
|
9
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './get-dynamic-props-query-options';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export interface DynamicProps {
|
2
|
+
hivePerMVests: number;
|
3
|
+
base: number;
|
4
|
+
quote: number;
|
5
|
+
fundRewardBalance: number;
|
6
|
+
fundRecentClaims: number;
|
7
|
+
hbdPrintRate: number;
|
8
|
+
hbdInterestRate: number;
|
9
|
+
headBlock: number;
|
10
|
+
totalVestingFund: number;
|
11
|
+
totalVestingShares: number;
|
12
|
+
virtualSupply: number;
|
13
|
+
vestingRewardPercent: number;
|
14
|
+
accountCreationFee: string;
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dynamic-props';
|
@@ -0,0 +1,17 @@
|
|
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;
|
@@ -6,4 +6,5 @@ interface TxResponse {
|
|
6
6
|
}
|
7
7
|
export declare function handshake(): Promise<void>;
|
8
8
|
export declare const broadcast: (account: string, operations: Operation[], key: KeychainAuthorityTypes, rpc?: string | null) => Promise<TxResponse>;
|
9
|
+
export declare const customJson: (account: string, id: string, key: KeychainAuthorityTypes, json: string, display_msg: string, rpc?: string | null) => Promise<TxResponse>;
|
9
10
|
export {};
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './queries';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './use-get-hive-engine-tokens-list-query-options';
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export declare function getHiveEngineTokensListQueryOptions(username?: string, symbol?: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../types').HiveEngineListResponseItem[], Error, import('../types').HiveEngineListResponseItem[], (string | undefined)[]>, "queryFn"> & {
|
2
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<import('../types').HiveEngineListResponseItem[], (string | undefined)[], never> | undefined;
|
3
|
-
} & {
|
4
|
-
queryKey: (string | undefined)[] & {
|
5
|
-
[dataTagSymbol]: import('../types').HiveEngineListResponseItem[];
|
6
|
-
[dataTagErrorSymbol]: Error;
|
7
|
-
};
|
8
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export interface HiveEngineListResponseItem {
|
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
|
-
}
|
14
|
-
export interface HiveEngineListResponse {
|
15
|
-
jsonrpc: string;
|
16
|
-
id: number;
|
17
|
-
result: HiveEngineListResponseItem[];
|
18
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './hive-engine-list-response';
|