@cancore/contracts 0.1.0 → 0.2.0-rc.3

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 (47) hide show
  1. package/README.md +168 -9
  2. package/dist/abi.d.ts +6086 -1675
  3. package/dist/abi.js +1 -1
  4. package/dist/chunk-NV5IUURP.js +9252 -0
  5. package/dist/chunk-NV5IUURP.js.map +1 -0
  6. package/dist/{chunk-CIBYXHSX.js → chunk-VODZRADO.js} +2 -2
  7. package/dist/chunk-VODZRADO.js.map +1 -0
  8. package/dist/index.d.ts +849 -28
  9. package/dist/index.js +2065 -16
  10. package/dist/index.js.map +1 -1
  11. package/dist/networks.d.ts +2 -2
  12. package/dist/networks.js +1 -1
  13. package/package.json +10 -8
  14. package/spec/abi/AttestorSet.json +476 -0
  15. package/spec/abi/CNRX.json +1294 -0
  16. package/spec/abi/CNRXStaking.json +510 -0
  17. package/spec/abi/CancoreRouter.json +2564 -0
  18. package/spec/abi/FeeVault.json +604 -0
  19. package/spec/abi/HTLC.json +717 -0
  20. package/spec/abi/IBurnMintERC20.json +252 -0
  21. package/spec/abi/ICancoreRouter.json +1226 -0
  22. package/spec/abi/IHTLC.json +382 -0
  23. package/spec/abi/IPermit2.json +150 -0
  24. package/spec/abi/MultiBalanceChecker.json +34 -0
  25. package/spec/abi/PointsClaim.json +791 -0
  26. package/spec/protocol/asyncapi.json +1050 -0
  27. package/spec/protocol/messages.schema.json +414 -0
  28. package/spec/protocol/records.schema.json +93 -0
  29. package/spec/protocol/rest.schema.json +115 -0
  30. package/spec/protocol/typed-data/FillerAuth.json +58 -0
  31. package/spec/protocol/typed-data/FillerQuote.json +75 -0
  32. package/spec/protocol/typed-data/GatewayMessage.json +90 -0
  33. package/spec/protocol/typed-data/StakeBinding.json +75 -0
  34. package/spec/protocol/typed-data/TicketIntent.json +65 -0
  35. package/spec/protocol/typed-data/TicketReceipt.json +51 -0
  36. package/spec/protocol/vectors/draw.json +61 -0
  37. package/spec/protocol/vectors/jcs.json +59 -0
  38. package/spec/protocol/vectors/messages.json +343 -0
  39. package/spec/protocol/vectors/records.json +81 -0
  40. package/spec/typed-data/FillProof.json +199 -0
  41. package/spec/typed-data/FillTicket.json +83 -0
  42. package/spec/typed-data/Order.json +141 -0
  43. package/spec/typed-data/Quote.json +69 -0
  44. package/spec/vectors/canton-order.json +67 -0
  45. package/dist/chunk-CIBYXHSX.js.map +0 -1
  46. package/dist/chunk-ZSX67S72.js +0 -3423
  47. package/dist/chunk-ZSX67S72.js.map +0 -1
