@stryke-xyz/premarket-sdk 1.1.7 → 1.1.8

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.
@@ -150,10 +150,11 @@ function submarketToBigInt(submarket) {
150
150
  /**
151
151
  * Convert string market fields to BigInt while preserving addresses and labels.
152
152
  */ function marketToBigInt(market) {
153
- var _market_logoUri, _market_hasFinalTick;
153
+ var _market_groupName, _market_logoUri, _market_hasFinalTick;
154
154
  var baseMarket = {
155
155
  id: market.id,
156
156
  groupId: market.groupId,
157
+ groupName: (_market_groupName = market.groupName) !== null && _market_groupName !== void 0 ? _market_groupName : null,
157
158
  type: market.type,
158
159
  name: market.name,
159
160
  description: market.description,
@@ -1 +1 @@
1
- {"name":"@stryke-xyz/premarket-sdk","version":"1.1.7","type":"commonjs"}
1
+ {"name":"@stryke-xyz/premarket-sdk","version":"1.1.8","type":"commonjs"}
@@ -25,11 +25,11 @@ Object.defineProperty(exports, "OrderStatus", {
25
25
  OrderStatus["CANCELLED"] = "CANCELLED";
26
26
  OrderStatus["EXPIRED"] = "EXPIRED";
27
27
  return OrderStatus;
28
- }({})// Enriched by the order-queue when returning user orders
28
+ }({})/** Primary wallet address (depositor) — required for ERC1271 smart account maker validation */ // Enriched by the order-queue when returning user orders
29
29
  /** If true, amount is in maker's makingAmount units. If false, amount is in maker's takingAmount units. */ /** The amount to pass to Exchange.fillOrder */ /** Whether fillAmount is in maker's makingAmount units (true) or takingAmount units (false) */ /** True if the user-submitted order's `amount` is in maker's makingAmount units. */ /** Set to "awaiting match" when the engine's match tail did not arrive within the API's wait window. */ // ============================================================================
30
30
  // MARKET TYPES
31
31
  // ============================================================================
32
- /** True when the on-chain FinalTick event has been indexed for this market's current expiry. */ /** Numeric market_id of this sub-market (same as id for standalone, member id for grouped). */ /** Sub-markets / instruments in this ERC20 group. */ /** @deprecated Use `instruments` instead. Kept for backward compatibility. */ // ============================================================================
32
+ /** Human-readable group label; only populated for grouped ERC20 markets. */ /** True when the on-chain FinalTick event has been indexed for this market's current expiry. */ /** Numeric market_id of this sub-market (same as id for standalone, member id for grouped). */ /** Sub-markets / instruments in this ERC20 group. */ /** @deprecated Use `instruments` instead. Kept for backward compatibility. */ // ============================================================================
33
33
  // POSITION & PNL TYPES
34
34
  // ============================================================================
35
35
  /** PnL contribution from limit-order trades */ /** PnL contribution from redemption / exercise settlements */ /**
@@ -38,7 +38,8 @@ Object.defineProperty(exports, "OrderStatus", {
38
38
  */ /** Position enriched with market/instrument context returned by /positions. */ /** true when holding > 0 */ /** true = oPRM (outcome position), false = PRM (write/minted) */ /** Flat list sorted by updatedAt desc. */ /** Same positions grouped by market for convenient access. */ // ============================================================================
39
39
  // HISTORY TYPES
40
40
  // ============================================================================
41
- /** Net proceeds after fees (profit - fees), as a string */ /** true = ask (maker sells), false = bid (maker buys); from API when available */ /** Recent trade item as returned by getMarketRecentTrades */ /**
41
+ /** Net proceeds after fees (profit - fees), as a string */ /** true = ask (maker sells), false = bid (maker buys); from API when available */ /** Recent trade item as returned by getMarketRecentTrades */ /** FinalTick of the just-closed (oldExpiry) epoch, if indexed. Null if the
42
+ * settlement event hasn't been indexed yet or for legacy rows. */ /**
42
43
  * All of the above merged and sorted chronologically (newest first).
43
44
  * Each event has a `type` discriminator field.
44
45
  * Populated by /history — may be absent on sub-routes like /history/mints.
@@ -108,10 +108,11 @@ function submarketToBigInt(submarket) {
108
108
  /**
109
109
  * Convert string market fields to BigInt while preserving addresses and labels.
110
110
  */ export function marketToBigInt(market) {
111
- var _market_logoUri, _market_hasFinalTick;
111
+ var _market_groupName, _market_logoUri, _market_hasFinalTick;
112
112
  var baseMarket = {
113
113
  id: market.id,
114
114
  groupId: market.groupId,
115
+ groupName: (_market_groupName = market.groupName) !== null && _market_groupName !== void 0 ? _market_groupName : null,
115
116
  type: market.type,
116
117
  name: market.name,
117
118
  description: market.description,
@@ -1 +1 @@
1
- {"name":"@stryke-xyz/premarket-sdk","version":"1.1.7","type":"module"}
1
+ {"name":"@stryke-xyz/premarket-sdk","version":"1.1.8","type":"module"}
@@ -15,11 +15,11 @@
15
15
  OrderStatus["CANCELLED"] = "CANCELLED";
16
16
  OrderStatus["EXPIRED"] = "EXPIRED";
17
17
  return OrderStatus;
18
- }({})// Enriched by the order-queue when returning user orders
18
+ }({})/** Primary wallet address (depositor) — required for ERC1271 smart account maker validation */ // Enriched by the order-queue when returning user orders
19
19
  /** If true, amount is in maker's makingAmount units. If false, amount is in maker's takingAmount units. */ /** The amount to pass to Exchange.fillOrder */ /** Whether fillAmount is in maker's makingAmount units (true) or takingAmount units (false) */ /** True if the user-submitted order's `amount` is in maker's makingAmount units. */ /** Set to "awaiting match" when the engine's match tail did not arrive within the API's wait window. */ // ============================================================================
20
20
  // MARKET TYPES
21
21
  // ============================================================================
22
- /** True when the on-chain FinalTick event has been indexed for this market's current expiry. */ /** Numeric market_id of this sub-market (same as id for standalone, member id for grouped). */ /** Sub-markets / instruments in this ERC20 group. */ /** @deprecated Use `instruments` instead. Kept for backward compatibility. */ // ============================================================================
22
+ /** Human-readable group label; only populated for grouped ERC20 markets. */ /** True when the on-chain FinalTick event has been indexed for this market's current expiry. */ /** Numeric market_id of this sub-market (same as id for standalone, member id for grouped). */ /** Sub-markets / instruments in this ERC20 group. */ /** @deprecated Use `instruments` instead. Kept for backward compatibility. */ // ============================================================================
23
23
  // POSITION & PNL TYPES
24
24
  // ============================================================================
25
25
  /** PnL contribution from limit-order trades */ /** PnL contribution from redemption / exercise settlements */ /**
@@ -28,7 +28,8 @@
28
28
  */ /** Position enriched with market/instrument context returned by /positions. */ /** true when holding > 0 */ /** true = oPRM (outcome position), false = PRM (write/minted) */ /** Flat list sorted by updatedAt desc. */ /** Same positions grouped by market for convenient access. */ // ============================================================================
29
29
  // HISTORY TYPES
30
30
  // ============================================================================
31
- /** Net proceeds after fees (profit - fees), as a string */ /** true = ask (maker sells), false = bid (maker buys); from API when available */ /** Recent trade item as returned by getMarketRecentTrades */ /**
31
+ /** Net proceeds after fees (profit - fees), as a string */ /** true = ask (maker sells), false = bid (maker buys); from API when available */ /** Recent trade item as returned by getMarketRecentTrades */ /** FinalTick of the just-closed (oldExpiry) epoch, if indexed. Null if the
32
+ * settlement event hasn't been indexed yet or for legacy rows. */ /**
32
33
  * All of the above merged and sorted chronologically (newest first).
33
34
  * Each event has a `type` discriminator field.
34
35
  * Populated by /history — may be absent on sub-routes like /history/mints.
@@ -37,6 +37,7 @@ export type BigIntMarketInstrument = BigIntVanillaMarketInstrument | BigIntSprea
37
37
  export interface BigIntBaseMarket {
38
38
  id: string;
39
39
  groupId: string | null;
40
+ groupName: string | null;
40
41
  type: "erc6909" | "erc20";
41
42
  name: string;
42
43
  description: string;
@@ -45,6 +45,8 @@ export interface CreateOrderParams {
45
45
  order: Order;
46
46
  signature: OrderSignature;
47
47
  operator?: string;
48
+ /** Primary wallet address (depositor) — required for ERC1271 smart account maker validation */
49
+ depositor?: string;
48
50
  timeInForce?: TimeInForce;
49
51
  postOnly?: boolean;
50
52
  }
@@ -127,6 +129,8 @@ export type SpreadType = "vanilla" | "standard" | "absolute";
127
129
  export interface BaseMarket {
128
130
  id: string;
129
131
  groupId: string | null;
132
+ /** Human-readable group label; only populated for grouped ERC20 markets. */
133
+ groupName: string | null;
130
134
  type: "erc6909" | "erc20";
131
135
  name: string;
132
136
  description: string;
@@ -443,6 +447,9 @@ export interface RolloverHistoryItem extends EventEnrichment {
443
447
  rolloverFee: string;
444
448
  netRolloverCollateral: string;
445
449
  newAmount: string;
450
+ /** FinalTick of the just-closed (oldExpiry) epoch, if indexed. Null if the
451
+ * settlement event hasn't been indexed yet or for legacy rows. */
452
+ finalTick: string | null;
446
453
  transactionHash: `0x${string}`;
447
454
  blockNumber: string;
448
455
  timestamp: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke-xyz/premarket-sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",