@eco-foundation/api-schemas 0.9.0 → 0.11.0

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 CHANGED
@@ -5,7 +5,7 @@ API. The Zod schemas are the source of truth; everything else (OpenAPI, fixtures
5
5
  is generated from or gated against them.
6
6
 
7
7
  Today the package covers **13 endpoints across 12 paths**, **39 error codes** (51 namespaced
8
- legacy references), and **19 golden fixtures**.
8
+ legacy references), and **21 golden fixtures**.
9
9
 
10
10
  ## Install
11
11
 
@@ -14,13 +14,13 @@ While the package is 0.x, pin the patch range or the exact version:
14
14
  ```json
15
15
  {
16
16
  "dependencies": {
17
- "@eco-foundation/api-schemas": "~0.9.0"
17
+ "@eco-foundation/api-schemas": "~0.10.0"
18
18
  }
19
19
  }
20
20
  ```
21
21
 
22
22
  **Never write `^0`.** npm resolves `^0.x` as `>=0.0.0 <1.0.0`, so it silently accepts every
23
- future breaking `0.y` — it is not a pin at all. Use `~0.9.0` or the exact `0.9.0`.
23
+ future breaking `0.y` — it is not a pin at all. Use `~0.10.0` or the exact `0.10.0`.
24
24
 
25
25
  A matching version string is not evidence of a matching artifact: also compare
