@eco-foundation/api-schemas 0.8.0 → 0.9.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 (33) hide show
  1. package/README.md +89 -12
  2. package/dist/fixtures/index.js +6 -6
  3. package/dist/fixtures/index.js.map +1 -1
  4. package/dist/fixtures/v1/deposit-addresses-create.request.gateway-erc20.json +1 -1
  5. package/dist/fixtures/v1/deposit-addresses-create.response.gateway-erc20.json +1 -1
  6. package/dist/fixtures/v1/deposit-addresses-lookup.response.default.json +1 -1
  7. package/dist/fixtures/v1/intents-status.response.quote-filled-detail.json +60 -0
  8. package/dist/fixtures/v1/{quotes-create.request.public-swap.json → quotes-create.request.swap.json} +4 -4
  9. package/dist/fixtures/v1/quotes-create.response.all-quotes.json +288 -81
  10. package/dist/fixtures/v1/quotes-create.response.swap.json +228 -0
  11. package/dist/generated/build-digest.json +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/openapi.js +18 -0
  14. package/dist/openapi.js.map +1 -1
  15. package/dist/v1/endpoints/deposit-addresses.d.ts +12 -12
  16. package/dist/v1/endpoints/deposit-addresses.js +9 -9
  17. package/dist/v1/endpoints/quotes.d.ts +343 -193
  18. package/dist/v1/endpoints/quotes.js +50 -60
  19. package/dist/v1/endpoints/quotes.js.map +1 -1
  20. package/dist/v1/endpoints/registry.d.ts +114 -76
  21. package/dist/v1/endpoints/routes.js +1 -1
  22. package/dist/v1/endpoints/routes.js.map +1 -1
  23. package/dist/v1/endpoints/status.d.ts +4 -0
  24. package/dist/v1/endpoints/status.js +1 -0
  25. package/dist/v1/endpoints/status.js.map +1 -1
  26. package/dist/v1/enums.d.ts +12 -30
  27. package/dist/v1/enums.js +10 -15
  28. package/dist/v1/enums.js.map +1 -1
  29. package/dist/v1/types.d.ts +42 -42
  30. package/openapi/v1.json +1076 -673
  31. package/package.json +1 -1
  32. package/dist/fixtures/v1/quotes-create.response.private-swap.json +0 -153
  33. package/dist/fixtures/v1/quotes-create.response.public-swap.json +0 -159
package/openapi/v1.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "schema": {
43
43
  "type": "object",
44
44
  "properties": {
45
- "swapType": {
45
+ "type": {
46
46
  "type": "string",
47
47
  "enum": [
48
48
  "exact-in",
@@ -87,11 +87,36 @@
87
87
  "maxLength": 78,
88
88
  "pattern": "^(0|[1-9]\\d*)$",
89
89
  "description": "Base-10 unsigned integer string in smallest units; must be greater than 0"
90
+ },
91
+ "funder": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string",
95
+ "pattern": "^0x[0-9a-fA-F]{40}$"
96
+ },
97
+ {
98
+ "anyOf": [
99
+ {
100
+ "type": "string",
101
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
102
+ },
103
+ {
104
+ "type": "string",
105
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ "type": "string",
111
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
112
+ }
113
+ ]
90
114
  }
91
115
  },
92
116
  "required": [
93
117
  "chainId",
94
- "token"
118
+ "token",
119
+ "funder"
95
120
  ],
96
121
  "additionalProperties": false
97
122
  },
@@ -241,30 +266,6 @@
241
266
  ],
242
267
  "additionalProperties": false
243
268
  },
244
- "funder": {
245
- "anyOf": [
246
- {
247
- "type": "string",
248
- "pattern": "^0x[0-9a-fA-F]{40}$"
249
- },
250
- {
251
- "anyOf": [
252
- {
253
- "type": "string",
254
- "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
255
- },
256
- {
257
- "type": "string",
258
- "pattern": "^0x41[0-9a-fA-F]{40}$"
259
- }
260
- ]
261
- },
262
- {
263
- "type": "string",
264
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
265
- }
266
- ]
267
- },
268
269
  "refundRecipient": {
269
270
  "anyOf": [
270
271
  {
@@ -308,13 +309,6 @@
308
309
  "exclusiveMinimum": 0,
309
310
  "maximum": 9007199254740991
310
311
  },
311
- "visibility": {
312
- "type": "string",
313
- "enum": [
314
- "public",
315
- "private"
316
- ]
317
- },
318
312
  "allQuotes": {
319
313
  "type": "boolean"
320
314
  }
@@ -323,10 +317,10 @@
323
317
  }
324
318
  },
325
319
  "required": [
326
- "swapType",
320
+ "type",
327
321
  "source",
328
322
  "destination",
329
- "funder"
323
+ "dappId"
330
324
  ],
331
325
  "additionalProperties": false
332
326
  }
@@ -345,7 +339,7 @@
345
339
  "type": "string",
346
340
  "pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
347
341
  },
348
- "swapType": {
342
+ "type": {
349
343
  "type": "string",
350
344
  "enum": [
351
345
  "exact-in",
@@ -353,20 +347,6 @@
353
347
  "custom"
354
348
  ]
355
349
  },
356
- "visibility": {
357
- "type": "string",
358
- "enum": [
359
- "public",
360
- "private"
361
- ]
362
- },
363
- "guarantee": {
364
- "type": "string",
365
- "enum": [
366
- "atomic-or-refund",
367
- "calls-execute-or-refund"
368
- ]
369
- },
370
350
  "source": {
371
351
  "type": "object",
372
352
  "properties": {
@@ -404,6 +384,30 @@
404
384
  "maxLength": 78,
405
385
  "pattern": "^(0|[1-9]\\d*)$"
406
386
  },
387
+ "funder": {
388
+ "anyOf": [
389
+ {
390
+ "type": "string",
391
+ "pattern": "^0x[0-9a-fA-F]{40}$"
392
+ },
393
+ {
394
+ "anyOf": [
395
+ {
396
+ "type": "string",
397
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
398
+ },
399
+ {
400
+ "type": "string",
401
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
402
+ }
403
+ ]
404
+ },
405
+ {
406
+ "type": "string",
407
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
408
+ }
409
+ ]
410
+ },
407
411
  "symbol": {
408
412
  "anyOf": [
409
413
  {
@@ -431,10 +435,10 @@
431
435
  "chainId",
432
436
  "token",
433
437
  "amount",
438
+ "funder",
434
439
  "symbol",
435
440
  "decimals"
436
- ],
437
- "additionalProperties": {}
441
+ ]
438
442
  },
439
443
  "destination": {
440
444
  "type": "object",
@@ -468,7 +472,7 @@
468
472
  }
469
473
  ]
470
474
  },
471
- "amount": {
475
+ "amountOut": {
472
476
  "type": "string",
473
477
  "maxLength": 78,
474
478
  "pattern": "^(0|[1-9]\\d*)$"
@@ -535,13 +539,12 @@
535
539
  "required": [
536
540
  "chainId",
537
541
  "token",
538
- "amount",
542
+ "amountOut",
539
543
  "minAmountOut",
540
544
  "recipient",
541
545
  "symbol",
542
546
  "decimals"
543
- ],
544
- "additionalProperties": {}
547
+ ]
545
548
  },
546
549
  "slippage": {
547
550
  "type": "number",
@@ -553,7 +556,7 @@
553
556
  "items": {
554
557
  "type": "object",
555
558
  "properties": {
556
- "kind": {
559
+ "type": {
557
560
  "type": "string",
558
561
  "enum": [
559
562
  "gas",
@@ -627,20 +630,18 @@
627
630
  "address",
628
631
  "symbol",
629
632
  "decimals"
630
- ],
631
- "additionalProperties": {}
633
+ ]
632
634
  },
633
635
  "estimate": {
634
636
  "type": "boolean"
635
637
  }
636
638
  },
637
639
  "required": [
638
- "kind",
640
+ "type",
639
641
  "amount",
640
642
  "token",
641
643
  "estimate"
642
- ],
643
- "additionalProperties": {}
644
+ ]
644
645
  }
645
646
  },
646
647
  "steps": {
@@ -648,7 +649,7 @@
648
649
  "items": {
649
650
  "type": "object",
650
651
  "properties": {
651
- "kind": {
652
+ "type": {
652
653
  "type": "string",
653
654
  "enum": [
654
655
  "swap",
@@ -657,7 +658,7 @@
657
658
  "transfer"
658
659
  ]
659
660
  },
660
- "tool": {
661
+ "provider": {
661
662
  "type": "string",
662
663
  "minLength": 1
663
664
  },
@@ -707,8 +708,7 @@
707
708
  "chainId",
708
709
  "token",
709
710
  "amount"
710
- ],
711
- "additionalProperties": {}
711
+ ]
712
712
  },
713
713
  "to": {
714
714
  "type": "object",
@@ -752,15 +752,14 @@
752
752
  "chainId",
753
753
  "token",
754
754
  "amount"
755
- ],
756
- "additionalProperties": {}
755
+ ]
757
756
  },
