@n1xyz/nord-ts 0.0.21 → 0.1.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.
Files changed (46) hide show
  1. package/README.md +20 -16
  2. package/dist/api/client.d.ts +14 -0
  3. package/dist/api/client.js +45 -0
  4. package/dist/bridge/client.d.ts +151 -0
  5. package/dist/bridge/client.js +434 -0
  6. package/dist/bridge/const.d.ts +23 -0
  7. package/dist/bridge/const.js +47 -0
  8. package/dist/bridge/index.d.ts +4 -0
  9. package/dist/bridge/index.js +23 -0
  10. package/dist/bridge/types.d.ts +120 -0
  11. package/dist/bridge/types.js +18 -0
  12. package/dist/bridge/utils.d.ts +64 -0
  13. package/dist/bridge/utils.js +131 -0
  14. package/dist/gen/common.d.ts +68 -0
  15. package/dist/gen/common.js +215 -0
  16. package/dist/gen/nord_pb.d.ts +3719 -0
  17. package/dist/gen/nord_pb.js +945 -0
  18. package/dist/gen/openapi.d.ts +268 -4
  19. package/dist/idl/bridge.d.ts +569 -0
  20. package/dist/idl/bridge.js +8 -0
  21. package/dist/idl/bridge.json +1506 -0
  22. package/dist/idl/index.d.ts +607 -0
  23. package/dist/idl/index.js +8 -0
  24. package/dist/nord/api/actions.d.ts +31 -72
  25. package/dist/nord/api/actions.js +199 -201
  26. package/dist/nord/api/market.d.ts +36 -0
  27. package/dist/nord/api/market.js +96 -0
  28. package/dist/nord/api/queries.d.ts +46 -0
  29. package/dist/nord/api/queries.js +109 -0
  30. package/dist/nord/client/Nord.js +3 -3
  31. package/dist/nord/client/NordUser.d.ts +26 -13
  32. package/dist/nord/client/NordUser.js +13 -10
  33. package/dist/types.d.ts +12 -1
  34. package/dist/types.js +29 -2
  35. package/dist/utils.d.ts +6 -20
  36. package/dist/utils.js +17 -35
  37. package/dist/websocket/NordWebSocketClient.js +2 -6
  38. package/package.json +26 -23
  39. package/src/gen/nord_pb.ts +4257 -0
  40. package/src/gen/openapi.ts +268 -4
  41. package/src/nord/api/actions.ts +278 -369
  42. package/src/nord/client/Nord.ts +3 -3
  43. package/src/nord/client/NordUser.ts +40 -19
  44. package/src/types.ts +32 -1
  45. package/src/utils.ts +24 -43
  46. package/src/websocket/NordWebSocketClient.ts +2 -8
