@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.
- package/README.md +522 -10
- package/dist/abi.d.ts +6598 -1675
- package/dist/abi.js +1 -1
- package/dist/chunk-2ELHDMZ7.js +9911 -0
- package/dist/chunk-2ELHDMZ7.js.map +1 -0
- package/dist/{chunk-CIBYXHSX.js → chunk-IAPV7XWJ.js} +2 -2
- package/dist/chunk-IAPV7XWJ.js.map +1 -0
- package/dist/index.d.ts +1774 -29
- package/dist/index.js +3692 -21
- package/dist/index.js.map +1 -1
- package/dist/networks.d.ts +2 -2
- package/dist/networks.js +1 -1
- package/package.json +10 -8
- package/spec/abi/AttestorSet.json +476 -0
- package/spec/abi/CNRX.json +1294 -0
- package/spec/abi/CNRXStaking.json +510 -0
- package/spec/abi/CancoreRouter.json +2666 -0
- package/spec/abi/FeeVault.json +604 -0
- package/spec/abi/HTLC.json +717 -0
- package/spec/abi/IAttribute.json +110 -0
- package/spec/abi/IBurnMintERC20.json +252 -0
- package/spec/abi/ICancoreRouter.json +1361 -0
- package/spec/abi/IFormula.json +28 -0
- package/spec/abi/IHTLC.json +382 -0
- package/spec/abi/IPayment.json +40 -0
- package/spec/abi/IPermit2.json +150 -0
- package/spec/abi/IResolver.json +55 -0
- package/spec/abi/IStep.json +30 -0
- package/spec/abi/IVariableRole.json +141 -0
- package/spec/abi/MultiBalanceChecker.json +34 -0
- package/spec/abi/PointsClaim.json +791 -0
- package/spec/constants.json +66 -0
- package/spec/protocol/asyncapi.json +1587 -0
- package/spec/protocol/messages.schema.json +906 -0
- package/spec/protocol/records.schema.json +94 -0
- package/spec/protocol/rest.schema.json +193 -0
- package/spec/protocol/typed-data/CantonTicketReceipt.json +77 -0
- package/spec/protocol/typed-data/FillerAuth.json +58 -0
- package/spec/protocol/typed-data/FillerKeyRegistration.json +69 -0
- package/spec/protocol/typed-data/FillerMessage.json +115 -0
- package/spec/protocol/typed-data/FillerQuote.json +75 -0
- package/spec/protocol/typed-data/GatewayMessage.json +95 -0
- package/spec/protocol/typed-data/StakeBinding.json +75 -0
- package/spec/protocol/typed-data/TicketIntent.json +113 -0
- package/spec/protocol/typed-data/TicketReceipt.json +51 -0
- package/spec/protocol/vectors/draw.json +61 -0
- package/spec/protocol/vectors/jcs.json +59 -0
- package/spec/protocol/vectors/messages.json +743 -0
- package/spec/protocol/vectors/records.json +81 -0
- package/spec/protocol/vectors/settle-attestations.json +544 -0
- package/spec/typed-data/FillProof.json +227 -0
- package/spec/typed-data/FillTicket.json +116 -0
- package/spec/typed-data/Order.json +169 -0
- package/spec/typed-data/Quote.json +79 -0
- package/spec/vectors/canton-destination.json +60 -0
- package/spec/vectors/canton-order.json +70 -0
- package/spec/vectors/evm-order.json +50 -0
- package/spec/vectors/fee-split.json +179 -0
- package/spec/vectors/permit-witness.json +150 -0
- package/dist/chunk-CIBYXHSX.js.map +0 -1
- package/dist/chunk-ZSX67S72.js +0 -3423
- package/dist/chunk-ZSX67S72.js.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cancore.io/schemas/filler-protocol/v1/records.schema.json",
|
|
4
|
+
"title": "Cancore filler protocol v1 — public records",
|
|
5
|
+
"$comment": "The draw record (GET /v1/draws/{orderHash}), the epoch record (GET /v1/draws/epochs/{id}) — auction-and-draw §3.3–3.4 — and the gateway identity (GET /v1/gateway). Records are signed by the gateway like an S→F frame (sig over GatewayMessage{keccak256(JCS(record without sig))}) but are public: no fillerId, no sentAt.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"drawCandidate": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": ["fillerId", "weight"],
|
|
10
|
+
"properties": { "fillerId": { "$ref": "messages.schema.json#/$defs/fillerId" }, "weight": { "$ref": "messages.schema.json#/$defs/uintDec256" } }
|
|
11
|
+
},
|
|
12
|
+
"drawAttempt": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["attempt", "tBase", "closedBy", "drandRound", "drandRandomness", "drandSignature", "candidates", "r", "winnerFillerId", "fallbackReason"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"attempt": { "$ref": "messages.schema.json#/$defs/uint32" },
|
|
17
|
+
"tBase": { "$ref": "messages.schema.json#/$defs/timeS" },
|
|
18
|
+
"closedBy": { "anyOf": [{ "enum": ["OFFER_TIMEOUT", "OFFER_DECLINE", "TICKET_DECLINE", "TICKET_EXPIRED", "FILLED", null] }, { "$ref": "messages.schema.json#/$defs/futureEnumValue" }] },
|
|
19
|
+
"drandRound": { "$ref": "messages.schema.json#/$defs/uintDec64" },
|
|
20
|
+
"drandRandomness": { "$ref": "messages.schema.json#/$defs/bytes32" },
|
|
21
|
+
"drandSignature": { "type": "string", "pattern": "^0x[0-9a-f]{96}$", "description": "BLS signature of the round, 48 bytes (G1)" },
|
|
22
|
+
"candidates": { "type": "array", "items": { "$ref": "#/$defs/drawCandidate" }, "description": "ascending by the UTF-8 bytes of fillerId (A-22)" },
|
|
23
|
+
"r": { "$ref": "messages.schema.json#/$defs/uintDec256" },
|
|
24
|
+
"winnerFillerId": { "$ref": "messages.schema.json#/$defs/fillerId" },
|
|
25
|
+
"fallbackReason": { "anyOf": [{ "enum": ["DRAW_FALLBACK", null] }, { "$ref": "messages.schema.json#/$defs/futureEnumValue" }] }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"drawRecord": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["orderHash", "source", "openRef", "t0", "epochId", "deltaDrand", "attempts", "sig"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"orderHash": { "$ref": "messages.schema.json#/$defs/bytes32" },
|
|
33
|
+
"source": { "$ref": "messages.schema.json#/$defs/caip2" },
|
|
34
|
+
"openRef": { "type": "string", "minLength": 1, "description": "EVM: open tx hash; Canton: Execute update id" },
|
|
35
|
+
"t0": { "$ref": "messages.schema.json#/$defs/timeS" },
|
|
36
|
+
"epochId": { "$ref": "messages.schema.json#/$defs/uintDec64" },
|
|
37
|
+
"deltaDrand": { "$ref": "messages.schema.json#/$defs/uint32", "description": "seconds" },
|
|
38
|
+
"attempts": { "type": "array", "items": { "$ref": "#/$defs/drawAttempt" } },
|
|
39
|
+
"sig": { "$ref": "messages.schema.json#/$defs/sig65" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"epochLeaf": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"description": "StandardMerkleTree leaf [\"string\", \"uint256\", \"uint8\", \"uint16\"] = (fillerId, base, tier, reliabilityBps)",
|
|
45
|
+
"required": ["fillerId", "base", "tier", "reliabilityBps"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"fillerId": { "$ref": "messages.schema.json#/$defs/fillerId" },
|
|
48
|
+
"base": { "$ref": "messages.schema.json#/$defs/uintDec256" },
|
|
49
|
+
"tier": { "$ref": "messages.schema.json#/$defs/uint8" },
|
|
50
|
+
"reliabilityBps": { "type": "integer", "minimum": 0, "maximum": 10000 }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"stakeStep": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"required": ["tier", "minStake", "step"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"tier": { "$ref": "messages.schema.json#/$defs/uint8" },
|
|
58
|
+
"minStake": { "$ref": "messages.schema.json#/$defs/uintDec256" },
|
|
59
|
+
"step": { "$ref": "messages.schema.json#/$defs/uintDec256" }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"epochRecord": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": ["epochId", "startsAt", "endsAt", "weightsRoot", "leaves", "stakeSteps", "rMinBps", "snapshotBlocks", "sig"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"epochId": { "$ref": "messages.schema.json#/$defs/uintDec64" },
|
|
67
|
+
"startsAt": { "$ref": "messages.schema.json#/$defs/timeS" },
|
|
68
|
+
"endsAt": { "$ref": "messages.schema.json#/$defs/timeS" },
|
|
69
|
+
"weightsRoot": { "$ref": "messages.schema.json#/$defs/bytes32" },
|
|
70
|
+
"leaves": { "type": "array", "items": { "$ref": "#/$defs/epochLeaf" } },
|
|
71
|
+
"stakeSteps": { "type": "array", "items": { "$ref": "#/$defs/stakeStep" } },
|
|
72
|
+
"rMinBps": { "type": "integer", "minimum": 0, "maximum": 10000 },
|
|
73
|
+
"snapshotBlocks": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"propertyNames": { "$ref": "messages.schema.json#/$defs/caip2" },
|
|
76
|
+
"additionalProperties": { "$ref": "messages.schema.json#/$defs/uintDec64" }
|
|
77
|
+
},
|
|
78
|
+
"sig": { "$ref": "messages.schema.json#/$defs/sig65" }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"gatewayInfo": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"description": "GET /v1/gateway: the mirror of @cancore/contracts FILLER_GATEWAYS for this environment. A taker trusts the package, and uses this to notice a rotation",
|
|
84
|
+
"required": ["env", "gateway", "ticketSigners", "protocolVersion", "maxMessageAgeMs"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"env": { "type": "string", "minLength": 1 },
|
|
87
|
+
"gateway": { "$ref": "messages.schema.json#/$defs/address" },
|
|
88
|
+
"ticketSigners": { "type": "array", "items": { "$ref": "messages.schema.json#/$defs/address" } },
|
|
89
|
+
"protocolVersion": { "$ref": "messages.schema.json#/$defs/protocolVersion" },
|
|
90
|
+
"maxMessageAgeMs": { "$ref": "messages.schema.json#/$defs/durationMs", "description": "freshness bound of §3.4 in both directions: |receivedAt − sentAt| ≤ maxMessageAgeMs, and a message id is not reused within it" }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cancore.io/schemas/filler-protocol/v1/rest.schema.json",
|
|
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. 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 and rate class (quote, ticket, service, read for every bearer GET, login, cantonPrepare for canton.prepare of §3.19 — an hourly budget per filler, 60 by default — and canton for canton.submit, so a spent prepare budget never holds back the submit of an operation already prepared), 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/filler/canton/* (§3.19) serve only the caller's own party: POST prepare and submit take the canton.prepare and canton.submit messages and answer canton.prepared and canton.submitted (the same frames as on the WebSocket); GET party, holdings and delivery-orders read the party registered for the fillerId, and answer 409 CANTON_NOT_READY while it has none. /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
|
+
"x-endpoints": [
|
|
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
|
+
{ "method": "GET", "path": "/v1/filler/tickets", "auth": "bearer", "query": "#/$defs/ticketListQuery", "response": "#/$defs/ticketList" },
|
|
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
|
+
{ "method": "POST", "path": "/v1/filler/tickets/{orderHash}/{attempt}/receipt", "auth": "bearer", "request": "messages.schema.json#/$defs/ticket.receipt", "response": "#/$defs/empty" },
|
|
12
|
+
{ "method": "POST", "path": "/v1/filler/tickets/{orderHash}/{attempt}/decline", "auth": "bearer", "request": "messages.schema.json#/$defs/ticket.decline", "response": "#/$defs/empty" },
|
|
13
|
+
{ "method": "POST", "path": "/v1/filler/stake-bindings", "auth": "bearer", "request": "#/$defs/stakeBindingRequest", "response": "#/$defs/empty" },
|
|
14
|
+
{ "method": "GET", "path": "/v1/filler/quotes", "auth": "bearer", "query": "#/$defs/quoteListQuery", "response": "#/$defs/quoteList" },
|
|
15
|
+
{ "method": "GET", "path": "/v1/filler/stats", "auth": "bearer", "response": "#/$defs/fillerStats" },
|
|
16
|
+
{ "method": "GET", "path": "/v1/filler/penalties", "auth": "bearer", "query": "#/$defs/pageQuery", "response": "#/$defs/penaltyList" },
|
|
17
|
+
{ "method": "GET", "path": "/v1/filler/attestations/{orderHash}", "auth": "bearer", "response": "messages.schema.json#/$defs/settle.attestations" },
|
|
18
|
+
{ "method": "GET", "path": "/v1/draws/{orderHash}", "auth": "none", "response": "records.schema.json#/$defs/drawRecord" },
|
|
19
|
+
{ "method": "GET", "path": "/v1/draws/epochs/{id}", "auth": "none", "response": "records.schema.json#/$defs/epochRecord" },
|
|
20
|
+
{ "method": "GET", "path": "/v1/gateway", "auth": "none", "response": "records.schema.json#/$defs/gatewayInfo" },
|
|
21
|
+
{ "method": "POST", "path": "/v1/filler/canton/prepare", "auth": "bearer", "request": "messages.schema.json#/$defs/canton.prepare", "response": "messages.schema.json#/$defs/canton.prepared" },
|
|
22
|
+
{ "method": "POST", "path": "/v1/filler/canton/submit", "auth": "bearer", "request": "messages.schema.json#/$defs/canton.submit", "response": "messages.schema.json#/$defs/canton.submitted" },
|
|
23
|
+
{ "method": "GET", "path": "/v1/filler/canton/party", "auth": "bearer", "response": "#/$defs/cantonParty" },
|
|
24
|
+
{ "method": "GET", "path": "/v1/filler/canton/holdings", "auth": "bearer", "query": "#/$defs/pageQuery", "response": "#/$defs/cantonHoldingList" },
|
|
25
|
+
{ "method": "GET", "path": "/v1/filler/canton/delivery-orders", "auth": "bearer", "query": "#/$defs/pageQuery", "response": "#/$defs/cantonDeliveryOrderList" }
|
|
26
|
+
],
|
|
27
|
+
"x-error-status": {
|
|
28
|
+
"BAD_REQUEST": 400, "UNAUTHENTICATED": 401, "UNSUPPORTED_VERSION": 400, "UNSUPPORTED_TYPE": 400, "BAD_SIGNATURE": 422,
|
|
29
|
+
"STALE_MESSAGE": 400, "REPLAYED_MESSAGE": 409, "TICKET_REFUSED": 409, "UNKNOWN_REQUEST": 404, "UNKNOWN_TICKET": 404, "TICKET_CLOSED": 409, "NOT_ELIGIBLE": 403, "RATE_LIMITED": 429, "INTERNAL": 500,
|
|
30
|
+
"ATTESTATIONS_NOT_READY": 404, "CANTON_NOT_READY": 409, "CANTON_REFUSED": 422, "CANTON_UNAVAILABLE": 503, "OPERATION_EXPIRED": 410
|
|
31
|
+
},
|
|
32
|
+
"$defs": {
|
|
33
|
+
"errorBody": { "$ref": "messages.schema.json#/$defs/errorS2F" },
|
|
34
|
+
"unsignedErrorBody": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"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)",
|
|
37
|
+
"required": ["type", "code", "message"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"type": { "const": "error" },
|
|
40
|
+
"code": { "$ref": "messages.schema.json#/$defs/errorCode" },
|
|
41
|
+
"message": { "type": "string" },
|
|
42
|
+
"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" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"challengeQuery": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": ["fillerId"],
|
|
48
|
+
"properties": { "fillerId": { "$ref": "messages.schema.json#/$defs/fillerId", "description": "the filler logging in; the challenge is addressed to it and answerable only by it" } }
|
|
49
|
+
},
|
|
50
|
+
"empty": { "type": "object", "description": "no fields in v1; receivers ignore unknown ones (V-2)" },
|
|
51
|
+
"authToken": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"required": ["token", "expiresAt"],
|
|
54
|
+
"properties": { "token": { "type": "string", "minLength": 1 }, "expiresAt": { "$ref": "messages.schema.json#/$defs/timeMs" } }
|
|
55
|
+
},
|
|
56
|
+
"pageQuery": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": { "cursor": { "type": "string", "minLength": 1 }, "limit": { "type": "string", "pattern": "^([1-9][0-9]?|100)$", "description": "1..100, default 50" } }
|
|
59
|
+
},
|
|
60
|
+
"ticketListQuery": {
|
|
61
|
+
"allOf": [{ "$ref": "#/$defs/pageQuery" }],
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": { "status": { "enum": ["OFFERED", "ISSUED"], "description": "a request filter: the gateway owns the list, so it is closed" } }
|
|
64
|
+
},
|
|
65
|
+
"quoteListQuery": {
|
|
66
|
+
"allOf": [{ "$ref": "#/$defs/pageQuery" }],
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": { "since": { "type": "string", "pattern": "^(0|[1-9][0-9]*)$", "description": "unix ms" } }
|
|
69
|
+
},
|
|
70
|
+
"ticketList": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"required": ["items", "nextCursor"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": { "oneOf": [{ "$ref": "messages.schema.json#/$defs/ticket.offer" }, { "$ref": "messages.schema.json#/$defs/ticket.issued" }] }
|
|
77
|
+
},
|
|
78
|
+
"nextCursor": { "type": ["string", "null"] }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"stakeBindingRequest": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"description": "sig = StakeBinding{partnerId, stakingAddress, chainId, nonce} by the staking address; the body carries the filler envelope and msgSig like every request body",
|
|
84
|
+
"allOf": [{ "$ref": "messages.schema.json#/$defs/f2sEnvelope" }],
|
|
85
|
+
"required": ["partnerId", "stakingAddress", "chainId", "nonce", "sig"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"partnerId": { "$ref": "messages.schema.json#/$defs/fillerId" },
|
|
88
|
+
"stakingAddress": { "$ref": "messages.schema.json#/$defs/address" },
|
|
89
|
+
"chainId": { "$ref": "messages.schema.json#/$defs/uintDec256" },
|
|
90
|
+
"nonce": { "$ref": "messages.schema.json#/$defs/uintDec64" },
|
|
91
|
+
"sig": { "$ref": "messages.schema.json#/$defs/sig65" }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"quoteRecord": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": ["quote", "ack", "status"],
|
|
97
|
+
"properties": {
|
|
98
|
+
"quote": { "$ref": "messages.schema.json#/$defs/quote" },
|
|
99
|
+
"ack": { "$ref": "messages.schema.json#/$defs/quote.ack" },
|
|
100
|
+
"status": { "anyOf": [{ "enum": ["COUNTED", "LATE", "SHORT_TTL", "REPLACED", "BAD_SIG", "OUTLIER", "IN_BAND", "OUT_OF_BAND", "WON", "LOST"] }, { "$ref": "messages.schema.json#/$defs/futureEnumValue" }] }
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"quoteList": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"required": ["items", "nextCursor"],
|
|
106
|
+
"properties": { "items": { "type": "array", "items": { "$ref": "#/$defs/quoteRecord" } }, "nextCursor": { "type": ["string", "null"] } }
|
|
107
|
+
},
|
|
108
|
+
"fillerStats": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": ["won", "delivered", "noShow", "reliability", "capacityUsd", "inFlightUsd"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"won": { "type": "integer", "minimum": 0 },
|
|
113
|
+
"delivered": { "type": "integer", "minimum": 0 },
|
|
114
|
+
"noShow": { "type": "integer", "minimum": 0 },
|
|
115
|
+
"reliability": { "type": "integer", "minimum": 0, "maximum": 10000, "description": "basis points" },
|
|
116
|
+
"capacityUsd": { "$ref": "messages.schema.json#/$defs/intDecUsd" },
|
|
117
|
+
"inFlightUsd": { "$ref": "messages.schema.json#/$defs/intDecUsd" }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"penaltyRecord": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"required": ["violationId", "code", "step", "at", "details"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"violationId": { "type": "string", "minLength": 1 },
|
|
125
|
+
"code": { "type": "string", "minLength": 1 },
|
|
126
|
+
"step": { "$ref": "messages.schema.json#/$defs/penaltyStep" },
|
|
127
|
+
"orderHash": { "$ref": "messages.schema.json#/$defs/bytes32" },
|
|
128
|
+
"attempt": { "$ref": "messages.schema.json#/$defs/uint32" },
|
|
129
|
+
"at": { "$ref": "messages.schema.json#/$defs/timeMs" },
|
|
130
|
+
"details": { "type": "object" }
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"penaltyList": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"required": ["items", "nextCursor"],
|
|
136
|
+
"properties": { "items": { "type": "array", "items": { "$ref": "#/$defs/penaltyRecord" } }, "nextCursor": { "type": ["string", "null"] } }
|
|
137
|
+
},
|
|
138
|
+
"cantonParty": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"description": "The filler's Canton party and its FillerRegistryEntry with the operator. party null: none allocated or registered yet (party.allocate). registry.state NONE: no proposal yet; PROPOSED: accept it (registry.accept); ACTIVE: the Canton routes may be activated; REMOVED: staff removed the entry",
|
|
141
|
+
"required": ["party", "publicKey", "registry"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"party": { "type": ["string", "null"], "minLength": 1 },
|
|
144
|
+
"publicKey": { "anyOf": [{ "$ref": "messages.schema.json#/$defs/edPublicKey" }, { "type": "null" }] },
|
|
145
|
+
"registry": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"required": ["state", "proposalCid", "entryCid"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"state": { "anyOf": [{ "enum": ["NONE", "PROPOSED", "ACTIVE", "REMOVED"] }, { "$ref": "messages.schema.json#/$defs/futureEnumValue" }] },
|
|
150
|
+
"proposalCid": { "type": ["string", "null"] },
|
|
151
|
+
"entryCid": { "type": ["string", "null"] }
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"cantonHolding": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"required": ["contractId", "asset", "amount", "locked"],
|
|
159
|
+
"properties": {
|
|
160
|
+
"contractId": { "type": "string", "minLength": 1 },
|
|
161
|
+
"asset": { "$ref": "messages.schema.json#/$defs/cantonAsset" },
|
|
162
|
+
"amount": { "type": "string", "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", "description": "Daml Decimal" },
|
|
163
|
+
"locked": { "type": "boolean", "description": "held by a lock (an allocation or a pending transfer); not spendable by delivery.fill" }
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"cantonHoldingList": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"description": "Holdings of the party (CNRX and Canton Coin among them), oldest first",
|
|
169
|
+
"required": ["items", "nextCursor"],
|
|
170
|
+
"properties": { "items": { "type": "array", "items": { "$ref": "#/$defs/cantonHolding" } }, "nextCursor": { "type": ["string", "null"] } }
|
|
171
|
+
},
|
|
172
|
+
"cantonDeliveryOrder": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"required": ["deliveryOrderCid", "orderHash", "attempt", "asset", "amount", "recipient", "repayTo", "validUntil"],
|
|
175
|
+
"properties": {
|
|
176
|
+
"deliveryOrderCid": { "type": "string", "minLength": 1 },
|
|
177
|
+
"orderHash": { "$ref": "messages.schema.json#/$defs/bytes32" },
|
|
178
|
+
"attempt": { "$ref": "messages.schema.json#/$defs/uint32" },
|
|
179
|
+
"asset": { "$ref": "messages.schema.json#/$defs/cantonAsset" },
|
|
180
|
+
"amount": { "type": "string", "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", "description": "Daml Decimal" },
|
|
181
|
+
"recipient": { "type": "string", "minLength": 1 },
|
|
182
|
+
"repayTo": { "$ref": "messages.schema.json#/$defs/repayTo" },
|
|
183
|
+
"validUntil": { "$ref": "messages.schema.json#/$defs/timeS" }
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"cantonDeliveryOrderList": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"description": "The live DeliveryOrders naming the party as filler, oldest first",
|
|
189
|
+
"required": ["items", "nextCursor"],
|
|
190
|
+
"properties": { "items": { "type": "array", "items": { "$ref": "#/$defs/cantonDeliveryOrder" } }, "nextCursor": { "type": ["string", "null"] } }
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -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": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
39
|
+
"attempt": 2,
|
|
40
|
+
"deliveryOrderCidHash": "0x5c7b22bd40920041d2cc926c93a6020af74e1f42036bf3b0dbe784b1a7720014",
|
|
41
|
+
"validUntil": "1790000400"
|
|
42
|
+
},
|
|
43
|
+
"digest": "0xf9fcb23f8516a19133157f7f85ec03d4a618172c6ad86359752d08b9dfccba3c"
|
|
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": "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
|
|
50
|
+
"attempt": 0,
|
|
51
|
+
"deliveryOrderCidHash": "0xa6af2a70138ce6ea8d93b04960adb9d415c3e7b9cd669ab6f7602420483e7d42",
|
|
52
|
+
"validUntil": "1789999800"
|
|
53
|
+
},
|
|
54
|
+
"digest": "0xadfd66586701f5d7e4ce4e400e207ecf4617f4b2529afcb8e6c1a421a2fa690d"
|
|
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
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Filler protocol v1 (frozen, RC): Signed by the quote key in answer to auth.challenge. Domain CancoreFillerProtocol v1, no chainId, no verifyingContract. Digests by ethers TypedDataEncoder.",
|
|
3
|
+
"primaryType": "FillerAuth",
|
|
4
|
+
"domain": {
|
|
5
|
+
"name": "CancoreFillerProtocol",
|
|
6
|
+
"version": "1",
|
|
7
|
+
"fields": [
|
|
8
|
+
"name",
|
|
9
|
+
"version"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"typeString": "FillerAuth(string fillerId,bytes32 nonce,uint64 expiresAt)",
|
|
13
|
+
"types": {
|
|
14
|
+
"FillerAuth": [
|
|
15
|
+
{
|
|
16
|
+
"name": "fillerId",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "nonce",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "expiresAt",
|
|
25
|
+
"type": "uint64"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"vectors": [
|
|
30
|
+
{
|
|
31
|
+
"note": "answer to a challenge",
|
|
32
|
+
"message": {
|
|
33
|
+
"fillerId": "acme-markets",
|
|
34
|
+
"nonce": "0x63ed6389bd2a1d23bb678583c227172bda874e82b97b1c170bfeeb4373b4b0d5",
|
|
35
|
+
"expiresAt": "1790000030"
|
|
36
|
+
},
|
|
37
|
+
"digest": "0x08b9926005ad8e873686fbbb4bd260081b5648e62ccb6ba0e2e8d64c0b69233d"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"note": "every integer at its maximum",
|
|
41
|
+
"message": {
|
|
42
|
+
"fillerId": "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
|
|
43
|
+
"nonce": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
44
|
+
"expiresAt": "18446744073709551615"
|
|
45
|
+
},
|
|
46
|
+
"digest": "0x0355d6c6535d23cb365f8f94fc078f562f7fca4376c6102df44e18e045f4cb1a"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"note": "zero values, empty string",
|
|
50
|
+
"message": {
|
|
51
|
+
"fillerId": "",
|
|
52
|
+
"nonce": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
53
|
+
"expiresAt": "0"
|
|
54
|
+
},
|
|
55
|
+
"digest": "0x9cd41646d5050057d09cc545be00a740a41784e02bfc90d161bf326c667f2df3"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Filler protocol v1, settlement design (variant A, CAN-2139; protocol.md §3.3): Signed by the key being registered (an EOA: 65 bytes, low-s, v ∈ {27, 28}; no EIP-1271) — at onboarding, and with the NEW key at a manual key change by Cancore staff; there is no rotation type. issuedAt in unix seconds. Signed vectors carry `signature` by a test key derived from a public label: it recovers to messageKey. Domain CancoreFillerProtocol v1, no chainId, no verifyingContract. Digests by ethers TypedDataEncoder.",
|
|
3
|
+
"primaryType": "FillerKeyRegistration",
|
|
4
|
+
"domain": {
|
|
5
|
+
"name": "CancoreFillerProtocol",
|
|
6
|
+
"version": "1",
|
|
7
|
+
"fields": [
|
|
8
|
+
"name",
|
|
9
|
+
"version"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"typeString": "FillerKeyRegistration(string fillerId,address messageKey,uint64 issuedAt)",
|
|
13
|
+
"types": {
|
|
14
|
+
"FillerKeyRegistration": [
|
|
15
|
+
{
|
|
16
|
+
"name": "fillerId",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "messageKey",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "issuedAt",
|
|
25
|
+
"type": "uint64"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"vectors": [
|
|
30
|
+
{
|
|
31
|
+
"note": "onboarding: acme-markets registers its message key",
|
|
32
|
+
"message": {
|
|
33
|
+
"fillerId": "acme-markets",
|
|
34
|
+
"messageKey": "0x4fee983989d3a8046f29d376080ef9c334323105",
|
|
35
|
+
"issuedAt": "1789900000"
|
|
36
|
+
},
|
|
37
|
+
"digest": "0xe73be03b7204b06997bb67d4aefe464f0edbc784e46727a375397cc0c1a508aa",
|
|
38
|
+
"signature": "0x6e2e04d4bd17c204745afb4208c718a77268f6ec07ee39221f12031ccf63fe457bb6fae86dc7fbcbbd6b0818e394d17f1f8812d30fb56ec58b161184af6e5f7d1c"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"note": "manual key change by Cancore staff: the same registration, signed by the NEW key",
|
|
42
|
+
"message": {
|
|
43
|
+
"fillerId": "acme-markets",
|
|
44
|
+
"messageKey": "0x9ee9e7c9421a25e3f77088f23b16022ecce80ec2",
|
|
45
|
+
"issuedAt": "1790100000"
|
|
46
|
+
},
|
|
47
|
+
"digest": "0xbbadffdde7a3aadf87d8c37d4419936581c647e0f92deccaf393456165f50bd3",
|
|
48
|
+
"signature": "0xddd5690d91e92ab1180b40bcac2e34a815121afe76c8ce949c747392e1ff06af206edd720a4bed70948df02e7483d327db0cc68c5e4f097f63fac04f0c5ccc571c"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"note": "every integer at its maximum (unsigned)",
|
|
52
|
+
"message": {
|
|
53
|
+
"fillerId": "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
|
|
54
|
+
"messageKey": "0xffffffffffffffffffffffffffffffffffffffff",
|
|
55
|
+
"issuedAt": "18446744073709551615"
|
|
56
|
+
},
|
|
57
|
+
"digest": "0xc1ffbf3b5782193f003dd8701be0dc59a94fbcee164641fe7aec31ee391e50b9"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"note": "zero values (unsigned)",
|
|
61
|
+
"message": {
|
|
62
|
+
"fillerId": "",
|
|
63
|
+
"messageKey": "0x0000000000000000000000000000000000000000",
|
|
64
|
+
"issuedAt": "0"
|
|
65
|
+
},
|
|
66
|
+
"digest": "0xf0170117e8dfc4f1e76def69dffe11d7bf46d2f3f0b849851650bd374b552549"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Filler protocol v1, settlement design (variant A, CAN-2139; protocol.md §3.3): `bodyHash` = keccak256(utf8(JCS(message without \"msgSig\"))), JCS = RFC 8785; the body keeps id, fillerId, sentAt and any inner typed sig. Each vector carries the F→S body, its canonical text and the hash. msgSig in a body is a placeholder: the excluded field. Domain CancoreFillerProtocol v1, no chainId, no verifyingContract. Digests by ethers TypedDataEncoder.",
|
|
3
|
+
"primaryType": "FillerMessage",
|
|
4
|
+
"domain": {
|
|
5
|
+
"name": "CancoreFillerProtocol",
|
|
6
|
+
"version": "1",
|
|
7
|
+
"fields": [
|
|
8
|
+
"name",
|
|
9
|
+
"version"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"typeString": "FillerMessage(bytes32 bodyHash)",
|
|
13
|
+
"types": {
|
|
14
|
+
"FillerMessage": [
|
|
15
|
+
{
|
|
16
|
+
"name": "bodyHash",
|
|
17
|
+
"type": "bytes32"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"vectors": [
|
|
22
|
+
{
|
|
23
|
+
"note": "ticket.intent: the inner TicketIntent sig is in the body, msgSig is not",
|
|
24
|
+
"body": {
|
|
25
|
+
"type": "ticket.intent",
|
|
26
|
+
"id": "i-1",
|
|
27
|
+
"fillerId": "acme-markets",
|
|
28
|
+
"sentAt": 1790000021000,
|
|
29
|
+
"orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
30
|
+
"attempt": 0,
|
|
31
|
+
"validFrom": "1790000040",
|
|
32
|
+
"validUntil": "1790000400",
|
|
33
|
+
"deliveryKey": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
|
|
34
|
+
"repayTo": "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
|
|
35
|
+
"sig": "0x111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222221c",
|
|
36
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
37
|
+
},
|
|
38
|
+
"jcs": "{\"attempt\":0,\"deliveryKey\":\"0x742d35cc6634c0532925a3b844bc454e4438f44e\",\"fillerId\":\"acme-markets\",\"id\":\"i-1\",\"orderHash\":\"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\"repayTo\":\"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\"sentAt\":1790000021000,\"sig\":\"0x111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222221c\",\"type\":\"ticket.intent\",\"validFrom\":\"1790000040\",\"validUntil\":\"1790000400\"}",
|
|
39
|
+
"message": {
|
|
40
|
+
"bodyHash": "0xd31246a71586d816e5d783783bfee0da626cc2afa8a8fbf9fd9425245c314c9b"
|
|
41
|
+
},
|
|
42
|
+
"digest": "0x69a6546a7dc2f6fa10333bb5b7304f683c47c85a02f19637d96cbe424eccc572"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"note": "ticket.decline: no inner signature, the envelope is the only one",
|
|
46
|
+
"body": {
|
|
47
|
+
"type": "ticket.decline",
|
|
48
|
+
"id": "d-1",
|
|
49
|
+
"fillerId": "acme-markets",
|
|
50
|
+
"sentAt": 1790000027001,
|
|
51
|
+
"orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
52
|
+
"attempt": 0,
|
|
53
|
+
"reason": "TICKET_ISSUED_LATE",
|
|
54
|
+
"detail": "ticket.issued 3001 ms after acceptBy",
|
|
55
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
56
|
+
},
|
|
57
|
+
"jcs": "{\"attempt\":0,\"detail\":\"ticket.issued 3001 ms after acceptBy\",\"fillerId\":\"acme-markets\",\"id\":\"d-1\",\"orderHash\":\"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\"reason\":\"TICKET_ISSUED_LATE\",\"sentAt\":1790000027001,\"type\":\"ticket.decline\"}",
|
|
58
|
+
"message": {
|
|
59
|
+
"bodyHash": "0x09c8ef960c423cdf80558f357bc99865e398101d31e3e64e8a657d576616db99"
|
|
60
|
+
},
|
|
61
|
+
"digest": "0x969df3ca30422f400fd93aa9e59798f73619e2ce02bc727dc3745be21fba7843"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"note": "quote.reconfirm.reply declining: signed by the envelope only",
|
|
65
|
+
"body": {
|
|
66
|
+
"type": "quote.reconfirm.reply",
|
|
67
|
+
"id": "r-2",
|
|
68
|
+
"fillerId": "acme-markets",
|
|
69
|
+
"sentAt": 1790000014000,
|
|
70
|
+
"orderHash": "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
71
|
+
"accept": false,
|
|
72
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
73
|
+
},
|
|
74
|
+
"jcs": "{\"accept\":false,\"fillerId\":\"acme-markets\",\"id\":\"r-2\",\"orderHash\":\"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\"sentAt\":1790000014000,\"type\":\"quote.reconfirm.reply\"}",
|
|
75
|
+
"message": {
|
|
76
|
+
"bodyHash": "0xac50f5ff5535d5345d8690f752166c8493700e855ac332bf33e598b967cad7a1"
|
|
77
|
+
},
|
|
78
|
+
"digest": "0x306970736674693cdbc6af3dcd42805073f2a2a520450651333dc0bc38ff924d"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"note": "pong to a gateway ping",
|
|
82
|
+
"body": {
|
|
83
|
+
"type": "pong",
|
|
84
|
+
"id": "po-1",
|
|
85
|
+
"fillerId": "acme-markets",
|
|
86
|
+
"sentAt": 1789999995100,
|
|
87
|
+
"re": "gp-1",
|
|
88
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
89
|
+
},
|
|
90
|
+
"jcs": "{\"fillerId\":\"acme-markets\",\"id\":\"po-1\",\"re\":\"gp-1\",\"sentAt\":1789999995100,\"type\":\"pong\"}",
|
|
91
|
+
"message": {
|
|
92
|
+
"bodyHash": "0x59ce596a6f75b446a92f1a8e26a3e299a1c963e06ad2fce66f17671e9b0d3eba"
|
|
93
|
+
},
|
|
94
|
+
"digest": "0xd2cf52769b873de0eec06857660e595e6b25ddad5f1ff782ebc74d7ec4cf9ab7"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"note": "error from the filler: a frame it cannot handle",
|
|
98
|
+
"body": {
|
|
99
|
+
"type": "error",
|
|
100
|
+
"id": "e-1",
|
|
101
|
+
"fillerId": "acme-markets",
|
|
102
|
+
"sentAt": 1790000030000,
|
|
103
|
+
"re": "g-77",
|
|
104
|
+
"code": "UNKNOWN_TICKET",
|
|
105
|
+
"message": "no ticket for this orderHash",
|
|
106
|
+
"msgSig": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b"
|
|
107
|
+
},
|
|
108
|
+
"jcs": "{\"code\":\"UNKNOWN_TICKET\",\"fillerId\":\"acme-markets\",\"id\":\"e-1\",\"message\":\"no ticket for this orderHash\",\"re\":\"g-77\",\"sentAt\":1790000030000,\"type\":\"error\"}",
|
|
109
|
+
"message": {
|
|
110
|
+
"bodyHash": "0xc9cd1026df66737e04da90ecd692f7c2d13b1dc328d3aca964baebfe78be96b6"
|
|
111
|
+
},
|
|
112
|
+
"digest": "0x3fba365492f3b5498fa1861648f4625d94d15278fd07e92fb95e5733c2434b2f"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|