758
757
  "fees": {
759
758
  "type": "array",
760
759
  "items": {
761
760
  "type": "object",
762
761
  "properties": {
763
- "kind": {
762
+ "type": {
764
763
  "type": "string",
765
764
  "enum": [
766
765
  "gas",
@@ -834,211 +833,476 @@
834
833
  "address",
835
834
  "symbol",
836
835
  "decimals"
837
- ],
838
- "additionalProperties": {}
836
+ ]
839
837
  },
840
838
  "estimate": {
841
839
  "type": "boolean"
842
840
  }
843
841
  },
844
842
  "required": [
845
- "kind",
843
+ "type",
846
844
  "amount",
847
845
  "token",
848
846
  "estimate"
849
- ],
850
- "additionalProperties": {}
847
+ ]
851
848
  }
852
849
  },
853
850
  "estimatedDurationSec": {
854
851
  "type": "integer",
855
852
  "minimum": 0,
856
853
  "maximum": 9007199254740991
857
- }
858
- },
859
- "required": [
860
- "kind",
861
- "tool",
862
- "from",
863
- "to",
864
- "fees",
865
- "estimatedDurationSec"
866
- ],
867
- "additionalProperties": {}
868
- }
869
- },
870
- "relatedIntents": {
871
- "type": "array",
872
- "items": {
873
- "type": "object",
874
- "properties": {
875
- "role": {
876
- "type": "string",
877
- "enum": [
878
- "local",
879
- "bucket-candidate",
880
- "stitched-destination"
881
- ]
882
- },
883
- "intentHash": {
884
- "type": "string",
885
- "pattern": "^0x[0-9a-fA-F]{64}$"
886
- },
887
- "routeHash": {
888
- "type": "string",
889
- "pattern": "^0x[0-9a-fA-F]{64}$"
890
854
  },
891
- "bucketIndex": {
892
- "type": "integer",
893
- "minimum": 0,
894
- "maximum": 9007199254740991
895
- }
896
- },
897
- "required": [
898
- "role",
899
- "intentHash"
900
- ],
901
- "additionalProperties": {}
902
- }
903
- },
904
- "solver": {
905
- "type": "object",
906
- "properties": {
907
- "id": {
908
- "anyOf": [
909
- {
910
- "type": "string",
911
- "pattern": "^0x[0-9a-fA-F]{40}$"
912
- },
913
- {
914
- "anyOf": [
915
- {
855
+ "intents": {
856
+ "type": "array",
857
+ "items": {
858
+ "type": "object",
859
+ "properties": {
860
+ "role": {
916
861
  "type": "string",
917
- "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
862
+ "enum": [
863
+ "local",
864
+ "bucket-candidate",
865
+ "stitched-destination"
866
+ ]
918
867
  },
919
- {
868
+ "intentHash": {
920
869
  "type": "string",
921
- "pattern": "^0x41[0-9a-fA-F]{40}$"
922
- }
923
- ]
924
- },
925
- {
926
- "type": "string",
927
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
928
- }
929
- ]
930
- },
931
- "name": {
932
- "type": "string",
933
- "minLength": 1
934
- }
935
- },
936
- "required": [
937
- "id"
938
- ],
939
- "additionalProperties": {}
940
- },
941
- "intentHash": {
942
- "anyOf": [
943
- {
944
- "type": "string",
945
- "pattern": "^0x[0-9a-fA-F]{64}$"
946
- },
947
- {
948
- "type": "null"
949
- }
950
- ]
951
- },
952
- "execution": {
953
- "anyOf": [
954
- {
955
- "type": "object",
956
- "properties": {
957
- "transaction": {
958
- "oneOf": [
959
- {
960
- "type": "object",
961
- "properties": {
962
- "kind": {
963
- "type": "string",
964
- "const": "evm"
965
- },
966
- "chainId": {
967
- "type": "integer",
968
- "exclusiveMinimum": 0,
969
- "maximum": 9007199254740991
970
- },
971
- "to": {
972
- "type": "string",
973
- "pattern": "^0x[0-9a-fA-F]{40}$"
974
- },
975
- "data": {
976
- "type": "string",
977
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
978
- },
979
- "value": {
980
- "type": "string",
981
- "maxLength": 78,
982
- "pattern": "^(0|[1-9]\\d*)$"
983
- }
984
- },
985
- "required": [
986
- "kind",
987
- "chainId",
988
- "to",
989
- "data",
990
- "value"
991
- ],
992
- "additionalProperties": {}
870
+ "pattern": "^0x[0-9a-fA-F]{64}$"
993
871
  },
994
- {
872
+ "routeHash": {
873
+ "type": "string",
874
+ "pattern": "^0x[0-9a-fA-F]{64}$"
875
+ },
876
+ "bucketIndex": {
877
+ "type": "integer",
878
+ "minimum": 0,
879
+ "maximum": 9007199254740991
880
+ },
881
+ "intent": {
995
882
  "type": "object",
996
883
  "properties": {
997
- "kind": {
998
- "type": "string",
999
- "const": "svm"
1000
- },
1001
- "chainId": {
1002
- "type": "integer",
1003
- "exclusiveMinimum": 0,
1004
- "maximum": 9007199254740991
1005
- },
1006
- "feePayer": {
1007
- "type": "string",
1008
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1009
- },
1010
- "instructions": {
1011
- "minItems": 1,
1012
- "type": "array",
1013
- "items": {
1014
- "type": "object",
1015
- "properties": {
1016
- "programId": {
1017
- "type": "string",
1018
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1019
- },
1020
- "accounts": {
1021
- "type": "array",
1022
- "items": {
1023
- "type": "object",
1024
- "properties": {
1025
- "pubkey": {
1026
- "type": "string",
1027
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1028
- },
1029
- "isSigner": {
1030
- "type": "boolean"
1031
- },
1032
- "isWritable": {
1033
- "type": "boolean"
1034
- }
1035
- },
1036
- "required": [
1037
- "pubkey",
1038
- "isSigner",
884
+ "route": {
885
+ "type": "object",
886
+ "properties": {
887
+ "salt": {
888
+ "type": "string",
889
+ "pattern": "^0x[0-9a-fA-F]{64}$"
890
+ },
891
+ "deadline": {
892
+ "type": "integer",
893
+ "minimum": 0,
894
+ "maximum": 4102444800
895
+ },
896
+ "source": {
897
+ "type": "integer",
898
+ "exclusiveMinimum": 0,
899
+ "maximum": 9007199254740991
900
+ },
901
+ "destination": {
902
+ "type": "integer",
903
+ "exclusiveMinimum": 0,
904
+ "maximum": 9007199254740991
905
+ },
906
+ "portal": {
907
+ "anyOf": [
908
+ {
909
+ "type": "string",
910
+ "pattern": "^0x[0-9a-fA-F]{40}$"
911
+ },
912
+ {
913
+ "anyOf": [
914
+ {
915
+ "type": "string",
916
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
917
+ },
918
+ {
919
+ "type": "string",
920
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
921
+ }
922
+ ]
923
+ },
924
+ {
925
+ "type": "string",
926
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
927
+ }
928
+ ]
929
+ },
930
+ "nativeAmount": {
931
+ "type": "string",
932
+ "maxLength": 78,
933
+ "pattern": "^(0|[1-9]\\d*)$"
934
+ },
935
+ "tokens": {
936
+ "type": "array",
937
+ "items": {
938
+ "type": "object",
939
+ "properties": {
940
+ "token": {
941
+ "anyOf": [
942
+ {
943
+ "type": "string",
944
+ "pattern": "^0x[0-9a-fA-F]{40}$"
945
+ },
946
+ {
947
+ "anyOf": [
948
+ {
949
+ "type": "string",
950
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
951
+ },
952
+ {
953
+ "type": "string",
954
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
955
+ }
956
+ ]
957
+ },
958
+ {
959
+ "type": "string",
960
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
961
+ }
962
+ ]
963
+ },
964
+ "amount": {
965
+ "type": "string",
966
+ "maxLength": 78,
967
+ "pattern": "^(0|[1-9]\\d*)$"
968
+ }
969
+ },
970
+ "required": [
971
+ "token",
972
+ "amount"
973
+ ]
974
+ }
975
+ },
976
+ "calls": {
977
+ "type": "array",
978
+ "items": {
979
+ "type": "object",
980
+ "properties": {
981
+ "target": {
982
+ "anyOf": [
983
+ {
984
+ "type": "string",
985
+ "pattern": "^0x[0-9a-fA-F]{40}$"
986
+ },
987
+ {
988
+ "anyOf": [
989
+ {
990
+ "type": "string",
991
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
992
+ },
993
+ {
994
+ "type": "string",
995
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
996
+ }
997
+ ]
998
+ },
999
+ {
1000
+ "type": "string",
1001
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1002
+ }
1003
+ ]
1004
+ },
1005
+ "data": {
1006
+ "type": "string",
1007
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1008
+ },
1009
+ "value": {
1010
+ "type": "string",
1011
+ "maxLength": 78,
1012
+ "pattern": "^(0|[1-9]\\d*)$"
1013
+ }
1014
+ },
1015
+ "required": [
1016
+ "target",
1017
+ "data",
1018
+ "value"
1019
+ ]
1020
+ }
1021
+ }
1022
+ },
1023
+ "required": [
1024
+ "salt",
1025
+ "deadline",
1026
+ "source",
1027
+ "destination",
1028
+ "portal",
1029
+ "nativeAmount",
1030
+ "tokens",
1031
+ "calls"
1032
+ ]
1033
+ },
1034
+ "reward": {
1035
+ "type": "object",
1036
+ "properties": {
1037
+ "deadline": {
1038
+ "type": "integer",
1039
+ "minimum": 0,
1040
+ "maximum": 4102444800
1041
+ },
1042
+ "creator": {
1043
+ "anyOf": [
1044
+ {
1045
+ "type": "string",
1046
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1047
+ },
1048
+ {
1049
+ "anyOf": [
1050
+ {
1051
+ "type": "string",
1052
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1053
+ },
1054
+ {
1055
+ "type": "string",
1056
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
1057
+ }
1058
+ ]
1059
+ },
1060
+ {
1061
+ "type": "string",
1062
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1063
+ }
1064
+ ]
1065
+ },
1066
+ "prover": {
1067
+ "anyOf": [
1068
+ {
1069
+ "type": "string",
1070
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1071
+ },
1072
+ {
1073
+ "anyOf": [
1074
+ {
1075
+ "type": "string",
1076
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1077
+ },
1078
+ {
1079
+ "type": "string",
1080
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
1081
+ }
1082
+ ]
1083
+ },
1084
+ {
1085
+ "type": "string",
1086
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1087
+ }
1088
+ ]
1089
+ },
1090
+ "nativeAmount": {
1091
+ "type": "string",
1092
+ "maxLength": 78,
1093
+ "pattern": "^(0|[1-9]\\d*)$"
1094
+ },
1095
+ "tokens": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "token": {
1101
+ "anyOf": [
1102
+ {
1103
+ "type": "string",
1104
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1105
+ },
1106
+ {
1107
+ "anyOf": [
1108
+ {
1109
+ "type": "string",
1110
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1111
+ },
1112
+ {
1113
+ "type": "string",
1114
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
1115
+ }
1116
+ ]
1117
+ },
1118
+ {
1119
+ "type": "string",
1120
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1121
+ }
1122
+ ]
1123
+ },
1124
+ "amount": {
1125
+ "type": "string",
1126
+ "maxLength": 78,
1127
+ "pattern": "^(0|[1-9]\\d*)$"
1128
+ }
1129
+ },
1130
+ "required": [
1131
+ "token",
1132
+ "amount"
1133
+ ]
1134
+ }
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "deadline",
1139
+ "creator",
1140
+ "prover",
1141
+ "nativeAmount",
1142
+ "tokens"
1143
+ ]
1144
+ }
1145
+ },
1146
+ "required": [
1147
+ "route",
1148
+ "reward"
1149
+ ]
1150
+ }
1151
+ },
1152
+ "required": [
1153
+ "role",
1154
+ "intentHash",
1155
+ "intent"
1156
+ ]
1157
+ }
1158
+ }
1159
+ },
1160
+ "required": [
1161
+ "type",
1162
+ "provider",
1163
+ "from",
1164
+ "to",
1165
+ "fees",
1166
+ "estimatedDurationSec",
1167
+ "intents"
1168
+ ]
1169
+ }
1170
+ },
1171
+ "solver": {
1172
+ "type": "object",
1173
+ "properties": {
1174
+ "id": {
1175
+ "anyOf": [
1176
+ {
1177
+ "type": "string",
1178
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1179
+ },
1180
+ {
1181
+ "anyOf": [
1182
+ {
1183
+ "type": "string",
1184
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1185
+ },
1186
+ {
1187
+ "type": "string",
1188
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
1189
+ }
1190
+ ]
1191
+ },
1192
+ {
1193
+ "type": "string",
1194
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1195
+ }
1196
+ ]
1197
+ },
1198
+ "name": {
1199
+ "type": "string",
1200
+ "minLength": 1
1201
+ }
1202
+ },
1203
+ "required": [
1204
+ "id"
1205
+ ]
1206
+ },
1207
+ "intentHash": {
1208
+ "anyOf": [
1209
+ {
1210
+ "type": "string",
1211
+ "pattern": "^0x[0-9a-fA-F]{64}$"
1212
+ },
1213
+ {
1214
+ "type": "null"
1215
+ }
1216
+ ]
1217
+ },
1218
+ "execution": {
1219
+ "anyOf": [
1220
+ {
1221
+ "type": "object",
1222
+ "properties": {
1223
+ "transaction": {
1224
+ "oneOf": [
1225
+ {
1226
+ "type": "object",
1227
+ "properties": {
1228
+ "type": {
1229
+ "type": "string",
1230
+ "const": "evm"
1231
+ },
1232
+ "chainId": {
1233
+ "type": "integer",
1234
+ "exclusiveMinimum": 0,
1235
+ "maximum": 9007199254740991
1236
+ },
1237
+ "to": {
1238
+ "type": "string",
1239
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1240
+ },
1241
+ "data": {
1242
+ "type": "string",
1243
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1244
+ },
1245
+ "value": {
1246
+ "type": "string",
1247
+ "maxLength": 78,
1248
+ "pattern": "^(0|[1-9]\\d*)$"
1249
+ }
1250
+ },
1251
+ "required": [
1252
+ "type",
1253
+ "chainId",
1254
+ "to",
1255
+ "data",
1256
+ "value"
1257
+ ]
1258
+ },
1259
+ {
1260
+ "type": "object",
1261
+ "properties": {
1262
+ "type": {
1263
+ "type": "string",
1264
+ "const": "svm"
1265
+ },
1266
+ "chainId": {
1267
+ "type": "integer",
1268
+ "exclusiveMinimum": 0,
1269
+ "maximum": 9007199254740991
1270
+ },
1271
+ "feePayer": {
1272
+ "type": "string",
1273
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1274
+ },
1275
+ "instructions": {
1276
+ "minItems": 1,
1277
+ "type": "array",
1278
+ "items": {
1279
+ "type": "object",
1280
+ "properties": {
1281
+ "programId": {
1282
+ "type": "string",
1283
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1284
+ },
1285
+ "accounts": {
1286
+ "type": "array",
1287
+ "items": {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "pubkey": {
1291
+ "type": "string",
1292
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1293
+ },
1294
+ "isSigner": {
1295
+ "type": "boolean"
1296
+ },
1297
+ "isWritable": {
1298
+ "type": "boolean"
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "pubkey",
1303
+ "isSigner",
1039
1304
  "isWritable"
1040
- ],
1041
- "additionalProperties": {}
1305
+ ]
1042
1306
  }
1043
1307
  },
1044
1308
  "data": {
@@ -1051,18 +1315,16 @@
1051
1315
  "programId",
1052
1316
  "accounts",
1053
1317
  "data"
1054
- ],
1055
- "additionalProperties": {}
1318
+ ]
1056
1319
  }
1057
1320
  }
1058
1321
  },
1059
1322
  "required": [
1060
- "kind",
1323
+ "type",
1061
1324
  "chainId",
1062
1325
  "feePayer",
1063
1326
  "instructions"
1064
- ],
1065
- "additionalProperties": {}
1327
+ ]
1066
1328
  }
1067
1329
  ]
1068
1330
  },
@@ -1158,63 +1420,54 @@
1158
1420
  "required": [
1159
1421
  "token",
1160
1422
  "amount"
1161
- ],
1162
- "additionalProperties": {}
1423
+ ]
1163
1424
  }
1164
1425
  },
1165
1426
  "calls": {
1166
- "anyOf": [
1167
- {
1168
- "type": "array",
1169
- "items": {
1170
- "type": "object",
1171
- "properties": {
1172
- "target": {
1427
+ "type": "array",
1428
+ "items": {
1429
+ "type": "object",
1430
+ "properties": {
1431
+ "target": {
1432
+ "anyOf": [
1433
+ {
1434
+ "type": "string",
1435
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1436
+ },
1437
+ {
1173
1438
  "anyOf": [
1174
1439
  {
1175
1440
  "type": "string",
1176
- "pattern": "^0x[0-9a-fA-F]{40}$"
1177
- },
1178
- {
1179
- "anyOf": [
1180
- {
1181
- "type": "string",
1182
- "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1183
- },
1184
- {
1185
- "type": "string",
1186
- "pattern": "^0x41[0-9a-fA-F]{40}$"
1187
- }
1188
- ]
1441
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1189
1442
  },
1190
1443
  {
1191
1444
  "type": "string",
1192
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1445
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
1193
1446
  }
1194
1447
  ]
1195
1448
  },
1196
- "data": {
1197
- "type": "string",
1198
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1199
- },
1200
- "value": {
1449
+ {
1201
1450
  "type": "string",
1202
- "maxLength": 78,
1203
- "pattern": "^(0|[1-9]\\d*)$"
1451
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1204
1452
  }
1205
- },
1206
- "required": [
1207
- "target",
1208
- "data",
1209
- "value"
1210
- ],
1211
- "additionalProperties": {}
1453
+ ]
1454
+ },
1455
+ "data": {
1456
+ "type": "string",
1457
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1458
+ },
1459
+ "value": {
1460
+ "type": "string",
1461
+ "maxLength": 78,
1462
+ "pattern": "^(0|[1-9]\\d*)$"
1212
1463
  }
1213
1464
  },
1214
- {
1215
- "type": "null"
1216
- }
1217
- ]
1465
+ "required": [
1466
+ "target",
1467
+ "data",
1468
+ "value"
1469
+ ]
1470
+ }
1218
1471
  }
1219
1472
  },
1220
1473
  "required": [
@@ -1226,8 +1479,7 @@
1226
1479
  "nativeAmount",
1227
1480
  "tokens",
1228
1481
  "calls"
1229
- ],
1230
- "additionalProperties": {}
1482
+ ]
1231
1483
  },
1232
1484
  "reward": {
1233
1485
  "type": "object",
@@ -1328,8 +1580,7 @@
1328
1580
  "required": [
1329
1581
  "token",
1330
1582
  "amount"
1331
- ],
1332
- "additionalProperties": {}
1583
+ ]
1333
1584
  }
1334
1585
  }
1335
1586
  },
@@ -1338,37 +1589,13 @@
1338
1589
  "creator",
1339
1590
  "prover",
1340
1591
  "nativeAmount",
1341
- "tokens"
1342
- ],
1343
- "additionalProperties": {}
1344
- }
1345
- },
1346
- "required": [
1347
- "route",
1348
- "reward"
1349
- ],
1350
- "additionalProperties": {}
1351
- },
1352
- "encodedRoute": {
1353
- "anyOf": [
1354
- {
1355
- "type": "string",
1356
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1357
- },
1358
- {
1359
- "type": "null"
1360
- }
1361
- ]
1362
- },
1363
- "encodedReward": {
1364
- "anyOf": [
1365
- {
1366
- "type": "string",
1367
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
1368
- },
1369
- {
1370
- "type": "null"
1592
+ "tokens"
1593
+ ]
1371
1594
  }
1595
+ },
1596
+ "required": [
1597
+ "route",
1598
+ "reward"
1372
1599
  ]
1373
1600
  },
1374
1601
  "vault": {
@@ -1406,11 +1633,8 @@
1406
1633
  },
1407
1634
  "required": [
1408
1635
  "transaction",
1409
- "intent",
1410
- "encodedRoute",
1411
- "encodedReward"
1412
- ],
1413
- "additionalProperties": {}
1636
+ "intent"
1637
+ ]
1414
1638
  },
