@cancore/contracts 0.1.0 → 0.2.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +266 -10
  2. package/dist/abi.d.ts +6086 -1675
  3. package/dist/abi.js +1 -1
  4. package/dist/{chunk-CIBYXHSX.js → chunk-IAPV7XWJ.js} +2 -2
  5. package/dist/chunk-IAPV7XWJ.js.map +1 -0
  6. package/dist/chunk-NV5IUURP.js +9252 -0
  7. package/dist/chunk-NV5IUURP.js.map +1 -0
  8. package/dist/index.d.ts +1180 -29
  9. package/dist/index.js +2600 -17
  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 +1288 -0
  27. package/spec/protocol/messages.schema.json +525 -0
  28. package/spec/protocol/records.schema.json +94 -0
  29. package/spec/protocol/rest.schema.json +118 -0
  30. package/spec/protocol/typed-data/FillerAuth.json +58 -0
  31. package/spec/protocol/typed-data/FillerKeyRegistration.json +69 -0
  32. package/spec/protocol/typed-data/FillerMessage.json +115 -0
  33. package/spec/protocol/typed-data/FillerQuote.json +75 -0
  34. package/spec/protocol/typed-data/GatewayMessage.json +93 -0
  35. package/spec/protocol/typed-data/StakeBinding.json +75 -0
  36. package/spec/protocol/typed-data/TicketIntent.json +113 -0
  37. package/spec/protocol/typed-data/TicketReceipt.json +51 -0
  38. package/spec/protocol/vectors/draw.json +61 -0
  39. package/spec/protocol/vectors/jcs.json +59 -0
  40. package/spec/protocol/vectors/messages.json +523 -0
  41. package/spec/protocol/vectors/records.json +81 -0
  42. package/spec/protocol/vectors/settle-attestations.json +542 -0
  43. package/spec/typed-data/FillProof.json +227 -0
  44. package/spec/typed-data/FillTicket.json +115 -0
  45. package/spec/typed-data/Order.json +141 -0
  46. package/spec/typed-data/Quote.json +69 -0
  47. package/spec/vectors/canton-order.json +67 -0
  48. package/dist/chunk-CIBYXHSX.js.map +0 -1
  49. package/dist/chunk-ZSX67S72.js +0 -3423
  50. package/dist/chunk-ZSX67S72.js.map +0 -1
