@compass-labs/api-sdk 0.5.61 → 0.5.62
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.
- package/README.md +22 -27
- package/bin/mcp-server.js +188 -451
- package/bin/mcp-server.js.map +28 -32
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionInRange.d.ts → uniswapV3LiquidityProvisionInRange.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionInRange.js → uniswapV3LiquidityProvisionInRange.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.js.map +1 -0
- package/dist/{esm/funcs/uniswapV3V0LiquidityProvisionIncrease.d.ts → commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionIncrease.js → uniswapV3LiquidityProvisionIncrease.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -0
- package/dist/{esm/funcs/uniswapV3V0LiquidityProvisionMint.d.ts → commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionMint.js → uniswapV3LiquidityProvisionMint.js} +3 -3
- package/dist/commonjs/funcs/{uniswapV3V1UniswapSwapBuyExactly.js.map → uniswapV3LiquidityProvisionMint.js.map} +1 -1
- package/dist/{esm/funcs/uniswapV3V0LiquidityProvisionPositions.d.ts → commonjs/funcs/uniswapV3LiquidityProvisionPositions.d.ts} +2 -2
- package/dist/{esm/funcs/uniswapV3V0LiquidityProvisionInRange.d.ts.map → commonjs/funcs/uniswapV3LiquidityProvisionPositions.d.ts.map} +1 -1
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionPositions.js → uniswapV3LiquidityProvisionPositions.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.js.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionWithdraw.d.ts → uniswapV3LiquidityProvisionWithdraw.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0LiquidityProvisionWithdraw.js → uniswapV3LiquidityProvisionWithdraw.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0PoolPrice.d.ts → uniswapV3PoolPrice.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3PoolPrice.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0PoolPrice.js → uniswapV3PoolPrice.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3PoolPrice.js.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0QuoteSellExactly.d.ts → uniswapV3QuoteBuyExactly.d.ts} +3 -3
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0QuoteBuyExactly.js → uniswapV3QuoteBuyExactly.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.js.map +1 -0
- package/dist/{esm/funcs/uniswapV3V0QuoteBuyExactly.d.ts → commonjs/funcs/uniswapV3QuoteSellExactly.d.ts} +3 -3
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0QuoteSellExactly.js → uniswapV3QuoteSellExactly.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.js.map +1 -0
- package/dist/{esm/funcs/uniswapV3V0SwapBuyExactly.d.ts → commonjs/funcs/uniswapV3SwapBuyExactly.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0SwapBuyExactly.js → uniswapV3SwapBuyExactly.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0SwapSellExactly.d.ts → uniswapV3SwapSellExactly.d.ts} +2 -2
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -0
- package/dist/commonjs/funcs/{uniswapV3V0SwapSellExactly.js → uniswapV3SwapSellExactly.js} +3 -3
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +21 -23
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.d.ts → uniswapV3LiquidityProvisionInRange.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionInRange.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.js → uniswapV3LiquidityProvisionInRange.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionInRange.js.map +1 -0
- package/dist/{esm/mcp-server/tools/uniswapV3V0LiquidityProvisionIncrease.d.ts → commonjs/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionIncrease.js → uniswapV3LiquidityProvisionIncrease.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.js.map +1 -0
- package/dist/{esm/mcp-server/tools/uniswapV3V0LiquidityProvisionMint.d.ts → commonjs/mcp-server/tools/uniswapV3LiquidityProvisionMint.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionMint.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionMint.js → uniswapV3LiquidityProvisionMint.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionMint.js.map +1 -0
- package/dist/{esm/mcp-server/tools/uniswapV3V0LiquidityProvisionPositions.d.ts → commonjs/mcp-server/tools/uniswapV3LiquidityProvisionPositions.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.d.ts.map → uniswapV3LiquidityProvisionPositions.d.ts.map} +1 -1
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionPositions.js → uniswapV3LiquidityProvisionPositions.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionPositions.js.map +1 -0
- package/dist/{esm/mcp-server/tools/uniswapV3V0LiquidityProvisionWithdraw.d.ts → commonjs/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0LiquidityProvisionWithdraw.js → uniswapV3LiquidityProvisionWithdraw.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.js.map +1 -0
- package/dist/{esm/mcp-server/tools/uniswapV3V0PoolPrice.d.ts → commonjs/mcp-server/tools/uniswapV3PoolPrice.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3PoolPrice.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0PoolPrice.js → uniswapV3PoolPrice.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3PoolPrice.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0QuoteBuyExactly.d.ts → uniswapV3QuoteBuyExactly.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3QuoteBuyExactly.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0QuoteBuyExactly.js → uniswapV3QuoteBuyExactly.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3QuoteBuyExactly.js.map +1 -0
- package/dist/{esm/mcp-server/tools/uniswapV3V0QuoteSellExactly.d.ts → commonjs/mcp-server/tools/uniswapV3QuoteSellExactly.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3QuoteSellExactly.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0QuoteSellExactly.js → uniswapV3QuoteSellExactly.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3QuoteSellExactly.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0SwapBuyExactly.d.ts → uniswapV3SwapBuyExactly.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapBuyExactly.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0SwapBuyExactly.js → uniswapV3SwapBuyExactly.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapBuyExactly.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0SwapSellExactly.d.ts → uniswapV3SwapSellExactly.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapSellExactly.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{uniswapV3V0SwapSellExactly.js → uniswapV3SwapSellExactly.js} +6 -6
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapSellExactly.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +0 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +0 -9
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +0 -5
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -6
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +3 -7
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/{esm/sdk/uniswapv3v0.d.ts → commonjs/sdk/uniswapv3.d.ts} +2 -2
- package/dist/commonjs/sdk/uniswapv3.d.ts.map +1 -0
- package/dist/commonjs/sdk/{uniswapv3v0.js → uniswapv3.js} +24 -24
- package/dist/commonjs/sdk/uniswapv3.js.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionInRange.d.ts → uniswapV3LiquidityProvisionInRange.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionInRange.js → uniswapV3LiquidityProvisionInRange.js} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.js.map +1 -0
- package/dist/{commonjs/funcs/uniswapV3V0LiquidityProvisionIncrease.d.ts → esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionIncrease.js → uniswapV3LiquidityProvisionIncrease.js} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -0
- package/dist/{commonjs/funcs/uniswapV3V0LiquidityProvisionMint.d.ts → esm/funcs/uniswapV3LiquidityProvisionMint.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionMint.js → uniswapV3LiquidityProvisionMint.js} +2 -2
- package/dist/esm/funcs/{uniswapV3V1UniswapSwapBuyExactly.js.map → uniswapV3LiquidityProvisionMint.js.map} +1 -1
- package/dist/{commonjs/funcs/uniswapV3V0LiquidityProvisionPositions.d.ts → esm/funcs/uniswapV3LiquidityProvisionPositions.d.ts} +2 -2
- package/dist/{commonjs/funcs/uniswapV3V0LiquidityProvisionInRange.d.ts.map → esm/funcs/uniswapV3LiquidityProvisionPositions.d.ts.map} +1 -1
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionPositions.js → uniswapV3LiquidityProvisionPositions.js} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.js.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionWithdraw.d.ts → uniswapV3LiquidityProvisionWithdraw.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0LiquidityProvisionWithdraw.js → uniswapV3LiquidityProvisionWithdraw.js} +2 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0PoolPrice.d.ts → uniswapV3PoolPrice.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3PoolPrice.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0PoolPrice.js → uniswapV3PoolPrice.js} +2 -2
- package/dist/esm/funcs/uniswapV3PoolPrice.js.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0QuoteSellExactly.d.ts → uniswapV3QuoteBuyExactly.d.ts} +3 -3
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0QuoteBuyExactly.js → uniswapV3QuoteBuyExactly.js} +2 -2
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.js.map +1 -0
- package/dist/{commonjs/funcs/uniswapV3V0QuoteBuyExactly.d.ts → esm/funcs/uniswapV3QuoteSellExactly.d.ts} +3 -3
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0QuoteSellExactly.js → uniswapV3QuoteSellExactly.js} +2 -2
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.js.map +1 -0
- package/dist/{commonjs/funcs/uniswapV3V0SwapBuyExactly.d.ts → esm/funcs/uniswapV3SwapBuyExactly.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0SwapBuyExactly.js → uniswapV3SwapBuyExactly.js} +2 -2
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0SwapSellExactly.d.ts → uniswapV3SwapSellExactly.d.ts} +2 -2
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -0
- package/dist/esm/funcs/{uniswapV3V0SwapSellExactly.js → uniswapV3SwapSellExactly.js} +2 -2
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +21 -23
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.d.ts → uniswapV3LiquidityProvisionInRange.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionInRange.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.js → uniswapV3LiquidityProvisionInRange.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionInRange.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionIncrease.d.ts → esm/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionIncrease.js → uniswapV3LiquidityProvisionIncrease.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionMint.d.ts → esm/mcp-server/tools/uniswapV3LiquidityProvisionMint.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionMint.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionMint.js → uniswapV3LiquidityProvisionMint.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionMint.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionPositions.d.ts → esm/mcp-server/tools/uniswapV3LiquidityProvisionPositions.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.d.ts.map → uniswapV3LiquidityProvisionPositions.d.ts.map} +1 -1
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionPositions.js → uniswapV3LiquidityProvisionPositions.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionPositions.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionWithdraw.d.ts → esm/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0LiquidityProvisionWithdraw.js → uniswapV3LiquidityProvisionWithdraw.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/uniswapV3V0PoolPrice.d.ts → esm/mcp-server/tools/uniswapV3PoolPrice.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3PoolPrice.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0PoolPrice.js → uniswapV3PoolPrice.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3PoolPrice.js.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0QuoteBuyExactly.d.ts → uniswapV3QuoteBuyExactly.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3QuoteBuyExactly.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0QuoteBuyExactly.js → uniswapV3QuoteBuyExactly.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3QuoteBuyExactly.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/uniswapV3V0QuoteSellExactly.d.ts → esm/mcp-server/tools/uniswapV3QuoteSellExactly.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3QuoteSellExactly.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0QuoteSellExactly.js → uniswapV3QuoteSellExactly.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3QuoteSellExactly.js.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0SwapBuyExactly.d.ts → uniswapV3SwapBuyExactly.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3SwapBuyExactly.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0SwapBuyExactly.js → uniswapV3SwapBuyExactly.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3SwapBuyExactly.js.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0SwapSellExactly.d.ts → uniswapV3SwapSellExactly.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/uniswapV3SwapSellExactly.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{uniswapV3V0SwapSellExactly.js → uniswapV3SwapSellExactly.js} +5 -5
- package/dist/esm/mcp-server/tools/uniswapV3SwapSellExactly.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +0 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +0 -9
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +0 -5
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -6
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +3 -7
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/{commonjs/sdk/uniswapv3v0.d.ts → esm/sdk/uniswapv3.d.ts} +2 -2
- package/dist/esm/sdk/uniswapv3.d.ts.map +1 -0
- package/dist/esm/sdk/{uniswapv3v0.js → uniswapv3.js} +22 -22
- package/dist/esm/sdk/uniswapv3.js.map +1 -0
- package/docs/sdks/{uniswapv3v0 → uniswapv3}/README.md +42 -42
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{uniswapV3V0LiquidityProvisionInRange.ts → uniswapV3LiquidityProvisionInRange.ts} +1 -1
- package/src/funcs/{uniswapV3V0LiquidityProvisionIncrease.ts → uniswapV3LiquidityProvisionIncrease.ts} +1 -1
- package/src/funcs/{uniswapV3V0LiquidityProvisionMint.ts → uniswapV3LiquidityProvisionMint.ts} +1 -1
- package/src/funcs/{uniswapV3V0LiquidityProvisionPositions.ts → uniswapV3LiquidityProvisionPositions.ts} +1 -1
- package/src/funcs/{uniswapV3V0LiquidityProvisionWithdraw.ts → uniswapV3LiquidityProvisionWithdraw.ts} +1 -1
- package/src/funcs/{uniswapV3V0PoolPrice.ts → uniswapV3PoolPrice.ts} +1 -1
- package/src/funcs/{uniswapV3V0QuoteBuyExactly.ts → uniswapV3QuoteBuyExactly.ts} +1 -1
- package/src/funcs/{uniswapV3V0QuoteSellExactly.ts → uniswapV3QuoteSellExactly.ts} +1 -1
- package/src/funcs/{uniswapV3V0SwapBuyExactly.ts → uniswapV3SwapBuyExactly.ts} +1 -1
- package/src/funcs/{uniswapV3V0SwapSellExactly.ts → uniswapV3SwapSellExactly.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +21 -23
- package/src/mcp-server/tools/{uniswapV3V0LiquidityProvisionInRange.ts → uniswapV3LiquidityProvisionInRange.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0LiquidityProvisionIncrease.ts → uniswapV3LiquidityProvisionIncrease.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0LiquidityProvisionMint.ts → uniswapV3LiquidityProvisionMint.ts} +25 -26
- package/src/mcp-server/tools/{uniswapV3V0LiquidityProvisionPositions.ts → uniswapV3LiquidityProvisionPositions.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0LiquidityProvisionWithdraw.ts → uniswapV3LiquidityProvisionWithdraw.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0PoolPrice.ts → uniswapV3PoolPrice.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0QuoteBuyExactly.ts → uniswapV3QuoteBuyExactly.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0QuoteSellExactly.ts → uniswapV3QuoteSellExactly.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0SwapBuyExactly.ts → uniswapV3SwapBuyExactly.ts} +4 -4
- package/src/mcp-server/tools/{uniswapV3V0SwapSellExactly.ts → uniswapV3SwapSellExactly.ts} +4 -4
- package/src/models/components/index.ts +0 -2
- package/src/models/components/useroperation.ts +0 -34
- package/src/sdk/sdk.ts +4 -10
- package/src/sdk/{uniswapv3v0.ts → uniswapv3.ts} +21 -21
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionInRange.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionIncrease.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionIncrease.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionMint.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionMint.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionPositions.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionPositions.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionWithdraw.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0LiquidityProvisionWithdraw.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0PoolPrice.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0PoolPrice.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0QuoteBuyExactly.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0QuoteBuyExactly.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0QuoteSellExactly.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0QuoteSellExactly.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0SwapBuyExactly.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0SwapBuyExactly.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0SwapSellExactly.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V0SwapSellExactly.js.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V1UniswapSwapBuyExactly.d.ts +0 -31
- package/dist/commonjs/funcs/uniswapV3V1UniswapSwapBuyExactly.d.ts.map +0 -1
- package/dist/commonjs/funcs/uniswapV3V1UniswapSwapBuyExactly.js +0 -131
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionInRange.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionIncrease.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionIncrease.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionMint.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionMint.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionPositions.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionPositions.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionWithdraw.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0LiquidityProvisionWithdraw.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0PoolPrice.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0PoolPrice.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0QuoteBuyExactly.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0QuoteBuyExactly.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0QuoteSellExactly.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0QuoteSellExactly.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0SwapBuyExactly.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0SwapBuyExactly.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0SwapSellExactly.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V0SwapSellExactly.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.js +0 -78
- package/dist/commonjs/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.js.map +0 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparamsv1.d.ts +0 -132
- package/dist/commonjs/models/components/uniswapbuyexactlyparamsv1.d.ts.map +0 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparamsv1.js +0 -165
- package/dist/commonjs/models/components/uniswapbuyexactlyparamsv1.js.map +0 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequestv1.d.ts +0 -171
- package/dist/commonjs/models/components/uniswapbuyexactlyrequestv1.d.ts.map +0 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequestv1.js +0 -189
- package/dist/commonjs/models/components/uniswapbuyexactlyrequestv1.js.map +0 -1
- package/dist/commonjs/sdk/uniswapv3v0.d.ts.map +0 -1
- package/dist/commonjs/sdk/uniswapv3v0.js.map +0 -1
- package/dist/commonjs/sdk/uniswapv3v1.d.ts +0 -25
- package/dist/commonjs/sdk/uniswapv3v1.d.ts.map +0 -1
- package/dist/commonjs/sdk/uniswapv3v1.js +0 -35
- package/dist/commonjs/sdk/uniswapv3v1.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionInRange.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionIncrease.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionIncrease.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionMint.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionMint.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionPositions.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionPositions.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionWithdraw.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0LiquidityProvisionWithdraw.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0PoolPrice.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0PoolPrice.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0QuoteBuyExactly.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0QuoteBuyExactly.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0QuoteSellExactly.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0QuoteSellExactly.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0SwapBuyExactly.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0SwapBuyExactly.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V0SwapSellExactly.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V0SwapSellExactly.js.map +0 -1
- package/dist/esm/funcs/uniswapV3V1UniswapSwapBuyExactly.d.ts +0 -31
- package/dist/esm/funcs/uniswapV3V1UniswapSwapBuyExactly.d.ts.map +0 -1
- package/dist/esm/funcs/uniswapV3V1UniswapSwapBuyExactly.js +0 -95
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionInRange.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionIncrease.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionIncrease.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionMint.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionMint.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionPositions.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionPositions.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionWithdraw.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0LiquidityProvisionWithdraw.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0PoolPrice.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0PoolPrice.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0QuoteBuyExactly.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0QuoteBuyExactly.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0QuoteSellExactly.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0QuoteSellExactly.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0SwapBuyExactly.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0SwapBuyExactly.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0SwapSellExactly.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V0SwapSellExactly.js.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.d.ts +0 -8
- package/dist/esm/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.js +0 -42
- package/dist/esm/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.js.map +0 -1
- package/dist/esm/models/components/uniswapbuyexactlyparamsv1.d.ts +0 -132
- package/dist/esm/models/components/uniswapbuyexactlyparamsv1.d.ts.map +0 -1
- package/dist/esm/models/components/uniswapbuyexactlyparamsv1.js +0 -121
- package/dist/esm/models/components/uniswapbuyexactlyparamsv1.js.map +0 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequestv1.d.ts +0 -171
- package/dist/esm/models/components/uniswapbuyexactlyrequestv1.d.ts.map +0 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequestv1.js +0 -145
- package/dist/esm/models/components/uniswapbuyexactlyrequestv1.js.map +0 -1
- package/dist/esm/sdk/uniswapv3v0.d.ts.map +0 -1
- package/dist/esm/sdk/uniswapv3v0.js.map +0 -1
- package/dist/esm/sdk/uniswapv3v1.d.ts +0 -25
- package/dist/esm/sdk/uniswapv3v1.d.ts.map +0 -1
- package/dist/esm/sdk/uniswapv3v1.js +0 -31
- package/dist/esm/sdk/uniswapv3v1.js.map +0 -1
- package/docs/sdks/uniswapv3v1/README.md +0 -108
- package/src/funcs/uniswapV3V1UniswapSwapBuyExactly.ts +0 -183
- package/src/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.ts +0 -53
- package/src/models/components/uniswapbuyexactlyparamsv1.ts +0 -300
- package/src/models/components/uniswapbuyexactlyrequestv1.ts +0 -347
- package/src/sdk/uniswapv3v1.ts +0 -40
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "0.5.
|
|
34267
|
+
sdkVersion: "0.5.62",
|
|
34268
34268
|
genVersion: "2.667.0",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.62 2.667.0 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -38974,67 +38974,6 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38974
38974
|
})(UniswapBuyExactlyParams$ ||= {});
|
|
38975
38975
|
});
|
|
38976
38976
|
|
|
38977
|
-
// src/models/components/uniswapbuyexactlyparamsv1.ts
|
|
38978
|
-
var UniswapBuyExactlyParamsV1TokenIn$inboundSchema, UniswapBuyExactlyParamsV1TokenIn$outboundSchema, UniswapBuyExactlyParamsV1TokenIn$, UniswapBuyExactlyParamsV1TokenOut$inboundSchema, UniswapBuyExactlyParamsV1TokenOut$outboundSchema, UniswapBuyExactlyParamsV1TokenOut$, UniswapBuyExactlyParamsV1Amount$inboundSchema, UniswapBuyExactlyParamsV1Amount$outboundSchema, UniswapBuyExactlyParamsV1Amount$, UniswapBuyExactlyParamsV1$inboundSchema, UniswapBuyExactlyParamsV1$outboundSchema, UniswapBuyExactlyParamsV1$;
|
|
38979
|
-
var init_uniswapbuyexactlyparamsv1 = __esm(() => {
|
|
38980
|
-
init_zod();
|
|
38981
|
-
init_primitives();
|
|
38982
|
-
init_feeenum();
|
|
38983
|
-
init_tokenenum();
|
|
38984
|
-
UniswapBuyExactlyParamsV1TokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38985
|
-
UniswapBuyExactlyParamsV1TokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38986
|
-
((UniswapBuyExactlyParamsV1TokenIn$) => {
|
|
38987
|
-
UniswapBuyExactlyParamsV1TokenIn$.inboundSchema = UniswapBuyExactlyParamsV1TokenIn$inboundSchema;
|
|
38988
|
-
UniswapBuyExactlyParamsV1TokenIn$.outboundSchema = UniswapBuyExactlyParamsV1TokenIn$outboundSchema;
|
|
38989
|
-
})(UniswapBuyExactlyParamsV1TokenIn$ ||= {});
|
|
38990
|
-
UniswapBuyExactlyParamsV1TokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38991
|
-
UniswapBuyExactlyParamsV1TokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38992
|
-
((UniswapBuyExactlyParamsV1TokenOut$) => {
|
|
38993
|
-
UniswapBuyExactlyParamsV1TokenOut$.inboundSchema = UniswapBuyExactlyParamsV1TokenOut$inboundSchema;
|
|
38994
|
-
UniswapBuyExactlyParamsV1TokenOut$.outboundSchema = UniswapBuyExactlyParamsV1TokenOut$outboundSchema;
|
|
38995
|
-
})(UniswapBuyExactlyParamsV1TokenOut$ ||= {});
|
|
38996
|
-
UniswapBuyExactlyParamsV1Amount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38997
|
-
UniswapBuyExactlyParamsV1Amount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38998
|
-
((UniswapBuyExactlyParamsV1Amount$) => {
|
|
38999
|
-
UniswapBuyExactlyParamsV1Amount$.inboundSchema = UniswapBuyExactlyParamsV1Amount$inboundSchema;
|
|
39000
|
-
UniswapBuyExactlyParamsV1Amount$.outboundSchema = UniswapBuyExactlyParamsV1Amount$outboundSchema;
|
|
39001
|
-
})(UniswapBuyExactlyParamsV1Amount$ ||= {});
|
|
39002
|
-
UniswapBuyExactlyParamsV1$inboundSchema = objectType({
|
|
39003
|
-
action_type: literalType("UNISWAP_BUY_EXACTLY_V1").default("UNISWAP_BUY_EXACTLY_V1"),
|
|
39004
|
-
token_in: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
39005
|
-
token_out: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
39006
|
-
fee: FeeEnum$inboundSchema,
|
|
39007
|
-
amount: unionType([numberType(), stringType()]),
|
|
39008
|
-
max_slippage_percent: numberType()
|
|
39009
|
-
}).transform((v2) => {
|
|
39010
|
-
return remap(v2, {
|
|
39011
|
-
action_type: "actionType",
|
|
39012
|
-
token_in: "tokenIn",
|
|
39013
|
-
token_out: "tokenOut",
|
|
39014
|
-
max_slippage_percent: "maxSlippagePercent"
|
|
39015
|
-
});
|
|
39016
|
-
});
|
|
39017
|
-
UniswapBuyExactlyParamsV1$outboundSchema = objectType({
|
|
39018
|
-
actionType: literalType("UNISWAP_BUY_EXACTLY_V1").default("UNISWAP_BUY_EXACTLY_V1"),
|
|
39019
|
-
tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
39020
|
-
tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
39021
|
-
fee: FeeEnum$outboundSchema,
|
|
39022
|
-
amount: unionType([numberType(), stringType()]),
|
|
39023
|
-
maxSlippagePercent: numberType()
|
|
39024
|
-
}).transform((v2) => {
|
|
39025
|
-
return remap(v2, {
|
|
39026
|
-
actionType: "action_type",
|
|
39027
|
-
tokenIn: "token_in",
|
|
39028
|
-
tokenOut: "token_out",
|
|
39029
|
-
maxSlippagePercent: "max_slippage_percent"
|
|
39030
|
-
});
|
|
39031
|
-
});
|
|
39032
|
-
((UniswapBuyExactlyParamsV1$) => {
|
|
39033
|
-
UniswapBuyExactlyParamsV1$.inboundSchema = UniswapBuyExactlyParamsV1$inboundSchema;
|
|
39034
|
-
UniswapBuyExactlyParamsV1$.outboundSchema = UniswapBuyExactlyParamsV1$outboundSchema;
|
|
39035
|
-
})(UniswapBuyExactlyParamsV1$ ||= {});
|
|
39036
|
-
});
|
|
39037
|
-
|
|
39038
38977
|
// src/models/components/uniswapincreaseliquidityprovisionparams.ts
|
|
39039
38978
|
var UniswapIncreaseLiquidityProvisionParamsAmount0Desired$inboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount0Desired$outboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount0Desired$, UniswapIncreaseLiquidityProvisionParamsAmount1Desired$inboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount1Desired$outboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount1Desired$, UniswapIncreaseLiquidityProvisionParamsAmount0Min$inboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount0Min$outboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount0Min$, UniswapIncreaseLiquidityProvisionParamsAmount1Min$inboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount1Min$outboundSchema, UniswapIncreaseLiquidityProvisionParamsAmount1Min$, UniswapIncreaseLiquidityProvisionParams$inboundSchema, UniswapIncreaseLiquidityProvisionParams$outboundSchema, UniswapIncreaseLiquidityProvisionParams$;
|
|
39040
38979
|
var init_uniswapincreaseliquidityprovisionparams = __esm(() => {
|
|
@@ -39380,7 +39319,6 @@ var init_useroperation = __esm(() => {
|
|
|
39380
39319
|
init_tokentransfererc20params();
|
|
39381
39320
|
init_tokentransferrequest();
|
|
39382
39321
|
init_uniswapbuyexactlyparams();
|
|
39383
|
-
init_uniswapbuyexactlyparamsv1();
|
|
39384
39322
|
init_uniswapincreaseliquidityprovisionparams();
|
|
39385
39323
|
init_uniswapmintliquidityprovisionparams();
|
|
39386
39324
|
init_uniswapsellexactlyparams();
|
|
@@ -39401,7 +39339,6 @@ var init_useroperation = __esm(() => {
|
|
|
39401
39339
|
}))),
|
|
39402
39340
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39403
39341
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39404
|
-
UniswapBuyExactlyParamsV1$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY_V1") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39405
39342
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39406
39343
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39407
39344
|
OdosSwapParams$inboundSchema.and(objectType({ action_type: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
@@ -39489,7 +39426,6 @@ var init_useroperation = __esm(() => {
|
|
|
39489
39426
|
}))),
|
|
39490
39427
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39491
39428
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39492
|
-
UniswapBuyExactlyParamsV1$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY_V1") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39493
39429
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39494
39430
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39495
39431
|
OdosSwapParams$outboundSchema.and(objectType({ actionType: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
@@ -39584,7 +39520,6 @@ var init_useroperation = __esm(() => {
|
|
|
39584
39520
|
}))),
|
|
39585
39521
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39586
39522
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39587
|
-
UniswapBuyExactlyParamsV1$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY_V1") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39588
39523
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39589
39524
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39590
39525
|
OdosSwapParams$inboundSchema.and(objectType({ action_type: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
@@ -39674,7 +39609,6 @@ var init_useroperation = __esm(() => {
|
|
|
39674
39609
|
}))),
|
|
39675
39610
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39676
39611
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39677
|
-
UniswapBuyExactlyParamsV1$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY_V1") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39678
39612
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39679
39613
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39680
39614
|
OdosSwapParams$outboundSchema.and(objectType({ actionType: literalType("ODOS_SWAP") }).transform((v2) => ({
|
|
@@ -42677,82 +42611,6 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42677
42611
|
})(UniswapBuyExactlyRequest$ ||= {});
|
|
42678
42612
|
});
|
|
42679
42613
|
|
|
42680
|
-
// src/models/components/uniswapbuyexactlyrequestv1.ts
|
|
42681
|
-
var UniswapBuyExactlyRequestV1Chain, UniswapBuyExactlyRequestV1TokenIn$inboundSchema, UniswapBuyExactlyRequestV1TokenIn$outboundSchema, UniswapBuyExactlyRequestV1TokenIn$, UniswapBuyExactlyRequestV1TokenOut$inboundSchema, UniswapBuyExactlyRequestV1TokenOut$outboundSchema, UniswapBuyExactlyRequestV1TokenOut$, UniswapBuyExactlyRequestV1Amount$inboundSchema, UniswapBuyExactlyRequestV1Amount$outboundSchema, UniswapBuyExactlyRequestV1Amount$, UniswapBuyExactlyRequestV1Chain$inboundSchema, UniswapBuyExactlyRequestV1Chain$outboundSchema, UniswapBuyExactlyRequestV1Chain$, UniswapBuyExactlyRequestV1$inboundSchema, UniswapBuyExactlyRequestV1$outboundSchema, UniswapBuyExactlyRequestV1$;
|
|
42682
|
-
var init_uniswapbuyexactlyrequestv1 = __esm(() => {
|
|
42683
|
-
init_zod();
|
|
42684
|
-
init_primitives();
|
|
42685
|
-
init_feeenum();
|
|
42686
|
-
init_tokenenum();
|
|
42687
|
-
UniswapBuyExactlyRequestV1Chain = {
|
|
42688
|
-
ArbitrumMainnet: "arbitrum:mainnet",
|
|
42689
|
-
BaseMainnet: "base:mainnet",
|
|
42690
|
-
EthereumMainnet: "ethereum:mainnet"
|
|
42691
|
-
};
|
|
42692
|
-
UniswapBuyExactlyRequestV1TokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
42693
|
-
UniswapBuyExactlyRequestV1TokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
42694
|
-
((UniswapBuyExactlyRequestV1TokenIn$) => {
|
|
42695
|
-
UniswapBuyExactlyRequestV1TokenIn$.inboundSchema = UniswapBuyExactlyRequestV1TokenIn$inboundSchema;
|
|
42696
|
-
UniswapBuyExactlyRequestV1TokenIn$.outboundSchema = UniswapBuyExactlyRequestV1TokenIn$outboundSchema;
|
|
42697
|
-
})(UniswapBuyExactlyRequestV1TokenIn$ ||= {});
|
|
42698
|
-
UniswapBuyExactlyRequestV1TokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
42699
|
-
UniswapBuyExactlyRequestV1TokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
42700
|
-
((UniswapBuyExactlyRequestV1TokenOut$) => {
|
|
42701
|
-
UniswapBuyExactlyRequestV1TokenOut$.inboundSchema = UniswapBuyExactlyRequestV1TokenOut$inboundSchema;
|
|
42702
|
-
UniswapBuyExactlyRequestV1TokenOut$.outboundSchema = UniswapBuyExactlyRequestV1TokenOut$outboundSchema;
|
|
42703
|
-
})(UniswapBuyExactlyRequestV1TokenOut$ ||= {});
|
|
42704
|
-
UniswapBuyExactlyRequestV1Amount$inboundSchema = unionType([numberType(), stringType()]);
|
|
42705
|
-
UniswapBuyExactlyRequestV1Amount$outboundSchema = unionType([numberType(), stringType()]);
|
|
42706
|
-
((UniswapBuyExactlyRequestV1Amount$) => {
|
|
42707
|
-
UniswapBuyExactlyRequestV1Amount$.inboundSchema = UniswapBuyExactlyRequestV1Amount$inboundSchema;
|
|
42708
|
-
UniswapBuyExactlyRequestV1Amount$.outboundSchema = UniswapBuyExactlyRequestV1Amount$outboundSchema;
|
|
42709
|
-
})(UniswapBuyExactlyRequestV1Amount$ ||= {});
|
|
42710
|
-
UniswapBuyExactlyRequestV1Chain$inboundSchema = nativeEnumType(UniswapBuyExactlyRequestV1Chain);
|
|
42711
|
-
UniswapBuyExactlyRequestV1Chain$outboundSchema = UniswapBuyExactlyRequestV1Chain$inboundSchema;
|
|
42712
|
-
((UniswapBuyExactlyRequestV1Chain$) => {
|
|
42713
|
-
UniswapBuyExactlyRequestV1Chain$.inboundSchema = UniswapBuyExactlyRequestV1Chain$inboundSchema;
|
|
42714
|
-
UniswapBuyExactlyRequestV1Chain$.outboundSchema = UniswapBuyExactlyRequestV1Chain$outboundSchema;
|
|
42715
|
-
})(UniswapBuyExactlyRequestV1Chain$ ||= {});
|
|
42716
|
-
UniswapBuyExactlyRequestV1$inboundSchema = objectType({
|
|
42717
|
-
action_type: literalType("UNISWAP_BUY_EXACTLY_V1").default("UNISWAP_BUY_EXACTLY_V1"),
|
|
42718
|
-
token_in: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
42719
|
-
token_out: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
42720
|
-
fee: FeeEnum$inboundSchema,
|
|
42721
|
-
amount: unionType([numberType(), stringType()]),
|
|
42722
|
-
max_slippage_percent: numberType(),
|
|
42723
|
-
chain: UniswapBuyExactlyRequestV1Chain$inboundSchema,
|
|
42724
|
-
sender: stringType()
|
|
42725
|
-
}).transform((v2) => {
|
|
42726
|
-
return remap(v2, {
|
|
42727
|
-
action_type: "actionType",
|
|
42728
|
-
token_in: "tokenIn",
|
|
42729
|
-
token_out: "tokenOut",
|
|
42730
|
-
max_slippage_percent: "maxSlippagePercent"
|
|
42731
|
-
});
|
|
42732
|
-
});
|
|
42733
|
-
UniswapBuyExactlyRequestV1$outboundSchema = objectType({
|
|
42734
|
-
actionType: literalType("UNISWAP_BUY_EXACTLY_V1").default("UNISWAP_BUY_EXACTLY_V1"),
|
|
42735
|
-
tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
42736
|
-
tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
42737
|
-
fee: FeeEnum$outboundSchema,
|
|
42738
|
-
amount: unionType([numberType(), stringType()]),
|
|
42739
|
-
maxSlippagePercent: numberType(),
|
|
42740
|
-
chain: UniswapBuyExactlyRequestV1Chain$outboundSchema,
|
|
42741
|
-
sender: stringType()
|
|
42742
|
-
}).transform((v2) => {
|
|
42743
|
-
return remap(v2, {
|
|
42744
|
-
actionType: "action_type",
|
|
42745
|
-
tokenIn: "token_in",
|
|
42746
|
-
tokenOut: "token_out",
|
|
42747
|
-
maxSlippagePercent: "max_slippage_percent"
|
|
42748
|
-
});
|
|
42749
|
-
});
|
|
42750
|
-
((UniswapBuyExactlyRequestV1$) => {
|
|
42751
|
-
UniswapBuyExactlyRequestV1$.inboundSchema = UniswapBuyExactlyRequestV1$inboundSchema;
|
|
42752
|
-
UniswapBuyExactlyRequestV1$.outboundSchema = UniswapBuyExactlyRequestV1$outboundSchema;
|
|
42753
|
-
})(UniswapBuyExactlyRequestV1$ ||= {});
|
|
42754
|
-
});
|
|
42755
|
-
|
|
42756
42614
|
// src/models/components/uniswapbuyquoteinforesponse.ts
|
|
42757
42615
|
var UniswapBuyQuoteInfoResponse$inboundSchema, UniswapBuyQuoteInfoResponse$outboundSchema, UniswapBuyQuoteInfoResponse$;
|
|
42758
42616
|
var init_uniswapbuyquoteinforesponse = __esm(() => {
|
|
@@ -43672,9 +43530,7 @@ var init_components = __esm(() => {
|
|
|
43672
43530
|
init_tokentransferrequest();
|
|
43673
43531
|
init_txresponse();
|
|
43674
43532
|
init_uniswapbuyexactlyparams();
|
|
43675
|
-
init_uniswapbuyexactlyparamsv1();
|
|
43676
43533
|
init_uniswapbuyexactlyrequest();
|
|
43677
|
-
init_uniswapbuyexactlyrequestv1();
|
|
43678
43534
|
init_uniswapbuyquoteinforesponse();
|
|
43679
43535
|
init_uniswapcheckinrangeresponse();
|
|
43680
43536
|
init_uniswapincreaseliquidityprovisionparams();
|
|
@@ -53425,8 +53281,8 @@ prevent replay attacks.`,
|
|
|
53425
53281
|
};
|
|
53426
53282
|
});
|
|
53427
53283
|
|
|
53428
|
-
// src/funcs/
|
|
53429
|
-
function
|
|
53284
|
+
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
53285
|
+
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
53430
53286
|
return new APIPromise($do62(client, request, options));
|
|
53431
53287
|
}
|
|
53432
53288
|
async function $do62(client, request, options) {
|
|
@@ -53487,7 +53343,7 @@ async function $do62(client, request, options) {
|
|
|
53487
53343
|
}
|
|
53488
53344
|
return [result, { status: "complete", request: req, response }];
|
|
53489
53345
|
}
|
|
53490
|
-
var
|
|
53346
|
+
var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
53491
53347
|
init_encodings();
|
|
53492
53348
|
init_matchers();
|
|
53493
53349
|
init_primitives();
|
|
@@ -53499,17 +53355,17 @@ var init_uniswapV3V0LiquidityProvisionIncrease = __esm(() => {
|
|
|
53499
53355
|
init_async();
|
|
53500
53356
|
});
|
|
53501
53357
|
|
|
53502
|
-
// src/mcp-server/tools/
|
|
53503
|
-
var args62, tool$
|
|
53504
|
-
var
|
|
53505
|
-
|
|
53358
|
+
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
53359
|
+
var args62, tool$uniswapV3LiquidityProvisionIncrease;
|
|
53360
|
+
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
53361
|
+
init_uniswapV3LiquidityProvisionIncrease();
|
|
53506
53362
|
init_components();
|
|
53507
53363
|
init_tools();
|
|
53508
53364
|
args62 = {
|
|
53509
53365
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
53510
53366
|
};
|
|
53511
|
-
tool$
|
|
53512
|
-
name: "uniswap-v3-
|
|
53367
|
+
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
53368
|
+
name: "uniswap-v3-liquidity-provision-increase",
|
|
53513
53369
|
description: `Increase an LP position
|
|
53514
53370
|
|
|
53515
53371
|
This endpoint allows users to increase their existing Liquidity Provider (LP)
|
|
@@ -53531,7 +53387,7 @@ process.
|
|
|
53531
53387
|
`,
|
|
53532
53388
|
args: args62,
|
|
53533
53389
|
tool: async (client, args63, ctx) => {
|
|
53534
|
-
const [result, apiCall] = await
|
|
53390
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53535
53391
|
if (!result.ok) {
|
|
53536
53392
|
return {
|
|
53537
53393
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53544,8 +53400,8 @@ process.
|
|
|
53544
53400
|
};
|
|
53545
53401
|
});
|
|
53546
53402
|
|
|
53547
|
-
// src/funcs/
|
|
53548
|
-
function
|
|
53403
|
+
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
53404
|
+
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
53549
53405
|
return new APIPromise($do63(client, request, options));
|
|
53550
53406
|
}
|
|
53551
53407
|
async function $do63(client, request, options) {
|
|
@@ -53610,7 +53466,7 @@ async function $do63(client, request, options) {
|
|
|
53610
53466
|
}
|
|
53611
53467
|
return [result, { status: "complete", request: req, response }];
|
|
53612
53468
|
}
|
|
53613
|
-
var
|
|
53469
|
+
var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
53614
53470
|
init_encodings();
|
|
53615
53471
|
init_matchers();
|
|
53616
53472
|
init_primitives();
|
|
@@ -53623,17 +53479,17 @@ var init_uniswapV3V0LiquidityProvisionInRange = __esm(() => {
|
|
|
53623
53479
|
init_async();
|
|
53624
53480
|
});
|
|
53625
53481
|
|
|
53626
|
-
// src/mcp-server/tools/
|
|
53627
|
-
var args63, tool$
|
|
53628
|
-
var
|
|
53629
|
-
|
|
53482
|
+
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
53483
|
+
var args63, tool$uniswapV3LiquidityProvisionInRange;
|
|
53484
|
+
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
53485
|
+
init_uniswapV3LiquidityProvisionInRange();
|
|
53630
53486
|
init_operations();
|
|
53631
53487
|
init_tools();
|
|
53632
53488
|
args63 = {
|
|
53633
53489
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
53634
53490
|
};
|
|
53635
|
-
tool$
|
|
53636
|
-
name: "uniswap-v3-
|
|
53491
|
+
tool$uniswapV3LiquidityProvisionInRange = {
|
|
53492
|
+
name: "uniswap-v3-liquidity-provision-in-range",
|
|
53637
53493
|
description: `Check if LP is Active.
|
|
53638
53494
|
|
|
53639
53495
|
This endpoint allows users to check whether a specific liquidity provider ()
|
|
@@ -53646,7 +53502,7 @@ they are actively participating in the trading activities within the liquidity p
|
|
|
53646
53502
|
and earning trading fees.`,
|
|
53647
53503
|
args: args63,
|
|
53648
53504
|
tool: async (client, args64, ctx) => {
|
|
53649
|
-
const [result, apiCall] = await
|
|
53505
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53650
53506
|
if (!result.ok) {
|
|
53651
53507
|
return {
|
|
53652
53508
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53659,8 +53515,8 @@ and earning trading fees.`,
|
|
|
53659
53515
|
};
|
|
53660
53516
|
});
|
|
53661
53517
|
|
|
53662
|
-
// src/funcs/
|
|
53663
|
-
function
|
|
53518
|
+
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
53519
|
+
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
53664
53520
|
return new APIPromise($do64(client, request, options));
|
|
53665
53521
|
}
|
|
53666
53522
|
async function $do64(client, request, options) {
|
|
@@ -53721,7 +53577,7 @@ async function $do64(client, request, options) {
|
|
|
53721
53577
|
}
|
|
53722
53578
|
return [result, { status: "complete", request: req, response }];
|
|
53723
53579
|
}
|
|
53724
|
-
var
|
|
53580
|
+
var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
53725
53581
|
init_encodings();
|
|
53726
53582
|
init_matchers();
|
|
53727
53583
|
init_primitives();
|
|
@@ -53733,17 +53589,17 @@ var init_uniswapV3V0LiquidityProvisionMint = __esm(() => {
|
|
|
53733
53589
|
init_async();
|
|
53734
53590
|
});
|
|
53735
53591
|
|
|
53736
|
-
// src/mcp-server/tools/
|
|
53737
|
-
var args64, tool$
|
|
53738
|
-
var
|
|
53739
|
-
|
|
53592
|
+
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
53593
|
+
var args64, tool$uniswapV3LiquidityProvisionMint;
|
|
53594
|
+
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
53595
|
+
init_uniswapV3LiquidityProvisionMint();
|
|
53740
53596
|
init_components();
|
|
53741
53597
|
init_tools();
|
|
53742
53598
|
args64 = {
|
|
53743
53599
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
53744
53600
|
};
|
|
53745
|
-
tool$
|
|
53746
|
-
name: "uniswap-v3-
|
|
53601
|
+
tool$uniswapV3LiquidityProvisionMint = {
|
|
53602
|
+
name: "uniswap-v3-liquidity-provision-mint",
|
|
53747
53603
|
description: `Open a new LP position
|
|
53748
53604
|
|
|
53749
53605
|
This endpoint allows users to open a new Liquidity Provider (LP) position on the
|
|
@@ -53765,7 +53621,7 @@ needed for the minting process.
|
|
|
53765
53621
|
`,
|
|
53766
53622
|
args: args64,
|
|
53767
53623
|
tool: async (client, args65, ctx) => {
|
|
53768
|
-
const [result, apiCall] = await
|
|
53624
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53769
53625
|
if (!result.ok) {
|
|
53770
53626
|
return {
|
|
53771
53627
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53778,8 +53634,8 @@ needed for the minting process.
|
|
|
53778
53634
|
};
|
|
53779
53635
|
});
|
|
53780
53636
|
|
|
53781
|
-
// src/funcs/
|
|
53782
|
-
function
|
|
53637
|
+
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
53638
|
+
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
53783
53639
|
return new APIPromise($do65(client, request, options));
|
|
53784
53640
|
}
|
|
53785
53641
|
async function $do65(client, request, options) {
|
|
@@ -53844,7 +53700,7 @@ async function $do65(client, request, options) {
|
|
|
53844
53700
|
}
|
|
53845
53701
|
return [result, { status: "complete", request: req, response }];
|
|
53846
53702
|
}
|
|
53847
|
-
var
|
|
53703
|
+
var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
53848
53704
|
init_encodings();
|
|
53849
53705
|
init_matchers();
|
|
53850
53706
|
init_primitives();
|
|
@@ -53857,17 +53713,17 @@ var init_uniswapV3V0LiquidityProvisionPositions = __esm(() => {
|
|
|
53857
53713
|
init_async();
|
|
53858
53714
|
});
|
|
53859
53715
|
|
|
53860
|
-
// src/mcp-server/tools/
|
|
53861
|
-
var args65, tool$
|
|
53862
|
-
var
|
|
53863
|
-
|
|
53716
|
+
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
53717
|
+
var args65, tool$uniswapV3LiquidityProvisionPositions;
|
|
53718
|
+
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
53719
|
+
init_uniswapV3LiquidityProvisionPositions();
|
|
53864
53720
|
init_operations();
|
|
53865
53721
|
init_tools();
|
|
53866
53722
|
args65 = {
|
|
53867
53723
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
53868
53724
|
};
|
|
53869
|
-
tool$
|
|
53870
|
-
name: "uniswap-v3-
|
|
53725
|
+
tool$uniswapV3LiquidityProvisionPositions = {
|
|
53726
|
+
name: "uniswap-v3-liquidity-provision-positions",
|
|
53871
53727
|
description: `List LP
|
|
53872
53728
|
|
|
53873
53729
|
This endpoint retrieves the number of Liquidity Provider (LP) positions
|
|
@@ -53879,7 +53735,7 @@ information is crucial for users to manage and analyze their liquidity provision
|
|
|
53879
53735
|
activities effectively.`,
|
|
53880
53736
|
args: args65,
|
|
53881
53737
|
tool: async (client, args66, ctx) => {
|
|
53882
|
-
const [result, apiCall] = await
|
|
53738
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53883
53739
|
if (!result.ok) {
|
|
53884
53740
|
return {
|
|
53885
53741
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53892,8 +53748,8 @@ activities effectively.`,
|
|
|
53892
53748
|
};
|
|
53893
53749
|
});
|
|
53894
53750
|
|
|
53895
|
-
// src/funcs/
|
|
53896
|
-
function
|
|
53751
|
+
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
53752
|
+
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
53897
53753
|
return new APIPromise($do66(client, request, options));
|
|
53898
53754
|
}
|
|
53899
53755
|
async function $do66(client, request, options) {
|
|
@@ -53954,7 +53810,7 @@ async function $do66(client, request, options) {
|
|
|
53954
53810
|
}
|
|
53955
53811
|
return [result, { status: "complete", request: req, response }];
|
|
53956
53812
|
}
|
|
53957
|
-
var
|
|
53813
|
+
var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
53958
53814
|
init_encodings();
|
|
53959
53815
|
init_matchers();
|
|
53960
53816
|
init_primitives();
|
|
@@ -53966,17 +53822,17 @@ var init_uniswapV3V0LiquidityProvisionWithdraw = __esm(() => {
|
|
|
53966
53822
|
init_async();
|
|
53967
53823
|
});
|
|
53968
53824
|
|
|
53969
|
-
// src/mcp-server/tools/
|
|
53970
|
-
var args66, tool$
|
|
53971
|
-
var
|
|
53972
|
-
|
|
53825
|
+
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
53826
|
+
var args66, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
53827
|
+
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
53828
|
+
init_uniswapV3LiquidityProvisionWithdraw();
|
|
53973
53829
|
init_components();
|
|
53974
53830
|
init_tools();
|
|
53975
53831
|
args66 = {
|
|
53976
53832
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
53977
53833
|
};
|
|
53978
|
-
tool$
|
|
53979
|
-
name: "uniswap-v3-
|
|
53834
|
+
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
53835
|
+
name: "uniswap-v3-liquidity-provision-withdraw",
|
|
53980
53836
|
description: `Withdraw an LP position
|
|
53981
53837
|
|
|
53982
53838
|
This endpoint allows users to withdraw their Liquidity Provider (LP) positions
|
|
@@ -53999,7 +53855,7 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
53999
53855
|
`,
|
|
54000
53856
|
args: args66,
|
|
54001
53857
|
tool: async (client, args67, ctx) => {
|
|
54002
|
-
const [result, apiCall] = await
|
|
53858
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54003
53859
|
if (!result.ok) {
|
|
54004
53860
|
return {
|
|
54005
53861
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54012,8 +53868,8 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
54012
53868
|
};
|
|
54013
53869
|
});
|
|
54014
53870
|
|
|
54015
|
-
// src/funcs/
|
|
54016
|
-
function
|
|
53871
|
+
// src/funcs/uniswapV3PoolPrice.ts
|
|
53872
|
+
function uniswapV3PoolPrice(client, request, options) {
|
|
54017
53873
|
return new APIPromise($do67(client, request, options));
|
|
54018
53874
|
}
|
|
54019
53875
|
async function $do67(client, request, options) {
|
|
@@ -54080,7 +53936,7 @@ async function $do67(client, request, options) {
|
|
|
54080
53936
|
}
|
|
54081
53937
|
return [result, { status: "complete", request: req, response }];
|
|
54082
53938
|
}
|
|
54083
|
-
var
|
|
53939
|
+
var init_uniswapV3PoolPrice = __esm(() => {
|
|
54084
53940
|
init_encodings();
|
|
54085
53941
|
init_matchers();
|
|
54086
53942
|
init_primitives();
|
|
@@ -54093,17 +53949,17 @@ var init_uniswapV3V0PoolPrice = __esm(() => {
|
|
|
54093
53949
|
init_async();
|
|
54094
53950
|
});
|
|
54095
53951
|
|
|
54096
|
-
// src/mcp-server/tools/
|
|
54097
|
-
var args67, tool$
|
|
54098
|
-
var
|
|
54099
|
-
|
|
53952
|
+
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
53953
|
+
var args67, tool$uniswapV3PoolPrice;
|
|
53954
|
+
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
53955
|
+
init_uniswapV3PoolPrice();
|
|
54100
53956
|
init_operations();
|
|
54101
53957
|
init_tools();
|
|
54102
53958
|
args67 = {
|
|
54103
53959
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
54104
53960
|
};
|
|
54105
|
-
tool$
|
|
54106
|
-
name: "uniswap-v3-
|
|
53961
|
+
tool$uniswapV3PoolPrice = {
|
|
53962
|
+
name: "uniswap-v3-pool-price",
|
|
54107
53963
|
description: `Pool Price
|
|
54108
53964
|
|
|
54109
53965
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
@@ -54111,7 +53967,7 @@ This endpoint calculates the price of a token in a Uniswap pool.
|
|
|
54111
53967
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
54112
53968
|
args: args67,
|
|
54113
53969
|
tool: async (client, args68, ctx) => {
|
|
54114
|
-
const [result, apiCall] = await
|
|
53970
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54115
53971
|
if (!result.ok) {
|
|
54116
53972
|
return {
|
|
54117
53973
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54124,8 +53980,8 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
54124
53980
|
};
|
|
54125
53981
|
});
|
|
54126
53982
|
|
|
54127
|
-
// src/funcs/
|
|
54128
|
-
function
|
|
53983
|
+
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
53984
|
+
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
54129
53985
|
return new APIPromise($do68(client, request, options));
|
|
54130
53986
|
}
|
|
54131
53987
|
async function $do68(client, request, options) {
|
|
@@ -54193,7 +54049,7 @@ async function $do68(client, request, options) {
|
|
|
54193
54049
|
}
|
|
54194
54050
|
return [result, { status: "complete", request: req, response }];
|
|
54195
54051
|
}
|
|
54196
|
-
var
|
|
54052
|
+
var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
54197
54053
|
init_encodings();
|
|
54198
54054
|
init_matchers();
|
|
54199
54055
|
init_primitives();
|
|
@@ -54206,17 +54062,17 @@ var init_uniswapV3V0QuoteBuyExactly = __esm(() => {
|
|
|
54206
54062
|
init_async();
|
|
54207
54063
|
});
|
|
54208
54064
|
|
|
54209
|
-
// src/mcp-server/tools/
|
|
54210
|
-
var args68, tool$
|
|
54211
|
-
var
|
|
54212
|
-
|
|
54065
|
+
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
54066
|
+
var args68, tool$uniswapV3QuoteBuyExactly;
|
|
54067
|
+
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
54068
|
+
init_uniswapV3QuoteBuyExactly();
|
|
54213
54069
|
init_operations();
|
|
54214
54070
|
init_tools();
|
|
54215
54071
|
args68 = {
|
|
54216
54072
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
54217
54073
|
};
|
|
54218
|
-
tool$
|
|
54219
|
-
name: "uniswap-v3-
|
|
54074
|
+
tool$uniswapV3QuoteBuyExactly = {
|
|
54075
|
+
name: "uniswap-v3-quote-buy-exactly",
|
|
54220
54076
|
description: `Get Quote - to Specified Amount
|
|
54221
54077
|
|
|
54222
54078
|
This endpoint calculates the amount of input tokens required to purchase a
|
|
@@ -54226,7 +54082,7 @@ It also provides the resulting price after the transaction. The calculation take
|
|
|
54226
54082
|
into account the current pool state and the specified fee tier.`,
|
|
54227
54083
|
args: args68,
|
|
54228
54084
|
tool: async (client, args69, ctx) => {
|
|
54229
|
-
const [result, apiCall] = await
|
|
54085
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54230
54086
|
if (!result.ok) {
|
|
54231
54087
|
return {
|
|
54232
54088
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54239,8 +54095,8 @@ into account the current pool state and the specified fee tier.`,
|
|
|
54239
54095
|
};
|
|
54240
54096
|
});
|
|
54241
54097
|
|
|
54242
|
-
// src/funcs/
|
|
54243
|
-
function
|
|
54098
|
+
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
54099
|
+
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
54244
54100
|
return new APIPromise($do69(client, request, options));
|
|
54245
54101
|
}
|
|
54246
54102
|
async function $do69(client, request, options) {
|
|
@@ -54308,7 +54164,7 @@ async function $do69(client, request, options) {
|
|
|
54308
54164
|
}
|
|
54309
54165
|
return [result, { status: "complete", request: req, response }];
|
|
54310
54166
|
}
|
|
54311
|
-
var
|
|
54167
|
+
var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
54312
54168
|
init_encodings();
|
|
54313
54169
|
init_matchers();
|
|
54314
54170
|
init_primitives();
|
|
@@ -54321,17 +54177,17 @@ var init_uniswapV3V0QuoteSellExactly = __esm(() => {
|
|
|
54321
54177
|
init_async();
|
|
54322
54178
|
});
|
|
54323
54179
|
|
|
54324
|
-
// src/mcp-server/tools/
|
|
54325
|
-
var args69, tool$
|
|
54326
|
-
var
|
|
54327
|
-
|
|
54180
|
+
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
54181
|
+
var args69, tool$uniswapV3QuoteSellExactly;
|
|
54182
|
+
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
54183
|
+
init_uniswapV3QuoteSellExactly();
|
|
54328
54184
|
init_operations();
|
|
54329
54185
|
init_tools();
|
|
54330
54186
|
args69 = {
|
|
54331
54187
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
54332
54188
|
};
|
|
54333
|
-
tool$
|
|
54334
|
-
name: "uniswap-v3-
|
|
54189
|
+
tool$uniswapV3QuoteSellExactly = {
|
|
54190
|
+
name: "uniswap-v3-quote-sell-exactly",
|
|
54335
54191
|
description: `Get quote - From Specified Amount
|
|
54336
54192
|
|
|
54337
54193
|
This endpoint calculates the amount of input tokens required to purchase a
|
|
@@ -54341,7 +54197,7 @@ It also provides the resulting price after the transaction. The calculation take
|
|
|
54341
54197
|
into account the current pool state and the specified fee tier.`,
|
|
54342
54198
|
args: args69,
|
|
54343
54199
|
tool: async (client, args70, ctx) => {
|
|
54344
|
-
const [result, apiCall] = await
|
|
54200
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54345
54201
|
if (!result.ok) {
|
|
54346
54202
|
return {
|
|
54347
54203
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54354,8 +54210,8 @@ into account the current pool state and the specified fee tier.`,
|
|
|
54354
54210
|
};
|
|
54355
54211
|
});
|
|
54356
54212
|
|
|
54357
|
-
// src/funcs/
|
|
54358
|
-
function
|
|
54213
|
+
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
54214
|
+
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
54359
54215
|
return new APIPromise($do70(client, request, options));
|
|
54360
54216
|
}
|
|
54361
54217
|
async function $do70(client, request, options) {
|
|
@@ -54416,7 +54272,7 @@ async function $do70(client, request, options) {
|
|
|
54416
54272
|
}
|
|
54417
54273
|
return [result, { status: "complete", request: req, response }];
|
|
54418
54274
|
}
|
|
54419
|
-
var
|
|
54275
|
+
var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
54420
54276
|
init_encodings();
|
|
54421
54277
|
init_matchers();
|
|
54422
54278
|
init_primitives();
|
|
@@ -54428,17 +54284,17 @@ var init_uniswapV3V0SwapBuyExactly = __esm(() => {
|
|
|
54428
54284
|
init_async();
|
|
54429
54285
|
});
|
|
54430
54286
|
|
|
54431
|
-
// src/mcp-server/tools/
|
|
54432
|
-
var args70, tool$
|
|
54433
|
-
var
|
|
54434
|
-
|
|
54287
|
+
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
54288
|
+
var args70, tool$uniswapV3SwapBuyExactly;
|
|
54289
|
+
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
54290
|
+
init_uniswapV3SwapBuyExactly();
|
|
54435
54291
|
init_components();
|
|
54436
54292
|
init_tools();
|
|
54437
54293
|
args70 = {
|
|
54438
54294
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
54439
54295
|
};
|
|
54440
|
-
tool$
|
|
54441
|
-
name: "uniswap-v3-
|
|
54296
|
+
tool$uniswapV3SwapBuyExactly = {
|
|
54297
|
+
name: "uniswap-v3-swap-buy-exactly",
|
|
54442
54298
|
description: `Buy exact amount
|
|
54443
54299
|
|
|
54444
54300
|
This endpoint allows users to trade a variable amount of one token to receive an
|
|
@@ -54458,7 +54314,7 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54458
54314
|
`,
|
|
54459
54315
|
args: args70,
|
|
54460
54316
|
tool: async (client, args71, ctx) => {
|
|
54461
|
-
const [result, apiCall] = await
|
|
54317
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54462
54318
|
if (!result.ok) {
|
|
54463
54319
|
return {
|
|
54464
54320
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54471,8 +54327,8 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54471
54327
|
};
|
|
54472
54328
|
});
|
|
54473
54329
|
|
|
54474
|
-
// src/funcs/
|
|
54475
|
-
function
|
|
54330
|
+
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
54331
|
+
function uniswapV3SwapSellExactly(client, request, options) {
|
|
54476
54332
|
return new APIPromise($do71(client, request, options));
|
|
54477
54333
|
}
|
|
54478
54334
|
async function $do71(client, request, options) {
|
|
@@ -54533,7 +54389,7 @@ async function $do71(client, request, options) {
|
|
|
54533
54389
|
}
|
|
54534
54390
|
return [result, { status: "complete", request: req, response }];
|
|
54535
54391
|
}
|
|
54536
|
-
var
|
|
54392
|
+
var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
54537
54393
|
init_encodings();
|
|
54538
54394
|
init_matchers();
|
|
54539
54395
|
init_primitives();
|
|
@@ -54545,17 +54401,17 @@ var init_uniswapV3V0SwapSellExactly = __esm(() => {
|
|
|
54545
54401
|
init_async();
|
|
54546
54402
|
});
|
|
54547
54403
|
|
|
54548
|
-
// src/mcp-server/tools/
|
|
54549
|
-
var args71, tool$
|
|
54550
|
-
var
|
|
54551
|
-
|
|
54404
|
+
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
54405
|
+
var args71, tool$uniswapV3SwapSellExactly;
|
|
54406
|
+
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
54407
|
+
init_uniswapV3SwapSellExactly();
|
|
54552
54408
|
init_components();
|
|
54553
54409
|
init_tools();
|
|
54554
54410
|
args71 = {
|
|
54555
54411
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
54556
54412
|
};
|
|
54557
|
-
tool$
|
|
54558
|
-
name: "uniswap-v3-
|
|
54413
|
+
tool$uniswapV3SwapSellExactly = {
|
|
54414
|
+
name: "uniswap-v3-swap-sell-exactly",
|
|
54559
54415
|
description: `Sell exact amount
|
|
54560
54416
|
|
|
54561
54417
|
This endpoint allows users to trade a specific amount of one token into another
|
|
@@ -54575,124 +54431,7 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54575
54431
|
`,
|
|
54576
54432
|
args: args71,
|
|
54577
54433
|
tool: async (client, args72, ctx) => {
|
|
54578
|
-
const [result, apiCall] = await
|
|
54579
|
-
if (!result.ok) {
|
|
54580
|
-
return {
|
|
54581
|
-
content: [{ type: "text", text: result.error.message }],
|
|
54582
|
-
isError: true
|
|
54583
|
-
};
|
|
54584
|
-
}
|
|
54585
|
-
const value = result.value;
|
|
54586
|
-
return formatResult(value, apiCall);
|
|
54587
|
-
}
|
|
54588
|
-
};
|
|
54589
|
-
});
|
|
54590
|
-
|
|
54591
|
-
// src/funcs/uniswapV3V1UniswapSwapBuyExactly.ts
|
|
54592
|
-
function uniswapV3V1UniswapSwapBuyExactly(client, request, options) {
|
|
54593
|
-
return new APIPromise($do72(client, request, options));
|
|
54594
|
-
}
|
|
54595
|
-
async function $do72(client, request, options) {
|
|
54596
|
-
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequestV1$outboundSchema.parse(value), "Input validation failed");
|
|
54597
|
-
if (!parsed.ok) {
|
|
54598
|
-
return [parsed, { status: "invalid" }];
|
|
54599
|
-
}
|
|
54600
|
-
const payload = parsed.value;
|
|
54601
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
54602
|
-
const path = pathToFunc("/v1/uniswap/swap/buy_exactly")();
|
|
54603
|
-
const headers = new Headers(compactMap({
|
|
54604
|
-
"Content-Type": "application/json",
|
|
54605
|
-
Accept: "application/json"
|
|
54606
|
-
}));
|
|
54607
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
54608
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
54609
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54610
|
-
const context = {
|
|
54611
|
-
options: client._options,
|
|
54612
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54613
|
-
operationID: "v1_uniswap_swap_buy_exactly",
|
|
54614
|
-
oAuth2Scopes: [],
|
|
54615
|
-
resolvedSecurity: requestSecurity,
|
|
54616
|
-
securitySource: client._options.apiKeyAuth,
|
|
54617
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
54618
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
54619
|
-
};
|
|
54620
|
-
const requestRes = client._createRequest(context, {
|
|
54621
|
-
security: requestSecurity,
|
|
54622
|
-
method: "POST",
|
|
54623
|
-
baseURL: options?.serverURL,
|
|
54624
|
-
path,
|
|
54625
|
-
headers,
|
|
54626
|
-
body,
|
|
54627
|
-
userAgent: client._options.userAgent,
|
|
54628
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
54629
|
-
}, options);
|
|
54630
|
-
if (!requestRes.ok) {
|
|
54631
|
-
return [requestRes, { status: "invalid" }];
|
|
54632
|
-
}
|
|
54633
|
-
const req = requestRes.value;
|
|
54634
|
-
const doResult = await client._do(req, {
|
|
54635
|
-
context,
|
|
54636
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
54637
|
-
retryConfig: context.retryConfig,
|
|
54638
|
-
retryCodes: context.retryCodes
|
|
54639
|
-
});
|
|
54640
|
-
if (!doResult.ok) {
|
|
54641
|
-
return [doResult, { status: "request-error", request: req }];
|
|
54642
|
-
}
|
|
54643
|
-
const response = doResult.value;
|
|
54644
|
-
const responseFields = {
|
|
54645
|
-
HttpMeta: { Response: response, Request: req }
|
|
54646
|
-
};
|
|
54647
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
54648
|
-
if (!result.ok) {
|
|
54649
|
-
return [result, { status: "complete", request: req, response }];
|
|
54650
|
-
}
|
|
54651
|
-
return [result, { status: "complete", request: req, response }];
|
|
54652
|
-
}
|
|
54653
|
-
var init_uniswapV3V1UniswapSwapBuyExactly = __esm(() => {
|
|
54654
|
-
init_encodings();
|
|
54655
|
-
init_matchers();
|
|
54656
|
-
init_primitives();
|
|
54657
|
-
init_schemas();
|
|
54658
|
-
init_security();
|
|
54659
|
-
init_url();
|
|
54660
|
-
init_components();
|
|
54661
|
-
init_errors2();
|
|
54662
|
-
init_async();
|
|
54663
|
-
});
|
|
54664
|
-
|
|
54665
|
-
// src/mcp-server/tools/uniswapV3V1UniswapSwapBuyExactly.ts
|
|
54666
|
-
var args72, tool$uniswapV3V1UniswapSwapBuyExactly;
|
|
54667
|
-
var init_uniswapV3V1UniswapSwapBuyExactly2 = __esm(() => {
|
|
54668
|
-
init_uniswapV3V1UniswapSwapBuyExactly();
|
|
54669
|
-
init_components();
|
|
54670
|
-
init_tools();
|
|
54671
|
-
args72 = {
|
|
54672
|
-
request: UniswapBuyExactlyRequestV1$inboundSchema
|
|
54673
|
-
};
|
|
54674
|
-
tool$uniswapV3V1UniswapSwapBuyExactly = {
|
|
54675
|
-
name: "uniswap-v3-(v1-)-uniswap-swap-buy-exactly",
|
|
54676
|
-
description: `Buy exact amount
|
|
54677
|
-
|
|
54678
|
-
This endpoint allows users to trade a specific amount of one token into another
|
|
54679
|
-
token using the Uniswap protocol.
|
|
54680
|
-
|
|
54681
|
-
The transaction is executed on the specified blockchain network, and the user must
|
|
54682
|
-
provide the necessary transaction details, including the token to sell, the token to
|
|
54683
|
-
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
54684
|
-
wrapped, the appropriate amount will be wrapped automatically.
|
|
54685
|
-
<Info>
|
|
54686
|
-
**Required Allowances**
|
|
54687
|
-
|
|
54688
|
-
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
54689
|
-
|
|
54690
|
-
- \`UniswapV3Router\`
|
|
54691
|
-
</Info>
|
|
54692
|
-
`,
|
|
54693
|
-
args: args72,
|
|
54694
|
-
tool: async (client, args73, ctx) => {
|
|
54695
|
-
const [result, apiCall] = await uniswapV3V1UniswapSwapBuyExactly(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54434
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54696
54435
|
if (!result.ok) {
|
|
54697
54436
|
return {
|
|
54698
54437
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54707,9 +54446,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54707
54446
|
|
|
54708
54447
|
// src/funcs/universalAllowance.ts
|
|
54709
54448
|
function universalAllowance(client, request, options) {
|
|
54710
|
-
return new APIPromise($
|
|
54449
|
+
return new APIPromise($do72(client, request, options));
|
|
54711
54450
|
}
|
|
54712
|
-
async function $
|
|
54451
|
+
async function $do72(client, request, options) {
|
|
54713
54452
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54714
54453
|
if (!parsed.ok) {
|
|
54715
54454
|
return [parsed, { status: "invalid" }];
|
|
@@ -54787,12 +54526,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
54787
54526
|
});
|
|
54788
54527
|
|
|
54789
54528
|
// src/mcp-server/tools/universalAllowance.ts
|
|
54790
|
-
var
|
|
54529
|
+
var args72, tool$universalAllowance;
|
|
54791
54530
|
var init_universalAllowance2 = __esm(() => {
|
|
54792
54531
|
init_universalAllowance();
|
|
54793
54532
|
init_operations();
|
|
54794
54533
|
init_tools();
|
|
54795
|
-
|
|
54534
|
+
args72 = {
|
|
54796
54535
|
request: GenericAllowanceRequest$inboundSchema
|
|
54797
54536
|
};
|
|
54798
54537
|
tool$universalAllowance = {
|
|
@@ -54806,9 +54545,9 @@ tokens on their behalf.
|
|
|
54806
54545
|
This is a crucial step before engaging in any transactions or operations within
|
|
54807
54546
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
54808
54547
|
the user's tokens securely and efficiently.`,
|
|
54809
|
-
args:
|
|
54810
|
-
tool: async (client,
|
|
54811
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
54548
|
+
args: args72,
|
|
54549
|
+
tool: async (client, args73, ctx) => {
|
|
54550
|
+
const [result, apiCall] = await universalAllowance(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54812
54551
|
if (!result.ok) {
|
|
54813
54552
|
return {
|
|
54814
54553
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54823,9 +54562,9 @@ the user's tokens securely and efficiently.`,
|
|
|
54823
54562
|
|
|
54824
54563
|
// src/funcs/universalAllowanceSet.ts
|
|
54825
54564
|
function universalAllowanceSet(client, request, options) {
|
|
54826
|
-
return new APIPromise($
|
|
54565
|
+
return new APIPromise($do73(client, request, options));
|
|
54827
54566
|
}
|
|
54828
|
-
async function $
|
|
54567
|
+
async function $do73(client, request, options) {
|
|
54829
54568
|
const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54830
54569
|
if (!parsed.ok) {
|
|
54831
54570
|
return [parsed, { status: "invalid" }];
|
|
@@ -54896,12 +54635,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
54896
54635
|
});
|
|
54897
54636
|
|
|
54898
54637
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
54899
|
-
var
|
|
54638
|
+
var args73, tool$universalAllowanceSet;
|
|
54900
54639
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
54901
54640
|
init_universalAllowanceSet();
|
|
54902
54641
|
init_components();
|
|
54903
54642
|
init_tools();
|
|
54904
|
-
|
|
54643
|
+
args73 = {
|
|
54905
54644
|
request: SetAllowanceRequest$inboundSchema
|
|
54906
54645
|
};
|
|
54907
54646
|
tool$universalAllowanceSet = {
|
|
@@ -54916,9 +54655,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
54916
54655
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
54917
54656
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
54918
54657
|
within the DeFi ecosystem.`,
|
|
54919
|
-
args:
|
|
54920
|
-
tool: async (client,
|
|
54921
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
54658
|
+
args: args73,
|
|
54659
|
+
tool: async (client, args74, ctx) => {
|
|
54660
|
+
const [result, apiCall] = await universalAllowanceSet(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54922
54661
|
if (!result.ok) {
|
|
54923
54662
|
return {
|
|
54924
54663
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54933,9 +54672,9 @@ within the DeFi ecosystem.`,
|
|
|
54933
54672
|
|
|
54934
54673
|
// src/funcs/universalEns.ts
|
|
54935
54674
|
function universalEns(client, request, options) {
|
|
54936
|
-
return new APIPromise($
|
|
54675
|
+
return new APIPromise($do74(client, request, options));
|
|
54937
54676
|
}
|
|
54938
|
-
async function $
|
|
54677
|
+
async function $do74(client, request, options) {
|
|
54939
54678
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54940
54679
|
if (!parsed.ok) {
|
|
54941
54680
|
return [parsed, { status: "invalid" }];
|
|
@@ -55011,12 +54750,12 @@ var init_universalEns = __esm(() => {
|
|
|
55011
54750
|
});
|
|
55012
54751
|
|
|
55013
54752
|
// src/mcp-server/tools/universalEns.ts
|
|
55014
|
-
var
|
|
54753
|
+
var args74, tool$universalEns;
|
|
55015
54754
|
var init_universalEns2 = __esm(() => {
|
|
55016
54755
|
init_universalEns();
|
|
55017
54756
|
init_operations();
|
|
55018
54757
|
init_tools();
|
|
55019
|
-
|
|
54758
|
+
args74 = {
|
|
55020
54759
|
request: GenericEnsRequest$inboundSchema
|
|
55021
54760
|
};
|
|
55022
54761
|
tool$universalEns = {
|
|
@@ -55027,9 +54766,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
55027
54766
|
|
|
55028
54767
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
55029
54768
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
55030
|
-
args:
|
|
55031
|
-
tool: async (client,
|
|
55032
|
-
const [result, apiCall] = await universalEns(client,
|
|
54769
|
+
args: args74,
|
|
54770
|
+
tool: async (client, args75, ctx) => {
|
|
54771
|
+
const [result, apiCall] = await universalEns(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55033
54772
|
if (!result.ok) {
|
|
55034
54773
|
return {
|
|
55035
54774
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55044,9 +54783,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
55044
54783
|
|
|
55045
54784
|
// src/funcs/universalPortfolio.ts
|
|
55046
54785
|
function universalPortfolio(client, request, options) {
|
|
55047
|
-
return new APIPromise($
|
|
54786
|
+
return new APIPromise($do75(client, request, options));
|
|
55048
54787
|
}
|
|
55049
|
-
async function $
|
|
54788
|
+
async function $do75(client, request, options) {
|
|
55050
54789
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55051
54790
|
if (!parsed.ok) {
|
|
55052
54791
|
return [parsed, { status: "invalid" }];
|
|
@@ -55122,12 +54861,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
55122
54861
|
});
|
|
55123
54862
|
|
|
55124
54863
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
55125
|
-
var
|
|
54864
|
+
var args75, tool$universalPortfolio;
|
|
55126
54865
|
var init_universalPortfolio2 = __esm(() => {
|
|
55127
54866
|
init_universalPortfolio();
|
|
55128
54867
|
init_operations();
|
|
55129
54868
|
init_tools();
|
|
55130
|
-
|
|
54869
|
+
args75 = {
|
|
55131
54870
|
request: GenericPortfolioRequest$inboundSchema
|
|
55132
54871
|
};
|
|
55133
54872
|
tool$universalPortfolio = {
|
|
@@ -55138,9 +54877,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
55138
54877
|
|
|
55139
54878
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
55140
54879
|
balances, including their respective values and quantities.`,
|
|
55141
|
-
args:
|
|
55142
|
-
tool: async (client,
|
|
55143
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
54880
|
+
args: args75,
|
|
54881
|
+
tool: async (client, args76, ctx) => {
|
|
54882
|
+
const [result, apiCall] = await universalPortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55144
54883
|
if (!result.ok) {
|
|
55145
54884
|
return {
|
|
55146
54885
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55155,9 +54894,9 @@ balances, including their respective values and quantities.`,
|
|
|
55155
54894
|
|
|
55156
54895
|
// src/funcs/universalSupportedChains.ts
|
|
55157
54896
|
function universalSupportedChains(client, request, options) {
|
|
55158
|
-
return new APIPromise($
|
|
54897
|
+
return new APIPromise($do76(client, request, options));
|
|
55159
54898
|
}
|
|
55160
|
-
async function $
|
|
54899
|
+
async function $do76(client, request, options) {
|
|
55161
54900
|
const parsed = safeParse(request, (value) => GenericSupportedChainsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55162
54901
|
if (!parsed.ok) {
|
|
55163
54902
|
return [parsed, { status: "invalid" }];
|
|
@@ -55232,12 +54971,12 @@ var init_universalSupportedChains = __esm(() => {
|
|
|
55232
54971
|
});
|
|
55233
54972
|
|
|
55234
54973
|
// src/mcp-server/tools/universalSupportedChains.ts
|
|
55235
|
-
var
|
|
54974
|
+
var args76, tool$universalSupportedChains;
|
|
55236
54975
|
var init_universalSupportedChains2 = __esm(() => {
|
|
55237
54976
|
init_universalSupportedChains();
|
|
55238
54977
|
init_operations();
|
|
55239
54978
|
init_tools();
|
|
55240
|
-
|
|
54979
|
+
args76 = {
|
|
55241
54980
|
request: GenericSupportedChainsRequest$inboundSchema
|
|
55242
54981
|
};
|
|
55243
54982
|
tool$universalSupportedChains = {
|
|
@@ -55245,9 +54984,9 @@ var init_universalSupportedChains2 = __esm(() => {
|
|
|
55245
54984
|
description: `List Supported Chains
|
|
55246
54985
|
|
|
55247
54986
|
Get the list of supported chains by the Compass API.`,
|
|
55248
|
-
args:
|
|
55249
|
-
tool: async (client,
|
|
55250
|
-
const [result, apiCall] = await universalSupportedChains(client,
|
|
54987
|
+
args: args76,
|
|
54988
|
+
tool: async (client, args77, ctx) => {
|
|
54989
|
+
const [result, apiCall] = await universalSupportedChains(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55251
54990
|
if (!result.ok) {
|
|
55252
54991
|
return {
|
|
55253
54992
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55262,9 +55001,9 @@ Get the list of supported chains by the Compass API.`,
|
|
|
55262
55001
|
|
|
55263
55002
|
// src/funcs/universalSupportedTokens.ts
|
|
55264
55003
|
function universalSupportedTokens(client, request, options) {
|
|
55265
|
-
return new APIPromise($
|
|
55004
|
+
return new APIPromise($do77(client, request, options));
|
|
55266
55005
|
}
|
|
55267
|
-
async function $
|
|
55006
|
+
async function $do77(client, request, options) {
|
|
55268
55007
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55269
55008
|
if (!parsed.ok) {
|
|
55270
55009
|
return [parsed, { status: "invalid" }];
|
|
@@ -55339,12 +55078,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
55339
55078
|
});
|
|
55340
55079
|
|
|
55341
55080
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
55342
|
-
var
|
|
55081
|
+
var args77, tool$universalSupportedTokens;
|
|
55343
55082
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
55344
55083
|
init_universalSupportedTokens();
|
|
55345
55084
|
init_operations();
|
|
55346
55085
|
init_tools();
|
|
55347
|
-
|
|
55086
|
+
args77 = {
|
|
55348
55087
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
55349
55088
|
};
|
|
55350
55089
|
tool$universalSupportedTokens = {
|
|
@@ -55352,9 +55091,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
55352
55091
|
description: `List Supported Tokens
|
|
55353
55092
|
|
|
55354
55093
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
55355
|
-
args:
|
|
55356
|
-
tool: async (client,
|
|
55357
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
55094
|
+
args: args77,
|
|
55095
|
+
tool: async (client, args78, ctx) => {
|
|
55096
|
+
const [result, apiCall] = await universalSupportedTokens(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55358
55097
|
if (!result.ok) {
|
|
55359
55098
|
return {
|
|
55360
55099
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55369,9 +55108,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
55369
55108
|
|
|
55370
55109
|
// src/funcs/universalUnwrapWeth.ts
|
|
55371
55110
|
function universalUnwrapWeth(client, request, options) {
|
|
55372
|
-
return new APIPromise($
|
|
55111
|
+
return new APIPromise($do78(client, request, options));
|
|
55373
55112
|
}
|
|
55374
|
-
async function $
|
|
55113
|
+
async function $do78(client, request, options) {
|
|
55375
55114
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55376
55115
|
if (!parsed.ok) {
|
|
55377
55116
|
return [parsed, { status: "invalid" }];
|
|
@@ -55442,12 +55181,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
55442
55181
|
});
|
|
55443
55182
|
|
|
55444
55183
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
55445
|
-
var
|
|
55184
|
+
var args78, tool$universalUnwrapWeth;
|
|
55446
55185
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
55447
55186
|
init_universalUnwrapWeth();
|
|
55448
55187
|
init_components();
|
|
55449
55188
|
init_tools();
|
|
55450
|
-
|
|
55189
|
+
args78 = {
|
|
55451
55190
|
request: UnwrapWethRequest$inboundSchema
|
|
55452
55191
|
};
|
|
55453
55192
|
tool$universalUnwrapWeth = {
|
|
@@ -55456,9 +55195,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
55456
55195
|
|
|
55457
55196
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
55458
55197
|
can be used for gas and other native purposes.`,
|
|
55459
|
-
args:
|
|
55460
|
-
tool: async (client,
|
|
55461
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
55198
|
+
args: args78,
|
|
55199
|
+
tool: async (client, args79, ctx) => {
|
|
55200
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55462
55201
|
if (!result.ok) {
|
|
55463
55202
|
return {
|
|
55464
55203
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55473,9 +55212,9 @@ can be used for gas and other native purposes.`,
|
|
|
55473
55212
|
|
|
55474
55213
|
// src/funcs/universalVisualizePortfolio.ts
|
|
55475
55214
|
function universalVisualizePortfolio(client, request, options) {
|
|
55476
|
-
return new APIPromise($
|
|
55215
|
+
return new APIPromise($do79(client, request, options));
|
|
55477
55216
|
}
|
|
55478
|
-
async function $
|
|
55217
|
+
async function $do79(client, request, options) {
|
|
55479
55218
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55480
55219
|
if (!parsed.ok) {
|
|
55481
55220
|
return [parsed, { status: "invalid" }];
|
|
@@ -55551,12 +55290,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
55551
55290
|
});
|
|
55552
55291
|
|
|
55553
55292
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
55554
|
-
var
|
|
55293
|
+
var args79, tool$universalVisualizePortfolio;
|
|
55555
55294
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
55556
55295
|
init_universalVisualizePortfolio();
|
|
55557
55296
|
init_operations();
|
|
55558
55297
|
init_tools();
|
|
55559
|
-
|
|
55298
|
+
args79 = {
|
|
55560
55299
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
55561
55300
|
};
|
|
55562
55301
|
tool$universalVisualizePortfolio = {
|
|
@@ -55568,9 +55307,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
55568
55307
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
55569
55308
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
55570
55309
|
USD.`,
|
|
55571
|
-
args:
|
|
55572
|
-
tool: async (client,
|
|
55573
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
55310
|
+
args: args79,
|
|
55311
|
+
tool: async (client, args80, ctx) => {
|
|
55312
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55574
55313
|
if (!result.ok) {
|
|
55575
55314
|
return {
|
|
55576
55315
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55585,9 +55324,9 @@ USD.`,
|
|
|
55585
55324
|
|
|
55586
55325
|
// src/funcs/universalWrapEth.ts
|
|
55587
55326
|
function universalWrapEth(client, request, options) {
|
|
55588
|
-
return new APIPromise($
|
|
55327
|
+
return new APIPromise($do80(client, request, options));
|
|
55589
55328
|
}
|
|
55590
|
-
async function $
|
|
55329
|
+
async function $do80(client, request, options) {
|
|
55591
55330
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55592
55331
|
if (!parsed.ok) {
|
|
55593
55332
|
return [parsed, { status: "invalid" }];
|
|
@@ -55658,12 +55397,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
55658
55397
|
});
|
|
55659
55398
|
|
|
55660
55399
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
55661
|
-
var
|
|
55400
|
+
var args80, tool$universalWrapEth;
|
|
55662
55401
|
var init_universalWrapEth2 = __esm(() => {
|
|
55663
55402
|
init_universalWrapEth();
|
|
55664
55403
|
init_components();
|
|
55665
55404
|
init_tools();
|
|
55666
|
-
|
|
55405
|
+
args80 = {
|
|
55667
55406
|
request: WrapEthRequest$inboundSchema
|
|
55668
55407
|
};
|
|
55669
55408
|
tool$universalWrapEth = {
|
|
@@ -55672,9 +55411,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
55672
55411
|
|
|
55673
55412
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
55674
55413
|
it to be traded on DeFi protocols.`,
|
|
55675
|
-
args:
|
|
55676
|
-
tool: async (client,
|
|
55677
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
55414
|
+
args: args80,
|
|
55415
|
+
tool: async (client, args81, ctx) => {
|
|
55416
|
+
const [result, apiCall] = await universalWrapEth(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55678
55417
|
if (!result.ok) {
|
|
55679
55418
|
return {
|
|
55680
55419
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55691,7 +55430,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55691
55430
|
function createMCPServer(deps) {
|
|
55692
55431
|
const server = new McpServer({
|
|
55693
55432
|
name: "CompassApiSDK",
|
|
55694
|
-
version: "0.5.
|
|
55433
|
+
version: "0.5.62"
|
|
55695
55434
|
});
|
|
55696
55435
|
const client = new CompassApiSDKCore({
|
|
55697
55436
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -55747,16 +55486,16 @@ function createMCPServer(deps) {
|
|
|
55747
55486
|
tool(tool$tokenPrice);
|
|
55748
55487
|
tool(tool$tokenBalance);
|
|
55749
55488
|
tool(tool$tokenTransfer);
|
|
55750
|
-
tool(tool$
|
|
55751
|
-
tool(tool$
|
|
55752
|
-
tool(tool$
|
|
55753
|
-
tool(tool$
|
|
55754
|
-
tool(tool$
|
|
55755
|
-
tool(tool$
|
|
55756
|
-
tool(tool$
|
|
55757
|
-
tool(tool$
|
|
55758
|
-
tool(tool$
|
|
55759
|
-
tool(tool$
|
|
55489
|
+
tool(tool$uniswapV3QuoteBuyExactly);
|
|
55490
|
+
tool(tool$uniswapV3QuoteSellExactly);
|
|
55491
|
+
tool(tool$uniswapV3PoolPrice);
|
|
55492
|
+
tool(tool$uniswapV3LiquidityProvisionInRange);
|
|
55493
|
+
tool(tool$uniswapV3LiquidityProvisionPositions);
|
|
55494
|
+
tool(tool$uniswapV3SwapBuyExactly);
|
|
55495
|
+
tool(tool$uniswapV3SwapSellExactly);
|
|
55496
|
+
tool(tool$uniswapV3LiquidityProvisionMint);
|
|
55497
|
+
tool(tool$uniswapV3LiquidityProvisionIncrease);
|
|
55498
|
+
tool(tool$uniswapV3LiquidityProvisionWithdraw);
|
|
55760
55499
|
tool(tool$universalPortfolio);
|
|
55761
55500
|
tool(tool$universalVisualizePortfolio);
|
|
55762
55501
|
tool(tool$universalSupportedTokens);
|
|
@@ -55785,7 +55524,6 @@ function createMCPServer(deps) {
|
|
|
55785
55524
|
tool(tool$erc4626VaultsVault);
|
|
55786
55525
|
tool(tool$erc4626VaultsDeposit);
|
|
55787
55526
|
tool(tool$erc4626VaultsWithdraw);
|
|
55788
|
-
tool(tool$uniswapV3V1UniswapSwapBuyExactly);
|
|
55789
55527
|
return server;
|
|
55790
55528
|
}
|
|
55791
55529
|
var init_server2 = __esm(() => {
|
|
@@ -55854,17 +55592,16 @@ var init_server2 = __esm(() => {
|
|
|
55854
55592
|
init_transactionBundlerBundlerAaveLoop2();
|
|
55855
55593
|
init_transactionBundlerBundlerAuthorization2();
|
|
55856
55594
|
init_transactionBundlerBundlerExecute2();
|
|
55857
|
-
|
|
55858
|
-
|
|
55859
|
-
|
|
55860
|
-
|
|
55861
|
-
|
|
55862
|
-
|
|
55863
|
-
|
|
55864
|
-
|
|
55865
|
-
|
|
55866
|
-
|
|
55867
|
-
init_uniswapV3V1UniswapSwapBuyExactly2();
|
|
55595
|
+
init_uniswapV3LiquidityProvisionIncrease2();
|
|
55596
|
+
init_uniswapV3LiquidityProvisionInRange2();
|
|
55597
|
+
init_uniswapV3LiquidityProvisionMint2();
|
|
55598
|
+
init_uniswapV3LiquidityProvisionPositions2();
|
|
55599
|
+
init_uniswapV3LiquidityProvisionWithdraw2();
|
|
55600
|
+
init_uniswapV3PoolPrice2();
|
|
55601
|
+
init_uniswapV3QuoteBuyExactly2();
|
|
55602
|
+
init_uniswapV3QuoteSellExactly2();
|
|
55603
|
+
init_uniswapV3SwapBuyExactly2();
|
|
55604
|
+
init_uniswapV3SwapSellExactly2();
|
|
55868
55605
|
init_universalAllowance2();
|
|
55869
55606
|
init_universalAllowanceSet2();
|
|
55870
55607
|
init_universalEns2();
|
|
@@ -57069,7 +56806,7 @@ var routes = ln({
|
|
|
57069
56806
|
var app = _e(routes, {
|
|
57070
56807
|
name: "mcp",
|
|
57071
56808
|
versionInfo: {
|
|
57072
|
-
currentVersion: "0.5.
|
|
56809
|
+
currentVersion: "0.5.62"
|
|
57073
56810
|
}
|
|
57074
56811
|
});
|
|
57075
56812
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -57077,5 +56814,5 @@ export {
|
|
|
57077
56814
|
app
|
|
57078
56815
|
};
|
|
57079
56816
|
|
|
57080
|
-
//# debugId=
|
|
56817
|
+
//# debugId=9D269028AD7316B464756E2164756E21
|
|
57081
56818
|
//# sourceMappingURL=mcp-server.js.map
|