1415
1639
  {
1416
1640
  "type": "null"
@@ -1438,7 +1662,7 @@
1438
1662
  "type": "string",
1439
1663
  "pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1440
1664
  },
1441
- "swapType": {
1665
+ "type": {
1442
1666
  "type": "string",
1443
1667
  "enum": [
1444
1668
  "exact-in",
@@ -1446,20 +1670,6 @@
1446
1670
  "custom"
1447
1671
  ]
1448
1672
  },
1449
- "visibility": {
1450
- "type": "string",
1451
- "enum": [
1452
- "public",
1453
- "private"
1454
- ]
1455
- },
1456
- "guarantee": {
1457
- "type": "string",
1458
- "enum": [
1459
- "atomic-or-refund",
1460
- "calls-execute-or-refund"
1461
- ]
1462
- },
1463
1673
  "source": {
1464
1674
  "type": "object",
1465
1675
  "properties": {
@@ -1497,6 +1707,30 @@
1497
1707
  "maxLength": 78,
1498
1708
  "pattern": "^(0|[1-9]\\d*)$"
1499
1709
  },
1710
+ "funder": {
1711
+ "anyOf": [
1712
+ {
1713
+ "type": "string",
1714
+ "pattern": "^0x[0-9a-fA-F]{40}$"
1715
+ },
1716
+ {
1717
+ "anyOf": [
1718
+ {
1719
+ "type": "string",
1720
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
1721
+ },
1722
+ {
1723
+ "type": "string",
1724
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
1725
+ }
1726
+ ]
1727
+ },
1728
+ {
1729
+ "type": "string",
1730
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1731
+ }
1732
+ ]
1733
+ },
1500
1734
  "symbol": {
1501
1735
  "anyOf": [
1502
1736
  {
@@ -1524,10 +1758,10 @@
1524
1758
  "chainId",
1525
1759
  "token",
1526
1760
  "amount",
1761
+ "funder",
1527
1762
  "symbol",
1528
1763
  "decimals"
1529
- ],
1530
- "additionalProperties": {}
1764
+ ]
1531
1765
  },
1532
1766
  "destination": {
1533
1767
  "type": "object",
@@ -1561,7 +1795,7 @@
1561
1795
  }
1562
1796
  ]
1563
1797
  },
