@cancore/contracts 0.2.0-rc.3 → 0.2.0-rc.7

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.
@@ -3,23 +3,13 @@
3
3
  "info": {
4
4
  "title": "Cancore filler protocol",
5
5
  "version": "1.0.0-rc.1",
6
- "description": "The WebSocket protocol between a taker (filler) and the Cancore filler gateway, v1 (release candidate, @cancore/contracts 0.2.0-rc.1). Operations are the gateway's: it sends S→F frames and receives F→S frames. Every S→F frame carries fillerId, sentAt and sig = the gateway key over GatewayMessage{bodyHash} in the CancoreFillerProtocol v1 domain. Payload schemas: messages.schema.json. Generated by scripts/gen-protocol-docs.mjs.",
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
7
  "license": {
8
8
  "name": "Apache-2.0"
9
9
  }
10
10
  },
11
11
  "defaultContentType": "application/json",
12
12
  "servers": {
13
- "mock": {
14
- "host": "localhost:{port}",
15
- "protocol": "ws",
16
- "description": "@cancore/test-kit mock-gateway",
17
- "variables": {
18
- "port": {
19
- "default": "8787"
20
- }
21
- }
22
- },
23
13
  "devnet": {
24
14
  "host": "{gatewayHost}",
25
15
  "protocol": "wss",
@@ -57,8 +47,11 @@
57
47
  "pongF2S": {
58
48
  "$ref": "#/components/messages/pongF2S"
59
49
  },
60
- "error": {
61
- "$ref": "#/components/messages/error"
50
+ "errorS2F": {
51
+ "$ref": "#/components/messages/errorS2F"
52
+ },
53
+ "errorF2S": {
54
+ "$ref": "#/components/messages/errorF2S"
62
55
  },
63
56
  "epoch.weights": {
64
57
  "$ref": "#/components/messages/epoch.weights"
@@ -107,6 +100,9 @@
107
100
  },
108
101
  "penalty.applied": {
109
102
  "$ref": "#/components/messages/penalty.applied"
103
+ },
104
+ "settle.attestations": {
105
+ "$ref": "#/components/messages/settle.attestations"
110
106
  }
111
107
  }
112
108
  }
@@ -196,7 +192,18 @@
196
192
  },
197
193
  "messages": [
198
194
  {
199
- "$ref": "#/channels/filler/messages/error"
195
+ "$ref": "#/channels/filler/messages/errorS2F"
196
+ }
197
+ ]
198
+ },
199
+ "receiveError": {
200
+ "action": "receive",
201
+ "channel": {
202
+ "$ref": "#/channels/filler"
203
+ },
204
+ "messages": [
205
+ {
206
+ "$ref": "#/channels/filler/messages/errorF2S"
200
207
  }
201
208
  ]
202
209
  },
@@ -375,6 +382,17 @@
375
382
  "$ref": "#/channels/filler/messages/penalty.applied"
376
383
  }
377
384
  ]
385
+ },
386
+ "sendSettleAttestations": {
387
+ "action": "send",
388
+ "channel": {
389
+ "$ref": "#/channels/filler"
390
+ },
391
+ "messages": [
392
+ {
393
+ "$ref": "#/channels/filler/messages/settle.attestations"
394
+ }
395
+ ]
378
396
  }
379
397
  },
380
398
  "components": {
@@ -393,6 +411,7 @@
393
411
  "name": "auth-challenge-1",
394
412
  "payload": {
395
413
  "type": "auth.challenge",
414
+ "id": "g-1",
396
415
  "sentAt": 1789999980000,
397
416
  "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
398
417
  "expiresAt": "1790000030",
@@ -417,8 +436,24 @@
417
436
  "type": "auth.response",
418
437
  "id": "a-1",
419
438
  "fillerId": "acme-markets",
439
+ "sentAt": 1789999980100,
440
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
441
+ "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
442
+ "protocolVersion": "1",
443
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
444
+ }
445
+ },
446
+ {
447
+ "name": "auth-response-2",
448
+ "payload": {
449
+ "type": "auth.response",
450
+ "id": "a-2",
451
+ "fillerId": "acme-markets",
452
+ "sentAt": 1789999980100,
453
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
420
454
  "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
421
455
  "protocolVersion": "1",
456
+ "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
422
457
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
423
458
  }
424
459
  }
@@ -438,6 +473,7 @@
438
473
  "name": "auth-ok-1",
