@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,455 @@
1
+ {
2
+ "endpointId": "quotes.create",
3
+ "direction": "response",
4
+ "variant": "all-quotes",
5
+ "method": "POST",
6
+ "path": "/v1/quotes",
7
+ "expectedStatus": 200,
8
+ "sideEffect": true,
9
+ "payload": {
10
+ "id": "quote:8f14e45f-ea3c-4c2d-9b6e-1a2b3c4d5e6f",
11
+ "swapType": "exact-in",
12
+ "visibility": "public",
13
+ "guarantee": "atomic-or-refund",
14
+ "source": {
15
+ "chainId": 8453,
16
+ "token": "0x1111111111111111111111111111111111111111",
17
+ "amount": "1043221",
18
+ "symbol": "USDC",
19
+ "decimals": 6
20
+ },
21
+ "destination": {
22
+ "chainId": 10,
23
+ "token": "0x2222222222222222222222222222222222222222",
24
+ "amount": "1043221",
25
+ "minAmountOut": "1038005",
26
+ "recipient": "0x3333333333333333333333333333333333333333",
27
+ "symbol": "USDC",
28
+ "decimals": 6
29
+ },
30
+ "slippage": 0.005,
31
+ "fees": [
32
+ {
33
+ "kind": "gas",
34
+ "amount": "1200",
35
+ "token": {
36
+ "chainId": 8453,
37
+ "address": "0x1111111111111111111111111111111111111111",
38
+ "symbol": "USDC",
39
+ "decimals": 6
40
+ },
41
+ "estimate": true
42
+ }
43
+ ],
44
+ "steps": [
45
+ {
46
+ "kind": "swap",
47
+ "tool": "uniswap-v3",
48
+ "aggregator": "ecoswap",
49
+ "from": {
50
+ "chainId": 8453,
51
+ "token": "0x1111111111111111111111111111111111111111",
52
+ "amount": "1043221"
53
+ },
54
+ "to": {
55
+ "chainId": 8453,
56
+ "token": "0x2222222222222222222222222222222222222222",
57
+ "amount": "1043000"
58
+ },
59
+ "fees": [
60
+ {
61
+ "kind": "protocol",
62
+ "amount": "221",
63
+ "token": {
64
+ "chainId": 8453,
65
+ "address": "0x1111111111111111111111111111111111111111",
66
+ "symbol": null,
67
+ "decimals": null
68
+ },
69
+ "estimate": false
70
+ }
71
+ ],
72
+ "estimatedDurationSec": 3
73
+ },
74
+ {
75
+ "kind": "bridge",
76
+ "tool": "eco",
77
+ "from": {
78
+ "chainId": 8453,
79
+ "token": "0x1111111111111111111111111111111111111111",
80
+ "amount": "1043221"
81
+ },
82
+ "to": {
83
+ "chainId": 10,
84
+ "token": "0x2222222222222222222222222222222222222222",
85
+ "amount": "1038005"
86
+ },
87
+ "fees": [],
88
+ "estimatedDurationSec": 20
89
+ }
90
+ ],
91
+ "relatedIntents": [
92
+ {
93
+ "role": "local",
94
+ "intentHash": "0xabababababababababababababababababababababababababababababababab"
95
+ },
96
+ {
97
+ "role": "bucket-candidate",
98
+ "intentHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
99
+ "routeHash": "0x1212121212121212121212121212121212121212121212121212121212121212",
100
+ "bucketIndex": 0
101
+ }
102
+ ],
103
+ "solver": {
104
+ "id": "0x3333333333333333333333333333333333333333",
105
+ "name": "eco"
106
+ },
107
+ "intentHash": "0xabababababababababababababababababababababababababababababababab",
108
+ "execution": {
109
+ "transaction": {
110
+ "kind": "evm",
111
+ "chainId": 8453,
112
+ "to": "0x1111111111111111111111111111111111111111",
113
+ "data": "0xdeadbeef",
114
+ "value": "0"
115
+ },
116
+ "intent": {
117
+ "route": {
118
+ "salt": "0xabababababababababababababababababababababababababababababababab",
119
+ "deadline": 1767226200,
120
+ "source": 8453,
121
+ "destination": 10,
122
+ "portal": "0x2222222222222222222222222222222222222222",
123
+ "nativeAmount": "0",
124
+ "tokens": [
125
+ {
126
+ "token": "0x2222222222222222222222222222222222222222",
127
+ "amount": "1038005"
128
+ }
129
+ ],
130
+ "calls": [
131
+ {
132
+ "target": "0x2222222222222222222222222222222222222222",
133
+ "data": "0xbeef",
134
+ "value": "0"
135
+ }
136
+ ]
137
+ },
138
+ "reward": {
139
+ "deadline": 1767229800,
140
+ "creator": "0x3333333333333333333333333333333333333333",
141
+ "prover": "0x1111111111111111111111111111111111111111",
142
+ "nativeAmount": "0",
143
+ "tokens": [
144
+ {
145
+ "token": "0x1111111111111111111111111111111111111111",
146
+ "amount": "1043221"
147
+ }
148
+ ]
149
+ }
150
+ },
151
+ "encodedRoute": "0xdead",
152
+ "encodedReward": "0xbeef"
153
+ },
154
+ "expiresAt": 1767225600,
155
+ "signature": "0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
156
+ "quotes": [
157
+ {
158
+ "id": "quote:8f14e45f-ea3c-4c2d-9b6e-1a2b3c4d5e6f",
159
+ "swapType": "exact-in",
160
+ "visibility": "public",
161
+ "guarantee": "atomic-or-refund",
162
+ "source": {
163
+ "chainId": 8453,
164
+ "token": "0x1111111111111111111111111111111111111111",
165
+ "amount": "1043221",
166
+ "symbol": "USDC",
167
+ "decimals": 6
168
+ },
169
+ "destination": {
170
+ "chainId": 10,
171
+ "token": "0x2222222222222222222222222222222222222222",
172
+ "amount": "1043221",
173
+ "minAmountOut": "1038005",
174
+ "recipient": "0x3333333333333333333333333333333333333333",
175
+ "symbol": "USDC",
176
+ "decimals": 6
177
+ },
178
+ "slippage": 0.005,
179
+ "fees": [
180
+ {
181
+ "kind": "gas",
182
+ "amount": "1200",
183
+ "token": {
184
+ "chainId": 8453,
185
+ "address": "0x1111111111111111111111111111111111111111",
186
+ "symbol": "USDC",
187
+ "decimals": 6
188
+ },
189
+ "estimate": true
190
+ }
191
+ ],
192
+ "steps": [
193
+ {
194
+ "kind": "swap",
195
+ "tool": "uniswap-v3",
196
+ "aggregator": "ecoswap",
197
+ "from": {
198
+ "chainId": 8453,
199
+ "token": "0x1111111111111111111111111111111111111111",
200
+ "amount": "1043221"
201
+ },
202
+ "to": {
203
+ "chainId": 8453,
204
+ "token": "0x2222222222222222222222222222222222222222",
205
+ "amount": "1043000"
206
+ },
207
+ "fees": [
208
+ {
209
+ "kind": "protocol",
210
+ "amount": "221",
211
+ "token": {
212
+ "chainId": 8453,
213
+ "address": "0x1111111111111111111111111111111111111111",
214
+ "symbol": null,
215
+ "decimals": null
216
+ },
217
+ "estimate": false
218
+ }
219
+ ],
220
+ "estimatedDurationSec": 3
221
+ },
222
+ {
223
+ "kind": "bridge",
224
+ "tool": "eco",
225
+ "from": {
226
+ "chainId": 8453,
227
+ "token": "0x1111111111111111111111111111111111111111",
228
+ "amount": "1043221"
229
+ },
230
+ "to": {
231
+ "chainId": 10,
232
+ "token": "0x2222222222222222222222222222222222222222",
233
+ "amount": "1038005"
234
+ },
235
+ "fees": [],
236
+ "estimatedDurationSec": 20
237
+ }
238
+ ],
239
+ "relatedIntents": [
240
+ {
241
+ "role": "local",
242
+ "intentHash": "0xabababababababababababababababababababababababababababababababab"
243
+ },
244
+ {
245
+ "role": "bucket-candidate",
246
+ "intentHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
247
+ "routeHash": "0x1212121212121212121212121212121212121212121212121212121212121212",
248
+ "bucketIndex": 0
249
+ }
250
+ ],
251
+ "solver": {
252
+ "id": "0x3333333333333333333333333333333333333333",
253
+ "name": "eco"
254
+ },
255
+ "intentHash": "0xabababababababababababababababababababababababababababababababab",
256
+ "execution": {
257
+ "transaction": {
258
+ "kind": "evm",
259
+ "chainId": 8453,
260
+ "to": "0x1111111111111111111111111111111111111111",
261
+ "data": "0xdeadbeef",
262
+ "value": "0"
263
+ },
264
+ "intent": {
265
+ "route": {
266
+ "salt": "0xabababababababababababababababababababababababababababababababab",
267
+ "deadline": 1767226200,
268
+ "source": 8453,
269
+ "destination": 10,
270
+ "portal": "0x2222222222222222222222222222222222222222",
271
+ "nativeAmount": "0",
272
+ "tokens": [
273
+ {
274
+ "token": "0x2222222222222222222222222222222222222222",
275
+ "amount": "1038005"
276
+ }
277
+ ],
278
+ "calls": [
279
+ {
280
+ "target": "0x2222222222222222222222222222222222222222",
281
+ "data": "0xbeef",
282
+ "value": "0"
283
+ }
284
+ ]
285
+ },
286
+ "reward": {
287
+ "deadline": 1767229800,
288
+ "creator": "0x3333333333333333333333333333333333333333",
289
+ "prover": "0x1111111111111111111111111111111111111111",
290
+ "nativeAmount": "0",
291
+ "tokens": [
292
+ {
293
+ "token": "0x1111111111111111111111111111111111111111",
294
+ "amount": "1043221"
295
+ }
296
+ ]
297
+ }
298
+ },
299
+ "encodedRoute": "0xdead",
300
+ "encodedReward": "0xbeef"
301
+ },
302
+ "expiresAt": 1767225600,
303
+ "signature": "0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd"
304
+ },
305
+ {
306
+ "id": "quote:1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
307
+ "swapType": "exact-in",
308
+ "visibility": "public",
309
+ "guarantee": "atomic-or-refund",
310
+ "source": {
311
+ "chainId": 8453,
312
+ "token": "0x1111111111111111111111111111111111111111",
313
+ "amount": "1043221",
314
+ "symbol": "USDC",
315
+ "decimals": 6
316
+ },
317
+ "destination": {
318
+ "chainId": 10,
319
+ "token": "0x2222222222222222222222222222222222222222",
320
+ "amount": "1041000",
321
+ "minAmountOut": "1035795",
322
+ "recipient": "0x3333333333333333333333333333333333333333",
323
+ "symbol": "USDC",
324
+ "decimals": 6
325
+ },
326
+ "slippage": 0.005,
327
+ "fees": [
328
+ {
329
+ "kind": "gas",
330
+ "amount": "1200",
331
+ "token": {
332
+ "chainId": 8453,
333
+ "address": "0x1111111111111111111111111111111111111111",
334
+ "symbol": "USDC",
335
+ "decimals": 6
336
+ },
337
+ "estimate": true
338
+ }
339
+ ],
340
+ "steps": [
341
+ {
342
+ "kind": "swap",
343
+ "tool": "uniswap-v3",
344
+ "aggregator": "ecoswap",
345
+ "from": {
346
+ "chainId": 8453,
347
+ "token": "0x1111111111111111111111111111111111111111",
348
+ "amount": "1043221"
349
+ },
350
+ "to": {
351
+ "chainId": 8453,
352
+ "token": "0x2222222222222222222222222222222222222222",
353
+ "amount": "1043000"
354
+ },
355
+ "fees": [
356
+ {
357
+ "kind": "protocol",
358
+ "amount": "221",
359
+ "token": {
360
+ "chainId": 8453,
361
+ "address": "0x1111111111111111111111111111111111111111",
362
+ "symbol": null,
363
+ "decimals": null
364
+ },
365
+ "estimate": false
366
+ }
367
+ ],
368
+ "estimatedDurationSec": 3
369
+ },
370
+ {
371
+ "kind": "bridge",
372
+ "tool": "eco",
373
+ "from": {
374
+ "chainId": 8453,
375
+ "token": "0x1111111111111111111111111111111111111111",
376
+ "amount": "1043221"
377
+ },
378
+ "to": {
379
+ "chainId": 10,
380
+ "token": "0x2222222222222222222222222222222222222222",
381
+ "amount": "1038005"
382
+ },
383
+ "fees": [],
384
+ "estimatedDurationSec": 20
385
+ }
386
+ ],
387
+ "relatedIntents": [
388
+ {
389
+ "role": "local",
390
+ "intentHash": "0xabababababababababababababababababababababababababababababababab"
391
+ },
392
+ {
393
+ "role": "bucket-candidate",
394
+ "intentHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
395
+ "routeHash": "0x1212121212121212121212121212121212121212121212121212121212121212",
396
+ "bucketIndex": 0
397
+ }
398
+ ],
399
+ "solver": {
400
+ "id": "0x1111111111111111111111111111111111111111",
401
+ "name": "runner-up"
402
+ },
403
+ "intentHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
404
+ "execution": {
405
+ "transaction": {
406
+ "kind": "evm",
407
+ "chainId": 8453,
408
+ "to": "0x1111111111111111111111111111111111111111",
409
+ "data": "0xdeadbeef",
410
+ "value": "0"
411
+ },
412
+ "intent": {
413
+ "route": {
414
+ "salt": "0xabababababababababababababababababababababababababababababababab",
415
+ "deadline": 1767226200,
416
+ "source": 8453,
417
+ "destination": 10,
418
+ "portal": "0x2222222222222222222222222222222222222222",
419
+ "nativeAmount": "0",
420
+ "tokens": [
421
+ {
422
+ "token": "0x2222222222222222222222222222222222222222",
423
+ "amount": "1038005"
424
+ }
425
+ ],
426
+ "calls": [
427
+ {
428
+ "target": "0x2222222222222222222222222222222222222222",
429
+ "data": "0xbeef",
430
+ "value": "0"
431
+ }
432
+ ]
433
+ },
434
+ "reward": {
435
+ "deadline": 1767229800,
436
+ "creator": "0x3333333333333333333333333333333333333333",
437
+ "prover": "0x1111111111111111111111111111111111111111",
438
+ "nativeAmount": "0",
439
+ "tokens": [
440
+ {
441
+ "token": "0x1111111111111111111111111111111111111111",
442
+ "amount": "1043221"
443
+ }
444
+ ]
445
+ }
446
+ },
447
+ "encodedRoute": "0xdead",
448
+ "encodedReward": "0xbeef"
449
+ },
450
+ "expiresAt": 1767225600,
451
+ "signature": "0x9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a"
452
+ }
453
+ ]
454
+ }
455
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "endpointId": "quotes.create",
3
+ "direction": "response",
4
+ "variant": "private-swap",
5
+ "method": "POST",
6
+ "path": "/v1/quotes",
7
+ "expectedStatus": 200,
8
+ "sideEffect": true,
9
+ "payload": {
10
+ "id": "quote:8f14e45f-ea3c-4c2d-9b6e-1a2b3c4d5e6f",
11
+ "swapType": "exact-in",
12
+ "visibility": "private",
13
+ "guarantee": "atomic-or-refund",
14
+ "source": {
15
+ "chainId": 8453,
16
+ "token": "0x1111111111111111111111111111111111111111",
17
+ "amount": "1043221",
18
+ "symbol": "USDC",
19
+ "decimals": 6
20
+ },
21
+ "destination": {
22
+ "chainId": 10,
23
+ "token": "0x2222222222222222222222222222222222222222",
24
+ "amount": "1043221",
25
+ "minAmountOut": "1038005",
26
+ "recipient": "0x3333333333333333333333333333333333333333",
27
+ "symbol": "USDC",
28
+ "decimals": 6
29
+ },
30
+ "slippage": 0.005,
31
+ "fees": [
32
+ {
33
+ "kind": "gas",
34
+ "amount": "1200",
35
+ "token": {
36
+ "chainId": 8453,
37
+ "address": "0x1111111111111111111111111111111111111111",
38
+ "symbol": "USDC",
39
+ "decimals": 6
40
+ },
41
+ "estimate": true
42
+ }
43
+ ],
44
+ "steps": [
45
+ {
46
+ "kind": "swap",
47
+ "tool": "uniswap-v3",
48
+ "aggregator": "ecoswap",
49
+ "from": {
50
+ "chainId": 8453,
51
+ "token": "0x1111111111111111111111111111111111111111",
52
+ "amount": "1043221"
53
+ },
54
+ "to": {
55
+ "chainId": 8453,
56
+ "token": "0x2222222222222222222222222222222222222222",
57
+ "amount": "1043000"
58
+ },
59
+ "fees": [
60
+ {
61
+ "kind": "protocol",
62
+ "amount": "221",
63
+ "token": {
64
+ "chainId": 8453,
65
+ "address": "0x1111111111111111111111111111111111111111",
66
+ "symbol": null,
67
+ "decimals": null
68
+ },
69
+ "estimate": false
70
+ }
71
+ ],
72
+ "estimatedDurationSec": 3
73
+ },
74
+ {
75
+ "kind": "bridge",
76
+ "tool": "eco",
77
+ "from": {
78
+ "chainId": 8453,
79
+ "token": "0x1111111111111111111111111111111111111111",
80
+ "amount": "1043221"
81
+ },
82
+ "to": {
83
+ "chainId": 10,
84
+ "token": "0x2222222222222222222222222222222222222222",
85
+ "amount": "1038005"
86
+ },
87
+ "fees": [],
88
+ "estimatedDurationSec": 20
89
+ }
90
+ ],
91
+ "relatedIntents": [
92
+ {
93
+ "role": "local",
94
+ "intentHash": "0xabababababababababababababababababababababababababababababababab"
95
+ },
96
+ {
97
+ "role": "bucket-candidate",
98
+ "intentHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
99
+ "routeHash": "0x1212121212121212121212121212121212121212121212121212121212121212",
100
+ "bucketIndex": 0
101
+ }
102
+ ],
103
+ "solver": {
104
+ "id": "0x3333333333333333333333333333333333333333",
105
+ "name": "eco"
106
+ },
107
+ "intentHash": "0xabababababababababababababababababababababababababababababababab",
108
+ "execution": {
109
+ "transaction": {
110
+ "kind": "evm",
111
+ "chainId": 8453,
112
+ "to": "0x1111111111111111111111111111111111111111",
113
+ "data": "0xdeadbeef",
114
+ "value": "0"
115
+ },
116
+ "intent": {
117
+ "route": {
118
+ "salt": "0xabababababababababababababababababababababababababababababababab",
119
+ "deadline": 1767226200,
120
+ "source": 8453,
121
+ "destination": 10,
122
+ "portal": "0x2222222222222222222222222222222222222222",
123
+ "nativeAmount": "0",
124
+ "tokens": [
125
+ {
126
+ "token": "0x2222222222222222222222222222222222222222",
127
+ "amount": "1038005"
128
+ }
129
+ ],
130
+ "calls": null
131
+ },
132
+ "reward": {
133
+ "deadline": 1767229800,
134
+ "creator": "0x3333333333333333333333333333333333333333",
135
+ "prover": "0x1111111111111111111111111111111111111111",
136
+ "nativeAmount": "0",
137
+ "tokens": [
138
+ {
139
+ "token": "0x1111111111111111111111111111111111111111",
140
+ "amount": "1043221"
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ "encodedRoute": null,
146
+ "encodedReward": null
147
+ },
148
+ "expiresAt": 1767225600,
149
+ "signature": "0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
150
+ "quotes": null
151
+ }
152
+ }