@eco-foundation/api-schemas 0.8.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 +152 -15
- package/dist/fixtures/index.js +10 -6
- package/dist/fixtures/index.js.map +1 -1
- package/dist/fixtures/v1/deposit-addresses-create.request.gateway-erc20.json +1 -1
- package/dist/fixtures/v1/deposit-addresses-create.response.gateway-erc20.json +1 -1
- package/dist/fixtures/v1/deposit-addresses-lookup.response.default.json +1 -1
- package/dist/fixtures/v1/intents-status.response.quote-filled-detail.json +60 -0
- package/dist/fixtures/v1/quotes-create.request.gateway-deposit.json +25 -0
- package/dist/fixtures/v1/{quotes-create.request.public-swap.json → quotes-create.request.swap.json} +4 -4
- package/dist/fixtures/v1/quotes-create.response.all-quotes.json +288 -81
- package/dist/fixtures/v1/quotes-create.response.gateway-deposit.json +206 -0
- package/dist/fixtures/v1/quotes-create.response.swap.json +228 -0
- package/dist/generated/build-digest.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/openapi.js +18 -0
- package/dist/openapi.js.map +1 -1
- package/dist/v1/endpoints/deposit-addresses.d.ts +12 -12
- package/dist/v1/endpoints/deposit-addresses.js +9 -9
- package/dist/v1/endpoints/quotes.d.ts +348 -193
- package/dist/v1/endpoints/quotes.js +74 -62
- package/dist/v1/endpoints/quotes.js.map +1 -1
- package/dist/v1/endpoints/registry.d.ts +118 -76
- package/dist/v1/endpoints/routes.d.ts +2 -0
- package/dist/v1/endpoints/routes.js +1 -1
- package/dist/v1/endpoints/routes.js.map +1 -1
- package/dist/v1/endpoints/status.d.ts +4 -0
- package/dist/v1/endpoints/status.js +1 -0
- package/dist/v1/endpoints/status.js.map +1 -1
- package/dist/v1/enums.d.ts +14 -30
- package/dist/v1/enums.js +10 -15
- package/dist/v1/enums.js.map +1 -1
- package/dist/v1/types.d.ts +42 -42
- package/openapi/v1.json +1084 -676
- package/package.json +1 -1
- package/dist/fixtures/v1/quotes-create.response.private-swap.json +0 -153
- package/dist/fixtures/v1/quotes-create.response.public-swap.json +0 -159
|
@@ -20,15 +20,17 @@ export declare const V1_ENDPOINTS: {
|
|
|
20
20
|
readonly stability: "stable";
|
|
21
21
|
readonly successStatus: 200;
|
|
22
22
|
readonly request: z.ZodObject<{
|
|
23
|
-
|
|
23
|
+
type: z.ZodEnum<{
|
|
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;
|
|
30
31
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
31
32
|
amount: z.ZodOptional<z.ZodString>;
|
|
33
|
+
funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
32
34
|
}, z.core.$strict>;
|
|
33
35
|
destination: z.ZodObject<{
|
|
34
36
|
chainId: z.ZodNumber;
|
|
@@ -43,45 +45,34 @@ export declare const V1_ENDPOINTS: {
|
|
|
43
45
|
gasLimit: z.ZodOptional<z.ZodString>;
|
|
44
46
|
}, z.core.$strict>>>;
|
|
45
47
|
}, z.core.$strict>;
|
|
46
|
-
funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
47
48
|
refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
48
49
|
slippage: z.ZodOptional<z.ZodNumber>;
|
|
49
|
-
dappId: z.
|
|
50
|
+
dappId: z.ZodString;
|
|
50
51
|
options: z.ZodOptional<z.ZodObject<{
|
|
51
52
|
deadlineSec: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
public: "public";
|
|
54
|
-
private: "private";
|
|
55
|
-
}>>;
|
|
56
53
|
allQuotes: z.ZodOptional<z.ZodBoolean>;
|
|
57
54
|
}, z.core.$strict>>;
|
|
58
55
|
}, z.core.$strict>;
|
|
59
56
|
readonly response: z.ZodObject<{
|
|
60
57
|
id: z.ZodString;
|
|
61
|
-
|
|
58
|
+
type: z.ZodEnum<{
|
|
62
59
|
custom: "custom";
|
|
63
60
|
"exact-in": "exact-in";
|
|
64
61
|
"exact-out": "exact-out";
|
|
65
|
-
|
|
66
|
-
visibility: z.ZodEnum<{
|
|
67
|
-
public: "public";
|
|
68
|
-
private: "private";
|
|
69
|
-
}>;
|
|
70
|
-
guarantee: z.ZodEnum<{
|
|
71
|
-
"atomic-or-refund": "atomic-or-refund";
|
|
72
|
-
"calls-execute-or-refund": "calls-execute-or-refund";
|
|
62
|
+
"gateway-deposit": "gateway-deposit";
|
|
73
63
|
}>;
|
|
74
64
|
source: z.ZodObject<{
|
|
75
65
|
chainId: z.ZodNumber;
|
|
76
66
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
77
67
|
amount: z.ZodString;
|
|
68
|
+
funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
78
69
|
symbol: z.ZodNullable<z.ZodString>;
|
|
79
70
|
decimals: z.ZodNullable<z.ZodNumber>;
|
|
80
71
|
}, z.core.$loose>;
|
|
81
72
|
destination: z.ZodObject<{
|
|
82
73
|
chainId: z.ZodNumber;
|
|
83
74
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
84
|
-
|
|
75
|
+
amountOut: z.ZodString;
|
|
85
76
|
minAmountOut: z.ZodString;
|
|
86
77
|
recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
87
78
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -89,7 +80,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
89
80
|
}, z.core.$loose>;
|
|
90
81
|
slippage: z.ZodNumber;
|
|
91
82
|
fees: z.ZodArray<z.ZodObject<{
|
|
92
|
-
|
|
83
|
+
type: z.ZodEnum<{
|
|
93
84
|
gas: "gas";
|
|
94
85
|
proving: "proving";
|
|
95
86
|
protocol: "protocol";
|
|
@@ -105,13 +96,13 @@ export declare const V1_ENDPOINTS: {
|
|
|
105
96
|
estimate: z.ZodBoolean;
|
|
106
97
|
}, z.core.$loose>>;
|
|
107
98
|
steps: z.ZodArray<z.ZodObject<{
|
|
108
|
-
|
|
99
|
+
type: z.ZodEnum<{
|
|
109
100
|
swap: "swap";
|
|
110
101
|
bridge: "bridge";
|
|
111
102
|
deposit: "deposit";
|
|
112
103
|
transfer: "transfer";
|
|
113
104
|
}>;
|
|
114
|
-
|
|
105
|
+
provider: z.ZodString;
|
|
115
106
|
aggregator: z.ZodOptional<z.ZodString>;
|
|
116
107
|
from: z.ZodObject<{
|
|
117
108
|
chainId: z.ZodNumber;
|
|
@@ -124,7 +115,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
124
115
|
amount: z.ZodString;
|
|
125
116
|
}, z.core.$loose>;
|
|
126
117
|
fees: z.ZodArray<z.ZodObject<{
|
|
127
|
-
|
|
118
|
+
type: z.ZodEnum<{
|
|
128
119
|
gas: "gas";
|
|
129
120
|
proving: "proving";
|
|
130
121
|
protocol: "protocol";
|
|
@@ -140,16 +131,45 @@ export declare const V1_ENDPOINTS: {
|
|
|
140
131
|
estimate: z.ZodBoolean;
|
|
141
132
|
}, z.core.$loose>>;
|
|
142
133
|
estimatedDurationSec: z.ZodNumber;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
134
|
+
intents: z.ZodArray<z.ZodObject<{
|
|
135
|
+
role: z.ZodEnum<{
|
|
136
|
+
local: "local";
|
|
137
|
+
"bucket-candidate": "bucket-candidate";
|
|
138
|
+
"stitched-destination": "stitched-destination";
|
|
139
|
+
}>;
|
|
140
|
+
intentHash: z.ZodString;
|
|
141
|
+
routeHash: z.ZodOptional<z.ZodString>;
|
|
142
|
+
bucketIndex: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
intent: z.ZodObject<{
|
|
144
|
+
route: z.ZodObject<{
|
|
145
|
+
salt: z.ZodString;
|
|
146
|
+
deadline: z.ZodNumber;
|
|
147
|
+
source: z.ZodNumber;
|
|
148
|
+
destination: z.ZodNumber;
|
|
149
|
+
portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
150
|
+
nativeAmount: z.ZodString;
|
|
151
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
152
|
+
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
153
|
+
amount: z.ZodString;
|
|
154
|
+
}, z.core.$loose>>;
|
|
155
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
156
|
+
target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
157
|
+
data: z.ZodString;
|
|
158
|
+
value: z.ZodString;
|
|
159
|
+
}, z.core.$loose>>;
|
|
160
|
+
}, z.core.$loose>;
|
|
161
|
+
reward: z.ZodObject<{
|
|
162
|
+
deadline: z.ZodNumber;
|
|
163
|
+
creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
164
|
+
prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
165
|
+
nativeAmount: z.ZodString;
|
|
166
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
167
|
+
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
168
|
+
amount: z.ZodString;
|
|
169
|
+
}, z.core.$loose>>;
|
|
170
|
+
}, z.core.$loose>;
|
|
171
|
+
}, z.core.$loose>;
|
|
172
|
+
}, z.core.$loose>>;
|
|
153
173
|
}, z.core.$loose>>;
|
|
154
174
|
solver: z.ZodObject<{
|
|
155
175
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
@@ -158,13 +178,13 @@ export declare const V1_ENDPOINTS: {
|
|
|
158
178
|
intentHash: z.ZodNullable<z.ZodString>;
|
|
159
179
|
execution: z.ZodNullable<z.ZodObject<{
|
|
160
180
|
transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
161
|
-
|
|
181
|
+
type: z.ZodLiteral<"evm">;
|
|
162
182
|
chainId: z.ZodNumber;
|
|
163
183
|
to: z.ZodString;
|
|
164
184
|
data: z.ZodString;
|
|
165
185
|
value: z.ZodString;
|
|
166
186
|
}, z.core.$loose>, z.ZodObject<{
|
|
167
|
-
|
|
187
|
+
type: z.ZodLiteral<"svm">;
|
|
168
188
|
chainId: z.ZodNumber;
|
|
169
189
|
feePayer: z.ZodString;
|
|
170
190
|
instructions: z.ZodArray<z.ZodObject<{
|
|
@@ -176,7 +196,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
176
196
|
}, z.core.$loose>>;
|
|
177
197
|
data: z.ZodString;
|
|
178
198
|
}, z.core.$loose>>;
|
|
179
|
-
}, z.core.$loose>], "
|
|
199
|
+
}, z.core.$loose>], "type">;
|
|
180
200
|
intent: z.ZodObject<{
|
|
181
201
|
route: z.ZodObject<{
|
|
182
202
|
salt: z.ZodString;
|
|
@@ -189,11 +209,11 @@ export declare const V1_ENDPOINTS: {
|
|
|
189
209
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
190
210
|
amount: z.ZodString;
|
|
191
211
|
}, z.core.$loose>>;
|
|
192
|
-
calls: z.
|
|
212
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
193
213
|
target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
194
214
|
data: z.ZodString;
|
|
195
215
|
value: z.ZodString;
|
|
196
|
-
}, z.core.$loose
|
|
216
|
+
}, z.core.$loose>>;
|
|
197
217
|
}, z.core.$loose>;
|
|
198
218
|
reward: z.ZodObject<{
|
|
199
219
|
deadline: z.ZodNumber;
|
|
@@ -206,38 +226,30 @@ export declare const V1_ENDPOINTS: {
|
|
|
206
226
|
}, z.core.$loose>>;
|
|
207
227
|
}, z.core.$loose>;
|
|
208
228
|
}, z.core.$loose>;
|
|
209
|
-
encodedRoute: z.ZodNullable<z.ZodString>;
|
|
210
|
-
encodedReward: z.ZodNullable<z.ZodString>;
|
|
211
229
|
vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
|
|
212
230
|
}, z.core.$loose>>;
|
|
213
231
|
expiresAt: z.ZodNumber;
|
|
214
232
|
signature: z.ZodString;
|
|
215
233
|
quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
216
234
|
id: z.ZodString;
|
|
217
|
-
|
|
235
|
+
type: z.ZodEnum<{
|
|
218
236
|
custom: "custom";
|
|
219
237
|
"exact-in": "exact-in";
|
|
220
238
|
"exact-out": "exact-out";
|
|
221
|
-
|
|
222
|
-
visibility: z.ZodEnum<{
|
|
223
|
-
public: "public";
|
|
224
|
-
private: "private";
|
|
225
|
-
}>;
|
|
226
|
-
guarantee: z.ZodEnum<{
|
|
227
|
-
"atomic-or-refund": "atomic-or-refund";
|
|
228
|
-
"calls-execute-or-refund": "calls-execute-or-refund";
|
|
239
|
+
"gateway-deposit": "gateway-deposit";
|
|
229
240
|
}>;
|
|
230
241
|
source: z.ZodObject<{
|
|
231
242
|
chainId: z.ZodNumber;
|
|
232
243
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
233
244
|
amount: z.ZodString;
|
|
245
|
+
funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
234
246
|
symbol: z.ZodNullable<z.ZodString>;
|
|
235
247
|
decimals: z.ZodNullable<z.ZodNumber>;
|
|
236
248
|
}, z.core.$loose>;
|
|
237
249
|
destination: z.ZodObject<{
|
|
238
250
|
chainId: z.ZodNumber;
|
|
239
251
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
240
|
-
|
|
252
|
+
amountOut: z.ZodString;
|
|
241
253
|
minAmountOut: z.ZodString;
|
|
242
254
|
recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
243
255
|
symbol: z.ZodNullable<z.ZodString>;
|
|
@@ -245,7 +257,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
245
257
|
}, z.core.$loose>;
|
|
246
258
|
slippage: z.ZodNumber;
|
|
247
259
|
fees: z.ZodArray<z.ZodObject<{
|
|
248
|
-
|
|
260
|
+
type: z.ZodEnum<{
|
|
249
261
|
gas: "gas";
|
|
250
262
|
proving: "proving";
|
|
251
263
|
protocol: "protocol";
|
|
@@ -261,13 +273,13 @@ export declare const V1_ENDPOINTS: {
|
|
|
261
273
|
estimate: z.ZodBoolean;
|
|
262
274
|
}, z.core.$loose>>;
|
|
263
275
|
steps: z.ZodArray<z.ZodObject<{
|
|
264
|
-
|
|
276
|
+
type: z.ZodEnum<{
|
|
265
277
|
swap: "swap";
|
|
266
278
|
bridge: "bridge";
|
|
267
279
|
deposit: "deposit";
|
|
268
280
|
transfer: "transfer";
|
|
269
281
|
}>;
|
|
270
|
-
|
|
282
|
+
provider: z.ZodString;
|
|
271
283
|
aggregator: z.ZodOptional<z.ZodString>;
|
|
272
284
|
from: z.ZodObject<{
|
|
273
285
|
chainId: z.ZodNumber;
|
|
@@ -280,7 +292,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
280
292
|
amount: z.ZodString;
|
|
281
293
|
}, z.core.$loose>;
|
|
282
294
|
fees: z.ZodArray<z.ZodObject<{
|
|
283
|
-
|
|
295
|
+
type: z.ZodEnum<{
|
|
284
296
|
gas: "gas";
|
|
285
297
|
proving: "proving";
|
|
286
298
|
protocol: "protocol";
|
|
@@ -296,16 +308,45 @@ export declare const V1_ENDPOINTS: {
|
|
|
296
308
|
estimate: z.ZodBoolean;
|
|
297
309
|
}, z.core.$loose>>;
|
|
298
310
|
estimatedDurationSec: z.ZodNumber;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
311
|
+
intents: z.ZodArray<z.ZodObject<{
|
|
312
|
+
role: z.ZodEnum<{
|
|
313
|
+
local: "local";
|
|
314
|
+
"bucket-candidate": "bucket-candidate";
|
|
315
|
+
"stitched-destination": "stitched-destination";
|
|
316
|
+
}>;
|
|
317
|
+
intentHash: z.ZodString;
|
|
318
|
+
routeHash: z.ZodOptional<z.ZodString>;
|
|
319
|
+
bucketIndex: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
intent: z.ZodObject<{
|
|
321
|
+
route: z.ZodObject<{
|
|
322
|
+
salt: z.ZodString;
|
|
323
|
+
deadline: z.ZodNumber;
|
|
324
|
+
source: z.ZodNumber;
|
|
325
|
+
destination: z.ZodNumber;
|
|
326
|
+
portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
327
|
+
nativeAmount: z.ZodString;
|
|
328
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
329
|
+
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
330
|
+
amount: z.ZodString;
|
|
331
|
+
}, z.core.$loose>>;
|
|
332
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
333
|
+
target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
334
|
+
data: z.ZodString;
|
|
335
|
+
value: z.ZodString;
|
|
336
|
+
}, z.core.$loose>>;
|
|
337
|
+
}, z.core.$loose>;
|
|
338
|
+
reward: z.ZodObject<{
|
|
339
|
+
deadline: z.ZodNumber;
|
|
340
|
+
creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
341
|
+
prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
342
|
+
nativeAmount: z.ZodString;
|
|
343
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
344
|
+
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
345
|
+
amount: z.ZodString;
|
|
346
|
+
}, z.core.$loose>>;
|
|
347
|
+
}, z.core.$loose>;
|
|
348
|
+
}, z.core.$loose>;
|
|
349
|
+
}, z.core.$loose>>;
|
|
309
350
|
}, z.core.$loose>>;
|
|
310
351
|
solver: z.ZodObject<{
|
|
311
352
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
@@ -314,13 +355,13 @@ export declare const V1_ENDPOINTS: {
|
|
|
314
355
|
intentHash: z.ZodNullable<z.ZodString>;
|
|
315
356
|
execution: z.ZodNullable<z.ZodObject<{
|
|
316
357
|
transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
317
|
-
|
|
358
|
+
type: z.ZodLiteral<"evm">;
|
|
318
359
|
chainId: z.ZodNumber;
|
|
319
360
|
to: z.ZodString;
|
|
320
361
|
data: z.ZodString;
|
|
321
362
|
value: z.ZodString;
|
|
322
363
|
}, z.core.$loose>, z.ZodObject<{
|
|
323
|
-
|
|
364
|
+
type: z.ZodLiteral<"svm">;
|
|
324
365
|
chainId: z.ZodNumber;
|
|
325
366
|
feePayer: z.ZodString;
|
|
326
367
|
instructions: z.ZodArray<z.ZodObject<{
|
|
@@ -332,7 +373,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
332
373
|
}, z.core.$loose>>;
|
|
333
374
|
data: z.ZodString;
|
|
334
375
|
}, z.core.$loose>>;
|
|
335
|
-
}, z.core.$loose>], "
|
|
376
|
+
}, z.core.$loose>], "type">;
|
|
336
377
|
intent: z.ZodObject<{
|
|
337
378
|
route: z.ZodObject<{
|
|
338
379
|
salt: z.ZodString;
|
|
@@ -345,11 +386,11 @@ export declare const V1_ENDPOINTS: {
|
|
|
345
386
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
346
387
|
amount: z.ZodString;
|
|
347
388
|
}, z.core.$loose>>;
|
|
348
|
-
calls: z.
|
|
389
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
349
390
|
target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
|
|
350
391
|
data: z.ZodString;
|
|
351
392
|
value: z.ZodString;
|
|
352
|
-
}, z.core.$loose
|
|
393
|
+
}, z.core.$loose>>;
|
|
353
394
|
}, z.core.$loose>;
|
|
354
395
|
reward: z.ZodObject<{
|
|
355
396
|
deadline: z.ZodNumber;
|
|
@@ -362,8 +403,6 @@ export declare const V1_ENDPOINTS: {
|
|
|
362
403
|
}, z.core.$loose>>;
|
|
363
404
|
}, z.core.$loose>;
|
|
364
405
|
}, z.core.$loose>;
|
|
365
|
-
encodedRoute: z.ZodNullable<z.ZodString>;
|
|
366
|
-
encodedReward: z.ZodNullable<z.ZodString>;
|
|
367
406
|
vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
|
|
368
407
|
}, z.core.$loose>>;
|
|
369
408
|
expiresAt: z.ZodNumber;
|
|
@@ -436,6 +475,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
436
475
|
SWAP: "SWAP";
|
|
437
476
|
BRIDGE: "BRIDGE";
|
|
438
477
|
}>;
|
|
478
|
+
intentHash: z.ZodString;
|
|
439
479
|
status: z.ZodString;
|
|
440
480
|
from: z.ZodObject<{
|
|
441
481
|
token: z.ZodString;
|
|
@@ -521,6 +561,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
521
561
|
SWAP: "SWAP";
|
|
522
562
|
BRIDGE: "BRIDGE";
|
|
523
563
|
}>;
|
|
564
|
+
intentHash: z.ZodString;
|
|
524
565
|
status: z.ZodString;
|
|
525
566
|
from: z.ZodObject<{
|
|
526
567
|
token: z.ZodString;
|
|
@@ -656,6 +697,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
656
697
|
custom: "custom";
|
|
657
698
|
"exact-in": "exact-in";
|
|
658
699
|
"exact-out": "exact-out";
|
|
700
|
+
"gateway-deposit": "gateway-deposit";
|
|
659
701
|
}>>;
|
|
660
702
|
}, z.core.$loose>>;
|
|
661
703
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -671,26 +713,26 @@ export declare const V1_ENDPOINTS: {
|
|
|
671
713
|
readonly request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
672
714
|
chainId: z.ZodNumber;
|
|
673
715
|
depositor: z.ZodString;
|
|
674
|
-
|
|
716
|
+
type: z.ZodLiteral<"solana">;
|
|
675
717
|
destinationAddress: z.ZodString;
|
|
676
718
|
}, z.core.$strict>, z.ZodObject<{
|
|
677
719
|
chainId: z.ZodNumber;
|
|
678
720
|
depositor: z.ZodString;
|
|
679
|
-
|
|
721
|
+
type: z.ZodLiteral<"gateway">;
|
|
680
722
|
destinationAddress: z.ZodString;
|
|
681
723
|
}, z.core.$strict>, z.ZodObject<{
|
|
682
724
|
chainId: z.ZodNumber;
|
|
683
725
|
depositor: z.ZodString;
|
|
684
|
-
|
|
726
|
+
type: z.ZodLiteral<"gateway-erc20">;
|
|
685
727
|
destinationAddress: z.ZodString;
|
|
686
728
|
destinationChainId: z.ZodNumber;
|
|
687
|
-
}, z.core.$strict>], "
|
|
729
|
+
}, z.core.$strict>], "type">;
|
|
688
730
|
readonly response: z.ZodObject<{
|
|
689
731
|
id: z.ZodString;
|
|
690
732
|
depositAddress: z.ZodString;
|
|
691
733
|
chainId: z.ZodNumber;
|
|
692
734
|
depositor: z.ZodString;
|
|
693
|
-
|
|
735
|
+
type: z.ZodEnum<{
|
|
694
736
|
gateway: "gateway";
|
|
695
737
|
solana: "solana";
|
|
696
738
|
"gateway-erc20": "gateway-erc20";
|
|
@@ -723,7 +765,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
723
765
|
depositor: z.ZodOptional<z.ZodString>;
|
|
724
766
|
destinationAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
725
767
|
chainId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
726
|
-
|
|
768
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
727
769
|
gateway: "gateway";
|
|
728
770
|
solana: "solana";
|
|
729
771
|
"gateway-erc20": "gateway-erc20";
|
|
@@ -735,7 +777,7 @@ export declare const V1_ENDPOINTS: {
|
|
|
735
777
|
depositAddress: z.ZodString;
|
|
736
778
|
chainId: z.ZodNumber;
|
|
737
779
|
depositor: z.ZodString;
|
|
738
|
-
|
|
780
|
+
type: z.ZodEnum<{
|
|
739
781
|
gateway: "gateway";
|
|
740
782
|
solana: "solana";
|
|
741
783
|
"gateway-erc20": "gateway-erc20";
|
|
@@ -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>;
|
|
@@ -12,7 +12,7 @@ const RouteLegSchema = zod_1.z.looseObject({
|
|
|
12
12
|
exports.RouteEntrySchema = zod_1.z.looseObject({
|
|
13
13
|
source: RouteLegSchema,
|
|
14
14
|
destination: RouteLegSchema,
|
|
15
|
-
swapTypes: zod_1.z.array(enums_1.
|
|
15
|
+
swapTypes: zod_1.z.array(enums_1.QuoteType),
|
|
16
16
|
});
|
|
17
17
|
exports.RoutesResponseSchema = zod_1.z.looseObject({
|
|
18
18
|
routes: zod_1.z.array(exports.RouteEntrySchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/v1/endpoints/routes.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/v1/endpoints/routes.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,oCAAqC;AACrC,8CAAoD;AASvC,QAAA,gBAAgB,GAAG,OAAgB,CAAC;AAEjD,MAAM,cAAc,GAAG,OAAC,CAAC,WAAW,CAAC;IACnC,OAAO,EAAE,oBAAO;IAChB,KAAK,EAAE,uBAAU;CAClB,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC5C,MAAM,EAAE,cAAc;IACtB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,iBAAS,CAAC;CAC9B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,OAAC,CAAC,WAAW,CAAC;IAChD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IAEjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
|
@@ -31,6 +31,7 @@ export declare const StatusStepSchema: z.ZodObject<{
|
|
|
31
31
|
SWAP: "SWAP";
|
|
32
32
|
BRIDGE: "BRIDGE";
|
|
33
33
|
}>;
|
|
34
|
+
intentHash: z.ZodString;
|
|
34
35
|
status: z.ZodString;
|
|
35
36
|
from: z.ZodObject<{
|
|
36
37
|
token: z.ZodString;
|
|
@@ -90,6 +91,7 @@ export declare const StatusEntrySchema: z.ZodObject<{
|
|
|
90
91
|
SWAP: "SWAP";
|
|
91
92
|
BRIDGE: "BRIDGE";
|
|
92
93
|
}>;
|
|
94
|
+
intentHash: z.ZodString;
|
|
93
95
|
status: z.ZodString;
|
|
94
96
|
from: z.ZodObject<{
|
|
95
97
|
token: z.ZodString;
|
|
@@ -159,6 +161,7 @@ export declare function statusEntrySchemaFor(type: StatusType): z.ZodObject<{
|
|
|
159
161
|
SWAP: "SWAP";
|
|
160
162
|
BRIDGE: "BRIDGE";
|
|
161
163
|
}>;
|
|
164
|
+
intentHash: z.ZodString;
|
|
162
165
|
status: z.ZodString;
|
|
163
166
|
from: z.ZodObject<{
|
|
164
167
|
token: z.ZodString;
|
|
@@ -299,6 +302,7 @@ export declare const StatusListResponseSchema: z.ZodObject<{
|
|
|
299
302
|
SWAP: "SWAP";
|
|
300
303
|
BRIDGE: "BRIDGE";
|
|
301
304
|
}>;
|
|
305
|
+
intentHash: z.ZodString;
|
|
302
306
|
status: z.ZodString;
|
|
303
307
|
from: z.ZodObject<{
|
|
304
308
|
token: z.ZodString;
|
|
@@ -34,6 +34,7 @@ exports.STATUS_STEP_TYPES = ['SWAP', 'BRIDGE'];
|
|
|
34
34
|
exports.StatusStepType = zod_1.z.enum(exports.STATUS_STEP_TYPES);
|
|
35
35
|
exports.StatusStepSchema = zod_1.z.looseObject({
|
|
36
36
|
type: exports.StatusStepType,
|
|
37
|
+
intentHash: primitives_1.Bytes32,
|
|
37
38
|
status: zod_1.z.string().min(1),
|
|
38
39
|
from: exports.StatusTokenAmountSchema,
|
|
39
40
|
to: exports.StatusTokenAmountSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/endpoints/status.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/endpoints/status.ts"],"names":[],"mappings":";;;AAoKA,oDAQC;AAyFD,0DAWC;AAhRD,6BAAwB;AAExB,oCAAuE;AACvE,8CAWuB;AACvB,qCAAkD;AAErC,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,yBAAyB,GAAG,EAAE,CAAC;AAG5C,MAAM,iBAAiB,GAA0C;IAC/D,MAAM,EAAE,qBAAQ;IAChB,KAAK,EAAE,oBAAO;IACd,OAAO,EAAE,sBAAS;IAClB,iBAAiB,EAAE,6BAAgB;CACpC,CAAC;AAOW,QAAA,iBAAiB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC7C,OAAO,EAAE,oBAAO;IAChB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC;AAUU,QAAA,uBAAuB,GAAG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,WAAW,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAE/D,MAAM,8BAA8B,GAAG,CAAC,SAAS,EAAE,OAAO,CAAU,CAAC;AAgCxD,QAAA,kCAAkC,GAAG;IAChD,OAAO,EAAE,uBAAU,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,0BAAa,CAAC,QAAQ,EAAE;IAC/B,GAAG,oBAAY;CAChB,CAAC;AAEW,QAAA,+BAA+B,GAAG,OAAC;KAC7C,MAAM,CAAC,0CAAkC,CAAC;KAC1C,WAAW,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC,CAAC;AAO3D,QAAA,wBAAwB,GAAG,OAAC,CAAC,WAAW,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,GAAG,CAAC,6BAAqB,CAAC;IAC9D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC"}
|
package/dist/v1/enums.d.ts
CHANGED
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const QUOTE_TYPES: readonly ["exact-in", "exact-out", "custom", "gateway-deposit"];
|
|
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
|
-
export declare const
|
|
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
|
-
export type
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
"atomic-or-refund": "atomic-or-refund";
|
|
19
|
-
"calls-execute-or-refund": "calls-execute-or-refund";
|
|
20
|
-
}>;
|
|
21
|
-
export declare const GuaranteeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
|
|
22
|
-
"atomic-or-refund": "atomic-or-refund";
|
|
23
|
-
"calls-execute-or-refund": "calls-execute-or-refund";
|
|
24
|
-
}>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
25
|
-
unknown: string;
|
|
26
|
-
}, string>>]>;
|
|
27
|
-
export type Guarantee = z.infer<typeof Guarantee>;
|
|
28
|
-
export declare const FEE_KINDS: readonly ["gas", "proving", "protocol", "gateway"];
|
|
29
|
-
export declare const FeeKind: z.ZodEnum<{
|
|
17
|
+
export type QuoteType = z.infer<typeof QuoteType>;
|
|
18
|
+
export declare const FEE_TYPES: readonly ["gas", "proving", "protocol", "gateway"];
|
|
19
|
+
export declare const FeeType: z.ZodEnum<{
|
|
30
20
|
gas: "gas";
|
|
31
21
|
proving: "proving";
|
|
32
22
|
protocol: "protocol";
|
|
33
23
|
gateway: "gateway";
|
|
34
24
|
}>;
|
|
35
|
-
export declare const
|
|
25
|
+
export declare const FeeTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
|
|
36
26
|
gas: "gas";
|
|
37
27
|
proving: "proving";
|
|
38
28
|
protocol: "protocol";
|
|
@@ -40,13 +30,7 @@ export declare const FeeKindTolerant: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
40
30
|
}>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
41
31
|
unknown: string;
|
|
42
32
|
}, string>>]>;
|
|
43
|
-
export type
|
|
44
|
-
export declare const VISIBILITIES: readonly ["public", "private"];
|
|
45
|
-
export declare const Visibility: z.ZodEnum<{
|
|
46
|
-
public: "public";
|
|
47
|
-
private: "private";
|
|
48
|
-
}>;
|
|
49
|
-
export type Visibility = z.infer<typeof Visibility>;
|
|
33
|
+
export type FeeType = z.infer<typeof FeeType>;
|
|
50
34
|
export declare const CHAIN_TYPES: readonly ["evm", "svm", "tvm"];
|
|
51
35
|
export declare const ChainType: z.ZodEnum<{
|
|
52
36
|
evm: "evm";
|
|
@@ -80,14 +64,14 @@ export declare const RelatedIntentRoleTolerant: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
80
64
|
unknown: string;
|
|
81
65
|
}, string>>]>;
|
|
82
66
|
export type RelatedIntentRole = z.infer<typeof RelatedIntentRole>;
|
|
83
|
-
export declare const
|
|
84
|
-
export declare const
|
|
67
|
+
export declare const STEP_TYPES: readonly ["swap", "bridge", "deposit", "transfer"];
|
|
68
|
+
export declare const StepType: z.ZodEnum<{
|
|
85
69
|
swap: "swap";
|
|
86
70
|
bridge: "bridge";
|
|
87
71
|
deposit: "deposit";
|
|
88
72
|
transfer: "transfer";
|
|
89
73
|
}>;
|
|
90
|
-
export declare const
|
|
74
|
+
export declare const StepTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
|
|
91
75
|
swap: "swap";
|
|
92
76
|
bridge: "bridge";
|
|
93
77
|
deposit: "deposit";
|
|
@@ -95,7 +79,7 @@ export declare const StepKindTolerant: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
95
79
|
}>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
96
80
|
unknown: string;
|
|
97
81
|
}, string>>]>;
|
|
98
|
-
export type
|
|
82
|
+
export type StepType = z.infer<typeof StepType>;
|
|
99
83
|
export declare const SUBMIT_STANDARDS: readonly ["permit3", "permit2", "erc-3009", "erc-2612"];
|
|
100
84
|
export declare const SubmitStandard: z.ZodEnum<{
|
|
101
85
|
permit3: "permit3";
|