@eco-foundation/api-schemas 0.1.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.
Files changed (102) hide show
  1. package/README.md +160 -0
  2. package/dist/build-digest.d.ts +2 -0
  3. package/dist/build-digest.js +10 -0
  4. package/dist/build-digest.js.map +1 -0
  5. package/dist/fixtures/index.d.ts +14 -0
  6. package/dist/fixtures/index.js +71 -0
  7. package/dist/fixtures/index.js.map +1 -0
  8. package/dist/fixtures/v1/chains-list.response.default.json +37 -0
  9. package/dist/fixtures/v1/deposit-addresses-create.request.gateway-erc20.json +16 -0
  10. package/dist/fixtures/v1/deposit-addresses-create.response.gateway-erc20.json +20 -0
  11. package/dist/fixtures/v1/deposit-addresses-lookup.response.default.json +24 -0
  12. package/dist/fixtures/v1/deposit-addresses-submit-erc-2612.request.deposit-address-target.json +23 -0
  13. package/dist/fixtures/v1/deposit-addresses-submit-erc-3009.request.deposit-address-target.json +24 -0
  14. package/dist/fixtures/v1/intents-status.response.gasless-handoff.json +30 -0
  15. package/dist/fixtures/v1/intents-status.response.intent-filled.json +21 -0
  16. package/dist/fixtures/v1/intents-status.response.unknown.json +20 -0
  17. package/dist/fixtures/v1/intents-status.response.wallet-page.json +27 -0
  18. package/dist/fixtures/v1/intents-submit-erc-3009.response.job.json +25 -0
  19. package/dist/fixtures/v1/intents-submit-permit2.request.quote-target.json +25 -0
  20. package/dist/fixtures/v1/intents-submit-permit3.request.quote-target.json +27 -0
  21. package/dist/fixtures/v1/quotes-create.request.public-swap.json +25 -0
  22. package/dist/fixtures/v1/quotes-create.response.all-quotes.json +455 -0
  23. package/dist/fixtures/v1/quotes-create.response.private-swap.json +152 -0
  24. package/dist/fixtures/v1/quotes-create.response.public-swap.json +158 -0
  25. package/dist/fixtures/v1/routes-list.response.default.json +26 -0
  26. package/dist/fixtures/v1/tokens-list.response.default.json +24 -0
  27. package/dist/generated/build-digest.json +7 -0
  28. package/dist/index.d.ts +6 -0
  29. package/dist/index.js +47 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/openapi.d.ts +2 -0
  32. package/dist/openapi.js +81 -0
  33. package/dist/openapi.js.map +1 -0
  34. package/dist/scripts/generate-build-digest.d.ts +1 -0
  35. package/dist/scripts/generate-build-digest.js +25 -0
  36. package/dist/scripts/generate-build-digest.js.map +1 -0
  37. package/dist/scripts/generate-openapi.d.ts +1 -0
  38. package/dist/scripts/generate-openapi.js +21 -0
  39. package/dist/scripts/generate-openapi.js.map +1 -0
  40. package/dist/testing/index.d.ts +7 -0
  41. package/dist/testing/index.js +27 -0
  42. package/dist/testing/index.js.map +1 -0
  43. package/dist/v1/endpoints/chains.d.ts +52 -0
  44. package/dist/v1/endpoints/chains.js +23 -0
  45. package/dist/v1/endpoints/chains.js.map +1 -0
  46. package/dist/v1/endpoints/deposit-addresses.d.ts +100 -0
  47. package/dist/v1/endpoints/deposit-addresses.js +61 -0
  48. package/dist/v1/endpoints/deposit-addresses.js.map +1 -0
  49. package/dist/v1/endpoints/quotes.d.ts +861 -0
  50. package/dist/v1/endpoints/quotes.js +297 -0
  51. package/dist/v1/endpoints/quotes.js.map +1 -0
  52. package/dist/v1/endpoints/registry.d.ts +641 -0
  53. package/dist/v1/endpoints/registry.js +108 -0
  54. package/dist/v1/endpoints/registry.js.map +1 -0
  55. package/dist/v1/endpoints/routes.d.ts +35 -0
  56. package/dist/v1/endpoints/routes.js +21 -0
  57. package/dist/v1/endpoints/routes.js.map +1 -0
  58. package/dist/v1/endpoints/status.d.ts +149 -0
  59. package/dist/v1/endpoints/status.js +110 -0
  60. package/dist/v1/endpoints/status.js.map +1 -0
  61. package/dist/v1/endpoints/submit.d.ts +271 -0
  62. package/dist/v1/endpoints/submit.js +127 -0
  63. package/dist/v1/endpoints/submit.js.map +1 -0
  64. package/dist/v1/endpoints/tokens.d.ts +59 -0
  65. package/dist/v1/endpoints/tokens.js +22 -0
  66. package/dist/v1/endpoints/tokens.js.map +1 -0
  67. package/dist/v1/enums.d.ts +133 -0
  68. package/dist/v1/enums.js +62 -0
  69. package/dist/v1/enums.js.map +1 -0
  70. package/dist/v1/errors/catalog.d.ts +247 -0
  71. package/dist/v1/errors/catalog.js +124 -0
  72. package/dist/v1/errors/catalog.js.map +1 -0
  73. package/dist/v1/errors/lock.d.ts +10 -0
  74. package/dist/v1/errors/lock.js +45 -0
  75. package/dist/v1/errors/lock.js.map +1 -0
  76. package/dist/v1/errors/problem.d.ts +50 -0
  77. package/dist/v1/errors/problem.js +82 -0
  78. package/dist/v1/errors/problem.js.map +1 -0
  79. package/dist/v1/index.d.ts +14 -0
  80. package/dist/v1/index.js +32 -0
  81. package/dist/v1/index.js.map +1 -0
  82. package/dist/v1/primitives.d.ts +33 -0
  83. package/dist/v1/primitives.js +63 -0
  84. package/dist/v1/primitives.js.map +1 -0
  85. package/dist/v1/signature.d.ts +10 -0
  86. package/dist/v1/signature.js +72 -0
  87. package/dist/v1/signature.js.map +1 -0
  88. package/dist/v1/tolerant.d.ts +4 -0
  89. package/dist/v1/tolerant.js +11 -0
  90. package/dist/v1/tolerant.js.map +1 -0
  91. package/dist/v1/types.d.ts +277 -0
  92. package/dist/v1/types.js +3 -0
  93. package/dist/v1/types.js.map +1 -0
  94. package/errors/catalog.lock.json +232 -0
  95. package/fixtures/quote-signature/vector-1.json +9 -0
  96. package/fixtures/quote-signature/vector-2.json +13 -0
  97. package/fixtures/quote-signature/vector-3.json +9 -0
  98. package/fixtures/signature-hash/vectors.json +58 -0
  99. package/openapi/v1.json +5225 -0
  100. package/package.json +71 -0
  101. package/v1/types.d.ts +7 -0
  102. package/v1/types.js +5 -0
