ault-sdk-ts 0.4.0 → 0.4.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.
package/dist/index.cjs CHANGED
@@ -26431,7 +26431,7 @@ function createDexWs(url, options) {
26431
26431
  }
26432
26432
 
26433
26433
  // src/index.ts
26434
- var SDK_VERSION = "0.4.0";
26434
+ var SDK_VERSION = "0.4.1";
26435
26435
  // Annotate the CommonJS export names for ESM import in node:
26436
26436
  0 && (module.exports = {
26437
26437
  AGENT_DEFAULTS,
package/dist/index.js CHANGED
@@ -26135,7 +26135,7 @@ function createDexWs(url, options) {
26135
26135
  }
26136
26136
 
26137
26137
  // src/index.ts
26138
- var SDK_VERSION = "0.4.0";
26138
+ var SDK_VERSION = "0.4.1";
26139
26139
  export {
26140
26140
  AGENT_DEFAULTS,
26141
26141
  AULT_SIGNER_MARKER,
@@ -107,15 +107,21 @@ export interface WsCandle {
107
107
  export type WsCandles = WsCandle[];
108
108
  /**
109
109
  * `activeAssetCtx` — per-block market context. The Hyperliquid base fields
110
- * (`dayNtlVlm`, `prevDayPx`, `markPx`, `midPx`, `circulatingSupply`) are JSON
111
- * numbers; the Ault extension fields are decimal strings to preserve precision
112
- * past 2^53. `midPx` and the extension fields are present only when the
113
- * underlying value resolved (the relay omits them otherwise).
114
- * `circulatingSupply` is always `0` (not tracked).
110
+ * (`markPx`, `midPx`, `circulatingSupply`) are JSON numbers; the Ault
111
+ * extension fields are decimal strings to preserve precision past 2^53.
112
+ * `midPx` and the extension fields are present only when the underlying value
113
+ * resolved (the relay omits them otherwise). `circulatingSupply` is always
114
+ * `0` (not tracked).
115
+ *
116
+ * The 24h aggregates (`dayNtlVlm`, `prevDayPx`, `high`, `low`, `average`,
117
+ * `vwap`, `change`, `percentage`, `baseVolume`, `quoteVolume`) are all
118
+ * optional: a frame may omit any of them. Treat an absent aggregate as
119
+ * "unchanged this tick" and keep the value from the REST ticker
120
+ * (`GET /tickers`, `GET /ticker/{symbol}`) — never read it as zero.
115
121
  */
116
122
  export interface WsActiveAssetCtxData {
117
- dayNtlVlm: number;
118
- prevDayPx: number;
123
+ dayNtlVlm?: number;
124
+ prevDayPx?: number;
119
125
  markPx: number;
120
126
  midPx?: number;
121
127
  circulatingSupply: number;
@@ -130,8 +136,8 @@ export interface WsActiveAssetCtxData {
130
136
  vwap?: string;
131
137
  change?: string;
132
138
  percentage?: string;
133
- baseVolume: string;
134
- quoteVolume: string;
139
+ baseVolume?: string;
140
+ quoteVolume?: string;
135
141
  }
136
142
  export interface WsActiveAssetCtx {
137
143
  coin: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ault-sdk-ts",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript SDK for the Ault blockchain with high-level transaction methods and REST query clients",
5
5
  "keywords": [
6
6
  "ault",