@cancore/contracts 0.2.0-rc.6 → 0.2.0-rc.9
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.
- package/README.md +177 -23
- package/dist/abi.d.ts +110 -178
- package/dist/abi.js +1 -1
- package/dist/{chunk-NV5IUURP.js → chunk-GJPX4H5K.js} +132 -232
- package/dist/chunk-GJPX4H5K.js.map +1 -0
- package/dist/index.d.ts +397 -24
- package/dist/index.js +380 -125
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/spec/abi/CancoreRouter.json +64 -155
- package/spec/abi/ICancoreRouter.json +64 -69
- package/spec/constants.json +66 -0
- package/spec/protocol/asyncapi.json +70 -95
- package/spec/protocol/messages.schema.json +30 -13
- package/spec/protocol/rest.schema.json +19 -3
- package/spec/protocol/typed-data/CantonTicketReceipt.json +77 -0
- package/spec/protocol/typed-data/GatewayMessage.json +5 -4
- package/spec/protocol/vectors/messages.json +28 -3
- package/spec/typed-data/FillProof.json +1 -1
- package/spec/typed-data/FillTicket.json +2 -1
- package/spec/vectors/canton-destination.json +59 -0
- package/spec/vectors/evm-order.json +48 -0
- package/spec/vectors/fee-split.json +179 -0
- package/spec/vectors/permit-witness.json +144 -0
- package/dist/chunk-NV5IUURP.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"asyncapi": "3.0.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Cancore filler protocol",
|
|
5
|
-
"version": "1.0.0-rc.
|
|
5
|
+
"version": "1.0.0-rc.2",
|
|
6
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"
|
|
@@ -24,14 +24,43 @@
|
|
|
24
24
|
"channels": {
|
|
25
25
|
"filler": {
|
|
26
26
|
"address": "/v1",
|
|
27
|
-
"description": "One JSON object per text frame.
|
|
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
|
+
},
|
|
28
63
|
"messages": {
|
|
29
|
-
"auth.challenge": {
|
|
30
|
-
"$ref": "#/components/messages/auth.challenge"
|
|
31
|
-
},
|
|
32
|
-
"auth.response": {
|
|
33
|
-
"$ref": "#/components/messages/auth.response"
|
|
34
|
-
},
|
|
35
64
|
"auth.ok": {
|
|
36
65
|
"$ref": "#/components/messages/auth.ok"
|
|
37
66
|
},
|
|
@@ -108,28 +137,6 @@
|
|
|
108
137
|
}
|
|
109
138
|
},
|
|
110
139
|
"operations": {
|
|
111
|
-
"sendAuthChallenge": {
|
|
112
|
-
"action": "send",
|
|
113
|
-
"channel": {
|
|
114
|
-
"$ref": "#/channels/filler"
|
|
115
|
-
},
|
|
116
|
-
"messages": [
|
|
117
|
-
{
|
|
118
|
-
"$ref": "#/channels/filler/messages/auth.challenge"
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
"receiveAuthResponse": {
|
|
123
|
-
"action": "receive",
|
|
124
|
-
"channel": {
|
|
125
|
-
"$ref": "#/channels/filler"
|
|
126
|
-
},
|
|
127
|
-
"messages": [
|
|
128
|
-
{
|
|
129
|
-
"$ref": "#/channels/filler/messages/auth.response"
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
140
|
"sendAuthOk": {
|
|
134
141
|
"action": "send",
|
|
135
142
|
"channel": {
|
|
@@ -397,68 +404,6 @@
|
|
|
397
404
|
},
|
|
398
405
|
"components": {
|
|
399
406
|
"messages": {
|
|
400
|
-
"auth.challenge": {
|
|
401
|
-
"name": "auth.challenge",
|
|
402
|
-
"title": "auth.challenge (S2F)",
|
|
403
|
-
"payload": {
|
|
404
|
-
"schemaFormat": "application/schema+json;version=draft-2020-12",
|
|
405
|
-
"schema": {
|
|
406
|
-
"$ref": "messages.schema.json#/$defs/auth.challenge"
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
"examples": [
|
|
410
|
-
{
|
|
411
|
-
"name": "auth-challenge-1",
|
|
412
|
-
"payload": {
|
|
413
|
-
"type": "auth.challenge",
|
|
414
|
-
"id": "g-1",
|
|
415
|
-
"sentAt": 1789999980000,
|
|
416
|
-
"nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
|
|
417
|
-
"expiresAt": "1790000030",
|
|
418
|
-
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
]
|
|
422
|
-
},
|
|
423
|
-
"auth.response": {
|
|
424
|
-
"name": "auth.response",
|
|
425
|
-
"title": "auth.response (F2S)",
|
|
426
|
-
"payload": {
|
|
427
|
-
"schemaFormat": "application/schema+json;version=draft-2020-12",
|
|
428
|
-
"schema": {
|
|
429
|
-
"$ref": "messages.schema.json#/$defs/auth.response"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
"examples": [
|
|
433
|
-
{
|
|
434
|
-
"name": "auth-response-1",
|
|
435
|
-
"payload": {
|
|
436
|
-
"type": "auth.response",
|
|
437
|
-
"id": "a-1",
|
|
438
|
-
"fillerId": "acme-markets",
|
|
439
|
-
"sentAt": 1789999980100,
|
|
440
|
-
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
441
|
-
"keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
|
|
442
|
-
"protocolVersion": "1",
|
|
443
|
-
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"name": "auth-response-2",
|
|
448
|
-
"payload": {
|
|
449
|
-
"type": "auth.response",
|
|
450
|
-
"id": "a-2",
|
|
451
|
-
"fillerId": "acme-markets",
|
|
452
|
-
"sentAt": 1789999980100,
|
|
453
|
-
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
454
|
-
"keyAddress": "0x90f79bf6eb2c4f870365e785982e1f101e93b906",
|
|
455
|
-
"protocolVersion": "1",
|
|
456
|
-
"nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
|
|
457
|
-
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
]
|
|
461
|
-
},
|
|
462
407
|
"auth.ok": {
|
|
463
408
|
"name": "auth.ok",
|
|
464
409
|
"title": "auth.ok (S2F)",
|
|
@@ -601,11 +546,11 @@
|
|
|
601
546
|
"payload": {
|
|
602
547
|
"type": "error",
|
|
603
548
|
"id": "g-5",
|
|
604
|
-
"sentAt":
|
|
549
|
+
"sentAt": 1789999980150,
|
|
605
550
|
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
606
|
-
"re": "
|
|
551
|
+
"re": "a-2",
|
|
607
552
|
"code": "UNAUTHENTICATED",
|
|
608
|
-
"message": "
|
|
553
|
+
"message": "no live challenge of this fillerId with this nonce"
|
|
609
554
|
}
|
|
610
555
|
},
|
|
611
556
|
{
|
|
@@ -621,6 +566,20 @@
|
|
|
621
566
|
"reason": "REPAY_TO_BLOCKLISTED",
|
|
622
567
|
"message": "repayTo is blocklisted by the input token"
|
|
623
568
|
}
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "errorS2F-4",
|
|
572
|
+
"payload": {
|
|
573
|
+
"type": "error",
|
|
574
|
+
"id": "g-18",
|
|
575
|
+
"fillerId": "acme-markets",
|
|
576
|
+
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
577
|
+
"sentAt": 1789999991500,
|
|
578
|
+
"re": "q-2",
|
|
579
|
+
"code": "RATE_LIMITED",
|
|
580
|
+
"message": "quote rate class over its limit",
|
|
581
|
+
"retryAfterMs": 850
|
|
582
|
+
}
|
|
624
583
|
}
|
|
625
584
|
]
|
|
626
585
|
},
|
|
@@ -1061,6 +1020,22 @@
|
|
|
1061
1020
|
"ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
|
|
1062
1021
|
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
1063
1022
|
}
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "ticket-receipt-2",
|
|
1026
|
+
"payload": {
|
|
1027
|
+
"type": "ticket.receipt",
|
|
1028
|
+
"id": "rc-2",
|
|
1029
|
+
"fillerId": "acme-markets",
|
|
1030
|
+
"sentAt": 1790000025000,
|
|
1031
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
1032
|
+
"form": "canton",
|
|
1033
|
+
"orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
|
|
1034
|
+
"attempt": 2,
|
|
1035
|
+
"deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
|
|
1036
|
+
"validUntil": "1790000400",
|
|
1037
|
+
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
1038
|
+
}
|
|
1064
1039
|
}
|
|
1065
1040
|
]
|
|
1066
1041
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://cancore.io/schemas/filler-protocol/v1/messages.schema.json",
|
|
4
4
|
"title": "Cancore filler protocol v1 — WebSocket frames",
|
|
5
|
-
"$comment": "One $def per frame type, validated by name ($defs/<type>). The schemas encode the SENDER rule (protocol §3.1): lowercase hex, uint64 and wider as canonical decimal strings, uint8/16/32 as JSON integers, gateway times in milliseconds. No object is closed (V-2): receivers ignore unknown fields, takers ignore unknown S→F types, and treat an unknown reason/result/code as OTHER/generic. Every enum is open: anyOf [known values, futureEnumValue]. x-direction: S2F = gateway to filler, F2S = filler to gateway, both = either way (ping, pong, error; <type>S2F is the gateway's copy, <type>F2S the filler's). Every frame in both directions carries id, sentAt and fillerId (
|
|
5
|
+
"$comment": "One $def per frame type, validated by name ($defs/<type>). The schemas encode the SENDER rule (protocol §3.1): lowercase hex, uint64 and wider as canonical decimal strings, uint8/16/32 as JSON integers, gateway times in milliseconds. No object is closed (V-2): receivers ignore unknown fields, takers ignore unknown S→F types, and treat an unknown reason/result/code as OTHER/generic. Every enum is open: anyOf [known values, futureEnumValue]. x-direction: S2F = gateway to filler, F2S = filler to gateway, both = either way (ping, pong, error; <type>S2F is the gateway's copy, <type>F2S the filler's). x-rest-only: the type travels only as a REST body (auth.challenge, auth.response: the login of protocol §3.6), never on the WebSocket. Every frame in both directions carries id, sentAt and fillerId (optional only on a gateway error that refuses a login, POST /v1/filler/auth) and is signed (protocol §3.4): `sig` = the gateway key over GatewayMessage{bodyHash} on S2F, `msgSig` = the filler's message key over FillerMessage{bodyHash} on F2S, bodyHash = keccak256(JCS(frame without that field)). No exceptions: ticket.decline, a declining quote.reconfirm.reply, fill.reported, pong and error from the filler are signed too.",
|
|
6
6
|
"$defs": {
|
|
7
7
|
"uintDec64": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$", "maxLength": 20, "description": "uint64 as a decimal string: digits only, no sign, no exponent, no leading zero" },
|
|
8
8
|
"uintDec256": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$", "maxLength": 78, "description": "uint256 as a decimal string" },
|
|
@@ -125,16 +125,18 @@
|
|
|
125
125
|
},
|
|
126
126
|
"auth.challenge": {
|
|
127
127
|
"x-direction": "S2F",
|
|
128
|
+
"x-rest-only": true,
|
|
128
129
|
"type": "object",
|
|
129
|
-
"description": "
|
|
130
|
-
"allOf": [{ "$ref": "#/$defs/
|
|
130
|
+
"description": "The login challenge, addressed to the fillerId it was asked for: the 200 body of GET /v1/filler/auth/challenge?fillerId=. Never sent on the WebSocket. The filler checks the gateway sig and that fillerId is its own before it signs FillerAuth{fillerId, nonce, expiresAt}",
|
|
131
|
+
"allOf": [{ "$ref": "#/$defs/s2fBase" }],
|
|
131
132
|
"required": ["type", "nonce", "expiresAt"],
|
|
132
133
|
"properties": { "type": { "const": "auth.challenge" }, "nonce": { "$ref": "#/$defs/bytes32" }, "expiresAt": { "$ref": "#/$defs/timeS" } }
|
|
133
134
|
},
|
|
134
135
|
"auth.response": {
|
|
135
136
|
"x-direction": "F2S",
|
|
136
137
|
"type": "object",
|
|
137
|
-
"
|
|
138
|
+
"x-rest-only": true,
|
|
139
|
+
"description": "The body of POST /v1/filler/auth, answered with {token, expiresAt}. sig = FillerAuth{fillerId, nonce, expiresAt} by the registered message key of fillerId (keyAddress = its address); msgSig by the same key. Never sent on the WebSocket: a WebSocket connection is authenticated by the bearer token offered on the upgrade",
|
|
138
140
|
"allOf": [{ "$ref": "#/$defs/f2sBase" }],
|
|
139
141
|
"required": ["type", "fillerId", "keyAddress", "protocolVersion", "sig"],
|
|
140
142
|
"properties": {
|
|
@@ -142,7 +144,7 @@
|
|
|
142
144
|
"fillerId": { "$ref": "#/$defs/fillerId" },
|
|
143
145
|
"keyAddress": { "$ref": "#/$defs/address" },
|
|
144
146
|
"protocolVersion": { "type": "string", "description": "the gateway answers UNSUPPORTED_VERSION to anything it does not serve; v1 senders send \"1\"" },
|
|
145
|
-
"nonce": { "$ref": "#/$defs/bytes32", "description": "
|
|
147
|
+
"nonce": { "$ref": "#/$defs/bytes32", "description": "the auth.challenge nonce this response answers (optional; senders SHOULD send it), so POST /v1/filler/auth finds the live challenge of this fillerId without trying every one" },
|
|
146
148
|
"sig": { "$ref": "#/$defs/sig65" }
|
|
147
149
|
}
|
|
148
150
|
},
|
|
@@ -194,10 +196,16 @@
|
|
|
194
196
|
},
|
|
195
197
|
"errorS2F": {
|
|
196
198
|
"type": "object",
|
|
197
|
-
"description": "Reply to the F→S frame `re`; also the REST error body. fillerId
|
|
199
|
+
"description": "Reply to the F→S frame `re`; also the REST error body. fillerId may be absent on a refusal of POST /v1/filler/auth, which is not authenticated yet. reason names the failed pre-ticket check with TICKET_REFUSED. retryAfterMs comes with RATE_LIMITED only",
|
|
198
200
|
"allOf": [{ "$ref": "#/$defs/s2fEnvelope" }],
|
|
199
201
|
"required": ["type", "code", "message"],
|
|
200
|
-
"properties": {
|
|
202
|
+
"properties": {
|
|
203
|
+
"type": { "const": "error" },
|
|
204
|
+
"code": { "$ref": "#/$defs/errorCode" },
|
|
205
|
+
"message": { "type": "string" },
|
|
206
|
+
"reason": { "$ref": "#/$defs/ticketRefusedReason" },
|
|
207
|
+
"retryAfterMs": { "$ref": "#/$defs/durationMs", "type": "integer", "minimum": 1, "description": "with RATE_LIMITED: ms (≥ 1) until the rate class of the refused message holds a token again, or until the cooldown of the fillerId ends; the filler sends nothing of that class before it" }
|
|
208
|
+
},
|
|
201
209
|
"if": { "type": "object", "properties": { "code": { "const": "TICKET_REFUSED" } }, "required": ["code"] },
|
|
202
210
|
"then": { "type": "object", "required": ["reason"], "properties": { "reason": true } }
|
|
203
211
|
},
|
|
@@ -395,17 +403,26 @@
|
|
|
395
403
|
"ticket.receipt": {
|
|
396
404
|
"x-direction": "F2S",
|
|
397
405
|
"type": "object",
|
|
398
|
-
"description": "sig = TicketReceipt{ticketHash, ticketSigHash} by the message key",
|
|
399
|
-
"
|
|
400
|
-
"required": ["type", "orderHash", "attempt", "ticketHash", "ticketSigHash", "sig"],
|
|
406
|
+
"description": "form follows the issued ticket (S-14). EVM form (form absent or \"evm\"): sig = TicketReceipt{ticketHash, ticketSigHash} by the message key. Canton form: sig = CantonTicketReceipt{orderHash, attempt, deliveryOrderCidHash = keccak256(utf8(deliveryOrderCid)), validUntil} by the message key, deliveryOrderCid and validUntil exactly as in ticket.issued; fillerId and repayTo are not part of it (protocol §3.3, §10 D-O)",
|
|
407
|
+
"required": ["type", "orderHash", "attempt", "sig"],
|
|
401
408
|
"properties": {
|
|
402
409
|
"type": { "const": "ticket.receipt" },
|
|
410
|
+
"form": { "anyOf": [{ "enum": ["evm", "canton"] }, { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }] },
|
|
403
411
|
"orderHash": { "$ref": "#/$defs/bytes32" },
|
|
404
412
|
"attempt": { "$ref": "#/$defs/uint32" },
|
|
405
|
-
"ticketHash": { "$ref": "#/$defs/bytes32" },
|
|
406
|
-
"ticketSigHash": { "$ref": "#/$defs/bytes32" },
|
|
407
413
|
"sig": { "$ref": "#/$defs/sig65" }
|
|
408
|
-
}
|
|
414
|
+
},
|
|
415
|
+
"allOf": [
|
|
416
|
+
{ "$ref": "#/$defs/f2sBase" },
|
|
417
|
+
{
|
|
418
|
+
"if": { "type": "object", "properties": { "form": { "const": "evm" } } },
|
|
419
|
+
"then": { "type": "object", "required": ["ticketHash", "ticketSigHash"], "properties": { "ticketHash": { "$ref": "#/$defs/bytes32" }, "ticketSigHash": { "$ref": "#/$defs/bytes32" } } }
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"if": { "type": "object", "properties": { "form": { "const": "canton" } }, "required": ["form"] },
|
|
423
|
+
"then": { "type": "object", "required": ["deliveryOrderCid", "validUntil"], "properties": { "deliveryOrderCid": { "type": "string", "minLength": 1, "description": "the contract id of the DeliveryOrder, exactly as ticket.issued sent it" }, "validUntil": { "$ref": "#/$defs/timeS", "description": "= ticket.issued.validUntil" } } }
|
|
424
|
+
}
|
|
425
|
+
]
|
|
409
426
|
},
|
|
410
427
|
"fill.reported": {
|
|
411
428
|
"x-direction": "F2S",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://cancore.io/schemas/filler-protocol/v1/rest.schema.json",
|
|
4
4
|
"title": "Cancore filler protocol v1 — REST fallback",
|
|
5
|
-
"$comment": "protocol §3.6. Bodies are the WebSocket frames: every request body is a filler message with its envelope (id, fillerId, sentAt) and msgSig, verified before processing as on the WebSocket (S-19); every response is a freshly signed S→F message. /v1/filler
|
|
5
|
+
"$comment": "protocol §3.6. Bodies are the WebSocket frames: every request body is a filler message with its envelope (id, fillerId, sentAt) and msgSig, verified before processing as on the WebSocket (S-19); every response is a freshly signed S→F message. Login: GET /v1/filler/auth/challenge?fillerId= returns a signed auth.challenge addressed to that fillerId; POST /v1/filler/auth with the auth.response (FillerAuth over it) returns {token, expiresAt}. The challenge route is anonymous and its refusals are UNSIGNED (unsignedErrorBody, no sig, nothing journalled): 400 BAD_REQUEST — fillerId missing or not a fillerId; 404 UNKNOWN_REQUEST — fillerId unknown or not ACTIVE; the anonymous login steps are charged to no fillerId's rate limits (knowing a fillerId cannot lock its filler out); a 429 here comes only from the per-IP limit in front of filler-gateway. POST /v1/filler/auth refuses UNSIGNED too as long as it has checked no signature: 400 BAD_REQUEST — no or a malformed fillerId; 404 UNKNOWN_REQUEST — fillerId unknown or not ACTIVE; 401 UNAUTHENTICATED — the fillerId holds no live challenge (evicted, expired or used: ask for a new one). Its refusals after the signature checks (BAD_SIGNATURE, STALE_MESSAGE, REPLAYED_MESSAGE, UNSUPPORTED_VERSION, NOT_ELIGIBLE, UNAUTHENTICATED) are the signed error. The other /v1/filler/* routes need `Authorization: Bearer <token>`; the token is bound to (fillerId, message key) and stops working when it expires, when the message key is changed, or when the filler is no longer ACTIVE. The same token opens the WebSocket (asyncapi.json: offered as the subprotocol bearer.<token>). A ticket of another filler is 404 UNKNOWN_TICKET. Rate limits are per fillerId, shared by REST and every WebSocket session of it: over the limit a bearer route answers 429 with an UNSIGNED unsignedErrorBody {type: error, code: RATE_LIMITED, message, retryAfterMs} and a Retry-After header (seconds, rounded up), journals nothing one by one, and the request changes nothing; during the cooldown after sustained excess every bearer route answers so. Every 429 is unsigned, on every route; a filler decides by the status and takes retryAfterMs (else Retry-After) as a hint. Every other non-2xx of a bearer route is the signed error. GET /v1/filler/attestations/{orderHash} answers 404 ATTESTATIONS_NOT_READY until the gateway holds ≥ threshold verified signatures for this filler's fill, and 404 UNKNOWN_TICKET when this filler holds no ticket on the order. /v1/draws/* and /v1/gateway are public. Every non-2xx body is the signed `error` frame, with the HTTP status of x-error-status — except a 429 (always unsignedErrorBody) and the unsigned refusals of an endpoint that names an errorBody. x-endpoints: request/query/response/errorBody name a $def here or in messages.schema.json.",
|
|
6
6
|
"x-endpoints": [
|
|
7
|
-
{ "method": "GET", "path": "/v1/filler/auth/challenge", "auth": "none", "response": "messages.schema.json#/$defs/auth.challenge" },
|
|
8
|
-
{ "method": "POST", "path": "/v1/filler/auth", "auth": "none", "request": "messages.schema.json#/$defs/auth.response", "response": "#/$defs/authToken" },
|
|
7
|
+
{ "method": "GET", "path": "/v1/filler/auth/challenge", "auth": "none", "query": "#/$defs/challengeQuery", "response": "messages.schema.json#/$defs/auth.challenge", "errorBody": "#/$defs/unsignedErrorBody" },
|
|
8
|
+
{ "method": "POST", "path": "/v1/filler/auth", "auth": "none", "request": "messages.schema.json#/$defs/auth.response", "response": "#/$defs/authToken", "errorBody": "#/$defs/unsignedErrorBody" },
|
|
9
9
|
{ "method": "GET", "path": "/v1/filler/tickets", "auth": "bearer", "query": "#/$defs/ticketListQuery", "response": "#/$defs/ticketList" },
|
|
10
10
|
{ "method": "POST", "path": "/v1/filler/tickets/{orderHash}/{attempt}/intent", "auth": "bearer", "request": "messages.schema.json#/$defs/ticket.intent", "response": "messages.schema.json#/$defs/ticket.intent.ack" },
|
|
11
11
|
{ "method": "POST", "path": "/v1/filler/tickets/{orderHash}/{attempt}/receipt", "auth": "bearer", "request": "messages.schema.json#/$defs/ticket.receipt", "response": "#/$defs/empty" },
|
|
@@ -26,6 +26,22 @@
|
|
|
26
26
|
},
|
|
27
27
|
"$defs": {
|
|
28
28
|
"errorBody": { "$ref": "messages.schema.json#/$defs/errorS2F" },
|
|
29
|
+
"unsignedErrorBody": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"description": "An unsigned refusal: every 429, and the refusals of the login routes decided before any signature check. Not signed, not addressed, nothing journalled; a filler cannot verify it and treats it as a hint only (status, code, retryAfterMs)",
|
|
32
|
+
"required": ["type", "code", "message"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"type": { "const": "error" },
|
|
35
|
+
"code": { "$ref": "messages.schema.json#/$defs/errorCode" },
|
|
36
|
+
"message": { "type": "string" },
|
|
37
|
+
"retryAfterMs": { "$ref": "messages.schema.json#/$defs/durationMs", "type": "integer", "minimum": 1, "description": "with RATE_LIMITED (429): ms until the rate class may be used again" }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"challengeQuery": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"required": ["fillerId"],
|
|
43
|
+
"properties": { "fillerId": { "$ref": "messages.schema.json#/$defs/fillerId", "description": "the filler logging in; the challenge is addressed to it and answerable only by it" } }
|
|
44
|
+
},
|
|
29
45
|
"empty": { "type": "object", "description": "no fields in v1; receivers ignore unknown ones (V-2)" },
|
|
30
46
|
"authToken": {
|
|
31
47
|
"type": "object",
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Filler protocol v1, settlement design (variant A, CAN-2139; protocol.md §3.3): The receipt of a Canton-form ticket (§3.5, §10 D-O), which has no FillTicket and no ticketSig: orderHash and attempt of the ticket, deliveryOrderCidHash = keccak256(utf8(deliveryOrderCid)) over the contract id exactly as sent in ticket.issued (each vector names the string it hashes), validUntil = ticket.issued.validUntil. fillerId and repayTo are not part of it: they travel in ticket.issued. Signed by the message key (CAN-2062). Domain CancoreFillerProtocol v1, no chainId, no verifyingContract. Digests by ethers TypedDataEncoder.",
|
|
3
|
+
"primaryType": "CantonTicketReceipt",
|
|
4
|
+
"domain": {
|
|
5
|
+
"name": "CancoreFillerProtocol",
|
|
6
|
+
"version": "1",
|
|
7
|
+
"fields": [
|
|
8
|
+
"name",
|
|
9
|
+
"version"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"typeString": "CantonTicketReceipt(bytes32 orderHash,uint32 attempt,bytes32 deliveryOrderCidHash,uint64 validUntil)",
|
|
13
|
+
"types": {
|
|
14
|
+
"CantonTicketReceipt": [
|
|
15
|
+
{
|
|
16
|
+
"name": "orderHash",
|
|
17
|
+
"type": "bytes32"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "attempt",
|
|
21
|
+
"type": "uint32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "deliveryOrderCidHash",
|
|
25
|
+
"type": "bytes32"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "validUntil",
|
|
29
|
+
"type": "uint64"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"vectors": [
|
|
34
|
+
{
|
|
35
|
+
"note": "receipt of the Canton-form ticket.issued example (spec/protocol/vectors/messages.json): attempt 2 of the fixture order",
|
|
36
|
+
"deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
|
|
37
|
+
"message": {
|
|
38
|
+
"orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
|
|
39
|
+
"attempt": 2,
|
|
40
|
+
"deliveryOrderCidHash": "0x5c7b22bd40920041d2cc926c93a6020af74e1f42036bf3b0dbe784b1a7720014",
|
|
41
|
+
"validUntil": "1790000400"
|
|
42
|
+
},
|
|
43
|
+
"digest": "0x6aa7333dea8b3abb153176b4f519c5807e03215acd177ef1091bb6d072498a2c"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"note": "a contract id shaped as the ledger prints it, on the canton-order.json order",
|
|
47
|
+
"deliveryOrderCid": "0044b7a7e21e25380f41b3cf55244a5edcfbdb46aa8a1238226177d56ddab35f19ca1220972fef88e9043f7d83cac719bcb198718e7e134d36afcae884953a03f9bc2540",
|
|
48
|
+
"message": {
|
|
49
|
+
"orderHash": "0x770f1ebba8ab5b96e3efbed39c0f630d56f934f9f232771abaccdb0cf17ca204",
|
|
50
|
+
"attempt": 0,
|
|
51
|
+
"deliveryOrderCidHash": "0xa6af2a70138ce6ea8d93b04960adb9d415c3e7b9cd669ab6f7602420483e7d42",
|
|
52
|
+
"validUntil": "1789999800"
|
|
53
|
+
},
|
|
54
|
+
"digest": "0xbdd7bf58d74f86144e9befb537ed32c9753b194a580f9e703ceda1b461c137a6"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"note": "every integer at its maximum, every word all ones",
|
|
58
|
+
"message": {
|
|
59
|
+
"orderHash": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
60
|
+
"attempt": 4294967295,
|
|
61
|
+
"deliveryOrderCidHash": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
62
|
+
"validUntil": "18446744073709551615"
|
|
63
|
+
},
|
|
64
|
+
"digest": "0x5fc4527dac12909840287d3d1600c1cd4c6b923cb9e6ce1b39ceccc78b7e91ca"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"note": "zero",
|
|
68
|
+
"message": {
|
|
69
|
+
"orderHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
70
|
+
"attempt": 0,
|
|
71
|
+
"deliveryOrderCidHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
72
|
+
"validUntil": "0"
|
|
73
|
+
},
|
|
74
|
+
"digest": "0x3d54c9eba500517aa119c8ce81d645ba351d556896ab36e8543f14b224d55b91"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -74,20 +74,21 @@
|
|
|
74
74
|
"digest": "0xc9912d2414f6eb8c78a4b9327bddf42de058b9b7f41f64ee938b347cb8d9427b"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
"note": "auth.challenge: the
|
|
77
|
+
"note": "auth.challenge: the body of GET /v1/filler/auth/challenge?fillerId=, addressed to that fillerId",
|
|
78
78
|
"body": {
|
|
79
79
|
"type": "auth.challenge",
|
|
80
80
|
"id": "g-1",
|
|
81
|
+
"fillerId": "acme-markets",
|
|
81
82
|
"sentAt": 1789999980000,
|
|
82
83
|
"nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
|
|
83
84
|
"expiresAt": "1790000030",
|
|
84
85
|
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
85
86
|
},
|
|
86
|
-
"jcs": "{\"expiresAt\":\"1790000030\",\"id\":\"g-1\",\"nonce\":\"0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5\",\"sentAt\":1789999980000,\"type\":\"auth.challenge\"}",
|
|
87
|
+
"jcs": "{\"expiresAt\":\"1790000030\",\"fillerId\":\"acme-markets\",\"id\":\"g-1\",\"nonce\":\"0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5\",\"sentAt\":1789999980000,\"type\":\"auth.challenge\"}",
|
|
87
88
|
"message": {
|
|
88
|
-
"bodyHash": "
|
|
89
|
+
"bodyHash": "0x5a5366bd8912145688cfbcf7e75e102d2f333eb59c5a8d565c5a9a57d147c313"
|
|
89
90
|
},
|
|
90
|
-
"digest": "
|
|
91
|
+
"digest": "0x531f729b903d9ab9f9d824a15a6330478f9605c09ba3d2c60b66e3681e1ff12a"
|
|
91
92
|
}
|
|
92
93
|
]
|
|
93
94
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
{
|
|
6
6
|
"type": "auth.challenge",
|
|
7
7
|
"id": "g-1",
|
|
8
|
+
"fillerId": "acme-markets",
|
|
8
9
|
"sentAt": 1789999980000,
|
|
9
10
|
"nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
|
|
10
11
|
"expiresAt": "1790000030",
|
|
@@ -93,11 +94,11 @@
|
|
|
93
94
|
{
|
|
94
95
|
"type": "error",
|
|
95
96
|
"id": "g-5",
|
|
96
|
-
"sentAt":
|
|
97
|
+
"sentAt": 1789999980150,
|
|
97
98
|
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
98
|
-
"re": "
|
|
99
|
+
"re": "a-2",
|
|
99
100
|
"code": "UNAUTHENTICATED",
|
|
100
|
-
"message": "
|
|
101
|
+
"message": "no live challenge of this fillerId with this nonce"
|
|
101
102
|
},
|
|
102
103
|
{
|
|
103
104
|
"type": "error",
|
|
@@ -119,6 +120,17 @@
|
|
|
119
120
|
"re": "g-77",
|
|
120
121
|
"code": "UNKNOWN_TICKET",
|
|
121
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
|
|
122
134
|
}
|
|
123
135
|
],
|
|
124
136
|
"epoch.weights": [
|
|
@@ -369,6 +381,19 @@
|
|
|
369
381
|
"ticketHash": "0x8eaef6b8d59e72288487b0def58e0eb9200fa7600170351af985111eaec5a0a9",
|
|
370
382
|
"ticketSigHash": "0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b",
|
|
371
383
|
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "ticket.receipt",
|
|
387
|
+
"id": "rc-2",
|
|
388
|
+
"fillerId": "acme-markets",
|
|
389
|
+
"sentAt": 1790000025000,
|
|
390
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
391
|
+
"form": "canton",
|
|
392
|
+
"orderHash": "0x585ec61a0813109803da9d47aea37a165f7df1371553f1e4ea8c139cf74058a6",
|
|
393
|
+
"attempt": 2,
|
|
394
|
+
"deliveryOrderCid": "00a1b2c3d4e5f6#fixture-delivery-order",
|
|
395
|
+
"validUntil": "1790000400",
|
|
396
|
+
"sig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
372
397
|
}
|
|
373
398
|
],
|
|
374
399
|
"fill.reported": [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "EIP-712 schema of
|
|
2
|
+
"$comment": "EIP-712 schema of FillProof — the struct CancoreRouter.settle verifies attestor signatures over — and its golden vectors. The contract is the source of truth: test/CancoreRouter.ts checks this file against FILLPROOF_TYPEHASH and hashFillProof. @cancore/contracts mirrors it (sdk: npm run sync) and checks the same vectors with its own encoder. Change the struct here and this repository's test fails at once; the SDK's fails once its `npm run sync` pulls the change (nothing checks the two repositories against each other automatically). The vectors are @cancore/contracts' canonical set (CAN-2139, sdk 4c6971f), byte for byte: the router computing each of them in test/CancoreRouter.ts is the cross-check between the two repositories.",
|
|
3
3
|
"primaryType": "FillProof",
|
|
4
4
|
"domain": {
|
|
5
5
|
"$comment": "The SOURCE router of the order: settle recomputes the digest in its own domain, so a proof never verifies on another chain or router.",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "
|
|
2
|
+
"$comment": "EIP-712 schema of FillTicket — the dispatcher's assignment CancoreRouter.fill verifies — and its golden vectors. The contract is the source of truth: test/CancoreRouter.ts checks this file against TICKET_TYPEHASH, TICKET_DOMAIN_SEPARATOR and hashTicket. @cancore/contracts mirrors it (sdk: npm run sync) and checks the same vectors with its own encoder. The vectors are @cancore/contracts' canonical set (CAN-2139, sdk 4c6971f), byte for byte: the router computing each of them in test/CancoreRouter.ts is the cross-check between the two repositories.",
|
|
3
3
|
"primaryType": "FillTicket",
|
|
4
4
|
"domain": {
|
|
5
|
+
"$comment": "The PROTOCOL domain: no chainId, no verifyingContract. orderHash is already the source-router digest, so one ticket verifies identically on every router and off-chain.",
|
|
5
6
|
"name": "CancoreFillTicket",
|
|
6
7
|
"version": "1",
|
|
7
8
|
"fields": [
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "An EVM-source order delivered on Canton and the FillProof of the delivery (protocol.md §3.13; CAN-1935): destination = keccak256(utf8(\"canton:<network>\")), outputAsset = keccak256(abi.encode(\"cancore:instrument:v1\", admin, id)), minReceived and amountDelivered = Daml Numeric 10 × 10^10, recipient = keccak256(utf8(partyId)); the proof copies destination, recipient and outputAsset from the order (CancoreRouter.settle compares them), fillRef = keccak256(utf8(updateId)), fillerId = keccak256(utf8(fillerId)), repayTo the padded EVM payout address. Network devnet (operator decision Р-3). The instrument, party and amount are those of the Canton-destination vector of spec/typed-data/FillProof.json (canton:mainnet), which the router test computes with hashFillProof. Digests by ethers TypedDataEncoder. Generated by scripts/gen-router-vectors.mjs.",
|
|
3
|
+
"vector": {
|
|
4
|
+
"networks": {
|
|
5
|
+
"mainnet": "0x8d6e3eea79c707a9549bdb1206260cd46ef29e86763e19a8a3f494bc6b499440",
|
|
6
|
+
"testnet": "0xe9988c091217763216d67a428bebd45f2f157fcf531ae52fba942fb9c0658682",
|
|
7
|
+
"devnet": "0x0f6f82ab16aa8bfd8099433fefad277a2ac9da342a11fe80fbfc3342c5bb0db9"
|
|
8
|
+
},
|
|
9
|
+
"input": {
|
|
10
|
+
"network": "devnet",
|
|
11
|
+
"instrumentAdmin": "cancore-registry::1220f0e1d2c3b4a5968778695a4b3c2d1e0f0e1d2c3b4a5968778695a4b3c2d1e0f",
|
|
12
|
+
"instrumentId": "CNRX",
|
|
13
|
+
"minReceived": "1200.25",
|
|
14
|
+
"amountDelivered": "1200.2500000001",
|
|
15
|
+
"recipientPartyId": "alice::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f9"
|
|
16
|
+
},
|
|
17
|
+
"encoded": {
|
|
18
|
+
"destination": "0x0f6f82ab16aa8bfd8099433fefad277a2ac9da342a11fe80fbfc3342c5bb0db9",
|
|
19
|
+
"outputAsset": "0x034bad92a7c82fb0e37b03e7795ae88257786ea0e2cfe2c43b88b420993dc98f",
|
|
20
|
+
"minReceived": "12002500000000",
|
|
21
|
+
"recipient": "0x8330f18e4203206b15fc33cb80a36595317e2638ec444305e71b9502faa9e628",
|
|
22
|
+
"amountDelivered": "12002500000001"
|
|
23
|
+
},
|
|
24
|
+
"domain": {
|
|
25
|
+
"chainId": 31337,
|
|
26
|
+
"verifyingContract": "0x00000000000000000000000000000000caFe0001"
|
|
27
|
+
},
|
|
28
|
+
"order": {
|
|
29
|
+
"user": "0xa11ce00000000000000000000000000000000001",
|
|
30
|
+
"originChainId": "31337",
|
|
31
|
+
"inputToken": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
32
|
+
"inputAmount": "1203610000",
|
|
33
|
+
"destination": "0x0f6f82ab16aa8bfd8099433fefad277a2ac9da342a11fe80fbfc3342c5bb0db9",
|
|
34
|
+
"outputAsset": "0x034bad92a7c82fb0e37b03e7795ae88257786ea0e2cfe2c43b88b420993dc98f",
|
|
35
|
+
"minReceived": "12002500000000",
|
|
36
|
+
"recipient": "0x8330f18e4203206b15fc33cb80a36595317e2638ec444305e71b9502faa9e628",
|
|
37
|
+
"createdAt": "1790000000",
|
|
38
|
+
"fillDeadline": "1790000600",
|
|
39
|
+
"feeBps": "30"
|
|
40
|
+
},
|
|
41
|
+
"orderHash": "0x1f3979c601435cebd62f68143f5d58e772004fe783a0f839b66df616e250ca1a",
|
|
42
|
+
"proof": {
|
|
43
|
+
"kind": 1,
|
|
44
|
+
"orderHash": "0x1f3979c601435cebd62f68143f5d58e772004fe783a0f839b66df616e250ca1a",
|
|
45
|
+
"destination": "0x0f6f82ab16aa8bfd8099433fefad277a2ac9da342a11fe80fbfc3342c5bb0db9",
|
|
46
|
+
"fillRef": "0x6e160b17d1a59750069b532ec354c9bfd5d99295375064d712fcb08284b50a1d",
|
|
47
|
+
"recipient": "0x8330f18e4203206b15fc33cb80a36595317e2638ec444305e71b9502faa9e628",
|
|
48
|
+
"outputAsset": "0x034bad92a7c82fb0e37b03e7795ae88257786ea0e2cfe2c43b88b420993dc98f",
|
|
49
|
+
"amountDelivered": "12002500000001",
|
|
50
|
+
"filledAt": "1790000300",
|
|
51
|
+
"fillerId": "0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5",
|
|
52
|
+
"repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
|
|
53
|
+
"attempt": 0,
|
|
54
|
+
"setId": 1
|
|
55
|
+
},
|
|
56
|
+
"structHash": "0xa711551e2660339997b4fffe99e58dbc71f7c09dd3de8d6c9ffca22c2cfd7fdf",
|
|
57
|
+
"digest": "0xa246a541f0e49b98383f6dd2f38a981569f98fc512396b5b4283a594d501c8ab"
|
|
58
|
+
}
|
|
59
|
+
}
|