1564
- "amount": {
1798
+ "amountOut": {
1565
1799
  "type": "string",
1566
1800
  "maxLength": 78,
1567
1801
  "pattern": "^(0|[1-9]\\d*)$"
@@ -1628,13 +1862,12 @@
1628
1862
  "required": [
1629
1863
  "chainId",
1630
1864
  "token",
1631
- "amount",
1865
+ "amountOut",
1632
1866
  "minAmountOut",
1633
1867
  "recipient",
1634
1868
  "symbol",
1635
1869
  "decimals"
1636
- ],
1637
- "additionalProperties": {}
1870
+ ]
1638
1871
  },
1639
1872
  "slippage": {
1640
1873
  "type": "number",
@@ -1646,7 +1879,7 @@
1646
1879
  "items": {
1647
1880
  "type": "object",
1648
1881
  "properties": {
1649
- "kind": {
1882
+ "type": {
1650
1883
  "type": "string",
1651
1884
  "enum": [
1652
1885
  "gas",
@@ -1720,20 +1953,18 @@
1720
1953
  "address",
1721
1954
  "symbol",
1722
1955
  "decimals"
1723
- ],
1724
- "additionalProperties": {}
1956
+ ]
1725
1957
  },
1726
1958
  "estimate": {
1727
1959
  "type": "boolean"
1728
1960
  }
1729
1961
  },
1730
1962
  "required": [
1731
- "kind",
1963
+ "type",
1732
1964
  "amount",
1733
1965
  "token",
1734
1966
  "estimate"
1735
- ],
1736
- "additionalProperties": {}
1967
+ ]
1737
1968
  }
1738
1969
  },
1739
1970
  "steps": {
@@ -1741,7 +1972,7 @@
1741
1972
  "items": {
1742
1973
  "type": "object",
1743
1974
  "properties": {
1744
- "kind": {
1975
+ "type": {
1745
1976
  "type": "string",
1746
1977
  "enum": [
1747
1978
  "swap",
@@ -1750,7 +1981,7 @@
1750
1981
  "transfer"
1751
1982
  ]
1752
1983
  },
1753
- "tool": {
1984
+ "provider": {
1754
1985
  "type": "string",
1755
1986
  "minLength": 1
1756
1987
  },
@@ -1800,8 +2031,7 @@
1800
2031
  "chainId",
1801
2032
  "token",
1802
2033
  "amount"
1803
- ],
1804
- "additionalProperties": {}
2034
+ ]
1805
2035
  },
1806
2036
  "to": {
1807
2037
  "type": "object",
@@ -1845,15 +2075,14 @@
1845
2075
  "chainId",
1846
2076
  "token",
1847
2077
  "amount"
1848
- ],
1849
- "additionalProperties": {}
2078
+ ]
1850
2079
  },
