@compass-labs/api-sdk 0.5.28 → 0.5.30

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 (59) hide show
  1. package/README.md +1 -1
  2. package/bin/mcp-server.js +12 -6
  3. package/bin/mcp-server.js.map +10 -10
  4. package/dist/commonjs/funcs/pendleMarket.js +1 -0
  5. package/dist/commonjs/funcs/pendleMarket.js.map +1 -1
  6. package/dist/commonjs/funcs/pendlePosition.js +1 -0
  7. package/dist/commonjs/funcs/pendlePosition.js.map +1 -1
  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.js +2 -2
  12. package/dist/commonjs/mcp-server/server.js.map +1 -1
  13. package/dist/commonjs/models/components/aaveliquiditychangeresponse.d.ts +1 -1
  14. package/dist/commonjs/models/operations/pendlemarket.d.ts +5 -0
  15. package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -1
  16. package/dist/commonjs/models/operations/pendlemarket.js +2 -0
  17. package/dist/commonjs/models/operations/pendlemarket.js.map +1 -1
  18. package/dist/commonjs/models/operations/pendleposition.d.ts +5 -0
  19. package/dist/commonjs/models/operations/pendleposition.d.ts.map +1 -1
  20. package/dist/commonjs/models/operations/pendleposition.js +2 -0
  21. package/dist/commonjs/models/operations/pendleposition.js.map +1 -1
  22. package/dist/commonjs/sdk/uniswapv3.d.ts +15 -15
  23. package/dist/commonjs/sdk/uniswapv3.d.ts.map +1 -1
  24. package/dist/commonjs/sdk/uniswapv3.js +17 -17
  25. package/dist/commonjs/sdk/uniswapv3.js.map +1 -1
  26. package/dist/esm/funcs/pendleMarket.js +1 -0
  27. package/dist/esm/funcs/pendleMarket.js.map +1 -1
  28. package/dist/esm/funcs/pendlePosition.js +1 -0
  29. package/dist/esm/funcs/pendlePosition.js.map +1 -1
  30. package/dist/esm/lib/config.d.ts +2 -2
  31. package/dist/esm/lib/config.js +2 -2
  32. package/dist/esm/mcp-server/mcp-server.js +1 -1
  33. package/dist/esm/mcp-server/server.js +2 -2
  34. package/dist/esm/mcp-server/server.js.map +1 -1
  35. package/dist/esm/models/components/aaveliquiditychangeresponse.d.ts +1 -1
  36. package/dist/esm/models/operations/pendlemarket.d.ts +5 -0
  37. package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -1
  38. package/dist/esm/models/operations/pendlemarket.js +2 -0
  39. package/dist/esm/models/operations/pendlemarket.js.map +1 -1
  40. package/dist/esm/models/operations/pendleposition.d.ts +5 -0
  41. package/dist/esm/models/operations/pendleposition.d.ts.map +1 -1
  42. package/dist/esm/models/operations/pendleposition.js +2 -0
  43. package/dist/esm/models/operations/pendleposition.js.map +1 -1
  44. package/dist/esm/sdk/uniswapv3.d.ts +15 -15
  45. package/dist/esm/sdk/uniswapv3.d.ts.map +1 -1
  46. package/dist/esm/sdk/uniswapv3.js +17 -17
  47. package/dist/esm/sdk/uniswapv3.js.map +1 -1
  48. package/docs/sdks/uniswapv3/README.md +47 -47
  49. package/jsr.json +1 -1
  50. package/package.json +1 -1
  51. package/src/funcs/pendleMarket.ts +1 -0
  52. package/src/funcs/pendlePosition.ts +1 -0
  53. package/src/lib/config.ts +2 -2
  54. package/src/mcp-server/mcp-server.ts +1 -1
  55. package/src/mcp-server/server.ts +2 -2
  56. package/src/models/components/aaveliquiditychangeresponse.ts +1 -1
  57. package/src/models/operations/pendlemarket.ts +7 -0
  58. package/src/models/operations/pendleposition.ts +7 -0
  59. package/src/sdk/uniswapv3.ts +24 -24
