@typus/typus-perp-sdk 1.1.25 → 1.1.26

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.
@@ -21,6 +21,8 @@ export interface Event {
21
21
  timestamp: string;
22
22
  tx_digest: string;
23
23
  dov_index: string | undefined;
24
+ reduce_only?: boolean;
25
+ is_stop_order?: boolean;
24
26
  sender: "user" | "cranker";
25
27
  }
26
28
  export declare function parseUserHistory(raw_events: any): Promise<Event[]>;
@@ -141,6 +141,8 @@ function parseUserHistory(raw_events) {
141
141
  timestamp: timestamp,
142
142
  tx_digest: tx_digest,
143
143
  dov_index: json.dov_index,
144
+ reduce_only: json.reduce_only,
145
+ is_stop_order: json.is_stop_order,
144
146
  sender: "user",
145
147
  };
146
148
  events.push(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",
@@ -34,4 +34,4 @@
34
34
  "url": "https://github.com/Typus-Lab/typus-perp-sdk/issues"
35
35
  },
36
36
  "homepage": "https://github.com/Typus-Lab/typus-perp-sdk#readme"
37
- }
37
+ }