@compass-labs/api-sdk 0.5.44 → 0.5.46
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/bin/mcp-server.js +316 -90
- package/bin/mcp-server.js.map +72 -72
- package/dist/commonjs/funcs/aaveV3Borrow.d.ts +7 -0
- package/dist/commonjs/funcs/aaveV3Borrow.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.js +7 -0
- package/dist/commonjs/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.d.ts +7 -0
- package/dist/commonjs/funcs/aaveV3Repay.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js +7 -0
- package/dist/commonjs/funcs/aaveV3Repay.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.d.ts +7 -0
- package/dist/commonjs/funcs/aaveV3Supply.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.js +7 -0
- package/dist/commonjs/funcs/aaveV3Supply.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.d.ts +7 -0
- package/dist/commonjs/funcs/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.js +7 -0
- package/dist/commonjs/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +7 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/erc4626VaultsDeposit.d.ts +7 -0
- package/dist/commonjs/funcs/erc4626VaultsDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/erc4626VaultsDeposit.js +7 -0
- package/dist/commonjs/funcs/erc4626VaultsDeposit.js.map +1 -1
- package/dist/commonjs/funcs/erc4626VaultsWithdraw.d.ts +7 -0
- package/dist/commonjs/funcs/erc4626VaultsWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/erc4626VaultsWithdraw.js +7 -0
- package/dist/commonjs/funcs/erc4626VaultsWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.d.ts +7 -0
- package/dist/commonjs/funcs/morphoBorrow.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.js +7 -0
- package/dist/commonjs/funcs/morphoBorrow.js.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.d.ts +7 -0
- package/dist/commonjs/funcs/morphoDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js +7 -0
- package/dist/commonjs/funcs/morphoDeposit.js.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.d.ts +7 -0
- package/dist/commonjs/funcs/morphoRepay.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.js +7 -0
- package/dist/commonjs/funcs/morphoRepay.js.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts +7 -0
- package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.js +7 -0
- package/dist/commonjs/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.d.ts +7 -0
- package/dist/commonjs/funcs/morphoWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.js +7 -0
- package/dist/commonjs/funcs/morphoWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts +7 -0
- package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js +7 -0
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/commonjs/funcs/pendleAddLiquidity.d.ts +7 -0
- package/dist/commonjs/funcs/pendleAddLiquidity.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleAddLiquidity.js +7 -0
- package/dist/commonjs/funcs/pendleAddLiquidity.js.map +1 -1
- package/dist/commonjs/funcs/pendleBuyPt.d.ts +7 -0
- package/dist/commonjs/funcs/pendleBuyPt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleBuyPt.js +7 -0
- package/dist/commonjs/funcs/pendleBuyPt.js.map +1 -1
- package/dist/commonjs/funcs/pendleBuyYt.d.ts +7 -0
- package/dist/commonjs/funcs/pendleBuyYt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleBuyYt.js +7 -0
- package/dist/commonjs/funcs/pendleBuyYt.js.map +1 -1
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts +7 -0
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleRedeemYield.js +7 -0
- package/dist/commonjs/funcs/pendleRedeemYield.js.map +1 -1
- package/dist/commonjs/funcs/pendleRemoveLiquidity.d.ts +7 -0
- package/dist/commonjs/funcs/pendleRemoveLiquidity.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleRemoveLiquidity.js +7 -0
- package/dist/commonjs/funcs/pendleRemoveLiquidity.js.map +1 -1
- package/dist/commonjs/funcs/pendleSellPt.d.ts +7 -0
- package/dist/commonjs/funcs/pendleSellPt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleSellPt.js +7 -0
- package/dist/commonjs/funcs/pendleSellPt.js.map +1 -1
- package/dist/commonjs/funcs/pendleSellYt.d.ts +7 -0
- package/dist/commonjs/funcs/pendleSellYt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleSellYt.js +7 -0
- package/dist/commonjs/funcs/pendleSellYt.js.map +1 -1
- package/dist/commonjs/funcs/skyBuy.d.ts +8 -1
- package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyBuy.js +8 -1
- package/dist/commonjs/funcs/skyBuy.js.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts +10 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.js +10 -1
- package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
- package/dist/commonjs/funcs/skySell.d.ts +7 -0
- package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
- package/dist/commonjs/funcs/skySell.js +7 -0
- package/dist/commonjs/funcs/skySell.js.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts +13 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js +13 -1
- package/dist/commonjs/funcs/skyWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +7 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js +7 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts +7 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js +7 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +7 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js +7 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts +7 -0
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js +7 -0
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts +7 -0
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js +7 -0
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- 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.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Borrow.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Borrow.js +9 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Borrow.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Repay.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Repay.js +9 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Repay.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Supply.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Supply.js +9 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Supply.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Withdraw.js +9 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Withdraw.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +9 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +9 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +9 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +9 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.js +9 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/erc4626VaultsDeposit.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/erc4626VaultsDeposit.js +9 -1
- package/dist/commonjs/mcp-server/tools/erc4626VaultsDeposit.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/erc4626VaultsWithdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/erc4626VaultsWithdraw.js +9 -1
- package/dist/commonjs/mcp-server/tools/erc4626VaultsWithdraw.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoBorrow.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoBorrow.js +9 -1
- package/dist/commonjs/mcp-server/tools/morphoBorrow.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoDeposit.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoDeposit.js +9 -1
- package/dist/commonjs/mcp-server/tools/morphoDeposit.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoRepay.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoRepay.js +9 -1
- package/dist/commonjs/mcp-server/tools/morphoRepay.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoSupplyCollateral.js +9 -1
- package/dist/commonjs/mcp-server/tools/morphoSupplyCollateral.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoWithdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoWithdraw.js +9 -1
- package/dist/commonjs/mcp-server/tools/morphoWithdraw.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/morphoWithdrawCollateral.js +9 -1
- package/dist/commonjs/mcp-server/tools/morphoWithdrawCollateral.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleSellPt.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleSellPt.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleSellPt.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleSellYt.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleSellYt.js +9 -1
- package/dist/commonjs/mcp-server/tools/pendleSellYt.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.js +9 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyDeposit.js +12 -2
- package/dist/commonjs/mcp-server/tools/skyDeposit.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skySell.js +9 -1
- package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyWithdraw.js +14 -1
- package/dist/commonjs/mcp-server/tools/skyWithdraw.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.js +9 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionMint.js +9 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.js +9 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapBuyExactly.js +9 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapSellExactly.js +9 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.d.ts +16 -158
- package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.js +14 -59
- package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +28 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +28 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/commonjs/sdk/aerodromeslipstream.d.ts +35 -0
- package/dist/commonjs/sdk/aerodromeslipstream.d.ts.map +1 -1
- package/dist/commonjs/sdk/aerodromeslipstream.js +35 -0
- package/dist/commonjs/sdk/aerodromeslipstream.js.map +1 -1
- package/dist/commonjs/sdk/erc4626vaults.d.ts +14 -0
- package/dist/commonjs/sdk/erc4626vaults.d.ts.map +1 -1
- package/dist/commonjs/sdk/erc4626vaults.js +14 -0
- package/dist/commonjs/sdk/erc4626vaults.js.map +1 -1
- package/dist/commonjs/sdk/morpho.d.ts +42 -0
- package/dist/commonjs/sdk/morpho.d.ts.map +1 -1
- package/dist/commonjs/sdk/morpho.js +42 -0
- package/dist/commonjs/sdk/morpho.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +49 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +49 -0
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/commonjs/sdk/sky.d.ts +38 -3
- package/dist/commonjs/sdk/sky.d.ts.map +1 -1
- package/dist/commonjs/sdk/sky.js +38 -3
- package/dist/commonjs/sdk/sky.js.map +1 -1
- package/dist/commonjs/sdk/uniswapv3.d.ts +35 -0
- package/dist/commonjs/sdk/uniswapv3.d.ts.map +1 -1
- package/dist/commonjs/sdk/uniswapv3.js +35 -0
- package/dist/commonjs/sdk/uniswapv3.js.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.d.ts +7 -0
- package/dist/esm/funcs/aaveV3Borrow.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.js +7 -0
- package/dist/esm/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.d.ts +7 -0
- package/dist/esm/funcs/aaveV3Repay.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.js +7 -0
- package/dist/esm/funcs/aaveV3Repay.js.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.d.ts +7 -0
- package/dist/esm/funcs/aaveV3Supply.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.js +7 -0
- package/dist/esm/funcs/aaveV3Supply.js.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.d.ts +7 -0
- package/dist/esm/funcs/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.js +7 -0
- package/dist/esm/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +7 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/erc4626VaultsDeposit.d.ts +7 -0
- package/dist/esm/funcs/erc4626VaultsDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/erc4626VaultsDeposit.js +7 -0
- package/dist/esm/funcs/erc4626VaultsDeposit.js.map +1 -1
- package/dist/esm/funcs/erc4626VaultsWithdraw.d.ts +7 -0
- package/dist/esm/funcs/erc4626VaultsWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/erc4626VaultsWithdraw.js +7 -0
- package/dist/esm/funcs/erc4626VaultsWithdraw.js.map +1 -1
- package/dist/esm/funcs/morphoBorrow.d.ts +7 -0
- package/dist/esm/funcs/morphoBorrow.d.ts.map +1 -1
- package/dist/esm/funcs/morphoBorrow.js +7 -0
- package/dist/esm/funcs/morphoBorrow.js.map +1 -1
- package/dist/esm/funcs/morphoDeposit.d.ts +7 -0
- package/dist/esm/funcs/morphoDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/morphoDeposit.js +7 -0
- package/dist/esm/funcs/morphoDeposit.js.map +1 -1
- package/dist/esm/funcs/morphoRepay.d.ts +7 -0
- package/dist/esm/funcs/morphoRepay.d.ts.map +1 -1
- package/dist/esm/funcs/morphoRepay.js +7 -0
- package/dist/esm/funcs/morphoRepay.js.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.d.ts +7 -0
- package/dist/esm/funcs/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.js +7 -0
- package/dist/esm/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.d.ts +7 -0
- package/dist/esm/funcs/morphoWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.js +7 -0
- package/dist/esm/funcs/morphoWithdraw.js.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.d.ts +7 -0
- package/dist/esm/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.js +7 -0
- package/dist/esm/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/esm/funcs/pendleAddLiquidity.d.ts +7 -0
- package/dist/esm/funcs/pendleAddLiquidity.d.ts.map +1 -1
- package/dist/esm/funcs/pendleAddLiquidity.js +7 -0
- package/dist/esm/funcs/pendleAddLiquidity.js.map +1 -1
- package/dist/esm/funcs/pendleBuyPt.d.ts +7 -0
- package/dist/esm/funcs/pendleBuyPt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleBuyPt.js +7 -0
- package/dist/esm/funcs/pendleBuyPt.js.map +1 -1
- package/dist/esm/funcs/pendleBuyYt.d.ts +7 -0
- package/dist/esm/funcs/pendleBuyYt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleBuyYt.js +7 -0
- package/dist/esm/funcs/pendleBuyYt.js.map +1 -1
- package/dist/esm/funcs/pendleRedeemYield.d.ts +7 -0
- package/dist/esm/funcs/pendleRedeemYield.d.ts.map +1 -1
- package/dist/esm/funcs/pendleRedeemYield.js +7 -0
- package/dist/esm/funcs/pendleRedeemYield.js.map +1 -1
- package/dist/esm/funcs/pendleRemoveLiquidity.d.ts +7 -0
- package/dist/esm/funcs/pendleRemoveLiquidity.d.ts.map +1 -1
- package/dist/esm/funcs/pendleRemoveLiquidity.js +7 -0
- package/dist/esm/funcs/pendleRemoveLiquidity.js.map +1 -1
- package/dist/esm/funcs/pendleSellPt.d.ts +7 -0
- package/dist/esm/funcs/pendleSellPt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleSellPt.js +7 -0
- package/dist/esm/funcs/pendleSellPt.js.map +1 -1
- package/dist/esm/funcs/pendleSellYt.d.ts +7 -0
- package/dist/esm/funcs/pendleSellYt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleSellYt.js +7 -0
- package/dist/esm/funcs/pendleSellYt.js.map +1 -1
- package/dist/esm/funcs/skyBuy.d.ts +8 -1
- package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
- package/dist/esm/funcs/skyBuy.js +8 -1
- package/dist/esm/funcs/skyBuy.js.map +1 -1
- package/dist/esm/funcs/skyDeposit.d.ts +10 -1
- package/dist/esm/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/skyDeposit.js +10 -1
- package/dist/esm/funcs/skyDeposit.js.map +1 -1
- package/dist/esm/funcs/skySell.d.ts +7 -0
- package/dist/esm/funcs/skySell.d.ts.map +1 -1
- package/dist/esm/funcs/skySell.js +7 -0
- package/dist/esm/funcs/skySell.js.map +1 -1
- package/dist/esm/funcs/skyWithdraw.d.ts +13 -1
- package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/skyWithdraw.js +13 -1
- package/dist/esm/funcs/skyWithdraw.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +7 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js +7 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts +7 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js +7 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +7 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js +7 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts +7 -0
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js +7 -0
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts +7 -0
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js +7 -0
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- 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.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Borrow.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Borrow.js +9 -1
- package/dist/esm/mcp-server/tools/aaveV3Borrow.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Repay.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Repay.js +9 -1
- package/dist/esm/mcp-server/tools/aaveV3Repay.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Supply.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Supply.js +9 -1
- package/dist/esm/mcp-server/tools/aaveV3Supply.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Withdraw.js +9 -1
- package/dist/esm/mcp-server/tools/aaveV3Withdraw.js.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +9 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +9 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +9 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +9 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.js +9 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/esm/mcp-server/tools/erc4626VaultsDeposit.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/erc4626VaultsDeposit.js +9 -1
- package/dist/esm/mcp-server/tools/erc4626VaultsDeposit.js.map +1 -1
- package/dist/esm/mcp-server/tools/erc4626VaultsWithdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/erc4626VaultsWithdraw.js +9 -1
- package/dist/esm/mcp-server/tools/erc4626VaultsWithdraw.js.map +1 -1
- package/dist/esm/mcp-server/tools/morphoBorrow.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/morphoBorrow.js +9 -1
- package/dist/esm/mcp-server/tools/morphoBorrow.js.map +1 -1
- package/dist/esm/mcp-server/tools/morphoDeposit.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/morphoDeposit.js +9 -1
- package/dist/esm/mcp-server/tools/morphoDeposit.js.map +1 -1
- package/dist/esm/mcp-server/tools/morphoRepay.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/morphoRepay.js +9 -1
- package/dist/esm/mcp-server/tools/morphoRepay.js.map +1 -1
- package/dist/esm/mcp-server/tools/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/morphoSupplyCollateral.js +9 -1
- package/dist/esm/mcp-server/tools/morphoSupplyCollateral.js.map +1 -1
- package/dist/esm/mcp-server/tools/morphoWithdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/morphoWithdraw.js +9 -1
- package/dist/esm/mcp-server/tools/morphoWithdraw.js.map +1 -1
- package/dist/esm/mcp-server/tools/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/morphoWithdrawCollateral.js +9 -1
- package/dist/esm/mcp-server/tools/morphoWithdrawCollateral.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.js +9 -1
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleBuyPt.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleBuyPt.js +9 -1
- package/dist/esm/mcp-server/tools/pendleBuyPt.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleBuyYt.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleBuyYt.js +9 -1
- package/dist/esm/mcp-server/tools/pendleBuyYt.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleRedeemYield.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleRedeemYield.js +9 -1
- package/dist/esm/mcp-server/tools/pendleRedeemYield.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.js +9 -1
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleSellPt.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleSellPt.js +9 -1
- package/dist/esm/mcp-server/tools/pendleSellPt.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleSellYt.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/pendleSellYt.js +9 -1
- package/dist/esm/mcp-server/tools/pendleSellYt.js.map +1 -1
- package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyBuy.js +9 -1
- package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/esm/mcp-server/tools/skyDeposit.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyDeposit.js +12 -2
- package/dist/esm/mcp-server/tools/skyDeposit.js.map +1 -1
- package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skySell.js +9 -1
- package/dist/esm/mcp-server/tools/skySell.js.map +1 -1
- package/dist/esm/mcp-server/tools/skyWithdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyWithdraw.js +14 -1
- package/dist/esm/mcp-server/tools/skyWithdraw.js.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.js +9 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionMint.js +9 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.js +9 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3SwapBuyExactly.js +9 -1
- package/dist/esm/mcp-server/tools/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3SwapSellExactly.js +9 -1
- package/dist/esm/mcp-server/tools/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/esm/models/operations/tokenprice.d.ts +16 -158
- package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenprice.js +11 -58
- package/dist/esm/models/operations/tokenprice.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +28 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +28 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/dist/esm/sdk/aerodromeslipstream.d.ts +35 -0
- package/dist/esm/sdk/aerodromeslipstream.d.ts.map +1 -1
- package/dist/esm/sdk/aerodromeslipstream.js +35 -0
- package/dist/esm/sdk/aerodromeslipstream.js.map +1 -1
- package/dist/esm/sdk/erc4626vaults.d.ts +14 -0
- package/dist/esm/sdk/erc4626vaults.d.ts.map +1 -1
- package/dist/esm/sdk/erc4626vaults.js +14 -0
- package/dist/esm/sdk/erc4626vaults.js.map +1 -1
- package/dist/esm/sdk/morpho.d.ts +42 -0
- package/dist/esm/sdk/morpho.d.ts.map +1 -1
- package/dist/esm/sdk/morpho.js +42 -0
- package/dist/esm/sdk/morpho.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +49 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +49 -0
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/dist/esm/sdk/sky.d.ts +38 -3
- package/dist/esm/sdk/sky.d.ts.map +1 -1
- package/dist/esm/sdk/sky.js +38 -3
- package/dist/esm/sdk/sky.js.map +1 -1
- package/dist/esm/sdk/uniswapv3.d.ts +35 -0
- package/dist/esm/sdk/uniswapv3.d.ts.map +1 -1
- package/dist/esm/sdk/uniswapv3.js +35 -0
- package/dist/esm/sdk/uniswapv3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +32 -0
- package/docs/sdks/aerodromeslipstream/README.md +40 -0
- package/docs/sdks/erc4626vaults/README.md +16 -0
- package/docs/sdks/morpho/README.md +48 -0
- package/docs/sdks/pendle/README.md +56 -0
- package/docs/sdks/sky/README.md +42 -3
- package/docs/sdks/token/README.md +6 -2
- package/docs/sdks/uniswapv3/README.md +40 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3Borrow.ts +7 -0
- package/src/funcs/aaveV3Repay.ts +7 -0
- package/src/funcs/aaveV3Supply.ts +7 -0
- package/src/funcs/aaveV3Withdraw.ts +7 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +7 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +7 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +7 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +7 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +7 -0
- package/src/funcs/erc4626VaultsDeposit.ts +7 -0
- package/src/funcs/erc4626VaultsWithdraw.ts +7 -0
- package/src/funcs/morphoBorrow.ts +7 -0
- package/src/funcs/morphoDeposit.ts +7 -0
- package/src/funcs/morphoRepay.ts +7 -0
- package/src/funcs/morphoSupplyCollateral.ts +7 -0
- package/src/funcs/morphoWithdraw.ts +7 -0
- package/src/funcs/morphoWithdrawCollateral.ts +7 -0
- package/src/funcs/pendleAddLiquidity.ts +7 -0
- package/src/funcs/pendleBuyPt.ts +7 -0
- package/src/funcs/pendleBuyYt.ts +7 -0
- package/src/funcs/pendleRedeemYield.ts +7 -0
- package/src/funcs/pendleRemoveLiquidity.ts +7 -0
- package/src/funcs/pendleSellPt.ts +7 -0
- package/src/funcs/pendleSellYt.ts +7 -0
- package/src/funcs/skyBuy.ts +8 -1
- package/src/funcs/skyDeposit.ts +10 -1
- package/src/funcs/skySell.ts +7 -0
- package/src/funcs/skyWithdraw.ts +13 -1
- package/src/funcs/uniswapV3LiquidityProvisionIncrease.ts +7 -0
- package/src/funcs/uniswapV3LiquidityProvisionMint.ts +7 -0
- package/src/funcs/uniswapV3LiquidityProvisionWithdraw.ts +7 -0
- package/src/funcs/uniswapV3SwapBuyExactly.ts +7 -0
- package/src/funcs/uniswapV3SwapSellExactly.ts +7 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/aaveV3Borrow.ts +9 -1
- package/src/mcp-server/tools/aaveV3Repay.ts +9 -1
- package/src/mcp-server/tools/aaveV3Supply.ts +9 -1
- package/src/mcp-server/tools/aaveV3Withdraw.ts +9 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +9 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +9 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +9 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +9 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +9 -1
- package/src/mcp-server/tools/erc4626VaultsDeposit.ts +9 -1
- package/src/mcp-server/tools/erc4626VaultsWithdraw.ts +9 -1
- package/src/mcp-server/tools/morphoBorrow.ts +9 -1
- package/src/mcp-server/tools/morphoDeposit.ts +9 -1
- package/src/mcp-server/tools/morphoRepay.ts +9 -1
- package/src/mcp-server/tools/morphoSupplyCollateral.ts +9 -1
- package/src/mcp-server/tools/morphoWithdraw.ts +9 -1
- package/src/mcp-server/tools/morphoWithdrawCollateral.ts +9 -1
- package/src/mcp-server/tools/pendleAddLiquidity.ts +9 -1
- package/src/mcp-server/tools/pendleBuyPt.ts +9 -1
- package/src/mcp-server/tools/pendleBuyYt.ts +9 -1
- package/src/mcp-server/tools/pendleRedeemYield.ts +9 -1
- package/src/mcp-server/tools/pendleRemoveLiquidity.ts +9 -1
- package/src/mcp-server/tools/pendleSellPt.ts +9 -1
- package/src/mcp-server/tools/pendleSellYt.ts +9 -1
- package/src/mcp-server/tools/skyBuy.ts +9 -1
- package/src/mcp-server/tools/skyDeposit.ts +12 -2
- package/src/mcp-server/tools/skySell.ts +9 -1
- package/src/mcp-server/tools/skyWithdraw.ts +14 -1
- package/src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts +9 -1
- package/src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts +9 -1
- package/src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts +9 -1
- package/src/mcp-server/tools/uniswapV3SwapBuyExactly.ts +9 -1
- package/src/mcp-server/tools/uniswapV3SwapSellExactly.ts +9 -1
- package/src/models/operations/tokenprice.ts +39 -72
- package/src/sdk/aavev3.ts +28 -0
- package/src/sdk/aerodromeslipstream.ts +35 -0
- package/src/sdk/erc4626vaults.ts +14 -0
- package/src/sdk/morpho.ts +42 -0
- package/src/sdk/pendle.ts +49 -0
- package/src/sdk/sky.ts +38 -3
- package/src/sdk/uniswapv3.ts +35 -0
|
@@ -32,6 +32,13 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
|
|
33
33
|
*
|
|
34
34
|
* Each vault accepts one unique token that can be deposited.
|
|
35
|
+
* <Info>
|
|
36
|
+
* **Required Allowances**
|
|
37
|
+
*
|
|
38
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
39
|
+
*
|
|
40
|
+
* - `<vault_address>`
|
|
41
|
+
* </Info>
|
|
35
42
|
*/
|
|
36
43
|
export function erc4626VaultsDeposit(
|
|
37
44
|
client: CompassApiSDKCore,
|
|
@@ -34,6 +34,13 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* The passive yield earned on token deposits is represented by the increased value of
|
|
35
35
|
* the shares received upon depositing tokens. Trade in these shares for the tokens you
|
|
36
36
|
* deposited plus any accrued yield.
|
|
37
|
+
* <Info>
|
|
38
|
+
* **Required Allowances**
|
|
39
|
+
*
|
|
40
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
41
|
+
*
|
|
42
|
+
* - `<vault address>`
|
|
43
|
+
* </Info>
|
|
37
44
|
*/
|
|
38
45
|
export function erc4626VaultsWithdraw(
|
|
39
46
|
client: CompassApiSDKCore,
|
|
@@ -38,6 +38,13 @@ import { Result } from "../types/fp.js";
|
|
|
38
38
|
* loan asset. Each market is isolated (meaning risks are contained within each
|
|
39
39
|
* individual market), immutable (cannot be changed after deployment), and will persist
|
|
40
40
|
* as long as the blockchain it is deployed on is live.
|
|
41
|
+
* <Info>
|
|
42
|
+
* **Required Allowances**
|
|
43
|
+
*
|
|
44
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
45
|
+
*
|
|
46
|
+
* - `Morpho`
|
|
47
|
+
* </Info>
|
|
41
48
|
*/
|
|
42
49
|
export function morphoBorrow(
|
|
43
50
|
client: CompassApiSDKCore,
|
|
@@ -40,6 +40,13 @@ import { Result } from "../types/fp.js";
|
|
|
40
40
|
* exposure for all deposited assets so users don't need to make these decisions
|
|
41
41
|
* themselves. Users maintain full control over their assets, can monitor the vault's
|
|
42
42
|
* state at any time, and withdraw their liquidity at their discretion.
|
|
43
|
+
* <Info>
|
|
44
|
+
* **Required Allowances**
|
|
45
|
+
*
|
|
46
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
47
|
+
*
|
|
48
|
+
* - `USDC`
|
|
49
|
+
* </Info>
|
|
43
50
|
*/
|
|
44
51
|
export function morphoDeposit(
|
|
45
52
|
client: CompassApiSDKCore,
|
package/src/funcs/morphoRepay.ts
CHANGED
|
@@ -35,6 +35,13 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* loan asset. Each market is isolated (meaning risks are contained within each
|
|
36
36
|
* individual market), immutable (cannot be changed after deployment), and will persist
|
|
37
37
|
* as long as the blockchain it is deployed on is live.
|
|
38
|
+
* <Info>
|
|
39
|
+
* **Required Allowances**
|
|
40
|
+
*
|
|
41
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
42
|
+
*
|
|
43
|
+
* - `Morpho`
|
|
44
|
+
* </Info>
|
|
38
45
|
*/
|
|
39
46
|
export function morphoRepay(
|
|
40
47
|
client: CompassApiSDKCore,
|
|
@@ -35,6 +35,13 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* loan asset. Each market is isolated (meaning risks are contained within each
|
|
36
36
|
* individual market), immutable (cannot be changed after deployment), and will persist
|
|
37
37
|
* as long as the blockchain it is deployed on is live.
|
|
38
|
+
* <Info>
|
|
39
|
+
* **Required Allowances**
|
|
40
|
+
*
|
|
41
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
42
|
+
*
|
|
43
|
+
* - `Morpho`
|
|
44
|
+
* </Info>
|
|
38
45
|
*/
|
|
39
46
|
export function morphoSupplyCollateral(
|
|
40
47
|
client: CompassApiSDKCore,
|
|
@@ -40,6 +40,13 @@ import { Result } from "../types/fp.js";
|
|
|
40
40
|
* exposure for all deposited assets so users don't need to make these decisions
|
|
41
41
|
* themselves. Users maintain full control over their assets, can monitor the vault's
|
|
42
42
|
* state at any time, and withdraw their liquidity at their discretion.
|
|
43
|
+
* <Info>
|
|
44
|
+
* **Required Allowances**
|
|
45
|
+
*
|
|
46
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
47
|
+
*
|
|
48
|
+
* - `<token address>`
|
|
49
|
+
* </Info>
|
|
43
50
|
*/
|
|
44
51
|
export function morphoWithdraw(
|
|
45
52
|
client: CompassApiSDKCore,
|
|
@@ -35,6 +35,13 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* loan asset. Each market is isolated (meaning risks are contained within each
|
|
36
36
|
* individual market), immutable (cannot be changed after deployment), and will persist
|
|
37
37
|
* as long as the blockchain it is deployed on is live.
|
|
38
|
+
* <Info>
|
|
39
|
+
* **Required Allowances**
|
|
40
|
+
*
|
|
41
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
42
|
+
*
|
|
43
|
+
* - `Morpho`
|
|
44
|
+
* </Info>
|
|
38
45
|
*/
|
|
39
46
|
export function morphoWithdrawCollateral(
|
|
40
47
|
client: CompassApiSDKCore,
|
|
@@ -33,6 +33,13 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
*
|
|
34
34
|
* Liquidity is added in the form of the market's Underlying Token. Representation of
|
|
35
35
|
* the liquidity received is the market's Liquidity Provider Token (LP).
|
|
36
|
+
* <Info>
|
|
37
|
+
* **Required Allowances**
|
|
38
|
+
*
|
|
39
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
40
|
+
*
|
|
41
|
+
* - `PendleRouter`
|
|
42
|
+
* </Info>
|
|
36
43
|
*/
|
|
37
44
|
export function pendleAddLiquidity(
|
|
38
45
|
client: CompassApiSDKCore,
|
package/src/funcs/pendleBuyPt.ts
CHANGED
|
@@ -30,6 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
33
|
+
* <Info>
|
|
34
|
+
* **Required Allowances**
|
|
35
|
+
*
|
|
36
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
37
|
+
*
|
|
38
|
+
* - `PendleRouter`
|
|
39
|
+
* </Info>
|
|
33
40
|
*/
|
|
34
41
|
export function pendleBuyPt(
|
|
35
42
|
client: CompassApiSDKCore,
|
package/src/funcs/pendleBuyYt.ts
CHANGED
|
@@ -30,6 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Buy Yield Token (YT) with market's Underlying Token.
|
|
33
|
+
* <Info>
|
|
34
|
+
* **Required Allowances**
|
|
35
|
+
*
|
|
36
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
37
|
+
*
|
|
38
|
+
* - `PendleRouter`
|
|
39
|
+
* </Info>
|
|
33
40
|
*/
|
|
34
41
|
export function pendleBuyYt(
|
|
35
42
|
client: CompassApiSDKCore,
|
|
@@ -30,6 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Redeem claimable yield from the market's associated Yield Token (YT).
|
|
33
|
+
* <Info>
|
|
34
|
+
* **Required Allowances**
|
|
35
|
+
*
|
|
36
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
37
|
+
*
|
|
38
|
+
* - `PendleRouter`
|
|
39
|
+
* </Info>
|
|
33
40
|
*/
|
|
34
41
|
export function pendleRedeemYield(
|
|
35
42
|
client: CompassApiSDKCore,
|
|
@@ -34,6 +34,13 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
|
|
35
35
|
* the market's Underlying Token. An appropriate allowance for the Pendle Router on the
|
|
36
36
|
* market contract must be set beforehand
|
|
37
|
+
* <Info>
|
|
38
|
+
* **Required Allowances**
|
|
39
|
+
*
|
|
40
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
41
|
+
*
|
|
42
|
+
* - `PendleRouter`
|
|
43
|
+
* </Info>
|
|
37
44
|
*/
|
|
38
45
|
export function pendleRemoveLiquidity(
|
|
39
46
|
client: CompassApiSDKCore,
|
|
@@ -30,6 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
33
|
+
* <Info>
|
|
34
|
+
* **Required Allowances**
|
|
35
|
+
*
|
|
36
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
37
|
+
*
|
|
38
|
+
* - `PendleRouter`
|
|
39
|
+
* </Info>
|
|
33
40
|
*/
|
|
34
41
|
export function pendleSellPt(
|
|
35
42
|
client: CompassApiSDKCore,
|
|
@@ -30,6 +30,13 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Sell Yield Token (YT) for the market's Underlying Token.
|
|
33
|
+
* <Info>
|
|
34
|
+
* **Required Allowances**
|
|
35
|
+
*
|
|
36
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
37
|
+
*
|
|
38
|
+
* - `PendleRouter`
|
|
39
|
+
* </Info>
|
|
33
40
|
*/
|
|
34
41
|
export function pendleSellYt(
|
|
35
42
|
client: CompassApiSDKCore,
|
package/src/funcs/skyBuy.ts
CHANGED
|
@@ -35,7 +35,14 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
* 'SkyDaiUsdsConverter' contract beforehand.
|
|
36
36
|
*
|
|
37
37
|
* If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
38
|
-
* '
|
|
38
|
+
* 'SkyUsdcUsdsConverter' contract beforehand.
|
|
39
|
+
* <Info>
|
|
40
|
+
* **Required Allowances**
|
|
41
|
+
*
|
|
42
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
43
|
+
*
|
|
44
|
+
* - `SkyUsdcUsdsConverter`
|
|
45
|
+
* </Info>
|
|
39
46
|
*/
|
|
40
47
|
export function skyBuy(
|
|
41
48
|
client: CompassApiSDKCore,
|
package/src/funcs/skyDeposit.ts
CHANGED
|
@@ -29,9 +29,18 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Deposit USDS
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Deposit USDS
|
|
32
|
+
* Deposit USDS to earn yield. Deposited USDS is represented as sUSDS.
|
|
33
|
+
*
|
|
34
|
+
* Allowance must be set on USDS contract for UsdsVault.
|
|
33
35
|
*
|
|
34
36
|
* There are no fees.
|
|
37
|
+
* <Info>
|
|
38
|
+
* **Required Allowances**
|
|
39
|
+
*
|
|
40
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
41
|
+
*
|
|
42
|
+
* - `SkyUsdsVault`
|
|
43
|
+
* </Info>
|
|
35
44
|
*/
|
|
36
45
|
export function skyDeposit(
|
|
37
46
|
client: CompassApiSDKCore,
|
package/src/funcs/skySell.ts
CHANGED
|
@@ -36,6 +36,13 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
*
|
|
37
37
|
* If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
38
38
|
* 'SkyUsdcUsdsConverter' contract beforehand.
|
|
39
|
+
* <Info>
|
|
40
|
+
* **Required Allowances**
|
|
41
|
+
*
|
|
42
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
43
|
+
*
|
|
44
|
+
* - `SkyUsdcUsdsConverter`
|
|
45
|
+
* </Info>
|
|
39
46
|
*/
|
|
40
47
|
export function skySell(
|
|
41
48
|
client: CompassApiSDKCore,
|
package/src/funcs/skyWithdraw.ts
CHANGED
|
@@ -29,7 +29,19 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Withdraw USDS
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Withdraw USDS
|
|
32
|
+
* Withdraw USDS. Exchange yield-bearing sUSDS for USDS.
|
|
33
|
+
*
|
|
34
|
+
* Allowance must be set on USDS contract for UsdsVault.
|
|
35
|
+
*
|
|
36
|
+
* There are no fees.
|
|
37
|
+
* <Info>
|
|
38
|
+
* **Required Allowances**
|
|
39
|
+
*
|
|
40
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
41
|
+
*
|
|
42
|
+
* - `SkyUsdcUsdsConverter`
|
|
43
|
+
* - `SkyUsdsVault`
|
|
44
|
+
* </Info>
|
|
33
45
|
*/
|
|
34
46
|
export function skyWithdraw(
|
|
35
47
|
client: CompassApiSDKCore,
|
|
@@ -38,6 +38,13 @@ import { Result } from "../types/fp.js";
|
|
|
38
38
|
* within the pool. The endpoint requires details such as the token pair, additional
|
|
39
39
|
* amount to be added, and any other parameters necessary for the liquidity increase
|
|
40
40
|
* process.
|
|
41
|
+
* <Info>
|
|
42
|
+
* **Required Allowances**
|
|
43
|
+
*
|
|
44
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
45
|
+
*
|
|
46
|
+
* - `AerodromeSlipstreamRouter`
|
|
47
|
+
* </Info>
|
|
41
48
|
*/
|
|
42
49
|
export function uniswapV3LiquidityProvisionIncrease(
|
|
43
50
|
client: CompassApiSDKCore,
|
|
@@ -38,6 +38,13 @@ import { Result } from "../types/fp.js";
|
|
|
38
38
|
* enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
39
39
|
* requires details such as the token pair, amount, and any additional parameters
|
|
40
40
|
* needed for the minting process.
|
|
41
|
+
* <Info>
|
|
42
|
+
* **Required Allowances**
|
|
43
|
+
*
|
|
44
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
45
|
+
*
|
|
46
|
+
* - `UniswapV3NFTPositionManager`
|
|
47
|
+
* </Info>
|
|
41
48
|
*/
|
|
42
49
|
export function uniswapV3LiquidityProvisionMint(
|
|
43
50
|
client: CompassApiSDKCore,
|
|
@@ -39,6 +39,13 @@ import { Result } from "../types/fp.js";
|
|
|
39
39
|
* amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
40
40
|
* process. Users should ensure they meet any protocol requirements or conditions
|
|
41
41
|
* before initiating a withdrawal to avoid potential issues or penalties.
|
|
42
|
+
* <Info>
|
|
43
|
+
* **Required Allowances**
|
|
44
|
+
*
|
|
45
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
46
|
+
*
|
|
47
|
+
* - `UniswapV3NFTPositionManager`
|
|
48
|
+
* </Info>
|
|
42
49
|
*/
|
|
43
50
|
export function uniswapV3LiquidityProvisionWithdraw(
|
|
44
51
|
client: CompassApiSDKCore,
|
|
@@ -36,6 +36,13 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* provide the necessary transaction details, including the token to buy, the token to
|
|
37
37
|
* pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
38
38
|
* needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
39
|
+
* <Info>
|
|
40
|
+
* **Required Allowances**
|
|
41
|
+
*
|
|
42
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
43
|
+
*
|
|
44
|
+
* - `UniswapV3Router`
|
|
45
|
+
* </Info>
|
|
39
46
|
*/
|
|
40
47
|
export function uniswapV3SwapBuyExactly(
|
|
41
48
|
client: CompassApiSDKCore,
|
|
@@ -36,6 +36,13 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* provide the necessary transaction details, including the token to sell, the token to
|
|
37
37
|
* receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
38
38
|
* wrapped, the appropriate amount will be wrapped automatically.
|
|
39
|
+
* <Info>
|
|
40
|
+
* **Required Allowances**
|
|
41
|
+
*
|
|
42
|
+
* In order to make this transaction, token allowances need to be set on the following contracts.
|
|
43
|
+
*
|
|
44
|
+
* - `UniswapV3Router`
|
|
45
|
+
* </Info>
|
|
39
46
|
*/
|
|
40
47
|
export function uniswapV3SwapSellExactly(
|
|
41
48
|
client: CompassApiSDKCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "0.5.
|
|
64
|
+
sdkVersion: "0.5.46",
|
|
65
65
|
genVersion: "2.656.5",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.5.
|
|
67
|
+
"speakeasy-sdk/typescript 0.5.46 2.656.5 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -17,7 +17,15 @@ export const tool$aaveV3Borrow: ToolDefinition<typeof args> = {
|
|
|
17
17
|
You will pay interest for your borrows.
|
|
18
18
|
|
|
19
19
|
Price changes in the assets may lead to some or all of your collateral being
|
|
20
|
-
liquidated, if the borrow position becomes unhealthy
|
|
20
|
+
liquidated, if the borrow position becomes unhealthy.
|
|
21
|
+
<Info>
|
|
22
|
+
**Required Allowances**
|
|
23
|
+
|
|
24
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
25
|
+
|
|
26
|
+
- \`AaveV3Pool\`
|
|
27
|
+
</Info>
|
|
28
|
+
`,
|
|
21
29
|
args,
|
|
22
30
|
tool: async (client, args, ctx) => {
|
|
23
31
|
const [result, apiCall] = await aaveV3Borrow(
|
|
@@ -21,7 +21,15 @@ By repaying borrowed amounts, users can improve their health factor, which is a
|
|
|
21
21
|
measure of the safety of their loan position. A higher health factor reduces the
|
|
22
22
|
risk of liquidation, ensuring a more secure borrowing experience. The endpoint
|
|
23
23
|
requires specifying the chain and the details of the repayment transaction,
|
|
24
|
-
including the amount and the asset to be repaid
|
|
24
|
+
including the amount and the asset to be repaid.
|
|
25
|
+
<Info>
|
|
26
|
+
**Required Allowances**
|
|
27
|
+
|
|
28
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
29
|
+
|
|
30
|
+
- \`AaveV3Pool\`
|
|
31
|
+
</Info>
|
|
32
|
+
`,
|
|
25
33
|
args,
|
|
26
34
|
tool: async (client, args, ctx) => {
|
|
27
35
|
const [result, apiCall] = await aaveV3Repay(
|
|
@@ -22,7 +22,15 @@ create leverage.
|
|
|
22
22
|
|
|
23
23
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
24
24
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
25
|
-
borrowing flexibility
|
|
25
|
+
borrowing flexibility.
|
|
26
|
+
<Info>
|
|
27
|
+
**Required Allowances**
|
|
28
|
+
|
|
29
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
30
|
+
|
|
31
|
+
- \`AaveV3Pool\`
|
|
32
|
+
</Info>
|
|
33
|
+
`,
|
|
26
34
|
args,
|
|
27
35
|
tool: async (client, args, ctx) => {
|
|
28
36
|
const [result, apiCall] = await aaveV3Supply(
|
|
@@ -22,7 +22,15 @@ includes the collection of any interest earned on the collateral. It is importan
|
|
|
22
22
|
for users to carefully consider their outstanding debts and the potential impact on
|
|
23
23
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
24
24
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
25
|
-
the Aave ecosystem
|
|
25
|
+
the Aave ecosystem.
|
|
26
|
+
<Info>
|
|
27
|
+
**Required Allowances**
|
|
28
|
+
|
|
29
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
30
|
+
|
|
31
|
+
- \`AaveV3Pool\`
|
|
32
|
+
</Info>
|
|
33
|
+
`,
|
|
26
34
|
args,
|
|
27
35
|
tool: async (client, args, ctx) => {
|
|
28
36
|
const [result, apiCall] = await aaveV3Withdraw(
|
|
@@ -27,7 +27,15 @@ The response will confirm the successful increase of the LP position, providing
|
|
|
27
27
|
users with updated information about their enhanced position. This functionality is
|
|
28
28
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
29
29
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
30
|
-
(DeFi) markets
|
|
30
|
+
(DeFi) markets.
|
|
31
|
+
<Info>
|
|
32
|
+
**Required Allowances**
|
|
33
|
+
|
|
34
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
35
|
+
|
|
36
|
+
- \`AerodromeSlipstreamRouter\`
|
|
37
|
+
</Info>
|
|
38
|
+
`,
|
|
31
39
|
args,
|
|
32
40
|
tool: async (client, args, ctx) => {
|
|
33
41
|
const [result, apiCall] =
|
|
@@ -24,7 +24,15 @@ specified parameters, such as token amounts and pool details. The response will
|
|
|
24
24
|
confirm the successful creation of the LP position, providing users with the
|
|
25
25
|
necessary information to manage their newly minted position. This functionality is
|
|
26
26
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
27
|
-
them the opportunity to engage in decentralized finance (DeFi) markets effectively
|
|
27
|
+
them the opportunity to engage in decentralized finance (DeFi) markets effectively.
|
|
28
|
+
<Info>
|
|
29
|
+
**Required Allowances**
|
|
30
|
+
|
|
31
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
32
|
+
|
|
33
|
+
- \`AerodromeSlipstreamNonfungiblePositionManager\`
|
|
34
|
+
</Info>
|
|
35
|
+
`,
|
|
28
36
|
args,
|
|
29
37
|
tool: async (client, args, ctx) => {
|
|
30
38
|
const [result, apiCall] =
|
|
@@ -27,7 +27,15 @@ tokens and any remaining balances. This functionality is essential for users who
|
|
|
27
27
|
wish to exit their liquidity provision activities, enabling them to reclaim their
|
|
28
28
|
assets and potentially reallocate them to other investment opportunities. The
|
|
29
29
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
30
|
-
strategic management of their decentralized finance (DeFi) portfolios
|
|
30
|
+
strategic management of their decentralized finance (DeFi) portfolios.
|
|
31
|
+
<Info>
|
|
32
|
+
**Required Allowances**
|
|
33
|
+
|
|
34
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
35
|
+
|
|
36
|
+
- \`AerodromeSlipstreamNonfungiblePositionManager\`
|
|
37
|
+
</Info>
|
|
38
|
+
`,
|
|
31
39
|
args,
|
|
32
40
|
tool: async (client, args, ctx) => {
|
|
33
41
|
const [result, apiCall] =
|
|
@@ -25,7 +25,15 @@ particularly useful for users who have a specific target amount of the output to
|
|
|
25
25
|
in mind and are willing to provide the corresponding input token amount. The
|
|
26
26
|
transaction is executed with consideration of current market conditions, including
|
|
27
27
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
28
|
-
effectively
|
|
28
|
+
effectively.
|
|
29
|
+
<Info>
|
|
30
|
+
**Required Allowances**
|
|
31
|
+
|
|
32
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
33
|
+
|
|
34
|
+
- \`AerodromeSlipstreamRouter\`
|
|
35
|
+
</Info>
|
|
36
|
+
`,
|
|
29
37
|
args,
|
|
30
38
|
tool: async (client, args, ctx) => {
|
|
31
39
|
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(
|
|
@@ -24,7 +24,15 @@ sold, and the system calculates the amount of the output token that will be
|
|
|
24
24
|
received. The operation ensures that the trade is conducted within the constraints
|
|
25
25
|
of the current market conditions, taking into account the liquidity and price
|
|
26
26
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
27
|
-
token and are willing to accept the resulting amount of the other token
|
|
27
|
+
token and are willing to accept the resulting amount of the other token.
|
|
28
|
+
<Info>
|
|
29
|
+
**Required Allowances**
|
|
30
|
+
|
|
31
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
32
|
+
|
|
33
|
+
- \`AerodromeSlipstreamRouter\`
|
|
34
|
+
</Info>
|
|
35
|
+
`,
|
|
28
36
|
args,
|
|
29
37
|
tool: async (client, args, ctx) => {
|
|
30
38
|
const [result, apiCall] =
|
|
@@ -16,7 +16,15 @@ export const tool$erc4626VaultsDeposit: ToolDefinition<typeof args> = {
|
|
|
16
16
|
|
|
17
17
|
Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
|
|
18
18
|
|
|
19
|
-
Each vault accepts one unique token that can be deposited
|
|
19
|
+
Each vault accepts one unique token that can be deposited.
|
|
20
|
+
<Info>
|
|
21
|
+
**Required Allowances**
|
|
22
|
+
|
|
23
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
24
|
+
|
|
25
|
+
- \`<vault_address>\`
|
|
26
|
+
</Info>
|
|
27
|
+
`,
|
|
20
28
|
args,
|
|
21
29
|
tool: async (client, args, ctx) => {
|
|
22
30
|
const [result, apiCall] = await erc4626VaultsDeposit(
|
|
@@ -18,7 +18,15 @@ Withdraw deposited tokens from a Vault (ERC-4626 Standard).
|
|
|
18
18
|
|
|
19
19
|
The passive yield earned on token deposits is represented by the increased value of
|
|
20
20
|
the shares received upon depositing tokens. Trade in these shares for the tokens you
|
|
21
|
-
deposited plus any accrued yield
|
|
21
|
+
deposited plus any accrued yield.
|
|
22
|
+
<Info>
|
|
23
|
+
**Required Allowances**
|
|
24
|
+
|
|
25
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
26
|
+
|
|
27
|
+
- \`<vault address>\`
|
|
28
|
+
</Info>
|
|
29
|
+
`,
|
|
22
30
|
args,
|
|
23
31
|
tool: async (client, args, ctx) => {
|
|
24
32
|
const [result, apiCall] = await erc4626VaultsWithdraw(
|
|
@@ -22,7 +22,15 @@ Liquidation Loan-To-Value (LLTV) threshold of the market.
|
|
|
22
22
|
A Morpho Market is a primitive lending pool that pairs one collateral asset with one
|
|
23
23
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
24
24
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
25
|
-
as long as the blockchain it is deployed on is live
|
|
25
|
+
as long as the blockchain it is deployed on is live.
|
|
26
|
+
<Info>
|
|
27
|
+
**Required Allowances**
|
|
28
|
+
|
|
29
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
30
|
+
|
|
31
|
+
- \`Morpho\`
|
|
32
|
+
</Info>
|
|
33
|
+
`,
|
|
26
34
|
args,
|
|
27
35
|
tool: async (client, args, ctx) => {
|
|
28
36
|
const [result, apiCall] = await morphoBorrow(
|
|
@@ -24,7 +24,15 @@ markets. Users can deposit into a vault to start earning passive yield from inte
|
|
|
24
24
|
paid by borrowers. Vaults feature automated risk management, actively curating risk
|
|
25
25
|
exposure for all deposited assets so users don't need to make these decisions
|
|
26
26
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
27
|
-
state at any time, and withdraw their liquidity at their discretion
|
|
27
|
+
state at any time, and withdraw their liquidity at their discretion.
|
|
28
|
+
<Info>
|
|
29
|
+
**Required Allowances**
|
|
30
|
+
|
|
31
|
+
In order to make this transaction, token allowances need to be set on the following contracts.
|
|
32
|
+
|
|
33
|
+
- \`USDC\`
|
|
34
|
+
</Info>
|
|
35
|
+
`,
|
|
28
36
|
args,
|
|
29
37
|
tool: async (client, args, ctx) => {
|
|
30
38
|
const [result, apiCall] = await morphoDeposit(
|