@compass-labs/api-sdk 0.5.8 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -26
- package/bin/mcp-server.js +949 -539
- 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/config.js.map +1 -1
- 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/mcp-server.js.map +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 +94 -22
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.js +95 -28
- 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 -18
- 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/config.js.map +1 -1
- 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/mcp-server.js.map +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 +94 -22
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/aavelooprequest.js +86 -25
- 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 -18
- 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/pendle/README.md +184 -17
- package/docs/sdks/transactionbatching/README.md +4 -4
- package/docs/sdks/universal/README.md +3 -2
- 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 +191 -42
- 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 -31
- 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.10",
|
|
34209
|
+
genVersion: "2.623.0",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.5.10 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/
|
|
35130
|
-
var
|
|
35131
|
-
var
|
|
35132
|
-
|
|
35129
|
+
// src/models/errors/compassapisdkerror.ts
|
|
35130
|
+
var CompassAPISDKError;
|
|
35131
|
+
var init_compassapisdkerror = __esm(() => {
|
|
35132
|
+
CompassAPISDKError = class CompassAPISDKError extends Error {
|
|
35133
35133
|
statusCode;
|
|
35134
|
-
contentType;
|
|
35135
35134
|
body;
|
|
35135
|
+
headers;
|
|
35136
|
+
contentType;
|
|
35136
35137
|
rawResponse;
|
|
35137
|
-
constructor(message,
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
this.
|
|
35144
|
-
this.
|
|
35145
|
-
|
|
35146
|
-
|
|
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
|
+
|
|
35150
|
+
// src/models/errors/apierror.ts
|
|
35151
|
+
var APIError;
|
|
35152
|
+
var init_apierror = __esm(() => {
|
|
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,36 +36293,53 @@ 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$, MaxSlippagePercent$inboundSchema, MaxSlippagePercent$outboundSchema, MaxSlippagePercent$, LoanToValue$inboundSchema, LoanToValue$outboundSchema, LoanToValue$, 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$ ||= {});
|
|
36315
|
+
MaxSlippagePercent$inboundSchema = unionType([numberType(), stringType()]);
|
|
36316
|
+
MaxSlippagePercent$outboundSchema = unionType([numberType(), stringType()]);
|
|
36317
|
+
((MaxSlippagePercent$) => {
|
|
36318
|
+
MaxSlippagePercent$.inboundSchema = MaxSlippagePercent$inboundSchema;
|
|
36319
|
+
MaxSlippagePercent$.outboundSchema = MaxSlippagePercent$outboundSchema;
|
|
36320
|
+
})(MaxSlippagePercent$ ||= {});
|
|
36321
|
+
LoanToValue$inboundSchema = unionType([numberType(), stringType()]);
|
|
36322
|
+
LoanToValue$outboundSchema = unionType([numberType(), stringType()]);
|
|
36323
|
+
((LoanToValue$) => {
|
|
36324
|
+
LoanToValue$.inboundSchema = LoanToValue$inboundSchema;
|
|
36325
|
+
LoanToValue$.outboundSchema = LoanToValue$outboundSchema;
|
|
36326
|
+
})(LoanToValue$ ||= {});
|
|
36238
36327
|
AaveLoopRequest$inboundSchema = objectType({
|
|
36239
36328
|
chain: Chain$inboundSchema,
|
|
36240
36329
|
sender: stringType(),
|
|
36241
36330
|
signed_authorization: SignedAuthorization$inboundSchema,
|
|
36242
36331
|
collateral_token: TokenEnum$inboundSchema,
|
|
36243
36332
|
borrow_token: TokenEnum$inboundSchema,
|
|
36244
|
-
|
|
36245
|
-
|
|
36246
|
-
max_slippage_percent: numberType(),
|
|
36247
|
-
loan_to_value: numberType()
|
|
36333
|
+
initial_collateral_amount: unionType([numberType(), stringType()]),
|
|
36334
|
+
multiplier: unionType([numberType(), stringType()]),
|
|
36335
|
+
max_slippage_percent: unionType([numberType(), stringType()]),
|
|
36336
|
+
loan_to_value: unionType([numberType(), stringType()])
|
|
36248
36337
|
}).transform((v2) => {
|
|
36249
36338
|
return remap(v2, {
|
|
36250
36339
|
signed_authorization: "signedAuthorization",
|
|
36251
36340
|
collateral_token: "collateralToken",
|
|
36252
36341
|
borrow_token: "borrowToken",
|
|
36253
|
-
|
|
36254
|
-
loop_count: "loopCount",
|
|
36342
|
+
initial_collateral_amount: "initialCollateralAmount",
|
|
36255
36343
|
max_slippage_percent: "maxSlippagePercent",
|
|
36256
36344
|
loan_to_value: "loanToValue"
|
|
36257
36345
|
});
|
|
@@ -36262,17 +36350,16 @@ var init_aavelooprequest = __esm(() => {
|
|
|
36262
36350
|
signedAuthorization: SignedAuthorization$outboundSchema,
|
|
36263
36351
|
collateralToken: TokenEnum$outboundSchema,
|
|
36264
36352
|
borrowToken: TokenEnum$outboundSchema,
|
|
36265
|
-
|
|
36266
|
-
|
|
36267
|
-
maxSlippagePercent: numberType(),
|
|
36268
|
-
loanToValue: numberType()
|
|
36353
|
+
initialCollateralAmount: unionType([numberType(), stringType()]),
|
|
36354
|
+
multiplier: unionType([numberType(), stringType()]),
|
|
36355
|
+
maxSlippagePercent: unionType([numberType(), stringType()]),
|
|
36356
|
+
loanToValue: unionType([numberType(), stringType()])
|
|
36269
36357
|
}).transform((v2) => {
|
|
36270
36358
|
return remap(v2, {
|
|
36271
36359
|
signedAuthorization: "signed_authorization",
|
|
36272
36360
|
collateralToken: "collateral_token",
|
|
36273
36361
|
borrowToken: "borrow_token",
|
|
36274
|
-
|
|
36275
|
-
loopCount: "loop_count",
|
|
36362
|
+
initialCollateralAmount: "initial_collateral_amount",
|
|
36276
36363
|
maxSlippagePercent: "max_slippage_percent",
|
|
36277
36364
|
loanToValue: "loan_to_value"
|
|
36278
36365
|
});
|
|
@@ -37923,6 +38010,43 @@ var init_morphowithdrawparams = __esm(() => {
|
|
|
37923
38010
|
})(MorphoWithdrawParams$ ||= {});
|
|
37924
38011
|
});
|
|
37925
38012
|
|
|
38013
|
+
// src/models/components/pendleaddliquidityparams.ts
|
|
38014
|
+
var PendleAddLiquidityParamsAmount$inboundSchema, PendleAddLiquidityParamsAmount$outboundSchema, PendleAddLiquidityParamsAmount$, PendleAddLiquidityParams$inboundSchema, PendleAddLiquidityParams$outboundSchema, PendleAddLiquidityParams$;
|
|
38015
|
+
var init_pendleaddliquidityparams = __esm(() => {
|
|
38016
|
+
init_esm();
|
|
38017
|
+
init_primitives();
|
|
38018
|
+
PendleAddLiquidityParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38019
|
+
PendleAddLiquidityParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38020
|
+
((PendleAddLiquidityParamsAmount$) => {
|
|
38021
|
+
PendleAddLiquidityParamsAmount$.inboundSchema = PendleAddLiquidityParamsAmount$inboundSchema;
|
|
38022
|
+
PendleAddLiquidityParamsAmount$.outboundSchema = PendleAddLiquidityParamsAmount$outboundSchema;
|
|
38023
|
+
})(PendleAddLiquidityParamsAmount$ ||= {});
|
|
38024
|
+
PendleAddLiquidityParams$inboundSchema = objectType({
|
|
38025
|
+
action_type: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
38026
|
+
market_address: stringType(),
|
|
38027
|
+
amount: unionType([numberType(), stringType()])
|
|
38028
|
+
}).transform((v2) => {
|
|
38029
|
+
return remap(v2, {
|
|
38030
|
+
action_type: "actionType",
|
|
38031
|
+
market_address: "marketAddress"
|
|
38032
|
+
});
|
|
38033
|
+
});
|
|
38034
|
+
PendleAddLiquidityParams$outboundSchema = objectType({
|
|
38035
|
+
actionType: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
38036
|
+
marketAddress: stringType(),
|
|
38037
|
+
amount: unionType([numberType(), stringType()])
|
|
38038
|
+
}).transform((v2) => {
|
|
38039
|
+
return remap(v2, {
|
|
38040
|
+
actionType: "action_type",
|
|
38041
|
+
marketAddress: "market_address"
|
|
38042
|
+
});
|
|
38043
|
+
});
|
|
38044
|
+
((PendleAddLiquidityParams$) => {
|
|
38045
|
+
PendleAddLiquidityParams$.inboundSchema = PendleAddLiquidityParams$inboundSchema;
|
|
38046
|
+
PendleAddLiquidityParams$.outboundSchema = PendleAddLiquidityParams$outboundSchema;
|
|
38047
|
+
})(PendleAddLiquidityParams$ ||= {});
|
|
38048
|
+
});
|
|
38049
|
+
|
|
37926
38050
|
// src/models/components/pendlebuyptparams.ts
|
|
37927
38051
|
var PendleBuyPtParamsAmount$inboundSchema, PendleBuyPtParamsAmount$outboundSchema, PendleBuyPtParamsAmount$, PendleBuyPtParams$inboundSchema, PendleBuyPtParams$outboundSchema, PendleBuyPtParams$;
|
|
37928
38052
|
var init_pendlebuyptparams = __esm(() => {
|
|
@@ -38026,6 +38150,43 @@ var init_pendleredeemyieldparams = __esm(() => {
|
|
|
38026
38150
|
})(PendleRedeemYieldParams$ ||= {});
|
|
38027
38151
|
});
|
|
38028
38152
|
|
|
38153
|
+
// src/models/components/pendleremoveliquidityparams.ts
|
|
38154
|
+
var PendleRemoveLiquidityParamsAmount$inboundSchema, PendleRemoveLiquidityParamsAmount$outboundSchema, PendleRemoveLiquidityParamsAmount$, PendleRemoveLiquidityParams$inboundSchema, PendleRemoveLiquidityParams$outboundSchema, PendleRemoveLiquidityParams$;
|
|
38155
|
+
var init_pendleremoveliquidityparams = __esm(() => {
|
|
38156
|
+
init_esm();
|
|
38157
|
+
init_primitives();
|
|
38158
|
+
PendleRemoveLiquidityParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38159
|
+
PendleRemoveLiquidityParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38160
|
+
((PendleRemoveLiquidityParamsAmount$) => {
|
|
38161
|
+
PendleRemoveLiquidityParamsAmount$.inboundSchema = PendleRemoveLiquidityParamsAmount$inboundSchema;
|
|
38162
|
+
PendleRemoveLiquidityParamsAmount$.outboundSchema = PendleRemoveLiquidityParamsAmount$outboundSchema;
|
|
38163
|
+
})(PendleRemoveLiquidityParamsAmount$ ||= {});
|
|
38164
|
+
PendleRemoveLiquidityParams$inboundSchema = objectType({
|
|
38165
|
+
action_type: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
38166
|
+
market_address: stringType(),
|
|
38167
|
+
amount: unionType([numberType(), stringType()])
|
|
38168
|
+
}).transform((v2) => {
|
|
38169
|
+
return remap(v2, {
|
|
38170
|
+
action_type: "actionType",
|
|
38171
|
+
market_address: "marketAddress"
|
|
38172
|
+
});
|
|
38173
|
+
});
|
|
38174
|
+
PendleRemoveLiquidityParams$outboundSchema = objectType({
|
|
38175
|
+
actionType: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
38176
|
+
marketAddress: stringType(),
|
|
38177
|
+
amount: unionType([numberType(), stringType()])
|
|
38178
|
+
}).transform((v2) => {
|
|
38179
|
+
return remap(v2, {
|
|
38180
|
+
actionType: "action_type",
|
|
38181
|
+
marketAddress: "market_address"
|
|
38182
|
+
});
|
|
38183
|
+
});
|
|
38184
|
+
((PendleRemoveLiquidityParams$) => {
|
|
38185
|
+
PendleRemoveLiquidityParams$.inboundSchema = PendleRemoveLiquidityParams$inboundSchema;
|
|
38186
|
+
PendleRemoveLiquidityParams$.outboundSchema = PendleRemoveLiquidityParams$outboundSchema;
|
|
38187
|
+
})(PendleRemoveLiquidityParams$ ||= {});
|
|
38188
|
+
});
|
|
38189
|
+
|
|
38029
38190
|
// src/models/components/pendlesellptparams.ts
|
|
38030
38191
|
var PendleSellPtParamsAmount$inboundSchema, PendleSellPtParamsAmount$outboundSchema, PendleSellPtParamsAmount$, PendleSellPtParams$inboundSchema, PendleSellPtParams$outboundSchema, PendleSellPtParams$;
|
|
38031
38192
|
var init_pendlesellptparams = __esm(() => {
|
|
@@ -38698,9 +38859,11 @@ var init_useroperation = __esm(() => {
|
|
|
38698
38859
|
init_morphosupplycollateralparams();
|
|
38699
38860
|
init_morphowithdrawcollateralparams();
|
|
38700
38861
|
init_morphowithdrawparams();
|
|
38862
|
+
init_pendleaddliquidityparams();
|
|
38701
38863
|
init_pendlebuyptparams();
|
|
38702
38864
|
init_pendlebuyytparams();
|
|
38703
38865
|
init_pendleredeemyieldparams();
|
|
38866
|
+
init_pendleremoveliquidityparams();
|
|
38704
38867
|
init_pendlesellptparams();
|
|
38705
38868
|
init_pendlesellytparams();
|
|
38706
38869
|
init_skybuyparams();
|
|
@@ -38727,12 +38890,14 @@ var init_useroperation = __esm(() => {
|
|
|
38727
38890
|
action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38728
38891
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38729
38892
|
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38893
|
+
PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38730
38894
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38731
38895
|
actionType: v2.action_type
|
|
38732
38896
|
}))),
|
|
38733
38897
|
PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38734
38898
|
actionType: v2.action_type
|
|
38735
38899
|
}))),
|
|
38900
|
+
PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38736
38901
|
PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38737
38902
|
actionType: v2.action_type
|
|
38738
38903
|
}))),
|
|
@@ -38805,12 +38970,14 @@ var init_useroperation = __esm(() => {
|
|
|
38805
38970
|
actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38806
38971
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38807
38972
|
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38973
|
+
PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38808
38974
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38809
38975
|
action_type: v2.actionType
|
|
38810
38976
|
}))),
|
|
38811
38977
|
PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38812
38978
|
action_type: v2.actionType
|
|
38813
38979
|
}))),
|
|
38980
|
+
PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38814
38981
|
PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38815
38982
|
action_type: v2.actionType
|
|
38816
38983
|
}))),
|
|
@@ -38890,12 +39057,14 @@ var init_useroperation = __esm(() => {
|
|
|
38890
39057
|
action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38891
39058
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38892
39059
|
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39060
|
+
PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38893
39061
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38894
39062
|
actionType: v2.action_type
|
|
38895
39063
|
}))),
|
|
38896
39064
|
PendleBuyYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38897
39065
|
actionType: v2.action_type
|
|
38898
39066
|
}))),
|
|
39067
|
+
PendleRemoveLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38899
39068
|
PendleSellPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38900
39069
|
actionType: v2.action_type
|
|
38901
39070
|
}))),
|
|
@@ -38970,12 +39139,14 @@ var init_useroperation = __esm(() => {
|
|
|
38970
39139
|
actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38971
39140
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38972
39141
|
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39142
|
+
PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38973
39143
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38974
39144
|
action_type: v2.actionType
|
|
38975
39145
|
}))),
|
|
38976
39146
|
PendleBuyYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_YT") }).transform((v2) => ({
|
|
38977
39147
|
action_type: v2.actionType
|
|
38978
39148
|
}))),
|
|
39149
|
+
PendleRemoveLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REMOVE_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38979
39150
|
PendleSellPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_PT") }).transform((v2) => ({
|
|
38980
39151
|
action_type: v2.actionType
|
|
38981
39152
|
}))),
|
|
@@ -40697,6 +40868,48 @@ var init_openposition = __esm(() => {
|
|
|
40697
40868
|
})(OpenPosition$ ||= {});
|
|
40698
40869
|
});
|
|
40699
40870
|
|
|
40871
|
+
// src/models/components/pendleaddliquidityrequest.ts
|
|
40872
|
+
var PendleAddLiquidityRequestAmount$inboundSchema, PendleAddLiquidityRequestAmount$outboundSchema, PendleAddLiquidityRequestAmount$, PendleAddLiquidityRequest$inboundSchema, PendleAddLiquidityRequest$outboundSchema, PendleAddLiquidityRequest$;
|
|
40873
|
+
var init_pendleaddliquidityrequest = __esm(() => {
|
|
40874
|
+
init_esm();
|
|
40875
|
+
init_primitives();
|
|
40876
|
+
init_chain();
|
|
40877
|
+
PendleAddLiquidityRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
40878
|
+
PendleAddLiquidityRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
40879
|
+
((PendleAddLiquidityRequestAmount$) => {
|
|
40880
|
+
PendleAddLiquidityRequestAmount$.inboundSchema = PendleAddLiquidityRequestAmount$inboundSchema;
|
|
40881
|
+
PendleAddLiquidityRequestAmount$.outboundSchema = PendleAddLiquidityRequestAmount$outboundSchema;
|
|
40882
|
+
})(PendleAddLiquidityRequestAmount$ ||= {});
|
|
40883
|
+
PendleAddLiquidityRequest$inboundSchema = objectType({
|
|
40884
|
+
action_type: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
40885
|
+
market_address: stringType(),
|
|
40886
|
+
amount: unionType([numberType(), stringType()]),
|
|
40887
|
+
chain: Chain$inboundSchema,
|
|
40888
|
+
sender: stringType()
|
|
40889
|
+
}).transform((v2) => {
|
|
40890
|
+
return remap(v2, {
|
|
40891
|
+
action_type: "actionType",
|
|
40892
|
+
market_address: "marketAddress"
|
|
40893
|
+
});
|
|
40894
|
+
});
|
|
40895
|
+
PendleAddLiquidityRequest$outboundSchema = objectType({
|
|
40896
|
+
actionType: literalType("PENDLE_ADD_LIQUIDITY").default("PENDLE_ADD_LIQUIDITY"),
|
|
40897
|
+
marketAddress: stringType(),
|
|
40898
|
+
amount: unionType([numberType(), stringType()]),
|
|
40899
|
+
chain: Chain$outboundSchema,
|
|
40900
|
+
sender: stringType()
|
|
40901
|
+
}).transform((v2) => {
|
|
40902
|
+
return remap(v2, {
|
|
40903
|
+
actionType: "action_type",
|
|
40904
|
+
marketAddress: "market_address"
|
|
40905
|
+
});
|
|
40906
|
+
});
|
|
40907
|
+
((PendleAddLiquidityRequest$) => {
|
|
40908
|
+
PendleAddLiquidityRequest$.inboundSchema = PendleAddLiquidityRequest$inboundSchema;
|
|
40909
|
+
PendleAddLiquidityRequest$.outboundSchema = PendleAddLiquidityRequest$outboundSchema;
|
|
40910
|
+
})(PendleAddLiquidityRequest$ ||= {});
|
|
40911
|
+
});
|
|
40912
|
+
|
|
40700
40913
|
// src/models/components/pendlebuyptrequest.ts
|
|
40701
40914
|
var PendleBuyPtRequestAmount$inboundSchema, PendleBuyPtRequestAmount$outboundSchema, PendleBuyPtRequestAmount$, PendleBuyPtRequest$inboundSchema, PendleBuyPtRequest$outboundSchema, PendleBuyPtRequest$;
|
|
40702
40915
|
var init_pendlebuyptrequest = __esm(() => {
|
|
@@ -40790,6 +41003,7 @@ var init_pendlegetmarketresponse = __esm(() => {
|
|
|
40790
41003
|
PendleGetMarketResponse$inboundSchema = objectType({
|
|
40791
41004
|
implied_apy: stringType(),
|
|
40792
41005
|
maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
41006
|
+
market_address: stringType(),
|
|
40793
41007
|
underlying_token: Erc20Data$inboundSchema,
|
|
40794
41008
|
sy: Erc20Data$inboundSchema,
|
|
40795
41009
|
pt: Erc20Data$inboundSchema,
|
|
@@ -40798,12 +41012,14 @@ var init_pendlegetmarketresponse = __esm(() => {
|
|
|
40798
41012
|
return remap(v2, {
|
|
40799
41013
|
implied_apy: "impliedApy",
|
|
40800
41014
|
maturity_date: "maturityDate",
|
|
41015
|
+
market_address: "marketAddress",
|
|
40801
41016
|
underlying_token: "underlyingToken"
|
|
40802
41017
|
});
|
|
40803
41018
|
});
|
|
40804
41019
|
PendleGetMarketResponse$outboundSchema = objectType({
|
|
40805
41020
|
impliedApy: stringType(),
|
|
40806
41021
|
maturityDate: dateType().transform((v2) => v2.toISOString()),
|
|
41022
|
+
marketAddress: stringType(),
|
|
40807
41023
|
underlyingToken: Erc20Data$outboundSchema,
|
|
40808
41024
|
sy: Erc20Data$outboundSchema,
|
|
40809
41025
|
pt: Erc20Data$outboundSchema,
|
|
@@ -40812,6 +41028,7 @@ var init_pendlegetmarketresponse = __esm(() => {
|
|
|
40812
41028
|
return remap(v2, {
|
|
40813
41029
|
impliedApy: "implied_apy",
|
|
40814
41030
|
maturityDate: "maturity_date",
|
|
41031
|
+
marketAddress: "market_address",
|
|
40815
41032
|
underlyingToken: "underlying_token"
|
|
40816
41033
|
});
|
|
40817
41034
|
});
|
|
@@ -40831,6 +41048,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40831
41048
|
sy_balance: stringType(),
|
|
40832
41049
|
pt_balance: stringType(),
|
|
40833
41050
|
yt_balance: stringType(),
|
|
41051
|
+
lp_balance: stringType(),
|
|
40834
41052
|
underlying_token_balance: stringType(),
|
|
40835
41053
|
underlying_token_name: stringType(),
|
|
40836
41054
|
underlying_token_symbol: stringType(),
|
|
@@ -40841,6 +41059,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40841
41059
|
sy_balance: "syBalance",
|
|
40842
41060
|
pt_balance: "ptBalance",
|
|
40843
41061
|
yt_balance: "ytBalance",
|
|
41062
|
+
lp_balance: "lpBalance",
|
|
40844
41063
|
underlying_token_balance: "underlyingTokenBalance",
|
|
40845
41064
|
underlying_token_name: "underlyingTokenName",
|
|
40846
41065
|
underlying_token_symbol: "underlyingTokenSymbol",
|
|
@@ -40852,6 +41071,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40852
41071
|
syBalance: stringType(),
|
|
40853
41072
|
ptBalance: stringType(),
|
|
40854
41073
|
ytBalance: stringType(),
|
|
41074
|
+
lpBalance: stringType(),
|
|
40855
41075
|
underlyingTokenBalance: stringType(),
|
|
40856
41076
|
underlyingTokenName: stringType(),
|
|
40857
41077
|
underlyingTokenSymbol: stringType(),
|
|
@@ -40862,6 +41082,7 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40862
41082
|
syBalance: "sy_balance",
|
|
40863
41083
|
ptBalance: "pt_balance",
|
|
40864
41084
|
ytBalance: "yt_balance",
|
|
41085
|
+
lpBalance: "lp_balance",
|
|
40865
41086
|
underlyingTokenBalance: "underlying_token_balance",
|
|
40866
41087
|
underlyingTokenName: "underlying_token_name",
|
|
40867
41088
|
underlyingTokenSymbol: "underlying_token_symbol",
|
|
@@ -41029,6 +41250,48 @@ var init_pendleredeemyieldrequest = __esm(() => {
|
|
|
41029
41250
|
})(PendleRedeemYieldRequest$ ||= {});
|
|
41030
41251
|
});
|
|
41031
41252
|
|
|
41253
|
+
// src/models/components/pendleremoveliquidityrequest.ts
|
|
41254
|
+
var PendleRemoveLiquidityRequestAmount$inboundSchema, PendleRemoveLiquidityRequestAmount$outboundSchema, PendleRemoveLiquidityRequestAmount$, PendleRemoveLiquidityRequest$inboundSchema, PendleRemoveLiquidityRequest$outboundSchema, PendleRemoveLiquidityRequest$;
|
|
41255
|
+
var init_pendleremoveliquidityrequest = __esm(() => {
|
|
41256
|
+
init_esm();
|
|
41257
|
+
init_primitives();
|
|
41258
|
+
init_chain();
|
|
41259
|
+
PendleRemoveLiquidityRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
41260
|
+
PendleRemoveLiquidityRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
41261
|
+
((PendleRemoveLiquidityRequestAmount$) => {
|
|
41262
|
+
PendleRemoveLiquidityRequestAmount$.inboundSchema = PendleRemoveLiquidityRequestAmount$inboundSchema;
|
|
41263
|
+
PendleRemoveLiquidityRequestAmount$.outboundSchema = PendleRemoveLiquidityRequestAmount$outboundSchema;
|
|
41264
|
+
})(PendleRemoveLiquidityRequestAmount$ ||= {});
|
|
41265
|
+
PendleRemoveLiquidityRequest$inboundSchema = objectType({
|
|
41266
|
+
action_type: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
41267
|
+
market_address: stringType(),
|
|
41268
|
+
amount: unionType([numberType(), stringType()]),
|
|
41269
|
+
chain: Chain$inboundSchema,
|
|
41270
|
+
sender: stringType()
|
|
41271
|
+
}).transform((v2) => {
|
|
41272
|
+
return remap(v2, {
|
|
41273
|
+
action_type: "actionType",
|
|
41274
|
+
market_address: "marketAddress"
|
|
41275
|
+
});
|
|
41276
|
+
});
|
|
41277
|
+
PendleRemoveLiquidityRequest$outboundSchema = objectType({
|
|
41278
|
+
actionType: literalType("PENDLE_REMOVE_LIQUIDITY").default("PENDLE_REMOVE_LIQUIDITY"),
|
|
41279
|
+
marketAddress: stringType(),
|
|
41280
|
+
amount: unionType([numberType(), stringType()]),
|
|
41281
|
+
chain: Chain$outboundSchema,
|
|
41282
|
+
sender: stringType()
|
|
41283
|
+
}).transform((v2) => {
|
|
41284
|
+
return remap(v2, {
|
|
41285
|
+
actionType: "action_type",
|
|
41286
|
+
marketAddress: "market_address"
|
|
41287
|
+
});
|
|
41288
|
+
});
|
|
41289
|
+
((PendleRemoveLiquidityRequest$) => {
|
|
41290
|
+
PendleRemoveLiquidityRequest$.inboundSchema = PendleRemoveLiquidityRequest$inboundSchema;
|
|
41291
|
+
PendleRemoveLiquidityRequest$.outboundSchema = PendleRemoveLiquidityRequest$outboundSchema;
|
|
41292
|
+
})(PendleRemoveLiquidityRequest$ ||= {});
|
|
41293
|
+
});
|
|
41294
|
+
|
|
41032
41295
|
// src/models/components/pendlesellptrequest.ts
|
|
41033
41296
|
var PendleSellPtRequestAmount$inboundSchema, PendleSellPtRequestAmount$outboundSchema, PendleSellPtRequestAmount$, PendleSellPtRequest$inboundSchema, PendleSellPtRequest$outboundSchema, PendleSellPtRequest$;
|
|
41034
41297
|
var init_pendlesellptrequest = __esm(() => {
|
|
@@ -42309,6 +42572,8 @@ var init_components = __esm(() => {
|
|
|
42309
42572
|
init_multicallauthorizationresponse();
|
|
42310
42573
|
init_multicallexecuterequest();
|
|
42311
42574
|
init_openposition();
|
|
42575
|
+
init_pendleaddliquidityparams();
|
|
42576
|
+
init_pendleaddliquidityrequest();
|
|
42312
42577
|
init_pendlebuyptparams();
|
|
42313
42578
|
init_pendlebuyptrequest();
|
|
42314
42579
|
init_pendlebuyytparams();
|
|
@@ -42320,6 +42585,8 @@ var init_components = __esm(() => {
|
|
|
42320
42585
|
init_pendlemarket();
|
|
42321
42586
|
init_pendleredeemyieldparams();
|
|
42322
42587
|
init_pendleredeemyieldrequest();
|
|
42588
|
+
init_pendleremoveliquidityparams();
|
|
42589
|
+
init_pendleremoveliquidityrequest();
|
|
42323
42590
|
init_pendlesellptparams();
|
|
42324
42591
|
init_pendlesellptrequest();
|
|
42325
42592
|
init_pendlesellytparams();
|
|
@@ -42389,12 +42656,13 @@ var HTTPValidationError, HTTPValidationError$inboundSchema, HTTPValidationError$
|
|
|
42389
42656
|
var init_httpvalidationerror = __esm(() => {
|
|
42390
42657
|
init_esm();
|
|
42391
42658
|
init_components();
|
|
42392
|
-
|
|
42659
|
+
init_compassapisdkerror();
|
|
42660
|
+
HTTPValidationError = class HTTPValidationError extends CompassAPISDKError {
|
|
42393
42661
|
detail;
|
|
42394
42662
|
data$;
|
|
42395
|
-
constructor(err) {
|
|
42663
|
+
constructor(err, httpMeta) {
|
|
42396
42664
|
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
42397
|
-
super(message);
|
|
42665
|
+
super(message, httpMeta);
|
|
42398
42666
|
this.data$ = err;
|
|
42399
42667
|
if (err.detail != null)
|
|
42400
42668
|
this.detail = err.detail;
|
|
@@ -42402,9 +42670,16 @@ var init_httpvalidationerror = __esm(() => {
|
|
|
42402
42670
|
}
|
|
42403
42671
|
};
|
|
42404
42672
|
HTTPValidationError$inboundSchema = objectType({
|
|
42405
|
-
detail: arrayType(ValidationError$inboundSchema).optional()
|
|
42673
|
+
detail: arrayType(ValidationError$inboundSchema).optional(),
|
|
42674
|
+
request$: instanceOfType(Request),
|
|
42675
|
+
response$: instanceOfType(Response),
|
|
42676
|
+
body$: stringType()
|
|
42406
42677
|
}).transform((v2) => {
|
|
42407
|
-
return new HTTPValidationError(v2
|
|
42678
|
+
return new HTTPValidationError(v2, {
|
|
42679
|
+
request: v2.request$,
|
|
42680
|
+
response: v2.response$,
|
|
42681
|
+
body: v2.body$
|
|
42682
|
+
});
|
|
42408
42683
|
});
|
|
42409
42684
|
HTTPValidationError$outboundSchema = instanceOfType(HTTPValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
42410
42685
|
detail: arrayType(ValidationError$outboundSchema).optional()
|
|
@@ -42420,6 +42695,7 @@ var init_errors2 = __esm(() => {
|
|
|
42420
42695
|
init_apierror();
|
|
42421
42696
|
init_httpclienterrors();
|
|
42422
42697
|
init_httpvalidationerror();
|
|
42698
|
+
init_responsevalidationerror();
|
|
42423
42699
|
init_sdkvalidationerror();
|
|
42424
42700
|
});
|
|
42425
42701
|
|
|
@@ -42494,13 +42770,13 @@ var init_aaveavgrate = __esm(() => {
|
|
|
42494
42770
|
chain: AaveAvgRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
42495
42771
|
block: nullableType(numberType().int()).optional(),
|
|
42496
42772
|
token: AaveAvgRateToken$inboundSchema.default("USDC"),
|
|
42497
|
-
days: numberType().int().default(
|
|
42773
|
+
days: numberType().int().default(2)
|
|
42498
42774
|
});
|
|
42499
42775
|
AaveAvgRateRequest$outboundSchema = objectType({
|
|
42500
42776
|
chain: AaveAvgRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
42501
42777
|
block: nullableType(numberType().int()).optional(),
|
|
42502
42778
|
token: AaveAvgRateToken$outboundSchema.default("USDC"),
|
|
42503
|
-
days: numberType().int().default(
|
|
42779
|
+
days: numberType().int().default(2)
|
|
42504
42780
|
});
|
|
42505
42781
|
((AaveAvgRateRequest$) => {
|
|
42506
42782
|
AaveAvgRateRequest$.inboundSchema = AaveAvgRateRequest$inboundSchema;
|
|
@@ -42528,7 +42804,6 @@ var init_aavehistoricaltransactions = __esm(() => {
|
|
|
42528
42804
|
offset: numberType().int().default(0),
|
|
42529
42805
|
limit: numberType().int().default(100),
|
|
42530
42806
|
chain: AaveHistoricalTransactionsChain$inboundSchema.default("arbitrum:mainnet"),
|
|
42531
|
-
block: nullableType(numberType().int()).optional(),
|
|
42532
42807
|
user_address: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
42533
42808
|
}).transform((v2) => {
|
|
42534
42809
|
return remap(v2, {
|
|
@@ -42539,7 +42814,6 @@ var init_aavehistoricaltransactions = __esm(() => {
|
|
|
42539
42814
|
offset: numberType().int().default(0),
|
|
42540
42815
|
limit: numberType().int().default(100),
|
|
42541
42816
|
chain: AaveHistoricalTransactionsChain$outboundSchema.default("arbitrum:mainnet"),
|
|
42542
|
-
block: nullableType(numberType().int()).optional(),
|
|
42543
42817
|
userAddress: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
42544
42818
|
}).transform((v2) => {
|
|
42545
42819
|
return remap(v2, {
|
|
@@ -42622,7 +42896,6 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
42622
42896
|
})(AaveLiquidityChangeToken$ ||= {});
|
|
42623
42897
|
AaveLiquidityChangeRequest$inboundSchema = objectType({
|
|
42624
42898
|
chain: AaveLiquidityChangeChain$inboundSchema.default("arbitrum:mainnet"),
|
|
42625
|
-
block: nullableType(numberType().int()).optional(),
|
|
42626
42899
|
token: AaveLiquidityChangeToken$inboundSchema.default("USDC"),
|
|
42627
42900
|
start_block: numberType().int().default(0),
|
|
42628
42901
|
end_block: numberType().int().default(319407231)
|
|
@@ -42634,7 +42907,6 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
42634
42907
|
});
|
|
42635
42908
|
AaveLiquidityChangeRequest$outboundSchema = objectType({
|
|
42636
42909
|
chain: AaveLiquidityChangeChain$outboundSchema.default("arbitrum:mainnet"),
|
|
42637
|
-
block: nullableType(numberType().int()).optional(),
|
|
42638
42910
|
token: AaveLiquidityChangeToken$outboundSchema.default("USDC"),
|
|
42639
42911
|
startBlock: numberType().int().default(0),
|
|
42640
42912
|
endBlock: numberType().int().default(319407231)
|
|
@@ -43117,12 +43389,10 @@ var init_aerodromeslipstreamliquidityprovisionpositions = __esm(() => {
|
|
|
43117
43389
|
})(AerodromeSlipstreamLiquidityProvisionPositionsChain$ ||= {});
|
|
43118
43390
|
AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema = objectType({
|
|
43119
43391
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain$inboundSchema.default("base:mainnet"),
|
|
43120
|
-
block: nullableType(numberType().int()).optional(),
|
|
43121
43392
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43122
43393
|
});
|
|
43123
43394
|
AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema = objectType({
|
|
43124
43395
|
chain: AerodromeSlipstreamLiquidityProvisionPositionsChain$outboundSchema.default("base:mainnet"),
|
|
43125
|
-
block: nullableType(numberType().int()).optional(),
|
|
43126
43396
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43127
43397
|
});
|
|
43128
43398
|
((AerodromeSlipstreamLiquidityProvisionPositionsRequest$) => {
|
|
@@ -43253,7 +43523,6 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
43253
43523
|
})(AerodromeSlipstreamPoolPriceTokenOutToken$ ||= {});
|
|
43254
43524
|
AerodromeSlipstreamPoolPriceRequest$inboundSchema = objectType({
|
|
43255
43525
|
chain: AerodromeSlipstreamPoolPriceChain$inboundSchema.default("base:mainnet"),
|
|
43256
|
-
block: nullableType(numberType().int()).optional(),
|
|
43257
43526
|
token_in: AerodromeSlipstreamPoolPriceTokenInToken$inboundSchema.default("USDC"),
|
|
43258
43527
|
token_out: AerodromeSlipstreamPoolPriceTokenOutToken$inboundSchema.default("WETH"),
|
|
43259
43528
|
tick_spacing: numberType().int().default(100)
|
|
@@ -43266,7 +43535,6 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
43266
43535
|
});
|
|
43267
43536
|
AerodromeSlipstreamPoolPriceRequest$outboundSchema = objectType({
|
|
43268
43537
|
chain: AerodromeSlipstreamPoolPriceChain$outboundSchema.default("base:mainnet"),
|
|
43269
|
-
block: nullableType(numberType().int()).optional(),
|
|
43270
43538
|
tokenIn: AerodromeSlipstreamPoolPriceTokenInToken$outboundSchema.default("USDC"),
|
|
43271
43539
|
tokenOut: AerodromeSlipstreamPoolPriceTokenOutToken$outboundSchema.default("WETH"),
|
|
43272
43540
|
tickSpacing: numberType().int().default(100)
|
|
@@ -43372,7 +43640,6 @@ var init_genericallowance = __esm(() => {
|
|
|
43372
43640
|
})(ContractName$ ||= {});
|
|
43373
43641
|
GenericAllowanceRequest$inboundSchema = objectType({
|
|
43374
43642
|
chain: GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43375
|
-
block: nullableType(numberType().int()).optional(),
|
|
43376
43643
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43377
43644
|
token: GenericAllowanceToken$inboundSchema.default("USDC"),
|
|
43378
43645
|
contract_name: ContractName$inboundSchema.default("AaveV3Pool")
|
|
@@ -43383,7 +43650,6 @@ var init_genericallowance = __esm(() => {
|
|
|
43383
43650
|
});
|
|
43384
43651
|
GenericAllowanceRequest$outboundSchema = objectType({
|
|
43385
43652
|
chain: GenericAllowanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43386
|
-
block: nullableType(numberType().int()).optional(),
|
|
43387
43653
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43388
43654
|
token: GenericAllowanceToken$outboundSchema.default("USDC"),
|
|
43389
43655
|
contractName: ContractName$outboundSchema.default("AaveV3Pool")
|
|
@@ -43416,7 +43682,6 @@ var init_genericens = __esm(() => {
|
|
|
43416
43682
|
})(GenericEnsChain$ ||= {});
|
|
43417
43683
|
GenericEnsRequest$inboundSchema = objectType({
|
|
43418
43684
|
chain: GenericEnsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43419
|
-
block: nullableType(numberType().int()).optional(),
|
|
43420
43685
|
ens_name: stringType().default("vitalik.eth")
|
|
43421
43686
|
}).transform((v2) => {
|
|
43422
43687
|
return remap(v2, {
|
|
@@ -43425,7 +43690,6 @@ var init_genericens = __esm(() => {
|
|
|
43425
43690
|
});
|
|
43426
43691
|
GenericEnsRequest$outboundSchema = objectType({
|
|
43427
43692
|
chain: GenericEnsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43428
|
-
block: nullableType(numberType().int()).optional(),
|
|
43429
43693
|
ensName: stringType().default("vitalik.eth")
|
|
43430
43694
|
}).transform((v2) => {
|
|
43431
43695
|
return remap(v2, {
|
|
@@ -43455,12 +43719,10 @@ var init_genericportfolio = __esm(() => {
|
|
|
43455
43719
|
})(GenericPortfolioChain$ ||= {});
|
|
43456
43720
|
GenericPortfolioRequest$inboundSchema = objectType({
|
|
43457
43721
|
chain: GenericPortfolioChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43458
|
-
block: nullableType(numberType().int()).optional(),
|
|
43459
43722
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43460
43723
|
});
|
|
43461
43724
|
GenericPortfolioRequest$outboundSchema = objectType({
|
|
43462
43725
|
chain: GenericPortfolioChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43463
|
-
block: nullableType(numberType().int()).optional(),
|
|
43464
43726
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43465
43727
|
});
|
|
43466
43728
|
((GenericPortfolioRequest$) => {
|
|
@@ -43485,12 +43747,10 @@ var init_genericsupportedtokens = __esm(() => {
|
|
|
43485
43747
|
GenericSupportedTokensChain$.outboundSchema = GenericSupportedTokensChain$outboundSchema;
|
|
43486
43748
|
})(GenericSupportedTokensChain$ ||= {});
|
|
43487
43749
|
GenericSupportedTokensRequest$inboundSchema = objectType({
|
|
43488
|
-
chain: GenericSupportedTokensChain$inboundSchema.default("arbitrum:mainnet")
|
|
43489
|
-
block: nullableType(numberType().int()).optional()
|
|
43750
|
+
chain: GenericSupportedTokensChain$inboundSchema.default("arbitrum:mainnet")
|
|
43490
43751
|
});
|
|
43491
43752
|
GenericSupportedTokensRequest$outboundSchema = objectType({
|
|
43492
|
-
chain: GenericSupportedTokensChain$outboundSchema.default("arbitrum:mainnet")
|
|
43493
|
-
block: nullableType(numberType().int()).optional()
|
|
43753
|
+
chain: GenericSupportedTokensChain$outboundSchema.default("arbitrum:mainnet")
|
|
43494
43754
|
});
|
|
43495
43755
|
((GenericSupportedTokensRequest$) => {
|
|
43496
43756
|
GenericSupportedTokensRequest$.inboundSchema = GenericSupportedTokensRequest$inboundSchema;
|
|
@@ -43515,12 +43775,10 @@ var init_genericvisualizeportfolio = __esm(() => {
|
|
|
43515
43775
|
})(GenericVisualizePortfolioChain$ ||= {});
|
|
43516
43776
|
GenericVisualizePortfolioRequest$inboundSchema = objectType({
|
|
43517
43777
|
chain: GenericVisualizePortfolioChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43518
|
-
block: nullableType(numberType().int()).optional(),
|
|
43519
43778
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43520
43779
|
});
|
|
43521
43780
|
GenericVisualizePortfolioRequest$outboundSchema = objectType({
|
|
43522
43781
|
chain: GenericVisualizePortfolioChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43523
|
-
block: nullableType(numberType().int()).optional(),
|
|
43524
43782
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
43525
43783
|
});
|
|
43526
43784
|
((GenericVisualizePortfolioRequest$) => {
|
|
@@ -43546,7 +43804,6 @@ var init_morphomarket2 = __esm(() => {
|
|
|
43546
43804
|
})(MorphoMarketChain$ ||= {});
|
|
43547
43805
|
MorphoMarketRequest$inboundSchema = objectType({
|
|
43548
43806
|
chain: MorphoMarketChain$inboundSchema.default("ethereum:mainnet"),
|
|
43549
|
-
block: nullableType(numberType().int()).optional(),
|
|
43550
43807
|
unique_market_key: stringType().default("0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e")
|
|
43551
43808
|
}).transform((v2) => {
|
|
43552
43809
|
return remap(v2, {
|
|
@@ -43555,7 +43812,6 @@ var init_morphomarket2 = __esm(() => {
|
|
|
43555
43812
|
});
|
|
43556
43813
|
MorphoMarketRequest$outboundSchema = objectType({
|
|
43557
43814
|
chain: MorphoMarketChain$outboundSchema.default("ethereum:mainnet"),
|
|
43558
|
-
block: nullableType(numberType().int()).optional(),
|
|
43559
43815
|
uniqueMarketKey: stringType().default("0x83b7ad16905809ea36482f4fbf6cfee9c9f316d128de9a5da1952607d5e4df5e")
|
|
43560
43816
|
}).transform((v2) => {
|
|
43561
43817
|
return remap(v2, {
|
|
@@ -43585,7 +43841,6 @@ var init_morphomarketposition = __esm(() => {
|
|
|
43585
43841
|
})(MorphoMarketPositionChain$ ||= {});
|
|
43586
43842
|
MorphoMarketPositionRequest$inboundSchema = objectType({
|
|
43587
43843
|
chain: MorphoMarketPositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43588
|
-
block: nullableType(numberType().int()).optional(),
|
|
43589
43844
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43590
43845
|
unique_market_key: stringType().default("0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4")
|
|
43591
43846
|
}).transform((v2) => {
|
|
@@ -43596,7 +43851,6 @@ var init_morphomarketposition = __esm(() => {
|
|
|
43596
43851
|
});
|
|
43597
43852
|
MorphoMarketPositionRequest$outboundSchema = objectType({
|
|
43598
43853
|
chain: MorphoMarketPositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43599
|
-
block: nullableType(numberType().int()).optional(),
|
|
43600
43854
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43601
43855
|
uniqueMarketKey: stringType().default("0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4")
|
|
43602
43856
|
}).transform((v2) => {
|
|
@@ -43628,7 +43882,6 @@ var init_morphomarkets = __esm(() => {
|
|
|
43628
43882
|
})(MorphoMarketsChain$ ||= {});
|
|
43629
43883
|
MorphoMarketsRequest$inboundSchema = objectType({
|
|
43630
43884
|
chain: MorphoMarketsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43631
|
-
block: nullableType(numberType().int()).optional(),
|
|
43632
43885
|
collateral_token: nullableType(stringType()).optional(),
|
|
43633
43886
|
loan_token: nullableType(stringType()).optional()
|
|
43634
43887
|
}).transform((v2) => {
|
|
@@ -43639,7 +43892,6 @@ var init_morphomarkets = __esm(() => {
|
|
|
43639
43892
|
});
|
|
43640
43893
|
MorphoMarketsRequest$outboundSchema = objectType({
|
|
43641
43894
|
chain: MorphoMarketsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43642
|
-
block: nullableType(numberType().int()).optional(),
|
|
43643
43895
|
collateralToken: nullableType(stringType()).optional(),
|
|
43644
43896
|
loanToken: nullableType(stringType()).optional()
|
|
43645
43897
|
}).transform((v2) => {
|
|
@@ -43671,7 +43923,6 @@ var init_morphouserposition = __esm(() => {
|
|
|
43671
43923
|
})(MorphoUserPositionChain$ ||= {});
|
|
43672
43924
|
MorphoUserPositionRequest$inboundSchema = objectType({
|
|
43673
43925
|
chain: MorphoUserPositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43674
|
-
block: nullableType(numberType().int()).optional(),
|
|
43675
43926
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43676
43927
|
}).transform((v2) => {
|
|
43677
43928
|
return remap(v2, {
|
|
@@ -43680,7 +43931,6 @@ var init_morphouserposition = __esm(() => {
|
|
|
43680
43931
|
});
|
|
43681
43932
|
MorphoUserPositionRequest$outboundSchema = objectType({
|
|
43682
43933
|
chain: MorphoUserPositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43683
|
-
block: nullableType(numberType().int()).optional(),
|
|
43684
43934
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43685
43935
|
}).transform((v2) => {
|
|
43686
43936
|
return remap(v2, {
|
|
@@ -43710,7 +43960,6 @@ var init_morphovault2 = __esm(() => {
|
|
|
43710
43960
|
})(MorphoVaultChain$ ||= {});
|
|
43711
43961
|
MorphoVaultRequest$inboundSchema = objectType({
|
|
43712
43962
|
chain: MorphoVaultChain$inboundSchema.default("ethereum:mainnet"),
|
|
43713
|
-
block: nullableType(numberType().int()).optional(),
|
|
43714
43963
|
vault_address: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43715
43964
|
}).transform((v2) => {
|
|
43716
43965
|
return remap(v2, {
|
|
@@ -43719,7 +43968,6 @@ var init_morphovault2 = __esm(() => {
|
|
|
43719
43968
|
});
|
|
43720
43969
|
MorphoVaultRequest$outboundSchema = objectType({
|
|
43721
43970
|
chain: MorphoVaultChain$outboundSchema.default("ethereum:mainnet"),
|
|
43722
|
-
block: nullableType(numberType().int()).optional(),
|
|
43723
43971
|
vaultAddress: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43724
43972
|
}).transform((v2) => {
|
|
43725
43973
|
return remap(v2, {
|
|
@@ -43749,7 +43997,6 @@ var init_morphovaultposition = __esm(() => {
|
|
|
43749
43997
|
})(MorphoVaultPositionChain$ ||= {});
|
|
43750
43998
|
MorphoVaultPositionRequest$inboundSchema = objectType({
|
|
43751
43999
|
chain: MorphoVaultPositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43752
|
-
block: nullableType(numberType().int()).optional(),
|
|
43753
44000
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43754
44001
|
vault_address: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43755
44002
|
}).transform((v2) => {
|
|
@@ -43760,7 +44007,6 @@ var init_morphovaultposition = __esm(() => {
|
|
|
43760
44007
|
});
|
|
43761
44008
|
MorphoVaultPositionRequest$outboundSchema = objectType({
|
|
43762
44009
|
chain: MorphoVaultPositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43763
|
-
block: nullableType(numberType().int()).optional(),
|
|
43764
44010
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43765
44011
|
vaultAddress: stringType().default("0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")
|
|
43766
44012
|
}).transform((v2) => {
|
|
@@ -43792,7 +44038,6 @@ var init_morphovaults = __esm(() => {
|
|
|
43792
44038
|
})(MorphoVaultsChain$ ||= {});
|
|
43793
44039
|
MorphoVaultsRequest$inboundSchema = objectType({
|
|
43794
44040
|
chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43795
|
-
block: nullableType(numberType().int()).optional(),
|
|
43796
44041
|
deposit_token: nullableType(stringType()).optional()
|
|
43797
44042
|
}).transform((v2) => {
|
|
43798
44043
|
return remap(v2, {
|
|
@@ -43801,7 +44046,6 @@ var init_morphovaults = __esm(() => {
|
|
|
43801
44046
|
});
|
|
43802
44047
|
MorphoVaultsRequest$outboundSchema = objectType({
|
|
43803
44048
|
chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43804
|
-
block: nullableType(numberType().int()).optional(),
|
|
43805
44049
|
depositToken: nullableType(stringType()).optional()
|
|
43806
44050
|
}).transform((v2) => {
|
|
43807
44051
|
return remap(v2, {
|
|
@@ -43832,7 +44076,6 @@ var init_pendlemarket2 = __esm(() => {
|
|
|
43832
44076
|
})(PendleMarketChain$ ||= {});
|
|
43833
44077
|
PendleMarketRequest$inboundSchema = objectType({
|
|
43834
44078
|
chain: PendleMarketChain$inboundSchema.default("ethereum:mainnet"),
|
|
43835
|
-
block: nullableType(numberType().int()).optional(),
|
|
43836
44079
|
market_address: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43837
44080
|
}).transform((v2) => {
|
|
43838
44081
|
return remap(v2, {
|
|
@@ -43841,7 +44084,6 @@ var init_pendlemarket2 = __esm(() => {
|
|
|
43841
44084
|
});
|
|
43842
44085
|
PendleMarketRequest$outboundSchema = objectType({
|
|
43843
44086
|
chain: PendleMarketChain$outboundSchema.default("ethereum:mainnet"),
|
|
43844
|
-
block: nullableType(numberType().int()).optional(),
|
|
43845
44087
|
marketAddress: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43846
44088
|
}).transform((v2) => {
|
|
43847
44089
|
return remap(v2, {
|
|
@@ -43870,12 +44112,10 @@ var init_pendlemarkets = __esm(() => {
|
|
|
43870
44112
|
PendleMarketsChain$.outboundSchema = PendleMarketsChain$outboundSchema;
|
|
43871
44113
|
})(PendleMarketsChain$ ||= {});
|
|
43872
44114
|
PendleMarketsRequest$inboundSchema = objectType({
|
|
43873
|
-
chain: PendleMarketsChain$inboundSchema.default("ethereum:mainnet")
|
|
43874
|
-
block: nullableType(numberType().int()).optional()
|
|
44115
|
+
chain: PendleMarketsChain$inboundSchema.default("ethereum:mainnet")
|
|
43875
44116
|
});
|
|
43876
44117
|
PendleMarketsRequest$outboundSchema = objectType({
|
|
43877
|
-
chain: PendleMarketsChain$outboundSchema.default("ethereum:mainnet")
|
|
43878
|
-
block: nullableType(numberType().int()).optional()
|
|
44118
|
+
chain: PendleMarketsChain$outboundSchema.default("ethereum:mainnet")
|
|
43879
44119
|
});
|
|
43880
44120
|
((PendleMarketsRequest$) => {
|
|
43881
44121
|
PendleMarketsRequest$.inboundSchema = PendleMarketsRequest$inboundSchema;
|
|
@@ -43901,7 +44141,6 @@ var init_pendleposition = __esm(() => {
|
|
|
43901
44141
|
})(PendlePositionChain$ ||= {});
|
|
43902
44142
|
PendlePositionRequest$inboundSchema = objectType({
|
|
43903
44143
|
chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
43904
|
-
block: nullableType(numberType().int()).optional(),
|
|
43905
44144
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43906
44145
|
market_address: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43907
44146
|
}).transform((v2) => {
|
|
@@ -43912,7 +44151,6 @@ var init_pendleposition = __esm(() => {
|
|
|
43912
44151
|
});
|
|
43913
44152
|
PendlePositionRequest$outboundSchema = objectType({
|
|
43914
44153
|
chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
43915
|
-
block: nullableType(numberType().int()).optional(),
|
|
43916
44154
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
43917
44155
|
marketAddress: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
43918
44156
|
}).transform((v2) => {
|
|
@@ -43945,7 +44183,6 @@ var init_pendlepositions = __esm(() => {
|
|
|
43945
44183
|
})(PendlePositionsChain$ ||= {});
|
|
43946
44184
|
PendlePositionsRequest$inboundSchema = objectType({
|
|
43947
44185
|
chain: PendlePositionsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43948
|
-
block: nullableType(numberType().int()).optional(),
|
|
43949
44186
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43950
44187
|
}).transform((v2) => {
|
|
43951
44188
|
return remap(v2, {
|
|
@@ -43954,7 +44191,6 @@ var init_pendlepositions = __esm(() => {
|
|
|
43954
44191
|
});
|
|
43955
44192
|
PendlePositionsRequest$outboundSchema = objectType({
|
|
43956
44193
|
chain: PendlePositionsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43957
|
-
block: nullableType(numberType().int()).optional(),
|
|
43958
44194
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43959
44195
|
}).transform((v2) => {
|
|
43960
44196
|
return remap(v2, {
|
|
@@ -43974,7 +44210,6 @@ var init_skyposition = __esm(() => {
|
|
|
43974
44210
|
init_primitives();
|
|
43975
44211
|
SkyPositionRequest$inboundSchema = objectType({
|
|
43976
44212
|
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
43977
|
-
block: nullableType(numberType().int()).optional(),
|
|
43978
44213
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43979
44214
|
}).transform((v2) => {
|
|
43980
44215
|
return remap(v2, {
|
|
@@ -43983,7 +44218,6 @@ var init_skyposition = __esm(() => {
|
|
|
43983
44218
|
});
|
|
43984
44219
|
SkyPositionRequest$outboundSchema = objectType({
|
|
43985
44220
|
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
43986
|
-
block: nullableType(numberType().int()).optional(),
|
|
43987
44221
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43988
44222
|
}).transform((v2) => {
|
|
43989
44223
|
return remap(v2, {
|
|
@@ -44065,12 +44299,10 @@ var init_tokenaddress = __esm(() => {
|
|
|
44065
44299
|
})(TokenAddressToken$ ||= {});
|
|
44066
44300
|
TokenAddressRequest$inboundSchema = objectType({
|
|
44067
44301
|
chain: TokenAddressChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44068
|
-
block: nullableType(numberType().int()).optional(),
|
|
44069
44302
|
token: TokenAddressToken$inboundSchema.default("WETH")
|
|
44070
44303
|
});
|
|
44071
44304
|
TokenAddressRequest$outboundSchema = objectType({
|
|
44072
44305
|
chain: TokenAddressChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44073
|
-
block: nullableType(numberType().int()).optional(),
|
|
44074
44306
|
token: TokenAddressToken$outboundSchema.default("WETH")
|
|
44075
44307
|
});
|
|
44076
44308
|
((TokenAddressRequest$) => {
|
|
@@ -44103,13 +44335,11 @@ var init_tokenbalance = __esm(() => {
|
|
|
44103
44335
|
})(TokenBalanceToken$ ||= {});
|
|
44104
44336
|
TokenBalanceRequest$inboundSchema = objectType({
|
|
44105
44337
|
chain: TokenBalanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44106
|
-
block: nullableType(numberType().int()).optional(),
|
|
44107
44338
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
44108
44339
|
token: unionType([TokenEnum$inboundSchema, stringType()])
|
|
44109
44340
|
});
|
|
44110
44341
|
TokenBalanceRequest$outboundSchema = objectType({
|
|
44111
44342
|
chain: TokenBalanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44112
|
-
block: nullableType(numberType().int()).optional(),
|
|
44113
44343
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
44114
44344
|
token: unionType([TokenEnum$outboundSchema, stringType()])
|
|
44115
44345
|
});
|
|
@@ -44218,7 +44448,6 @@ var init_uniswapliquidityprovisioninrange = __esm(() => {
|
|
|
44218
44448
|
})(UniswapLiquidityProvisionInRangeChain$ ||= {});
|
|
44219
44449
|
UniswapLiquidityProvisionInRangeRequest$inboundSchema = objectType({
|
|
44220
44450
|
chain: UniswapLiquidityProvisionInRangeChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44221
|
-
block: nullableType(numberType().int()).optional(),
|
|
44222
44451
|
token_id: numberType().int().default(4318185)
|
|
44223
44452
|
}).transform((v2) => {
|
|
44224
44453
|
return remap(v2, {
|
|
@@ -44227,7 +44456,6 @@ var init_uniswapliquidityprovisioninrange = __esm(() => {
|
|
|
44227
44456
|
});
|
|
44228
44457
|
UniswapLiquidityProvisionInRangeRequest$outboundSchema = objectType({
|
|
44229
44458
|
chain: UniswapLiquidityProvisionInRangeChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44230
|
-
block: nullableType(numberType().int()).optional(),
|
|
44231
44459
|
tokenId: numberType().int().default(4318185)
|
|
44232
44460
|
}).transform((v2) => {
|
|
44233
44461
|
return remap(v2, {
|
|
@@ -44257,12 +44485,10 @@ var init_uniswapliquidityprovisionpositions = __esm(() => {
|
|
|
44257
44485
|
})(UniswapLiquidityProvisionPositionsChain$ ||= {});
|
|
44258
44486
|
UniswapLiquidityProvisionPositionsRequest$inboundSchema = objectType({
|
|
44259
44487
|
chain: UniswapLiquidityProvisionPositionsChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44260
|
-
block: nullableType(numberType().int()).optional(),
|
|
44261
44488
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
44262
44489
|
});
|
|
44263
44490
|
UniswapLiquidityProvisionPositionsRequest$outboundSchema = objectType({
|
|
44264
44491
|
chain: UniswapLiquidityProvisionPositionsChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44265
|
-
block: nullableType(numberType().int()).optional(),
|
|
44266
44492
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
44267
44493
|
});
|
|
44268
44494
|
((UniswapLiquidityProvisionPositionsRequest$) => {
|
|
@@ -44405,7 +44631,6 @@ var init_uniswappoolprice = __esm(() => {
|
|
|
44405
44631
|
})(UniswapPoolPriceFeeEnum$ ||= {});
|
|
44406
44632
|
UniswapPoolPriceRequest$inboundSchema = objectType({
|
|
44407
44633
|
chain: UniswapPoolPriceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44408
|
-
block: nullableType(numberType().int()).optional(),
|
|
44409
44634
|
token_in: UniswapPoolPriceTokenInToken$inboundSchema.default("USDC"),
|
|
44410
44635
|
token_out: UniswapPoolPriceTokenOutToken$inboundSchema.default("USDT"),
|
|
44411
44636
|
fee: UniswapPoolPriceFeeEnum$inboundSchema.default("0.01")
|
|
@@ -44417,7 +44642,6 @@ var init_uniswappoolprice = __esm(() => {
|
|
|
44417
44642
|
});
|
|
44418
44643
|
UniswapPoolPriceRequest$outboundSchema = objectType({
|
|
44419
44644
|
chain: UniswapPoolPriceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44420
|
-
block: nullableType(numberType().int()).optional(),
|
|
44421
44645
|
tokenIn: UniswapPoolPriceTokenInToken$outboundSchema.default("USDC"),
|
|
44422
44646
|
tokenOut: UniswapPoolPriceTokenOutToken$outboundSchema.default("USDT"),
|
|
44423
44647
|
fee: UniswapPoolPriceFeeEnum$outboundSchema.default("0.01")
|
|
@@ -44573,7 +44797,6 @@ var init_uniswapquotebuyexactly = __esm(() => {
|
|
|
44573
44797
|
})(AmountOut$ ||= {});
|
|
44574
44798
|
UniswapQuoteBuyExactlyRequest$inboundSchema = objectType({
|
|
44575
44799
|
chain: UniswapQuoteBuyExactlyChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44576
|
-
block: nullableType(numberType().int()).optional(),
|
|
44577
44800
|
token_in: UniswapQuoteBuyExactlyTokenInToken$inboundSchema.default("USDC"),
|
|
44578
44801
|
token_out: UniswapQuoteBuyExactlyTokenOutToken$inboundSchema.default("USDT"),
|
|
44579
44802
|
fee: UniswapQuoteBuyExactlyFeeEnum$inboundSchema.default("0.01"),
|
|
@@ -44587,7 +44810,6 @@ var init_uniswapquotebuyexactly = __esm(() => {
|
|
|
44587
44810
|
});
|
|
44588
44811
|
UniswapQuoteBuyExactlyRequest$outboundSchema = objectType({
|
|
44589
44812
|
chain: UniswapQuoteBuyExactlyChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44590
|
-
block: nullableType(numberType().int()).optional(),
|
|
44591
44813
|
tokenIn: UniswapQuoteBuyExactlyTokenInToken$outboundSchema.default("USDC"),
|
|
44592
44814
|
tokenOut: UniswapQuoteBuyExactlyTokenOutToken$outboundSchema.default("USDT"),
|
|
44593
44815
|
fee: UniswapQuoteBuyExactlyFeeEnum$outboundSchema.default("0.01"),
|
|
@@ -44745,7 +44967,6 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
44745
44967
|
})(AmountIn$ ||= {});
|
|
44746
44968
|
UniswapQuoteSellExactlyRequest$inboundSchema = objectType({
|
|
44747
44969
|
chain: UniswapQuoteSellExactlyChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44748
|
-
block: nullableType(numberType().int()).optional(),
|
|
44749
44970
|
token_in: UniswapQuoteSellExactlyTokenInToken$inboundSchema.default("USDC"),
|
|
44750
44971
|
token_out: UniswapQuoteSellExactlyTokenOutToken$inboundSchema.default("USDT"),
|
|
44751
44972
|
fee: UniswapQuoteSellExactlyFeeEnum$inboundSchema.default("0.01"),
|
|
@@ -44759,7 +44980,6 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
44759
44980
|
});
|
|
44760
44981
|
UniswapQuoteSellExactlyRequest$outboundSchema = objectType({
|
|
44761
44982
|
chain: UniswapQuoteSellExactlyChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44762
|
-
block: nullableType(numberType().int()).optional(),
|
|
44763
44983
|
tokenIn: UniswapQuoteSellExactlyTokenInToken$outboundSchema.default("USDC"),
|
|
44764
44984
|
tokenOut: UniswapQuoteSellExactlyTokenOutToken$outboundSchema.default("USDT"),
|
|
44765
44985
|
fee: UniswapQuoteSellExactlyFeeEnum$outboundSchema.default("0.01"),
|
|
@@ -44905,7 +45125,7 @@ async function $do(client, request, options) {
|
|
|
44905
45125
|
const responseFields = {
|
|
44906
45126
|
HttpMeta: { Response: response, Request: req }
|
|
44907
45127
|
};
|
|
44908
|
-
const [result] = await match(json(200, AaveAvgRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45128
|
+
const [result] = await match(json(200, AaveAvgRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
44909
45129
|
if (!result.ok) {
|
|
44910
45130
|
return [result, { status: "complete", request: req, response }];
|
|
44911
45131
|
}
|
|
@@ -45009,7 +45229,7 @@ async function $do2(client, request, options) {
|
|
|
45009
45229
|
const responseFields = {
|
|
45010
45230
|
HttpMeta: { Response: response, Request: req }
|
|
45011
45231
|
};
|
|
45012
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45232
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45013
45233
|
if (!result.ok) {
|
|
45014
45234
|
return [result, { status: "complete", request: req, response }];
|
|
45015
45235
|
}
|
|
@@ -45072,7 +45292,6 @@ async function $do3(client, request, options) {
|
|
|
45072
45292
|
const body = null;
|
|
45073
45293
|
const path = pathToFunc("/v0/aave/historical_transactions/get")();
|
|
45074
45294
|
const query = encodeFormQuery({
|
|
45075
|
-
block: payload.block,
|
|
45076
45295
|
chain: payload.chain,
|
|
45077
45296
|
limit: payload.limit,
|
|
45078
45297
|
offset: payload.offset,
|
|
@@ -45122,7 +45341,7 @@ async function $do3(client, request, options) {
|
|
|
45122
45341
|
const responseFields = {
|
|
45123
45342
|
HttpMeta: { Response: response, Request: req }
|
|
45124
45343
|
};
|
|
45125
|
-
const [result] = await match(json(200, AaveHistoricalTransactionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45344
|
+
const [result] = await match(json(200, AaveHistoricalTransactionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45126
45345
|
if (!result.ok) {
|
|
45127
45346
|
return [result, { status: "complete", request: req, response }];
|
|
45128
45347
|
}
|
|
@@ -45188,7 +45407,6 @@ async function $do4(client, request, options) {
|
|
|
45188
45407
|
const body = null;
|
|
45189
45408
|
const path = pathToFunc("/v0/aave/liquidity/change/get")();
|
|
45190
45409
|
const query = encodeFormQuery({
|
|
45191
|
-
block: payload.block,
|
|
45192
45410
|
chain: payload.chain,
|
|
45193
45411
|
end_block: payload.end_block,
|
|
45194
45412
|
start_block: payload.start_block,
|
|
@@ -45238,7 +45456,7 @@ async function $do4(client, request, options) {
|
|
|
45238
45456
|
const responseFields = {
|
|
45239
45457
|
HttpMeta: { Response: response, Request: req }
|
|
45240
45458
|
};
|
|
45241
|
-
const [result] = await match(json(200, AaveLiquidityChangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45459
|
+
const [result] = await match(json(200, AaveLiquidityChangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45242
45460
|
if (!result.ok) {
|
|
45243
45461
|
return [result, { status: "complete", request: req, response }];
|
|
45244
45462
|
}
|
|
@@ -45357,7 +45575,7 @@ async function $do5(client, request, options) {
|
|
|
45357
45575
|
const responseFields = {
|
|
45358
45576
|
HttpMeta: { Response: response, Request: req }
|
|
45359
45577
|
};
|
|
45360
|
-
const [result] = await match(json(200, AaveRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45578
|
+
const [result] = await match(json(200, AaveRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45361
45579
|
if (!result.ok) {
|
|
45362
45580
|
return [result, { status: "complete", request: req, response }];
|
|
45363
45581
|
}
|
|
@@ -45474,7 +45692,7 @@ async function $do6(client, request, options) {
|
|
|
45474
45692
|
const responseFields = {
|
|
45475
45693
|
HttpMeta: { Response: response, Request: req }
|
|
45476
45694
|
};
|
|
45477
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45695
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45478
45696
|
if (!result.ok) {
|
|
45479
45697
|
return [result, { status: "complete", request: req, response }];
|
|
45480
45698
|
}
|
|
@@ -45589,7 +45807,7 @@ async function $do7(client, request, options) {
|
|
|
45589
45807
|
const responseFields = {
|
|
45590
45808
|
HttpMeta: { Response: response, Request: req }
|
|
45591
45809
|
};
|
|
45592
|
-
const [result] = await match(json(200, AaveReserveOverviewResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45810
|
+
const [result] = await match(json(200, AaveReserveOverviewResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45593
45811
|
if (!result.ok) {
|
|
45594
45812
|
return [result, { status: "complete", request: req, response }];
|
|
45595
45813
|
}
|
|
@@ -45704,7 +45922,7 @@ async function $do8(client, request, options) {
|
|
|
45704
45922
|
const responseFields = {
|
|
45705
45923
|
HttpMeta: { Response: response, Request: req }
|
|
45706
45924
|
};
|
|
45707
|
-
const [result] = await match(json(200, AaveSTDRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45925
|
+
const [result] = await match(json(200, AaveSTDRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45708
45926
|
if (!result.ok) {
|
|
45709
45927
|
return [result, { status: "complete", request: req, response }];
|
|
45710
45928
|
}
|
|
@@ -45809,7 +46027,7 @@ async function $do9(client, request, options) {
|
|
|
45809
46027
|
const responseFields = {
|
|
45810
46028
|
HttpMeta: { Response: response, Request: req }
|
|
45811
46029
|
};
|
|
45812
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46030
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45813
46031
|
if (!result.ok) {
|
|
45814
46032
|
return [result, { status: "complete", request: req, response }];
|
|
45815
46033
|
}
|
|
@@ -45925,7 +46143,7 @@ async function $do10(client, request, options) {
|
|
|
45925
46143
|
const responseFields = {
|
|
45926
46144
|
HttpMeta: { Response: response, Request: req }
|
|
45927
46145
|
};
|
|
45928
|
-
const [result] = await match(json(200, AaveTokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46146
|
+
const [result] = await match(json(200, AaveTokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45929
46147
|
if (!result.ok) {
|
|
45930
46148
|
return [result, { status: "complete", request: req, response }];
|
|
45931
46149
|
}
|
|
@@ -46042,7 +46260,7 @@ async function $do11(client, request, options) {
|
|
|
46042
46260
|
const responseFields = {
|
|
46043
46261
|
HttpMeta: { Response: response, Request: req }
|
|
46044
46262
|
};
|
|
46045
|
-
const [result] = await match(json(200, AaveUserPositionPerTokenResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46263
|
+
const [result] = await match(json(200, AaveUserPositionPerTokenResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46046
46264
|
if (!result.ok) {
|
|
46047
46265
|
return [result, { status: "complete", request: req, response }];
|
|
46048
46266
|
}
|
|
@@ -46159,7 +46377,7 @@ async function $do12(client, request, options) {
|
|
|
46159
46377
|
const responseFields = {
|
|
46160
46378
|
HttpMeta: { Response: response, Request: req }
|
|
46161
46379
|
};
|
|
46162
|
-
const [result] = await match(json(200, AaveUserPositionSummaryResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46380
|
+
const [result] = await match(json(200, AaveUserPositionSummaryResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46163
46381
|
if (!result.ok) {
|
|
46164
46382
|
return [result, { status: "complete", request: req, response }];
|
|
46165
46383
|
}
|
|
@@ -46270,7 +46488,7 @@ async function $do13(client, request, options) {
|
|
|
46270
46488
|
const responseFields = {
|
|
46271
46489
|
HttpMeta: { Response: response, Request: req }
|
|
46272
46490
|
};
|
|
46273
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46491
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46274
46492
|
if (!result.ok) {
|
|
46275
46493
|
return [result, { status: "complete", request: req, response }];
|
|
46276
46494
|
}
|
|
@@ -46381,7 +46599,7 @@ async function $do14(client, request, options) {
|
|
|
46381
46599
|
const responseFields = {
|
|
46382
46600
|
HttpMeta: { Response: response, Request: req }
|
|
46383
46601
|
};
|
|
46384
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46602
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46385
46603
|
if (!result.ok) {
|
|
46386
46604
|
return [result, { status: "complete", request: req, response }];
|
|
46387
46605
|
}
|
|
@@ -46494,7 +46712,7 @@ async function $do15(client, request, options) {
|
|
|
46494
46712
|
const responseFields = {
|
|
46495
46713
|
HttpMeta: { Response: response, Request: req }
|
|
46496
46714
|
};
|
|
46497
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46715
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46498
46716
|
if (!result.ok) {
|
|
46499
46717
|
return [result, { status: "complete", request: req, response }];
|
|
46500
46718
|
}
|
|
@@ -46562,7 +46780,6 @@ async function $do16(client, request, options) {
|
|
|
46562
46780
|
const body = null;
|
|
46563
46781
|
const path = pathToFunc("/v0/aerodrome_slipstream/liquidity_provision/positions/get")();
|
|
46564
46782
|
const query = encodeFormQuery({
|
|
46565
|
-
block: payload.block,
|
|
46566
46783
|
chain: payload.chain,
|
|
46567
46784
|
user: payload.user
|
|
46568
46785
|
});
|
|
@@ -46610,7 +46827,7 @@ async function $do16(client, request, options) {
|
|
|
46610
46827
|
const responseFields = {
|
|
46611
46828
|
HttpMeta: { Response: response, Request: req }
|
|
46612
46829
|
};
|
|
46613
|
-
const [result] = await match(json(200, AerodromeLPPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46830
|
+
const [result] = await match(json(200, AerodromeLPPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46614
46831
|
if (!result.ok) {
|
|
46615
46832
|
return [result, { status: "complete", request: req, response }];
|
|
46616
46833
|
}
|
|
@@ -46722,7 +46939,7 @@ async function $do17(client, request, options) {
|
|
|
46722
46939
|
const responseFields = {
|
|
46723
46940
|
HttpMeta: { Response: response, Request: req }
|
|
46724
46941
|
};
|
|
46725
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46942
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46726
46943
|
if (!result.ok) {
|
|
46727
46944
|
return [result, { status: "complete", request: req, response }];
|
|
46728
46945
|
}
|
|
@@ -46792,7 +47009,6 @@ async function $do18(client, request, options) {
|
|
|
46792
47009
|
const body = null;
|
|
46793
47010
|
const path = pathToFunc("/v0/aerodrome_slipstream/pool_price/get")();
|
|
46794
47011
|
const query = encodeFormQuery({
|
|
46795
|
-
block: payload.block,
|
|
46796
47012
|
chain: payload.chain,
|
|
46797
47013
|
tick_spacing: payload.tick_spacing,
|
|
46798
47014
|
token_in: payload.token_in,
|
|
@@ -46842,7 +47058,7 @@ async function $do18(client, request, options) {
|
|
|
46842
47058
|
const responseFields = {
|
|
46843
47059
|
HttpMeta: { Response: response, Request: req }
|
|
46844
47060
|
};
|
|
46845
|
-
const [result] = await match(json(200, AerodromeSlipstreamPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47061
|
+
const [result] = await match(json(200, AerodromeSlipstreamPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46846
47062
|
if (!result.ok) {
|
|
46847
47063
|
return [result, { status: "complete", request: req, response }];
|
|
46848
47064
|
}
|
|
@@ -46951,7 +47167,7 @@ async function $do19(client, request, options) {
|
|
|
46951
47167
|
const responseFields = {
|
|
46952
47168
|
HttpMeta: { Response: response, Request: req }
|
|
46953
47169
|
};
|
|
46954
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47170
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46955
47171
|
if (!result.ok) {
|
|
46956
47172
|
return [result, { status: "complete", request: req, response }];
|
|
46957
47173
|
}
|
|
@@ -47063,7 +47279,7 @@ async function $do20(client, request, options) {
|
|
|
47063
47279
|
const responseFields = {
|
|
47064
47280
|
HttpMeta: { Response: response, Request: req }
|
|
47065
47281
|
};
|
|
47066
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47282
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47067
47283
|
if (!result.ok) {
|
|
47068
47284
|
return [result, { status: "complete", request: req, response }];
|
|
47069
47285
|
}
|
|
@@ -47174,7 +47390,7 @@ async function $do21(client, request, options) {
|
|
|
47174
47390
|
const responseFields = {
|
|
47175
47391
|
HttpMeta: { Response: response, Request: req }
|
|
47176
47392
|
};
|
|
47177
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47393
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47178
47394
|
if (!result.ok) {
|
|
47179
47395
|
return [result, { status: "complete", request: req, response }];
|
|
47180
47396
|
}
|
|
@@ -47281,7 +47497,7 @@ async function $do22(client, request, options) {
|
|
|
47281
47497
|
const responseFields = {
|
|
47282
47498
|
HttpMeta: { Response: response, Request: req }
|
|
47283
47499
|
};
|
|
47284
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47500
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47285
47501
|
if (!result.ok) {
|
|
47286
47502
|
return [result, { status: "complete", request: req, response }];
|
|
47287
47503
|
}
|
|
@@ -47392,7 +47608,7 @@ async function $do23(client, request, options) {
|
|
|
47392
47608
|
const responseFields = {
|
|
47393
47609
|
HttpMeta: { Response: response, Request: req }
|
|
47394
47610
|
};
|
|
47395
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47611
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47396
47612
|
if (!result.ok) {
|
|
47397
47613
|
return [result, { status: "complete", request: req, response }];
|
|
47398
47614
|
}
|
|
@@ -47462,7 +47678,6 @@ async function $do24(client, request, options) {
|
|
|
47462
47678
|
const body = null;
|
|
47463
47679
|
const path = pathToFunc("/v0/morpho/market")();
|
|
47464
47680
|
const query = encodeFormQuery({
|
|
47465
|
-
block: payload.block,
|
|
47466
47681
|
chain: payload.chain,
|
|
47467
47682
|
unique_market_key: payload.unique_market_key
|
|
47468
47683
|
});
|
|
@@ -47510,7 +47725,7 @@ async function $do24(client, request, options) {
|
|
|
47510
47725
|
const responseFields = {
|
|
47511
47726
|
HttpMeta: { Response: response, Request: req }
|
|
47512
47727
|
};
|
|
47513
|
-
const [result] = await match(json(200, MorphoGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47728
|
+
const [result] = await match(json(200, MorphoGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47514
47729
|
if (!result.ok) {
|
|
47515
47730
|
return [result, { status: "complete", request: req, response }];
|
|
47516
47731
|
}
|
|
@@ -47580,7 +47795,6 @@ async function $do25(client, request, options) {
|
|
|
47580
47795
|
const body = null;
|
|
47581
47796
|
const path = pathToFunc("/v0/morpho/market_position")();
|
|
47582
47797
|
const query = encodeFormQuery({
|
|
47583
|
-
block: payload.block,
|
|
47584
47798
|
chain: payload.chain,
|
|
47585
47799
|
unique_market_key: payload.unique_market_key,
|
|
47586
47800
|
user_address: payload.user_address
|
|
@@ -47629,7 +47843,7 @@ async function $do25(client, request, options) {
|
|
|
47629
47843
|
const responseFields = {
|
|
47630
47844
|
HttpMeta: { Response: response, Request: req }
|
|
47631
47845
|
};
|
|
47632
|
-
const [result] = await match(json(200, MorphoCheckMarketPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47846
|
+
const [result] = await match(json(200, MorphoCheckMarketPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47633
47847
|
if (!result.ok) {
|
|
47634
47848
|
return [result, { status: "complete", request: req, response }];
|
|
47635
47849
|
}
|
|
@@ -47691,7 +47905,6 @@ async function $do26(client, request, options) {
|
|
|
47691
47905
|
const body = null;
|
|
47692
47906
|
const path = pathToFunc("/v0/morpho/markets")();
|
|
47693
47907
|
const query = encodeFormQuery({
|
|
47694
|
-
block: payload.block,
|
|
47695
47908
|
chain: payload.chain,
|
|
47696
47909
|
collateral_token: payload.collateral_token,
|
|
47697
47910
|
loan_token: payload.loan_token
|
|
@@ -47740,7 +47953,7 @@ async function $do26(client, request, options) {
|
|
|
47740
47953
|
const responseFields = {
|
|
47741
47954
|
HttpMeta: { Response: response, Request: req }
|
|
47742
47955
|
};
|
|
47743
|
-
const [result] = await match(json(200, MorphoGetMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47956
|
+
const [result] = await match(json(200, MorphoGetMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47744
47957
|
if (!result.ok) {
|
|
47745
47958
|
return [result, { status: "complete", request: req, response }];
|
|
47746
47959
|
}
|
|
@@ -47847,7 +48060,7 @@ async function $do27(client, request, options) {
|
|
|
47847
48060
|
const responseFields = {
|
|
47848
48061
|
HttpMeta: { Response: response, Request: req }
|
|
47849
48062
|
};
|
|
47850
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48063
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47851
48064
|
if (!result.ok) {
|
|
47852
48065
|
return [result, { status: "complete", request: req, response }];
|
|
47853
48066
|
}
|
|
@@ -47955,7 +48168,7 @@ async function $do28(client, request, options) {
|
|
|
47955
48168
|
const responseFields = {
|
|
47956
48169
|
HttpMeta: { Response: response, Request: req }
|
|
47957
48170
|
};
|
|
47958
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48171
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47959
48172
|
if (!result.ok) {
|
|
47960
48173
|
return [result, { status: "complete", request: req, response }];
|
|
47961
48174
|
}
|
|
@@ -48020,7 +48233,6 @@ async function $do29(client, request, options) {
|
|
|
48020
48233
|
const body = null;
|
|
48021
48234
|
const path = pathToFunc("/v0/morpho/user_position")();
|
|
48022
48235
|
const query = encodeFormQuery({
|
|
48023
|
-
block: payload.block,
|
|
48024
48236
|
chain: payload.chain,
|
|
48025
48237
|
user_address: payload.user_address
|
|
48026
48238
|
});
|
|
@@ -48068,7 +48280,7 @@ async function $do29(client, request, options) {
|
|
|
48068
48280
|
const responseFields = {
|
|
48069
48281
|
HttpMeta: { Response: response, Request: req }
|
|
48070
48282
|
};
|
|
48071
|
-
const [result] = await match(json(200, MorphoCheckUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48283
|
+
const [result] = await match(json(200, MorphoCheckUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48072
48284
|
if (!result.ok) {
|
|
48073
48285
|
return [result, { status: "complete", request: req, response }];
|
|
48074
48286
|
}
|
|
@@ -48132,7 +48344,6 @@ async function $do30(client, request, options) {
|
|
|
48132
48344
|
const body = null;
|
|
48133
48345
|
const path = pathToFunc("/v0/morpho/vault")();
|
|
48134
48346
|
const query = encodeFormQuery({
|
|
48135
|
-
block: payload.block,
|
|
48136
48347
|
chain: payload.chain,
|
|
48137
48348
|
vault_address: payload.vault_address
|
|
48138
48349
|
});
|
|
@@ -48180,7 +48391,7 @@ async function $do30(client, request, options) {
|
|
|
48180
48391
|
const responseFields = {
|
|
48181
48392
|
HttpMeta: { Response: response, Request: req }
|
|
48182
48393
|
};
|
|
48183
|
-
const [result] = await match(json(200, MorphoGetVaultResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48394
|
+
const [result] = await match(json(200, MorphoGetVaultResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48184
48395
|
if (!result.ok) {
|
|
48185
48396
|
return [result, { status: "complete", request: req, response }];
|
|
48186
48397
|
}
|
|
@@ -48248,7 +48459,6 @@ async function $do31(client, request, options) {
|
|
|
48248
48459
|
const body = null;
|
|
48249
48460
|
const path = pathToFunc("/v0/morpho/vault_position")();
|
|
48250
48461
|
const query = encodeFormQuery({
|
|
48251
|
-
block: payload.block,
|
|
48252
48462
|
chain: payload.chain,
|
|
48253
48463
|
user_address: payload.user_address,
|
|
48254
48464
|
vault_address: payload.vault_address
|
|
@@ -48297,7 +48507,7 @@ async function $do31(client, request, options) {
|
|
|
48297
48507
|
const responseFields = {
|
|
48298
48508
|
HttpMeta: { Response: response, Request: req }
|
|
48299
48509
|
};
|
|
48300
|
-
const [result] = await match(json(200, MorphoCheckVaultPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48510
|
+
const [result] = await match(json(200, MorphoCheckVaultPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48301
48511
|
if (!result.ok) {
|
|
48302
48512
|
return [result, { status: "complete", request: req, response }];
|
|
48303
48513
|
}
|
|
@@ -48359,7 +48569,6 @@ async function $do32(client, request, options) {
|
|
|
48359
48569
|
const body = null;
|
|
48360
48570
|
const path = pathToFunc("/v0/morpho/vaults")();
|
|
48361
48571
|
const query = encodeFormQuery({
|
|
48362
|
-
block: payload.block,
|
|
48363
48572
|
chain: payload.chain,
|
|
48364
48573
|
deposit_token: payload.deposit_token
|
|
48365
48574
|
});
|
|
@@ -48407,7 +48616,7 @@ async function $do32(client, request, options) {
|
|
|
48407
48616
|
const responseFields = {
|
|
48408
48617
|
HttpMeta: { Response: response, Request: req }
|
|
48409
48618
|
};
|
|
48410
|
-
const [result] = await match(json(200, MorphoGetVaultsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48619
|
+
const [result] = await match(json(200, MorphoGetVaultsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48411
48620
|
if (!result.ok) {
|
|
48412
48621
|
return [result, { status: "complete", request: req, response }];
|
|
48413
48622
|
}
|
|
@@ -48515,7 +48724,7 @@ async function $do33(client, request, options) {
|
|
|
48515
48724
|
const responseFields = {
|
|
48516
48725
|
HttpMeta: { Response: response, Request: req }
|
|
48517
48726
|
};
|
|
48518
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48727
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48519
48728
|
if (!result.ok) {
|
|
48520
48729
|
return [result, { status: "complete", request: req, response }];
|
|
48521
48730
|
}
|
|
@@ -48628,7 +48837,7 @@ async function $do34(client, request, options) {
|
|
|
48628
48837
|
const responseFields = {
|
|
48629
48838
|
HttpMeta: { Response: response, Request: req }
|
|
48630
48839
|
};
|
|
48631
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48840
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48632
48841
|
if (!result.ok) {
|
|
48633
48842
|
return [result, { status: "complete", request: req, response }];
|
|
48634
48843
|
}
|
|
@@ -48680,18 +48889,18 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48680
48889
|
};
|
|
48681
48890
|
});
|
|
48682
48891
|
|
|
48683
|
-
// src/funcs/
|
|
48684
|
-
function
|
|
48892
|
+
// src/funcs/pendleAddLiquidity.ts
|
|
48893
|
+
function pendleAddLiquidity(client, request, options) {
|
|
48685
48894
|
return new APIPromise($do35(client, request, options));
|
|
48686
48895
|
}
|
|
48687
48896
|
async function $do35(client, request, options) {
|
|
48688
|
-
const parsed = safeParse(request, (value) =>
|
|
48897
|
+
const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48689
48898
|
if (!parsed.ok) {
|
|
48690
48899
|
return [parsed, { status: "invalid" }];
|
|
48691
48900
|
}
|
|
48692
48901
|
const payload = parsed.value;
|
|
48693
48902
|
const body = encodeJSON("body", payload, { explode: true });
|
|
48694
|
-
const path = pathToFunc("/v0/pendle/
|
|
48903
|
+
const path = pathToFunc("/v0/pendle/add_liquidity")();
|
|
48695
48904
|
const headers = new Headers(compactMap({
|
|
48696
48905
|
"Content-Type": "application/json",
|
|
48697
48906
|
Accept: "application/json"
|
|
@@ -48702,7 +48911,7 @@ async function $do35(client, request, options) {
|
|
|
48702
48911
|
const context = {
|
|
48703
48912
|
options: client._options,
|
|
48704
48913
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48705
|
-
operationID: "
|
|
48914
|
+
operationID: "pendle_add_liquidity",
|
|
48706
48915
|
oAuth2Scopes: [],
|
|
48707
48916
|
resolvedSecurity: requestSecurity,
|
|
48708
48917
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -48736,13 +48945,13 @@ async function $do35(client, request, options) {
|
|
|
48736
48945
|
const responseFields = {
|
|
48737
48946
|
HttpMeta: { Response: response, Request: req }
|
|
48738
48947
|
};
|
|
48739
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48948
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48740
48949
|
if (!result.ok) {
|
|
48741
48950
|
return [result, { status: "complete", request: req, response }];
|
|
48742
48951
|
}
|
|
48743
48952
|
return [result, { status: "complete", request: req, response }];
|
|
48744
48953
|
}
|
|
48745
|
-
var
|
|
48954
|
+
var init_pendleAddLiquidity = __esm(() => {
|
|
48746
48955
|
init_encodings();
|
|
48747
48956
|
init_matchers();
|
|
48748
48957
|
init_primitives();
|
|
@@ -48754,23 +48963,26 @@ var init_pendleBuyPt = __esm(() => {
|
|
|
48754
48963
|
init_async();
|
|
48755
48964
|
});
|
|
48756
48965
|
|
|
48757
|
-
// src/mcp-server/tools/
|
|
48758
|
-
var args35, tool$
|
|
48759
|
-
var
|
|
48760
|
-
|
|
48966
|
+
// src/mcp-server/tools/pendleAddLiquidity.ts
|
|
48967
|
+
var args35, tool$pendleAddLiquidity;
|
|
48968
|
+
var init_pendleAddLiquidity2 = __esm(() => {
|
|
48969
|
+
init_pendleAddLiquidity();
|
|
48761
48970
|
init_components();
|
|
48762
48971
|
init_tools();
|
|
48763
48972
|
args35 = {
|
|
48764
|
-
request:
|
|
48973
|
+
request: PendleAddLiquidityRequest$inboundSchema
|
|
48765
48974
|
};
|
|
48766
|
-
tool$
|
|
48767
|
-
name: "pendle-
|
|
48768
|
-
description: `
|
|
48975
|
+
tool$pendleAddLiquidity = {
|
|
48976
|
+
name: "pendle-add-liquidity",
|
|
48977
|
+
description: `Add Liquidity
|
|
48769
48978
|
|
|
48770
|
-
|
|
48979
|
+
Add liquidity to a Pendle Market to earn yield.
|
|
48980
|
+
|
|
48981
|
+
Liquidity is added in the form of the market's Underlying Token. Representation of
|
|
48982
|
+
the liquidity received is the market's Liquidity Provider Token (LP).`,
|
|
48771
48983
|
args: args35,
|
|
48772
48984
|
tool: async (client, args36, ctx) => {
|
|
48773
|
-
const [result, apiCall] = await
|
|
48985
|
+
const [result, apiCall] = await pendleAddLiquidity(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48774
48986
|
if (!result.ok) {
|
|
48775
48987
|
return {
|
|
48776
48988
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48783,18 +48995,18 @@ Buy Principal Token (PT) with market's Underlying Token.`,
|
|
|
48783
48995
|
};
|
|
48784
48996
|
});
|
|
48785
48997
|
|
|
48786
|
-
// src/funcs/
|
|
48787
|
-
function
|
|
48998
|
+
// src/funcs/pendleBuyPt.ts
|
|
48999
|
+
function pendleBuyPt(client, request, options) {
|
|
48788
49000
|
return new APIPromise($do36(client, request, options));
|
|
48789
49001
|
}
|
|
48790
49002
|
async function $do36(client, request, options) {
|
|
48791
|
-
const parsed = safeParse(request, (value) =>
|
|
49003
|
+
const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48792
49004
|
if (!parsed.ok) {
|
|
48793
49005
|
return [parsed, { status: "invalid" }];
|
|
48794
49006
|
}
|
|
48795
49007
|
const payload = parsed.value;
|
|
48796
49008
|
const body = encodeJSON("body", payload, { explode: true });
|
|
48797
|
-
const path = pathToFunc("/v0/pendle/
|
|
49009
|
+
const path = pathToFunc("/v0/pendle/buy_pt")();
|
|
48798
49010
|
const headers = new Headers(compactMap({
|
|
48799
49011
|
"Content-Type": "application/json",
|
|
48800
49012
|
Accept: "application/json"
|
|
@@ -48805,7 +49017,7 @@ async function $do36(client, request, options) {
|
|
|
48805
49017
|
const context = {
|
|
48806
49018
|
options: client._options,
|
|
48807
49019
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48808
|
-
operationID: "
|
|
49020
|
+
operationID: "pendle_buy_pt",
|
|
48809
49021
|
oAuth2Scopes: [],
|
|
48810
49022
|
resolvedSecurity: requestSecurity,
|
|
48811
49023
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -48839,13 +49051,116 @@ async function $do36(client, request, options) {
|
|
|
48839
49051
|
const responseFields = {
|
|
48840
49052
|
HttpMeta: { Response: response, Request: req }
|
|
48841
49053
|
};
|
|
48842
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49054
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48843
49055
|
if (!result.ok) {
|
|
48844
49056
|
return [result, { status: "complete", request: req, response }];
|
|
48845
49057
|
}
|
|
48846
49058
|
return [result, { status: "complete", request: req, response }];
|
|
48847
49059
|
}
|
|
48848
|
-
var
|
|
49060
|
+
var init_pendleBuyPt = __esm(() => {
|
|
49061
|
+
init_encodings();
|
|
49062
|
+
init_matchers();
|
|
49063
|
+
init_primitives();
|
|
49064
|
+
init_schemas();
|
|
49065
|
+
init_security();
|
|
49066
|
+
init_url();
|
|
49067
|
+
init_components();
|
|
49068
|
+
init_errors2();
|
|
49069
|
+
init_async();
|
|
49070
|
+
});
|
|
49071
|
+
|
|
49072
|
+
// src/mcp-server/tools/pendleBuyPt.ts
|
|
49073
|
+
var args36, tool$pendleBuyPt;
|
|
49074
|
+
var init_pendleBuyPt2 = __esm(() => {
|
|
49075
|
+
init_pendleBuyPt();
|
|
49076
|
+
init_components();
|
|
49077
|
+
init_tools();
|
|
49078
|
+
args36 = {
|
|
49079
|
+
request: PendleBuyPtRequest$inboundSchema
|
|
49080
|
+
};
|
|
49081
|
+
tool$pendleBuyPt = {
|
|
49082
|
+
name: "pendle-buy-pt",
|
|
49083
|
+
description: `Buy Principal Token (PT)
|
|
49084
|
+
|
|
49085
|
+
Buy Principal Token (PT) with market's Underlying Token.`,
|
|
49086
|
+
args: args36,
|
|
49087
|
+
tool: async (client, args37, ctx) => {
|
|
49088
|
+
const [result, apiCall] = await pendleBuyPt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49089
|
+
if (!result.ok) {
|
|
49090
|
+
return {
|
|
49091
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49092
|
+
isError: true
|
|
49093
|
+
};
|
|
49094
|
+
}
|
|
49095
|
+
const value = result.value;
|
|
49096
|
+
return formatResult(value, apiCall);
|
|
49097
|
+
}
|
|
49098
|
+
};
|
|
49099
|
+
});
|
|
49100
|
+
|
|
49101
|
+
// src/funcs/pendleBuyYt.ts
|
|
49102
|
+
function pendleBuyYt(client, request, options) {
|
|
49103
|
+
return new APIPromise($do37(client, request, options));
|
|
49104
|
+
}
|
|
49105
|
+
async function $do37(client, request, options) {
|
|
49106
|
+
const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49107
|
+
if (!parsed.ok) {
|
|
49108
|
+
return [parsed, { status: "invalid" }];
|
|
49109
|
+
}
|
|
49110
|
+
const payload = parsed.value;
|
|
49111
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49112
|
+
const path = pathToFunc("/v0/pendle/buy_yt")();
|
|
49113
|
+
const headers = new Headers(compactMap({
|
|
49114
|
+
"Content-Type": "application/json",
|
|
49115
|
+
Accept: "application/json"
|
|
49116
|
+
}));
|
|
49117
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49118
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49119
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49120
|
+
const context = {
|
|
49121
|
+
options: client._options,
|
|
49122
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49123
|
+
operationID: "pendle_buy_yt",
|
|
49124
|
+
oAuth2Scopes: [],
|
|
49125
|
+
resolvedSecurity: requestSecurity,
|
|
49126
|
+
securitySource: client._options.apiKeyAuth,
|
|
49127
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49128
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49129
|
+
};
|
|
49130
|
+
const requestRes = client._createRequest(context, {
|
|
49131
|
+
security: requestSecurity,
|
|
49132
|
+
method: "POST",
|
|
49133
|
+
baseURL: options?.serverURL,
|
|
49134
|
+
path,
|
|
49135
|
+
headers,
|
|
49136
|
+
body,
|
|
49137
|
+
userAgent: client._options.userAgent,
|
|
49138
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49139
|
+
}, options);
|
|
49140
|
+
if (!requestRes.ok) {
|
|
49141
|
+
return [requestRes, { status: "invalid" }];
|
|
49142
|
+
}
|
|
49143
|
+
const req = requestRes.value;
|
|
49144
|
+
const doResult = await client._do(req, {
|
|
49145
|
+
context,
|
|
49146
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
49147
|
+
retryConfig: context.retryConfig,
|
|
49148
|
+
retryCodes: context.retryCodes
|
|
49149
|
+
});
|
|
49150
|
+
if (!doResult.ok) {
|
|
49151
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49152
|
+
}
|
|
49153
|
+
const response = doResult.value;
|
|
49154
|
+
const responseFields = {
|
|
49155
|
+
HttpMeta: { Response: response, Request: req }
|
|
49156
|
+
};
|
|
49157
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49158
|
+
if (!result.ok) {
|
|
49159
|
+
return [result, { status: "complete", request: req, response }];
|
|
49160
|
+
}
|
|
49161
|
+
return [result, { status: "complete", request: req, response }];
|
|
49162
|
+
}
|
|
49163
|
+
var init_pendleBuyYt = __esm(() => {
|
|
48849
49164
|
init_encodings();
|
|
48850
49165
|
init_matchers();
|
|
48851
49166
|
init_primitives();
|
|
@@ -48858,12 +49173,12 @@ var init_pendleBuyYt = __esm(() => {
|
|
|
48858
49173
|
});
|
|
48859
49174
|
|
|
48860
49175
|
// src/mcp-server/tools/pendleBuyYt.ts
|
|
48861
|
-
var
|
|
49176
|
+
var args37, tool$pendleBuyYt;
|
|
48862
49177
|
var init_pendleBuyYt2 = __esm(() => {
|
|
48863
49178
|
init_pendleBuyYt();
|
|
48864
49179
|
init_components();
|
|
48865
49180
|
init_tools();
|
|
48866
|
-
|
|
49181
|
+
args37 = {
|
|
48867
49182
|
request: PendleBuyYtRequest$inboundSchema
|
|
48868
49183
|
};
|
|
48869
49184
|
tool$pendleBuyYt = {
|
|
@@ -48871,9 +49186,9 @@ var init_pendleBuyYt2 = __esm(() => {
|
|
|
48871
49186
|
description: `Buy Yield Token (YT)
|
|
48872
49187
|
|
|
48873
49188
|
Buy Yield Token (YT) with market's Underlying Token.`,
|
|
48874
|
-
args:
|
|
48875
|
-
tool: async (client,
|
|
48876
|
-
const [result, apiCall] = await pendleBuyYt(client,
|
|
49189
|
+
args: args37,
|
|
49190
|
+
tool: async (client, args38, ctx) => {
|
|
49191
|
+
const [result, apiCall] = await pendleBuyYt(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48877
49192
|
if (!result.ok) {
|
|
48878
49193
|
return {
|
|
48879
49194
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48888,9 +49203,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
|
|
|
48888
49203
|
|
|
48889
49204
|
// src/funcs/pendleMarket.ts
|
|
48890
49205
|
function pendleMarket(client, request, options) {
|
|
48891
|
-
return new APIPromise($
|
|
49206
|
+
return new APIPromise($do38(client, request, options));
|
|
48892
49207
|
}
|
|
48893
|
-
async function $
|
|
49208
|
+
async function $do38(client, request, options) {
|
|
48894
49209
|
const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48895
49210
|
if (!parsed.ok) {
|
|
48896
49211
|
return [parsed, { status: "invalid" }];
|
|
@@ -48899,7 +49214,6 @@ async function $do37(client, request, options) {
|
|
|
48899
49214
|
const body = null;
|
|
48900
49215
|
const path = pathToFunc("/v0/pendle/market")();
|
|
48901
49216
|
const query = encodeFormQuery({
|
|
48902
|
-
block: payload.block,
|
|
48903
49217
|
chain: payload.chain,
|
|
48904
49218
|
market_address: payload.market_address
|
|
48905
49219
|
});
|
|
@@ -48947,7 +49261,7 @@ async function $do37(client, request, options) {
|
|
|
48947
49261
|
const responseFields = {
|
|
48948
49262
|
HttpMeta: { Response: response, Request: req }
|
|
48949
49263
|
};
|
|
48950
|
-
const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49264
|
+
const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48951
49265
|
if (!result.ok) {
|
|
48952
49266
|
return [result, { status: "complete", request: req, response }];
|
|
48953
49267
|
}
|
|
@@ -48967,12 +49281,12 @@ var init_pendleMarket = __esm(() => {
|
|
|
48967
49281
|
});
|
|
48968
49282
|
|
|
48969
49283
|
// src/mcp-server/tools/pendleMarket.ts
|
|
48970
|
-
var
|
|
49284
|
+
var args38, tool$pendleMarket;
|
|
48971
49285
|
var init_pendleMarket2 = __esm(() => {
|
|
48972
49286
|
init_pendleMarket();
|
|
48973
49287
|
init_operations();
|
|
48974
49288
|
init_tools();
|
|
48975
|
-
|
|
49289
|
+
args38 = {
|
|
48976
49290
|
request: PendleMarketRequest$inboundSchema
|
|
48977
49291
|
};
|
|
48978
49292
|
tool$pendleMarket = {
|
|
@@ -48980,9 +49294,9 @@ var init_pendleMarket2 = __esm(() => {
|
|
|
48980
49294
|
description: `Get Market Data
|
|
48981
49295
|
|
|
48982
49296
|
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,
|
|
49297
|
+
args: args38,
|
|
49298
|
+
tool: async (client, args39, ctx) => {
|
|
49299
|
+
const [result, apiCall] = await pendleMarket(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48986
49300
|
if (!result.ok) {
|
|
48987
49301
|
return {
|
|
48988
49302
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48997,9 +49311,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
|
|
|
48997
49311
|
|
|
48998
49312
|
// src/funcs/pendleMarkets.ts
|
|
48999
49313
|
function pendleMarkets(client, request, options) {
|
|
49000
|
-
return new APIPromise($
|
|
49314
|
+
return new APIPromise($do39(client, request, options));
|
|
49001
49315
|
}
|
|
49002
|
-
async function $
|
|
49316
|
+
async function $do39(client, request, options) {
|
|
49003
49317
|
const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49004
49318
|
if (!parsed.ok) {
|
|
49005
49319
|
return [parsed, { status: "invalid" }];
|
|
@@ -49008,7 +49322,6 @@ async function $do38(client, request, options) {
|
|
|
49008
49322
|
const body = null;
|
|
49009
49323
|
const path = pathToFunc("/v0/pendle/markets")();
|
|
49010
49324
|
const query = encodeFormQuery({
|
|
49011
|
-
block: payload.block,
|
|
49012
49325
|
chain: payload.chain
|
|
49013
49326
|
});
|
|
49014
49327
|
const headers = new Headers(compactMap({
|
|
@@ -49055,7 +49368,7 @@ async function $do38(client, request, options) {
|
|
|
49055
49368
|
const responseFields = {
|
|
49056
49369
|
HttpMeta: { Response: response, Request: req }
|
|
49057
49370
|
};
|
|
49058
|
-
const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49371
|
+
const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49059
49372
|
if (!result.ok) {
|
|
49060
49373
|
return [result, { status: "complete", request: req, response }];
|
|
49061
49374
|
}
|
|
@@ -49075,12 +49388,12 @@ var init_pendleMarkets = __esm(() => {
|
|
|
49075
49388
|
});
|
|
49076
49389
|
|
|
49077
49390
|
// src/mcp-server/tools/pendleMarkets.ts
|
|
49078
|
-
var
|
|
49391
|
+
var args39, tool$pendleMarkets;
|
|
49079
49392
|
var init_pendleMarkets2 = __esm(() => {
|
|
49080
49393
|
init_pendleMarkets();
|
|
49081
49394
|
init_operations();
|
|
49082
49395
|
init_tools();
|
|
49083
|
-
|
|
49396
|
+
args39 = {
|
|
49084
49397
|
request: PendleMarketsRequest$inboundSchema
|
|
49085
49398
|
};
|
|
49086
49399
|
tool$pendleMarkets = {
|
|
@@ -49088,9 +49401,9 @@ var init_pendleMarkets2 = __esm(() => {
|
|
|
49088
49401
|
description: `List Market Data
|
|
49089
49402
|
|
|
49090
49403
|
Get a list of active markets.`,
|
|
49091
|
-
args:
|
|
49092
|
-
tool: async (client,
|
|
49093
|
-
const [result, apiCall] = await pendleMarkets(client,
|
|
49404
|
+
args: args39,
|
|
49405
|
+
tool: async (client, args40, ctx) => {
|
|
49406
|
+
const [result, apiCall] = await pendleMarkets(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49094
49407
|
if (!result.ok) {
|
|
49095
49408
|
return {
|
|
49096
49409
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49105,9 +49418,9 @@ Get a list of active markets.`,
|
|
|
49105
49418
|
|
|
49106
49419
|
// src/funcs/pendlePosition.ts
|
|
49107
49420
|
function pendlePosition(client, request, options) {
|
|
49108
|
-
return new APIPromise($
|
|
49421
|
+
return new APIPromise($do40(client, request, options));
|
|
49109
49422
|
}
|
|
49110
|
-
async function $
|
|
49423
|
+
async function $do40(client, request, options) {
|
|
49111
49424
|
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49112
49425
|
if (!parsed.ok) {
|
|
49113
49426
|
return [parsed, { status: "invalid" }];
|
|
@@ -49116,7 +49429,6 @@ async function $do39(client, request, options) {
|
|
|
49116
49429
|
const body = null;
|
|
49117
49430
|
const path = pathToFunc("/v0/pendle/position")();
|
|
49118
49431
|
const query = encodeFormQuery({
|
|
49119
|
-
block: payload.block,
|
|
49120
49432
|
chain: payload.chain,
|
|
49121
49433
|
market_address: payload.market_address,
|
|
49122
49434
|
user_address: payload.user_address
|
|
@@ -49165,7 +49477,7 @@ async function $do39(client, request, options) {
|
|
|
49165
49477
|
const responseFields = {
|
|
49166
49478
|
HttpMeta: { Response: response, Request: req }
|
|
49167
49479
|
};
|
|
49168
|
-
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49480
|
+
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49169
49481
|
if (!result.ok) {
|
|
49170
49482
|
return [result, { status: "complete", request: req, response }];
|
|
49171
49483
|
}
|
|
@@ -49185,12 +49497,12 @@ var init_pendlePosition = __esm(() => {
|
|
|
49185
49497
|
});
|
|
49186
49498
|
|
|
49187
49499
|
// src/mcp-server/tools/pendlePosition.ts
|
|
49188
|
-
var
|
|
49500
|
+
var args40, tool$pendlePosition;
|
|
49189
49501
|
var init_pendlePosition2 = __esm(() => {
|
|
49190
49502
|
init_pendlePosition();
|
|
49191
49503
|
init_operations();
|
|
49192
49504
|
init_tools();
|
|
49193
|
-
|
|
49505
|
+
args40 = {
|
|
49194
49506
|
request: PendlePositionRequest$inboundSchema
|
|
49195
49507
|
};
|
|
49196
49508
|
tool$pendlePosition = {
|
|
@@ -49198,9 +49510,9 @@ var init_pendlePosition2 = __esm(() => {
|
|
|
49198
49510
|
description: `Check User's Market Position
|
|
49199
49511
|
|
|
49200
49512
|
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,
|
|
49513
|
+
args: args40,
|
|
49514
|
+
tool: async (client, args41, ctx) => {
|
|
49515
|
+
const [result, apiCall] = await pendlePosition(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49204
49516
|
if (!result.ok) {
|
|
49205
49517
|
return {
|
|
49206
49518
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49215,9 +49527,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
|
49215
49527
|
|
|
49216
49528
|
// src/funcs/pendlePositions.ts
|
|
49217
49529
|
function pendlePositions(client, request, options) {
|
|
49218
|
-
return new APIPromise($
|
|
49530
|
+
return new APIPromise($do41(client, request, options));
|
|
49219
49531
|
}
|
|
49220
|
-
async function $
|
|
49532
|
+
async function $do41(client, request, options) {
|
|
49221
49533
|
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49222
49534
|
if (!parsed.ok) {
|
|
49223
49535
|
return [parsed, { status: "invalid" }];
|
|
@@ -49226,7 +49538,6 @@ async function $do40(client, request, options) {
|
|
|
49226
49538
|
const body = null;
|
|
49227
49539
|
const path = pathToFunc("/v0/pendle/positions")();
|
|
49228
49540
|
const query = encodeFormQuery({
|
|
49229
|
-
block: payload.block,
|
|
49230
49541
|
chain: payload.chain,
|
|
49231
49542
|
user_address: payload.user_address
|
|
49232
49543
|
});
|
|
@@ -49274,7 +49585,7 @@ async function $do40(client, request, options) {
|
|
|
49274
49585
|
const responseFields = {
|
|
49275
49586
|
HttpMeta: { Response: response, Request: req }
|
|
49276
49587
|
};
|
|
49277
|
-
const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49588
|
+
const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49278
49589
|
if (!result.ok) {
|
|
49279
49590
|
return [result, { status: "complete", request: req, response }];
|
|
49280
49591
|
}
|
|
@@ -49294,12 +49605,12 @@ var init_pendlePositions = __esm(() => {
|
|
|
49294
49605
|
});
|
|
49295
49606
|
|
|
49296
49607
|
// src/mcp-server/tools/pendlePositions.ts
|
|
49297
|
-
var
|
|
49608
|
+
var args41, tool$pendlePositions;
|
|
49298
49609
|
var init_pendlePositions2 = __esm(() => {
|
|
49299
49610
|
init_pendlePositions();
|
|
49300
49611
|
init_operations();
|
|
49301
49612
|
init_tools();
|
|
49302
|
-
|
|
49613
|
+
args41 = {
|
|
49303
49614
|
request: PendlePositionsRequest$inboundSchema
|
|
49304
49615
|
};
|
|
49305
49616
|
tool$pendlePositions = {
|
|
@@ -49307,9 +49618,9 @@ var init_pendlePositions2 = __esm(() => {
|
|
|
49307
49618
|
description: `List User's Market Positions
|
|
49308
49619
|
|
|
49309
49620
|
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,
|
|
49621
|
+
args: args41,
|
|
49622
|
+
tool: async (client, args42, ctx) => {
|
|
49623
|
+
const [result, apiCall] = await pendlePositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49313
49624
|
if (!result.ok) {
|
|
49314
49625
|
return {
|
|
49315
49626
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49324,9 +49635,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
49324
49635
|
|
|
49325
49636
|
// src/funcs/pendleRedeemYield.ts
|
|
49326
49637
|
function pendleRedeemYield(client, request, options) {
|
|
49327
|
-
return new APIPromise($
|
|
49638
|
+
return new APIPromise($do42(client, request, options));
|
|
49328
49639
|
}
|
|
49329
|
-
async function $
|
|
49640
|
+
async function $do42(client, request, options) {
|
|
49330
49641
|
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49331
49642
|
if (!parsed.ok) {
|
|
49332
49643
|
return [parsed, { status: "invalid" }];
|
|
@@ -49378,7 +49689,7 @@ async function $do41(client, request, options) {
|
|
|
49378
49689
|
const responseFields = {
|
|
49379
49690
|
HttpMeta: { Response: response, Request: req }
|
|
49380
49691
|
};
|
|
49381
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49692
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49382
49693
|
if (!result.ok) {
|
|
49383
49694
|
return [result, { status: "complete", request: req, response }];
|
|
49384
49695
|
}
|
|
@@ -49397,12 +49708,12 @@ var init_pendleRedeemYield = __esm(() => {
|
|
|
49397
49708
|
});
|
|
49398
49709
|
|
|
49399
49710
|
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
49400
|
-
var
|
|
49711
|
+
var args42, tool$pendleRedeemYield;
|
|
49401
49712
|
var init_pendleRedeemYield2 = __esm(() => {
|
|
49402
49713
|
init_pendleRedeemYield();
|
|
49403
49714
|
init_components();
|
|
49404
49715
|
init_tools();
|
|
49405
|
-
|
|
49716
|
+
args42 = {
|
|
49406
49717
|
request: PendleRedeemYieldRequest$inboundSchema
|
|
49407
49718
|
};
|
|
49408
49719
|
tool$pendleRedeemYield = {
|
|
@@ -49410,9 +49721,116 @@ var init_pendleRedeemYield2 = __esm(() => {
|
|
|
49410
49721
|
description: `Redeem Claimable Yield
|
|
49411
49722
|
|
|
49412
49723
|
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
49413
|
-
args:
|
|
49414
|
-
tool: async (client,
|
|
49415
|
-
const [result, apiCall] = await pendleRedeemYield(client,
|
|
49724
|
+
args: args42,
|
|
49725
|
+
tool: async (client, args43, ctx) => {
|
|
49726
|
+
const [result, apiCall] = await pendleRedeemYield(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49727
|
+
if (!result.ok) {
|
|
49728
|
+
return {
|
|
49729
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49730
|
+
isError: true
|
|
49731
|
+
};
|
|
49732
|
+
}
|
|
49733
|
+
const value = result.value;
|
|
49734
|
+
return formatResult(value, apiCall);
|
|
49735
|
+
}
|
|
49736
|
+
};
|
|
49737
|
+
});
|
|
49738
|
+
|
|
49739
|
+
// src/funcs/pendleRemoveLiquidity.ts
|
|
49740
|
+
function pendleRemoveLiquidity(client, request, options) {
|
|
49741
|
+
return new APIPromise($do43(client, request, options));
|
|
49742
|
+
}
|
|
49743
|
+
async function $do43(client, request, options) {
|
|
49744
|
+
const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49745
|
+
if (!parsed.ok) {
|
|
49746
|
+
return [parsed, { status: "invalid" }];
|
|
49747
|
+
}
|
|
49748
|
+
const payload = parsed.value;
|
|
49749
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49750
|
+
const path = pathToFunc("/v0/pendle/remove_liquidity")();
|
|
49751
|
+
const headers = new Headers(compactMap({
|
|
49752
|
+
"Content-Type": "application/json",
|
|
49753
|
+
Accept: "application/json"
|
|
49754
|
+
}));
|
|
49755
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49756
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49757
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49758
|
+
const context = {
|
|
49759
|
+
options: client._options,
|
|
49760
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49761
|
+
operationID: "pendle_remove_liquidity",
|
|
49762
|
+
oAuth2Scopes: [],
|
|
49763
|
+
resolvedSecurity: requestSecurity,
|
|
49764
|
+
securitySource: client._options.apiKeyAuth,
|
|
49765
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49766
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49767
|
+
};
|
|
49768
|
+
const requestRes = client._createRequest(context, {
|
|
49769
|
+
security: requestSecurity,
|
|
49770
|
+
method: "POST",
|
|
49771
|
+
baseURL: options?.serverURL,
|
|
49772
|
+
path,
|
|
49773
|
+
headers,
|
|
49774
|
+
body,
|
|
49775
|
+
userAgent: client._options.userAgent,
|
|
49776
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49777
|
+
}, options);
|
|
49778
|
+
if (!requestRes.ok) {
|
|
49779
|
+
return [requestRes, { status: "invalid" }];
|
|
49780
|
+
}
|
|
49781
|
+
const req = requestRes.value;
|
|
49782
|
+
const doResult = await client._do(req, {
|
|
49783
|
+
context,
|
|
49784
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
49785
|
+
retryConfig: context.retryConfig,
|
|
49786
|
+
retryCodes: context.retryCodes
|
|
49787
|
+
});
|
|
49788
|
+
if (!doResult.ok) {
|
|
49789
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49790
|
+
}
|
|
49791
|
+
const response = doResult.value;
|
|
49792
|
+
const responseFields = {
|
|
49793
|
+
HttpMeta: { Response: response, Request: req }
|
|
49794
|
+
};
|
|
49795
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49796
|
+
if (!result.ok) {
|
|
49797
|
+
return [result, { status: "complete", request: req, response }];
|
|
49798
|
+
}
|
|
49799
|
+
return [result, { status: "complete", request: req, response }];
|
|
49800
|
+
}
|
|
49801
|
+
var init_pendleRemoveLiquidity = __esm(() => {
|
|
49802
|
+
init_encodings();
|
|
49803
|
+
init_matchers();
|
|
49804
|
+
init_primitives();
|
|
49805
|
+
init_schemas();
|
|
49806
|
+
init_security();
|
|
49807
|
+
init_url();
|
|
49808
|
+
init_components();
|
|
49809
|
+
init_errors2();
|
|
49810
|
+
init_async();
|
|
49811
|
+
});
|
|
49812
|
+
|
|
49813
|
+
// src/mcp-server/tools/pendleRemoveLiquidity.ts
|
|
49814
|
+
var args43, tool$pendleRemoveLiquidity;
|
|
49815
|
+
var init_pendleRemoveLiquidity2 = __esm(() => {
|
|
49816
|
+
init_pendleRemoveLiquidity();
|
|
49817
|
+
init_components();
|
|
49818
|
+
init_tools();
|
|
49819
|
+
args43 = {
|
|
49820
|
+
request: PendleRemoveLiquidityRequest$inboundSchema
|
|
49821
|
+
};
|
|
49822
|
+
tool$pendleRemoveLiquidity = {
|
|
49823
|
+
name: "pendle-remove-liquidity",
|
|
49824
|
+
description: `Remove Liquidity
|
|
49825
|
+
|
|
49826
|
+
Remove liquidity from a Pendle Market.
|
|
49827
|
+
|
|
49828
|
+
Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
|
|
49829
|
+
the market's Underlying Token. An appropriate allowance for the Pendle Router on the
|
|
49830
|
+
market contract must be set beforehand`,
|
|
49831
|
+
args: args43,
|
|
49832
|
+
tool: async (client, args44, ctx) => {
|
|
49833
|
+
const [result, apiCall] = await pendleRemoveLiquidity(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49416
49834
|
if (!result.ok) {
|
|
49417
49835
|
return {
|
|
49418
49836
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49427,9 +49845,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
|
49427
49845
|
|
|
49428
49846
|
// src/funcs/pendleSellPt.ts
|
|
49429
49847
|
function pendleSellPt(client, request, options) {
|
|
49430
|
-
return new APIPromise($
|
|
49848
|
+
return new APIPromise($do44(client, request, options));
|
|
49431
49849
|
}
|
|
49432
|
-
async function $
|
|
49850
|
+
async function $do44(client, request, options) {
|
|
49433
49851
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49434
49852
|
if (!parsed.ok) {
|
|
49435
49853
|
return [parsed, { status: "invalid" }];
|
|
@@ -49481,7 +49899,7 @@ async function $do42(client, request, options) {
|
|
|
49481
49899
|
const responseFields = {
|
|
49482
49900
|
HttpMeta: { Response: response, Request: req }
|
|
49483
49901
|
};
|
|
49484
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49902
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49485
49903
|
if (!result.ok) {
|
|
49486
49904
|
return [result, { status: "complete", request: req, response }];
|
|
49487
49905
|
}
|
|
@@ -49500,12 +49918,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
49500
49918
|
});
|
|
49501
49919
|
|
|
49502
49920
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
49503
|
-
var
|
|
49921
|
+
var args44, tool$pendleSellPt;
|
|
49504
49922
|
var init_pendleSellPt2 = __esm(() => {
|
|
49505
49923
|
init_pendleSellPt();
|
|
49506
49924
|
init_components();
|
|
49507
49925
|
init_tools();
|
|
49508
|
-
|
|
49926
|
+
args44 = {
|
|
49509
49927
|
request: PendleSellPtRequest$inboundSchema
|
|
49510
49928
|
};
|
|
49511
49929
|
tool$pendleSellPt = {
|
|
@@ -49513,9 +49931,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
49513
49931
|
description: `Sell Principal Token (PT)
|
|
49514
49932
|
|
|
49515
49933
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
49516
|
-
args:
|
|
49517
|
-
tool: async (client,
|
|
49518
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
49934
|
+
args: args44,
|
|
49935
|
+
tool: async (client, args45, ctx) => {
|
|
49936
|
+
const [result, apiCall] = await pendleSellPt(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49519
49937
|
if (!result.ok) {
|
|
49520
49938
|
return {
|
|
49521
49939
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49530,9 +49948,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
49530
49948
|
|
|
49531
49949
|
// src/funcs/pendleSellYt.ts
|
|
49532
49950
|
function pendleSellYt(client, request, options) {
|
|
49533
|
-
return new APIPromise($
|
|
49951
|
+
return new APIPromise($do45(client, request, options));
|
|
49534
49952
|
}
|
|
49535
|
-
async function $
|
|
49953
|
+
async function $do45(client, request, options) {
|
|
49536
49954
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49537
49955
|
if (!parsed.ok) {
|
|
49538
49956
|
return [parsed, { status: "invalid" }];
|
|
@@ -49584,7 +50002,7 @@ async function $do43(client, request, options) {
|
|
|
49584
50002
|
const responseFields = {
|
|
49585
50003
|
HttpMeta: { Response: response, Request: req }
|
|
49586
50004
|
};
|
|
49587
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50005
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49588
50006
|
if (!result.ok) {
|
|
49589
50007
|
return [result, { status: "complete", request: req, response }];
|
|
49590
50008
|
}
|
|
@@ -49603,12 +50021,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
49603
50021
|
});
|
|
49604
50022
|
|
|
49605
50023
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
49606
|
-
var
|
|
50024
|
+
var args45, tool$pendleSellYt;
|
|
49607
50025
|
var init_pendleSellYt2 = __esm(() => {
|
|
49608
50026
|
init_pendleSellYt();
|
|
49609
50027
|
init_components();
|
|
49610
50028
|
init_tools();
|
|
49611
|
-
|
|
50029
|
+
args45 = {
|
|
49612
50030
|
request: PendleSellYtRequest$inboundSchema
|
|
49613
50031
|
};
|
|
49614
50032
|
tool$pendleSellYt = {
|
|
@@ -49616,9 +50034,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
49616
50034
|
description: `Sell Yield Token (YT)
|
|
49617
50035
|
|
|
49618
50036
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
49619
|
-
args:
|
|
49620
|
-
tool: async (client,
|
|
49621
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
50037
|
+
args: args45,
|
|
50038
|
+
tool: async (client, args46, ctx) => {
|
|
50039
|
+
const [result, apiCall] = await pendleSellYt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49622
50040
|
if (!result.ok) {
|
|
49623
50041
|
return {
|
|
49624
50042
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49633,9 +50051,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
49633
50051
|
|
|
49634
50052
|
// src/funcs/skyBuy.ts
|
|
49635
50053
|
function skyBuy(client, request, options) {
|
|
49636
|
-
return new APIPromise($
|
|
50054
|
+
return new APIPromise($do46(client, request, options));
|
|
49637
50055
|
}
|
|
49638
|
-
async function $
|
|
50056
|
+
async function $do46(client, request, options) {
|
|
49639
50057
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49640
50058
|
if (!parsed.ok) {
|
|
49641
50059
|
return [parsed, { status: "invalid" }];
|
|
@@ -49687,7 +50105,7 @@ async function $do44(client, request, options) {
|
|
|
49687
50105
|
const responseFields = {
|
|
49688
50106
|
HttpMeta: { Response: response, Request: req }
|
|
49689
50107
|
};
|
|
49690
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50108
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49691
50109
|
if (!result.ok) {
|
|
49692
50110
|
return [result, { status: "complete", request: req, response }];
|
|
49693
50111
|
}
|
|
@@ -49706,12 +50124,12 @@ var init_skyBuy = __esm(() => {
|
|
|
49706
50124
|
});
|
|
49707
50125
|
|
|
49708
50126
|
// src/mcp-server/tools/skyBuy.ts
|
|
49709
|
-
var
|
|
50127
|
+
var args46, tool$skyBuy;
|
|
49710
50128
|
var init_skyBuy2 = __esm(() => {
|
|
49711
50129
|
init_skyBuy();
|
|
49712
50130
|
init_components();
|
|
49713
50131
|
init_tools();
|
|
49714
|
-
|
|
50132
|
+
args46 = {
|
|
49715
50133
|
request: SkyBuyRequest$inboundSchema
|
|
49716
50134
|
};
|
|
49717
50135
|
tool$skyBuy = {
|
|
@@ -49725,9 +50143,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
49725
50143
|
|
|
49726
50144
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
49727
50145
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
49728
|
-
args:
|
|
49729
|
-
tool: async (client,
|
|
49730
|
-
const [result, apiCall] = await skyBuy(client,
|
|
50146
|
+
args: args46,
|
|
50147
|
+
tool: async (client, args47, ctx) => {
|
|
50148
|
+
const [result, apiCall] = await skyBuy(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49731
50149
|
if (!result.ok) {
|
|
49732
50150
|
return {
|
|
49733
50151
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49742,9 +50160,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
49742
50160
|
|
|
49743
50161
|
// src/funcs/skyDeposit.ts
|
|
49744
50162
|
function skyDeposit(client, request, options) {
|
|
49745
|
-
return new APIPromise($
|
|
50163
|
+
return new APIPromise($do47(client, request, options));
|
|
49746
50164
|
}
|
|
49747
|
-
async function $
|
|
50165
|
+
async function $do47(client, request, options) {
|
|
49748
50166
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49749
50167
|
if (!parsed.ok) {
|
|
49750
50168
|
return [parsed, { status: "invalid" }];
|
|
@@ -49796,7 +50214,7 @@ async function $do45(client, request, options) {
|
|
|
49796
50214
|
const responseFields = {
|
|
49797
50215
|
HttpMeta: { Response: response, Request: req }
|
|
49798
50216
|
};
|
|
49799
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50217
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49800
50218
|
if (!result.ok) {
|
|
49801
50219
|
return [result, { status: "complete", request: req, response }];
|
|
49802
50220
|
}
|
|
@@ -49815,12 +50233,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
49815
50233
|
});
|
|
49816
50234
|
|
|
49817
50235
|
// src/mcp-server/tools/skyDeposit.ts
|
|
49818
|
-
var
|
|
50236
|
+
var args47, tool$skyDeposit;
|
|
49819
50237
|
var init_skyDeposit2 = __esm(() => {
|
|
49820
50238
|
init_skyDeposit();
|
|
49821
50239
|
init_components();
|
|
49822
50240
|
init_tools();
|
|
49823
|
-
|
|
50241
|
+
args47 = {
|
|
49824
50242
|
request: SkyDepositRequest$inboundSchema
|
|
49825
50243
|
};
|
|
49826
50244
|
tool$skyDeposit = {
|
|
@@ -49830,9 +50248,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
49830
50248
|
Deposit USDS for sUSDS to earn yield.
|
|
49831
50249
|
|
|
49832
50250
|
There are no fees.`,
|
|
49833
|
-
args:
|
|
49834
|
-
tool: async (client,
|
|
49835
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
50251
|
+
args: args47,
|
|
50252
|
+
tool: async (client, args48, ctx) => {
|
|
50253
|
+
const [result, apiCall] = await skyDeposit(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49836
50254
|
if (!result.ok) {
|
|
49837
50255
|
return {
|
|
49838
50256
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49847,9 +50265,9 @@ There are no fees.`,
|
|
|
49847
50265
|
|
|
49848
50266
|
// src/funcs/skyPosition.ts
|
|
49849
50267
|
function skyPosition(client, request, options) {
|
|
49850
|
-
return new APIPromise($
|
|
50268
|
+
return new APIPromise($do48(client, request, options));
|
|
49851
50269
|
}
|
|
49852
|
-
async function $
|
|
50270
|
+
async function $do48(client, request, options) {
|
|
49853
50271
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49854
50272
|
if (!parsed.ok) {
|
|
49855
50273
|
return [parsed, { status: "invalid" }];
|
|
@@ -49858,7 +50276,6 @@ async function $do46(client, request, options) {
|
|
|
49858
50276
|
const body = null;
|
|
49859
50277
|
const path = pathToFunc("/v0/sky/position")();
|
|
49860
50278
|
const query = encodeFormQuery({
|
|
49861
|
-
block: payload.block,
|
|
49862
50279
|
chain: payload.chain,
|
|
49863
50280
|
user_address: payload.user_address
|
|
49864
50281
|
});
|
|
@@ -49906,7 +50323,7 @@ async function $do46(client, request, options) {
|
|
|
49906
50323
|
const responseFields = {
|
|
49907
50324
|
HttpMeta: { Response: response, Request: req }
|
|
49908
50325
|
};
|
|
49909
|
-
const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50326
|
+
const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49910
50327
|
if (!result.ok) {
|
|
49911
50328
|
return [result, { status: "complete", request: req, response }];
|
|
49912
50329
|
}
|
|
@@ -49926,12 +50343,12 @@ var init_skyPosition = __esm(() => {
|
|
|
49926
50343
|
});
|
|
49927
50344
|
|
|
49928
50345
|
// src/mcp-server/tools/skyPosition.ts
|
|
49929
|
-
var
|
|
50346
|
+
var args48, tool$skyPosition;
|
|
49930
50347
|
var init_skyPosition2 = __esm(() => {
|
|
49931
50348
|
init_skyPosition();
|
|
49932
50349
|
init_operations();
|
|
49933
50350
|
init_tools();
|
|
49934
|
-
|
|
50351
|
+
args48 = {
|
|
49935
50352
|
request: SkyPositionRequest$inboundSchema
|
|
49936
50353
|
};
|
|
49937
50354
|
tool$skyPosition = {
|
|
@@ -49939,9 +50356,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
49939
50356
|
description: `Check USDS Position
|
|
49940
50357
|
|
|
49941
50358
|
Check the USDS overall position.`,
|
|
49942
|
-
args:
|
|
49943
|
-
tool: async (client,
|
|
49944
|
-
const [result, apiCall] = await skyPosition(client,
|
|
50359
|
+
args: args48,
|
|
50360
|
+
tool: async (client, args49, ctx) => {
|
|
50361
|
+
const [result, apiCall] = await skyPosition(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49945
50362
|
if (!result.ok) {
|
|
49946
50363
|
return {
|
|
49947
50364
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49956,9 +50373,9 @@ Check the USDS overall position.`,
|
|
|
49956
50373
|
|
|
49957
50374
|
// src/funcs/skySell.ts
|
|
49958
50375
|
function skySell(client, request, options) {
|
|
49959
|
-
return new APIPromise($
|
|
50376
|
+
return new APIPromise($do49(client, request, options));
|
|
49960
50377
|
}
|
|
49961
|
-
async function $
|
|
50378
|
+
async function $do49(client, request, options) {
|
|
49962
50379
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49963
50380
|
if (!parsed.ok) {
|
|
49964
50381
|
return [parsed, { status: "invalid" }];
|
|
@@ -50010,7 +50427,7 @@ async function $do47(client, request, options) {
|
|
|
50010
50427
|
const responseFields = {
|
|
50011
50428
|
HttpMeta: { Response: response, Request: req }
|
|
50012
50429
|
};
|
|
50013
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50430
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50014
50431
|
if (!result.ok) {
|
|
50015
50432
|
return [result, { status: "complete", request: req, response }];
|
|
50016
50433
|
}
|
|
@@ -50029,12 +50446,12 @@ var init_skySell = __esm(() => {
|
|
|
50029
50446
|
});
|
|
50030
50447
|
|
|
50031
50448
|
// src/mcp-server/tools/skySell.ts
|
|
50032
|
-
var
|
|
50449
|
+
var args49, tool$skySell;
|
|
50033
50450
|
var init_skySell2 = __esm(() => {
|
|
50034
50451
|
init_skySell();
|
|
50035
50452
|
init_components();
|
|
50036
50453
|
init_tools();
|
|
50037
|
-
|
|
50454
|
+
args49 = {
|
|
50038
50455
|
request: SkySellRequest$inboundSchema
|
|
50039
50456
|
};
|
|
50040
50457
|
tool$skySell = {
|
|
@@ -50048,9 +50465,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
50048
50465
|
|
|
50049
50466
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
50050
50467
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
50051
|
-
args:
|
|
50052
|
-
tool: async (client,
|
|
50053
|
-
const [result, apiCall] = await skySell(client,
|
|
50468
|
+
args: args49,
|
|
50469
|
+
tool: async (client, args50, ctx) => {
|
|
50470
|
+
const [result, apiCall] = await skySell(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50054
50471
|
if (!result.ok) {
|
|
50055
50472
|
return {
|
|
50056
50473
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50065,9 +50482,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
50065
50482
|
|
|
50066
50483
|
// src/funcs/skyWithdraw.ts
|
|
50067
50484
|
function skyWithdraw(client, request, options) {
|
|
50068
|
-
return new APIPromise($
|
|
50485
|
+
return new APIPromise($do50(client, request, options));
|
|
50069
50486
|
}
|
|
50070
|
-
async function $
|
|
50487
|
+
async function $do50(client, request, options) {
|
|
50071
50488
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50072
50489
|
if (!parsed.ok) {
|
|
50073
50490
|
return [parsed, { status: "invalid" }];
|
|
@@ -50119,7 +50536,7 @@ async function $do48(client, request, options) {
|
|
|
50119
50536
|
const responseFields = {
|
|
50120
50537
|
HttpMeta: { Response: response, Request: req }
|
|
50121
50538
|
};
|
|
50122
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50539
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50123
50540
|
if (!result.ok) {
|
|
50124
50541
|
return [result, { status: "complete", request: req, response }];
|
|
50125
50542
|
}
|
|
@@ -50138,12 +50555,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
50138
50555
|
});
|
|
50139
50556
|
|
|
50140
50557
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
50141
|
-
var
|
|
50558
|
+
var args50, tool$skyWithdraw;
|
|
50142
50559
|
var init_skyWithdraw2 = __esm(() => {
|
|
50143
50560
|
init_skyWithdraw();
|
|
50144
50561
|
init_components();
|
|
50145
50562
|
init_tools();
|
|
50146
|
-
|
|
50563
|
+
args50 = {
|
|
50147
50564
|
request: SkyWithdrawRequest$inboundSchema
|
|
50148
50565
|
};
|
|
50149
50566
|
tool$skyWithdraw = {
|
|
@@ -50151,9 +50568,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
50151
50568
|
description: `Withdraw USDS
|
|
50152
50569
|
|
|
50153
50570
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
50154
|
-
args:
|
|
50155
|
-
tool: async (client,
|
|
50156
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
50571
|
+
args: args50,
|
|
50572
|
+
tool: async (client, args51, ctx) => {
|
|
50573
|
+
const [result, apiCall] = await skyWithdraw(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50157
50574
|
if (!result.ok) {
|
|
50158
50575
|
return {
|
|
50159
50576
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50168,9 +50585,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
50168
50585
|
|
|
50169
50586
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
50170
50587
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
50171
|
-
return new APIPromise($
|
|
50588
|
+
return new APIPromise($do51(client, request, options));
|
|
50172
50589
|
}
|
|
50173
|
-
async function $
|
|
50590
|
+
async function $do51(client, request, options) {
|
|
50174
50591
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50175
50592
|
if (!parsed.ok) {
|
|
50176
50593
|
return [parsed, { status: "invalid" }];
|
|
@@ -50222,7 +50639,7 @@ async function $do49(client, request, options) {
|
|
|
50222
50639
|
const responseFields = {
|
|
50223
50640
|
HttpMeta: { Response: response, Request: req }
|
|
50224
50641
|
};
|
|
50225
|
-
const [result] = await match(json(200, BatchedUserOperationsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50642
|
+
const [result] = await match(json(200, BatchedUserOperationsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50226
50643
|
if (!result.ok) {
|
|
50227
50644
|
return [result, { status: "complete", request: req, response }];
|
|
50228
50645
|
}
|
|
@@ -50241,12 +50658,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
50241
50658
|
});
|
|
50242
50659
|
|
|
50243
50660
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
50244
|
-
var
|
|
50661
|
+
var args51, tool$smartAccountAccountBatchedUserOperations;
|
|
50245
50662
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
50246
50663
|
init_smartAccountAccountBatchedUserOperations();
|
|
50247
50664
|
init_components();
|
|
50248
50665
|
init_tools();
|
|
50249
|
-
|
|
50666
|
+
args51 = {
|
|
50250
50667
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
50251
50668
|
};
|
|
50252
50669
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -50254,9 +50671,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
50254
50671
|
description: `Get Smart Account Batched User Operations
|
|
50255
50672
|
|
|
50256
50673
|
Generate a list of user operations for smart account batching.`,
|
|
50257
|
-
args:
|
|
50258
|
-
tool: async (client,
|
|
50259
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
50674
|
+
args: args51,
|
|
50675
|
+
tool: async (client, args52, ctx) => {
|
|
50676
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50260
50677
|
if (!result.ok) {
|
|
50261
50678
|
return {
|
|
50262
50679
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50271,9 +50688,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
50271
50688
|
|
|
50272
50689
|
// src/funcs/tokenAddress.ts
|
|
50273
50690
|
function tokenAddress(client, request, options) {
|
|
50274
|
-
return new APIPromise($
|
|
50691
|
+
return new APIPromise($do52(client, request, options));
|
|
50275
50692
|
}
|
|
50276
|
-
async function $
|
|
50693
|
+
async function $do52(client, request, options) {
|
|
50277
50694
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50278
50695
|
if (!parsed.ok) {
|
|
50279
50696
|
return [parsed, { status: "invalid" }];
|
|
@@ -50282,7 +50699,6 @@ async function $do50(client, request, options) {
|
|
|
50282
50699
|
const body = null;
|
|
50283
50700
|
const path = pathToFunc("/v0/token/address/get")();
|
|
50284
50701
|
const query = encodeFormQuery({
|
|
50285
|
-
block: payload.block,
|
|
50286
50702
|
chain: payload.chain,
|
|
50287
50703
|
token: payload.token
|
|
50288
50704
|
});
|
|
@@ -50330,7 +50746,7 @@ async function $do50(client, request, options) {
|
|
|
50330
50746
|
const responseFields = {
|
|
50331
50747
|
HttpMeta: { Response: response, Request: req }
|
|
50332
50748
|
};
|
|
50333
|
-
const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50749
|
+
const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50334
50750
|
if (!result.ok) {
|
|
50335
50751
|
return [result, { status: "complete", request: req, response }];
|
|
50336
50752
|
}
|
|
@@ -50350,12 +50766,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
50350
50766
|
});
|
|
50351
50767
|
|
|
50352
50768
|
// src/mcp-server/tools/tokenAddress.ts
|
|
50353
|
-
var
|
|
50769
|
+
var args52, tool$tokenAddress;
|
|
50354
50770
|
var init_tokenAddress2 = __esm(() => {
|
|
50355
50771
|
init_tokenAddress();
|
|
50356
50772
|
init_operations();
|
|
50357
50773
|
init_tools();
|
|
50358
|
-
|
|
50774
|
+
args52 = {
|
|
50359
50775
|
request: TokenAddressRequest$inboundSchema
|
|
50360
50776
|
};
|
|
50361
50777
|
tool$tokenAddress = {
|
|
@@ -50363,9 +50779,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
50363
50779
|
description: `Token Address
|
|
50364
50780
|
|
|
50365
50781
|
This endpoint retrieves the address for a token supported by us.`,
|
|
50366
|
-
args:
|
|
50367
|
-
tool: async (client,
|
|
50368
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
50782
|
+
args: args52,
|
|
50783
|
+
tool: async (client, args53, ctx) => {
|
|
50784
|
+
const [result, apiCall] = await tokenAddress(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50369
50785
|
if (!result.ok) {
|
|
50370
50786
|
return {
|
|
50371
50787
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50380,9 +50796,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
50380
50796
|
|
|
50381
50797
|
// src/funcs/tokenBalance.ts
|
|
50382
50798
|
function tokenBalance(client, request, options) {
|
|
50383
|
-
return new APIPromise($
|
|
50799
|
+
return new APIPromise($do53(client, request, options));
|
|
50384
50800
|
}
|
|
50385
|
-
async function $
|
|
50801
|
+
async function $do53(client, request, options) {
|
|
50386
50802
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50387
50803
|
if (!parsed.ok) {
|
|
50388
50804
|
return [parsed, { status: "invalid" }];
|
|
@@ -50391,7 +50807,6 @@ async function $do51(client, request, options) {
|
|
|
50391
50807
|
const body = null;
|
|
50392
50808
|
const path = pathToFunc("/v0/token/balance/get")();
|
|
50393
50809
|
const query = encodeFormQuery({
|
|
50394
|
-
block: payload.block,
|
|
50395
50810
|
chain: payload.chain,
|
|
50396
50811
|
token: payload.token,
|
|
50397
50812
|
user: payload.user
|
|
@@ -50440,7 +50855,7 @@ async function $do51(client, request, options) {
|
|
|
50440
50855
|
const responseFields = {
|
|
50441
50856
|
HttpMeta: { Response: response, Request: req }
|
|
50442
50857
|
};
|
|
50443
|
-
const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50858
|
+
const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50444
50859
|
if (!result.ok) {
|
|
50445
50860
|
return [result, { status: "complete", request: req, response }];
|
|
50446
50861
|
}
|
|
@@ -50460,12 +50875,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
50460
50875
|
});
|
|
50461
50876
|
|
|
50462
50877
|
// src/mcp-server/tools/tokenBalance.ts
|
|
50463
|
-
var
|
|
50878
|
+
var args53, tool$tokenBalance;
|
|
50464
50879
|
var init_tokenBalance2 = __esm(() => {
|
|
50465
50880
|
init_tokenBalance();
|
|
50466
50881
|
init_operations();
|
|
50467
50882
|
init_tools();
|
|
50468
|
-
|
|
50883
|
+
args53 = {
|
|
50469
50884
|
request: TokenBalanceRequest$inboundSchema
|
|
50470
50885
|
};
|
|
50471
50886
|
tool$tokenBalance = {
|
|
@@ -50473,9 +50888,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
50473
50888
|
description: `Token Balance
|
|
50474
50889
|
|
|
50475
50890
|
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,
|
|
50891
|
+
args: args53,
|
|
50892
|
+
tool: async (client, args54, ctx) => {
|
|
50893
|
+
const [result, apiCall] = await tokenBalance(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50479
50894
|
if (!result.ok) {
|
|
50480
50895
|
return {
|
|
50481
50896
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50490,9 +50905,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
50490
50905
|
|
|
50491
50906
|
// src/funcs/tokenPrice.ts
|
|
50492
50907
|
function tokenPrice(client, request, options) {
|
|
50493
|
-
return new APIPromise($
|
|
50908
|
+
return new APIPromise($do54(client, request, options));
|
|
50494
50909
|
}
|
|
50495
|
-
async function $
|
|
50910
|
+
async function $do54(client, request, options) {
|
|
50496
50911
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50497
50912
|
if (!parsed.ok) {
|
|
50498
50913
|
return [parsed, { status: "invalid" }];
|
|
@@ -50548,7 +50963,7 @@ async function $do52(client, request, options) {
|
|
|
50548
50963
|
const responseFields = {
|
|
50549
50964
|
HttpMeta: { Response: response, Request: req }
|
|
50550
50965
|
};
|
|
50551
|
-
const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
50966
|
+
const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50552
50967
|
if (!result.ok) {
|
|
50553
50968
|
return [result, { status: "complete", request: req, response }];
|
|
50554
50969
|
}
|
|
@@ -50568,12 +50983,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
50568
50983
|
});
|
|
50569
50984
|
|
|
50570
50985
|
// src/mcp-server/tools/tokenPrice.ts
|
|
50571
|
-
var
|
|
50986
|
+
var args54, tool$tokenPrice;
|
|
50572
50987
|
var init_tokenPrice2 = __esm(() => {
|
|
50573
50988
|
init_tokenPrice();
|
|
50574
50989
|
init_operations();
|
|
50575
50990
|
init_tools();
|
|
50576
|
-
|
|
50991
|
+
args54 = {
|
|
50577
50992
|
request: TokenPriceRequest$inboundSchema
|
|
50578
50993
|
};
|
|
50579
50994
|
tool$tokenPrice = {
|
|
@@ -50585,9 +51000,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
50585
51000
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
50586
51001
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
50587
51002
|
with the update frequency of the oracle.`,
|
|
50588
|
-
args:
|
|
50589
|
-
tool: async (client,
|
|
50590
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
51003
|
+
args: args54,
|
|
51004
|
+
tool: async (client, args55, ctx) => {
|
|
51005
|
+
const [result, apiCall] = await tokenPrice(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50591
51006
|
if (!result.ok) {
|
|
50592
51007
|
return {
|
|
50593
51008
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50602,9 +51017,9 @@ with the update frequency of the oracle.`,
|
|
|
50602
51017
|
|
|
50603
51018
|
// src/funcs/tokenTransfer.ts
|
|
50604
51019
|
function tokenTransfer(client, request, options) {
|
|
50605
|
-
return new APIPromise($
|
|
51020
|
+
return new APIPromise($do55(client, request, options));
|
|
50606
51021
|
}
|
|
50607
|
-
async function $
|
|
51022
|
+
async function $do55(client, request, options) {
|
|
50608
51023
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50609
51024
|
if (!parsed.ok) {
|
|
50610
51025
|
return [parsed, { status: "invalid" }];
|
|
@@ -50656,7 +51071,7 @@ async function $do53(client, request, options) {
|
|
|
50656
51071
|
const responseFields = {
|
|
50657
51072
|
HttpMeta: { Response: response, Request: req }
|
|
50658
51073
|
};
|
|
50659
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51074
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50660
51075
|
if (!result.ok) {
|
|
50661
51076
|
return [result, { status: "complete", request: req, response }];
|
|
50662
51077
|
}
|
|
@@ -50675,12 +51090,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
50675
51090
|
});
|
|
50676
51091
|
|
|
50677
51092
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
50678
|
-
var
|
|
51093
|
+
var args55, tool$tokenTransfer;
|
|
50679
51094
|
var init_tokenTransfer2 = __esm(() => {
|
|
50680
51095
|
init_tokenTransfer();
|
|
50681
51096
|
init_components();
|
|
50682
51097
|
init_tools();
|
|
50683
|
-
|
|
51098
|
+
args55 = {
|
|
50684
51099
|
request: TokenTransferRequest$inboundSchema
|
|
50685
51100
|
};
|
|
50686
51101
|
tool$tokenTransfer = {
|
|
@@ -50688,9 +51103,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
50688
51103
|
description: `Transfer ETH or ERC20 Tokens.
|
|
50689
51104
|
|
|
50690
51105
|
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,
|
|
51106
|
+
args: args55,
|
|
51107
|
+
tool: async (client, args56, ctx) => {
|
|
51108
|
+
const [result, apiCall] = await tokenTransfer(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50694
51109
|
if (!result.ok) {
|
|
50695
51110
|
return {
|
|
50696
51111
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50705,9 +51120,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
50705
51120
|
|
|
50706
51121
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
50707
51122
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
50708
|
-
return new APIPromise($
|
|
51123
|
+
return new APIPromise($do56(client, request, options));
|
|
50709
51124
|
}
|
|
50710
|
-
async function $
|
|
51125
|
+
async function $do56(client, request, options) {
|
|
50711
51126
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50712
51127
|
if (!parsed.ok) {
|
|
50713
51128
|
return [parsed, { status: "invalid" }];
|
|
@@ -50759,7 +51174,7 @@ async function $do54(client, request, options) {
|
|
|
50759
51174
|
const responseFields = {
|
|
50760
51175
|
HttpMeta: { Response: response, Request: req }
|
|
50761
51176
|
};
|
|
50762
|
-
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51177
|
+
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50763
51178
|
if (!result.ok) {
|
|
50764
51179
|
return [result, { status: "complete", request: req, response }];
|
|
50765
51180
|
}
|
|
@@ -50778,12 +51193,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
50778
51193
|
});
|
|
50779
51194
|
|
|
50780
51195
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
50781
|
-
var
|
|
51196
|
+
var args56, tool$transactionBatchingAaveLoop;
|
|
50782
51197
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
50783
51198
|
init_transactionBatchingAaveLoop();
|
|
50784
51199
|
init_components();
|
|
50785
51200
|
init_tools();
|
|
50786
|
-
|
|
51201
|
+
args56 = {
|
|
50787
51202
|
request: AaveLoopRequest$inboundSchema
|
|
50788
51203
|
};
|
|
50789
51204
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -50801,9 +51216,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
50801
51216
|
- Supplies the swapped tokens
|
|
50802
51217
|
|
|
50803
51218
|
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,
|
|
51219
|
+
args: args56,
|
|
51220
|
+
tool: async (client, args57, ctx) => {
|
|
51221
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50807
51222
|
if (!result.ok) {
|
|
50808
51223
|
return {
|
|
50809
51224
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50818,9 +51233,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
50818
51233
|
|
|
50819
51234
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
50820
51235
|
function transactionBatchingAuthorization(client, request, options) {
|
|
50821
|
-
return new APIPromise($
|
|
51236
|
+
return new APIPromise($do57(client, request, options));
|
|
50822
51237
|
}
|
|
50823
|
-
async function $
|
|
51238
|
+
async function $do57(client, request, options) {
|
|
50824
51239
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50825
51240
|
if (!parsed.ok) {
|
|
50826
51241
|
return [parsed, { status: "invalid" }];
|
|
@@ -50872,7 +51287,7 @@ async function $do55(client, request, options) {
|
|
|
50872
51287
|
const responseFields = {
|
|
50873
51288
|
HttpMeta: { Response: response, Request: req }
|
|
50874
51289
|
};
|
|
50875
|
-
const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51290
|
+
const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50876
51291
|
if (!result.ok) {
|
|
50877
51292
|
return [result, { status: "complete", request: req, response }];
|
|
50878
51293
|
}
|
|
@@ -50891,12 +51306,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
50891
51306
|
});
|
|
50892
51307
|
|
|
50893
51308
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
50894
|
-
var
|
|
51309
|
+
var args57, tool$transactionBatchingAuthorization;
|
|
50895
51310
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
50896
51311
|
init_transactionBatchingAuthorization();
|
|
50897
51312
|
init_components();
|
|
50898
51313
|
init_tools();
|
|
50899
|
-
|
|
51314
|
+
args57 = {
|
|
50900
51315
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
50901
51316
|
};
|
|
50902
51317
|
tool$transactionBatchingAuthorization = {
|
|
@@ -50909,9 +51324,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
50909
51324
|
and ensure transaction ordering when batching multiple actions into a single
|
|
50910
51325
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
50911
51326
|
transaction uniqueness and proper network targeting.`,
|
|
50912
|
-
args:
|
|
50913
|
-
tool: async (client,
|
|
50914
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
51327
|
+
args: args57,
|
|
51328
|
+
tool: async (client, args58, ctx) => {
|
|
51329
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50915
51330
|
if (!result.ok) {
|
|
50916
51331
|
return {
|
|
50917
51332
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50926,9 +51341,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
50926
51341
|
|
|
50927
51342
|
// src/funcs/transactionBatchingExecute.ts
|
|
50928
51343
|
function transactionBatchingExecute(client, request, options) {
|
|
50929
|
-
return new APIPromise($
|
|
51344
|
+
return new APIPromise($do58(client, request, options));
|
|
50930
51345
|
}
|
|
50931
|
-
async function $
|
|
51346
|
+
async function $do58(client, request, options) {
|
|
50932
51347
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50933
51348
|
if (!parsed.ok) {
|
|
50934
51349
|
return [parsed, { status: "invalid" }];
|
|
@@ -50980,7 +51395,7 @@ async function $do56(client, request, options) {
|
|
|
50980
51395
|
const responseFields = {
|
|
50981
51396
|
HttpMeta: { Response: response, Request: req }
|
|
50982
51397
|
};
|
|
50983
|
-
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51398
|
+
const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50984
51399
|
if (!result.ok) {
|
|
50985
51400
|
return [result, { status: "complete", request: req, response }];
|
|
50986
51401
|
}
|
|
@@ -50999,12 +51414,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
50999
51414
|
});
|
|
51000
51415
|
|
|
51001
51416
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
51002
|
-
var
|
|
51417
|
+
var args58, tool$transactionBatchingExecute;
|
|
51003
51418
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
51004
51419
|
init_transactionBatchingExecute();
|
|
51005
51420
|
init_components();
|
|
51006
51421
|
init_tools();
|
|
51007
|
-
|
|
51422
|
+
args58 = {
|
|
51008
51423
|
request: MulticallExecuteRequest$inboundSchema
|
|
51009
51424
|
};
|
|
51010
51425
|
tool$transactionBatchingExecute = {
|
|
@@ -51018,9 +51433,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
51018
51433
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
51019
51434
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
51020
51435
|
prevent replay attacks.`,
|
|
51021
|
-
args:
|
|
51022
|
-
tool: async (client,
|
|
51023
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
51436
|
+
args: args58,
|
|
51437
|
+
tool: async (client, args59, ctx) => {
|
|
51438
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51024
51439
|
if (!result.ok) {
|
|
51025
51440
|
return {
|
|
51026
51441
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51035,9 +51450,9 @@ prevent replay attacks.`,
|
|
|
51035
51450
|
|
|
51036
51451
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
51037
51452
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
51038
|
-
return new APIPromise($
|
|
51453
|
+
return new APIPromise($do59(client, request, options));
|
|
51039
51454
|
}
|
|
51040
|
-
async function $
|
|
51455
|
+
async function $do59(client, request, options) {
|
|
51041
51456
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51042
51457
|
if (!parsed.ok) {
|
|
51043
51458
|
return [parsed, { status: "invalid" }];
|
|
@@ -51089,7 +51504,7 @@ async function $do57(client, request, options) {
|
|
|
51089
51504
|
const responseFields = {
|
|
51090
51505
|
HttpMeta: { Response: response, Request: req }
|
|
51091
51506
|
};
|
|
51092
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51507
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51093
51508
|
if (!result.ok) {
|
|
51094
51509
|
return [result, { status: "complete", request: req, response }];
|
|
51095
51510
|
}
|
|
@@ -51108,12 +51523,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
51108
51523
|
});
|
|
51109
51524
|
|
|
51110
51525
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
51111
|
-
var
|
|
51526
|
+
var args59, tool$uniswapV3LiquidityProvisionIncrease;
|
|
51112
51527
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
51113
51528
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
51114
51529
|
init_components();
|
|
51115
51530
|
init_tools();
|
|
51116
|
-
|
|
51531
|
+
args59 = {
|
|
51117
51532
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
51118
51533
|
};
|
|
51119
51534
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -51129,9 +51544,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
51129
51544
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
51130
51545
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
51131
51546
|
process.`,
|
|
51132
|
-
args:
|
|
51133
|
-
tool: async (client,
|
|
51134
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
51547
|
+
args: args59,
|
|
51548
|
+
tool: async (client, args60, ctx) => {
|
|
51549
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51135
51550
|
if (!result.ok) {
|
|
51136
51551
|
return {
|
|
51137
51552
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51146,9 +51561,9 @@ process.`,
|
|
|
51146
51561
|
|
|
51147
51562
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
51148
51563
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
51149
|
-
return new APIPromise($
|
|
51564
|
+
return new APIPromise($do60(client, request, options));
|
|
51150
51565
|
}
|
|
51151
|
-
async function $
|
|
51566
|
+
async function $do60(client, request, options) {
|
|
51152
51567
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51153
51568
|
if (!parsed.ok) {
|
|
51154
51569
|
return [parsed, { status: "invalid" }];
|
|
@@ -51157,7 +51572,6 @@ async function $do58(client, request, options) {
|
|
|
51157
51572
|
const body = null;
|
|
51158
51573
|
const path = pathToFunc("/v0/uniswap/liquidity_provision/in_range/get")();
|
|
51159
51574
|
const query = encodeFormQuery({
|
|
51160
|
-
block: payload.block,
|
|
51161
51575
|
chain: payload.chain,
|
|
51162
51576
|
token_id: payload.token_id
|
|
51163
51577
|
});
|
|
@@ -51205,7 +51619,7 @@ async function $do58(client, request, options) {
|
|
|
51205
51619
|
const responseFields = {
|
|
51206
51620
|
HttpMeta: { Response: response, Request: req }
|
|
51207
51621
|
};
|
|
51208
|
-
const [result] = await match(json(200, UniswapCheckInRangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51622
|
+
const [result] = await match(json(200, UniswapCheckInRangeResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51209
51623
|
if (!result.ok) {
|
|
51210
51624
|
return [result, { status: "complete", request: req, response }];
|
|
51211
51625
|
}
|
|
@@ -51225,12 +51639,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
51225
51639
|
});
|
|
51226
51640
|
|
|
51227
51641
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
51228
|
-
var
|
|
51642
|
+
var args60, tool$uniswapV3LiquidityProvisionInRange;
|
|
51229
51643
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
51230
51644
|
init_uniswapV3LiquidityProvisionInRange();
|
|
51231
51645
|
init_operations();
|
|
51232
51646
|
init_tools();
|
|
51233
|
-
|
|
51647
|
+
args60 = {
|
|
51234
51648
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
51235
51649
|
};
|
|
51236
51650
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -51245,9 +51659,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
51245
51659
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
51246
51660
|
they are actively participating in the trading activities within the liquidity pool
|
|
51247
51661
|
and earning trading fees.`,
|
|
51248
|
-
args:
|
|
51249
|
-
tool: async (client,
|
|
51250
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
51662
|
+
args: args60,
|
|
51663
|
+
tool: async (client, args61, ctx) => {
|
|
51664
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51251
51665
|
if (!result.ok) {
|
|
51252
51666
|
return {
|
|
51253
51667
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51262,9 +51676,9 @@ and earning trading fees.`,
|
|
|
51262
51676
|
|
|
51263
51677
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
51264
51678
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
51265
|
-
return new APIPromise($
|
|
51679
|
+
return new APIPromise($do61(client, request, options));
|
|
51266
51680
|
}
|
|
51267
|
-
async function $
|
|
51681
|
+
async function $do61(client, request, options) {
|
|
51268
51682
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51269
51683
|
if (!parsed.ok) {
|
|
51270
51684
|
return [parsed, { status: "invalid" }];
|
|
@@ -51316,7 +51730,7 @@ async function $do59(client, request, options) {
|
|
|
51316
51730
|
const responseFields = {
|
|
51317
51731
|
HttpMeta: { Response: response, Request: req }
|
|
51318
51732
|
};
|
|
51319
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51733
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51320
51734
|
if (!result.ok) {
|
|
51321
51735
|
return [result, { status: "complete", request: req, response }];
|
|
51322
51736
|
}
|
|
@@ -51335,12 +51749,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
51335
51749
|
});
|
|
51336
51750
|
|
|
51337
51751
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
51338
|
-
var
|
|
51752
|
+
var args61, tool$uniswapV3LiquidityProvisionMint;
|
|
51339
51753
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
51340
51754
|
init_uniswapV3LiquidityProvisionMint();
|
|
51341
51755
|
init_components();
|
|
51342
51756
|
init_tools();
|
|
51343
|
-
|
|
51757
|
+
args61 = {
|
|
51344
51758
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
51345
51759
|
};
|
|
51346
51760
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -51356,9 +51770,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
51356
51770
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
51357
51771
|
requires details such as the token pair, amount, and any additional parameters
|
|
51358
51772
|
needed for the minting process.`,
|
|
51359
|
-
args:
|
|
51360
|
-
tool: async (client,
|
|
51361
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
51773
|
+
args: args61,
|
|
51774
|
+
tool: async (client, args62, ctx) => {
|
|
51775
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51362
51776
|
if (!result.ok) {
|
|
51363
51777
|
return {
|
|
51364
51778
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51373,9 +51787,9 @@ needed for the minting process.`,
|
|
|
51373
51787
|
|
|
51374
51788
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
51375
51789
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
51376
|
-
return new APIPromise($
|
|
51790
|
+
return new APIPromise($do62(client, request, options));
|
|
51377
51791
|
}
|
|
51378
|
-
async function $
|
|
51792
|
+
async function $do62(client, request, options) {
|
|
51379
51793
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51380
51794
|
if (!parsed.ok) {
|
|
51381
51795
|
return [parsed, { status: "invalid" }];
|
|
@@ -51384,7 +51798,6 @@ async function $do60(client, request, options) {
|
|
|
51384
51798
|
const body = null;
|
|
51385
51799
|
const path = pathToFunc("/v0/uniswap/liquidity_provision/positions/get")();
|
|
51386
51800
|
const query = encodeFormQuery({
|
|
51387
|
-
block: payload.block,
|
|
51388
51801
|
chain: payload.chain,
|
|
51389
51802
|
user: payload.user
|
|
51390
51803
|
});
|
|
@@ -51432,7 +51845,7 @@ async function $do60(client, request, options) {
|
|
|
51432
51845
|
const responseFields = {
|
|
51433
51846
|
HttpMeta: { Response: response, Request: req }
|
|
51434
51847
|
};
|
|
51435
|
-
const [result] = await match(json(200, UniswapLPPositionsInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51848
|
+
const [result] = await match(json(200, UniswapLPPositionsInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51436
51849
|
if (!result.ok) {
|
|
51437
51850
|
return [result, { status: "complete", request: req, response }];
|
|
51438
51851
|
}
|
|
@@ -51452,12 +51865,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
51452
51865
|
});
|
|
51453
51866
|
|
|
51454
51867
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
51455
|
-
var
|
|
51868
|
+
var args62, tool$uniswapV3LiquidityProvisionPositions;
|
|
51456
51869
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
51457
51870
|
init_uniswapV3LiquidityProvisionPositions();
|
|
51458
51871
|
init_operations();
|
|
51459
51872
|
init_tools();
|
|
51460
|
-
|
|
51873
|
+
args62 = {
|
|
51461
51874
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
51462
51875
|
};
|
|
51463
51876
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -51471,9 +51884,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
51471
51884
|
positions, including the total number of positions and relevant metadata. This
|
|
51472
51885
|
information is crucial for users to manage and analyze their liquidity provision
|
|
51473
51886
|
activities effectively.`,
|
|
51474
|
-
args:
|
|
51475
|
-
tool: async (client,
|
|
51476
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
51887
|
+
args: args62,
|
|
51888
|
+
tool: async (client, args63, ctx) => {
|
|
51889
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51477
51890
|
if (!result.ok) {
|
|
51478
51891
|
return {
|
|
51479
51892
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51488,9 +51901,9 @@ activities effectively.`,
|
|
|
51488
51901
|
|
|
51489
51902
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51490
51903
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
51491
|
-
return new APIPromise($
|
|
51904
|
+
return new APIPromise($do63(client, request, options));
|
|
51492
51905
|
}
|
|
51493
|
-
async function $
|
|
51906
|
+
async function $do63(client, request, options) {
|
|
51494
51907
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51495
51908
|
if (!parsed.ok) {
|
|
51496
51909
|
return [parsed, { status: "invalid" }];
|
|
@@ -51542,7 +51955,7 @@ async function $do61(client, request, options) {
|
|
|
51542
51955
|
const responseFields = {
|
|
51543
51956
|
HttpMeta: { Response: response, Request: req }
|
|
51544
51957
|
};
|
|
51545
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
51958
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51546
51959
|
if (!result.ok) {
|
|
51547
51960
|
return [result, { status: "complete", request: req, response }];
|
|
51548
51961
|
}
|
|
@@ -51561,12 +51974,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
51561
51974
|
});
|
|
51562
51975
|
|
|
51563
51976
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51564
|
-
var
|
|
51977
|
+
var args63, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
51565
51978
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
51566
51979
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
51567
51980
|
init_components();
|
|
51568
51981
|
init_tools();
|
|
51569
|
-
|
|
51982
|
+
args63 = {
|
|
51570
51983
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
51571
51984
|
};
|
|
51572
51985
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -51583,9 +51996,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
51583
51996
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
51584
51997
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
51585
51998
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
51586
|
-
args:
|
|
51587
|
-
tool: async (client,
|
|
51588
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
51999
|
+
args: args63,
|
|
52000
|
+
tool: async (client, args64, ctx) => {
|
|
52001
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51589
52002
|
if (!result.ok) {
|
|
51590
52003
|
return {
|
|
51591
52004
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51600,9 +52013,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
51600
52013
|
|
|
51601
52014
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
51602
52015
|
function uniswapV3PoolPrice(client, request, options) {
|
|
51603
|
-
return new APIPromise($
|
|
52016
|
+
return new APIPromise($do64(client, request, options));
|
|
51604
52017
|
}
|
|
51605
|
-
async function $
|
|
52018
|
+
async function $do64(client, request, options) {
|
|
51606
52019
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51607
52020
|
if (!parsed.ok) {
|
|
51608
52021
|
return [parsed, { status: "invalid" }];
|
|
@@ -51611,7 +52024,6 @@ async function $do62(client, request, options) {
|
|
|
51611
52024
|
const body = null;
|
|
51612
52025
|
const path = pathToFunc("/v0/uniswap/pool_price/get")();
|
|
51613
52026
|
const query = encodeFormQuery({
|
|
51614
|
-
block: payload.block,
|
|
51615
52027
|
chain: payload.chain,
|
|
51616
52028
|
fee: payload.fee,
|
|
51617
52029
|
token_in: payload.token_in,
|
|
@@ -51661,7 +52073,7 @@ async function $do62(client, request, options) {
|
|
|
51661
52073
|
const responseFields = {
|
|
51662
52074
|
HttpMeta: { Response: response, Request: req }
|
|
51663
52075
|
};
|
|
51664
|
-
const [result] = await match(json(200, UniswapPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52076
|
+
const [result] = await match(json(200, UniswapPoolPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51665
52077
|
if (!result.ok) {
|
|
51666
52078
|
return [result, { status: "complete", request: req, response }];
|
|
51667
52079
|
}
|
|
@@ -51681,12 +52093,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
51681
52093
|
});
|
|
51682
52094
|
|
|
51683
52095
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
51684
|
-
var
|
|
52096
|
+
var args64, tool$uniswapV3PoolPrice;
|
|
51685
52097
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
51686
52098
|
init_uniswapV3PoolPrice();
|
|
51687
52099
|
init_operations();
|
|
51688
52100
|
init_tools();
|
|
51689
|
-
|
|
52101
|
+
args64 = {
|
|
51690
52102
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
51691
52103
|
};
|
|
51692
52104
|
tool$uniswapV3PoolPrice = {
|
|
@@ -51696,9 +52108,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
51696
52108
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
51697
52109
|
|
|
51698
52110
|
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,
|
|
52111
|
+
args: args64,
|
|
52112
|
+
tool: async (client, args65, ctx) => {
|
|
52113
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51702
52114
|
if (!result.ok) {
|
|
51703
52115
|
return {
|
|
51704
52116
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51713,9 +52125,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
51713
52125
|
|
|
51714
52126
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
51715
52127
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
51716
|
-
return new APIPromise($
|
|
52128
|
+
return new APIPromise($do65(client, request, options));
|
|
51717
52129
|
}
|
|
51718
|
-
async function $
|
|
52130
|
+
async function $do65(client, request, options) {
|
|
51719
52131
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51720
52132
|
if (!parsed.ok) {
|
|
51721
52133
|
return [parsed, { status: "invalid" }];
|
|
@@ -51725,7 +52137,6 @@ async function $do63(client, request, options) {
|
|
|
51725
52137
|
const path = pathToFunc("/v0/uniswap/quote/buy_exactly/get")();
|
|
51726
52138
|
const query = encodeFormQuery({
|
|
51727
52139
|
amount_out: payload.amount_out,
|
|
51728
|
-
block: payload.block,
|
|
51729
52140
|
chain: payload.chain,
|
|
51730
52141
|
fee: payload.fee,
|
|
51731
52142
|
token_in: payload.token_in,
|
|
@@ -51775,7 +52186,7 @@ async function $do63(client, request, options) {
|
|
|
51775
52186
|
const responseFields = {
|
|
51776
52187
|
HttpMeta: { Response: response, Request: req }
|
|
51777
52188
|
};
|
|
51778
|
-
const [result] = await match(json(200, UniswapBuyQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52189
|
+
const [result] = await match(json(200, UniswapBuyQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51779
52190
|
if (!result.ok) {
|
|
51780
52191
|
return [result, { status: "complete", request: req, response }];
|
|
51781
52192
|
}
|
|
@@ -51795,12 +52206,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
51795
52206
|
});
|
|
51796
52207
|
|
|
51797
52208
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
51798
|
-
var
|
|
52209
|
+
var args65, tool$uniswapV3QuoteBuyExactly;
|
|
51799
52210
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
51800
52211
|
init_uniswapV3QuoteBuyExactly();
|
|
51801
52212
|
init_operations();
|
|
51802
52213
|
init_tools();
|
|
51803
|
-
|
|
52214
|
+
args65 = {
|
|
51804
52215
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
51805
52216
|
};
|
|
51806
52217
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -51812,9 +52223,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51812
52223
|
|
|
51813
52224
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51814
52225
|
into account the current pool state and the specified fee tier.`,
|
|
51815
|
-
args:
|
|
51816
|
-
tool: async (client,
|
|
51817
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
52226
|
+
args: args65,
|
|
52227
|
+
tool: async (client, args66, ctx) => {
|
|
52228
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51818
52229
|
if (!result.ok) {
|
|
51819
52230
|
return {
|
|
51820
52231
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51829,9 +52240,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51829
52240
|
|
|
51830
52241
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
51831
52242
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
51832
|
-
return new APIPromise($
|
|
52243
|
+
return new APIPromise($do66(client, request, options));
|
|
51833
52244
|
}
|
|
51834
|
-
async function $
|
|
52245
|
+
async function $do66(client, request, options) {
|
|
51835
52246
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51836
52247
|
if (!parsed.ok) {
|
|
51837
52248
|
return [parsed, { status: "invalid" }];
|
|
@@ -51841,7 +52252,6 @@ async function $do64(client, request, options) {
|
|
|
51841
52252
|
const path = pathToFunc("/v0/uniswap/quote/sell_exactly/get")();
|
|
51842
52253
|
const query = encodeFormQuery({
|
|
51843
52254
|
amount_in: payload.amount_in,
|
|
51844
|
-
block: payload.block,
|
|
51845
52255
|
chain: payload.chain,
|
|
51846
52256
|
fee: payload.fee,
|
|
51847
52257
|
token_in: payload.token_in,
|
|
@@ -51891,7 +52301,7 @@ async function $do64(client, request, options) {
|
|
|
51891
52301
|
const responseFields = {
|
|
51892
52302
|
HttpMeta: { Response: response, Request: req }
|
|
51893
52303
|
};
|
|
51894
|
-
const [result] = await match(json(200, UniswapSellQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52304
|
+
const [result] = await match(json(200, UniswapSellQuoteInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51895
52305
|
if (!result.ok) {
|
|
51896
52306
|
return [result, { status: "complete", request: req, response }];
|
|
51897
52307
|
}
|
|
@@ -51911,12 +52321,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
51911
52321
|
});
|
|
51912
52322
|
|
|
51913
52323
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
51914
|
-
var
|
|
52324
|
+
var args66, tool$uniswapV3QuoteSellExactly;
|
|
51915
52325
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
51916
52326
|
init_uniswapV3QuoteSellExactly();
|
|
51917
52327
|
init_operations();
|
|
51918
52328
|
init_tools();
|
|
51919
|
-
|
|
52329
|
+
args66 = {
|
|
51920
52330
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
51921
52331
|
};
|
|
51922
52332
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -51928,9 +52338,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51928
52338
|
|
|
51929
52339
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51930
52340
|
into account the current pool state and the specified fee tier.`,
|
|
51931
|
-
args:
|
|
51932
|
-
tool: async (client,
|
|
51933
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
52341
|
+
args: args66,
|
|
52342
|
+
tool: async (client, args67, ctx) => {
|
|
52343
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51934
52344
|
if (!result.ok) {
|
|
51935
52345
|
return {
|
|
51936
52346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51945,9 +52355,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51945
52355
|
|
|
51946
52356
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
51947
52357
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
51948
|
-
return new APIPromise($
|
|
52358
|
+
return new APIPromise($do67(client, request, options));
|
|
51949
52359
|
}
|
|
51950
|
-
async function $
|
|
52360
|
+
async function $do67(client, request, options) {
|
|
51951
52361
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51952
52362
|
if (!parsed.ok) {
|
|
51953
52363
|
return [parsed, { status: "invalid" }];
|
|
@@ -51999,7 +52409,7 @@ async function $do65(client, request, options) {
|
|
|
51999
52409
|
const responseFields = {
|
|
52000
52410
|
HttpMeta: { Response: response, Request: req }
|
|
52001
52411
|
};
|
|
52002
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52412
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52003
52413
|
if (!result.ok) {
|
|
52004
52414
|
return [result, { status: "complete", request: req, response }];
|
|
52005
52415
|
}
|
|
@@ -52018,12 +52428,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
52018
52428
|
});
|
|
52019
52429
|
|
|
52020
52430
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
52021
|
-
var
|
|
52431
|
+
var args67, tool$uniswapV3SwapBuyExactly;
|
|
52022
52432
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
52023
52433
|
init_uniswapV3SwapBuyExactly();
|
|
52024
52434
|
init_components();
|
|
52025
52435
|
init_tools();
|
|
52026
|
-
|
|
52436
|
+
args67 = {
|
|
52027
52437
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
52028
52438
|
};
|
|
52029
52439
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -52037,9 +52447,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52037
52447
|
provide the necessary transaction details, including the token to buy, the token to
|
|
52038
52448
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
52039
52449
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52040
|
-
args:
|
|
52041
|
-
tool: async (client,
|
|
52042
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
52450
|
+
args: args67,
|
|
52451
|
+
tool: async (client, args68, ctx) => {
|
|
52452
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52043
52453
|
if (!result.ok) {
|
|
52044
52454
|
return {
|
|
52045
52455
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52054,9 +52464,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52054
52464
|
|
|
52055
52465
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
52056
52466
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
52057
|
-
return new APIPromise($
|
|
52467
|
+
return new APIPromise($do68(client, request, options));
|
|
52058
52468
|
}
|
|
52059
|
-
async function $
|
|
52469
|
+
async function $do68(client, request, options) {
|
|
52060
52470
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52061
52471
|
if (!parsed.ok) {
|
|
52062
52472
|
return [parsed, { status: "invalid" }];
|
|
@@ -52108,7 +52518,7 @@ async function $do66(client, request, options) {
|
|
|
52108
52518
|
const responseFields = {
|
|
52109
52519
|
HttpMeta: { Response: response, Request: req }
|
|
52110
52520
|
};
|
|
52111
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52521
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52112
52522
|
if (!result.ok) {
|
|
52113
52523
|
return [result, { status: "complete", request: req, response }];
|
|
52114
52524
|
}
|
|
@@ -52127,12 +52537,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
52127
52537
|
});
|
|
52128
52538
|
|
|
52129
52539
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
52130
|
-
var
|
|
52540
|
+
var args68, tool$uniswapV3SwapSellExactly;
|
|
52131
52541
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
52132
52542
|
init_uniswapV3SwapSellExactly();
|
|
52133
52543
|
init_components();
|
|
52134
52544
|
init_tools();
|
|
52135
|
-
|
|
52545
|
+
args68 = {
|
|
52136
52546
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
52137
52547
|
};
|
|
52138
52548
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -52146,9 +52556,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52146
52556
|
provide the necessary transaction details, including the token to sell, the token to
|
|
52147
52557
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
52148
52558
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52149
|
-
args:
|
|
52150
|
-
tool: async (client,
|
|
52151
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
52559
|
+
args: args68,
|
|
52560
|
+
tool: async (client, args69, ctx) => {
|
|
52561
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52152
52562
|
if (!result.ok) {
|
|
52153
52563
|
return {
|
|
52154
52564
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52163,9 +52573,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52163
52573
|
|
|
52164
52574
|
// src/funcs/universalAllowance.ts
|
|
52165
52575
|
function universalAllowance(client, request, options) {
|
|
52166
|
-
return new APIPromise($
|
|
52576
|
+
return new APIPromise($do69(client, request, options));
|
|
52167
52577
|
}
|
|
52168
|
-
async function $
|
|
52578
|
+
async function $do69(client, request, options) {
|
|
52169
52579
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52170
52580
|
if (!parsed.ok) {
|
|
52171
52581
|
return [parsed, { status: "invalid" }];
|
|
@@ -52174,7 +52584,6 @@ async function $do67(client, request, options) {
|
|
|
52174
52584
|
const body = null;
|
|
52175
52585
|
const path = pathToFunc("/v0/generic/allowance/get")();
|
|
52176
52586
|
const query = encodeFormQuery({
|
|
52177
|
-
block: payload.block,
|
|
52178
52587
|
chain: payload.chain,
|
|
52179
52588
|
contract_name: payload.contract_name,
|
|
52180
52589
|
token: payload.token,
|
|
@@ -52224,7 +52633,7 @@ async function $do67(client, request, options) {
|
|
|
52224
52633
|
const responseFields = {
|
|
52225
52634
|
HttpMeta: { Response: response, Request: req }
|
|
52226
52635
|
};
|
|
52227
|
-
const [result] = await match(json(200, AllowanceInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52636
|
+
const [result] = await match(json(200, AllowanceInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52228
52637
|
if (!result.ok) {
|
|
52229
52638
|
return [result, { status: "complete", request: req, response }];
|
|
52230
52639
|
}
|
|
@@ -52244,12 +52653,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
52244
52653
|
});
|
|
52245
52654
|
|
|
52246
52655
|
// src/mcp-server/tools/universalAllowance.ts
|
|
52247
|
-
var
|
|
52656
|
+
var args69, tool$universalAllowance;
|
|
52248
52657
|
var init_universalAllowance2 = __esm(() => {
|
|
52249
52658
|
init_universalAllowance();
|
|
52250
52659
|
init_operations();
|
|
52251
52660
|
init_tools();
|
|
52252
|
-
|
|
52661
|
+
args69 = {
|
|
52253
52662
|
request: GenericAllowanceRequest$inboundSchema
|
|
52254
52663
|
};
|
|
52255
52664
|
tool$universalAllowance = {
|
|
@@ -52263,9 +52672,9 @@ tokens on their behalf.
|
|
|
52263
52672
|
This is a crucial step before engaging in any transactions or operations within
|
|
52264
52673
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
52265
52674
|
the user's tokens securely and efficiently.`,
|
|
52266
|
-
args:
|
|
52267
|
-
tool: async (client,
|
|
52268
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
52675
|
+
args: args69,
|
|
52676
|
+
tool: async (client, args70, ctx) => {
|
|
52677
|
+
const [result, apiCall] = await universalAllowance(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52269
52678
|
if (!result.ok) {
|
|
52270
52679
|
return {
|
|
52271
52680
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52280,9 +52689,9 @@ the user's tokens securely and efficiently.`,
|
|
|
52280
52689
|
|
|
52281
52690
|
// src/funcs/universalAllowanceSet.ts
|
|
52282
52691
|
function universalAllowanceSet(client, request, options) {
|
|
52283
|
-
return new APIPromise($
|
|
52692
|
+
return new APIPromise($do70(client, request, options));
|
|
52284
52693
|
}
|
|
52285
|
-
async function $
|
|
52694
|
+
async function $do70(client, request, options) {
|
|
52286
52695
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52287
52696
|
if (!parsed.ok) {
|
|
52288
52697
|
return [parsed, { status: "invalid" }];
|
|
@@ -52334,7 +52743,7 @@ async function $do68(client, request, options) {
|
|
|
52334
52743
|
const responseFields = {
|
|
52335
52744
|
HttpMeta: { Response: response, Request: req }
|
|
52336
52745
|
};
|
|
52337
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52746
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52338
52747
|
if (!result.ok) {
|
|
52339
52748
|
return [result, { status: "complete", request: req, response }];
|
|
52340
52749
|
}
|
|
@@ -52353,28 +52762,29 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
52353
52762
|
});
|
|
52354
52763
|
|
|
52355
52764
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
52356
|
-
var
|
|
52765
|
+
var args70, tool$universalAllowanceSet;
|
|
52357
52766
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
52358
52767
|
init_universalAllowanceSet();
|
|
52359
52768
|
init_components();
|
|
52360
52769
|
init_tools();
|
|
52361
|
-
|
|
52770
|
+
args70 = {
|
|
52362
52771
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
52363
52772
|
};
|
|
52364
52773
|
tool$universalAllowanceSet = {
|
|
52365
52774
|
name: "universal-allowance-set",
|
|
52366
|
-
description: `Set Allowance
|
|
52775
|
+
description: `Set Allowance
|
|
52367
52776
|
|
|
52368
|
-
This endpoint allows users to modify the token allowance
|
|
52777
|
+
This endpoint allows users to modify the token allowance on any ERC-20 token for
|
|
52778
|
+
a specific protocol.
|
|
52369
52779
|
|
|
52370
52780
|
In decentralized finance (DeFi), setting an allowance is a necessary step to
|
|
52371
52781
|
authorize a protocol to spend a specified amount of tokens on behalf of the user.
|
|
52372
52782
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
52373
52783
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
52374
52784
|
within the DeFi ecosystem.`,
|
|
52375
|
-
args:
|
|
52376
|
-
tool: async (client,
|
|
52377
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
52785
|
+
args: args70,
|
|
52786
|
+
tool: async (client, args71, ctx) => {
|
|
52787
|
+
const [result, apiCall] = await universalAllowanceSet(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52378
52788
|
if (!result.ok) {
|
|
52379
52789
|
return {
|
|
52380
52790
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52389,9 +52799,9 @@ within the DeFi ecosystem.`,
|
|
|
52389
52799
|
|
|
52390
52800
|
// src/funcs/universalEns.ts
|
|
52391
52801
|
function universalEns(client, request, options) {
|
|
52392
|
-
return new APIPromise($
|
|
52802
|
+
return new APIPromise($do71(client, request, options));
|
|
52393
52803
|
}
|
|
52394
|
-
async function $
|
|
52804
|
+
async function $do71(client, request, options) {
|
|
52395
52805
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52396
52806
|
if (!parsed.ok) {
|
|
52397
52807
|
return [parsed, { status: "invalid" }];
|
|
@@ -52400,7 +52810,6 @@ async function $do69(client, request, options) {
|
|
|
52400
52810
|
const body = null;
|
|
52401
52811
|
const path = pathToFunc("/v0/generic/ens/get")();
|
|
52402
52812
|
const query = encodeFormQuery({
|
|
52403
|
-
block: payload.block,
|
|
52404
52813
|
chain: payload.chain,
|
|
52405
52814
|
ens_name: payload.ens_name
|
|
52406
52815
|
});
|
|
@@ -52448,7 +52857,7 @@ async function $do69(client, request, options) {
|
|
|
52448
52857
|
const responseFields = {
|
|
52449
52858
|
HttpMeta: { Response: response, Request: req }
|
|
52450
52859
|
};
|
|
52451
|
-
const [result] = await match(json(200, EnsNameInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52860
|
+
const [result] = await match(json(200, EnsNameInfoResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52452
52861
|
if (!result.ok) {
|
|
52453
52862
|
return [result, { status: "complete", request: req, response }];
|
|
52454
52863
|
}
|
|
@@ -52468,12 +52877,12 @@ var init_universalEns = __esm(() => {
|
|
|
52468
52877
|
});
|
|
52469
52878
|
|
|
52470
52879
|
// src/mcp-server/tools/universalEns.ts
|
|
52471
|
-
var
|
|
52880
|
+
var args71, tool$universalEns;
|
|
52472
52881
|
var init_universalEns2 = __esm(() => {
|
|
52473
52882
|
init_universalEns();
|
|
52474
52883
|
init_operations();
|
|
52475
52884
|
init_tools();
|
|
52476
|
-
|
|
52885
|
+
args71 = {
|
|
52477
52886
|
request: GenericEnsRequest$inboundSchema
|
|
52478
52887
|
};
|
|
52479
52888
|
tool$universalEns = {
|
|
@@ -52484,9 +52893,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
52484
52893
|
|
|
52485
52894
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
52486
52895
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
52487
|
-
args:
|
|
52488
|
-
tool: async (client,
|
|
52489
|
-
const [result, apiCall] = await universalEns(client,
|
|
52896
|
+
args: args71,
|
|
52897
|
+
tool: async (client, args72, ctx) => {
|
|
52898
|
+
const [result, apiCall] = await universalEns(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52490
52899
|
if (!result.ok) {
|
|
52491
52900
|
return {
|
|
52492
52901
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52501,9 +52910,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
52501
52910
|
|
|
52502
52911
|
// src/funcs/universalPortfolio.ts
|
|
52503
52912
|
function universalPortfolio(client, request, options) {
|
|
52504
|
-
return new APIPromise($
|
|
52913
|
+
return new APIPromise($do72(client, request, options));
|
|
52505
52914
|
}
|
|
52506
|
-
async function $
|
|
52915
|
+
async function $do72(client, request, options) {
|
|
52507
52916
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52508
52917
|
if (!parsed.ok) {
|
|
52509
52918
|
return [parsed, { status: "invalid" }];
|
|
@@ -52512,7 +52921,6 @@ async function $do70(client, request, options) {
|
|
|
52512
52921
|
const body = null;
|
|
52513
52922
|
const path = pathToFunc("/v0/generic/portfolio/get")();
|
|
52514
52923
|
const query = encodeFormQuery({
|
|
52515
|
-
block: payload.block,
|
|
52516
52924
|
chain: payload.chain,
|
|
52517
52925
|
user: payload.user
|
|
52518
52926
|
});
|
|
@@ -52560,7 +52968,7 @@ async function $do70(client, request, options) {
|
|
|
52560
52968
|
const responseFields = {
|
|
52561
52969
|
HttpMeta: { Response: response, Request: req }
|
|
52562
52970
|
};
|
|
52563
|
-
const [result] = await match(json(200, Portfolio$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
52971
|
+
const [result] = await match(json(200, Portfolio$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52564
52972
|
if (!result.ok) {
|
|
52565
52973
|
return [result, { status: "complete", request: req, response }];
|
|
52566
52974
|
}
|
|
@@ -52580,12 +52988,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
52580
52988
|
});
|
|
52581
52989
|
|
|
52582
52990
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
52583
|
-
var
|
|
52991
|
+
var args72, tool$universalPortfolio;
|
|
52584
52992
|
var init_universalPortfolio2 = __esm(() => {
|
|
52585
52993
|
init_universalPortfolio();
|
|
52586
52994
|
init_operations();
|
|
52587
52995
|
init_tools();
|
|
52588
|
-
|
|
52996
|
+
args72 = {
|
|
52589
52997
|
request: GenericPortfolioRequest$inboundSchema
|
|
52590
52998
|
};
|
|
52591
52999
|
tool$universalPortfolio = {
|
|
@@ -52596,9 +53004,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
52596
53004
|
|
|
52597
53005
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
52598
53006
|
balances, including their respective values and quantities.`,
|
|
52599
|
-
args:
|
|
52600
|
-
tool: async (client,
|
|
52601
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
53007
|
+
args: args72,
|
|
53008
|
+
tool: async (client, args73, ctx) => {
|
|
53009
|
+
const [result, apiCall] = await universalPortfolio(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52602
53010
|
if (!result.ok) {
|
|
52603
53011
|
return {
|
|
52604
53012
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52613,9 +53021,9 @@ balances, including their respective values and quantities.`,
|
|
|
52613
53021
|
|
|
52614
53022
|
// src/funcs/universalSupportedTokens.ts
|
|
52615
53023
|
function universalSupportedTokens(client, request, options) {
|
|
52616
|
-
return new APIPromise($
|
|
53024
|
+
return new APIPromise($do73(client, request, options));
|
|
52617
53025
|
}
|
|
52618
|
-
async function $
|
|
53026
|
+
async function $do73(client, request, options) {
|
|
52619
53027
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52620
53028
|
if (!parsed.ok) {
|
|
52621
53029
|
return [parsed, { status: "invalid" }];
|
|
@@ -52624,7 +53032,6 @@ async function $do71(client, request, options) {
|
|
|
52624
53032
|
const body = null;
|
|
52625
53033
|
const path = pathToFunc("/v0/generic/supported_tokens/get")();
|
|
52626
53034
|
const query = encodeFormQuery({
|
|
52627
|
-
block: payload.block,
|
|
52628
53035
|
chain: payload.chain
|
|
52629
53036
|
});
|
|
52630
53037
|
const headers = new Headers(compactMap({
|
|
@@ -52671,7 +53078,7 @@ async function $do71(client, request, options) {
|
|
|
52671
53078
|
const responseFields = {
|
|
52672
53079
|
HttpMeta: { Response: response, Request: req }
|
|
52673
53080
|
};
|
|
52674
|
-
const [result] = await match(json(200, TokenInfo$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53081
|
+
const [result] = await match(json(200, TokenInfo$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52675
53082
|
if (!result.ok) {
|
|
52676
53083
|
return [result, { status: "complete", request: req, response }];
|
|
52677
53084
|
}
|
|
@@ -52691,12 +53098,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
52691
53098
|
});
|
|
52692
53099
|
|
|
52693
53100
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
52694
|
-
var
|
|
53101
|
+
var args73, tool$universalSupportedTokens;
|
|
52695
53102
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
52696
53103
|
init_universalSupportedTokens();
|
|
52697
53104
|
init_operations();
|
|
52698
53105
|
init_tools();
|
|
52699
|
-
|
|
53106
|
+
args73 = {
|
|
52700
53107
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
52701
53108
|
};
|
|
52702
53109
|
tool$universalSupportedTokens = {
|
|
@@ -52704,9 +53111,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
52704
53111
|
description: `List supported tokens
|
|
52705
53112
|
|
|
52706
53113
|
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,
|
|
53114
|
+
args: args73,
|
|
53115
|
+
tool: async (client, args74, ctx) => {
|
|
53116
|
+
const [result, apiCall] = await universalSupportedTokens(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52710
53117
|
if (!result.ok) {
|
|
52711
53118
|
return {
|
|
52712
53119
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52721,9 +53128,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
52721
53128
|
|
|
52722
53129
|
// src/funcs/universalUnwrapWeth.ts
|
|
52723
53130
|
function universalUnwrapWeth(client, request, options) {
|
|
52724
|
-
return new APIPromise($
|
|
53131
|
+
return new APIPromise($do74(client, request, options));
|
|
52725
53132
|
}
|
|
52726
|
-
async function $
|
|
53133
|
+
async function $do74(client, request, options) {
|
|
52727
53134
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52728
53135
|
if (!parsed.ok) {
|
|
52729
53136
|
return [parsed, { status: "invalid" }];
|
|
@@ -52775,7 +53182,7 @@ async function $do72(client, request, options) {
|
|
|
52775
53182
|
const responseFields = {
|
|
52776
53183
|
HttpMeta: { Response: response, Request: req }
|
|
52777
53184
|
};
|
|
52778
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53185
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52779
53186
|
if (!result.ok) {
|
|
52780
53187
|
return [result, { status: "complete", request: req, response }];
|
|
52781
53188
|
}
|
|
@@ -52794,12 +53201,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
52794
53201
|
});
|
|
52795
53202
|
|
|
52796
53203
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
52797
|
-
var
|
|
53204
|
+
var args74, tool$universalUnwrapWeth;
|
|
52798
53205
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
52799
53206
|
init_universalUnwrapWeth();
|
|
52800
53207
|
init_components();
|
|
52801
53208
|
init_tools();
|
|
52802
|
-
|
|
53209
|
+
args74 = {
|
|
52803
53210
|
request: UnwrapWethRequest$inboundSchema
|
|
52804
53211
|
};
|
|
52805
53212
|
tool$universalUnwrapWeth = {
|
|
@@ -52808,9 +53215,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
52808
53215
|
|
|
52809
53216
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
52810
53217
|
can be used for gas and other native purposes.`,
|
|
52811
|
-
args:
|
|
52812
|
-
tool: async (client,
|
|
52813
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
53218
|
+
args: args74,
|
|
53219
|
+
tool: async (client, args75, ctx) => {
|
|
53220
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52814
53221
|
if (!result.ok) {
|
|
52815
53222
|
return {
|
|
52816
53223
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52825,9 +53232,9 @@ can be used for gas and other native purposes.`,
|
|
|
52825
53232
|
|
|
52826
53233
|
// src/funcs/universalVisualizePortfolio.ts
|
|
52827
53234
|
function universalVisualizePortfolio(client, request, options) {
|
|
52828
|
-
return new APIPromise($
|
|
53235
|
+
return new APIPromise($do75(client, request, options));
|
|
52829
53236
|
}
|
|
52830
|
-
async function $
|
|
53237
|
+
async function $do75(client, request, options) {
|
|
52831
53238
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52832
53239
|
if (!parsed.ok) {
|
|
52833
53240
|
return [parsed, { status: "invalid" }];
|
|
@@ -52836,7 +53243,6 @@ async function $do73(client, request, options) {
|
|
|
52836
53243
|
const body = null;
|
|
52837
53244
|
const path = pathToFunc("/v0/generic/visualize_portfolio/get")();
|
|
52838
53245
|
const query = encodeFormQuery({
|
|
52839
|
-
block: payload.block,
|
|
52840
53246
|
chain: payload.chain,
|
|
52841
53247
|
user: payload.user
|
|
52842
53248
|
});
|
|
@@ -52884,7 +53290,7 @@ async function $do73(client, request, options) {
|
|
|
52884
53290
|
const responseFields = {
|
|
52885
53291
|
HttpMeta: { Response: response, Request: req }
|
|
52886
53292
|
};
|
|
52887
|
-
const [result] = await match(json(200, Image$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53293
|
+
const [result] = await match(json(200, Image$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52888
53294
|
if (!result.ok) {
|
|
52889
53295
|
return [result, { status: "complete", request: req, response }];
|
|
52890
53296
|
}
|
|
@@ -52904,12 +53310,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
52904
53310
|
});
|
|
52905
53311
|
|
|
52906
53312
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
52907
|
-
var
|
|
53313
|
+
var args75, tool$universalVisualizePortfolio;
|
|
52908
53314
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
52909
53315
|
init_universalVisualizePortfolio();
|
|
52910
53316
|
init_operations();
|
|
52911
53317
|
init_tools();
|
|
52912
|
-
|
|
53318
|
+
args75 = {
|
|
52913
53319
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
52914
53320
|
};
|
|
52915
53321
|
tool$universalVisualizePortfolio = {
|
|
@@ -52921,9 +53327,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
52921
53327
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
52922
53328
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
52923
53329
|
USD.`,
|
|
52924
|
-
args:
|
|
52925
|
-
tool: async (client,
|
|
52926
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
53330
|
+
args: args75,
|
|
53331
|
+
tool: async (client, args76, ctx) => {
|
|
53332
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52927
53333
|
if (!result.ok) {
|
|
52928
53334
|
return {
|
|
52929
53335
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52938,9 +53344,9 @@ USD.`,
|
|
|
52938
53344
|
|
|
52939
53345
|
// src/funcs/universalWrapEth.ts
|
|
52940
53346
|
function universalWrapEth(client, request, options) {
|
|
52941
|
-
return new APIPromise($
|
|
53347
|
+
return new APIPromise($do76(client, request, options));
|
|
52942
53348
|
}
|
|
52943
|
-
async function $
|
|
53349
|
+
async function $do76(client, request, options) {
|
|
52944
53350
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52945
53351
|
if (!parsed.ok) {
|
|
52946
53352
|
return [parsed, { status: "invalid" }];
|
|
@@ -52992,7 +53398,7 @@ async function $do74(client, request, options) {
|
|
|
52992
53398
|
const responseFields = {
|
|
52993
53399
|
HttpMeta: { Response: response, Request: req }
|
|
52994
53400
|
};
|
|
52995
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
53401
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52996
53402
|
if (!result.ok) {
|
|
52997
53403
|
return [result, { status: "complete", request: req, response }];
|
|
52998
53404
|
}
|
|
@@ -53011,12 +53417,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
53011
53417
|
});
|
|
53012
53418
|
|
|
53013
53419
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
53014
|
-
var
|
|
53420
|
+
var args76, tool$universalWrapEth;
|
|
53015
53421
|
var init_universalWrapEth2 = __esm(() => {
|
|
53016
53422
|
init_universalWrapEth();
|
|
53017
53423
|
init_components();
|
|
53018
53424
|
init_tools();
|
|
53019
|
-
|
|
53425
|
+
args76 = {
|
|
53020
53426
|
request: WrapEthRequest$inboundSchema
|
|
53021
53427
|
};
|
|
53022
53428
|
tool$universalWrapEth = {
|
|
@@ -53025,9 +53431,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
53025
53431
|
|
|
53026
53432
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
53027
53433
|
it to be traded on DeFi protocols.`,
|
|
53028
|
-
args:
|
|
53029
|
-
tool: async (client,
|
|
53030
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
53434
|
+
args: args76,
|
|
53435
|
+
tool: async (client, args77, ctx) => {
|
|
53436
|
+
const [result, apiCall] = await universalWrapEth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53031
53437
|
if (!result.ok) {
|
|
53032
53438
|
return {
|
|
53033
53439
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53044,7 +53450,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53044
53450
|
function createMCPServer(deps) {
|
|
53045
53451
|
const server = new McpServer({
|
|
53046
53452
|
name: "CompassApiSDK",
|
|
53047
|
-
version: "0.5.
|
|
53453
|
+
version: "0.5.10"
|
|
53048
53454
|
});
|
|
53049
53455
|
const client = new CompassApiSDKCore({
|
|
53050
53456
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -53121,13 +53527,15 @@ function createMCPServer(deps) {
|
|
|
53121
53527
|
tool(tool$universalAllowanceSet);
|
|
53122
53528
|
tool(tool$pendlePosition);
|
|
53123
53529
|
tool(tool$pendlePositions);
|
|
53124
|
-
tool(tool$pendleMarkets);
|
|
53125
53530
|
tool(tool$pendleMarket);
|
|
53531
|
+
tool(tool$pendleMarkets);
|
|
53126
53532
|
tool(tool$pendleBuyPt);
|
|
53127
53533
|
tool(tool$pendleSellPt);
|
|
53128
53534
|
tool(tool$pendleBuyYt);
|
|
53129
53535
|
tool(tool$pendleSellYt);
|
|
53130
53536
|
tool(tool$pendleRedeemYield);
|
|
53537
|
+
tool(tool$pendleAddLiquidity);
|
|
53538
|
+
tool(tool$pendleRemoveLiquidity);
|
|
53131
53539
|
tool(tool$transactionBatchingAuthorization);
|
|
53132
53540
|
tool(tool$transactionBatchingExecute);
|
|
53133
53541
|
tool(tool$transactionBatchingAaveLoop);
|
|
@@ -53173,6 +53581,7 @@ var init_server2 = __esm(() => {
|
|
|
53173
53581
|
init_morphoVaults2();
|
|
53174
53582
|
init_morphoWithdraw2();
|
|
53175
53583
|
init_morphoWithdrawCollateral2();
|
|
53584
|
+
init_pendleAddLiquidity2();
|
|
53176
53585
|
init_pendleBuyPt2();
|
|
53177
53586
|
init_pendleBuyYt2();
|
|
53178
53587
|
init_pendleMarket2();
|
|
@@ -53180,6 +53589,7 @@ var init_server2 = __esm(() => {
|
|
|
53180
53589
|
init_pendlePosition2();
|
|
53181
53590
|
init_pendlePositions2();
|
|
53182
53591
|
init_pendleRedeemYield2();
|
|
53592
|
+
init_pendleRemoveLiquidity2();
|
|
53183
53593
|
init_pendleSellPt2();
|
|
53184
53594
|
init_pendleSellYt2();
|
|
53185
53595
|
init_skyBuy2();
|
|
@@ -54403,7 +54813,7 @@ var routes = an({
|
|
|
54403
54813
|
var app = He(routes, {
|
|
54404
54814
|
name: "mcp",
|
|
54405
54815
|
versionInfo: {
|
|
54406
|
-
currentVersion: "0.5.
|
|
54816
|
+
currentVersion: "0.5.10"
|
|
54407
54817
|
}
|
|
54408
54818
|
});
|
|
54409
54819
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54411,5 +54821,5 @@ export {
|
|
|
54411
54821
|
app
|
|
54412
54822
|
};
|
|
54413
54823
|
|
|
54414
|
-
//# debugId=
|
|
54824
|
+
//# debugId=4FCBE04D95B6909A64756E2164756E21
|
|
54415
54825
|
//# sourceMappingURL=mcp-server.js.map
|