@cancore/contracts 0.1.0 → 0.2.0-rc.13

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 +522 -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 +1774 -29
  9. package/dist/index.js +3692 -21
  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 +1587 -0
  34. package/spec/protocol/messages.schema.json +906 -0
  35. package/spec/protocol/records.schema.json +94 -0
  36. package/spec/protocol/rest.schema.json +193 -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 +743 -0
  49. package/spec/protocol/vectors/records.json +81 -0
  50. package/spec/protocol/vectors/settle-attestations.json +544 -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,1587 @@
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
+ "canton.prepare": {
137
+ "$ref": "#/components/messages/canton.prepare"
138
+ },
139
+ "canton.prepared": {
140
+ "$ref": "#/components/messages/canton.prepared"
141
+ },
142
+ "canton.submit": {
143
+ "$ref": "#/components/messages/canton.submit"
144
+ },
145
+ "canton.submitted": {
146
+ "$ref": "#/components/messages/canton.submitted"
147
+ }
148
+ }
149
+ }
150
+ },
151
+ "operations": {
152
+ "sendAuthOk": {
153
+ "action": "send",
154
+ "channel": {
155
+ "$ref": "#/channels/filler"
156
+ },
157
+ "messages": [
158
+ {
159
+ "$ref": "#/channels/filler/messages/auth.ok"
160
+ }
161
+ ]
162
+ },
163
+ "sendPing": {
164
+ "action": "send",
165
+ "channel": {
166
+ "$ref": "#/channels/filler"
167
+ },
168
+ "messages": [
169
+ {
170
+ "$ref": "#/channels/filler/messages/pingS2F"
171
+ }
172
+ ]
173
+ },
174
+ "receivePing": {
175
+ "action": "receive",
176
+ "channel": {
177
+ "$ref": "#/channels/filler"
178
+ },
179
+ "messages": [
180
+ {
181
+ "$ref": "#/channels/filler/messages/pingF2S"
182
+ }
183
+ ]
184
+ },
185
+ "sendPong": {
186
+ "action": "send",
187
+ "channel": {
188
+ "$ref": "#/channels/filler"
189
+ },
190
+ "messages": [
191
+ {
192
+ "$ref": "#/channels/filler/messages/pongS2F"
193
+ }
194
+ ]
195
+ },
196
+ "receivePong": {
197
+ "action": "receive",
198
+ "channel": {
199
+ "$ref": "#/channels/filler"
200
+ },
201
+ "messages": [
202
+ {
203
+ "$ref": "#/channels/filler/messages/pongF2S"
204
+ }
205
+ ]
206
+ },
207
+ "sendError": {
208
+ "action": "send",
209
+ "channel": {
210
+ "$ref": "#/channels/filler"
211
+ },
212
+ "messages": [
213
+ {
214
+ "$ref": "#/channels/filler/messages/errorS2F"
215
+ }
216
+ ]
217
+ },
218
+ "receiveError": {
219
+ "action": "receive",
220
+ "channel": {
221
+ "$ref": "#/channels/filler"
222
+ },
223
+ "messages": [
224
+ {
225
+ "$ref": "#/channels/filler/messages/errorF2S"
226
+ }
227
+ ]
228
+ },
229
+ "sendEpochWeights": {
230
+ "action": "send",
231
+ "channel": {
232
+ "$ref": "#/channels/filler"
233
+ },
234
+ "messages": [
235
+ {
236
+ "$ref": "#/channels/filler/messages/epoch.weights"
237
+ }
238
+ ]
239
+ },
240
+ "sendQuoteRequest": {
241
+ "action": "send",
242
+ "channel": {
243
+ "$ref": "#/channels/filler"
244
+ },
245
+ "messages": [
246
+ {
247
+ "$ref": "#/channels/filler/messages/quote.request"
248
+ }
249
+ ]
250
+ },
251
+ "receiveQuote": {
252
+ "action": "receive",
253
+ "channel": {
254
+ "$ref": "#/channels/filler"
255
+ },
256
+ "messages": [
257
+ {
258
+ "$ref": "#/channels/filler/messages/quote"
259
+ }
260
+ ]
261
+ },
262
+ "sendQuoteAck": {
263
+ "action": "send",
264
+ "channel": {
265
+ "$ref": "#/channels/filler"
266
+ },
267
+ "messages": [
268
+ {
269
+ "$ref": "#/channels/filler/messages/quote.ack"
270
+ }
271
+ ]
272
+ },
273
+ "sendQuoteReconfirm": {
274
+ "action": "send",
275
+ "channel": {
276
+ "$ref": "#/channels/filler"
277
+ },
278
+ "messages": [
279
+ {
280
+ "$ref": "#/channels/filler/messages/quote.reconfirm"
281
+ }
282
+ ]
283
+ },
284
+ "receiveQuoteReconfirmReply": {
285
+ "action": "receive",
286
+ "channel": {
287
+ "$ref": "#/channels/filler"
288
+ },
289
+ "messages": [
290
+ {
291
+ "$ref": "#/channels/filler/messages/quote.reconfirm.reply"
292
+ }
293
+ ]
294
+ },
295
+ "sendTicketOffer": {
296
+ "action": "send",
297
+ "channel": {
298
+ "$ref": "#/channels/filler"
299
+ },
300
+ "messages": [
301
+ {
302
+ "$ref": "#/channels/filler/messages/ticket.offer"
303
+ }
304
+ ]
305
+ },
306
+ "receiveTicketIntent": {
307
+ "action": "receive",
308
+ "channel": {
309
+ "$ref": "#/channels/filler"
310
+ },
311
+ "messages": [
312
+ {
313
+ "$ref": "#/channels/filler/messages/ticket.intent"
314
+ }
315
+ ]
316
+ },
317
+ "receiveTicketDecline": {
318
+ "action": "receive",
319
+ "channel": {
320
+ "$ref": "#/channels/filler"
321
+ },
322
+ "messages": [
323
+ {
324
+ "$ref": "#/channels/filler/messages/ticket.decline"
325
+ }
326
+ ]
327
+ },
328
+ "sendTicketIntentAck": {
329
+ "action": "send",
330
+ "channel": {
331
+ "$ref": "#/channels/filler"
332
+ },
333
+ "messages": [
334
+ {
335
+ "$ref": "#/channels/filler/messages/ticket.intent.ack"
336
+ }
337
+ ]
338
+ },
339
+ "sendTicketIssued": {
340
+ "action": "send",
341
+ "channel": {
342
+ "$ref": "#/channels/filler"
343
+ },
344
+ "messages": [
345
+ {
346
+ "$ref": "#/channels/filler/messages/ticket.issued"
347
+ }
348
+ ]
349
+ },
350
+ "receiveTicketReceipt": {
351
+ "action": "receive",
352
+ "channel": {
353
+ "$ref": "#/channels/filler"
354
+ },
355
+ "messages": [
356
+ {
357
+ "$ref": "#/channels/filler/messages/ticket.receipt"
358
+ }
359
+ ]
360
+ },
361
+ "receiveFillReported": {
362
+ "action": "receive",
363
+ "channel": {
364
+ "$ref": "#/channels/filler"
365
+ },
366
+ "messages": [
367
+ {
368
+ "$ref": "#/channels/filler/messages/fill.reported"
369
+ }
370
+ ]
371
+ },
372
+ "sendTicketExpired": {
373
+ "action": "send",
374
+ "channel": {
375
+ "$ref": "#/channels/filler"
376
+ },
377
+ "messages": [
378
+ {
379
+ "$ref": "#/channels/filler/messages/ticket.expired"
380
+ }
381
+ ]
382
+ },
383
+ "sendOrderSettled": {
384
+ "action": "send",
385
+ "channel": {
386
+ "$ref": "#/channels/filler"
387
+ },
388
+ "messages": [
389
+ {
390
+ "$ref": "#/channels/filler/messages/order.settled"
391
+ }
392
+ ]
393
+ },
394
+ "sendPenaltyApplied": {
395
+ "action": "send",
396
+ "channel": {
397
+ "$ref": "#/channels/filler"
398
+ },
399
+ "messages": [
400
+ {
401
+ "$ref": "#/channels/filler/messages/penalty.applied"
402
+ }
403
+ ]
404
+ },
405
+ "sendSettleAttestations": {
406
+ "action": "send",
407
+ "channel": {
408
+ "$ref": "#/channels/filler"
409
+ },
410
+ "messages": [
411
+ {
412
+ "$ref": "#/channels/filler/messages/settle.attestations"
413
+ }
414
+ ]
415
+ },
416
+ "receiveCantonPrepare": {
417
+ "action": "receive",
418
+ "channel": {
419
+ "$ref": "#/channels/filler"
420
+ },
421
+ "messages": [
422
+ {
423
+ "$ref": "#/channels/filler/messages/canton.prepare"
424
+ }
425
+ ]
426
+ },
427
+ "sendCantonPrepared": {
428
+ "action": "send",
429
+ "channel": {
430
+ "$ref": "#/channels/filler"
431
+ },
432
+ "messages": [
433
+ {
434
+ "$ref": "#/channels/filler/messages/canton.prepared"
435
+ }
436
+ ]
437
+ },
438
+ "receiveCantonSubmit": {
439
+ "action": "receive",
440
+ "channel": {
441
+ "$ref": "#/channels/filler"
442
+ },
443
+ "messages": [
444
+ {
445
+ "$ref": "#/channels/filler/messages/canton.submit"
446
+ }
447
+ ]
448
+ },
449
+ "sendCantonSubmitted": {
450
+ "action": "send",
451
+ "channel": {
452
+ "$ref": "#/channels/filler"
453
+ },
454
+ "messages": [
455
+ {
456
+ "$ref": "#/channels/filler/messages/canton.submitted"
457
+ }
458
+ ]
459
+ }
460
+ },
461
+ "components": {
462
+ "messages": {
463
+ "auth.ok": {
464
+ "name": "auth.ok",
465
+ "title": "auth.ok (S2F)",
466
+ "payload": {
467
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
468
+ "schema": {
469
+ "$ref": "messages.schema.json#/$defs/auth.ok"
470
+ }
471
+ },
472
+ "examples": [
473
+ {
474
+ "name": "auth-ok-1",
475
+ "payload": {
476
+ "type": "auth.ok",
477
+ "id": "g-2",
478
+ "fillerId": "acme-markets",
479
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
480
+ "sentAt": 1789999980200,
481
+ "re": "a-1",
482
+ "heartbeatIntervalMs": 15000
483
+ }
484
+ }
485
+ ]
486
+ },
487
+ "pingS2F": {
488
+ "name": "ping",
489
+ "title": "ping (S2F)",
490
+ "payload": {
491
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
492
+ "schema": {
493
+ "$ref": "messages.schema.json#/$defs/pingS2F"
494
+ }
495
+ },
496
+ "examples": [
497
+ {
498
+ "name": "pingS2F-1",
499
+ "payload": {
500
+ "type": "ping",
501
+ "fillerId": "acme-markets",
502
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
503
+ "sentAt": 1789999995000,
504
+ "id": "gp-1"
505
+ }
506
+ }
507
+ ]
508
+ },
509
+ "pingF2S": {
510
+ "name": "ping",
511
+ "title": "ping (F2S)",
512
+ "payload": {
513
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
514
+ "schema": {
515
+ "$ref": "messages.schema.json#/$defs/pingF2S"
516
+ }
517
+ },
518
+ "examples": [
519
+ {
520
+ "name": "pingF2S-1",
521
+ "payload": {
522
+ "type": "ping",
523
+ "id": "p-1",
524
+ "fillerId": "acme-markets",
525
+ "sentAt": 1789999994000,
526
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
527
+ }
528
+ }
529
+ ]
530
+ },
531
+ "pongS2F": {
532
+ "name": "pong",
533
+ "title": "pong (S2F)",
534
+ "payload": {
535
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
536
+ "schema": {
537
+ "$ref": "messages.schema.json#/$defs/pongS2F"
538
+ }
539
+ },
540
+ "examples": [
541
+ {
542
+ "name": "pongS2F-1",
543
+ "payload": {
544
+ "type": "pong",
545
+ "id": "g-3",
546
+ "fillerId": "acme-markets",
547
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
548
+ "sentAt": 1789999994100,
549
+ "re": "p-1"
550
+ }
551
+ }
552
+ ]
553
+ },
554
+ "pongF2S": {
555
+ "name": "pong",
556
+ "title": "pong (F2S)",
557
+ "payload": {
558
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
559
+ "schema": {
560
+ "$ref": "messages.schema.json#/$defs/pongF2S"
561
+ }
562
+ },
563
+ "examples": [
564
+ {
565
+ "name": "pongF2S-1",
566
+ "payload": {
567
+ "type": "pong",
568
+ "id": "po-1",
569
+ "fillerId": "acme-markets",
570
+ "sentAt": 1789999995100,
571
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
572
+ "re": "gp-1"
573
+ }
574
+ }
575
+ ]
576
+ },
577
+ "errorS2F": {
578
+ "name": "error",
579
+ "title": "error (S2F)",
580
+ "payload": {
581
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
582
+ "schema": {
583
+ "$ref": "messages.schema.json#/$defs/errorS2F"
584
+ }
585
+ },
586
+ "examples": [
587
+ {
588
+ "name": "errorS2F-1",
589
+ "payload": {
590
+ "type": "error",
591
+ "id": "g-4",
592
+ "fillerId": "acme-markets",
593
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
594
+ "sentAt": 1790000023500,
595
+ "re": "i-2",
596
+ "code": "TICKET_CLOSED",
597
+ "message": "ticket.intent after acceptBy"
598
+ }
599
+ },
600
+ {
601
+ "name": "errorS2F-2",
602
+ "payload": {
603
+ "type": "error",
604
+ "id": "g-5",
605
+ "sentAt": 1789999980150,
606
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
607
+ "re": "a-2",
608
+ "code": "UNAUTHENTICATED",
609
+ "message": "no live challenge of this fillerId with this nonce"
610
+ }
611
+ },
612
+ {
613
+ "name": "errorS2F-3",
614
+ "payload": {
615
+ "type": "error",
616
+ "id": "g-6",
617
+ "fillerId": "acme-markets",
618
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
619
+ "sentAt": 1790000021500,
620
+ "re": "i-3",
621
+ "code": "TICKET_REFUSED",
622
+ "reason": "REPAY_TO_BLOCKLISTED",
623
+ "message": "repayTo is blocklisted by the input token"
624
+ }
625
+ },
626
+ {
627
+ "name": "errorS2F-4",
628
+ "payload": {
629
+ "type": "error",
630
+ "id": "g-18",
631
+ "fillerId": "acme-markets",
632
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
633
+ "sentAt": 1789999991500,
634
+ "re": "q-2",
635
+ "code": "RATE_LIMITED",
636
+ "message": "quote rate class over its limit",
637
+ "retryAfterMs": 850
638
+ }
639
+ }
640
+ ]
641
+ },
642
+ "errorF2S": {
643
+ "name": "error",
644
+ "title": "error (F2S)",
645
+ "payload": {
646
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
647
+ "schema": {
648
+ "$ref": "messages.schema.json#/$defs/errorF2S"
649
+ }
650
+ },
651
+ "examples": [
652
+ {
653
+ "name": "errorF2S-1",
654
+ "payload": {
655
+ "type": "error",
656
+ "id": "e-1",
657
+ "fillerId": "acme-markets",
658
+ "sentAt": 1790000030000,
659
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
660
+ "re": "g-77",
661
+ "code": "UNKNOWN_TICKET",
662
+ "message": "no ticket for this orderHash"
663
+ }
664
+ }
665
+ ]
666
+ },
667
+ "epoch.weights": {
668
+ "name": "epoch.weights",
669
+ "title": "epoch.weights (S2F)",
670
+ "payload": {
671
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
672
+ "schema": {
673
+ "$ref": "messages.schema.json#/$defs/epoch.weights"
674
+ }
675
+ },
676
+ "examples": [
677
+ {
678
+ "name": "epoch-weights-1",
679
+ "payload": {
680
+ "type": "epoch.weights",
681
+ "id": "g-7",
682
+ "fillerId": "acme-markets",
683
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
684
+ "sentAt": 1789999980300,
685
+ "epochId": "20717",
686
+ "startsAt": "1789948800",
687
+ "endsAt": "1790035200",
688
+ "weightsRoot": "0xa1c24765b55b34e0c206f808d2fac2e448d9db6f154d89f898921a80bad76e92"
689
+ }
690
+ }
691
+ ]
692
+ },
693
+ "quote.request": {
694
+ "name": "quote.request",
695
+ "title": "quote.request (S2F)",
696
+ "payload": {
697
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
698
+ "schema": {
699
+ "$ref": "messages.schema.json#/$defs/quote.request"
700
+ }
701
+ },
702
+ "examples": [
703
+ {
704
+ "name": "quote-request-1",
705
+ "payload": {
706
+ "type": "quote.request",
707
+ "id": "g-8",
708
+ "fillerId": "acme-markets",
709
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
710
+ "sentAt": 1789999990000,
711
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
712
+ "route": {
713
+ "src": "eip155:11155111",
714
+ "dst": "eip155:421614"
715
+ },
716
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
717
+ "inputAmount": "1003000000",
718
+ "outputAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
719
+ "feeBps": 30,
720
+ "fillDeadlineHint": "1790000600",
721
+ "windowCloseAt": 1789999992000,
722
+ "quoteTtlMs": 60000,
723
+ "imbalanceHint": {
724
+ "dstAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
725
+ "netFlow24hUsd": "-12500.50"
726
+ }
727
+ }
728
+ }
729
+ ]
730
+ },
731
+ "quote": {
732
+ "name": "quote",
733
+ "title": "quote (F2S)",
734
+ "payload": {
735
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
736
+ "schema": {
737
+ "$ref": "messages.schema.json#/$defs/quote"
738
+ }
739
+ },
740
+ "examples": [
741
+ {
742
+ "name": "quote-1",
743
+ "payload": {
744
+ "type": "quote",
745
+ "id": "q-1",
746
+ "fillerId": "acme-markets",
747
+ "sentAt": 1789999991000,
748
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
749
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
750
+ "amountOut": "999000000",
751
+ "validUntil": "1790000060",
752
+ "nonce": "1",
753
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
754
+ }
755
+ }
756
+ ]
757
+ },
758
+ "quote.ack": {
759
+ "name": "quote.ack",
760
+ "title": "quote.ack (S2F)",
761
+ "payload": {
762
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
763
+ "schema": {
764
+ "$ref": "messages.schema.json#/$defs/quote.ack"
765
+ }
766
+ },
767
+ "examples": [
768
+ {
769
+ "name": "quote-ack-1",
770
+ "payload": {
771
+ "type": "quote.ack",
772
+ "id": "g-9",
773
+ "fillerId": "acme-markets",
774
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
775
+ "sentAt": 1789999991001,
776
+ "re": "q-1",
777
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
778
+ "quoteHash": "0xe3b63a6ae2730532fb841002059d6e8c92124d95e98c09857d7e0f5ba3512e3b",
779
+ "receivedAt": 1789999991000,
780
+ "status": "COUNTED"
781
+ }
782
+ }
783
+ ]
784
+ },
785
+ "quote.reconfirm": {
786
+ "name": "quote.reconfirm",
787
+ "title": "quote.reconfirm (S2F)",
788
+ "payload": {
789
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
790
+ "schema": {
791
+ "$ref": "messages.schema.json#/$defs/quote.reconfirm"
792
+ }
793
+ },
794
+ "examples": [
795
+ {
796
+ "name": "quote-reconfirm-1",
797
+ "payload": {
798
+ "type": "quote.reconfirm",
799
+ "id": "g-10",
800
+ "fillerId": "acme-markets",
801
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
802
+ "sentAt": 1790000013000,
803
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
804
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
805
+ "order": {
806
+ "user": "0xa11ce00000000000000000000000000000000001",
807
+ "originChainId": "11155111",
808
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
809
+ "inputAmount": "1003000000",
810
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
811
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
812
+ "minReceived": "999000000",
813
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
814
+ "createdAt": "1790000000",
815
+ "fillDeadline": "1790000600",
816
+ "feeBps": "30",
817
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5"
818
+ },
819
+ "amountOut": "999000000",
820
+ "ticketTtl": 360,
821
+ "replyBy": 1790000016000
822
+ }
823
+ }
824
+ ]
825
+ },
826
+ "quote.reconfirm.reply": {
827
+ "name": "quote.reconfirm.reply",
828
+ "title": "quote.reconfirm.reply (F2S)",
829
+ "payload": {
830
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
831
+ "schema": {
832
+ "$ref": "messages.schema.json#/$defs/quote.reconfirm.reply"
833
+ }
834
+ },
835
+ "examples": [
836
+ {
837
+ "name": "quote-reconfirm-reply-1",
838
+ "payload": {
839
+ "type": "quote.reconfirm.reply",
840
+ "id": "r-1",
841
+ "fillerId": "acme-markets",
842
+ "sentAt": 1790000014000,
843
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
844
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
845
+ "accept": true,
846
+ "validUntil": "1790000400",
847
+ "nonce": "2",
848
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
849
+ }
850
+ },
851
+ {
852
+ "name": "quote-reconfirm-reply-2",
853
+ "payload": {
854
+ "type": "quote.reconfirm.reply",
855
+ "id": "r-2",
856
+ "fillerId": "acme-markets",
857
+ "sentAt": 1790000014000,
858
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
859
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
860
+ "accept": false
861
+ }
862
+ }
863
+ ]
864
+ },
865
+ "ticket.offer": {
866
+ "name": "ticket.offer",
867
+ "title": "ticket.offer (S2F)",
868
+ "payload": {
869
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
870
+ "schema": {
871
+ "$ref": "messages.schema.json#/$defs/ticket.offer"
872
+ }
873
+ },
874
+ "examples": [
875
+ {
876
+ "name": "ticket-offer-1",
877
+ "payload": {
878
+ "type": "ticket.offer",
879
+ "id": "g-20",
880
+ "fillerId": "acme-markets",
881
+ "sentAt": 1790000020000,
882
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
883
+ "attempt": 0,
884
+ "order": {
885
+ "user": "0xa11ce00000000000000000000000000000000001",
886
+ "originChainId": "11155111",
887
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
888
+ "inputAmount": "1003000000",
889
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
890
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
891
+ "minReceived": "999000000",
892
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
893
+ "createdAt": "1790000000",
894
+ "fillDeadline": "1790000600",
895
+ "feeBps": "30",
896
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5"
897
+ },
898
+ "amountOut": "999000000",
899
+ "validFrom": "1790000040",
900
+ "validUntil": "1790000400",
901
+ "acceptBy": 1790000023000,
902
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
903
+ }
904
+ }
905
+ ]
906
+ },
907
+ "ticket.intent": {
908
+ "name": "ticket.intent",
909
+ "title": "ticket.intent (F2S)",
910
+ "payload": {
911
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
912
+ "schema": {
913
+ "$ref": "messages.schema.json#/$defs/ticket.intent"
914
+ }
915
+ },
916
+ "examples": [
917
+ {
918
+ "name": "ticket-intent-1",
919
+ "payload": {
920
+ "type": "ticket.intent",
921
+ "id": "i-1",
922
+ "fillerId": "acme-markets",
923
+ "sentAt": 1790000021000,
924
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
925
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
926
+ "attempt": 0,
927
+ "validFrom": "1790000040",
928
+ "validUntil": "1790000400",
929
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
930
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
931
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
932
+ }
933
+ },
934
+ {
935
+ "name": "ticket-intent-2",
936
+ "payload": {
937
+ "type": "ticket.intent",
938
+ "id": "i-4",
939
+ "fillerId": "acme-markets",
940
+ "sentAt": 1790000021000,
941
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
942
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
943
+ "attempt": 2,
944
+ "validFrom": "1790000040",
945
+ "validUntil": "1790000400",
946
+ "deliveryKey": "0x0000000000000000000000000000000000000000",
947
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
948
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
949
+ }
950
+ }
951
+ ]
952
+ },
953
+ "ticket.decline": {
954
+ "name": "ticket.decline",
955
+ "title": "ticket.decline (F2S)",
956
+ "payload": {
957
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
958
+ "schema": {
959
+ "$ref": "messages.schema.json#/$defs/ticket.decline"
960
+ }
961
+ },
962
+ "examples": [
963
+ {
964
+ "name": "ticket-decline-1",
965
+ "payload": {
966
+ "type": "ticket.decline",
967
+ "id": "d-1",
968
+ "fillerId": "acme-markets",
969
+ "sentAt": 1790000027001,
970
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
971
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
972
+ "attempt": 0,
973
+ "reason": "TICKET_ISSUED_LATE",
974
+ "detail": "ticket.issued 3001 ms after acceptBy"
975
+ }
976
+ }
977
+ ]
978
+ },
979
+ "ticket.intent.ack": {
980
+ "name": "ticket.intent.ack",
981
+ "title": "ticket.intent.ack (S2F)",
982
+ "payload": {
983
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
984
+ "schema": {
985
+ "$ref": "messages.schema.json#/$defs/ticket.intent.ack"
986
+ }
987
+ },
988
+ "examples": [
989
+ {
990
+ "name": "ticket-intent-ack-1",
991
+ "payload": {
992
+ "type": "ticket.intent.ack",
993
+ "id": "g-11",
994
+ "fillerId": "acme-markets",
995
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
996
+ "sentAt": 1790000021001,
997
+ "re": "i-1",
998
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
999
+ "attempt": 0,
1000
+ "intentHash": "0x53dcabb35a92525e69f2637f618e2cd1eed25bb9ee3caf608e7e9025825abfe0",
1001
+ "receivedAt": 1790000021000
1002
+ }
1003
+ }
1004
+ ]
1005
+ },
1006
+ "ticket.issued": {
1007
+ "name": "ticket.issued",
1008
+ "title": "ticket.issued (S2F)",
1009
+ "payload": {
1010
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1011
+ "schema": {
1012
+ "$ref": "messages.schema.json#/$defs/ticket.issued"
1013
+ }
1014
+ },
1015
+ "examples": [
1016
+ {
1017
+ "name": "ticket-issued-1",
1018
+ "payload": {
1019
+ "type": "ticket.issued",
1020
+ "id": "g-12",
1021
+ "fillerId": "acme-markets",
1022
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1023
+ "sentAt": 1790000024000,
1024
+ "form": "evm",
1025
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1026
+ "attempt": 0,
1027
+ "ticket": {
1028
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1029
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
1030
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
1031
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
1032
+ "attempt": 0,
1033
+ "validFrom": "1790000040",
1034
+ "validUntil": "1790000400"
1035
+ },
1036
+ "ticketSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
1037
+ }
1038
+ },
1039
+ {
1040
+ "name": "ticket-issued-2",
1041
+ "payload": {
1042
+ "type": "ticket.issued",
1043
+ "id": "g-13",
1044
+ "fillerId": "acme-markets",
1045
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1046
+ "sentAt": 1790000024000,
1047
+ "form": "canton",
1048
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1049
+ "attempt": 2,
1050
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
1051
+ "validUntil": "1790000400",
1052
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc"
1053
+ }
1054
+ }
1055
+ ]
1056
+ },
1057
+ "ticket.receipt": {
1058
+ "name": "ticket.receipt",
1059
+ "title": "ticket.receipt (F2S)",
1060
+ "payload": {
1061
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1062
+ "schema": {
1063
+ "$ref": "messages.schema.json#/$defs/ticket.receipt"
1064
+ }
1065
+ },
1066
+ "examples": [
1067
+ {
1068
+ "name": "ticket-receipt-1",
1069
+ "payload": {
1070
+ "type": "ticket.receipt",
1071
+ "id": "rc-1",
1072
+ "fillerId": "acme-markets",
1073
+ "sentAt": 1790000025000,
1074
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1075
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1076
+ "attempt": 0,
1077
+ "ticketHash": "0x963e823a2d9709d6630515731512094e45976407536974cb9f81817591ed1f16",
1078
+ "ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
1079
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
1080
+ }
1081
+ },
1082
+ {
1083
+ "name": "ticket-receipt-2",
1084
+ "payload": {
1085
+ "type": "ticket.receipt",
1086
+ "id": "rc-2",
1087
+ "fillerId": "acme-markets",
1088
+ "sentAt": 1790000025000,
1089
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1090
+ "form": "canton",
1091
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1092
+ "attempt": 2,
1093
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
1094
+ "validUntil": "1790000400",
1095
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
1096
+ }
1097
+ }
1098
+ ]
1099
+ },
1100
+ "fill.reported": {
1101
+ "name": "fill.reported",
1102
+ "title": "fill.reported (F2S)",
1103
+ "payload": {
1104
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1105
+ "schema": {
1106
+ "$ref": "messages.schema.json#/$defs/fill.reported"
1107
+ }
1108
+ },
1109
+ "examples": [
1110
+ {
1111
+ "name": "fill-reported-1",
1112
+ "payload": {
1113
+ "type": "fill.reported",
1114
+ "id": "f-1",
1115
+ "fillerId": "acme-markets",
1116
+ "sentAt": 1790000060000,
1117
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1118
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1119
+ "attempt": 0,
1120
+ "txRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740"
1121
+ }
1122
+ }
1123
+ ]
1124
+ },
1125
+ "ticket.expired": {
1126
+ "name": "ticket.expired",
1127
+ "title": "ticket.expired (S2F)",
1128
+ "payload": {
1129
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1130
+ "schema": {
1131
+ "$ref": "messages.schema.json#/$defs/ticket.expired"
1132
+ }
1133
+ },
1134
+ "examples": [
1135
+ {
1136
+ "name": "ticket-expired-1",
1137
+ "payload": {
1138
+ "type": "ticket.expired",
1139
+ "id": "g-14",
1140
+ "fillerId": "acme-markets",
1141
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1142
+ "sentAt": 1790000460000,
1143
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1144
+ "attempt": 0,
1145
+ "result": "FILLED"
1146
+ }
1147
+ },
1148
+ {
1149
+ "name": "ticket-expired-2",
1150
+ "payload": {
1151
+ "type": "ticket.expired",
1152
+ "id": "g-15",
1153
+ "fillerId": "acme-markets",
1154
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1155
+ "sentAt": 1790000460000,
1156
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1157
+ "attempt": 0,
1158
+ "result": "EXEMPT",
1159
+ "exemptReason": "DESTINATION_HALTED"
1160
+ }
1161
+ }
1162
+ ]
1163
+ },
1164
+ "order.settled": {
1165
+ "name": "order.settled",
1166
+ "title": "order.settled (S2F)",
1167
+ "payload": {
1168
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1169
+ "schema": {
1170
+ "$ref": "messages.schema.json#/$defs/order.settled"
1171
+ }
1172
+ },
1173
+ "examples": [
1174
+ {
1175
+ "name": "order-settled-1",
1176
+ "payload": {
1177
+ "type": "order.settled",
1178
+ "id": "g-16",
1179
+ "fillerId": "acme-markets",
1180
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1181
+ "sentAt": 1790000900000,
1182
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1183
+ "payout": "1000000000",
1184
+ "fee": "3000000",
1185
+ "penaltyWithheld": "0",
1186
+ "txRef": "0x8d99b79edaf0d9c062753bb308a72f52ec1ed8873fe06580c14524bb66a9f614"
1187
+ }
1188
+ }
1189
+ ]
1190
+ },
1191
+ "penalty.applied": {
1192
+ "name": "penalty.applied",
1193
+ "title": "penalty.applied (S2F)",
1194
+ "payload": {
1195
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1196
+ "schema": {
1197
+ "$ref": "messages.schema.json#/$defs/penalty.applied"
1198
+ }
1199
+ },
1200
+ "examples": [
1201
+ {
1202
+ "name": "penalty-applied-1",
1203
+ "payload": {
1204
+ "type": "penalty.applied",
1205
+ "id": "g-17",
1206
+ "fillerId": "acme-markets",
1207
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1208
+ "sentAt": 1790001000000,
1209
+ "violationId": "v-1",
1210
+ "code": "NO_SHOW",
1211
+ "step": "L1",
1212
+ "details": {
1213
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1214
+ "attempt": 0
1215
+ }
1216
+ }
1217
+ }
1218
+ ]
1219
+ },
1220
+ "settle.attestations": {
1221
+ "name": "settle.attestations",
1222
+ "title": "settle.attestations (S2F)",
1223
+ "payload": {
1224
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1225
+ "schema": {
1226
+ "$ref": "messages.schema.json#/$defs/settle.attestations"
1227
+ }
1228
+ },
1229
+ "examples": [
1230
+ {
1231
+ "name": "settle-attestations-1",
1232
+ "payload": {
1233
+ "type": "settle.attestations",
1234
+ "id": "g-sa-1",
1235
+ "fillerId": "acme-markets",
1236
+ "sentAt": 1790000160000,
1237
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1238
+ "attempt": 0,
1239
+ "sourceChainId": "eip155:11155111",
1240
+ "proof": {
1241
+ "kind": 1,
1242
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1243
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
1244
+ "fillRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740",
1245
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1246
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
1247
+ "amountDelivered": "999000000",
1248
+ "filledAt": "1790000100",
1249
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
1250
+ "repayTo": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1251
+ "attempt": 0,
1252
+ "setId": 1
1253
+ },
1254
+ "signatures": [
1255
+ {
1256
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
1257
+ "signature": "0x280a1c67572079434e423c51ee29272a0afb87bc485b3292192fb08242aeef687bcd1417aff35025ab16da3f43a73972585877b131a2b4dfe83d1ae4f5ef0fad1b"
1258
+ },
1259
+ {
1260
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
1261
+ "signature": "0x77cba7cedee87b88ac9d90ce0440bb55fa510930318e1a7cb9e2567f198208fb3784a5ca3343c3df2d7dfc29b0a2eae3b87b475893b4d134fa6ce9d8df2a88521b"
1262
+ }
1263
+ ],
1264
+ "setId": 1,
1265
+ "threshold": 2,
1266
+ "refundAfter": "1790002400",
1267
+ "sig": "0x703468572b0f0d056f7c8547a2a70dbb76469888d23059926e906d23cc0468ac54cd96efe6a0f298750a225cd4a7e6acb511f144631076ed2825de0bf0e40b1e1b"
1268
+ }
1269
+ },
1270
+ {
1271
+ "name": "settle-attestations-2",
1272
+ "payload": {
1273
+ "type": "settle.attestations",
1274
+ "id": "g-sa-3",
1275
+ "fillerId": "acme",
1276
+ "sentAt": 1789999760000,
1277
+ "orderHash": "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
1278
+ "attempt": 1,
1279
+ "sourceChainId": "canton:mainnet",
1280
+ "proof": {
1281
+ "kind": 1,
1282
+ "orderHash": "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
1283
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000000001",
1284
+ "fillRef": "0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471",
1285
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1286
+ "outputAsset": "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
1287
+ "amountDelivered": "1200250000",
1288
+ "filledAt": "1789999700",
1289
+ "fillerId": "0xe29dae06ef4c3e336b7538b6d4f52ca1ecec009b1df6fb501320e11b223aeeaf",
1290
+ "repayTo": "0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d",
1291
+ "attempt": 1,
1292
+ "setId": 3
1293
+ },
1294
+ "signatures": [
1295
+ {
1296
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
1297
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3",
1298
+ "signature": "0x3044022048f14c61c1f52f541ab136ef92bbbcfca14dd0560db802feb510f7fce19477b20220230a636d4d10c7e5c16b997394a8261185a899f0e8d8e5ffad14db4d4123dd16"
1299
+ },
1300
+ {
1301
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
1302
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e",
1303
+ "signature": "0x3045022100d4cb2f8a3084bf5749871a06fa543a9ba80889471eb2799ab4c4c08b31ee7e2902203e2b4af4e08f263168a046a4b6a6370398c7b03de7797f1a011910c0d784f4bc"
1304
+ },
1305
+ {
1306
+ "signer": "0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0",
1307
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b",
1308
+ "signature": "0x304402200a300c658594fe20fb429c4f32e23e0b3e444a017f320622cb636792d6f13ca802200cbd9bcb4ea5719f63f8a510e7e9f3d730a47691a7b6eb8e78ec787218997e02"
1309
+ }
1310
+ ],
1311
+ "setId": 3,
1312
+ "threshold": 2,
1313
+ "refundAfter": "1790001800",
1314
+ "sig": "0x481041cd0c07174f6db63b7acdc96a0bcc399de0be60df07faea3be6f0f09c83553a59f5e5443a6d7d1763789404d732a4b5cdc57758b729adf50245b8f96c2d1b"
1315
+ }
1316
+ }
1317
+ ]
1318
+ },
1319
+ "canton.prepare": {
1320
+ "name": "canton.prepare",
1321
+ "title": "canton.prepare (F2S)",
1322
+ "payload": {
1323
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1324
+ "schema": {
1325
+ "$ref": "messages.schema.json#/$defs/canton.prepare"
1326
+ }
1327
+ },
1328
+ "examples": [
1329
+ {
1330
+ "name": "canton-prepare-1",
1331
+ "payload": {
1332
+ "type": "canton.prepare",
1333
+ "id": "cp-1",
1334
+ "fillerId": "acme-markets",
1335
+ "sentAt": 1789990000000,
1336
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1337
+ "op": "party.allocate",
1338
+ "params": {
1339
+ "publicKey": "0x1111111111111111111111111111111111111111111111111111111111111111"
1340
+ }
1341
+ }
1342
+ },
1343
+ {
1344
+ "name": "canton-prepare-2",
1345
+ "payload": {
1346
+ "type": "canton.prepare",
1347
+ "id": "cp-2",
1348
+ "fillerId": "acme-markets",
1349
+ "sentAt": 1789990100000,
1350
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1351
+ "op": "registry.accept",
1352
+ "params": {}
1353
+ }
1354
+ },
1355
+ {
1356
+ "name": "canton-prepare-3",
1357
+ "payload": {
1358
+ "type": "canton.prepare",
1359
+ "id": "cp-3",
1360
+ "fillerId": "acme-markets",
1361
+ "sentAt": 1790000026000,
1362
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1363
+ "op": "delivery.fill",
1364
+ "params": {
1365
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1366
+ "attempt": 2
1367
+ }
1368
+ }
1369
+ },
1370
+ {
1371
+ "name": "canton-prepare-4",
1372
+ "payload": {
1373
+ "type": "canton.prepare",
1374
+ "id": "cp-4",
1375
+ "fillerId": "acme-markets",
1376
+ "sentAt": 1790000700000,
1377
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1378
+ "op": "intent.settle",
1379
+ "params": {
1380
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b"
1381
+ }
1382
+ }
1383
+ },
1384
+ {
1385
+ "name": "canton-prepare-5",
1386
+ "payload": {
1387
+ "type": "canton.prepare",
1388
+ "id": "cp-5",
1389
+ "fillerId": "acme-markets",
1390
+ "sentAt": 1790001000000,
1391
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1392
+ "op": "holdings.transfer",
1393
+ "params": {
1394
+ "asset": {
1395
+ "admin": "cancore-registry::1220aa",
1396
+ "id": "CNRX"
1397
+ },
1398
+ "amount": "250.5",
1399
+ "toParty": "alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f"
1400
+ }
1401
+ }
1402
+ }
1403
+ ]
1404
+ },
1405
+ "canton.prepared": {
1406
+ "name": "canton.prepared",
1407
+ "title": "canton.prepared (S2F)",
1408
+ "payload": {
1409
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1410
+ "schema": {
1411
+ "$ref": "messages.schema.json#/$defs/canton.prepared"
1412
+ }
1413
+ },
1414
+ "examples": [
1415
+ {
1416
+ "name": "canton-prepared-1",
1417
+ "payload": {
1418
+ "type": "canton.prepared",
1419
+ "id": "g-19",
1420
+ "fillerId": "acme-markets",
1421
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1422
+ "sentAt": 1789990000200,
1423
+ "re": "cp-1",
1424
+ "operationId": "op-1",
1425
+ "op": "party.allocate",
1426
+ "legs": [
1427
+ {
1428
+ "legId": "topology-0",
1429
+ "kind": "topology",
1430
+ "hash": "0x12203d71f7c09428bb0f75651436e3a1c92b3a12490049882ff50711337cf5c9de0a",
1431
+ "topologyTransactions": [
1432
+ "CgMyLjESBTAuMC4x",
1433
+ "CgMyLjESBTAuMC4y"
1434
+ ]
1435
+ }
1436
+ ],
1437
+ "summary": {
1438
+ "partyId": "acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
1439
+ "publicKey": "0x1111111111111111111111111111111111111111111111111111111111111111",
1440
+ "hosting": {
1441
+ "participantUid": "PAR::cancore::1220c0ffee",
1442
+ "permission": "CONFIRMATION",
1443
+ "threshold": 1
1444
+ }
1445
+ },
1446
+ "expiresAt": 1789990300200
1447
+ }
1448
+ },
1449
+ {
1450
+ "name": "canton-prepared-2",
1451
+ "payload": {
1452
+ "type": "canton.prepared",
1453
+ "id": "g-20",
1454
+ "fillerId": "acme-markets",
1455
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1456
+ "sentAt": 1790000026300,
1457
+ "re": "cp-3",
1458
+ "operationId": "op-3",
1459
+ "op": "delivery.fill",
1460
+ "legs": [
1461
+ {
1462
+ "legId": "delivery-fill-0",
1463
+ "kind": "transaction",
1464
+ "hash": "0xf85381267321fc9b5122e45db048de3313dbc0dce8b36202673245d6c6d92840",
1465
+ "preparedTransaction": "CgMyLjESBTAuMC4x",
1466
+ "hashingSchemeVersion": "HASHING_SCHEME_VERSION_V2"
1467
+ }
1468
+ ],
1469
+ "summary": {
1470
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
1471
+ "attempt": 2,
1472
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
1473
+ "recipient": "alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f",
1474
+ "asset": {
1475
+ "admin": "cancore-registry::1220aa",
1476
+ "id": "CNRX"
1477
+ },
1478
+ "amount": "999.0",
1479
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
1480
+ "validUntil": "1790000400",
1481
+ "inputHoldingCids": [
1482
+ "00h1",
1483
+ "00h2"
1484
+ ],
1485
+ "executeBefore": "1790000400",
1486
+ "transferFactoryCid": "00tf"
1487
+ },
1488
+ "expiresAt": 1790000326300
1489
+ }
1490
+ }
1491
+ ]
1492
+ },
1493
+ "canton.submit": {
1494
+ "name": "canton.submit",
1495
+ "title": "canton.submit (F2S)",
1496
+ "payload": {
1497
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1498
+ "schema": {
1499
+ "$ref": "messages.schema.json#/$defs/canton.submit"
1500
+ }
1501
+ },
1502
+ "examples": [
1503
+ {
1504
+ "name": "canton-submit-1",
1505
+ "payload": {
1506
+ "type": "canton.submit",
1507
+ "id": "cs-3",
1508
+ "fillerId": "acme-markets",
1509
+ "sentAt": 1790000027000,
1510
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1511
+ "operationId": "op-3",
1512
+ "signatures": [
1513
+ {
1514
+ "legId": "delivery-fill-0",
1515
+ "signature": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
1516
+ }
1517
+ ]
1518
+ }
1519
+ }
1520
+ ]
1521
+ },
1522
+ "canton.submitted": {
1523
+ "name": "canton.submitted",
1524
+ "title": "canton.submitted (S2F)",
1525
+ "payload": {
1526
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1527
+ "schema": {
1528
+ "$ref": "messages.schema.json#/$defs/canton.submitted"
1529
+ }
1530
+ },
1531
+ "examples": [
1532
+ {
1533
+ "name": "canton-submitted-1",
1534
+ "payload": {
1535
+ "type": "canton.submitted",
1536
+ "id": "g-21",
1537
+ "fillerId": "acme-markets",
1538
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1539
+ "sentAt": 1790000029000,
1540
+ "re": "cs-3",
1541
+ "operationId": "op-3",
1542
+ "op": "delivery.fill",
1543
+ "updateId": "1220ab0c",
1544
+ "result": {
1545
+ "receiptCid": "00c1d2"
1546
+ }
1547
+ }
1548
+ },
1549
+ {
1550
+ "name": "canton-submitted-2",
1551
+ "payload": {
1552
+ "type": "canton.submitted",
1553
+ "id": "g-22",
1554
+ "fillerId": "acme-markets",
1555
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1556
+ "sentAt": 1789990002000,
1557
+ "re": "cs-1",
1558
+ "operationId": "op-1",
1559
+ "op": "party.allocate",
1560
+ "result": {
1561
+ "partyId": "acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"
1562
+ }
1563
+ }
1564
+ },
1565
+ {
1566
+ "name": "canton-submitted-3",
1567
+ "payload": {
1568
+ "type": "canton.submitted",
1569
+ "id": "g-23",
1570
+ "fillerId": "acme-markets",
1571
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1572
+ "sentAt": 1790001002000,
1573
+ "re": "cs-5",
1574
+ "operationId": "op-5",
1575
+ "op": "holdings.transfer",
1576
+ "updateId": "1220ab0d",
1577
+ "result": {
1578
+ "outcome": "PENDING",
1579
+ "transferInstructionCid": "00ti"
1580
+ }
1581
+ }
1582
+ }
1583
+ ]
1584
+ }
1585
+ }
1586
+ }
1587
+ }