@@ -19,6 +19,10 @@ export type PendlePositionRequest = {
19
19
  * The chain to use.
20
20
  */
21
21
  chain?: PendlePositionChain | undefined;
22
+ /**
23
+ * Optional block number (defaults to latest).
24
+ */
25
+ block?: number | null | undefined;
22
26
  /**
23
27
  * The user address of the desired position.
24
28
  */
@@ -55,6 +59,7 @@ export declare const PendlePositionRequest$inboundSchema: z.ZodType<PendlePositi
55
59
  /** @internal */
56
60
  export type PendlePositionRequest$Outbound = {
57
61
  chain: string;
62
+ block?: number | null | undefined;
58
63
  user_address: string;
59
64
  market_address: string;
60
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pendleposition.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/pendleposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,mBAAmB,CACS,CAAC;AAEtC;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa;;;;MAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc;;;;MAAqC,CAAC;CAClE;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAYrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
1
+ {"version":3,"file":"pendleposition.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/pendleposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,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AqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -30,6 +30,7 @@ export var PendlePositionChain$;
30
30
  /** @internal */
31
31
  export const PendlePositionRequest$inboundSchema = z.object({
32
32
  chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
33
+ block: z.nullable(z.number().int()).optional(),
33
34
  user_address: z.string().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
34
35
  market_address: z.string().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2"),
35
36
  }).transform((v) => {
@@ -41,6 +42,7 @@ export const PendlePositionRequest$inboundSchema = z.object({
41
42
  /** @internal */
42
43
  export const PendlePositionRequest$outboundSchema = z.object({
43
44
  chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
45
+ block: z.nullable(z.number().int()).optional(),
44
46
  userAddress: z.string().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
45
47
  marketAddress: z.string().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2"),
46
48
  }).transform((v) => {
@@ -1 +1 @@
1
- {"version":3,"file":"pendleposition.js","sourceRoot":"","sources":["../../../../src/models/operations/pendleposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAqBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,mBAAmB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AAEH;;;GAGG;AACH,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,mCAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,oCAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,KAAtB,sBAAsB,QAOtC;AAED,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"pendleposition.js","sourceRoot":"","sources":["../../../../src/models/operations/pendleposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAyBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,iCAAiC,CAAC;AAEtC;;;GAGG;AACH,MAAM,KAAW,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,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AgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,mCAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,oCAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,KAAtB,sBAAsB,QAOtC;AAED,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -86,21 +86,6 @@ export declare class UniswapV3 extends ClientSDK {
86
86
  * wrapped, the appropriate amount will be wrapped automatically.
87
87
  */
88
88
  swapSellExactly(request: components.UniswapSellExactlyRequest, options?: RequestOptions): Promise<components.TxResponse>;
89
- /**
90
- * Increase an LP position
91
- *
92
- * @remarks
93
- * This endpoint allows users to increase their existing Liquidity Provider (LP)
94
- * positions on the Uniswap platform.
95
- *
96
- * By providing the necessary parameters, users can add more liquidity to their current
97
- * positions, thereby increasing their stake in the liquidity pool. This operation is
98
- * beneficial for users who wish to enhance their potential earnings from trading fees
99
- * within the pool. The endpoint requires details such as the token pair, additional
100
- * amount to be added, and any other parameters necessary for the liquidity increase
101
- * process.
102
- */
103
- liquidityProvisionIncrease(request: components.UniswapIncreaseLiquidityProvisionRequest, options?: RequestOptions): Promise<components.TxResponse>;
104
89
  /**
105
90
  * Open a new LP position
106
91
  *
@@ -116,6 +101,21 @@ export declare class UniswapV3 extends ClientSDK {
116
101
  * needed for the minting process.
117
102
  */
118
103
  liquidityProvisionMint(request: components.UniswapMintLiquidityProvisionRequest, options?: RequestOptions): Promise<components.TxResponse>;
104
+ /**
105
+ * Increase an LP position
106
+ *
107
+ * @remarks
108
+ * This endpoint allows users to increase their existing Liquidity Provider (LP)
109
+ * positions on the Uniswap platform.
110
+ *
111
+ * By providing the necessary parameters, users can add more liquidity to their current
112
+ * positions, thereby increasing their stake in the liquidity pool. This operation is
113
+ * beneficial for users who wish to enhance their potential earnings from trading fees
114
+ * within the pool. The endpoint requires details such as the token pair, additional
115
+ * amount to be added, and any other parameters necessary for the liquidity increase
116
+ * process.
117
+ */
118
+ liquidityProvisionIncrease(request: components.UniswapIncreaseLiquidityProvisionRequest, options?: RequestOptions): Promise<components.TxResponse>;
119
119
  /**
120
120
  * Withdraw an LP position
121
121
  *
@@ -1 +1 @@
1
- {"version":3,"file":"uniswapv3.d.ts","sourceRoot":"","sources":["../../../src/sdk/uniswapv3.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;OASG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;;;;;;;;OASG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;;;OAOG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;I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oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;;;;OAaG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,wCAAwC,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;;;;;OAcG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,wCAAwC,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;CAOlC"}
@@ -112,23 +112,6 @@ export class UniswapV3 extends ClientSDK {
112
112
  async swapSellExactly(request, options) {
113
113
  return unwrapAsync(uniswapV3SwapSellExactly(this, request, options));
114
114
  }
115
- /**
116
- * Increase an LP position
117
- *
118
- * @remarks
119
- * This endpoint allows users to increase their existing Liquidity Provider (LP)
120
- * positions on the Uniswap platform.
121
- *
122
- * By providing the necessary parameters, users can add more liquidity to their current
123
- * positions, thereby increasing their stake in the liquidity pool. This operation is
124
- * beneficial for users who wish to enhance their potential earnings from trading fees
125
- * within the pool. The endpoint requires details such as the token pair, additional
126
- * amount to be added, and any other parameters necessary for the liquidity increase
127
- * process.
128
- */
129
- async liquidityProvisionIncrease(request, options) {
130
- return unwrapAsync(uniswapV3LiquidityProvisionIncrease(this, request, options));
131
- }
132
115
  /**
133
116
  * Open a new LP position
134
117
  *
@@ -146,6 +129,23 @@ export class UniswapV3 extends ClientSDK {
146
129
  async liquidityProvisionMint(request, options) {
147
130
  return unwrapAsync(uniswapV3LiquidityProvisionMint(this, request, options));
148
131
  }
132
+ /**
133
+ * Increase an LP position
134
+ *
135
+ * @remarks
136
+ * This endpoint allows users to increase their existing Liquidity Provider (LP)
137
+ * positions on the Uniswap platform.
138
+ *
139
+ * By providing the necessary parameters, users can add more liquidity to their current
140
+ * positions, thereby increasing their stake in the liquidity pool. This operation is
141
+ * beneficial for users who wish to enhance their potential earnings from trading fees
142
+ * within the pool. The endpoint requires details such as the token pair, additional
143
+ * amount to be added, and any other parameters necessary for the liquidity increase
144
+ * process.
145
+ */
146
+ async liquidityProvisionIncrease(request, options) {
147
+ return unwrapAsync(uniswapV3LiquidityProvisionIncrease(this, request, options));
148
+ }
149
149
  /**
150
150
  * Withdraw an LP position
151
151
  *
@@ -1 +1 @@
1
- {"version":3,"file":"uniswapv3.js","sourceRoot":"","sources":["../../../src/sdk/uniswapv3.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,oCAAoC,EAAE,MAAM,kDAAkD,CAAC;AACxG,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;OASG;IACH,KAAK,CAAC,eAAe,CACnB,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,gBAAgB,CACpB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OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAA4D,EAC5D,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -12,8 +12,8 @@
12
12
  * [liquidityProvisionPositions](#liquidityprovisionpositions) - List LP
13
13
  * [swapBuyExactly](#swapbuyexactly) - Buy exact amount
14
14
  * [swapSellExactly](#swapsellexactly) - Sell exact amount
15
- * [liquidityProvisionIncrease](#liquidityprovisionincrease) - Increase an LP position
16
15
  * [liquidityProvisionMint](#liquidityprovisionmint) - Open a new LP position
16
+ * [liquidityProvisionIncrease](#liquidityprovisionincrease) - Increase an LP position
17
17
  * [liquidityProvisionWithdraw](#liquidityprovisionwithdraw) - Withdraw an LP position
18
18
 
19
19
  ## quoteBuyExactly
@@ -578,17 +578,17 @@ run();
578
578
  | errors.HTTPValidationError | 422 | application/json |
579
579
  | errors.APIError | 4XX, 5XX | \*/\* |
580
580
 
581
- ## liquidityProvisionIncrease
581
+ ## liquidityProvisionMint
582
582
 
583
- This endpoint allows users to increase their existing Liquidity Provider (LP)
584
- positions on the Uniswap platform.
583
+ This endpoint allows users to open a new Liquidity Provider (LP) position on the
584
+ Uniswap platform.
585
585
 
586
- By providing the necessary parameters, users can add more liquidity to their current
587
- positions, thereby increasing their stake in the liquidity pool. This operation is
588
- beneficial for users who wish to enhance their potential earnings from trading fees
589
- within the pool. The endpoint requires details such as the token pair, additional
590
- amount to be added, and any other parameters necessary for the liquidity increase
591
- process.
586
+ By providing the necessary parameters, users can initiate a minting process to
587
+ create a new LP token, which represents their stake in a specific liquidity pool.
588
+ This operation is essential for users looking to participate in liquidity provision,
589
+ enabling them to earn fees from trades that occur within the pool. The endpoint
590
+ requires details such as the token pair, amount, and any additional parameters
591
+ needed for the minting process.
592
592
 
593
593
  ### Example Usage
594
594
 
@@ -600,13 +600,18 @@ const compassApiSDK = new CompassApiSDK({
600
600
  });
601
601
 
602
602
  async function run() {
603
- const result = await compassApiSDK.uniswapV3.liquidityProvisionIncrease({
604
- tokenId: 819447,
603
+ const result = await compassApiSDK.uniswapV3.liquidityProvisionMint({
604
+ token0: "USDCe",
605
+ token1: "ARB",
606
+ fee: "0.3",
607
+ tickLower: -1000,
608
+ tickUpper: 1000,
605
609
  amount0Desired: "1.5",
606
610
  amount1Desired: "1.7",
607
611
  amount0Min: "1.4",
608
612
  amount1Min: "1.6",
609
- chain: "ethereum:mainnet",
613
+ recipient: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
614
+ chain: "arbitrum:mainnet",
610
615
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
611
616
  });
612
617
 
@@ -622,7 +627,7 @@ The standalone function version of this method:
622
627
 
623
628
  ```typescript
624
629
  import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
625
- import { uniswapV3LiquidityProvisionIncrease } from "@compass-labs/api-sdk/funcs/uniswapV3LiquidityProvisionIncrease.js";
630
+ import { uniswapV3LiquidityProvisionMint } from "@compass-labs/api-sdk/funcs/uniswapV3LiquidityProvisionMint.js";
626
631
 
627
632
  // Use `CompassApiSDKCore` for best tree-shaking performance.
628
633
  // You can create one instance of it to use across an application.
@@ -631,20 +636,25 @@ const compassApiSDK = new CompassApiSDKCore({
631
636
  });
632
637
 
633
638
  async function run() {
634
- const res = await uniswapV3LiquidityProvisionIncrease(compassApiSDK, {
635
- tokenId: 819447,
639
+ const res = await uniswapV3LiquidityProvisionMint(compassApiSDK, {
640
+ token0: "USDCe",
641
+ token1: "ARB",
642
+ fee: "0.3",
643
+ tickLower: -1000,
644
+ tickUpper: 1000,
636
645
  amount0Desired: "1.5",
637
646
  amount1Desired: "1.7",
638
647
  amount0Min: "1.4",
639
648
  amount1Min: "1.6",
640
- chain: "ethereum:mainnet",
649
+ recipient: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
650
+ chain: "arbitrum:mainnet",
641
651
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
642
652
  });
643
653
  if (res.ok) {
644
654
  const { value: result } = res;
645
655
  console.log(result);
646
656
  } else {
647
- console.log("uniswapV3LiquidityProvisionIncrease failed:", res.error);
657
+ console.log("uniswapV3LiquidityProvisionMint failed:", res.error);
648
658
  }
649
659
  }
650
660
 
@@ -655,7 +665,7 @@ run();
655
665
 
656
666
  | Parameter | Type | Required | Description |
657
667
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
658
- | `request` | [components.UniswapIncreaseLiquidityProvisionRequest](../../models/components/uniswapincreaseliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
668
+ | `request` | [components.UniswapMintLiquidityProvisionRequest](../../models/components/uniswapmintliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
659
669
  | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
660
670
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
661
671
  | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
@@ -671,17 +681,17 @@ run();
671
681
  | errors.HTTPValidationError | 422 | application/json |
672
682
  | errors.APIError | 4XX, 5XX | \*/\* |
673
683
 
674
- ## liquidityProvisionMint
684
+ ## liquidityProvisionIncrease
675
685
 
676
- This endpoint allows users to open a new Liquidity Provider (LP) position on the
677
- Uniswap platform.
686
+ This endpoint allows users to increase their existing Liquidity Provider (LP)
687
+ positions on the Uniswap platform.
678
688
 
679
- By providing the necessary parameters, users can initiate a minting process to
680
- create a new LP token, which represents their stake in a specific liquidity pool.
681
- This operation is essential for users looking to participate in liquidity provision,
682
- enabling them to earn fees from trades that occur within the pool. The endpoint
683
- requires details such as the token pair, amount, and any additional parameters
684
- needed for the minting process.
689
+ By providing the necessary parameters, users can add more liquidity to their current
690
+ positions, thereby increasing their stake in the liquidity pool. This operation is
691
+ beneficial for users who wish to enhance their potential earnings from trading fees
692
+ within the pool. The endpoint requires details such as the token pair, additional
693
+ amount to be added, and any other parameters necessary for the liquidity increase
694
+ process.
685
695
 
686
696
  ### Example Usage
687
697
 
@@ -693,18 +703,13 @@ const compassApiSDK = new CompassApiSDK({
693
703
  });
694
704
 
695
705
  async function run() {
696
- const result = await compassApiSDK.uniswapV3.liquidityProvisionMint({
697
- token0: "USDCe",
698
- token1: "ARB",
699
- fee: "0.3",
700
- tickLower: -1000,
701
- tickUpper: 1000,
706
+ const result = await compassApiSDK.uniswapV3.liquidityProvisionIncrease({
707
+ tokenId: 819447,
702
708
  amount0Desired: "1.5",
703
709
  amount1Desired: "1.7",
704
710
  amount0Min: "1.4",
705
711
  amount1Min: "1.6",
706
- recipient: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
707
- chain: "arbitrum:mainnet",
712
+ chain: "ethereum:mainnet",
708
713
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
709
714
  });
710
715
 
@@ -720,7 +725,7 @@ The standalone function version of this method:
720
725
 
721
726
  ```typescript
722
727
  import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
723
- import { uniswapV3LiquidityProvisionMint } from "@compass-labs/api-sdk/funcs/uniswapV3LiquidityProvisionMint.js";
728
+ import { uniswapV3LiquidityProvisionIncrease } from "@compass-labs/api-sdk/funcs/uniswapV3LiquidityProvisionIncrease.js";
724
729
 
725
730
  // Use `CompassApiSDKCore` for best tree-shaking performance.
726
731
  // You can create one instance of it to use across an application.
@@ -729,25 +734,20 @@ const compassApiSDK = new CompassApiSDKCore({
729
734
  });
730
735
 
731
736
  async function run() {
732
- const res = await uniswapV3LiquidityProvisionMint(compassApiSDK, {
733
- token0: "USDCe",
734
- token1: "ARB",
735
- fee: "0.3",
736
- tickLower: -1000,
737
- tickUpper: 1000,
737
+ const res = await uniswapV3LiquidityProvisionIncrease(compassApiSDK, {
738
+ tokenId: 819447,
738
739
  amount0Desired: "1.5",
739
740
  amount1Desired: "1.7",
740
741
  amount0Min: "1.4",
741
742
  amount1Min: "1.6",
742
- recipient: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
743
- chain: "arbitrum:mainnet",
743
+ chain: "ethereum:mainnet",
744
744
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
745
745
  });
746
746
  if (res.ok) {
747
747
  const { value: result } = res;
748
748
  console.log(result);
749
749
  } else {
750
- console.log("uniswapV3LiquidityProvisionMint failed:", res.error);
750
+ console.log("uniswapV3LiquidityProvisionIncrease failed:", res.error);
751
751
  }
752
752
  }
753
753
 
@@ -758,7 +758,7 @@ run();
758
758
 
759
759
  | Parameter | Type | Required | Description |
760
760
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
761
- | `request` | [components.UniswapMintLiquidityProvisionRequest](../../models/components/uniswapmintliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
761
+ | `request` | [components.UniswapIncreaseLiquidityProvisionRequest](../../models/components/uniswapincreaseliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
762
762
  | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
763
763
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
764
764
  | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@compass-labs/api-sdk",
5
- "version": "0.5.28",
5
+ "version": "0.5.30",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "0.5.28",
3
+ "version": "0.5.30",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -92,6 +92,7 @@ async function $do(
92
92
  const path = pathToFunc("/v0/pendle/market")();
93
93
 
94
94
  const query = encodeFormQuery({
95
+ "block": payload.block,
95
96
  "chain": payload.chain,
96
97
  "market_address": payload.market_address,
97
98
  });
@@ -92,6 +92,7 @@ async function $do(
92
92
  const path = pathToFunc("/v0/pendle/position")();
93
93
 
94
94
  const query = encodeFormQuery({
95
+ "block": payload.block,
95
96
  "chain": payload.chain,
96
97
  "market_address": payload.market_address,
97
98
  "user_address": payload.user_address,
package/src/lib/config.ts CHANGED
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.0.1",
64
- sdkVersion: "0.5.28",
64
+ sdkVersion: "0.5.30",
65
65
  genVersion: "2.638.5",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 0.5.28 2.638.5 0.0.1 @compass-labs/api-sdk",
67
+ "speakeasy-sdk/typescript 0.5.30 2.638.5 0.0.1 @compass-labs/api-sdk",
68
68
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.5.28",
22
+ currentVersion: "0.5.30",
23
23
  },
24
24
  });
25
25
 
@@ -101,7 +101,7 @@ export function createMCPServer(deps: {
101
101
  }) {
102
102
  const server = new McpServer({
103
103
  name: "CompassApiSDK",
104
- version: "0.5.28",
104
+ version: "0.5.30",
105
105
  });
106
106
 
107
107
  const client = new CompassApiSDKCore({
@@ -180,8 +180,8 @@ export function createMCPServer(deps: {
180
180
  tool(tool$uniswapV3LiquidityProvisionPositions);
181
181
  tool(tool$uniswapV3SwapBuyExactly);
182
182
  tool(tool$uniswapV3SwapSellExactly);
183
- tool(tool$uniswapV3LiquidityProvisionIncrease);
184
183
  tool(tool$uniswapV3LiquidityProvisionMint);
184
+ tool(tool$uniswapV3LiquidityProvisionIncrease);
185
185
  tool(tool$uniswapV3LiquidityProvisionWithdraw);
186
186
  tool(tool$universalPortfolio);
187
187
  tool(tool$universalVisualizePortfolio);
@@ -18,7 +18,7 @@ export type AaveLiquidityChangeResponse = {
18
18
  */
19
19
  startTime: Date;
20
20
  /**
21
- * Dateime of ending block
21
+ * Datetime of ending block
22
22
  */
23
23
  endTime: Date;
24
24
  };
@@ -27,6 +27,10 @@ export type PendleMarketRequest = {
27
27
  * The chain to use.
28
28
  */
29
29
  chain?: PendleMarketChain | undefined;
30
+ /**
31
+ * Optional block number (defaults to latest).
32
+ */
33
+ block?: number | null | undefined;
30
34
  /**
31
35
  * The market address of the desired position.
32
36
  */
@@ -61,6 +65,7 @@ export const PendleMarketRequest$inboundSchema: z.ZodType<
61
65
  unknown
62
66
  > = z.object({
63
67
  chain: PendleMarketChain$inboundSchema.default("ethereum:mainnet"),
68
+ block: z.nullable(z.number().int()).optional(),
64
69
  market_address: z.string().default(
65
70
  "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
66
71
  ),
@@ -73,6 +78,7 @@ export const PendleMarketRequest$inboundSchema: z.ZodType<
73
78
  /** @internal */
74
79
  export type PendleMarketRequest$Outbound = {
75
80
  chain: string;
81
+ block?: number | null | undefined;
76
82
  market_address: string;
77
83
  };
78
84
 
@@ -83,6 +89,7 @@ export const PendleMarketRequest$outboundSchema: z.ZodType<
83
89
  PendleMarketRequest
84
90
  > = z.object({
85
91
  chain: PendleMarketChain$outboundSchema.default("ethereum:mainnet"),
92
+ block: z.nullable(z.number().int()).optional(),
86
93
  marketAddress: z.string().default(
87
94
  "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
88
95
  ),
@@ -27,6 +27,10 @@ export type PendlePositionRequest = {
27
27
  * The chain to use.
28
28
  */
29
29
  chain?: PendlePositionChain | undefined;
30
+ /**
31
+ * Optional block number (defaults to latest).
32
+ */
33
+ block?: number | null | undefined;
30
34
  /**
31
35
  * The user address of the desired position.
32
36
  */
@@ -65,6 +69,7 @@ export const PendlePositionRequest$inboundSchema: z.ZodType<
65
69
  unknown
66
70
  > = z.object({
67
71
  chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
72
+ block: z.nullable(z.number().int()).optional(),
68
73
  user_address: z.string().default(
69
74
  "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
70
75
  ),
@@ -81,6 +86,7 @@ export const PendlePositionRequest$inboundSchema: z.ZodType<
81
86
  /** @internal */
82
87
  export type PendlePositionRequest$Outbound = {
83
88
  chain: string;
89
+ block?: number | null | undefined;
84
90
  user_address: string;
85
91
  market_address: string;
86
92
  };
@@ -92,6 +98,7 @@ export const PendlePositionRequest$outboundSchema: z.ZodType<
92
98
  PendlePositionRequest
93
99
  > = z.object({
94
100
  chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
101
+ block: z.nullable(z.number().int()).optional(),
95
102
  userAddress: z.string().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
96
103
  marketAddress: z.string().default(
97
104
  "0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2",
@@ -173,24 +173,24 @@ export class UniswapV3 extends ClientSDK {
173
173
  }
174
174
 
175
175
  /**
176
- * Increase an LP position
176
+ * Open a new LP position
177
177
  *
178
178
  * @remarks
179
- * This endpoint allows users to increase their existing Liquidity Provider (LP)
180
- * positions on the Uniswap platform.
179
+ * This endpoint allows users to open a new Liquidity Provider (LP) position on the
180
+ * Uniswap platform.
181
181
  *
182
- * By providing the necessary parameters, users can add more liquidity to their current
183
- * positions, thereby increasing their stake in the liquidity pool. This operation is
184
- * beneficial for users who wish to enhance their potential earnings from trading fees
185
- * within the pool. The endpoint requires details such as the token pair, additional
186
- * amount to be added, and any other parameters necessary for the liquidity increase
187
- * process.
182
+ * By providing the necessary parameters, users can initiate a minting process to
183
+ * create a new LP token, which represents their stake in a specific liquidity pool.
184
+ * This operation is essential for users looking to participate in liquidity provision,
185
+ * enabling them to earn fees from trades that occur within the pool. The endpoint
186
+ * requires details such as the token pair, amount, and any additional parameters
187
+ * needed for the minting process.
188
188
  */
189
- async liquidityProvisionIncrease(
190
- request: components.UniswapIncreaseLiquidityProvisionRequest,
189
+ async liquidityProvisionMint(
190
+ request: components.UniswapMintLiquidityProvisionRequest,
191
191
  options?: RequestOptions,
192
192
  ): Promise<components.TxResponse> {
193
- return unwrapAsync(uniswapV3LiquidityProvisionIncrease(
193
+ return unwrapAsync(uniswapV3LiquidityProvisionMint(
194
194
  this,
195
195
  request,
196
196
  options,
@@ -198,24 +198,24 @@ export class UniswapV3 extends ClientSDK {
198
198
  }
199
199
 
200
200
  /**
201
- * Open a new LP position
201
+ * Increase an LP position
202
202
  *
203
203
  * @remarks
204
- * This endpoint allows users to open a new Liquidity Provider (LP) position on the
205
- * Uniswap platform.
204
+ * This endpoint allows users to increase their existing Liquidity Provider (LP)
205
+ * positions on the Uniswap platform.
206
206
  *
207
- * By providing the necessary parameters, users can initiate a minting process to
208
- * create a new LP token, which represents their stake in a specific liquidity pool.
209
- * This operation is essential for users looking to participate in liquidity provision,
210
- * enabling them to earn fees from trades that occur within the pool. The endpoint
211
- * requires details such as the token pair, amount, and any additional parameters
212
- * needed for the minting process.
207
+ * By providing the necessary parameters, users can add more liquidity to their current
208
+ * positions, thereby increasing their stake in the liquidity pool. This operation is
209
+ * beneficial for users who wish to enhance their potential earnings from trading fees
210
+ * within the pool. The endpoint requires details such as the token pair, additional
211
+ * amount to be added, and any other parameters necessary for the liquidity increase
212
+ * process.
213
213
  */
214
- async liquidityProvisionMint(
215
- request: components.UniswapMintLiquidityProvisionRequest,
214
+ async liquidityProvisionIncrease(
215
+ request: components.UniswapIncreaseLiquidityProvisionRequest,
216
216
  options?: RequestOptions,
217
217
  ): Promise<components.TxResponse> {
218
- return unwrapAsync(uniswapV3LiquidityProvisionMint(
218
+ return unwrapAsync(uniswapV3LiquidityProvisionIncrease(
219
219
  this,
220
220
  request,
221
221
  options,