@cancore/contracts 0.2.0-rc.10 → 0.2.0-rc.14
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 +80 -1
- package/dist/index.d.ts +230 -6
- package/dist/index.js +794 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/spec/protocol/asyncapi.json +335 -13
- package/spec/protocol/messages.schema.json +364 -1
- package/spec/protocol/rest.schema.json +62 -3
- package/spec/protocol/vectors/messages.json +206 -13
- package/spec/protocol/vectors/settle-attestations.json +71 -69
package/dist/index.js
CHANGED
|
@@ -18,10 +18,11 @@ var DEPLOYMENTS = {
|
|
|
18
18
|
{ network: "robinhood_testnet", chainId: 46630, htlc: "0x5eBf3faAf3a86c37dDf6a46075b8366Ed4D8021A", htlcBlock: 96742769, multiBalanceChecker: "0x9548fd6fA8A3869b215E9D86F6a2628Bf2BEFB74" }
|
|
19
19
|
],
|
|
20
20
|
devnet: [
|
|
21
|
-
|
|
22
|
-
{ network: "
|
|
23
|
-
{ network: "
|
|
24
|
-
{ network: "
|
|
21
|
+
// Routers: evm-contracts deployments/router/dev/*.json (#120, CAN-2327), verified on chain 2026-10-14.
|
|
22
|
+
{ network: "sepolia", chainId: 11155111, htlc: "0xc74469B26206A7b3Aee2781EC21F9F47a1552DD6", htlcBlock: 10469876, router: "0xfd227a0de77807206f4eEF9eE6eDd5795a45EF95", routerBlock: 11913649 },
|
|
23
|
+
{ network: "bnb_testnet", chainId: 97, htlc: "0xC649d578FD0122E2Ce3Bcf6b89E3ef2564d1a30D", htlcBlock: 96439032, router: "0x57A8ad8392C5fF21aF52Fc3Cf246C1a464aCc6B1", routerBlock: 136752813 },
|
|
24
|
+
{ network: "arbitrum_sepolia", chainId: 421614, htlc: "0xE23A046Df3542C4C548162adab4397956b136031", htlcBlock: 251260393, router: "0x7e27831316F7Ee8E44B96056F4354A6D1a22953a", routerBlock: 319105856 },
|
|
25
|
+
{ network: "robinhood_testnet", chainId: 46630, htlc: "0x58D154441Fd7efEd22E49Eda369909DdbE54cC0a", htlcBlock: 96651438, multiBalanceChecker: "0x1b2A32A976F904a1fca87D427239635Ccd97FaFb", router: "0xF833A980ae858fe3cD14a79a9f610525AbB95BF9", routerBlock: 135089078 }
|
|
25
26
|
]
|
|
26
27
|
};
|
|
27
28
|
var PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
@@ -711,7 +712,15 @@ var FILLER_UPGRADE_REFUSALS = {
|
|
|
711
712
|
var FILLER_GATEWAYS = {
|
|
712
713
|
mainnet: { gateway: null, ticketSigners: [] },
|
|
713
714
|
testnet: { gateway: null, ticketSigners: [] },
|
|
714
|
-
|
|
715
|
+
// The ticket signer every dev router registers (evm-contracts deployments/router/dev/*.input.json, CAN-2331).
|
|
716
|
+
// The gateway key is published with the gateway release.
|
|
717
|
+
devnet: { gateway: null, ticketSigners: ["0x9a3fc3f44cddbdfb036a8c8a528a903d0c835c1c"] }
|
|
718
|
+
};
|
|
719
|
+
var CANTON_PARTICIPANTS = {
|
|
720
|
+
mainnet: null,
|
|
721
|
+
testnet: null,
|
|
722
|
+
// GET /v2/parties/participant-id on the devnet Ledger API, 15.10.2026.
|
|
723
|
+
devnet: "Cancore-devnet-1::12204f383aca6af056f6d83c9b5758fbc53c27a743e2f9d591e61bc657202172524b"
|
|
715
724
|
};
|
|
716
725
|
|
|
717
726
|
// src/protocol/messages.ts
|
|
@@ -747,7 +756,11 @@ var ERROR_CODES = [
|
|
|
747
756
|
"NOT_ELIGIBLE",
|
|
748
757
|
"RATE_LIMITED",
|
|
749
758
|
"INTERNAL",
|
|
750
|
-
"ATTESTATIONS_NOT_READY"
|
|
759
|
+
"ATTESTATIONS_NOT_READY",
|
|
760
|
+
"CANTON_NOT_READY",
|
|
761
|
+
"CANTON_REFUSED",
|
|
762
|
+
"CANTON_UNAVAILABLE",
|
|
763
|
+
"OPERATION_EXPIRED"
|
|
751
764
|
];
|
|
752
765
|
var ERROR_HTTP_STATUS = {
|
|
753
766
|
BAD_REQUEST: 400,
|
|
@@ -764,7 +777,11 @@ var ERROR_HTTP_STATUS = {
|
|
|
764
777
|
NOT_ELIGIBLE: 403,
|
|
765
778
|
RATE_LIMITED: 429,
|
|
766
779
|
INTERNAL: 500,
|
|
767
|
-
ATTESTATIONS_NOT_READY: 404
|
|
780
|
+
ATTESTATIONS_NOT_READY: 404,
|
|
781
|
+
CANTON_NOT_READY: 409,
|
|
782
|
+
CANTON_REFUSED: 422,
|
|
783
|
+
CANTON_UNAVAILABLE: 503,
|
|
784
|
+
OPERATION_EXPIRED: 410
|
|
768
785
|
};
|
|
769
786
|
var TICKET_REFUSED_REASONS = [
|
|
770
787
|
"REPAY_TO_INVALID",
|
|
@@ -785,6 +802,10 @@ var QUOTE_FINAL_STATUSES = [...QUOTE_ACK_STATUSES, "REPLACED", "BAD_SIG", "OUTLI
|
|
|
785
802
|
var PENALTY_STEPS = ["L1", "L2", "L3", "L4"];
|
|
786
803
|
var DRAW_CLOSED_BY = ["OFFER_TIMEOUT", "OFFER_DECLINE", "TICKET_DECLINE", "TICKET_EXPIRED", "FILLED"];
|
|
787
804
|
var TICKET_LIST_STATUSES = ["OFFERED", "ISSUED"];
|
|
805
|
+
var CANTON_OPS = ["party.allocate", "registry.accept", "delivery.fill", "intent.settle", "holdings.transfer"];
|
|
806
|
+
var CANTON_TRANSFER_OUTCOMES = ["COMPLETED", "PENDING"];
|
|
807
|
+
var CANTON_LEG_KINDS = ["transaction", "topology"];
|
|
808
|
+
var CANTON_REGISTRY_STATES = ["NONE", "PROPOSED", "ACTIVE", "REMOVED"];
|
|
788
809
|
|
|
789
810
|
// spec/protocol/asyncapi.json
|
|
790
811
|
var asyncapi_default = {
|
|
@@ -921,6 +942,18 @@ var asyncapi_default = {
|
|
|
921
942
|
},
|
|
922
943
|
"settle.attestations": {
|
|
923
944
|
$ref: "#/components/messages/settle.attestations"
|
|
945
|
+
},
|
|
946
|
+
"canton.prepare": {
|
|
947
|
+
$ref: "#/components/messages/canton.prepare"
|
|
948
|
+
},
|
|
949
|
+
"canton.prepared": {
|
|
950
|
+
$ref: "#/components/messages/canton.prepared"
|
|
951
|
+
},
|
|
952
|
+
"canton.submit": {
|
|
953
|
+
$ref: "#/components/messages/canton.submit"
|
|
954
|
+
},
|
|
955
|
+
"canton.submitted": {
|
|
956
|
+
$ref: "#/components/messages/canton.submitted"
|
|
924
957
|
}
|
|
925
958
|
}
|
|
926
959
|
}
|
|
@@ -1189,6 +1222,50 @@ var asyncapi_default = {
|
|
|
1189
1222
|
$ref: "#/channels/filler/messages/settle.attestations"
|
|
1190
1223
|
}
|
|
1191
1224
|
]
|
|
1225
|
+
},
|
|
1226
|
+
receiveCantonPrepare: {
|
|
1227
|
+
action: "receive",
|
|
1228
|
+
channel: {
|
|
1229
|
+
$ref: "#/channels/filler"
|
|
1230
|
+
},
|
|
1231
|
+
messages: [
|
|
1232
|
+
{
|
|
1233
|
+
$ref: "#/channels/filler/messages/canton.prepare"
|
|
1234
|
+
}
|
|
1235
|
+
]
|
|
1236
|
+
},
|
|
1237
|
+
sendCantonPrepared: {
|
|
1238
|
+
action: "send",
|
|
1239
|
+
channel: {
|
|
1240
|
+
$ref: "#/channels/filler"
|
|
1241
|
+
},
|
|
1242
|
+
messages: [
|
|
1243
|
+
{
|
|
1244
|
+
$ref: "#/channels/filler/messages/canton.prepared"
|
|
1245
|
+
}
|
|
1246
|
+
]
|
|
1247
|
+
},
|
|
1248
|
+
receiveCantonSubmit: {
|
|
1249
|
+
action: "receive",
|
|
1250
|
+
channel: {
|
|
1251
|
+
$ref: "#/channels/filler"
|
|
1252
|
+
},
|
|
1253
|
+
messages: [
|
|
1254
|
+
{
|
|
1255
|
+
$ref: "#/channels/filler/messages/canton.submit"
|
|
1256
|
+
}
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1259
|
+
sendCantonSubmitted: {
|
|
1260
|
+
action: "send",
|
|
1261
|
+
channel: {
|
|
1262
|
+
$ref: "#/channels/filler"
|
|
1263
|
+
},
|
|
1264
|
+
messages: [
|
|
1265
|
+
{
|
|
1266
|
+
$ref: "#/channels/filler/messages/canton.submitted"
|
|
1267
|
+
}
|
|
1268
|
+
]
|
|
1192
1269
|
}
|
|
1193
1270
|
},
|
|
1194
1271
|
components: {
|
|
@@ -1967,12 +2044,12 @@ var asyncapi_default = {
|
|
|
1967
2044
|
id: "g-sa-1",
|
|
1968
2045
|
fillerId: "acme-markets",
|
|
1969
2046
|
sentAt: 179000016e4,
|
|
1970
|
-
orderHash: "
|
|
2047
|
+
orderHash: "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
1971
2048
|
attempt: 0,
|
|
1972
2049
|
sourceChainId: "eip155:11155111",
|
|
1973
2050
|
proof: {
|
|
1974
2051
|
kind: 1,
|
|
1975
|
-
orderHash: "
|
|
2052
|
+
orderHash: "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
1976
2053
|
destination: "0x0000000000000000000000000000000000000000000000000000000000066eee",
|
|
1977
2054
|
fillRef: "0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740",
|
|
1978
2055
|
recipient: "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
|
|
@@ -1987,17 +2064,17 @@ var asyncapi_default = {
|
|
|
1987
2064
|
signatures: [
|
|
1988
2065
|
{
|
|
1989
2066
|
signer: "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
|
|
1990
|
-
signature: "
|
|
2067
|
+
signature: "0x280a1c67572079434e423c51ee29272a0afb87bc485b3292192fb08242aeef687bcd1417aff35025ab16da3f43a73972585877b131a2b4dfe83d1ae4f5ef0fad1b"
|
|
1991
2068
|
},
|
|
1992
2069
|
{
|
|
1993
2070
|
signer: "0x6805cf7ce01e1c392d47806813503e367c932544",
|
|
1994
|
-
signature: "
|
|
2071
|
+
signature: "0x77cba7cedee87b88ac9d90ce0440bb55fa510930318e1a7cb9e2567f198208fb3784a5ca3343c3df2d7dfc29b0a2eae3b87b475893b4d134fa6ce9d8df2a88521b"
|
|
1995
2072
|
}
|
|
1996
2073
|
],
|
|
1997
2074
|
setId: 1,
|
|
1998
2075
|
threshold: 2,
|
|
1999
2076
|
refundAfter: "1790002400",
|
|
2000
|
-
sig: "
|
|
2077
|
+
sig: "0x703468572b0f0d056f7c8547a2a70dbb76469888d23059926e906d23cc0468ac54cd96efe6a0f298750a225cd4a7e6acb511f144631076ed2825de0bf0e40b1e1b"
|
|
2001
2078
|
}
|
|
2002
2079
|
},
|
|
2003
2080
|
{
|
|
@@ -2005,21 +2082,21 @@ var asyncapi_default = {
|
|
|
2005
2082
|
payload: {
|
|
2006
2083
|
type: "settle.attestations",
|
|
2007
2084
|
id: "g-sa-3",
|
|
2008
|
-
fillerId: "
|
|
2085
|
+
fillerId: "acme",
|
|
2009
2086
|
sentAt: 178999976e4,
|
|
2010
|
-
orderHash: "
|
|
2087
|
+
orderHash: "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
|
|
2011
2088
|
attempt: 1,
|
|
2012
2089
|
sourceChainId: "canton:mainnet",
|
|
2013
2090
|
proof: {
|
|
2014
2091
|
kind: 1,
|
|
2015
|
-
orderHash: "
|
|
2092
|
+
orderHash: "0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a",
|
|
2016
2093
|
destination: "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
2017
2094
|
fillRef: "0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471",
|
|
2018
2095
|
recipient: "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e",
|
|
2019
2096
|
outputAsset: "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
2020
2097
|
amountDelivered: "1200250000",
|
|
2021
2098
|
filledAt: "1789999700",
|
|
2022
|
-
fillerId: "
|
|
2099
|
+
fillerId: "0xe29dae06ef4c3e336b7538b6d4f52ca1ecec009b1df6fb501320e11b223aeeaf",
|
|
2023
2100
|
repayTo: "0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d",
|
|
2024
2101
|
attempt: 1,
|
|
2025
2102
|
setId: 3
|
|
@@ -2028,23 +2105,289 @@ var asyncapi_default = {
|
|
|
2028
2105
|
{
|
|
2029
2106
|
signer: "0x5e877d05b3bfef8b53a59dde76b911fb521415cd",
|
|
2030
2107
|
pubKey: "0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3",
|
|
2031
|
-
signature: "
|
|
2108
|
+
signature: "0x3044022048f14c61c1f52f541ab136ef92bbbcfca14dd0560db802feb510f7fce19477b20220230a636d4d10c7e5c16b997394a8261185a899f0e8d8e5ffad14db4d4123dd16"
|
|
2032
2109
|
},
|
|
2033
2110
|
{
|
|
2034
2111
|
signer: "0x6805cf7ce01e1c392d47806813503e367c932544",
|
|
2035
2112
|
pubKey: "0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e",
|
|
2036
|
-
signature: "
|
|
2113
|
+
signature: "0x3045022100d4cb2f8a3084bf5749871a06fa543a9ba80889471eb2799ab4c4c08b31ee7e2902203e2b4af4e08f263168a046a4b6a6370398c7b03de7797f1a011910c0d784f4bc"
|
|
2037
2114
|
},
|
|
2038
2115
|
{
|
|
2039
2116
|
signer: "0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0",
|
|
2040
2117
|
pubKey: "0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b",
|
|
2041
|
-
signature: "
|
|
2118
|
+
signature: "0x304402200a300c658594fe20fb429c4f32e23e0b3e444a017f320622cb636792d6f13ca802200cbd9bcb4ea5719f63f8a510e7e9f3d730a47691a7b6eb8e78ec787218997e02"
|
|
2042
2119
|
}
|
|
2043
2120
|
],
|
|
2044
2121
|
setId: 3,
|
|
2045
2122
|
threshold: 2,
|
|
2046
2123
|
refundAfter: "1790001800",
|
|
2047
|
-
sig: "
|
|
2124
|
+
sig: "0x481041cd0c07174f6db63b7acdc96a0bcc399de0be60df07faea3be6f0f09c83553a59f5e5443a6d7d1763789404d732a4b5cdc57758b729adf50245b8f96c2d1b"
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
]
|
|
2128
|
+
},
|
|
2129
|
+
"canton.prepare": {
|
|
2130
|
+
name: "canton.prepare",
|
|
2131
|
+
title: "canton.prepare (F2S)",
|
|
2132
|
+
payload: {
|
|
2133
|
+
schemaFormat: "application/schema+json;version=draft-2020-12",
|
|
2134
|
+
schema: {
|
|
2135
|
+
$ref: "messages.schema.json#/$defs/canton.prepare"
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
examples: [
|
|
2139
|
+
{
|
|
2140
|
+
name: "canton-prepare-1",
|
|
2141
|
+
payload: {
|
|
2142
|
+
type: "canton.prepare",
|
|
2143
|
+
id: "cp-1",
|
|
2144
|
+
fillerId: "acme-markets",
|
|
2145
|
+
sentAt: 178999e7,
|
|
2146
|
+
msgSig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2147
|
+
op: "party.allocate",
|
|
2148
|
+
params: {
|
|
2149
|
+
publicKey: "0x1111111111111111111111111111111111111111111111111111111111111111"
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
name: "canton-prepare-2",
|
|
2155
|
+
payload: {
|
|
2156
|
+
type: "canton.prepare",
|
|
2157
|
+
id: "cp-2",
|
|
2158
|
+
fillerId: "acme-markets",
|
|
2159
|
+
sentAt: 17899901e5,
|
|
2160
|
+
msgSig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2161
|
+
op: "registry.accept",
|
|
2162
|
+
params: {}
|
|
2163
|
+
}
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
name: "canton-prepare-3",
|
|
2167
|
+
payload: {
|
|
2168
|
+
type: "canton.prepare",
|
|
2169
|
+
id: "cp-3",
|
|
2170
|
+
fillerId: "acme-markets",
|
|
2171
|
+
sentAt: 1790000026e3,
|
|
2172
|
+
msgSig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2173
|
+
op: "delivery.fill",
|
|
2174
|
+
params: {
|
|
2175
|
+
orderHash: "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
2176
|
+
attempt: 2
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
name: "canton-prepare-4",
|
|
2182
|
+
payload: {
|
|
2183
|
+
type: "canton.prepare",
|
|
2184
|
+
id: "cp-4",
|
|
2185
|
+
fillerId: "acme-markets",
|
|
2186
|
+
sentAt: 17900007e5,
|
|
2187
|
+
msgSig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2188
|
+
op: "intent.settle",
|
|
2189
|
+
params: {
|
|
2190
|
+
orderHash: "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b"
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
name: "canton-prepare-5",
|
|
2196
|
+
payload: {
|
|
2197
|
+
type: "canton.prepare",
|
|
2198
|
+
id: "cp-5",
|
|
2199
|
+
fillerId: "acme-markets",
|
|
2200
|
+
sentAt: 1790001e6,
|
|
2201
|
+
msgSig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2202
|
+
op: "holdings.transfer",
|
|
2203
|
+
params: {
|
|
2204
|
+
asset: {
|
|
2205
|
+
admin: "cancore-registry::1220aa",
|
|
2206
|
+
id: "CNRX"
|
|
2207
|
+
},
|
|
2208
|
+
amount: "250.5",
|
|
2209
|
+
toParty: "alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f"
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
]
|
|
2214
|
+
},
|
|
2215
|
+
"canton.prepared": {
|
|
2216
|
+
name: "canton.prepared",
|
|
2217
|
+
title: "canton.prepared (S2F)",
|
|
2218
|
+
payload: {
|
|
2219
|
+
schemaFormat: "application/schema+json;version=draft-2020-12",
|
|
2220
|
+
schema: {
|
|
2221
|
+
$ref: "messages.schema.json#/$defs/canton.prepared"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
examples: [
|
|
2225
|
+
{
|
|
2226
|
+
name: "canton-prepared-1",
|
|
2227
|
+
payload: {
|
|
2228
|
+
type: "canton.prepared",
|
|
2229
|
+
id: "g-19",
|
|
2230
|
+
fillerId: "acme-markets",
|
|
2231
|
+
sig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2232
|
+
sentAt: 1789990000200,
|
|
2233
|
+
re: "cp-1",
|
|
2234
|
+
operationId: "op-1",
|
|
2235
|
+
op: "party.allocate",
|
|
2236
|
+
legs: [
|
|
2237
|
+
{
|
|
2238
|
+
legId: "topology-0",
|
|
2239
|
+
kind: "topology",
|
|
2240
|
+
hash: "0x12203d71f7c09428bb0f75651436e3a1c92b3a12490049882ff50711337cf5c9de0a",
|
|
2241
|
+
topologyTransactions: [
|
|
2242
|
+
"CgMyLjESBTAuMC4x",
|
|
2243
|
+
"CgMyLjESBTAuMC4y"
|
|
2244
|
+
]
|
|
2245
|
+
}
|
|
2246
|
+
],
|
|
2247
|
+
summary: {
|
|
2248
|
+
partyId: "acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
|
|
2249
|
+
publicKey: "0x1111111111111111111111111111111111111111111111111111111111111111",
|
|
2250
|
+
hosting: {
|
|
2251
|
+
participantUid: "PAR::cancore::1220c0ffee",
|
|
2252
|
+
permission: "CONFIRMATION",
|
|
2253
|
+
threshold: 1
|
|
2254
|
+
}
|
|
2255
|
+
},
|
|
2256
|
+
expiresAt: 1789990300200
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
name: "canton-prepared-2",
|
|
2261
|
+
payload: {
|
|
2262
|
+
type: "canton.prepared",
|
|
2263
|
+
id: "g-20",
|
|
2264
|
+
fillerId: "acme-markets",
|
|
2265
|
+
sig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2266
|
+
sentAt: 1790000026300,
|
|
2267
|
+
re: "cp-3",
|
|
2268
|
+
operationId: "op-3",
|
|
2269
|
+
op: "delivery.fill",
|
|
2270
|
+
legs: [
|
|
2271
|
+
{
|
|
2272
|
+
legId: "delivery-fill-0",
|
|
2273
|
+
kind: "transaction",
|
|
2274
|
+
hash: "0xf85381267321fc9b5122e45db048de3313dbc0dce8b36202673245d6c6d92840",
|
|
2275
|
+
preparedTransaction: "CgMyLjESBTAuMC4x",
|
|
2276
|
+
hashingSchemeVersion: "HASHING_SCHEME_VERSION_V2"
|
|
2277
|
+
}
|
|
2278
|
+
],
|
|
2279
|
+
summary: {
|
|
2280
|
+
orderHash: "0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b",
|
|
2281
|
+
attempt: 2,
|
|
2282
|
+
deliveryOrderCid: "00a1b2c3d4e5f6#fixture-delivery-order",
|
|
2283
|
+
recipient: "alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f",
|
|
2284
|
+
asset: {
|
|
2285
|
+
admin: "cancore-registry::1220aa",
|
|
2286
|
+
id: "CNRX"
|
|
2287
|
+
},
|
|
2288
|
+
amount: "999.0",
|
|
2289
|
+
repayTo: "0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc",
|
|
2290
|
+
validUntil: "1790000400",
|
|
2291
|
+
inputHoldingCids: [
|
|
2292
|
+
"00h1",
|
|
2293
|
+
"00h2"
|
|
2294
|
+
],
|
|
2295
|
+
executeBefore: "1790000400",
|
|
2296
|
+
transferFactoryCid: "00tf"
|
|
2297
|
+
},
|
|
2298
|
+
expiresAt: 1790000326300
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
]
|
|
2302
|
+
},
|
|
2303
|
+
"canton.submit": {
|
|
2304
|
+
name: "canton.submit",
|
|
2305
|
+
title: "canton.submit (F2S)",
|
|
2306
|
+
payload: {
|
|
2307
|
+
schemaFormat: "application/schema+json;version=draft-2020-12",
|
|
2308
|
+
schema: {
|
|
2309
|
+
$ref: "messages.schema.json#/$defs/canton.submit"
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
examples: [
|
|
2313
|
+
{
|
|
2314
|
+
name: "canton-submit-1",
|
|
2315
|
+
payload: {
|
|
2316
|
+
type: "canton.submit",
|
|
2317
|
+
id: "cs-3",
|
|
2318
|
+
fillerId: "acme-markets",
|
|
2319
|
+
sentAt: 1790000027e3,
|
|
2320
|
+
msgSig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2321
|
+
operationId: "op-3",
|
|
2322
|
+
signatures: [
|
|
2323
|
+
{
|
|
2324
|
+
legId: "delivery-fill-0",
|
|
2325
|
+
signature: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
|
2326
|
+
}
|
|
2327
|
+
]
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
]
|
|
2331
|
+
},
|
|
2332
|
+
"canton.submitted": {
|
|
2333
|
+
name: "canton.submitted",
|
|
2334
|
+
title: "canton.submitted (S2F)",
|
|
2335
|
+
payload: {
|
|
2336
|
+
schemaFormat: "application/schema+json;version=draft-2020-12",
|
|
2337
|
+
schema: {
|
|
2338
|
+
$ref: "messages.schema.json#/$defs/canton.submitted"
|
|
2339
|
+
}
|
|
2340
|
+
},
|
|
2341
|
+
examples: [
|
|
2342
|
+
{
|
|
2343
|
+
name: "canton-submitted-1",
|
|
2344
|
+
payload: {
|
|
2345
|
+
type: "canton.submitted",
|
|
2346
|
+
id: "g-21",
|
|
2347
|
+
fillerId: "acme-markets",
|
|
2348
|
+
sig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2349
|
+
sentAt: 1790000029e3,
|
|
2350
|
+
re: "cs-3",
|
|
2351
|
+
operationId: "op-3",
|
|
2352
|
+
op: "delivery.fill",
|
|
2353
|
+
updateId: "1220ab0c",
|
|
2354
|
+
result: {
|
|
2355
|
+
receiptCid: "00c1d2"
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
name: "canton-submitted-2",
|
|
2361
|
+
payload: {
|
|
2362
|
+
type: "canton.submitted",
|
|
2363
|
+
id: "g-22",
|
|
2364
|
+
fillerId: "acme-markets",
|
|
2365
|
+
sig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2366
|
+
sentAt: 1789990002e3,
|
|
2367
|
+
re: "cs-1",
|
|
2368
|
+
operationId: "op-1",
|
|
2369
|
+
op: "party.allocate",
|
|
2370
|
+
result: {
|
|
2371
|
+
partyId: "acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
name: "canton-submitted-3",
|
|
2377
|
+
payload: {
|
|
2378
|
+
type: "canton.submitted",
|
|
2379
|
+
id: "g-23",
|
|
2380
|
+
fillerId: "acme-markets",
|
|
2381
|
+
sig: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
|
|
2382
|
+
sentAt: 1790001002e3,
|
|
2383
|
+
re: "cs-5",
|
|
2384
|
+
operationId: "op-5",
|
|
2385
|
+
op: "holdings.transfer",
|
|
2386
|
+
updateId: "1220ab0d",
|
|
2387
|
+
result: {
|
|
2388
|
+
outcome: "PENDING",
|
|
2389
|
+
transferInstructionCid: "00ti"
|
|
2390
|
+
}
|
|
2048
2391
|
}
|
|
2049
2392
|
}
|
|
2050
2393
|
]
|
|
@@ -2128,7 +2471,7 @@ var messages_schema_default = {
|
|
|
2128
2471
|
},
|
|
2129
2472
|
errorCode: {
|
|
2130
2473
|
anyOf: [
|
|
2131
|
-
{ enum: ["BAD_REQUEST", "UNAUTHENTICATED", "UNSUPPORTED_VERSION", "UNSUPPORTED_TYPE", "BAD_SIGNATURE", "STALE_MESSAGE", "REPLAYED_MESSAGE", "TICKET_REFUSED", "UNKNOWN_REQUEST", "UNKNOWN_TICKET", "TICKET_CLOSED", "NOT_ELIGIBLE", "RATE_LIMITED", "INTERNAL", "ATTESTATIONS_NOT_READY"] },
|
|
2474
|
+
{ enum: ["BAD_REQUEST", "UNAUTHENTICATED", "UNSUPPORTED_VERSION", "UNSUPPORTED_TYPE", "BAD_SIGNATURE", "STALE_MESSAGE", "REPLAYED_MESSAGE", "TICKET_REFUSED", "UNKNOWN_REQUEST", "UNKNOWN_TICKET", "TICKET_CLOSED", "NOT_ELIGIBLE", "RATE_LIMITED", "INTERNAL", "ATTESTATIONS_NOT_READY", "CANTON_NOT_READY", "CANTON_REFUSED", "CANTON_UNAVAILABLE", "OPERATION_EXPIRED"] },
|
|
2132
2475
|
{ $ref: "#/$defs/futureEnumValue" }
|
|
2133
2476
|
]
|
|
2134
2477
|
},
|
|
@@ -2594,6 +2937,369 @@ var messages_schema_default = {
|
|
|
2594
2937
|
threshold: { type: "integer", minimum: 1, maximum: 4294967295, description: "k of that set" },
|
|
2595
2938
|
refundAfter: { $ref: "#/$defs/timeS", description: "from this time settle reverts; the node gets its settle included before it" }
|
|
2596
2939
|
}
|
|
2940
|
+
},
|
|
2941
|
+
cantonOp: {
|
|
2942
|
+
description: "A Canton operation of the filler's own external party on the Cancore participant (protocol \xA73.19): the backend prepares and submits it, the node signs it with its party key and never talks to a Ledger API. party.allocate creates the party (topology); registry.accept accepts the FillerRegistryEntryProposal of the fillerId; delivery.fill exercises DeliveryOrder_Fill of a Canton ticket issued to the filler; intent.settle exercises SwapIntent_SettleWithProof of a Canton-source order the filler delivered; holdings.transfer moves the party's own holdings to a party it names (TransferFactory_Transfer)",
|
|
2943
|
+
anyOf: [
|
|
2944
|
+
{ enum: ["party.allocate", "registry.accept", "delivery.fill", "intent.settle", "holdings.transfer"] },
|
|
2945
|
+
{ type: "string", pattern: "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$" }
|
|
2946
|
+
]
|
|
2947
|
+
},
|
|
2948
|
+
operationId: {
|
|
2949
|
+
type: "string",
|
|
2950
|
+
pattern: "^[!-~]{1,64}$",
|
|
2951
|
+
description: "the handle canton.prepared hands out for canton.submit: opaque, 1..64 printable ASCII, valid until expiresAt"
|
|
2952
|
+
},
|
|
2953
|
+
edPublicKey: { type: "string", pattern: "^0x[0-9a-f]{64}$", description: "the raw 32-byte Ed25519 public key of the filler's Canton party, lowercase hex" },
|
|
2954
|
+
edSignature: { type: "string", pattern: "^0x[0-9a-f]{128}$", description: "64-byte Ed25519 signature by the party key over the bytes of a leg's hash, lowercase hex" },
|
|
2955
|
+
cantonLegTransaction: {
|
|
2956
|
+
type: "object",
|
|
2957
|
+
description: "A prepared Canton transaction to sign. MUST before signing (protocol \xA73.19): the node recomputes `hash` from `preparedTransaction` with the participant's prepared-transaction hashing of `hashingSchemeVersion`, decodes the transaction and checks it against `summary` for the op of the message \u2014 template and choice, acting and receiving parties, instrument, amount; on any difference it does not sign. It signs the 32 hash bytes with its party key",
|
|
2958
|
+
required: ["legId", "kind", "hash", "preparedTransaction", "hashingSchemeVersion"],
|
|
2959
|
+
properties: {
|
|
2960
|
+
legId: { type: "string", minLength: 1, maxLength: 128 },
|
|
2961
|
+
kind: { const: "transaction" },
|
|
2962
|
+
hash: { type: "string", pattern: "^0x[0-9a-f]{64}$", description: "the 32-byte prepared-transaction hash" },
|
|
2963
|
+
preparedTransaction: {
|
|
2964
|
+
type: "string",
|
|
2965
|
+
minLength: 1,
|
|
2966
|
+
pattern: "^[A-Za-z0-9+/]+={0,2}$",
|
|
2967
|
+
description: "the prepared transaction (base64 protobuf) the hash is over. Never logged"
|
|
2968
|
+
},
|
|
2969
|
+
hashingSchemeVersion: {
|
|
2970
|
+
type: "string",
|
|
2971
|
+
pattern: "^HASHING_SCHEME_VERSION_V[0-9]+$",
|
|
2972
|
+
description: "the participant's prepared-transaction hashing scheme the hash was computed with"
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
cantonLegTopology: {
|
|
2977
|
+
type: "object",
|
|
2978
|
+
description: "The onboarding topology of the filler's party, in `party.allocate` only (a topology leg in any other op is refused by the schema). MUST before signing (protocol \xA73.19): the node recomputes the multihash over `topologyTransactions` and checks that they create the party of `summary.partyId` with the key of `summary.publicKey` as its only signing key, hosted on the Cancore participant; on any difference it does not sign. It signs the 34 multihash bytes with its party key",
|
|
2979
|
+
required: ["legId", "kind", "hash", "topologyTransactions"],
|
|
2980
|
+
properties: {
|
|
2981
|
+
legId: { type: "string", minLength: 1, maxLength: 128 },
|
|
2982
|
+
kind: { const: "topology" },
|
|
2983
|
+
hash: { type: "string", pattern: "^0x1220[0-9a-f]{64}$", description: "the topology multihash: 0x1220 \u2016 sha256" },
|
|
2984
|
+
topologyTransactions: {
|
|
2985
|
+
type: "array",
|
|
2986
|
+
minItems: 1,
|
|
2987
|
+
items: { type: "string", minLength: 1, pattern: "^[A-Za-z0-9+/]+={0,2}$" },
|
|
2988
|
+
description: "the topology transactions (base64 protobuf) the multihash is over, in order"
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
},
|
|
2992
|
+
cantonSignature: {
|
|
2993
|
+
type: "object",
|
|
2994
|
+
required: ["legId", "signature"],
|
|
2995
|
+
properties: { legId: { type: "string", minLength: 1, maxLength: 128 }, signature: { $ref: "#/$defs/edSignature" } }
|
|
2996
|
+
},
|
|
2997
|
+
"canton.prepare": {
|
|
2998
|
+
"x-direction": "F2S",
|
|
2999
|
+
type: "object",
|
|
3000
|
+
description: "Prepare a Canton operation of the sender's own party (\xA73.19); answered by canton.prepared (re = this id) or error. params select the operation only: the backend picks every contract itself (holdings, delivery order, intent, registry entry, disclosed contracts, attestor signatures). Admission: party.allocate \u2014 the fillerId has no party yet, or this key's party; registry.accept \u2014 a proposal for the fillerId and its party is live; delivery.fill \u2014 an ISSUED Canton ticket of this filler for (orderHash, attempt), before validUntil; intent.settle \u2014 a Canton-source order this filler delivered, with attestations held; holdings.transfer \u2014 enough unlocked holdings of the asset beyond what the party's open delivery orders need, to a party other than its own. Each prepare prepares afresh and replaces the filler's open operation of the same op and target",
|
|
3001
|
+
allOf: [
|
|
3002
|
+
{ $ref: "#/$defs/f2sBase" },
|
|
3003
|
+
{
|
|
3004
|
+
if: { type: "object", properties: { op: { const: "party.allocate" } }, required: ["op"] },
|
|
3005
|
+
then: {
|
|
3006
|
+
type: "object",
|
|
3007
|
+
required: ["params"],
|
|
3008
|
+
properties: { params: { type: "object", required: ["publicKey"], properties: { publicKey: { $ref: "#/$defs/edPublicKey" } } } }
|
|
3009
|
+
}
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
if: { type: "object", properties: { op: { const: "registry.accept" } }, required: ["op"] },
|
|
3013
|
+
then: { type: "object", required: ["params"], properties: { params: { type: "object" } } }
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
if: { type: "object", properties: { op: { const: "delivery.fill" } }, required: ["op"] },
|
|
3017
|
+
then: {
|
|
3018
|
+
type: "object",
|
|
3019
|
+
required: ["params"],
|
|
3020
|
+
properties: {
|
|
3021
|
+
params: {
|
|
3022
|
+
type: "object",
|
|
3023
|
+
required: ["orderHash", "attempt"],
|
|
3024
|
+
properties: { orderHash: { $ref: "#/$defs/bytes32" }, attempt: { $ref: "#/$defs/uint32" } }
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
},
|
|
3029
|
+
{
|
|
3030
|
+
if: { type: "object", properties: { op: { const: "intent.settle" } }, required: ["op"] },
|
|
3031
|
+
then: {
|
|
3032
|
+
type: "object",
|
|
3033
|
+
required: ["params"],
|
|
3034
|
+
properties: { params: { type: "object", required: ["orderHash"], properties: { orderHash: { $ref: "#/$defs/bytes32" } } } }
|
|
3035
|
+
}
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
if: { type: "object", properties: { op: { const: "holdings.transfer" } }, required: ["op"] },
|
|
3039
|
+
then: {
|
|
3040
|
+
type: "object",
|
|
3041
|
+
required: ["params"],
|
|
3042
|
+
properties: {
|
|
3043
|
+
params: {
|
|
3044
|
+
type: "object",
|
|
3045
|
+
required: ["asset", "amount", "toParty"],
|
|
3046
|
+
properties: {
|
|
3047
|
+
asset: { $ref: "#/$defs/cantonAsset" },
|
|
3048
|
+
amount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", description: "Daml Decimal, > 0" },
|
|
3049
|
+
toParty: { type: "string", minLength: 1, maxLength: 255, description: "the receiving Canton party; never the filler's own" }
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
],
|
|
3056
|
+
required: ["type", "op", "params"],
|
|
3057
|
+
properties: { type: { const: "canton.prepare" }, op: { $ref: "#/$defs/cantonOp" }, params: { type: "object" } }
|
|
3058
|
+
},
|
|
3059
|
+
"canton.prepared": {
|
|
3060
|
+
"x-direction": "S2F",
|
|
3061
|
+
type: "object",
|
|
3062
|
+
description: "A prepared operation. The node MUST verify every leg before it signs it (cantonLegTransaction, cantonLegTopology): what it signs is what Cancore assembled, and summary is only what Cancore says about it \u2014 a leg that does not match summary, or summary that does not match what the node expects of the op, is not signed. Topology legs come with party.allocate only; every other op prepares transactions. Then the node signs every leg's hash with its party key and sends canton.submit before expiresAt. An operationId stays valid until its own expiresAt whatever is prepared after it",
|
|
3063
|
+
allOf: [
|
|
3064
|
+
{ $ref: "#/$defs/s2fBase" },
|
|
3065
|
+
{
|
|
3066
|
+
if: { type: "object", properties: { op: { const: "party.allocate" } }, required: ["op"] },
|
|
3067
|
+
then: { type: "object", properties: { legs: { type: "array", items: { $ref: "#/$defs/cantonLegTopology" } } } },
|
|
3068
|
+
else: { type: "object", properties: { legs: { type: "array", items: { $ref: "#/$defs/cantonLegTransaction" } } } }
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
if: { type: "object", properties: { op: { const: "party.allocate" } }, required: ["op"] },
|
|
3072
|
+
then: {
|
|
3073
|
+
type: "object",
|
|
3074
|
+
required: ["summary"],
|
|
3075
|
+
properties: {
|
|
3076
|
+
summary: {
|
|
3077
|
+
type: "object",
|
|
3078
|
+
required: ["partyId", "publicKey", "hosting"],
|
|
3079
|
+
properties: {
|
|
3080
|
+
partyId: { type: "string", minLength: 1 },
|
|
3081
|
+
publicKey: { $ref: "#/$defs/edPublicKey" },
|
|
3082
|
+
hosting: {
|
|
3083
|
+
type: "object",
|
|
3084
|
+
required: ["participantUid", "permission", "threshold"],
|
|
3085
|
+
description: "how the topology hosts the party: on the Cancore participant alone, with Confirmation permission, threshold 1 \u2014 the node checks the decoded topology against it",
|
|
3086
|
+
properties: { participantUid: { type: "string", minLength: 1 }, permission: { const: "CONFIRMATION" }, threshold: { const: 1 } }
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
if: { type: "object", properties: { op: { const: "registry.accept" } }, required: ["op"] },
|
|
3095
|
+
then: {
|
|
3096
|
+
type: "object",
|
|
3097
|
+
required: ["summary"],
|
|
3098
|
+
properties: {
|
|
3099
|
+
summary: {
|
|
3100
|
+
type: "object",
|
|
3101
|
+
required: ["fillerId", "party", "operator", "proposalCid"],
|
|
3102
|
+
properties: {
|
|
3103
|
+
fillerId: { $ref: "#/$defs/fillerId" },
|
|
3104
|
+
party: { type: "string", minLength: 1 },
|
|
3105
|
+
operator: { type: "string", minLength: 1 },
|
|
3106
|
+
proposalCid: { type: "string", minLength: 1 }
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
if: { type: "object", properties: { op: { const: "delivery.fill" } }, required: ["op"] },
|
|
3114
|
+
then: {
|
|
3115
|
+
type: "object",
|
|
3116
|
+
required: ["summary"],
|
|
3117
|
+
properties: {
|
|
3118
|
+
summary: {
|
|
3119
|
+
type: "object",
|
|
3120
|
+
required: [
|
|
3121
|
+
"orderHash",
|
|
3122
|
+
"attempt",
|
|
3123
|
+
"deliveryOrderCid",
|
|
3124
|
+
"recipient",
|
|
3125
|
+
"asset",
|
|
3126
|
+
"amount",
|
|
3127
|
+
"repayTo",
|
|
3128
|
+
"validUntil",
|
|
3129
|
+
"inputHoldingCids",
|
|
3130
|
+
"executeBefore",
|
|
3131
|
+
"transferFactoryCid"
|
|
3132
|
+
],
|
|
3133
|
+
properties: {
|
|
3134
|
+
orderHash: { $ref: "#/$defs/bytes32" },
|
|
3135
|
+
attempt: { $ref: "#/$defs/uint32" },
|
|
3136
|
+
deliveryOrderCid: { type: "string", minLength: 1 },
|
|
3137
|
+
recipient: { type: "string", minLength: 1, description: "the Canton party the order delivers to" },
|
|
3138
|
+
asset: { $ref: "#/$defs/cantonAsset" },
|
|
3139
|
+
amount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", description: "DeliveryOrder.amount, Daml Decimal" },
|
|
3140
|
+
repayTo: { $ref: "#/$defs/repayTo" },
|
|
3141
|
+
validUntil: { $ref: "#/$defs/timeS" },
|
|
3142
|
+
inputHoldingCids: {
|
|
3143
|
+
type: "array",
|
|
3144
|
+
minItems: 1,
|
|
3145
|
+
items: { type: "string", minLength: 1 },
|
|
3146
|
+
description: "the party's holdings the transfer spends; whatever they hold beyond amount comes back as change"
|
|
3147
|
+
},
|
|
3148
|
+
executeBefore: { $ref: "#/$defs/timeS", description: "the transfer's executeBefore: the order's fillDeadline" },
|
|
3149
|
+
transferFactoryCid: { type: "string", minLength: 1, description: "the registry factory the order pins" }
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
if: { type: "object", properties: { op: { const: "intent.settle" } }, required: ["op"] },
|
|
3157
|
+
then: {
|
|
3158
|
+
type: "object",
|
|
3159
|
+
required: ["summary"],
|
|
3160
|
+
properties: {
|
|
3161
|
+
summary: {
|
|
3162
|
+
type: "object",
|
|
3163
|
+
required: ["orderHash", "intentCid", "asset", "amount", "executeBefore", "payee", "giveAmount", "fee"],
|
|
3164
|
+
properties: {
|
|
3165
|
+
orderHash: { $ref: "#/$defs/bytes32" },
|
|
3166
|
+
intentCid: { type: "string", minLength: 1 },
|
|
3167
|
+
asset: { $ref: "#/$defs/cantonAsset" },
|
|
3168
|
+
amount: {
|
|
3169
|
+
type: "string",
|
|
3170
|
+
pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$",
|
|
3171
|
+
description: "what the settlement pays the payee: giveAmount less fee.amount, Daml Decimal"
|
|
3172
|
+
},
|
|
3173
|
+
executeBefore: { $ref: "#/$defs/timeS" },
|
|
3174
|
+
payee: { type: "string", minLength: 1, description: "the party paid: the filler's own" },
|
|
3175
|
+
giveAmount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", description: "the intent's committed give, fee-inclusive" },
|
|
3176
|
+
fee: {
|
|
3177
|
+
type: "object",
|
|
3178
|
+
required: ["receiver", "amount"],
|
|
3179
|
+
properties: {
|
|
3180
|
+
receiver: { type: "string", minLength: 1, description: "the operator party" },
|
|
3181
|
+
amount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$" }
|
|
3182
|
+
},
|
|
3183
|
+
description: "the settlement's fee leg; amount 0 when there is none"
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
if: { type: "object", properties: { op: { const: "holdings.transfer" } }, required: ["op"] },
|
|
3192
|
+
then: {
|
|
3193
|
+
type: "object",
|
|
3194
|
+
required: ["summary"],
|
|
3195
|
+
properties: {
|
|
3196
|
+
summary: {
|
|
3197
|
+
type: "object",
|
|
3198
|
+
required: ["asset", "amount", "receiver", "inputHoldingCids", "executeBefore"],
|
|
3199
|
+
properties: {
|
|
3200
|
+
asset: { $ref: "#/$defs/cantonAsset" },
|
|
3201
|
+
amount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$" },
|
|
3202
|
+
receiver: { type: "string", minLength: 1 },
|
|
3203
|
+
inputHoldingCids: {
|
|
3204
|
+
type: "array",
|
|
3205
|
+
minItems: 1,
|
|
3206
|
+
items: { type: "string", minLength: 1 },
|
|
3207
|
+
description: "the party's holdings the transfer spends; what they hold beyond amount comes back as change"
|
|
3208
|
+
},
|
|
3209
|
+
executeBefore: { $ref: "#/$defs/timeS" }
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
],
|
|
3216
|
+
required: ["type", "re", "operationId", "op", "legs", "summary", "expiresAt"],
|
|
3217
|
+
properties: {
|
|
3218
|
+
type: { const: "canton.prepared" },
|
|
3219
|
+
re: { $ref: "#/$defs/messageId" },
|
|
3220
|
+
operationId: { $ref: "#/$defs/operationId" },
|
|
3221
|
+
op: { $ref: "#/$defs/cantonOp" },
|
|
3222
|
+
legs: { type: "array", minItems: 1 },
|
|
3223
|
+
summary: { type: "object" },
|
|
3224
|
+
expiresAt: { $ref: "#/$defs/timeMs" }
|
|
3225
|
+
}
|
|
3226
|
+
},
|
|
3227
|
+
"canton.submit": {
|
|
3228
|
+
"x-direction": "F2S",
|
|
3229
|
+
type: "object",
|
|
3230
|
+
description: "Submit a prepared operation: one party-key signature per leg. Idempotent per operationId: a repeat (after a lost answer or CANTON_UNAVAILABLE) is answered with the same canton.submitted and never executes twice. OPERATION_EXPIRED: prepare again",
|
|
3231
|
+
allOf: [{ $ref: "#/$defs/f2sBase" }],
|
|
3232
|
+
required: ["type", "operationId", "signatures"],
|
|
3233
|
+
properties: {
|
|
3234
|
+
type: { const: "canton.submit" },
|
|
3235
|
+
operationId: { $ref: "#/$defs/operationId" },
|
|
3236
|
+
signatures: { type: "array", minItems: 1, items: { $ref: "#/$defs/cantonSignature" } }
|
|
3237
|
+
}
|
|
3238
|
+
},
|
|
3239
|
+
"canton.submitted": {
|
|
3240
|
+
"x-direction": "S2F",
|
|
3241
|
+
type: "object",
|
|
3242
|
+
description: "The operation committed. updateId is its Canton update (absent for party.allocate, a topology change); result names what it created, by op",
|
|
3243
|
+
allOf: [
|
|
3244
|
+
{ $ref: "#/$defs/s2fBase" },
|
|
3245
|
+
{
|
|
3246
|
+
if: { type: "object", properties: { op: { const: "party.allocate" } }, required: ["op"] },
|
|
3247
|
+
then: {
|
|
3248
|
+
type: "object",
|
|
3249
|
+
required: ["result"],
|
|
3250
|
+
properties: { result: { type: "object", required: ["partyId"], properties: { partyId: { type: "string", minLength: 1 } } } }
|
|
3251
|
+
}
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
if: { type: "object", properties: { op: { const: "registry.accept" } }, required: ["op"] },
|
|
3255
|
+
then: {
|
|
3256
|
+
type: "object",
|
|
3257
|
+
required: ["result"],
|
|
3258
|
+
properties: { result: { type: "object", required: ["entryCid"], properties: { entryCid: { type: "string", minLength: 1 } } } }
|
|
3259
|
+
}
|
|
3260
|
+
},
|
|
3261
|
+
{
|
|
3262
|
+
if: { type: "object", properties: { op: { const: "delivery.fill" } }, required: ["op"] },
|
|
3263
|
+
then: {
|
|
3264
|
+
type: "object",
|
|
3265
|
+
required: ["result"],
|
|
3266
|
+
properties: { result: { type: "object", required: ["receiptCid"], properties: { receiptCid: { type: "string", minLength: 1 } } } }
|
|
3267
|
+
}
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
if: { type: "object", properties: { op: { const: "intent.settle" } }, required: ["op"] },
|
|
3271
|
+
then: { type: "object", required: ["result"], properties: { result: { type: "object" } } }
|
|
3272
|
+
},
|
|
3273
|
+
{
|
|
3274
|
+
if: { type: "object", properties: { op: { const: "holdings.transfer" } }, required: ["op"] },
|
|
3275
|
+
then: {
|
|
3276
|
+
type: "object",
|
|
3277
|
+
required: ["result"],
|
|
3278
|
+
properties: {
|
|
3279
|
+
result: {
|
|
3280
|
+
type: "object",
|
|
3281
|
+
required: ["outcome"],
|
|
3282
|
+
properties: {
|
|
3283
|
+
outcome: {
|
|
3284
|
+
anyOf: [{ enum: ["COMPLETED", "PENDING"] }, { $ref: "#/$defs/futureEnumValue" }],
|
|
3285
|
+
description: "COMPLETED: the receiver holds it (a preapproval accepted it); PENDING: a TransferInstruction waits for the receiver to accept"
|
|
3286
|
+
},
|
|
3287
|
+
transferInstructionCid: { type: "string", minLength: 1, description: "with PENDING" }
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
],
|
|
3294
|
+
required: ["type", "re", "operationId", "op", "result"],
|
|
3295
|
+
properties: {
|
|
3296
|
+
type: { const: "canton.submitted" },
|
|
3297
|
+
re: { $ref: "#/$defs/messageId" },
|
|
3298
|
+
operationId: { $ref: "#/$defs/operationId" },
|
|
3299
|
+
op: { $ref: "#/$defs/cantonOp" },
|
|
3300
|
+
updateId: { type: "string", minLength: 1 },
|
|
3301
|
+
result: { type: "object" }
|
|
3302
|
+
}
|
|
2597
3303
|
}
|
|
2598
3304
|
}
|
|
2599
3305
|
};
|
|
@@ -2699,7 +3405,7 @@ var rest_schema_default = {
|
|
|
2699
3405
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
2700
3406
|
$id: "https://cancore.io/schemas/filler-protocol/v1/rest.schema.json",
|
|
2701
3407
|
title: "Cancore filler protocol v1 \u2014 REST fallback",
|
|
2702
|
-
$comment: "protocol \xA73.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\u2192F 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 \u2014 fillerId missing or not a fillerId; 404 UNKNOWN_REQUEST \u2014 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 \u2014 no or a malformed fillerId; 404 UNKNOWN_REQUEST \u2014 fillerId unknown or not ACTIVE; 401 UNAUTHENTICATED \u2014 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 \u2265 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 \u2014 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.",
|
|
3408
|
+
$comment: "protocol \xA73.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\u2192F 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 \u2014 fillerId missing or not a fillerId; 404 UNKNOWN_REQUEST \u2014 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 \u2014 no or a malformed fillerId; 404 UNKNOWN_REQUEST \u2014 fillerId unknown or not ACTIVE; 401 UNAUTHENTICATED \u2014 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 \xA73.19 \u2014 an hourly budget per filler, 60 by default \u2014 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 \u2265 threshold verified signatures for this filler's fill, and 404 UNKNOWN_TICKET when this filler holds no ticket on the order. /v1/filler/canton/* (\xA73.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 \u2014 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.",
|
|
2703
3409
|
"x-endpoints": [
|
|
2704
3410
|
{ method: "GET", path: "/v1/filler/auth/challenge", auth: "none", query: "#/$defs/challengeQuery", response: "messages.schema.json#/$defs/auth.challenge", errorBody: "#/$defs/unsignedErrorBody" },
|
|
2705
3411
|
{ method: "POST", path: "/v1/filler/auth", auth: "none", request: "messages.schema.json#/$defs/auth.response", response: "#/$defs/authToken", errorBody: "#/$defs/unsignedErrorBody" },
|
|
@@ -2714,7 +3420,12 @@ var rest_schema_default = {
|
|
|
2714
3420
|
{ method: "GET", path: "/v1/filler/attestations/{orderHash}", auth: "bearer", response: "messages.schema.json#/$defs/settle.attestations" },
|
|
2715
3421
|
{ method: "GET", path: "/v1/draws/{orderHash}", auth: "none", response: "records.schema.json#/$defs/drawRecord" },
|
|
2716
3422
|
{ method: "GET", path: "/v1/draws/epochs/{id}", auth: "none", response: "records.schema.json#/$defs/epochRecord" },
|
|
2717
|
-
{ method: "GET", path: "/v1/gateway", auth: "none", response: "records.schema.json#/$defs/gatewayInfo" }
|
|
3423
|
+
{ method: "GET", path: "/v1/gateway", auth: "none", response: "records.schema.json#/$defs/gatewayInfo" },
|
|
3424
|
+
{ method: "POST", path: "/v1/filler/canton/prepare", auth: "bearer", request: "messages.schema.json#/$defs/canton.prepare", response: "messages.schema.json#/$defs/canton.prepared" },
|
|
3425
|
+
{ method: "POST", path: "/v1/filler/canton/submit", auth: "bearer", request: "messages.schema.json#/$defs/canton.submit", response: "messages.schema.json#/$defs/canton.submitted" },
|
|
3426
|
+
{ method: "GET", path: "/v1/filler/canton/party", auth: "bearer", response: "#/$defs/cantonParty" },
|
|
3427
|
+
{ method: "GET", path: "/v1/filler/canton/holdings", auth: "bearer", query: "#/$defs/pageQuery", response: "#/$defs/cantonHoldingList" },
|
|
3428
|
+
{ method: "GET", path: "/v1/filler/canton/delivery-orders", auth: "bearer", query: "#/$defs/pageQuery", response: "#/$defs/cantonDeliveryOrderList" }
|
|
2718
3429
|
],
|
|
2719
3430
|
"x-error-status": {
|
|
2720
3431
|
BAD_REQUEST: 400,
|
|
@@ -2731,7 +3442,11 @@ var rest_schema_default = {
|
|
|
2731
3442
|
NOT_ELIGIBLE: 403,
|
|
2732
3443
|
RATE_LIMITED: 429,
|
|
2733
3444
|
INTERNAL: 500,
|
|
2734
|
-
ATTESTATIONS_NOT_READY: 404
|
|
3445
|
+
ATTESTATIONS_NOT_READY: 404,
|
|
3446
|
+
CANTON_NOT_READY: 409,
|
|
3447
|
+
CANTON_REFUSED: 422,
|
|
3448
|
+
CANTON_UNAVAILABLE: 503,
|
|
3449
|
+
OPERATION_EXPIRED: 410
|
|
2735
3450
|
},
|
|
2736
3451
|
$defs: {
|
|
2737
3452
|
errorBody: { $ref: "messages.schema.json#/$defs/errorS2F" },
|
|
@@ -2838,6 +3553,60 @@ var rest_schema_default = {
|
|
|
2838
3553
|
type: "object",
|
|
2839
3554
|
required: ["items", "nextCursor"],
|
|
2840
3555
|
properties: { items: { type: "array", items: { $ref: "#/$defs/penaltyRecord" } }, nextCursor: { type: ["string", "null"] } }
|
|
3556
|
+
},
|
|
3557
|
+
cantonParty: {
|
|
3558
|
+
type: "object",
|
|
3559
|
+
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",
|
|
3560
|
+
required: ["party", "publicKey", "registry"],
|
|
3561
|
+
properties: {
|
|
3562
|
+
party: { type: ["string", "null"], minLength: 1 },
|
|
3563
|
+
publicKey: { anyOf: [{ $ref: "messages.schema.json#/$defs/edPublicKey" }, { type: "null" }] },
|
|
3564
|
+
registry: {
|
|
3565
|
+
type: "object",
|
|
3566
|
+
required: ["state", "proposalCid", "entryCid"],
|
|
3567
|
+
properties: {
|
|
3568
|
+
state: { anyOf: [{ enum: ["NONE", "PROPOSED", "ACTIVE", "REMOVED"] }, { $ref: "messages.schema.json#/$defs/futureEnumValue" }] },
|
|
3569
|
+
proposalCid: { type: ["string", "null"] },
|
|
3570
|
+
entryCid: { type: ["string", "null"] }
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
},
|
|
3575
|
+
cantonHolding: {
|
|
3576
|
+
type: "object",
|
|
3577
|
+
required: ["contractId", "asset", "amount", "locked"],
|
|
3578
|
+
properties: {
|
|
3579
|
+
contractId: { type: "string", minLength: 1 },
|
|
3580
|
+
asset: { $ref: "messages.schema.json#/$defs/cantonAsset" },
|
|
3581
|
+
amount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", description: "Daml Decimal" },
|
|
3582
|
+
locked: { type: "boolean", description: "held by a lock (an allocation or a pending transfer); not spendable by delivery.fill" }
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
cantonHoldingList: {
|
|
3586
|
+
type: "object",
|
|
3587
|
+
description: "Holdings of the party (CNRX and Canton Coin among them), oldest first",
|
|
3588
|
+
required: ["items", "nextCursor"],
|
|
3589
|
+
properties: { items: { type: "array", items: { $ref: "#/$defs/cantonHolding" } }, nextCursor: { type: ["string", "null"] } }
|
|
3590
|
+
},
|
|
3591
|
+
cantonDeliveryOrder: {
|
|
3592
|
+
type: "object",
|
|
3593
|
+
required: ["deliveryOrderCid", "orderHash", "attempt", "asset", "amount", "recipient", "repayTo", "validUntil"],
|
|
3594
|
+
properties: {
|
|
3595
|
+
deliveryOrderCid: { type: "string", minLength: 1 },
|
|
3596
|
+
orderHash: { $ref: "messages.schema.json#/$defs/bytes32" },
|
|
3597
|
+
attempt: { $ref: "messages.schema.json#/$defs/uint32" },
|
|
3598
|
+
asset: { $ref: "messages.schema.json#/$defs/cantonAsset" },
|
|
3599
|
+
amount: { type: "string", pattern: "^(0|[1-9][0-9]*)(\\.[0-9]{1,10})?$", description: "Daml Decimal" },
|
|
3600
|
+
recipient: { type: "string", minLength: 1 },
|
|
3601
|
+
repayTo: { $ref: "messages.schema.json#/$defs/repayTo" },
|
|
3602
|
+
validUntil: { $ref: "messages.schema.json#/$defs/timeS" }
|
|
3603
|
+
}
|
|
3604
|
+
},
|
|
3605
|
+
cantonDeliveryOrderList: {
|
|
3606
|
+
type: "object",
|
|
3607
|
+
description: "The live DeliveryOrders naming the party as filler, oldest first",
|
|
3608
|
+
required: ["items", "nextCursor"],
|
|
3609
|
+
properties: { items: { type: "array", items: { $ref: "#/$defs/cantonDeliveryOrder" } }, nextCursor: { type: ["string", "null"] } }
|
|
2841
3610
|
}
|
|
2842
3611
|
}
|
|
2843
3612
|
};
|
|
@@ -3005,6 +3774,6 @@ function describeRevert(selectorOrData, tables) {
|
|
|
3005
3774
|
return void 0;
|
|
3006
3775
|
}
|
|
3007
3776
|
|
|
3008
|
-
export { ASYNCAPI, BPS, BUILD_HASHES, BYTECODE_HASHES, CANTON_ORIGIN_ID, CANTON_SOURCE_ANCHOR, CANTON_TICKET_RECEIPT_TYPES, CONTRACTS_RELEASE, DAML_NUMERIC_SCALE, DECLINE_REASONS, DEPLOYMENTS, DRAND_QUICKNET, DRAW_CLOSED_BY, EIP2294_MAX_CHAIN_ID, ERROR_CODES, ERROR_HTTP_STATUS, EXEMPT_REASONS, EXPIRED_RESULTS, FEE_CLAIM_DOMAIN_NAME, FEE_CLAIM_DOMAIN_VERSION, FEE_CLAIM_TYPES, FILLER_AUTH_TYPES, FILLER_CLOSE_CODES, FILLER_GATEWAYS, FILLER_ID_PATTERN, FILLER_KEY_REGISTRATION_TYPES, FILLER_MESSAGE_TYPES, FILLER_PROTOCOL_DOMAIN, FILLER_QUOTE_TYPES, FILLER_UPGRADE_REFUSALS, FILLER_WS_BEARER_PREFIX, FILLER_WS_SUBPROTOCOL, FILL_PROOF_DOMAIN, FILL_PROOF_TYPES, FILL_PROOF_TYPE_STRING, FILL_TICKET_DOMAIN, FILL_TICKET_TYPES, GATEWAY_MESSAGE_TYPES, GRACE, INSTRUMENT_LABEL_TAG, MAX_FEE_BPS, MAX_FILL_TTL, MAX_PROOF_WINDOW, MAX_SIG_TTL, MESSAGE_DIRECTIONS, MIN_FILL_TTL, ORDER_TYPES, OWNER_LABEL_TAG, PENALTY_STEPS, PERMIT2_ADDRESS, PERMIT2_WITNESS_TYPE_STRING, PERMIT_WITNESS_TYPES, PROOF_KIND_ATTESTATION, PROTOCOL_SCHEMAS, PROTOCOL_VERSION, QUOTE_ACK_STATUSES, QUOTE_FINAL_STATUSES, QUOTE_TYPES, REST_ENDPOINTS, REST_ONLY_TYPES, SCHEMA_VOCABULARY, SET_DELAY, STAKE_BINDING_TYPES, TICKET_INTENT_TYPES, TICKET_LIST_STATUSES, TICKET_RECEIPT_TYPES, TICKET_REFUSED_REASONS, buildCantonSourceOrder, cantonInclusiveFeeSplit, cantonNetworkOfDestination, cantonSigEntries, cantonTicketReceipt, deliveryOrderCidHash, deploymentOf, describeRevert, drawValue, drawWinner, encodeCantonAmount, encodeCantonDestination, encodeCantonOutputAsset, encodeCantonRecipient, encodeType, evmAddressFromRepayTo, feeClaimDomain, fillProofDomain, fillerEnvelopeError, fillerIdHash, fillerMessageBodyHash, fillerWsProtocols, firstRoundAtOrAfter, gatewayBodyHash, hashCantonTicketReceipt, hashDomain, hashFillProof, hashFillTicket, hashFillerKeyRegistration, hashFillerMessage, hashFillerQuote, hashOrder, hashPermitWitness, hashStruct, hashTicketIntent, hashTypedData, inclusiveFeeSplit, isCantonOriginId, isCantonSource, isEoaSignature, isEvmRepayTo, jcs, messageIdRetainUntil, messageSchemaRef, permit2Domain, repayToFromEvm, repayToFromParty, requestIdHash, routerDomain, settleAttestationsErrors, settleAttestationsPayload, settleAttestationsPayloadHash, settleSigs, sourceOrderHash, typeHash };
|
|
3777
|
+
export { ASYNCAPI, BPS, BUILD_HASHES, BYTECODE_HASHES, CANTON_LEG_KINDS, CANTON_OPS, CANTON_ORIGIN_ID, CANTON_PARTICIPANTS, CANTON_REGISTRY_STATES, CANTON_SOURCE_ANCHOR, CANTON_TICKET_RECEIPT_TYPES, CANTON_TRANSFER_OUTCOMES, CONTRACTS_RELEASE, DAML_NUMERIC_SCALE, DECLINE_REASONS, DEPLOYMENTS, DRAND_QUICKNET, DRAW_CLOSED_BY, EIP2294_MAX_CHAIN_ID, ERROR_CODES, ERROR_HTTP_STATUS, EXEMPT_REASONS, EXPIRED_RESULTS, FEE_CLAIM_DOMAIN_NAME, FEE_CLAIM_DOMAIN_VERSION, FEE_CLAIM_TYPES, FILLER_AUTH_TYPES, FILLER_CLOSE_CODES, FILLER_GATEWAYS, FILLER_ID_PATTERN, FILLER_KEY_REGISTRATION_TYPES, FILLER_MESSAGE_TYPES, FILLER_PROTOCOL_DOMAIN, FILLER_QUOTE_TYPES, FILLER_UPGRADE_REFUSALS, FILLER_WS_BEARER_PREFIX, FILLER_WS_SUBPROTOCOL, FILL_PROOF_DOMAIN, FILL_PROOF_TYPES, FILL_PROOF_TYPE_STRING, FILL_TICKET_DOMAIN, FILL_TICKET_TYPES, GATEWAY_MESSAGE_TYPES, GRACE, INSTRUMENT_LABEL_TAG, MAX_FEE_BPS, MAX_FILL_TTL, MAX_PROOF_WINDOW, MAX_SIG_TTL, MESSAGE_DIRECTIONS, MIN_FILL_TTL, ORDER_TYPES, OWNER_LABEL_TAG, PENALTY_STEPS, PERMIT2_ADDRESS, PERMIT2_WITNESS_TYPE_STRING, PERMIT_WITNESS_TYPES, PROOF_KIND_ATTESTATION, PROTOCOL_SCHEMAS, PROTOCOL_VERSION, QUOTE_ACK_STATUSES, QUOTE_FINAL_STATUSES, QUOTE_TYPES, REST_ENDPOINTS, REST_ONLY_TYPES, SCHEMA_VOCABULARY, SET_DELAY, STAKE_BINDING_TYPES, TICKET_INTENT_TYPES, TICKET_LIST_STATUSES, TICKET_RECEIPT_TYPES, TICKET_REFUSED_REASONS, buildCantonSourceOrder, cantonInclusiveFeeSplit, cantonNetworkOfDestination, cantonSigEntries, cantonTicketReceipt, deliveryOrderCidHash, deploymentOf, describeRevert, drawValue, drawWinner, encodeCantonAmount, encodeCantonDestination, encodeCantonOutputAsset, encodeCantonRecipient, encodeType, evmAddressFromRepayTo, feeClaimDomain, fillProofDomain, fillerEnvelopeError, fillerIdHash, fillerMessageBodyHash, fillerWsProtocols, firstRoundAtOrAfter, gatewayBodyHash, hashCantonTicketReceipt, hashDomain, hashFillProof, hashFillTicket, hashFillerKeyRegistration, hashFillerMessage, hashFillerQuote, hashOrder, hashPermitWitness, hashStruct, hashTicketIntent, hashTypedData, inclusiveFeeSplit, isCantonOriginId, isCantonSource, isEoaSignature, isEvmRepayTo, jcs, messageIdRetainUntil, messageSchemaRef, permit2Domain, repayToFromEvm, repayToFromParty, requestIdHash, routerDomain, settleAttestationsErrors, settleAttestationsPayload, settleAttestationsPayloadHash, settleSigs, sourceOrderHash, typeHash };
|
|
3009
3778
|
//# sourceMappingURL=index.js.map
|
|
3010
3779
|
//# sourceMappingURL=index.js.map
|