@compass-labs/api-sdk 0.0.16 → 0.0.18

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 (237) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +898 -447
  3. package/bin/mcp-server.js.map +29 -13
  4. package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts +23 -0
  5. package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js +128 -0
  7. package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.js +69 -0
  17. package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.js.map +1 -0
  18. package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts +57 -0
  19. package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts.map +1 -0
  20. package/dist/commonjs/models/components/aavehistoricaltransactionbase.js +97 -0
  21. package/dist/commonjs/models/components/aavehistoricaltransactionbase.js.map +1 -0
  22. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts +39 -0
  23. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js +76 -0
  25. package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js.map +1 -0
  26. package/dist/commonjs/models/components/action.d.ts +43 -0
  27. package/dist/commonjs/models/components/action.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/action.js +66 -0
  29. package/dist/commonjs/models/components/action.js.map +1 -0
  30. package/dist/commonjs/models/components/borrow.d.ts +42 -0
  31. package/dist/commonjs/models/components/borrow.d.ts.map +1 -0
  32. package/dist/commonjs/models/components/borrow.js +83 -0
  33. package/dist/commonjs/models/components/borrow.js.map +1 -0
  34. package/dist/commonjs/models/components/collateralreserve.d.ts +31 -0
  35. package/dist/commonjs/models/components/collateralreserve.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/collateralreserve.js +71 -0
  37. package/dist/commonjs/models/components/collateralreserve.js.map +1 -0
  38. package/dist/commonjs/models/components/index.d.ts +13 -0
  39. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/index.js +13 -0
  41. package/dist/commonjs/models/components/index.js.map +1 -1
  42. package/dist/commonjs/models/components/liquidationcall.d.ts +41 -0
  43. package/dist/commonjs/models/components/liquidationcall.d.ts.map +1 -0
  44. package/dist/commonjs/models/components/liquidationcall.js +81 -0
  45. package/dist/commonjs/models/components/liquidationcall.js.map +1 -0
  46. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +2 -0
  47. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -1
  49. package/dist/commonjs/models/components/principalreserve.d.ts +31 -0
  50. package/dist/commonjs/models/components/principalreserve.d.ts.map +1 -0
  51. package/dist/commonjs/models/components/principalreserve.js +71 -0
  52. package/dist/commonjs/models/components/principalreserve.js.map +1 -0
  53. package/dist/commonjs/models/components/redeemunderlying.d.ts +34 -0
  54. package/dist/commonjs/models/components/redeemunderlying.d.ts.map +1 -0
  55. package/dist/commonjs/models/components/redeemunderlying.js +74 -0
  56. package/dist/commonjs/models/components/redeemunderlying.js.map +1 -0
  57. package/dist/commonjs/models/components/repay.d.ts +34 -0
  58. package/dist/commonjs/models/components/repay.d.ts.map +1 -0
  59. package/dist/commonjs/models/components/repay.js +75 -0
  60. package/dist/commonjs/models/components/repay.js.map +1 -0
  61. package/dist/commonjs/models/components/reserve.d.ts +31 -0
  62. package/dist/commonjs/models/components/reserve.d.ts.map +1 -0
  63. package/dist/commonjs/models/components/reserve.js +71 -0
  64. package/dist/commonjs/models/components/reserve.js.map +1 -0
  65. package/dist/commonjs/models/components/supply.d.ts +34 -0
  66. package/dist/commonjs/models/components/supply.d.ts.map +1 -0
  67. package/dist/commonjs/models/components/supply.js +75 -0
  68. package/dist/commonjs/models/components/supply.js.map +1 -0
  69. package/dist/commonjs/models/components/swapborrowrate.d.ts +38 -0
  70. package/dist/commonjs/models/components/swapborrowrate.d.ts.map +1 -0
  71. package/dist/commonjs/models/components/swapborrowrate.js +78 -0
  72. package/dist/commonjs/models/components/swapborrowrate.js.map +1 -0
  73. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +3 -27
  74. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
  75. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +5 -28
  76. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
  77. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +3 -27
  78. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
  79. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +5 -28
  80. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
  81. package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts +18 -42
  82. package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts.map +1 -1
  83. package/dist/commonjs/models/components/uniswapsellexactlyparams.js +22 -47
  84. package/dist/commonjs/models/components/uniswapsellexactlyparams.js.map +1 -1
  85. package/dist/commonjs/models/components/uniswapsellexactlyrequest.d.ts +18 -42
  86. package/dist/commonjs/models/components/uniswapsellexactlyrequest.d.ts.map +1 -1
  87. package/dist/commonjs/models/components/uniswapsellexactlyrequest.js +22 -47
  88. package/dist/commonjs/models/components/uniswapsellexactlyrequest.js.map +1 -1
  89. package/dist/commonjs/models/components/usageascollateral.d.ts +34 -0
  90. package/dist/commonjs/models/components/usageascollateral.d.ts.map +1 -0
  91. package/dist/commonjs/models/components/usageascollateral.js +74 -0
  92. package/dist/commonjs/models/components/usageascollateral.js.map +1 -0
  93. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +73 -0
  94. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -0
  95. package/dist/commonjs/models/operations/aavehistoricaltransactions.js +107 -0
  96. package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -0
  97. package/dist/commonjs/models/operations/index.d.ts +1 -0
  98. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/index.js +1 -0
  100. package/dist/commonjs/models/operations/index.js.map +1 -1
  101. package/dist/commonjs/sdk/aavev3.d.ts +12 -0
  102. package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
  103. package/dist/commonjs/sdk/aavev3.js +15 -0
  104. package/dist/commonjs/sdk/aavev3.js.map +1 -1
  105. package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts +23 -0
  106. package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts.map +1 -0
  107. package/dist/esm/funcs/aaveV3HistoricalTransactions.js +92 -0
  108. package/dist/esm/funcs/aaveV3HistoricalTransactions.js.map +1 -0
  109. package/dist/esm/lib/config.d.ts +2 -2
  110. package/dist/esm/lib/config.js +2 -2
  111. package/dist/esm/mcp-server/mcp-server.js +1 -1
  112. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  113. package/dist/esm/mcp-server/server.js +3 -1
  114. package/dist/esm/mcp-server/server.js.map +1 -1
  115. package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.d.ts +8 -0
  116. package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.d.ts.map +1 -0
  117. package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.js +33 -0
  118. package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.js.map +1 -0
  119. package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts +57 -0
  120. package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts.map +1 -0
  121. package/dist/esm/models/components/aavehistoricaltransactionbase.js +59 -0
  122. package/dist/esm/models/components/aavehistoricaltransactionbase.js.map +1 -0
  123. package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts +39 -0
  124. package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -0
  125. package/dist/esm/models/components/aavehistoricaltransactionsresponse.js +38 -0
  126. package/dist/esm/models/components/aavehistoricaltransactionsresponse.js.map +1 -0
  127. package/dist/esm/models/components/action.d.ts +43 -0
  128. package/dist/esm/models/components/action.d.ts.map +1 -0
  129. package/dist/esm/models/components/action.js +30 -0
  130. package/dist/esm/models/components/action.js.map +1 -0
  131. package/dist/esm/models/components/borrow.d.ts +42 -0
  132. package/dist/esm/models/components/borrow.d.ts.map +1 -0
  133. package/dist/esm/models/components/borrow.js +45 -0
  134. package/dist/esm/models/components/borrow.js.map +1 -0
  135. package/dist/esm/models/components/collateralreserve.d.ts +31 -0
  136. package/dist/esm/models/components/collateralreserve.d.ts.map +1 -0
  137. package/dist/esm/models/components/collateralreserve.js +33 -0
  138. package/dist/esm/models/components/collateralreserve.js.map +1 -0
  139. package/dist/esm/models/components/index.d.ts +13 -0
  140. package/dist/esm/models/components/index.d.ts.map +1 -1
  141. package/dist/esm/models/components/index.js +13 -0
  142. package/dist/esm/models/components/index.js.map +1 -1
  143. package/dist/esm/models/components/liquidationcall.d.ts +41 -0
  144. package/dist/esm/models/components/liquidationcall.d.ts.map +1 -0
  145. package/dist/esm/models/components/liquidationcall.js +43 -0
  146. package/dist/esm/models/components/liquidationcall.js.map +1 -0
  147. package/dist/esm/models/components/multicallauthorizationrequest.d.ts +2 -0
  148. package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -1
  149. package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -1
  150. package/dist/esm/models/components/principalreserve.d.ts +31 -0
  151. package/dist/esm/models/components/principalreserve.d.ts.map +1 -0
  152. package/dist/esm/models/components/principalreserve.js +33 -0
  153. package/dist/esm/models/components/principalreserve.js.map +1 -0
  154. package/dist/esm/models/components/redeemunderlying.d.ts +34 -0
  155. package/dist/esm/models/components/redeemunderlying.d.ts.map +1 -0
  156. package/dist/esm/models/components/redeemunderlying.js +36 -0
  157. package/dist/esm/models/components/redeemunderlying.js.map +1 -0
  158. package/dist/esm/models/components/repay.d.ts +34 -0
  159. package/dist/esm/models/components/repay.d.ts.map +1 -0
  160. package/dist/esm/models/components/repay.js +37 -0
  161. package/dist/esm/models/components/repay.js.map +1 -0
  162. package/dist/esm/models/components/reserve.d.ts +31 -0
  163. package/dist/esm/models/components/reserve.d.ts.map +1 -0
  164. package/dist/esm/models/components/reserve.js +33 -0
  165. package/dist/esm/models/components/reserve.js.map +1 -0
  166. package/dist/esm/models/components/supply.d.ts +34 -0
  167. package/dist/esm/models/components/supply.d.ts.map +1 -0
  168. package/dist/esm/models/components/supply.js +37 -0
  169. package/dist/esm/models/components/supply.js.map +1 -0
  170. package/dist/esm/models/components/swapborrowrate.d.ts +38 -0
  171. package/dist/esm/models/components/swapborrowrate.d.ts.map +1 -0
  172. package/dist/esm/models/components/swapborrowrate.js +40 -0
  173. package/dist/esm/models/components/swapborrowrate.js.map +1 -0
  174. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +3 -27
  175. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
  176. package/dist/esm/models/components/uniswapbuyexactlyparams.js +4 -25
  177. package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
  178. package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +3 -27
  179. package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
  180. package/dist/esm/models/components/uniswapbuyexactlyrequest.js +4 -25
  181. package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
  182. package/dist/esm/models/components/uniswapsellexactlyparams.d.ts +18 -42
  183. package/dist/esm/models/components/uniswapsellexactlyparams.d.ts.map +1 -1
  184. package/dist/esm/models/components/uniswapsellexactlyparams.js +19 -42
  185. package/dist/esm/models/components/uniswapsellexactlyparams.js.map +1 -1
  186. package/dist/esm/models/components/uniswapsellexactlyrequest.d.ts +18 -42
  187. package/dist/esm/models/components/uniswapsellexactlyrequest.d.ts.map +1 -1
  188. package/dist/esm/models/components/uniswapsellexactlyrequest.js +19 -42
  189. package/dist/esm/models/components/uniswapsellexactlyrequest.js.map +1 -1
  190. package/dist/esm/models/components/usageascollateral.d.ts +34 -0
  191. package/dist/esm/models/components/usageascollateral.d.ts.map +1 -0
  192. package/dist/esm/models/components/usageascollateral.js +36 -0
  193. package/dist/esm/models/components/usageascollateral.js.map +1 -0
  194. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +73 -0
  195. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -0
  196. package/dist/esm/models/operations/aavehistoricaltransactions.js +69 -0
  197. package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -0
  198. package/dist/esm/models/operations/index.d.ts +1 -0
  199. package/dist/esm/models/operations/index.d.ts.map +1 -1
  200. package/dist/esm/models/operations/index.js +1 -0
  201. package/dist/esm/models/operations/index.js.map +1 -1
  202. package/dist/esm/sdk/aavev3.d.ts +12 -0
  203. package/dist/esm/sdk/aavev3.d.ts.map +1 -1
  204. package/dist/esm/sdk/aavev3.js +15 -0
  205. package/dist/esm/sdk/aavev3.js.map +1 -1
  206. package/docs/sdks/aavev3/README.md +85 -0
  207. package/docs/sdks/transactionbatching/README.md +2 -2
  208. package/docs/sdks/uniswapv3/README.md +6 -6
  209. package/jsr.json +1 -1
  210. package/package.json +1 -1
  211. package/src/funcs/aaveV3HistoricalTransactions.ts +177 -0
  212. package/src/lib/config.ts +2 -2
  213. package/src/mcp-server/mcp-server.ts +1 -1
  214. package/src/mcp-server/server.ts +3 -1
  215. package/src/mcp-server/tools/aaveV3HistoricalTransactions.ts +42 -0
  216. package/src/models/components/aavehistoricaltransactionbase.ts +155 -0
  217. package/src/models/components/aavehistoricaltransactionsresponse.ts +91 -0
  218. package/src/models/components/action.ts +36 -0
  219. package/src/models/components/borrow.ts +89 -0
  220. package/src/models/components/collateralreserve.ts +70 -0
  221. package/src/models/components/index.ts +13 -0
  222. package/src/models/components/liquidationcall.ts +96 -0
  223. package/src/models/components/multicallauthorizationrequest.ts +2 -0
  224. package/src/models/components/principalreserve.ts +70 -0
  225. package/src/models/components/redeemunderlying.ts +80 -0
  226. package/src/models/components/repay.ts +73 -0
  227. package/src/models/components/reserve.ts +63 -0
  228. package/src/models/components/supply.ts +73 -0
  229. package/src/models/components/swapborrowrate.ts +84 -0
  230. package/src/models/components/uniswapbuyexactlyparams.ts +7 -66
  231. package/src/models/components/uniswapbuyexactlyrequest.ts +7 -71
  232. package/src/models/components/uniswapsellexactlyparams.ts +33 -99
  233. package/src/models/components/uniswapsellexactlyrequest.ts +33 -103
  234. package/src/models/components/usageascollateral.ts +80 -0
  235. package/src/models/operations/aavehistoricaltransactions.ts +136 -0
  236. package/src/models/operations/index.ts +1 -0
  237. package/src/sdk/aavev3.ts +23 -0
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type Reserve = {
11
+ symbol: string;
12
+ decimals: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export const Reserve$inboundSchema: z.ZodType<Reserve, z.ZodTypeDef, unknown> =
17
+ z.object({
18
+ symbol: z.string(),
19
+ decimals: z.number().int(),
20
+ });
21
+
22
+ /** @internal */
23
+ export type Reserve$Outbound = {
24
+ symbol: string;
25
+ decimals: number;
26
+ };
27
+
28
+ /** @internal */
29
+ export const Reserve$outboundSchema: z.ZodType<
30
+ Reserve$Outbound,
31
+ z.ZodTypeDef,
32
+ Reserve
33
+ > = z.object({
34
+ symbol: z.string(),
35
+ decimals: z.number().int(),
36
+ });
37
+
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export namespace Reserve$ {
43
+ /** @deprecated use `Reserve$inboundSchema` instead. */
44
+ export const inboundSchema = Reserve$inboundSchema;
45
+ /** @deprecated use `Reserve$outboundSchema` instead. */
46
+ export const outboundSchema = Reserve$outboundSchema;
47
+ /** @deprecated use `Reserve$Outbound` instead. */
48
+ export type Outbound = Reserve$Outbound;
49
+ }
50
+
51
+ export function reserveToJSON(reserve: Reserve): string {
52
+ return JSON.stringify(Reserve$outboundSchema.parse(reserve));
53
+ }
54
+
55
+ export function reserveFromJSON(
56
+ jsonString: string,
57
+ ): SafeParseResult<Reserve, SDKValidationError> {
58
+ return safeParse(
59
+ jsonString,
60
+ (x) => Reserve$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'Reserve' from JSON`,
62
+ );
63
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ Reserve,
11
+ Reserve$inboundSchema,
12
+ Reserve$Outbound,
13
+ Reserve$outboundSchema,
14
+ } from "./reserve.js";
15
+
16
+ export type Supply = {
17
+ amount: string;
18
+ reserve: Reserve;
19
+ assetPriceUSD: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const Supply$inboundSchema: z.ZodType<Supply, z.ZodTypeDef, unknown> = z
24
+ .object({
25
+ amount: z.string(),
26
+ reserve: Reserve$inboundSchema,
27
+ assetPriceUSD: z.string(),
28
+ });
29
+
30
+ /** @internal */
31
+ export type Supply$Outbound = {
32
+ amount: string;
33
+ reserve: Reserve$Outbound;
34
+ assetPriceUSD: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const Supply$outboundSchema: z.ZodType<
39
+ Supply$Outbound,
40
+ z.ZodTypeDef,
41
+ Supply
42
+ > = z.object({
43
+ amount: z.string(),
44
+ reserve: Reserve$outboundSchema,
45
+ assetPriceUSD: z.string(),
46
+ });
47
+
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export namespace Supply$ {
53
+ /** @deprecated use `Supply$inboundSchema` instead. */
54
+ export const inboundSchema = Supply$inboundSchema;
55
+ /** @deprecated use `Supply$outboundSchema` instead. */
56
+ export const outboundSchema = Supply$outboundSchema;
57
+ /** @deprecated use `Supply$Outbound` instead. */
58
+ export type Outbound = Supply$Outbound;
59
+ }
60
+
61
+ export function supplyToJSON(supply: Supply): string {
62
+ return JSON.stringify(Supply$outboundSchema.parse(supply));
63
+ }
64
+
65
+ export function supplyFromJSON(
66
+ jsonString: string,
67
+ ): SafeParseResult<Supply, SDKValidationError> {
68
+ return safeParse(
69
+ jsonString,
70
+ (x) => Supply$inboundSchema.parse(JSON.parse(x)),
71
+ `Failed to parse 'Supply' from JSON`,
72
+ );
73
+ }
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ Reserve,
11
+ Reserve$inboundSchema,
12
+ Reserve$Outbound,
13
+ Reserve$outboundSchema,
14
+ } from "./reserve.js";
15
+
16
+ export type SwapBorrowRate = {
17
+ borrowRateModeFrom: string;
18
+ borrowRateModeTo: string;
19
+ variableBorrowRate: string;
20
+ stableBorrowRate: string;
21
+ reserve: Reserve;
22
+ };
23
+
24
+ /** @internal */
25
+ export const SwapBorrowRate$inboundSchema: z.ZodType<
26
+ SwapBorrowRate,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ borrowRateModeFrom: z.string(),
31
+ borrowRateModeTo: z.string(),
32
+ variableBorrowRate: z.string(),
33
+ stableBorrowRate: z.string(),
34
+ reserve: Reserve$inboundSchema,
35
+ });
36
+
37
+ /** @internal */
38
+ export type SwapBorrowRate$Outbound = {
39
+ borrowRateModeFrom: string;
40
+ borrowRateModeTo: string;
41
+ variableBorrowRate: string;
42
+ stableBorrowRate: string;
43
+ reserve: Reserve$Outbound;
44
+ };
45
+
46
+ /** @internal */
47
+ export const SwapBorrowRate$outboundSchema: z.ZodType<
48
+ SwapBorrowRate$Outbound,
49
+ z.ZodTypeDef,
50
+ SwapBorrowRate
51
+ > = z.object({
52
+ borrowRateModeFrom: z.string(),
53
+ borrowRateModeTo: z.string(),
54
+ variableBorrowRate: z.string(),
55
+ stableBorrowRate: z.string(),
56
+ reserve: Reserve$outboundSchema,
57
+ });
58
+
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export namespace SwapBorrowRate$ {
64
+ /** @deprecated use `SwapBorrowRate$inboundSchema` instead. */
65
+ export const inboundSchema = SwapBorrowRate$inboundSchema;
66
+ /** @deprecated use `SwapBorrowRate$outboundSchema` instead. */
67
+ export const outboundSchema = SwapBorrowRate$outboundSchema;
68
+ /** @deprecated use `SwapBorrowRate$Outbound` instead. */
69
+ export type Outbound = SwapBorrowRate$Outbound;
70
+ }
71
+
72
+ export function swapBorrowRateToJSON(swapBorrowRate: SwapBorrowRate): string {
73
+ return JSON.stringify(SwapBorrowRate$outboundSchema.parse(swapBorrowRate));
74
+ }
75
+
76
+ export function swapBorrowRateFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<SwapBorrowRate, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => SwapBorrowRate$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'SwapBorrowRate' from JSON`,
83
+ );
84
+ }
@@ -23,11 +23,6 @@ import {
23
23
  */
24
24
  export type UniswapBuyExactlyParamsAmountOut = number | string;
25
25
 
26
- /**
27
- * The maximum amount of the token to swap from
28
- */
29
- export type UniswapBuyExactlyParamsAmountInMaximum = number | string;
30
-
31
26
  export type UniswapBuyExactlyParams = {
32
27
  /**
33
28
  * A class representing the token.
@@ -60,9 +55,9 @@ export type UniswapBuyExactlyParams = {
60
55
  */
61
56
  amountOut: number | string;
62
57
  /**
63
- * The maximum amount of the token to swap from
58
+ * The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
64
59
  */
65
- amountInMaximum: number | string;
60
+ maxSlippagePercent: number;
66
61
  /**
67
62
  * Whether to wrap ETH to WETH, only use when swapping WETH into something
68
63
  */
@@ -119,60 +114,6 @@ export function uniswapBuyExactlyParamsAmountOutFromJSON(
119
114
  );
120
115
  }
121
116
 
122
- /** @internal */
123
- export const UniswapBuyExactlyParamsAmountInMaximum$inboundSchema: z.ZodType<
124
- UniswapBuyExactlyParamsAmountInMaximum,
125
- z.ZodTypeDef,
126
- unknown
127
- > = z.union([z.number(), z.string()]);
128
-
129
- /** @internal */
130
- export type UniswapBuyExactlyParamsAmountInMaximum$Outbound = number | string;
131
-
132
- /** @internal */
133
- export const UniswapBuyExactlyParamsAmountInMaximum$outboundSchema: z.ZodType<
134
- UniswapBuyExactlyParamsAmountInMaximum$Outbound,
135
- z.ZodTypeDef,
136
- UniswapBuyExactlyParamsAmountInMaximum
137
- > = z.union([z.number(), z.string()]);
138
-
139
- /**
140
- * @internal
141
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
142
- */
143
- export namespace UniswapBuyExactlyParamsAmountInMaximum$ {
144
- /** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$inboundSchema` instead. */
145
- export const inboundSchema =
146
- UniswapBuyExactlyParamsAmountInMaximum$inboundSchema;
147
- /** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$outboundSchema` instead. */
148
- export const outboundSchema =
149
- UniswapBuyExactlyParamsAmountInMaximum$outboundSchema;
150
- /** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$Outbound` instead. */
151
- export type Outbound = UniswapBuyExactlyParamsAmountInMaximum$Outbound;
152
- }
153
-
154
- export function uniswapBuyExactlyParamsAmountInMaximumToJSON(
155
- uniswapBuyExactlyParamsAmountInMaximum:
156
- UniswapBuyExactlyParamsAmountInMaximum,
157
- ): string {
158
- return JSON.stringify(
159
- UniswapBuyExactlyParamsAmountInMaximum$outboundSchema.parse(
160
- uniswapBuyExactlyParamsAmountInMaximum,
161
- ),
162
- );
163
- }
164
-
165
- export function uniswapBuyExactlyParamsAmountInMaximumFromJSON(
166
- jsonString: string,
167
- ): SafeParseResult<UniswapBuyExactlyParamsAmountInMaximum, SDKValidationError> {
168
- return safeParse(
169
- jsonString,
170
- (x) =>
171
- UniswapBuyExactlyParamsAmountInMaximum$inboundSchema.parse(JSON.parse(x)),
172
- `Failed to parse 'UniswapBuyExactlyParamsAmountInMaximum' from JSON`,
173
- );
174
- }
175
-
176
117
  /** @internal */
177
118
  export const UniswapBuyExactlyParams$inboundSchema: z.ZodType<
178
119
  UniswapBuyExactlyParams,
@@ -183,14 +124,14 @@ export const UniswapBuyExactlyParams$inboundSchema: z.ZodType<
183
124
  token_out: TokenEnum$inboundSchema,
184
125
  fee: FeeEnum$inboundSchema,
185
126
  amount_out: z.union([z.number(), z.string()]),
186
- amount_in_maximum: z.union([z.number(), z.string()]),
127
+ max_slippage_percent: z.number(),
187
128
  wrap_eth: z.boolean().default(false),
188
129
  }).transform((v) => {
189
130
  return remap$(v, {
190
131
  "token_in": "tokenIn",
191
132
  "token_out": "tokenOut",
192
133
  "amount_out": "amountOut",
193
- "amount_in_maximum": "amountInMaximum",
134
+ "max_slippage_percent": "maxSlippagePercent",
194
135
  "wrap_eth": "wrapEth",
195
136
  });
196
137
  });
