@eco-foundation/api-schemas 0.9.0 → 0.10.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 +65 -5
- package/dist/fixtures/index.js +4 -0
- package/dist/fixtures/index.js.map +1 -1
- package/dist/fixtures/v1/quotes-create.request.gateway-deposit.json +25 -0
- package/dist/fixtures/v1/quotes-create.response.gateway-deposit.json +206 -0
- package/dist/generated/build-digest.json +1 -1
- package/dist/v1/endpoints/quotes.d.ts +5 -0
- package/dist/v1/endpoints/quotes.js +25 -3
- package/dist/v1/endpoints/quotes.js.map +1 -1
- package/dist/v1/endpoints/registry.d.ts +4 -0
- package/dist/v1/endpoints/routes.d.ts +2 -0
- package/dist/v1/enums.d.ts +3 -1
- package/dist/v1/enums.js +1 -1
- package/dist/v1/enums.js.map +1 -1
- package/dist/v1/types.d.ts +1 -1
- package/openapi/v1.json +11 -6
- package/package.json +1 -1
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 **
|
|
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.
|
|
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.
|
|
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,66 @@ 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.9.0 -> 0.10.0
|
|
34
|
+
|
|
35
|
+
**BREAKING under 0.x semver** (breaking bumps the minor while the major is 0). One new quote
|
|
36
|
+
type, `gateway-deposit`, for the Circle Gateway fast-deposit route the deposit-addresses
|
|
37
|
+
service requests through `POST /v1/quotes`. No response SHAPE change; one response-refinement
|
|
38
|
+
carve-out (item 3). Item 1 is the breaking item: read it before bumping.
|
|
39
|
+
|
|
40
|
+
**`V1_SCHEMA_DIGEST` MOVES** to
|
|
41
|
+
`fa55e655ef48bbc69a551e263c1bf80cc91e8b920f9f98c29cf9b62b01a53be9`; it was
|
|
42
|
+
`bedfc6091a9af25adf1823740b6761f97bcb1927565bc3f226490bb2facda514` on `0.9.0`. Every consumer
|
|
43
|
+
running `assertNoSkew` moves in the same rollout.
|
|
44
|
+
|
|
45
|
+
**1. `QUOTE_TYPES` gains `'gateway-deposit'`**; `QuoteType`, `QuoteTypeTolerant` and the
|
|
46
|
+
zod-free `V1QuoteType` follow, so `QuoteCoreSchema.type` / `V1QuoteCore.type` echo the new
|
|
47
|
+
literal. A 0.9.x reader parsing response `type` with the strict `QuoteType` REJECTS it; one on
|
|
48
|
+
`QuoteTypeTolerant` receives `{ unknown: 'gateway-deposit' }` and keeps working; a reader that
|
|
49
|
+
needs the literal bumps to `~0.10.0`. The draft `/v1/routes` `swapTypes` enum widens too. This
|
|
50
|
+
is the breaking item.
|
|
51
|
+
|
|
52
|
+
**2. Request rules for `type: 'gateway-deposit'`**: three are in `QuoteRequestSchema`'s
|
|
53
|
+
refinement, 400 at the named path — `source.amount` REQUIRED (`gateway-deposit requires
|
|
54
|
+
source.amount`); `destination.amount` REJECTED (`gateway-deposit forbids destination.amount
|
|
55
|
+
(the engine derives it)`); `destination.calls` REJECTED (the existing `destination.calls is
|
|
56
|
+
only valid with type custom (D7)`, literal unchanged). `destination.recipient` REQUIRED (a
|
|
57
|
+
base-schema field, required on every type since 0.9.0; for this type it is the final Gateway
|
|
58
|
+
recipient on the destination chain). `exact-in` and `custom` continue to ACCEPT a
|
|
59
|
+
`destination.amount` (the router drops it); generalising the forbid is out of scope. The
|
|
60
|
+
per-type rule is published on the field: `destination.amount` now carries the description
|
|
61
|
+
`Required for exact-out. Rejected for gateway-deposit (the engine derives it). Not read for
|
|
62
|
+
exact-in or custom.`, and `type` carries a description of the route. Solver preconditions
|
|
63
|
+
(stated there, not as an error code): the destination must be an EVM chain for which the solvers
|
|
64
|
+
hold a Circle Gateway wallet configuration (HyperCore destinations are refused) and
|
|
65
|
+
`source.token` should be the source chain's USDC — any other token is priced only through the
|
|
66
|
+
solvers' stitched swap ladder and may be refused. A fleet-wide refusal reaches the caller as 502
|
|
67
|
+
`solver-error` with the solver texts in `solverErrors[]`, not as 422 `no-route-found`.
|
|
68
|
+
|
|
69
|
+
**3. `refineQuoteCore`'s sweep-4 ordering (`reward.deadline > route.deadline`) is NOT applied
|
|
70
|
+
when `type === 'gateway-deposit'`** — on the envelope and on every `quotes[]` entry alike. The
|
|
71
|
+
solver's STITCHED Gateway-deposit template inverts the ordering on both legs by design (reward
|
|
72
|
+
window 3600 s so refund eligibility opens early; route deadline 604800 s so fulfilment stays
|
|
73
|
+
retryable); the DIRECT shape keeps the usual ordering. Both deadlines stay `UnixSeconds`. Every
|
|
74
|
+
other type is unchanged and still strict; the carve-out is keyed on the type literal, never on a
|
|
75
|
+
same-chain or stitched predicate.
|
|
76
|
+
|
|
77
|
+
**4. Response shape** for the type depends on the winning solver's destination balance, not on
|
|
78
|
+
its role: DIRECT (one cross-chain intent, `execution.intent.route.destination ===
|
|
79
|
+
destination.chainId`, `route.portal` = the destination-chain Portal) or two-leg STITCHED
|
|
80
|
+
(`execution.intent` = leg A, a same-chain local intent on the source chain that the funder
|
|
81
|
+
funds; `steps[].intents[]` carries leg C with role `stitched-destination`). Consumers must
|
|
82
|
+
accept both. `expiresAt` is NOT the route deadline — read `execution.intent.route.deadline`.
|
|
83
|
+
`execution.encodedRoute` remains absent (0.9.0 item 8 stands); re-encode from
|
|
84
|
+
`execution.intent.route` when bytes are needed.
|
|
85
|
+
|
|
86
|
+
**5. Consumers** pin `~0.10.0` (never `^0`) and re-run `assertNoSkew`. `errors/catalog.lock.json`
|
|
87
|
+
is unchanged (no new error code — `no-route-found` and `invalid-api-key` already exist).
|
|
88
|
+
`openapi/v1.json` is regenerated (the `type` enum plus the two descriptions). Two golden
|
|
89
|
+
fixtures added — `quotes.create:request:gateway-deposit` and
|
|
90
|
+
`quotes.create:response:gateway-deposit` (the producer's stitched shape with inverted
|
|
91
|
+
deadlines on both legs) — for 21 in total; both are in the §5 mandatory list.
|
|
92
|
+
|
|
33
93
|
## Migrating 0.8.0 -> 0.9.0
|
|
34
94
|
|
|
35
95
|
**BREAKING under 0.x semver** (breaking bumps the minor while the major is 0). Eleven wire
|
|
@@ -937,7 +997,7 @@ Zod-major compatibility is the reason there are two interfaces, not one:
|
|
|
937
997
|
|
|
938
998
|
There are two fixture locations and they serve different jobs — do not conflate them:
|
|
939
999
|
|
|
940
|
-
- **`src/fixtures/v1/`** — the
|
|
1000
|
+
- **`src/fixtures/v1/`** — the 21 golden request/response payloads, one per endpoint variant,
|
|
941
1001
|
consumed through **`loadV1Fixtures()`** rather than by file path. Each entry carries its
|
|
942
1002
|
endpoint id, direction, variant, and the C12 replay metadata (`method`, `path`,
|
|
943
1003
|
`expectedStatus`, `sideEffect`, optional `stability` and `headers`), so a live-replay harness
|
|
@@ -1057,7 +1117,7 @@ already staged cannot be staged again, so a re-tag of a queued version fails unt
|
|
|
1057
1117
|
one is approved or rejected.
|
|
1058
1118
|
|
|
1059
1119
|
Semver: breaking schema change = major, additive = minor; consumers pin minor. **While the
|
|
1060
|
-
package is 0.x, "pin minor" means `~0.
|
|
1120
|
+
package is 0.x, "pin minor" means `~0.10.0` or the exact `0.10.0` — never `^0`** (see
|
|
1061
1121
|
[Install](#install)). Consumers additionally compare `V1_SCHEMA_DIGEST`: a matching version
|
|
1062
1122
|
string is not evidence of a matching artifact. `/v1/routes` is draft-tagged and exempt until its
|
|
1063
1123
|
stability flips.
|
package/dist/fixtures/index.js
CHANGED
|
@@ -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,EAAE,0CAAc,CAAC;IACzD,IAAI,C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
|
+
"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
|
+
}
|
|
@@ -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;
|
|
@@ -337,6 +338,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
|
|
|
337
338
|
custom: "custom";
|
|
338
339
|
"exact-in": "exact-in";
|
|
339
340
|
"exact-out": "exact-out";
|
|
341
|
+
"gateway-deposit": "gateway-deposit";
|
|
340
342
|
}>;
|
|
341
343
|
source: z.ZodObject<{
|
|
342
344
|
chainId: z.ZodNumber;
|
|
@@ -522,6 +524,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
|
|
|
522
524
|
custom: "custom";
|
|
523
525
|
"exact-in": "exact-in";
|
|
524
526
|
"exact-out": "exact-out";
|
|
527
|
+
"gateway-deposit": "gateway-deposit";
|
|
525
528
|
}>;
|
|
526
529
|
source: z.ZodObject<{
|
|
527
530
|
chainId: z.ZodNumber;
|
|
@@ -700,6 +703,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
|
|
|
700
703
|
custom: "custom";
|
|
701
704
|
"exact-in": "exact-in";
|
|
702
705
|
"exact-out": "exact-out";
|
|
706
|
+
"gateway-deposit": "gateway-deposit";
|
|
703
707
|
}>;
|
|
704
708
|
source: z.ZodObject<{
|
|
705
709
|
chainId: z.ZodNumber;
|
|
@@ -876,6 +880,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
|
|
|
876
880
|
custom: "custom";
|
|
877
881
|
"exact-in": "exact-in";
|
|
878
882
|
"exact-out": "exact-out";
|
|
883
|
+
"gateway-deposit": "gateway-deposit";
|
|
879
884
|
}>;
|
|
880
885
|
source: z.ZodObject<{
|
|
881
886
|
chainId: z.ZodNumber;
|
|
@@ -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',
|
|
@@ -269,7 +290,8 @@ function refineQuoteCore(quote, ctx) {
|
|
|
269
290
|
'the quote signature commits to that set (F3 / N14)',
|
|
270
291
|
});
|
|
271
292
|
}
|
|
272
|
-
if (
|
|
293
|
+
if (quote.type !== 'gateway-deposit' &&
|
|
294
|
+
exec.intent.reward.deadline <= exec.intent.route.deadline) {
|
|
273
295
|
ctx.addIssue({
|
|
274
296
|
code: 'custom',
|
|
275
297
|
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,QAAQ,EAAE;IAOnD,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAcU,QAAA,YAAY,GAAG,MAAM,CAAC;AACtB,QAAA,YAAY,GAAG,CAAC,CAAC;AAc9B,MAAM,sBAAsB,GAAG,GAC7B,IAA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
|
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;
|
|
@@ -234,6 +236,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
234
236
|
custom: "custom";
|
|
235
237
|
"exact-in": "exact-in";
|
|
236
238
|
"exact-out": "exact-out";
|
|
239
|
+
"gateway-deposit": "gateway-deposit";
|
|
237
240
|
}>;
|
|
238
241
|
source: z.ZodObject<{
|
|
239
242
|
chainId: z.ZodNumber;
|
|
@@ -694,6 +697,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
694
697
|
custom: "custom";
|
|
695
698
|
"exact-in": "exact-in";
|
|
696
699
|
"exact-out": "exact-out";
|
|
700
|
+
"gateway-deposit": "gateway-deposit";
|
|
697
701
|
}>>;
|
|
698
702
|
}, z.core.$loose>>;
|
|
699
703
|
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>;
|
package/dist/v1/enums.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
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>>]>;
|
package/dist/v1/enums.js
CHANGED
|
@@ -3,7 +3,7 @@ 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
9
|
exports.FEE_TYPES = ['gas', 'proving', 'protocol', 'gateway'];
|
package/dist/v1/enums.js.map
CHANGED
|
@@ -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;
|
|
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,EAAE,iBAAiB,CAAU,CAAC;AAC9E,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,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CAAC,oBAAY,CAAC,CAAC;AAGlC,QAAA,oBAAoB,GAAG;IAClC,SAAS;IACT,YAAY;IACZ,WAAW;IACX,SAAS;IACT,QAAQ;IACR,SAAS;CACD,CAAC;AACE,QAAA,kBAAkB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAC9E,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,0BAAkB,CAAC,CAAC;AAQ7C,QAAA,iBAAiB,GAAG;IAE/B,MAAM,EAAE;QACN,SAAS;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"}
|
package/dist/v1/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { LegacyCodeRef, V1ErrorCode, V1ErrorDefinition } from './errors/catalog';
|
|
2
|
-
export type V1QuoteType = 'exact-in' | 'exact-out' | 'custom';
|
|
2
|
+
export type V1QuoteType = 'exact-in' | 'exact-out' | 'custom' | 'gateway-deposit';
|
|
3
3
|
export type V1FeeType = 'gas' | 'proving' | 'protocol' | 'gateway';
|
|
4
4
|
export type V1ChainType = 'evm' | 'svm' | 'tvm';
|
|
5
5
|
export type V1RelatedIntentRole = 'local' | 'bucket-candidate' | 'stitched-destination';
|
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": "
|
|
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": {
|
|
@@ -1667,7 +1670,8 @@
|
|
|
1667
1670
|
"enum": [
|
|
1668
1671
|
"exact-in",
|
|
1669
1672
|
"exact-out",
|
|
1670
|
-
"custom"
|
|
1673
|
+
"custom",
|
|
1674
|
+
"gateway-deposit"
|
|
1671
1675
|
]
|
|
1672
1676
|
},
|
|
1673
1677
|
"source": {
|
|
@@ -5432,7 +5436,8 @@
|
|
|
5432
5436
|
"enum": [
|
|
5433
5437
|
"exact-in",
|
|
5434
5438
|
"exact-out",
|
|
5435
|
-
"custom"
|
|
5439
|
+
"custom",
|
|
5440
|
+
"gateway-deposit"
|
|
5436
5441
|
]
|
|
5437
5442
|
}
|
|
5438
5443
|
}
|
package/package.json
CHANGED