1851
2080
  "fees": {
1852
2081
  "type": "array",
1853
2082
  "items": {
1854
2083
  "type": "object",
1855
2084
  "properties": {
1856
- "kind": {
2085
+ "type": {
1857
2086
  "type": "string",
1858
2087
  "enum": [
1859
2088
  "gas",
@@ -1884,114 +2113,382 @@
1884
2113
  {
1885
2114
  "anyOf": [
1886
2115
  {
1887
- "type": "string",
1888
- "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2116
+ "type": "string",
2117
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2118
+ },
2119
+ {
2120
+ "type": "string",
2121
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2122
+ }
2123
+ ]
2124
+ },
2125
+ {
2126
+ "type": "string",
2127
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2128
+ }
2129
+ ]
2130
+ },
2131
+ "symbol": {
2132
+ "anyOf": [
2133
+ {
2134
+ "type": "string"
2135
+ },
2136
+ {
2137
+ "type": "null"
2138
+ }
2139
+ ]
2140
+ },
2141
+ "decimals": {
2142
+ "anyOf": [
2143
+ {
2144
+ "type": "integer",
2145
+ "minimum": -9007199254740991,
2146
+ "maximum": 9007199254740991
2147
+ },
2148
+ {
2149
+ "type": "null"
2150
+ }
2151
+ ]
2152
+ }
2153
+ },
2154
+ "required": [
2155
+ "chainId",
2156
+ "address",
2157
+ "symbol",
2158
+ "decimals"
2159
+ ]
2160
+ },
2161
+ "estimate": {
2162
+ "type": "boolean"
2163
+ }
2164
+ },
2165
+ "required": [
2166
+ "type",
2167
+ "amount",
2168
+ "token",
2169
+ "estimate"
2170
+ ]
2171
+ }
2172
+ },
2173
+ "estimatedDurationSec": {
2174
+ "type": "integer",
2175
+ "minimum": 0,
2176
+ "maximum": 9007199254740991
2177
+ },
2178
+ "intents": {
2179
+ "type": "array",
2180
+ "items": {
2181
+ "type": "object",
2182
+ "properties": {
2183
+ "role": {
2184
+ "type": "string",
2185
+ "enum": [
2186
+ "local",
2187
+ "bucket-candidate",
2188
+ "stitched-destination"
2189
+ ]
2190
+ },
2191
+ "intentHash": {
2192
+ "type": "string",
2193
+ "pattern": "^0x[0-9a-fA-F]{64}$"
2194
+ },
2195
+ "routeHash": {
2196
+ "type": "string",
2197
+ "pattern": "^0x[0-9a-fA-F]{64}$"
2198
+ },
2199
+ "bucketIndex": {
2200
+ "type": "integer",
2201
+ "minimum": 0,
2202
+ "maximum": 9007199254740991
2203
+ },
2204
+ "intent": {
2205
+ "type": "object",
2206
+ "properties": {
2207
+ "route": {
2208
+ "type": "object",
2209
+ "properties": {
2210
+ "salt": {
2211
+ "type": "string",
2212
+ "pattern": "^0x[0-9a-fA-F]{64}$"
2213
+ },
2214
+ "deadline": {
2215
+ "type": "integer",
2216
+ "minimum": 0,
2217
+ "maximum": 4102444800
2218
+ },
2219
+ "source": {
2220
+ "type": "integer",
2221
+ "exclusiveMinimum": 0,
2222
+ "maximum": 9007199254740991
2223
+ },
2224
+ "destination": {
2225
+ "type": "integer",
2226
+ "exclusiveMinimum": 0,
2227
+ "maximum": 9007199254740991
2228
+ },
2229
+ "portal": {
2230
+ "anyOf": [
2231
+ {
2232
+ "type": "string",
2233
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2234
+ },
2235
+ {
2236
+ "anyOf": [
2237
+ {
2238
+ "type": "string",
2239
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2240
+ },
2241
+ {
2242
+ "type": "string",
2243
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2244
+ }
2245
+ ]
2246
+ },
2247
+ {
2248
+ "type": "string",
2249
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2250
+ }
2251
+ ]
2252
+ },
2253
+ "nativeAmount": {
2254
+ "type": "string",
2255
+ "maxLength": 78,
2256
+ "pattern": "^(0|[1-9]\\d*)$"
2257
+ },
2258
+ "tokens": {
2259
+ "type": "array",
2260
+ "items": {
2261
+ "type": "object",
2262
+ "properties": {
2263
+ "token": {
2264
+ "anyOf": [
2265
+ {
2266
+ "type": "string",
2267
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2268
+ },
2269
+ {
2270
+ "anyOf": [
2271
+ {
2272
+ "type": "string",
2273
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2274
+ },
2275
+ {
2276
+ "type": "string",
2277
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2278
+ }
2279
+ ]
2280
+ },
2281
+ {
2282
+ "type": "string",
2283
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2284
+ }
2285
+ ]
2286
+ },
2287
+ "amount": {
2288
+ "type": "string",
2289
+ "maxLength": 78,
2290
+ "pattern": "^(0|[1-9]\\d*)$"
2291
+ }
2292
+ },
2293
+ "required": [
2294
+ "token",
2295
+ "amount"
2296
+ ]
2297
+ }
2298
+ },
2299
+ "calls": {
2300
+ "type": "array",
2301
+ "items": {
2302
+ "type": "object",
2303
+ "properties": {
2304
+ "target": {
2305
+ "anyOf": [
2306
+ {
2307
+ "type": "string",
2308
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2309
+ },
2310
+ {
2311
+ "anyOf": [
2312
+ {
2313
+ "type": "string",
2314
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2315
+ },
2316
+ {
2317
+ "type": "string",
2318
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2319
+ }
2320
+ ]
2321
+ },
2322
+ {
2323
+ "type": "string",
2324
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2325
+ }
2326
+ ]
2327
+ },
2328
+ "data": {
2329
+ "type": "string",
2330
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2331
+ },
2332
+ "value": {
2333
+ "type": "string",
2334
+ "maxLength": 78,
2335
+ "pattern": "^(0|[1-9]\\d*)$"
2336
+ }
2337
+ },
2338
+ "required": [
2339
+ "target",
2340
+ "data",
2341
+ "value"
2342
+ ]
2343
+ }
2344
+ }
2345
+ },
2346
+ "required": [
2347
+ "salt",
2348
+ "deadline",
2349
+ "source",
2350
+ "destination",
2351
+ "portal",
2352
+ "nativeAmount",
2353
+ "tokens",
2354
+ "calls"
2355
+ ]
2356
+ },
2357
+ "reward": {
2358
+ "type": "object",
2359
+ "properties": {
2360
+ "deadline": {
2361
+ "type": "integer",
2362
+ "minimum": 0,
2363
+ "maximum": 4102444800
2364
+ },
2365
+ "creator": {
2366
+ "anyOf": [
2367
+ {
2368
+ "type": "string",
2369
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2370
+ },
2371
+ {
2372
+ "anyOf": [
2373
+ {
2374
+ "type": "string",
2375
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2376
+ },
2377
+ {
2378
+ "type": "string",
2379
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2380
+ }
2381
+ ]
2382
+ },
2383
+ {
2384
+ "type": "string",
2385
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2386
+ }
2387
+ ]
2388
+ },
2389
+ "prover": {
2390
+ "anyOf": [
2391
+ {
2392
+ "type": "string",
2393
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2394
+ },
2395
+ {
2396
+ "anyOf": [
2397
+ {
2398
+ "type": "string",
2399
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2400
+ },
2401
+ {
2402
+ "type": "string",
2403
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2404
+ }
2405
+ ]
1889
2406
  },
1890
2407
  {
1891
2408
  "type": "string",
1892
- "pattern": "^0x41[0-9a-fA-F]{40}$"
2409
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1893
2410
  }
1894
2411
  ]
1895
2412
  },
1896
- {
2413
+ "nativeAmount": {
1897
2414
  "type": "string",
1898
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
1899
- }
1900
- ]
1901
- },
1902
- "symbol": {
1903
- "anyOf": [
1904
- {
1905
- "type": "string"
2415
+ "maxLength": 78,
2416
+ "pattern": "^(0|[1-9]\\d*)$"
1906
2417
  },
1907
- {
1908
- "type": "null"
1909
- }
1910
- ]
1911
- },
1912
- "decimals": {
1913
- "anyOf": [
1914
- {
1915
- "type": "integer",
1916
- "minimum": -9007199254740991,
1917
- "maximum": 9007199254740991
1918
- },
1919
- {
1920
- "type": "null"
2418
+ "tokens": {
2419
+ "type": "array",
2420
+ "items": {
2421
+ "type": "object",
2422
+ "properties": {
2423
+ "token": {
2424
+ "anyOf": [
2425
+ {
2426
+ "type": "string",
2427
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2428
+ },
2429
+ {
2430
+ "anyOf": [
2431
+ {
2432
+ "type": "string",
2433
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2434
+ },
2435
+ {
2436
+ "type": "string",
2437
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2438
+ }
2439
+ ]
2440
+ },
2441
+ {
2442
+ "type": "string",
2443
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2444
+ }
2445
+ ]
2446
+ },
2447
+ "amount": {
2448
+ "type": "string",
2449
+ "maxLength": 78,
2450
+ "pattern": "^(0|[1-9]\\d*)$"
2451
+ }
2452
+ },
2453
+ "required": [
2454
+ "token",
2455
+ "amount"
2456
+ ]
2457
+ }
1921
2458
  }
2459
+ },
2460
+ "required": [
2461
+ "deadline",
2462
+ "creator",
2463
+ "prover",
2464
+ "nativeAmount",
2465
+ "tokens"
1922
2466
  ]
1923
2467
  }
1924
2468
  },
1925
2469
  "required": [
1926
- "chainId",
1927
- "address",
1928
- "symbol",
1929
- "decimals"
1930
- ],
1931
- "additionalProperties": {}
1932
- },
1933
- "estimate": {
1934
- "type": "boolean"
2470
+ "route",
2471
+ "reward"
2472
+ ]
1935
2473
  }
1936
2474
  },
1937
2475
  "required": [
1938
- "kind",
1939
- "amount",
1940
- "token",
1941
- "estimate"
1942
- ],
1943
- "additionalProperties": {}
2476
+ "role",
2477
+ "intentHash",
2478
+ "intent"
2479
+ ]
1944
2480
  }
1945
- },
1946
- "estimatedDurationSec": {
1947
- "type": "integer",
1948
- "minimum": 0,
1949
- "maximum": 9007199254740991
1950
2481
  }
1951
2482
  },