439
474
  "payload": {
440
475
  "type": "auth.ok",
476
+ "id": "g-2",
441
477
  "fillerId": "acme-markets",
442
478
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
443
479
  "sentAt": 1789999980200,
@@ -483,7 +519,10 @@
483
519
  "name": "pingF2S-1",
484
520
  "payload": {
485
521
  "type": "ping",
486
- "id": "p-1"
522
+ "id": "p-1",
523
+ "fillerId": "acme-markets",
524
+ "sentAt": 1789999994000,
525
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
487
526
  }
488
527
  }
489
528
  ]
@@ -502,9 +541,10 @@
502
541
  "name": "pongS2F-1",
503
542
  "payload": {
504
543
  "type": "pong",
544
+ "id": "g-3",
505
545
  "fillerId": "acme-markets",
506
546
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
507
- "sentAt": 1789999995100,
547
+ "sentAt": 1789999994100,
508
548
  "re": "p-1"
509
549
  }
510
550
  }
@@ -524,25 +564,30 @@
524
564
  "name": "pongF2S-1",
525
565
  "payload": {
526
566
  "type": "pong",
567
+ "id": "po-1",
568
+ "fillerId": "acme-markets",
569
+ "sentAt": 1789999995100,
570
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
527
571
  "re": "gp-1"
528
572
  }
529
573
  }
530
574
  ]
531
575
  },
