ault-sdk-ts 0.10.0 → 0.11.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.
@@ -79,19 +79,34 @@ export interface PortfolioPnL {
79
79
  }
80
80
  export type PortfolioTimeRange = "day" | "week" | "month" | "allTime";
81
81
  export interface PortfolioTimePoint {
82
+ /**
83
+ * The worker's sampling slot in Unix milliseconds, not the exact instant the
84
+ * source state was read.
85
+ */
82
86
  ts: number;
83
- accountValue: string;
84
- realizedPnl: string;
85
- unrealizedPnl: string;
86
- totalPnl: string;
87
- volume: string;
87
+ /** availableValue + escrowValue. */
88
+ totalValue: string;
89
+ /** Spendable balances. */
90
+ availableValue: string;
91
+ /** Collateral the wallet's open orders still hold. */
92
+ escrowValue: string;
93
+ /**
94
+ * Indexer height the worker recorded for this sample; 0 when unavailable.
95
+ * Absent from a backend older than the spec (mainnet at the time of writing).
96
+ */
97
+ indexedHeight?: number;
88
98
  }
89
99
  export interface PortfolioTimeSeries {
90
100
  address: string;
91
101
  range: PortfolioTimeRange;
102
+ /** Oldest first. Empty for a wallet the portfolio worker has not sampled yet. */
92
103
  points: PortfolioTimePoint[];
104
+ /** Some point covered a holding no market could price; every total is then a floor. */
93
105
  partial: boolean;
106
+ /** `ts` of the newest returned sample; 0 for an empty series. */
94
107
  asOf: number;
108
+ /** `indexedHeight` of the newest returned sample; 0 for an empty series. Absent on older backends. */
109
+ indexedHeight?: number;
95
110
  }
96
111
  /**
97
112
  * One vault position of an account: the vault detail's follower fields plus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ault-sdk-ts",
3
- "version": "0.10.0",
3
+ "version": "0.11.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",