1952
2483
  "required": [
1953
- "kind",
1954
- "tool",
2484
+ "type",
2485
+ "provider",
1955
2486
  "from",
1956
2487
  "to",
1957
2488
  "fees",
1958
- "estimatedDurationSec"
1959
- ],
1960
- "additionalProperties": {}
1961
- }
1962
- },
1963
- "relatedIntents": {
1964
- "type": "array",
1965
- "items": {
1966
- "type": "object",
1967
- "properties": {
1968
- "role": {
1969
- "type": "string",
1970
- "enum": [
1971
- "local",
1972
- "bucket-candidate",
1973
- "stitched-destination"
1974
- ]
1975
- },
1976
- "intentHash": {
1977
- "type": "string",
1978
- "pattern": "^0x[0-9a-fA-F]{64}$"
1979
- },
1980
- "routeHash": {
1981
- "type": "string",
1982
- "pattern": "^0x[0-9a-fA-F]{64}$"
1983
- },
1984
- "bucketIndex": {
1985
- "type": "integer",
1986
- "minimum": 0,
1987
- "maximum": 9007199254740991
1988
- }
1989
- },
1990
- "required": [
1991
- "role",
1992
- "intentHash"
1993
- ],
1994
- "additionalProperties": {}
2489
+ "estimatedDurationSec",
2490
+ "intents"
2491
+ ]
1995
2492
  }
1996
2493
  },
1997
2494
  "solver": {
@@ -2028,8 +2525,7 @@
2028
2525
  },
2029
2526
  "required": [
2030
2527
  "id"
2031
- ],
2032
- "additionalProperties": {}
2528
+ ]
2033
2529
  },
2034
2530
  "intentHash": {
2035
2531
  "anyOf": [
@@ -2052,7 +2548,7 @@
2052
2548
  {
2053
2549
  "type": "object",
2054
2550
  "properties": {
2055
- "kind": {
2551
+ "type": {
2056
2552
  "type": "string",
2057
2553
  "const": "evm"
2058
2554
  },
@@ -2076,18 +2572,17 @@
2076
2572
  }
2077
2573
  },
2078
2574
  "required": [
2079
- "kind",
2575
+ "type",
2080
2576
  "chainId",
2081
2577
  "to",
2082
2578
  "data",
2083
2579
  "value"
2084
- ],
2085
- "additionalProperties": {}
2580
+ ]
2086
2581
  },
2087
2582
  {
2088
2583
  "type": "object",
2089
2584
  "properties": {
2090
- "kind": {
2585
+ "type": {
2091
2586
  "type": "string",
2092
2587
  "const": "svm"
2093
2588
  },
@@ -2130,8 +2625,7 @@
2130
2625
  "pubkey",
2131
2626
  "isSigner",
2132
2627
  "isWritable"
2133
- ],
2134
- "additionalProperties": {}
2628
+ ]
2135
2629
  }
2136
2630
  },
2137
2631
  "data": {
@@ -2144,18 +2638,16 @@
2144
2638
  "programId",
2145
2639
  "accounts",
2146
2640
  "data"
2147
- ],
2148
- "additionalProperties": {}
2641
+ ]
2149
2642
  }
2150
2643
  }
2151
2644
  },
2152
2645
  "required": [
2153
- "kind",
2646
+ "type",
2154
2647
  "chainId",
2155
2648
  "feePayer",
2156
2649
  "instructions"
2157
- ],
2158
- "additionalProperties": {}
2650
+ ]
2159
2651
  }
2160
2652
  ]
2161
2653
  },
@@ -2251,63 +2743,54 @@
2251
2743
  "required": [
2252
2744
  "token",
2253
2745
  "amount"
2254
- ],
2255
- "additionalProperties": {}
2746
+ ]
2256
2747
  }
2257
2748
  },
2258
2749
  "calls": {
2259
- "anyOf": [
2260
- {
2261
- "type": "array",
2262
- "items": {
2263
- "type": "object",
2264
- "properties": {
2265
- "target": {
2750
+ "type": "array",
2751
+ "items": {
2752
+ "type": "object",
2753
+ "properties": {
2754
+ "target": {
2755
+ "anyOf": [
2756
+ {
2757
+ "type": "string",
2758
+ "pattern": "^0x[0-9a-fA-F]{40}$"
2759
+ },
2760
+ {
2266
2761
  "anyOf": [
2267
2762
  {
2268
2763
  "type": "string",
2269
- "pattern": "^0x[0-9a-fA-F]{40}$"
2270
- },
2271
- {
2272
- "anyOf": [
2273
- {
2274
- "type": "string",
2275
- "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2276
- },
2277
- {
2278
- "type": "string",
2279
- "pattern": "^0x41[0-9a-fA-F]{40}$"
2280
- }
2281
- ]
2764
+ "pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
2282
2765
  },
2283
2766
  {
2284
2767
  "type": "string",
2285
- "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2768
+ "pattern": "^0x41[0-9a-fA-F]{40}$"
2286
2769
  }
2287
2770
  ]
2288
2771
  },
2289
- "data": {
2290
- "type": "string",
2291
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2292
- },
2293
- "value": {
2772
+ {
2294
2773
  "type": "string",
2295
- "maxLength": 78,
2296
- "pattern": "^(0|[1-9]\\d*)$"
2774
+ "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
2297
2775
  }
2298
- },
2299
- "required": [
2300
- "target",
2301
- "data",
2302
- "value"
2303
- ],
2304
- "additionalProperties": {}
2776
+ ]
2777
+ },
2778
+ "data": {
2779
+ "type": "string",
2780
+ "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2781
+ },
2782
+ "value": {
2783
+ "type": "string",
2784
+ "maxLength": 78,
2785
+ "pattern": "^(0|[1-9]\\d*)$"
2305
2786
  }
2306
2787
  },
2307
- {
2308
- "type": "null"
2309
- }
2310
- ]
2788
+ "required": [
2789
+ "target",
2790
+ "data",
2791
+ "value"
2792
+ ]
2793
+ }
2311
2794
  }
2312
2795
  },
2313
2796
  "required": [
@@ -2319,8 +2802,7 @@
2319
2802
  "nativeAmount",
2320
2803
  "tokens",
2321
2804
  "calls"
2322
- ],
2323
- "additionalProperties": {}
2805
+ ]
2324
2806
  },
2325
2807
  "reward": {
2326
2808
  "type": "object",
@@ -2421,8 +2903,7 @@
2421
2903
  "required": [
2422
2904
  "token",
2423
2905
  "amount"
2424
- ],
2425
- "additionalProperties": {}
2906
+ ]
2426
2907
  }
2427
2908
  }
2428
2909
  },
@@ -2432,36 +2913,12 @@
2432
2913
  "prover",
2433
2914
  "nativeAmount",
2434
2915
  "tokens"
2435
- ],
2436
- "additionalProperties": {}
2916
+ ]
2437
2917
  }
2438
2918
  },
2439
2919
  "required": [
2440
2920
  "route",
2441
2921
  "reward"
2442
- ],
2443
- "additionalProperties": {}
2444
- },
2445
- "encodedRoute": {
2446
- "anyOf": [
2447
- {
2448
- "type": "string",
2449
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2450
- },
2451
- {
2452
- "type": "null"
2453
- }
2454
- ]
2455
- },
2456
- "encodedReward": {
2457
- "anyOf": [
2458
- {
2459
- "type": "string",
2460
- "pattern": "^0x(?:[0-9a-fA-F]{2})*$"
2461
- },
2462
- {
2463
- "type": "null"
2464
- }
2465
2922
  ]
2466
2923
  },
2467
2924
  "vault": {
@@ -2499,11 +2956,8 @@
2499
2956
  },
2500
2957
  "required": [
2501
2958
  "transaction",
2502
- "intent",
2503
- "encodedRoute",
2504
- "encodedReward"
2505
- ],
2506
- "additionalProperties": {}
2959
+ "intent"
2960
+ ]
2507
2961
  },
2508
2962
  {
2509
2963
  "type": "null"
@@ -2522,22 +2976,18 @@
2522
2976
  },
2523
2977
  "required": [
2524
2978
  "id",
2525
- "swapType",
2526
- "visibility",
2527
- "guarantee",
2979
+ "type",
2528
2980
  "source",
2529
2981
  "destination",
2530
2982
  "slippage",
2531
2983
  "fees",
2532
2984
  "steps",
2533
- "relatedIntents",
2534
2985
  "solver",
2535
2986
  "intentHash",
2536
2987
  "execution",
2537
2988
  "expiresAt",
2538
2989
  "signature"
2539
- ],
2540
- "additionalProperties": {}
2990
+ ]
2541
2991
  }
2542
2992
  },
2543
2993
  {
@@ -2548,23 +2998,19 @@
2548
2998
  },
2549
2999
  "required": [
2550
3000
  "id",
2551
- "swapType",
2552
- "visibility",
2553
- "guarantee",
3001
+ "type",
2554
3002
  "source",
2555
3003
  "destination",
2556
3004
  "slippage",
2557
3005
  "fees",
2558
3006
  "steps",
2559
- "relatedIntents",
2560
3007
  "solver",
2561
3008
  "intentHash",
2562
3009
  "execution",
2563
3010
  "expiresAt",
2564
3011
  "signature",
2565
3012
  "quotes"
2566
- ],
2567
- "additionalProperties": {}
3013
+ ]
2568
3014
  }
2569
3015
  }
2570
3016
  }
@@ -2749,8 +3195,7 @@
2749
3195
  "txHash",
2750
3196
  "intentHashes",
2751
3197
  "state"
2752
- ],
2753
- "additionalProperties": {}
3198
+ ]
2754
3199
  }
2755
3200
  },