@@ -0,0 +1,1050 @@
1
+ {
2
+ "asyncapi": "3.0.0",
3
+ "info": {
4
+ "title": "Cancore filler protocol",
5
+ "version": "1.0.0-rc.1",
6
+ "description": "The WebSocket protocol between a taker (filler) and the Cancore filler gateway, v1 (release candidate, @cancore/contracts 0.2.0-rc.1). Operations are the gateway's: it sends S→F frames and receives F→S frames. Every S→F frame carries fillerId, sentAt and sig = the gateway key over GatewayMessage{bodyHash} in the CancoreFillerProtocol v1 domain. Payload schemas: messages.schema.json. Generated by scripts/gen-protocol-docs.mjs.",
7
+ "license": {
8
+ "name": "Apache-2.0"
9
+ }
10
+ },
11
+ "defaultContentType": "application/json",
12
+ "servers": {
13
+ "mock": {
14
+ "host": "localhost:{port}",
15
+ "protocol": "ws",
16
+ "description": "@cancore/test-kit mock-gateway",
17
+ "variables": {
18
+ "port": {
19
+ "default": "8787"
20
+ }
21
+ }
22
+ },
23
+ "devnet": {
24
+ "host": "{gatewayHost}",
25
+ "protocol": "wss",
26
+ "description": "Published per environment (O-6)",
27
+ "variables": {
28
+ "gatewayHost": {
29
+ "default": "filler.dev.cancore.io"
30
+ }
31
+ }
32
+ }
33
+ },
34
+ "channels": {
35
+ "filler": {
36
+ "address": "/v1",
37
+ "description": "One JSON object per text frame. Nothing but auth.* and error flows before auth.ok; FillerAuth in auth.response authenticates the socket (the REST fallback uses a bearer token).",
38
+ "messages": {
39
+ "auth.challenge": {
40
+ "$ref": "#/components/messages/auth.challenge"
41
+ },
42
+ "auth.response": {
43
+ "$ref": "#/components/messages/auth.response"
44
+ },
45
+ "auth.ok": {
46
+ "$ref": "#/components/messages/auth.ok"
47
+ },
48
+ "pingS2F": {
49
+ "$ref": "#/components/messages/pingS2F"
50
+ },
51
+ "pingF2S": {
52
+ "$ref": "#/components/messages/pingF2S"
53
+ },
54
+ "pongS2F": {
55
+ "$ref": "#/components/messages/pongS2F"
56
+ },
57
+ "pongF2S": {
58
+ "$ref": "#/components/messages/pongF2S"
59
+ },
60
+ "error": {
61
+ "$ref": "#/components/messages/error"
62
+ },
63
+ "epoch.weights": {
64
+ "$ref": "#/components/messages/epoch.weights"
65
+ },
66
+ "quote.request": {
67
+ "$ref": "#/components/messages/quote.request"
68
+ },
69
+ "quote": {
70
+ "$ref": "#/components/messages/quote"
71
+ },
72
+ "quote.ack": {
73
+ "$ref": "#/components/messages/quote.ack"
74
+ },
75
+ "quote.reconfirm": {
76
+ "$ref": "#/components/messages/quote.reconfirm"
77
+ },
78
+ "quote.reconfirm.reply": {
79
+ "$ref": "#/components/messages/quote.reconfirm.reply"
80
+ },
81
+ "ticket.offer": {
82
+ "$ref": "#/components/messages/ticket.offer"
83
+ },
84
+ "ticket.intent": {
85
+ "$ref": "#/components/messages/ticket.intent"
86
+ },
87
+ "ticket.decline": {
88
+ "$ref": "#/components/messages/ticket.decline"
89
+ },
90
+ "ticket.intent.ack": {
91
+ "$ref": "#/components/messages/ticket.intent.ack"
92
+ },
93
+ "ticket.issued": {
94
+ "$ref": "#/components/messages/ticket.issued"
95
+ },
96
+ "ticket.receipt": {
97
+ "$ref": "#/components/messages/ticket.receipt"
98
+ },
99
+ "fill.reported": {
100
+ "$ref": "#/components/messages/fill.reported"
101
+ },
102
+ "ticket.expired": {
103
+ "$ref": "#/components/messages/ticket.expired"
104
+ },
105
+ "order.settled": {
106
+ "$ref": "#/components/messages/order.settled"
107
+ },
108
+ "penalty.applied": {
109
+ "$ref": "#/components/messages/penalty.applied"
110
+ }
111
+ }
112
+ }
113
+ },
114
+ "operations": {
115
+ "sendAuthChallenge": {
116
+ "action": "send",
117
+ "channel": {
118
+ "$ref": "#/channels/filler"
119
+ },
120
+ "messages": [
121
+ {
122
+ "$ref": "#/channels/filler/messages/auth.challenge"
123
+ }
124
+ ]
125
+ },
126
+ "receiveAuthResponse": {
127
+ "action": "receive",
128
+ "channel": {
129
+ "$ref": "#/channels/filler"
130
+ },
131
+ "messages": [
132
+ {
133
+ "$ref": "#/channels/filler/messages/auth.response"
134
+ }
135
+ ]
136
+ },
137
+ "sendAuthOk": {
138
+ "action": "send",
139
+ "channel": {
140
+ "$ref": "#/channels/filler"
141
+ },
142
+ "messages": [
143
+ {
144
+ "$ref": "#/channels/filler/messages/auth.ok"
145
+ }
146
+ ]
147
+ },
148
+ "sendPing": {
149
+ "action": "send",
150
+ "channel": {
151
+ "$ref": "#/channels/filler"
152
+ },
153
+ "messages": [
154
+ {
155
+ "$ref": "#/channels/filler/messages/pingS2F"
156
+ }
157
+ ]
158
+ },
159
+ "receivePing": {
160
+ "action": "receive",
161
+ "channel": {
162
+ "$ref": "#/channels/filler"
163
+ },
164
+ "messages": [
165
+ {
166
+ "$ref": "#/channels/filler/messages/pingF2S"
167
+ }
168
+ ]
169
+ },
170
+ "sendPong": {
171
+ "action": "send",
172
+ "channel": {
173
+ "$ref": "#/channels/filler"
174
+ },
175
+ "messages": [
176
+ {
177
+ "$ref": "#/channels/filler/messages/pongS2F"
178
+ }
179
+ ]
180
+ },
181
+ "receivePong": {
182
+ "action": "receive",
183
+ "channel": {
184
+ "$ref": "#/channels/filler"
185
+ },
186
+ "messages": [
187
+ {
188
+ "$ref": "#/channels/filler/messages/pongF2S"
189
+ }
190
+ ]
191
+ },
192
+ "sendError": {
193
+ "action": "send",
194
+ "channel": {
195
+ "$ref": "#/channels/filler"
196
+ },
197
+ "messages": [
198
+ {
199
+ "$ref": "#/channels/filler/messages/error"
200
+ }
201
+ ]
202
+ },
203
+ "sendEpochWeights": {
204
+ "action": "send",
205
+ "channel": {
206
+ "$ref": "#/channels/filler"
207
+ },
208
+ "messages": [
209
+ {
210
+ "$ref": "#/channels/filler/messages/epoch.weights"
211
+ }
212
+ ]
213
+ },
214
+ "sendQuoteRequest": {
215
+ "action": "send",
216
+ "channel": {
217
+ "$ref": "#/channels/filler"
218
+ },
219
+ "messages": [
220
+ {
221
+ "$ref": "#/channels/filler/messages/quote.request"
222
+ }
223
+ ]
224
+ },
225
+ "receiveQuote": {
226
+ "action": "receive",
227
+ "channel": {
228
+ "$ref": "#/channels/filler"
229
+ },
230
+ "messages": [
231
+ {
232
+ "$ref": "#/channels/filler/messages/quote"
233
+ }
234
+ ]
235
+ },
236
+ "sendQuoteAck": {
237
+ "action": "send",
238
+ "channel": {
239
+ "$ref": "#/channels/filler"
240
+ },
241
+ "messages": [
242
+ {
243
+ "$ref": "#/channels/filler/messages/quote.ack"
244
+ }
245
+ ]
246
+ },
247
+ "sendQuoteReconfirm": {
248
+ "action": "send",
249
+ "channel": {
250
+ "$ref": "#/channels/filler"
251
+ },
252
+ "messages": [
253
+ {
254
+ "$ref": "#/channels/filler/messages/quote.reconfirm"
255
+ }
256
+ ]
257
+ },
258
+ "receiveQuoteReconfirmReply": {
259
+ "action": "receive",
260
+ "channel": {
261
+ "$ref": "#/channels/filler"
262
+ },
263
+ "messages": [
264
+ {
265
+ "$ref": "#/channels/filler/messages/quote.reconfirm.reply"
266
+ }
267
+ ]
268
+ },
269
+ "sendTicketOffer": {
270
+ "action": "send",
271
+ "channel": {
272
+ "$ref": "#/channels/filler"
273
+ },
274
+ "messages": [
275
+ {
276
+ "$ref": "#/channels/filler/messages/ticket.offer"
277
+ }
278
+ ]
279
+ },
280
+ "receiveTicketIntent": {
281
+ "action": "receive",
282
+ "channel": {
283
+ "$ref": "#/channels/filler"
284
+ },
285
+ "messages": [
286
+ {
287
+ "$ref": "#/channels/filler/messages/ticket.intent"
288
+ }
289
+ ]
290
+ },
291
+ "receiveTicketDecline": {
292
+ "action": "receive",
293
+ "channel": {
294
+ "$ref": "#/channels/filler"
295
+ },
296
+ "messages": [
297
+ {
298
+ "$ref": "#/channels/filler/messages/ticket.decline"
299
+ }
300
+ ]
301
+ },
302
+ "sendTicketIntentAck": {
303
+ "action": "send",
304
+ "channel": {
305
+ "$ref": "#/channels/filler"
306
+ },
307
+ "messages": [
308
+ {
309
+ "$ref": "#/channels/filler/messages/ticket.intent.ack"
310
+ }
311
+ ]
312
+ },
313
+ "sendTicketIssued": {
314
+ "action": "send",
315
+ "channel": {
316
+ "$ref": "#/channels/filler"
317
+ },
318
+ "messages": [
319
+ {
320
+ "$ref": "#/channels/filler/messages/ticket.issued"
321
+ }
322
+ ]
323
+ },
324
+ "receiveTicketReceipt": {
325
+ "action": "receive",
326
+ "channel": {
327
+ "$ref": "#/channels/filler"
328
+ },
329
+ "messages": [
330
+ {
331
+ "$ref": "#/channels/filler/messages/ticket.receipt"
332
+ }
333
+ ]
334
+ },
335
+ "receiveFillReported": {
336
+ "action": "receive",
337
+ "channel": {
338
+ "$ref": "#/channels/filler"
339
+ },
340
+ "messages": [
341
+ {
342
+ "$ref": "#/channels/filler/messages/fill.reported"
343
+ }
344
+ ]
345
+ },
346
+ "sendTicketExpired": {
347
+ "action": "send",
348
+ "channel": {
349
+ "$ref": "#/channels/filler"
350
+ },
351
+ "messages": [
352
+ {
353
+ "$ref": "#/channels/filler/messages/ticket.expired"
354
+ }
355
+ ]
356
+ },
357
+ "sendOrderSettled": {
358
+ "action": "send",
359
+ "channel": {
360
+ "$ref": "#/channels/filler"
361
+ },
362
+ "messages": [
363
+ {
364
+ "$ref": "#/channels/filler/messages/order.settled"
365
+ }
366
+ ]
367
+ },
368
+ "sendPenaltyApplied": {
369
+ "action": "send",
370
+ "channel": {
371
+ "$ref": "#/channels/filler"
372
+ },
373
+ "messages": [
374
+ {
375
+ "$ref": "#/channels/filler/messages/penalty.applied"
376
+ }
377
+ ]
378
+ }
379
+ },
380
+ "components": {
381
+ "messages": {
382
+ "auth.challenge": {
383
+ "name": "auth.challenge",
384
+ "title": "auth.challenge (S2F)",
385
+ "payload": {
386
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
387
+ "schema": {
388
+ "$ref": "messages.schema.json#/$defs/auth.challenge"
389
+ }
390
+ },
391
+ "examples": [
392
+ {
393
+ "name": "auth-challenge-1",
394
+ "payload": {
395
+ "type": "auth.challenge",
396
+ "sentAt": 1789999980000,
397
+ "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
398
+ "expiresAt": "1790000030",
399
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
400
+ }
401
+ }
402
+ ]
403
+ },
404
+ "auth.response": {
405
+ "name": "auth.response",
406
+ "title": "auth.response (F2S)",
407
+ "payload": {
408
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
409
+ "schema": {
410
+ "$ref": "messages.schema.json#/$defs/auth.response"
411
+ }
412
+ },
413
+ "examples": [
414
+ {
415
+ "name": "auth-response-1",
416
+ "payload": {
417
+ "type": "auth.response",
418
+ "id": "a-1",
419
+ "fillerId": "acme-markets",
420
+ "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
421
+ "protocolVersion": "1",
422
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
423
+ }
424
+ }
425
+ ]
426
+ },
427
+ "auth.ok": {
428
+ "name": "auth.ok",
429
+ "title": "auth.ok (S2F)",
430
+ "payload": {
431
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
432
+ "schema": {
433
+ "$ref": "messages.schema.json#/$defs/auth.ok"
434
+ }
435
+ },
436
+ "examples": [
437
+ {
438
+ "name": "auth-ok-1",
439
+ "payload": {
440
+ "type": "auth.ok",
441
+ "fillerId": "acme-markets",
442
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
443
+ "sentAt": 1789999980200,
444
+ "re": "a-1",
445
+ "heartbeatIntervalMs": 15000
446
+ }
447
+ }
448
+ ]
449
+ },
450
+ "pingS2F": {
451
+ "name": "ping",
452
+ "title": "ping (S2F)",
453
+ "payload": {
454
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
455
+ "schema": {
456
+ "$ref": "messages.schema.json#/$defs/pingS2F"
457
+ }
458
+ },
459
+ "examples": [
460
+ {
461
+ "name": "pingS2F-1",
462
+ "payload": {
463
+ "type": "ping",
464
+ "fillerId": "acme-markets",
465
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
466
+ "sentAt": 1789999995000,
467
+ "id": "gp-1"
468
+ }
469
+ }
470
+ ]
471
+ },
472
+ "pingF2S": {
473
+ "name": "ping",
474
+ "title": "ping (F2S)",
475
+ "payload": {
476
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
477
+ "schema": {
478
+ "$ref": "messages.schema.json#/$defs/pingF2S"
479
+ }
480
+ },
481
+ "examples": [
482
+ {
483
+ "name": "pingF2S-1",
484
+ "payload": {
485
+ "type": "ping",
486
+ "id": "p-1"
487
+ }
488
+ }
489
+ ]
490
+ },
491
+ "pongS2F": {
492
+ "name": "pong",
493
+ "title": "pong (S2F)",
494
+ "payload": {
495
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
496
+ "schema": {
497
+ "$ref": "messages.schema.json#/$defs/pongS2F"
498
+ }
499
+ },
500
+ "examples": [
501
+ {
502
+ "name": "pongS2F-1",
503
+ "payload": {
504
+ "type": "pong",
505
+ "fillerId": "acme-markets",
506
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
507
+ "sentAt": 1789999995100,
508
+ "re": "p-1"
509
+ }
510
+ }
511
+ ]
512
+ },
513
+ "pongF2S": {
514
+ "name": "pong",
515
+ "title": "pong (F2S)",
516
+ "payload": {
517
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
518
+ "schema": {
519
+ "$ref": "messages.schema.json#/$defs/pongF2S"
520
+ }
521
+ },
522
+ "examples": [
523
+ {
524
+ "name": "pongF2S-1",
525
+ "payload": {
526
+ "type": "pong",
527
+ "re": "gp-1"
528
+ }
529
+ }
530
+ ]
531
+ },
532
+ "error": {
533
+ "name": "error",
534
+ "title": "error (S2F)",
535
+ "payload": {
536
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
537
+ "schema": {
538
+ "$ref": "messages.schema.json#/$defs/error"
539
+ }
540
+ },
541
+ "examples": [
542
+ {
543
+ "name": "error-1",
544
+ "payload": {
545
+ "type": "error",
546
+ "fillerId": "acme-markets",
547
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
548
+ "sentAt": 1790000023500,
549
+ "re": "i-2",
550
+ "code": "TICKET_CLOSED",
551
+ "message": "ticket.intent after acceptBy"
552
+ }
553
+ },
554
+ {
555
+ "name": "error-2",
556
+ "payload": {
557
+ "type": "error",
558
+ "sentAt": 1789999980100,
559
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
560
+ "re": "q-0",
561
+ "code": "UNAUTHENTICATED",
562
+ "message": "quote before auth.ok"
563
+ }
564
+ }
565
+ ]
566
+ },
567
+ "epoch.weights": {
568
+ "name": "epoch.weights",
569
+ "title": "epoch.weights (S2F)",
570
+ "payload": {
571
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
572
+ "schema": {
573
+ "$ref": "messages.schema.json#/$defs/epoch.weights"
574
+ }
575
+ },
576
+ "examples": [
577
+ {
578
+ "name": "epoch-weights-1",
579
+ "payload": {
580
+ "type": "epoch.weights",
581
+ "fillerId": "acme-markets",
582
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
583
+ "sentAt": 1789999980300,
584
+ "epochId": "20717",
585
+ "startsAt": "1789948800",
586
+ "endsAt": "1790035200",
587
+ "weightsRoot": "0xa1c24765b55b34e0c206f808d2fac2e448d9db6f154d89f898921a80bad76e92"
588
+ }
589
+ }
590
+ ]
591
+ },
592
+ "quote.request": {
593
+ "name": "quote.request",
594
+ "title": "quote.request (S2F)",
595
+ "payload": {
596
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
597
+ "schema": {
598
+ "$ref": "messages.schema.json#/$defs/quote.request"
599
+ }
600
+ },
601
+ "examples": [
602
+ {
603
+ "name": "quote-request-1",
604
+ "payload": {
605
+ "type": "quote.request",
606
+ "fillerId": "acme-markets",
607
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
608
+ "sentAt": 1789999990000,
609
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
610
+ "route": {
611
+ "src": "eip155:11155111",
612
+ "dst": "eip155:421614"
613
+ },
614
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
615
+ "inputAmount": "1003000000",
616
+ "outputAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
617
+ "feeBps": 30,
618
+ "fillDeadlineHint": "1790000600",
619
+ "windowCloseAt": 1789999992000,
620
+ "quoteTtlMs": 60000,
621
+ "imbalanceHint": {
622
+ "dstAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
623
+ "netFlow24hUsd": "-12500.50"
624
+ }
625
+ }
626
+ }
627
+ ]
628
+ },
629
+ "quote": {
630
+ "name": "quote",
631
+ "title": "quote (F2S)",
632
+ "payload": {
633
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
634
+ "schema": {
635
+ "$ref": "messages.schema.json#/$defs/quote"
636
+ }
637
+ },
638
+ "examples": [
639
+ {
640
+ "name": "quote-1",
641
+ "payload": {
642
+ "type": "quote",
643
+ "id": "q-1",
644
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
645
+ "filler": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
646
+ "amountOut": "999000000",
647
+ "validUntil": "1790000060",
648
+ "nonce": "1",
649
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
650
+ }
651
+ }
652
+ ]
653
+ },
654
+ "quote.ack": {
655
+ "name": "quote.ack",
656
+ "title": "quote.ack (S2F)",
657
+ "payload": {
658
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
659
+ "schema": {
660
+ "$ref": "messages.schema.json#/$defs/quote.ack"
661
+ }
662
+ },
663
+ "examples": [
664
+ {
665
+ "name": "quote-ack-1",
666
+ "payload": {
667
+ "type": "quote.ack",
668
+ "fillerId": "acme-markets",
669
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
670
+ "sentAt": 1789999991001,
671
+ "re": "q-1",
672
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
673
+ "quoteHash": "0xdfbd4a1d732d8a105714d38ed6c46b8ee6e299e8bf90990ac502ebaea19fbe70",
674
+ "receivedAt": 1789999991000,
675
+ "status": "COUNTED"
676
+ }
677
+ }
678
+ ]
679
+ },
680
+ "quote.reconfirm": {
681
+ "name": "quote.reconfirm",
682
+ "title": "quote.reconfirm (S2F)",
683
+ "payload": {
684
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
685
+ "schema": {
686
+ "$ref": "messages.schema.json#/$defs/quote.reconfirm"
687
+ }
688
+ },
689
+ "examples": [
690
+ {
691
+ "name": "quote-reconfirm-1",
692
+ "payload": {
693
+ "type": "quote.reconfirm",
694
+ "fillerId": "acme-markets",
695
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
696
+ "sentAt": 1790000013000,
697
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
698
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
699
+ "order": {
700
+ "user": "0xa11ce00000000000000000000000000000000001",
701
+ "originChainId": "11155111",
702
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
703
+ "inputAmount": "1003000000",
704
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
705
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
706
+ "minReceived": "999000000",
707
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
708
+ "createdAt": "1790000000",
709
+ "fillDeadline": "1790000600",
710
+ "feeBps": "30"
711
+ },
712
+ "amountOut": "999000000",
713
+ "ticketTtl": 360,
714
+ "replyBy": 1790000016000
715
+ }
716
+ }
717
+ ]
718
+ },
719
+ "quote.reconfirm.reply": {
720
+ "name": "quote.reconfirm.reply",
721
+ "title": "quote.reconfirm.reply (F2S)",
722
+ "payload": {
723
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
724
+ "schema": {
725
+ "$ref": "messages.schema.json#/$defs/quote.reconfirm.reply"
726
+ }
727
+ },
728
+ "examples": [
729
+ {
730
+ "name": "quote-reconfirm-reply-1",
731
+ "payload": {
732
+ "type": "quote.reconfirm.reply",
733
+ "id": "r-1",
734
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
735
+ "accept": true,
736
+ "validUntil": "1790000400",
737
+ "nonce": "2",
738
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
739
+ }
740
+ },
741
+ {
742
+ "name": "quote-reconfirm-reply-2",
743
+ "payload": {
744
+ "type": "quote.reconfirm.reply",
745
+ "id": "r-2",
746
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
747
+ "accept": false
748
+ }
749
+ }
750
+ ]
751
+ },
752
+ "ticket.offer": {
753
+ "name": "ticket.offer",
754
+ "title": "ticket.offer (S2F)",
755
+ "payload": {
756
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
757
+ "schema": {
758
+ "$ref": "messages.schema.json#/$defs/ticket.offer"
759
+ }
760
+ },
761
+ "examples": [
762
+ {
763
+ "name": "ticket-offer-1",
764
+ "payload": {
765
+ "type": "ticket.offer",
766
+ "fillerId": "acme-markets",
767
+ "sentAt": 1790000020000,
768
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
769
+ "attempt": 0,
770
+ "order": {
771
+ "user": "0xa11ce00000000000000000000000000000000001",
772
+ "originChainId": "11155111",
773
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
774
+ "inputAmount": "1003000000",
775
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
776
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
777
+ "minReceived": "999000000",
778
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
779
+ "createdAt": "1790000000",
780
+ "fillDeadline": "1790000600",
781
+ "feeBps": "30"
782
+ },
783
+ "amountOut": "999000000",
784
+ "validFrom": "1790000040",
785
+ "validUntil": "1790000400",
786
+ "acceptBy": 1790000023000,
787
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
788
+ }
789
+ }
790
+ ]
791
+ },
792
+ "ticket.intent": {
793
+ "name": "ticket.intent",
794
+ "title": "ticket.intent (F2S)",
795
+ "payload": {
796
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
797
+ "schema": {
798
+ "$ref": "messages.schema.json#/$defs/ticket.intent"
799
+ }
800
+ },
801
+ "examples": [
802
+ {
803
+ "name": "ticket-intent-1",
804
+ "payload": {
805
+ "type": "ticket.intent",
806
+ "id": "i-1",
807
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
808
+ "attempt": 0,
809
+ "validFrom": "1790000040",
810
+ "validUntil": "1790000400",
811
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
812
+ }
813
+ }
814
+ ]
815
+ },
816
+ "ticket.decline": {
817
+ "name": "ticket.decline",
818
+ "title": "ticket.decline (F2S)",
819
+ "payload": {
820
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
821
+ "schema": {
822
+ "$ref": "messages.schema.json#/$defs/ticket.decline"
823
+ }
824
+ },
825
+ "examples": [
826
+ {
827
+ "name": "ticket-decline-1",
828
+ "payload": {
829
+ "type": "ticket.decline",
830
+ "id": "d-1",
831
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
832
+ "attempt": 0,
833
+ "reason": "TICKET_ISSUED_LATE",
834
+ "detail": "ticket.issued 3001 ms after acceptBy"
835
+ }
836
+ }
837
+ ]
838
+ },
839
+ "ticket.intent.ack": {
840
+ "name": "ticket.intent.ack",
841
+ "title": "ticket.intent.ack (S2F)",
842
+ "payload": {
843
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
844
+ "schema": {
845
+ "$ref": "messages.schema.json#/$defs/ticket.intent.ack"
846
+ }
847
+ },
848
+ "examples": [
849
+ {
850
+ "name": "ticket-intent-ack-1",
851
+ "payload": {
852
+ "type": "ticket.intent.ack",
853
+ "fillerId": "acme-markets",
854
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
855
+ "sentAt": 1790000021001,
856
+ "re": "i-1",
857
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
858
+ "attempt": 0,
859
+ "intentHash": "0xf3a07f98be564fb062f1574d933fc33f40e5c9e36c0fec83d3b3c4c15e9199c2",
860
+ "receivedAt": 1790000021000
861
+ }
862
+ }
863
+ ]
864
+ },
865
+ "ticket.issued": {
866
+ "name": "ticket.issued",
867
+ "title": "ticket.issued (S2F)",
868
+ "payload": {
869
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
870
+ "schema": {
871
+ "$ref": "messages.schema.json#/$defs/ticket.issued"
872
+ }
873
+ },
874
+ "examples": [
875
+ {
876
+ "name": "ticket-issued-1",
877
+ "payload": {
878
+ "type": "ticket.issued",
879
+ "fillerId": "acme-markets",
880
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
881
+ "sentAt": 1790000024000,
882
+ "form": "evm",
883
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
884
+ "attempt": 0,
885
+ "ticket": {
886
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
887
+ "filler": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
888
+ "attempt": 0,
889
+ "validFrom": "1790000040",
890
+ "validUntil": "1790000400"
891
+ },
892
+ "ticketSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
893
+ }
894
+ },
895
+ {
896
+ "name": "ticket-issued-2",
897
+ "payload": {
898
+ "type": "ticket.issued",
899
+ "fillerId": "acme-markets",
900
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
901
+ "sentAt": 1790000024000,
902
+ "form": "canton",
903
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
904
+ "attempt": 0,
905
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
906
+ "validUntil": "1790000400"
907
+ }
908
+ }
909
+ ]
910
+ },
911
+ "ticket.receipt": {
912
+ "name": "ticket.receipt",
913
+ "title": "ticket.receipt (F2S)",
914
+ "payload": {
915
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
916
+ "schema": {
917
+ "$ref": "messages.schema.json#/$defs/ticket.receipt"
918
+ }
919
+ },
920
+ "examples": [
921
+ {
922
+ "name": "ticket-receipt-1",
923
+ "payload": {
924
+ "type": "ticket.receipt",
925
+ "id": "rc-1",
926
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
927
+ "attempt": 0,
928
+ "ticketHash": "0x466bc75e5efad07ad975aeea9ec731902bc804461686a6c8f76ef4fd50297819",
929
+ "ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
930
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
931
+ }
932
+ }
933
+ ]
934
+ },
935
+ "fill.reported": {
936
+ "name": "fill.reported",
937
+ "title": "fill.reported (F2S)",
938
+ "payload": {
939
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
940
+ "schema": {
941
+ "$ref": "messages.schema.json#/$defs/fill.reported"
942
+ }
943
+ },
944
+ "examples": [
945
+ {
946
+ "name": "fill-reported-1",
947
+ "payload": {
948
+ "type": "fill.reported",
949
+ "id": "f-1",
950
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
951
+ "attempt": 0,
952
+ "txRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740"
953
+ }
954
+ }
955
+ ]
956
+ },
957
+ "ticket.expired": {
958
+ "name": "ticket.expired",
959
+ "title": "ticket.expired (S2F)",
960
+ "payload": {
961
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
962
+ "schema": {
963
+ "$ref": "messages.schema.json#/$defs/ticket.expired"
964
+ }
965
+ },
966
+ "examples": [
967
+ {
968
+ "name": "ticket-expired-1",
969
+ "payload": {
970
+ "type": "ticket.expired",
971
+ "fillerId": "acme-markets",
972
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
973
+ "sentAt": 1790000460000,
974
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
975
+ "attempt": 0,
976
+ "result": "FILLED"
977
+ }
978
+ },
979
+ {
980
+ "name": "ticket-expired-2",
981
+ "payload": {
982
+ "type": "ticket.expired",
983
+ "fillerId": "acme-markets",
984
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
985
+ "sentAt": 1790000460000,
986
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
987
+ "attempt": 0,
988
+ "result": "EXEMPT",
989
+ "exemptReason": "DESTINATION_HALTED"
990
+ }
991
+ }
992
+ ]
993
+ },
994
+ "order.settled": {
995
+ "name": "order.settled",
996
+ "title": "order.settled (S2F)",
997
+ "payload": {
998
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
999
+ "schema": {
1000
+ "$ref": "messages.schema.json#/$defs/order.settled"
1001
+ }
1002
+ },
1003
+ "examples": [
1004
+ {
1005
+ "name": "order-settled-1",
1006
+ "payload": {
1007
+ "type": "order.settled",
1008
+ "fillerId": "acme-markets",
1009
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1010
+ "sentAt": 1790000900000,
1011
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1012
+ "payout": "1000000000",
1013
+ "fee": "3000000",
1014
+ "penaltyWithheld": "0",
1015
+ "txRef": "0x8d99b79edaf0d9c062753bb308a72f52ec1ed8873fe06580c14524bb66a9f614"
1016
+ }
1017
+ }
1018
+ ]
1019
+ },
1020
+ "penalty.applied": {
1021
+ "name": "penalty.applied",
1022
+ "title": "penalty.applied (S2F)",
1023
+ "payload": {
1024
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1025
+ "schema": {
1026
+ "$ref": "messages.schema.json#/$defs/penalty.applied"
1027
+ }
1028
+ },
1029
+ "examples": [
1030
+ {
1031
+ "name": "penalty-applied-1",
1032
+ "payload": {
1033
+ "type": "penalty.applied",
1034
+ "fillerId": "acme-markets",
1035
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1036
+ "sentAt": 1790001000000,
1037
+ "violationId": "v-1",
1038
+ "code": "NO_SHOW",
1039
+ "step": "L1",
1040
+ "details": {
1041
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1042
+ "attempt": 0
1043
+ }
1044
+ }
1045
+ }
1046
+ ]
1047
+ }
1048
+ }
1049
+ }
1050
+ }