@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.
@@ -8,6 +8,7 @@ export declare const CONFIG: {
8
8
  heliusApiKey: any;
9
9
  queryClient: QueryClient;
10
10
  plausibleHost: string;
11
+ spkNode: string;
11
12
  };
12
13
  export declare namespace ConfigManager {
13
14
  function setQueryClient(client: QueryClient): void;
@@ -3,3 +3,5 @@ export * from './storage';
3
3
  export * from './entities';
4
4
  export * from './config';
5
5
  export * from './queries-manager';
6
+ export * from './queries';
7
+ export * from './types';
@@ -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;
@@ -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.55",
4
+ "version": "1.1.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",
@@ -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';