@ecency/sdk 1.0.56 → 1.1.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.
@@ -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';
@@ -1 +1,2 @@
1
1
  export * from './decoder-encoder';
2
+ export * from './parse-asset';
@@ -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;
@@ -0,0 +1,44 @@
1
+ export declare function getHivePoshLinksQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
+ twitter: {
3
+ username: any;
4
+ profile: any;
5
+ };
6
+ reddit: {
7
+ username: any;
8
+ profile: any;
9
+ };
10
+ }, Error, {
11
+ twitter: {
12
+ username: any;
13
+ profile: any;
14
+ };
15
+ reddit: {
16
+ username: any;
17
+ profile: any;
18
+ };
19
+ }, (string | undefined)[]>, "queryFn"> & {
20
+ queryFn?: import('@tanstack/query-core').QueryFunction<{
21
+ twitter: {
22
+ username: any;
23
+ profile: any;
24
+ };
25
+ reddit: {
26
+ username: any;
27
+ profile: any;
28
+ };
29
+ }, (string | undefined)[], never> | undefined;
30
+ } & {
31
+ queryKey: (string | undefined)[] & {
32
+ [dataTagSymbol]: {
33
+ twitter: {
34
+ username: any;
35
+ profile: any;
36
+ };
37
+ reddit: {
38
+ username: any;
39
+ profile: any;
40
+ };
41
+ };
42
+ [dataTagErrorSymbol]: Error;
43
+ };
44
+ };
@@ -0,0 +1 @@
1
+ export * from './get-hiveposh-links-query-options';
@@ -1,2 +1,3 @@
1
1
  export * from './3speak';
2
2
  export * from './hivesigner';
3
+ export * from './hiveposh';
@@ -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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/sdk",
3
3
  "private": false,
4
- "version": "1.0.56",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",
@@ -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';