@zoguxprotocol/proto 0.1.4 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoguxprotocol/proto",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "access": "public",
5
5
  "description": "Protos for Zogux protocol",
6
6
  "author": "Zogux Trading Inc.",
@@ -170,6 +170,13 @@ export interface ClobPair {
170
170
 
171
171
  quantumConversionExponent: number;
172
172
  status: ClobPair_Status;
173
+ /**
174
+ * Minimum notional value in quote quantums for orders on this CLOB.
175
+ * Orders with notional value below this will be rejected.
176
+ * Set to 0 to disable this check.
177
+ */
178
+
179
+ minNotional: Long;
173
180
  }
174
181
  /**
175
182
  * ClobPair represents a single CLOB pair for a given product
@@ -184,6 +191,7 @@ export interface ClobPairSDKType {
184
191
  subticks_per_tick: number;
185
192
  quantum_conversion_exponent: number;
186
193
  status: ClobPair_Status;
194
+ min_notional: Long;
187
195
  }
188
196
 
189
197
  function createBasePerpetualClobMetadata(): PerpetualClobMetadata {
@@ -284,7 +292,8 @@ function createBaseClobPair(): ClobPair {
284
292
  stepBaseQuantums: Long.UZERO,
285
293
  subticksPerTick: 0,
286
294
  quantumConversionExponent: 0,
287
- status: 0
295
+ status: 0,
296
+ minNotional: Long.UZERO
288
297
  };
289
298
  }
290
299
 
@@ -318,6 +327,10 @@ export const ClobPair = {
318
327
  writer.uint32(56).int32(message.status);
319
328
  }
320
329
 
330
+ if (!message.minNotional.isZero()) {
331
+ writer.uint32(64).uint64(message.minNotional);
332
+ }
333
+
321
334
  return writer;
322
335
  },
323
336
 
@@ -358,6 +371,10 @@ export const ClobPair = {
358
371
  message.status = (reader.int32() as any);
359
372
  break;
360
373
 
374
+ case 8:
375
+ message.minNotional = (reader.uint64() as Long);
376
+ break;
377
+
361
378
  default:
362
379
  reader.skipType(tag & 7);
363
380
  break;
@@ -376,6 +393,7 @@ export const ClobPair = {
376
393
  message.subticksPerTick = object.subticksPerTick ?? 0;
377
394
  message.quantumConversionExponent = object.quantumConversionExponent ?? 0;
378
395
  message.status = object.status ?? 0;
396
+ message.minNotional = object.minNotional !== undefined && object.minNotional !== null ? Long.fromValue(object.minNotional) : Long.UZERO;
379
397
  return message;
380
398
  }
381
399