26
26
  `V1_SCHEMA_DIGEST` (see [Invariants](#invariants-enforced-in-ci)). Two builds both called
@@ -30,6 +30,99 @@ A matching version string is not evidence of a matching artifact: also compare
30
30
  zod-bearing entry point. Which case you are in is decided entirely by your imports; see
31
31
  [Consumers](#consumers).
32
32
 
33
+ ## Migrating 0.10.0 -> 0.11.0
34
+
35
+ **BREAKING under 0.x semver** (breaking bumps the minor while the major is 0). One new fee
36
+ type, `cctp`, so the Circle CCTP fast-transfer fee a stitched quote forwards as the burn
37
+ `maxFee` is never reported under `gateway`, which is the Circle Gateway (unified-balance mint)
38
+ fee — two different Circle products. No request change; no response SHAPE change. Item 1 is the
39
+ breaking item: read it before bumping.
40
+
41
+ **`V1_SCHEMA_DIGEST` MOVES** to
42
+ `fc94f96a47a3de78249612d0472f3a91cc8217ba4829b2c5422f0baf87cf7fc6`; it was
43
+ `fa55e655ef48bbc69a551e263c1bf80cc91e8b920f9f98c29cf9b62b01a53be9` on `0.10.0`. Every consumer
44
+ running `assertNoSkew` moves in the same rollout.
45
+
46
+ **1. `FEE_TYPES` gains `'cctp'`**; `FeeType`, `FeeTypeTolerant` and the zod-free `V1FeeType`
47
+ follow, so `FeeSchema.type` / `V1Fee.type` may carry the new literal. A 0.10.x reader parsing a
48
+ response fee with the strict `FeeType` REJECTS it; one on `FeeTypeTolerant` receives
49
+ `{ unknown: 'cctp' }` and keeps working; a reader that needs the literal bumps to `~0.11.0`.
50
+ This is the breaking item. The router validates every solver fee through the strict schema and
51
+ DROPS an unparseable one, so a router still on `~0.10.0` publishes a stitched quote WITHOUT its
52
+ CCTP fee row and under-reports the charge — roll the router before any solver emits `cctp`.
53
+
54
+ **2. What each Circle type means**, now published on `FeeSchema.type`'s description: `gateway`
55
+ is the Circle Gateway fee (per-domain base plus bps) on Gateway-funded routes; `cctp` is the
56
+ Circle CCTP fast-transfer fee, bps of the burn amount, that a stitched quote forwards VERBATIM as
57
+ the `depositForBurn` `maxFee` — so it equals that argument in the route bytes and a consumer can
58
+ cross-check the two. It is a ceiling (Circle's realized charge can only come in lower), so the
59
+ producer marks it `estimate: true`; the partner margin beside it (`protocol`) is exact and
60
+ `estimate: false`. The other three types are unchanged.
61
+
62
+ **3. Consumers** pin `~0.11.0` (never `^0`) and re-run `assertNoSkew`. `errors/catalog.lock.json`
63
+ is unchanged (no new error code). `openapi/v1.json` is regenerated (the fee `type` enum plus its
64
+ new description). No golden fixture changes.
65
+
66
+ ## Migrating 0.9.0 -> 0.10.0
67
+
68
+ **BREAKING under 0.x semver** (breaking bumps the minor while the major is 0). One new quote
69
+ type, `gateway-deposit`, for the Circle Gateway fast-deposit route the deposit-addresses
70
+ service requests through `POST /v1/quotes`. No response SHAPE change; one response-refinement
71
+ carve-out (item 3). Item 1 is the breaking item: read it before bumping.
72
+
73
+ **`V1_SCHEMA_DIGEST` MOVES** to
74
+ `fa55e655ef48bbc69a551e263c1bf80cc91e8b920f9f98c29cf9b62b01a53be9`; it was
75
+ `bedfc6091a9af25adf1823740b6761f97bcb1927565bc3f226490bb2facda514` on `0.9.0`. Every consumer
76
+ running `assertNoSkew` moves in the same rollout.
77
+
78
+ **1. `QUOTE_TYPES` gains `'gateway-deposit'`**; `QuoteType`, `QuoteTypeTolerant` and the
79
+ zod-free `V1QuoteType` follow, so `QuoteCoreSchema.type` / `V1QuoteCore.type` echo the new
80
+ literal. A 0.9.x reader parsing response `type` with the strict `QuoteType` REJECTS it; one on
81
+ `QuoteTypeTolerant` receives `{ unknown: 'gateway-deposit' }` and keeps working; a reader that
82
+ needs the literal bumps to `~0.10.0`. The draft `/v1/routes` `swapTypes` enum widens too. This
83
+ is the breaking item.
84
+
85
+ **2. Request rules for `type: 'gateway-deposit'`**: three are in `QuoteRequestSchema`'s
86
+ refinement, 400 at the named path — `source.amount` REQUIRED (`gateway-deposit requires
87
+ source.amount`); `destination.amount` REJECTED (`gateway-deposit forbids destination.amount
88
+ (the engine derives it)`); `destination.calls` REJECTED (the existing `destination.calls is
89
+ only valid with type custom (D7)`, literal unchanged). `destination.recipient` REQUIRED (a
90
+ base-schema field, required on every type since 0.9.0; for this type it is the final Gateway
91
+ recipient on the destination chain). `exact-in` and `custom` continue to ACCEPT a
92
+ `destination.amount` (the router drops it); generalising the forbid is out of scope. The
93
+ per-type rule is published on the field: `destination.amount` now carries the description
94
+ `Required for exact-out. Rejected for gateway-deposit (the engine derives it). Not read for
95
+ exact-in or custom.`, and `type` carries a description of the route. Solver preconditions
96
+ (stated there, not as an error code): the destination must be an EVM chain for which the solvers
97
+ hold a Circle Gateway wallet configuration (HyperCore destinations are refused) and
98
+ `source.token` should be the source chain's USDC — any other token is priced only through the
99
+ solvers' stitched swap ladder and may be refused. A fleet-wide refusal reaches the caller as 502
100
+ `solver-error` with the solver texts in `solverErrors[]`, not as 422 `no-route-found`.
101
+
102
+ **3. `refineQuoteCore`'s sweep-4 ordering (`reward.deadline > route.deadline`) is NOT applied
103
+ when `type === 'gateway-deposit'`** — on the envelope and on every `quotes[]` entry alike. The
104
+ solver's STITCHED Gateway-deposit template inverts the ordering on both legs by design (reward
105
+ window 3600 s so refund eligibility opens early; route deadline 604800 s so fulfilment stays
106
+ retryable); the DIRECT shape keeps the usual ordering. Both deadlines stay `UnixSeconds`. Every
107
+ other type is unchanged and still strict; the carve-out is keyed on the type literal, never on a
108
+ same-chain or stitched predicate.
109
+
110
+ **4. Response shape** for the type depends on the winning solver's destination balance, not on
111
+ its role: DIRECT (one cross-chain intent, `execution.intent.route.destination ===
112
+ destination.chainId`, `route.portal` = the destination-chain Portal) or two-leg STITCHED
113
+ (`execution.intent` = leg A, a same-chain local intent on the source chain that the funder
114
+ funds; `steps[].intents[]` carries leg C with role `stitched-destination`). Consumers must
115
+ accept both. `expiresAt` is NOT the route deadline — read `execution.intent.route.deadline`.
116
+ `execution.encodedRoute` remains absent (0.9.0 item 8 stands); re-encode from
117
+ `execution.intent.route` when bytes are needed.
118
+
119
+ **5. Consumers** pin `~0.10.0` (never `^0`) and re-run `assertNoSkew`. `errors/catalog.lock.json`
120
+ is unchanged (no new error code — `no-route-found` and `invalid-api-key` already exist).
121
+ `openapi/v1.json` is regenerated (the `type` enum plus the two descriptions). Two golden
122
+ fixtures added — `quotes.create:request:gateway-deposit` and
123
+ `quotes.create:response:gateway-deposit` (the producer's stitched shape with inverted
124
+ deadlines on both legs) — for 21 in total; both are in the §5 mandatory list.
125
+
33
126
  ## Migrating 0.8.0 -> 0.9.0
34
127
 
35
128
  **BREAKING under 0.x semver** (breaking bumps the minor while the major is 0). Eleven wire
@@ -937,7 +1030,7 @@ Zod-major compatibility is the reason there are two interfaces, not one:
937
1030
 
938
1031
  There are two fixture locations and they serve different jobs — do not conflate them:
939
1032
 
940
- - **`src/fixtures/v1/`** — the 19 golden request/response payloads, one per endpoint variant,
1033
+ - **`src/fixtures/v1/`** — the 21 golden request/response payloads, one per endpoint variant,
941
1034
  consumed through **`loadV1Fixtures()`** rather than by file path. Each entry carries its
942
1035
  endpoint id, direction, variant, and the C12 replay metadata (`method`, `path`,
943
1036
  `expectedStatus`, `sideEffect`, optional `stability` and `headers`), so a live-replay harness
@@ -1057,7 +1150,7 @@ already staged cannot be staged again, so a re-tag of a queued version fails unt
1057
1150
  one is approved or rejected.
1058
1151
 
1059
1152
  Semver: breaking schema change = major, additive = minor; consumers pin minor. **While the
1060
- package is 0.x, "pin minor" means `~0.8.0` or the exact `0.8.0` — never `^0`** (see
1153
+ package is 0.x, "pin minor" means `~0.10.0` or the exact `0.10.0` — never `^0`** (see
1061
1154
  [Install](#install)). Consumers additionally compare `V1_SCHEMA_DIGEST`: a matching version
1062
1155
  string is not evidence of a matching artifact. `/v1/routes` is draft-tagged and exempt until its
1063
1156
  stability flips.
@@ -18,8 +18,10 @@ const intents_status_response_wallet_page_json_1 = __importDefault(require("./v1
18
18
  const intents_submit_erc_3009_response_job_json_1 = __importDefault(require("./v1/intents-submit-erc-3009.response.job.json"));
19
19
  const intents_submit_permit2_request_quote_target_json_1 = __importDefault(require("./v1/intents-submit-permit2.request.quote-target.json"));
20
20
  const intents_submit_permit3_request_quote_target_json_1 = __importDefault(require("./v1/intents-submit-permit3.request.quote-target.json"));
21
+ const quotes_create_request_gateway_deposit_json_1 = __importDefault(require("./v1/quotes-create.request.gateway-deposit.json"));
21
22
  const quotes_create_request_swap_json_1 = __importDefault(require("./v1/quotes-create.request.swap.json"));
22
23
  const quotes_create_response_all_quotes_json_1 = __importDefault(require("./v1/quotes-create.response.all-quotes.json"));
24
+ const quotes_create_response_gateway_deposit_json_1 = __importDefault(require("./v1/quotes-create.response.gateway-deposit.json"));
23
25
  const quotes_create_response_swap_json_1 = __importDefault(require("./v1/quotes-create.response.swap.json"));
24
26
  const routes_list_response_default_json_1 = __importDefault(require("./v1/routes-list.response.default.json"));
25
27
  const tokens_list_response_default_json_1 = __importDefault(require("./v1/tokens-list.response.default.json"));
@@ -28,6 +30,8 @@ const FIXTURE_BINDINGS = [
28
30
  bind('quotes.create', 'request', 'swap', quotes_create_request_swap_json_1.default),
29
31
  bind('quotes.create', 'response', 'swap', quotes_create_response_swap_json_1.default),
30
32
  bind('quotes.create', 'response', 'all-quotes', quotes_create_response_all_quotes_json_1.default),
33
+ bind('quotes.create', 'request', 'gateway-deposit', quotes_create_request_gateway_deposit_json_1.default),
34
+ bind('quotes.create', 'response', 'gateway-deposit', quotes_create_response_gateway_deposit_json_1.default),
31
35
  bind('intents.submit.erc-3009', 'response', 'job', intents_submit_erc_3009_response_job_json_1.default),
32
36
  bind('intents.submit.permit2', 'request', 'quote-target', intents_submit_permit2_request_quote_target_json_1.default),
33
37
  bind('intents.submit.permit3', 'request', 'quote-target', intents_submit_permit3_request_quote_target_json_1.default),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fixtures/index.ts"],"names":[],"mappings":";;;;;;AACA,+GAAgE;AAChE,mJAAuF;AACvF,qJAAyF;AACzF,yIAA2E;AAC3E,uLAAsG;AACtG,uLAAsG;AACtG,qIAA8E;AAC9E,iIAA2E;AAC3E,6IAAsF;AACtF,qHAAsE;AACtE,6HAAuE;AACvE,+HAA2E;AAC3E,6IAAkF;AAClF,6IAAkF;AAClF,2GAAiE;AACjE,yHAA0E;AAC1E,6GAAmE;AACnE,+GAAgE;AAChE,+GAAgE;AA0ChE,MAAM,IAAI,GAAG,CACX,UAAwB,EACxB,SAAiC,EACjC,OAAe,EACf,IAAa,EACb,OAA+E,EAAE,EACjF,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AAezD,MAAM,gBAAgB,GAAG;IACvB,IAAI,CAAC,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,yCAAa,CAAC;IACvD,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,MAAM,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AAO,EAChC,CAAC;QACD,MAAM,IAAI,KAAK,CACb,wDAAwD;YACtD,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,cAAc;YAC3E,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CACjF,CAAC;IACJ,CAAC;IAMD,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,IAAI,QAAQ,CAAC;IACxD,MAAM,aAAa,GAAI,IAAI,CAAC,SAAoC,IAAI,QAAQ,CAAC;IAC7E,IAAI,aAAa,KAAK,iBAAiB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CACb,mDAAmD;YACjD,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,iBAAiB;YAC9E,GAAG,iBAAiB,eAAe,aAAa,EAAE,CACrD,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,KAAK,CACb,kDAAkD;YAChD,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAClE,CAAC;IACJ,CAAC;IACD,OAAO,IAA4B,CAAC;AACtC,CAAC;AAEY,QAAA,WAAW,GAAyB,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ {
2
+ "endpointId": "quotes.create",
3
+ "direction": "request",
4
+ "variant": "gateway-deposit",
5
+ "method": "POST",
6
+ "path": "/v1/quotes",
7
+ "expectedStatus": 200,
8
+ "sideEffect": true,
9
+ "payload": {
10
+ "type": "gateway-deposit",
11
+ "source": {
12
+ "chainId": 8453,
13
+ "token": "0x1111111111111111111111111111111111111111",
14
+ "amount": "1043221",
15
+ "funder": "0x3333333333333333333333333333333333333333"
16
+ },
17
+ "destination": {
18
+ "chainId": 10,
19
+ "token": "0x2222222222222222222222222222222222222222",
20
+ "recipient": "0x3333333333333333333333333333333333333333"
21
+ },
22
+ "refundRecipient": "0x3333333333333333333333333333333333333333",
23
+ "dappId": "example-dapp"
24
+ }
25
+ }
@@ -0,0 +1,206 @@
1
+ {
2
+ "endpointId": "quotes.create",
3
+ "direction": "response",
4
+ "variant": "gateway-deposit",
5
+ "method": "POST",
6
+ "path": "/v1/quotes",
7
+ "expectedStatus": 200,
8
+ "sideEffect": true,
9
+ "payload": {
10
+ "id": "quote:8f14e45f-ea3c-4c2d-9b6e-1a2b3c4d5e6f",
11
+ "type": "gateway-deposit",
12
+ "source": {
13
+ "chainId": 8453,
14
+ "token": "0x1111111111111111111111111111111111111111",
15
+ "amount": "1043221",
16
+ "funder": "0x3333333333333333333333333333333333333333",
17
+ "symbol": "USDC",
18
+ "decimals": 6
19
+ },
20
+ "destination": {
21
+ "chainId": 10,
22
+ "token": "0x2222222222222222222222222222222222222222",
23
+ "amountOut": "1013221",
24
+ "minAmountOut": "1013221",
25
+ "recipient": "0x3333333333333333333333333333333333333333",
26
+ "symbol": "USDC",
27
+ "decimals": 6
28
+ },
29
+ "slippage": 0,
30
+ "fees": [
31
+ {
32
+ "type": "protocol",
33
+ "amount": "30000",
34
+ "token": {
35
+ "chainId": 8453,
36
+ "address": "0x1111111111111111111111111111111111111111",
37
+ "symbol": "USDC",
38
+ "decimals": 6
39
+ },
40
+ "estimate": false
41
+ },
42
+ {
43
+ "type": "gateway",
44
+ "amount": "0",
45
+ "token": {
46
+ "chainId": 10,
47
+ "address": "0x2222222222222222222222222222222222222222",
48
+ "symbol": "USDC",
49
+ "decimals": 6
50
+ },
51
+ "estimate": true
52
+ }
53
+ ],
54
+ "steps": [
55
+ {
56
+ "type": "bridge",
57
+ "provider": "eco",
58
+ "from": {
59
+ "chainId": 8453,
60
+ "token": "0x1111111111111111111111111111111111111111",
61
+ "amount": "1043221"
62
+ },
63
+ "to": {
64
+ "chainId": 10,
65
+ "token": "0x2222222222222222222222222222222222222222",
66
+ "amount": "1013221"
67
+ },
68
+ "fees": [],
69
+ "estimatedDurationSec": 60,
70
+ "intents": [
71
+ {
72
+ "role": "local",
73
+ "intentHash": "0xabababababababababababababababababababababababababababababababab",
74
+ "intent": {
75
+ "route": {
76
+ "salt": "0xabababababababababababababababababababababababababababababababab",
77
+ "deadline": 1767830400,
78
+ "source": 8453,
79
+ "destination": 8453,
80
+ "portal": "0x2222222222222222222222222222222222222222",
81
+ "nativeAmount": "0",
82
+ "tokens": [
83
+ {
84
+ "token": "0x1111111111111111111111111111111111111111",
85
+ "amount": "1043221"
86
+ }
87
+ ],
88
+ "calls": [
89
+ {
90
+ "target": "0x1111111111111111111111111111111111111111",
91
+ "data": "0xbeef",
92
+ "value": "0"
93
+ }
94
+ ]
95
+ },
96
+ "reward": {
97
+ "deadline": 1767229200,
98
+ "creator": "0x3333333333333333333333333333333333333333",
99
+ "prover": "0x1111111111111111111111111111111111111111",
100
+ "nativeAmount": "0",
101
+ "tokens": [
102
+ {
103
+ "token": "0x1111111111111111111111111111111111111111",
104
+ "amount": "1043221"
105
+ }
106
+ ]
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "role": "stitched-destination",
112
+ "intentHash": "0x1212121212121212121212121212121212121212121212121212121212121212",
113
+ "intent": {
114
+ "route": {
115
+ "salt": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
116
+ "deadline": 1767830400,
117
+ "source": 10,
118
+ "destination": 10,
119
+ "portal": "0x4444444444444444444444444444444444444444",
120
+ "nativeAmount": "0",
121
+ "tokens": [
122
+ {
123
+ "token": "0x2222222222222222222222222222222222222222",
124
+ "amount": "1013221"
125
+ }
126
+ ],
127
+ "calls": [
128
+ {
129
+ "target": "0x2222222222222222222222222222222222222222",
130
+ "data": "0xbeef",
131
+ "value": "0"
132
+ }
133
+ ]
134
+ },
135
+ "reward": {
136
+ "deadline": 1767229200,
137
+ "creator": "0x1111111111111111111111111111111111111111",
138
+ "prover": "0x1111111111111111111111111111111111111111",
139
+ "nativeAmount": "0",
140
+ "tokens": [
141
+ {
142
+ "token": "0x2222222222222222222222222222222222222222",
143
+ "amount": "1013221"
144
+ }
145
+ ]
146
+ }
147
+ }
148
+ }
149
+ ]
150
+ }
151
+ ],
152
+ "solver": {
153
+ "id": "0x3333333333333333333333333333333333333333",
154
+ "name": "eco"
155
+ },
156
+ "intentHash": "0xabababababababababababababababababababababababababababababababab",
157
+ "execution": {
158
+ "transaction": {
159
+ "type": "evm",
160
+ "chainId": 8453,
161
+ "to": "0x2222222222222222222222222222222222222222",
162
+ "data": "0xdeadbeef",
163
+ "value": "0"
164
+ },
165
+ "intent": {
166
+ "route": {
167
+ "salt": "0xabababababababababababababababababababababababababababababababab",
168
+ "deadline": 1767830400,
169
+ "source": 8453,
170
+ "destination": 8453,
171
+ "portal": "0x2222222222222222222222222222222222222222",
172
+ "nativeAmount": "0",
173
+ "tokens": [
174
+ {
175
+ "token": "0x1111111111111111111111111111111111111111",
176
+ "amount": "1043221"
177
+ }
178
+ ],
179
+ "calls": [
180
+ {
181
+ "target": "0x1111111111111111111111111111111111111111",
182
+ "data": "0xbeef",
183
+ "value": "0"
184
+ }
185
+ ]
186
+ },
187
+ "reward": {
188
+ "deadline": 1767229200,
189
+ "creator": "0x3333333333333333333333333333333333333333",
190
+ "prover": "0x1111111111111111111111111111111111111111",
191
+ "nativeAmount": "0",
192
+ "tokens": [
193
+ {
194
+ "token": "0x1111111111111111111111111111111111111111",
195
+ "amount": "1043221"
196
+ }
197
+ ]
198
+ }
199
+ },
200
+ "vault": "0x5555555555555555555555555555555555555555"
201
+ },
202
+ "expiresAt": 1767225600,
203
+ "signature": "0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
204
+ "quotes": null
205
+ }
206
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "digest": "bedfc6091a9af25adf1823740b6761f97bcb1927565bc3f226490bb2facda514",
2
+ "digest": "fc94f96a47a3de78249612d0472f3a91cc8217ba4829b2c5422f0baf87cf7fc6",
3
3
  "inputs": [
4
4
  "errors/catalog.lock.json",
5
5
  "openapi/v1.json"
@@ -13,6 +13,7 @@ export declare const QuoteRequestSchema: z.ZodObject<{
13
13
  custom: "custom";
14
14
  "exact-in": "exact-in";
15
15
  "exact-out": "exact-out";
16
+ "gateway-deposit": "gateway-deposit";
16
17
  }>;
17
18
  source: z.ZodObject<{
18
19
  chainId: z.ZodNumber;
@@ -54,6 +55,7 @@ export declare const FeeSchema: z.ZodObject<{
54
55
  proving: "proving";
55
56
  protocol: "protocol";
56
57
  gateway: "gateway";
58
+ cctp: "cctp";
57
59
  }>;
58
60
  amount: z.ZodString;
59
61
  token: z.ZodObject<{
@@ -228,6 +230,7 @@ export declare const StepSchema: z.ZodObject<{
228
230
  proving: "proving";
229
231
  protocol: "protocol";
230
232
  gateway: "gateway";
233
+ cctp: "cctp";
231
234
  }>;
232
235
  amount: z.ZodString;
233
236
  token: z.ZodObject<{
@@ -337,6 +340,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
337
340
  custom: "custom";
338
341
  "exact-in": "exact-in";
339
342
  "exact-out": "exact-out";
343
+ "gateway-deposit": "gateway-deposit";
340
344
  }>;
341
345
  source: z.ZodObject<{
342
346
  chainId: z.ZodNumber;
@@ -362,6 +366,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
362
366
  proving: "proving";
363
367
  protocol: "protocol";
364
368
  gateway: "gateway";
369
+ cctp: "cctp";
365
370
  }>;
366
371
  amount: z.ZodString;
367
372
  token: z.ZodObject<{
@@ -397,6 +402,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
397
402
  proving: "proving";
398
403
  protocol: "protocol";
399
404
  gateway: "gateway";
405
+ cctp: "cctp";
400
406
  }>;
401
407
  amount: z.ZodString;
402
408
  token: z.ZodObject<{
@@ -522,6 +528,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
522
528
  custom: "custom";
523
529
  "exact-in": "exact-in";
524
530
  "exact-out": "exact-out";
531
+ "gateway-deposit": "gateway-deposit";
525
532
  }>;
526
533
  source: z.ZodObject<{
527
534
  chainId: z.ZodNumber;
@@ -547,6 +554,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
547
554
  proving: "proving";
548
555
  protocol: "protocol";
549
556
  gateway: "gateway";
557
+ cctp: "cctp";
550
558
  }>;
551
559
  amount: z.ZodString;
552
560
  token: z.ZodObject<{
@@ -582,6 +590,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
582
590
  proving: "proving";
583
591
  protocol: "protocol";
584
592
  gateway: "gateway";
593
+ cctp: "cctp";
585
594
  }>;
586
595
  amount: z.ZodString;
587
596
  token: z.ZodObject<{
@@ -700,6 +709,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
700
709
  custom: "custom";
701
710
  "exact-in": "exact-in";
702
711
  "exact-out": "exact-out";
712
+ "gateway-deposit": "gateway-deposit";
703
713
  }>;
704
714
  source: z.ZodObject<{
705
715
  chainId: z.ZodNumber;
@@ -725,6 +735,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
725
735
  proving: "proving";
726
736
  protocol: "protocol";
727
737
  gateway: "gateway";
738
+ cctp: "cctp";
728
739
  }>;
729
740
  amount: z.ZodString;
730
741
  token: z.ZodObject<{
@@ -760,6 +771,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
760
771
  proving: "proving";
761
772
  protocol: "protocol";
762
773
  gateway: "gateway";
774
+ cctp: "cctp";
763
775
  }>;
764
776
  amount: z.ZodString;
765
777
  token: z.ZodObject<{
@@ -876,6 +888,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
876
888
  custom: "custom";
877
889
  "exact-in": "exact-in";
878
890
  "exact-out": "exact-out";
891
+ "gateway-deposit": "gateway-deposit";
879
892
  }>;
880
893
  source: z.ZodObject<{
881
894
  chainId: z.ZodNumber;
@@ -901,6 +914,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
901
914
  proving: "proving";
902
915
  protocol: "protocol";
903
916
  gateway: "gateway";
917
+ cctp: "cctp";
904
918
  }>;
905
919
  amount: z.ZodString;
906
920
  token: z.ZodObject<{
@@ -936,6 +950,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
936
950
  proving: "proving";
937
951
  protocol: "protocol";
938
952
  gateway: "gateway";
953
+ cctp: "cctp";
939
954
  }>;
940
955
  amount: z.ZodString;
941
956
  token: z.ZodObject<{
@@ -24,9 +24,23 @@ exports.SLIPPAGE_MAX = 1;
24
24
  const SLIPPAGE_RANGE_MESSAGE = `${(0, catalog_1.getErrorDefinition)('slippage-out-of-bounds').title} (error code: slippage-out-of-bounds)`;
25
25
  const SLIPPAGE_DESCRIPTION = 'Decimal fraction of the destination amount: 0.005 = 0.5%. Range 0.0001-1; a percent-style ' +
26
26
  '0.5 would mean 50%.';
27
+ const DESTINATION_AMOUNT_DESCRIPTION = 'Required for exact-out. Rejected for gateway-deposit (the engine derives it). Not read for ' +
28
+ 'exact-in or custom.';
29
+ const QUOTE_TYPE_DESCRIPTION = 'exact-in: fixed source.amount. exact-out: fixed destination.amount. custom: exact-in with ' +
30
+ 'user-authored destination.calls. gateway-deposit: prices the Circle Gateway fast-deposit ' +
31
+ 'route (CCTP burn on the source chain, GatewayWallet.depositFor on the destination) instead ' +
32
+ 'of a plain transfer; source.amount is required, destination.amount and destination.calls ' +
33
+ 'are rejected, destination.recipient is the final Gateway recipient on the destination chain. ' +
34
+ 'The destination must be an EVM chain for which the solvers hold a Circle Gateway wallet ' +
35
+ 'configuration (HyperCore destinations are refused) and source.token should be the source ' +
36
+ "chain's USDC; any other token is priced only through the solvers' stitched swap ladder and " +
37
+ 'may be refused. The response is either one cross-chain intent (direct) or a two-leg stitched ' +
38
+ 'chain: execution.intent is the same-chain leg the funder funds and steps[].intents[] carries ' +
39
+ 'the destination leg with role stitched-destination. On the stitched shape reward.deadline is ' +
40
+ 'earlier than route.deadline on both legs; the direct shape keeps the usual ordering.';
27
41
  exports.QuoteRequestSchema = zod_1.z
28
42
  .strictObject({
29
- type: enums_1.QuoteType,
43
+ type: enums_1.QuoteType.describe(QUOTE_TYPE_DESCRIPTION),
30
44
  source: zod_1.z.strictObject({
31
45
  chainId: primitives_1.ChainId,
32
46
  token: primitives_1.AnyAddress,
@@ -36,7 +50,7 @@ exports.QuoteRequestSchema = zod_1.z
36
50
  destination: zod_1.z.strictObject({
37
51
  chainId: primitives_1.ChainId,
38
52
  token: primitives_1.AnyAddress,
39
- amount: primitives_1.PositiveUintString.optional(),
53
+ amount: primitives_1.PositiveUintString.describe(DESTINATION_AMOUNT_DESCRIPTION).optional(),
40
54
  recipient: primitives_1.AnyAddress,
41
55
  calls: zod_1.z.array(exports.DestinationCallSchema).optional(),
42
56
  }),
@@ -97,6 +111,13 @@ exports.QuoteRequestSchema = zod_1.z
97
111
  message: `${req.type} requires source.amount`,
98
112
  });
99
113
  }
114
+ if (req.type === 'gateway-deposit' && req.destination.amount !== undefined) {
115
+ ctx.addIssue({
116
+ code: 'custom',
117
+ path: ['destination', 'amount'],
118
+ message: 'gateway-deposit forbids destination.amount (the engine derives it)',
119
+ });
120
+ }
100
121
  if (!(0, primitives_1.addressFamiliesCanAgree)(req.source.funder, req.source.token)) {
101
122
  ctx.addIssue({
102
123
  code: 'custom',
@@ -111,8 +132,13 @@ exports.FeeTokenSchema = zod_1.z.looseObject({
111
132
  symbol: zod_1.z.string().nullable(),
112
133
  decimals: zod_1.z.number().int().nullable(),
113
134
  });
135
+ const FEE_TYPE_DESCRIPTION = "Fee component. 'gas' = destination execution gas; 'proving' = prover message fee; " +
136
+ "'protocol' = Eco/partner margin; 'gateway' = Circle Gateway (unified-balance mint) fee on " +
137
+ "Gateway-funded routes; 'cctp' = Circle CCTP fast-transfer fee a stitched quote forwards " +
138
+ 'verbatim as the depositForBurn maxFee (a ceiling, so estimate: true). gateway and cctp are ' +
139
+ 'different Circle products and are never reported under one another.';
114
140
  exports.FeeSchema = zod_1.z.looseObject({
115
- type: enums_1.FeeType,
141
+ type: enums_1.FeeType.describe(FEE_TYPE_DESCRIPTION),
116
142
  amount: primitives_1.UintString,
117
143
  token: exports.FeeTokenSchema,
118
144
  estimate: zod_1.z.boolean(),
@@ -269,7 +295,8 @@ function refineQuoteCore(quote, ctx) {
269
295
  'the quote signature commits to that set (F3 / N14)',
270
296
  });
271
297
  }
272
- if (exec.intent.reward.deadline <= exec.intent.route.deadline) {
298
+ if (quote.type !== 'gateway-deposit' &&
299
+ exec.intent.reward.deadline <= exec.intent.route.deadline) {
273
300
  ctx.addIssue({
274
301
  code: 'custom',
275
302
  path: ['execution', 'intent', 'reward', 'deadline'],
@@ -1 +1 @@
1
- {"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../../src/v1/endpoints/quotes.ts"],"names":[],"mappings":";;;AA6gBA,8CAQC;AA6HD,sDA4CC;AA9rBD,6BAAwB;AAExB,oCAA2E;AAC3E,+CAAuD;AACvD,+CAAkD;AAClD,8CAeuB;AAYV,QAAA,qBAAqB,GAAG,OAAC,CAAC,YAAY,CAAC;IAClD,MAAM,EAAE,uBAAU;IAClB,IAAI,EAAE,qBAAQ;IACd,KAAK,EAAE,uBAAU;IACjB,QAAQ,EAAE,uBAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,uBAAU,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAcH,MAAM,yBAAyB,GAAG,OAAC,CAAC,YAAY,CAAC;IAC/C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,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AAG,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,EAAE;QAC1E,KAAK,EAAE,6BAAqB;QAC5B,WAAW,EAAE,OAAgB;QAC7B,OAAO,EAAE;YACP,EAAE,EAAE,KAAK,CAAC,EAAE;YACZ,YAAY;YACZ,SAAS,EAAE,KAAK,CAAC,SAAS;SAC3B;KACF,CAAC;AACJ,CAAC"}
@@ -24,6 +24,7 @@ export declare const V1_ENDPOINTS: {
24
24
  custom: "custom";
25
25
  "exact-in": "exact-in";
26
26
  "exact-out": "exact-out";
27
+ "gateway-deposit": "gateway-deposit";
27
28
  }>;
28
29
  source: z.ZodObject<{
29
30
  chainId: z.ZodNumber;
@@ -58,6 +59,7 @@ export declare const V1_ENDPOINTS: {
58
59
  custom: "custom";
59
60
  "exact-in": "exact-in";
60
61
  "exact-out": "exact-out";
62
+ "gateway-deposit": "gateway-deposit";
61
63
  }>;
62
64
  source: z.ZodObject<{
63
65
  chainId: z.ZodNumber;
@@ -83,6 +85,7 @@ export declare const V1_ENDPOINTS: {
83
85
  proving: "proving";
84
86
  protocol: "protocol";
85
87
  gateway: "gateway";
88
+ cctp: "cctp";
86
89
  }>;
87
90
  amount: z.ZodString;
88
91
  token: z.ZodObject<{
@@ -118,6 +121,7 @@ export declare const V1_ENDPOINTS: {
118
121
  proving: "proving";
119
122
  protocol: "protocol";
120
123
  gateway: "gateway";
124
+ cctp: "cctp";
121
125
  }>;
122
126
  amount: z.ZodString;
123
127
  token: z.ZodObject<{
@@ -234,6 +238,7 @@ export declare const V1_ENDPOINTS: {
234
238
  custom: "custom";
235
239
  "exact-in": "exact-in";
236
240
  "exact-out": "exact-out";
241
+ "gateway-deposit": "gateway-deposit";
237
242
  }>;
238
243
  source: z.ZodObject<{
239
244
  chainId: z.ZodNumber;
@@ -259,6 +264,7 @@ export declare const V1_ENDPOINTS: {
259
264
  proving: "proving";
260
265
  protocol: "protocol";
261
266
  gateway: "gateway";
267
+ cctp: "cctp";
262
268
  }>;
263
269
  amount: z.ZodString;
264
270
  token: z.ZodObject<{
@@ -294,6 +300,7 @@ export declare const V1_ENDPOINTS: {
294
300
  proving: "proving";
295
301
  protocol: "protocol";
296
302
  gateway: "gateway";
303
+ cctp: "cctp";
297
304
  }>;
298
305
  amount: z.ZodString;
299
306
  token: z.ZodObject<{
@@ -694,6 +701,7 @@ export declare const V1_ENDPOINTS: {
694
701
  custom: "custom";
695
702
  "exact-in": "exact-in";
696
703
  "exact-out": "exact-out";
704
+ "gateway-deposit": "gateway-deposit";
697
705
  }>>;
698
706
  }, z.core.$loose>>;
699
707
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -13,6 +13,7 @@ export declare const RouteEntrySchema: z.ZodObject<{
13
13
  custom: "custom";
14
14
  "exact-in": "exact-in";
15
15
  "exact-out": "exact-out";
16
+ "gateway-deposit": "gateway-deposit";
16
17
  }>>;
17
18
  }, z.core.$loose>;
18
19
  export declare const RoutesResponseSchema: z.ZodObject<{
@@ -29,6 +30,7 @@ export declare const RoutesResponseSchema: z.ZodObject<{
29
30
  custom: "custom";
30
31
  "exact-in": "exact-in";
31
32
  "exact-out": "exact-out";
33
+ "gateway-deposit": "gateway-deposit";
32
34
  }>>;
33
35
  }, z.core.$loose>>;
34
36
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -1,30 +1,34 @@
1
1
  import { z } from 'zod';
2
- export declare const QUOTE_TYPES: readonly ["exact-in", "exact-out", "custom"];
2
+ export declare const QUOTE_TYPES: readonly ["exact-in", "exact-out", "custom", "gateway-deposit"];
3
3
  export declare const QuoteType: z.ZodEnum<{
4
4
  custom: "custom";
5
5
  "exact-in": "exact-in";
6
6
  "exact-out": "exact-out";
7
+ "gateway-deposit": "gateway-deposit";
7
8
  }>;
8
9
  export declare const QuoteTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
9
10
  custom: "custom";
10
11
  "exact-in": "exact-in";
11
12
  "exact-out": "exact-out";
13
+ "gateway-deposit": "gateway-deposit";
12
14
  }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
13
15
  unknown: string;
14
16
  }, string>>]>;
15
17
  export type QuoteType = z.infer<typeof QuoteType>;
16
- export declare const FEE_TYPES: readonly ["gas", "proving", "protocol", "gateway"];
18
+ export declare const FEE_TYPES: readonly ["gas", "proving", "protocol", "gateway", "cctp"];
17
19
  export declare const FeeType: z.ZodEnum<{
18
20
  gas: "gas";
19
21
  proving: "proving";
20
22
  protocol: "protocol";
21
23
  gateway: "gateway";
24
+ cctp: "cctp";
22
25
  }>;
23
26
  export declare const FeeTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
24
27
  gas: "gas";
25
28
  proving: "proving";
26
29
  protocol: "protocol";
27
30
  gateway: "gateway";
31
+ cctp: "cctp";
28
32
  }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
29
33
  unknown: string;
30
34
  }, string>>]>;
package/dist/v1/enums.js CHANGED
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.STATUS_VOCABULARY = exports.GaslessSubState = exports.GASLESS_SUB_STATES = exports.GASLESS_JOB_STATUSES = exports.StatusType = exports.STATUS_TYPES = exports.STANDARDS_BY_TARGET = exports.SubmitStandard = exports.SUBMIT_STANDARDS = exports.StepTypeTolerant = exports.StepType = exports.STEP_TYPES = exports.RelatedIntentRoleTolerant = exports.RelatedIntentRole = exports.RELATED_INTENT_ROLES = exports.ChainStatus = exports.CHAIN_STATUSES = exports.ChainEncoding = exports.CHAIN_ENCODINGS = exports.ChainType = exports.CHAIN_TYPES = exports.FeeTypeTolerant = exports.FeeType = exports.FEE_TYPES = exports.QuoteTypeTolerant = exports.QuoteType = exports.QUOTE_TYPES = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("./primitives");
6
- exports.QUOTE_TYPES = ['exact-in', 'exact-out', 'custom'];
6
+ exports.QUOTE_TYPES = ['exact-in', 'exact-out', 'custom', 'gateway-deposit'];
7
7
  exports.QuoteType = zod_1.z.enum(exports.QUOTE_TYPES);
8
8
  exports.QuoteTypeTolerant = (0, primitives_1.tolerantEnum)(exports.QUOTE_TYPES);
9
- exports.FEE_TYPES = ['gas', 'proving', 'protocol', 'gateway'];
9
+ exports.FEE_TYPES = ['gas', 'proving', 'protocol', 'gateway', 'cctp'];
10
10
  exports.FeeType = zod_1.z.enum(exports.FEE_TYPES);
11
11
  exports.FeeTypeTolerant = (0, primitives_1.tolerantEnum)(exports.FEE_TYPES);
12
12
  exports.CHAIN_TYPES = ['evm', 'svm', 'tvm'];
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/v1/enums.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6CAA4C;AAE/B,QAAA,WAAW,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAC3D,QAAA,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAW,CAAC,CAAC;AAChC,QAAA,iBAAiB,GAAG,IAAA,yBAAY,EAAC,mBAAW,CAAC,CAAC;AAI9C,QAAA,SAAS,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,CAAU,CAAC;AAC/D,QAAA,OAAO,GAAG,OAAC,CAAC,IAAI,CAAC,iBAAS,CAAC,CAAC;AAC5B,QAAA,eAAe,GAAG,IAAA,yBAAY,EAAC,iBAAS,CAAC,CAAC;AAG1C,QAAA,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAC7C,QAAA,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAW,CAAC,CAAC;AAGhC,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,OAAO,CAAU,CAAC;AAC5C,QAAA,aAAa,GAAG,OAAC,CAAC,IAAI,CAAC,uBAAe,CAAC,CAAC;AAIxC,QAAA,cAAc,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAU,CAAC;AAC7C,QAAA,WAAW,GAAG,OAAC,CAAC,IAA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;QACT,QAAQ;QACR,SAAS;QACT,UAAU;QACV,YAAY;QACZ,SAAS;QACT,QAAQ;QACR,SAAS;KACV;IAOD,KAAK,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;IACpD,OAAO,EAAE,4BAAoB;IAM7B,iBAAiB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;CACkC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export type { LegacyCodeRef, V1ErrorCode, V1ErrorDefinition } from './errors/catalog';
2
- export type V1QuoteType = 'exact-in' | 'exact-out' | 'custom';
3
- export type V1FeeType = 'gas' | 'proving' | 'protocol' | 'gateway';
2
+ export type V1QuoteType = 'exact-in' | 'exact-out' | 'custom' | 'gateway-deposit';
3
+ export type V1FeeType = 'gas' | 'proving' | 'protocol' | 'gateway' | 'cctp';
4
4
  export type V1ChainType = 'evm' | 'svm' | 'tvm';
5
5
  export type V1RelatedIntentRole = 'local' | 'bucket-candidate' | 'stitched-destination';
6
6
  export type V1StepType = 'swap' | 'bridge' | 'deposit' | 'transfer';
package/openapi/v1.json CHANGED
@@ -47,8 +47,10 @@
47
47
  "enum": [
48
48
  "exact-in",
49
49
  "exact-out",
50
- "custom"
51
- ]
50
+ "custom",
51
+ "gateway-deposit"
52
+ ],
53
+ "description": "exact-in: fixed source.amount. exact-out: fixed destination.amount. custom: exact-in with user-authored destination.calls. gateway-deposit: prices the Circle Gateway fast-deposit route (CCTP burn on the source chain, GatewayWallet.depositFor on the destination) instead of a plain transfer; source.amount is required, destination.amount and destination.calls are rejected, destination.recipient is the final Gateway recipient on the destination chain. The destination must be an EVM chain for which the solvers hold a Circle Gateway wallet configuration (HyperCore destinations are refused) and source.token should be the source chain's USDC; any other token is priced only through the solvers' stitched swap ladder and may be refused. The response is either one cross-chain intent (direct) or a two-leg stitched chain: execution.intent is the same-chain leg the funder funds and steps[].intents[] carries the destination leg with role stitched-destination. On the stitched shape reward.deadline is earlier than route.deadline on both legs; the direct shape keeps the usual ordering."
52
54
  },
53
55
  "source": {
54
56
  "type": "object",
@@ -156,7 +158,7 @@
156
158
  "type": "string",
157
159
  "maxLength": 78,
158
160
  "pattern": "^(0|[1-9]\\d*)$",
159
- "description": "Base-10 unsigned integer string in smallest units; must be greater than 0"
161
+ "description": "Required for exact-out. Rejected for gateway-deposit (the engine derives it). Not read for exact-in or custom."
160
162
  },
161
163
  "recipient": {
162
164
  "anyOf": [
@@ -344,7 +346,8 @@
344
346
  "enum": [
345
347
  "exact-in",
346
348
  "exact-out",
347
- "custom"
349
+ "custom",
350
+ "gateway-deposit"
348
351
  ]
349
352
  },
350
353
  "source": {
@@ -562,8 +565,10 @@
562
565
  "gas",
563
566
  "proving",
564
567
  "protocol",
565
- "gateway"
566
- ]
568
+ "gateway",
569
+ "cctp"
570
+ ],
571
+ "description": "Fee component. 'gas' = destination execution gas; 'proving' = prover message fee; 'protocol' = Eco/partner margin; 'gateway' = Circle Gateway (unified-balance mint) fee on Gateway-funded routes; 'cctp' = Circle CCTP fast-transfer fee a stitched quote forwards verbatim as the depositForBurn maxFee (a ceiling, so estimate: true). gateway and cctp are different Circle products and are never reported under one another."
567
572
  },
568
573
  "amount": {
569
574
  "type": "string",
@@ -765,8 +770,10 @@
765
770
  "gas",
766
771
  "proving",
767
772
  "protocol",
768
- "gateway"
769
- ]
773
+ "gateway",
774
+ "cctp"
775
+ ],
776
+ "description": "Fee component. 'gas' = destination execution gas; 'proving' = prover message fee; 'protocol' = Eco/partner margin; 'gateway' = Circle Gateway (unified-balance mint) fee on Gateway-funded routes; 'cctp' = Circle CCTP fast-transfer fee a stitched quote forwards verbatim as the depositForBurn maxFee (a ceiling, so estimate: true). gateway and cctp are different Circle products and are never reported under one another."
770
777
  },
771
778
  "amount": {
772
779
  "type": "string",
@@ -1667,7 +1674,8 @@
1667
1674
  "enum": [
1668
1675
  "exact-in",
1669
1676
  "exact-out",
1670
- "custom"
1677
+ "custom",
1678
+ "gateway-deposit"
1671
1679
  ]
1672
1680
  },
1673
1681
  "source": {
@@ -1885,8 +1893,10 @@
1885
1893
  "gas",
1886
1894
  "proving",
1887
1895
  "protocol",
1888
- "gateway"
1889
- ]
1896
+ "gateway",
1897
+ "cctp"
1898
+ ],
1899
+ "description": "Fee component. 'gas' = destination execution gas; 'proving' = prover message fee; 'protocol' = Eco/partner margin; 'gateway' = Circle Gateway (unified-balance mint) fee on Gateway-funded routes; 'cctp' = Circle CCTP fast-transfer fee a stitched quote forwards verbatim as the depositForBurn maxFee (a ceiling, so estimate: true). gateway and cctp are different Circle products and are never reported under one another."
1890
1900
  },
1891
1901
  "amount": {
1892
1902
  "type": "string",
@@ -2088,8 +2098,10 @@
2088
2098
  "gas",
2089
2099
  "proving",
2090
2100
  "protocol",
2091
- "gateway"
2092
- ]
2101
+ "gateway",
2102
+ "cctp"
2103
+ ],
2104
+ "description": "Fee component. 'gas' = destination execution gas; 'proving' = prover message fee; 'protocol' = Eco/partner margin; 'gateway' = Circle Gateway (unified-balance mint) fee on Gateway-funded routes; 'cctp' = Circle CCTP fast-transfer fee a stitched quote forwards verbatim as the depositForBurn maxFee (a ceiling, so estimate: true). gateway and cctp are different Circle products and are never reported under one another."
2093
2105
  },
2094
2106
  "amount": {
2095
2107
  "type": "string",
@@ -5432,7 +5444,8 @@
5432
5444
  "enum": [
5433
5445
  "exact-in",
5434
5446
  "exact-out",
5435
- "custom"
5447
+ "custom",
5448
+ "gateway-deposit"
5436
5449
  ]
5437
5450
  }
5438
5451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eco-foundation/api-schemas",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Zod-first schemas, error catalog, golden fixtures, and generated OpenAPI 3.1 for the Eco /v1 API",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",