@cancore/contracts 0.1.0 → 0.2.0-rc.10

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