@@ -0,0 +1,1288 @@
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 filler and the Cancore filler gateway, v1 (release candidate). Operations are the gateway's: it sends S→F frames and receives F→S frames. Every frame carries id, fillerId and sentAt and is signed in the CancoreFillerProtocol v1 domain: S→F with sig = the gateway key over GatewayMessage{bodyHash}, F→S with msgSig = the filler's message key over FillerMessage{bodyHash}, bodyHash = keccak256(JCS(frame without that field)). 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
+ "devnet": {
14
+ "host": "{gatewayHost}",
15
+ "protocol": "wss",
16
+ "description": "Published per environment (O-6)",
17
+ "variables": {
18
+ "gatewayHost": {
19
+ "default": "filler.dev.cancore.io"
20
+ }
21
+ }
22
+ }
23
+ },
24
+ "channels": {
25
+ "filler": {
26
+ "address": "/v1",
27
+ "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).",
28
+ "messages": {
29
+ "auth.challenge": {
30
+ "$ref": "#/components/messages/auth.challenge"
31
+ },
32
+ "auth.response": {
33
+ "$ref": "#/components/messages/auth.response"
34
+ },
35
+ "auth.ok": {
36
+ "$ref": "#/components/messages/auth.ok"
37
+ },
38
+ "pingS2F": {
39
+ "$ref": "#/components/messages/pingS2F"
40
+ },
41
+ "pingF2S": {
42
+ "$ref": "#/components/messages/pingF2S"
43
+ },
44
+ "pongS2F": {
45
+ "$ref": "#/components/messages/pongS2F"
46
+ },
47
+ "pongF2S": {
48
+ "$ref": "#/components/messages/pongF2S"
49
+ },
50
+ "errorS2F": {
51
+ "$ref": "#/components/messages/errorS2F"
52
+ },
53
+ "errorF2S": {
54
+ "$ref": "#/components/messages/errorF2S"
55
+ },
56
+ "epoch.weights": {
57
+ "$ref": "#/components/messages/epoch.weights"
58
+ },
59
+ "quote.request": {
60
+ "$ref": "#/components/messages/quote.request"
61
+ },
62
+ "quote": {
63
+ "$ref": "#/components/messages/quote"
64
+ },
65
+ "quote.ack": {
66
+ "$ref": "#/components/messages/quote.ack"
67
+ },
68
+ "quote.reconfirm": {
69
+ "$ref": "#/components/messages/quote.reconfirm"
70
+ },
71
+ "quote.reconfirm.reply": {
72
+ "$ref": "#/components/messages/quote.reconfirm.reply"
73
+ },
74
+ "ticket.offer": {
75
+ "$ref": "#/components/messages/ticket.offer"
76
+ },
77
+ "ticket.intent": {
78
+ "$ref": "#/components/messages/ticket.intent"
79
+ },
80
+ "ticket.decline": {
81
+ "$ref": "#/components/messages/ticket.decline"
82
+ },
83
+ "ticket.intent.ack": {
84
+ "$ref": "#/components/messages/ticket.intent.ack"
85
+ },
86
+ "ticket.issued": {
87
+ "$ref": "#/components/messages/ticket.issued"
88
+ },
89
+ "ticket.receipt": {
90
+ "$ref": "#/components/messages/ticket.receipt"
91
+ },
92
+ "fill.reported": {
93
+ "$ref": "#/components/messages/fill.reported"
94
+ },
95
+ "ticket.expired": {
96
+ "$ref": "#/components/messages/ticket.expired"
97
+ },
98
+ "order.settled": {
99
+ "$ref": "#/components/messages/order.settled"
100
+ },
101
+ "penalty.applied": {
102
+ "$ref": "#/components/messages/penalty.applied"
103
+ },
104
+ "settle.attestations": {
105
+ "$ref": "#/components/messages/settle.attestations"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "operations": {
111
+ "sendAuthChallenge": {
112
+ "action": "send",
113
+ "channel": {
114
+ "$ref": "#/channels/filler"
115
+ },
116
+ "messages": [
117
+ {
118
+ "$ref": "#/channels/filler/messages/auth.challenge"
119
+ }
120
+ ]
121
+ },
122
+ "receiveAuthResponse": {
123
+ "action": "receive",
124
+ "channel": {
125
+ "$ref": "#/channels/filler"
126
+ },
127
+ "messages": [
128
+ {
129
+ "$ref": "#/channels/filler/messages/auth.response"
130
+ }
131
+ ]
132
+ },
133
+ "sendAuthOk": {
134
+ "action": "send",
135
+ "channel": {
136
+ "$ref": "#/channels/filler"
137
+ },
138
+ "messages": [
139
+ {
140
+ "$ref": "#/channels/filler/messages/auth.ok"
141
+ }
142
+ ]
143
+ },
144
+ "sendPing": {
145
+ "action": "send",
146
+ "channel": {
147
+ "$ref": "#/channels/filler"
148
+ },
149
+ "messages": [
150
+ {
151
+ "$ref": "#/channels/filler/messages/pingS2F"
152
+ }
153
+ ]
154
+ },
155
+ "receivePing": {
156
+ "action": "receive",
157
+ "channel": {
158
+ "$ref": "#/channels/filler"
159
+ },
160
+ "messages": [
161
+ {
162
+ "$ref": "#/channels/filler/messages/pingF2S"
163
+ }
164
+ ]
165
+ },
166
+ "sendPong": {
167
+ "action": "send",
168
+ "channel": {
169
+ "$ref": "#/channels/filler"
170
+ },
171
+ "messages": [
172
+ {
173
+ "$ref": "#/channels/filler/messages/pongS2F"
174
+ }
175
+ ]
176
+ },
177
+ "receivePong": {
178
+ "action": "receive",
179
+ "channel": {
180
+ "$ref": "#/channels/filler"
181
+ },
182
+ "messages": [
183
+ {
184
+ "$ref": "#/channels/filler/messages/pongF2S"
185
+ }
186
+ ]
187
+ },
188
+ "sendError": {
189
+ "action": "send",
190
+ "channel": {
191
+ "$ref": "#/channels/filler"
192
+ },
193
+ "messages": [
194
+ {
195
+ "$ref": "#/channels/filler/messages/errorS2F"
196
+ }
197
+ ]
198
+ },
199
+ "receiveError": {
200
+ "action": "receive",
201
+ "channel": {
202
+ "$ref": "#/channels/filler"
203
+ },
204
+ "messages": [
205
+ {
206
+ "$ref": "#/channels/filler/messages/errorF2S"
207
+ }
208
+ ]
209
+ },
210
+ "sendEpochWeights": {
211
+ "action": "send",
212
+ "channel": {
213
+ "$ref": "#/channels/filler"
214
+ },
215
+ "messages": [
216
+ {
217
+ "$ref": "#/channels/filler/messages/epoch.weights"
218
+ }
219
+ ]
220
+ },
221
+ "sendQuoteRequest": {
222
+ "action": "send",
223
+ "channel": {
224
+ "$ref": "#/channels/filler"
225
+ },
226
+ "messages": [
227
+ {
228
+ "$ref": "#/channels/filler/messages/quote.request"
229
+ }
230
+ ]
231
+ },
232
+ "receiveQuote": {
233
+ "action": "receive",
234
+ "channel": {
235
+ "$ref": "#/channels/filler"
236
+ },
237
+ "messages": [
238
+ {
239
+ "$ref": "#/channels/filler/messages/quote"
240
+ }
241
+ ]
242
+ },
243
+ "sendQuoteAck": {
244
+ "action": "send",
245
+ "channel": {
246
+ "$ref": "#/channels/filler"
247
+ },
248
+ "messages": [
249
+ {
250
+ "$ref": "#/channels/filler/messages/quote.ack"
251
+ }
252
+ ]
253
+ },
254
+ "sendQuoteReconfirm": {
255
+ "action": "send",
256
+ "channel": {
257
+ "$ref": "#/channels/filler"
258
+ },
259
+ "messages": [
260
+ {
261
+ "$ref": "#/channels/filler/messages/quote.reconfirm"
262
+ }
263
+ ]
264
+ },
265
+ "receiveQuoteReconfirmReply": {
266
+ "action": "receive",
267
+ "channel": {
268
+ "$ref": "#/channels/filler"
269
+ },
270
+ "messages": [
271
+ {
272
+ "$ref": "#/channels/filler/messages/quote.reconfirm.reply"
273
+ }
274
+ ]
275
+ },
276
+ "sendTicketOffer": {
277
+ "action": "send",
278
+ "channel": {
279
+ "$ref": "#/channels/filler"
280
+ },
281
+ "messages": [
282
+ {
283
+ "$ref": "#/channels/filler/messages/ticket.offer"
284
+ }
285
+ ]
286
+ },
287
+ "receiveTicketIntent": {
288
+ "action": "receive",
289
+ "channel": {
290
+ "$ref": "#/channels/filler"
291
+ },
292
+ "messages": [
293
+ {
294
+ "$ref": "#/channels/filler/messages/ticket.intent"
295
+ }
296
+ ]
297
+ },
298
+ "receiveTicketDecline": {
299
+ "action": "receive",
300
+ "channel": {
301
+ "$ref": "#/channels/filler"
302
+ },
303
+ "messages": [
304
+ {
305
+ "$ref": "#/channels/filler/messages/ticket.decline"
306
+ }
307
+ ]
308
+ },
309
+ "sendTicketIntentAck": {
310
+ "action": "send",
311
+ "channel": {
312
+ "$ref": "#/channels/filler"
313
+ },
314
+ "messages": [
315
+ {
316
+ "$ref": "#/channels/filler/messages/ticket.intent.ack"
317
+ }
318
+ ]
319
+ },
320
+ "sendTicketIssued": {
321
+ "action": "send",
322
+ "channel": {
323
+ "$ref": "#/channels/filler"
324
+ },
325
+ "messages": [
326
+ {
327
+ "$ref": "#/channels/filler/messages/ticket.issued"
328
+ }
329
+ ]
330
+ },
331
+ "receiveTicketReceipt": {
332
+ "action": "receive",
333
+ "channel": {
334
+ "$ref": "#/channels/filler"
335
+ },
336
+ "messages": [
337
+ {
338
+ "$ref": "#/channels/filler/messages/ticket.receipt"
339
+ }
340
+ ]
341
+ },
342
+ "receiveFillReported": {
343
+ "action": "receive",
344
+ "channel": {
345
+ "$ref": "#/channels/filler"
346
+ },
347
+ "messages": [
348
+ {
349
+ "$ref": "#/channels/filler/messages/fill.reported"
350
+ }
351
+ ]
352
+ },
353
+ "sendTicketExpired": {
354
+ "action": "send",
355
+ "channel": {
356
+ "$ref": "#/channels/filler"
357
+ },
358
+ "messages": [
359
+ {
360
+ "$ref": "#/channels/filler/messages/ticket.expired"
361
+ }
362
+ ]
363
+ },
364
+ "sendOrderSettled": {
365
+ "action": "send",
366
+ "channel": {
367
+ "$ref": "#/channels/filler"
368
+ },
369
+ "messages": [
370
+ {
371
+ "$ref": "#/channels/filler/messages/order.settled"
372
+ }
373
+ ]
374
+ },
375
+ "sendPenaltyApplied": {
376
+ "action": "send",
377
+ "channel": {
378
+ "$ref": "#/channels/filler"
379
+ },
380
+ "messages": [
381
+ {
382
+ "$ref": "#/channels/filler/messages/penalty.applied"
383
+ }
384
+ ]
385
+ },
386
+ "sendSettleAttestations": {
387
+ "action": "send",
388
+ "channel": {
389
+ "$ref": "#/channels/filler"
390
+ },
391
+ "messages": [
392
+ {
393
+ "$ref": "#/channels/filler/messages/settle.attestations"
394
+ }
395
+ ]
396
+ }
397
+ },
398
+ "components": {
399
+ "messages": {
400
+ "auth.challenge": {
401
+ "name": "auth.challenge",
402
+ "title": "auth.challenge (S2F)",
403
+ "payload": {
404
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
405
+ "schema": {
406
+ "$ref": "messages.schema.json#/$defs/auth.challenge"
407
+ }
408
+ },
409
+ "examples": [
410
+ {
411
+ "name": "auth-challenge-1",
412
+ "payload": {
413
+ "type": "auth.challenge",
414
+ "id": "g-1",
415
+ "sentAt": 1789999980000,
416
+ "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
417
+ "expiresAt": "1790000030",
418
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
419
+ }
420
+ }
421
+ ]
422
+ },
423
+ "auth.response": {
424
+ "name": "auth.response",
425
+ "title": "auth.response (F2S)",
426
+ "payload": {
427
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
428
+ "schema": {
429
+ "$ref": "messages.schema.json#/$defs/auth.response"
430
+ }
431
+ },
432
+ "examples": [
433
+ {
434
+ "name": "auth-response-1",
435
+ "payload": {
436
+ "type": "auth.response",
437
+ "id": "a-1",
438
+ "fillerId": "acme-markets",
439
+ "sentAt": 1789999980100,
440
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
441
+ "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
442
+ "protocolVersion": "1",
443
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
444
+ }
445
+ },
446
+ {
447
+ "name": "auth-response-2",
448
+ "payload": {
449
+ "type": "auth.response",
450
+ "id": "a-2",
451
+ "fillerId": "acme-markets",
452
+ "sentAt": 1789999980100,
453
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
454
+ "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
455
+ "protocolVersion": "1",
456
+ "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
457
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
458
+ }
459
+ }
460
+ ]
461
+ },
462
+ "auth.ok": {
463
+ "name": "auth.ok",
464
+ "title": "auth.ok (S2F)",
465
+ "payload": {
466
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
467
+ "schema": {
468
+ "$ref": "messages.schema.json#/$defs/auth.ok"
469
+ }
470
+ },
471
+ "examples": [
472
+ {
473
+ "name": "auth-ok-1",
474
+ "payload": {
475
+ "type": "auth.ok",
476
+ "id": "g-2",
477
+ "fillerId": "acme-markets",
478
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
479
+ "sentAt": 1789999980200,
480
+ "re": "a-1",
481
+ "heartbeatIntervalMs": 15000
482
+ }
483
+ }
484
+ ]
485
+ },
486
+ "pingS2F": {
487
+ "name": "ping",
488
+ "title": "ping (S2F)",
489
+ "payload": {
490
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
491
+ "schema": {
492
+ "$ref": "messages.schema.json#/$defs/pingS2F"
493
+ }
494
+ },
495
+ "examples": [
496
+ {
497
+ "name": "pingS2F-1",
498
+ "payload": {
499
+ "type": "ping",
500
+ "fillerId": "acme-markets",
501
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
502
+ "sentAt": 1789999995000,
503
+ "id": "gp-1"
504
+ }
505
+ }
506
+ ]
507
+ },
508
+ "pingF2S": {
509
+ "name": "ping",
510
+ "title": "ping (F2S)",
511
+ "payload": {
512
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
513
+ "schema": {
514
+ "$ref": "messages.schema.json#/$defs/pingF2S"
515
+ }
516
+ },
517
+ "examples": [
518
+ {
519
+ "name": "pingF2S-1",
520
+ "payload": {
521
+ "type": "ping",
522
+ "id": "p-1",
523
+ "fillerId": "acme-markets",
524
+ "sentAt": 1789999994000,
525
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
526
+ }
527
+ }
528
+ ]
529
+ },
530
+ "pongS2F": {
531
+ "name": "pong",
532
+ "title": "pong (S2F)",
533
+ "payload": {
534
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
535
+ "schema": {
536
+ "$ref": "messages.schema.json#/$defs/pongS2F"
537
+ }
538
+ },
539
+ "examples": [
540
+ {
541
+ "name": "pongS2F-1",
542
+ "payload": {
543
+ "type": "pong",
544
+ "id": "g-3",
545
+ "fillerId": "acme-markets",
546
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
547
+ "sentAt": 1789999994100,
548
+ "re": "p-1"
549
+ }
550
+ }
551
+ ]
552
+ },
553
+ "pongF2S": {
554
+ "name": "pong",
555
+ "title": "pong (F2S)",
556
+ "payload": {
557
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
558
+ "schema": {
559
+ "$ref": "messages.schema.json#/$defs/pongF2S"
560
+ }
561
+ },
562
+ "examples": [
563
+ {
564
+ "name": "pongF2S-1",
565
+ "payload": {
566
+ "type": "pong",
567
+ "id": "po-1",
568
+ "fillerId": "acme-markets",
569
+ "sentAt": 1789999995100,
570
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
571
+ "re": "gp-1"
572
+ }
573
+ }
574
+ ]
575
+ },
576
+ "errorS2F": {
577
+ "name": "error",
578
+ "title": "error (S2F)",
579
+ "payload": {
580
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
581
+ "schema": {
582
+ "$ref": "messages.schema.json#/$defs/errorS2F"
583
+ }
584
+ },
585
+ "examples": [
586
+ {
587
+ "name": "errorS2F-1",
588
+ "payload": {
589
+ "type": "error",
590
+ "id": "g-4",
591
+ "fillerId": "acme-markets",
592
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
593
+ "sentAt": 1790000023500,
594
+ "re": "i-2",
595
+ "code": "TICKET_CLOSED",
596
+ "message": "ticket.intent after acceptBy"
597
+ }
598
+ },
599
+ {
600
+ "name": "errorS2F-2",
601
+ "payload": {
602
+ "type": "error",
603
+ "id": "g-5",
604
+ "sentAt": 1789999980100,
605
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
606
+ "re": "q-0",
607
+ "code": "UNAUTHENTICATED",
608
+ "message": "quote before auth.ok"
609
+ }
610
+ },
611
+ {
612
+ "name": "errorS2F-3",
613
+ "payload": {
614
+ "type": "error",
615
+ "id": "g-6",
616
+ "fillerId": "acme-markets",
617
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
618
+ "sentAt": 1790000021500,
619
+ "re": "i-3",
620
+ "code": "TICKET_REFUSED",
621
+ "reason": "REPAY_TO_BLOCKLISTED",
622
+ "message": "repayTo is blocklisted by the input token"
623
+ }
624
+ }
625
+ ]
626
+ },
627
+ "errorF2S": {
628
+ "name": "error",
629
+ "title": "error (F2S)",
630
+ "payload": {
631
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
632
+ "schema": {
633
+ "$ref": "messages.schema.json#/$defs/errorF2S"
634
+ }
635
+ },
636
+ "examples": [
637
+ {
638
+ "name": "errorF2S-1",
639
+ "payload": {
640
+ "type": "error",
641
+ "id": "e-1",
642
+ "fillerId": "acme-markets",
643
+ "sentAt": 1790000030000,
644
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
645
+ "re": "g-77",
646
+ "code": "UNKNOWN_TICKET",
647
+ "message": "no ticket for this orderHash"
648
+ }
649
+ }
650
+ ]
651
+ },
652
+ "epoch.weights": {
653
+ "name": "epoch.weights",
654
+ "title": "epoch.weights (S2F)",
655
+ "payload": {
656
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
657
+ "schema": {
658
+ "$ref": "messages.schema.json#/$defs/epoch.weights"
659
+ }
660
+ },
661
+ "examples": [
662
+ {
663
+ "name": "epoch-weights-1",
664
+ "payload": {
665
+ "type": "epoch.weights",
666
+ "id": "g-7",
667
+ "fillerId": "acme-markets",
668
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
669
+ "sentAt": 1789999980300,
670
+ "epochId": "20717",
671
+ "startsAt": "1789948800",
672
+ "endsAt": "1790035200",
673
+ "weightsRoot": "0xa1c24765b55b34e0c206f808d2fac2e448d9db6f154d89f898921a80bad76e92"
674
+ }
675
+ }
676
+ ]
677
+ },
678
+ "quote.request": {
679
+ "name": "quote.request",
680
+ "title": "quote.request (S2F)",
681
+ "payload": {
682
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
683
+ "schema": {
684
+ "$ref": "messages.schema.json#/$defs/quote.request"
685
+ }
686
+ },
687
+ "examples": [
688
+ {
689
+ "name": "quote-request-1",
690
+ "payload": {
691
+ "type": "quote.request",
692
+ "id": "g-8",
693
+ "fillerId": "acme-markets",
694
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
695
+ "sentAt": 1789999990000,
696
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
697
+ "route": {
698
+ "src": "eip155:11155111",
699
+ "dst": "eip155:421614"
700
+ },
701
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
702
+ "inputAmount": "1003000000",
703
+ "outputAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
704
+ "feeBps": 30,
705
+ "fillDeadlineHint": "1790000600",
706
+ "windowCloseAt": 1789999992000,
707
+ "quoteTtlMs": 60000,
708
+ "imbalanceHint": {
709
+ "dstAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
710
+ "netFlow24hUsd": "-12500.50"
711
+ }
712
+ }
713
+ }
714
+ ]
715
+ },
716
+ "quote": {
717
+ "name": "quote",
718
+ "title": "quote (F2S)",
719
+ "payload": {
720
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
721
+ "schema": {
722
+ "$ref": "messages.schema.json#/$defs/quote"
723
+ }
724
+ },
725
+ "examples": [
726
+ {
727
+ "name": "quote-1",
728
+ "payload": {
729
+ "type": "quote",
730
+ "id": "q-1",
731
+ "fillerId": "acme-markets",
732
+ "sentAt": 1789999991000,
733
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
734
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
735
+ "amountOut": "999000000",
736
+ "validUntil": "1790000060",
737
+ "nonce": "1",
738
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
739
+ }
740
+ }
741
+ ]
742
+ },
743
+ "quote.ack": {
744
+ "name": "quote.ack",
745
+ "title": "quote.ack (S2F)",
746
+ "payload": {
747
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
748
+ "schema": {
749
+ "$ref": "messages.schema.json#/$defs/quote.ack"
750
+ }
751
+ },
752
+ "examples": [
753
+ {
754
+ "name": "quote-ack-1",
755
+ "payload": {
756
+ "type": "quote.ack",
757
+ "id": "g-9",
758
+ "fillerId": "acme-markets",
759
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
760
+ "sentAt": 1789999991001,
761
+ "re": "q-1",
762
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
763
+ "quoteHash": "0xe3b63a6ae2730532fb841002059d6e8c92124d95e98c09857d7e0f5ba3512e3b",
764
+ "receivedAt": 1789999991000,
765
+ "status": "COUNTED"
766
+ }
767
+ }
768
+ ]
769
+ },
770
+ "quote.reconfirm": {
771
+ "name": "quote.reconfirm",
772
+ "title": "quote.reconfirm (S2F)",
773
+ "payload": {
774
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
775
+ "schema": {
776
+ "$ref": "messages.schema.json#/$defs/quote.reconfirm"
777
+ }
778
+ },
779
+ "examples": [
780
+ {
781
+ "name": "quote-reconfirm-1",
782
+ "payload": {
783
+ "type": "quote.reconfirm",
784
+ "id": "g-10",
785
+ "fillerId": "acme-markets",
786
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
787
+ "sentAt": 1790000013000,
788
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
789
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
790
+ "order": {
791
+ "user": "0xa11ce00000000000000000000000000000000001",
792
+ "originChainId": "11155111",
793
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
794
+ "inputAmount": "1003000000",
795
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
796
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
797
+ "minReceived": "999000000",
798
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
799
+ "createdAt": "1790000000",
800
+ "fillDeadline": "1790000600",
801
+ "feeBps": "30"
802
+ },
803
+ "amountOut": "999000000",
804
+ "ticketTtl": 360,
805
+ "replyBy": 1790000016000
806
+ }
807
+ }
808
+ ]
809
+ },
810
+ "quote.reconfirm.reply": {
811
+ "name": "quote.reconfirm.reply",
812
+ "title": "quote.reconfirm.reply (F2S)",
813
+ "payload": {
814
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
815
+ "schema": {
816
+ "$ref": "messages.schema.json#/$defs/quote.reconfirm.reply"
817
+ }
818
+ },
819
+ "examples": [
820
+ {
821
+ "name": "quote-reconfirm-reply-1",
822
+ "payload": {
823
+ "type": "quote.reconfirm.reply",
824
+ "id": "r-1",
825
+ "fillerId": "acme-markets",
826
+ "sentAt": 1790000014000,
827
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
828
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
829
+ "accept": true,
830
+ "validUntil": "1790000400",
831
+ "nonce": "2",
832
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
833
+ }
834
+ },
835
+ {
836
+ "name": "quote-reconfirm-reply-2",
837
+ "payload": {
838
+ "type": "quote.reconfirm.reply",
839
+ "id": "r-2",
840
+ "fillerId": "acme-markets",
841
+ "sentAt": 1790000014000,
842
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
843
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
844
+ "accept": false
845
+ }
846
+ }
847
+ ]
848
+ },
849
+ "ticket.offer": {
850
+ "name": "ticket.offer",
851
+ "title": "ticket.offer (S2F)",
852
+ "payload": {
853
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
854
+ "schema": {
855
+ "$ref": "messages.schema.json#/$defs/ticket.offer"
856
+ }
857
+ },
858
+ "examples": [
859
+ {
860
+ "name": "ticket-offer-1",
861
+ "payload": {
862
+ "type": "ticket.offer",
863
+ "id": "g-20",
864
+ "fillerId": "acme-markets",
865
+ "sentAt": 1790000020000,
866
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
867
+ "attempt": 0,
868
+ "order": {
869
+ "user": "0xa11ce00000000000000000000000000000000001",
870
+ "originChainId": "11155111",
871
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
872
+ "inputAmount": "1003000000",
873
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
874
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
875
+ "minReceived": "999000000",
876
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
877
+ "createdAt": "1790000000",
878
+ "fillDeadline": "1790000600",
879
+ "feeBps": "30"
880
+ },
881
+ "amountOut": "999000000",
882
+ "validFrom": "1790000040",
883
+ "validUntil": "1790000400",
884
+ "acceptBy": 1790000023000,
885
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
886
+ }
887
+ }
888
+ ]
889
+ },
890
+ "ticket.intent": {
891
+ "name": "ticket.intent",
892
+ "title": "ticket.intent (F2S)",
893
+ "payload": {
894
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
895
+ "schema": {
896
+ "$ref": "messages.schema.json#/$defs/ticket.intent"
897
+ }
898
+ },
899
+ "examples": [
900
+ {
901
+ "name": "ticket-intent-1",
902
+ "payload": {
903
+ "type": "ticket.intent",
904
+ "id": "i-1",
905
+ "fillerId": "acme-markets",
906
+ "sentAt": 1790000021000,
907
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
908
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
909
+ "attempt": 0,
910
+ "validFrom": "1790000040",
911
+ "validUntil": "1790000400",
912
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
913
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
914
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
915
+ }
916
+ },
917
+ {
918
+ "name": "ticket-intent-2",
919
+ "payload": {
920
+ "type": "ticket.intent",
921
+ "id": "i-4",
922
+ "fillerId": "acme-markets",
923
+ "sentAt": 1790000021000,
924
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
925
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
926
+ "attempt": 2,
927
+ "validFrom": "1790000040",
928
+ "validUntil": "1790000400",
929
+ "deliveryKey": "0x0000000000000000000000000000000000000000",
930
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
931
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
932
+ }
933
+ }
934
+ ]
935
+ },
936
+ "ticket.decline": {
937
+ "name": "ticket.decline",
938
+ "title": "ticket.decline (F2S)",
939
+ "payload": {
940
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
941
+ "schema": {
942
+ "$ref": "messages.schema.json#/$defs/ticket.decline"
943
+ }
944
+ },
945
+ "examples": [
946
+ {
947
+ "name": "ticket-decline-1",
948
+ "payload": {
949
+ "type": "ticket.decline",
950
+ "id": "d-1",
951
+ "fillerId": "acme-markets",
952
+ "sentAt": 1790000027001,
953
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
954
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
955
+ "attempt": 0,
956
+ "reason": "TICKET_ISSUED_LATE",
957
+ "detail": "ticket.issued 3001 ms after acceptBy"
958
+ }
959
+ }
960
+ ]
961
+ },
962
+ "ticket.intent.ack": {
963
+ "name": "ticket.intent.ack",
964
+ "title": "ticket.intent.ack (S2F)",
965
+ "payload": {
966
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
967
+ "schema": {
968
+ "$ref": "messages.schema.json#/$defs/ticket.intent.ack"
969
+ }
970
+ },
971
+ "examples": [
972
+ {
973
+ "name": "ticket-intent-ack-1",
974
+ "payload": {
975
+ "type": "ticket.intent.ack",
976
+ "id": "g-11",
977
+ "fillerId": "acme-markets",
978
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
979
+ "sentAt": 1790000021001,
980
+ "re": "i-1",
981
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
982
+ "attempt": 0,
983
+ "intentHash": "0xd56c4d45d5405c70c5220da1c3e49d6051b0370a3040d1709ae097b37f3ba041",
984
+ "receivedAt": 1790000021000
985
+ }
986
+ }
987
+ ]
988
+ },
989
+ "ticket.issued": {
990
+ "name": "ticket.issued",
991
+ "title": "ticket.issued (S2F)",
992
+ "payload": {
993
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
994
+ "schema": {
995
+ "$ref": "messages.schema.json#/$defs/ticket.issued"
996
+ }
997
+ },
998
+ "examples": [
999
+ {
1000
+ "name": "ticket-issued-1",
1001
+ "payload": {
1002
+ "type": "ticket.issued",
1003
+ "id": "g-12",
1004
+ "fillerId": "acme-markets",
1005
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1006
+ "sentAt": 1790000024000,
1007
+ "form": "evm",
1008
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1009
+ "attempt": 0,
1010
+ "ticket": {
1011
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1012
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
1013
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
1014
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
1015
+ "attempt": 0,
1016
+ "validFrom": "1790000040",
1017
+ "validUntil": "1790000400"
1018
+ },
1019
+ "ticketSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
1020
+ }
1021
+ },
1022
+ {
1023
+ "name": "ticket-issued-2",
1024
+ "payload": {
1025
+ "type": "ticket.issued",
1026
+ "id": "g-13",
1027
+ "fillerId": "acme-markets",
1028
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1029
+ "sentAt": 1790000024000,
1030
+ "form": "canton",
1031
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1032
+ "attempt": 2,
1033
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
1034
+ "validUntil": "1790000400",
1035
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc"
1036
+ }
1037
+ }
1038
+ ]
1039
+ },
1040
+ "ticket.receipt": {
1041
+ "name": "ticket.receipt",
1042
+ "title": "ticket.receipt (F2S)",
1043
+ "payload": {
1044
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1045
+ "schema": {
1046
+ "$ref": "messages.schema.json#/$defs/ticket.receipt"
1047
+ }
1048
+ },
1049
+ "examples": [
1050
+ {
1051
+ "name": "ticket-receipt-1",
1052
+ "payload": {
1053
+ "type": "ticket.receipt",
1054
+ "id": "rc-1",
1055
+ "fillerId": "acme-markets",
1056
+ "sentAt": 1790000025000,
1057
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1058
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1059
+ "attempt": 0,
1060
+ "ticketHash": "0x8eaef6b8d59e72288487b0def58e0eb9200fa7600170351af985111eaec5a0a9",
1061
+ "ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
1062
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
1063
+ }
1064
+ }
1065
+ ]
1066
+ },
1067
+ "fill.reported": {
1068
+ "name": "fill.reported",
1069
+ "title": "fill.reported (F2S)",
1070
+ "payload": {
1071
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1072
+ "schema": {
1073
+ "$ref": "messages.schema.json#/$defs/fill.reported"
1074
+ }
1075
+ },
1076
+ "examples": [
1077
+ {
1078
+ "name": "fill-reported-1",
1079
+ "payload": {
1080
+ "type": "fill.reported",
1081
+ "id": "f-1",
1082
+ "fillerId": "acme-markets",
1083
+ "sentAt": 1790000060000,
1084
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1085
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1086
+ "attempt": 0,
1087
+ "txRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740"
1088
+ }
1089
+ }
1090
+ ]
1091
+ },
1092
+ "ticket.expired": {
1093
+ "name": "ticket.expired",
1094
+ "title": "ticket.expired (S2F)",
1095
+ "payload": {
1096
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1097
+ "schema": {
1098
+ "$ref": "messages.schema.json#/$defs/ticket.expired"
1099
+ }
1100
+ },
1101
+ "examples": [
1102
+ {
1103
+ "name": "ticket-expired-1",
1104
+ "payload": {
1105
+ "type": "ticket.expired",
1106
+ "id": "g-14",
1107
+ "fillerId": "acme-markets",
1108
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1109
+ "sentAt": 1790000460000,
1110
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1111
+ "attempt": 0,
1112
+ "result": "FILLED"
1113
+ }
1114
+ },
1115
+ {
1116
+ "name": "ticket-expired-2",
1117
+ "payload": {
1118
+ "type": "ticket.expired",
1119
+ "id": "g-15",
1120
+ "fillerId": "acme-markets",
1121
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1122
+ "sentAt": 1790000460000,
1123
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1124
+ "attempt": 0,
1125
+ "result": "EXEMPT",
1126
+ "exemptReason": "DESTINATION_HALTED"
1127
+ }
1128
+ }
1129
+ ]
1130
+ },
1131
+ "order.settled": {
1132
+ "name": "order.settled",
1133
+ "title": "order.settled (S2F)",
1134
+ "payload": {
1135
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1136
+ "schema": {
1137
+ "$ref": "messages.schema.json#/$defs/order.settled"
1138
+ }
1139
+ },
1140
+ "examples": [
1141
+ {
1142
+ "name": "order-settled-1",
1143
+ "payload": {
1144
+ "type": "order.settled",
1145
+ "id": "g-16",
1146
+ "fillerId": "acme-markets",
1147
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1148
+ "sentAt": 1790000900000,
1149
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1150
+ "payout": "1000000000",
1151
+ "fee": "3000000",
1152
+ "penaltyWithheld": "0",
1153
+ "txRef": "0x8d99b79edaf0d9c062753bb308a72f52ec1ed8873fe06580c14524bb66a9f614"
1154
+ }
1155
+ }
1156
+ ]
1157
+ },
1158
+ "penalty.applied": {
1159
+ "name": "penalty.applied",
1160
+ "title": "penalty.applied (S2F)",
1161
+ "payload": {
1162
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1163
+ "schema": {
1164
+ "$ref": "messages.schema.json#/$defs/penalty.applied"
1165
+ }
1166
+ },
1167
+ "examples": [
1168
+ {
1169
+ "name": "penalty-applied-1",
1170
+ "payload": {
1171
+ "type": "penalty.applied",
1172
+ "id": "g-17",
1173
+ "fillerId": "acme-markets",
1174
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1175
+ "sentAt": 1790001000000,
1176
+ "violationId": "v-1",
1177
+ "code": "NO_SHOW",
1178
+ "step": "L1",
1179
+ "details": {
1180
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1181
+ "attempt": 0
1182
+ }
1183
+ }
1184
+ }
1185
+ ]
1186
+ },
1187
+ "settle.attestations": {
1188
+ "name": "settle.attestations",
1189
+ "title": "settle.attestations (S2F)",
1190
+ "payload": {
1191
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1192
+ "schema": {
1193
+ "$ref": "messages.schema.json#/$defs/settle.attestations"
1194
+ }
1195
+ },
1196
+ "examples": [
1197
+ {
1198
+ "name": "settle-attestations-1",
1199
+ "payload": {
1200
+ "type": "settle.attestations",
1201
+ "id": "g-sa-1",
1202
+ "fillerId": "acme-markets",
1203
+ "sentAt": 1790000160000,
1204
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1205
+ "attempt": 0,
1206
+ "sourceChainId": "eip155:11155111",
1207
+ "proof": {
1208
+ "kind": 1,
1209
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1210
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
1211
+ "fillRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740",
1212
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1213
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
1214
+ "amountDelivered": "999000000",
1215
+ "filledAt": "1790000100",
1216
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
1217
+ "repayTo": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1218
+ "attempt": 0,
1219
+ "setId": 1
1220
+ },
1221
+ "signatures": [
1222
+ {
1223
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
1224
+ "signature": "0x4efcf401d43002b059a1bf5f12a1a6c868a1917a533cb2df79022845bd8704da1d5a6a67e206d057e29bd06efc19fef0afcc0ece462e732268da4cedb57e4c321c"
1225
+ },
1226
+ {
1227
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
1228
+ "signature": "0x29a0148c3a5cdcadf63a4aaef763784751a3fa6064dc276330227729ddbc69015ea1efdab546cf1552ca726de9ccf4480e8d5ff3c3ed9b718c4964b5bc03ddcf1c"
1229
+ }
1230
+ ],
1231
+ "setId": 1,
1232
+ "threshold": 2,
1233
+ "refundAfter": "1790002400",
1234
+ "sig": "0x1d81fa8e56999d9bf8365f2aa18025291198a51b769dcddd7ebaaa3b61eca32f262f218caf2618bc8b351c65eca89417defeb5f3905f7327a68e9cdd1d29f99d1b"
1235
+ }
1236
+ },
1237
+ {
1238
+ "name": "settle-attestations-2",
1239
+ "payload": {
1240
+ "type": "settle.attestations",
1241
+ "id": "g-sa-3",
1242
+ "fillerId": "cancore-reserve",
1243
+ "sentAt": 1789999760000,
1244
+ "orderHash": "0x770f1ebba8ab5b96e3efbed39c0f630d56f934f9f232771abaccdb0cf17ca204",
1245
+ "attempt": 1,
1246
+ "sourceChainId": "canton:mainnet",
1247
+ "proof": {
1248
+ "kind": 1,
1249
+ "orderHash": "0x770f1ebba8ab5b96e3efbed39c0f630d56f934f9f232771abaccdb0cf17ca204",
1250
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000000001",
1251
+ "fillRef": "0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471",
1252
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1253
+ "outputAsset": "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
1254
+ "amountDelivered": "1200250000",
1255
+ "filledAt": "1789999700",
1256
+ "fillerId": "0xe3a8297b35498225c7903ca1a305ef64fcd783cf42c6c687b7b332c83d4dd837",
1257
+ "repayTo": "0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d",
1258
+ "attempt": 1,
1259
+ "setId": 3
1260
+ },
1261
+ "signatures": [
1262
+ {
1263
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
1264
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3",
1265
+ "signature": "0x3045022100a7554c31e432a90ae7384910ae3f9128b41034769dd072319fcf8131bb8062b1022006ac576ed5858c881238334835d35f5aacb765b16842a3f926a540355997883e"
1266
+ },
1267
+ {
1268
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
1269
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e",
1270
+ "signature": "0x3044022035cdea625125d6b555d9ab2405afb085c1d9a65d780048e607ace4f78740f5fc02207d4236924fd1e29bdc1576077c56da025ebfe63ed0c13bb720baa9ed4a444a93"
1271
+ },
1272
+ {
1273
+ "signer": "0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0",
1274
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b",
1275
+ "signature": "0x3045022100b4523bba8213ce348a7334680f4b3c54bfa3b815c907993415a43dc54452cb0e02201fc0f93a9199dfe16f3aff06684146bf6f28ff1df5efea5d874b3d877051678b"
1276
+ }
1277
+ ],
1278
+ "setId": 3,
1279
+ "threshold": 2,
1280
+ "refundAfter": "1790001800",
1281
+ "sig": "0x31ef2d7b9fb10cc97215e965e9cc866e6e595ba92d9f630a00fbaedc3241399f0d65b0e75c81504ba0989eb4264e55e46b571bd7252f45699ab4792d40e5ca931b"
1282
+ }
1283
+ }
1284
+ ]
1285
+ }
1286
+ }
1287
+ }
1288
+ }