@@ -0,0 +1,861 @@
1
+ import { z } from 'zod';
2
+ export declare const DestinationCallSchema: z.ZodObject<{
3
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
4
+ data: z.ZodString;
5
+ value: z.ZodString;
6
+ tokenOut: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
7
+ gasLimit: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ export declare const QuoteRequestSchema: z.ZodObject<{
10
+ swapType: z.ZodEnum<{
11
+ custom: "custom";
12
+ "exact-in": "exact-in";
13
+ "exact-out": "exact-out";
14
+ }>;
15
+ source: z.ZodObject<{
16
+ chainId: z.ZodNumber;
17
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
18
+ amount: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ destination: z.ZodObject<{
21
+ chainId: z.ZodNumber;
22
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
23
+ amount: z.ZodOptional<z.ZodString>;
24
+ recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
25
+ calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
27
+ data: z.ZodString;
28
+ value: z.ZodString;
29
+ tokenOut: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
30
+ gasLimit: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>;
33
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
34
+ refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
35
+ slippage: z.ZodOptional<z.ZodNumber>;
36
+ dappId: z.ZodOptional<z.ZodString>;
37
+ options: z.ZodOptional<z.ZodObject<{
38
+ deadlineSec: z.ZodOptional<z.ZodNumber>;
39
+ visibility: z.ZodOptional<z.ZodEnum<{
40
+ public: "public";
41
+ private: "private";
42
+ }>>;
43
+ maxCallDataSize: z.ZodOptional<z.ZodNumber>;
44
+ allQuotes: z.ZodOptional<z.ZodBoolean>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>;
47
+ export type QuoteRequest = z.input<typeof QuoteRequestSchema>;
48
+ export declare const FeeTokenSchema: z.ZodObject<{
49
+ chainId: z.ZodNumber;
50
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
51
+ symbol: z.ZodNullable<z.ZodString>;
52
+ decimals: z.ZodNullable<z.ZodNumber>;
53
+ }, z.core.$loose>;
54
+ export declare const FeeSchema: z.ZodObject<{
55
+ kind: z.ZodEnum<{
56
+ gas: "gas";
57
+ proving: "proving";
58
+ protocol: "protocol";
59
+ gateway: "gateway";
60
+ }>;
61
+ amount: z.ZodString;
62
+ token: z.ZodObject<{
63
+ chainId: z.ZodNumber;
64
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
65
+ symbol: z.ZodNullable<z.ZodString>;
66
+ decimals: z.ZodNullable<z.ZodNumber>;
67
+ }, z.core.$loose>;
68
+ estimate: z.ZodBoolean;
69
+ }, z.core.$loose>;
70
+ export declare const StepLegSchema: z.ZodObject<{
71
+ chainId: z.ZodNumber;
72
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
73
+ amount: z.ZodString;
74
+ }, z.core.$loose>;
75
+ export declare const StepSchema: z.ZodObject<{
76
+ kind: z.ZodEnum<{
77
+ swap: "swap";
78
+ bridge: "bridge";
79
+ deposit: "deposit";
80
+ transfer: "transfer";
81
+ }>;
82
+ tool: z.ZodString;
83
+ aggregator: z.ZodOptional<z.ZodString>;
84
+ from: z.ZodObject<{
85
+ chainId: z.ZodNumber;
86
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
87
+ amount: z.ZodString;
88
+ }, z.core.$loose>;
89
+ to: z.ZodObject<{
90
+ chainId: z.ZodNumber;
91
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
92
+ amount: z.ZodString;
93
+ }, z.core.$loose>;
94
+ fees: z.ZodArray<z.ZodObject<{
95
+ kind: z.ZodEnum<{
96
+ gas: "gas";
97
+ proving: "proving";
98
+ protocol: "protocol";
99
+ gateway: "gateway";
100
+ }>;
101
+ amount: z.ZodString;
102
+ token: z.ZodObject<{
103
+ chainId: z.ZodNumber;
104
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
105
+ symbol: z.ZodNullable<z.ZodString>;
106
+ decimals: z.ZodNullable<z.ZodNumber>;
107
+ }, z.core.$loose>;
108
+ estimate: z.ZodBoolean;
109
+ }, z.core.$loose>>;
110
+ estimatedDurationSec: z.ZodNumber;
111
+ }, z.core.$loose>;
112
+ export declare const RelatedIntentSchema: z.ZodObject<{
113
+ role: z.ZodEnum<{
114
+ local: "local";
115
+ "bucket-candidate": "bucket-candidate";
116
+ "stitched-destination": "stitched-destination";
117
+ }>;
118
+ intentHash: z.ZodString;
119
+ routeHash: z.ZodOptional<z.ZodString>;
120
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
121
+ }, z.core.$loose>;
122
+ export declare const SolverIdentitySchema: z.ZodObject<{
123
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
124
+ name: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$loose>;
126
+ export declare const EvmTransactionSchema: z.ZodObject<{
127
+ kind: z.ZodLiteral<"evm">;
128
+ chainId: z.ZodNumber;
129
+ to: z.ZodString;
130
+ data: z.ZodString;
131
+ value: z.ZodString;
132
+ }, z.core.$loose>;
133
+ export declare const SvmTransactionSchema: z.ZodObject<{
134
+ kind: z.ZodLiteral<"svm">;
135
+ chainId: z.ZodNumber;
136
+ serializedTransaction: z.ZodString;
137
+ }, z.core.$loose>;
138
+ export declare const FundingTransactionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
139
+ kind: z.ZodLiteral<"evm">;
140
+ chainId: z.ZodNumber;
141
+ to: z.ZodString;
142
+ data: z.ZodString;
143
+ value: z.ZodString;
144
+ }, z.core.$loose>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"svm">;
146
+ chainId: z.ZodNumber;
147
+ serializedTransaction: z.ZodString;
148
+ }, z.core.$loose>], "kind">;
149
+ export declare const IntentTokenAmountSchema: z.ZodObject<{
150
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
151
+ amount: z.ZodString;
152
+ }, z.core.$loose>;
153
+ export declare const IntentCallSchema: z.ZodObject<{
154
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
155
+ data: z.ZodString;
156
+ value: z.ZodString;
157
+ }, z.core.$loose>;
158
+ export declare const IntentRouteSchema: z.ZodObject<{
159
+ salt: z.ZodString;
160
+ deadline: z.ZodNumber;
161
+ source: z.ZodNumber;
162
+ destination: z.ZodNumber;
163
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
164
+ nativeAmount: z.ZodString;
165
+ tokens: z.ZodArray<z.ZodObject<{
166
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
167
+ amount: z.ZodString;
168
+ }, z.core.$loose>>;
169
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
170
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
171
+ data: z.ZodString;
172
+ value: z.ZodString;
173
+ }, z.core.$loose>>>;
174
+ }, z.core.$loose>;
175
+ export declare const IntentRewardSchema: z.ZodObject<{
176
+ deadline: z.ZodNumber;
177
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
178
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
179
+ nativeAmount: z.ZodString;
180
+ tokens: z.ZodArray<z.ZodObject<{
181
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
182
+ amount: z.ZodString;
183
+ }, z.core.$loose>>;
184
+ }, z.core.$loose>;
185
+ export declare const ExecutionSchema: z.ZodObject<{
186
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
187
+ kind: z.ZodLiteral<"evm">;
188
+ chainId: z.ZodNumber;
189
+ to: z.ZodString;
190
+ data: z.ZodString;
191
+ value: z.ZodString;
192
+ }, z.core.$loose>, z.ZodObject<{
193
+ kind: z.ZodLiteral<"svm">;
194
+ chainId: z.ZodNumber;
195
+ serializedTransaction: z.ZodString;
196
+ }, z.core.$loose>], "kind">;
197
+ intent: z.ZodObject<{
198
+ route: z.ZodObject<{
199
+ salt: z.ZodString;
200
+ deadline: z.ZodNumber;
201
+ source: z.ZodNumber;
202
+ destination: z.ZodNumber;
203
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
204
+ nativeAmount: z.ZodString;
205
+ tokens: z.ZodArray<z.ZodObject<{
206
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
207
+ amount: z.ZodString;
208
+ }, z.core.$loose>>;
209
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
210
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
211
+ data: z.ZodString;
212
+ value: z.ZodString;
213
+ }, z.core.$loose>>>;
214
+ }, z.core.$loose>;
215
+ reward: z.ZodObject<{
216
+ deadline: z.ZodNumber;
217
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
218
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
219
+ nativeAmount: z.ZodString;
220
+ tokens: z.ZodArray<z.ZodObject<{
221
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
222
+ amount: z.ZodString;
223
+ }, z.core.$loose>>;
224
+ }, z.core.$loose>;
225
+ }, z.core.$loose>;
226
+ encodedRoute: z.ZodNullable<z.ZodString>;
227
+ encodedReward: z.ZodNullable<z.ZodString>;
228
+ }, z.core.$loose>;
229
+ export declare const QuoteCoreSchema: z.ZodObject<{
230
+ id: z.ZodString;
231
+ swapType: z.ZodEnum<{
232
+ custom: "custom";
233
+ "exact-in": "exact-in";
234
+ "exact-out": "exact-out";
235
+ }>;
236
+ visibility: z.ZodEnum<{
237
+ public: "public";
238
+ private: "private";
239
+ }>;
240
+ guarantee: z.ZodEnum<{
241
+ "atomic-or-refund": "atomic-or-refund";
242
+ "calls-execute-or-refund": "calls-execute-or-refund";
243
+ }>;
244
+ source: z.ZodObject<{
245
+ chainId: z.ZodNumber;
246
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
247
+ amount: z.ZodString;
248
+ symbol: z.ZodNullable<z.ZodString>;
249
+ decimals: z.ZodNullable<z.ZodNumber>;
250
+ }, z.core.$loose>;
251
+ destination: z.ZodObject<{
252
+ chainId: z.ZodNumber;
253
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
254
+ amount: z.ZodString;
255
+ minAmountOut: z.ZodString;
256
+ recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
257
+ symbol: z.ZodNullable<z.ZodString>;
258
+ decimals: z.ZodNullable<z.ZodNumber>;
259
+ }, z.core.$loose>;
260
+ slippage: z.ZodNumber;
261
+ fees: z.ZodArray<z.ZodObject<{
262
+ kind: z.ZodEnum<{
263
+ gas: "gas";
264
+ proving: "proving";
265
+ protocol: "protocol";
266
+ gateway: "gateway";
267
+ }>;
268
+ amount: z.ZodString;
269
+ token: z.ZodObject<{
270
+ chainId: z.ZodNumber;
271
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
272
+ symbol: z.ZodNullable<z.ZodString>;
273
+ decimals: z.ZodNullable<z.ZodNumber>;
274
+ }, z.core.$loose>;
275
+ estimate: z.ZodBoolean;
276
+ }, z.core.$loose>>;
277
+ steps: z.ZodArray<z.ZodObject<{
278
+ kind: z.ZodEnum<{
279
+ swap: "swap";
280
+ bridge: "bridge";
281
+ deposit: "deposit";
282
+ transfer: "transfer";
283
+ }>;
284
+ tool: z.ZodString;
285
+ aggregator: z.ZodOptional<z.ZodString>;
286
+ from: z.ZodObject<{
287
+ chainId: z.ZodNumber;
288
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
289
+ amount: z.ZodString;
290
+ }, z.core.$loose>;
291
+ to: z.ZodObject<{
292
+ chainId: z.ZodNumber;
293
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
294
+ amount: z.ZodString;
295
+ }, z.core.$loose>;
296
+ fees: z.ZodArray<z.ZodObject<{
297
+ kind: z.ZodEnum<{
298
+ gas: "gas";
299
+ proving: "proving";
300
+ protocol: "protocol";
301
+ gateway: "gateway";
302
+ }>;
303
+ amount: z.ZodString;
304
+ token: z.ZodObject<{
305
+ chainId: z.ZodNumber;
306
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
307
+ symbol: z.ZodNullable<z.ZodString>;
308
+ decimals: z.ZodNullable<z.ZodNumber>;
309
+ }, z.core.$loose>;
310
+ estimate: z.ZodBoolean;
311
+ }, z.core.$loose>>;
312
+ estimatedDurationSec: z.ZodNumber;
313
+ }, z.core.$loose>>;
314
+ relatedIntents: z.ZodArray<z.ZodObject<{
315
+ role: z.ZodEnum<{
316
+ local: "local";
317
+ "bucket-candidate": "bucket-candidate";
318
+ "stitched-destination": "stitched-destination";
319
+ }>;
320
+ intentHash: z.ZodString;
321
+ routeHash: z.ZodOptional<z.ZodString>;
322
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
323
+ }, z.core.$loose>>;
324
+ solver: z.ZodObject<{
325
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
326
+ name: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$loose>;
328
+ intentHash: z.ZodNullable<z.ZodString>;
329
+ execution: z.ZodNullable<z.ZodObject<{
330
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
331
+ kind: z.ZodLiteral<"evm">;
332
+ chainId: z.ZodNumber;
333
+ to: z.ZodString;
334
+ data: z.ZodString;
335
+ value: z.ZodString;
336
+ }, z.core.$loose>, z.ZodObject<{
337
+ kind: z.ZodLiteral<"svm">;
338
+ chainId: z.ZodNumber;
339
+ serializedTransaction: z.ZodString;
340
+ }, z.core.$loose>], "kind">;
341
+ intent: z.ZodObject<{
342
+ route: z.ZodObject<{
343
+ salt: z.ZodString;
344
+ deadline: z.ZodNumber;
345
+ source: z.ZodNumber;
346
+ destination: z.ZodNumber;
347
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
348
+ nativeAmount: z.ZodString;
349
+ tokens: z.ZodArray<z.ZodObject<{
350
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
351
+ amount: z.ZodString;
352
+ }, z.core.$loose>>;
353
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
354
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
355
+ data: z.ZodString;
356
+ value: z.ZodString;
357
+ }, z.core.$loose>>>;
358
+ }, z.core.$loose>;
359
+ reward: z.ZodObject<{
360
+ deadline: z.ZodNumber;
361
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
362
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
363
+ nativeAmount: z.ZodString;
364
+ tokens: z.ZodArray<z.ZodObject<{
365
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
366
+ amount: z.ZodString;
367
+ }, z.core.$loose>>;
368
+ }, z.core.$loose>;
369
+ }, z.core.$loose>;
370
+ encodedRoute: z.ZodNullable<z.ZodString>;
371
+ encodedReward: z.ZodNullable<z.ZodString>;
372
+ }, z.core.$loose>>;
373
+ expiresAt: z.ZodNumber;
374
+ signature: z.ZodString;
375
+ }, z.core.$loose>;
376
+ export declare const RankedQuoteEntrySchema: z.ZodObject<{
377
+ id: z.ZodString;
378
+ swapType: z.ZodEnum<{
379
+ custom: "custom";
380
+ "exact-in": "exact-in";
381
+ "exact-out": "exact-out";
382
+ }>;
383
+ visibility: z.ZodEnum<{
384
+ public: "public";
385
+ private: "private";
386
+ }>;
387
+ guarantee: z.ZodEnum<{
388
+ "atomic-or-refund": "atomic-or-refund";
389
+ "calls-execute-or-refund": "calls-execute-or-refund";
390
+ }>;
391
+ source: z.ZodObject<{
392
+ chainId: z.ZodNumber;
393
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
394
+ amount: z.ZodString;
395
+ symbol: z.ZodNullable<z.ZodString>;
396
+ decimals: z.ZodNullable<z.ZodNumber>;
397
+ }, z.core.$loose>;
398
+ destination: z.ZodObject<{
399
+ chainId: z.ZodNumber;
400
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
401
+ amount: z.ZodString;
402
+ minAmountOut: z.ZodString;
403
+ recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
404
+ symbol: z.ZodNullable<z.ZodString>;
405
+ decimals: z.ZodNullable<z.ZodNumber>;
406
+ }, z.core.$loose>;
407
+ slippage: z.ZodNumber;
408
+ fees: z.ZodArray<z.ZodObject<{
409
+ kind: z.ZodEnum<{
410
+ gas: "gas";
411
+ proving: "proving";
412
+ protocol: "protocol";
413
+ gateway: "gateway";
414
+ }>;
415
+ amount: z.ZodString;
416
+ token: z.ZodObject<{
417
+ chainId: z.ZodNumber;
418
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
419
+ symbol: z.ZodNullable<z.ZodString>;
420
+ decimals: z.ZodNullable<z.ZodNumber>;
421
+ }, z.core.$loose>;
422
+ estimate: z.ZodBoolean;
423
+ }, z.core.$loose>>;
424
+ steps: z.ZodArray<z.ZodObject<{
425
+ kind: z.ZodEnum<{
426
+ swap: "swap";
427
+ bridge: "bridge";
428
+ deposit: "deposit";
429
+ transfer: "transfer";
430
+ }>;
431
+ tool: z.ZodString;
432
+ aggregator: z.ZodOptional<z.ZodString>;
433
+ from: z.ZodObject<{
434
+ chainId: z.ZodNumber;
435
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
436
+ amount: z.ZodString;
437
+ }, z.core.$loose>;
438
+ to: z.ZodObject<{
439
+ chainId: z.ZodNumber;
440
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
441
+ amount: z.ZodString;
442
+ }, z.core.$loose>;
443
+ fees: z.ZodArray<z.ZodObject<{
444
+ kind: z.ZodEnum<{
445
+ gas: "gas";
446
+ proving: "proving";
447
+ protocol: "protocol";
448
+ gateway: "gateway";
449
+ }>;
450
+ amount: z.ZodString;
451
+ token: z.ZodObject<{
452
+ chainId: z.ZodNumber;
453
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
454
+ symbol: z.ZodNullable<z.ZodString>;
455
+ decimals: z.ZodNullable<z.ZodNumber>;
456
+ }, z.core.$loose>;
457
+ estimate: z.ZodBoolean;
458
+ }, z.core.$loose>>;
459
+ estimatedDurationSec: z.ZodNumber;
460
+ }, z.core.$loose>>;
461
+ relatedIntents: z.ZodArray<z.ZodObject<{
462
+ role: z.ZodEnum<{
463
+ local: "local";
464
+ "bucket-candidate": "bucket-candidate";
465
+ "stitched-destination": "stitched-destination";
466
+ }>;
467
+ intentHash: z.ZodString;
468
+ routeHash: z.ZodOptional<z.ZodString>;
469
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
470
+ }, z.core.$loose>>;
471
+ solver: z.ZodObject<{
472
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
473
+ name: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$loose>;
475
+ intentHash: z.ZodNullable<z.ZodString>;
476
+ execution: z.ZodNullable<z.ZodObject<{
477
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
478
+ kind: z.ZodLiteral<"evm">;
479
+ chainId: z.ZodNumber;
480
+ to: z.ZodString;
481
+ data: z.ZodString;
482
+ value: z.ZodString;
483
+ }, z.core.$loose>, z.ZodObject<{
484
+ kind: z.ZodLiteral<"svm">;
485
+ chainId: z.ZodNumber;
486
+ serializedTransaction: z.ZodString;
487
+ }, z.core.$loose>], "kind">;
488
+ intent: z.ZodObject<{
489
+ route: z.ZodObject<{
490
+ salt: z.ZodString;
491
+ deadline: z.ZodNumber;
492
+ source: z.ZodNumber;
493
+ destination: z.ZodNumber;
494
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
495
+ nativeAmount: z.ZodString;
496
+ tokens: z.ZodArray<z.ZodObject<{
497
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
498
+ amount: z.ZodString;
499
+ }, z.core.$loose>>;
500
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
501
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
502
+ data: z.ZodString;
503
+ value: z.ZodString;
504
+ }, z.core.$loose>>>;
505
+ }, z.core.$loose>;
506
+ reward: z.ZodObject<{
507
+ deadline: z.ZodNumber;
508
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
509
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
510
+ nativeAmount: z.ZodString;
511
+ tokens: z.ZodArray<z.ZodObject<{
512
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
513
+ amount: z.ZodString;
514
+ }, z.core.$loose>>;
515
+ }, z.core.$loose>;
516
+ }, z.core.$loose>;
517
+ encodedRoute: z.ZodNullable<z.ZodString>;
518
+ encodedReward: z.ZodNullable<z.ZodString>;
519
+ }, z.core.$loose>>;
520
+ expiresAt: z.ZodNumber;
521
+ signature: z.ZodString;
522
+ }, z.core.$loose>;
523
+ export type RankedQuoteEntry = z.input<typeof RankedQuoteEntrySchema>;
524
+ export declare const QuoteResponseSchema: z.ZodObject<{
525
+ id: z.ZodString;
526
+ swapType: z.ZodEnum<{
527
+ custom: "custom";
528
+ "exact-in": "exact-in";
529
+ "exact-out": "exact-out";
530
+ }>;
531
+ visibility: z.ZodEnum<{
532
+ public: "public";
533
+ private: "private";
534
+ }>;
535
+ guarantee: z.ZodEnum<{
536
+ "atomic-or-refund": "atomic-or-refund";
537
+ "calls-execute-or-refund": "calls-execute-or-refund";
538
+ }>;
539
+ source: z.ZodObject<{
540
+ chainId: z.ZodNumber;
541
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
542
+ amount: z.ZodString;
543
+ symbol: z.ZodNullable<z.ZodString>;
544
+ decimals: z.ZodNullable<z.ZodNumber>;
545
+ }, z.core.$loose>;
546
+ destination: z.ZodObject<{
547
+ chainId: z.ZodNumber;
548
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
549
+ amount: z.ZodString;
550
+ minAmountOut: z.ZodString;
551
+ recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
552
+ symbol: z.ZodNullable<z.ZodString>;
553
+ decimals: z.ZodNullable<z.ZodNumber>;
554
+ }, z.core.$loose>;
555
+ slippage: z.ZodNumber;
556
+ fees: z.ZodArray<z.ZodObject<{
557
+ kind: z.ZodEnum<{
558
+ gas: "gas";
559
+ proving: "proving";
560
+ protocol: "protocol";
561
+ gateway: "gateway";
562
+ }>;
563
+ amount: z.ZodString;
564
+ token: z.ZodObject<{
565
+ chainId: z.ZodNumber;
566
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
567
+ symbol: z.ZodNullable<z.ZodString>;
568
+ decimals: z.ZodNullable<z.ZodNumber>;
569
+ }, z.core.$loose>;
570
+ estimate: z.ZodBoolean;
571
+ }, z.core.$loose>>;
572
+ steps: z.ZodArray<z.ZodObject<{
573
+ kind: z.ZodEnum<{
574
+ swap: "swap";
575
+ bridge: "bridge";
576
+ deposit: "deposit";
577
+ transfer: "transfer";
578
+ }>;
579
+ tool: z.ZodString;
580
+ aggregator: z.ZodOptional<z.ZodString>;
581
+ from: z.ZodObject<{
582
+ chainId: z.ZodNumber;
583
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
584
+ amount: z.ZodString;
585
+ }, z.core.$loose>;
586
+ to: z.ZodObject<{
587
+ chainId: z.ZodNumber;
588
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
589
+ amount: z.ZodString;
590
+ }, z.core.$loose>;
591
+ fees: z.ZodArray<z.ZodObject<{
592
+ kind: z.ZodEnum<{
593
+ gas: "gas";
594
+ proving: "proving";
595
+ protocol: "protocol";
596
+ gateway: "gateway";
597
+ }>;
598
+ amount: z.ZodString;
599
+ token: z.ZodObject<{
600
+ chainId: z.ZodNumber;
601
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
602
+ symbol: z.ZodNullable<z.ZodString>;
603
+ decimals: z.ZodNullable<z.ZodNumber>;
604
+ }, z.core.$loose>;
605
+ estimate: z.ZodBoolean;
606
+ }, z.core.$loose>>;
607
+ estimatedDurationSec: z.ZodNumber;
608
+ }, z.core.$loose>>;
609
+ relatedIntents: z.ZodArray<z.ZodObject<{
610
+ role: z.ZodEnum<{
611
+ local: "local";
612
+ "bucket-candidate": "bucket-candidate";
613
+ "stitched-destination": "stitched-destination";
614
+ }>;
615
+ intentHash: z.ZodString;
616
+ routeHash: z.ZodOptional<z.ZodString>;
617
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
618
+ }, z.core.$loose>>;
619
+ solver: z.ZodObject<{
620
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
621
+ name: z.ZodOptional<z.ZodString>;
622
+ }, z.core.$loose>;
623
+ intentHash: z.ZodNullable<z.ZodString>;
624
+ execution: z.ZodNullable<z.ZodObject<{
625
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
626
+ kind: z.ZodLiteral<"evm">;
627
+ chainId: z.ZodNumber;
628
+ to: z.ZodString;
629
+ data: z.ZodString;
630
+ value: z.ZodString;
631
+ }, z.core.$loose>, z.ZodObject<{
632
+ kind: z.ZodLiteral<"svm">;
633
+ chainId: z.ZodNumber;
634
+ serializedTransaction: z.ZodString;
635
+ }, z.core.$loose>], "kind">;
636
+ intent: z.ZodObject<{
637
+ route: z.ZodObject<{
638
+ salt: z.ZodString;
639
+ deadline: z.ZodNumber;
640
+ source: z.ZodNumber;
641
+ destination: z.ZodNumber;
642
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
643
+ nativeAmount: z.ZodString;
644
+ tokens: z.ZodArray<z.ZodObject<{
645
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
646
+ amount: z.ZodString;
647
+ }, z.core.$loose>>;
648
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
649
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
650
+ data: z.ZodString;
651
+ value: z.ZodString;
652
+ }, z.core.$loose>>>;
653
+ }, z.core.$loose>;
654
+ reward: z.ZodObject<{
655
+ deadline: z.ZodNumber;
656
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
657
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
658
+ nativeAmount: z.ZodString;
659
+ tokens: z.ZodArray<z.ZodObject<{
660
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
661
+ amount: z.ZodString;
662
+ }, z.core.$loose>>;
663
+ }, z.core.$loose>;
664
+ }, z.core.$loose>;
665
+ encodedRoute: z.ZodNullable<z.ZodString>;
666
+ encodedReward: z.ZodNullable<z.ZodString>;
667
+ }, z.core.$loose>>;
668
+ expiresAt: z.ZodNumber;
669
+ signature: z.ZodString;
670
+ quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
671
+ id: z.ZodString;
672
+ swapType: z.ZodEnum<{
673
+ custom: "custom";
674
+ "exact-in": "exact-in";
675
+ "exact-out": "exact-out";
676
+ }>;
677
+ visibility: z.ZodEnum<{
678
+ public: "public";
679
+ private: "private";
680
+ }>;
681
+ guarantee: z.ZodEnum<{
682
+ "atomic-or-refund": "atomic-or-refund";
683
+ "calls-execute-or-refund": "calls-execute-or-refund";
684
+ }>;
685
+ source: z.ZodObject<{
686
+ chainId: z.ZodNumber;
687
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
688
+ amount: z.ZodString;
689
+ symbol: z.ZodNullable<z.ZodString>;
690
+ decimals: z.ZodNullable<z.ZodNumber>;
691
+ }, z.core.$loose>;
692
+ destination: z.ZodObject<{
693
+ chainId: z.ZodNumber;
694
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
695
+ amount: z.ZodString;
696
+ minAmountOut: z.ZodString;
697
+ recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
698
+ symbol: z.ZodNullable<z.ZodString>;
699
+ decimals: z.ZodNullable<z.ZodNumber>;
700
+ }, z.core.$loose>;
701
+ slippage: z.ZodNumber;
702
+ fees: z.ZodArray<z.ZodObject<{
703
+ kind: z.ZodEnum<{
704
+ gas: "gas";
705
+ proving: "proving";
706
+ protocol: "protocol";
707
+ gateway: "gateway";
708
+ }>;
709
+ amount: z.ZodString;
710
+ token: z.ZodObject<{
711
+ chainId: z.ZodNumber;
712
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
713
+ symbol: z.ZodNullable<z.ZodString>;
714
+ decimals: z.ZodNullable<z.ZodNumber>;
715
+ }, z.core.$loose>;
716
+ estimate: z.ZodBoolean;
717
+ }, z.core.$loose>>;
718
+ steps: z.ZodArray<z.ZodObject<{
719
+ kind: z.ZodEnum<{
720
+ swap: "swap";
721
+ bridge: "bridge";
722
+ deposit: "deposit";
723
+ transfer: "transfer";
724
+ }>;
725
+ tool: z.ZodString;
726
+ aggregator: z.ZodOptional<z.ZodString>;
727
+ from: z.ZodObject<{
728
+ chainId: z.ZodNumber;
729
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
730
+ amount: z.ZodString;
731
+ }, z.core.$loose>;
732
+ to: z.ZodObject<{
733
+ chainId: z.ZodNumber;
734
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
735
+ amount: z.ZodString;
736
+ }, z.core.$loose>;
737
+ fees: z.ZodArray<z.ZodObject<{
738
+ kind: z.ZodEnum<{
739
+ gas: "gas";
740
+ proving: "proving";
741
+ protocol: "protocol";
742
+ gateway: "gateway";
743
+ }>;
744
+ amount: z.ZodString;
745
+ token: z.ZodObject<{
746
+ chainId: z.ZodNumber;
747
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
748
+ symbol: z.ZodNullable<z.ZodString>;
749
+ decimals: z.ZodNullable<z.ZodNumber>;
750
+ }, z.core.$loose>;
751
+ estimate: z.ZodBoolean;
752
+ }, z.core.$loose>>;
753
+ estimatedDurationSec: z.ZodNumber;
754
+ }, z.core.$loose>>;
755
+ relatedIntents: z.ZodArray<z.ZodObject<{
756
+ role: z.ZodEnum<{
757
+ local: "local";
758
+ "bucket-candidate": "bucket-candidate";
759
+ "stitched-destination": "stitched-destination";
760
+ }>;
761
+ intentHash: z.ZodString;
762
+ routeHash: z.ZodOptional<z.ZodString>;
763
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
764
+ }, z.core.$loose>>;
765
+ solver: z.ZodObject<{
766
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
767
+ name: z.ZodOptional<z.ZodString>;
768
+ }, z.core.$loose>;
769
+ intentHash: z.ZodNullable<z.ZodString>;
770
+ execution: z.ZodNullable<z.ZodObject<{
771
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
772
+ kind: z.ZodLiteral<"evm">;
773
+ chainId: z.ZodNumber;
774
+ to: z.ZodString;
775
+ data: z.ZodString;
776
+ value: z.ZodString;
777
+ }, z.core.$loose>, z.ZodObject<{
778
+ kind: z.ZodLiteral<"svm">;
779
+ chainId: z.ZodNumber;
780
+ serializedTransaction: z.ZodString;
781
+ }, z.core.$loose>], "kind">;
782
+ intent: z.ZodObject<{
783
+ route: z.ZodObject<{
784
+ salt: z.ZodString;
785
+ deadline: z.ZodNumber;
786
+ source: z.ZodNumber;
787
+ destination: z.ZodNumber;
788
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
789
+ nativeAmount: z.ZodString;
790
+ tokens: z.ZodArray<z.ZodObject<{
791
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
792
+ amount: z.ZodString;
793
+ }, z.core.$loose>>;
794
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
795
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
796
+ data: z.ZodString;
797
+ value: z.ZodString;
798
+ }, z.core.$loose>>>;
799
+ }, z.core.$loose>;
800
+ reward: z.ZodObject<{
801
+ deadline: z.ZodNumber;
802
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
803
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
804
+ nativeAmount: z.ZodString;
805
+ tokens: z.ZodArray<z.ZodObject<{
806
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
807
+ amount: z.ZodString;
808
+ }, z.core.$loose>>;
809
+ }, z.core.$loose>;
810
+ }, z.core.$loose>;
811
+ encodedRoute: z.ZodNullable<z.ZodString>;
812
+ encodedReward: z.ZodNullable<z.ZodString>;
813
+ }, z.core.$loose>>;
814
+ expiresAt: z.ZodNumber;
815
+ signature: z.ZodString;
816
+ }, z.core.$loose>>>;
817
+ }, z.core.$loose>;
818
+ export type QuoteResponse = z.input<typeof QuoteResponseSchema>;
819
+ export interface QuoteSignatureInput {
820
+ id: string;
821
+ intentHashes: readonly string[];
822
+ expiresAt: number;
823
+ sourceChainId: number;
824
+ }
825
+ export declare const QUOTE_SIGNATURE_TYPES: {
826
+ readonly Quote: readonly [{
827
+ readonly name: "id";
828
+ readonly type: "string";
829
+ }, {
830
+ readonly name: "intentHashes";
831
+ readonly type: "bytes32[]";
832
+ }, {
833
+ readonly name: "expiresAt";
834
+ readonly type: "uint64";
835
+ }];
836
+ };
837
+ export declare function quoteSignaturePayload(input: QuoteSignatureInput): {
838
+ domain: {
839
+ name: string;
840
+ version: string;
841
+ chainId: number;
842
+ };
843
+ types: {
844
+ readonly Quote: readonly [{
845
+ readonly name: "id";
846
+ readonly type: "string";
847
+ }, {
848
+ readonly name: "intentHashes";
849
+ readonly type: "bytes32[]";
850
+ }, {
851
+ readonly name: "expiresAt";
852
+ readonly type: "uint64";
853
+ }];
854
+ };
855
+ primaryType: "Quote";
856
+ message: {
857
+ id: string;
858
+ intentHashes: string[];
859
+ expiresAt: number;
860
+ };
861
+ };