@compass-labs/api-sdk 0.5.7 → 0.5.9
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/FUNCTIONS.md +6 -26
- package/README.md +54 -72
- package/bin/mcp-server.js +935 -537
- package/bin/mcp-server.js.map +131 -121
- package/dist/commonjs/funcs/aaveV3AvgRate.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3AvgRate.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3AvgRate.js +1 -1
- package/dist/commonjs/funcs/aaveV3AvgRate.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3Borrow.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.js +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js +1 -2
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3LiquidityChange.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3LiquidityChange.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3LiquidityChange.js +1 -2
- package/dist/commonjs/funcs/aaveV3LiquidityChange.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Rate.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3Rate.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Rate.js +1 -1
- package/dist/commonjs/funcs/aaveV3Rate.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3Repay.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js +1 -1
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.js +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3Supply.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.js +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3TokenPrice.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3TokenPrice.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3TokenPrice.js +1 -1
- package/dist/commonjs/funcs/aaveV3TokenPrice.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.js +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.js +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.d.ts +3 -2
- package/dist/commonjs/funcs/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.js +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +1 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js +1 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +3 -2
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/morphoAllowance.d.ts +3 -2
- package/dist/commonjs/funcs/morphoAllowance.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoAllowance.js +1 -1
- package/dist/commonjs/funcs/morphoAllowance.js.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.d.ts +3 -2
- package/dist/commonjs/funcs/morphoBorrow.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.js +1 -1
- package/dist/commonjs/funcs/morphoBorrow.js.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.d.ts +3 -2
- package/dist/commonjs/funcs/morphoDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js.map +1 -1
- package/dist/commonjs/funcs/morphoMarket.d.ts +3 -2
- package/dist/commonjs/funcs/morphoMarket.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoMarket.js +1 -2
- package/dist/commonjs/funcs/morphoMarket.js.map +1 -1
- package/dist/commonjs/funcs/morphoMarketPosition.d.ts +3 -2
- package/dist/commonjs/funcs/morphoMarketPosition.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoMarketPosition.js +1 -2
- package/dist/commonjs/funcs/morphoMarketPosition.js.map +1 -1
- package/dist/commonjs/funcs/morphoMarkets.d.ts +3 -2
- package/dist/commonjs/funcs/morphoMarkets.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoMarkets.js +1 -2
- package/dist/commonjs/funcs/morphoMarkets.js.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.d.ts +3 -2
- package/dist/commonjs/funcs/morphoRepay.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.js +1 -1
- package/dist/commonjs/funcs/morphoRepay.js.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts +3 -2
- package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.js +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/commonjs/funcs/morphoUserPosition.d.ts +3 -2
- package/dist/commonjs/funcs/morphoUserPosition.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoUserPosition.js +1 -2
- package/dist/commonjs/funcs/morphoUserPosition.js.map +1 -1
- package/dist/commonjs/funcs/morphoVault.d.ts +3 -2
- package/dist/commonjs/funcs/morphoVault.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoVault.js +1 -2
- package/dist/commonjs/funcs/morphoVault.js.map +1 -1
- package/dist/commonjs/funcs/morphoVaultPosition.d.ts +3 -2
- package/dist/commonjs/funcs/morphoVaultPosition.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoVaultPosition.js +1 -2
- package/dist/commonjs/funcs/morphoVaultPosition.js.map +1 -1
- package/dist/commonjs/funcs/morphoVaults.d.ts +3 -2
- package/dist/commonjs/funcs/morphoVaults.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoVaults.js +1 -2
- package/dist/commonjs/funcs/morphoVaults.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.d.ts +3 -2
- package/dist/commonjs/funcs/morphoWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.js +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts +3 -2
- package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/commonjs/funcs/pendleAddLiquidity.d.ts +21 -0
- package/dist/commonjs/funcs/pendleAddLiquidity.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleAddLiquidity.js +121 -0
- package/dist/commonjs/funcs/pendleAddLiquidity.js.map +1 -0
- package/dist/commonjs/funcs/pendleBuyPt.d.ts +3 -2
- package/dist/commonjs/funcs/pendleBuyPt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleBuyPt.js +1 -1
- package/dist/commonjs/funcs/pendleBuyPt.js.map +1 -1
- package/dist/commonjs/funcs/pendleBuyYt.d.ts +3 -2
- package/dist/commonjs/funcs/pendleBuyYt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleBuyYt.js +1 -1
- package/dist/commonjs/funcs/pendleBuyYt.js.map +1 -1
- package/dist/commonjs/funcs/pendleMarket.d.ts +3 -2
- package/dist/commonjs/funcs/pendleMarket.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleMarket.js +1 -2
- package/dist/commonjs/funcs/pendleMarket.js.map +1 -1
- package/dist/commonjs/funcs/pendleMarkets.d.ts +3 -2
- package/dist/commonjs/funcs/pendleMarkets.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleMarkets.js +1 -2
- package/dist/commonjs/funcs/pendleMarkets.js.map +1 -1
- package/dist/commonjs/funcs/pendlePosition.d.ts +3 -2
- package/dist/commonjs/funcs/pendlePosition.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendlePosition.js +1 -2
- package/dist/commonjs/funcs/pendlePosition.js.map +1 -1
- package/dist/commonjs/funcs/pendlePositions.d.ts +3 -2
- package/dist/commonjs/funcs/pendlePositions.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendlePositions.js +1 -2
- package/dist/commonjs/funcs/pendlePositions.js.map +1 -1
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts +3 -2
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleRedeemYield.js +1 -1
- package/dist/commonjs/funcs/pendleRedeemYield.js.map +1 -1
- package/dist/commonjs/funcs/pendleRemoveLiquidity.d.ts +22 -0
- package/dist/commonjs/funcs/pendleRemoveLiquidity.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleRemoveLiquidity.js +122 -0
- package/dist/commonjs/funcs/pendleRemoveLiquidity.js.map +1 -0
- package/dist/commonjs/funcs/pendleSellPt.d.ts +3 -2
- package/dist/commonjs/funcs/pendleSellPt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleSellPt.js +1 -1
- package/dist/commonjs/funcs/pendleSellPt.js.map +1 -1
- package/dist/commonjs/funcs/pendleSellYt.d.ts +3 -2
- package/dist/commonjs/funcs/pendleSellYt.d.ts.map +1 -1
- package/dist/commonjs/funcs/pendleSellYt.js +1 -1
- package/dist/commonjs/funcs/pendleSellYt.js.map +1 -1
- package/dist/commonjs/funcs/skyBuy.d.ts +3 -2
- package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyBuy.js +1 -1
- package/dist/commonjs/funcs/skyBuy.js.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts +3 -2
- package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.js +1 -1
- package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
- package/dist/commonjs/funcs/skyPosition.d.ts +3 -2
- package/dist/commonjs/funcs/skyPosition.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyPosition.js +1 -2
- package/dist/commonjs/funcs/skyPosition.js.map +1 -1
- package/dist/commonjs/funcs/skySell.d.ts +3 -2
- package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
- package/dist/commonjs/funcs/skySell.js +1 -1
- package/dist/commonjs/funcs/skySell.js.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts +3 -2
- package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.d.ts +3 -2
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.d.ts.map +1 -1
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js +1 -1
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -1
- package/dist/commonjs/funcs/tokenAddress.d.ts +3 -2
- package/dist/commonjs/funcs/tokenAddress.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenAddress.js +1 -2
- package/dist/commonjs/funcs/tokenAddress.js.map +1 -1
- package/dist/commonjs/funcs/tokenBalance.d.ts +3 -2
- package/dist/commonjs/funcs/tokenBalance.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenBalance.js +1 -2
- package/dist/commonjs/funcs/tokenBalance.js.map +1 -1
- package/dist/commonjs/funcs/tokenPrice.d.ts +3 -2
- package/dist/commonjs/funcs/tokenPrice.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenPrice.js +1 -1
- package/dist/commonjs/funcs/tokenPrice.js.map +1 -1
- package/dist/commonjs/funcs/tokenTransfer.d.ts +3 -2
- package/dist/commonjs/funcs/tokenTransfer.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenTransfer.js +1 -1
- package/dist/commonjs/funcs/tokenTransfer.js.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +3 -2
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +1 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +3 -2
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js +1 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +3 -2
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.js +1 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.js +1 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.js +1 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3PoolPrice.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3PoolPrice.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3PoolPrice.js +1 -2
- package/dist/commonjs/funcs/uniswapV3PoolPrice.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.js +1 -2
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.js +1 -2
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts +3 -2
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/universalAllowance.d.ts +3 -2
- package/dist/commonjs/funcs/universalAllowance.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalAllowance.js +1 -2
- package/dist/commonjs/funcs/universalAllowance.js.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts +6 -4
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js +4 -3
- package/dist/commonjs/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/commonjs/funcs/universalEns.d.ts +3 -2
- package/dist/commonjs/funcs/universalEns.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalEns.js +1 -2
- package/dist/commonjs/funcs/universalEns.js.map +1 -1
- package/dist/commonjs/funcs/universalPortfolio.d.ts +3 -2
- package/dist/commonjs/funcs/universalPortfolio.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalPortfolio.js +1 -2
- package/dist/commonjs/funcs/universalPortfolio.js.map +1 -1
- package/dist/commonjs/funcs/universalSupportedTokens.d.ts +3 -2
- package/dist/commonjs/funcs/universalSupportedTokens.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalSupportedTokens.js +1 -2
- package/dist/commonjs/funcs/universalSupportedTokens.js.map +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.d.ts +3 -2
- package/dist/commonjs/funcs/universalUnwrapWeth.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.js +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.js.map +1 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts +3 -2
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.js +1 -2
- package/dist/commonjs/funcs/universalVisualizePortfolio.js.map +1 -1
- package/dist/commonjs/funcs/universalWrapEth.d.ts +3 -2
- package/dist/commonjs/funcs/universalWrapEth.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalWrapEth.js +1 -1
- package/dist/commonjs/funcs/universalWrapEth.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/matchers.d.ts +3 -10
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +33 -31
- package/dist/commonjs/lib/matchers.js.map +1 -1
- 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 +6 -2
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.js +67 -0
- package/dist/commonjs/mcp-server/tools/pendleAddLiquidity.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.js +68 -0
- package/dist/commonjs/mcp-server/tools/pendleRemoveLiquidity.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js +3 -2
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.d.ts +42 -18
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.js +45 -24
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts +63 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.js +107 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +74 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js +112 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts +5 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlegetmarketresponse.js +4 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.js.map +1 -1
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts +5 -0
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.js +4 -0
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +63 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js +107 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +74 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +112 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -0
- package/dist/commonjs/models/components/useroperation.d.ts +18 -0
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +10 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/errors/apierror.d.ts +8 -6
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +17 -10
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/models/errors/compassapisdkerror.d.ts +19 -0
- package/dist/commonjs/models/errors/compassapisdkerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/compassapisdkerror.js +20 -0
- package/dist/commonjs/models/errors/compassapisdkerror.js.map +1 -0
- package/dist/commonjs/models/errors/httpvalidationerror.d.ts +7 -2
- package/dist/commonjs/models/errors/httpvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/httpvalidationerror.js +12 -4
- package/dist/commonjs/models/errors/httpvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/operations/aaveavgrate.js +2 -2
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +0 -5
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js +0 -2
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +0 -5
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js +0 -2
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +0 -5
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +0 -2
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +0 -5
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js +0 -2
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +0 -5
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +0 -2
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/genericens.d.ts +0 -5
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js +0 -2
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +0 -5
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js +0 -2
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts +0 -5
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.js +0 -2
- package/dist/commonjs/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +0 -5
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js +0 -2
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarket.d.ts +0 -5
- package/dist/commonjs/models/operations/morphomarket.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarket.js +0 -2
- package/dist/commonjs/models/operations/morphomarket.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +0 -5
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js +0 -2
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +0 -5
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +0 -2
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphouserposition.d.ts +0 -5
- package/dist/commonjs/models/operations/morphouserposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphouserposition.js +0 -2
- package/dist/commonjs/models/operations/morphouserposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovault.d.ts +0 -5
- package/dist/commonjs/models/operations/morphovault.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovault.js +0 -2
- package/dist/commonjs/models/operations/morphovault.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +0 -5
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js +0 -2
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +0 -5
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +0 -2
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.d.ts +0 -5
- package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.js +0 -2
- package/dist/commonjs/models/operations/pendlemarket.js.map +1 -1
- package/dist/commonjs/models/operations/pendlemarkets.d.ts +0 -5
- package/dist/commonjs/models/operations/pendlemarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendlemarkets.js +0 -2
- package/dist/commonjs/models/operations/pendlemarkets.js.map +1 -1
- package/dist/commonjs/models/operations/pendleposition.d.ts +0 -5
- package/dist/commonjs/models/operations/pendleposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendleposition.js +0 -2
- package/dist/commonjs/models/operations/pendleposition.js.map +1 -1
- package/dist/commonjs/models/operations/pendlepositions.d.ts +0 -5
- package/dist/commonjs/models/operations/pendlepositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendlepositions.js +0 -2
- package/dist/commonjs/models/operations/pendlepositions.js.map +1 -1
- package/dist/commonjs/models/operations/skyposition.d.ts +0 -5
- package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/skyposition.js +0 -2
- package/dist/commonjs/models/operations/skyposition.js.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.d.ts +0 -5
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js +0 -2
- package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.d.ts +0 -5
- package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.js +0 -2
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +0 -5
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js +0 -2
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +0 -5
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js +0 -2
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +0 -5
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js +0 -2
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +0 -5
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js +0 -2
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +0 -5
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js +0 -2
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +27 -6
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +35 -8
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/commonjs/sdk/universal.d.ts +3 -2
- package/dist/commonjs/sdk/universal.d.ts.map +1 -1
- package/dist/commonjs/sdk/universal.js +3 -2
- package/dist/commonjs/sdk/universal.js.map +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.d.ts +3 -2
- package/dist/esm/funcs/aaveV3AvgRate.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.js +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.js.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.d.ts +3 -2
- package/dist/esm/funcs/aaveV3Borrow.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.js +1 -1
- package/dist/esm/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts +3 -2
- package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js +1 -2
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js.map +1 -1
- package/dist/esm/funcs/aaveV3LiquidityChange.d.ts +3 -2
- package/dist/esm/funcs/aaveV3LiquidityChange.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3LiquidityChange.js +1 -2
- package/dist/esm/funcs/aaveV3LiquidityChange.js.map +1 -1
- package/dist/esm/funcs/aaveV3Rate.d.ts +3 -2
- package/dist/esm/funcs/aaveV3Rate.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Rate.js +1 -1
- package/dist/esm/funcs/aaveV3Rate.js.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.d.ts +3 -2
- package/dist/esm/funcs/aaveV3Repay.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.js +1 -1
- package/dist/esm/funcs/aaveV3Repay.js.map +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts +3 -2
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.js +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.js.map +1 -1
- package/dist/esm/funcs/aaveV3StdRate.d.ts +3 -2
- package/dist/esm/funcs/aaveV3StdRate.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3StdRate.js +1 -1
- package/dist/esm/funcs/aaveV3StdRate.js.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.d.ts +3 -2
- package/dist/esm/funcs/aaveV3Supply.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.js +1 -1
- package/dist/esm/funcs/aaveV3Supply.js.map +1 -1
- package/dist/esm/funcs/aaveV3TokenPrice.d.ts +3 -2
- package/dist/esm/funcs/aaveV3TokenPrice.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3TokenPrice.js +1 -1
- package/dist/esm/funcs/aaveV3TokenPrice.js.map +1 -1
- package/dist/esm/funcs/aaveV3UserPositionPerToken.d.ts +3 -2
- package/dist/esm/funcs/aaveV3UserPositionPerToken.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3UserPositionPerToken.js +1 -1
- package/dist/esm/funcs/aaveV3UserPositionPerToken.js.map +1 -1
- package/dist/esm/funcs/aaveV3UserPositionSummary.d.ts +3 -2
- package/dist/esm/funcs/aaveV3UserPositionSummary.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3UserPositionSummary.js +1 -1
- package/dist/esm/funcs/aaveV3UserPositionSummary.js.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.d.ts +3 -2
- package/dist/esm/funcs/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.js +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +1 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js +1 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +3 -2
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/morphoAllowance.d.ts +3 -2
- package/dist/esm/funcs/morphoAllowance.d.ts.map +1 -1
- package/dist/esm/funcs/morphoAllowance.js +1 -1
- package/dist/esm/funcs/morphoAllowance.js.map +1 -1
- package/dist/esm/funcs/morphoBorrow.d.ts +3 -2
- package/dist/esm/funcs/morphoBorrow.d.ts.map +1 -1
- package/dist/esm/funcs/morphoBorrow.js +1 -1
- package/dist/esm/funcs/morphoBorrow.js.map +1 -1
- package/dist/esm/funcs/morphoDeposit.d.ts +3 -2
- package/dist/esm/funcs/morphoDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/morphoDeposit.js +1 -1
- package/dist/esm/funcs/morphoDeposit.js.map +1 -1
- package/dist/esm/funcs/morphoMarket.d.ts +3 -2
- package/dist/esm/funcs/morphoMarket.d.ts.map +1 -1
- package/dist/esm/funcs/morphoMarket.js +1 -2
- package/dist/esm/funcs/morphoMarket.js.map +1 -1
- package/dist/esm/funcs/morphoMarketPosition.d.ts +3 -2
- package/dist/esm/funcs/morphoMarketPosition.d.ts.map +1 -1
- package/dist/esm/funcs/morphoMarketPosition.js +1 -2
- package/dist/esm/funcs/morphoMarketPosition.js.map +1 -1
- package/dist/esm/funcs/morphoMarkets.d.ts +3 -2
- package/dist/esm/funcs/morphoMarkets.d.ts.map +1 -1
- package/dist/esm/funcs/morphoMarkets.js +1 -2
- package/dist/esm/funcs/morphoMarkets.js.map +1 -1
- package/dist/esm/funcs/morphoRepay.d.ts +3 -2
- package/dist/esm/funcs/morphoRepay.d.ts.map +1 -1
- package/dist/esm/funcs/morphoRepay.js +1 -1
- package/dist/esm/funcs/morphoRepay.js.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.d.ts +3 -2
- package/dist/esm/funcs/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.js +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/esm/funcs/morphoUserPosition.d.ts +3 -2
- package/dist/esm/funcs/morphoUserPosition.d.ts.map +1 -1
- package/dist/esm/funcs/morphoUserPosition.js +1 -2
- package/dist/esm/funcs/morphoUserPosition.js.map +1 -1
- package/dist/esm/funcs/morphoVault.d.ts +3 -2
- package/dist/esm/funcs/morphoVault.d.ts.map +1 -1
- package/dist/esm/funcs/morphoVault.js +1 -2
- package/dist/esm/funcs/morphoVault.js.map +1 -1
- package/dist/esm/funcs/morphoVaultPosition.d.ts +3 -2
- package/dist/esm/funcs/morphoVaultPosition.d.ts.map +1 -1
- package/dist/esm/funcs/morphoVaultPosition.js +1 -2
- package/dist/esm/funcs/morphoVaultPosition.js.map +1 -1
- package/dist/esm/funcs/morphoVaults.d.ts +3 -2
- package/dist/esm/funcs/morphoVaults.d.ts.map +1 -1
- package/dist/esm/funcs/morphoVaults.js +1 -2
- package/dist/esm/funcs/morphoVaults.js.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.d.ts +3 -2
- package/dist/esm/funcs/morphoWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.js +1 -1
- package/dist/esm/funcs/morphoWithdraw.js.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.d.ts +3 -2
- package/dist/esm/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.js +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/esm/funcs/pendleAddLiquidity.d.ts +21 -0
- package/dist/esm/funcs/pendleAddLiquidity.d.ts.map +1 -0
- package/dist/esm/funcs/pendleAddLiquidity.js +85 -0
- package/dist/esm/funcs/pendleAddLiquidity.js.map +1 -0
- package/dist/esm/funcs/pendleBuyPt.d.ts +3 -2
- package/dist/esm/funcs/pendleBuyPt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleBuyPt.js +1 -1
- package/dist/esm/funcs/pendleBuyPt.js.map +1 -1
- package/dist/esm/funcs/pendleBuyYt.d.ts +3 -2
- package/dist/esm/funcs/pendleBuyYt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleBuyYt.js +1 -1
- package/dist/esm/funcs/pendleBuyYt.js.map +1 -1
- package/dist/esm/funcs/pendleMarket.d.ts +3 -2
- package/dist/esm/funcs/pendleMarket.d.ts.map +1 -1
- package/dist/esm/funcs/pendleMarket.js +1 -2
- package/dist/esm/funcs/pendleMarket.js.map +1 -1
- package/dist/esm/funcs/pendleMarkets.d.ts +3 -2
- package/dist/esm/funcs/pendleMarkets.d.ts.map +1 -1
- package/dist/esm/funcs/pendleMarkets.js +1 -2
- package/dist/esm/funcs/pendleMarkets.js.map +1 -1
- package/dist/esm/funcs/pendlePosition.d.ts +3 -2
- package/dist/esm/funcs/pendlePosition.d.ts.map +1 -1
- package/dist/esm/funcs/pendlePosition.js +1 -2
- package/dist/esm/funcs/pendlePosition.js.map +1 -1
- package/dist/esm/funcs/pendlePositions.d.ts +3 -2
- package/dist/esm/funcs/pendlePositions.d.ts.map +1 -1
- package/dist/esm/funcs/pendlePositions.js +1 -2
- package/dist/esm/funcs/pendlePositions.js.map +1 -1
- package/dist/esm/funcs/pendleRedeemYield.d.ts +3 -2
- package/dist/esm/funcs/pendleRedeemYield.d.ts.map +1 -1
- package/dist/esm/funcs/pendleRedeemYield.js +1 -1
- package/dist/esm/funcs/pendleRedeemYield.js.map +1 -1
- package/dist/esm/funcs/pendleRemoveLiquidity.d.ts +22 -0
- package/dist/esm/funcs/pendleRemoveLiquidity.d.ts.map +1 -0
- package/dist/esm/funcs/pendleRemoveLiquidity.js +86 -0
- package/dist/esm/funcs/pendleRemoveLiquidity.js.map +1 -0
- package/dist/esm/funcs/pendleSellPt.d.ts +3 -2
- package/dist/esm/funcs/pendleSellPt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleSellPt.js +1 -1
- package/dist/esm/funcs/pendleSellPt.js.map +1 -1
- package/dist/esm/funcs/pendleSellYt.d.ts +3 -2
- package/dist/esm/funcs/pendleSellYt.d.ts.map +1 -1
- package/dist/esm/funcs/pendleSellYt.js +1 -1
- package/dist/esm/funcs/pendleSellYt.js.map +1 -1
- package/dist/esm/funcs/skyBuy.d.ts +3 -2
- package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
- package/dist/esm/funcs/skyBuy.js +1 -1
- package/dist/esm/funcs/skyBuy.js.map +1 -1
- package/dist/esm/funcs/skyDeposit.d.ts +3 -2
- package/dist/esm/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/skyDeposit.js +1 -1
- package/dist/esm/funcs/skyDeposit.js.map +1 -1
- package/dist/esm/funcs/skyPosition.d.ts +3 -2
- package/dist/esm/funcs/skyPosition.d.ts.map +1 -1
- package/dist/esm/funcs/skyPosition.js +1 -2
- package/dist/esm/funcs/skyPosition.js.map +1 -1
- package/dist/esm/funcs/skySell.d.ts +3 -2
- package/dist/esm/funcs/skySell.d.ts.map +1 -1
- package/dist/esm/funcs/skySell.js +1 -1
- package/dist/esm/funcs/skySell.js.map +1 -1
- package/dist/esm/funcs/skyWithdraw.d.ts +3 -2
- package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/skyWithdraw.js +1 -1
- package/dist/esm/funcs/skyWithdraw.js.map +1 -1
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.d.ts +3 -2
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.d.ts.map +1 -1
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js +1 -1
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -1
- package/dist/esm/funcs/tokenAddress.d.ts +3 -2
- package/dist/esm/funcs/tokenAddress.d.ts.map +1 -1
- package/dist/esm/funcs/tokenAddress.js +1 -2
- package/dist/esm/funcs/tokenAddress.js.map +1 -1
- package/dist/esm/funcs/tokenBalance.d.ts +3 -2
- package/dist/esm/funcs/tokenBalance.d.ts.map +1 -1
- package/dist/esm/funcs/tokenBalance.js +1 -2
- package/dist/esm/funcs/tokenBalance.js.map +1 -1
- package/dist/esm/funcs/tokenPrice.d.ts +3 -2
- package/dist/esm/funcs/tokenPrice.d.ts.map +1 -1
- package/dist/esm/funcs/tokenPrice.js +1 -1
- package/dist/esm/funcs/tokenPrice.js.map +1 -1
- package/dist/esm/funcs/tokenTransfer.d.ts +3 -2
- package/dist/esm/funcs/tokenTransfer.d.ts.map +1 -1
- package/dist/esm/funcs/tokenTransfer.js +1 -1
- package/dist/esm/funcs/tokenTransfer.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +3 -2
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.js +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +3 -2
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +1 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.js +1 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingExecute.d.ts +3 -2
- package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -1
- package/dist/esm/funcs/transactionBatchingExecute.js +1 -1
- package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.js +1 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.js +1 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/uniswapV3PoolPrice.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3PoolPrice.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3PoolPrice.js +1 -2
- package/dist/esm/funcs/uniswapV3PoolPrice.js.map +1 -1
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.js +1 -2
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.js +1 -2
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts +3 -2
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/universalAllowance.d.ts +3 -2
- package/dist/esm/funcs/universalAllowance.d.ts.map +1 -1
- package/dist/esm/funcs/universalAllowance.js +1 -2
- package/dist/esm/funcs/universalAllowance.js.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.d.ts +6 -4
- package/dist/esm/funcs/universalAllowanceSet.d.ts.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js +4 -3
- package/dist/esm/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/esm/funcs/universalEns.d.ts +3 -2
- package/dist/esm/funcs/universalEns.d.ts.map +1 -1
- package/dist/esm/funcs/universalEns.js +1 -2
- package/dist/esm/funcs/universalEns.js.map +1 -1
- package/dist/esm/funcs/universalPortfolio.d.ts +3 -2
- package/dist/esm/funcs/universalPortfolio.d.ts.map +1 -1
- package/dist/esm/funcs/universalPortfolio.js +1 -2
- package/dist/esm/funcs/universalPortfolio.js.map +1 -1
- package/dist/esm/funcs/universalSupportedTokens.d.ts +3 -2
- package/dist/esm/funcs/universalSupportedTokens.d.ts.map +1 -1
- package/dist/esm/funcs/universalSupportedTokens.js +1 -2
- package/dist/esm/funcs/universalSupportedTokens.js.map +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.d.ts +3 -2
- package/dist/esm/funcs/universalUnwrapWeth.d.ts.map +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.js +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.js.map +1 -1
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts +3 -2
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts.map +1 -1
- package/dist/esm/funcs/universalVisualizePortfolio.js +1 -2
- package/dist/esm/funcs/universalVisualizePortfolio.js.map +1 -1
- package/dist/esm/funcs/universalWrapEth.d.ts +3 -2
- package/dist/esm/funcs/universalWrapEth.d.ts.map +1 -1
- package/dist/esm/funcs/universalWrapEth.js +1 -1
- package/dist/esm/funcs/universalWrapEth.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/matchers.d.ts +3 -10
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +33 -30
- package/dist/esm/lib/matchers.js.map +1 -1
- 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 +6 -2
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.js +31 -0
- package/dist/esm/mcp-server/tools/pendleAddLiquidity.js.map +1 -0
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.js +32 -0
- package/dist/esm/mcp-server/tools/pendleRemoveLiquidity.js.map +1 -0
- package/dist/esm/mcp-server/tools/universalAllowanceSet.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/universalAllowanceSet.js +3 -2
- package/dist/esm/mcp-server/tools/universalAllowanceSet.js.map +1 -1
- package/dist/esm/models/components/aavelooprequest.d.ts +42 -18
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/aavelooprequest.js +40 -21
- package/dist/esm/models/components/aavelooprequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts +63 -0
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendleaddliquidityparams.js +67 -0
- package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +74 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.js +72 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -0
- package/dist/esm/models/components/pendlegetmarketresponse.d.ts +5 -0
- package/dist/esm/models/components/pendlegetmarketresponse.d.ts.map +1 -1
- package/dist/esm/models/components/pendlegetmarketresponse.js +4 -0
- package/dist/esm/models/components/pendlegetmarketresponse.js.map +1 -1
- package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts +5 -0
- package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/pendlegetuserpositionresponse.js +4 -0
- package/dist/esm/models/components/pendlegetuserpositionresponse.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +63 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.js +67 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +74 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.js +72 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -0
- package/dist/esm/models/components/useroperation.d.ts +18 -0
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +10 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/errors/apierror.d.ts +8 -6
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +17 -10
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/models/errors/compassapisdkerror.d.ts +19 -0
- package/dist/esm/models/errors/compassapisdkerror.d.ts.map +1 -0
- package/dist/esm/models/errors/compassapisdkerror.js +16 -0
- package/dist/esm/models/errors/compassapisdkerror.js.map +1 -0
- package/dist/esm/models/errors/httpvalidationerror.d.ts +7 -2
- package/dist/esm/models/errors/httpvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/httpvalidationerror.js +12 -4
- package/dist/esm/models/errors/httpvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/operations/aaveavgrate.js +2 -2
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +0 -5
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.js +0 -2
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +0 -5
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js +0 -2
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +0 -5
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +0 -2
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +0 -5
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js +0 -2
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +0 -5
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +0 -2
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/genericens.d.ts +0 -5
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js +0 -2
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +0 -5
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js +0 -2
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.d.ts +0 -5
- package/dist/esm/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.js +0 -2
- package/dist/esm/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +0 -5
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js +0 -2
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/esm/models/operations/morphomarket.d.ts +0 -5
- package/dist/esm/models/operations/morphomarket.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarket.js +0 -2
- package/dist/esm/models/operations/morphomarket.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +0 -5
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js +0 -2
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +0 -5
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +0 -2
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphouserposition.d.ts +0 -5
- package/dist/esm/models/operations/morphouserposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphouserposition.js +0 -2
- package/dist/esm/models/operations/morphouserposition.js.map +1 -1
- package/dist/esm/models/operations/morphovault.d.ts +0 -5
- package/dist/esm/models/operations/morphovault.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovault.js +0 -2
- package/dist/esm/models/operations/morphovault.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +0 -5
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js +0 -2
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +0 -5
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +0 -2
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/pendlemarket.d.ts +0 -5
- package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -1
- package/dist/esm/models/operations/pendlemarket.js +0 -2
- package/dist/esm/models/operations/pendlemarket.js.map +1 -1
- package/dist/esm/models/operations/pendlemarkets.d.ts +0 -5
- package/dist/esm/models/operations/pendlemarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/pendlemarkets.js +0 -2
- package/dist/esm/models/operations/pendlemarkets.js.map +1 -1
- package/dist/esm/models/operations/pendleposition.d.ts +0 -5
- package/dist/esm/models/operations/pendleposition.d.ts.map +1 -1
- package/dist/esm/models/operations/pendleposition.js +0 -2
- package/dist/esm/models/operations/pendleposition.js.map +1 -1
- package/dist/esm/models/operations/pendlepositions.d.ts +0 -5
- package/dist/esm/models/operations/pendlepositions.d.ts.map +1 -1
- package/dist/esm/models/operations/pendlepositions.js +0 -2
- package/dist/esm/models/operations/pendlepositions.js.map +1 -1
- package/dist/esm/models/operations/skyposition.d.ts +0 -5
- package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
- package/dist/esm/models/operations/skyposition.js +0 -2
- package/dist/esm/models/operations/skyposition.js.map +1 -1
- package/dist/esm/models/operations/tokenaddress.d.ts +0 -5
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js +0 -2
- package/dist/esm/models/operations/tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/tokenbalance.d.ts +0 -5
- package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenbalance.js +0 -2
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +0 -5
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js +0 -2
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +0 -5
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js +0 -2
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +0 -5
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js +0 -2
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +0 -5
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js +0 -2
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +0 -5
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js +0 -2
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +27 -6
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +35 -8
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/dist/esm/sdk/universal.d.ts +3 -2
- package/dist/esm/sdk/universal.d.ts.map +1 -1
- package/dist/esm/sdk/universal.js +3 -2
- package/dist/esm/sdk/universal.js.map +1 -1
- package/docs/sdks/aavev3/README.md +83 -199
- package/docs/sdks/aerodromeslipstream/README.md +39 -79
- package/docs/sdks/morpho/README.md +84 -182
- package/docs/sdks/pendle/README.md +228 -121
- package/docs/sdks/sky/README.md +27 -51
- package/docs/sdks/smartaccount/README.md +5 -9
- package/docs/sdks/token/README.md +24 -56
- package/docs/sdks/transactionbatching/README.md +19 -31
- package/docs/sdks/uniswapv3/README.md +60 -132
- package/docs/sdks/universal/README.md +53 -108
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AvgRate.ts +21 -17
- package/src/funcs/aaveV3Borrow.ts +21 -17
- package/src/funcs/aaveV3HistoricalTransactions.ts +21 -18
- package/src/funcs/aaveV3LiquidityChange.ts +21 -18
- package/src/funcs/aaveV3Rate.ts +21 -17
- package/src/funcs/aaveV3Repay.ts +21 -17
- package/src/funcs/aaveV3ReserveOverview.ts +21 -17
- package/src/funcs/aaveV3StdRate.ts +21 -17
- package/src/funcs/aaveV3Supply.ts +21 -17
- package/src/funcs/aaveV3TokenPrice.ts +21 -17
- package/src/funcs/aaveV3UserPositionPerToken.ts +21 -17
- package/src/funcs/aaveV3UserPositionSummary.ts +21 -17
- package/src/funcs/aaveV3Withdraw.ts +21 -17
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +21 -17
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +21 -17
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts +21 -18
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +21 -17
- package/src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts +21 -18
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +21 -17
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +21 -17
- package/src/funcs/morphoAllowance.ts +21 -17
- package/src/funcs/morphoBorrow.ts +21 -17
- package/src/funcs/morphoDeposit.ts +21 -17
- package/src/funcs/morphoMarket.ts +21 -18
- package/src/funcs/morphoMarketPosition.ts +21 -18
- package/src/funcs/morphoMarkets.ts +21 -18
- package/src/funcs/morphoRepay.ts +21 -17
- package/src/funcs/morphoSupplyCollateral.ts +21 -17
- package/src/funcs/morphoUserPosition.ts +21 -18
- package/src/funcs/morphoVault.ts +21 -18
- package/src/funcs/morphoVaultPosition.ts +21 -18
- package/src/funcs/morphoVaults.ts +21 -18
- package/src/funcs/morphoWithdraw.ts +21 -17
- package/src/funcs/morphoWithdrawCollateral.ts +21 -17
- package/src/funcs/pendleAddLiquidity.ts +172 -0
- package/src/funcs/pendleBuyPt.ts +21 -17
- package/src/funcs/pendleBuyYt.ts +21 -17
- package/src/funcs/pendleMarket.ts +21 -18
- package/src/funcs/pendleMarkets.ts +21 -18
- package/src/funcs/pendlePosition.ts +21 -18
- package/src/funcs/pendlePositions.ts +21 -18
- package/src/funcs/pendleRedeemYield.ts +21 -17
- package/src/funcs/pendleRemoveLiquidity.ts +174 -0
- package/src/funcs/pendleSellPt.ts +21 -17
- package/src/funcs/pendleSellYt.ts +21 -17
- package/src/funcs/skyBuy.ts +21 -17
- package/src/funcs/skyDeposit.ts +21 -17
- package/src/funcs/skyPosition.ts +21 -18
- package/src/funcs/skySell.ts +21 -17
- package/src/funcs/skyWithdraw.ts +21 -17
- package/src/funcs/smartAccountAccountBatchedUserOperations.ts +21 -17
- package/src/funcs/tokenAddress.ts +21 -18
- package/src/funcs/tokenBalance.ts +21 -18
- package/src/funcs/tokenPrice.ts +21 -17
- package/src/funcs/tokenTransfer.ts +21 -17
- package/src/funcs/transactionBatchingAaveLoop.ts +21 -17
- package/src/funcs/transactionBatchingAuthorization.ts +21 -17
- package/src/funcs/transactionBatchingExecute.ts +21 -17
- package/src/funcs/uniswapV3LiquidityProvisionInRange.ts +21 -18
- package/src/funcs/uniswapV3LiquidityProvisionIncrease.ts +21 -17
- package/src/funcs/uniswapV3LiquidityProvisionMint.ts +21 -17
- package/src/funcs/uniswapV3LiquidityProvisionPositions.ts +21 -18
- package/src/funcs/uniswapV3LiquidityProvisionWithdraw.ts +21 -17
- package/src/funcs/uniswapV3PoolPrice.ts +21 -18
- package/src/funcs/uniswapV3QuoteBuyExactly.ts +21 -18
- package/src/funcs/uniswapV3QuoteSellExactly.ts +21 -18
- package/src/funcs/uniswapV3SwapBuyExactly.ts +21 -17
- package/src/funcs/uniswapV3SwapSellExactly.ts +21 -17
- package/src/funcs/universalAllowance.ts +21 -18
- package/src/funcs/universalAllowanceSet.ts +24 -19
- package/src/funcs/universalEns.ts +21 -18
- package/src/funcs/universalPortfolio.ts +21 -18
- package/src/funcs/universalSupportedTokens.ts +21 -18
- package/src/funcs/universalUnwrapWeth.ts +21 -17
- package/src/funcs/universalVisualizePortfolio.ts +21 -18
- package/src/funcs/universalWrapEth.ts +21 -17
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +44 -41
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +6 -2
- package/src/mcp-server/tools/pendleAddLiquidity.ts +40 -0
- package/src/mcp-server/tools/pendleRemoveLiquidity.ts +41 -0
- package/src/mcp-server/tools/universalAllowanceSet.ts +3 -2
- package/src/models/components/aavelooprequest.ts +81 -34
- package/src/models/components/index.ts +4 -0
- package/src/models/components/pendleaddliquidityparams.ts +150 -0
- package/src/models/components/pendleaddliquidityrequest.ts +165 -0
- package/src/models/components/pendlegetmarketresponse.ts +9 -0
- package/src/models/components/pendlegetuserpositionresponse.ts +9 -0
- package/src/models/components/pendleremoveliquidityparams.ts +153 -0
- package/src/models/components/pendleremoveliquidityrequest.ts +169 -0
- package/src/models/components/useroperation.ts +68 -0
- package/src/models/errors/apierror.ts +23 -16
- package/src/models/errors/compassapisdkerror.ts +35 -0
- package/src/models/errors/httpvalidationerror.ts +15 -5
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/operations/aaveavgrate.ts +2 -2
- package/src/models/operations/aavehistoricaltransactions.ts +0 -7
- package/src/models/operations/aaveliquiditychange.ts +0 -7
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +0 -7
- package/src/models/operations/aerodromeslipstreampoolprice.ts +0 -7
- package/src/models/operations/genericallowance.ts +0 -7
- package/src/models/operations/genericens.ts +0 -7
- package/src/models/operations/genericportfolio.ts +0 -7
- package/src/models/operations/genericsupportedtokens.ts +0 -7
- package/src/models/operations/genericvisualizeportfolio.ts +0 -7
- package/src/models/operations/morphomarket.ts +0 -7
- package/src/models/operations/morphomarketposition.ts +0 -7
- package/src/models/operations/morphomarkets.ts +0 -7
- package/src/models/operations/morphouserposition.ts +0 -7
- package/src/models/operations/morphovault.ts +0 -7
- package/src/models/operations/morphovaultposition.ts +0 -7
- package/src/models/operations/morphovaults.ts +0 -7
- package/src/models/operations/pendlemarket.ts +0 -7
- package/src/models/operations/pendlemarkets.ts +0 -7
- package/src/models/operations/pendleposition.ts +0 -7
- package/src/models/operations/pendlepositions.ts +0 -7
- package/src/models/operations/skyposition.ts +0 -7
- package/src/models/operations/tokenaddress.ts +0 -7
- package/src/models/operations/tokenbalance.ts +0 -7
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +0 -7
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +0 -7
- package/src/models/operations/uniswappoolprice.ts +0 -7
- package/src/models/operations/uniswapquotebuyexactly.ts +0 -7
- package/src/models/operations/uniswapquotesellexactly.ts +0 -7
- package/src/sdk/pendle.ts +55 -12
- package/src/sdk/universal.ts +3 -2
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "0.0.1",
|
|
34208
|
-
sdkVersion: "0.5.
|
|
34209
|
-
genVersion: "2.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34208
|
+
sdkVersion: "0.5.9",
|
|
34209
|
+
genVersion: "2.623.0",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.5.9 2.623.0 0.0.1 @compass-labs/api-sdk"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -35126,24 +35126,47 @@ var init_tools = __esm(() => {
|
|
|
35126
35126
|
init_shared();
|
|
35127
35127
|
});
|
|
35128
35128
|
|
|
35129
|
+
// src/models/errors/compassapisdkerror.ts
|
|
35130
|
+
var CompassAPISDKError;
|
|
35131
|
+
var init_compassapisdkerror = __esm(() => {
|
|
35132
|
+
CompassAPISDKError = class CompassAPISDKError extends Error {
|
|
35133
|
+
statusCode;
|
|
35134
|
+
body;
|
|
35135
|
+
headers;
|
|
35136
|
+
contentType;
|
|
35137
|
+
rawResponse;
|
|
35138
|
+
constructor(message, httpMeta) {
|
|
35139
|
+
super(message);
|
|
35140
|
+
this.statusCode = httpMeta.response.status;
|
|
35141
|
+
this.body = httpMeta.body;
|
|
35142
|
+
this.headers = httpMeta.response.headers;
|
|
35143
|
+
this.contentType = httpMeta.response.headers.get("content-type") || "";
|
|
35144
|
+
this.rawResponse = httpMeta.response;
|
|
35145
|
+
this.name = "CompassAPISDKError";
|
|
35146
|
+
}
|
|
35147
|
+
};
|
|
35148
|
+
});
|
|
35149
|
+
|
|
35129
35150
|
// src/models/errors/apierror.ts
|
|
35130
35151
|
var APIError;
|
|
35131
35152
|
var init_apierror = __esm(() => {
|
|
35132
|
-
|
|
35133
|
-
|
|
35134
|
-
|
|
35135
|
-
|
|
35136
|
-
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
const contentType2 =
|
|
35140
|
-
|
|
35141
|
-
${
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
|
|
35146
|
-
|
|
35153
|
+
init_compassapisdkerror();
|
|
35154
|
+
APIError = class APIError extends CompassAPISDKError {
|
|
35155
|
+
constructor(message, httpMeta) {
|
|
35156
|
+
if (message) {
|
|
35157
|
+
message += `: `;
|
|
35158
|
+
}
|
|
35159
|
+
message += `Status ${httpMeta.response.status}`;
|
|
35160
|
+
const contentType2 = httpMeta.response.headers.get("content-type") || `""`;
|
|
35161
|
+
if (contentType2 !== "application/json") {
|
|
35162
|
+
message += ` Content-Type ${contentType2.includes(" ") ? `"${contentType2}"` : contentType2}`;
|
|
35163
|
+
}
|
|
35164
|
+
const body = httpMeta.body || `""`;
|
|
35165
|
+
message += body.length > 100 ? `
|
|
35166
|
+
` : " ";
|
|
35167
|
+
message += `Body ${body}`;
|
|
35168
|
+
message = message.trim();
|
|
35169
|
+
super(message, httpMeta);
|
|
35147
35170
|
this.name = "APIError";
|
|
35148
35171
|
}
|
|
35149
35172
|
};
|
|
@@ -35207,6 +35230,19 @@ var init_sdkvalidationerror = __esm(() => {
|
|
|
35207
35230
|
SDKValidationError = class SDKValidationError extends Error {
|
|
35208
35231
|
rawValue;
|
|
35209
35232
|
rawMessage;
|
|
35233
|
+
static [Symbol.hasInstance](instance) {
|
|
35234
|
+
if (!(instance instanceof Error))
|
|
35235
|
+
return false;
|
|
35236
|
+
if (!("rawValue" in instance))
|
|
35237
|
+
return false;
|
|
35238
|
+
if (!("rawMessage" in instance))
|
|
35239
|
+
return false;
|
|
35240
|
+
if (!("pretty" in instance))
|
|
35241
|
+
return false;
|
|
35242
|
+
if (typeof instance.pretty !== "function")
|
|
35243
|
+
return false;
|
|
35244
|
+
return true;
|
|
35245
|
+
}
|
|
35210
35246
|
constructor(message, cause, rawValue) {
|
|
35211
35247
|
super(`${message}: ${cause}`);
|
|
35212
35248
|
this.name = "SDKValidationError";
|
|
@@ -35225,16 +35261,31 @@ ${formatZodError(this.cause)}`;
|
|
|
35225
35261
|
};
|
|
35226
35262
|
});
|
|
35227
35263
|
|
|
35228
|
-
// src/
|
|
35229
|
-
|
|
35230
|
-
|
|
35231
|
-
|
|
35232
|
-
|
|
35233
|
-
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35234
|
-
}
|
|
35235
|
-
}
|
|
35236
|
-
var init_schemas = __esm(() => {
|
|
35264
|
+
// src/models/errors/responsevalidationerror.ts
|
|
35265
|
+
var ResponseValidationError;
|
|
35266
|
+
var init_responsevalidationerror = __esm(() => {
|
|
35267
|
+
init_esm();
|
|
35268
|
+
init_compassapisdkerror();
|
|
35237
35269
|
init_sdkvalidationerror();
|
|
35270
|
+
ResponseValidationError = class ResponseValidationError extends CompassAPISDKError {
|
|
35271
|
+
rawValue;
|
|
35272
|
+
rawMessage;
|
|
35273
|
+
constructor(message, extra) {
|
|
35274
|
+
super(message, extra);
|
|
35275
|
+
this.name = "ResponseValidationError";
|
|
35276
|
+
this.cause = extra.cause;
|
|
35277
|
+
this.rawValue = extra.rawValue;
|
|
35278
|
+
this.rawMessage = extra.rawMessage;
|
|
35279
|
+
}
|
|
35280
|
+
pretty() {
|
|
35281
|
+
if (this.cause instanceof ZodError) {
|
|
35282
|
+
return `${this.rawMessage}
|
|
35283
|
+
${formatZodError(this.cause)}`;
|
|
35284
|
+
} else {
|
|
35285
|
+
return this.toString();
|
|
35286
|
+
}
|
|
35287
|
+
}
|
|
35288
|
+
};
|
|
35238
35289
|
});
|
|
35239
35290
|
|
|
35240
35291
|
// src/lib/matchers.ts
|
|
@@ -35248,7 +35299,7 @@ function fail(codes) {
|
|
|
35248
35299
|
return { enc: "fail", codes };
|
|
35249
35300
|
}
|
|
35250
35301
|
function match(...matchers) {
|
|
35251
|
-
return async function matchFunc(response, options) {
|
|
35302
|
+
return async function matchFunc(response, request, options) {
|
|
35252
35303
|
let raw;
|
|
35253
35304
|
let matcher;
|
|
35254
35305
|
for (const match2 of matchers) {
|
|
@@ -35263,16 +35314,21 @@ function match(...matchers) {
|
|
|
35263
35314
|
}
|
|
35264
35315
|
}
|
|
35265
35316
|
if (!matcher) {
|
|
35266
|
-
const responseBody = await response.text();
|
|
35267
35317
|
return [{
|
|
35268
35318
|
ok: false,
|
|
35269
|
-
error: new APIError("Unexpected
|
|
35270
|
-
|
|
35319
|
+
error: new APIError("Unexpected Status or Content-Type", {
|
|
35320
|
+
response,
|
|
35321
|
+
request,
|
|
35322
|
+
body: await response.text().catch(() => "")
|
|
35323
|
+
})
|
|
35324
|
+
}, raw];
|
|
35271
35325
|
}
|
|
35272
35326
|
const encoding = matcher.enc;
|
|
35327
|
+
let body = "";
|
|
35273
35328
|
switch (encoding) {
|
|
35274
35329
|
case "json":
|
|
35275
|
-
|
|
35330
|
+
body = await response.text();
|
|
35331
|
+
raw = JSON.parse(body);
|
|
35276
35332
|
break;
|
|
35277
35333
|
case "jsonl":
|
|
35278
35334
|
raw = response.body;
|
|
@@ -35284,16 +35340,19 @@ function match(...matchers) {
|
|
|
35284
35340
|
raw = response.body;
|
|
35285
35341
|
break;
|
|
35286
35342
|
case "text":
|
|
35287
|
-
|
|
35343
|
+
body = await response.text();
|
|
35344
|
+
raw = body;
|
|
35288
35345
|
break;
|
|
35289
35346
|
case "sse":
|
|
35290
35347
|
raw = response.body;
|
|
35291
35348
|
break;
|
|
35292
35349
|
case "nil":
|
|
35293
|
-
|
|
35350
|
+
body = await response.text();
|
|
35351
|
+
raw = undefined;
|
|
35294
35352
|
break;
|
|
35295
35353
|
case "fail":
|
|
35296
|
-
|
|
35354
|
+
body = await response.text();
|
|
35355
|
+
raw = body;
|
|
35297
35356
|
break;
|
|
35298
35357
|
default:
|
|
35299
35358
|
throw new Error(`Unsupported response type: ${encoding}`);
|
|
@@ -35301,7 +35360,7 @@ function match(...matchers) {
|
|
|
35301
35360
|
if (matcher.enc === "fail") {
|
|
35302
35361
|
return [{
|
|
35303
35362
|
ok: false,
|
|
35304
|
-
error: new APIError("API error occurred", response,
|
|
35363
|
+
error: new APIError("API error occurred", { request, response, body })
|
|
35305
35364
|
}, raw];
|
|
35306
35365
|
}
|
|
35307
35366
|
const resultKey = matcher.key || options?.resultKey;
|
|
@@ -35310,7 +35369,10 @@ function match(...matchers) {
|
|
|
35310
35369
|
data = {
|
|
35311
35370
|
...options?.extraFields,
|
|
35312
35371
|
...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
|
|
35313
|
-
...isPlainObject(raw) ? raw : null
|
|
35372
|
+
...isPlainObject(raw) ? raw : null,
|
|
35373
|
+
request$: request,
|
|
35374
|
+
response$: response,
|
|
35375
|
+
body$: body
|
|
35314
35376
|
};
|
|
35315
35377
|
} else if (resultKey) {
|
|
35316
35378
|
data = {
|
|
@@ -35328,11 +35390,11 @@ function match(...matchers) {
|
|
|
35328
35390
|
data = raw;
|
|
35329
35391
|
}
|
|
35330
35392
|
if ("err" in matcher) {
|
|
35331
|
-
const result =
|
|
35393
|
+
const result = safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body });
|
|
35332
35394
|
return [result.ok ? { ok: false, error: result.value } : result, raw];
|
|
35333
35395
|
} else {
|
|
35334
35396
|
return [
|
|
35335
|
-
|
|
35397
|
+
safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body }),
|
|
35336
35398
|
raw
|
|
35337
35399
|
];
|
|
35338
35400
|
}
|
|
@@ -35345,26 +35407,23 @@ function unpackHeaders(headers) {
|
|
|
35345
35407
|
}
|
|
35346
35408
|
return out;
|
|
35347
35409
|
}
|
|
35348
|
-
|
|
35349
|
-
const reader = res.body?.getReader();
|
|
35350
|
-
if (reader == null) {
|
|
35351
|
-
return;
|
|
35352
|
-
}
|
|
35410
|
+
function safeParseResponse(rawValue, fn, errorMessage, httpMeta) {
|
|
35353
35411
|
try {
|
|
35354
|
-
|
|
35355
|
-
|
|
35356
|
-
|
|
35357
|
-
|
|
35358
|
-
|
|
35359
|
-
|
|
35360
|
-
|
|
35412
|
+
return OK2(fn(rawValue));
|
|
35413
|
+
} catch (err) {
|
|
35414
|
+
return ERR(new ResponseValidationError(errorMessage, {
|
|
35415
|
+
cause: err,
|
|
35416
|
+
rawValue,
|
|
35417
|
+
rawMessage: errorMessage,
|
|
35418
|
+
...httpMeta
|
|
35419
|
+
}));
|
|
35361
35420
|
}
|
|
35362
35421
|
}
|
|
35363
35422
|
var DEFAULT_CONTENT_TYPES, headerValRE;
|
|
35364
35423
|
var init_matchers = __esm(() => {
|
|
35365
35424
|
init_apierror();
|
|
35425
|
+
init_responsevalidationerror();
|
|
35366
35426
|
init_http();
|
|
35367
|
-
init_schemas();
|
|
35368
35427
|
DEFAULT_CONTENT_TYPES = {
|
|
35369
35428
|
jsonl: "application/jsonl",
|
|
35370
35429
|
json: "application/json",
|
|
@@ -35405,6 +35464,18 @@ function compactMap(values) {
|
|
|
35405
35464
|
}
|
|
35406
35465
|
var init_primitives = () => {};
|
|
35407
35466
|
|
|
35467
|
+
// src/lib/schemas.ts
|
|
35468
|
+
function safeParse(rawValue, fn, errorMessage) {
|
|
35469
|
+
try {
|
|
35470
|
+
return OK2(fn(rawValue));
|
|
35471
|
+
} catch (err) {
|
|
35472
|
+
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35473
|
+
}
|
|
35474
|
+
}
|
|
35475
|
+
var init_schemas = __esm(() => {
|
|
35476
|
+
init_sdkvalidationerror();
|
|
35477
|
+
});
|
|
35478
|
+
|
|
35408
35479
|
// src/lib/security.ts
|
|
35409
35480
|
function resolveSecurity(...options) {
|
|
35410
35481
|
const state = {
|
|
@@ -36222,27 +36293,33 @@ var init_signedauthorization = __esm(() => {
|
|
|
36222
36293
|
});
|
|
36223
36294
|
|
|
36224
36295
|
// src/models/components/aavelooprequest.ts
|
|
36225
|
-
var
|
|
36296
|
+
var InitialCollateralAmount$inboundSchema, InitialCollateralAmount$outboundSchema, InitialCollateralAmount$, Multiplier$inboundSchema, Multiplier$outboundSchema, Multiplier$, AaveLoopRequest$inboundSchema, AaveLoopRequest$outboundSchema, AaveLoopRequest$;
|
|
36226
36297
|
var init_aavelooprequest = __esm(() => {
|
|
36227
36298
|
init_esm();
|
|
36228
36299
|
init_primitives();
|
|
36229
36300
|
init_chain();
|
|
36230
36301
|
init_signedauthorization();
|
|
36231
36302
|
init_tokenenum();
|
|
36232
|
-
|
|
36233
|
-
|
|
36234
|
-
((
|
|
36235
|
-
|
|
36236
|
-
|
|
36237
|
-
})(
|
|
36303
|
+
InitialCollateralAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
36304
|
+
InitialCollateralAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
36305
|
+
((InitialCollateralAmount$) => {
|
|
36306
|
+
InitialCollateralAmount$.inboundSchema = InitialCollateralAmount$inboundSchema;
|
|
36307
|
+
InitialCollateralAmount$.outboundSchema = InitialCollateralAmount$outboundSchema;
|
|
36308
|
+
})(InitialCollateralAmount$ ||= {});
|
|
36309
|
+
Multiplier$inboundSchema = unionType([numberType(), stringType()]);
|
|
36310
|
+
Multiplier$outboundSchema = unionType([numberType(), stringType()]);
|
|
36311
|
+
((Multiplier$) => {
|
|
36312
|
+
Multiplier$.inboundSchema = Multiplier$inboundSchema;
|
|
36313
|
+
Multiplier$.outboundSchema = Multiplier$outboundSchema;
|
|
36314
|
+
})(Multiplier$ ||= {});
|
|
36238
36315
|
AaveLoopRequest$inboundSchema = objectType({
|
|
36239
36316
|
chain: Chain$inboundSchema,
|
|
36240
36317
|
sender: stringType(),
|
|
36241
36318
|
signed_authorization: SignedAuthorization$inboundSchema,
|
|
36242
36319
|
collateral_token: TokenEnum$inboundSchema,
|
|
36243
36320
|
borrow_token: TokenEnum$inboundSchema,
|
|
36244
|
-
|
|
36245
|
-
|
|
36321
|
+
initial_collateral_amount: unionType([numberType(), stringType()]),
|
|
36322
|
+
multiplier: unionType([numberType(), stringType()]),
|
|
36246
36323
|
max_slippage_percent: numberType(),
|
|
36247
36324
|
loan_to_value: numberType()
|
|
36248
36325
|
}).transform((v2) => {
|
|
@@ -36250,8 +36327,7 @@ var init_aavelooprequest = __esm(() => {
|
|
|
36250
36327
|
signed_authorization: "signedAuthorization",
|
|
36251
36328
|
collateral_token: "collateralToken",
|
|
36252
36329
|
borrow_token: "borrowToken",
|
|
36253
|
-
|
|
36254
|
-
loop_count: "loopCount",
|
|
36330
|
+
initial_collateral_amount: "initialCollateralAmount",
|
|
36255
36331
|
max_slippage_percent: "maxSlippagePercent",
|
|
36256
36332
|
loan_to_value: "loanToValue"
|
|
36257
36333
|
});
|
|
@@ -36262,8 +36338,8 @@ var init_aavelooprequest = __esm(() => {
|
|
|
36262
36338
|
signedAuthorization: SignedAuthorization$outboundSchema,
|
|
36263
36339
|
collateralToken: TokenEnum$outboundSchema,
|
|
36264
36340
|
borrowToken: TokenEnum$outboundSchema,
|
|
36265
|
-
|
|
36266
|
-
|
|
36341
|
+
initialCollateralAmount: unionType([numberType(), stringType()]),
|
|
36342
|
+
multiplier: unionType([numberType(), stringType()]),
|
|
36267
36343
|
maxSlippagePercent: numberType(),
|
|
36268
36344
|
loanToValue: numberType()
|
|
36269
36345
|
}).transform((v2) => {
|
|
@@ -36271,8 +36347,7 @@ var init_aavelooprequest = __esm(() => {
|
|
|
36271
36347
|
signedAuthorization: "signed_authorization",
|
|
36272
36348
|
collateralToken: "collateral_token",
|
|
36273
36349
|
borrowToken: "borrow_token",
|
|
36274
|
-
|
|
36275
|
-
loopCount: "loop_count",
|
|
36350
|
+
initialCollateralAmount: "initial_collateral_amount",
|
|
36276
36351
|
maxSlippagePercent: "max_slippage_percent",
|
|
36277
36352
|
loanToValue: "loan_to_value"
|
|
36278
36353
|
});
|
|
@@ -37923,6 +37998,43 @@ var init_morphowithdrawparams = __esm(() => {
|
|
|
37923
37998
|
})(MorphoWithdrawParams$ ||= {});
|
|
37924
37999
|
});
|
|
37925
38000
|
|
|
38001
|
+
// src/models/components/pendleaddliquidityparams.ts
|
|
38002
|
+
var PendleAddLiquidityParamsAmount$inboundSchema, PendleAddLiquidityParamsAmount$outboundSchema, PendleAddLiquidityParamsAmount$, PendleAddLiquidityParams$inboundSchema, PendleAddLiquidityParams$outboundSchema, PendleAddLiquidityParams$;
|
|
38003
|
+
var init_pendleaddliquidityparams = __esm(() => {
|
|
38004
|
+
init_esm();
|
|
38005
|
+
init_primitives();
|
|
38006
|
+
PendleAddLiquidityParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38007
|
+
PendleAddLiquidityParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38008
|
+
((PendleAddLiquidityParamsAmount$) => {
|
|
38009
|
+
PendleAddLiquidityParamsAmount$.inboundSchema = PendleAddLiquidityParamsAmount$inboundSchema;
|
|
38010
|
+
PendleAddLiquidityParamsAmount$.outboundSchema = PendleAddLiquidityParamsAmount$outboundSchema;
|
|
38011
|
+
})(PendleAddLiquidityParamsAmount$ ||= {});
|
|
38012
|
+
PendleAddLiquidityParams$inboundSchema = objectType({
|
|
38013
|
+
action_type: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
38014
|
+
market_address: stringType(),
|
|
38015
|
+
amount: unionType([numberType(), stringType()])
|
|
38016
|
+
}).transform((v2) => {
|
|
38017
|
+
return remap(v2, {
|
|
38018
|
+
action_type: "actionType",
|
|
38019
|
+
market_address: "marketAddress"
|
|
38020
|
+
});
|
|
38021
|
+
});
|
|
38022
|
+
PendleAddLiquidityParams$outboundSchema = objectType({
|
|
38023
|
+
actionType: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
38024
|
+
marketAddress: stringType(),
|
|
38025
|
+
amount: unionType([numberType(), stringType()])
|
|
38026
|
+
}).transform((v2) => {
|
|
38027
|
+
return remap(v2, {
|
|
38028
|
+
actionType: "action_type",
|
|
38029
|
+
marketAddress: "market_address"
|
|
38030
|
+
});
|
|
38031
|
+
});
|
|
38032
|
+
((PendleAddLiquidityParams$) => {
|
|
38033
|
+
PendleAddLiquidityParams$.inboundSchema = PendleAddLiquidityParams$inboundSchema;
|
|
38034
|
+
PendleAddLiquidityParams$.outboundSchema = PendleAddLiquidityParams$outboundSchema;
|
|
38035
|
+
})(PendleAddLiquidityParams$ ||= {});
|
|
38036
|
+
});
|
|
38037
|
+
|
|
37926
38038
|
// src/models/components/pendlebuyptparams.ts
|
|
37927
38039
|
var PendleBuyPtParamsAmount$inboundSchema, PendleBuyPtParamsAmount$outboundSchema, PendleBuyPtParamsAmount$, PendleBuyPtParams$inboundSchema, PendleBuyPtParams$outboundSchema, PendleBuyPtParams$;
|
|
37928
38040
|
var init_pendlebuyptparams = __esm(() => {
|
|
@@ -38026,6 +38138,43 @@ var init_pendleredeemyieldparams = __esm(() => {
|
|
|
38026
38138
|
})(PendleRedeemYieldParams$ ||= {});
|
|
38027
38139
|
});
|
|
38028
38140
|
|
|
38141
|
+
// src/models/components/pendleremoveliquidityparams.ts
|
|
38142
|
+
var PendleRemoveLiquidityParamsAmount$inboundSchema, PendleRemoveLiquidityParamsAmount$outboundSchema, PendleRemoveLiquidityParamsAmount$, PendleRemoveLiquidityParams$inboundSchema, PendleRemoveLiquidityParams$outboundSchema, PendleRemoveLiquidityParams$;
|
|
38143
|
+
var init_pendleremoveliquidityparams = __esm(() => {
|
|
38144
|
+
init_esm();
|
|
38145
|
+
init_primitives();
|
|
38146
|
+
PendleRemoveLiquidityParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38147
|
+
PendleRemoveLiquidityParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38148
|
+
((PendleRemoveLiquidityParamsAmount$) => {
|
|
38149
|
+
PendleRemoveLiquidityParamsAmount$.inboundSchema = PendleRemoveLiquidityParamsAmount$inboundSchema;
|
|
38150
|
+
PendleRemoveLiquidityParamsAmount$.outboundSchema = PendleRemoveLiquidityParamsAmount$outboundSchema;
|
|
38151
|
+
})(PendleRemoveLiquidityParamsAmount$ ||= {});
|
|
38152
|
+
PendleRemoveLiquidityParams$inboundSchema = objectType({
|
|
38153
|
+
action_type: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
38154
|
+
market_address: stringType(),
|
|
38155
|
+
amount: unionType([numberType(), stringType()])
|
|
38156
|
+
}).transform((v2) => {
|
|
38157
|
+
return remap(v2, {
|
|
38158
|
+
action_type: "actionType",
|
|
38159
|
+
market_address: "marketAddress"
|
|
38160
|
+
});
|
|
38161
|
+
});
|
|
38162
|
+
PendleRemoveLiquidityParams$outboundSchema = objectType({
|
|
38163
|
+
actionType: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
38164
|
+
marketAddress: stringType(),
|
|
38165
|
+
amount: unionType([numberType(), stringType()])
|
|
38166
|
+
}).transform((v2) => {
|
|
38167
|
+
return remap(v2, {
|
|
38168
|
+
actionType: "action_type",
|
|
38169
|
+
marketAddress: "market_address"
|
|
38170
|
+
});
|
|
38171
|
+
});
|
|
38172
|
+
((PendleRemoveLiquidityParams$) => {
|
|
38173
|
+
PendleRemoveLiquidityParams$.inboundSchema = PendleRemoveLiquidityParams$inboundSchema;
|
|
38174
|
+
PendleRemoveLiquidityParams$.outboundSchema = PendleRemoveLiquidityParams$outboundSchema;
|
|
38175
|
+
})(PendleRemoveLiquidityParams$ ||= {});
|
|
38176
|
+
});
|
|
38177
|
+
|
|
38029
38178
|
// src/models/components/pendlesellptparams.ts
|
|
38030
38179
|
var PendleSellPtParamsAmount$inboundSchema, PendleSellPtParamsAmount$outboundSchema, PendleSellPtParamsAmount$, PendleSellPtParams$inboundSchema, PendleSellPtParams$outboundSchema, PendleSellPtParams$;
|
|
38031
38180
|
var init_pendlesellptparams = __esm(() => {
|
|
@@ -38698,9 +38847,11 @@ var init_useroperation = __esm(() => {
|
|
|
38698
38847
|
init_morphosupplycollateralparams();
|
|
38699
38848
|
init_morphowithdrawcollateralparams();
|
|
38700
38849
|
init_morphowithdrawparams();
|
|
38850
|
+
init_pendleaddliquidityparams();
|
|
38701
38851
|
init_pendlebuyptparams();
|
|
38702
38852
|
init_pendlebuyytparams();
|
|
38703
38853
|
init_pendleredeemyieldparams();
|
|
38854
|
+
init_pendleremoveliquidityparams();
|
|
38704
38855
|
init_pendlesellptparams();
|
|
38705
38856
|
init_pendlesellytparams();
|
|
38706
38857
|
init_skybuyparams();
|
|
@@ -38727,12 +38878,14 @@ var init_useroperation = __esm(() => {
|
|
|
38727
38878
|
action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38728
38879
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38729
38880
|
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38881
|
+
PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38730
38882
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38731
38883
|
actionType: v2.action_type
|
|
38732
38884
|
}))),
|
|
38733
38885
|
PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38734
38886
|
actionType: v2.action_type
|
|
38735
38887
|
}))),
|
|
38888
|
+
PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38736
38889
|
PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38737
38890
|
actionType: v2.action_type
|
|
38738
38891
|
}))),
|
|
@@ -38805,12 +38958,14 @@ var init_useroperation = __esm(() => {
|
|
|
38805
38958
|
actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38806
38959
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38807
38960
|
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38961
|
+
PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38808
38962
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38809
38963
|
action_type: v2.actionType
|
|
38810
38964
|
}))),
|
|
38811
38965
|
PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38812
38966
|
action_type: v2.actionType
|
|
38813
38967
|
}))),
|
|
38968
|
+
PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38814
38969
|
PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38815
38970
|
action_type: v2.actionType
|
|
38816
38971
|
}))),
|
|
@@ -38890,12 +39045,14 @@ var init_useroperation = __esm(() => {
|
|
|
38890
39045
|
action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38891
39046
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38892
39047
|
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39048
|
+
PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38893
39049
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38894
39050
|
actionType: v2.action_type
|
|
38895
39051
|
}))),
|
|
38896
39052
|
PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38897
39053
|
actionType: v2.action_type
|
|
38898
39054
|
}))),
|
|
39055
|
+
PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38899
39056
|
PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38900
39057
|
actionType: v2.action_type
|
|
38901
39058
|
}))),
|
|
@@ -38970,12 +39127,14 @@ var init_useroperation = __esm(() => {
|
|
|
38970
39127
|
actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38971
39128
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38972
39129
|
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39130
|
+
PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38973
39131
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38974
39132
|
action_type: v2.actionType
|
|
38975
39133
|
}))),
|
|
38976
39134
|
PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38977
39135
|
action_type: v2.actionType
|
|
38978
39136
|
}))),
|
|
39137
|
+
PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38979
39138
|
PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38980
39139
|
action_type: v2.actionType
|
|
38981
39140
|
}))),
|
|
@@ -40697,6 +40856,48 @@ var init_openposition = __esm(() => {
|
|
|
40697
40856
|
})(OpenPosition$ ||= {});
|
|
40698
40857
|
});
|
|
40699
40858
|
|
|
40859
|
+
// src/models/components/pendleaddliquidityrequest.ts
|
|
40860
|
+
var PendleAddLiquidityRequestAmount$inboundSchema, PendleAddLiquidityRequestAmount$outboundSchema, PendleAddLiquidityRequestAmount$, PendleAddLiquidityRequest$inboundSchema, PendleAddLiquidityRequest$outboundSchema, PendleAddLiquidityRequest$;
|
|
40861
|
+
var init_pendleaddliquidityrequest = __esm(() => {
|
|
40862
|
+
init_esm();
|
|
40863
|
+
init_primitives();
|
|
40864
|
+
init_chain();
|
|
40865
|
+
PendleAddLiquidityRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
40866
|
+
PendleAddLiquidityRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
40867
|
+
((PendleAddLiquidityRequestAmount$) => {
|
|
40868
|
+
PendleAddLiquidityRequestAmount$.inboundSchema = PendleAddLiquidityRequestAmount$inboundSchema;
|
|
40869
|
+
PendleAddLiquidityRequestAmount$.outboundSchema = PendleAddLiquidityRequestAmount$outboundSchema;
|
|
40870
|
+
})(PendleAddLiquidityRequestAmount$ ||= {});
|
|
40871
|
+
PendleAddLiquidityRequest$inboundSchema = objectType({
|
|
40872
|
+
action_type: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
40873
|
+
market_address: stringType(),
|
|
40874
|
+
amount: unionType([numberType(), stringType()]),
|
|
40875
|
+
chain: Chain$inboundSchema,
|
|
40876
|
+
sender: stringType()
|
|
40877
|
+
}).transform((v2) => {
|
|
40878
|
+
return remap(v2, {
|
|
40879
|
+
action_type: "actionType",
|
|
40880
|
+
market_address: "marketAddress"
|
|
40881
|
+
});
|
|
40882
|
+
});
|
|
40883
|
+
PendleAddLiquidityRequest$outboundSchema = objectType({
|
|
40884
|
+
actionType: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
40885
|
+
marketAddress: stringType(),
|
|
40886
|
+
amount: unionType([numberType(), stringType()]),
|
|
40887
|
+
chain: Chain$outboundSchema,
|
|
40888
|
+
sender: stringType()
|
|
40889
|
+
}).transform((v2) => {
|
|
40890
|
+
return remap(v2, {
|
|
40891
|
+
actionType: "action_type",
|
|
40892
|
+
marketAddress: "market_address"
|
|
40893
|
+
});
|
|
40894
|
+
});
|
|
40895
|
+
((PendleAddLiquidityRequest$) => {
|
|
40896
|
+
PendleAddLiquidityRequest$.inboundSchema = PendleAddLiquidityRequest$inboundSchema;
|
|
40897
|
+
PendleAddLiquidityRequest$.outboundSchema = PendleAddLiquidityRequest$outboundSchema;
|
|
40898
|
+
})(PendleAddLiquidityRequest$ ||= {});
|
|
40899
|
+
});
|
|
40900
|
+
|
|
40700
40901
|
// src/models/components/pendlebuyptrequest.ts
|
|
40701
40902
|
var PendleBuyPtRequestAmount$inboundSchema, PendleBuyPtRequestAmount$outboundSchema, PendleBuyPtRequestAmount$, PendleBuyPtRequest$inboundSchema, PendleBuyPtRequest$outboundSchema, PendleBuyPtRequest$;
|
|
40702
40903
|
var init_pendlebuyptrequest = __esm(() => {
|
|
@@ -40790,6 +40991,7 @@ var init_pendlegetmarketresponse = __esm(() => {
|
|
|
40790
40991
|
PendleGetMarketResponse$inboundSchema = objectType({
|
|
40791
40992
|
implied_apy: stringType(),
|
|
40792
40993
|
maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
40994
|
+
market_address: stringType(),
|
|
40793
40995
|
underlying_token: Erc20Data$inboundSchema,
|
|
40794
40996
|
sy: Erc20Data$inboundSchema,
|
|
40795
40997
|
pt: Erc20Data$inboundSchema,
|
|
@@ -40798,12 +41000,14 @@ var init_pendlegetmarketresponse = __esm(() => {
|
|
|
40798
41000
|
return remap(v2, {
|
|
40799
41001
|
implied_apy: "impliedApy",
|
|
40800
41002
|
maturity_date: "maturityDate",
|
|
41003
|
+
market_address: "marketAddress",
|
|
40801
41004
|
underlying_token: "underlyingToken"
|
|
40802
41005
|
});
|
|
40803
41006
|
});
|
|
40804
41007
|
PendleGetMarketResponse$outboundSchema = objectType({
|
|
40805
41008
|
impliedApy: stringType(),
|
|
40806
41009
|
maturityDate: dateType().transform((v2) => v2.toISOString()),
|
|
41010
|
+
marketAddress: stringType(),
|
|
40807
41011
|
underlyingToken: Erc20Data$outboundSchema,
|
|
40808
41012
|
sy: Erc20Data$outboundSchema,
|
|
40809
41013
|
pt: Erc20Data$outboundSchema,
|
|
@@ -40812,6 +41016,7 @@ var init_pendlegetmarketresponse = __esm(() => {
|
|
|
40812
41016
|
return remap(v2, {
|
|
40813
41017
|
impliedApy: "implied_apy",
|
|
40814
41018
|
maturityDate: "maturity_date",
|
|
41019
|
+
marketAddress: "market_address",
|
|
40815
41020
|
underlyingToken: "underlying_token"
|
|
40816
41021
|
});
|
|
40817
41022
|
});
|
|
@@ -40831,6 +41036,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40831
41036
|
sy_balance: stringType(),
|
|
40832
41037
|
pt_balance: stringType(),
|
|
40833
41038
|
yt_balance: stringType(),
|
|
41039
|
+
lp_balance: stringType(),
|
|
40834
41040
|
underlying_token_balance: stringType(),
|
|
40835
41041
|
underlying_token_name: stringType(),
|
|
40836
41042
|
underlying_token_symbol: stringType(),
|
|
@@ -40841,6 +41047,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40841
41047
|
sy_balance: "syBalance",
|
|
40842
41048
|
pt_balance: "ptBalance",
|
|
40843
41049
|
yt_balance: "ytBalance",
|
|
41050
|
+
lp_balance: "lpBalance",
|
|
40844
41051
|
underlying_token_balance: "underlyingTokenBalance",
|
|
40845
41052
|
underlying_token_name: "underlyingTokenName",
|
|
40846
41053
|
underlying_token_symbol: "underlyingTokenSymbol",
|
|
@@ -40852,6 +41059,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40852
41059
|
syBalance: stringType(),
|
|
40853
41060
|
ptBalance: stringType(),
|
|
40854
41061
|
ytBalance: stringType(),
|
|
41062
|
+
lpBalance: stringType(),
|
|
40855
41063
|
underlyingTokenBalance: stringType(),
|
|
40856
41064
|
underlyingTokenName: stringType(),
|
|
40857
41065
|
underlyingTokenSymbol: stringType(),
|
|
@@ -40862,6 +41070,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40862
41070
|
syBalance: "sy_balance",
|
|
40863
41071
|
ptBalance: "pt_balance",
|
|
40864
41072
|
ytBalance: "yt_balance",
|
|
41073
|
+
lpBalance: "lp_balance",
|
|
40865
41074
|
underlyingTokenBalance: "underlying_token_balance",
|
|
40866
41075
|
underlyingTokenName: "underlying_token_name",
|
|
40867
41076
|
underlyingTokenSymbol: "underlying_token_symbol",
|
|
@@ -41029,6 +41238,48 @@ var init_pendleredeemyieldrequest = __esm(() => {
|
|
|
41029
41238
|
})(PendleRedeemYieldRequest$ ||= {});
|
|
41030
41239
|
});
|
|
41031
41240
|
|
|
41241
|
+
// src/models/components/pendleremoveliquidityrequest.ts
|
|
41242
|
+
var PendleRemoveLiquidityRequestAmount$inboundSchema, PendleRemoveLiquidityRequestAmount$outboundSchema, PendleRemoveLiquidityRequestAmount$, PendleRemoveLiquidityRequest$inboundSchema, PendleRemoveLiquidityRequest$outboundSchema, PendleRemoveLiquidityRequest$;
|
|
41243
|
+
var init_pendleremoveliquidityrequest = __esm(() => {
|
|
41244
|
+
init_esm();
|
|
41245
|
+
init_primitives();
|
|
41246
|
+
init_chain();
|
|
41247
|
+
PendleRemoveLiquidityRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
41248
|
+
PendleRemoveLiquidityRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
41249
|
+
((PendleRemoveLiquidityRequestAmount$) => {
|
|
41250
|
+
PendleRemoveLiquidityRequestAmount$.inboundSchema = PendleRemoveLiquidityRequestAmount$inboundSchema;
|
|
41251
|
+
PendleRemoveLiquidityRequestAmount$.outboundSchema = PendleRemoveLiquidityRequestAmount$outboundSchema;
|
|
41252
|
+
})(PendleRemoveLiquidityRequestAmount$ ||= {});
|
|
41253
|
+
PendleRemoveLiquidityRequest$inboundSchema = objectType({
|
|
41254
|
+
action_type: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
41255
|
+
market_address: stringType(),
|
|
41256
|
+
amount: unionType([numberType(), stringType()]),
|
|
41257
|
+
chain: Chain$inboundSchema,
|
|
41258
|
+
sender: stringType()
|
|
41259
|
+
}).transform((v2) => {
|
|
41260
|
+
return remap(v2, {
|
|
41261
|
+
action_type: "actionType",
|
|
41262
|
+
market_address: "marketAddress"
|
|
41263
|
+
});
|
|
41264
|
+
});
|
|
41265
|
+
PendleRemoveLiquidityRequest$outboundSchema = objectType({
|
|
41266
|
+
actionType: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
41267
|
+
marketAddress: stringType(),
|
|
41268
|
+
amount: unionType([numberType(), stringType()]),
|
|
41269
|
+
chain: Chain$outboundSchema,
|
|
41270
|
+
sender: stringType()
|
|
41271
|
+
}).transform((v2) => {
|
|
41272
|
+
return remap(v2, {
|
|
41273
|
+
actionType: "action_type",
|
|
41274
|
+
marketAddress: "market_address"
|
|
41275
|
+
});
|
|
41276
|
+
});
|
|
41277
|
+
((PendleRemoveLiquidityRequest$) => {
|
|
41278
|
+
PendleRemoveLiquidityRequest$.inboundSchema = PendleRemoveLiquidityRequest$inboundSchema;
|
|
41279
|
+
PendleRemoveLiquidityRequest$.outboundSchema = PendleRemoveLiquidityRequest$outboundSchema;
|
|
41280
|
+
})(PendleRemoveLiquidityRequest$ ||= {});
|
|
41281
|
+
});
|
|
41282
|
+
|
|
41032
41283
|
// src/models/components/pendlesellptrequest.ts
|
|
41033
41284
|
var PendleSellPtRequestAmount$inboundSchema, PendleSellPtRequestAmount$outboundSchema, PendleSellPtRequestAmount$, PendleSellPtRequest$inboundSchema, PendleSellPtRequest$outboundSchema, PendleSellPtRequest$;
|
|
41034
41285
|
var init_pendlesellptrequest = __esm(() => {
|
|
@@ -42309,6 +42560,8 @@ var init_components = __esm(() => {
|
|
|
42309
42560
|
init_multicallauthorizationresponse();
|
|
42310
42561
|
init_multicallexecuterequest();
|
|
42311
42562
|
init_openposition();
|
|
42563
|
+
init_pendleaddliquidityparams();
|
|
42564
|
+
init_pendleaddliquidityrequest();
|
|
42312
42565
|
init_pendlebuyptparams();
|
|
42313
42566
|
init_pendlebuyptrequest();
|
|
42314
42567
|
init_pendlebuyytparams();
|
|
@@ -42320,6 +42573,8 @@ var init_components = __esm(() => {
|
|
|
42320
42573
|
init_pendlemarket();
|
|
42321
42574
|
init_pendleredeemyieldparams();
|
|
42322
42575
|
init_pendleredeemyieldrequest();
|
|
42576
|
+
init_pendleremoveliquidityparams();
|
|
42577
|
+
init_pendleremoveliquidityrequest();
|
|
42323
42578
|
init_pendlesellptparams();
|
|
42324
42579
|
init_pendlesellptrequest();
|
|
42325
42580
|
init_pendlesellytparams();
|
|
@@ -42389,12 +42644,13 @@ var HTTPValidationError, HTTPValidationError$inboundSchema, HTTPValidationError$
|
|
|
42389
42644
|
var init_httpvalidationerror = __esm(() => {
|
|
42390
42645
|
init_esm();
|
|
42391
42646
|
init_components();
|
|
42392
|
-
|
|
42647
|
+
init_compassapisdkerror();
|
|
42648
|
+
HTTPValidationError = class HTTPValidationError extends CompassAPISDKError {
|
|
42393
42649
|
detail;
|
|
42394
42650
|
data$;
|
|
42395
|
-
constructor(err) {
|
|
42651
|
+
constructor(err, httpMeta) {
|
|
42396
42652
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
42397
|
-
super(message);
|
|
42653
|
+
super(message, httpMeta);
|
|
42398
42654
|
this.data$ = err;
|
|
42399
42655
|
if (err.detail != null)
|
|
42400
42656
|
this.detail = err.detail;
|
|
@@ -42402,9 +42658,16 @@ var init_httpvalidationerror = __esm(() => {
|
|
|
42402
42658
|
}
|
|
42403
42659
|
};
|
|
42404
42660
|
HTTPValidationError$inboundSchema = objectType({
|
|
42405
|
-
detail: arrayType(ValidationError$inboundSchema).optional()
|
|
42661
|
+
detail: arrayType(ValidationError$inboundSchema).optional(),
|
|
42662
|
+
request$: instanceOfType(Request),
|
|
42663
|
+
response$: instanceOfType(Response),
|
|
42664
|
+
body$: stringType()
|
|
42406
42665
|
}).transform((v2) => {
|
|
42407
|
-
return new HTTPValidationError(v2
|
|
42666
|
+
return new HTTPValidationError(v2, {
|
|
42667
|
+
request: v2.request$,
|
|
42668
|
+
response: v2.response$,
|
|
42669
|
+
body: v2.body$
|
|
42670
|
+
});
|
|
42408
42671
|
});
|
|
42409
42672
|
HTTPValidationError$outboundSchema = instanceOfType(HTTPValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
42410
42673
|
detail: arrayType(ValidationError$outboundSchema).optional()
|
|
@@ -42420,6 +42683,7 @@ var init_errors2 = __esm(() => {
|
|
|
42420
42683
|
init_apierror();
|
|
42421
42684
|
init_httpclienterrors();
|
|
42422
42685
|
init_httpvalidationerror();
|
|
42686
|
+
init_responsevalidationerror();
|
|
42423
42687
|
init_sdkvalidationerror();
|
|
42424
42688
|
});
|
|
42425
42689
|
|
|
@@ -42494,13 +42758,13 @@ var init_aaveavgrate = __esm(() => {
|
|
|
42494
42758
|
chain: AaveAvgRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
42495
42759
|
block: nullableType(numberType().int()).optional(),
|
|
42496
42760
|
token: AaveAvgRateToken$inboundSchema.default("USDC"),
|
|
42497
|
-
days: numberType().int().default(
|
|
42761
|
+
days: numberType().int().default(2)
|
|
42498
42762
|
});
|
|
42499
42763
|
AaveAvgRateRequest$outboundSchema = objectType({
|
|
42500
42764
|
chain: AaveAvgRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
42501
42765
|
block: nullableType(numberType().int()).optional(),
|
|
42502
42766
|
token: AaveAvgRateToken$outboundSchema.default("USDC"),
|
|
42503
|
-
days: numberType().int().default(
|
|
42767
|
+
days: numberType().int().default(2)
|
|
42504
42768
|
});
|
|
42505
42769
|
((AaveAvgRateRequest$) => {
|
|
42506
42770
|
AaveAvgRateRequest$.inboundSchema = AaveAvgRateRequest$inboundSchema;
|
|
@@ -42528,7 +42792,6 @@ var init_aavehistoricaltransactions = __esm(() => {
|
|
|
42528
42792
|
offset: numberType().int().default(0),
|
|
42529
42793
|
limit: numberType().int().default(100),
|
|
42530
42794
|
chain: AaveHistoricalTransactionsChain$inboundSchema.default("arbitrum:mainnet"),
|
|
42531
|
-
block: nullableType(numberType().int()).optional(),
|
|
42532
42795
|
user_address: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
42533
42796
|
}).transform((v2) => {
|
|
42534
42797
|
return remap(v2, {
|
|
@@ -42539,7 +42802,6 @@ var init_aavehistoricaltransactions = __esm(() => {
|
|
|
42539
42802
|
offset: numberType().int().default(0),
|
|
42540
42803
|
limit: numberType().int().default(100),
|
|
42541
42804
|
chain: AaveHistoricalTransactionsChain$outboundSchema.default("arbitrum:mainnet"),
|
|
42542
|
-
block: nullableType(numberType().int()).optional(),
|
|
42543
42805
|
userAddress: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
42544
42806
|
}).transform((v2) => {
|
|
42545
42807
|
return remap(v2, {
|
|
@@ -42622,7 +42884,6 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
42622
42884
|
})(AaveLiquidityChangeToken$ ||= {});
|
|
42623
42885
|
AaveLiquidityChangeRequest$inboundSchema = objectType({
|
|
42624
42886
|
chain: AaveLiquidityChangeChain$inboundSchema.default("arbitrum:mainnet"),
|
|
42625
|
-
block: nullableType(numberType().int()).optional(),
|
|
42626
42887
|
token: AaveLiquidityChangeToken$inboundSchema.default("USDC"),
|
|
42627
42888
|
start_block: numberType().int().default(0),
|
|
42628
42889
|
end_block: numberType().int().default(319407231)
|
|
@@ -42634,7 +42895,6 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
42634
42895
|
});
|
|
42635
42896
|
AaveLiquidityChangeRequest$outboundSchema = objectType({
|
|
42636
42897
|
chain: AaveLiquidityChangeChain$outboundSchema.default("arbitrum:mainnet"),
|
|
42637
|
-
block: nullableType(numberType().int()).optional(),
|
|
42638
42898
|
token: AaveLiquidityChangeToken$outboundSchema.default("USDC"),
|
|
42639
42899
|
startBlock: numberType().int().default(0),
|
|
42640
42900
|
endBlock: numberType().int().default(319407231)
|
|
@@ -43117,12 +43377,10 @@ var init_aerodromeslipstreamliquidityprovisionpositions = __esm(() => {
|
|
|
43117
43377
|
})(AerodromeSlipstreamLiquidityProvisionPositionsChain$ ||= {});
|
|
43118
43378
|
AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema = objectType({
|
|
43119
43379
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain$inboundSchema.default("base:mainnet"),
|
|
43120
|
-
block: nullableType(numberType().int()).optional(),
|
|
43121
43380
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43122
43381
|
});
|
|
43123
43382
|
AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema = objectType({
|
|
43124
43383
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain$outboundSchema.default("base:mainnet"),
|
|
43125
|
-
block: nullableType(numberType().int()).optional(),
|
|
43126
43384
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43127
43385
|
});
|
|
43128
43386
|
((AerodromeSlipstreamLiquidityProvisionPositionsRequest$) => {
|
|
@@ -43253,7 +43511,6 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
43253
43511
|
})(AerodromeSlipstreamPoolPriceTokenOutToken$ ||= {});
|
|
43254
43512
|
AerodromeSlipstreamPoolPriceRequest$inboundSchema = objectType({
|
|
43255
43513
|
chain: AerodromeSlipstreamPoolPriceChain$inboundSchema.default("base:mainnet"),
|
|
43256
|
-
block: nullableType(numberType().int()).optional(),
|
|
43257
43514
|
token_in: AerodromeSlipstreamPoolPriceTokenInToken$inboundSchema.default("USDC"),
|
|
43258
43515
|
token_out: AerodromeSlipstreamPoolPriceTokenOutToken$inboundSchema.default("WETH"),
|
|
43259
43516
|
tick_spacing: numberType().int().default(100)
|
|
@@ -43266,7 +43523,6 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
43266
43523
|
});
|
|
43267
43524
|
AerodromeSlipstreamPoolPriceRequest$outboundSchema = objectType({
|
|
43268
43525
|
chain: AerodromeSlipstreamPoolPriceChain$outboundSchema.default("base:mainnet"),
|
|
43269
|
-
block: nullableType(numberType().int()).optional(),
|
|
43270
43526
|
tokenIn: AerodromeSlipstreamPoolPriceTokenInToken$outboundSchema.default("USDC"),
|
|
43271
43527
|
tokenOut: AerodromeSlipstreamPoolPriceTokenOutToken$outboundSchema.default("WETH"),
|
|
43272
43528
|
tickSpacing: numberType().int().default(100)
|
|
@@ -43372,7 +43628,6 @@ var init_genericallowance = __esm(() => {
|
|
|
43372
43628
|
})(ContractName$ ||= {});
|
|
43373
43629
|
GenericAllowanceRequest$inboundSchema = objectType({
|
|
43374
43630
|
chain: GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43375
|
-
block: nullableType(numberType().int()).optional(),
|
|
43376
43631
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43377
43632
|
token: GenericAllowanceToken$inboundSchema.default("USDC"),
|
|
43378
43633
|
contract_name: ContractName$inboundSchema.default("AaveV3Pool")
|
|
@@ -43383,7 +43638,6 @@ var init_genericallowance = __esm(() => {
|
|
|
43383
43638
|
});
|
|
43384
43639
|
GenericAllowanceRequest$outboundSchema = objectType({
|
|
43385
43640
|
chain: GenericAllowanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43386
|
-
block: nullableType(numberType().int()).optional(),
|
|
43387
43641
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43388
43642
|
token: GenericAllowanceToken$outboundSchema.default("USDC"),
|
|
43389
43643
|
contractName: ContractName$outboundSchema.default("AaveV3Pool")
|
|
@@ -43416,7 +43670,6 @@ var init_genericens = __esm(() => {
|
|
|
43416
43670
|
})(GenericEnsChain$ ||= {});
|
|
43417
43671
|
GenericEnsRequest$inboundSchema = objectType({
|
|
43418
43672
|
chain: GenericEnsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43419
|
-
block: nullableType(numberType().int()).optional(),
|
|
43420
43673
|
ens_name: stringType().default("vitalik.eth")
|
|
43421
43674
|
}).transform((v2) => {
|
|
43422
43675
|
return remap(v2, {
|
|
@@ -43425,7 +43678,6 @@ var init_genericens = __esm(() => {
|
|
|
43425
43678
|
});
|
|
43426
43679
|
GenericEnsRequest$outboundSchema = objectType({
|
|
43427
43680
|
chain: GenericEnsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43428
|
-
block: nullableType(numberType().int()).optional(),
|
|
43429
43681
|
ensName: stringType().default("vitalik.eth")
|
|
43430
43682
|
}).transform((v2) => {
|
|
43431
43683
|
return remap(v2, {
|
|
@@ -43455,12 +43707,10 @@ var init_genericportfolio = __esm(() => {
|
|
|
43455
43707
|
})(GenericPortfolioChain$ ||= {});
|
|
43456
43708
|
GenericPortfolioRequest$inboundSchema = objectType({
|
|
43457
43709
|
chain: GenericPortfolioChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43458
|
-
block: nullableType(numberType().int()).optional(),
|
|
43459
43710
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43460
43711
|
});
|
|
43461
43712
|
GenericPortfolioRequest$outboundSchema = objectType({
|
|
43462
43713
|
chain: GenericPortfolioChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43463
|
-
block: nullableType(numberType().int()).optional(),
|
|
43464
43714
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43465
43715
|
});
|
|
43466
43716
|
((GenericPortfolioRequest$) => {
|
|
@@ -43485,12 +43735,10 @@ var init_genericsupportedtokens = __esm(() => {
|
|
|
43485
43735
|
GenericSupportedTokensChain$.outboundSchema = GenericSupportedTokensChain$outboundSchema;
|
|
43486
43736
|
})(GenericSupportedTokensChain$ ||= {});
|
|
43487
43737
|
GenericSupportedTokensRequest$inboundSchema = objectType({
|
|
43488
|
-
chain: GenericSupportedTokensChain$inboundSchema.default("arbitrum:mainnet")
|
|
43489
|
-
block: nullableType(numberType().int()).optional()
|
|
43738
|
+
chain: GenericSupportedTokensChain$inboundSchema.default("arbitrum:mainnet")
|
|
43490
43739
|
});
|
|
43491
43740
|
GenericSupportedTokensRequest$outboundSchema = objectType({
|
|
43492
|
-
chain: GenericSupportedTokensChain$outboundSchema.default("arbitrum:mainnet")
|
|
43493
|
-
block: nullableType(numberType().int()).optional()
|
|
43741
|
+
chain: GenericSupportedTokensChain$outboundSchema.default("arbitrum:mainnet")
|
|
43494
43742
|
});
|
|
43495
43743
|
((GenericSupportedTokensRequest$) => {
|
|
43496
43744
|
GenericSupportedTokensRequest$.inboundSchema = GenericSupportedTokensRequest$inboundSchema;
|
|
@@ -43515,12 +43763,10 @@ var init_genericvisualizeportfolio = __esm(() => {
|
|
|
43515
43763
|
})(GenericVisualizePortfolioChain$ ||= {});
|
|
43516
43764
|
GenericVisualizePortfolioRequest$inboundSchema = objectType({
|
|
43517
43765
|
chain: GenericVisualizePortfolioChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43518
|
-
block: nullableType(numberType().int()).optional(),
|
|
43519
43766
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43520
43767
|
});
|
|
43521
43768
|
GenericVisualizePortfolioRequest$outboundSchema = objectType({
|
|
43522
43769
|
chain: GenericVisualizePortfolioChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43523
|
-
block: nullableType(numberType().int()).optional(),
|
|
43524
43770
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43525
43771
|
});
|
|
43526
43772
|
((GenericVisualizePortfolioRequest$) => {
|
|
@@ -43546,7 +43792,6 @@ var init_morphomarket2 = __esm(() => {
|
|
|
43546
43792
|
})(MorphoMarketChain$ ||= {});
|
|
43547
43793
|
MorphoMarketRequest$inboundSchema = objectType({
|
|
43548
43794
|
chain: MorphoMarketChain$inboundSchema.default("ethereum:mainnet"),
|
|
43549
|
-
block: nullableType(numberType().int()).optional(),
|
|
43550
43795
|
unique_market_key: stringType().default("0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e")
|
|
43551
43796
|
}).transform((v2) => {
|
|
43552
43797
|
return remap(v2, {
|
|
@@ -43555,7 +43800,6 @@ var init_morphomarket2 = __esm(() => {
|
|
|
43555
43800
|
});
|
|
43556
43801
|
MorphoMarketRequest$outboundSchema = objectType({
|
|
43557
43802
|
chain: MorphoMarketChain$outboundSchema.default("ethereum:mainnet"),
|
|
43558
|
-
block: nullableType(numberType().int()).optional(),
|
|
43559
43803
|
uniqueMarketKey: stringType().default("0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e")
|
|
43560
43804
|
}).transform((v2) => {
|
|
43561
43805
|
return remap(v2, {
|
|
@@ -43585,7 +43829,6 @@ var init_morphomarketposition = __esm(() => {
|
|
|
43585
43829
|
})(MorphoMarketPositionChain$ ||= {});
|
|
43586
43830
|
MorphoMarketPositionRequest$inboundSchema = objectType({
|
|
43587
43831
|
chain: MorphoMarketPositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43588
|
-
block: nullableType(numberType().int()).optional(),
|
|
43589
43832
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43590
43833
|
unique_market_key: stringType().default("0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4")
|
|
43591
43834
|
}).transform((v2) => {
|
|
@@ -43596,7 +43839,6 @@ var init_morphomarketposition = __esm(() => {
|
|
|
43596
43839
|
});
|
|
43597
43840
|
MorphoMarketPositionRequest$outboundSchema = objectType({
|
|
43598
43841
|
chain: MorphoMarketPositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43599
|
-
block: nullableType(numberType().int()).optional(),
|
|
43600
43842
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43601
43843
|
uniqueMarketKey: stringType().default("0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4")
|
|
43602
43844
|
}).transform((v2) => {
|
|
@@ -43628,7 +43870,6 @@ var init_morphomarkets = __esm(() => {
|
|
|
43628
43870
|
})(MorphoMarketsChain$ ||= {});
|
|
43629
43871
|
MorphoMarketsRequest$inboundSchema = objectType({
|
|
43630
43872
|
chain: MorphoMarketsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43631
|
-
block: nullableType(numberType().int()).optional(),
|
|
43632
43873
|
collateral_token: nullableType(stringType()).optional(),
|
|
43633
43874
|
loan_token: nullableType(stringType()).optional()
|
|
43634
43875
|
}).transform((v2) => {
|
|
@@ -43639,7 +43880,6 @@ var init_morphomarkets = __esm(() => {
|
|
|
43639
43880
|
});
|
|
43640
43881
|
MorphoMarketsRequest$outboundSchema = objectType({
|
|
43641
43882
|
chain: MorphoMarketsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43642
|
-
block: nullableType(numberType().int()).optional(),
|
|
43643
43883
|
collateralToken: nullableType(stringType()).optional(),
|
|
43644
43884
|
loanToken: nullableType(stringType()).optional()
|
|
43645
43885
|
}).transform((v2) => {
|
|
@@ -43671,7 +43911,6 @@ var init_morphouserposition = __esm(() => {
|
|
|
43671
43911
|
})(MorphoUserPositionChain$ ||= {});
|
|
43672
43912
|
MorphoUserPositionRequest$inboundSchema = objectType({
|
|
43673
43913
|
chain: MorphoUserPositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43674
|
-
block: nullableType(numberType().int()).optional(),
|
|
43675
43914
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43676
43915
|
}).transform((v2) => {
|
|
43677
43916
|
return remap(v2, {
|
|
@@ -43680,7 +43919,6 @@ var init_morphouserposition = __esm(() => {
|
|
|
43680
43919
|
});
|
|
43681
43920
|
MorphoUserPositionRequest$outboundSchema = objectType({
|
|
43682
43921
|
chain: MorphoUserPositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43683
|
-
block: nullableType(numberType().int()).optional(),
|
|
43684
43922
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43685
43923
|
}).transform((v2) => {
|
|
43686
43924
|
return remap(v2, {
|
|
@@ -43710,7 +43948,6 @@ var init_morphovault2 = __esm(() => {
|
|
|
43710
43948
|
})(MorphoVaultChain$ ||= {});
|
|
43711
43949
|
MorphoVaultRequest$inboundSchema = objectType({
|
|
43712
43950
|
chain: MorphoVaultChain$inboundSchema.default("ethereum:mainnet"),
|
|
43713
|
-
block: nullableType(numberType().int()).optional(),
|
|
43714
43951
|
vault_address: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43715
43952
|
}).transform((v2) => {
|
|
43716
43953
|
return remap(v2, {
|
|
@@ -43719,7 +43956,6 @@ var init_morphovault2 = __esm(() => {
|
|
|
43719
43956
|
});
|
|
43720
43957
|
MorphoVaultRequest$outboundSchema = objectType({
|
|
43721
43958
|
chain: MorphoVaultChain$outboundSchema.default("ethereum:mainnet"),
|
|
43722
|
-
block: nullableType(numberType().int()).optional(),
|
|
43723
43959
|
vaultAddress: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43724
43960
|
}).transform((v2) => {
|
|
43725
43961
|
return remap(v2, {
|
|
@@ -43749,7 +43985,6 @@ var init_morphovaultposition = __esm(() => {
|
|
|
43749
43985
|
})(MorphoVaultPositionChain$ ||= {});
|
|
43750
43986
|
MorphoVaultPositionRequest$inboundSchema = objectType({
|
|
43751
43987
|
chain: MorphoVaultPositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43752
|
-
block: nullableType(numberType().int()).optional(),
|
|
43753
43988
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43754
43989
|
vault_address: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43755
43990
|
}).transform((v2) => {
|
|
@@ -43760,7 +43995,6 @@ var init_morphovaultposition = __esm(() => {
|
|
|
43760
43995
|
});
|
|
43761
43996
|
MorphoVaultPositionRequest$outboundSchema = objectType({
|
|
43762
43997
|
chain: MorphoVaultPositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43763
|
-
block: nullableType(numberType().int()).optional(),
|
|
43764
43998
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43765
43999
|
vaultAddress: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43766
44000
|
}).transform((v2) => {
|
|
@@ -43792,7 +44026,6 @@ var init_morphovaults = __esm(() => {
|
|
|
43792
44026
|
})(MorphoVaultsChain$ ||= {});
|
|
43793
44027
|
MorphoVaultsRequest$inboundSchema = objectType({
|
|
43794
44028
|
chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43795
|
-
block: nullableType(numberType().int()).optional(),
|
|
43796
44029
|
deposit_token: nullableType(stringType()).optional()
|
|
43797
44030
|
}).transform((v2) => {
|
|
43798
44031
|
return remap(v2, {
|
|
@@ -43801,7 +44034,6 @@ var init_morphovaults = __esm(() => {
|
|
|
43801
44034
|
});
|
|
43802
44035
|
MorphoVaultsRequest$outboundSchema = objectType({
|
|
43803
44036
|
chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43804
|
-
block: nullableType(numberType().int()).optional(),
|
|
43805
44037
|
depositToken: nullableType(stringType()).optional()
|
|
43806
44038
|
}).transform((v2) => {
|
|
43807
44039
|
return remap(v2, {
|
|
@@ -43832,7 +44064,6 @@ var init_pendlemarket2 = __esm(() => {
|
|
|
43832
44064
|
})(PendleMarketChain$ ||= {});
|
|
43833
44065
|
PendleMarketRequest$inboundSchema = objectType({
|
|
43834
44066
|
chain: PendleMarketChain$inboundSchema.default("ethereum:mainnet"),
|
|
43835
|
-
block: nullableType(numberType().int()).optional(),
|
|
43836
44067
|
market_address: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43837
44068
|
}).transform((v2) => {
|
|
43838
44069
|
return remap(v2, {
|
|
@@ -43841,7 +44072,6 @@ var init_pendlemarket2 = __esm(() => {
|
|
|
43841
44072
|
});
|
|
43842
44073
|
PendleMarketRequest$outboundSchema = objectType({
|
|
43843
44074
|
chain: PendleMarketChain$outboundSchema.default("ethereum:mainnet"),
|
|
43844
|
-
block: nullableType(numberType().int()).optional(),
|
|
43845
44075
|
marketAddress: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43846
44076
|
}).transform((v2) => {
|
|
43847
44077
|
return remap(v2, {
|
|
@@ -43870,12 +44100,10 @@ var init_pendlemarkets = __esm(() => {
|
|
|
43870
44100
|
PendleMarketsChain$.outboundSchema = PendleMarketsChain$outboundSchema;
|
|
43871
44101
|
})(PendleMarketsChain$ ||= {});
|
|
43872
44102
|
PendleMarketsRequest$inboundSchema = objectType({
|
|
43873
|
-
chain: PendleMarketsChain$inboundSchema.default("ethereum:mainnet")
|
|
43874
|
-
block: nullableType(numberType().int()).optional()
|
|
44103
|
+
chain: PendleMarketsChain$inboundSchema.default("ethereum:mainnet")
|
|
43875
44104
|
});
|
|
43876
44105
|
PendleMarketsRequest$outboundSchema = objectType({
|
|
43877
|
-
chain: PendleMarketsChain$outboundSchema.default("ethereum:mainnet")
|
|
43878
|
-
block: nullableType(numberType().int()).optional()
|
|
44106
|
+
chain: PendleMarketsChain$outboundSchema.default("ethereum:mainnet")
|
|
43879
44107
|
});
|
|
43880
44108
|
((PendleMarketsRequest$) => {
|
|
43881
44109
|
PendleMarketsRequest$.inboundSchema = PendleMarketsRequest$inboundSchema;
|
|
@@ -43901,7 +44129,6 @@ var init_pendleposition = __esm(() => {
|
|
|
43901
44129
|
})(PendlePositionChain$ ||= {});
|
|
43902
44130
|
PendlePositionRequest$inboundSchema = objectType({
|
|
43903
44131
|
chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43904
|
-
block: nullableType(numberType().int()).optional(),
|
|
43905
44132
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43906
44133
|
market_address: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43907
44134
|
}).transform((v2) => {
|
|
@@ -43912,7 +44139,6 @@ var init_pendleposition = __esm(() => {
|
|
|
43912
44139
|
});
|
|
43913
44140
|
PendlePositionRequest$outboundSchema = objectType({
|
|
43914
44141
|
chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43915
|
-
block: nullableType(numberType().int()).optional(),
|
|
43916
44142
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43917
44143
|
marketAddress: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43918
44144
|
}).transform((v2) => {
|
|
@@ -43945,7 +44171,6 @@ var init_pendlepositions = __esm(() => {
|
|
|
43945
44171
|
})(PendlePositionsChain$ ||= {});
|
|
43946
44172
|
PendlePositionsRequest$inboundSchema = objectType({
|
|
43947
44173
|
chain: PendlePositionsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43948
|
-
block: nullableType(numberType().int()).optional(),
|
|
43949
44174
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43950
44175
|
}).transform((v2) => {
|
|
43951
44176
|
return remap(v2, {
|
|
@@ -43954,7 +44179,6 @@ var init_pendlepositions = __esm(() => {
|
|
|
43954
44179
|
});
|
|
43955
44180
|
PendlePositionsRequest$outboundSchema = objectType({
|
|
43956
44181
|
chain: PendlePositionsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43957
|
-
block: nullableType(numberType().int()).optional(),
|
|
43958
44182
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43959
44183
|
}).transform((v2) => {
|
|
43960
44184
|
return remap(v2, {
|
|
@@ -43974,7 +44198,6 @@ var init_skyposition = __esm(() => {
|
|
|
43974
44198
|
init_primitives();
|
|
43975
44199
|
SkyPositionRequest$inboundSchema = objectType({
|
|
43976
44200
|
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
43977
|
-
block: nullableType(numberType().int()).optional(),
|
|
43978
44201
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43979
44202
|
}).transform((v2) => {
|
|
43980
44203
|
return remap(v2, {
|
|
@@ -43983,7 +44206,6 @@ var init_skyposition = __esm(() => {
|
|
|
43983
44206
|
});
|
|
43984
44207
|
SkyPositionRequest$outboundSchema = objectType({
|
|
43985
44208
|
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
43986
|
-
block: nullableType(numberType().int()).optional(),
|
|
43987
44209
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43988
44210
|
}).transform((v2) => {
|
|
43989
44211
|
return remap(v2, {
|
|
@@ -44065,12 +44287,10 @@ var init_tokenaddress = __esm(() => {
|
|
|
44065
44287
|
})(TokenAddressToken$ ||= {});
|
|
44066
44288
|
TokenAddressRequest$inboundSchema = objectType({
|
|
44067
44289
|
chain: TokenAddressChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44068
|
-
block: nullableType(numberType().int()).optional(),
|
|
44069
44290
|
token: TokenAddressToken$inboundSchema.default("WETH")
|
|
44070
44291
|
});
|
|
44071
44292
|
TokenAddressRequest$outboundSchema = objectType({
|
|
44072
44293
|
chain: TokenAddressChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44073
|
-
block: nullableType(numberType().int()).optional(),
|
|
44074
44294
|
token: TokenAddressToken$outboundSchema.default("WETH")
|
|
44075
44295
|
});
|
|
44076
44296
|
((TokenAddressRequest$) => {
|
|
@@ -44103,13 +44323,11 @@ var init_tokenbalance = __esm(() => {
|
|
|
44103
44323
|
})(TokenBalanceToken$ ||= {});
|
|
44104
44324
|
TokenBalanceRequest$inboundSchema = objectType({
|
|
44105
44325
|
chain: TokenBalanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44106
|
-
block: nullableType(numberType().int()).optional(),
|
|
44107
44326
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
44108
44327
|
token: unionType([TokenEnum$inboundSchema, stringType()])
|
|
44109
44328
|
});
|
|
44110
44329
|
TokenBalanceRequest$outboundSchema = objectType({
|
|
44111
44330
|
chain: TokenBalanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44112
|
-
block: nullableType(numberType().int()).optional(),
|
|
44113
44331
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
44114
44332
|
token: unionType([TokenEnum$outboundSchema, stringType()])
|
|
44115
44333
|
});
|
|
@@ -44218,7 +44436,6 @@ var init_uniswapliquidityprovisioninrange = __esm(() => {
|
|
|
44218
44436
|
})(UniswapLiquidityProvisionInRangeChain$ ||= {});
|
|
44219
44437
|
UniswapLiquidityProvisionInRangeRequest$inboundSchema = objectType({
|
|
44220
44438
|
chain: UniswapLiquidityProvisionInRangeChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44221
|
-
block: nullableType(numberType().int()).optional(),
|
|
44222
44439
|
token_id: numberType().int().default(4318185)
|
|
44223
44440
|
}).transform((v2) => {
|
|
44224
44441
|
return remap(v2, {
|
|
@@ -44227,7 +44444,6 @@ var init_uniswapliquidityprovisioninrange = __esm(() => {
|
|
|
44227
44444
|
});
|
|
44228
44445
|
UniswapLiquidityProvisionInRangeRequest$outboundSchema = objectType({
|
|
44229
44446
|
chain: UniswapLiquidityProvisionInRangeChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44230
|
-
block: nullableType(numberType().int()).optional(),
|
|
44231
44447
|
tokenId: numberType().int().default(4318185)
|
|
44232
44448
|
}).transform((v2) => {
|
|
44233
44449
|
return remap(v2, {
|
|
@@ -44257,12 +44473,10 @@ var init_uniswapliquidityprovisionpositions = __esm(() => {
|
|
|
44257
44473
|
})(UniswapLiquidityProvisionPositionsChain$ ||= {});
|
|
44258
44474
|
UniswapLiquidityProvisionPositionsRequest$inboundSchema = objectType({
|
|
44259
44475
|
chain: UniswapLiquidityProvisionPositionsChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44260
|
-
block: nullableType(numberType().int()).optional(),
|
|
44261
44476
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
44262
44477
|
});
|
|
44263
44478
|
UniswapLiquidityProvisionPositionsRequest$outboundSchema = objectType({
|
|
44264
44479
|
chain: UniswapLiquidityProvisionPositionsChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44265
|
-
block: nullableType(numberType().int()).optional(),
|
|
44266
44480
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
44267
44481
|
});
|
|
44268
44482
|
((UniswapLiquidityProvisionPositionsRequest$) => {
|
|
@@ -44405,7 +44619,6 @@ var init_uniswappoolprice = __esm(() => {
|
|
|
44405
44619
|
})(UniswapPoolPriceFeeEnum$ ||= {});
|
|
44406
44620
|
UniswapPoolPriceRequest$inboundSchema = objectType({
|
|
44407
44621
|
chain: UniswapPoolPriceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44408
|
-
block: nullableType(numberType().int()).optional(),
|
|
44409
44622
|
token_in: UniswapPoolPriceTokenInToken$inboundSchema.default("USDC"),
|
|
44410
44623
|
token_out: UniswapPoolPriceTokenOutToken$inboundSchema.default("USDT"),
|
|
44411
44624
|
fee: UniswapPoolPriceFeeEnum$inboundSchema.default("0.01")
|
|
@@ -44417,7 +44630,6 @@ var init_uniswappoolprice = __esm(() => {
|
|
|
44417
44630
|
});
|
|
44418
44631
|
UniswapPoolPriceRequest$outboundSchema = objectType({
|
|
44419
44632
|
chain: UniswapPoolPriceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44420
|
-
block: nullableType(numberType().int()).optional(),
|
|
44421
44633
|
tokenIn: UniswapPoolPriceTokenInToken$outboundSchema.default("USDC"),
|
|
44422
44634
|
tokenOut: UniswapPoolPriceTokenOutToken$outboundSchema.default("USDT"),
|
|
44423
44635
|
fee: UniswapPoolPriceFeeEnum$outboundSchema.default("0.01")
|
|
@@ -44573,7 +44785,6 @@ var init_uniswapquotebuyexactly = __esm(() => {
|
|
|
44573
44785
|
})(AmountOut$ ||= {});
|
|
44574
44786
|
UniswapQuoteBuyExactlyRequest$inboundSchema = objectType({
|
|
44575
44787
|
chain: UniswapQuoteBuyExactlyChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44576
|
-
block: nullableType(numberType().int()).optional(),
|
|
44577
44788
|
token_in: UniswapQuoteBuyExactlyTokenInToken$inboundSchema.default("USDC"),
|
|
44578
44789
|
token_out: UniswapQuoteBuyExactlyTokenOutToken$inboundSchema.default("USDT"),
|
|
44579
44790
|
fee: UniswapQuoteBuyExactlyFeeEnum$inboundSchema.default("0.01"),
|
|
@@ -44587,7 +44798,6 @@ var init_uniswapquotebuyexactly = __esm(() => {
|
|
|
44587
44798
|
});
|
|
44588
44799
|
UniswapQuoteBuyExactlyRequest$outboundSchema = objectType({
|
|
44589
44800
|
chain: UniswapQuoteBuyExactlyChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44590
|
-
block: nullableType(numberType().int()).optional(),
|
|
44591
44801
|
tokenIn: UniswapQuoteBuyExactlyTokenInToken$outboundSchema.default("USDC"),
|
|
44592
44802
|
tokenOut: UniswapQuoteBuyExactlyTokenOutToken$outboundSchema.default("USDT"),
|
|
44593
44803
|
fee: UniswapQuoteBuyExactlyFeeEnum$outboundSchema.default("0.01"),
|
|
@@ -44745,7 +44955,6 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
44745
44955
|
})(AmountIn$ ||= {});
|
|
44746
44956
|
UniswapQuoteSellExactlyRequest$inboundSchema = objectType({
|
|
44747
44957
|
chain: UniswapQuoteSellExactlyChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44748
|
-
block: nullableType(numberType().int()).optional(),
|
|
44749
44958
|
token_in: UniswapQuoteSellExactlyTokenInToken$inboundSchema.default("USDC"),
|
|
44750
44959
|
token_out: UniswapQuoteSellExactlyTokenOutToken$inboundSchema.default("USDT"),
|
|
44751
44960
|
fee: UniswapQuoteSellExactlyFeeEnum$inboundSchema.default("0.01"),
|
|
@@ -44759,7 +44968,6 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
44759
44968
|
});
|
|
44760
44969
|
UniswapQuoteSellExactlyRequest$outboundSchema = objectType({
|
|
44761
44970
|
chain: UniswapQuoteSellExactlyChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44762
|
-
block: nullableType(numberType().int()).optional(),
|
|
44763
44971
|
tokenIn: UniswapQuoteSellExactlyTokenInToken$outboundSchema.default("USDC"),
|
|
44764
44972
|
tokenOut: UniswapQuoteSellExactlyTokenOutToken$outboundSchema.default("USDT"),
|
|
44765
44973
|
fee: UniswapQuoteSellExactlyFeeEnum$outboundSchema.default("0.01"),
|
|
@@ -44905,7 +45113,7 @@ async function $do(client, request, options) {
|
|
|
44905
45113
|
const responseFields = {
|
|
44906
45114
|
HttpMeta: { Response: response, Request: req }
|
|
44907
45115
|
};
|
|
44908
|
-
const [result] = await match(json(200, AaveAvgRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45116
|
+
const [result] = await match(json(200, AaveAvgRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
44909
45117
|
if (!result.ok) {
|
|
44910
45118
|
return [result, { status: "complete", request: req, response }];
|
|
44911
45119
|
}
|
|
@@ -45009,7 +45217,7 @@ async function $do2(client, request, options) {
|
|
|
45009
45217
|
const responseFields = {
|
|
45010
45218
|
HttpMeta: { Response: response, Request: req }
|
|
45011
45219
|
};
|
|
45012
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45220
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45013
45221
|
if (!result.ok) {
|
|
45014
45222
|
return [result, { status: "complete", request: req, response }];
|
|
45015
45223
|
}
|
|
@@ -45072,7 +45280,6 @@ async function $do3(client, request, options) {
|
|
|
45072
45280
|
const body = null;
|
|
45073
45281
|
const path = pathToFunc("/v0/aave/historical_transactions/get")();
|
|
45074
45282
|
const query = encodeFormQuery({
|
|
45075
|
-
block: payload.block,
|
|
45076
45283
|
chain: payload.chain,
|
|
45077
45284
|
limit: payload.limit,
|
|
45078
45285
|
offset: payload.offset,
|
|
@@ -45122,7 +45329,7 @@ async function $do3(client, request, options) {
|
|
|
45122
45329
|
const responseFields = {
|
|
45123
45330
|
HttpMeta: { Response: response, Request: req }
|
|
45124
45331
|
};
|
|
45125
|
-
const [result] = await match(json(200, AaveHistoricalTransactionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45332
|
+
const [result] = await match(json(200, AaveHistoricalTransactionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45126
45333
|
if (!result.ok) {
|
|
45127
45334
|
return [result, { status: "complete", request: req, response }];
|
|
45128
45335
|
}
|
|
@@ -45188,7 +45395,6 @@ async function $do4(client, request, options) {
|
|
|
45188
45395
|
const body = null;
|
|
45189
45396
|
const path = pathToFunc("/v0/aave/liquidity/change/get")();
|
|
45190
45397
|
const query = encodeFormQuery({
|
|
45191
|
-
block: payload.block,
|
|
45192
45398
|
chain: payload.chain,
|
|
45193
45399
|
end_block: payload.end_block,
|
|
45194
45400
|
start_block: payload.start_block,
|
|
@@ -45238,7 +45444,7 @@ async function $do4(client, request, options) {
|
|
|
45238
45444
|
const responseFields = {
|
|
45239
45445
|
HttpMeta: { Response: response, Request: req }
|
|
45240
45446
|
};
|
|
45241
|
-
const [result] = await match(json(200, AaveLiquidityChangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45447
|
+
const [result] = await match(json(200, AaveLiquidityChangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45242
45448
|
if (!result.ok) {
|
|
45243
45449
|
return [result, { status: "complete", request: req, response }];
|
|
45244
45450
|
}
|
|
@@ -45357,7 +45563,7 @@ async function $do5(client, request, options) {
|
|
|
45357
45563
|
const responseFields = {
|
|
45358
45564
|
HttpMeta: { Response: response, Request: req }
|
|
45359
45565
|
};
|
|
45360
|
-
const [result] = await match(json(200, AaveRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45566
|
+
const [result] = await match(json(200, AaveRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45361
45567
|
if (!result.ok) {
|
|
45362
45568
|
return [result, { status: "complete", request: req, response }];
|
|
45363
45569
|
}
|
|
@@ -45474,7 +45680,7 @@ async function $do6(client, request, options) {
|
|
|
45474
45680
|
const responseFields = {
|
|
45475
45681
|
HttpMeta: { Response: response, Request: req }
|
|
45476
45682
|
};
|
|
45477
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45683
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45478
45684
|
if (!result.ok) {
|
|
45479
45685
|
return [result, { status: "complete", request: req, response }];
|
|
45480
45686
|
}
|
|
@@ -45589,7 +45795,7 @@ async function $do7(client, request, options) {
|
|
|
45589
45795
|
const responseFields = {
|
|
45590
45796
|
HttpMeta: { Response: response, Request: req }
|
|
45591
45797
|
};
|
|
45592
|
-
const [result] = await match(json(200, AaveReserveOverviewResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45798
|
+
const [result] = await match(json(200, AaveReserveOverviewResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45593
45799
|
if (!result.ok) {
|
|
45594
45800
|
return [result, { status: "complete", request: req, response }];
|
|
45595
45801
|
}
|
|
@@ -45704,7 +45910,7 @@ async function $do8(client, request, options) {
|
|
|
45704
45910
|
const responseFields = {
|
|
45705
45911
|
HttpMeta: { Response: response, Request: req }
|
|
45706
45912
|
};
|
|
45707
|
-
const [result] = await match(json(200, AaveSTDRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45913
|
+
const [result] = await match(json(200, AaveSTDRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45708
45914
|
if (!result.ok) {
|
|
45709
45915
|
return [result, { status: "complete", request: req, response }];
|
|
45710
45916
|
}
|
|
@@ -45809,7 +46015,7 @@ async function $do9(client, request, options) {
|
|
|
45809
46015
|
const responseFields = {
|
|
45810
46016
|
HttpMeta: { Response: response, Request: req }
|
|
45811
46017
|
};
|
|
45812
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46018
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45813
46019
|
if (!result.ok) {
|
|
45814
46020
|
return [result, { status: "complete", request: req, response }];
|
|
45815
46021
|
}
|
|
@@ -45925,7 +46131,7 @@ async function $do10(client, request, options) {
|
|
|
45925
46131
|
const responseFields = {
|
|
45926
46132
|
HttpMeta: { Response: response, Request: req }
|
|
45927
46133
|
};
|
|
45928
|
-
const [result] = await match(json(200, AaveTokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46134
|
+
const [result] = await match(json(200, AaveTokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45929
46135
|
if (!result.ok) {
|
|
45930
46136
|
return [result, { status: "complete", request: req, response }];
|
|
45931
46137
|
}
|
|
@@ -46042,7 +46248,7 @@ async function $do11(client, request, options) {
|
|
|
46042
46248
|
const responseFields = {
|
|
46043
46249
|
HttpMeta: { Response: response, Request: req }
|
|
46044
46250
|
};
|
|
46045
|
-
const [result] = await match(json(200, AaveUserPositionPerTokenResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46251
|
+
const [result] = await match(json(200, AaveUserPositionPerTokenResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46046
46252
|
if (!result.ok) {
|
|
46047
46253
|
return [result, { status: "complete", request: req, response }];
|
|
46048
46254
|
}
|
|
@@ -46159,7 +46365,7 @@ async function $do12(client, request, options) {
|
|
|
46159
46365
|
const responseFields = {
|
|
46160
46366
|
HttpMeta: { Response: response, Request: req }
|
|
46161
46367
|
};
|
|
46162
|
-
const [result] = await match(json(200, AaveUserPositionSummaryResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46368
|
+
const [result] = await match(json(200, AaveUserPositionSummaryResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46163
46369
|
if (!result.ok) {
|
|
46164
46370
|
return [result, { status: "complete", request: req, response }];
|
|
46165
46371
|
}
|
|
@@ -46270,7 +46476,7 @@ async function $do13(client, request, options) {
|
|
|
46270
46476
|
const responseFields = {
|
|
46271
46477
|
HttpMeta: { Response: response, Request: req }
|
|
46272
46478
|
};
|
|
46273
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46479
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46274
46480
|
if (!result.ok) {
|
|
46275
46481
|
return [result, { status: "complete", request: req, response }];
|
|
46276
46482
|
}
|
|
@@ -46381,7 +46587,7 @@ async function $do14(client, request, options) {
|
|
|
46381
46587
|
const responseFields = {
|
|
46382
46588
|
HttpMeta: { Response: response, Request: req }
|
|
46383
46589
|
};
|
|
46384
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46590
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46385
46591
|
if (!result.ok) {
|
|
46386
46592
|
return [result, { status: "complete", request: req, response }];
|
|
46387
46593
|
}
|
|
@@ -46494,7 +46700,7 @@ async function $do15(client, request, options) {
|
|
|
46494
46700
|
const responseFields = {
|
|
46495
46701
|
HttpMeta: { Response: response, Request: req }
|
|
46496
46702
|
};
|
|
46497
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46703
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46498
46704
|
if (!result.ok) {
|
|
46499
46705
|
return [result, { status: "complete", request: req, response }];
|
|
46500
46706
|
}
|
|
@@ -46562,7 +46768,6 @@ async function $do16(client, request, options) {
|
|
|
46562
46768
|
const body = null;
|
|
46563
46769
|
const path = pathToFunc("/v0/aerodrome_slipstream/liquidity_provision/positions/get")();
|
|
46564
46770
|
const query = encodeFormQuery({
|
|
46565
|
-
block: payload.block,
|
|
46566
46771
|
chain: payload.chain,
|
|
46567
46772
|
user: payload.user
|
|
46568
46773
|
});
|
|
@@ -46610,7 +46815,7 @@ async function $do16(client, request, options) {
|
|
|
46610
46815
|
const responseFields = {
|
|
46611
46816
|
HttpMeta: { Response: response, Request: req }
|
|
46612
46817
|
};
|
|
46613
|
-
const [result] = await match(json(200, AerodromeLPPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46818
|
+
const [result] = await match(json(200, AerodromeLPPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46614
46819
|
if (!result.ok) {
|
|
46615
46820
|
return [result, { status: "complete", request: req, response }];
|
|
46616
46821
|
}
|
|
@@ -46722,7 +46927,7 @@ async function $do17(client, request, options) {
|
|
|
46722
46927
|
const responseFields = {
|
|
46723
46928
|
HttpMeta: { Response: response, Request: req }
|
|
46724
46929
|
};
|
|
46725
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46930
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46726
46931
|
if (!result.ok) {
|
|
46727
46932
|
return [result, { status: "complete", request: req, response }];
|
|
46728
46933
|
}
|
|
@@ -46792,7 +46997,6 @@ async function $do18(client, request, options) {
|
|
|
46792
46997
|
const body = null;
|
|
46793
46998
|
const path = pathToFunc("/v0/aerodrome_slipstream/pool_price/get")();
|
|
46794
46999
|
const query = encodeFormQuery({
|
|
46795
|
-
block: payload.block,
|
|
46796
47000
|
chain: payload.chain,
|
|
46797
47001
|
tick_spacing: payload.tick_spacing,
|
|
46798
47002
|
token_in: payload.token_in,
|
|
@@ -46842,7 +47046,7 @@ async function $do18(client, request, options) {
|
|
|
46842
47046
|
const responseFields = {
|
|
46843
47047
|
HttpMeta: { Response: response, Request: req }
|
|
46844
47048
|
};
|
|
46845
|
-
const [result] = await match(json(200, AerodromeSlipstreamPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47049
|
+
const [result] = await match(json(200, AerodromeSlipstreamPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46846
47050
|
if (!result.ok) {
|
|
46847
47051
|
return [result, { status: "complete", request: req, response }];
|
|
46848
47052
|
}
|
|
@@ -46951,7 +47155,7 @@ async function $do19(client, request, options) {
|
|
|
46951
47155
|
const responseFields = {
|
|
46952
47156
|
HttpMeta: { Response: response, Request: req }
|
|
46953
47157
|
};
|
|
46954
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47158
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46955
47159
|
if (!result.ok) {
|
|
46956
47160
|
return [result, { status: "complete", request: req, response }];
|
|
46957
47161
|
}
|
|
@@ -47063,7 +47267,7 @@ async function $do20(client, request, options) {
|
|
|
47063
47267
|
const responseFields = {
|
|
47064
47268
|
HttpMeta: { Response: response, Request: req }
|
|
47065
47269
|
};
|
|
47066
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47270
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47067
47271
|
if (!result.ok) {
|
|
47068
47272
|
return [result, { status: "complete", request: req, response }];
|
|
47069
47273
|
}
|
|
@@ -47174,7 +47378,7 @@ async function $do21(client, request, options) {
|
|
|
47174
47378
|
const responseFields = {
|
|
47175
47379
|
HttpMeta: { Response: response, Request: req }
|
|
47176
47380
|
};
|
|
47177
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47381
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47178
47382
|
if (!result.ok) {
|
|
47179
47383
|
return [result, { status: "complete", request: req, response }];
|
|
47180
47384
|
}
|
|
@@ -47281,7 +47485,7 @@ async function $do22(client, request, options) {
|
|
|
47281
47485
|
const responseFields = {
|
|
47282
47486
|
HttpMeta: { Response: response, Request: req }
|
|
47283
47487
|
};
|
|
47284
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47488
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47285
47489
|
if (!result.ok) {
|
|
47286
47490
|
return [result, { status: "complete", request: req, response }];
|
|
47287
47491
|
}
|
|
@@ -47392,7 +47596,7 @@ async function $do23(client, request, options) {
|
|
|
47392
47596
|
const responseFields = {
|
|
47393
47597
|
HttpMeta: { Response: response, Request: req }
|
|
47394
47598
|
};
|
|
47395
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47599
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47396
47600
|
if (!result.ok) {
|
|
47397
47601
|
return [result, { status: "complete", request: req, response }];
|
|
47398
47602
|
}
|
|
@@ -47462,7 +47666,6 @@ async function $do24(client, request, options) {
|
|
|
47462
47666
|
const body = null;
|
|
47463
47667
|
const path = pathToFunc("/v0/morpho/market")();
|
|
47464
47668
|
const query = encodeFormQuery({
|
|
47465
|
-
block: payload.block,
|
|
47466
47669
|
chain: payload.chain,
|
|
47467
47670
|
unique_market_key: payload.unique_market_key
|
|
47468
47671
|
});
|
|
@@ -47510,7 +47713,7 @@ async function $do24(client, request, options) {
|
|
|
47510
47713
|
const responseFields = {
|
|
47511
47714
|
HttpMeta: { Response: response, Request: req }
|
|
47512
47715
|
};
|
|
47513
|
-
const [result] = await match(json(200, MorphoGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47716
|
+
const [result] = await match(json(200, MorphoGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47514
47717
|
if (!result.ok) {
|
|
47515
47718
|
return [result, { status: "complete", request: req, response }];
|
|
47516
47719
|
}
|
|
@@ -47580,7 +47783,6 @@ async function $do25(client, request, options) {
|
|
|
47580
47783
|
const body = null;
|
|
47581
47784
|
const path = pathToFunc("/v0/morpho/market_position")();
|
|
47582
47785
|
const query = encodeFormQuery({
|
|
47583
|
-
block: payload.block,
|
|
47584
47786
|
chain: payload.chain,
|
|
47585
47787
|
unique_market_key: payload.unique_market_key,
|
|
47586
47788
|
user_address: payload.user_address
|
|
@@ -47629,7 +47831,7 @@ async function $do25(client, request, options) {
|
|
|
47629
47831
|
const responseFields = {
|
|
47630
47832
|
HttpMeta: { Response: response, Request: req }
|
|
47631
47833
|
};
|
|
47632
|
-
const [result] = await match(json(200, MorphoCheckMarketPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47834
|
+
const [result] = await match(json(200, MorphoCheckMarketPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47633
47835
|
if (!result.ok) {
|
|
47634
47836
|
return [result, { status: "complete", request: req, response }];
|
|
47635
47837
|
}
|
|
@@ -47691,7 +47893,6 @@ async function $do26(client, request, options) {
|
|
|
47691
47893
|
const body = null;
|
|
47692
47894
|
const path = pathToFunc("/v0/morpho/markets")();
|
|
47693
47895
|
const query = encodeFormQuery({
|
|
47694
|
-
block: payload.block,
|
|
47695
47896
|
chain: payload.chain,
|
|
47696
47897
|
collateral_token: payload.collateral_token,
|
|
47697
47898
|
loan_token: payload.loan_token
|
|
@@ -47740,7 +47941,7 @@ async function $do26(client, request, options) {
|
|
|
47740
47941
|
const responseFields = {
|
|
47741
47942
|
HttpMeta: { Response: response, Request: req }
|
|
47742
47943
|
};
|
|
47743
|
-
const [result] = await match(json(200, MorphoGetMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47944
|
+
const [result] = await match(json(200, MorphoGetMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47744
47945
|
if (!result.ok) {
|
|
47745
47946
|
return [result, { status: "complete", request: req, response }];
|
|
47746
47947
|
}
|
|
@@ -47847,7 +48048,7 @@ async function $do27(client, request, options) {
|
|
|
47847
48048
|
const responseFields = {
|
|
47848
48049
|
HttpMeta: { Response: response, Request: req }
|
|
47849
48050
|
};
|
|
47850
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48051
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47851
48052
|
if (!result.ok) {
|
|
47852
48053
|
return [result, { status: "complete", request: req, response }];
|
|
47853
48054
|
}
|
|
@@ -47955,7 +48156,7 @@ async function $do28(client, request, options) {
|
|
|
47955
48156
|
const responseFields = {
|
|
47956
48157
|
HttpMeta: { Response: response, Request: req }
|
|
47957
48158
|
};
|
|
47958
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48159
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47959
48160
|
if (!result.ok) {
|
|
47960
48161
|
return [result, { status: "complete", request: req, response }];
|
|
47961
48162
|
}
|
|
@@ -48020,7 +48221,6 @@ async function $do29(client, request, options) {
|
|
|
48020
48221
|
const body = null;
|
|
48021
48222
|
const path = pathToFunc("/v0/morpho/user_position")();
|
|
48022
48223
|
const query = encodeFormQuery({
|
|
48023
|
-
block: payload.block,
|
|
48024
48224
|
chain: payload.chain,
|
|
48025
48225
|
user_address: payload.user_address
|
|
48026
48226
|
});
|
|
@@ -48068,7 +48268,7 @@ async function $do29(client, request, options) {
|
|
|
48068
48268
|
const responseFields = {
|
|
48069
48269
|
HttpMeta: { Response: response, Request: req }
|
|
48070
48270
|
};
|
|
48071
|
-
const [result] = await match(json(200, MorphoCheckUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48271
|
+
const [result] = await match(json(200, MorphoCheckUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48072
48272
|
if (!result.ok) {
|
|
48073
48273
|
return [result, { status: "complete", request: req, response }];
|
|
48074
48274
|
}
|
|
@@ -48132,7 +48332,6 @@ async function $do30(client, request, options) {
|
|
|
48132
48332
|
const body = null;
|
|
48133
48333
|
const path = pathToFunc("/v0/morpho/vault")();
|
|
48134
48334
|
const query = encodeFormQuery({
|
|
48135
|
-
block: payload.block,
|
|
48136
48335
|
chain: payload.chain,
|
|
48137
48336
|
vault_address: payload.vault_address
|
|
48138
48337
|
});
|
|
@@ -48180,7 +48379,7 @@ async function $do30(client, request, options) {
|
|
|
48180
48379
|
const responseFields = {
|
|
48181
48380
|
HttpMeta: { Response: response, Request: req }
|
|
48182
48381
|
};
|
|
48183
|
-
const [result] = await match(json(200, MorphoGetVaultResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48382
|
+
const [result] = await match(json(200, MorphoGetVaultResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48184
48383
|
if (!result.ok) {
|
|
48185
48384
|
return [result, { status: "complete", request: req, response }];
|
|
48186
48385
|
}
|
|
@@ -48248,7 +48447,6 @@ async function $do31(client, request, options) {
|
|
|
48248
48447
|
const body = null;
|
|
48249
48448
|
const path = pathToFunc("/v0/morpho/vault_position")();
|
|
48250
48449
|
const query = encodeFormQuery({
|
|
48251
|
-
block: payload.block,
|
|
48252
48450
|
chain: payload.chain,
|
|
48253
48451
|
user_address: payload.user_address,
|
|
48254
48452
|
vault_address: payload.vault_address
|
|
@@ -48297,7 +48495,7 @@ async function $do31(client, request, options) {
|
|
|
48297
48495
|
const responseFields = {
|
|
48298
48496
|
HttpMeta: { Response: response, Request: req }
|
|
48299
48497
|
};
|
|
48300
|
-
const [result] = await match(json(200, MorphoCheckVaultPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48498
|
+
const [result] = await match(json(200, MorphoCheckVaultPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48301
48499
|
if (!result.ok) {
|
|
48302
48500
|
return [result, { status: "complete", request: req, response }];
|
|
48303
48501
|
}
|
|
@@ -48359,7 +48557,6 @@ async function $do32(client, request, options) {
|
|
|
48359
48557
|
const body = null;
|
|
48360
48558
|
const path = pathToFunc("/v0/morpho/vaults")();
|
|
48361
48559
|
const query = encodeFormQuery({
|
|
48362
|
-
block: payload.block,
|
|
48363
48560
|
chain: payload.chain,
|
|
48364
48561
|
deposit_token: payload.deposit_token
|
|
48365
48562
|
});
|
|
@@ -48407,7 +48604,7 @@ async function $do32(client, request, options) {
|
|
|
48407
48604
|
const responseFields = {
|
|
48408
48605
|
HttpMeta: { Response: response, Request: req }
|
|
48409
48606
|
};
|
|
48410
|
-
const [result] = await match(json(200, MorphoGetVaultsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48607
|
+
const [result] = await match(json(200, MorphoGetVaultsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48411
48608
|
if (!result.ok) {
|
|
48412
48609
|
return [result, { status: "complete", request: req, response }];
|
|
48413
48610
|
}
|
|
@@ -48515,7 +48712,7 @@ async function $do33(client, request, options) {
|
|
|
48515
48712
|
const responseFields = {
|
|
48516
48713
|
HttpMeta: { Response: response, Request: req }
|
|
48517
48714
|
};
|
|
48518
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48715
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48519
48716
|
if (!result.ok) {
|
|
48520
48717
|
return [result, { status: "complete", request: req, response }];
|
|
48521
48718
|
}
|
|
@@ -48628,7 +48825,7 @@ async function $do34(client, request, options) {
|
|
|
48628
48825
|
const responseFields = {
|
|
48629
48826
|
HttpMeta: { Response: response, Request: req }
|
|
48630
48827
|
};
|
|
48631
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48828
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48632
48829
|
if (!result.ok) {
|
|
48633
48830
|
return [result, { status: "complete", request: req, response }];
|
|
48634
48831
|
}
|
|
@@ -48680,18 +48877,18 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48680
48877
|
};
|
|
48681
48878
|
});
|
|
48682
48879
|
|
|
48683
|
-
// src/funcs/
|
|
48684
|
-
function
|
|
48880
|
+
// src/funcs/pendleAddLiquidity.ts
|
|
48881
|
+
function pendleAddLiquidity(client, request, options) {
|
|
48685
48882
|
return new APIPromise($do35(client, request, options));
|
|
48686
48883
|
}
|
|
48687
48884
|
async function $do35(client, request, options) {
|
|
48688
|
-
const parsed = safeParse(request, (value) =>
|
|
48885
|
+
const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48689
48886
|
if (!parsed.ok) {
|
|
48690
48887
|
return [parsed, { status: "invalid" }];
|
|
48691
48888
|
}
|
|
48692
48889
|
const payload = parsed.value;
|
|
48693
48890
|
const body = encodeJSON("body", payload, { explode: true });
|
|
48694
|
-
const path = pathToFunc("/v0/pendle/
|
|
48891
|
+
const path = pathToFunc("/v0/pendle/add_liquidity")();
|
|
48695
48892
|
const headers = new Headers(compactMap({
|
|
48696
48893
|
"Content-Type": "application/json",
|
|
48697
48894
|
Accept: "application/json"
|
|
@@ -48702,7 +48899,7 @@ async function $do35(client, request, options) {
|
|
|
48702
48899
|
const context = {
|
|
48703
48900
|
options: client._options,
|
|
48704
48901
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48705
|
-
operationID: "
|
|
48902
|
+
operationID: "pendle_add_liquidity",
|
|
48706
48903
|
oAuth2Scopes: [],
|
|
48707
48904
|
resolvedSecurity: requestSecurity,
|
|
48708
48905
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -48736,13 +48933,13 @@ async function $do35(client, request, options) {
|
|
|
48736
48933
|
const responseFields = {
|
|
48737
48934
|
HttpMeta: { Response: response, Request: req }
|
|
48738
48935
|
};
|
|
48739
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48936
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48740
48937
|
if (!result.ok) {
|
|
48741
48938
|
return [result, { status: "complete", request: req, response }];
|
|
48742
48939
|
}
|
|
48743
48940
|
return [result, { status: "complete", request: req, response }];
|
|
48744
48941
|
}
|
|
48745
|
-
var
|
|
48942
|
+
var init_pendleAddLiquidity = __esm(() => {
|
|
48746
48943
|
init_encodings();
|
|
48747
48944
|
init_matchers();
|
|
48748
48945
|
init_primitives();
|
|
@@ -48754,23 +48951,26 @@ var init_pendleBuyPt = __esm(() => {
|
|
|
48754
48951
|
init_async();
|
|
48755
48952
|
});
|
|
48756
48953
|
|
|
48757
|
-
// src/mcp-server/tools/
|
|
48758
|
-
var args35, tool$
|
|
48759
|
-
var
|
|
48760
|
-
|
|
48954
|
+
// src/mcp-server/tools/pendleAddLiquidity.ts
|
|
48955
|
+
var args35, tool$pendleAddLiquidity;
|
|
48956
|
+
var init_pendleAddLiquidity2 = __esm(() => {
|
|
48957
|
+
init_pendleAddLiquidity();
|
|
48761
48958
|
init_components();
|
|
48762
48959
|
init_tools();
|
|
48763
48960
|
args35 = {
|
|
48764
|
-
request:
|
|
48961
|
+
request: PendleAddLiquidityRequest$inboundSchema
|
|
48765
48962
|
};
|
|
48766
|
-
tool$
|
|
48767
|
-
name: "pendle-
|
|
48768
|
-
description: `
|
|
48963
|
+
tool$pendleAddLiquidity = {
|
|
48964
|
+
name: "pendle-add-liquidity",
|
|
48965
|
+
description: `Add Liquidity
|
|
48769
48966
|
|
|
48770
|
-
|
|
48967
|
+
Add liquidity to a Pendle Market to earn yield.
|
|
48968
|
+
|
|
48969
|
+
Liquidity is added in the form of the market's Underlying Token. Representation of
|
|
48970
|
+
the liquidity received is the market's Liquidity Provider Token (LP).`,
|
|
48771
48971
|
args: args35,
|
|
48772
48972
|
tool: async (client, args36, ctx) => {
|
|
48773
|
-
const [result, apiCall] = await
|
|
48973
|
+
const [result, apiCall] = await pendleAddLiquidity(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48774
48974
|
if (!result.ok) {
|
|
48775
48975
|
return {
|
|
48776
48976
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48783,18 +48983,18 @@ Buy Principal Token (PT) with market's Underlying Token.`,
|
|
|
48783
48983
|
};
|
|
48784
48984
|
});
|
|
48785
48985
|
|
|
48786
|
-
// src/funcs/
|
|
48787
|
-
function
|
|
48986
|
+
// src/funcs/pendleBuyPt.ts
|
|
48987
|
+
function pendleBuyPt(client, request, options) {
|
|
48788
48988
|
return new APIPromise($do36(client, request, options));
|
|
48789
48989
|
}
|
|
48790
48990
|
async function $do36(client, request, options) {
|
|
48791
|
-
const parsed = safeParse(request, (value) =>
|
|
48991
|
+
const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48792
48992
|
if (!parsed.ok) {
|
|
48793
48993
|
return [parsed, { status: "invalid" }];
|
|
48794
48994
|
}
|
|
48795
48995
|
const payload = parsed.value;
|
|
48796
48996
|
const body = encodeJSON("body", payload, { explode: true });
|
|
48797
|
-
const path = pathToFunc("/v0/pendle/
|
|
48997
|
+
const path = pathToFunc("/v0/pendle/buy_pt")();
|
|
48798
48998
|
const headers = new Headers(compactMap({
|
|
48799
48999
|
"Content-Type": "application/json",
|
|
48800
49000
|
Accept: "application/json"
|
|
@@ -48805,7 +49005,7 @@ async function $do36(client, request, options) {
|
|
|
48805
49005
|
const context = {
|
|
48806
49006
|
options: client._options,
|
|
48807
49007
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48808
|
-
operationID: "
|
|
49008
|
+
operationID: "pendle_buy_pt",
|
|
48809
49009
|
oAuth2Scopes: [],
|
|
48810
49010
|
resolvedSecurity: requestSecurity,
|
|
48811
49011
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -48839,13 +49039,13 @@ async function $do36(client, request, options) {
|
|
|
48839
49039
|
const responseFields = {
|
|
48840
49040
|
HttpMeta: { Response: response, Request: req }
|
|
48841
49041
|
};
|
|
48842
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49042
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48843
49043
|
if (!result.ok) {
|
|
48844
49044
|
return [result, { status: "complete", request: req, response }];
|
|
48845
49045
|
}
|
|
48846
49046
|
return [result, { status: "complete", request: req, response }];
|
|
48847
49047
|
}
|
|
48848
|
-
var
|
|
49048
|
+
var init_pendleBuyPt = __esm(() => {
|
|
48849
49049
|
init_encodings();
|
|
48850
49050
|
init_matchers();
|
|
48851
49051
|
init_primitives();
|
|
@@ -48857,13 +49057,116 @@ var init_pendleBuyYt = __esm(() => {
|
|
|
48857
49057
|
init_async();
|
|
48858
49058
|
});
|
|
48859
49059
|
|
|
48860
|
-
// src/mcp-server/tools/
|
|
48861
|
-
var args36, tool$
|
|
48862
|
-
var
|
|
48863
|
-
|
|
49060
|
+
// src/mcp-server/tools/pendleBuyPt.ts
|
|
49061
|
+
var args36, tool$pendleBuyPt;
|
|
49062
|
+
var init_pendleBuyPt2 = __esm(() => {
|
|
49063
|
+
init_pendleBuyPt();
|
|
48864
49064
|
init_components();
|
|
48865
49065
|
init_tools();
|
|
48866
49066
|
args36 = {
|
|
49067
|
+
request: PendleBuyPtRequest$inboundSchema
|
|
49068
|
+
};
|
|
49069
|
+
tool$pendleBuyPt = {
|
|
49070
|
+
name: "pendle-buy-pt",
|
|
49071
|
+
description: `Buy Principal Token (PT)
|
|
49072
|
+
|
|
49073
|
+
Buy Principal Token (PT) with market's Underlying Token.`,
|
|
49074
|
+
args: args36,
|
|
49075
|
+
tool: async (client, args37, ctx) => {
|
|
49076
|
+
const [result, apiCall] = await pendleBuyPt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49077
|
+
if (!result.ok) {
|
|
49078
|
+
return {
|
|
49079
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49080
|
+
isError: true
|
|
49081
|
+
};
|
|
49082
|
+
}
|
|
49083
|
+
const value = result.value;
|
|
49084
|
+
return formatResult(value, apiCall);
|
|
49085
|
+
}
|
|
49086
|
+
};
|
|
49087
|
+
});
|
|
49088
|
+
|
|
49089
|
+
// src/funcs/pendleBuyYt.ts
|
|
49090
|
+
function pendleBuyYt(client, request, options) {
|
|
49091
|
+
return new APIPromise($do37(client, request, options));
|
|
49092
|
+
}
|
|
49093
|
+
async function $do37(client, request, options) {
|
|
49094
|
+
const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49095
|
+
if (!parsed.ok) {
|
|
49096
|
+
return [parsed, { status: "invalid" }];
|
|
49097
|
+
}
|
|
49098
|
+
const payload = parsed.value;
|
|
49099
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49100
|
+
const path = pathToFunc("/v0/pendle/buy_yt")();
|
|
49101
|
+
const headers = new Headers(compactMap({
|
|
49102
|
+
"Content-Type": "application/json",
|
|
49103
|
+
Accept: "application/json"
|
|
49104
|
+
}));
|
|
49105
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49106
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49108
|
+
const context = {
|
|
49109
|
+
options: client._options,
|
|
49110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49111
|
+
operationID: "pendle_buy_yt",
|
|
49112
|
+
oAuth2Scopes: [],
|
|
49113
|
+
resolvedSecurity: requestSecurity,
|
|
49114
|
+
securitySource: client._options.apiKeyAuth,
|
|
49115
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49116
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49117
|
+
};
|
|
49118
|
+
const requestRes = client._createRequest(context, {
|
|
49119
|
+
security: requestSecurity,
|
|
49120
|
+
method: "POST",
|
|
49121
|
+
baseURL: options?.serverURL,
|
|
49122
|
+
path,
|
|
49123
|
+
headers,
|
|
49124
|
+
body,
|
|
49125
|
+
userAgent: client._options.userAgent,
|
|
49126
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49127
|
+
}, options);
|
|
49128
|
+
if (!requestRes.ok) {
|
|
49129
|
+
return [requestRes, { status: "invalid" }];
|
|
49130
|
+
}
|
|
49131
|
+
const req = requestRes.value;
|
|
49132
|
+
const doResult = await client._do(req, {
|
|
49133
|
+
context,
|
|
49134
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
49135
|
+
retryConfig: context.retryConfig,
|
|
49136
|
+
retryCodes: context.retryCodes
|
|
49137
|
+
});
|
|
49138
|
+
if (!doResult.ok) {
|
|
49139
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49140
|
+
}
|
|
49141
|
+
const response = doResult.value;
|
|
49142
|
+
const responseFields = {
|
|
49143
|
+
HttpMeta: { Response: response, Request: req }
|
|
49144
|
+
};
|
|
49145
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49146
|
+
if (!result.ok) {
|
|
49147
|
+
return [result, { status: "complete", request: req, response }];
|
|
49148
|
+
}
|
|
49149
|
+
return [result, { status: "complete", request: req, response }];
|
|
49150
|
+
}
|
|
49151
|
+
var init_pendleBuyYt = __esm(() => {
|
|
49152
|
+
init_encodings();
|
|
49153
|
+
init_matchers();
|
|
49154
|
+
init_primitives();
|
|
49155
|
+
init_schemas();
|
|
49156
|
+
init_security();
|
|
49157
|
+
init_url();
|
|
49158
|
+
init_components();
|
|
49159
|
+
init_errors2();
|
|
49160
|
+
init_async();
|
|
49161
|
+
});
|
|
49162
|
+
|
|
49163
|
+
// src/mcp-server/tools/pendleBuyYt.ts
|
|
49164
|
+
var args37, tool$pendleBuyYt;
|
|
49165
|
+
var init_pendleBuyYt2 = __esm(() => {
|
|
49166
|
+
init_pendleBuyYt();
|
|
49167
|
+
init_components();
|
|
49168
|
+
init_tools();
|
|
49169
|
+
args37 = {
|
|
48867
49170
|
request: PendleBuyYtRequest$inboundSchema
|
|
48868
49171
|
};
|
|
48869
49172
|
tool$pendleBuyYt = {
|
|
@@ -48871,9 +49174,9 @@ var init_pendleBuyYt2 = __esm(() => {
|
|
|
48871
49174
|
description: `Buy Yield Token (YT)
|
|
48872
49175
|
|
|
48873
49176
|
Buy Yield Token (YT) with market's Underlying Token.`,
|
|
48874
|
-
args:
|
|
48875
|
-
tool: async (client,
|
|
48876
|
-
const [result, apiCall] = await pendleBuyYt(client,
|
|
49177
|
+
args: args37,
|
|
49178
|
+
tool: async (client, args38, ctx) => {
|
|
49179
|
+
const [result, apiCall] = await pendleBuyYt(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48877
49180
|
if (!result.ok) {
|
|
48878
49181
|
return {
|
|
48879
49182
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48888,9 +49191,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
|
|
|
48888
49191
|
|
|
48889
49192
|
// src/funcs/pendleMarket.ts
|
|
48890
49193
|
function pendleMarket(client, request, options) {
|
|
48891
|
-
return new APIPromise($
|
|
49194
|
+
return new APIPromise($do38(client, request, options));
|
|
48892
49195
|
}
|
|
48893
|
-
async function $
|
|
49196
|
+
async function $do38(client, request, options) {
|
|
48894
49197
|
const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48895
49198
|
if (!parsed.ok) {
|
|
48896
49199
|
return [parsed, { status: "invalid" }];
|
|
@@ -48899,7 +49202,6 @@ async function $do37(client, request, options) {
|
|
|
48899
49202
|
const body = null;
|
|
48900
49203
|
const path = pathToFunc("/v0/pendle/market")();
|
|
48901
49204
|
const query = encodeFormQuery({
|
|
48902
|
-
block: payload.block,
|
|
48903
49205
|
chain: payload.chain,
|
|
48904
49206
|
market_address: payload.market_address
|
|
48905
49207
|
});
|
|
@@ -48947,7 +49249,7 @@ async function $do37(client, request, options) {
|
|
|
48947
49249
|
const responseFields = {
|
|
48948
49250
|
HttpMeta: { Response: response, Request: req }
|
|
48949
49251
|
};
|
|
48950
|
-
const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49252
|
+
const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48951
49253
|
if (!result.ok) {
|
|
48952
49254
|
return [result, { status: "complete", request: req, response }];
|
|
48953
49255
|
}
|
|
@@ -48967,12 +49269,12 @@ var init_pendleMarket = __esm(() => {
|
|
|
48967
49269
|
});
|
|
48968
49270
|
|
|
48969
49271
|
// src/mcp-server/tools/pendleMarket.ts
|
|
48970
|
-
var
|
|
49272
|
+
var args38, tool$pendleMarket;
|
|
48971
49273
|
var init_pendleMarket2 = __esm(() => {
|
|
48972
49274
|
init_pendleMarket();
|
|
48973
49275
|
init_operations();
|
|
48974
49276
|
init_tools();
|
|
48975
|
-
|
|
49277
|
+
args38 = {
|
|
48976
49278
|
request: PendleMarketRequest$inboundSchema
|
|
48977
49279
|
};
|
|
48978
49280
|
tool$pendleMarket = {
|
|
@@ -48980,9 +49282,9 @@ var init_pendleMarket2 = __esm(() => {
|
|
|
48980
49282
|
description: `Get Market Data
|
|
48981
49283
|
|
|
48982
49284
|
Get the market's implied APY, maturity date and the associated token data.`,
|
|
48983
|
-
args:
|
|
48984
|
-
tool: async (client,
|
|
48985
|
-
const [result, apiCall] = await pendleMarket(client,
|
|
49285
|
+
args: args38,
|
|
49286
|
+
tool: async (client, args39, ctx) => {
|
|
49287
|
+
const [result, apiCall] = await pendleMarket(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48986
49288
|
if (!result.ok) {
|
|
48987
49289
|
return {
|
|
48988
49290
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48997,9 +49299,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
|
|
|
48997
49299
|
|
|
48998
49300
|
// src/funcs/pendleMarkets.ts
|
|
48999
49301
|
function pendleMarkets(client, request, options) {
|
|
49000
|
-
return new APIPromise($
|
|
49302
|
+
return new APIPromise($do39(client, request, options));
|
|
49001
49303
|
}
|
|
49002
|
-
async function $
|
|
49304
|
+
async function $do39(client, request, options) {
|
|
49003
49305
|
const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49004
49306
|
if (!parsed.ok) {
|
|
49005
49307
|
return [parsed, { status: "invalid" }];
|
|
@@ -49008,7 +49310,6 @@ async function $do38(client, request, options) {
|
|
|
49008
49310
|
const body = null;
|
|
49009
49311
|
const path = pathToFunc("/v0/pendle/markets")();
|
|
49010
49312
|
const query = encodeFormQuery({
|
|
49011
|
-
block: payload.block,
|
|
49012
49313
|
chain: payload.chain
|
|
49013
49314
|
});
|
|
49014
49315
|
const headers = new Headers(compactMap({
|
|
@@ -49055,7 +49356,7 @@ async function $do38(client, request, options) {
|
|
|
49055
49356
|
const responseFields = {
|
|
49056
49357
|
HttpMeta: { Response: response, Request: req }
|
|
49057
49358
|
};
|
|
49058
|
-
const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49359
|
+
const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49059
49360
|
if (!result.ok) {
|
|
49060
49361
|
return [result, { status: "complete", request: req, response }];
|
|
49061
49362
|
}
|
|
@@ -49075,12 +49376,12 @@ var init_pendleMarkets = __esm(() => {
|
|
|
49075
49376
|
});
|
|
49076
49377
|
|
|
49077
49378
|
// src/mcp-server/tools/pendleMarkets.ts
|
|
49078
|
-
var
|
|
49379
|
+
var args39, tool$pendleMarkets;
|
|
49079
49380
|
var init_pendleMarkets2 = __esm(() => {
|
|
49080
49381
|
init_pendleMarkets();
|
|
49081
49382
|
init_operations();
|
|
49082
49383
|
init_tools();
|
|
49083
|
-
|
|
49384
|
+
args39 = {
|
|
49084
49385
|
request: PendleMarketsRequest$inboundSchema
|
|
49085
49386
|
};
|
|
49086
49387
|
tool$pendleMarkets = {
|
|
@@ -49088,9 +49389,9 @@ var init_pendleMarkets2 = __esm(() => {
|
|
|
49088
49389
|
description: `List Market Data
|
|
49089
49390
|
|
|
49090
49391
|
Get a list of active markets.`,
|
|
49091
|
-
args:
|
|
49092
|
-
tool: async (client,
|
|
49093
|
-
const [result, apiCall] = await pendleMarkets(client,
|
|
49392
|
+
args: args39,
|
|
49393
|
+
tool: async (client, args40, ctx) => {
|
|
49394
|
+
const [result, apiCall] = await pendleMarkets(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49094
49395
|
if (!result.ok) {
|
|
49095
49396
|
return {
|
|
49096
49397
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49105,9 +49406,9 @@ Get a list of active markets.`,
|
|
|
49105
49406
|
|
|
49106
49407
|
// src/funcs/pendlePosition.ts
|
|
49107
49408
|
function pendlePosition(client, request, options) {
|
|
49108
|
-
return new APIPromise($
|
|
49409
|
+
return new APIPromise($do40(client, request, options));
|
|
49109
49410
|
}
|
|
49110
|
-
async function $
|
|
49411
|
+
async function $do40(client, request, options) {
|
|
49111
49412
|
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49112
49413
|
if (!parsed.ok) {
|
|
49113
49414
|
return [parsed, { status: "invalid" }];
|
|
@@ -49116,7 +49417,6 @@ async function $do39(client, request, options) {
|
|
|
49116
49417
|
const body = null;
|
|
49117
49418
|
const path = pathToFunc("/v0/pendle/position")();
|
|
49118
49419
|
const query = encodeFormQuery({
|
|
49119
|
-
block: payload.block,
|
|
49120
49420
|
chain: payload.chain,
|
|
49121
49421
|
market_address: payload.market_address,
|
|
49122
49422
|
user_address: payload.user_address
|
|
@@ -49165,7 +49465,7 @@ async function $do39(client, request, options) {
|
|
|
49165
49465
|
const responseFields = {
|
|
49166
49466
|
HttpMeta: { Response: response, Request: req }
|
|
49167
49467
|
};
|
|
49168
|
-
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49468
|
+
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49169
49469
|
if (!result.ok) {
|
|
49170
49470
|
return [result, { status: "complete", request: req, response }];
|
|
49171
49471
|
}
|
|
@@ -49185,12 +49485,12 @@ var init_pendlePosition = __esm(() => {
|
|
|
49185
49485
|
});
|
|
49186
49486
|
|
|
49187
49487
|
// src/mcp-server/tools/pendlePosition.ts
|
|
49188
|
-
var
|
|
49488
|
+
var args40, tool$pendlePosition;
|
|
49189
49489
|
var init_pendlePosition2 = __esm(() => {
|
|
49190
49490
|
init_pendlePosition();
|
|
49191
49491
|
init_operations();
|
|
49192
49492
|
init_tools();
|
|
49193
|
-
|
|
49493
|
+
args40 = {
|
|
49194
49494
|
request: PendlePositionRequest$inboundSchema
|
|
49195
49495
|
};
|
|
49196
49496
|
tool$pendlePosition = {
|
|
@@ -49198,9 +49498,9 @@ var init_pendlePosition2 = __esm(() => {
|
|
|
49198
49498
|
description: `Check User's Market Position
|
|
49199
49499
|
|
|
49200
49500
|
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
49201
|
-
args:
|
|
49202
|
-
tool: async (client,
|
|
49203
|
-
const [result, apiCall] = await pendlePosition(client,
|
|
49501
|
+
args: args40,
|
|
49502
|
+
tool: async (client, args41, ctx) => {
|
|
49503
|
+
const [result, apiCall] = await pendlePosition(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49204
49504
|
if (!result.ok) {
|
|
49205
49505
|
return {
|
|
49206
49506
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49215,9 +49515,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
|
49215
49515
|
|
|
49216
49516
|
// src/funcs/pendlePositions.ts
|
|
49217
49517
|
function pendlePositions(client, request, options) {
|
|
49218
|
-
return new APIPromise($
|
|
49518
|
+
return new APIPromise($do41(client, request, options));
|
|
49219
49519
|
}
|
|
49220
|
-
async function $
|
|
49520
|
+
async function $do41(client, request, options) {
|
|
49221
49521
|
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49222
49522
|
if (!parsed.ok) {
|
|
49223
49523
|
return [parsed, { status: "invalid" }];
|
|
@@ -49226,7 +49526,6 @@ async function $do40(client, request, options) {
|
|
|
49226
49526
|
const body = null;
|
|
49227
49527
|
const path = pathToFunc("/v0/pendle/positions")();
|
|
49228
49528
|
const query = encodeFormQuery({
|
|
49229
|
-
block: payload.block,
|
|
49230
49529
|
chain: payload.chain,
|
|
49231
49530
|
user_address: payload.user_address
|
|
49232
49531
|
});
|
|
@@ -49274,7 +49573,7 @@ async function $do40(client, request, options) {
|
|
|
49274
49573
|
const responseFields = {
|
|
49275
49574
|
HttpMeta: { Response: response, Request: req }
|
|
49276
49575
|
};
|
|
49277
|
-
const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49576
|
+
const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49278
49577
|
if (!result.ok) {
|
|
49279
49578
|
return [result, { status: "complete", request: req, response }];
|
|
49280
49579
|
}
|
|
@@ -49294,12 +49593,12 @@ var init_pendlePositions = __esm(() => {
|
|
|
49294
49593
|
});
|
|
49295
49594
|
|
|
49296
49595
|
// src/mcp-server/tools/pendlePositions.ts
|
|
49297
|
-
var
|
|
49596
|
+
var args41, tool$pendlePositions;
|
|
49298
49597
|
var init_pendlePositions2 = __esm(() => {
|
|
49299
49598
|
init_pendlePositions();
|
|
49300
49599
|
init_operations();
|
|
49301
49600
|
init_tools();
|
|
49302
|
-
|
|
49601
|
+
args41 = {
|
|
49303
49602
|
request: PendlePositionsRequest$inboundSchema
|
|
49304
49603
|
};
|
|
49305
49604
|
tool$pendlePositions = {
|
|
@@ -49307,9 +49606,9 @@ var init_pendlePositions2 = __esm(() => {
|
|
|
49307
49606
|
description: `List User's Market Positions
|
|
49308
49607
|
|
|
49309
49608
|
List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
49310
|
-
args:
|
|
49311
|
-
tool: async (client,
|
|
49312
|
-
const [result, apiCall] = await pendlePositions(client,
|
|
49609
|
+
args: args41,
|
|
49610
|
+
tool: async (client, args42, ctx) => {
|
|
49611
|
+
const [result, apiCall] = await pendlePositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49313
49612
|
if (!result.ok) {
|
|
49314
49613
|
return {
|
|
49315
49614
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49324,9 +49623,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
49324
49623
|
|
|
49325
49624
|
// src/funcs/pendleRedeemYield.ts
|
|
49326
49625
|
function pendleRedeemYield(client, request, options) {
|
|
49327
|
-
return new APIPromise($
|
|
49626
|
+
return new APIPromise($do42(client, request, options));
|
|
49328
49627
|
}
|
|
49329
|
-
async function $
|
|
49628
|
+
async function $do42(client, request, options) {
|
|
49330
49629
|
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49331
49630
|
if (!parsed.ok) {
|
|
49332
49631
|
return [parsed, { status: "invalid" }];
|
|
@@ -49378,7 +49677,7 @@ async function $do41(client, request, options) {
|
|
|
49378
49677
|
const responseFields = {
|
|
49379
49678
|
HttpMeta: { Response: response, Request: req }
|
|
49380
49679
|
};
|
|
49381
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49680
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49382
49681
|
if (!result.ok) {
|
|
49383
49682
|
return [result, { status: "complete", request: req, response }];
|
|
49384
49683
|
}
|
|
@@ -49397,12 +49696,12 @@ var init_pendleRedeemYield = __esm(() => {
|
|
|
49397
49696
|
});
|
|
49398
49697
|
|
|
49399
49698
|
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
49400
|
-
var
|
|
49699
|
+
var args42, tool$pendleRedeemYield;
|
|
49401
49700
|
var init_pendleRedeemYield2 = __esm(() => {
|
|
49402
49701
|
init_pendleRedeemYield();
|
|
49403
49702
|
init_components();
|
|
49404
49703
|
init_tools();
|
|
49405
|
-
|
|
49704
|
+
args42 = {
|
|
49406
49705
|
request: PendleRedeemYieldRequest$inboundSchema
|
|
49407
49706
|
};
|
|
49408
49707
|
tool$pendleRedeemYield = {
|
|
@@ -49410,9 +49709,116 @@ var init_pendleRedeemYield2 = __esm(() => {
|
|
|
49410
49709
|
description: `Redeem Claimable Yield
|
|
49411
49710
|
|
|
49412
49711
|
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
49413
|
-
args:
|
|
49414
|
-
tool: async (client,
|
|
49415
|
-
const [result, apiCall] = await pendleRedeemYield(client,
|
|
49712
|
+
args: args42,
|
|
49713
|
+
tool: async (client, args43, ctx) => {
|
|
49714
|
+
const [result, apiCall] = await pendleRedeemYield(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49715
|
+
if (!result.ok) {
|
|
49716
|
+
return {
|
|
49717
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49718
|
+
isError: true
|
|
49719
|
+
};
|
|
49720
|
+
}
|
|
49721
|
+
const value = result.value;
|
|
49722
|
+
return formatResult(value, apiCall);
|
|
49723
|
+
}
|
|
49724
|
+
};
|
|
49725
|
+
});
|
|
49726
|
+
|
|
49727
|
+
// src/funcs/pendleRemoveLiquidity.ts
|
|
49728
|
+
function pendleRemoveLiquidity(client, request, options) {
|
|
49729
|
+
return new APIPromise($do43(client, request, options));
|
|
49730
|
+
}
|
|
49731
|
+
async function $do43(client, request, options) {
|
|
49732
|
+
const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49733
|
+
if (!parsed.ok) {
|
|
49734
|
+
return [parsed, { status: "invalid" }];
|
|
49735
|
+
}
|
|
49736
|
+
const payload = parsed.value;
|
|
49737
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49738
|
+
const path = pathToFunc("/v0/pendle/remove_liquidity")();
|
|
49739
|
+
const headers = new Headers(compactMap({
|
|
49740
|
+
"Content-Type": "application/json",
|
|
49741
|
+
Accept: "application/json"
|
|
49742
|
+
}));
|
|
49743
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49744
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49745
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49746
|
+
const context = {
|
|
49747
|
+
options: client._options,
|
|
49748
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49749
|
+
operationID: "pendle_remove_liquidity",
|
|
49750
|
+
oAuth2Scopes: [],
|
|
49751
|
+
resolvedSecurity: requestSecurity,
|
|
49752
|
+
securitySource: client._options.apiKeyAuth,
|
|
49753
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49754
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49755
|
+
};
|
|
49756
|
+
const requestRes = client._createRequest(context, {
|
|
49757
|
+
security: requestSecurity,
|
|
49758
|
+
method: "POST",
|
|
49759
|
+
baseURL: options?.serverURL,
|
|
49760
|
+
path,
|
|
49761
|
+
headers,
|
|
49762
|
+
body,
|
|
49763
|
+
userAgent: client._options.userAgent,
|
|
49764
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49765
|
+
}, options);
|
|
49766
|
+
if (!requestRes.ok) {
|
|
49767
|
+
return [requestRes, { status: "invalid" }];
|
|
49768
|
+
}
|
|
49769
|
+
const req = requestRes.value;
|
|
49770
|
+
const doResult = await client._do(req, {
|
|
49771
|
+
context,
|
|
49772
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
49773
|
+
retryConfig: context.retryConfig,
|
|
49774
|
+
retryCodes: context.retryCodes
|
|
49775
|
+
});
|
|
49776
|
+
if (!doResult.ok) {
|
|
49777
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49778
|
+
}
|
|
49779
|
+
const response = doResult.value;
|
|
49780
|
+
const responseFields = {
|
|
49781
|
+
HttpMeta: { Response: response, Request: req }
|
|
49782
|
+
};
|
|
49783
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49784
|
+
if (!result.ok) {
|
|
49785
|
+
return [result, { status: "complete", request: req, response }];
|
|
49786
|
+
}
|
|
49787
|
+
return [result, { status: "complete", request: req, response }];
|
|
49788
|
+
}
|
|
49789
|
+
var init_pendleRemoveLiquidity = __esm(() => {
|
|
49790
|
+
init_encodings();
|
|
49791
|
+
init_matchers();
|
|
49792
|
+
init_primitives();
|
|
49793
|
+
init_schemas();
|
|
49794
|
+
init_security();
|
|
49795
|
+
init_url();
|
|
49796
|
+
init_components();
|
|
49797
|
+
init_errors2();
|
|
49798
|
+
init_async();
|
|
49799
|
+
});
|
|
49800
|
+
|
|
49801
|
+
// src/mcp-server/tools/pendleRemoveLiquidity.ts
|
|
49802
|
+
var args43, tool$pendleRemoveLiquidity;
|
|
49803
|
+
var init_pendleRemoveLiquidity2 = __esm(() => {
|
|
49804
|
+
init_pendleRemoveLiquidity();
|
|
49805
|
+
init_components();
|
|
49806
|
+
init_tools();
|
|
49807
|
+
args43 = {
|
|
49808
|
+
request: PendleRemoveLiquidityRequest$inboundSchema
|
|
49809
|
+
};
|
|
49810
|
+
tool$pendleRemoveLiquidity = {
|
|
49811
|
+
name: "pendle-remove-liquidity",
|
|
49812
|
+
description: `Remove Liquidity
|
|
49813
|
+
|
|
49814
|
+
Remove liquidity from a Pendle Market.
|
|
49815
|
+
|
|
49816
|
+
Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
|
|
49817
|
+
the market's Underlying Token. An appropriate allowance for the Pendle Router on the
|
|
49818
|
+
market contract must be set beforehand`,
|
|
49819
|
+
args: args43,
|
|
49820
|
+
tool: async (client, args44, ctx) => {
|
|
49821
|
+
const [result, apiCall] = await pendleRemoveLiquidity(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49416
49822
|
if (!result.ok) {
|
|
49417
49823
|
return {
|
|
49418
49824
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49427,9 +49833,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
|
49427
49833
|
|
|
49428
49834
|
// src/funcs/pendleSellPt.ts
|
|
49429
49835
|
function pendleSellPt(client, request, options) {
|
|
49430
|
-
return new APIPromise($
|
|
49836
|
+
return new APIPromise($do44(client, request, options));
|
|
49431
49837
|
}
|
|
49432
|
-
async function $
|
|
49838
|
+
async function $do44(client, request, options) {
|
|
49433
49839
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49434
49840
|
if (!parsed.ok) {
|
|
49435
49841
|
return [parsed, { status: "invalid" }];
|
|
@@ -49481,7 +49887,7 @@ async function $do42(client, request, options) {
|
|
|
49481
49887
|
const responseFields = {
|
|
49482
49888
|
HttpMeta: { Response: response, Request: req }
|
|
49483
49889
|
};
|
|
49484
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49890
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49485
49891
|
if (!result.ok) {
|
|
49486
49892
|
return [result, { status: "complete", request: req, response }];
|
|
49487
49893
|
}
|
|
@@ -49500,12 +49906,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
49500
49906
|
});
|
|
49501
49907
|
|
|
49502
49908
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
49503
|
-
var
|
|
49909
|
+
var args44, tool$pendleSellPt;
|
|
49504
49910
|
var init_pendleSellPt2 = __esm(() => {
|
|
49505
49911
|
init_pendleSellPt();
|
|
49506
49912
|
init_components();
|
|
49507
49913
|
init_tools();
|
|
49508
|
-
|
|
49914
|
+
args44 = {
|
|
49509
49915
|
request: PendleSellPtRequest$inboundSchema
|
|
49510
49916
|
};
|
|
49511
49917
|
tool$pendleSellPt = {
|
|
@@ -49513,9 +49919,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
49513
49919
|
description: `Sell Principal Token (PT)
|
|
49514
49920
|
|
|
49515
49921
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
49516
|
-
args:
|
|
49517
|
-
tool: async (client,
|
|
49518
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
49922
|
+
args: args44,
|
|
49923
|
+
tool: async (client, args45, ctx) => {
|
|
49924
|
+
const [result, apiCall] = await pendleSellPt(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49519
49925
|
if (!result.ok) {
|
|
49520
49926
|
return {
|
|
49521
49927
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49530,9 +49936,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
49530
49936
|
|
|
49531
49937
|
// src/funcs/pendleSellYt.ts
|
|
49532
49938
|
function pendleSellYt(client, request, options) {
|
|
49533
|
-
return new APIPromise($
|
|
49939
|
+
return new APIPromise($do45(client, request, options));
|
|
49534
49940
|
}
|
|
49535
|
-
async function $
|
|
49941
|
+
async function $do45(client, request, options) {
|
|
49536
49942
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49537
49943
|
if (!parsed.ok) {
|
|
49538
49944
|
return [parsed, { status: "invalid" }];
|
|
@@ -49584,7 +49990,7 @@ async function $do43(client, request, options) {
|
|
|
49584
49990
|
const responseFields = {
|
|
49585
49991
|
HttpMeta: { Response: response, Request: req }
|
|
49586
49992
|
};
|
|
49587
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49993
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49588
49994
|
if (!result.ok) {
|
|
49589
49995
|
return [result, { status: "complete", request: req, response }];
|
|
49590
49996
|
}
|
|
@@ -49603,12 +50009,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
49603
50009
|
});
|
|
49604
50010
|
|
|
49605
50011
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
49606
|
-
var
|
|
50012
|
+
var args45, tool$pendleSellYt;
|
|
49607
50013
|
var init_pendleSellYt2 = __esm(() => {
|
|
49608
50014
|
init_pendleSellYt();
|
|
49609
50015
|
init_components();
|
|
49610
50016
|
init_tools();
|
|
49611
|
-
|
|
50017
|
+
args45 = {
|
|
49612
50018
|
request: PendleSellYtRequest$inboundSchema
|
|
49613
50019
|
};
|
|
49614
50020
|
tool$pendleSellYt = {
|
|
@@ -49616,9 +50022,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
49616
50022
|
description: `Sell Yield Token (YT)
|
|
49617
50023
|
|
|
49618
50024
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
49619
|
-
args:
|
|
49620
|
-
tool: async (client,
|
|
49621
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
50025
|
+
args: args45,
|
|
50026
|
+
tool: async (client, args46, ctx) => {
|
|
50027
|
+
const [result, apiCall] = await pendleSellYt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49622
50028
|
if (!result.ok) {
|
|
49623
50029
|
return {
|
|
49624
50030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49633,9 +50039,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
49633
50039
|
|
|
49634
50040
|
// src/funcs/skyBuy.ts
|
|
49635
50041
|
function skyBuy(client, request, options) {
|
|
49636
|
-
return new APIPromise($
|
|
50042
|
+
return new APIPromise($do46(client, request, options));
|
|
49637
50043
|
}
|
|
49638
|
-
async function $
|
|
50044
|
+
async function $do46(client, request, options) {
|
|
49639
50045
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49640
50046
|
if (!parsed.ok) {
|
|
49641
50047
|
return [parsed, { status: "invalid" }];
|
|
@@ -49687,7 +50093,7 @@ async function $do44(client, request, options) {
|
|
|
49687
50093
|
const responseFields = {
|
|
49688
50094
|
HttpMeta: { Response: response, Request: req }
|
|
49689
50095
|
};
|
|
49690
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50096
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49691
50097
|
if (!result.ok) {
|
|
49692
50098
|
return [result, { status: "complete", request: req, response }];
|
|
49693
50099
|
}
|
|
@@ -49706,12 +50112,12 @@ var init_skyBuy = __esm(() => {
|
|
|
49706
50112
|
});
|
|
49707
50113
|
|
|
49708
50114
|
// src/mcp-server/tools/skyBuy.ts
|
|
49709
|
-
var
|
|
50115
|
+
var args46, tool$skyBuy;
|
|
49710
50116
|
var init_skyBuy2 = __esm(() => {
|
|
49711
50117
|
init_skyBuy();
|
|
49712
50118
|
init_components();
|
|
49713
50119
|
init_tools();
|
|
49714
|
-
|
|
50120
|
+
args46 = {
|
|
49715
50121
|
request: SkyBuyRequest$inboundSchema
|
|
49716
50122
|
};
|
|
49717
50123
|
tool$skyBuy = {
|
|
@@ -49725,9 +50131,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
49725
50131
|
|
|
49726
50132
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
49727
50133
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
49728
|
-
args:
|
|
49729
|
-
tool: async (client,
|
|
49730
|
-
const [result, apiCall] = await skyBuy(client,
|
|
50134
|
+
args: args46,
|
|
50135
|
+
tool: async (client, args47, ctx) => {
|
|
50136
|
+
const [result, apiCall] = await skyBuy(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49731
50137
|
if (!result.ok) {
|
|
49732
50138
|
return {
|
|
49733
50139
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49742,9 +50148,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
49742
50148
|
|
|
49743
50149
|
// src/funcs/skyDeposit.ts
|
|
49744
50150
|
function skyDeposit(client, request, options) {
|
|
49745
|
-
return new APIPromise($
|
|
50151
|
+
return new APIPromise($do47(client, request, options));
|
|
49746
50152
|
}
|
|
49747
|
-
async function $
|
|
50153
|
+
async function $do47(client, request, options) {
|
|
49748
50154
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49749
50155
|
if (!parsed.ok) {
|
|
49750
50156
|
return [parsed, { status: "invalid" }];
|
|
@@ -49796,7 +50202,7 @@ async function $do45(client, request, options) {
|
|
|
49796
50202
|
const responseFields = {
|
|
49797
50203
|
HttpMeta: { Response: response, Request: req }
|
|
49798
50204
|
};
|
|
49799
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50205
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49800
50206
|
if (!result.ok) {
|
|
49801
50207
|
return [result, { status: "complete", request: req, response }];
|
|
49802
50208
|
}
|
|
@@ -49815,12 +50221,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
49815
50221
|
});
|
|
49816
50222
|
|
|
49817
50223
|
// src/mcp-server/tools/skyDeposit.ts
|
|
49818
|
-
var
|
|
50224
|
+
var args47, tool$skyDeposit;
|
|
49819
50225
|
var init_skyDeposit2 = __esm(() => {
|
|
49820
50226
|
init_skyDeposit();
|
|
49821
50227
|
init_components();
|
|
49822
50228
|
init_tools();
|
|
49823
|
-
|
|
50229
|
+
args47 = {
|
|
49824
50230
|
request: SkyDepositRequest$inboundSchema
|
|
49825
50231
|
};
|
|
49826
50232
|
tool$skyDeposit = {
|
|
@@ -49830,9 +50236,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
49830
50236
|
Deposit USDS for sUSDS to earn yield.
|
|
49831
50237
|
|
|
49832
50238
|
There are no fees.`,
|
|
49833
|
-
args:
|
|
49834
|
-
tool: async (client,
|
|
49835
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
50239
|
+
args: args47,
|
|
50240
|
+
tool: async (client, args48, ctx) => {
|
|
50241
|
+
const [result, apiCall] = await skyDeposit(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49836
50242
|
if (!result.ok) {
|
|
49837
50243
|
return {
|
|
49838
50244
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49847,9 +50253,9 @@ There are no fees.`,
|
|
|
49847
50253
|
|
|
49848
50254
|
// src/funcs/skyPosition.ts
|
|
49849
50255
|
function skyPosition(client, request, options) {
|
|
49850
|
-
return new APIPromise($
|
|
50256
|
+
return new APIPromise($do48(client, request, options));
|
|
49851
50257
|
}
|
|
49852
|
-
async function $
|
|
50258
|
+
async function $do48(client, request, options) {
|
|
49853
50259
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49854
50260
|
if (!parsed.ok) {
|
|
49855
50261
|
return [parsed, { status: "invalid" }];
|
|
@@ -49858,7 +50264,6 @@ async function $do46(client, request, options) {
|
|
|
49858
50264
|
const body = null;
|
|
49859
50265
|
const path = pathToFunc("/v0/sky/position")();
|
|
49860
50266
|
const query = encodeFormQuery({
|
|
49861
|
-
block: payload.block,
|
|
49862
50267
|
chain: payload.chain,
|
|
49863
50268
|
user_address: payload.user_address
|
|
49864
50269
|
});
|
|
@@ -49906,7 +50311,7 @@ async function $do46(client, request, options) {
|
|
|
49906
50311
|
const responseFields = {
|
|
49907
50312
|
HttpMeta: { Response: response, Request: req }
|
|
49908
50313
|
};
|
|
49909
|
-
const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50314
|
+
const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49910
50315
|
if (!result.ok) {
|
|
49911
50316
|
return [result, { status: "complete", request: req, response }];
|
|
49912
50317
|
}
|
|
@@ -49926,12 +50331,12 @@ var init_skyPosition = __esm(() => {
|
|
|
49926
50331
|
});
|
|
49927
50332
|
|
|
49928
50333
|
// src/mcp-server/tools/skyPosition.ts
|
|
49929
|
-
var
|
|
50334
|
+
var args48, tool$skyPosition;
|
|
49930
50335
|
var init_skyPosition2 = __esm(() => {
|
|
49931
50336
|
init_skyPosition();
|
|
49932
50337
|
init_operations();
|
|
49933
50338
|
init_tools();
|
|
49934
|
-
|
|
50339
|
+
args48 = {
|
|
49935
50340
|
request: SkyPositionRequest$inboundSchema
|
|
49936
50341
|
};
|
|
49937
50342
|
tool$skyPosition = {
|
|
@@ -49939,9 +50344,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
49939
50344
|
description: `Check USDS Position
|
|
49940
50345
|
|
|
49941
50346
|
Check the USDS overall position.`,
|
|
49942
|
-
args:
|
|
49943
|
-
tool: async (client,
|
|
49944
|
-
const [result, apiCall] = await skyPosition(client,
|
|
50347
|
+
args: args48,
|
|
50348
|
+
tool: async (client, args49, ctx) => {
|
|
50349
|
+
const [result, apiCall] = await skyPosition(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49945
50350
|
if (!result.ok) {
|
|
49946
50351
|
return {
|
|
49947
50352
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49956,9 +50361,9 @@ Check the USDS overall position.`,
|
|
|
49956
50361
|
|
|
49957
50362
|
// src/funcs/skySell.ts
|
|
49958
50363
|
function skySell(client, request, options) {
|
|
49959
|
-
return new APIPromise($
|
|
50364
|
+
return new APIPromise($do49(client, request, options));
|
|
49960
50365
|
}
|
|
49961
|
-
async function $
|
|
50366
|
+
async function $do49(client, request, options) {
|
|
49962
50367
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49963
50368
|
if (!parsed.ok) {
|
|
49964
50369
|
return [parsed, { status: "invalid" }];
|
|
@@ -50010,7 +50415,7 @@ async function $do47(client, request, options) {
|
|
|
50010
50415
|
const responseFields = {
|
|
50011
50416
|
HttpMeta: { Response: response, Request: req }
|
|
50012
50417
|
};
|
|
50013
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50418
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50014
50419
|
if (!result.ok) {
|
|
50015
50420
|
return [result, { status: "complete", request: req, response }];
|
|
50016
50421
|
}
|
|
@@ -50029,12 +50434,12 @@ var init_skySell = __esm(() => {
|
|
|
50029
50434
|
});
|
|
50030
50435
|
|
|
50031
50436
|
// src/mcp-server/tools/skySell.ts
|
|
50032
|
-
var
|
|
50437
|
+
var args49, tool$skySell;
|
|
50033
50438
|
var init_skySell2 = __esm(() => {
|
|
50034
50439
|
init_skySell();
|
|
50035
50440
|
init_components();
|
|
50036
50441
|
init_tools();
|
|
50037
|
-
|
|
50442
|
+
args49 = {
|
|
50038
50443
|
request: SkySellRequest$inboundSchema
|
|
50039
50444
|
};
|
|
50040
50445
|
tool$skySell = {
|
|
@@ -50048,9 +50453,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
50048
50453
|
|
|
50049
50454
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
50050
50455
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
50051
|
-
args:
|
|
50052
|
-
tool: async (client,
|
|
50053
|
-
const [result, apiCall] = await skySell(client,
|
|
50456
|
+
args: args49,
|
|
50457
|
+
tool: async (client, args50, ctx) => {
|
|
50458
|
+
const [result, apiCall] = await skySell(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50054
50459
|
if (!result.ok) {
|
|
50055
50460
|
return {
|
|
50056
50461
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50065,9 +50470,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
50065
50470
|
|
|
50066
50471
|
// src/funcs/skyWithdraw.ts
|
|
50067
50472
|
function skyWithdraw(client, request, options) {
|
|
50068
|
-
return new APIPromise($
|
|
50473
|
+
return new APIPromise($do50(client, request, options));
|
|
50069
50474
|
}
|
|
50070
|
-
async function $
|
|
50475
|
+
async function $do50(client, request, options) {
|
|
50071
50476
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50072
50477
|
if (!parsed.ok) {
|
|
50073
50478
|
return [parsed, { status: "invalid" }];
|
|
@@ -50119,7 +50524,7 @@ async function $do48(client, request, options) {
|
|
|
50119
50524
|
const responseFields = {
|
|
50120
50525
|
HttpMeta: { Response: response, Request: req }
|
|
50121
50526
|
};
|
|
50122
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50527
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50123
50528
|
if (!result.ok) {
|
|
50124
50529
|
return [result, { status: "complete", request: req, response }];
|
|
50125
50530
|
}
|
|
@@ -50138,12 +50543,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
50138
50543
|
});
|
|
50139
50544
|
|
|
50140
50545
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
50141
|
-
var
|
|
50546
|
+
var args50, tool$skyWithdraw;
|
|
50142
50547
|
var init_skyWithdraw2 = __esm(() => {
|
|
50143
50548
|
init_skyWithdraw();
|
|
50144
50549
|
init_components();
|
|
50145
50550
|
init_tools();
|
|
50146
|
-
|
|
50551
|
+
args50 = {
|
|
50147
50552
|
request: SkyWithdrawRequest$inboundSchema
|
|
50148
50553
|
};
|
|
50149
50554
|
tool$skyWithdraw = {
|
|
@@ -50151,9 +50556,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
50151
50556
|
description: `Withdraw USDS
|
|
50152
50557
|
|
|
50153
50558
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
50154
|
-
args:
|
|
50155
|
-
tool: async (client,
|
|
50156
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
50559
|
+
args: args50,
|
|
50560
|
+
tool: async (client, args51, ctx) => {
|
|
50561
|
+
const [result, apiCall] = await skyWithdraw(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50157
50562
|
if (!result.ok) {
|
|
50158
50563
|
return {
|
|
50159
50564
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50168,9 +50573,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
50168
50573
|
|
|
50169
50574
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
50170
50575
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
50171
|
-
return new APIPromise($
|
|
50576
|
+
return new APIPromise($do51(client, request, options));
|
|
50172
50577
|
}
|
|
50173
|
-
async function $
|
|
50578
|
+
async function $do51(client, request, options) {
|
|
50174
50579
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50175
50580
|
if (!parsed.ok) {
|
|
50176
50581
|
return [parsed, { status: "invalid" }];
|
|
@@ -50222,7 +50627,7 @@ async function $do49(client, request, options) {
|
|
|
50222
50627
|
const responseFields = {
|
|
50223
50628
|
HttpMeta: { Response: response, Request: req }
|
|
50224
50629
|
};
|
|
50225
|
-
const [result] = await match(json(200, BatchedUserOperationsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50630
|
+
const [result] = await match(json(200, BatchedUserOperationsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50226
50631
|
if (!result.ok) {
|
|
50227
50632
|
return [result, { status: "complete", request: req, response }];
|
|
50228
50633
|
}
|
|
@@ -50241,12 +50646,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
50241
50646
|
});
|
|
50242
50647
|
|
|
50243
50648
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
50244
|
-
var
|
|
50649
|
+
var args51, tool$smartAccountAccountBatchedUserOperations;
|
|
50245
50650
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
50246
50651
|
init_smartAccountAccountBatchedUserOperations();
|
|
50247
50652
|
init_components();
|
|
50248
50653
|
init_tools();
|
|
50249
|
-
|
|
50654
|
+
args51 = {
|
|
50250
50655
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
50251
50656
|
};
|
|
50252
50657
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -50254,9 +50659,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
50254
50659
|
description: `Get Smart Account Batched User Operations
|
|
50255
50660
|
|
|
50256
50661
|
Generate a list of user operations for smart account batching.`,
|
|
50257
|
-
args:
|
|
50258
|
-
tool: async (client,
|
|
50259
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
50662
|
+
args: args51,
|
|
50663
|
+
tool: async (client, args52, ctx) => {
|
|
50664
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50260
50665
|
if (!result.ok) {
|
|
50261
50666
|
return {
|
|
50262
50667
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50271,9 +50676,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
50271
50676
|
|
|
50272
50677
|
// src/funcs/tokenAddress.ts
|
|
50273
50678
|
function tokenAddress(client, request, options) {
|
|
50274
|
-
return new APIPromise($
|
|
50679
|
+
return new APIPromise($do52(client, request, options));
|
|
50275
50680
|
}
|
|
50276
|
-
async function $
|
|
50681
|
+
async function $do52(client, request, options) {
|
|
50277
50682
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50278
50683
|
if (!parsed.ok) {
|
|
50279
50684
|
return [parsed, { status: "invalid" }];
|
|
@@ -50282,7 +50687,6 @@ async function $do50(client, request, options) {
|
|
|
50282
50687
|
const body = null;
|
|
50283
50688
|
const path = pathToFunc("/v0/token/address/get")();
|
|
50284
50689
|
const query = encodeFormQuery({
|
|
50285
|
-
block: payload.block,
|
|
50286
50690
|
chain: payload.chain,
|
|
50287
50691
|
token: payload.token
|
|
50288
50692
|
});
|
|
@@ -50330,7 +50734,7 @@ async function $do50(client, request, options) {
|
|
|
50330
50734
|
const responseFields = {
|
|
50331
50735
|
HttpMeta: { Response: response, Request: req }
|
|
50332
50736
|
};
|
|
50333
|
-
const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50737
|
+
const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50334
50738
|
if (!result.ok) {
|
|
50335
50739
|
return [result, { status: "complete", request: req, response }];
|
|
50336
50740
|
}
|
|
@@ -50350,12 +50754,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
50350
50754
|
});
|
|
50351
50755
|
|
|
50352
50756
|
// src/mcp-server/tools/tokenAddress.ts
|
|
50353
|
-
var
|
|
50757
|
+
var args52, tool$tokenAddress;
|
|
50354
50758
|
var init_tokenAddress2 = __esm(() => {
|
|
50355
50759
|
init_tokenAddress();
|
|
50356
50760
|
init_operations();
|
|
50357
50761
|
init_tools();
|
|
50358
|
-
|
|
50762
|
+
args52 = {
|
|
50359
50763
|
request: TokenAddressRequest$inboundSchema
|
|
50360
50764
|
};
|
|
50361
50765
|
tool$tokenAddress = {
|
|
@@ -50363,9 +50767,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
50363
50767
|
description: `Token Address
|
|
50364
50768
|
|
|
50365
50769
|
This endpoint retrieves the address for a token supported by us.`,
|
|
50366
|
-
args:
|
|
50367
|
-
tool: async (client,
|
|
50368
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
50770
|
+
args: args52,
|
|
50771
|
+
tool: async (client, args53, ctx) => {
|
|
50772
|
+
const [result, apiCall] = await tokenAddress(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50369
50773
|
if (!result.ok) {
|
|
50370
50774
|
return {
|
|
50371
50775
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50380,9 +50784,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
50380
50784
|
|
|
50381
50785
|
// src/funcs/tokenBalance.ts
|
|
50382
50786
|
function tokenBalance(client, request, options) {
|
|
50383
|
-
return new APIPromise($
|
|
50787
|
+
return new APIPromise($do53(client, request, options));
|
|
50384
50788
|
}
|
|
50385
|
-
async function $
|
|
50789
|
+
async function $do53(client, request, options) {
|
|
50386
50790
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50387
50791
|
if (!parsed.ok) {
|
|
50388
50792
|
return [parsed, { status: "invalid" }];
|
|
@@ -50391,7 +50795,6 @@ async function $do51(client, request, options) {
|
|
|
50391
50795
|
const body = null;
|
|
50392
50796
|
const path = pathToFunc("/v0/token/balance/get")();
|
|
50393
50797
|
const query = encodeFormQuery({
|
|
50394
|
-
block: payload.block,
|
|
50395
50798
|
chain: payload.chain,
|
|
50396
50799
|
token: payload.token,
|
|
50397
50800
|
user: payload.user
|
|
@@ -50440,7 +50843,7 @@ async function $do51(client, request, options) {
|
|
|
50440
50843
|
const responseFields = {
|
|
50441
50844
|
HttpMeta: { Response: response, Request: req }
|
|
50442
50845
|
};
|
|
50443
|
-
const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50846
|
+
const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50444
50847
|
if (!result.ok) {
|
|
50445
50848
|
return [result, { status: "complete", request: req, response }];
|
|
50446
50849
|
}
|
|
@@ -50460,12 +50863,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
50460
50863
|
});
|
|
50461
50864
|
|
|
50462
50865
|
// src/mcp-server/tools/tokenBalance.ts
|
|
50463
|
-
var
|
|
50866
|
+
var args53, tool$tokenBalance;
|
|
50464
50867
|
var init_tokenBalance2 = __esm(() => {
|
|
50465
50868
|
init_tokenBalance();
|
|
50466
50869
|
init_operations();
|
|
50467
50870
|
init_tools();
|
|
50468
|
-
|
|
50871
|
+
args53 = {
|
|
50469
50872
|
request: TokenBalanceRequest$inboundSchema
|
|
50470
50873
|
};
|
|
50471
50874
|
tool$tokenBalance = {
|
|
@@ -50473,9 +50876,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
50473
50876
|
description: `Token Balance
|
|
50474
50877
|
|
|
50475
50878
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
50476
|
-
args:
|
|
50477
|
-
tool: async (client,
|
|
50478
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
50879
|
+
args: args53,
|
|
50880
|
+
tool: async (client, args54, ctx) => {
|
|
50881
|
+
const [result, apiCall] = await tokenBalance(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50479
50882
|
if (!result.ok) {
|
|
50480
50883
|
return {
|
|
50481
50884
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50490,9 +50893,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
50490
50893
|
|
|
50491
50894
|
// src/funcs/tokenPrice.ts
|
|
50492
50895
|
function tokenPrice(client, request, options) {
|
|
50493
|
-
return new APIPromise($
|
|
50896
|
+
return new APIPromise($do54(client, request, options));
|
|
50494
50897
|
}
|
|
50495
|
-
async function $
|
|
50898
|
+
async function $do54(client, request, options) {
|
|
50496
50899
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50497
50900
|
if (!parsed.ok) {
|
|
50498
50901
|
return [parsed, { status: "invalid" }];
|
|
@@ -50548,7 +50951,7 @@ async function $do52(client, request, options) {
|
|
|
50548
50951
|
const responseFields = {
|
|
50549
50952
|
HttpMeta: { Response: response, Request: req }
|
|
50550
50953
|
};
|
|
50551
|
-
const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50954
|
+
const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50552
50955
|
if (!result.ok) {
|
|
50553
50956
|
return [result, { status: "complete", request: req, response }];
|
|
50554
50957
|
}
|
|
@@ -50568,12 +50971,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
50568
50971
|
});
|
|
50569
50972
|
|
|
50570
50973
|
// src/mcp-server/tools/tokenPrice.ts
|
|
50571
|
-
var
|
|
50974
|
+
var args54, tool$tokenPrice;
|
|
50572
50975
|
var init_tokenPrice2 = __esm(() => {
|
|
50573
50976
|
init_tokenPrice();
|
|
50574
50977
|
init_operations();
|
|
50575
50978
|
init_tools();
|
|
50576
|
-
|
|
50979
|
+
args54 = {
|
|
50577
50980
|
request: TokenPriceRequest$inboundSchema
|
|
50578
50981
|
};
|
|
50579
50982
|
tool$tokenPrice = {
|
|
@@ -50585,9 +50988,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
50585
50988
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
50586
50989
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
50587
50990
|
with the update frequency of the oracle.`,
|
|
50588
|
-
args:
|
|
50589
|
-
tool: async (client,
|
|
50590
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
50991
|
+
args: args54,
|
|
50992
|
+
tool: async (client, args55, ctx) => {
|
|
50993
|
+
const [result, apiCall] = await tokenPrice(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50591
50994
|
if (!result.ok) {
|
|
50592
50995
|
return {
|
|
50593
50996
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50602,9 +51005,9 @@ with the update frequency of the oracle.`,
|
|
|
50602
51005
|
|
|
50603
51006
|
// src/funcs/tokenTransfer.ts
|
|
50604
51007
|
function tokenTransfer(client, request, options) {
|
|
50605
|
-
return new APIPromise($
|
|
51008
|
+
return new APIPromise($do55(client, request, options));
|
|
50606
51009
|
}
|
|
50607
|
-
async function $
|
|
51010
|
+
async function $do55(client, request, options) {
|
|
50608
51011
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50609
51012
|
if (!parsed.ok) {
|
|
50610
51013
|
return [parsed, { status: "invalid" }];
|
|
@@ -50656,7 +51059,7 @@ async function $do53(client, request, options) {
|
|
|
50656
51059
|
const responseFields = {
|
|
50657
51060
|
HttpMeta: { Response: response, Request: req }
|
|
50658
51061
|
};
|
|
50659
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51062
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50660
51063
|
if (!result.ok) {
|
|
50661
51064
|
return [result, { status: "complete", request: req, response }];
|
|
50662
51065
|
}
|
|
@@ -50675,12 +51078,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
50675
51078
|
});
|
|
50676
51079
|
|
|
50677
51080
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
50678
|
-
var
|
|
51081
|
+
var args55, tool$tokenTransfer;
|
|
50679
51082
|
var init_tokenTransfer2 = __esm(() => {
|
|
50680
51083
|
init_tokenTransfer();
|
|
50681
51084
|
init_components();
|
|
50682
51085
|
init_tools();
|
|
50683
|
-
|
|
51086
|
+
args55 = {
|
|
50684
51087
|
request: TokenTransferRequest$inboundSchema
|
|
50685
51088
|
};
|
|
50686
51089
|
tool$tokenTransfer = {
|
|
@@ -50688,9 +51091,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
50688
51091
|
description: `Transfer ETH or ERC20 Tokens.
|
|
50689
51092
|
|
|
50690
51093
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
50691
|
-
args:
|
|
50692
|
-
tool: async (client,
|
|
50693
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
51094
|
+
args: args55,
|
|
51095
|
+
tool: async (client, args56, ctx) => {
|
|
51096
|
+
const [result, apiCall] = await tokenTransfer(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50694
51097
|
if (!result.ok) {
|
|
50695
51098
|
return {
|
|
50696
51099
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50705,9 +51108,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
50705
51108
|
|
|
50706
51109
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
50707
51110
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
50708
|
-
return new APIPromise($
|
|
51111
|
+
return new APIPromise($do56(client, request, options));
|
|
50709
51112
|
}
|
|
50710
|
-
async function $
|
|
51113
|
+
async function $do56(client, request, options) {
|
|
50711
51114
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50712
51115
|
if (!parsed.ok) {
|
|
50713
51116
|
return [parsed, { status: "invalid" }];
|
|
@@ -50759,7 +51162,7 @@ async function $do54(client, request, options) {
|
|
|
50759
51162
|
const responseFields = {
|
|
50760
51163
|
HttpMeta: { Response: response, Request: req }
|
|
50761
51164
|
};
|
|
50762
|
-
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51165
|
+
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50763
51166
|
if (!result.ok) {
|
|
50764
51167
|
return [result, { status: "complete", request: req, response }];
|
|
50765
51168
|
}
|
|
@@ -50778,12 +51181,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
50778
51181
|
});
|
|
50779
51182
|
|
|
50780
51183
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
50781
|
-
var
|
|
51184
|
+
var args56, tool$transactionBatchingAaveLoop;
|
|
50782
51185
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
50783
51186
|
init_transactionBatchingAaveLoop();
|
|
50784
51187
|
init_components();
|
|
50785
51188
|
init_tools();
|
|
50786
|
-
|
|
51189
|
+
args56 = {
|
|
50787
51190
|
request: AaveLoopRequest$inboundSchema
|
|
50788
51191
|
};
|
|
50789
51192
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -50801,9 +51204,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
50801
51204
|
- Supplies the swapped tokens
|
|
50802
51205
|
|
|
50803
51206
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
50804
|
-
args:
|
|
50805
|
-
tool: async (client,
|
|
50806
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
51207
|
+
args: args56,
|
|
51208
|
+
tool: async (client, args57, ctx) => {
|
|
51209
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50807
51210
|
if (!result.ok) {
|
|
50808
51211
|
return {
|
|
50809
51212
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50818,9 +51221,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
50818
51221
|
|
|
50819
51222
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
50820
51223
|
function transactionBatchingAuthorization(client, request, options) {
|
|
50821
|
-
return new APIPromise($
|
|
51224
|
+
return new APIPromise($do57(client, request, options));
|
|
50822
51225
|
}
|
|
50823
|
-
async function $
|
|
51226
|
+
async function $do57(client, request, options) {
|
|
50824
51227
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50825
51228
|
if (!parsed.ok) {
|
|
50826
51229
|
return [parsed, { status: "invalid" }];
|
|
@@ -50872,7 +51275,7 @@ async function $do55(client, request, options) {
|
|
|
50872
51275
|
const responseFields = {
|
|
50873
51276
|
HttpMeta: { Response: response, Request: req }
|
|
50874
51277
|
};
|
|
50875
|
-
const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51278
|
+
const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50876
51279
|
if (!result.ok) {
|
|
50877
51280
|
return [result, { status: "complete", request: req, response }];
|
|
50878
51281
|
}
|
|
@@ -50891,12 +51294,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
50891
51294
|
});
|
|
50892
51295
|
|
|
50893
51296
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
50894
|
-
var
|
|
51297
|
+
var args57, tool$transactionBatchingAuthorization;
|
|
50895
51298
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
50896
51299
|
init_transactionBatchingAuthorization();
|
|
50897
51300
|
init_components();
|
|
50898
51301
|
init_tools();
|
|
50899
|
-
|
|
51302
|
+
args57 = {
|
|
50900
51303
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
50901
51304
|
};
|
|
50902
51305
|
tool$transactionBatchingAuthorization = {
|
|
@@ -50909,9 +51312,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
50909
51312
|
and ensure transaction ordering when batching multiple actions into a single
|
|
50910
51313
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
50911
51314
|
transaction uniqueness and proper network targeting.`,
|
|
50912
|
-
args:
|
|
50913
|
-
tool: async (client,
|
|
50914
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
51315
|
+
args: args57,
|
|
51316
|
+
tool: async (client, args58, ctx) => {
|
|
51317
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50915
51318
|
if (!result.ok) {
|
|
50916
51319
|
return {
|
|
50917
51320
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50926,9 +51329,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
50926
51329
|
|
|
50927
51330
|
// src/funcs/transactionBatchingExecute.ts
|
|
50928
51331
|
function transactionBatchingExecute(client, request, options) {
|
|
50929
|
-
return new APIPromise($
|
|
51332
|
+
return new APIPromise($do58(client, request, options));
|
|
50930
51333
|
}
|
|
50931
|
-
async function $
|
|
51334
|
+
async function $do58(client, request, options) {
|
|
50932
51335
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50933
51336
|
if (!parsed.ok) {
|
|
50934
51337
|
return [parsed, { status: "invalid" }];
|
|
@@ -50980,7 +51383,7 @@ async function $do56(client, request, options) {
|
|
|
50980
51383
|
const responseFields = {
|
|
50981
51384
|
HttpMeta: { Response: response, Request: req }
|
|
50982
51385
|
};
|
|
50983
|
-
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51386
|
+
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50984
51387
|
if (!result.ok) {
|
|
50985
51388
|
return [result, { status: "complete", request: req, response }];
|
|
50986
51389
|
}
|
|
@@ -50999,12 +51402,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
50999
51402
|
});
|
|
51000
51403
|
|
|
51001
51404
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
51002
|
-
var
|
|
51405
|
+
var args58, tool$transactionBatchingExecute;
|
|
51003
51406
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
51004
51407
|
init_transactionBatchingExecute();
|
|
51005
51408
|
init_components();
|
|
51006
51409
|
init_tools();
|
|
51007
|
-
|
|
51410
|
+
args58 = {
|
|
51008
51411
|
request: MulticallExecuteRequest$inboundSchema
|
|
51009
51412
|
};
|
|
51010
51413
|
tool$transactionBatchingExecute = {
|
|
@@ -51018,9 +51421,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
51018
51421
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
51019
51422
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
51020
51423
|
prevent replay attacks.`,
|
|
51021
|
-
args:
|
|
51022
|
-
tool: async (client,
|
|
51023
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
51424
|
+
args: args58,
|
|
51425
|
+
tool: async (client, args59, ctx) => {
|
|
51426
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51024
51427
|
if (!result.ok) {
|
|
51025
51428
|
return {
|
|
51026
51429
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51035,9 +51438,9 @@ prevent replay attacks.`,
|
|
|
51035
51438
|
|
|
51036
51439
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
51037
51440
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
51038
|
-
return new APIPromise($
|
|
51441
|
+
return new APIPromise($do59(client, request, options));
|
|
51039
51442
|
}
|
|
51040
|
-
async function $
|
|
51443
|
+
async function $do59(client, request, options) {
|
|
51041
51444
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51042
51445
|
if (!parsed.ok) {
|
|
51043
51446
|
return [parsed, { status: "invalid" }];
|
|
@@ -51089,7 +51492,7 @@ async function $do57(client, request, options) {
|
|
|
51089
51492
|
const responseFields = {
|
|
51090
51493
|
HttpMeta: { Response: response, Request: req }
|
|
51091
51494
|
};
|
|
51092
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51495
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51093
51496
|
if (!result.ok) {
|
|
51094
51497
|
return [result, { status: "complete", request: req, response }];
|
|
51095
51498
|
}
|
|
@@ -51108,12 +51511,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
51108
51511
|
});
|
|
51109
51512
|
|
|
51110
51513
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
51111
|
-
var
|
|
51514
|
+
var args59, tool$uniswapV3LiquidityProvisionIncrease;
|
|
51112
51515
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
51113
51516
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
51114
51517
|
init_components();
|
|
51115
51518
|
init_tools();
|
|
51116
|
-
|
|
51519
|
+
args59 = {
|
|
51117
51520
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
51118
51521
|
};
|
|
51119
51522
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -51129,9 +51532,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
51129
51532
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
51130
51533
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
51131
51534
|
process.`,
|
|
51132
|
-
args:
|
|
51133
|
-
tool: async (client,
|
|
51134
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
51535
|
+
args: args59,
|
|
51536
|
+
tool: async (client, args60, ctx) => {
|
|
51537
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51135
51538
|
if (!result.ok) {
|
|
51136
51539
|
return {
|
|
51137
51540
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51146,9 +51549,9 @@ process.`,
|
|
|
51146
51549
|
|
|
51147
51550
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
51148
51551
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
51149
|
-
return new APIPromise($
|
|
51552
|
+
return new APIPromise($do60(client, request, options));
|
|
51150
51553
|
}
|
|
51151
|
-
async function $
|
|
51554
|
+
async function $do60(client, request, options) {
|
|
51152
51555
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51153
51556
|
if (!parsed.ok) {
|
|
51154
51557
|
return [parsed, { status: "invalid" }];
|
|
@@ -51157,7 +51560,6 @@ async function $do58(client, request, options) {
|
|
|
51157
51560
|
const body = null;
|
|
51158
51561
|
const path = pathToFunc("/v0/uniswap/liquidity_provision/in_range/get")();
|
|
51159
51562
|
const query = encodeFormQuery({
|
|
51160
|
-
block: payload.block,
|
|
51161
51563
|
chain: payload.chain,
|
|
51162
51564
|
token_id: payload.token_id
|
|
51163
51565
|
});
|
|
@@ -51205,7 +51607,7 @@ async function $do58(client, request, options) {
|
|
|
51205
51607
|
const responseFields = {
|
|
51206
51608
|
HttpMeta: { Response: response, Request: req }
|
|
51207
51609
|
};
|
|
51208
|
-
const [result] = await match(json(200, UniswapCheckInRangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51610
|
+
const [result] = await match(json(200, UniswapCheckInRangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51209
51611
|
if (!result.ok) {
|
|
51210
51612
|
return [result, { status: "complete", request: req, response }];
|
|
51211
51613
|
}
|
|
@@ -51225,12 +51627,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
51225
51627
|
});
|
|
51226
51628
|
|
|
51227
51629
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
51228
|
-
var
|
|
51630
|
+
var args60, tool$uniswapV3LiquidityProvisionInRange;
|
|
51229
51631
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
51230
51632
|
init_uniswapV3LiquidityProvisionInRange();
|
|
51231
51633
|
init_operations();
|
|
51232
51634
|
init_tools();
|
|
51233
|
-
|
|
51635
|
+
args60 = {
|
|
51234
51636
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
51235
51637
|
};
|
|
51236
51638
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -51245,9 +51647,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
51245
51647
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
51246
51648
|
they are actively participating in the trading activities within the liquidity pool
|
|
51247
51649
|
and earning trading fees.`,
|
|
51248
|
-
args:
|
|
51249
|
-
tool: async (client,
|
|
51250
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
51650
|
+
args: args60,
|
|
51651
|
+
tool: async (client, args61, ctx) => {
|
|
51652
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51251
51653
|
if (!result.ok) {
|
|
51252
51654
|
return {
|
|
51253
51655
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51262,9 +51664,9 @@ and earning trading fees.`,
|
|
|
51262
51664
|
|
|
51263
51665
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
51264
51666
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
51265
|
-
return new APIPromise($
|
|
51667
|
+
return new APIPromise($do61(client, request, options));
|
|
51266
51668
|
}
|
|
51267
|
-
async function $
|
|
51669
|
+
async function $do61(client, request, options) {
|
|
51268
51670
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51269
51671
|
if (!parsed.ok) {
|
|
51270
51672
|
return [parsed, { status: "invalid" }];
|
|
@@ -51316,7 +51718,7 @@ async function $do59(client, request, options) {
|
|
|
51316
51718
|
const responseFields = {
|
|
51317
51719
|
HttpMeta: { Response: response, Request: req }
|
|
51318
51720
|
};
|
|
51319
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51721
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51320
51722
|
if (!result.ok) {
|
|
51321
51723
|
return [result, { status: "complete", request: req, response }];
|
|
51322
51724
|
}
|
|
@@ -51335,12 +51737,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
51335
51737
|
});
|
|
51336
51738
|
|
|
51337
51739
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
51338
|
-
var
|
|
51740
|
+
var args61, tool$uniswapV3LiquidityProvisionMint;
|
|
51339
51741
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
51340
51742
|
init_uniswapV3LiquidityProvisionMint();
|
|
51341
51743
|
init_components();
|
|
51342
51744
|
init_tools();
|
|
51343
|
-
|
|
51745
|
+
args61 = {
|
|
51344
51746
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
51345
51747
|
};
|
|
51346
51748
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -51356,9 +51758,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
51356
51758
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
51357
51759
|
requires details such as the token pair, amount, and any additional parameters
|
|
51358
51760
|
needed for the minting process.`,
|
|
51359
|
-
args:
|
|
51360
|
-
tool: async (client,
|
|
51361
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
51761
|
+
args: args61,
|
|
51762
|
+
tool: async (client, args62, ctx) => {
|
|
51763
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51362
51764
|
if (!result.ok) {
|
|
51363
51765
|
return {
|
|
51364
51766
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51373,9 +51775,9 @@ needed for the minting process.`,
|
|
|
51373
51775
|
|
|
51374
51776
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
51375
51777
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
51376
|
-
return new APIPromise($
|
|
51778
|
+
return new APIPromise($do62(client, request, options));
|
|
51377
51779
|
}
|
|
51378
|
-
async function $
|
|
51780
|
+
async function $do62(client, request, options) {
|
|
51379
51781
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51380
51782
|
if (!parsed.ok) {
|
|
51381
51783
|
return [parsed, { status: "invalid" }];
|
|
@@ -51384,7 +51786,6 @@ async function $do60(client, request, options) {
|
|
|
51384
51786
|
const body = null;
|
|
51385
51787
|
const path = pathToFunc("/v0/uniswap/liquidity_provision/positions/get")();
|
|
51386
51788
|
const query = encodeFormQuery({
|
|
51387
|
-
block: payload.block,
|
|
51388
51789
|
chain: payload.chain,
|
|
51389
51790
|
user: payload.user
|
|
51390
51791
|
});
|
|
@@ -51432,7 +51833,7 @@ async function $do60(client, request, options) {
|
|
|
51432
51833
|
const responseFields = {
|
|
51433
51834
|
HttpMeta: { Response: response, Request: req }
|
|
51434
51835
|
};
|
|
51435
|
-
const [result] = await match(json(200, UniswapLPPositionsInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51836
|
+
const [result] = await match(json(200, UniswapLPPositionsInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51436
51837
|
if (!result.ok) {
|
|
51437
51838
|
return [result, { status: "complete", request: req, response }];
|
|
51438
51839
|
}
|
|
@@ -51452,12 +51853,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
51452
51853
|
});
|
|
51453
51854
|
|
|
51454
51855
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
51455
|
-
var
|
|
51856
|
+
var args62, tool$uniswapV3LiquidityProvisionPositions;
|
|
51456
51857
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
51457
51858
|
init_uniswapV3LiquidityProvisionPositions();
|
|
51458
51859
|
init_operations();
|
|
51459
51860
|
init_tools();
|
|
51460
|
-
|
|
51861
|
+
args62 = {
|
|
51461
51862
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
51462
51863
|
};
|
|
51463
51864
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -51471,9 +51872,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
51471
51872
|
positions, including the total number of positions and relevant metadata. This
|
|
51472
51873
|
information is crucial for users to manage and analyze their liquidity provision
|
|
51473
51874
|
activities effectively.`,
|
|
51474
|
-
args:
|
|
51475
|
-
tool: async (client,
|
|
51476
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
51875
|
+
args: args62,
|
|
51876
|
+
tool: async (client, args63, ctx) => {
|
|
51877
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51477
51878
|
if (!result.ok) {
|
|
51478
51879
|
return {
|
|
51479
51880
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51488,9 +51889,9 @@ activities effectively.`,
|
|
|
51488
51889
|
|
|
51489
51890
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51490
51891
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
51491
|
-
return new APIPromise($
|
|
51892
|
+
return new APIPromise($do63(client, request, options));
|
|
51492
51893
|
}
|
|
51493
|
-
async function $
|
|
51894
|
+
async function $do63(client, request, options) {
|
|
51494
51895
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51495
51896
|
if (!parsed.ok) {
|
|
51496
51897
|
return [parsed, { status: "invalid" }];
|
|
@@ -51542,7 +51943,7 @@ async function $do61(client, request, options) {
|
|
|
51542
51943
|
const responseFields = {
|
|
51543
51944
|
HttpMeta: { Response: response, Request: req }
|
|
51544
51945
|
};
|
|
51545
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51946
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51546
51947
|
if (!result.ok) {
|
|
51547
51948
|
return [result, { status: "complete", request: req, response }];
|
|
51548
51949
|
}
|
|
@@ -51561,12 +51962,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
51561
51962
|
});
|
|
51562
51963
|
|
|
51563
51964
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51564
|
-
var
|
|
51965
|
+
var args63, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
51565
51966
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
51566
51967
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
51567
51968
|
init_components();
|
|
51568
51969
|
init_tools();
|
|
51569
|
-
|
|
51970
|
+
args63 = {
|
|
51570
51971
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
51571
51972
|
};
|
|
51572
51973
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -51583,9 +51984,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
51583
51984
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
51584
51985
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
51585
51986
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
51586
|
-
args:
|
|
51587
|
-
tool: async (client,
|
|
51588
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
51987
|
+
args: args63,
|
|
51988
|
+
tool: async (client, args64, ctx) => {
|
|
51989
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51589
51990
|
if (!result.ok) {
|
|
51590
51991
|
return {
|
|
51591
51992
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51600,9 +52001,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
51600
52001
|
|
|
51601
52002
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
51602
52003
|
function uniswapV3PoolPrice(client, request, options) {
|
|
51603
|
-
return new APIPromise($
|
|
52004
|
+
return new APIPromise($do64(client, request, options));
|
|
51604
52005
|
}
|
|
51605
|
-
async function $
|
|
52006
|
+
async function $do64(client, request, options) {
|
|
51606
52007
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51607
52008
|
if (!parsed.ok) {
|
|
51608
52009
|
return [parsed, { status: "invalid" }];
|
|
@@ -51611,7 +52012,6 @@ async function $do62(client, request, options) {
|
|
|
51611
52012
|
const body = null;
|
|
51612
52013
|
const path = pathToFunc("/v0/uniswap/pool_price/get")();
|
|
51613
52014
|
const query = encodeFormQuery({
|
|
51614
|
-
block: payload.block,
|
|
51615
52015
|
chain: payload.chain,
|
|
51616
52016
|
fee: payload.fee,
|
|
51617
52017
|
token_in: payload.token_in,
|
|
@@ -51661,7 +52061,7 @@ async function $do62(client, request, options) {
|
|
|
51661
52061
|
const responseFields = {
|
|
51662
52062
|
HttpMeta: { Response: response, Request: req }
|
|
51663
52063
|
};
|
|
51664
|
-
const [result] = await match(json(200, UniswapPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52064
|
+
const [result] = await match(json(200, UniswapPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51665
52065
|
if (!result.ok) {
|
|
51666
52066
|
return [result, { status: "complete", request: req, response }];
|
|
51667
52067
|
}
|
|
@@ -51681,12 +52081,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
51681
52081
|
});
|
|
51682
52082
|
|
|
51683
52083
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
51684
|
-
var
|
|
52084
|
+
var args64, tool$uniswapV3PoolPrice;
|
|
51685
52085
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
51686
52086
|
init_uniswapV3PoolPrice();
|
|
51687
52087
|
init_operations();
|
|
51688
52088
|
init_tools();
|
|
51689
|
-
|
|
52089
|
+
args64 = {
|
|
51690
52090
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
51691
52091
|
};
|
|
51692
52092
|
tool$uniswapV3PoolPrice = {
|
|
@@ -51696,9 +52096,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
51696
52096
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
51697
52097
|
|
|
51698
52098
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
51699
|
-
args:
|
|
51700
|
-
tool: async (client,
|
|
51701
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
52099
|
+
args: args64,
|
|
52100
|
+
tool: async (client, args65, ctx) => {
|
|
52101
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51702
52102
|
if (!result.ok) {
|
|
51703
52103
|
return {
|
|
51704
52104
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51713,9 +52113,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
51713
52113
|
|
|
51714
52114
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
51715
52115
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
51716
|
-
return new APIPromise($
|
|
52116
|
+
return new APIPromise($do65(client, request, options));
|
|
51717
52117
|
}
|
|
51718
|
-
async function $
|
|
52118
|
+
async function $do65(client, request, options) {
|
|
51719
52119
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51720
52120
|
if (!parsed.ok) {
|
|
51721
52121
|
return [parsed, { status: "invalid" }];
|
|
@@ -51725,7 +52125,6 @@ async function $do63(client, request, options) {
|
|
|
51725
52125
|
const path = pathToFunc("/v0/uniswap/quote/buy_exactly/get")();
|
|
51726
52126
|
const query = encodeFormQuery({
|
|
51727
52127
|
amount_out: payload.amount_out,
|
|
51728
|
-
block: payload.block,
|
|
51729
52128
|
chain: payload.chain,
|
|
51730
52129
|
fee: payload.fee,
|
|
51731
52130
|
token_in: payload.token_in,
|
|
@@ -51775,7 +52174,7 @@ async function $do63(client, request, options) {
|
|
|
51775
52174
|
const responseFields = {
|
|
51776
52175
|
HttpMeta: { Response: response, Request: req }
|
|
51777
52176
|
};
|
|
51778
|
-
const [result] = await match(json(200, UniswapBuyQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52177
|
+
const [result] = await match(json(200, UniswapBuyQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51779
52178
|
if (!result.ok) {
|
|
51780
52179
|
return [result, { status: "complete", request: req, response }];
|
|
51781
52180
|
}
|
|
@@ -51795,12 +52194,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
51795
52194
|
});
|
|
51796
52195
|
|
|
51797
52196
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
51798
|
-
var
|
|
52197
|
+
var args65, tool$uniswapV3QuoteBuyExactly;
|
|
51799
52198
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
51800
52199
|
init_uniswapV3QuoteBuyExactly();
|
|
51801
52200
|
init_operations();
|
|
51802
52201
|
init_tools();
|
|
51803
|
-
|
|
52202
|
+
args65 = {
|
|
51804
52203
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
51805
52204
|
};
|
|
51806
52205
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -51812,9 +52211,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51812
52211
|
|
|
51813
52212
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51814
52213
|
into account the current pool state and the specified fee tier.`,
|
|
51815
|
-
args:
|
|
51816
|
-
tool: async (client,
|
|
51817
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
52214
|
+
args: args65,
|
|
52215
|
+
tool: async (client, args66, ctx) => {
|
|
52216
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51818
52217
|
if (!result.ok) {
|
|
51819
52218
|
return {
|
|
51820
52219
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51829,9 +52228,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51829
52228
|
|
|
51830
52229
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
51831
52230
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
51832
|
-
return new APIPromise($
|
|
52231
|
+
return new APIPromise($do66(client, request, options));
|
|
51833
52232
|
}
|
|
51834
|
-
async function $
|
|
52233
|
+
async function $do66(client, request, options) {
|
|
51835
52234
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51836
52235
|
if (!parsed.ok) {
|
|
51837
52236
|
return [parsed, { status: "invalid" }];
|
|
@@ -51841,7 +52240,6 @@ async function $do64(client, request, options) {
|
|
|
51841
52240
|
const path = pathToFunc("/v0/uniswap/quote/sell_exactly/get")();
|
|
51842
52241
|
const query = encodeFormQuery({
|
|
51843
52242
|
amount_in: payload.amount_in,
|
|
51844
|
-
block: payload.block,
|
|
51845
52243
|
chain: payload.chain,
|
|
51846
52244
|
fee: payload.fee,
|
|
51847
52245
|
token_in: payload.token_in,
|
|
@@ -51891,7 +52289,7 @@ async function $do64(client, request, options) {
|
|
|
51891
52289
|
const responseFields = {
|
|
51892
52290
|
HttpMeta: { Response: response, Request: req }
|
|
51893
52291
|
};
|
|
51894
|
-
const [result] = await match(json(200, UniswapSellQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52292
|
+
const [result] = await match(json(200, UniswapSellQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51895
52293
|
if (!result.ok) {
|
|
51896
52294
|
return [result, { status: "complete", request: req, response }];
|
|
51897
52295
|
}
|
|
@@ -51911,12 +52309,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
51911
52309
|
});
|
|
51912
52310
|
|
|
51913
52311
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
51914
|
-
var
|
|
52312
|
+
var args66, tool$uniswapV3QuoteSellExactly;
|
|
51915
52313
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
51916
52314
|
init_uniswapV3QuoteSellExactly();
|
|
51917
52315
|
init_operations();
|
|
51918
52316
|
init_tools();
|
|
51919
|
-
|
|
52317
|
+
args66 = {
|
|
51920
52318
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
51921
52319
|
};
|
|
51922
52320
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -51928,9 +52326,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51928
52326
|
|
|
51929
52327
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51930
52328
|
into account the current pool state and the specified fee tier.`,
|
|
51931
|
-
args:
|
|
51932
|
-
tool: async (client,
|
|
51933
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
52329
|
+
args: args66,
|
|
52330
|
+
tool: async (client, args67, ctx) => {
|
|
52331
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51934
52332
|
if (!result.ok) {
|
|
51935
52333
|
return {
|
|
51936
52334
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51945,9 +52343,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51945
52343
|
|
|
51946
52344
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
51947
52345
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
51948
|
-
return new APIPromise($
|
|
52346
|
+
return new APIPromise($do67(client, request, options));
|
|
51949
52347
|
}
|
|
51950
|
-
async function $
|
|
52348
|
+
async function $do67(client, request, options) {
|
|
51951
52349
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51952
52350
|
if (!parsed.ok) {
|
|
51953
52351
|
return [parsed, { status: "invalid" }];
|
|
@@ -51999,7 +52397,7 @@ async function $do65(client, request, options) {
|
|
|
51999
52397
|
const responseFields = {
|
|
52000
52398
|
HttpMeta: { Response: response, Request: req }
|
|
52001
52399
|
};
|
|
52002
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52400
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52003
52401
|
if (!result.ok) {
|
|
52004
52402
|
return [result, { status: "complete", request: req, response }];
|
|
52005
52403
|
}
|
|
@@ -52018,12 +52416,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
52018
52416
|
});
|
|
52019
52417
|
|
|
52020
52418
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
52021
|
-
var
|
|
52419
|
+
var args67, tool$uniswapV3SwapBuyExactly;
|
|
52022
52420
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
52023
52421
|
init_uniswapV3SwapBuyExactly();
|
|
52024
52422
|
init_components();
|
|
52025
52423
|
init_tools();
|
|
52026
|
-
|
|
52424
|
+
args67 = {
|
|
52027
52425
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
52028
52426
|
};
|
|
52029
52427
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -52037,9 +52435,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52037
52435
|
provide the necessary transaction details, including the token to buy, the token to
|
|
52038
52436
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
52039
52437
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52040
|
-
args:
|
|
52041
|
-
tool: async (client,
|
|
52042
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
52438
|
+
args: args67,
|
|
52439
|
+
tool: async (client, args68, ctx) => {
|
|
52440
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52043
52441
|
if (!result.ok) {
|
|
52044
52442
|
return {
|
|
52045
52443
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52054,9 +52452,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52054
52452
|
|
|
52055
52453
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
52056
52454
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
52057
|
-
return new APIPromise($
|
|
52455
|
+
return new APIPromise($do68(client, request, options));
|
|
52058
52456
|
}
|
|
52059
|
-
async function $
|
|
52457
|
+
async function $do68(client, request, options) {
|
|
52060
52458
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52061
52459
|
if (!parsed.ok) {
|
|
52062
52460
|
return [parsed, { status: "invalid" }];
|
|
@@ -52108,7 +52506,7 @@ async function $do66(client, request, options) {
|
|
|
52108
52506
|
const responseFields = {
|
|
52109
52507
|
HttpMeta: { Response: response, Request: req }
|
|
52110
52508
|
};
|
|
52111
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52509
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52112
52510
|
if (!result.ok) {
|
|
52113
52511
|
return [result, { status: "complete", request: req, response }];
|
|
52114
52512
|
}
|
|
@@ -52127,12 +52525,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
52127
52525
|
});
|
|
52128
52526
|
|
|
52129
52527
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
52130
|
-
var
|
|
52528
|
+
var args68, tool$uniswapV3SwapSellExactly;
|
|
52131
52529
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
52132
52530
|
init_uniswapV3SwapSellExactly();
|
|
52133
52531
|
init_components();
|
|
52134
52532
|
init_tools();
|
|
52135
|
-
|
|
52533
|
+
args68 = {
|
|
52136
52534
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
52137
52535
|
};
|
|
52138
52536
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -52146,9 +52544,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52146
52544
|
provide the necessary transaction details, including the token to sell, the token to
|
|
52147
52545
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
52148
52546
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52149
|
-
args:
|
|
52150
|
-
tool: async (client,
|
|
52151
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
52547
|
+
args: args68,
|
|
52548
|
+
tool: async (client, args69, ctx) => {
|
|
52549
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52152
52550
|
if (!result.ok) {
|
|
52153
52551
|
return {
|
|
52154
52552
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52163,9 +52561,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52163
52561
|
|
|
52164
52562
|
// src/funcs/universalAllowance.ts
|
|
52165
52563
|
function universalAllowance(client, request, options) {
|
|
52166
|
-
return new APIPromise($
|
|
52564
|
+
return new APIPromise($do69(client, request, options));
|
|
52167
52565
|
}
|
|
52168
|
-
async function $
|
|
52566
|
+
async function $do69(client, request, options) {
|
|
52169
52567
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52170
52568
|
if (!parsed.ok) {
|
|
52171
52569
|
return [parsed, { status: "invalid" }];
|
|
@@ -52174,7 +52572,6 @@ async function $do67(client, request, options) {
|
|
|
52174
52572
|
const body = null;
|
|
52175
52573
|
const path = pathToFunc("/v0/generic/allowance/get")();
|
|
52176
52574
|
const query = encodeFormQuery({
|
|
52177
|
-
block: payload.block,
|
|
52178
52575
|
chain: payload.chain,
|
|
52179
52576
|
contract_name: payload.contract_name,
|
|
52180
52577
|
token: payload.token,
|
|
@@ -52224,7 +52621,7 @@ async function $do67(client, request, options) {
|
|
|
52224
52621
|
const responseFields = {
|
|
52225
52622
|
HttpMeta: { Response: response, Request: req }
|
|
52226
52623
|
};
|
|
52227
|
-
const [result] = await match(json(200, AllowanceInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52624
|
+
const [result] = await match(json(200, AllowanceInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52228
52625
|
if (!result.ok) {
|
|
52229
52626
|
return [result, { status: "complete", request: req, response }];
|
|
52230
52627
|
}
|
|
@@ -52244,12 +52641,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
52244
52641
|
});
|
|
52245
52642
|
|
|
52246
52643
|
// src/mcp-server/tools/universalAllowance.ts
|
|
52247
|
-
var
|
|
52644
|
+
var args69, tool$universalAllowance;
|
|
52248
52645
|
var init_universalAllowance2 = __esm(() => {
|
|
52249
52646
|
init_universalAllowance();
|
|
52250
52647
|
init_operations();
|
|
52251
52648
|
init_tools();
|
|
52252
|
-
|
|
52649
|
+
args69 = {
|
|
52253
52650
|
request: GenericAllowanceRequest$inboundSchema
|
|
52254
52651
|
};
|
|
52255
52652
|
tool$universalAllowance = {
|
|
@@ -52263,9 +52660,9 @@ tokens on their behalf.
|
|
|
52263
52660
|
This is a crucial step before engaging in any transactions or operations within
|
|
52264
52661
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
52265
52662
|
the user's tokens securely and efficiently.`,
|
|
52266
|
-
args:
|
|
52267
|
-
tool: async (client,
|
|
52268
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
52663
|
+
args: args69,
|
|
52664
|
+
tool: async (client, args70, ctx) => {
|
|
52665
|
+
const [result, apiCall] = await universalAllowance(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52269
52666
|
if (!result.ok) {
|
|
52270
52667
|
return {
|
|
52271
52668
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52280,9 +52677,9 @@ the user's tokens securely and efficiently.`,
|
|
|
52280
52677
|
|
|
52281
52678
|
// src/funcs/universalAllowanceSet.ts
|
|
52282
52679
|
function universalAllowanceSet(client, request, options) {
|
|
52283
|
-
return new APIPromise($
|
|
52680
|
+
return new APIPromise($do70(client, request, options));
|
|
52284
52681
|
}
|
|
52285
|
-
async function $
|
|
52682
|
+
async function $do70(client, request, options) {
|
|
52286
52683
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52287
52684
|
if (!parsed.ok) {
|
|
52288
52685
|
return [parsed, { status: "invalid" }];
|
|
@@ -52334,7 +52731,7 @@ async function $do68(client, request, options) {
|
|
|
52334
52731
|
const responseFields = {
|
|
52335
52732
|
HttpMeta: { Response: response, Request: req }
|
|
52336
52733
|
};
|
|
52337
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52734
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52338
52735
|
if (!result.ok) {
|
|
52339
52736
|
return [result, { status: "complete", request: req, response }];
|
|
52340
52737
|
}
|
|
@@ -52353,28 +52750,29 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
52353
52750
|
});
|
|
52354
52751
|
|
|
52355
52752
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
52356
|
-
var
|
|
52753
|
+
var args70, tool$universalAllowanceSet;
|
|
52357
52754
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
52358
52755
|
init_universalAllowanceSet();
|
|
52359
52756
|
init_components();
|
|
52360
52757
|
init_tools();
|
|
52361
|
-
|
|
52758
|
+
args70 = {
|
|
52362
52759
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
52363
52760
|
};
|
|
52364
52761
|
tool$universalAllowanceSet = {
|
|
52365
52762
|
name: "universal-allowance-set",
|
|
52366
|
-
description: `Set Allowance
|
|
52763
|
+
description: `Set Allowance
|
|
52367
52764
|
|
|
52368
|
-
This endpoint allows users to modify the token allowance
|
|
52765
|
+
This endpoint allows users to modify the token allowance on any ERC-20 token for
|
|
52766
|
+
a specific protocol.
|
|
52369
52767
|
|
|
52370
52768
|
In decentralized finance (DeFi), setting an allowance is a necessary step to
|
|
52371
52769
|
authorize a protocol to spend a specified amount of tokens on behalf of the user.
|
|
52372
52770
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
52373
52771
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
52374
52772
|
within the DeFi ecosystem.`,
|
|
52375
|
-
args:
|
|
52376
|
-
tool: async (client,
|
|
52377
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
52773
|
+
args: args70,
|
|
52774
|
+
tool: async (client, args71, ctx) => {
|
|
52775
|
+
const [result, apiCall] = await universalAllowanceSet(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52378
52776
|
if (!result.ok) {
|
|
52379
52777
|
return {
|
|
52380
52778
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52389,9 +52787,9 @@ within the DeFi ecosystem.`,
|
|
|
52389
52787
|
|
|
52390
52788
|
// src/funcs/universalEns.ts
|
|
52391
52789
|
function universalEns(client, request, options) {
|
|
52392
|
-
return new APIPromise($
|
|
52790
|
+
return new APIPromise($do71(client, request, options));
|
|
52393
52791
|
}
|
|
52394
|
-
async function $
|
|
52792
|
+
async function $do71(client, request, options) {
|
|
52395
52793
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52396
52794
|
if (!parsed.ok) {
|
|
52397
52795
|
return [parsed, { status: "invalid" }];
|
|
@@ -52400,7 +52798,6 @@ async function $do69(client, request, options) {
|
|
|
52400
52798
|
const body = null;
|
|
52401
52799
|
const path = pathToFunc("/v0/generic/ens/get")();
|
|
52402
52800
|
const query = encodeFormQuery({
|
|
52403
|
-
block: payload.block,
|
|
52404
52801
|
chain: payload.chain,
|
|
52405
52802
|
ens_name: payload.ens_name
|
|
52406
52803
|
});
|
|
@@ -52448,7 +52845,7 @@ async function $do69(client, request, options) {
|
|
|
52448
52845
|
const responseFields = {
|
|
52449
52846
|
HttpMeta: { Response: response, Request: req }
|
|
52450
52847
|
};
|
|
52451
|
-
const [result] = await match(json(200, EnsNameInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52848
|
+
const [result] = await match(json(200, EnsNameInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52452
52849
|
if (!result.ok) {
|
|
52453
52850
|
return [result, { status: "complete", request: req, response }];
|
|
52454
52851
|
}
|
|
@@ -52468,12 +52865,12 @@ var init_universalEns = __esm(() => {
|
|
|
52468
52865
|
});
|
|
52469
52866
|
|
|
52470
52867
|
// src/mcp-server/tools/universalEns.ts
|
|
52471
|
-
var
|
|
52868
|
+
var args71, tool$universalEns;
|
|
52472
52869
|
var init_universalEns2 = __esm(() => {
|
|
52473
52870
|
init_universalEns();
|
|
52474
52871
|
init_operations();
|
|
52475
52872
|
init_tools();
|
|
52476
|
-
|
|
52873
|
+
args71 = {
|
|
52477
52874
|
request: GenericEnsRequest$inboundSchema
|
|
52478
52875
|
};
|
|
52479
52876
|
tool$universalEns = {
|
|
@@ -52484,9 +52881,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
52484
52881
|
|
|
52485
52882
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
52486
52883
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
52487
|
-
args:
|
|
52488
|
-
tool: async (client,
|
|
52489
|
-
const [result, apiCall] = await universalEns(client,
|
|
52884
|
+
args: args71,
|
|
52885
|
+
tool: async (client, args72, ctx) => {
|
|
52886
|
+
const [result, apiCall] = await universalEns(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52490
52887
|
if (!result.ok) {
|
|
52491
52888
|
return {
|
|
52492
52889
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52501,9 +52898,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
52501
52898
|
|
|
52502
52899
|
// src/funcs/universalPortfolio.ts
|
|
52503
52900
|
function universalPortfolio(client, request, options) {
|
|
52504
|
-
return new APIPromise($
|
|
52901
|
+
return new APIPromise($do72(client, request, options));
|
|
52505
52902
|
}
|
|
52506
|
-
async function $
|
|
52903
|
+
async function $do72(client, request, options) {
|
|
52507
52904
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52508
52905
|
if (!parsed.ok) {
|
|
52509
52906
|
return [parsed, { status: "invalid" }];
|
|
@@ -52512,7 +52909,6 @@ async function $do70(client, request, options) {
|
|
|
52512
52909
|
const body = null;
|
|
52513
52910
|
const path = pathToFunc("/v0/generic/portfolio/get")();
|
|
52514
52911
|
const query = encodeFormQuery({
|
|
52515
|
-
block: payload.block,
|
|
52516
52912
|
chain: payload.chain,
|
|
52517
52913
|
user: payload.user
|
|
52518
52914
|
});
|
|
@@ -52560,7 +52956,7 @@ async function $do70(client, request, options) {
|
|
|
52560
52956
|
const responseFields = {
|
|
52561
52957
|
HttpMeta: { Response: response, Request: req }
|
|
52562
52958
|
};
|
|
52563
|
-
const [result] = await match(json(200, Portfolio$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52959
|
+
const [result] = await match(json(200, Portfolio$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52564
52960
|
if (!result.ok) {
|
|
52565
52961
|
return [result, { status: "complete", request: req, response }];
|
|
52566
52962
|
}
|
|
@@ -52580,12 +52976,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
52580
52976
|
});
|
|
52581
52977
|
|
|
52582
52978
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
52583
|
-
var
|
|
52979
|
+
var args72, tool$universalPortfolio;
|
|
52584
52980
|
var init_universalPortfolio2 = __esm(() => {
|
|
52585
52981
|
init_universalPortfolio();
|
|
52586
52982
|
init_operations();
|
|
52587
52983
|
init_tools();
|
|
52588
|
-
|
|
52984
|
+
args72 = {
|
|
52589
52985
|
request: GenericPortfolioRequest$inboundSchema
|
|
52590
52986
|
};
|
|
52591
52987
|
tool$universalPortfolio = {
|
|
@@ -52596,9 +52992,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
52596
52992
|
|
|
52597
52993
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
52598
52994
|
balances, including their respective values and quantities.`,
|
|
52599
|
-
args:
|
|
52600
|
-
tool: async (client,
|
|
52601
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
52995
|
+
args: args72,
|
|
52996
|
+
tool: async (client, args73, ctx) => {
|
|
52997
|
+
const [result, apiCall] = await universalPortfolio(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52602
52998
|
if (!result.ok) {
|
|
52603
52999
|
return {
|
|
52604
53000
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52613,9 +53009,9 @@ balances, including their respective values and quantities.`,
|
|
|
52613
53009
|
|
|
52614
53010
|
// src/funcs/universalSupportedTokens.ts
|
|
52615
53011
|
function universalSupportedTokens(client, request, options) {
|
|
52616
|
-
return new APIPromise($
|
|
53012
|
+
return new APIPromise($do73(client, request, options));
|
|
52617
53013
|
}
|
|
52618
|
-
async function $
|
|
53014
|
+
async function $do73(client, request, options) {
|
|
52619
53015
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52620
53016
|
if (!parsed.ok) {
|
|
52621
53017
|
return [parsed, { status: "invalid" }];
|
|
@@ -52624,7 +53020,6 @@ async function $do71(client, request, options) {
|
|
|
52624
53020
|
const body = null;
|
|
52625
53021
|
const path = pathToFunc("/v0/generic/supported_tokens/get")();
|
|
52626
53022
|
const query = encodeFormQuery({
|
|
52627
|
-
block: payload.block,
|
|
52628
53023
|
chain: payload.chain
|
|
52629
53024
|
});
|
|
52630
53025
|
const headers = new Headers(compactMap({
|
|
@@ -52671,7 +53066,7 @@ async function $do71(client, request, options) {
|
|
|
52671
53066
|
const responseFields = {
|
|
52672
53067
|
HttpMeta: { Response: response, Request: req }
|
|
52673
53068
|
};
|
|
52674
|
-
const [result] = await match(json(200, TokenInfo$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53069
|
+
const [result] = await match(json(200, TokenInfo$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52675
53070
|
if (!result.ok) {
|
|
52676
53071
|
return [result, { status: "complete", request: req, response }];
|
|
52677
53072
|
}
|
|
@@ -52691,12 +53086,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
52691
53086
|
});
|
|
52692
53087
|
|
|
52693
53088
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
52694
|
-
var
|
|
53089
|
+
var args73, tool$universalSupportedTokens;
|
|
52695
53090
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
52696
53091
|
init_universalSupportedTokens();
|
|
52697
53092
|
init_operations();
|
|
52698
53093
|
init_tools();
|
|
52699
|
-
|
|
53094
|
+
args73 = {
|
|
52700
53095
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
52701
53096
|
};
|
|
52702
53097
|
tool$universalSupportedTokens = {
|
|
@@ -52704,9 +53099,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
52704
53099
|
description: `List supported tokens
|
|
52705
53100
|
|
|
52706
53101
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
52707
|
-
args:
|
|
52708
|
-
tool: async (client,
|
|
52709
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
53102
|
+
args: args73,
|
|
53103
|
+
tool: async (client, args74, ctx) => {
|
|
53104
|
+
const [result, apiCall] = await universalSupportedTokens(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52710
53105
|
if (!result.ok) {
|
|
52711
53106
|
return {
|
|
52712
53107
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52721,9 +53116,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
52721
53116
|
|
|
52722
53117
|
// src/funcs/universalUnwrapWeth.ts
|
|
52723
53118
|
function universalUnwrapWeth(client, request, options) {
|
|
52724
|
-
return new APIPromise($
|
|
53119
|
+
return new APIPromise($do74(client, request, options));
|
|
52725
53120
|
}
|
|
52726
|
-
async function $
|
|
53121
|
+
async function $do74(client, request, options) {
|
|
52727
53122
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52728
53123
|
if (!parsed.ok) {
|
|
52729
53124
|
return [parsed, { status: "invalid" }];
|
|
@@ -52775,7 +53170,7 @@ async function $do72(client, request, options) {
|
|
|
52775
53170
|
const responseFields = {
|
|
52776
53171
|
HttpMeta: { Response: response, Request: req }
|
|
52777
53172
|
};
|
|
52778
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53173
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52779
53174
|
if (!result.ok) {
|
|
52780
53175
|
return [result, { status: "complete", request: req, response }];
|
|
52781
53176
|
}
|
|
@@ -52794,12 +53189,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
52794
53189
|
});
|
|
52795
53190
|
|
|
52796
53191
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
52797
|
-
var
|
|
53192
|
+
var args74, tool$universalUnwrapWeth;
|
|
52798
53193
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
52799
53194
|
init_universalUnwrapWeth();
|
|
52800
53195
|
init_components();
|
|
52801
53196
|
init_tools();
|
|
52802
|
-
|
|
53197
|
+
args74 = {
|
|
52803
53198
|
request: UnwrapWethRequest$inboundSchema
|
|
52804
53199
|
};
|
|
52805
53200
|
tool$universalUnwrapWeth = {
|
|
@@ -52808,9 +53203,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
52808
53203
|
|
|
52809
53204
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
52810
53205
|
can be used for gas and other native purposes.`,
|
|
52811
|
-
args:
|
|
52812
|
-
tool: async (client,
|
|
52813
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
53206
|
+
args: args74,
|
|
53207
|
+
tool: async (client, args75, ctx) => {
|
|
53208
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52814
53209
|
if (!result.ok) {
|
|
52815
53210
|
return {
|
|
52816
53211
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52825,9 +53220,9 @@ can be used for gas and other native purposes.`,
|
|
|
52825
53220
|
|
|
52826
53221
|
// src/funcs/universalVisualizePortfolio.ts
|
|
52827
53222
|
function universalVisualizePortfolio(client, request, options) {
|
|
52828
|
-
return new APIPromise($
|
|
53223
|
+
return new APIPromise($do75(client, request, options));
|
|
52829
53224
|
}
|
|
52830
|
-
async function $
|
|
53225
|
+
async function $do75(client, request, options) {
|
|
52831
53226
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52832
53227
|
if (!parsed.ok) {
|
|
52833
53228
|
return [parsed, { status: "invalid" }];
|
|
@@ -52836,7 +53231,6 @@ async function $do73(client, request, options) {
|
|
|
52836
53231
|
const body = null;
|
|
52837
53232
|
const path = pathToFunc("/v0/generic/visualize_portfolio/get")();
|
|
52838
53233
|
const query = encodeFormQuery({
|
|
52839
|
-
block: payload.block,
|
|
52840
53234
|
chain: payload.chain,
|
|
52841
53235
|
user: payload.user
|
|
52842
53236
|
});
|
|
@@ -52884,7 +53278,7 @@ async function $do73(client, request, options) {
|
|
|
52884
53278
|
const responseFields = {
|
|
52885
53279
|
HttpMeta: { Response: response, Request: req }
|
|
52886
53280
|
};
|
|
52887
|
-
const [result] = await match(json(200, Image$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53281
|
+
const [result] = await match(json(200, Image$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52888
53282
|
if (!result.ok) {
|
|
52889
53283
|
return [result, { status: "complete", request: req, response }];
|
|
52890
53284
|
}
|
|
@@ -52904,12 +53298,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
52904
53298
|
});
|
|
52905
53299
|
|
|
52906
53300
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
52907
|
-
var
|
|
53301
|
+
var args75, tool$universalVisualizePortfolio;
|
|
52908
53302
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
52909
53303
|
init_universalVisualizePortfolio();
|
|
52910
53304
|
init_operations();
|
|
52911
53305
|
init_tools();
|
|
52912
|
-
|
|
53306
|
+
args75 = {
|
|
52913
53307
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
52914
53308
|
};
|
|
52915
53309
|
tool$universalVisualizePortfolio = {
|
|
@@ -52921,9 +53315,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
52921
53315
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
52922
53316
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
52923
53317
|
USD.`,
|
|
52924
|
-
args:
|
|
52925
|
-
tool: async (client,
|
|
52926
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
53318
|
+
args: args75,
|
|
53319
|
+
tool: async (client, args76, ctx) => {
|
|
53320
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52927
53321
|
if (!result.ok) {
|
|
52928
53322
|
return {
|
|
52929
53323
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52938,9 +53332,9 @@ USD.`,
|
|
|
52938
53332
|
|
|
52939
53333
|
// src/funcs/universalWrapEth.ts
|
|
52940
53334
|
function universalWrapEth(client, request, options) {
|
|
52941
|
-
return new APIPromise($
|
|
53335
|
+
return new APIPromise($do76(client, request, options));
|
|
52942
53336
|
}
|
|
52943
|
-
async function $
|
|
53337
|
+
async function $do76(client, request, options) {
|
|
52944
53338
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52945
53339
|
if (!parsed.ok) {
|
|
52946
53340
|
return [parsed, { status: "invalid" }];
|
|
@@ -52992,7 +53386,7 @@ async function $do74(client, request, options) {
|
|
|
52992
53386
|
const responseFields = {
|
|
52993
53387
|
HttpMeta: { Response: response, Request: req }
|
|
52994
53388
|
};
|
|
52995
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53389
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52996
53390
|
if (!result.ok) {
|
|
52997
53391
|
return [result, { status: "complete", request: req, response }];
|
|
52998
53392
|
}
|
|
@@ -53011,12 +53405,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
53011
53405
|
});
|
|
53012
53406
|
|
|
53013
53407
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
53014
|
-
var
|
|
53408
|
+
var args76, tool$universalWrapEth;
|
|
53015
53409
|
var init_universalWrapEth2 = __esm(() => {
|
|
53016
53410
|
init_universalWrapEth();
|
|
53017
53411
|
init_components();
|
|
53018
53412
|
init_tools();
|
|
53019
|
-
|
|
53413
|
+
args76 = {
|
|
53020
53414
|
request: WrapEthRequest$inboundSchema
|
|
53021
53415
|
};
|
|
53022
53416
|
tool$universalWrapEth = {
|
|
@@ -53025,9 +53419,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
53025
53419
|
|
|
53026
53420
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
53027
53421
|
it to be traded on DeFi protocols.`,
|
|
53028
|
-
args:
|
|
53029
|
-
tool: async (client,
|
|
53030
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
53422
|
+
args: args76,
|
|
53423
|
+
tool: async (client, args77, ctx) => {
|
|
53424
|
+
const [result, apiCall] = await universalWrapEth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53031
53425
|
if (!result.ok) {
|
|
53032
53426
|
return {
|
|
53033
53427
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53044,7 +53438,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53044
53438
|
function createMCPServer(deps) {
|
|
53045
53439
|
const server = new McpServer({
|
|
53046
53440
|
name: "CompassApiSDK",
|
|
53047
|
-
version: "0.5.
|
|
53441
|
+
version: "0.5.9"
|
|
53048
53442
|
});
|
|
53049
53443
|
const client = new CompassApiSDKCore({
|
|
53050
53444
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -53121,13 +53515,15 @@ function createMCPServer(deps) {
|
|
|
53121
53515
|
tool(tool$universalAllowanceSet);
|
|
53122
53516
|
tool(tool$pendlePosition);
|
|
53123
53517
|
tool(tool$pendlePositions);
|
|
53124
|
-
tool(tool$pendleMarkets);
|
|
53125
53518
|
tool(tool$pendleMarket);
|
|
53519
|
+
tool(tool$pendleMarkets);
|
|
53126
53520
|
tool(tool$pendleBuyPt);
|
|
53127
53521
|
tool(tool$pendleSellPt);
|
|
53128
53522
|
tool(tool$pendleBuyYt);
|
|
53129
53523
|
tool(tool$pendleSellYt);
|
|
53130
53524
|
tool(tool$pendleRedeemYield);
|
|
53525
|
+
tool(tool$pendleAddLiquidity);
|
|
53526
|
+
tool(tool$pendleRemoveLiquidity);
|
|
53131
53527
|
tool(tool$transactionBatchingAuthorization);
|
|
53132
53528
|
tool(tool$transactionBatchingExecute);
|
|
53133
53529
|
tool(tool$transactionBatchingAaveLoop);
|
|
@@ -53173,6 +53569,7 @@ var init_server2 = __esm(() => {
|
|
|
53173
53569
|
init_morphoVaults2();
|
|
53174
53570
|
init_morphoWithdraw2();
|
|
53175
53571
|
init_morphoWithdrawCollateral2();
|
|
53572
|
+
init_pendleAddLiquidity2();
|
|
53176
53573
|
init_pendleBuyPt2();
|
|
53177
53574
|
init_pendleBuyYt2();
|
|
53178
53575
|
init_pendleMarket2();
|
|
@@ -53180,6 +53577,7 @@ var init_server2 = __esm(() => {
|
|
|
53180
53577
|
init_pendlePosition2();
|
|
53181
53578
|
init_pendlePositions2();
|
|
53182
53579
|
init_pendleRedeemYield2();
|
|
53580
|
+
init_pendleRemoveLiquidity2();
|
|
53183
53581
|
init_pendleSellPt2();
|
|
53184
53582
|
init_pendleSellYt2();
|
|
53185
53583
|
init_skyBuy2();
|
|
@@ -54403,7 +54801,7 @@ var routes = an({
|
|
|
54403
54801
|
var app = He(routes, {
|
|
54404
54802
|
name: "mcp",
|
|
54405
54803
|
versionInfo: {
|
|
54406
|
-
currentVersion: "0.5.
|
|
54804
|
+
currentVersion: "0.5.9"
|
|
54407
54805
|
}
|
|
54408
54806
|
});
|
|
54409
54807
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54411,5 +54809,5 @@ export {
|
|
|
54411
54809
|
app
|
|
54412
54810
|
};
|
|
54413
54811
|
|
|
54414
|
-
//# debugId=
|
|
54812
|
+
//# debugId=FCE0B2936D253E6D64756E2164756E21
|
|
54415
54813
|
//# sourceMappingURL=mcp-server.js.map
|