2756
3201
  "createdAt": {
@@ -2771,8 +3216,7 @@
2771
3216
  "subStatuses",
2772
3217
  "createdAt",
2773
3218
  "updatedAt"
2774
- ],
2775
- "additionalProperties": {}
3219
+ ]
2776
3220
  }
2777
3221
  }
2778
3222
  }
@@ -2969,8 +3413,7 @@
2969
3413
  "txHash",
2970
3414
  "intentHashes",
2971
3415
  "state"
2972
- ],
2973
- "additionalProperties": {}
3416
+ ]
2974
3417
  }
2975
3418
  },
2976
3419
  "createdAt": {
@@ -2991,8 +3434,7 @@
2991
3434
  "subStatuses",
2992
3435
  "createdAt",
2993
3436
  "updatedAt"
2994
- ],
2995
- "additionalProperties": {}
3437
+ ]
2996
3438
  }
2997
3439
  }
2998
3440
  }
@@ -3215,8 +3657,7 @@
3215
3657
  "txHash",
3216
3658
  "intentHashes",
3217
3659
  "state"
3218
- ],
3219
- "additionalProperties": {}
3660
+ ]
3220
3661
  }
3221
3662
  },
3222
3663
  "createdAt": {
@@ -3237,8 +3678,7 @@
3237
3678
  "subStatuses",
3238
3679
  "createdAt",
3239
3680
  "updatedAt"
3240
- ],
3241
- "additionalProperties": {}
3681
+ ]
3242
3682
  }
3243
3683
  }
3244
3684
  }
@@ -3423,8 +3863,7 @@
3423
3863
  "txHash",
3424
3864
  "intentHashes",
3425
3865
  "state"
3426
- ],
3427
- "additionalProperties": {}
3866
+ ]
3428
3867
  }
3429
3868
  },
3430
3869
  "createdAt": {
@@ -3445,8 +3884,7 @@
3445
3884
  "subStatuses",
3446
3885
  "createdAt",
3447
3886
  "updatedAt"
3448
- ],
3449
- "additionalProperties": {}
3887
+ ]
3450
3888
  }
3451
3889
  }
3452
3890
  }
@@ -3626,8 +4064,7 @@
3626
4064
  "txHash",
3627
4065
  "intentHashes",
3628
4066
  "state"
3629
- ],
3630
- "additionalProperties": {}
4067
+ ]
3631
4068
  }
3632
4069
  },
3633
4070
  "createdAt": {
@@ -3648,8 +4085,7 @@
3648
4085
  "subStatuses",
3649
4086
  "createdAt",
3650
4087
  "updatedAt"
3651
- ],
3652
- "additionalProperties": {}
4088
+ ]
3653
4089
  }
3654
4090
  }
3655
4091
  }
@@ -3881,8 +4317,7 @@
3881
4317
  "txHash",
3882
4318
  "intentHashes",
3883
4319
  "state"
3884
- ],
3885
- "additionalProperties": {}
4320
+ ]
3886
4321
  }
3887
4322
  },
3888
4323
  "sourceTx": {
@@ -3912,8 +4347,7 @@
3912
4347
  "txHash",
3913
4348
  "token",
3914
4349
  "amount"
3915
- ],
3916
- "additionalProperties": {}
4350
+ ]
3917
4351
  },
3918
4352
  "destinationTx": {
3919
4353
  "type": "object",
@@ -3942,8 +4376,7 @@
3942
4376
  "txHash",
3943
4377
  "token",
3944
4378
  "amount"
3945
- ],
3946
- "additionalProperties": {}
4379
+ ]
3947
4380
  },
3948
4381
  "steps": {
3949
4382
  "type": "array",
@@ -3957,6 +4390,10 @@
3957
4390
  "BRIDGE"
3958
4391
  ]
3959
4392
  },
4393
+ "intentHash": {
4394
+ "type": "string",
4395
+ "pattern": "^0x[0-9a-fA-F]{64}$"
4396
+ },
3960
4397
  "status": {
3961
4398
  "type": "string",
3962
4399
  "minLength": 1
@@ -3983,8 +4420,7 @@
3983
4420
  "token",
3984
4421
  "amount",
3985
4422
  "chainId"
3986
- ],
3987
- "additionalProperties": {}
4423
+ ]
3988
4424
  },
3989
4425
  "to": {
3990
4426
  "type": "object",
@@ -4008,8 +4444,7 @@
4008
4444
  "token",
4009
4445
  "amount",
4010
4446
  "chainId"
4011
- ],
4012
- "additionalProperties": {}
4447
+ ]
4013
4448
  },
4014
4449
  "transactions": {
4015
4450
  "type": "object",
@@ -4030,8 +4465,7 @@
4030
4465
  "required": [
4031
4466
  "chainId",
4032
4467
  "txHash"
4033
- ],
4034
- "additionalProperties": {}
4468
+ ]
4035
4469
  },
4036
4470
  "fulfilled": {
4037
4471
  "type": "object",
@@ -4049,8 +4483,7 @@
4049
4483
  "required": [
4050
4484
  "chainId",
4051
4485
  "txHash"
4052
- ],
4053
- "additionalProperties": {}
4486
+ ]
4054
4487
  },
4055
4488
  "refunded": {
4056
4489
  "type": "object",
@@ -4068,21 +4501,19 @@
4068
4501
  "required": [
4069
4502
  "chainId",
4070
4503
  "txHash"
4071
- ],
4072
- "additionalProperties": {}
4504
+ ]
4073
4505
  }
4074
- },
4075
- "additionalProperties": {}
4506
+ }
4076
4507
  }
4077
4508
  },
4078
4509
  "required": [
4079
4510
  "type",
4511
+ "intentHash",
4080
4512
  "status",
4081
4513
  "from",
4082
4514
  "to",
4083
4515
  "transactions"
4084
- ],
4085
- "additionalProperties": {}
4516
+ ]
4086
4517
  }
4087
4518
  }
4088
4519
  },
@@ -4091,8 +4522,7 @@
4091
4522
  "type",
4092
4523
  "status",
4093
4524
  "updatedAt"
4094
- ],
4095
- "additionalProperties": {}
4525
+ ]
4096
4526
  }
4097
4527
  },
4098
4528
  "nextCursor": {
@@ -4110,8 +4540,7 @@
4110
4540
  "required": [
4111
4541
  "results",
4112
4542
  "nextCursor"
4113
- ],
4114
- "additionalProperties": {}
4543
+ ]
4115
4544
  }
4116
4545
  }
4117
4546
  }
@@ -4287,8 +4716,7 @@
4287
4716
  "txHash",
4288
4717
  "intentHashes",
4289
4718
  "state"
4290
- ],
4291
- "additionalProperties": {}
4719
+ ]
4292
4720
  }
4293
4721
  },
4294
4722
  "sourceTx": {
@@ -4318,8 +4746,7 @@
4318
4746
  "txHash",
4319
4747
  "token",
4320
4748
  "amount"
4321
- ],
4322
- "additionalProperties": {}
4749
+ ]
4323
4750
  },
4324
4751
  "destinationTx": {
4325
4752
  "type": "object",
@@ -4348,8 +4775,7 @@
4348
4775
  "txHash",
4349
4776
  "token",
4350
4777
  "amount"
4351
- ],
4352
- "additionalProperties": {}
4778
+ ]
4353
4779
  },
4354
4780
  "steps": {
4355
4781
  "type": "array",
@@ -4363,6 +4789,10 @@
4363
4789
  "BRIDGE"
4364
4790
  ]
4365
4791
  },
4792
+ "intentHash": {
4793
+ "type": "string",
4794
+ "pattern": "^0x[0-9a-fA-F]{64}$"
4795
+ },
4366
4796
  "status": {
4367
4797
  "type": "string",
4368
4798
  "minLength": 1
@@ -4389,8 +4819,7 @@
4389
4819
  "token",
4390
4820
  "amount",
4391
4821
  "chainId"
4392
- ],
4393
- "additionalProperties": {}
4822
+ ]
4394
4823
  },
4395
4824
  "to": {
4396
4825
  "type": "object",
@@ -4414,8 +4843,7 @@
4414
4843
  "token",
4415
4844
  "amount",
4416
4845
  "chainId"
4417
- ],
4418
- "additionalProperties": {}
4846
+ ]
4419
4847
  },
4420
4848
  "transactions": {
4421
4849
  "type": "object",
@@ -4436,8 +4864,7 @@
4436
4864
  "required": [
4437
4865
  "chainId",
4438
4866
  "txHash"
4439
- ],
4440
- "additionalProperties": {}
4867
+ ]
4441
4868
  },
4442
4869
  "fulfilled": {
4443
4870
  "type": "object",
@@ -4455,8 +4882,7 @@
4455
4882
  "required": [
4456
4883
  "chainId",
4457
4884
  "txHash"
4458
- ],
4459
- "additionalProperties": {}
4885
+ ]
4460
4886
  },
4461
4887
  "refunded": {
4462
4888
  "type": "object",
@@ -4474,21 +4900,19 @@
4474
4900
  "required": [
4475
4901
  "chainId",
4476
4902
  "txHash"
4477
- ],
4478
- "additionalProperties": {}
4903
+ ]
4479
4904
  }
4480
- },
4481
- "additionalProperties": {}
4905
+ }
4482
4906
  }
4483
4907
  },
