ault-sdk-ts 0.12.0 → 0.13.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.
@@ -1,5 +1,5 @@
1
1
  import type { RestContext } from "./context";
2
- import { getPortfolioHoldings, getPortfolioFlows, getPortfolioPnl, getPortfolioTimeSeries, getPortfolioVaults } from "./portfolio";
2
+ import { getPortfolioHoldings, getPortfolioPnl, getPortfolioTimeSeries, getPortfolioVaults } from "./portfolio";
3
3
  export { initDexContext } from "./dex-fetcher";
4
4
  /**
5
5
  * Creates a DEX API instance bound to the given REST context.
@@ -26,7 +26,6 @@ export declare function createDexApi(context: RestContext): {
26
26
  getBalance: (params: import("./dex.generated").GetBalanceParams, options?: RequestInit) => Promise<import("./dex.generated").getBalanceResponse>;
27
27
  getStats: (params?: import("./dex.generated").GetStatsParams, options?: RequestInit) => Promise<import("./dex.generated").getStatsResponse>;
28
28
  getPortfolioHoldings: typeof getPortfolioHoldings;
29
- getPortfolioFlows: typeof getPortfolioFlows;
30
29
  getPortfolioPnl: typeof getPortfolioPnl;
31
30
  getPortfolioTimeSeries: typeof getPortfolioTimeSeries;
32
31
  getUDFConfig: (options?: RequestInit) => Promise<import("./dex.generated").getUDFConfigResponse>;
@@ -23,32 +23,6 @@ export interface PortfolioHoldings {
23
23
  partial: boolean;
24
24
  asOf: number;
25
25
  }
26
- export interface PortfolioFlowDirection {
27
- inUsd: string;
28
- outUsd: string;
29
- netUsd: string;
30
- }
31
- export interface PortfolioFlowKind {
32
- kind: string;
33
- inUsd: string;
34
- outUsd: string;
35
- netUsd: string;
36
- count: number;
37
- partial: boolean;
38
- }
39
- export interface PortfolioFlows {
40
- address: string;
41
- byKind: PortfolioFlowKind[];
42
- gas: PortfolioFlowDirection;
43
- rewards: PortfolioFlowDirection;
44
- transfer: PortfolioFlowDirection;
45
- module: PortfolioFlowDirection;
46
- clob: PortfolioFlowDirection;
47
- tokenregistry: PortfolioFlowDirection;
48
- staking: PortfolioFlowDirection;
49
- partial: boolean;
50
- asOf: number;
51
- }
52
26
  export interface PortfolioMarketPnL {
53
27
  symbol: string;
54
28
  realizedPnl: string;
@@ -139,7 +113,6 @@ export interface RestResponse<T> {
139
113
  headers: Headers;
140
114
  }
141
115
  export declare function getPortfolioHoldings(address: string, options?: RequestInit): Promise<RestResponse<PortfolioHoldings>>;
142
- export declare function getPortfolioFlows(address: string, range?: PortfolioTimeRange, options?: RequestInit): Promise<RestResponse<PortfolioFlows>>;
143
116
  export declare function getPortfolioPnl(address: string, range?: PortfolioTimeRange, options?: RequestInit): Promise<RestResponse<PortfolioPnL>>;
144
117
  export declare function getPortfolioTimeSeries(address: string, range?: PortfolioTimeRange, options?: RequestInit): Promise<RestResponse<PortfolioTimeSeries>>;
145
118
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ault-sdk-ts",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "TypeScript SDK for the Ault blockchain with high-level transaction methods and REST query clients",
5
5
  "keywords": [
6
6
  "ault",