@ecency/sdk 2.3.58 → 2.3.60

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.
@@ -4989,6 +4989,13 @@ type LeaderBoardDuration = "day" | "week" | "month";
4989
4989
  interface CurationItem {
4990
4990
  efficiency: number;
4991
4991
  account: string;
4992
+ /** Curation reward for the period, in Hive Power. */
4993
+ hp: number;
4994
+ /**
4995
+ * @deprecated Alias of `hp`, kept while consumers migrate. The value has
4996
+ * always been Hive Power despite the name, which caused a double-conversion
4997
+ * bug downstream. Read `hp` instead.
4998
+ */
4992
4999
  vests: number;
4993
5000
  votes: number;
4994
5001
  uniques: number;
@@ -8624,8 +8631,16 @@ declare function getHiveEngineOrderBook<T = EngineOrderBookEntry>(symbol: string
8624
8631
  }>;
8625
8632
  declare function getHiveEngineTradeHistory<T = Record<string, unknown>>(symbol: string, limit?: number): Promise<T[]>;
8626
8633
  declare function getHiveEngineOpenOrders<T = HiveEngineOpenOrder>(account: string, symbol: string, limit?: number): Promise<T[]>;
8627
- declare function getHiveEngineMetrics<T = Record<string, unknown>>(symbol?: string, account?: string): Promise<T[]>;
8628
- declare function getHiveEngineTokensMarket<T = Record<string, unknown>>(account?: string, symbol?: string): Promise<T[]>;
8634
+ /**
8635
+ * Market metrics, optionally narrowed to one symbol or to a list of them.
8636
+ *
8637
+ * An unfiltered call is served from a single page – the node caps `find` at 1000 rows
8638
+ * while Hive engine has far more traded tokens than that – so callers that only care
8639
+ * about specific symbols must pass them. Scanning the unfiltered page for a symbol
8640
+ * silently reports "no market" for everything outside it.
8641
+ */
8642
+ declare function getHiveEngineMetrics<T = Record<string, unknown>>(symbol?: string | string[], account?: string): Promise<T[]>;
8643
+ declare function getHiveEngineTokensMarket<T = Record<string, unknown>>(account?: string, symbol?: string | string[]): Promise<T[]>;
8629
8644
  declare function getHiveEngineTokensBalances<T = Record<string, unknown>>(username: string): Promise<T[]>;
8630
8645
  declare function getHiveEngineTokensMetadata<T = Record<string, unknown>>(tokens: string[]): Promise<T[]>;
8631
8646
  declare function getHiveEngineTokenTransactions<T = Record<string, unknown>>(username: string, symbol: string, limit: number, offset: number): Promise<T[]>;
@@ -8726,10 +8741,10 @@ declare function getHiveEngineUnclaimedRewardsQueryOptions(username: string | un
8726
8741
  };
8727
8742
  };
8728
8743
 
8729
- declare function getAllHiveEngineTokensQueryOptions(account?: string, symbol?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenInfo[], Error, HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined]>, "queryFn"> & {
8730
- queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined], never> | undefined;
8744
+ declare function getAllHiveEngineTokensQueryOptions(account?: string, symbol?: string | string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<HiveEngineTokenInfo[], Error, HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | string[] | undefined]>, "queryFn"> & {
8745
+ queryFn?: _tanstack_react_query.QueryFunction<HiveEngineTokenInfo[], readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | string[] | undefined], never> | undefined;
8731
8746
  } & {
8732
- queryKey: readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | undefined] & {
8747
+ queryKey: readonly ["assets", "hive-engine", "all-tokens", string | undefined, string | string[] | undefined] & {
8733
8748
  [dataTagSymbol]: HiveEngineTokenInfo[];
8734
8749
  [dataTagErrorSymbol]: Error;
8735
8750
  };