@@ -0,0 +1,4257 @@
1
+ // TODO: add buf to control incompatible changes
2
+ // Only the `Action` and `Receipt` messages are length-delimited,
3
+ // i.e. prefixed with a varint encoding the length of the protobuf message.
4
+ // All other message types are encoded normally, i.e. with no prefix.
5
+
6
+ // @generated by protoc-gen-es v2.6.3 with parameter "target=ts,json_types=true"
7
+ // @generated from file nord.proto (package nord, syntax proto3)
8
+ /* eslint-disable */
9
+
10
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
11
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
12
+ import type { Message } from "@bufbuild/protobuf";
13
+
14
+ /**
15
+ * Describes the file nord.proto.
16
+ */
17
+ export const file_nord: GenFile = /*@__PURE__*/
18
+ fileDesc("Cgpub3JkLnByb3RvEgRub3JkItABCgZNYXJrZXQSEQoJbWFya2V0X2lkGAEgASgNEhYKDnByaWNlX2RlY2ltYWxzGAIgASgNEhUKDXNpemVfZGVjaW1hbHMYAyABKA0SFQoNYmFzZV90b2tlbl9pZBgEIAEoDRIlCgttYXJrZXRfdHlwZRgFIAEoDjIQLm5vcmQuTWFya2V0VHlwZRIPCgdpbWZfYnBzGAYgASgNEg8KB2NtZl9icHMYByABKA0SDwoHbW1mX2JwcxgIIAEoDRITCgt2aWV3X3N5bWJvbBgKIAEoCSJaCgVUb2tlbhIQCgh0b2tlbl9pZBgBIAEoDRIWCg50b2tlbl9kZWNpbWFscxgCIAEoDRISCgp3ZWlnaHRfYnBzGAQgASgNEhMKC3ZpZXdfc3ltYm9sGAUgASgJIigKCVF1b3RlU2l6ZRIMCgRzaXplGAEgASgEEg0KBXByaWNlGAIgASgEIk4KCk9yZGVyTGltaXQSDQoFcHJpY2UYBiABKAQSDAo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PTExPV19UUkFERVNfUExBQ0VTEIECEiYKIUFDVElPTl9QT1NJVElPTl9TSE9VTERfQkVfQ09WRVJFRBCRAhIZChRBQ1RJT05fSU5WQUxJRF9OT05DRRCSAhIpCiRBQ1RJT05fUFJPUE9TRURfUFJJQ0VfTVVTVF9CRV9ISUdIRVIQkwISFAoPTk9UX0lNUExFTUVOVEVEEPQDEgwKB0Ryb3BwZWQQ5wcqHgoOU3BlY2lhbEFjY291bnQSDAoIRmVlVmF1bHQQAGIGcHJvdG8z");
19
+
20
+ /**
21
+ * @generated from message nord.Market
22
+ */
23
+ export type Market = Message<"nord.Market"> & {
24
+ /**
25
+ * @generated from field: uint32 market_id = 1;
26
+ */
27
+ marketId: number;
28
+
29
+ /**
30
+ * @generated from field: uint32 price_decimals = 2;
31
+ */
32
+ priceDecimals: number;
33
+
34
+ /**
35
+ * @generated from field: uint32 size_decimals = 3;
36
+ */
37
+ sizeDecimals: number;
38
+
39
+ /**
40
+ * @generated from field: uint32 base_token_id = 4;
41
+ */
42
+ baseTokenId: number;
43
+
44
+ /**
45
+ * @generated from field: nord.MarketType market_type = 5;
46
+ */
47
+ marketType: MarketType;
48
+
49
+ /**
50
+ * @generated from field: uint32 imf_bps = 6;
51
+ */
52
+ imfBps: number;
53
+
54
+ /**
55
+ * @generated from field: uint32 cmf_bps = 7;
56
+ */
57
+ cmfBps: number;
58
+
59
+ /**
60
+ * @generated from field: uint32 mmf_bps = 8;
61
+ */
62
+ mmfBps: number;
63
+
64
+ /**
65
+ * @generated from field: string view_symbol = 10;
66
+ */
67
+ viewSymbol: string;
68
+ };
69
+
70
+ /**
71
+ * @generated from message nord.Market
72
+ */
73
+ export type MarketJson = {
74
+ /**
75
+ * @generated from field: uint32 market_id = 1;
76
+ */
77
+ marketId?: number;
78
+
79
+ /**
80
+ * @generated from field: uint32 price_decimals = 2;
81
+ */
82
+ priceDecimals?: number;
83
+
84
+ /**
85
+ * @generated from field: uint32 size_decimals = 3;
86
+ */
87
+ sizeDecimals?: number;
88
+
89
+ /**
90
+ * @generated from field: uint32 base_token_id = 4;
91
+ */
92
+ baseTokenId?: number;
93
+
94
+ /**
95
+ * @generated from field: nord.MarketType market_type = 5;
96
+ */
97
+ marketType?: MarketTypeJson;
98
+
99
+ /**
100
+ * @generated from field: uint32 imf_bps = 6;
101
+ */
102
+ imfBps?: number;
103
+
104
+ /**
105
+ * @generated from field: uint32 cmf_bps = 7;
106
+ */
107
+ cmfBps?: number;
108
+
109
+ /**
110
+ * @generated from field: uint32 mmf_bps = 8;
111
+ */
112
+ mmfBps?: number;
113
+
114
+ /**
115
+ * @generated from field: string view_symbol = 10;
116
+ */
117
+ viewSymbol?: string;
118
+ };
119
+
120
+ /**
121
+ * Describes the message nord.Market.
122
+ * Use `create(MarketSchema)` to create a new message.
123
+ */
124
+ export const MarketSchema: GenMessage<Market, {jsonType: MarketJson}> = /*@__PURE__*/
125
+ messageDesc(file_nord, 0);
126
+
127
+ /**
128
+ * @generated from message nord.Token
129
+ */
130
+ export type Token = Message<"nord.Token"> & {
131
+ /**
132
+ * @generated from field: uint32 token_id = 1;
133
+ */
134
+ tokenId: number;
135
+
136
+ /**
137
+ * / See CreateToken for details.
138
+ *
139
+ * @generated from field: uint32 token_decimals = 2;
140
+ */
141
+ tokenDecimals: number;
142
+
143
+ /**
144
+ * @generated from field: uint32 weight_bps = 4;
145
+ */
146
+ weightBps: number;
147
+
148
+ /**
149
+ * @generated from field: string view_symbol = 5;
150
+ */
151
+ viewSymbol: string;
152
+ };
153
+
154
+ /**
155
+ * @generated from message nord.Token
156
+ */
157
+ export type TokenJson = {
158
+ /**
159
+ * @generated from field: uint32 token_id = 1;
160
+ */
161
+ tokenId?: number;
162
+
163
+ /**
164
+ * / See CreateToken for details.
165
+ *
166
+ * @generated from field: uint32 token_decimals = 2;
167
+ */
168
+ tokenDecimals?: number;
169
+
170
+ /**
171
+ * @generated from field: uint32 weight_bps = 4;
172
+ */
173
+ weightBps?: number;
174
+
175
+ /**
176
+ * @generated from field: string view_symbol = 5;
177
+ */
178
+ viewSymbol?: string;
179
+ };
180
+
181
+ /**
182
+ * Describes the message nord.Token.
183
+ * Use `create(TokenSchema)` to create a new message.
184
+ */
185
+ export const TokenSchema: GenMessage<Token, {jsonType: TokenJson}> = /*@__PURE__*/
186
+ messageDesc(file_nord, 1);
187
+
188
+ /**
189
+ * quote_size = size * price, in decimals for specific market
190
+ * Use current market if you want realistic tick step exisitng on market.
191
+ * Use smaller prices for more granular quote size control,
192
+ * but beware it will be neared to possible value in engine.
193
+ *
194
+ * @generated from message nord.QuoteSize
195
+ */
196
+ export type QuoteSize = Message<"nord.QuoteSize"> & {
197
+ /**
198
+ * In `Market.size_decimals` decimals. 63 bit positive integer.
199
+ *
200
+ * @generated from field: uint64 size = 1;
201
+ */
202
+ size: bigint;
203
+
204
+ /**
205
+ * In `Market.price_decimals` decimals. 64 bit positive integer.
206
+ *
207
+ * @generated from field: uint64 price = 2;
208
+ */
209
+ price: bigint;
210
+ };
211
+
212
+ /**
213
+ * quote_size = size * price, in decimals for specific market
214
+ * Use current market if you want realistic tick step exisitng on market.
215
+ * Use smaller prices for more granular quote size control,
216
+ * but beware it will be neared to possible value in engine.
217
+ *
218
+ * @generated from message nord.QuoteSize
219
+ */
220
+ export type QuoteSizeJson = {
221
+ /**
222
+ * In `Market.size_decimals` decimals. 63 bit positive integer.
223
+ *
224
+ * @generated from field: uint64 size = 1;
225
+ */
226
+ size?: string;
227
+
228
+ /**
229
+ * In `Market.price_decimals` decimals. 64 bit positive integer.
230
+ *
231
+ * @generated from field: uint64 price = 2;
232
+ */
233
+ price?: string;
234
+ };
235
+
236
+ /**
237
+ * Describes the message nord.QuoteSize.
238
+ * Use `create(QuoteSizeSchema)` to create a new message.
239
+ */
240
+ export const QuoteSizeSchema: GenMessage<QuoteSize, {jsonType: QuoteSizeJson}> = /*@__PURE__*/
241
+ messageDesc(file_nord, 2);
242
+
243
+ /**
244
+ * @generated from message nord.OrderLimit
245
+ */
246
+ export type OrderLimit = Message<"nord.OrderLimit"> & {
247
+ /**
248
+ * @generated from field: uint64 price = 6;
249
+ */
250
+ price: bigint;
251
+
252
+ /**
253
+ * @generated from field: uint64 size = 7;
254
+ */
255
+ size: bigint;
256
+
257
+ /**
258
+ * Optional.
259
+ *
260
+ * @generated from field: nord.QuoteSize quote_size = 8;
261
+ */
262
+ quoteSize?: QuoteSize;
263
+ };
264
+
265
+ /**
266
+ * @generated from message nord.OrderLimit
267
+ */
268
+ export type OrderLimitJson = {
269
+ /**
270
+ * @generated from field: uint64 price = 6;
271
+ */
272
+ price?: string;
273
+
274
+ /**
275
+ * @generated from field: uint64 size = 7;
276
+ */
277
+ size?: string;
278
+
279
+ /**
280
+ * Optional.
281
+ *
282
+ * @generated from field: nord.QuoteSize quote_size = 8;
283
+ */
284
+ quoteSize?: QuoteSizeJson;
285
+ };
286
+
287
+ /**
288
+ * Describes the message nord.OrderLimit.
289
+ * Use `create(OrderLimitSchema)` to create a new message.
290
+ */
291
+ export const OrderLimitSchema: GenMessage<OrderLimit, {jsonType: OrderLimitJson}> = /*@__PURE__*/
292
+ messageDesc(file_nord, 3);
293
+
294
+ /**
295
+ * @generated from message nord.OrderType
296
+ */
297
+ export type OrderType = Message<"nord.OrderType"> & {
298
+ /**
299
+ * @generated from field: nord.Side side = 3;
300
+ */
301
+ side: Side;
302
+
303
+ /**
304
+ * @generated from field: nord.FillMode fill_mode = 4;
305
+ */
306
+ fillMode: FillMode;
307
+
308
+ /**
309
+ * @generated from field: bool is_reduce_only = 5;
310
+ */
311
+ isReduceOnly: boolean;
312
+ };
313
+
314
+ /**
315
+ * @generated from message nord.OrderType
316
+ */
317
+ export type OrderTypeJson = {
318
+ /**
319
+ * @generated from field: nord.Side side = 3;
320
+ */
321
+ side?: SideJson;
322
+
323
+ /**
324
+ * @generated from field: nord.FillMode fill_mode = 4;
325
+ */
326
+ fillMode?: FillModeJson;
327
+
328
+ /**
329
+ * @generated from field: bool is_reduce_only = 5;
330
+ */
331
+ isReduceOnly?: boolean;
332
+ };
333
+
334
+ /**
335
+ * Describes the message nord.OrderType.
336
+ * Use `create(OrderTypeSchema)` to create a new message.
337
+ */
338
+ export const OrderTypeSchema: GenMessage<OrderType, {jsonType: OrderTypeJson}> = /*@__PURE__*/
339
+ messageDesc(file_nord, 4);
340
+
341
+ /**
342
+ * @generated from message nord.TradeOrPlace
343
+ */
344
+ export type TradeOrPlace = Message<"nord.TradeOrPlace"> & {
345
+ /**
346
+ * @generated from field: uint32 market_id = 2;
347
+ */
348
+ marketId: number;
349
+
350
+ /**
351
+ * @generated from field: nord.OrderType order_type = 3;
352
+ */
353
+ orderType?: OrderType;
354
+
355
+ /**
356
+ * @generated from field: nord.OrderLimit limit = 6;
357
+ */
358
+ limit?: OrderLimit;
359
+
360
+ /**
361
+ * @generated from field: optional uint64 client_order_id = 33;
362
+ */
363
+ clientOrderId?: bigint;
364
+ };
365
+
366
+ /**
367
+ * @generated from message nord.TradeOrPlace
368
+ */
369
+ export type TradeOrPlaceJson = {
370
+ /**
371
+ * @generated from field: uint32 market_id = 2;
372
+ */
373
+ marketId?: number;
374
+
375
+ /**
376
+ * @generated from field: nord.OrderType order_type = 3;
377
+ */
378
+ orderType?: OrderTypeJson;
379
+
380
+ /**
381
+ * @generated from field: nord.OrderLimit limit = 6;
382
+ */
383
+ limit?: OrderLimitJson;
384
+
385
+ /**
386
+ * @generated from field: optional uint64 client_order_id = 33;
387
+ */
388
+ clientOrderId?: string;
389
+ };
390
+
391
+ /**
392
+ * Describes the message nord.TradeOrPlace.
393
+ * Use `create(TradeOrPlaceSchema)` to create a new message.
394
+ */
395
+ export const TradeOrPlaceSchema: GenMessage<TradeOrPlace, {jsonType: TradeOrPlaceJson}> = /*@__PURE__*/
396
+ messageDesc(file_nord, 5);
397
+
398
+ /**
399
+ * @generated from message nord.CancelOrder
400
+ */
401
+ export type CancelOrder = Message<"nord.CancelOrder"> & {
402
+ /**
403
+ * @generated from field: uint64 order_id = 2;
404
+ */
405
+ orderId: bigint;
406
+ };
407
+
408
+ /**
409
+ * @generated from message nord.CancelOrder
410
+ */
411
+ export type CancelOrderJson = {
412
+ /**
413
+ * @generated from field: uint64 order_id = 2;
414
+ */
415
+ orderId?: string;
416
+ };
417
+
418
+ /**
419
+ * Describes the message nord.CancelOrder.
420
+ * Use `create(CancelOrderSchema)` to create a new message.
421
+ */
422
+ export const CancelOrderSchema: GenMessage<CancelOrder, {jsonType: CancelOrderJson}> = /*@__PURE__*/
423
+ messageDesc(file_nord, 6);
424
+
425
+ /**
426
+ * @generated from message nord.Action
427
+ */
428
+ export type Action = Message<"nord.Action"> & {
429
+ /**
430
+ * Must be within 60s of the engine's current logical time, which
431
+ * should be within a few seconds of real time.
432
+ *
433
+ * Ignored for the `PythPriceFeedUpdate` action as that action updates
434
+ * the timestamp. Should be set to 0 in that case to omit it.
435
+ *
436
+ * @generated from field: int64 current_timestamp = 1;
437
+ */
438
+ currentTimestamp: bigint;
439
+
440
+ /**
441
+ * Optional nonce to handle if user wants several identical transactions to be
442
+ * executed with `current_timestamp`. Sending exactly same transaction twice
443
+ * is rejected. In order to change signature of transaction(execute it once
444
+ * more time), nonce should be changed(incremented).
445
+ *
446
+ * @generated from field: uint32 nonce = 2;
447
+ */
448
+ nonce: number;
449
+
450
+ /**
451
+ * @generated from oneof nord.Action.kind
452
+ */
453
+ kind: {
454
+ /**
455
+ * @generated from field: nord.Action.CreateSession create_session = 4;
456
+ */
457
+ value: Action_CreateSession;
458
+ case: "createSession";
459
+ } | {
460
+ /**
461
+ * @generated from field: nord.Action.CreateToken create_token = 5;
462
+ */
463
+ value: Action_CreateToken;
464
+ case: "createToken";
465
+ } | {
466
+ /**
467
+ * @generated from field: nord.Action.CreateMarket create_market = 6;
468
+ */
469
+ value: Action_CreateMarket;
470
+ case: "createMarket";
471
+ } | {
472
+ /**
473
+ * @generated from field: nord.Action.PlaceOrder place_order = 7;
474
+ */
475
+ value: Action_PlaceOrder;
476
+ case: "placeOrder";
477
+ } | {
478
+ /**
479
+ * @generated from field: nord.Action.CancelOrderById cancel_order_by_id = 8;
480
+ */
481
+ value: Action_CancelOrderById;
482
+ case: "cancelOrderById";
483
+ } | {
484
+ /**
485
+ * @generated from field: nord.Action.Deposit deposit = 9;
486
+ */
487
+ value: Action_Deposit;
488
+ case: "deposit";
489
+ } | {
490
+ /**
491
+ * @generated from field: nord.Action.Withdraw withdraw = 10;
492
+ */
493
+ value: Action_Withdraw;
494
+ case: "withdraw";
495
+ } | {
496
+ /**
497
+ * @generated from field: nord.Action.PythSetWormholeGuardians pyth_set_wormhole_guardians = 11;
498
+ */
499
+ value: Action_PythSetWormholeGuardians;
500
+ case: "pythSetWormholeGuardians";
501
+ } | {
502
+ /**
503
+ * @generated from field: nord.Action.PythSetSymbolFeed pyth_set_symbol_feed = 12;
504
+ */
505
+ value: Action_PythSetSymbolFeed;
506
+ case: "pythSetSymbolFeed";
507
+ } | {
508
+ /**
509
+ * @generated from field: nord.Action.PythPriceFeedUpdate pyth_price_feed_update = 13;
510
+ */
511
+ value: Action_PythPriceFeedUpdate;
512
+ case: "pythPriceFeedUpdate";
513
+ } | {
514
+ /**
515
+ * @generated from field: nord.Action.Liquidate liquidate = 14;
516
+ */
517
+ value: Action_Liquidate;
518
+ case: "liquidate";
519
+ } | {
520
+ /**
521
+ * @generated from field: nord.Action.RevokeSession revoke_session = 15;
522
+ */
523
+ value: Action_RevokeSession;
524
+ case: "revokeSession";
525
+ } | {
526
+ /**
527
+ * @generated from field: nord.Action.Pause pause = 16;
528
+ */
529
+ value: Action_Pause;
530
+ case: "pause";
531
+ } | {
532
+ /**
533
+ * @generated from field: nord.Action.Unpause unpause = 17;
534
+ */
535
+ value: Action_Unpause;
536
+ case: "unpause";
537
+ } | {
538
+ /**
539
+ * @generated from field: nord.Action.Transfer transfer = 18;
540
+ */
541
+ value: Action_Transfer;
542
+ case: "transfer";
543
+ } | {
544
+ /**
545
+ * @generated from field: nord.Action.AddTrigger add_trigger = 32;
546
+ */
547
+ value: Action_AddTrigger;
548
+ case: "addTrigger";
549
+ } | {
550
+ /**
551
+ * @generated from field: nord.Action.RemoveTrigger remove_trigger = 33;
552
+ */
553
+ value: Action_RemoveTrigger;
554
+ case: "removeTrigger";
555
+ } | {
556
+ /**
557
+ * @generated from field: nord.Action.TakePosition take_position = 34;
558
+ */
559
+ value: Action_TakePosition;
560
+ case: "takePosition";
561
+ } | {
562
+ /**
563
+ * @generated from field: nord.Atomic atomic = 35;
564
+ */
565
+ value: Atomic;
566
+ case: "atomic";
567
+ } | { case: undefined; value?: undefined };
568
+ };
569
+
570
+ /**
571
+ * @generated from message nord.Action
572
+ */
573
+ export type ActionJson = {
574
+ /**
575
+ * Must be within 60s of the engine's current logical time, which
576
+ * should be within a few seconds of real time.
577
+ *
578
+ * Ignored for the `PythPriceFeedUpdate` action as that action updates
579
+ * the timestamp. Should be set to 0 in that case to omit it.
580
+ *
581
+ * @generated from field: int64 current_timestamp = 1;
582
+ */
583
+ currentTimestamp?: string;
584
+
585
+ /**
586
+ * Optional nonce to handle if user wants several identical transactions to be
587
+ * executed with `current_timestamp`. Sending exactly same transaction twice
588
+ * is rejected. In order to change signature of transaction(execute it once
589
+ * more time), nonce should be changed(incremented).
590
+ *
591
+ * @generated from field: uint32 nonce = 2;
592
+ */
593
+ nonce?: number;
594
+
595
+ /**
596
+ * @generated from field: nord.Action.CreateSession create_session = 4;
597
+ */
598
+ createSession?: Action_CreateSessionJson;
599
+
600
+ /**
601
+ * @generated from field: nord.Action.CreateToken create_token = 5;
602
+ */
603
+ createToken?: Action_CreateTokenJson;
604
+
605
+ /**
606
+ * @generated from field: nord.Action.CreateMarket create_market = 6;
607
+ */
608
+ createMarket?: Action_CreateMarketJson;
609
+
610
+ /**
611
+ * @generated from field: nord.Action.PlaceOrder place_order = 7;
612
+ */
613
+ placeOrder?: Action_PlaceOrderJson;
614
+
615
+ /**
616
+ * @generated from field: nord.Action.CancelOrderById cancel_order_by_id = 8;
617
+ */
618
+ cancelOrderById?: Action_CancelOrderByIdJson;
619
+
620
+ /**
621
+ * @generated from field: nord.Action.Deposit deposit = 9;
622
+ */
623
+ deposit?: Action_DepositJson;
624
+
625
+ /**
626
+ * @generated from field: nord.Action.Withdraw withdraw = 10;
627
+ */
628
+ withdraw?: Action_WithdrawJson;
629
+
630
+ /**
631
+ * @generated from field: nord.Action.PythSetWormholeGuardians pyth_set_wormhole_guardians = 11;
632
+ */
633
+ pythSetWormholeGuardians?: Action_PythSetWormholeGuardiansJson;
634
+
635
+ /**
636
+ * @generated from field: nord.Action.PythSetSymbolFeed pyth_set_symbol_feed = 12;
637
+ */
638
+ pythSetSymbolFeed?: Action_PythSetSymbolFeedJson;
639
+
640
+ /**
641
+ * @generated from field: nord.Action.PythPriceFeedUpdate pyth_price_feed_update = 13;
642
+ */
643
+ pythPriceFeedUpdate?: Action_PythPriceFeedUpdateJson;
644
+
645
+ /**
646
+ * @generated from field: nord.Action.Liquidate liquidate = 14;
647
+ */
648
+ liquidate?: Action_LiquidateJson;
649
+
650
+ /**
651
+ * @generated from field: nord.Action.RevokeSession revoke_session = 15;
652
+ */
653
+ revokeSession?: Action_RevokeSessionJson;
654
+
655
+ /**
656
+ * @generated from field: nord.Action.Pause pause = 16;
657
+ */
658
+ pause?: Action_PauseJson;
659
+
660
+ /**
661
+ * @generated from field: nord.Action.Unpause unpause = 17;
662
+ */
663
+ unpause?: Action_UnpauseJson;
664
+
665
+ /**
666
+ * @generated from field: nord.Action.Transfer transfer = 18;
667
+ */
668
+ transfer?: Action_TransferJson;
669
+
670
+ /**
671
+ * @generated from field: nord.Action.AddTrigger add_trigger = 32;
672
+ */
673
+ addTrigger?: Action_AddTriggerJson;
674
+
675
+ /**
676
+ * @generated from field: nord.Action.RemoveTrigger remove_trigger = 33;
677
+ */
678
+ removeTrigger?: Action_RemoveTriggerJson;
679
+
680
+ /**
681
+ * @generated from field: nord.Action.TakePosition take_position = 34;
682
+ */
683
+ takePosition?: Action_TakePositionJson;
684
+
685
+ /**
686
+ * @generated from field: nord.Atomic atomic = 35;
687
+ */
688
+ atomic?: AtomicJson;
689
+ };
690
+
691
+ /**
692
+ * Describes the message nord.Action.
693
+ * Use `create(ActionSchema)` to create a new message.
694
+ */
695
+ export const ActionSchema: GenMessage<Action, {jsonType: ActionJson}> = /*@__PURE__*/
696
+ messageDesc(file_nord, 7);
697
+
698
+ /**
699
+ * @generated from message nord.Action.CreateSession
700
+ */
701
+ export type Action_CreateSession = Message<"nord.Action.CreateSession"> & {
702
+ /**
703
+ * User's SECP256K1 registration public key, 33 bytes long;
704
+ * user must be previously registered with that key
705
+ *
706
+ * @generated from field: bytes user_pubkey = 1;
707
+ */
708
+ userPubkey: Uint8Array;
709
+
710
+ /**
711
+ * MUST be 32 bytes.
712
+ *
713
+ * @generated from field: bytes blst_pubkey = 2;
714
+ */
715
+ blstPubkey: Uint8Array;
716
+
717
+ /**
718
+ * @generated from field: int64 expiry_timestamp = 3;
719
+ */
720
+ expiryTimestamp: bigint;
721
+ };
722
+
723
+ /**
724
+ * @generated from message nord.Action.CreateSession
725
+ */
726
+ export type Action_CreateSessionJson = {
727
+ /**
728
+ * User's SECP256K1 registration public key, 33 bytes long;
729
+ * user must be previously registered with that key
730
+ *
731
+ * @generated from field: bytes user_pubkey = 1;
732
+ */
733
+ userPubkey?: string;
734
+
735
+ /**
736
+ * MUST be 32 bytes.
737
+ *
738
+ * @generated from field: bytes blst_pubkey = 2;
739
+ */
740
+ blstPubkey?: string;
741
+
742
+ /**
743
+ * @generated from field: int64 expiry_timestamp = 3;
744
+ */
745
+ expiryTimestamp?: string;
746
+ };
747
+
748
+ /**
749
+ * Describes the message nord.Action.CreateSession.
750
+ * Use `create(Action_CreateSessionSchema)` to create a new message.
751
+ */
752
+ export const Action_CreateSessionSchema: GenMessage<Action_CreateSession, {jsonType: Action_CreateSessionJson}> = /*@__PURE__*/
753
+ messageDesc(file_nord, 7, 0);
754
+
755
+ /**
756
+ * @generated from message nord.Action.CreateToken
757
+ */
758
+ export type Action_CreateToken = Message<"nord.Action.CreateToken"> & {
759
+ /**
760
+ * / Example:
761
+ * / Settlement 1 ETH is 10**18 value.
762
+ * / With `token_decimals` of `10`, engine balance will have 1 ETH = 10**10
763
+ * / value. Rollup sends to engine and expects from engine 10**10 as 1 ETH
764
+ * / value. So if user has on balance 10**9 of ETH, it means he has 0.1 ETH
765
+ * / on engine balance and in settlement, but in settlement it will be
766
+ * / represented as 10**17 value. As consequence, if oracle gives index_price
767
+ * / of 1 ETH as it is in Ethereum, we must divide balance by
768
+ * / `10**token_decimals` and multiply by price to get USD value (do not
769
+ * / forget allow for rounding sub USD values). As for market price, to trade
770
+ * / 0.1 ETH,
771
+ * need to 1/10 / 10**token_decimals * 10**Market.size_decimals
772
+ *
773
+ * @generated from field: uint32 token_decimals = 1;
774
+ */
775
+ tokenDecimals: number;
776
+
777
+ /**
778
+ * @generated from field: uint32 weight_bps = 3;
779
+ */
780
+ weightBps: number;
781
+
782
+ /**
783
+ * @generated from field: string view_symbol = 4;
784
+ */
785
+ viewSymbol: string;
786
+
787
+ /**
788
+ * / Used to bind to relevant oracle feed
789
+ *
790
+ * @generated from field: string oracle_symbol = 5;
791
+ */
792
+ oracleSymbol: string;
793
+
794
+ /**
795
+ * On chain id for the wrapped asset on the rollup
796
+ *
797
+ * @generated from field: bytes sol_addr = 6;
798
+ */
799
+ solAddr: Uint8Array;
800
+ };
801
+
802
+ /**
803
+ * @generated from message nord.Action.CreateToken
804
+ */
805
+ export type Action_CreateTokenJson = {
806
+ /**
807
+ * / Example:
808
+ * / Settlement 1 ETH is 10**18 value.
809
+ * / With `token_decimals` of `10`, engine balance will have 1 ETH = 10**10
810
+ * / value. Rollup sends to engine and expects from engine 10**10 as 1 ETH
811
+ * / value. So if user has on balance 10**9 of ETH, it means he has 0.1 ETH
812
+ * / on engine balance and in settlement, but in settlement it will be
813
+ * / represented as 10**17 value. As consequence, if oracle gives index_price
814
+ * / of 1 ETH as it is in Ethereum, we must divide balance by
815
+ * / `10**token_decimals` and multiply by price to get USD value (do not
816
+ * / forget allow for rounding sub USD values). As for market price, to trade
817
+ * / 0.1 ETH,
818
+ * need to 1/10 / 10**token_decimals * 10**Market.size_decimals
819
+ *
820
+ * @generated from field: uint32 token_decimals = 1;
821
+ */
822
+ tokenDecimals?: number;
823
+
824
+ /**
825
+ * @generated from field: uint32 weight_bps = 3;
826
+ */
827
+ weightBps?: number;
828
+
829
+ /**
830
+ * @generated from field: string view_symbol = 4;
831
+ */
832
+ viewSymbol?: string;
833
+
834
+ /**
835
+ * / Used to bind to relevant oracle feed
836
+ *
837
+ * @generated from field: string oracle_symbol = 5;
838
+ */
839
+ oracleSymbol?: string;
840
+
841
+ /**
842
+ * On chain id for the wrapped asset on the rollup
843
+ *
844
+ * @generated from field: bytes sol_addr = 6;
845
+ */
846
+ solAddr?: string;
847
+ };
848
+
849
+ /**
850
+ * Describes the message nord.Action.CreateToken.
851
+ * Use `create(Action_CreateTokenSchema)` to create a new message.
852
+ */
853
+ export const Action_CreateTokenSchema: GenMessage<Action_CreateToken, {jsonType: Action_CreateTokenJson}> = /*@__PURE__*/
854
+ messageDesc(file_nord, 7, 1);
855
+
856
+ /**
857
+ * @generated from message nord.Action.CreateMarket
858
+ */
859
+ export type Action_CreateMarket = Message<"nord.Action.CreateMarket"> & {
860
+ /**
861
+ * @generated from field: uint32 size_decimals = 1;
862
+ */
863
+ sizeDecimals: number;
864
+
865
+ /**
866
+ * @generated from field: uint32 price_decimals = 2;
867
+ */
868
+ priceDecimals: number;
869
+
870
+ /**
871
+ * @generated from field: uint32 imf_bps = 3;
872
+ */
873
+ imfBps: number;
874
+
875
+ /**
876
+ * @generated from field: uint32 cmf_bps = 4;
877
+ */
878
+ cmfBps: number;
879
+
880
+ /**
881
+ * @generated from field: uint32 mmf_bps = 5;
882
+ */
883
+ mmfBps: number;
884
+
885
+ /**
886
+ * @generated from field: nord.MarketType market_type = 6;
887
+ */
888
+ marketType: MarketType;
889
+
890
+ /**
891
+ * Arbitrary human-readable market symbol, not to be confused with token's
892
+ * symbol
893
+ *
894
+ * @generated from field: string view_symbol = 7;
895
+ */
896
+ viewSymbol: string;
897
+
898
+ /**
899
+ * Oracle symbol which references specific price feed. Must be
900
+ * `oracle_symbol` of registered price feed
901
+ *
902
+ * @generated from field: string oracle_symbol = 8;
903
+ */
904
+ oracleSymbol: string;
905
+
906
+ /**
907
+ * One of registered `token_id`'s.
908
+ *
909
+ * Base token for `MarketType::Spot`.
910
+ *
911
+ * Same as quote token id for `MarketType::Perpetual`. `oracle_symbol`
912
+ * identifies relevant price feed.
913
+ *
914
+ * @generated from field: uint32 base_token_id = 9;
915
+ */
916
+ baseTokenId: number;
917
+ };
918
+
919
+ /**
920
+ * @generated from message nord.Action.CreateMarket
921
+ */
922
+ export type Action_CreateMarketJson = {
923
+ /**
924
+ * @generated from field: uint32 size_decimals = 1;
925
+ */
926
+ sizeDecimals?: number;
927
+
928
+ /**
929
+ * @generated from field: uint32 price_decimals = 2;
930
+ */
931
+ priceDecimals?: number;
932
+
933
+ /**
934
+ * @generated from field: uint32 imf_bps = 3;
935
+ */
936
+ imfBps?: number;
937
+
938
+ /**
939
+ * @generated from field: uint32 cmf_bps = 4;
940
+ */
941
+ cmfBps?: number;
942
+
943
+ /**
944
+ * @generated from field: uint32 mmf_bps = 5;
945
+ */
946
+ mmfBps?: number;
947
+
948
+ /**
949
+ * @generated from field: nord.MarketType market_type = 6;
950
+ */
951
+ marketType?: MarketTypeJson;
952
+
953
+ /**
954
+ * Arbitrary human-readable market symbol, not to be confused with token's
955
+ * symbol
956
+ *
957
+ * @generated from field: string view_symbol = 7;
958
+ */
959
+ viewSymbol?: string;
960
+
961
+ /**
962
+ * Oracle symbol which references specific price feed. Must be
963
+ * `oracle_symbol` of registered price feed
964
+ *
965
+ * @generated from field: string oracle_symbol = 8;
966
+ */
967
+ oracleSymbol?: string;
968
+
969
+ /**
970
+ * One of registered `token_id`'s.
971
+ *
972
+ * Base token for `MarketType::Spot`.
973
+ *
974
+ * Same as quote token id for `MarketType::Perpetual`. `oracle_symbol`
975
+ * identifies relevant price feed.
976
+ *
977
+ * @generated from field: uint32 base_token_id = 9;
978
+ */
979
+ baseTokenId?: number;
980
+ };
981
+
982
+ /**
983
+ * Describes the message nord.Action.CreateMarket.
984
+ * Use `create(Action_CreateMarketSchema)` to create a new message.
985
+ */
986
+ export const Action_CreateMarketSchema: GenMessage<Action_CreateMarket, {jsonType: Action_CreateMarketJson}> = /*@__PURE__*/
987
+ messageDesc(file_nord, 7, 2);
988
+
989
+ /**
990
+ * Note on order size.
991
+ * Any order being placed has absolute maximum size, which is 2^48-1.
992
+ * Although, this limit is applied not to initial order being placed
993
+ * but to final order being added to market's orderbook.
994
+ * This behavior exists because order can be limited by quote size,
995
+ * which converts to order size in a non-linear manner.
996
+ *
997
+ * Some orders can be executed immediately, in this no order will be added to
998
+ * orderbook, no order id created. Consider using `client_order_id` to track
999
+ * execution of such orders.
1000
+ *
1001
+ * Example: User posts order with size 2^48+100_000. Order fills counter
1002
+ * orders and its size is reduced to 2^48-1_000_000 in process. This order
1003
+ * will be added to orderbook successfully despite its initial size is above
1004
+ * limit.
1005
+ *
1006
+ * @generated from message nord.Action.PlaceOrder
1007
+ */
1008
+ export type Action_PlaceOrder = Message<"nord.Action.PlaceOrder"> & {
1009
+ /**
1010
+ * @generated from field: uint64 session_id = 1;
1011
+ */
1012
+ sessionId: bigint;
1013
+
1014
+ /**
1015
+ * @generated from field: uint32 market_id = 2;
1016
+ */
1017
+ marketId: number;
1018
+
1019
+ /**
1020
+ * @generated from field: nord.Side side = 3;
1021
+ */
1022
+ side: Side;
1023
+
1024
+ /**
1025
+ * @generated from field: nord.FillMode fill_mode = 4;
1026
+ */
1027
+ fillMode: FillMode;
1028
+
1029
+ /**
1030
+ * A reduce-only order only reduces your current position, as opposed to
1031
+ * increasing it. It means you can only use it to close a position. In
1032
+ * contrast, non-reduce-only orders can reduce or increase your position.
1033
+ * Reduce is handled by dynamically reducing or adjusting limit order's
1034
+ * contract quantity
1035
+ * / to match the contract size of the open position.
1036
+ *
1037
+ * @generated from field: bool is_reduce_only = 5;
1038
+ */
1039
+ isReduceOnly: boolean;
1040
+
1041
+ /**
1042
+ * Raw integral value of order limit price.
1043
+ * `1` here equals to market's `10^-price_decimals`
1044
+ * When used in token balances and reward computations, shifted by market's
1045
+ * `price_decimals`. Optional, treated as not set if 0.
1046
+ *
1047
+ * @generated from field: uint64 price = 6;
1048
+ */
1049
+ price: bigint;
1050
+
1051
+ /**
1052
+ * Raw integral value of order size limit.
1053
+ * For spot markers measured in base size,
1054
+ * for perpetuals in contract token.
1055
+ * So using base as default naming in codebase.
1056
+ * `1` here equals to market's `10^-size_decimals`
1057
+ * When used in token balances and reward computations, shifted by market's
1058
+ * `size_decimals`. Optional, treated as not set if 0.
1059
+ *
1060
+ * @generated from field: uint64 size = 7;
1061
+ */
1062
+ size: bigint;
1063
+
1064
+ /**
1065
+ * Quote size limit.
1066
+ * Optional.
1067
+ *
1068
+ * @generated from field: nord.QuoteSize quote_size = 8;
1069
+ */
1070
+ quoteSize?: QuoteSize;
1071
+
1072
+ /**
1073
+ * Optional account on behalf of whom the order should be placed.
1074
+ * Executed only if sender has delegated authority to do so,
1075
+ * like admin user or liquidator bot.
1076
+ * # Delegation allowed if:
1077
+ * - trigger
1078
+ * - reduce bad position
1079
+ * - sell at good price to reduce if cannot cover bad position
1080
+ *
1081
+ * @generated from field: optional uint32 delegator_account_id = 32;
1082
+ */
1083
+ delegatorAccountId?: number;
1084
+
1085
+ /**
1086
+ * Caller provided opaque order identifier up to 8 bytes.
1087
+ * Not used by engine, but can be used by client to track orders.
1088
+ *
1089
+ * @generated from field: optional uint64 client_order_id = 33;
1090
+ */
1091
+ clientOrderId?: bigint;
1092
+
1093
+ /**
1094
+ * Account id which performs operation;
1095
+ * if not specified, first account of session's owner user is picked
1096
+ *
1097
+ * @generated from field: optional uint32 sender_account_id = 34;
1098
+ */
1099
+ senderAccountId?: number;
1100
+
1101
+ /**
1102
+ * Opaque identifier chosen by the sender to be able to correlate this
1103
+ * place order requests with the corresponding fill and place order events.
1104
+ *
1105
+ * @generated from field: optional uint64 sender_tracking_id = 35;
1106
+ */
1107
+ senderTrackingId?: bigint;
1108
+ };
1109
+
1110
+ /**
1111
+ * Note on order size.
1112
+ * Any order being placed has absolute maximum size, which is 2^48-1.
1113
+ * Although, this limit is applied not to initial order being placed
1114
+ * but to final order being added to market's orderbook.
1115
+ * This behavior exists because order can be limited by quote size,
1116
+ * which converts to order size in a non-linear manner.
1117
+ *
1118
+ * Some orders can be executed immediately, in this no order will be added to
1119
+ * orderbook, no order id created. Consider using `client_order_id` to track
1120
+ * execution of such orders.
1121
+ *
1122
+ * Example: User posts order with size 2^48+100_000. Order fills counter
1123
+ * orders and its size is reduced to 2^48-1_000_000 in process. This order
1124
+ * will be added to orderbook successfully despite its initial size is above
1125
+ * limit.
1126
+ *
1127
+ * @generated from message nord.Action.PlaceOrder
1128
+ */
1129
+ export type Action_PlaceOrderJson = {
1130
+ /**
1131
+ * @generated from field: uint64 session_id = 1;
1132
+ */
1133
+ sessionId?: string;
1134
+
1135
+ /**
1136
+ * @generated from field: uint32 market_id = 2;
1137
+ */
1138
+ marketId?: number;
1139
+
1140
+ /**
1141
+ * @generated from field: nord.Side side = 3;
1142
+ */
1143
+ side?: SideJson;
1144
+
1145
+ /**
1146
+ * @generated from field: nord.FillMode fill_mode = 4;
1147
+ */
1148
+ fillMode?: FillModeJson;
1149
+
1150
+ /**
1151
+ * A reduce-only order only reduces your current position, as opposed to
1152
+ * increasing it. It means you can only use it to close a position. In
1153
+ * contrast, non-reduce-only orders can reduce or increase your position.
1154
+ * Reduce is handled by dynamically reducing or adjusting limit order's
1155
+ * contract quantity
1156
+ * / to match the contract size of the open position.
1157
+ *
1158
+ * @generated from field: bool is_reduce_only = 5;
1159
+ */
1160
+ isReduceOnly?: boolean;
1161
+
1162
+ /**
1163
+ * Raw integral value of order limit price.
1164
+ * `1` here equals to market's `10^-price_decimals`
1165
+ * When used in token balances and reward computations, shifted by market's
1166
+ * `price_decimals`. Optional, treated as not set if 0.
1167
+ *
1168
+ * @generated from field: uint64 price = 6;
1169
+ */
1170
+ price?: string;
1171
+
1172
+ /**
1173
+ * Raw integral value of order size limit.
1174
+ * For spot markers measured in base size,
1175
+ * for perpetuals in contract token.
1176
+ * So using base as default naming in codebase.
1177
+ * `1` here equals to market's `10^-size_decimals`
1178
+ * When used in token balances and reward computations, shifted by market's
1179
+ * `size_decimals`. Optional, treated as not set if 0.
1180
+ *
1181
+ * @generated from field: uint64 size = 7;
1182
+ */
1183
+ size?: string;
1184
+
1185
+ /**
1186
+ * Quote size limit.
1187
+ * Optional.
1188
+ *
1189
+ * @generated from field: nord.QuoteSize quote_size = 8;
1190
+ */
1191
+ quoteSize?: QuoteSizeJson;
1192
+
1193
+ /**
1194
+ * Optional account on behalf of whom the order should be placed.
1195
+ * Executed only if sender has delegated authority to do so,
1196
+ * like admin user or liquidator bot.
1197
+ * # Delegation allowed if:
1198
+ * - trigger
1199
+ * - reduce bad position
1200
+ * - sell at good price to reduce if cannot cover bad position
1201
+ *
1202
+ * @generated from field: optional uint32 delegator_account_id = 32;
1203
+ */
1204
+ delegatorAccountId?: number;
1205
+
1206
+ /**
1207
+ * Caller provided opaque order identifier up to 8 bytes.
1208
+ * Not used by engine, but can be used by client to track orders.
1209
+ *
1210
+ * @generated from field: optional uint64 client_order_id = 33;
1211
+ */
1212
+ clientOrderId?: string;
1213
+
1214
+ /**
1215
+ * Account id which performs operation;
1216
+ * if not specified, first account of session's owner user is picked
1217
+ *
1218
+ * @generated from field: optional uint32 sender_account_id = 34;
1219
+ */
1220
+ senderAccountId?: number;
1221
+
1222
+ /**
1223
+ * Opaque identifier chosen by the sender to be able to correlate this
1224
+ * place order requests with the corresponding fill and place order events.
1225
+ *
1226
+ * @generated from field: optional uint64 sender_tracking_id = 35;
1227
+ */
1228
+ senderTrackingId?: string;
1229
+ };
1230
+
1231
+ /**
1232
+ * Describes the message nord.Action.PlaceOrder.
1233
+ * Use `create(Action_PlaceOrderSchema)` to create a new message.
1234
+ */
1235
+ export const Action_PlaceOrderSchema: GenMessage<Action_PlaceOrder, {jsonType: Action_PlaceOrderJson}> = /*@__PURE__*/
1236
+ messageDesc(file_nord, 7, 3);
1237
+
1238
+ /**
1239
+ * @generated from message nord.Action.CancelOrderById
1240
+ */
1241
+ export type Action_CancelOrderById = Message<"nord.Action.CancelOrderById"> & {
1242
+ /**
1243
+ * @generated from field: uint64 session_id = 1;
1244
+ */
1245
+ sessionId: bigint;
1246
+
1247
+ /**
1248
+ * @generated from field: uint64 order_id = 2;
1249
+ */
1250
+ orderId: bigint;
1251
+
1252
+ /**
1253
+ * @generated from field: optional uint32 delegator_account_id = 32;
1254
+ */
1255
+ delegatorAccountId?: number;
1256
+
1257
+ /**
1258
+ * @generated from field: optional uint32 sender_account_id = 33;
1259
+ */
1260
+ senderAccountId?: number;
1261
+ };
1262
+
1263
+ /**
1264
+ * @generated from message nord.Action.CancelOrderById
1265
+ */
1266
+ export type Action_CancelOrderByIdJson = {
1267
+ /**
1268
+ * @generated from field: uint64 session_id = 1;
1269
+ */
1270
+ sessionId?: string;
1271
+
1272
+ /**
1273
+ * @generated from field: uint64 order_id = 2;
1274
+ */
1275
+ orderId?: string;
1276
+
1277
+ /**
1278
+ * @generated from field: optional uint32 delegator_account_id = 32;
1279
+ */
1280
+ delegatorAccountId?: number;
1281
+
1282
+ /**
1283
+ * @generated from field: optional uint32 sender_account_id = 33;
1284
+ */
1285
+ senderAccountId?: number;
1286
+ };
1287
+
1288
+ /**
1289
+ * Describes the message nord.Action.CancelOrderById.
1290
+ * Use `create(Action_CancelOrderByIdSchema)` to create a new message.
1291
+ */
1292
+ export const Action_CancelOrderByIdSchema: GenMessage<Action_CancelOrderById, {jsonType: Action_CancelOrderByIdJson}> = /*@__PURE__*/
1293
+ messageDesc(file_nord, 7, 4);
1294
+
1295
+ /**
1296
+ * @generated from message nord.Action.Deposit
1297
+ */
1298
+ export type Action_Deposit = Message<"nord.Action.Deposit"> & {
1299
+ /**
1300
+ * used for integration of rollup with nord app
1301
+ *
1302
+ * @generated from field: uint64 action_nonce = 1;
1303
+ */
1304
+ actionNonce: bigint;
1305
+
1306
+ /**
1307
+ * @generated from field: bytes token_addr = 2;
1308
+ */
1309
+ tokenAddr: Uint8Array;
1310
+
1311
+ /**
1312
+ * Shifted by the token's decimals.
1313
+ *
1314
+ * @generated from field: uint64 amount = 3;
1315
+ */
1316
+ amount: bigint;
1317
+
1318
+ /**
1319
+ * User's SECP256K1 registration public key, 33 bytes long
1320
+ *
1321
+ * @generated from field: bytes user_pubkey = 4;
1322
+ */
1323
+ userPubkey: Uint8Array;
1324
+ };
1325
+
1326
+ /**
1327
+ * @generated from message nord.Action.Deposit
1328
+ */
1329
+ export type Action_DepositJson = {
1330
+ /**
1331
+ * used for integration of rollup with nord app
1332
+ *
1333
+ * @generated from field: uint64 action_nonce = 1;
1334
+ */
1335
+ actionNonce?: string;
1336
+
1337
+ /**
1338
+ * @generated from field: bytes token_addr = 2;
1339
+ */
1340
+ tokenAddr?: string;
1341
+
1342
+ /**
1343
+ * Shifted by the token's decimals.
1344
+ *
1345
+ * @generated from field: uint64 amount = 3;
1346
+ */
1347
+ amount?: string;
1348
+
1349
+ /**
1350
+ * User's SECP256K1 registration public key, 33 bytes long
1351
+ *
1352
+ * @generated from field: bytes user_pubkey = 4;
1353
+ */
1354
+ userPubkey?: string;
1355
+ };
1356
+
1357
+ /**
1358
+ * Describes the message nord.Action.Deposit.
1359
+ * Use `create(Action_DepositSchema)` to create a new message.
1360
+ */
1361
+ export const Action_DepositSchema: GenMessage<Action_Deposit, {jsonType: Action_DepositJson}> = /*@__PURE__*/
1362
+ messageDesc(file_nord, 7, 5);
1363
+
1364
+ /**
1365
+ * todo(n1): when gate will be here, remove or replace internals with message
1366
+ *
1367
+ * @generated from message nord.Action.Withdraw
1368
+ */
1369
+ export type Action_Withdraw = Message<"nord.Action.Withdraw"> & {
1370
+ /**
1371
+ * @generated from field: uint32 token_id = 1;
1372
+ */
1373
+ tokenId: number;
1374
+
1375
+ /**
1376
+ * @generated from field: uint64 session_id = 2;
1377
+ */
1378
+ sessionId: bigint;
1379
+
1380
+ /**
1381
+ * Shifted by the token's decimals.
1382
+ *
1383
+ * @generated from field: uint64 amount = 3;
1384
+ */
1385
+ amount: bigint;
1386
+ };
1387
+
1388
+ /**
1389
+ * todo(n1): when gate will be here, remove or replace internals with message
1390
+ *
1391
+ * @generated from message nord.Action.Withdraw
1392
+ */
1393
+ export type Action_WithdrawJson = {
1394
+ /**
1395
+ * @generated from field: uint32 token_id = 1;
1396
+ */
1397
+ tokenId?: number;
1398
+
1399
+ /**
1400
+ * @generated from field: uint64 session_id = 2;
1401
+ */
1402
+ sessionId?: string;
1403
+
1404
+ /**
1405
+ * Shifted by the token's decimals.
1406
+ *
1407
+ * @generated from field: uint64 amount = 3;
1408
+ */
1409
+ amount?: string;
1410
+ };
1411
+
1412
+ /**
1413
+ * Describes the message nord.Action.Withdraw.
1414
+ * Use `create(Action_WithdrawSchema)` to create a new message.
1415
+ */
1416
+ export const Action_WithdrawSchema: GenMessage<Action_Withdraw, {jsonType: Action_WithdrawJson}> = /*@__PURE__*/
1417
+ messageDesc(file_nord, 7, 6);
1418
+
1419
+ /**
1420
+ * @generated from message nord.Action.PythSetWormholeGuardians
1421
+ */
1422
+ export type Action_PythSetWormholeGuardians = Message<"nord.Action.PythSetWormholeGuardians"> & {
1423
+ /**
1424
+ * See
1425
+ * https://docs.wormholescan.io/#/Guardian/guardian-set
1426
+ *
1427
+ * @generated from field: uint32 guardian_set_index = 1;
1428
+ */
1429
+ guardianSetIndex: number;
1430
+
1431
+ /**
1432
+ * Each address is 20 bytes, consisting of the last 20 bytes
1433
+ * of the keccak256 hash of the public key of the guardian.
1434
+ *
1435
+ * @generated from field: repeated bytes addresses = 2;
1436
+ */
1437
+ addresses: Uint8Array[];
1438
+ };
1439
+
1440
+ /**
1441
+ * @generated from message nord.Action.PythSetWormholeGuardians
1442
+ */
1443
+ export type Action_PythSetWormholeGuardiansJson = {
1444
+ /**
1445
+ * See
1446
+ * https://docs.wormholescan.io/#/Guardian/guardian-set
1447
+ *
1448
+ * @generated from field: uint32 guardian_set_index = 1;
1449
+ */
1450
+ guardianSetIndex?: number;
1451
+
1452
+ /**
1453
+ * Each address is 20 bytes, consisting of the last 20 bytes
1454
+ * of the keccak256 hash of the public key of the guardian.
1455
+ *
1456
+ * @generated from field: repeated bytes addresses = 2;
1457
+ */
1458
+ addresses?: string[];
1459
+ };
1460
+
1461
+ /**
1462
+ * Describes the message nord.Action.PythSetWormholeGuardians.
1463
+ * Use `create(Action_PythSetWormholeGuardiansSchema)` to create a new message.
1464
+ */
1465
+ export const Action_PythSetWormholeGuardiansSchema: GenMessage<Action_PythSetWormholeGuardians, {jsonType: Action_PythSetWormholeGuardiansJson}> = /*@__PURE__*/
1466
+ messageDesc(file_nord, 7, 7);
1467
+
1468
+ /**
1469
+ * Associate a oracle symbol to a Pyth Feed ID.
1470
+ *
1471
+ * @generated from message nord.Action.PythSetSymbolFeed
1472
+ */
1473
+ export type Action_PythSetSymbolFeed = Message<"nord.Action.PythSetSymbolFeed"> & {
1474
+ /**
1475
+ * @generated from field: string oracle_symbol = 1;
1476
+ */
1477
+ oracleSymbol: string;
1478
+
1479
+ /**
1480
+ * MUST be 32 bytes.
1481
+ *
1482
+ * @generated from field: bytes price_feed_id = 2;
1483
+ */
1484
+ priceFeedId: Uint8Array;
1485
+ };
1486
+
1487
+ /**
1488
+ * Associate a oracle symbol to a Pyth Feed ID.
1489
+ *
1490
+ * @generated from message nord.Action.PythSetSymbolFeed
1491
+ */
1492
+ export type Action_PythSetSymbolFeedJson = {
1493
+ /**
1494
+ * @generated from field: string oracle_symbol = 1;
1495
+ */
1496
+ oracleSymbol?: string;
1497
+
1498
+ /**
1499
+ * MUST be 32 bytes.
1500
+ *
1501
+ * @generated from field: bytes price_feed_id = 2;
1502
+ */
1503
+ priceFeedId?: string;
1504
+ };
1505
+
1506
+ /**
1507
+ * Describes the message nord.Action.PythSetSymbolFeed.
1508
+ * Use `create(Action_PythSetSymbolFeedSchema)` to create a new message.
1509
+ */
1510
+ export const Action_PythSetSymbolFeedSchema: GenMessage<Action_PythSetSymbolFeed, {jsonType: Action_PythSetSymbolFeedJson}> = /*@__PURE__*/
1511
+ messageDesc(file_nord, 7, 8);
1512
+
1513
+ /**
1514
+ * @generated from message nord.Action.PythPriceFeedUpdate
1515
+ */
1516
+ export type Action_PythPriceFeedUpdate = Message<"nord.Action.PythPriceFeedUpdate"> & {
1517
+ /**
1518
+ * See https://hermes.pyth.network/docs/#/rest/latest_price_updates
1519
+ *
1520
+ * @generated from field: bytes raw_pythnet_data = 1;
1521
+ */
1522
+ rawPythnetData: Uint8Array;
1523
+ };
1524
+
1525
+ /**
1526
+ * @generated from message nord.Action.PythPriceFeedUpdate
1527
+ */
1528
+ export type Action_PythPriceFeedUpdateJson = {
1529
+ /**
1530
+ * See https://hermes.pyth.network/docs/#/rest/latest_price_updates
1531
+ *
1532
+ * @generated from field: bytes raw_pythnet_data = 1;
1533
+ */
1534
+ rawPythnetData?: string;
1535
+ };
1536
+
1537
+ /**
1538
+ * Describes the message nord.Action.PythPriceFeedUpdate.
1539
+ * Use `create(Action_PythPriceFeedUpdateSchema)` to create a new message.
1540
+ */
1541
+ export const Action_PythPriceFeedUpdateSchema: GenMessage<Action_PythPriceFeedUpdate, {jsonType: Action_PythPriceFeedUpdateJson}> = /*@__PURE__*/
1542
+ messageDesc(file_nord, 7, 9);
1543
+
1544
+ /**
1545
+ * Perform final account liquidation procedure.
1546
+ * Can be executed only accounts with AV < 0 (bankrupt).
1547
+ * After execution, `liquidatee_account_id` is removed from state.
1548
+ * See MARKETS.md `Bankruptcy` for details.
1549
+ *
1550
+ * @generated from message nord.Action.Liquidate
1551
+ */
1552
+ export type Action_Liquidate = Message<"nord.Action.Liquidate"> & {
1553
+ /**
1554
+ * @generated from field: uint64 liquidator_session_id = 1;
1555
+ */
1556
+ liquidatorSessionId: bigint;
1557
+
1558
+ /**
1559
+ * @generated from field: uint32 liquidatee_account_id = 2;
1560
+ */
1561
+ liquidateeAccountId: number;
1562
+
1563
+ /**
1564
+ * @generated from field: optional uint32 liquidator_account_id = 3;
1565
+ */
1566
+ liquidatorAccountId?: number;
1567
+ };
1568
+
1569
+ /**
1570
+ * Perform final account liquidation procedure.
1571
+ * Can be executed only accounts with AV < 0 (bankrupt).
1572
+ * After execution, `liquidatee_account_id` is removed from state.
1573
+ * See MARKETS.md `Bankruptcy` for details.
1574
+ *
1575
+ * @generated from message nord.Action.Liquidate
1576
+ */
1577
+ export type Action_LiquidateJson = {
1578
+ /**
1579
+ * @generated from field: uint64 liquidator_session_id = 1;
1580
+ */
1581
+ liquidatorSessionId?: string;
1582
+
1583
+ /**
1584
+ * @generated from field: uint32 liquidatee_account_id = 2;
1585
+ */
1586
+ liquidateeAccountId?: number;
1587
+
1588
+ /**
1589
+ * @generated from field: optional uint32 liquidator_account_id = 3;
1590
+ */
1591
+ liquidatorAccountId?: number;
1592
+ };
1593
+
1594
+ /**
1595
+ * Describes the message nord.Action.Liquidate.
1596
+ * Use `create(Action_LiquidateSchema)` to create a new message.
1597
+ */
1598
+ export const Action_LiquidateSchema: GenMessage<Action_Liquidate, {jsonType: Action_LiquidateJson}> = /*@__PURE__*/
1599
+ messageDesc(file_nord, 7, 10);
1600
+
1601
+ /**
1602
+ * @generated from message nord.Action.RevokeSession
1603
+ */
1604
+ export type Action_RevokeSession = Message<"nord.Action.RevokeSession"> & {
1605
+ /**
1606
+ * @generated from field: uint64 session_id = 1;
1607
+ */
1608
+ sessionId: bigint;
1609
+ };
1610
+
1611
+ /**
1612
+ * @generated from message nord.Action.RevokeSession
1613
+ */
1614
+ export type Action_RevokeSessionJson = {
1615
+ /**
1616
+ * @generated from field: uint64 session_id = 1;
1617
+ */
1618
+ sessionId?: string;
1619
+ };
1620
+
1621
+ /**
1622
+ * Describes the message nord.Action.RevokeSession.
1623
+ * Use `create(Action_RevokeSessionSchema)` to create a new message.
1624
+ */
1625
+ export const Action_RevokeSessionSchema: GenMessage<Action_RevokeSession, {jsonType: Action_RevokeSessionJson}> = /*@__PURE__*/
1626
+ messageDesc(file_nord, 7, 11);
1627
+
1628
+ /**
1629
+ * The engine fails with a maintenance error while paused.
1630
+ *
1631
+ * @generated from message nord.Action.Pause
1632
+ */
1633
+ export type Action_Pause = Message<"nord.Action.Pause"> & {
1634
+ };
1635
+
1636
+ /**
1637
+ * The engine fails with a maintenance error while paused.
1638
+ *
1639
+ * @generated from message nord.Action.Pause
1640
+ */
1641
+ export type Action_PauseJson = {
1642
+ };
1643
+
1644
+ /**
1645
+ * Describes the message nord.Action.Pause.
1646
+ * Use `create(Action_PauseSchema)` to create a new message.
1647
+ */
1648
+ export const Action_PauseSchema: GenMessage<Action_Pause, {jsonType: Action_PauseJson}> = /*@__PURE__*/
1649
+ messageDesc(file_nord, 7, 12);
1650
+
1651
+ /**
1652
+ * @generated from message nord.Action.Unpause
1653
+ */
1654
+ export type Action_Unpause = Message<"nord.Action.Unpause"> & {
1655
+ };
1656
+
1657
+ /**
1658
+ * @generated from message nord.Action.Unpause
1659
+ */
1660
+ export type Action_UnpauseJson = {
1661
+ };
1662
+
1663
+ /**
1664
+ * Describes the message nord.Action.Unpause.
1665
+ * Use `create(Action_UnpauseSchema)` to create a new message.
1666
+ */
1667
+ export const Action_UnpauseSchema: GenMessage<Action_Unpause, {jsonType: Action_UnpauseJson}> = /*@__PURE__*/
1668
+ messageDesc(file_nord, 7, 13);
1669
+
1670
+ /**
1671
+ * Transfers tokens to specified account.
1672
+ *
1673
+ * @generated from message nord.Action.Transfer
1674
+ */
1675
+ export type Action_Transfer = Message<"nord.Action.Transfer"> & {
1676
+ /**
1677
+ * @generated from field: uint64 session_id = 1;
1678
+ */
1679
+ sessionId: bigint;
1680
+
1681
+ /**
1682
+ * @generated from field: uint32 from_account_id = 2;
1683
+ */
1684
+ fromAccountId: number;
1685
+
1686
+ /**
1687
+ * @generated from field: uint32 token_id = 3;
1688
+ */
1689
+ tokenId: number;
1690
+
1691
+ /**
1692
+ * @generated from field: uint64 amount = 4;
1693
+ */
1694
+ amount: bigint;
1695
+
1696
+ /**
1697
+ * If target account id isn't specified, new account is created.
1698
+ *
1699
+ * @generated from field: optional uint32 to_account_id = 8;
1700
+ */
1701
+ toAccountId?: number;
1702
+
1703
+ /**
1704
+ * If specified, than `to_account_id` must be none.
1705
+ * Transfer funds to accounts, for example to cover bankruptcies.
1706
+ *
1707
+ * @generated from field: optional nord.SpecialAccount special_account = 9;
1708
+ */
1709
+ specialAccount?: SpecialAccount;
1710
+ };
1711
+
1712
+ /**
1713
+ * Transfers tokens to specified account.
1714
+ *
1715
+ * @generated from message nord.Action.Transfer
1716
+ */
1717
+ export type Action_TransferJson = {
1718
+ /**
1719
+ * @generated from field: uint64 session_id = 1;
1720
+ */
1721
+ sessionId?: string;
1722
+
1723
+ /**
1724
+ * @generated from field: uint32 from_account_id = 2;
1725
+ */
1726
+ fromAccountId?: number;
1727
+
1728
+ /**
1729
+ * @generated from field: uint32 token_id = 3;
1730
+ */
1731
+ tokenId?: number;
1732
+
1733
+ /**
1734
+ * @generated from field: uint64 amount = 4;
1735
+ */
1736
+ amount?: string;
1737
+
1738
+ /**
1739
+ * If target account id isn't specified, new account is created.
1740
+ *
1741
+ * @generated from field: optional uint32 to_account_id = 8;
1742
+ */
1743
+ toAccountId?: number;
1744
+
1745
+ /**
1746
+ * If specified, than `to_account_id` must be none.
1747
+ * Transfer funds to accounts, for example to cover bankruptcies.
1748
+ *
1749
+ * @generated from field: optional nord.SpecialAccount special_account = 9;
1750
+ */
1751
+ specialAccount?: SpecialAccountJson;
1752
+ };
1753
+
1754
+ /**
1755
+ * Describes the message nord.Action.Transfer.
1756
+ * Use `create(Action_TransferSchema)` to create a new message.
1757
+ */
1758
+ export const Action_TransferSchema: GenMessage<Action_Transfer, {jsonType: Action_TransferJson}> = /*@__PURE__*/
1759
+ messageDesc(file_nord, 7, 14);
1760
+
1761
+ /**
1762
+ * @generated from message nord.Action.AddTrigger
1763
+ */
1764
+ export type Action_AddTrigger = Message<"nord.Action.AddTrigger"> & {
1765
+ /**
1766
+ * @generated from field: uint64 session_id = 1;
1767
+ */
1768
+ sessionId: bigint;
1769
+
1770
+ /**
1771
+ * @generated from field: uint32 market_id = 2;
1772
+ */
1773
+ marketId: number;
1774
+
1775
+ /**
1776
+ * @generated from field: nord.TriggerKind kind = 3;
1777
+ */
1778
+ kind: TriggerKind;
1779
+
1780
+ /**
1781
+ * @generated from field: nord.Side side = 4;
1782
+ */
1783
+ side: Side;
1784
+
1785
+ /**
1786
+ * @generated from field: uint64 trigger_price = 5;
1787
+ */
1788
+ triggerPrice: bigint;
1789
+
1790
+ /**
1791
+ * @generated from field: optional uint64 limit_price = 6;
1792
+ */
1793
+ limitPrice?: bigint;
1794
+
1795
+ /**
1796
+ * @generated from field: optional uint32 account_id = 10;
1797
+ */
1798
+ accountId?: number;
1799
+ };
1800
+
1801
+ /**
1802
+ * @generated from message nord.Action.AddTrigger
1803
+ */
1804
+ export type Action_AddTriggerJson = {
1805
+ /**
1806
+ * @generated from field: uint64 session_id = 1;
1807
+ */
1808
+ sessionId?: string;
1809
+
1810
+ /**
1811
+ * @generated from field: uint32 market_id = 2;
1812
+ */
1813
+ marketId?: number;
1814
+
1815
+ /**
1816
+ * @generated from field: nord.TriggerKind kind = 3;
1817
+ */
1818
+ kind?: TriggerKindJson;
1819
+
1820
+ /**
1821
+ * @generated from field: nord.Side side = 4;
1822
+ */
1823
+ side?: SideJson;
1824
+
1825
+ /**
1826
+ * @generated from field: uint64 trigger_price = 5;
1827
+ */
1828
+ triggerPrice?: string;
1829
+
1830
+ /**
1831
+ * @generated from field: optional uint64 limit_price = 6;
1832
+ */
1833
+ limitPrice?: string;
1834
+
1835
+ /**
1836
+ * @generated from field: optional uint32 account_id = 10;
1837
+ */
1838
+ accountId?: number;
1839
+ };
1840
+
1841
+ /**
1842
+ * Describes the message nord.Action.AddTrigger.
1843
+ * Use `create(Action_AddTriggerSchema)` to create a new message.
1844
+ */
1845
+ export const Action_AddTriggerSchema: GenMessage<Action_AddTrigger, {jsonType: Action_AddTriggerJson}> = /*@__PURE__*/
1846
+ messageDesc(file_nord, 7, 15);
1847
+
1848
+ /**
1849
+ * @generated from message nord.Action.RemoveTrigger
1850
+ */
1851
+ export type Action_RemoveTrigger = Message<"nord.Action.RemoveTrigger"> & {
1852
+ /**
1853
+ * @generated from field: uint64 session_id = 1;
1854
+ */
1855
+ sessionId: bigint;
1856
+
1857
+ /**
1858
+ * @generated from field: uint32 market_id = 2;
1859
+ */
1860
+ marketId: number;
1861
+
1862
+ /**
1863
+ * @generated from field: nord.TriggerKind kind = 3;
1864
+ */
1865
+ kind: TriggerKind;
1866
+
1867
+ /**
1868
+ * @generated from field: nord.Side side = 4;
1869
+ */
1870
+ side: Side;
1871
+
1872
+ /**
1873
+ * @generated from field: uint64 trigger_price = 5;
1874
+ */
1875
+ triggerPrice: bigint;
1876
+
1877
+ /**
1878
+ * @generated from field: optional uint64 limit_price = 6;
1879
+ */
1880
+ limitPrice?: bigint;
1881
+
1882
+ /**
1883
+ * @generated from field: optional uint32 account_id = 10;
1884
+ */
1885
+ accountId?: number;
1886
+ };
1887
+
1888
+ /**
1889
+ * @generated from message nord.Action.RemoveTrigger
1890
+ */
1891
+ export type Action_RemoveTriggerJson = {
1892
+ /**
1893
+ * @generated from field: uint64 session_id = 1;
1894
+ */
1895
+ sessionId?: string;
1896
+
1897
+ /**
1898
+ * @generated from field: uint32 market_id = 2;
1899
+ */
1900
+ marketId?: number;
1901
+
1902
+ /**
1903
+ * @generated from field: nord.TriggerKind kind = 3;
1904
+ */
1905
+ kind?: TriggerKindJson;
1906
+
1907
+ /**
1908
+ * @generated from field: nord.Side side = 4;
1909
+ */
1910
+ side?: SideJson;
1911
+
1912
+ /**
1913
+ * @generated from field: uint64 trigger_price = 5;
1914
+ */
1915
+ triggerPrice?: string;
1916
+
1917
+ /**
1918
+ * @generated from field: optional uint64 limit_price = 6;
1919
+ */
1920
+ limitPrice?: string;
1921
+
1922
+ /**
1923
+ * @generated from field: optional uint32 account_id = 10;
1924
+ */
1925
+ accountId?: number;
1926
+ };
1927
+
1928
+ /**
1929
+ * Describes the message nord.Action.RemoveTrigger.
1930
+ * Use `create(Action_RemoveTriggerSchema)` to create a new message.
1931
+ */
1932
+ export const Action_RemoveTriggerSchema: GenMessage<Action_RemoveTrigger, {jsonType: Action_RemoveTriggerJson}> = /*@__PURE__*/
1933
+ messageDesc(file_nord, 7, 16);
1934
+
1935
+ /**
1936
+ * @generated from message nord.Action.TakePosition
1937
+ */
1938
+ export type Action_TakePosition = Message<"nord.Action.TakePosition"> & {
1939
+ /**
1940
+ * @generated from field: uint64 session_id = 1;
1941
+ */
1942
+ sessionId: bigint;
1943
+
1944
+ /**
1945
+ * @generated from field: uint32 market_id = 2;
1946
+ */
1947
+ marketId: number;
1948
+
1949
+ /**
1950
+ * Amount to take.
1951
+ *
1952
+ * @generated from field: int64 size = 3;
1953
+ */
1954
+ size: bigint;
1955
+
1956
+ /**
1957
+ * Account id which performs operation;
1958
+ * if not specified, first account of session's owner user is picked
1959
+ *
1960
+ * @generated from field: optional uint32 sender_account_id = 4;
1961
+ */
1962
+ senderAccountId?: number;
1963
+
1964
+ /**
1965
+ * If set, then it is take action.
1966
+ * If price not so good as in field, take will fail.
1967
+ *
1968
+ *
1969
+ * If not set,
1970
+ * will do fill-or-kill order as per liquidation trade rule.
1971
+ *
1972
+ * @generated from field: optional uint64 price = 5;
1973
+ */
1974
+ price?: bigint;
1975
+ };
1976
+
1977
+ /**
1978
+ * @generated from message nord.Action.TakePosition
1979
+ */
1980
+ export type Action_TakePositionJson = {
1981
+ /**
1982
+ * @generated from field: uint64 session_id = 1;
1983
+ */
1984
+ sessionId?: string;
1985
+
1986
+ /**
1987
+ * @generated from field: uint32 market_id = 2;
1988
+ */
1989
+ marketId?: number;
1990
+
1991
+ /**
1992
+ * Amount to take.
1993
+ *
1994
+ * @generated from field: int64 size = 3;
1995
+ */
1996
+ size?: string;
1997
+
1998
+ /**
1999
+ * Account id which performs operation;
2000
+ * if not specified, first account of session's owner user is picked
2001
+ *
2002
+ * @generated from field: optional uint32 sender_account_id = 4;
2003
+ */
2004
+ senderAccountId?: number;
2005
+
2006
+ /**
2007
+ * If set, then it is take action.
2008
+ * If price not so good as in field, take will fail.
2009
+ *
2010
+ *
2011
+ * If not set,
2012
+ * will do fill-or-kill order as per liquidation trade rule.
2013
+ *
2014
+ * @generated from field: optional uint64 price = 5;
2015
+ */
2016
+ price?: string;
2017
+ };
2018
+
2019
+ /**
2020
+ * Describes the message nord.Action.TakePosition.
2021
+ * Use `create(Action_TakePositionSchema)` to create a new message.
2022
+ */
2023
+ export const Action_TakePositionSchema: GenMessage<Action_TakePosition, {jsonType: Action_TakePositionJson}> = /*@__PURE__*/
2024
+ messageDesc(file_nord, 7, 17);
2025
+
2026
+ /**
2027
+ * @generated from message nord.AtomicSubactionKind
2028
+ */
2029
+ export type AtomicSubactionKind = Message<"nord.AtomicSubactionKind"> & {
2030
+ /**
2031
+ * @generated from oneof nord.AtomicSubactionKind.inner
2032
+ */
2033
+ inner: {
2034
+ /**
2035
+ * @generated from field: nord.TradeOrPlace trade_or_place = 6;
2036
+ */
2037
+ value: TradeOrPlace;
2038
+ case: "tradeOrPlace";
2039
+ } | {
2040
+ /**
2041
+ * @generated from field: nord.CancelOrder cancel_order = 7;
2042
+ */
2043
+ value: CancelOrder;
2044
+ case: "cancelOrder";
2045
+ } | { case: undefined; value?: undefined };
2046
+ };
2047
+
2048
+ /**
2049
+ * @generated from message nord.AtomicSubactionKind
2050
+ */
2051
+ export type AtomicSubactionKindJson = {
2052
+ /**
2053
+ * @generated from field: nord.TradeOrPlace trade_or_place = 6;
2054
+ */
2055
+ tradeOrPlace?: TradeOrPlaceJson;
2056
+
2057
+ /**
2058
+ * @generated from field: nord.CancelOrder cancel_order = 7;
2059
+ */
2060
+ cancelOrder?: CancelOrderJson;
2061
+ };
2062
+
2063
+ /**
2064
+ * Describes the message nord.AtomicSubactionKind.
2065
+ * Use `create(AtomicSubactionKindSchema)` to create a new message.
2066
+ */
2067
+ export const AtomicSubactionKindSchema: GenMessage<AtomicSubactionKind, {jsonType: AtomicSubactionKindJson}> = /*@__PURE__*/
2068
+ messageDesc(file_nord, 8);
2069
+
2070
+ /**
2071
+ * @generated from message nord.Atomic
2072
+ */
2073
+ export type Atomic = Message<"nord.Atomic"> & {
2074
+ /**
2075
+ * @generated from field: uint64 session_id = 1;
2076
+ */
2077
+ sessionId: bigint;
2078
+
2079
+ /**
2080
+ * @generated from field: optional uint32 account_id = 2;
2081
+ */
2082
+ accountId?: number;
2083
+
2084
+ /**
2085
+ * @generated from field: repeated nord.AtomicSubactionKind actions = 6;
2086
+ */
2087
+ actions: AtomicSubactionKind[];
2088
+ };
2089
+
2090
+ /**
2091
+ * @generated from message nord.Atomic
2092
+ */
2093
+ export type AtomicJson = {
2094
+ /**
2095
+ * @generated from field: uint64 session_id = 1;
2096
+ */
2097
+ sessionId?: string;
2098
+
2099
+ /**
2100
+ * @generated from field: optional uint32 account_id = 2;
2101
+ */
2102
+ accountId?: number;
2103
+
2104
+ /**
2105
+ * @generated from field: repeated nord.AtomicSubactionKind actions = 6;
2106
+ */
2107
+ actions?: AtomicSubactionKindJson[];
2108
+ };
2109
+
2110
+ /**
2111
+ * Describes the message nord.Atomic.
2112
+ * Use `create(AtomicSchema)` to create a new message.
2113
+ */
2114
+ export const AtomicSchema: GenMessage<Atomic, {jsonType: AtomicJson}> = /*@__PURE__*/
2115
+ messageDesc(file_nord, 9);
2116
+
2117
+ /**
2118
+ * @generated from message nord.Receipt
2119
+ */
2120
+ export type Receipt = Message<"nord.Receipt"> & {
2121
+ /**
2122
+ * Action id which was run to produce this receipt.
2123
+ * In case of error it was next action id which did not incremented because of
2124
+ * error.
2125
+ *
2126
+ * @generated from field: uint64 action_id = 1;
2127
+ */
2128
+ actionId: bigint;
2129
+
2130
+ /**
2131
+ * @generated from oneof nord.Receipt.kind
2132
+ */
2133
+ kind: {
2134
+ /**
2135
+ * @generated from field: nord.Error err = 32;
2136
+ */
2137
+ value: Error;
2138
+ case: "err";
2139
+ } | {
2140
+ /**
2141
+ * @generated from field: nord.Receipt.CreateSessionResult create_session_result = 33;
2142
+ */
2143
+ value: Receipt_CreateSessionResult;
2144
+ case: "createSessionResult";
2145
+ } | {
2146
+ /**
2147
+ * @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 34;
2148
+ */
2149
+ value: Receipt_PlaceOrderResult;
2150
+ case: "placeOrderResult";
2151
+ } | {
2152
+ /**
2153
+ * @generated from field: nord.Receipt.CancelOrderResult cancel_order_result = 35;
2154
+ */
2155
+ value: Receipt_CancelOrderResult;
2156
+ case: "cancelOrderResult";
2157
+ } | {
2158
+ /**
2159
+ * @generated from field: nord.Receipt.DepositResult deposit_result = 36;
2160
+ */
2161
+ value: Receipt_DepositResult;
2162
+ case: "depositResult";
2163
+ } | {
2164
+ /**
2165
+ * @generated from field: nord.Receipt.InsertTokenResult insert_token_result = 37;
2166
+ */
2167
+ value: Receipt_InsertTokenResult;
2168
+ case: "insertTokenResult";
2169
+ } | {
2170
+ /**
2171
+ * @generated from field: nord.Receipt.InsertMarketResult insert_market_result = 38;
2172
+ */
2173
+ value: Receipt_InsertMarketResult;
2174
+ case: "insertMarketResult";
2175
+ } | {
2176
+ /**
2177
+ * @generated from field: nord.Receipt.WithdrawResult withdraw_result = 39;
2178
+ */
2179
+ value: Receipt_WithdrawResult;
2180
+ case: "withdrawResult";
2181
+ } | {
2182
+ /**
2183
+ * @generated from field: nord.Receipt.OracleSymbolFeedResult oracle_symbol_feed_result = 40;
2184
+ */
2185
+ value: Receipt_OracleSymbolFeedResult;
2186
+ case: "oracleSymbolFeedResult";
2187
+ } | {
2188
+ /**
2189
+ * @generated from field: nord.Receipt.OracleUpdateResult oracle_update_result = 41;
2190
+ */
2191
+ value: Receipt_OracleUpdateResult;
2192
+ case: "oracleUpdateResult";
2193
+ } | {
2194
+ /**
2195
+ * @generated from field: nord.Receipt.UpdateGuardianSetResult update_guardian_set_result = 42;
2196
+ */
2197
+ value: Receipt_UpdateGuardianSetResult;
2198
+ case: "updateGuardianSetResult";
2199
+ } | {
2200
+ /**
2201
+ * @generated from field: nord.Receipt.AccountLiquidated liquidated = 43;
2202
+ */
2203
+ value: Receipt_AccountLiquidated;
2204
+ case: "liquidated";
2205
+ } | {
2206
+ /**
2207
+ * @generated from field: nord.Receipt.SessionRevoked session_revoked = 44;
2208
+ */
2209
+ value: Receipt_SessionRevoked;
2210
+ case: "sessionRevoked";
2211
+ } | {
2212
+ /**
2213
+ * @generated from field: nord.Receipt.Paused paused = 45;
2214
+ */
2215
+ value: Receipt_Paused;
2216
+ case: "paused";
2217
+ } | {
2218
+ /**
2219
+ * @generated from field: nord.Receipt.Unpaused unpaused = 46;
2220
+ */
2221
+ value: Receipt_Unpaused;
2222
+ case: "unpaused";
2223
+ } | {
2224
+ /**
2225
+ * @generated from field: nord.Receipt.Transferred transferred = 47;
2226
+ */
2227
+ value: Receipt_Transferred;
2228
+ case: "transferred";
2229
+ } | {
2230
+ /**
2231
+ * @generated from field: nord.Receipt.TriggerAdded trigger_added = 64;
2232
+ */
2233
+ value: Receipt_TriggerAdded;
2234
+ case: "triggerAdded";
2235
+ } | {
2236
+ /**
2237
+ * @generated from field: nord.Receipt.TriggerStatusChanged trigger_status_changed = 65;
2238
+ */
2239
+ value: Receipt_TriggerStatusChanged;
2240
+ case: "triggerStatusChanged";
2241
+ } | {
2242
+ /**
2243
+ * @generated from field: nord.Receipt.PositionTakenOrTradedResult position_taken_or_traded = 66;
2244
+ */
2245
+ value: Receipt_PositionTakenOrTradedResult;
2246
+ case: "positionTakenOrTraded";
2247
+ } | {
2248
+ /**
2249
+ * @generated from field: nord.Receipt.AtomicResult atomic = 67;
2250
+ */
2251
+ value: Receipt_AtomicResult;
2252
+ case: "atomic";
2253
+ } | { case: undefined; value?: undefined };
2254
+ };
2255
+
2256
+ /**
2257
+ * @generated from message nord.Receipt
2258
+ */
2259
+ export type ReceiptJson = {
2260
+ /**
2261
+ * Action id which was run to produce this receipt.
2262
+ * In case of error it was next action id which did not incremented because of
2263
+ * error.
2264
+ *
2265
+ * @generated from field: uint64 action_id = 1;
2266
+ */
2267
+ actionId?: string;
2268
+
2269
+ /**
2270
+ * @generated from field: nord.Error err = 32;
2271
+ */
2272
+ err?: ErrorJson;
2273
+
2274
+ /**
2275
+ * @generated from field: nord.Receipt.CreateSessionResult create_session_result = 33;
2276
+ */
2277
+ createSessionResult?: Receipt_CreateSessionResultJson;
2278
+
2279
+ /**
2280
+ * @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 34;
2281
+ */
2282
+ placeOrderResult?: Receipt_PlaceOrderResultJson;
2283
+
2284
+ /**
2285
+ * @generated from field: nord.Receipt.CancelOrderResult cancel_order_result = 35;
2286
+ */
2287
+ cancelOrderResult?: Receipt_CancelOrderResultJson;
2288
+
2289
+ /**
2290
+ * @generated from field: nord.Receipt.DepositResult deposit_result = 36;
2291
+ */
2292
+ depositResult?: Receipt_DepositResultJson;
2293
+
2294
+ /**
2295
+ * @generated from field: nord.Receipt.InsertTokenResult insert_token_result = 37;
2296
+ */
2297
+ insertTokenResult?: Receipt_InsertTokenResultJson;
2298
+
2299
+ /**
2300
+ * @generated from field: nord.Receipt.InsertMarketResult insert_market_result = 38;
2301
+ */
2302
+ insertMarketResult?: Receipt_InsertMarketResultJson;
2303
+
2304
+ /**
2305
+ * @generated from field: nord.Receipt.WithdrawResult withdraw_result = 39;
2306
+ */
2307
+ withdrawResult?: Receipt_WithdrawResultJson;
2308
+
2309
+ /**
2310
+ * @generated from field: nord.Receipt.OracleSymbolFeedResult oracle_symbol_feed_result = 40;
2311
+ */
2312
+ oracleSymbolFeedResult?: Receipt_OracleSymbolFeedResultJson;
2313
+
2314
+ /**
2315
+ * @generated from field: nord.Receipt.OracleUpdateResult oracle_update_result = 41;
2316
+ */
2317
+ oracleUpdateResult?: Receipt_OracleUpdateResultJson;
2318
+
2319
+ /**
2320
+ * @generated from field: nord.Receipt.UpdateGuardianSetResult update_guardian_set_result = 42;
2321
+ */
2322
+ updateGuardianSetResult?: Receipt_UpdateGuardianSetResultJson;
2323
+
2324
+ /**
2325
+ * @generated from field: nord.Receipt.AccountLiquidated liquidated = 43;
2326
+ */
2327
+ liquidated?: Receipt_AccountLiquidatedJson;
2328
+
2329
+ /**
2330
+ * @generated from field: nord.Receipt.SessionRevoked session_revoked = 44;
2331
+ */
2332
+ sessionRevoked?: Receipt_SessionRevokedJson;
2333
+
2334
+ /**
2335
+ * @generated from field: nord.Receipt.Paused paused = 45;
2336
+ */
2337
+ paused?: Receipt_PausedJson;
2338
+
2339
+ /**
2340
+ * @generated from field: nord.Receipt.Unpaused unpaused = 46;
2341
+ */
2342
+ unpaused?: Receipt_UnpausedJson;
2343
+
2344
+ /**
2345
+ * @generated from field: nord.Receipt.Transferred transferred = 47;
2346
+ */
2347
+ transferred?: Receipt_TransferredJson;
2348
+
2349
+ /**
2350
+ * @generated from field: nord.Receipt.TriggerAdded trigger_added = 64;
2351
+ */
2352
+ triggerAdded?: Receipt_TriggerAddedJson;
2353
+
2354
+ /**
2355
+ * @generated from field: nord.Receipt.TriggerStatusChanged trigger_status_changed = 65;
2356
+ */
2357
+ triggerStatusChanged?: Receipt_TriggerStatusChangedJson;
2358
+
2359
+ /**
2360
+ * @generated from field: nord.Receipt.PositionTakenOrTradedResult position_taken_or_traded = 66;
2361
+ */
2362
+ positionTakenOrTraded?: Receipt_PositionTakenOrTradedResultJson;
2363
+
2364
+ /**
2365
+ * @generated from field: nord.Receipt.AtomicResult atomic = 67;
2366
+ */
2367
+ atomic?: Receipt_AtomicResultJson;
2368
+ };
2369
+
2370
+ /**
2371
+ * Describes the message nord.Receipt.
2372
+ * Use `create(ReceiptSchema)` to create a new message.
2373
+ */
2374
+ export const ReceiptSchema: GenMessage<Receipt, {jsonType: ReceiptJson}> = /*@__PURE__*/
2375
+ messageDesc(file_nord, 10);
2376
+
2377
+ /**
2378
+ * @generated from message nord.Receipt.Posted
2379
+ */
2380
+ export type Receipt_Posted = Message<"nord.Receipt.Posted"> & {
2381
+ /**
2382
+ * @generated from field: nord.Side side = 1;
2383
+ */
2384
+ side: Side;
2385
+
2386
+ /**
2387
+ * @generated from field: uint32 market_id = 2;
2388
+ */
2389
+ marketId: number;
2390
+
2391
+ /**
2392
+ * @generated from field: uint64 price = 3;
2393
+ */
2394
+ price: bigint;
2395
+
2396
+ /**
2397
+ * @generated from field: uint64 size = 4;
2398
+ */
2399
+ size: bigint;
2400
+
2401
+ /**
2402
+ * @generated from field: uint64 order_id = 5;
2403
+ */
2404
+ orderId: bigint;
2405
+
2406
+ /**
2407
+ * @generated from field: uint32 account_id = 6;
2408
+ */
2409
+ accountId: number;
2410
+ };
2411
+
2412
+ /**
2413
+ * @generated from message nord.Receipt.Posted
2414
+ */
2415
+ export type Receipt_PostedJson = {
2416
+ /**
2417
+ * @generated from field: nord.Side side = 1;
2418
+ */
2419
+ side?: SideJson;
2420
+
2421
+ /**
2422
+ * @generated from field: uint32 market_id = 2;
2423
+ */
2424
+ marketId?: number;
2425
+
2426
+ /**
2427
+ * @generated from field: uint64 price = 3;
2428
+ */
2429
+ price?: string;
2430
+
2431
+ /**
2432
+ * @generated from field: uint64 size = 4;
2433
+ */
2434
+ size?: string;
2435
+
2436
+ /**
2437
+ * @generated from field: uint64 order_id = 5;
2438
+ */
2439
+ orderId?: string;
2440
+
2441
+ /**
2442
+ * @generated from field: uint32 account_id = 6;
2443
+ */
2444
+ accountId?: number;
2445
+ };
2446
+
2447
+ /**
2448
+ * Describes the message nord.Receipt.Posted.
2449
+ * Use `create(Receipt_PostedSchema)` to create a new message.
2450
+ */
2451
+ export const Receipt_PostedSchema: GenMessage<Receipt_Posted, {jsonType: Receipt_PostedJson}> = /*@__PURE__*/
2452
+ messageDesc(file_nord, 10, 0);
2453
+
2454
+ /**
2455
+ * @generated from message nord.Receipt.Trade
2456
+ */
2457
+ export type Receipt_Trade = Message<"nord.Receipt.Trade"> & {
2458
+ /**
2459
+ * @generated from field: uint64 order_id = 2;
2460
+ */
2461
+ orderId: bigint;
2462
+
2463
+ /**
2464
+ * non zero
2465
+ *
2466
+ * @generated from field: uint64 price = 4;
2467
+ */
2468
+ price: bigint;
2469
+
2470
+ /**
2471
+ * @generated from field: uint64 size = 5;
2472
+ */
2473
+ size: bigint;
2474
+
2475
+ /**
2476
+ * @generated from field: uint32 account_id = 6;
2477
+ */
2478
+ accountId: number;
2479
+ };
2480
+
2481
+ /**
2482
+ * @generated from message nord.Receipt.Trade
2483
+ */
2484
+ export type Receipt_TradeJson = {
2485
+ /**
2486
+ * @generated from field: uint64 order_id = 2;
2487
+ */
2488
+ orderId?: string;
2489
+
2490
+ /**
2491
+ * non zero
2492
+ *
2493
+ * @generated from field: uint64 price = 4;
2494
+ */
2495
+ price?: string;
2496
+
2497
+ /**
2498
+ * @generated from field: uint64 size = 5;
2499
+ */
2500
+ size?: string;
2501
+
2502
+ /**
2503
+ * @generated from field: uint32 account_id = 6;
2504
+ */
2505
+ accountId?: number;
2506
+ };
2507
+
2508
+ /**
2509
+ * Describes the message nord.Receipt.Trade.
2510
+ * Use `create(Receipt_TradeSchema)` to create a new message.
2511
+ */
2512
+ export const Receipt_TradeSchema: GenMessage<Receipt_Trade, {jsonType: Receipt_TradeJson}> = /*@__PURE__*/
2513
+ messageDesc(file_nord, 10, 1);
2514
+
2515
+ /**
2516
+ * @generated from message nord.Receipt.CreateSessionResult
2517
+ */
2518
+ export type Receipt_CreateSessionResult = Message<"nord.Receipt.CreateSessionResult"> & {
2519
+ /**
2520
+ * @generated from field: uint64 session_id = 1;
2521
+ */
2522
+ sessionId: bigint;
2523
+ };
2524
+
2525
+ /**
2526
+ * @generated from message nord.Receipt.CreateSessionResult
2527
+ */
2528
+ export type Receipt_CreateSessionResultJson = {
2529
+ /**
2530
+ * @generated from field: uint64 session_id = 1;
2531
+ */
2532
+ sessionId?: string;
2533
+ };
2534
+
2535
+ /**
2536
+ * Describes the message nord.Receipt.CreateSessionResult.
2537
+ * Use `create(Receipt_CreateSessionResultSchema)` to create a new message.
2538
+ */
2539
+ export const Receipt_CreateSessionResultSchema: GenMessage<Receipt_CreateSessionResult, {jsonType: Receipt_CreateSessionResultJson}> = /*@__PURE__*/
2540
+ messageDesc(file_nord, 10, 2);
2541
+
2542
+ /**
2543
+ * @generated from message nord.Receipt.PlaceOrderResult
2544
+ */
2545
+ export type Receipt_PlaceOrderResult = Message<"nord.Receipt.PlaceOrderResult"> & {
2546
+ /**
2547
+ * @generated from field: optional nord.Receipt.Posted posted = 1;
2548
+ */
2549
+ posted?: Receipt_Posted;
2550
+
2551
+ /**
2552
+ * @generated from field: repeated nord.Receipt.Trade fills = 2;
2553
+ */
2554
+ fills: Receipt_Trade[];
2555
+
2556
+ /**
2557
+ * @generated from field: optional uint64 client_order_id = 3;
2558
+ */
2559
+ clientOrderId?: bigint;
2560
+
2561
+ /**
2562
+ * @generated from field: optional uint64 sender_tracking_id = 4;
2563
+ */
2564
+ senderTrackingId?: bigint;
2565
+ };
2566
+
2567
+ /**
2568
+ * @generated from message nord.Receipt.PlaceOrderResult
2569
+ */
2570
+ export type Receipt_PlaceOrderResultJson = {
2571
+ /**
2572
+ * @generated from field: optional nord.Receipt.Posted posted = 1;
2573
+ */
2574
+ posted?: Receipt_PostedJson;
2575
+
2576
+ /**
2577
+ * @generated from field: repeated nord.Receipt.Trade fills = 2;
2578
+ */
2579
+ fills?: Receipt_TradeJson[];
2580
+
2581
+ /**
2582
+ * @generated from field: optional uint64 client_order_id = 3;
2583
+ */
2584
+ clientOrderId?: string;
2585
+
2586
+ /**
2587
+ * @generated from field: optional uint64 sender_tracking_id = 4;
2588
+ */
2589
+ senderTrackingId?: string;
2590
+ };
2591
+
2592
+ /**
2593
+ * Describes the message nord.Receipt.PlaceOrderResult.
2594
+ * Use `create(Receipt_PlaceOrderResultSchema)` to create a new message.
2595
+ */
2596
+ export const Receipt_PlaceOrderResultSchema: GenMessage<Receipt_PlaceOrderResult, {jsonType: Receipt_PlaceOrderResultJson}> = /*@__PURE__*/
2597
+ messageDesc(file_nord, 10, 3);
2598
+
2599
+ /**
2600
+ * @generated from message nord.Receipt.TakenResult
2601
+ */
2602
+ export type Receipt_TakenResult = Message<"nord.Receipt.TakenResult"> & {
2603
+ /**
2604
+ * @generated from field: int64 pnl = 1;
2605
+ */
2606
+ pnl: bigint;
2607
+
2608
+ /**
2609
+ * @generated from field: int64 size = 2;
2610
+ */
2611
+ size: bigint;
2612
+
2613
+ /**
2614
+ * @generated from field: uint32 taker_account_id = 3;
2615
+ */
2616
+ takerAccountId: number;
2617
+ };
2618
+
2619
+ /**
2620
+ * @generated from message nord.Receipt.TakenResult
2621
+ */
2622
+ export type Receipt_TakenResultJson = {
2623
+ /**
2624
+ * @generated from field: int64 pnl = 1;
2625
+ */
2626
+ pnl?: string;
2627
+
2628
+ /**
2629
+ * @generated from field: int64 size = 2;
2630
+ */
2631
+ size?: string;
2632
+
2633
+ /**
2634
+ * @generated from field: uint32 taker_account_id = 3;
2635
+ */
2636
+ takerAccountId?: number;
2637
+ };
2638
+
2639
+ /**
2640
+ * Describes the message nord.Receipt.TakenResult.
2641
+ * Use `create(Receipt_TakenResultSchema)` to create a new message.
2642
+ */
2643
+ export const Receipt_TakenResultSchema: GenMessage<Receipt_TakenResult, {jsonType: Receipt_TakenResultJson}> = /*@__PURE__*/
2644
+ messageDesc(file_nord, 10, 4);
2645
+
2646
+ /**
2647
+ * @generated from message nord.Receipt.PositionTakenOrTradedResult
2648
+ */
2649
+ export type Receipt_PositionTakenOrTradedResult = Message<"nord.Receipt.PositionTakenOrTradedResult"> & {
2650
+ /**
2651
+ * @generated from field: uint32 market_id = 1;
2652
+ */
2653
+ marketId: number;
2654
+
2655
+ /**
2656
+ * @generated from oneof nord.Receipt.PositionTakenOrTradedResult.PositionTakenOrTradedKind
2657
+ */
2658
+ PositionTakenOrTradedKind: {
2659
+ /**
2660
+ * @generated from field: nord.Receipt.TakenResult taken = 2;
2661
+ */
2662
+ value: Receipt_TakenResult;
2663
+ case: "taken";
2664
+ } | {
2665
+ /**
2666
+ * non empty if trade immediately
2667
+ *
2668
+ * @generated from field: nord.Receipt.PlaceOrderResult traded = 3;
2669
+ */
2670
+ value: Receipt_PlaceOrderResult;
2671
+ case: "traded";
2672
+ } | { case: undefined; value?: undefined };
2673
+ };
2674
+
2675
+ /**
2676
+ * @generated from message nord.Receipt.PositionTakenOrTradedResult
2677
+ */
2678
+ export type Receipt_PositionTakenOrTradedResultJson = {
2679
+ /**
2680
+ * @generated from field: uint32 market_id = 1;
2681
+ */
2682
+ marketId?: number;
2683
+
2684
+ /**
2685
+ * @generated from field: nord.Receipt.TakenResult taken = 2;
2686
+ */
2687
+ taken?: Receipt_TakenResultJson;
2688
+
2689
+ /**
2690
+ * non empty if trade immediately
2691
+ *
2692
+ * @generated from field: nord.Receipt.PlaceOrderResult traded = 3;
2693
+ */
2694
+ traded?: Receipt_PlaceOrderResultJson;
2695
+ };
2696
+
2697
+ /**
2698
+ * Describes the message nord.Receipt.PositionTakenOrTradedResult.
2699
+ * Use `create(Receipt_PositionTakenOrTradedResultSchema)` to create a new message.
2700
+ */
2701
+ export const Receipt_PositionTakenOrTradedResultSchema: GenMessage<Receipt_PositionTakenOrTradedResult, {jsonType: Receipt_PositionTakenOrTradedResultJson}> = /*@__PURE__*/
2702
+ messageDesc(file_nord, 10, 5);
2703
+
2704
+ /**
2705
+ * @generated from message nord.Receipt.CancelOrderResult
2706
+ */
2707
+ export type Receipt_CancelOrderResult = Message<"nord.Receipt.CancelOrderResult"> & {
2708
+ /**
2709
+ * @generated from field: uint64 order_id = 1;
2710
+ */
2711
+ orderId: bigint;
2712
+
2713
+ /**
2714
+ * Account from which order was cancelled
2715
+ *
2716
+ * @generated from field: uint32 account_id = 2;
2717
+ */
2718
+ accountId: number;
2719
+ };
2720
+
2721
+ /**
2722
+ * @generated from message nord.Receipt.CancelOrderResult
2723
+ */
2724
+ export type Receipt_CancelOrderResultJson = {
2725
+ /**
2726
+ * @generated from field: uint64 order_id = 1;
2727
+ */
2728
+ orderId?: string;
2729
+
2730
+ /**
2731
+ * Account from which order was cancelled
2732
+ *
2733
+ * @generated from field: uint32 account_id = 2;
2734
+ */
2735
+ accountId?: number;
2736
+ };
2737
+
2738
+ /**
2739
+ * Describes the message nord.Receipt.CancelOrderResult.
2740
+ * Use `create(Receipt_CancelOrderResultSchema)` to create a new message.
2741
+ */
2742
+ export const Receipt_CancelOrderResultSchema: GenMessage<Receipt_CancelOrderResult, {jsonType: Receipt_CancelOrderResultJson}> = /*@__PURE__*/
2743
+ messageDesc(file_nord, 10, 6);
2744
+
2745
+ /**
2746
+ * @generated from message nord.Receipt.DepositResult
2747
+ */
2748
+ export type Receipt_DepositResult = Message<"nord.Receipt.DepositResult"> & {
2749
+ /**
2750
+ * @generated from field: uint32 token_id = 1;
2751
+ */
2752
+ tokenId: number;
2753
+
2754
+ /**
2755
+ * @generated from field: uint64 amount = 2;
2756
+ */
2757
+ amount: bigint;
2758
+
2759
+ /**
2760
+ * Default account of newly created or existing user
2761
+ *
2762
+ * @generated from field: uint32 account_id = 3;
2763
+ */
2764
+ accountId: number;
2765
+
2766
+ /**
2767
+ * @generated from field: bool user_created = 4;
2768
+ */
2769
+ userCreated: boolean;
2770
+
2771
+ /**
2772
+ * @generated from field: bytes user_pubkey = 5;
2773
+ */
2774
+ userPubkey: Uint8Array;
2775
+ };
2776
+
2777
+ /**
2778
+ * @generated from message nord.Receipt.DepositResult
2779
+ */
2780
+ export type Receipt_DepositResultJson = {
2781
+ /**
2782
+ * @generated from field: uint32 token_id = 1;
2783
+ */
2784
+ tokenId?: number;
2785
+
2786
+ /**
2787
+ * @generated from field: uint64 amount = 2;
2788
+ */
2789
+ amount?: string;
2790
+
2791
+ /**
2792
+ * Default account of newly created or existing user
2793
+ *
2794
+ * @generated from field: uint32 account_id = 3;
2795
+ */
2796
+ accountId?: number;
2797
+
2798
+ /**
2799
+ * @generated from field: bool user_created = 4;
2800
+ */
2801
+ userCreated?: boolean;
2802
+
2803
+ /**
2804
+ * @generated from field: bytes user_pubkey = 5;
2805
+ */
2806
+ userPubkey?: string;
2807
+ };
2808
+
2809
+ /**
2810
+ * Describes the message nord.Receipt.DepositResult.
2811
+ * Use `create(Receipt_DepositResultSchema)` to create a new message.
2812
+ */
2813
+ export const Receipt_DepositResultSchema: GenMessage<Receipt_DepositResult, {jsonType: Receipt_DepositResultJson}> = /*@__PURE__*/
2814
+ messageDesc(file_nord, 10, 7);
2815
+
2816
+ /**
2817
+ * @generated from message nord.Receipt.InsertTokenResult
2818
+ */
2819
+ export type Receipt_InsertTokenResult = Message<"nord.Receipt.InsertTokenResult"> & {
2820
+ /**
2821
+ * @generated from field: bytes chain_addr = 1;
2822
+ */
2823
+ chainAddr: Uint8Array;
2824
+
2825
+ /**
2826
+ * @generated from field: nord.Token token = 2;
2827
+ */
2828
+ token?: Token;
2829
+ };
2830
+
2831
+ /**
2832
+ * @generated from message nord.Receipt.InsertTokenResult
2833
+ */
2834
+ export type Receipt_InsertTokenResultJson = {
2835
+ /**
2836
+ * @generated from field: bytes chain_addr = 1;
2837
+ */
2838
+ chainAddr?: string;
2839
+
2840
+ /**
2841
+ * @generated from field: nord.Token token = 2;
2842
+ */
2843
+ token?: TokenJson;
2844
+ };
2845
+
2846
+ /**
2847
+ * Describes the message nord.Receipt.InsertTokenResult.
2848
+ * Use `create(Receipt_InsertTokenResultSchema)` to create a new message.
2849
+ */
2850
+ export const Receipt_InsertTokenResultSchema: GenMessage<Receipt_InsertTokenResult, {jsonType: Receipt_InsertTokenResultJson}> = /*@__PURE__*/
2851
+ messageDesc(file_nord, 10, 8);
2852
+
2853
+ /**
2854
+ * @generated from message nord.Receipt.InsertMarketResult
2855
+ */
2856
+ export type Receipt_InsertMarketResult = Message<"nord.Receipt.InsertMarketResult"> & {
2857
+ /**
2858
+ * @generated from field: nord.Market market = 1;
2859
+ */
2860
+ market?: Market;
2861
+ };
2862
+
2863
+ /**
2864
+ * @generated from message nord.Receipt.InsertMarketResult
2865
+ */
2866
+ export type Receipt_InsertMarketResultJson = {
2867
+ /**
2868
+ * @generated from field: nord.Market market = 1;
2869
+ */
2870
+ market?: MarketJson;
2871
+ };
2872
+
2873
+ /**
2874
+ * Describes the message nord.Receipt.InsertMarketResult.
2875
+ * Use `create(Receipt_InsertMarketResultSchema)` to create a new message.
2876
+ */
2877
+ export const Receipt_InsertMarketResultSchema: GenMessage<Receipt_InsertMarketResult, {jsonType: Receipt_InsertMarketResultJson}> = /*@__PURE__*/
2878
+ messageDesc(file_nord, 10, 9);
2879
+
2880
+ /**
2881
+ * @generated from message nord.Receipt.WithdrawResult
2882
+ */
2883
+ export type Receipt_WithdrawResult = Message<"nord.Receipt.WithdrawResult"> & {
2884
+ /**
2885
+ * @generated from field: uint32 token_id = 1;
2886
+ */
2887
+ tokenId: number;
2888
+
2889
+ /**
2890
+ * @generated from field: uint64 amount = 2;
2891
+ */
2892
+ amount: bigint;
2893
+
2894
+ /**
2895
+ * @generated from field: uint64 balance = 3;
2896
+ */
2897
+ balance: bigint;
2898
+
2899
+ /**
2900
+ * @generated from field: uint32 account_id = 4;
2901
+ */
2902
+ accountId: number;
2903
+
2904
+ /**
2905
+ * @generated from field: uint64 fee = 5;
2906
+ */
2907
+ fee: bigint;
2908
+
2909
+ /**
2910
+ * @generated from field: bytes user_pubkey = 6;
2911
+ */
2912
+ userPubkey: Uint8Array;
2913
+ };
2914
+
2915
+ /**
2916
+ * @generated from message nord.Receipt.WithdrawResult
2917
+ */
2918
+ export type Receipt_WithdrawResultJson = {
2919
+ /**
2920
+ * @generated from field: uint32 token_id = 1;
2921
+ */
2922
+ tokenId?: number;
2923
+
2924
+ /**
2925
+ * @generated from field: uint64 amount = 2;
2926
+ */
2927
+ amount?: string;
2928
+
2929
+ /**
2930
+ * @generated from field: uint64 balance = 3;
2931
+ */
2932
+ balance?: string;
2933
+
2934
+ /**
2935
+ * @generated from field: uint32 account_id = 4;
2936
+ */
2937
+ accountId?: number;
2938
+
2939
+ /**
2940
+ * @generated from field: uint64 fee = 5;
2941
+ */
2942
+ fee?: string;
2943
+
2944
+ /**
2945
+ * @generated from field: bytes user_pubkey = 6;
2946
+ */
2947
+ userPubkey?: string;
2948
+ };
2949
+
2950
+ /**
2951
+ * Describes the message nord.Receipt.WithdrawResult.
2952
+ * Use `create(Receipt_WithdrawResultSchema)` to create a new message.
2953
+ */
2954
+ export const Receipt_WithdrawResultSchema: GenMessage<Receipt_WithdrawResult, {jsonType: Receipt_WithdrawResultJson}> = /*@__PURE__*/
2955
+ messageDesc(file_nord, 10, 10);
2956
+
2957
+ /**
2958
+ * pyth receipts are not user facing, so they can be terse and optional
2959
+ *
2960
+ * @generated from message nord.Receipt.OracleSymbolFeedResult
2961
+ */
2962
+ export type Receipt_OracleSymbolFeedResult = Message<"nord.Receipt.OracleSymbolFeedResult"> & {
2963
+ /**
2964
+ * @generated from field: string oracle_symbol = 1;
2965
+ */
2966
+ oracleSymbol: string;
2967
+
2968
+ /**
2969
+ * @generated from field: bytes feed_id = 2;
2970
+ */
2971
+ feedId: Uint8Array;
2972
+ };
2973
+
2974
+ /**
2975
+ * pyth receipts are not user facing, so they can be terse and optional
2976
+ *
2977
+ * @generated from message nord.Receipt.OracleSymbolFeedResult
2978
+ */
2979
+ export type Receipt_OracleSymbolFeedResultJson = {
2980
+ /**
2981
+ * @generated from field: string oracle_symbol = 1;
2982
+ */
2983
+ oracleSymbol?: string;
2984
+
2985
+ /**
2986
+ * @generated from field: bytes feed_id = 2;
2987
+ */
2988
+ feedId?: string;
2989
+ };
2990
+
2991
+ /**
2992
+ * Describes the message nord.Receipt.OracleSymbolFeedResult.
2993
+ * Use `create(Receipt_OracleSymbolFeedResultSchema)` to create a new message.
2994
+ */
2995
+ export const Receipt_OracleSymbolFeedResultSchema: GenMessage<Receipt_OracleSymbolFeedResult, {jsonType: Receipt_OracleSymbolFeedResultJson}> = /*@__PURE__*/
2996
+ messageDesc(file_nord, 10, 11);
2997
+
2998
+ /**
2999
+ * @generated from message nord.Receipt.OracleUpdateResult
3000
+ */
3001
+ export type Receipt_OracleUpdateResult = Message<"nord.Receipt.OracleUpdateResult"> & {
3002
+ /**
3003
+ * @generated from field: int64 timestamp = 1;
3004
+ */
3005
+ timestamp: bigint;
3006
+ };
3007
+
3008
+ /**
3009
+ * @generated from message nord.Receipt.OracleUpdateResult
3010
+ */
3011
+ export type Receipt_OracleUpdateResultJson = {
3012
+ /**
3013
+ * @generated from field: int64 timestamp = 1;
3014
+ */
3015
+ timestamp?: string;
3016
+ };
3017
+
3018
+ /**
3019
+ * Describes the message nord.Receipt.OracleUpdateResult.
3020
+ * Use `create(Receipt_OracleUpdateResultSchema)` to create a new message.
3021
+ */
3022
+ export const Receipt_OracleUpdateResultSchema: GenMessage<Receipt_OracleUpdateResult, {jsonType: Receipt_OracleUpdateResultJson}> = /*@__PURE__*/
3023
+ messageDesc(file_nord, 10, 12);
3024
+
3025
+ /**
3026
+ * @generated from message nord.Receipt.UpdateGuardianSetResult
3027
+ */
3028
+ export type Receipt_UpdateGuardianSetResult = Message<"nord.Receipt.UpdateGuardianSetResult"> & {
3029
+ /**
3030
+ * @generated from field: uint32 guardian_set_index = 1;
3031
+ */
3032
+ guardianSetIndex: number;
3033
+
3034
+ /**
3035
+ * @generated from field: repeated bytes addresses = 2;
3036
+ */
3037
+ addresses: Uint8Array[];
3038
+ };
3039
+
3040
+ /**
3041
+ * @generated from message nord.Receipt.UpdateGuardianSetResult
3042
+ */
3043
+ export type Receipt_UpdateGuardianSetResultJson = {
3044
+ /**
3045
+ * @generated from field: uint32 guardian_set_index = 1;
3046
+ */
3047
+ guardianSetIndex?: number;
3048
+
3049
+ /**
3050
+ * @generated from field: repeated bytes addresses = 2;
3051
+ */
3052
+ addresses?: string[];
3053
+ };
3054
+
3055
+ /**
3056
+ * Describes the message nord.Receipt.UpdateGuardianSetResult.
3057
+ * Use `create(Receipt_UpdateGuardianSetResultSchema)` to create a new message.
3058
+ */
3059
+ export const Receipt_UpdateGuardianSetResultSchema: GenMessage<Receipt_UpdateGuardianSetResult, {jsonType: Receipt_UpdateGuardianSetResultJson}> = /*@__PURE__*/
3060
+ messageDesc(file_nord, 10, 13);
3061
+
3062
+ /**
3063
+ * @generated from message nord.Receipt.PerpPosition
3064
+ */
3065
+ export type Receipt_PerpPosition = Message<"nord.Receipt.PerpPosition"> & {
3066
+ /**
3067
+ * @generated from field: uint32 market_id = 1;
3068
+ */
3069
+ marketId: number;
3070
+
3071
+ /**
3072
+ * @generated from field: int64 base_size = 2;
3073
+ */
3074
+ baseSize: bigint;
3075
+
3076
+ /**
3077
+ * @generated from field: uint64 price = 3;
3078
+ */
3079
+ price: bigint;
3080
+ };
3081
+
3082
+ /**
3083
+ * @generated from message nord.Receipt.PerpPosition
3084
+ */
3085
+ export type Receipt_PerpPositionJson = {
3086
+ /**
3087
+ * @generated from field: uint32 market_id = 1;
3088
+ */
3089
+ marketId?: number;
3090
+
3091
+ /**
3092
+ * @generated from field: int64 base_size = 2;
3093
+ */
3094
+ baseSize?: string;
3095
+
3096
+ /**
3097
+ * @generated from field: uint64 price = 3;
3098
+ */
3099
+ price?: string;
3100
+ };
3101
+
3102
+ /**
3103
+ * Describes the message nord.Receipt.PerpPosition.
3104
+ * Use `create(Receipt_PerpPositionSchema)` to create a new message.
3105
+ */
3106
+ export const Receipt_PerpPositionSchema: GenMessage<Receipt_PerpPosition, {jsonType: Receipt_PerpPositionJson}> = /*@__PURE__*/
3107
+ messageDesc(file_nord, 10, 14);
3108
+
3109
+ /**
3110
+ * / Result of bankruptcy liquidation.
3111
+ *
3112
+ * @generated from message nord.Receipt.AccountLiquidated
3113
+ */
3114
+ export type Receipt_AccountLiquidated = Message<"nord.Receipt.AccountLiquidated"> & {
3115
+ /**
3116
+ * @generated from field: uint32 liquidator_account_id = 1;
3117
+ */
3118
+ liquidatorAccountId: number;
3119
+
3120
+ /**
3121
+ * @generated from field: uint32 liquidatee_account_id = 2;
3122
+ */
3123
+ liquidateeAccountId: number;
3124
+
3125
+ /**
3126
+ * @generated from field: repeated uint64 cancelled_orders = 3;
3127
+ */
3128
+ cancelledOrders: bigint[];
3129
+
3130
+ /**
3131
+ * @generated from field: repeated nord.Receipt.PerpPosition removed_perps = 4;
3132
+ */
3133
+ removedPerps: Receipt_PerpPosition[];
3134
+ };
3135
+
3136
+ /**
3137
+ * / Result of bankruptcy liquidation.
3138
+ *
3139
+ * @generated from message nord.Receipt.AccountLiquidated
3140
+ */
3141
+ export type Receipt_AccountLiquidatedJson = {
3142
+ /**
3143
+ * @generated from field: uint32 liquidator_account_id = 1;
3144
+ */
3145
+ liquidatorAccountId?: number;
3146
+
3147
+ /**
3148
+ * @generated from field: uint32 liquidatee_account_id = 2;
3149
+ */
3150
+ liquidateeAccountId?: number;
3151
+
3152
+ /**
3153
+ * @generated from field: repeated uint64 cancelled_orders = 3;
3154
+ */
3155
+ cancelledOrders?: string[];
3156
+
3157
+ /**
3158
+ * @generated from field: repeated nord.Receipt.PerpPosition removed_perps = 4;
3159
+ */
3160
+ removedPerps?: Receipt_PerpPositionJson[];
3161
+ };
3162
+
3163
+ /**
3164
+ * Describes the message nord.Receipt.AccountLiquidated.
3165
+ * Use `create(Receipt_AccountLiquidatedSchema)` to create a new message.
3166
+ */
3167
+ export const Receipt_AccountLiquidatedSchema: GenMessage<Receipt_AccountLiquidated, {jsonType: Receipt_AccountLiquidatedJson}> = /*@__PURE__*/
3168
+ messageDesc(file_nord, 10, 15);
3169
+
3170
+ /**
3171
+ * @generated from message nord.Receipt.SessionRevoked
3172
+ */
3173
+ export type Receipt_SessionRevoked = Message<"nord.Receipt.SessionRevoked"> & {
3174
+ };
3175
+
3176
+ /**
3177
+ * @generated from message nord.Receipt.SessionRevoked
3178
+ */
3179
+ export type Receipt_SessionRevokedJson = {
3180
+ };
3181
+
3182
+ /**
3183
+ * Describes the message nord.Receipt.SessionRevoked.
3184
+ * Use `create(Receipt_SessionRevokedSchema)` to create a new message.
3185
+ */
3186
+ export const Receipt_SessionRevokedSchema: GenMessage<Receipt_SessionRevoked, {jsonType: Receipt_SessionRevokedJson}> = /*@__PURE__*/
3187
+ messageDesc(file_nord, 10, 16);
3188
+
3189
+ /**
3190
+ * @generated from message nord.Receipt.Paused
3191
+ */
3192
+ export type Receipt_Paused = Message<"nord.Receipt.Paused"> & {
3193
+ };
3194
+
3195
+ /**
3196
+ * @generated from message nord.Receipt.Paused
3197
+ */
3198
+ export type Receipt_PausedJson = {
3199
+ };
3200
+
3201
+ /**
3202
+ * Describes the message nord.Receipt.Paused.
3203
+ * Use `create(Receipt_PausedSchema)` to create a new message.
3204
+ */
3205
+ export const Receipt_PausedSchema: GenMessage<Receipt_Paused, {jsonType: Receipt_PausedJson}> = /*@__PURE__*/
3206
+ messageDesc(file_nord, 10, 17);
3207
+
3208
+ /**
3209
+ * @generated from message nord.Receipt.Unpaused
3210
+ */
3211
+ export type Receipt_Unpaused = Message<"nord.Receipt.Unpaused"> & {
3212
+ };
3213
+
3214
+ /**
3215
+ * @generated from message nord.Receipt.Unpaused
3216
+ */
3217
+ export type Receipt_UnpausedJson = {
3218
+ };
3219
+
3220
+ /**
3221
+ * Describes the message nord.Receipt.Unpaused.
3222
+ * Use `create(Receipt_UnpausedSchema)` to create a new message.
3223
+ */
3224
+ export const Receipt_UnpausedSchema: GenMessage<Receipt_Unpaused, {jsonType: Receipt_UnpausedJson}> = /*@__PURE__*/
3225
+ messageDesc(file_nord, 10, 18);
3226
+
3227
+ /**
3228
+ * @generated from message nord.Receipt.Transferred
3229
+ */
3230
+ export type Receipt_Transferred = Message<"nord.Receipt.Transferred"> & {
3231
+ /**
3232
+ * @generated from field: uint32 from_account_id = 1;
3233
+ */
3234
+ fromAccountId: number;
3235
+
3236
+ /**
3237
+ * @generated from field: optional uint32 to_user_account = 2;
3238
+ */
3239
+ toUserAccount?: number;
3240
+
3241
+ /**
3242
+ * @generated from field: uint32 token_id = 3;
3243
+ */
3244
+ tokenId: number;
3245
+
3246
+ /**
3247
+ * @generated from field: uint64 amount = 4;
3248
+ */
3249
+ amount: bigint;
3250
+
3251
+ /**
3252
+ * @generated from field: bool account_created = 5;
3253
+ */
3254
+ accountCreated: boolean;
3255
+
3256
+ /**
3257
+ * @generated from field: optional nord.SpecialAccount to_special_account = 6;
3258
+ */
3259
+ toSpecialAccount?: SpecialAccount;
3260
+ };
3261
+
3262
+ /**
3263
+ * @generated from message nord.Receipt.Transferred
3264
+ */
3265
+ export type Receipt_TransferredJson = {
3266
+ /**
3267
+ * @generated from field: uint32 from_account_id = 1;
3268
+ */
3269
+ fromAccountId?: number;
3270
+
3271
+ /**
3272
+ * @generated from field: optional uint32 to_user_account = 2;
3273
+ */
3274
+ toUserAccount?: number;
3275
+
3276
+ /**
3277
+ * @generated from field: uint32 token_id = 3;
3278
+ */
3279
+ tokenId?: number;
3280
+
3281
+ /**
3282
+ * @generated from field: uint64 amount = 4;
3283
+ */
3284
+ amount?: string;
3285
+
3286
+ /**
3287
+ * @generated from field: bool account_created = 5;
3288
+ */
3289
+ accountCreated?: boolean;
3290
+
3291
+ /**
3292
+ * @generated from field: optional nord.SpecialAccount to_special_account = 6;
3293
+ */
3294
+ toSpecialAccount?: SpecialAccountJson;
3295
+ };
3296
+
3297
+ /**
3298
+ * Describes the message nord.Receipt.Transferred.
3299
+ * Use `create(Receipt_TransferredSchema)` to create a new message.
3300
+ */
3301
+ export const Receipt_TransferredSchema: GenMessage<Receipt_Transferred, {jsonType: Receipt_TransferredJson}> = /*@__PURE__*/
3302
+ messageDesc(file_nord, 10, 19);
3303
+
3304
+ /**
3305
+ * @generated from message nord.Receipt.TriggerAdded
3306
+ */
3307
+ export type Receipt_TriggerAdded = Message<"nord.Receipt.TriggerAdded"> & {
3308
+ };
3309
+
3310
+ /**
3311
+ * @generated from message nord.Receipt.TriggerAdded
3312
+ */
3313
+ export type Receipt_TriggerAddedJson = {
3314
+ };
3315
+
3316
+ /**
3317
+ * Describes the message nord.Receipt.TriggerAdded.
3318
+ * Use `create(Receipt_TriggerAddedSchema)` to create a new message.
3319
+ */
3320
+ export const Receipt_TriggerAddedSchema: GenMessage<Receipt_TriggerAdded, {jsonType: Receipt_TriggerAddedJson}> = /*@__PURE__*/
3321
+ messageDesc(file_nord, 10, 20);
3322
+
3323
+ /**
3324
+ * @generated from message nord.Receipt.TriggerStatusChanged
3325
+ */
3326
+ export type Receipt_TriggerStatusChanged = Message<"nord.Receipt.TriggerStatusChanged"> & {
3327
+ };
3328
+
3329
+ /**
3330
+ * @generated from message nord.Receipt.TriggerStatusChanged
3331
+ */
3332
+ export type Receipt_TriggerStatusChangedJson = {
3333
+ };
3334
+
3335
+ /**
3336
+ * Describes the message nord.Receipt.TriggerStatusChanged.
3337
+ * Use `create(Receipt_TriggerStatusChangedSchema)` to create a new message.
3338
+ */
3339
+ export const Receipt_TriggerStatusChangedSchema: GenMessage<Receipt_TriggerStatusChanged, {jsonType: Receipt_TriggerStatusChangedJson}> = /*@__PURE__*/
3340
+ messageDesc(file_nord, 10, 21);
3341
+
3342
+ /**
3343
+ * @generated from message nord.Receipt.AtomicSubactionResultKind
3344
+ */
3345
+ export type Receipt_AtomicSubactionResultKind = Message<"nord.Receipt.AtomicSubactionResultKind"> & {
3346
+ /**
3347
+ * @generated from oneof nord.Receipt.AtomicSubactionResultKind.inner
3348
+ */
3349
+ inner: {
3350
+ /**
3351
+ * reusing existing messages -> way less code to change in nord, with some
3352
+ * duplication of data unlike input, which is required to be very specific
3353
+ * to be correct, receipts can be same to easy ingested into view and hist
3354
+ *
3355
+ * @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 1;
3356
+ */
3357
+ value: Receipt_PlaceOrderResult;
3358
+ case: "placeOrderResult";
3359
+ } | {
3360
+ /**
3361
+ * @generated from field: nord.Receipt.CancelOrderResult cancel_order = 2;
3362
+ */
3363
+ value: Receipt_CancelOrderResult;
3364
+ case: "cancelOrder";
3365
+ } | { case: undefined; value?: undefined };
3366
+ };
3367
+
3368
+ /**
3369
+ * @generated from message nord.Receipt.AtomicSubactionResultKind
3370
+ */
3371
+ export type Receipt_AtomicSubactionResultKindJson = {
3372
+ /**
3373
+ * reusing existing messages -> way less code to change in nord, with some
3374
+ * duplication of data unlike input, which is required to be very specific
3375
+ * to be correct, receipts can be same to easy ingested into view and hist
3376
+ *
3377
+ * @generated from field: nord.Receipt.PlaceOrderResult place_order_result = 1;
3378
+ */
3379
+ placeOrderResult?: Receipt_PlaceOrderResultJson;
3380
+
3381
+ /**
3382
+ * @generated from field: nord.Receipt.CancelOrderResult cancel_order = 2;
3383
+ */
3384
+ cancelOrder?: Receipt_CancelOrderResultJson;
3385
+ };
3386
+
3387
+ /**
3388
+ * Describes the message nord.Receipt.AtomicSubactionResultKind.
3389
+ * Use `create(Receipt_AtomicSubactionResultKindSchema)` to create a new message.
3390
+ */
3391
+ export const Receipt_AtomicSubactionResultKindSchema: GenMessage<Receipt_AtomicSubactionResultKind, {jsonType: Receipt_AtomicSubactionResultKindJson}> = /*@__PURE__*/
3392
+ messageDesc(file_nord, 10, 22);
3393
+
3394
+ /**
3395
+ * @generated from message nord.Receipt.AtomicResult
3396
+ */
3397
+ export type Receipt_AtomicResult = Message<"nord.Receipt.AtomicResult"> & {
3398
+ /**
3399
+ * @generated from field: repeated nord.Receipt.AtomicSubactionResultKind results = 1;
3400
+ */
3401
+ results: Receipt_AtomicSubactionResultKind[];
3402
+ };
3403
+
3404
+ /**
3405
+ * @generated from message nord.Receipt.AtomicResult
3406
+ */
3407
+ export type Receipt_AtomicResultJson = {
3408
+ /**
3409
+ * @generated from field: repeated nord.Receipt.AtomicSubactionResultKind results = 1;
3410
+ */
3411
+ results?: Receipt_AtomicSubactionResultKindJson[];
3412
+ };
3413
+
3414
+ /**
3415
+ * Describes the message nord.Receipt.AtomicResult.
3416
+ * Use `create(Receipt_AtomicResultSchema)` to create a new message.
3417
+ */
3418
+ export const Receipt_AtomicResultSchema: GenMessage<Receipt_AtomicResult, {jsonType: Receipt_AtomicResultJson}> = /*@__PURE__*/
3419
+ messageDesc(file_nord, 10, 23);
3420
+
3421
+ /**
3422
+ * @generated from enum nord.Side
3423
+ */
3424
+ export enum Side {
3425
+ /**
3426
+ * @generated from enum value: ASK = 0;
3427
+ */
3428
+ ASK = 0,
3429
+
3430
+ /**
3431
+ * @generated from enum value: BID = 1;
3432
+ */
3433
+ BID = 1,
3434
+ }
3435
+
3436
+ /**
3437
+ * @generated from enum nord.Side
3438
+ */
3439
+ export type SideJson = "ASK" | "BID";
3440
+
3441
+ /**
3442
+ * Describes the enum nord.Side.
3443
+ */
3444
+ export const SideSchema: GenEnum<Side, SideJson> = /*@__PURE__*/
3445
+ enumDesc(file_nord, 0);
3446
+
3447
+ /**
3448
+ * @generated from enum nord.TriggerKind
3449
+ */
3450
+ export enum TriggerKind {
3451
+ /**
3452
+ * @generated from enum value: STOP_LOSS = 0;
3453
+ */
3454
+ STOP_LOSS = 0,
3455
+
3456
+ /**
3457
+ * @generated from enum value: TAKE_PROFIT = 1;
3458
+ */
3459
+ TAKE_PROFIT = 1,
3460
+ }
3461
+
3462
+ /**
3463
+ * @generated from enum nord.TriggerKind
3464
+ */
3465
+ export type TriggerKindJson = "STOP_LOSS" | "TAKE_PROFIT";
3466
+
3467
+ /**
3468
+ * Describes the enum nord.TriggerKind.
3469
+ */
3470
+ export const TriggerKindSchema: GenEnum<TriggerKind, TriggerKindJson> = /*@__PURE__*/
3471
+ enumDesc(file_nord, 1);
3472
+
3473
+ /**
3474
+ * @generated from enum nord.TriggerStatus
3475
+ */
3476
+ export enum TriggerStatus {
3477
+ /**
3478
+ * @generated from enum value: ACTIVE = 0;
3479
+ */
3480
+ ACTIVE = 0,
3481
+
3482
+ /**
3483
+ * @generated from enum value: SUCCESS = 1;
3484
+ */
3485
+ SUCCESS = 1,
3486
+
3487
+ /**
3488
+ * @generated from enum value: CANCEL = 2;
3489
+ */
3490
+ CANCEL = 2,
3491
+
3492
+ /**
3493
+ * @generated from enum value: FAIL = 3;
3494
+ */
3495
+ FAIL = 3,
3496
+
3497
+ /**
3498
+ * @generated from enum value: REMOVE = 4;
3499
+ */
3500
+ REMOVE = 4,
3501
+ }
3502
+
3503
+ /**
3504
+ * @generated from enum nord.TriggerStatus
3505
+ */
3506
+ export type TriggerStatusJson = "ACTIVE" | "SUCCESS" | "CANCEL" | "FAIL" | "REMOVE";
3507
+
3508
+ /**
3509
+ * Describes the enum nord.TriggerStatus.
3510
+ */
3511
+ export const TriggerStatusSchema: GenEnum<TriggerStatus, TriggerStatusJson> = /*@__PURE__*/
3512
+ enumDesc(file_nord, 2);
3513
+
3514
+ /**
3515
+ * @generated from enum nord.FillMode
3516
+ */
3517
+ export enum FillMode {
3518
+ /**
3519
+ * @generated from enum value: LIMIT = 0;
3520
+ */
3521
+ LIMIT = 0,
3522
+
3523
+ /**
3524
+ * @generated from enum value: POST_ONLY = 1;
3525
+ */
3526
+ POST_ONLY = 1,
3527
+
3528
+ /**
3529
+ * @generated from enum value: IMMEDIATE_OR_CANCEL = 2;
3530
+ */
3531
+ IMMEDIATE_OR_CANCEL = 2,
3532
+
3533
+ /**
3534
+ * @generated from enum value: FILL_OR_KILL = 3;
3535
+ */
3536
+ FILL_OR_KILL = 3,
3537
+ }
3538
+
3539
+ /**
3540
+ * @generated from enum nord.FillMode
3541
+ */
3542
+ export type FillModeJson = "LIMIT" | "POST_ONLY" | "IMMEDIATE_OR_CANCEL" | "FILL_OR_KILL";
3543
+
3544
+ /**
3545
+ * Describes the enum nord.FillMode.
3546
+ */
3547
+ export const FillModeSchema: GenEnum<FillMode, FillModeJson> = /*@__PURE__*/
3548
+ enumDesc(file_nord, 3);
3549
+
3550
+ /**
3551
+ * @generated from enum nord.MarketType
3552
+ */
3553
+ export enum MarketType {
3554
+ /**
3555
+ * @generated from enum value: SPOT = 0;
3556
+ */
3557
+ SPOT = 0,
3558
+
3559
+ /**
3560
+ * @generated from enum value: PERPETUALS = 1;
3561
+ */
3562
+ PERPETUALS = 1,
3563
+ }
3564
+
3565
+ /**
3566
+ * @generated from enum nord.MarketType
3567
+ */
3568
+ export type MarketTypeJson = "SPOT" | "PERPETUALS";
3569
+
3570
+ /**
3571
+ * Describes the enum nord.MarketType.
3572
+ */
3573
+ export const MarketTypeSchema: GenEnum<MarketType, MarketTypeJson> = /*@__PURE__*/
3574
+ enumDesc(file_nord, 4);
3575
+
3576
+ /**
3577
+ * Error codes returned by the engine.
3578
+ * Some errors has 5bit prefix about error source and 3 bit suffix specifier.
3579
+ * Error source prefix indicates were too look into to fix error.
3580
+ * For example if order has bad input, it would be order relevant prefix.
3581
+ * But if order cannot apply results to balance, it would be balance relevant
3582
+ * prefix.
3583
+ *
3584
+ * @generated from enum nord.Error
3585
+ */
3586
+ export enum Error {
3587
+ /**
3588
+ * @generated from enum value: DUPLICATE = 0;
3589
+ */
3590
+ DUPLICATE = 0,
3591
+
3592
+ /**
3593
+ * @generated from enum value: DECODE_FAILURE = 2;
3594
+ */
3595
+ DECODE_FAILURE = 2,
3596
+
3597
+ /**
3598
+ * @generated from enum value: INVALID_SIGNATURE = 3;
3599
+ */
3600
+ INVALID_SIGNATURE = 3,
3601
+
3602
+ /**
3603
+ * @generated from enum value: MARKET_NOT_FOUND = 4;
3604
+ */
3605
+ MARKET_NOT_FOUND = 4,
3606
+
3607
+ /**
3608
+ * @generated from enum value: TOKEN_NOT_FOUND = 5;
3609
+ */
3610
+ TOKEN_NOT_FOUND = 5,
3611
+
3612
+ /**
3613
+ * @generated from enum value: USER_NOT_FOUND = 6;
3614
+ */
3615
+ USER_NOT_FOUND = 6,
3616
+
3617
+ /**
3618
+ * @generated from enum value: SESSION_NOT_FOUND = 7;
3619
+ */
3620
+ SESSION_NOT_FOUND = 7,
3621
+
3622
+ /**
3623
+ * @generated from enum value: ORDER_NOT_FOUND = 8;
3624
+ */
3625
+ ORDER_NOT_FOUND = 8,
3626
+
3627
+ /**
3628
+ * @generated from enum value: ORDER_SIZE_ZERO = 9;
3629
+ */
3630
+ ORDER_SIZE_ZERO = 9,
3631
+
3632
+ /**
3633
+ * @generated from enum value: ARITHMETIC_OVERFLOW = 11;
3634
+ */
3635
+ ARITHMETIC_OVERFLOW = 11,
3636
+
3637
+ /**
3638
+ * @generated from enum value: INVALID_ORDER_OWNER = 14;
3639
+ */
3640
+ INVALID_ORDER_OWNER = 14,
3641
+
3642
+ /**
3643
+ * @generated from enum value: KEY_ALREADY_REGISTERED = 15;
3644
+ */
3645
+ KEY_ALREADY_REGISTERED = 15,
3646
+
3647
+ /**
3648
+ * @generated from enum value: EXPIRY_TIMESTAMP_IN_PAST = 16;
3649
+ */
3650
+ EXPIRY_TIMESTAMP_IN_PAST = 16,
3651
+
3652
+ /**
3653
+ * @generated from enum value: UPDATE_TIMESTAMP_IN_PAST = 17;
3654
+ */
3655
+ UPDATE_TIMESTAMP_IN_PAST = 17,
3656
+
3657
+ /**
3658
+ * @generated from enum value: TOO_MANY_OPEN_ORDERS = 18;
3659
+ */
3660
+ TOO_MANY_OPEN_ORDERS = 18,
3661
+
3662
+ /**
3663
+ * @generated from enum value: WITHDRAW_AMOUNT_TOO_SMALL = 21;
3664
+ */
3665
+ WITHDRAW_AMOUNT_TOO_SMALL = 21,
3666
+
3667
+ /**
3668
+ * @generated from enum value: DECODE_FAILURE_LENGTH_PREFIX = 33;
3669
+ */
3670
+ DECODE_FAILURE_LENGTH_PREFIX = 33,
3671
+
3672
+ /**
3673
+ * @generated from enum value: DECODE_FAILURE_RAW = 34;
3674
+ */
3675
+ DECODE_FAILURE_RAW = 34,
3676
+
3677
+ /**
3678
+ * @generated from enum value: DECODE_FAILURE_DOMAIN = 35;
3679
+ */
3680
+ DECODE_FAILURE_DOMAIN = 35,
3681
+
3682
+ /**
3683
+ * @generated from enum value: PYTH_FEED_NOT_ADDED = 93;
3684
+ */
3685
+ PYTH_FEED_NOT_ADDED = 93,
3686
+
3687
+ /**
3688
+ * @generated from enum value: PYTH_FEED_MISSING = 94;
3689
+ */
3690
+ PYTH_FEED_MISSING = 94,
3691
+
3692
+ /**
3693
+ * @generated from enum value: PYTH_FEED_ALREADY_ADDED = 95;
3694
+ */
3695
+ PYTH_FEED_ALREADY_ADDED = 95,
3696
+
3697
+ /**
3698
+ * @generated from enum value: PYTH_GUARDIAN_SET_UNINITIALIZED = 96;
3699
+ */
3700
+ PYTH_GUARDIAN_SET_UNINITIALIZED = 96,
3701
+
3702
+ /**
3703
+ * @generated from enum value: PYTH_GUARDIAN_SET_INVALID = 97;
3704
+ */
3705
+ PYTH_GUARDIAN_SET_INVALID = 97,
3706
+
3707
+ /**
3708
+ * @generated from enum value: PYTH_FEED_DECIMALS_OUT_OF_RANGE = 98;
3709
+ */
3710
+ PYTH_FEED_DECIMALS_OUT_OF_RANGE = 98,
3711
+
3712
+ /**
3713
+ * @generated from enum value: PYTH_FEED_PRICE_OUT_OF_RANGE = 99;
3714
+ */
3715
+ PYTH_FEED_PRICE_OUT_OF_RANGE = 99,
3716
+
3717
+ /**
3718
+ * @generated from enum value: PYTH_FEED_VARIANCE_OUT_OF_RANGE = 100;
3719
+ */
3720
+ PYTH_FEED_VARIANCE_OUT_OF_RANGE = 100,
3721
+
3722
+ /**
3723
+ * @generated from enum value: PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH = 101;
3724
+ */
3725
+ PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH = 101,
3726
+
3727
+ /**
3728
+ * @generated from enum value: INVALID_TOKEN_PARAMETERS = 102;
3729
+ */
3730
+ INVALID_TOKEN_PARAMETERS = 102,
3731
+
3732
+ /**
3733
+ * @generated from enum value: INDEX_PRICE_OUT_OF_RANGE = 103;
3734
+ */
3735
+ INDEX_PRICE_OUT_OF_RANGE = 103,
3736
+
3737
+ /**
3738
+ * @generated from enum value: INDEX_DECIMALS_OUT_OF_RANGE = 104;
3739
+ */
3740
+ INDEX_DECIMALS_OUT_OF_RANGE = 104,
3741
+
3742
+ /**
3743
+ * @generated from enum value: INVALID_STATE_VERSION = 105;
3744
+ */
3745
+ INVALID_STATE_VERSION = 105,
3746
+
3747
+ /**
3748
+ * @generated from enum value: INVALID_MARGINS = 107;
3749
+ */
3750
+ INVALID_MARGINS = 107,
3751
+
3752
+ /**
3753
+ * Market's decimal parameters exceed either "quote limit" or "base limit"
3754
+ * Two mentioned limits were deduced empirically and ensure
3755
+ * that certain overflow errors don't happen when value rescaling is performed
3756
+ * during order placement.
3757
+ *
3758
+ * For both perpetuals and spot markets,
3759
+ * `quote_token.decimals - market.size_decimals - market.price_decimals` must
3760
+ * be within range `[-19; 4]` For spot market, `base_token.decimals -
3761
+ * market.size_decimals` must be within range `[-19; 23]`
3762
+ *
3763
+ * @generated from enum value: MARKET_DECIMALS_EXCEED_LIMITS = 109;
3764
+ */
3765
+ MARKET_DECIMALS_EXCEED_LIMITS = 109,
3766
+
3767
+ /**
3768
+ * @generated from enum value: TOO_MANY_TOKENS = 110;
3769
+ */
3770
+ TOO_MANY_TOKENS = 110,
3771
+
3772
+ /**
3773
+ * @generated from enum value: FUNDING_OVERFLOW = 123;
3774
+ */
3775
+ FUNDING_OVERFLOW = 123,
3776
+
3777
+ /**
3778
+ * If there is order to cancel for position, it should be canceled first
3779
+ * before reducing position
3780
+ *
3781
+ * @generated from enum value: CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED = 124;
3782
+ */
3783
+ CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED = 124,
3784
+
3785
+ /**
3786
+ * Token was found, but not expected to be used in action context
3787
+ *
3788
+ * @generated from enum value: UNEXPECTED_TOKEN_ID = 127;
3789
+ */
3790
+ UNEXPECTED_TOKEN_ID = 127,
3791
+
3792
+ /**
3793
+ * happens in some situation when token misses some relevant information
3794
+ * needed for operation, for example index price
3795
+ *
3796
+ * @generated from enum value: TOKEN_NOT_READY = 130;
3797
+ */
3798
+ TOKEN_NOT_READY = 130,
3799
+
3800
+ /**
3801
+ * Token with specified blockchain address already registered
3802
+ *
3803
+ * @generated from enum value: TOKEN_ALREADY_REGISTERED = 112;
3804
+ */
3805
+ TOKEN_ALREADY_REGISTERED = 112,
3806
+
3807
+ /**
3808
+ * @generated from enum value: IMMEDIATE_ORDER_GOT_NO_FILLS = 133;
3809
+ */
3810
+ IMMEDIATE_ORDER_GOT_NO_FILLS = 133,
3811
+
3812
+ /**
3813
+ * In case there's no price, error if failed to fill at least one of limits
3814
+ *
3815
+ * @generated from enum value: FAILED_TO_FILL_LIMIT = 134;
3816
+ */
3817
+ FAILED_TO_FILL_LIMIT = 134,
3818
+
3819
+ /**
3820
+ * @generated from enum value: POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS = 135;
3821
+ */
3822
+ POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS = 135,
3823
+
3824
+ /**
3825
+ * @generated from enum value: INVALID = 136;
3826
+ */
3827
+ INVALID = 136,
3828
+
3829
+ /**
3830
+ * Any action stopped by admin for maintenance or other reason.
3831
+ *
3832
+ * @generated from enum value: MAINTENANCE = 137;
3833
+ */
3834
+ MAINTENANCE = 137,
3835
+
3836
+ /**
3837
+ * @generated from enum value: MINIMUM_SIZE_DECIMALS = 138;
3838
+ */
3839
+ MINIMUM_SIZE_DECIMALS = 138,
3840
+
3841
+ /**
3842
+ * @generated from enum value: PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET = 139;
3843
+ */
3844
+ PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET = 139,
3845
+
3846
+ /**
3847
+ * @generated from enum value: ONLY_IMMEDIATE_ORDERS_ALLOWED = 140;
3848
+ */
3849
+ ONLY_IMMEDIATE_ORDERS_ALLOWED = 140,
3850
+
3851
+ /**
3852
+ * @generated from enum value: TOO_MANY_USER_ACCOUNTS = 141;
3853
+ */
3854
+ TOO_MANY_USER_ACCOUNTS = 141,
3855
+
3856
+ /**
3857
+ * There's no such account with specified id,
3858
+ *
3859
+ * @generated from enum value: ACCOUNT_NOT_FOUND = 142;
3860
+ */
3861
+ ACCOUNT_NOT_FOUND = 142,
3862
+
3863
+ /**
3864
+ * Account doesn't belong to user designated by public key or session id
3865
+ *
3866
+ * @generated from enum value: ACCOUNT_INVALID_OWNER = 143;
3867
+ */
3868
+ ACCOUNT_INVALID_OWNER = 143,
3869
+
3870
+ /**
3871
+ * Operation cannot be made on account because to small amount will be
3872
+ * retained on account
3873
+ *
3874
+ * @generated from enum value: DUST_ACCOUNT = 145;
3875
+ */
3876
+ DUST_ACCOUNT = 145,
3877
+
3878
+ /**
3879
+ * 10100_000
3880
+ *
3881
+ * @generated from enum value: BALANCE = 160;
3882
+ */
3883
+ BALANCE = 160,
3884
+
3885
+ /**
3886
+ * 10100_001
3887
+ *
3888
+ * @generated from enum value: BALANCE_DEPOSIT_OVERFLOW = 161;
3889
+ */
3890
+ BALANCE_DEPOSIT_OVERFLOW = 161,
3891
+
3892
+ /**
3893
+ * 10100_010
3894
+ *
3895
+ * @generated from enum value: BALANCE_CHANGE_OVERFLOW = 162;
3896
+ */
3897
+ BALANCE_CHANGE_OVERFLOW = 162,
3898
+
3899
+ /**
3900
+ * 10100_011
3901
+ *
3902
+ * @generated from enum value: BALANCE_CHANGE_LIMIT_EXCEEDED = 163;
3903
+ */
3904
+ BALANCE_CHANGE_LIMIT_EXCEEDED = 163,
3905
+
3906
+ /**
3907
+ * Happens when account balances has no sufficient token amount to perform
3908
+ * action.
3909
+ * 10100_100
3910
+ *
3911
+ * @generated from enum value: BALANCE_INSUFFICIENT = 164;
3912
+ */
3913
+ BALANCE_INSUFFICIENT = 164,
3914
+
3915
+ /**
3916
+ * Happens when an action is meant to come from the settlement contract,
3917
+ * but is not authenticated, instead coming from the user channels.
3918
+ *
3919
+ * @generated from enum value: UNAUTHENTICATED_L1_ACTION = 165;
3920
+ */
3921
+ UNAUTHENTICATED_L1_ACTION = 165,
3922
+
3923
+ /**
3924
+ * Happens when an encoded action is too large. This is to mitigate dos
3925
+ * attacks due to excessive padding.
3926
+ *
3927
+ * @generated from enum value: ENCODED_ACTION_TOO_LARGE = 166;
3928
+ */
3929
+ ENCODED_ACTION_TOO_LARGE = 166,
3930
+
3931
+ /**
3932
+ * 10101_000
3933
+ *
3934
+ * @generated from enum value: TRIGGER = 168;
3935
+ */
3936
+ TRIGGER = 168,
3937
+
3938
+ /**
3939
+ * Happens when:
3940
+ * * Trigger price is "less or equal" to its corresponding pair trigger price
3941
+ * * Trigger rice is "less" than market's current index price
3942
+ *
3943
+ * Binary pattern: 10101_001
3944
+ *
3945
+ * @generated from enum value: TRIGGER_INVALID_PRICE = 169;
3946
+ */
3947
+ TRIGGER_INVALID_PRICE = 169,
3948
+
3949
+ /**
3950
+ * @generated from enum value: TRIGGER_NOT_FOUND = 170;
3951
+ */
3952
+ TRIGGER_NOT_FOUND = 170,
3953
+
3954
+ /**
3955
+ * 10110_000
3956
+ *
3957
+ * @generated from enum value: TIMESTAMP = 176;
3958
+ */
3959
+ TIMESTAMP = 176,
3960
+
3961
+ /**
3962
+ * 10110_001
3963
+ *
3964
+ * @generated from enum value: TIMESTAMP_OUT_OF_THRESHOLD = 177;
3965
+ */
3966
+ TIMESTAMP_OUT_OF_THRESHOLD = 177,
3967
+
3968
+ /**
3969
+ * @generated from enum value: TIMESTAMP_STALE = 178;
3970
+ */
3971
+ TIMESTAMP_STALE = 178,
3972
+
3973
+ /**
3974
+ * 10111_000
3975
+ * BANKRUPTCY = 184;
3976
+ * 10111_001
3977
+ *
3978
+ * @generated from enum value: BANKRUPTCY_INSUFFICIENT_COVERAGE = 185;
3979
+ */
3980
+ BANKRUPTCY_INSUFFICIENT_COVERAGE = 185,
3981
+
3982
+ /**
3983
+ * 10111_010
3984
+ * Account is not in bankruptcy state.
3985
+ *
3986
+ * @generated from enum value: BANKRUPTCY_NOT_FOUND = 186;
3987
+ */
3988
+ BANKRUPTCY_NOT_FOUND = 186,
3989
+
3990
+ /**
3991
+ * Cannot executed this action in case of bankruptcy.
3992
+ * Source of error is BANKRUPTCY, which leads to NOT_ALLOWED.
3993
+ * Not ideal to read by human, but follows the pattern.
3994
+ * Seek for methods which need BANKRUPTCY and give BANKRUPTCY_NOT_FOUND if not
3995
+ * a case.
3996
+ *
3997
+ * @generated from enum value: BANKRUPTCY_NOT_ALLOWED = 187;
3998
+ */
3999
+ BANKRUPTCY_NOT_ALLOWED = 187,
4000
+
4001
+ /**
4002
+ * 11000_000
4003
+ * Happens when market is not read to handle orders
4004
+ *
4005
+ * @generated from enum value: MARKET_NOT_READY = 192;
4006
+ */
4007
+ MARKET_NOT_READY = 192,
4008
+
4009
+ /**
4010
+ * @generated from enum value: MARKET_FROZEN = 193;
4011
+ */
4012
+ MARKET_FROZEN = 193,
4013
+
4014
+ /**
4015
+ * Happens when there is no liquidity on the market at the moment of trigger
4016
+ * execution
4017
+ *
4018
+ * @generated from enum value: MARKET_EMPTY = 194;
4019
+ */
4020
+ MARKET_EMPTY = 194,
4021
+
4022
+ /**
4023
+ * 11001_000
4024
+ *
4025
+ * @generated from enum value: POSITION = 200;
4026
+ */
4027
+ POSITION = 200,
4028
+
4029
+ /**
4030
+ * Position not found for specific entity in specific market
4031
+ *
4032
+ * @generated from enum value: POSITION_NOT_FOUND = 201;
4033
+ */
4034
+ POSITION_NOT_FOUND = 201,
4035
+
4036
+ /**
4037
+ * @generated from enum value: POSITION_STATE_ORDER = 202;
4038
+ */
4039
+ POSITION_STATE_ORDER = 202,
4040
+
4041
+ /**
4042
+ * @generated from enum value: POSITION_STATE_ORDER_PRICE = 203;
4043
+ */
4044
+ POSITION_STATE_ORDER_PRICE = 203,
4045
+
4046
+ /**
4047
+ * @generated from enum value: POSITION_STATE_ORDER_SIZE = 204;
4048
+ */
4049
+ POSITION_STATE_ORDER_SIZE = 204,
4050
+
4051
+ /**
4052
+ * @generated from enum value: POSITION_STATE_ORDER_SIDE = 205;
4053
+ */
4054
+ POSITION_STATE_ORDER_SIDE = 205,
4055
+
4056
+ /**
4057
+ * 1100_1110
4058
+ *
4059
+ * @generated from enum value: POSITION_SIZE_LIMIT = 206;
4060
+ */
4061
+ POSITION_SIZE_LIMIT = 206,
4062
+
4063
+ /**
4064
+ * @generated from enum value: PRICE = 209;
4065
+ */
4066
+ PRICE = 209,
4067
+
4068
+ /**
4069
+ * @generated from enum value: SIGNATURE_VERIFICATION = 217;
4070
+ */
4071
+ SIGNATURE_VERIFICATION = 217,
4072
+
4073
+ /**
4074
+ * @generated from enum value: SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY = 218;
4075
+ */
4076
+ SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY = 218,
4077
+
4078
+ /**
4079
+ * @generated from enum value: SIGNATURE_VERIFICATION_INVALID_LENGTH = 219;
4080
+ */
4081
+ SIGNATURE_VERIFICATION_INVALID_LENGTH = 219,
4082
+
4083
+ /**
4084
+ * 11011_000
4085
+ *
4086
+ * @generated from enum value: RISK = 224;
4087
+ */
4088
+ RISK = 224,
4089
+
4090
+ /**
4091
+ * @generated from enum value: RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF = 225;
4092
+ */
4093
+ RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF = 225,
4094
+
4095
+ /**
4096
+ * @generated from enum value: RISK_OMF_LESS_THAN_OR_EQUAL_IMF = 226;
4097
+ */
4098
+ RISK_OMF_LESS_THAN_OR_EQUAL_IMF = 226,
4099
+
4100
+ /**
4101
+ * @generated from enum value: RISK_OMF_LESS_THAN_OR_EQUAL_CMF = 227;
4102
+ */
4103
+ RISK_OMF_LESS_THAN_OR_EQUAL_CMF = 227,
4104
+
4105
+ /**
4106
+ * @generated from enum value: RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF = 229;
4107
+ */
4108
+ RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF = 229,
4109
+
4110
+ /**
4111
+ * @generated from enum value: RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE = 228;
4112
+ */
4113
+ RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE = 228,
4114
+
4115
+ /**
4116
+ * 1111_0000 = 240 -- 4 bit suffix
4117
+ *
4118
+ * @generated from enum value: ORDER_EXECUTION = 240;
4119
+ */
4120
+ ORDER_EXECUTION = 240,
4121
+
4122
+ /**
4123
+ * @generated from enum value: ORDER_EXECUTION_EMPTY = 241;
4124
+ */
4125
+ ORDER_EXECUTION_EMPTY = 241,
4126
+
4127
+ /**
4128
+ * @generated from enum value: ORDER_EXECUTION_FILL_OR_KILL = 242;
4129
+ */
4130
+ ORDER_EXECUTION_FILL_OR_KILL = 242,
4131
+
4132
+ /**
4133
+ * Order requires some of its limits specified according to fill mode
4134
+ *
4135
+ * @generated from enum value: ORDER_EXECUTION_MISSING_LIMITS = 243;
4136
+ */
4137
+ ORDER_EXECUTION_MISSING_LIMITS = 243,
4138
+
4139
+ /**
4140
+ * @generated from enum value: ORDER_EXECUTION_MISSING_PRICE = 244;
4141
+ */
4142
+ ORDER_EXECUTION_MISSING_PRICE = 244,
4143
+
4144
+ /**
4145
+ * @generated from enum value: ORDER_EXECUTION_SIZE_LIMIT = 245;
4146
+ */
4147
+ ORDER_EXECUTION_SIZE_LIMIT = 245,
4148
+
4149
+ /**
4150
+ * 111_0110
4151
+ *
4152
+ * @generated from enum value: ORDER_EXECUTION_LIMIT_PRICE = 246;
4153
+ */
4154
+ ORDER_EXECUTION_LIMIT_PRICE = 246,
4155
+
4156
+ /**
4157
+ * Reduce orders can only be post only.
4158
+ * 01111_0111 = 247
4159
+ *
4160
+ * @generated from enum value: ORDER_REDUCE_IS_POST_ONLY = 247;
4161
+ */
4162
+ ORDER_REDUCE_IS_POST_ONLY = 247,
4163
+
4164
+ /**
4165
+ * Order was rejected, because it planned under proposed price
4166
+ * 01111_1000 = 248
4167
+ *
4168
+ * @generated from enum value: ORDER_EXECUTION_SELL_PRICE = 248;
4169
+ */
4170
+ ORDER_EXECUTION_SELL_PRICE = 248,
4171
+
4172
+ /**
4173
+ * @generated from enum value: ORDER_SIZE_EXCEEDS_POSITION_SIZE = 249;
4174
+ */
4175
+ ORDER_SIZE_EXCEEDS_POSITION_SIZE = 249,
4176
+
4177
+ /**
4178
+ * 10000_0000
4179
+ *
4180
+ * @generated from enum value: ATOMICS_TRADES_CANNOT_FOLLOW_PLACES = 256;
4181
+ */
4182
+ ATOMICS_TRADES_CANNOT_FOLLOW_PLACES = 256,
4183
+
4184
+ /**
4185
+ * 10000_0001
4186
+ *
4187
+ * @generated from enum value: ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES = 257;
4188
+ */
4189
+ ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES = 257,
4190
+
4191
+ /**
4192
+ * 10001_0001
4193
+ *
4194
+ * @generated from enum value: ACTION_POSITION_SHOULD_BE_COVERED = 273;
4195
+ */
4196
+ ACTION_POSITION_SHOULD_BE_COVERED = 273,
4197
+
4198
+ /**
4199
+ * @generated from enum value: ACTION_INVALID_NONCE = 274;
4200
+ */
4201
+ ACTION_INVALID_NONCE = 274,
4202
+
4203
+ /**
4204
+ * @generated from enum value: ACTION_PROPOSED_PRICE_MUST_BE_HIGHER = 275;
4205
+ */
4206
+ ACTION_PROPOSED_PRICE_MUST_BE_HIGHER = 275,
4207
+
4208
+ /**
4209
+ * @generated from enum value: NOT_IMPLEMENTED = 500;
4210
+ */
4211
+ NOT_IMPLEMENTED = 500,
4212
+
4213
+ /**
4214
+ * @generated from enum value: Dropped = 999;
4215
+ */
4216
+ Dropped = 999,
4217
+ }
4218
+
4219
+ /**
4220
+ * Error codes returned by the engine.
4221
+ * Some errors has 5bit prefix about error source and 3 bit suffix specifier.
4222
+ * Error source prefix indicates were too look into to fix error.
4223
+ * For example if order has bad input, it would be order relevant prefix.
4224
+ * But if order cannot apply results to balance, it would be balance relevant
4225
+ * prefix.
4226
+ *
4227
+ * @generated from enum nord.Error
4228
+ */
4229
+ export type ErrorJson = "DUPLICATE" | "DECODE_FAILURE" | "INVALID_SIGNATURE" | "MARKET_NOT_FOUND" | "TOKEN_NOT_FOUND" | "USER_NOT_FOUND" | "SESSION_NOT_FOUND" | "ORDER_NOT_FOUND" | "ORDER_SIZE_ZERO" | "ARITHMETIC_OVERFLOW" | "INVALID_ORDER_OWNER" | "KEY_ALREADY_REGISTERED" | "EXPIRY_TIMESTAMP_IN_PAST" | "UPDATE_TIMESTAMP_IN_PAST" | "TOO_MANY_OPEN_ORDERS" | "WITHDRAW_AMOUNT_TOO_SMALL" | "DECODE_FAILURE_LENGTH_PREFIX" | "DECODE_FAILURE_RAW" | "DECODE_FAILURE_DOMAIN" | "PYTH_FEED_NOT_ADDED" | "PYTH_FEED_MISSING" | "PYTH_FEED_ALREADY_ADDED" | "PYTH_GUARDIAN_SET_UNINITIALIZED" | "PYTH_GUARDIAN_SET_INVALID" | "PYTH_FEED_DECIMALS_OUT_OF_RANGE" | "PYTH_FEED_PRICE_OUT_OF_RANGE" | "PYTH_FEED_VARIANCE_OUT_OF_RANGE" | "PYTH_GUARDIAN_SET_AND_PYTH_SIGNATURE_DO_NOT_MATCH" | "INVALID_TOKEN_PARAMETERS" | "INDEX_PRICE_OUT_OF_RANGE" | "INDEX_DECIMALS_OUT_OF_RANGE" | "INVALID_STATE_VERSION" | "INVALID_MARGINS" | "MARKET_DECIMALS_EXCEED_LIMITS" | "TOO_MANY_TOKENS" | "FUNDING_OVERFLOW" | "CAN_REDUCE_POSITION_ONLY_IF_ALL_ORDERS_ARE_CANCELED" | "UNEXPECTED_TOKEN_ID" | "TOKEN_NOT_READY" | "TOKEN_ALREADY_REGISTERED" | "IMMEDIATE_ORDER_GOT_NO_FILLS" | "FAILED_TO_FILL_LIMIT" | "POST_ONLY_MUST_NOT_FILL_ANY_OPPOSITE_ORDERS" | "INVALID" | "MAINTENANCE" | "MINIMUM_SIZE_DECIMALS" | "PARAMETERS_WILL_CREATE_NON_OPERATIONAL_MARKET" | "ONLY_IMMEDIATE_ORDERS_ALLOWED" | "TOO_MANY_USER_ACCOUNTS" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_INVALID_OWNER" | "DUST_ACCOUNT" | "BALANCE" | "BALANCE_DEPOSIT_OVERFLOW" | "BALANCE_CHANGE_OVERFLOW" | "BALANCE_CHANGE_LIMIT_EXCEEDED" | "BALANCE_INSUFFICIENT" | "UNAUTHENTICATED_L1_ACTION" | "ENCODED_ACTION_TOO_LARGE" | "TRIGGER" | "TRIGGER_INVALID_PRICE" | "TRIGGER_NOT_FOUND" | "TIMESTAMP" | "TIMESTAMP_OUT_OF_THRESHOLD" | "TIMESTAMP_STALE" | "BANKRUPTCY_INSUFFICIENT_COVERAGE" | "BANKRUPTCY_NOT_FOUND" | "BANKRUPTCY_NOT_ALLOWED" | "MARKET_NOT_READY" | "MARKET_FROZEN" | "MARKET_EMPTY" | "POSITION" | "POSITION_NOT_FOUND" | "POSITION_STATE_ORDER" | "POSITION_STATE_ORDER_PRICE" | "POSITION_STATE_ORDER_SIZE" | "POSITION_STATE_ORDER_SIDE" | "POSITION_SIZE_LIMIT" | "PRICE" | "SIGNATURE_VERIFICATION" | "SIGNATURE_VERIFICATION_MALFORMED_PUBLIC_KEY" | "SIGNATURE_VERIFICATION_INVALID_LENGTH" | "RISK" | "RISK_DELEGATION_MF_TO_BE_LESS_THAN_OR_EQUAL_MMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_IMF" | "RISK_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_TRADE_OMF_LESS_THAN_OR_EQUAL_CMF" | "RISK_UNHEALTHY_MF_AND_PON_AFTER_BETTER_OF_BEFORE" | "ORDER_EXECUTION" | "ORDER_EXECUTION_EMPTY" | "ORDER_EXECUTION_FILL_OR_KILL" | "ORDER_EXECUTION_MISSING_LIMITS" | "ORDER_EXECUTION_MISSING_PRICE" | "ORDER_EXECUTION_SIZE_LIMIT" | "ORDER_EXECUTION_LIMIT_PRICE" | "ORDER_REDUCE_IS_POST_ONLY" | "ORDER_EXECUTION_SELL_PRICE" | "ORDER_SIZE_EXCEEDS_POSITION_SIZE" | "ATOMICS_TRADES_CANNOT_FOLLOW_PLACES" | "ATOMICS_CANCELS_CANNOT_FOLLOW_TRADES_PLACES" | "ACTION_POSITION_SHOULD_BE_COVERED" | "ACTION_INVALID_NONCE" | "ACTION_PROPOSED_PRICE_MUST_BE_HIGHER" | "NOT_IMPLEMENTED" | "Dropped";
4230
+
4231
+ /**
4232
+ * Describes the enum nord.Error.
4233
+ */
4234
+ export const ErrorSchema: GenEnum<Error, ErrorJson> = /*@__PURE__*/
4235
+ enumDesc(file_nord, 5);
4236
+
4237
+ /**
4238
+ * @generated from enum nord.SpecialAccount
4239
+ */
4240
+ export enum SpecialAccount {
4241
+ /**
4242
+ * @generated from enum value: FeeVault = 0;
4243
+ */
4244
+ FeeVault = 0,
4245
+ }
4246
+
4247
+ /**
4248
+ * @generated from enum nord.SpecialAccount
4249
+ */
4250
+ export type SpecialAccountJson = "FeeVault";
4251
+
4252
+ /**
4253
+ * Describes the enum nord.SpecialAccount.
4254
+ */
4255
+ export const SpecialAccountSchema: GenEnum<SpecialAccount, SpecialAccountJson> = /*@__PURE__*/
4256
+ enumDesc(file_nord, 6);
4257
+