@@ -201,7 +142,7 @@ export type UniswapBuyExactlyParams$Outbound = {
201
142
  token_out: string;
202
143
  fee: string;
203
144
  amount_out: number | string;
204
- amount_in_maximum: number | string;
145
+ max_slippage_percent: number;
205
146
  wrap_eth: boolean;
206
147
  };
207
148
 
@@ -215,14 +156,14 @@ export const UniswapBuyExactlyParams$outboundSchema: z.ZodType<
215
156
  tokenOut: TokenEnum$outboundSchema,
216
157
  fee: FeeEnum$outboundSchema,
217
158
  amountOut: z.union([z.number(), z.string()]),
218
- amountInMaximum: z.union([z.number(), z.string()]),
159
+ maxSlippagePercent: z.number(),
219
160
  wrapEth: z.boolean().default(false),
220
161
  }).transform((v) => {
221
162
  return remap$(v, {
222
163
  tokenIn: "token_in",
223
164
  tokenOut: "token_out",
224
165
  amountOut: "amount_out",
225
- amountInMaximum: "amount_in_maximum",
166
+ maxSlippagePercent: "max_slippage_percent",
226
167
  wrapEth: "wrap_eth",
227
168
  });
228
169
  });
@@ -24,11 +24,6 @@ import {
24
24
  */
25
25
  export type UniswapBuyExactlyRequestAmountOut = number | string;
26
26
 
27
- /**
28
- * The maximum amount of the token to swap from
29
- */
30
- export type UniswapBuyExactlyRequestAmountInMaximum = number | string;
31
-
32
27
  /**
33
28
  * Request model for buying exactly an amount of tokens.
34
29
  */
@@ -64,9 +59,9 @@ export type UniswapBuyExactlyRequest = {
64
59
  */
65
60
  amountOut: number | string;
66
61
  /**
67
- * The maximum amount of the token to swap from
62
+ * The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
68
63
  */
69
- amountInMaximum: number | string;
64
+ maxSlippagePercent: number;
70
65
  /**
71
66
  * Whether to wrap ETH to WETH, only use when swapping WETH into something
72
67
  */
@@ -132,65 +127,6 @@ export function uniswapBuyExactlyRequestAmountOutFromJSON(
132
127
  );
133
128
  }
134
129
 
135
- /** @internal */
136
- export const UniswapBuyExactlyRequestAmountInMaximum$inboundSchema: z.ZodType<
137
- UniswapBuyExactlyRequestAmountInMaximum,
138
- z.ZodTypeDef,
139
- unknown
140
- > = z.union([z.number(), z.string()]);
141
-
142
- /** @internal */
143
- export type UniswapBuyExactlyRequestAmountInMaximum$Outbound = number | string;
144
-
145
- /** @internal */
146
- export const UniswapBuyExactlyRequestAmountInMaximum$outboundSchema: z.ZodType<
147
- UniswapBuyExactlyRequestAmountInMaximum$Outbound,
148
- z.ZodTypeDef,
149
- UniswapBuyExactlyRequestAmountInMaximum
150
- > = z.union([z.number(), z.string()]);
151
-
152
- /**
153
- * @internal
154
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
- */
156
- export namespace UniswapBuyExactlyRequestAmountInMaximum$ {
157
- /** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$inboundSchema` instead. */
158
- export const inboundSchema =
159
- UniswapBuyExactlyRequestAmountInMaximum$inboundSchema;
160
- /** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$outboundSchema` instead. */
161
- export const outboundSchema =
162
- UniswapBuyExactlyRequestAmountInMaximum$outboundSchema;
163
- /** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$Outbound` instead. */
164
- export type Outbound = UniswapBuyExactlyRequestAmountInMaximum$Outbound;
165
- }
166
-
167
- export function uniswapBuyExactlyRequestAmountInMaximumToJSON(
168
- uniswapBuyExactlyRequestAmountInMaximum:
169
- UniswapBuyExactlyRequestAmountInMaximum,
170
- ): string {
171
- return JSON.stringify(
172
- UniswapBuyExactlyRequestAmountInMaximum$outboundSchema.parse(
173
- uniswapBuyExactlyRequestAmountInMaximum,
174
- ),
175
- );
176
- }
177
-
178
- export function uniswapBuyExactlyRequestAmountInMaximumFromJSON(
179
- jsonString: string,
180
- ): SafeParseResult<
181
- UniswapBuyExactlyRequestAmountInMaximum,
182
- SDKValidationError
183
- > {
184
- return safeParse(
185
- jsonString,
186
- (x) =>
187
- UniswapBuyExactlyRequestAmountInMaximum$inboundSchema.parse(
188
- JSON.parse(x),
189
- ),
190
- `Failed to parse 'UniswapBuyExactlyRequestAmountInMaximum' from JSON`,
191
- );
192
- }
193
-
194
130
  /** @internal */
195
131
  export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
196
132
  UniswapBuyExactlyRequest,
@@ -201,7 +137,7 @@ export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
201
137
  token_out: TokenEnum$inboundSchema,
202
138
  fee: FeeEnum$inboundSchema,
203
139
  amount_out: z.union([z.number(), z.string()]),
204
- amount_in_maximum: z.union([z.number(), z.string()]),
140
+ max_slippage_percent: z.number(),
205
141
  wrap_eth: z.boolean().default(false),
206
142
  chain: Chain$inboundSchema,
207
143
  sender: z.string(),
@@ -210,7 +146,7 @@ export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
210
146
  "token_in": "tokenIn",
211
147
  "token_out": "tokenOut",
212
148
  "amount_out": "amountOut",
213
- "amount_in_maximum": "amountInMaximum",
149
+ "max_slippage_percent": "maxSlippagePercent",
214
150
  "wrap_eth": "wrapEth",
215
151
  });
