@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,743 @@
1
+ {
2
+ "$comment": "Valid example frames of filler protocol v1, one or more per type, built on the golden vectors (hashes are real). sig and msgSig are a zero placeholder (r = s = 0, v = 27): no key signs them — except settle.attestations, which carries the TEST gateway sig of its golden vector (settle-attestations.json). Generated by scripts/gen-protocol-docs.mjs.",
3
+ "examples": {
4
+ "auth.challenge": [
5
+ {
6
+ "type": "auth.challenge",
7
+ "id": "g-1",
8
+ "fillerId": "acme-markets",
9
+ "sentAt": 1789999980000,
10
+ "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
11
+ "expiresAt": "1790000030",
12
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
13
+ }
14
+ ],
15
+ "auth.response": [
16
+ {
17
+ "type": "auth.response",
18
+ "id": "a-1",
19
+ "fillerId": "acme-markets",
20
+ "sentAt": 1789999980100,
21
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
22
+ "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
23
+ "protocolVersion": "1",
24
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
25
+ },
26
+ {
27
+ "type": "auth.response",
28
+ "id": "a-2",
29
+ "fillerId": "acme-markets",
30
+ "sentAt": 1789999980100,
31
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
32
+ "keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
33
+ "protocolVersion": "1",
34
+ "nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
35
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
36
+ }
37
+ ],
38
+ "auth.ok": [
39
+ {
40
+ "type": "auth.ok",
41
+ "id": "g-2",
42
+ "fillerId": "acme-markets",
43
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
44
+ "sentAt": 1789999980200,
45
+ "re": "a-1",
46
+ "heartbeatIntervalMs": 15000
47
+ }
48
+ ],
49
+ "ping": [
50
+ {
51
+ "type": "ping",
52
+ "id": "p-1",
53
+ "fillerId": "acme-markets",
54
+ "sentAt": 1789999994000,
55
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
56
+ },
57
+ {
58
+ "type": "ping",
59
+ "fillerId": "acme-markets",
60
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
61
+ "sentAt": 1789999995000,
62
+ "id": "gp-1"
63
+ }
64
+ ],
65
+ "pong": [
66
+ {
67
+ "type": "pong",
68
+ "id": "po-1",
69
+ "fillerId": "acme-markets",
70
+ "sentAt": 1789999995100,
71
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
72
+ "re": "gp-1"
73
+ },
74
+ {
75
+ "type": "pong",
76
+ "id": "g-3",
77
+ "fillerId": "acme-markets",
78
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
79
+ "sentAt": 1789999994100,
80
+ "re": "p-1"
81
+ }
82
+ ],
83
+ "error": [
84
+ {
85
+ "type": "error",
86
+ "id": "g-4",
87
+ "fillerId": "acme-markets",
88
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
89
+ "sentAt": 1790000023500,
90
+ "re": "i-2",
91
+ "code": "TICKET_CLOSED",
92
+ "message": "ticket.intent after acceptBy"
93
+ },
94
+ {
95
+ "type": "error",
96
+ "id": "g-5",
97
+ "sentAt": 1789999980150,
98
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
99
+ "re": "a-2",
100
+ "code": "UNAUTHENTICATED",
101
+ "message": "no live challenge of this fillerId with this nonce"
102
+ },
103
+ {
104
+ "type": "error",
105
+ "id": "g-6",
106
+ "fillerId": "acme-markets",
107
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
108
+ "sentAt": 1790000021500,
109
+ "re": "i-3",
110
+ "code": "TICKET_REFUSED",
111
+ "reason": "REPAY_TO_BLOCKLISTED",
112
+ "message": "repayTo is blocklisted by the input token"
113
+ },
114
+ {
115
+ "type": "error",
116
+ "id": "e-1",
117
+ "fillerId": "acme-markets",
118
+ "sentAt": 1790000030000,
119
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
120
+ "re": "g-77",
121
+ "code": "UNKNOWN_TICKET",
122
+ "message": "no ticket for this orderHash"
123
+ },
124
+ {
125
+ "type": "error",
126
+ "id": "g-18",
127
+ "fillerId": "acme-markets",
128
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
129
+ "sentAt": 1789999991500,
130
+ "re": "q-2",
131
+ "code": "RATE_LIMITED",
132
+ "message": "quote rate class over its limit",
133
+ "retryAfterMs": 850
134
+ }
135
+ ],
136
+ "epoch.weights": [
137
+ {
138
+ "type": "epoch.weights",
139
+ "id": "g-7",
140
+ "fillerId": "acme-markets",
141
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
142
+ "sentAt": 1789999980300,
143
+ "epochId": "20717",
144
+ "startsAt": "1789948800",
145
+ "endsAt": "1790035200",
146
+ "weightsRoot": "0xa1c24765b55b34e0c206f808d2fac2e448d9db6f154d89f898921a80bad76e92"
147
+ }
148
+ ],
149
+ "quote.request": [
150
+ {
151
+ "type": "quote.request",
152
+ "id": "g-8",
153
+ "fillerId": "acme-markets",
154
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
155
+ "sentAt": 1789999990000,
156
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
157
+ "route": {
158
+ "src": "eip155:11155111",
159
+ "dst": "eip155:421614"
160
+ },
161
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
162
+ "inputAmount": "1003000000",
163
+ "outputAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
164
+ "feeBps": 30,
165
+ "fillDeadlineHint": "1790000600",
166
+ "windowCloseAt": 1789999992000,
167
+ "quoteTtlMs": 60000,
168
+ "imbalanceHint": {
169
+ "dstAsset": "0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d",
170
+ "netFlow24hUsd": "-12500.50"
171
+ }
172
+ }
173
+ ],
174
+ "quote": [
175
+ {
176
+ "type": "quote",
177
+ "id": "q-1",
178
+ "fillerId": "acme-markets",
179
+ "sentAt": 1789999991000,
180
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
181
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
182
+ "amountOut": "999000000",
183
+ "validUntil": "1790000060",
184
+ "nonce": "1",
185
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
186
+ }
187
+ ],
188
+ "quote.ack": [
189
+ {
190
+ "type": "quote.ack",
191
+ "id": "g-9",
192
+ "fillerId": "acme-markets",
193
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
194
+ "sentAt": 1789999991001,
195
+ "re": "q-1",
196
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
197
+ "quoteHash": "0xe3b63a6ae2730532fb841002059d6e8c92124d95e98c09857d7e0f5ba3512e3b",
198
+ "receivedAt": 1789999991000,
199
+ "status": "COUNTED"
200
+ }
201
+ ],
202
+ "quote.reconfirm": [
203
+ {
204
+ "type": "quote.reconfirm",
205
+ "id": "g-10",
206
+ "fillerId": "acme-markets",
207
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
208
+ "sentAt": 1790000013000,
209
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
210
+ "requestId": "req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31",
211
+ "order": {
212
+ "user": "0xa11ce00000000000000000000000000000000001",
213
+ "originChainId": "11155111",
214
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
215
+ "inputAmount": "1003000000",
216
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
217
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
218
+ "minReceived": "999000000",
219
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
220
+ "createdAt": "1790000000",
221
+ "fillDeadline": "1790000600",
222
+ "feeBps": "30",
223
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5"
224
+ },
225
+ "amountOut": "999000000",
226
+ "ticketTtl": 360,
227
+ "replyBy": 1790000016000
228
+ }
229
+ ],
230
+ "quote.reconfirm.reply": [
231
+ {
232
+ "type": "quote.reconfirm.reply",
233
+ "id": "r-1",
234
+ "fillerId": "acme-markets",
235
+ "sentAt": 1790000014000,
236
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
237
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
238
+ "accept": true,
239
+ "validUntil": "1790000400",
240
+ "nonce": "2",
241
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
242
+ },
243
+ {
244
+ "type": "quote.reconfirm.reply",
245
+ "id": "r-2",
246
+ "fillerId": "acme-markets",
247
+ "sentAt": 1790000014000,
248
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
249
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
250
+ "accept": false
251
+ }
252
+ ],
253
+ "ticket.offer": [
254
+ {
255
+ "type": "ticket.offer",
256
+ "id": "g-20",
257
+ "fillerId": "acme-markets",
258
+ "sentAt": 1790000020000,
259
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
260
+ "attempt": 0,
261
+ "order": {
262
+ "user": "0xa11ce00000000000000000000000000000000001",
263
+ "originChainId": "11155111",
264
+ "inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
265
+ "inputAmount": "1003000000",
266
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
267
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
268
+ "minReceived": "999000000",
269
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
270
+ "createdAt": "1790000000",
271
+ "fillDeadline": "1790000600",
272
+ "feeBps": "30",
273
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5"
274
+ },
275
+ "amountOut": "999000000",
276
+ "validFrom": "1790000040",
277
+ "validUntil": "1790000400",
278
+ "acceptBy": 1790000023000,
279
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
280
+ }
281
+ ],
282
+ "ticket.intent": [
283
+ {
284
+ "type": "ticket.intent",
285
+ "id": "i-1",
286
+ "fillerId": "acme-markets",
287
+ "sentAt": 1790000021000,
288
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
289
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
290
+ "attempt": 0,
291
+ "validFrom": "1790000040",
292
+ "validUntil": "1790000400",
293
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
294
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
295
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
296
+ },
297
+ {
298
+ "type": "ticket.intent",
299
+ "id": "i-4",
300
+ "fillerId": "acme-markets",
301
+ "sentAt": 1790000021000,
302
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
303
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
304
+ "attempt": 2,
305
+ "validFrom": "1790000040",
306
+ "validUntil": "1790000400",
307
+ "deliveryKey": "0x0000000000000000000000000000000000000000",
308
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
309
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
310
+ }
311
+ ],
312
+ "ticket.decline": [
313
+ {
314
+ "type": "ticket.decline",
315
+ "id": "d-1",
316
+ "fillerId": "acme-markets",
317
+ "sentAt": 1790000027001,
318
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
319
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
320
+ "attempt": 0,
321
+ "reason": "TICKET_ISSUED_LATE",
322
+ "detail": "ticket.issued 3001 ms after acceptBy"
323
+ }
324
+ ],
325
+ "ticket.intent.ack": [
326
+ {
327
+ "type": "ticket.intent.ack",
328
+ "id": "g-11",
329
+ "fillerId": "acme-markets",
330
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
331
+ "sentAt": 1790000021001,
332
+ "re": "i-1",
333
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
334
+ "attempt": 0,
335
+ "intentHash": "0x53dcabb35a92525e69f2637f618e2cd1eed25bb9ee3caf608e7e9025825abfe0",
336
+ "receivedAt": 1790000021000
337
+ }
338
+ ],
339
+ "ticket.issued": [
340
+ {
341
+ "type": "ticket.issued",
342
+ "id": "g-12",
343
+ "fillerId": "acme-markets",
344
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
345
+ "sentAt": 1790000024000,
346
+ "form": "evm",
347
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
348
+ "attempt": 0,
349
+ "ticket": {
350
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
351
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
352
+ "deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
353
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
354
+ "attempt": 0,
355
+ "validFrom": "1790000040",
356
+ "validUntil": "1790000400"
357
+ },
358
+ "ticketSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
359
+ },
360
+ {
361
+ "type": "ticket.issued",
362
+ "id": "g-13",
363
+ "fillerId": "acme-markets",
364
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
365
+ "sentAt": 1790000024000,
366
+ "form": "canton",
367
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
368
+ "attempt": 2,
369
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
370
+ "validUntil": "1790000400",
371
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc"
372
+ }
373
+ ],
374
+ "ticket.receipt": [
375
+ {
376
+ "type": "ticket.receipt",
377
+ "id": "rc-1",
378
+ "fillerId": "acme-markets",
379
+ "sentAt": 1790000025000,
380
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
381
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
382
+ "attempt": 0,
383
+ "ticketHash": "0x963e823a2d9709d6630515731512094e45976407536974cb9f81817591ed1f16",
384
+ "ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
385
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
386
+ },
387
+ {
388
+ "type": "ticket.receipt",
389
+ "id": "rc-2",
390
+ "fillerId": "acme-markets",
391
+ "sentAt": 1790000025000,
392
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
393
+ "form": "canton",
394
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
395
+ "attempt": 2,
396
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
397
+ "validUntil": "1790000400",
398
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
399
+ }
400
+ ],
401
+ "fill.reported": [
402
+ {
403
+ "type": "fill.reported",
404
+ "id": "f-1",
405
+ "fillerId": "acme-markets",
406
+ "sentAt": 1790000060000,
407
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
408
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
409
+ "attempt": 0,
410
+ "txRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740"
411
+ }
412
+ ],
413
+ "ticket.expired": [
414
+ {
415
+ "type": "ticket.expired",
416
+ "id": "g-14",
417
+ "fillerId": "acme-markets",
418
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
419
+ "sentAt": 1790000460000,
420
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
421
+ "attempt": 0,
422
+ "result": "FILLED"
423
+ },
424
+ {
425
+ "type": "ticket.expired",
426
+ "id": "g-15",
427
+ "fillerId": "acme-markets",
428
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
429
+ "sentAt": 1790000460000,
430
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
431
+ "attempt": 0,
432
+ "result": "EXEMPT",
433
+ "exemptReason": "DESTINATION_HALTED"
434
+ }
435
+ ],
436
+ "order.settled": [
437
+ {
438
+ "type": "order.settled",
439
+ "id": "g-16",
440
+ "fillerId": "acme-markets",
441
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
442
+ "sentAt": 1790000900000,
443
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
444
+ "payout": "1000000000",
445
+ "fee": "3000000",
446
+ "penaltyWithheld": "0",
447
+ "txRef": "0x8d99b79edaf0d9c062753bb308a72f52ec1ed8873fe06580c14524bb66a9f614"
448
+ }
449
+ ],
450
+ "penalty.applied": [
451
+ {
452
+ "type": "penalty.applied",
453
+ "id": "g-17",
454
+ "fillerId": "acme-markets",
455
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
456
+ "sentAt": 1790001000000,
457
+ "violationId": "v-1",
458
+ "code": "NO_SHOW",
459
+ "step": "L1",
460
+ "details": {
461
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
462
+ "attempt": 0
463
+ }
464
+ }
465
+ ],
466
+ "canton.prepare": [
467
+ {
468
+ "type": "canton.prepare",
469
+ "id": "cp-1",
470
+ "fillerId": "acme-markets",
471
+ "sentAt": 1789990000000,
472
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
473
+ "op": "party.allocate",
474
+ "params": {
475
+ "publicKey": "0x1111111111111111111111111111111111111111111111111111111111111111"
476
+ }
477
+ },
478
+ {
479
+ "type": "canton.prepare",
480
+ "id": "cp-2",
481
+ "fillerId": "acme-markets",
482
+ "sentAt": 1789990100000,
483
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
484
+ "op": "registry.accept",
485
+ "params": {}
486
+ },
487
+ {
488
+ "type": "canton.prepare",
489
+ "id": "cp-3",
490
+ "fillerId": "acme-markets",
491
+ "sentAt": 1790000026000,
492
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
493
+ "op": "delivery.fill",
494
+ "params": {
495
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
496
+ "attempt": 2
497
+ }
498
+ },
499
+ {
500
+ "type": "canton.prepare",
501
+ "id": "cp-4",
502
+ "fillerId": "acme-markets",
503
+ "sentAt": 1790000700000,
504
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
505
+ "op": "intent.settle",
506
+ "params": {
507
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b"
508
+ }
509
+ },
510
+ {
511
+ "type": "canton.prepare",
512
+ "id": "cp-5",
513
+ "fillerId": "acme-markets",
514
+ "sentAt": 1790001000000,
515
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
516
+ "op": "holdings.transfer",
517
+ "params": {
518
+ "asset": {
519
+ "admin": "cancore-registry::1220aa",
520
+ "id": "CNRX"
521
+ },
522
+ "amount": "250.5",
523
+ "toParty": "alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f"
524
+ }
525
+ }
526
+ ],
527
+ "canton.prepared": [
528
+ {
529
+ "type": "canton.prepared",
530
+ "id": "g-19",
531
+ "fillerId": "acme-markets",
532
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
533
+ "sentAt": 1789990000200,
534
+ "re": "cp-1",
535
+ "operationId": "op-1",
536
+ "op": "party.allocate",
537
+ "legs": [
538
+ {
539
+ "legId": "topology-0",
540
+ "kind": "topology",
541
+ "hash": "0x12203d71f7c09428bb0f75651436e3a1c92b3a12490049882ff50711337cf5c9de0a",
542
+ "topologyTransactions": [
543
+ "CgMyLjESBTAuMC4x",
544
+ "CgMyLjESBTAuMC4y"
545
+ ]
546
+ }
547
+ ],
548
+ "summary": {
549
+ "partyId": "acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
550
+ "publicKey": "0x1111111111111111111111111111111111111111111111111111111111111111",
551
+ "hosting": {
552
+ "participantUid": "PAR::cancore::1220c0ffee",
553
+ "permission": "CONFIRMATION",
554
+ "threshold": 1
555
+ }
556
+ },
557
+ "expiresAt": 1789990300200
558
+ },
559
+ {
560
+ "type": "canton.prepared",
561
+ "id": "g-20",
562
+ "fillerId": "acme-markets",
563
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
564
+ "sentAt": 1790000026300,
565
+ "re": "cp-3",
566
+ "operationId": "op-3",
567
+ "op": "delivery.fill",
568
+ "legs": [
569
+ {
570
+ "legId": "delivery-fill-0",
571
+ "kind": "transaction",
572
+ "hash": "0xf85381267321fc9b5122e45db048de3313dbc0dce8b36202673245d6c6d92840",
573
+ "preparedTransaction": "CgMyLjESBTAuMC4x",
574
+ "hashingSchemeVersion": "HASHING_SCHEME_VERSION_V2"
575
+ }
576
+ ],
577
+ "summary": {
578
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
579
+ "attempt": 2,
580
+ "deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
581
+ "recipient": "alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f",
582
+ "asset": {
583
+ "admin": "cancore-registry::1220aa",
584
+ "id": "CNRX"
585
+ },
586
+ "amount": "999.0",
587
+ "repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
588
+ "validUntil": "1790000400",
589
+ "inputHoldingCids": [
590
+ "00h1",
591
+ "00h2"
592
+ ],
593
+ "executeBefore": "1790000400",
594
+ "transferFactoryCid": "00tf"
595
+ },
596
+ "expiresAt": 1790000326300
597
+ }
598
+ ],
599
+ "canton.submit": [
600
+ {
601
+ "type": "canton.submit",
602
+ "id": "cs-3",
603
+ "fillerId": "acme-markets",
604
+ "sentAt": 1790000027000,
605
+ "msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
606
+ "operationId": "op-3",
607
+ "signatures": [
608
+ {
609
+ "legId": "delivery-fill-0",
610
+ "signature": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
611
+ }
612
+ ]
613
+ }
614
+ ],
615
+ "canton.submitted": [
616
+ {
617
+ "type": "canton.submitted",
618
+ "id": "g-21",
619
+ "fillerId": "acme-markets",
620
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
621
+ "sentAt": 1790000029000,
622
+ "re": "cs-3",
623
+ "operationId": "op-3",
624
+ "op": "delivery.fill",
625
+ "updateId": "1220ab0c",
626
+ "result": {
627
+ "receiptCid": "00c1d2"
628
+ }
629
+ },
630
+ {
631
+ "type": "canton.submitted",
632
+ "id": "g-22",
633
+ "fillerId": "acme-markets",
634
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
635
+ "sentAt": 1789990002000,
636
+ "re": "cs-1",
637
+ "operationId": "op-1",
638
+ "op": "party.allocate",
639
+ "result": {
640
+ "partyId": "acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"
641
+ }
642
+ },
643
+ {
644
+ "type": "canton.submitted",
645
+ "id": "g-23",
646
+ "fillerId": "acme-markets",
647
+ "sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
648
+ "sentAt": 1790001002000,
649
+ "re": "cs-5",
650
+ "operationId": "op-5",
651
+ "op": "holdings.transfer",
652
+ "updateId": "1220ab0d",
653
+ "result": {
654
+ "outcome": "PENDING",
655
+ "transferInstructionCid": "00ti"
656
+ }
657
+ }
658
+ ],
659
+ "settle.attestations": [
660
+ {
661
+ "type": "settle.attestations",
662
+ "id": "g-sa-1",
663
+ "fillerId": "acme-markets",
664
+ "sentAt": 1790000160000,
665
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
666
+ "attempt": 0,
667
+ "sourceChainId": "eip155:11155111",
668
+ "proof": {
669
+ "kind": 1,
670
+ "orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
671
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000066eee",
672
+ "fillRef": "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740",
673
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
674
+ "outputAsset": "0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d",
675
+ "amountDelivered": "999000000",
676
+ "filledAt": "1790000100",
677
+ "fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
678
+ "repayTo": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
679
+ "attempt": 0,
680
+ "setId": 1
681
+ },
682
+ "signatures": [
683
+ {
684
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
685
+ "signature": "0x280a1c67572079434e423c51ee29272a0afb87bc485b3292192fb08242aeef687bcd1417aff35025ab16da3f43a73972585877b131a2b4dfe83d1ae4f5ef0fad1b"
686
+ },
687
+ {
688
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
689
+ "signature": "0x77cba7cedee87b88ac9d90ce0440bb55fa510930318e1a7cb9e2567f198208fb3784a5ca3343c3df2d7dfc29b0a2eae3b87b475893b4d134fa6ce9d8df2a88521b"
690
+ }
691
+ ],
692
+ "setId": 1,
693
+ "threshold": 2,
694
+ "refundAfter": "1790002400",
695
+ "sig": "0x703468572b0f0d056f7c8547a2a70dbb76469888d23059926e906d23cc0468ac54cd96efe6a0f298750a225cd4a7e6acb511f144631076ed2825de0bf0e40b1e1b"
696
+ },
697
+ {
698
+ "type": "settle.attestations",
699
+ "id": "g-sa-3",
700
+ "fillerId": "acme",
701
+ "sentAt": 1789999760000,
702
+ "orderHash": "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
703
+ "attempt": 1,
704
+ "sourceChainId": "canton:mainnet",
705
+ "proof": {
706
+ "kind": 1,
707
+ "orderHash": "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
708
+ "destination": "0x0000000000000000000000000000000000000000000000000000000000000001",
709
+ "fillRef": "0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471",
710
+ "recipient": "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
711
+ "outputAsset": "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
712
+ "amountDelivered": "1200250000",
713
+ "filledAt": "1789999700",
714
+ "fillerId": "0xe29dae06ef4c3e336b7538b6d4f52ca1ecec009b1df6fb501320e11b223aeeaf",
715
+ "repayTo": "0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d",
716
+ "attempt": 1,
717
+ "setId": 3
718
+ },
719
+ "signatures": [
720
+ {
721
+ "signer": "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
722
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3",
723
+ "signature": "0x3044022048f14c61c1f52f541ab136ef92bbbcfca14dd0560db802feb510f7fce19477b20220230a636d4d10c7e5c16b997394a8261185a899f0e8d8e5ffad14db4d4123dd16"
724
+ },
725
+ {
726
+ "signer": "0x6805cf7ce01e1c392d47806813503e367c932544",
727
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e",
728
+ "signature": "0x3045022100d4cb2f8a3084bf5749871a06fa543a9ba80889471eb2799ab4c4c08b31ee7e2902203e2b4af4e08f263168a046a4b6a6370398c7b03de7797f1a011910c0d784f4bc"
729
+ },
730
+ {
731
+ "signer": "0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0",
732
+ "pubKey": "0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b",
733
+ "signature": "0x304402200a300c658594fe20fb429c4f32e23e0b3e444a017f320622cb636792d6f13ca802200cbd9bcb4ea5719f63f8a510e7e9f3d730a47691a7b6eb8e78ec787218997e02"
734
+ }
735
+ ],
736
+ "setId": 3,
737
+ "threshold": 2,
738
+ "refundAfter": "1790001800",
739
+ "sig": "0x481041cd0c07174f6db63b7acdc96a0bcc399de0be60df07faea3be6f0f09c83553a59f5e5443a6d7d1763789404d732a4b5cdc57758b729adf50245b8f96c2d1b"
740
+ }
741
+ ]
742
+ }
743
+ }