@compass-labs/api-sdk 0.2.2 → 0.3.0
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 +2 -2
- package/bin/mcp-server.js +183 -124
- package/bin/mcp-server.js.map +84 -86
- package/dist/commonjs/funcs/aaveV3AvgRate.js +2 -0
- package/dist/commonjs/funcs/aaveV3AvgRate.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.js +2 -0
- package/dist/commonjs/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js +2 -0
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3LiquidityChange.js +2 -0
- package/dist/commonjs/funcs/aaveV3LiquidityChange.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Rate.js +2 -0
- package/dist/commonjs/funcs/aaveV3Rate.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js +2 -0
- package/dist/commonjs/funcs/aaveV3Repay.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js +2 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.js +2 -0
- package/dist/commonjs/funcs/aaveV3StdRate.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.js +2 -0
- package/dist/commonjs/funcs/aaveV3Supply.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3TokenPrice.js +2 -0
- package/dist/commonjs/funcs/aaveV3TokenPrice.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.js +2 -0
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.js +2 -0
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.js +2 -0
- package/dist/commonjs/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +2 -0
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/morphoAllowance.js +2 -0
- package/dist/commonjs/funcs/morphoAllowance.js.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.js +2 -0
- package/dist/commonjs/funcs/morphoBorrow.js.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js +2 -0
- package/dist/commonjs/funcs/morphoDeposit.js.map +1 -1
- package/dist/commonjs/funcs/morphoMarket.js +2 -0
- package/dist/commonjs/funcs/morphoMarket.js.map +1 -1
- package/dist/commonjs/funcs/morphoMarketPosition.js +2 -0
- package/dist/commonjs/funcs/morphoMarketPosition.js.map +1 -1
- package/dist/commonjs/funcs/morphoMarkets.js +2 -0
- package/dist/commonjs/funcs/morphoMarkets.js.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.js +2 -0
- package/dist/commonjs/funcs/morphoRepay.js.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.js +2 -0
- package/dist/commonjs/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/commonjs/funcs/morphoUserPosition.js +2 -0
- package/dist/commonjs/funcs/morphoUserPosition.js.map +1 -1
- package/dist/commonjs/funcs/morphoVault.js +2 -0
- package/dist/commonjs/funcs/morphoVault.js.map +1 -1
- package/dist/commonjs/funcs/morphoVaultPosition.js +2 -0
- package/dist/commonjs/funcs/morphoVaultPosition.js.map +1 -1
- package/dist/commonjs/funcs/morphoVaults.js +2 -0
- package/dist/commonjs/funcs/morphoVaults.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.js +2 -0
- package/dist/commonjs/funcs/morphoWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js +2 -0
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/commonjs/funcs/pendleMarket.js +2 -1
- package/dist/commonjs/funcs/pendleMarket.js.map +1 -1
- package/dist/commonjs/funcs/pendleMarkets.js +2 -0
- package/dist/commonjs/funcs/pendleMarkets.js.map +1 -1
- package/dist/commonjs/funcs/pendlePosition.js +2 -0
- package/dist/commonjs/funcs/pendlePosition.js.map +1 -1
- package/dist/commonjs/funcs/pendlePositions.js +2 -0
- package/dist/commonjs/funcs/pendlePositions.js.map +1 -1
- package/dist/commonjs/funcs/skyBuy.js +2 -0
- package/dist/commonjs/funcs/skyBuy.js.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.js +2 -0
- package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
- package/dist/commonjs/funcs/skyPosition.js +2 -0
- package/dist/commonjs/funcs/skyPosition.js.map +1 -1
- package/dist/commonjs/funcs/skySell.js +2 -0
- package/dist/commonjs/funcs/skySell.js.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js +2 -0
- package/dist/commonjs/funcs/skyWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js +2 -0
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -1
- package/dist/commonjs/funcs/tokenAddress.js +2 -0
- package/dist/commonjs/funcs/tokenAddress.js.map +1 -1
- package/dist/commonjs/funcs/tokenBalance.js +2 -0
- package/dist/commonjs/funcs/tokenBalance.js.map +1 -1
- package/dist/commonjs/funcs/tokenPrice.js +2 -0
- package/dist/commonjs/funcs/tokenPrice.js.map +1 -1
- package/dist/commonjs/funcs/tokenTransfer.js +2 -0
- package/dist/commonjs/funcs/tokenTransfer.js.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +2 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js +2 -0
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.js +2 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.js +2 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js +2 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js +2 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.js +2 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionPositions.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js +2 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3PoolPrice.js +2 -0
- package/dist/commonjs/funcs/uniswapV3PoolPrice.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.js +2 -0
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.js +2 -0
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js +2 -0
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js +2 -0
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/universalAllowance.js +2 -0
- package/dist/commonjs/funcs/universalAllowance.js.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js +3 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/commonjs/funcs/universalEns.js +2 -0
- package/dist/commonjs/funcs/universalEns.js.map +1 -1
- package/dist/commonjs/funcs/universalPortfolio.js +2 -0
- package/dist/commonjs/funcs/universalPortfolio.js.map +1 -1
- package/dist/commonjs/funcs/universalSupportedTokens.js +2 -0
- package/dist/commonjs/funcs/universalSupportedTokens.js.map +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.js +2 -0
- package/dist/commonjs/funcs/universalUnwrapWeth.js.map +1 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.js +2 -0
- package/dist/commonjs/funcs/universalVisualizePortfolio.js.map +1 -1
- package/dist/commonjs/funcs/universalWrapEth.js +2 -0
- package/dist/commonjs/funcs/universalWrapEth.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +7 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +1 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +3 -3
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js +1 -1
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts +29 -10
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowanceparams.js +26 -3
- package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts +29 -10
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.js +26 -3
- package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -3
- package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.js +0 -1
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
- package/dist/commonjs/models/components/tokentransferrequest.d.ts +11 -11
- package/dist/commonjs/models/components/tokentransferrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokentransferrequest.js +16 -17
- package/dist/commonjs/models/components/tokentransferrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +4 -5
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +0 -5
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/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 -4
- package/dist/commonjs/models/operations/pendlemarket.js.map +1 -1
- package/dist/commonjs/sdk/universal.d.ts +1 -1
- package/dist/commonjs/sdk/universal.js +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.js +2 -0
- package/dist/esm/funcs/aaveV3AvgRate.js.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.js +2 -0
- package/dist/esm/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js +2 -0
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js.map +1 -1
- package/dist/esm/funcs/aaveV3LiquidityChange.js +2 -0
- package/dist/esm/funcs/aaveV3LiquidityChange.js.map +1 -1
- package/dist/esm/funcs/aaveV3Rate.js +2 -0
- package/dist/esm/funcs/aaveV3Rate.js.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.js +2 -0
- package/dist/esm/funcs/aaveV3Repay.js.map +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.js +2 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.js.map +1 -1
- package/dist/esm/funcs/aaveV3StdRate.js +2 -0
- package/dist/esm/funcs/aaveV3StdRate.js.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.js +2 -0
- package/dist/esm/funcs/aaveV3Supply.js.map +1 -1
- package/dist/esm/funcs/aaveV3TokenPrice.js +2 -0
- package/dist/esm/funcs/aaveV3TokenPrice.js.map +1 -1
- package/dist/esm/funcs/aaveV3UserPositionPerToken.js +2 -0
- package/dist/esm/funcs/aaveV3UserPositionPerToken.js.map +1 -1
- package/dist/esm/funcs/aaveV3UserPositionSummary.js +2 -0
- package/dist/esm/funcs/aaveV3UserPositionSummary.js.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.js +2 -0
- package/dist/esm/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +2 -0
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/morphoAllowance.js +2 -0
- package/dist/esm/funcs/morphoAllowance.js.map +1 -1
- package/dist/esm/funcs/morphoBorrow.js +2 -0
- package/dist/esm/funcs/morphoBorrow.js.map +1 -1
- package/dist/esm/funcs/morphoDeposit.js +2 -0
- package/dist/esm/funcs/morphoDeposit.js.map +1 -1
- package/dist/esm/funcs/morphoMarket.js +2 -0
- package/dist/esm/funcs/morphoMarket.js.map +1 -1
- package/dist/esm/funcs/morphoMarketPosition.js +2 -0
- package/dist/esm/funcs/morphoMarketPosition.js.map +1 -1
- package/dist/esm/funcs/morphoMarkets.js +2 -0
- package/dist/esm/funcs/morphoMarkets.js.map +1 -1
- package/dist/esm/funcs/morphoRepay.js +2 -0
- package/dist/esm/funcs/morphoRepay.js.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.js +2 -0
- package/dist/esm/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/esm/funcs/morphoUserPosition.js +2 -0
- package/dist/esm/funcs/morphoUserPosition.js.map +1 -1
- package/dist/esm/funcs/morphoVault.js +2 -0
- package/dist/esm/funcs/morphoVault.js.map +1 -1
- package/dist/esm/funcs/morphoVaultPosition.js +2 -0
- package/dist/esm/funcs/morphoVaultPosition.js.map +1 -1
- package/dist/esm/funcs/morphoVaults.js +2 -0
- package/dist/esm/funcs/morphoVaults.js.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.js +2 -0
- package/dist/esm/funcs/morphoWithdraw.js.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.js +2 -0
- package/dist/esm/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/esm/funcs/pendleMarket.js +2 -1
- package/dist/esm/funcs/pendleMarket.js.map +1 -1
- package/dist/esm/funcs/pendleMarkets.js +2 -0
- package/dist/esm/funcs/pendleMarkets.js.map +1 -1
- package/dist/esm/funcs/pendlePosition.js +2 -0
- package/dist/esm/funcs/pendlePosition.js.map +1 -1
- package/dist/esm/funcs/pendlePositions.js +2 -0
- package/dist/esm/funcs/pendlePositions.js.map +1 -1
- package/dist/esm/funcs/skyBuy.js +2 -0
- package/dist/esm/funcs/skyBuy.js.map +1 -1
- package/dist/esm/funcs/skyDeposit.js +2 -0
- package/dist/esm/funcs/skyDeposit.js.map +1 -1
- package/dist/esm/funcs/skyPosition.js +2 -0
- package/dist/esm/funcs/skyPosition.js.map +1 -1
- package/dist/esm/funcs/skySell.js +2 -0
- package/dist/esm/funcs/skySell.js.map +1 -1
- package/dist/esm/funcs/skyWithdraw.js +2 -0
- package/dist/esm/funcs/skyWithdraw.js.map +1 -1
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js +2 -0
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -1
- package/dist/esm/funcs/tokenAddress.js +2 -0
- package/dist/esm/funcs/tokenAddress.js.map +1 -1
- package/dist/esm/funcs/tokenBalance.js +2 -0
- package/dist/esm/funcs/tokenBalance.js.map +1 -1
- package/dist/esm/funcs/tokenPrice.js +2 -0
- package/dist/esm/funcs/tokenPrice.js.map +1 -1
- package/dist/esm/funcs/tokenTransfer.js +2 -0
- package/dist/esm/funcs/tokenTransfer.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.js +2 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.js +2 -0
- package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingExecute.js +2 -0
- package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.js +2 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js +2 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js +2 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.js +2 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionPositions.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js +2 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/uniswapV3PoolPrice.js +2 -0
- package/dist/esm/funcs/uniswapV3PoolPrice.js.map +1 -1
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.js +2 -0
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.js +2 -0
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js +2 -0
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js +2 -0
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/universalAllowance.js +2 -0
- package/dist/esm/funcs/universalAllowance.js.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js +3 -1
- package/dist/esm/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/esm/funcs/universalEns.js +2 -0
- package/dist/esm/funcs/universalEns.js.map +1 -1
- package/dist/esm/funcs/universalPortfolio.js +2 -0
- package/dist/esm/funcs/universalPortfolio.js.map +1 -1
- package/dist/esm/funcs/universalSupportedTokens.js +2 -0
- package/dist/esm/funcs/universalSupportedTokens.js.map +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.js +2 -0
- package/dist/esm/funcs/universalUnwrapWeth.js.map +1 -1
- package/dist/esm/funcs/universalVisualizePortfolio.js +2 -0
- package/dist/esm/funcs/universalVisualizePortfolio.js.map +1 -1
- package/dist/esm/funcs/universalWrapEth.js +2 -0
- package/dist/esm/funcs/universalWrapEth.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +7 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +1 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +3 -3
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/universalAllowanceSet.js +1 -1
- package/dist/esm/models/components/increaseallowanceparams.d.ts +29 -10
- package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowanceparams.js +23 -2
- package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.d.ts +29 -10
- package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.js +23 -2
- package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallactiontype.d.ts +0 -3
- package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/esm/models/components/multicallactiontype.js +0 -1
- package/dist/esm/models/components/multicallactiontype.js.map +1 -1
- package/dist/esm/models/components/tokentransferrequest.d.ts +11 -11
- package/dist/esm/models/components/tokentransferrequest.d.ts.map +1 -1
- package/dist/esm/models/components/tokentransferrequest.js +13 -14
- package/dist/esm/models/components/tokentransferrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +4 -5
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +0 -5
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/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 -4
- package/dist/esm/models/operations/pendlemarket.js.map +1 -1
- package/dist/esm/sdk/universal.d.ts +1 -1
- package/dist/esm/sdk/universal.js +1 -1
- package/docs/sdks/pendle/README.md +0 -2
- package/docs/sdks/universal/README.md +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AvgRate.ts +2 -0
- package/src/funcs/aaveV3Borrow.ts +2 -0
- package/src/funcs/aaveV3HistoricalTransactions.ts +2 -0
- package/src/funcs/aaveV3LiquidityChange.ts +2 -0
- package/src/funcs/aaveV3Rate.ts +2 -0
- package/src/funcs/aaveV3Repay.ts +2 -0
- package/src/funcs/aaveV3ReserveOverview.ts +2 -0
- package/src/funcs/aaveV3StdRate.ts +2 -0
- package/src/funcs/aaveV3Supply.ts +2 -0
- package/src/funcs/aaveV3TokenPrice.ts +2 -0
- package/src/funcs/aaveV3UserPositionPerToken.ts +2 -0
- package/src/funcs/aaveV3UserPositionSummary.ts +2 -0
- package/src/funcs/aaveV3Withdraw.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +2 -0
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +2 -0
- package/src/funcs/morphoAllowance.ts +2 -0
- package/src/funcs/morphoBorrow.ts +2 -0
- package/src/funcs/morphoDeposit.ts +2 -0
- package/src/funcs/morphoMarket.ts +2 -0
- package/src/funcs/morphoMarketPosition.ts +2 -0
- package/src/funcs/morphoMarkets.ts +2 -0
- package/src/funcs/morphoRepay.ts +2 -0
- package/src/funcs/morphoSupplyCollateral.ts +2 -0
- package/src/funcs/morphoUserPosition.ts +2 -0
- package/src/funcs/morphoVault.ts +2 -0
- package/src/funcs/morphoVaultPosition.ts +2 -0
- package/src/funcs/morphoVaults.ts +2 -0
- package/src/funcs/morphoWithdraw.ts +2 -0
- package/src/funcs/morphoWithdrawCollateral.ts +2 -0
- package/src/funcs/pendleMarket.ts +2 -1
- package/src/funcs/pendleMarkets.ts +2 -0
- package/src/funcs/pendlePosition.ts +2 -0
- package/src/funcs/pendlePositions.ts +2 -0
- package/src/funcs/skyBuy.ts +2 -0
- package/src/funcs/skyDeposit.ts +2 -0
- package/src/funcs/skyPosition.ts +2 -0
- package/src/funcs/skySell.ts +2 -0
- package/src/funcs/skyWithdraw.ts +2 -0
- package/src/funcs/smartAccountAccountBatchedUserOperations.ts +2 -0
- package/src/funcs/tokenAddress.ts +2 -0
- package/src/funcs/tokenBalance.ts +2 -0
- package/src/funcs/tokenPrice.ts +2 -0
- package/src/funcs/tokenTransfer.ts +2 -0
- package/src/funcs/transactionBatchingAaveLoop.ts +2 -0
- package/src/funcs/transactionBatchingAuthorization.ts +2 -0
- package/src/funcs/transactionBatchingExecute.ts +2 -0
- package/src/funcs/uniswapV3LiquidityProvisionInRange.ts +2 -0
- package/src/funcs/uniswapV3LiquidityProvisionIncrease.ts +2 -0
- package/src/funcs/uniswapV3LiquidityProvisionMint.ts +2 -0
- package/src/funcs/uniswapV3LiquidityProvisionPositions.ts +2 -0
- package/src/funcs/uniswapV3LiquidityProvisionWithdraw.ts +2 -0
- package/src/funcs/uniswapV3PoolPrice.ts +2 -0
- package/src/funcs/uniswapV3QuoteBuyExactly.ts +2 -0
- package/src/funcs/uniswapV3QuoteSellExactly.ts +2 -0
- package/src/funcs/uniswapV3SwapBuyExactly.ts +2 -0
- package/src/funcs/uniswapV3SwapSellExactly.ts +2 -0
- package/src/funcs/universalAllowance.ts +2 -0
- package/src/funcs/universalAllowanceSet.ts +3 -1
- package/src/funcs/universalEns.ts +2 -0
- package/src/funcs/universalPortfolio.ts +2 -0
- package/src/funcs/universalSupportedTokens.ts +2 -0
- package/src/funcs/universalUnwrapWeth.ts +2 -0
- package/src/funcs/universalVisualizePortfolio.ts +2 -0
- package/src/funcs/universalWrapEth.ts +2 -0
- package/src/hooks/types.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/universalAllowanceSet.ts +1 -1
- package/src/models/components/increaseallowanceparams.ts +62 -12
- package/src/models/components/increaseallowancerequest.ts +62 -12
- package/src/models/components/index.ts +0 -2
- package/src/models/components/multicallactiontype.ts +0 -1
- package/src/models/components/tokentransferrequest.ts +27 -20
- package/src/models/components/useroperation.ts +0 -14
- package/src/models/operations/pendlemarket.ts +0 -11
- package/src/sdk/universal.ts +1 -1
- package/dist/commonjs/models/components/contractname.d.ts +0 -117
- package/dist/commonjs/models/components/contractname.d.ts.map +0 -1
- package/dist/commonjs/models/components/contractname.js +0 -92
- package/dist/commonjs/models/components/contractname.js.map +0 -1
- package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts +0 -80
- package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/increaseallowanceanyparams.js +0 -107
- package/dist/commonjs/models/components/increaseallowanceanyparams.js.map +0 -1
- package/dist/esm/models/components/contractname.d.ts +0 -117
- package/dist/esm/models/components/contractname.d.ts.map +0 -1
- package/dist/esm/models/components/contractname.js +0 -56
- package/dist/esm/models/components/contractname.js.map +0 -1
- package/dist/esm/models/components/increaseallowanceanyparams.d.ts +0 -80
- package/dist/esm/models/components/increaseallowanceanyparams.d.ts.map +0 -1
- package/dist/esm/models/components/increaseallowanceanyparams.js +0 -67
- package/dist/esm/models/components/increaseallowanceanyparams.js.map +0 -1
- package/src/models/components/contractname.ts +0 -71
- package/src/models/components/increaseallowanceanyparams.ts +0 -169
package/src/funcs/skySell.ts
CHANGED
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "sky_sell",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -123,6 +124,7 @@ async function $do(
|
|
|
123
124
|
path: path,
|
|
124
125
|
headers: headers,
|
|
125
126
|
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
126
128
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
129
|
}, options);
|
|
128
130
|
if (!requestRes.ok) {
|
package/src/funcs/skyWithdraw.ts
CHANGED
|
@@ -97,6 +97,7 @@ async function $do(
|
|
|
97
97
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98
98
|
|
|
99
99
|
const context = {
|
|
100
|
+
options: client._options,
|
|
100
101
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
101
102
|
operationID: "sky_withdraw",
|
|
102
103
|
oAuth2Scopes: [],
|
|
@@ -117,6 +118,7 @@ async function $do(
|
|
|
117
118
|
path: path,
|
|
118
119
|
headers: headers,
|
|
119
120
|
body: body,
|
|
121
|
+
userAgent: client._options.userAgent,
|
|
120
122
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
121
123
|
}, options);
|
|
122
124
|
if (!requestRes.ok) {
|
|
@@ -98,6 +98,7 @@ async function $do(
|
|
|
98
98
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
99
|
|
|
100
100
|
const context = {
|
|
101
|
+
options: client._options,
|
|
101
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
103
|
operationID: "smart_account_batched_user_operations",
|
|
103
104
|
oAuth2Scopes: [],
|
|
@@ -118,6 +119,7 @@ async function $do(
|
|
|
118
119
|
path: path,
|
|
119
120
|
headers: headers,
|
|
120
121
|
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
121
123
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
122
124
|
}, options);
|
|
123
125
|
if (!requestRes.ok) {
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "token_address",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -124,6 +125,7 @@ async function $do(
|
|
|
124
125
|
headers: headers,
|
|
125
126
|
query: query,
|
|
126
127
|
body: body,
|
|
128
|
+
userAgent: client._options.userAgent,
|
|
127
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
130
|
}, options);
|
|
129
131
|
if (!requestRes.ok) {
|
|
@@ -104,6 +104,7 @@ async function $do(
|
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
107
|
+
options: client._options,
|
|
107
108
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
109
|
operationID: "token_balance",
|
|
109
110
|
oAuth2Scopes: [],
|
|
@@ -125,6 +126,7 @@ async function $do(
|
|
|
125
126
|
headers: headers,
|
|
126
127
|
query: query,
|
|
127
128
|
body: body,
|
|
129
|
+
userAgent: client._options.userAgent,
|
|
128
130
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
129
131
|
}, options);
|
|
130
132
|
if (!requestRes.ok) {
|
package/src/funcs/tokenPrice.ts
CHANGED
|
@@ -106,6 +106,7 @@ async function $do(
|
|
|
106
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
107
|
|
|
108
108
|
const context = {
|
|
109
|
+
options: client._options,
|
|
109
110
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
111
|
operationID: "token_price",
|
|
111
112
|
oAuth2Scopes: [],
|
|
@@ -127,6 +128,7 @@ async function $do(
|
|
|
127
128
|
headers: headers,
|
|
128
129
|
query: query,
|
|
129
130
|
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
130
132
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
133
|
}, options);
|
|
132
134
|
if (!requestRes.ok) {
|
|
@@ -97,6 +97,7 @@ async function $do(
|
|
|
97
97
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98
98
|
|
|
99
99
|
const context = {
|
|
100
|
+
options: client._options,
|
|
100
101
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
101
102
|
operationID: "token_transfer",
|
|
102
103
|
oAuth2Scopes: [],
|
|
@@ -117,6 +118,7 @@ async function $do(
|
|
|
117
118
|
path: path,
|
|
118
119
|
headers: headers,
|
|
119
120
|
body: body,
|
|
121
|
+
userAgent: client._options.userAgent,
|
|
120
122
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
121
123
|
}, options);
|
|
122
124
|
if (!requestRes.ok) {
|
|
@@ -107,6 +107,7 @@ async function $do(
|
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
110
|
+
options: client._options,
|
|
110
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
112
|
operationID: "multicall_aave_loop",
|
|
112
113
|
oAuth2Scopes: [],
|
|
@@ -127,6 +128,7 @@ async function $do(
|
|
|
127
128
|
path: path,
|
|
128
129
|
headers: headers,
|
|
129
130
|
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
130
132
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
133
|
}, options);
|
|
132
134
|
if (!requestRes.ok) {
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "multicall_authorization",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -123,6 +124,7 @@ async function $do(
|
|
|
123
124
|
path: path,
|
|
124
125
|
headers: headers,
|
|
125
126
|
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
126
128
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
129
|
}, options);
|
|
128
130
|
if (!requestRes.ok) {
|
|
@@ -102,6 +102,7 @@ async function $do(
|
|
|
102
102
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
103
|
|
|
104
104
|
const context = {
|
|
105
|
+
options: client._options,
|
|
105
106
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
107
|
operationID: "multicall_execute",
|
|
107
108
|
oAuth2Scopes: [],
|
|
@@ -122,6 +123,7 @@ async function $do(
|
|
|
122
123
|
path: path,
|
|
123
124
|
headers: headers,
|
|
124
125
|
body: body,
|
|
126
|
+
userAgent: client._options.userAgent,
|
|
125
127
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
126
128
|
}, options);
|
|
127
129
|
if (!requestRes.ok) {
|
|
@@ -113,6 +113,7 @@ async function $do(
|
|
|
113
113
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
114
|
|
|
115
115
|
const context = {
|
|
116
|
+
options: client._options,
|
|
116
117
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
118
|
operationID: "uniswap_liquidity_provision_in_range",
|
|
118
119
|
oAuth2Scopes: [],
|
|
@@ -134,6 +135,7 @@ async function $do(
|
|
|
134
135
|
headers: headers,
|
|
135
136
|
query: query,
|
|
136
137
|
body: body,
|
|
138
|
+
userAgent: client._options.userAgent,
|
|
137
139
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
138
140
|
}, options);
|
|
139
141
|
if (!requestRes.ok) {
|
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
109
|
|
|
110
110
|
const context = {
|
|
111
|
+
options: client._options,
|
|
111
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
113
|
operationID: "uniswap_liquidity_provision_increase",
|
|
113
114
|
oAuth2Scopes: [],
|
|
@@ -128,6 +129,7 @@ async function $do(
|
|
|
128
129
|
path: path,
|
|
129
130
|
headers: headers,
|
|
130
131
|
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
131
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
134
|
}, options);
|
|
133
135
|
if (!requestRes.ok) {
|
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
109
|
|
|
110
110
|
const context = {
|
|
111
|
+
options: client._options,
|
|
111
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
113
|
operationID: "uniswap_liquidity_provision_mint",
|
|
113
114
|
oAuth2Scopes: [],
|
|
@@ -128,6 +129,7 @@ async function $do(
|
|
|
128
129
|
path: path,
|
|
129
130
|
headers: headers,
|
|
130
131
|
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
131
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
134
|
}, options);
|
|
133
135
|
if (!requestRes.ok) {
|
|
@@ -112,6 +112,7 @@ async function $do(
|
|
|
112
112
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
113
113
|
|
|
114
114
|
const context = {
|
|
115
|
+
options: client._options,
|
|
115
116
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
117
|
operationID: "uniswap_liquidity_provision_positions",
|
|
117
118
|
oAuth2Scopes: [],
|
|
@@ -133,6 +134,7 @@ async function $do(
|
|
|
133
134
|
headers: headers,
|
|
134
135
|
query: query,
|
|
135
136
|
body: body,
|
|
137
|
+
userAgent: client._options.userAgent,
|
|
136
138
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
137
139
|
}, options);
|
|
138
140
|
if (!requestRes.ok) {
|
|
@@ -109,6 +109,7 @@ async function $do(
|
|
|
109
109
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
110
|
|
|
111
111
|
const context = {
|
|
112
|
+
options: client._options,
|
|
112
113
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
114
|
operationID: "uniswap_liquidity_provision_withdraw",
|
|
114
115
|
oAuth2Scopes: [],
|
|
@@ -129,6 +130,7 @@ async function $do(
|
|
|
129
130
|
path: path,
|
|
130
131
|
headers: headers,
|
|
131
132
|
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
132
134
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
135
|
}, options);
|
|
134
136
|
if (!requestRes.ok) {
|
|
@@ -107,6 +107,7 @@ async function $do(
|
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
110
|
+
options: client._options,
|
|
110
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
112
|
operationID: "uniswap_pool_price",
|
|
112
113
|
oAuth2Scopes: [],
|
|
@@ -128,6 +129,7 @@ async function $do(
|
|
|
128
129
|
headers: headers,
|
|
129
130
|
query: query,
|
|
130
131
|
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
131
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
134
|
}, options);
|
|
133
135
|
if (!requestRes.ok) {
|
|
@@ -111,6 +111,7 @@ async function $do(
|
|
|
111
111
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
112
|
|
|
113
113
|
const context = {
|
|
114
|
+
options: client._options,
|
|
114
115
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
116
|
operationID: "uniswap_quote_buy_exactly",
|
|
116
117
|
oAuth2Scopes: [],
|
|
@@ -132,6 +133,7 @@ async function $do(
|
|
|
132
133
|
headers: headers,
|
|
133
134
|
query: query,
|
|
134
135
|
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
135
137
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
138
|
}, options);
|
|
137
139
|
if (!requestRes.ok) {
|
|
@@ -111,6 +111,7 @@ async function $do(
|
|
|
111
111
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
112
|
|
|
113
113
|
const context = {
|
|
114
|
+
options: client._options,
|
|
114
115
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
116
|
operationID: "uniswap_quote_sell_exactly",
|
|
116
117
|
oAuth2Scopes: [],
|
|
@@ -132,6 +133,7 @@ async function $do(
|
|
|
132
133
|
headers: headers,
|
|
133
134
|
query: query,
|
|
134
135
|
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
135
137
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
138
|
}, options);
|
|
137
139
|
if (!requestRes.ok) {
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "uniswap_swap_buy_exactly",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -123,6 +124,7 @@ async function $do(
|
|
|
123
124
|
path: path,
|
|
124
125
|
headers: headers,
|
|
125
126
|
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
126
128
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
129
|
}, options);
|
|
128
130
|
if (!requestRes.ok) {
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "uniswap_swap_sell_exactly",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -123,6 +124,7 @@ async function $do(
|
|
|
123
124
|
path: path,
|
|
124
125
|
headers: headers,
|
|
125
126
|
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
126
128
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
129
|
}, options);
|
|
128
130
|
if (!requestRes.ok) {
|
|
@@ -111,6 +111,7 @@ async function $do(
|
|
|
111
111
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
112
|
|
|
113
113
|
const context = {
|
|
114
|
+
options: client._options,
|
|
114
115
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
116
|
operationID: "generic_allowance",
|
|
116
117
|
oAuth2Scopes: [],
|
|
@@ -132,6 +133,7 @@ async function $do(
|
|
|
132
133
|
headers: headers,
|
|
133
134
|
query: query,
|
|
134
135
|
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
135
137
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
138
|
}, options);
|
|
137
139
|
if (!requestRes.ok) {
|
|
@@ -25,7 +25,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Set Allowance
|
|
28
|
+
* Set Allowance (symbol)
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* This endpoint allows users to modify the token allowance for a specific protocol.
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "generic_allowance_set",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -123,6 +124,7 @@ async function $do(
|
|
|
123
124
|
path: path,
|
|
124
125
|
headers: headers,
|
|
125
126
|
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
126
128
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
129
|
}, options);
|
|
128
130
|
if (!requestRes.ok) {
|
|
@@ -106,6 +106,7 @@ async function $do(
|
|
|
106
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
107
|
|
|
108
108
|
const context = {
|
|
109
|
+
options: client._options,
|
|
109
110
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
111
|
operationID: "generic_ens",
|
|
111
112
|
oAuth2Scopes: [],
|
|
@@ -127,6 +128,7 @@ async function $do(
|
|
|
127
128
|
headers: headers,
|
|
128
129
|
query: query,
|
|
129
130
|
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
130
132
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
133
|
}, options);
|
|
132
134
|
if (!requestRes.ok) {
|
|
@@ -106,6 +106,7 @@ async function $do(
|
|
|
106
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
107
|
|
|
108
108
|
const context = {
|
|
109
|
+
options: client._options,
|
|
109
110
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
111
|
operationID: "generic_portfolio",
|
|
111
112
|
oAuth2Scopes: [],
|
|
@@ -127,6 +128,7 @@ async function $do(
|
|
|
127
128
|
headers: headers,
|
|
128
129
|
query: query,
|
|
129
130
|
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
130
132
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
133
|
}, options);
|
|
132
134
|
if (!requestRes.ok) {
|
|
@@ -103,6 +103,7 @@ async function $do(
|
|
|
103
103
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
104
|
|
|
105
105
|
const context = {
|
|
106
|
+
options: client._options,
|
|
106
107
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
108
|
operationID: "generic_supported_tokens",
|
|
108
109
|
oAuth2Scopes: [],
|
|
@@ -124,6 +125,7 @@ async function $do(
|
|
|
124
125
|
headers: headers,
|
|
125
126
|
query: query,
|
|
126
127
|
body: body,
|
|
128
|
+
userAgent: client._options.userAgent,
|
|
127
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
130
|
}, options);
|
|
129
131
|
if (!requestRes.ok) {
|
|
@@ -98,6 +98,7 @@ async function $do(
|
|
|
98
98
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
99
|
|
|
100
100
|
const context = {
|
|
101
|
+
options: client._options,
|
|
101
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
103
|
operationID: "generic_unwrap_weth",
|
|
103
104
|
oAuth2Scopes: [],
|
|
@@ -118,6 +119,7 @@ async function $do(
|
|
|
118
119
|
path: path,
|
|
119
120
|
headers: headers,
|
|
120
121
|
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
121
123
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
122
124
|
}, options);
|
|
123
125
|
if (!requestRes.ok) {
|
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
109
|
|
|
110
110
|
const context = {
|
|
111
|
+
options: client._options,
|
|
111
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
113
|
operationID: "generic_visualize_portfolio",
|
|
113
114
|
oAuth2Scopes: [],
|
|
@@ -129,6 +130,7 @@ async function $do(
|
|
|
129
130
|
headers: headers,
|
|
130
131
|
query: query,
|
|
131
132
|
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
132
134
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
135
|
}, options);
|
|
134
136
|
if (!requestRes.ok) {
|
|
@@ -98,6 +98,7 @@ async function $do(
|
|
|
98
98
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
99
|
|
|
100
100
|
const context = {
|
|
101
|
+
options: client._options,
|
|
101
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
103
|
operationID: "generic_wrap_eth",
|
|
103
104
|
oAuth2Scopes: [],
|
|
@@ -118,6 +119,7 @@ async function $do(
|
|
|
118
119
|
path: path,
|
|
119
120
|
headers: headers,
|
|
120
121
|
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
121
123
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
122
124
|
}, options);
|
|
123
125
|
if (!requestRes.ok) {
|
package/src/hooks/types.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { SDKOptions } from "../lib/config.js";
|
|
5
6
|
import { HTTPClient, RequestInput } from "../lib/http.js";
|
|
6
7
|
import { RetryConfig } from "../lib/retries.js";
|
|
7
8
|
import { SecurityState } from "../lib/security.js";
|
|
@@ -13,6 +14,7 @@ export type HookContext = {
|
|
|
13
14
|
securitySource?: any | (() => Promise<any>);
|
|
14
15
|
retryConfig: RetryConfig;
|
|
15
16
|
resolvedSecurity: SecurityState | null;
|
|
17
|
+
options: SDKOptions;
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
export type Awaitable<T> = T | Promise<T>;
|
package/src/lib/config.ts
CHANGED
|
@@ -29,6 +29,10 @@ export type SDKOptions = {
|
|
|
29
29
|
* Allows overriding the default server URL used by the SDK
|
|
30
30
|
*/
|
|
31
31
|
serverURL?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Allows overriding the default user agent used by the SDK
|
|
34
|
+
*/
|
|
35
|
+
userAgent?: string | undefined;
|
|
32
36
|
/**
|
|
33
37
|
* Allows overriding the default retry config used by the SDK
|
|
34
38
|
*/
|
|
@@ -57,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
61
|
export const SDK_METADATA = {
|
|
58
62
|
language: "typescript",
|
|
59
63
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.
|
|
61
|
-
genVersion: "2.
|
|
64
|
+
sdkVersion: "0.3.0",
|
|
65
|
+
genVersion: "2.616.1",
|
|
62
66
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.
|
|
67
|
+
"speakeasy-sdk/typescript 0.3.0 2.616.1 0.0.1 @compass-labs/api-sdk",
|
|
64
68
|
} as const;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -64,6 +64,7 @@ type RequestConfig = {
|
|
|
64
64
|
headers?: HeadersInit;
|
|
65
65
|
security?: SecurityState | null;
|
|
66
66
|
uaHeader?: string;
|
|
67
|
+
userAgent?: string | undefined;
|
|
67
68
|
timeoutMs?: number;
|
|
68
69
|
};
|
|
69
70
|
|
|
@@ -95,19 +96,21 @@ export class ClientSDK {
|
|
|
95
96
|
} else {
|
|
96
97
|
this.#hooks = new SDKHooks();
|
|
97
98
|
}
|
|
98
|
-
this._options = { ...options, hooks: this.#hooks };
|
|
99
|
-
|
|
100
99
|
const url = serverURLFromOptions(options);
|
|
101
100
|
if (url) {
|
|
102
101
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
103
102
|
}
|
|
103
|
+
|
|
104
104
|
const { baseURL, client } = this.#hooks.sdkInit({
|
|
105
105
|
baseURL: url,
|
|
106
106
|
client: options.httpClient || new HTTPClient(),
|
|
107
107
|
});
|
|
108
108
|
this._baseURL = baseURL;
|
|
109
109
|
this.#httpClient = client;
|
|
110
|
-
|
|
110
|
+
|
|
111
|
+
this._options = { ...options, hooks: this.#hooks };
|
|
112
|
+
|
|
113
|
+
this.#logger = this._options.debugLogger;
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
public _createRequest(
|
|
@@ -180,7 +183,10 @@ export class ClientSDK {
|
|
|
180
183
|
// Only set user agent header in non-browser-like environments since CORS
|
|
181
184
|
// policy disallows setting it in browsers e.g. Chrome throws an error.
|
|
182
185
|
if (!isBrowserLike) {
|
|
183
|
-
headers.set(
|
|
186
|
+
headers.set(
|
|
187
|
+
conf.uaHeader ?? "user-agent",
|
|
188
|
+
conf.userAgent ?? SDK_METADATA.userAgent,
|
|
189
|
+
);
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
const fetchOptions: Omit<RequestInit, "method" | "body"> = {
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$universalAllowanceSet: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "universal-allowance-set",
|
|
15
|
-
description: `Set Allowance
|
|
15
|
+
description: `Set Allowance (symbol)
|
|
16
16
|
|
|
17
17
|
This endpoint allows users to modify the token allowance for a specific protocol.
|
|
18
18
|
|