216
152
  });
@@ -221,7 +157,7 @@ export type UniswapBuyExactlyRequest$Outbound = {
221
157
  token_out: string;
222
158
  fee: string;
223
159
  amount_out: number | string;
224
- amount_in_maximum: number | string;
160
+ max_slippage_percent: number;
225
161
  wrap_eth: boolean;
226
162
  chain: string;
227
163
  sender: string;
@@ -237,7 +173,7 @@ export const UniswapBuyExactlyRequest$outboundSchema: z.ZodType<
237
173
  tokenOut: TokenEnum$outboundSchema,
238
174
  fee: FeeEnum$outboundSchema,
239
175
  amountOut: z.union([z.number(), z.string()]),
240
- amountInMaximum: z.union([z.number(), z.string()]),
176
+ maxSlippagePercent: z.number(),
241
177
  wrapEth: z.boolean().default(false),
242
178
  chain: Chain$outboundSchema,
243
179
  sender: z.string(),
@@ -246,7 +182,7 @@ export const UniswapBuyExactlyRequest$outboundSchema: z.ZodType<
246
182
  tokenIn: "token_in",
247
183
  tokenOut: "token_out",
248
184
  amountOut: "amount_out",
249
- amountInMaximum: "amount_in_maximum",
185
+ maxSlippagePercent: "max_slippage_percent",
250
186
  wrapEth: "wrap_eth",
251
187
  });
