@compass-labs/api-sdk 0.0.9 → 0.0.10

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.
@@ -124,13 +124,14 @@ async function run() {
124
124
  },
125
125
  actions: [
126
126
  {
127
- actionType: "UNWRAP_WETH",
127
+ actionType: "UNISWAP_BUY_EXACTLY",
128
128
  body: {
129
- tokenIn: "KNC",
130
- tokenOut: "MKR",
131
- tickSpacing: 500,
129
+ tokenIn: "WETH",
130
+ tokenOut: "USDC",
131
+ fee: "0.01",
132
132
  amountOut: 1.5,
133
133
  amountInMaximum: 1.6,
134
+ wrapEth: true,
134
135
  },
135
136
  },
136
137
  ],
@@ -171,13 +172,14 @@ async function run() {
171
172
  },
172
173
  actions: [
173
174
  {
174
- actionType: "UNWRAP_WETH",
175
+ actionType: "UNISWAP_BUY_EXACTLY",
175
176
  body: {
176
- tokenIn: "KNC",
177
- tokenOut: "MKR",
178
- tickSpacing: 500,
177
+ tokenIn: "WETH",
178
+ tokenOut: "USDC",
179
+ fee: "0.01",
179
180
  amountOut: 1.5,
180
181
  amountInMaximum: 1.6,
182
+ wrapEth: true,
181
183
  },
182
184
  },
183
185
  ],
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@compass-labs/api-sdk",
5
- "version": "0.0.9",
5
+ "version": "0.0.10",
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.0.9",
3
+ "version": "0.0.10",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/config.ts CHANGED
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "0.0.1",
60
- sdkVersion: "0.0.9",
60
+ sdkVersion: "0.0.10",
61
61
  genVersion: "2.596.2",
62
62
  userAgent:
63
- "speakeasy-sdk/typescript 0.0.9 2.596.2 0.0.1 @compass-labs/api-sdk",
63
+ "speakeasy-sdk/typescript 0.0.10 2.596.2 0.0.1 @compass-labs/api-sdk",
64
64
  } 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.0.9",
22
+ currentVersion: "0.0.10",
23
23
  },
24
24
  });
25
25
 
@@ -74,7 +74,7 @@ export function createMCPServer(deps: {
74
74
  }) {
75
75
  const server = new McpServer({
76
76
  name: "CompassApiSDK",
77
- version: "0.0.9",
77
+ version: "0.0.10",
78
78
  });
79
79
 
80
80
  const client = new CompassApiSDKCore({
@@ -6,34 +6,34 @@ import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const MulticallActionType = {
9
- AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
10
- TransferErc20: "TRANSFER_ERC20",
11
- AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
12
- UniswapAddLiquidity: "UNISWAP_ADD_LIQUIDITY",
13
- AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
14
9
  AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
15
- AllowanceIncrease: "ALLOWANCE_INCREASE",
16
- UniswapSellExactly: "UNISWAP_SELL_EXACTLY",
17
- AerodromeSlipstreamIncreaseLiquidity:
18
- "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
19
- AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
20
- AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
21
- AaveSupply: "AAVE_SUPPLY",
22
10
  UniswapWithdrawLiquidity: "UNISWAP_WITHDRAW_LIQUIDITY",
23
- AaveBorrow: "AAVE_BORROW",
24
- AerodromeSlipstreamWithdrawLiquidity:
25
- "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
26
- AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
27
- UniswapMintLiquidity: "UNISWAP_MINT_LIQUIDITY",
28
- AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
29
- UniswapBuyExactly: "UNISWAP_BUY_EXACTLY",
30
11
  AerodromeSlipstreamMintLiquidity: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY",
12
+ AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
31
13
  WrapEth: "WRAP_ETH",
14
+ UniswapSellExactly: "UNISWAP_SELL_EXACTLY",
15
+ AerodromeSlipstreamSellExactly: "AERODROME_SLIPSTREAM_SELL_EXACTLY",
16
+ UniswapMintLiquidity: "UNISWAP_MINT_LIQUIDITY",
17
+ AerodromeSlipstreamWithdrawLiquidity:
18
+ "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
19
+ UniswapAddLiquidity: "UNISWAP_ADD_LIQUIDITY",
32
20
  AaveRepay: "AAVE_REPAY",
33
- AaveWithdraw: "AAVE_WITHDRAW",
34
- UnwrapWeth: "UNWRAP_WETH",
21
+ AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
22
+ AaveBorrow: "AAVE_BORROW",
23
+ AaveSupply: "AAVE_SUPPLY",
35
24
  AerodromeSlipstreamBuyExactly: "AERODROME_SLIPSTREAM_BUY_EXACTLY",
36
- AerodromeSlipstreamSellExactly: "AERODROME_SLIPSTREAM_SELL_EXACTLY",
25
+ AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
26
+ AerodromeSlipstreamIncreaseLiquidity:
27
+ "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
28
+ AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
29
+ UnwrapWeth: "UNWRAP_WETH",
30
+ AaveWithdraw: "AAVE_WITHDRAW",
31
+ AllowanceIncrease: "ALLOWANCE_INCREASE",
32
+ AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
33
+ UniswapBuyExactly: "UNISWAP_BUY_EXACTLY",
34
+ AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
35
+ TransferErc20: "TRANSFER_ERC20",
36
+ AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
37
37
  } as const;
38
38
  export type MulticallActionType = ClosedEnum<typeof MulticallActionType>;
39
39