532
- "error": {
576
+ "errorS2F": {
533
577
  "name": "error",
534
578
  "title": "error (S2F)",
535
579
  "payload": {
536
580
  "schemaFormat": "application/schema+json;version=draft-2020-12",
537
581
  "schema": {
538
- "$ref": "messages.schema.json#/$defs/error"
582
+ "$ref": "messages.schema.json#/$defs/errorS2F"
539
583
  }
540
584
  },
541
585
  "examples": [
542
586
  {
543
- "name": "error-1",
587
+ "name": "errorS2F-1",
544
588
  "payload": {
545
589
  "type": "error",
590
+ "id": "g-4",
546
591
  "fillerId": "acme-markets",
547
592
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
548
593
  "sentAt": 1790000023500,
@@ -552,15 +597,55 @@
552
597
  }
553
598
  },
554
599
  {
555
- "name": "error-2",
600
+ "name": "errorS2F-2",
556
601
  "payload": {
557
602
  "type": "error",
603
+ "id": "g-5",
558
604
  "sentAt": 1789999980100,
559
605
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
560
606
  "re": "q-0",
561
607
  "code": "UNAUTHENTICATED",
562
608
  "message": "quote before auth.ok"
563
609
  }
610
+ },
611
+ {
612
+ "name": "errorS2F-3",
613
+ "payload": {
614
+ "type": "error",
615
+ "id": "g-6",
616
+ "fillerId": "acme-markets",
617
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
618
+ "sentAt": 1790000021500,
619
+ "re": "i-3",
620
+ "code": "TICKET_REFUSED",
621
+ "reason": "REPAY_TO_BLOCKLISTED",
622
+ "message": "repayTo is blocklisted by the input token"
623
+ }
624
+ }
625
+ ]
626
+ },
627
+ "errorF2S": {
628
+ "name": "error",
629
+ "title": "error (F2S)",
630
+ "payload": {
631
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
632
+ "schema": {
633
+ "$ref": "messages.schema.json#/$defs/errorF2S"
634
+ }
635
+ },
636
+ "examples": [
637
+ {
638
+ "name": "errorF2S-1",
639
+ "payload": {
640
+ "type": "error",
641
+ "id": "e-1",
642
+ "fillerId": "acme-markets",
643
+ "sentAt": 1790000030000,
644
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
645
+ "re": "g-77",
646
+ "code": "UNKNOWN_TICKET",
647
+ "message": "no ticket for this orderHash"
648
+ }
564
649
  }
565
650
  ]
566
651
  },
@@ -578,6 +663,7 @@
578
663
  "name": "epoch-weights-1",
579
664
  "payload": {
580
665
  "type": "epoch.weights",
666
+ "id": "g-7",
581
667
  "fillerId": "acme-markets",
582
668
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
583
669
  "sentAt": 1789999980300,
@@ -603,6 +689,7 @@
603
689
  "name": "quote-request-1",
604
690
  "payload": {
605
691
  "type": "quote.request",
692
+ "id": "g-8",
606
693
  "fillerId": "acme-markets",
607
694
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
608
695
  "sentAt": 1789999990000,
@@ -641,8 +728,10 @@
641
728
  "payload": {
642
729
  "type": "quote",
643
730
  "id": "q-1",
731
+ "fillerId": "acme-markets",
732
+ "sentAt": 1789999991000,
733
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
644
734
  "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
645
- "filler": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
646
735
  "amountOut": "999000000",
647
736
  "validUntil": "1790000060",
648
737
  "nonce": "1",
@@ -665,12 +754,13 @@
665
754
  "name": "quote-ack-1",
666
755
  "payload": {
667
756
  "type": "quote.ack",
757
+ "id": "g-9",
668
758
  "fillerId": "acme-markets",
669
759
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
670
760
  "sentAt": 1789999991001,
671
761
  "re": "q-1",
672
762
  "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
673
- "quoteHash": "0xdfbd4a1d732d8a105714d38ed6c46b8ee6e299e8bf90990ac502ebaea19fbe70",
763
+ "quoteHash": "0xe3b63a6ae2730532fb841002059d6e8c92124d95e98c09857d7e0f5ba3512e3b",
674
764
  "receivedAt": 1789999991000,
675
765
  "status": "COUNTED"
676
766
  }
@@ -691,6 +781,7 @@
691
781
  "name": "quote-reconfirm-1",
692
782
  "payload": {
693
783
  "type": "quote.reconfirm",
784
+ "id": "g-10",
694
785
  "fillerId": "acme-markets",
695
786
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
696
787
  "sentAt": 1790000013000,
@@ -731,6 +822,9 @@
731
822
  "payload": {
732
823
  "type": "quote.reconfirm.reply",
733
824
  "id": "r-1",
825
+ "fillerId": "acme-markets",
826
+ "sentAt": 1790000014000,
827
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
734
828
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
735
829
  "accept": true,
736
830
  "validUntil": "1790000400",
@@ -743,6 +837,9 @@
743
837
  "payload": {
744
838
  "type": "quote.reconfirm.reply",
745
839
  "id": "r-2",
840
+ "fillerId": "acme-markets",
841
+ "sentAt": 1790000014000,
842
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
746
843
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
747
844
  "accept": false
748
845
  }
@@ -763,6 +860,7 @@
763
860
  "name": "ticket-offer-1",
764
861
  "payload": {
765
862
  "type": "ticket.offer",
863
+ "id": "g-20",
766
864
  "fillerId": "acme-markets",
767
865
  "sentAt": 1790000020000,
768
866
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
@@ -804,10 +902,32 @@
804
902
  "payload": {
805
903
  "type": "ticket.intent",
806
904
  "id": "i-1",
905
+ "fillerId": "acme-markets",
906
+ "sentAt": 1790000021000,
907
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
807
908
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
808
909
  "attempt": 0,
809
910
  "validFrom": "1790000040",
810
911
  "validUntil": "1790000400",
912
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
913
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
914
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
915
+ }
916
+ },
917
+ {
918
+ "name": "ticket-intent-2",
919
+ "payload": {
920
+ "type": "ticket.intent",
921
+ "id": "i-4",
922
+ "fillerId": "acme-markets",
923
+ "sentAt": 1790000021000,
924
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
925
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
926
+ "attempt": 2,
927
+ "validFrom": "1790000040",
928
+ "validUntil": "1790000400",
929
+ "deliveryKey": "0x0000000000000000000000000000000000000000",
930
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
811
931
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
812
932
  }
813
933
  }
@@ -828,6 +948,9 @@
828
948
  "payload": {
829
949
  "type": "ticket.decline",
830
950
  "id": "d-1",
951
+ "fillerId": "acme-markets",
952
+ "sentAt": 1790000027001,
953
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
831
954
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
832
955
  "attempt": 0,
833
956
  "reason": "TICKET_ISSUED_LATE",
@@ -850,13 +973,14 @@
850
973
  "name": "ticket-intent-ack-1",
851
974
  "payload": {
852
975
  "type": "ticket.intent.ack",
976
+ "id": "g-11",
853
977
  "fillerId": "acme-markets",
854
978
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
855
979
  "sentAt": 1790000021001,
856
980
  "re": "i-1",
857
981
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
858
982
  "attempt": 0,
859
- "intentHash": "0xf3a07f98be564fb062f1574d933fc33f40e5c9e36c0fec83d3b3c4c15e9199c2",
983
+ "intentHash": "0xd56c4d45d5405c70c5220da1c3e49d6051b0370a3040d1709ae097b37f3ba041",
860
984
  "receivedAt": 1790000021000
861
985
  }
862
986
  }
@@ -876,6 +1000,7 @@
876
1000
  "name": "ticket-issued-1",
877
1001
  "payload": {
878
1002
  "type": "ticket.issued",
1003
+ "id": "g-12",
879
1004
  "fillerId": "acme-markets",
880
1005
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
881
1006
  "sentAt": 1790000024000,
@@ -884,7 +1009,9 @@
884
1009
  "attempt": 0,
885
1010
  "ticket": {
886
1011
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
887
- "filler": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
1012
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
1013
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
1014
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
888
1015
  "attempt": 0,
889
1016
  "validFrom": "1790000040",
890
1017
  "validUntil": "1790000400"
@@ -896,14 +1023,16 @@
896
1023
  "name": "ticket-issued-2",
897
1024
  "payload": {
898
1025
  "type": "ticket.issued",
1026
+ "id": "g-13",
899
1027
  "fillerId": "acme-markets",
900
1028
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
901
1029
  "sentAt": 1790000024000,
902
1030
  "form": "canton",
903
1031
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
904
- "attempt": 0,
1032
+ "attempt": 2,
905
1033
  "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
906
- "validUntil": "1790000400"
1034
+ "validUntil": "1790000400",
1035
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc"
907
1036
  }
908
1037
  }
909
1038
  ]
@@ -923,9 +1052,12 @@
923
1052
  "payload": {
924
1053
  "type": "ticket.receipt",
925
1054
  "id": "rc-1",
1055
+ "fillerId": "acme-markets",
1056
+ "sentAt": 1790000025000,
1057
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
926
1058
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
927
1059
  "attempt": 0,
928
- "ticketHash": "0x466bc75e5efad07ad975aeea9ec731902bc804461686a6c8f76ef4fd50297819",
1060
+ "ticketHash": "0x8eaef6b8d59e72288487b0def58e0eb9200fa7600170351af985111eaec5a0a9",
929
1061
  "ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
930
1062
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
931
1063
  }
@@ -947,6 +1079,9 @@
947
1079
  "payload": {
948
1080
  "type": "fill.reported",
949
1081
  "id": "f-1",
1082
+ "fillerId": "acme-markets",
1083
+ "sentAt": 1790000060000,
1084
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
950
1085
  "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
951
1086
  "attempt": 0,
952
1087
  "txRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740"
@@ -968,6 +1103,7 @@
968
1103
  "name": "ticket-expired-1",
969
1104
  "payload": {
970
1105
  "type": "ticket.expired",
1106
+ "id": "g-14",
971
1107
  "fillerId": "acme-markets",
972
1108
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
973
1109
  "sentAt": 1790000460000,
@@ -980,6 +1116,7 @@
980
1116
  "name": "ticket-expired-2",
981
1117
  "payload": {
982
1118
  "type": "ticket.expired",
1119
+ "id": "g-15",
983
1120
  "fillerId": "acme-markets",
984
1121
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
985
1122
  "sentAt": 1790000460000,
@@ -1005,6 +1142,7 @@
1005
1142
  "name": "order-settled-1",
1006
1143
  "payload": {
1007
1144
  "type": "order.settled",
1145
+ "id": "g-16",
1008
1146
  "fillerId": "acme-markets",
1009
1147
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1010
1148
  "sentAt": 1790000900000,
@@ -1031,6 +1169,7 @@
1031
1169
  "name": "penalty-applied-1",
1032
1170
  "payload": {
1033
1171
  "type": "penalty.applied",
1172
+ "id": "g-17",
1034
1173
  "fillerId": "acme-markets",
1035
1174
  "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
1036
1175
  "sentAt": 1790001000000,
@@ -1044,6 +1183,105 @@
1044
1183
  }
1045
1184
  }
1046
1185
  ]
1186
+ },
1187
+ "settle.attestations": {
1188
+ "name": "settle.attestations",
1189
+ "title": "settle.attestations (S2F)",
1190
+ "payload": {
1191
+ "schemaFormat": "application/schema+json;version=draft-2020-12",
1192
+ "schema": {
1193
+ "$ref": "messages.schema.json#/$defs/settle.attestations"
1194
+ }
1195
+ },
1196
+ "examples": [
1197
+ {
1198
+ "name": "settle-attestations-1",
1199
+ "payload": {
1200
+ "type": "settle.attestations",
1201
+ "id": "g-sa-1",
1202
+ "fillerId": "acme-markets",
1203
+ "sentAt": 1790000160000,
1204
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1205
+ "attempt": 0,
1206
+ "sourceChainId": "eip155:11155111",
1207
+ "proof": {
1208
+ "kind": 1,
1209
+ "orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
1210
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
1211
+ "fillRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740",
1212
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1213
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
1214
+ "amountDelivered": "999000000",
1215
+ "filledAt": "1790000100",
1216
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
1217
+ "repayTo": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1218
+ "attempt": 0,
1219
+ "setId": 1
1220
+ },
1221
+ "signatures": [
1222
+ {
1223
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
1224
+ "signature": "0x4efcf401d43002b059a1bf5f12a1a6c868a1917a533cb2df79022845bd8704da1d5a6a67e206d057e29bd06efc19fef0afcc0ece462e732268da4cedb57e4c321c"
1225
+ },
1226
+ {
1227
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
1228
+ "signature": "0x29a0148c3a5cdcadf63a4aaef763784751a3fa6064dc276330227729ddbc69015ea1efdab546cf1552ca726de9ccf4480e8d5ff3c3ed9b718c4964b5bc03ddcf1c"
1229
+ }
1230
+ ],
1231
+ "setId": 1,
1232
+ "threshold": 2,
1233
+ "refundAfter": "1790002400",
1234
+ "sig": "0x1d81fa8e56999d9bf8365f2aa18025291198a51b769dcddd7ebaaa3b61eca32f262f218caf2618bc8b351c65eca89417defeb5f3905f7327a68e9cdd1d29f99d1b"
1235
+ }
1236
+ },
1237
+ {
1238
+ "name": "settle-attestations-2",
1239
+ "payload": {
1240
+ "type": "settle.attestations",
1241
+ "id": "g-sa-3",
1242
+ "fillerId": "cancore-reserve",
1243
+ "sentAt": 1789999760000,
1244
+ "orderHash": "0x770f1ebba8ab5b96e3efbed39c0f630d56f934f9f232771abaccdb0cf17ca204",
1245
+ "attempt": 1,
1246
+ "sourceChainId": "canton:mainnet",
1247
+ "proof": {
1248
+ "kind": 1,
1249
+ "orderHash": "0x770f1ebba8ab5b96e3efbed39c0f630d56f934f9f232771abaccdb0cf17ca204",
1250
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000000001",
1251
+ "fillRef": "0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471",
1252
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
1253
+ "outputAsset": "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
1254
+ "amountDelivered": "1200250000",
1255
+ "filledAt": "1789999700",
1256
+ "fillerId": "0xe3a8297b35498225c7903ca1a305ef64fcd783cf42c6c687b7b332c83d4dd837",
1257
+ "repayTo": "0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d",
1258
+ "attempt": 1,
1259
+ "setId": 3
1260
+ },
1261
+ "signatures": [
1262
+ {
1263
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
1264
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3",
1265
+ "signature": "0x3045022100a7554c31e432a90ae7384910ae3f9128b41034769dd072319fcf8131bb8062b1022006ac576ed5858c881238334835d35f5aacb765b16842a3f926a540355997883e"
1266
+ },
1267
+ {
1268
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
1269
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e",
1270
+ "signature": "0x3044022035cdea625125d6b555d9ab2405afb085c1d9a65d780048e607ace4f78740f5fc02207d4236924fd1e29bdc1576077c56da025ebfe63ed0c13bb720baa9ed4a444a93"
1271
+ },
1272
+ {
1273
+ "signer": "0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0",
1274
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b",
1275
+ "signature": "0x3045022100b4523bba8213ce348a7334680f4b3c54bfa3b815c907993415a43dc54452cb0e02201fc0f93a9199dfe16f3aff06684146bf6f28ff1df5efea5d874b3d877051678b"
1276
+ }
1277
+ ],
1278
+ "setId": 3,
1279
+ "threshold": 2,
1280
+ "refundAfter": "1790001800",
1281
+ "sig": "0x31ef2d7b9fb10cc97215e965e9cc866e6e595ba92d9f630a00fbaedc3241399f0d65b0e75c81504ba0989eb4264e55e46b571bd7252f45699ab4792d40e5ca931b"
1282
+ }
1283
+ }
1284
+ ]
1047
1285
  }
1048
1286
  }
1049
1287
  }