252
188
  });
@@ -21,12 +21,7 @@ import {
21
21
  /**
22
22
  * The amount of the token to swap from
23
23
  */
24
- export type UniswapSellExactlyParamsAmountIn = number | string;
25
-
26
- /**
27
- * The minimum amount of the token to swap to, defaults to 0
28
- */
29
- export type UniswapSellExactlyParamsAmountOutMinimum = number | string;
24
+ export type UniswapSellExactlyParamsAmount = number | string;
30
25
 
31
26
  /**
32
27
  * Parameters model for selling exactly an amount of tokens.
@@ -61,11 +56,11 @@ export type UniswapSellExactlyParams = {
61
56
  /**
62
57
  * The amount of the token to swap from
63
58
  */
64
- amountIn: number | string;
59
+ amount: number | string;
65
60
  /**
66
- * The minimum amount of the token to swap to, defaults to 0
61
+ * The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
67
62
  */
68
- amountOutMinimum?: number | string | undefined;
63
+ maxSlippagePercent: number;
69
64
  /**
70
65
  * Whether to wrap ETH to WETH, only use when swapping WETH into something
71
66
  */
@@ -73,111 +68,52 @@ export type UniswapSellExactlyParams = {
73
68
  };
74
69
 
75
70
  /** @internal */
76
- export const UniswapSellExactlyParamsAmountIn$inboundSchema: z.ZodType<
77
- UniswapSellExactlyParamsAmountIn,
78
- z.ZodTypeDef,
79
- unknown
80
- > = z.union([z.number(), z.string()]);
81
-
82
- /** @internal */
83
- export type UniswapSellExactlyParamsAmountIn$Outbound = number | string;
84
-
85
- /** @internal */
86
- export const UniswapSellExactlyParamsAmountIn$outboundSchema: z.ZodType<
87
- UniswapSellExactlyParamsAmountIn$Outbound,
88
- z.ZodTypeDef,
89
- UniswapSellExactlyParamsAmountIn
90
- > = z.union([z.number(), z.string()]);
91
-
92
- /**
93
- * @internal
94
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
- */
96
- export namespace UniswapSellExactlyParamsAmountIn$ {
97
- /** @deprecated use `UniswapSellExactlyParamsAmountIn$inboundSchema` instead. */
98
- export const inboundSchema = UniswapSellExactlyParamsAmountIn$inboundSchema;
99
- /** @deprecated use `UniswapSellExactlyParamsAmountIn$outboundSchema` instead. */
100
- export const outboundSchema = UniswapSellExactlyParamsAmountIn$outboundSchema;
101
- /** @deprecated use `UniswapSellExactlyParamsAmountIn$Outbound` instead. */
102
- export type Outbound = UniswapSellExactlyParamsAmountIn$Outbound;
103
- }
104
-
105
- export function uniswapSellExactlyParamsAmountInToJSON(
106
- uniswapSellExactlyParamsAmountIn: UniswapSellExactlyParamsAmountIn,
107
- ): string {
108
- return JSON.stringify(
109
- UniswapSellExactlyParamsAmountIn$outboundSchema.parse(
110
- uniswapSellExactlyParamsAmountIn,
111
- ),
112
- );
113
- }
114
-
115
- export function uniswapSellExactlyParamsAmountInFromJSON(
116
- jsonString: string,
117
- ): SafeParseResult<UniswapSellExactlyParamsAmountIn, SDKValidationError> {
118
- return safeParse(
119
- jsonString,
120
- (x) => UniswapSellExactlyParamsAmountIn$inboundSchema.parse(JSON.parse(x)),
121
- `Failed to parse 'UniswapSellExactlyParamsAmountIn' from JSON`,
122
- );
123
- }
124
-
125
- /** @internal */
126
- export const UniswapSellExactlyParamsAmountOutMinimum$inboundSchema: z.ZodType<
127
- UniswapSellExactlyParamsAmountOutMinimum,
71
+ export const UniswapSellExactlyParamsAmount$inboundSchema: z.ZodType<
72
+ UniswapSellExactlyParamsAmount,
128
73
  z.ZodTypeDef,
129
74
  unknown
130
75
  > = z.union([z.number(), z.string()]);
131
76
 
132
77
  /** @internal */
133
- export type UniswapSellExactlyParamsAmountOutMinimum$Outbound = number | string;
78
+ export type UniswapSellExactlyParamsAmount$Outbound = number | string;
134
79
 
135
80
  /** @internal */
136
- export const UniswapSellExactlyParamsAmountOutMinimum$outboundSchema: z.ZodType<
137
- UniswapSellExactlyParamsAmountOutMinimum$Outbound,
81
+ export const UniswapSellExactlyParamsAmount$outboundSchema: z.ZodType<
82
+ UniswapSellExactlyParamsAmount$Outbound,
138
83
  z.ZodTypeDef,
139
- UniswapSellExactlyParamsAmountOutMinimum
84
+ UniswapSellExactlyParamsAmount
140
85
  > = z.union([z.number(), z.string()]);
141
86
 
142
87
  /**
143
88
  * @internal
144
89
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
145
90
  */
146
- export namespace UniswapSellExactlyParamsAmountOutMinimum$ {
147
- /** @deprecated use `UniswapSellExactlyParamsAmountOutMinimum$inboundSchema` instead. */
148
- export const inboundSchema =
149
- UniswapSellExactlyParamsAmountOutMinimum$inboundSchema;
150
- /** @deprecated use `UniswapSellExactlyParamsAmountOutMinimum$outboundSchema` instead. */
151
- export const outboundSchema =
152
- UniswapSellExactlyParamsAmountOutMinimum$outboundSchema;
153
- /** @deprecated use `UniswapSellExactlyParamsAmountOutMinimum$Outbound` instead. */
154
- export type Outbound = UniswapSellExactlyParamsAmountOutMinimum$Outbound;
91
+ export namespace UniswapSellExactlyParamsAmount$ {
92
+ /** @deprecated use `UniswapSellExactlyParamsAmount$inboundSchema` instead. */
93
+ export const inboundSchema = UniswapSellExactlyParamsAmount$inboundSchema;
94
+ /** @deprecated use `UniswapSellExactlyParamsAmount$outboundSchema` instead. */
95
+ export const outboundSchema = UniswapSellExactlyParamsAmount$outboundSchema;
96
+ /** @deprecated use `UniswapSellExactlyParamsAmount$Outbound` instead. */
97
+ export type Outbound = UniswapSellExactlyParamsAmount$Outbound;
155
98
  }
156
99
 
157
- export function uniswapSellExactlyParamsAmountOutMinimumToJSON(
158
- uniswapSellExactlyParamsAmountOutMinimum:
159
- UniswapSellExactlyParamsAmountOutMinimum,
100
+ export function uniswapSellExactlyParamsAmountToJSON(
101
+ uniswapSellExactlyParamsAmount: UniswapSellExactlyParamsAmount,
160
102
  ): string {
161
103
  return JSON.stringify(
162
- UniswapSellExactlyParamsAmountOutMinimum$outboundSchema.parse(
163
- uniswapSellExactlyParamsAmountOutMinimum,
104
+ UniswapSellExactlyParamsAmount$outboundSchema.parse(
105
+ uniswapSellExactlyParamsAmount,
164
106
  ),
165
107
  );
166
108
  }
167
109
 
168
- export function uniswapSellExactlyParamsAmountOutMinimumFromJSON(
110
+ export function uniswapSellExactlyParamsAmountFromJSON(
169
111
  jsonString: string,
170
- ): SafeParseResult<
171
- UniswapSellExactlyParamsAmountOutMinimum,
172
- SDKValidationError
173
- > {
112
+ ): SafeParseResult<UniswapSellExactlyParamsAmount, SDKValidationError> {
174
113
  return safeParse(
175
114
  jsonString,
176
- (x) =>
177
- UniswapSellExactlyParamsAmountOutMinimum$inboundSchema.parse(
178
- JSON.parse(x),
179
- ),
180
- `Failed to parse 'UniswapSellExactlyParamsAmountOutMinimum' from JSON`,
115
+ (x) => UniswapSellExactlyParamsAmount$inboundSchema.parse(JSON.parse(x)),
116
+ `Failed to parse 'UniswapSellExactlyParamsAmount' from JSON`,
181
117
  );
182
118
  }
183
119
 
@@ -190,15 +126,14 @@ export const UniswapSellExactlyParams$inboundSchema: z.ZodType<
190
126
  token_in: TokenEnum$inboundSchema,
191
127
  token_out: TokenEnum$inboundSchema,
192
128
  fee: FeeEnum$inboundSchema,
193
- amount_in: z.union([z.number(), z.string()]),
194
- amount_out_minimum: z.union([z.number(), z.string()]).optional(),
129
+ amount: z.union([z.number(), z.string()]),
130
+ max_slippage_percent: z.number(),
195
131
  wrap_eth: z.boolean().default(false),
196
132
  }).transform((v) => {
197
133
  return remap$(v, {
198
134
  "token_in": "tokenIn",
199
135
  "token_out": "tokenOut",
200
- "amount_in": "amountIn",
201
- "amount_out_minimum": "amountOutMinimum",
136
+ "max_slippage_percent": "maxSlippagePercent",
202
137
  "wrap_eth": "wrapEth",
203
138
  });
204
139
  });
@@ -208,8 +143,8 @@ export type UniswapSellExactlyParams$Outbound = {
208
143
  token_in: string;
209
144
  token_out: string;
210
145
  fee: string;
211
- amount_in: number | string;
212
- amount_out_minimum?: number | string | undefined;
146
+ amount: number | string;
147
+ max_slippage_percent: number;
213
148
  wrap_eth: boolean;
214
149
  };
215
150
 
@@ -222,15 +157,14 @@ export const UniswapSellExactlyParams$outboundSchema: z.ZodType<
222
157
  tokenIn: TokenEnum$outboundSchema,
223
158
  tokenOut: TokenEnum$outboundSchema,
224
159
  fee: FeeEnum$outboundSchema,
225
- amountIn: z.union([z.number(), z.string()]),
226
- amountOutMinimum: z.union([z.number(), z.string()]).optional(),
160
+ amount: z.union([z.number(), z.string()]),
161
+ maxSlippagePercent: z.number(),
227
162
  wrapEth: z.boolean().default(false),
228
163
  }).transform((v) => {
229
164
  return remap$(v, {
230
165
  tokenIn: "token_in",
231
166
  tokenOut: "token_out",
232
- amountIn: "amount_in",
233
- amountOutMinimum: "amount_out_minimum",
167
+ maxSlippagePercent: "max_slippage_percent",
234
168
  wrapEth: "wrap_eth",
235
169
  });
236
170
  });