4484
4908
  "required": [
4485
4909
  "type",
4910
+ "intentHash",
4486
4911
  "status",
4487
4912
  "from",
4488
4913
  "to",
4489
4914
  "transactions"
4490
- ],
4491
- "additionalProperties": {}
4915
+ ]
4492
4916
  }
4493
4917
  }
4494
4918
  },
@@ -4497,8 +4921,7 @@
4497
4921
  "type",
4498
4922
  "status",
4499
4923
  "updatedAt"
4500
- ],
4501
- "additionalProperties": {}
4924
+ ]
4502
4925
  }
4503
4926
  },
4504
4927
  "nextCursor": {
@@ -4516,8 +4939,7 @@
4516
4939
  "required": [
4517
4940
  "results",
4518
4941
  "nextCursor"
4519
- ],
4520
- "additionalProperties": {}
4942
+ ]
4521
4943
  }
4522
4944
  }
4523
4945
  }
@@ -4685,8 +5107,7 @@
4685
5107
  "required": [
4686
5108
  "portal",
4687
5109
  "executor"
4688
- ],
4689
- "additionalProperties": {}
5110
+ ]
4690
5111
  }
4691
5112
  },
4692
5113
  "required": [
@@ -4697,8 +5118,7 @@
4697
5118
  "encoding",
4698
5119
  "status",
4699
5120
  "contracts"
4700
- ],
4701
- "additionalProperties": {}
5121
+ ]
4702
5122
  }
4703
5123
  },
4704
5124
  "limits": {
@@ -4721,20 +5141,17 @@
4721
5141
  "required": [
4722
5142
  "maxLimit",
4723
5143
  "defaultLimit"
4724
- ],
4725
- "additionalProperties": {}
5144
+ ]
4726
5145
  }
4727
5146
  },
4728
5147
  "required": [
4729
5148
  "paging"
4730
- ],
4731
- "additionalProperties": {}
5149
+ ]
4732
5150
  }
4733
5151
  },
4734
5152
  "required": [
4735
5153
  "chains"
4736
- ],
4737
- "additionalProperties": {}
5154
+ ]
4738
5155
  }
4739
5156
  }
4740
5157
  }
@@ -4867,8 +5284,7 @@
4867
5284
  "required": [
4868
5285
  "quote",
4869
5286
  "depositAddress"
4870
- ],
4871
- "additionalProperties": {}
5287
+ ]
4872
5288
  }
4873
5289
  },
4874
5290
  "required": [
@@ -4877,8 +5293,7 @@
4877
5293
  "symbol",
4878
5294
  "decimals",
4879
5295
  "supports"
4880
- ],
4881
- "additionalProperties": {}
5296
+ ]
4882
5297
  }
4883
5298
  },
4884
5299
  "nextCursor": {
@@ -4895,8 +5310,7 @@
4895
5310
  "required": [
4896
5311
  "tokens",
4897
5312
  "nextCursor"
4898
- ],
4899
- "additionalProperties": {}
5313
+ ]
4900
5314
  }
4901
5315
  }
4902
5316
  }
@@ -4971,8 +5385,7 @@
4971
5385
  "required": [
4972
5386
  "chainId",
4973
5387
  "token"
4974
- ],
4975
- "additionalProperties": {}
5388
+ ]
4976
5389
  },
4977
5390
  "destination": {
4978
5391
  "type": "object",
@@ -5010,8 +5423,7 @@
5010
5423
  "required": [
5011
5424
  "chainId",
5012
5425
  "token"
5013
- ],
5014
- "additionalProperties": {}
5426
+ ]
5015
5427
  },
5016
5428
  "swapTypes": {
5017
5429
  "type": "array",
@@ -5029,8 +5441,7 @@
5029
5441
  "source",
5030
5442
  "destination",
5031
5443
  "swapTypes"
5032
- ],
5033
- "additionalProperties": {}
5444
+ ]
5034
5445
  }
5035
5446
  },
5036
5447
  "nextCursor": {
@@ -5047,8 +5458,7 @@
5047
5458
  "required": [
5048
5459
  "routes",
5049
5460
  "nextCursor"
5050
- ],
5051
- "additionalProperties": {}
5461
+ ]
5052
5462
  }
5053
5463
  }
5054
5464
  }
@@ -5092,7 +5502,7 @@
5092
5502
  "type": "string",
5093
5503
  "pattern": "^0x[0-9a-fA-F]{40}$"
5094
5504
  },
5095
- "kind": {
5505
+ "type": {
5096
5506
  "type": "string",
5097
5507
  "const": "solana"
5098
5508
  },
@@ -5104,7 +5514,7 @@
5104
5514
  "required": [
5105
5515
  "chainId",
5106
5516
  "depositor",
5107
- "kind",
5517
+ "type",
5108
5518
  "destinationAddress"
5109
5519
  ],
5110
5520
  "additionalProperties": false
@@ -5121,7 +5531,7 @@
5121
5531
  "type": "string",
5122
5532
  "pattern": "^0x[0-9a-fA-F]{40}$"
5123
5533
  },
5124
- "kind": {
5534
+ "type": {
5125
5535
  "type": "string",
5126
5536
  "const": "gateway"
5127
5537
  },
@@ -5133,7 +5543,7 @@
5133
5543
  "required": [
5134
5544
  "chainId",
5135
5545
  "depositor",
5136
- "kind",
5546
+ "type",
5137
5547
  "destinationAddress"
5138
5548
  ],
5139
5549
  "additionalProperties": false
@@ -5150,7 +5560,7 @@
5150
5560
  "type": "string",
5151
5561
  "pattern": "^0x[0-9a-fA-F]{40}$"
5152
5562
  },
5153
- "kind": {
5563
+ "type": {
5154
5564
  "type": "string",
5155
5565
  "const": "gateway-erc20"
5156
5566
  },
@@ -5167,7 +5577,7 @@
5167
5577
  "required": [
5168
5578
  "chainId",
5169
5579
  "depositor",
5170
- "kind",
5580
+ "type",
5171
5581
  "destinationAddress",
5172
5582
  "destinationChainId"
5173
5583
  ],
@@ -5203,7 +5613,7 @@
5203
5613
  "type": "string",
5204
5614
  "pattern": "^0x[0-9a-fA-F]{40}$"
5205
5615
  },
5206
- "kind": {
5616
+ "type": {
5207
5617
  "type": "string",
5208
5618
  "enum": [
5209
5619
  "solana",
@@ -5283,8 +5693,7 @@
5283
5693
  "chainId",
5284
5694
  "source",
5285
5695
  "registration"
5286
- ],
5287
- "additionalProperties": {}
5696
+ ]
5288
5697
  }
5289
5698
  }
5290
5699
  },
@@ -5293,13 +5702,12 @@
5293
5702
  "depositAddress",
5294
5703
  "chainId",
5295
5704
  "depositor",
5296
- "kind",
5705
+ "type",
5297
5706
  "destinationAddress",
5298
5707
  "expiresAt",
5299
5708
  "createdAt",
5300
5709
  "chains"
5301
- ],
5302
- "additionalProperties": {}
5710
+ ]
5303
5711
  }
5304
5712
  }
5305
5713
  }
@@ -5382,7 +5790,7 @@
5382
5790
  }
5383
5791
  },
5384
5792
  {
5385
- "name": "kind",
5793
+ "name": "type",
5386
5794
  "in": "query",
5387
5795
  "required": false,
5388
5796
  "schema": {
@@ -5445,7 +5853,7 @@
5445
5853
  "type": "string",
5446
5854
  "pattern": "^0x[0-9a-fA-F]{40}$"
5447
5855
  },
5448
- "kind": {
5856
+ "type": {
5449
5857
  "type": "string",
5450
5858
  "enum": [
5451
5859
  "solana",
@@ -5505,19 +5913,17 @@
5505
5913
  "depositAddress",
5506
5914
  "chainId",
5507
5915
  "depositor",
5508
- "kind",
5916
+ "type",
5509
5917
  "destinationAddress",
5510
5918
  "expiresAt",
5511
5919
  "createdAt"
5512
- ],
5513
- "additionalProperties": {}
5920
+ ]
5514
5921
  }
5515
5922
  }
5516
5923
  },
5517
5924
  "required": [
5518
5925
  "results"
5519
- ],
5520
- "additionalProperties": {}
5926
+ ]
5521
5927
  }
5522
5928
  }
5523
5929
  }
@@ -5612,8 +6018,7 @@
5612
6018
  "required": [
5613
6019
  "solver",
5614
6020
  "message"
5615
- ],
5616
- "additionalProperties": {}
6021
+ ]
5617
6022
  }
5618
6023
  },
5619
6024
  "errors": {
@@ -5633,8 +6038,7 @@
5633
6038
  "required": [
5634
6039
  "field",
5635
6040
  "detail"
5636
- ],
5637
- "additionalProperties": {}
6041
+ ]
5638
6042
  }
5639
6043
  }
5640
6044
  },
@@ -5643,8 +6047,7 @@
5643
6047
  "title",
5644
6048
  "status",
5645
6049
  "code"
5646
- ],
5647
- "additionalProperties": {}
6050
+ ]
5648
6051
  }
5649
6052
  }
5650
6053
  },