@compass-labs/api-sdk 0.5.19 → 0.5.21
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 +57 -57
- package/bin/mcp-server.js +286 -284
- package/bin/mcp-server.js.map +72 -72
- package/dist/commonjs/funcs/aaveV3AvgRate.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3AvgRate.js +1 -1
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js +1 -1
- package/dist/commonjs/funcs/aaveV3LiquidityChange.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3LiquidityChange.js +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js +1 -1
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3StdRate.js +1 -1
- package/dist/commonjs/funcs/aaveV3TokenPrice.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3TokenPrice.js +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionPerToken.js +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3UserPositionSummary.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/commonjs/funcs/tokenTransfer.d.ts +1 -1
- package/dist/commonjs/funcs/tokenTransfer.js +1 -1
- package/dist/commonjs/funcs/{transactionBatchingAaveLoop.d.ts → transactionBundlerBundlerAaveLoop.d.ts} +3 -3
- package/dist/commonjs/funcs/transactionBundlerBundlerAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/funcs/{transactionBatchingAaveLoop.js → transactionBundlerBundlerAaveLoop.js} +6 -6
- package/dist/commonjs/funcs/transactionBundlerBundlerAaveLoop.js.map +1 -0
- package/dist/{esm/funcs/transactionBatchingAuthorization.d.ts → commonjs/funcs/transactionBundlerBundlerAuthorization.d.ts} +3 -3
- package/dist/commonjs/funcs/transactionBundlerBundlerAuthorization.d.ts.map +1 -0
- package/dist/commonjs/funcs/{transactionBatchingAuthorization.js → transactionBundlerBundlerAuthorization.js} +6 -6
- package/dist/commonjs/funcs/transactionBundlerBundlerAuthorization.js.map +1 -0
- package/dist/commonjs/funcs/{transactionBatchingExecute.d.ts → transactionBundlerBundlerExecute.d.ts} +2 -2
- package/dist/commonjs/funcs/transactionBundlerBundlerExecute.d.ts.map +1 -0
- package/dist/commonjs/funcs/{transactionBatchingExecute.js → transactionBundlerBundlerExecute.js} +5 -5
- package/dist/commonjs/funcs/transactionBundlerBundlerExecute.js.map +1 -0
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionInRange.js +1 -1
- package/dist/commonjs/funcs/uniswapV3PoolPrice.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3PoolPrice.js +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteBuyExactly.js +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3QuoteSellExactly.js +1 -1
- package/dist/commonjs/funcs/universalAllowance.d.ts +1 -1
- package/dist/commonjs/funcs/universalAllowance.js +1 -1
- package/dist/commonjs/funcs/universalPortfolio.d.ts +1 -1
- package/dist/commonjs/funcs/universalPortfolio.js +1 -1
- package/dist/commonjs/funcs/universalSupportedTokens.d.ts +1 -1
- package/dist/commonjs/funcs/universalSupportedTokens.js +1 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts +1 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3LiquidityChange.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Repay.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3TokenPrice.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3UserPositionPerToken.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3UserPositionSummary.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/commonjs/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/commonjs/mcp-server/tools/tokenTransfer.js +1 -1
- package/dist/commonjs/mcp-server/tools/{transactionBatchingAaveLoop.d.ts → transactionBundlerBundlerAaveLoop.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/transactionBundlerBundlerAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{transactionBatchingAaveLoop.js → transactionBundlerBundlerAaveLoop.js} +7 -7
- package/dist/commonjs/mcp-server/tools/transactionBundlerBundlerAaveLoop.js.map +1 -0
- package/dist/{esm/mcp-server/tools/transactionBatchingAuthorization.d.ts → commonjs/mcp-server/tools/transactionBundlerBundlerAuthorization.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/transactionBundlerBundlerAuthorization.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{transactionBatchingAuthorization.js → transactionBundlerBundlerAuthorization.js} +7 -7
- package/dist/commonjs/mcp-server/tools/transactionBundlerBundlerAuthorization.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/{transactionBatchingExecute.d.ts → transactionBundlerBundlerExecute.d.ts} +2 -2
- package/dist/commonjs/mcp-server/tools/{transactionBatchingAuthorization.d.ts.map → transactionBundlerBundlerExecute.d.ts.map} +1 -1
- package/dist/commonjs/mcp-server/tools/{transactionBatchingExecute.js → transactionBundlerBundlerExecute.js} +6 -6
- package/dist/commonjs/mcp-server/tools/{transactionBatchingAuthorization.js.map → transactionBundlerBundlerExecute.js.map} +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3LiquidityProvisionInRange.js +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3PoolPrice.js +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3QuoteBuyExactly.js +1 -1
- package/dist/commonjs/mcp-server/tools/uniswapV3QuoteSellExactly.js +1 -1
- package/dist/commonjs/mcp-server/tools/universalAllowance.js +1 -1
- package/dist/commonjs/mcp-server/tools/universalPortfolio.js +1 -1
- package/dist/commonjs/mcp-server/tools/universalSupportedTokens.js +1 -1
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js +1 -1
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts +28 -28
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js +28 -28
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts +5 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js +2 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js.map +1 -1
- package/dist/commonjs/models/components/borrow.js +1 -1
- package/dist/commonjs/models/components/borrow.js.map +1 -1
- package/dist/commonjs/models/components/liquidationcall.js +1 -1
- package/dist/commonjs/models/components/liquidationcall.js.map +1 -1
- package/dist/commonjs/models/components/repay.js +1 -1
- package/dist/commonjs/models/components/repay.js.map +1 -1
- package/dist/commonjs/models/components/supply.js +1 -1
- package/dist/commonjs/models/components/supply.js.map +1 -1
- package/dist/commonjs/models/components/swapborrowrate.js +1 -1
- package/dist/commonjs/models/components/swapborrowrate.js.map +1 -1
- package/dist/commonjs/models/components/txresponse.d.ts +2 -2
- package/dist/commonjs/models/components/txresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/txresponse.js +4 -4
- package/dist/commonjs/models/components/txresponse.js.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.d.ts.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.js +2 -1
- package/dist/commonjs/models/components/usageascollateral.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +184 -184
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +184 -184
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +9 -9
- package/dist/commonjs/sdk/aavev3.js +9 -9
- package/dist/commonjs/sdk/aerodromeslipstream.d.ts +7 -7
- package/dist/commonjs/sdk/aerodromeslipstream.js +7 -7
- package/dist/commonjs/sdk/sdk.d.ts +3 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +3 -3
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/token.d.ts +1 -1
- package/dist/commonjs/sdk/token.js +1 -1
- package/dist/{esm/sdk/transactionbatching.d.ts → commonjs/sdk/transactionbundler.d.ts} +7 -7
- package/dist/commonjs/sdk/transactionbundler.d.ts.map +1 -0
- package/dist/commonjs/sdk/{transactionbatching.js → transactionbundler.js} +15 -15
- package/dist/commonjs/sdk/transactionbundler.js.map +1 -0
- package/dist/commonjs/sdk/uniswapv3.d.ts +4 -4
- package/dist/commonjs/sdk/uniswapv3.js +4 -4
- package/dist/commonjs/sdk/universal.d.ts +4 -4
- package/dist/commonjs/sdk/universal.js +4 -4
- package/dist/commonjs/types/constdatetime.js +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.d.ts +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.js +1 -1
- package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts +1 -1
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js +1 -1
- package/dist/esm/funcs/aaveV3LiquidityChange.d.ts +1 -1
- package/dist/esm/funcs/aaveV3LiquidityChange.js +1 -1
- package/dist/esm/funcs/aaveV3Repay.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Repay.js +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.js +1 -1
- package/dist/esm/funcs/aaveV3StdRate.d.ts +1 -1
- package/dist/esm/funcs/aaveV3StdRate.js +1 -1
- package/dist/esm/funcs/aaveV3TokenPrice.d.ts +1 -1
- package/dist/esm/funcs/aaveV3TokenPrice.js +1 -1
- package/dist/esm/funcs/aaveV3UserPositionPerToken.d.ts +1 -1
- package/dist/esm/funcs/aaveV3UserPositionPerToken.js +1 -1
- package/dist/esm/funcs/aaveV3UserPositionSummary.d.ts +1 -1
- package/dist/esm/funcs/aaveV3UserPositionSummary.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamPoolPrice.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/esm/funcs/tokenTransfer.d.ts +1 -1
- package/dist/esm/funcs/tokenTransfer.js +1 -1
- package/dist/esm/funcs/{transactionBatchingAaveLoop.d.ts → transactionBundlerBundlerAaveLoop.d.ts} +3 -3
- package/dist/esm/funcs/transactionBundlerBundlerAaveLoop.d.ts.map +1 -0
- package/dist/esm/funcs/{transactionBatchingAaveLoop.js → transactionBundlerBundlerAaveLoop.js} +5 -5
- package/dist/esm/funcs/transactionBundlerBundlerAaveLoop.js.map +1 -0
- package/dist/{commonjs/funcs/transactionBatchingAuthorization.d.ts → esm/funcs/transactionBundlerBundlerAuthorization.d.ts} +3 -3
- package/dist/esm/funcs/transactionBundlerBundlerAuthorization.d.ts.map +1 -0
- package/dist/esm/funcs/{transactionBatchingAuthorization.js → transactionBundlerBundlerAuthorization.js} +5 -5
- package/dist/esm/funcs/transactionBundlerBundlerAuthorization.js.map +1 -0
- package/dist/esm/funcs/{transactionBatchingExecute.d.ts → transactionBundlerBundlerExecute.d.ts} +2 -2
- package/dist/esm/funcs/transactionBundlerBundlerExecute.d.ts.map +1 -0
- package/dist/esm/funcs/{transactionBatchingExecute.js → transactionBundlerBundlerExecute.js} +4 -4
- package/dist/esm/funcs/transactionBundlerBundlerExecute.js.map +1 -0
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionInRange.js +1 -1
- package/dist/esm/funcs/uniswapV3PoolPrice.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3PoolPrice.js +1 -1
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3QuoteBuyExactly.js +1 -1
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3QuoteSellExactly.js +1 -1
- package/dist/esm/funcs/universalAllowance.d.ts +1 -1
- package/dist/esm/funcs/universalAllowance.js +1 -1
- package/dist/esm/funcs/universalPortfolio.d.ts +1 -1
- package/dist/esm/funcs/universalPortfolio.js +1 -1
- package/dist/esm/funcs/universalSupportedTokens.d.ts +1 -1
- package/dist/esm/funcs/universalSupportedTokens.js +1 -1
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts +1 -1
- package/dist/esm/funcs/universalVisualizePortfolio.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +7 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3LiquidityChange.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Repay.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3TokenPrice.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3UserPositionPerToken.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3UserPositionSummary.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/esm/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/esm/mcp-server/tools/tokenTransfer.js +1 -1
- package/dist/esm/mcp-server/tools/{transactionBatchingAaveLoop.d.ts → transactionBundlerBundlerAaveLoop.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/transactionBundlerBundlerAaveLoop.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{transactionBatchingAaveLoop.js → transactionBundlerBundlerAaveLoop.js} +6 -6
- package/dist/esm/mcp-server/tools/transactionBundlerBundlerAaveLoop.js.map +1 -0
- package/dist/{commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts → esm/mcp-server/tools/transactionBundlerBundlerAuthorization.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/transactionBundlerBundlerAuthorization.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/{transactionBatchingAuthorization.js → transactionBundlerBundlerAuthorization.js} +6 -6
- package/dist/esm/mcp-server/tools/transactionBundlerBundlerAuthorization.js.map +1 -0
- package/dist/esm/mcp-server/tools/{transactionBatchingExecute.d.ts → transactionBundlerBundlerExecute.d.ts} +2 -2
- package/dist/esm/mcp-server/tools/{transactionBatchingAuthorization.d.ts.map → transactionBundlerBundlerExecute.d.ts.map} +1 -1
- package/dist/esm/mcp-server/tools/{transactionBatchingExecute.js → transactionBundlerBundlerExecute.js} +5 -5
- package/dist/esm/mcp-server/tools/{transactionBatchingAuthorization.js.map → transactionBundlerBundlerExecute.js.map} +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3LiquidityProvisionInRange.js +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3PoolPrice.js +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3QuoteBuyExactly.js +1 -1
- package/dist/esm/mcp-server/tools/uniswapV3QuoteSellExactly.js +1 -1
- package/dist/esm/mcp-server/tools/universalAllowance.js +1 -1
- package/dist/esm/mcp-server/tools/universalPortfolio.js +1 -1
- package/dist/esm/mcp-server/tools/universalSupportedTokens.js +1 -1
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js +1 -1
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts +28 -28
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js +28 -28
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts +5 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/batcheduseroperationsrequest.js +2 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.js.map +1 -1
- package/dist/esm/models/components/borrow.js +1 -1
- package/dist/esm/models/components/borrow.js.map +1 -1
- package/dist/esm/models/components/liquidationcall.js +1 -1
- package/dist/esm/models/components/liquidationcall.js.map +1 -1
- package/dist/esm/models/components/repay.js +1 -1
- package/dist/esm/models/components/repay.js.map +1 -1
- package/dist/esm/models/components/supply.js +1 -1
- package/dist/esm/models/components/supply.js.map +1 -1
- package/dist/esm/models/components/swapborrowrate.js +1 -1
- package/dist/esm/models/components/swapborrowrate.js.map +1 -1
- package/dist/esm/models/components/txresponse.d.ts +2 -2
- package/dist/esm/models/components/txresponse.d.ts.map +1 -1
- package/dist/esm/models/components/txresponse.js +4 -4
- package/dist/esm/models/components/txresponse.js.map +1 -1
- package/dist/esm/models/components/usageascollateral.d.ts.map +1 -1
- package/dist/esm/models/components/usageascollateral.js +2 -1
- package/dist/esm/models/components/usageascollateral.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +184 -184
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +184 -184
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +9 -9
- package/dist/esm/sdk/aavev3.js +9 -9
- package/dist/esm/sdk/aerodromeslipstream.d.ts +7 -7
- package/dist/esm/sdk/aerodromeslipstream.js +7 -7
- package/dist/esm/sdk/sdk.d.ts +3 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +3 -3
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/token.d.ts +1 -1
- package/dist/esm/sdk/token.js +1 -1
- package/dist/{commonjs/sdk/transactionbatching.d.ts → esm/sdk/transactionbundler.d.ts} +7 -7
- package/dist/esm/sdk/transactionbundler.d.ts.map +1 -0
- package/dist/esm/sdk/{transactionbatching.js → transactionbundler.js} +13 -13
- package/dist/esm/sdk/transactionbundler.js.map +1 -0
- package/dist/esm/sdk/uniswapv3.d.ts +4 -4
- package/dist/esm/sdk/uniswapv3.js +4 -4
- package/dist/esm/sdk/universal.d.ts +4 -4
- package/dist/esm/sdk/universal.js +4 -4
- package/dist/esm/types/constdatetime.js +1 -1
- package/docs/sdks/aavev3/README.md +9 -9
- package/docs/sdks/aerodromeslipstream/README.md +7 -7
- package/docs/sdks/smartaccount/README.md +2 -0
- package/docs/sdks/token/README.md +1 -1
- package/docs/sdks/{transactionbatching → transactionbundler}/README.md +28 -28
- package/docs/sdks/uniswapv3/README.md +4 -4
- package/docs/sdks/universal/README.md +4 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AvgRate.ts +1 -1
- package/src/funcs/aaveV3HistoricalTransactions.ts +1 -1
- package/src/funcs/aaveV3LiquidityChange.ts +1 -1
- package/src/funcs/aaveV3Repay.ts +1 -1
- package/src/funcs/aaveV3ReserveOverview.ts +1 -1
- package/src/funcs/aaveV3StdRate.ts +1 -1
- package/src/funcs/aaveV3TokenPrice.ts +1 -1
- package/src/funcs/aaveV3UserPositionPerToken.ts +1 -1
- package/src/funcs/aaveV3UserPositionSummary.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +1 -1
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +1 -1
- package/src/funcs/tokenTransfer.ts +1 -1
- package/src/funcs/{transactionBatchingAaveLoop.ts → transactionBundlerBundlerAaveLoop.ts} +4 -4
- package/src/funcs/{transactionBatchingAuthorization.ts → transactionBundlerBundlerAuthorization.ts} +4 -4
- package/src/funcs/{transactionBatchingExecute.ts → transactionBundlerBundlerExecute.ts} +3 -3
- package/src/funcs/uniswapV3LiquidityProvisionInRange.ts +1 -1
- package/src/funcs/uniswapV3PoolPrice.ts +1 -1
- package/src/funcs/uniswapV3QuoteBuyExactly.ts +1 -1
- package/src/funcs/uniswapV3QuoteSellExactly.ts +1 -1
- package/src/funcs/universalAllowance.ts +1 -1
- package/src/funcs/universalPortfolio.ts +1 -1
- package/src/funcs/universalSupportedTokens.ts +1 -1
- package/src/funcs/universalVisualizePortfolio.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -7
- package/src/mcp-server/tools/aaveV3AvgRate.ts +1 -1
- package/src/mcp-server/tools/aaveV3HistoricalTransactions.ts +1 -1
- package/src/mcp-server/tools/aaveV3LiquidityChange.ts +1 -1
- package/src/mcp-server/tools/aaveV3Repay.ts +1 -1
- package/src/mcp-server/tools/aaveV3ReserveOverview.ts +1 -1
- package/src/mcp-server/tools/aaveV3StdRate.ts +1 -1
- package/src/mcp-server/tools/aaveV3TokenPrice.ts +1 -1
- package/src/mcp-server/tools/aaveV3UserPositionPerToken.ts +1 -1
- package/src/mcp-server/tools/aaveV3UserPositionSummary.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +1 -1
- package/src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +1 -1
- package/src/mcp-server/tools/tokenTransfer.ts +1 -1
- package/src/mcp-server/tools/{transactionBatchingAaveLoop.ts → transactionBundlerBundlerAaveLoop.ts} +7 -5
- package/src/mcp-server/tools/{transactionBatchingAuthorization.ts → transactionBundlerBundlerAuthorization.ts} +5 -5
- package/src/mcp-server/tools/{transactionBatchingExecute.ts → transactionBundlerBundlerExecute.ts} +6 -4
- package/src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts +1 -1
- package/src/mcp-server/tools/uniswapV3PoolPrice.ts +1 -1
- package/src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts +1 -1
- package/src/mcp-server/tools/uniswapV3QuoteSellExactly.ts +1 -1
- package/src/mcp-server/tools/universalAllowance.ts +1 -1
- package/src/mcp-server/tools/universalPortfolio.ts +1 -1
- package/src/mcp-server/tools/universalSupportedTokens.ts +1 -1
- package/src/mcp-server/tools/universalVisualizePortfolio.ts +1 -1
- package/src/models/components/aavehistoricaltransactionsresponse.ts +70 -70
- package/src/models/components/batcheduseroperationsrequest.ts +7 -0
- package/src/models/components/borrow.ts +1 -1
- package/src/models/components/liquidationcall.ts +1 -1
- package/src/models/components/repay.ts +1 -1
- package/src/models/components/supply.ts +1 -1
- package/src/models/components/swapborrowrate.ts +1 -1
- package/src/models/components/txresponse.ts +8 -8
- package/src/models/components/usageascollateral.ts +2 -1
- package/src/models/components/useroperation.ts +485 -485
- package/src/sdk/aavev3.ts +9 -9
- package/src/sdk/aerodromeslipstream.ts +7 -7
- package/src/sdk/sdk.ts +4 -6
- package/src/sdk/token.ts +1 -1
- package/src/sdk/{transactionbatching.ts → transactionbundler.ts} +12 -12
- package/src/sdk/uniswapv3.ts +4 -4
- package/src/sdk/universal.ts +4 -4
- package/src/types/constdatetime.ts +1 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +0 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +0 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +0 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +0 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +0 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +0 -1
- package/dist/commonjs/sdk/transactionbatching.d.ts.map +0 -1
- package/dist/commonjs/sdk/transactionbatching.js.map +0 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +0 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +0 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +0 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.js.map +0 -1
- package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +0 -1
- package/dist/esm/funcs/transactionBatchingExecute.js.map +0 -1
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +0 -1
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +0 -1
- package/dist/esm/sdk/transactionbatching.d.ts.map +0 -1
- package/dist/esm/sdk/transactionbatching.js.map +0 -1
|
@@ -3,7 +3,7 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class UniswapV3 extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
* Get
|
|
6
|
+
* Get Quote - to Specified Amount
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
* This endpoint calculates the amount of input tokens required to purchase a
|
|
@@ -14,7 +14,7 @@ export declare class UniswapV3 extends ClientSDK {
|
|
|
14
14
|
*/
|
|
15
15
|
quoteBuyExactly(request: operations.UniswapQuoteBuyExactlyRequest, options?: RequestOptions): Promise<components.UniswapBuyQuoteInfoResponse>;
|
|
16
16
|
/**
|
|
17
|
-
* Get quote -
|
|
17
|
+
* Get quote - From Specified Amount
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
20
|
* This endpoint calculates the amount of input tokens required to purchase a
|
|
@@ -25,7 +25,7 @@ export declare class UniswapV3 extends ClientSDK {
|
|
|
25
25
|
*/
|
|
26
26
|
quoteSellExactly(request: operations.UniswapQuoteSellExactlyRequest, options?: RequestOptions): Promise<components.UniswapSellQuoteInfoResponse>;
|
|
27
27
|
/**
|
|
28
|
-
* Pool
|
|
28
|
+
* Pool Price
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* This endpoint calculates the price of a token in a Uniswap pool.
|
|
@@ -34,7 +34,7 @@ export declare class UniswapV3 extends ClientSDK {
|
|
|
34
34
|
*/
|
|
35
35
|
poolPrice(request: operations.UniswapPoolPriceRequest, options?: RequestOptions): Promise<components.UniswapPoolPriceResponse>;
|
|
36
36
|
/**
|
|
37
|
-
* Check if LP is
|
|
37
|
+
* Check if LP is Active.
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
40
|
* This endpoint allows users to check whether a specific liquidity provider ()
|
|
@@ -15,7 +15,7 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
15
15
|
import { unwrapAsync } from "../types/fp.js";
|
|
16
16
|
export class UniswapV3 extends ClientSDK {
|
|
17
17
|
/**
|
|
18
|
-
* Get
|
|
18
|
+
* Get Quote - to Specified Amount
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
* This endpoint calculates the amount of input tokens required to purchase a
|
|
@@ -28,7 +28,7 @@ export class UniswapV3 extends ClientSDK {
|
|
|
28
28
|
return unwrapAsync(uniswapV3QuoteBuyExactly(this, request, options));
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Get quote -
|
|
31
|
+
* Get quote - From Specified Amount
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
34
|
* This endpoint calculates the amount of input tokens required to purchase a
|
|
@@ -41,7 +41,7 @@ export class UniswapV3 extends ClientSDK {
|
|
|
41
41
|
return unwrapAsync(uniswapV3QuoteSellExactly(this, request, options));
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Pool
|
|
44
|
+
* Pool Price
|
|
45
45
|
*
|
|
46
46
|
* @remarks
|
|
47
47
|
* This endpoint calculates the price of a token in a Uniswap pool.
|
|
@@ -52,7 +52,7 @@ export class UniswapV3 extends ClientSDK {
|
|
|
52
52
|
return unwrapAsync(uniswapV3PoolPrice(this, request, options));
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Check if LP is
|
|
55
|
+
* Check if LP is Active.
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
58
|
* This endpoint allows users to check whether a specific liquidity provider ()
|
|
@@ -3,7 +3,7 @@ import * as components from "../models/components/index.js";
|
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
4
|
export declare class Universal extends ClientSDK {
|
|
5
5
|
/**
|
|
6
|
-
* List
|
|
6
|
+
* List User Portfolio
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
* Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
@@ -13,7 +13,7 @@ export declare class Universal extends ClientSDK {
|
|
|
13
13
|
*/
|
|
14
14
|
portfolio(request: operations.GenericPortfolioRequest, options?: RequestOptions): Promise<components.Portfolio>;
|
|
15
15
|
/**
|
|
16
|
-
* Visualize
|
|
16
|
+
* Visualize User Portfolio
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
19
|
* Generate a visual representation of the token portfolio for a wallet address.
|
|
@@ -24,14 +24,14 @@ export declare class Universal extends ClientSDK {
|
|
|
24
24
|
*/
|
|
25
25
|
visualizePortfolio(request: operations.GenericVisualizePortfolioRequest, options?: RequestOptions): Promise<components.Image>;
|
|
26
26
|
/**
|
|
27
|
-
* List
|
|
27
|
+
* List Supported Tokens
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
30
|
* Get the list of supported tokens on a chain by the Compass API.
|
|
31
31
|
*/
|
|
32
32
|
supportedTokens(request: operations.GenericSupportedTokensRequest, options?: RequestOptions): Promise<components.TokenInfo>;
|
|
33
33
|
/**
|
|
34
|
-
* Get
|
|
34
|
+
* Get Allowance
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
37
|
* In decentralized finance (DeFi) protocols such as Uniswap or AAVE, users must set
|
|
@@ -13,7 +13,7 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
13
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
14
|
export class Universal extends ClientSDK {
|
|
15
15
|
/**
|
|
16
|
-
* List
|
|
16
|
+
* List User Portfolio
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
19
|
* Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
@@ -25,7 +25,7 @@ export class Universal extends ClientSDK {
|
|
|
25
25
|
return unwrapAsync(universalPortfolio(this, request, options));
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Visualize
|
|
28
|
+
* Visualize User Portfolio
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* Generate a visual representation of the token portfolio for a wallet address.
|
|
@@ -38,7 +38,7 @@ export class Universal extends ClientSDK {
|
|
|
38
38
|
return unwrapAsync(universalVisualizePortfolio(this, request, options));
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* List
|
|
41
|
+
* List Supported Tokens
|
|
42
42
|
*
|
|
43
43
|
* @remarks
|
|
44
44
|
* Get the list of supported tokens on a chain by the Compass API.
|
|
@@ -47,7 +47,7 @@ export class Universal extends ClientSDK {
|
|
|
47
47
|
return unwrapAsync(universalSupportedTokens(this, request, options));
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* Get
|
|
50
|
+
* Get Allowance
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* In decentralized finance (DeFi) protocols such as Uniswap or AAVE, users must set
|
|
@@ -5,6 +5,6 @@ import * as z from "zod";
|
|
|
5
5
|
export function constDateTime(val) {
|
|
6
6
|
return z.custom((v) => {
|
|
7
7
|
return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
|
|
8
|
-
}, `Value must be
|
|
8
|
+
}, `Value must be equivalent to ${val}`);
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=constdatetime.js.map
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
8
|
* [rate](#rate) - Interest Rates
|
|
9
|
-
* [avgRate](#avgrate) - Interest Rates:
|
|
10
|
-
* [stdRate](#stdrate) - Interest Rates:
|
|
11
|
-
* [reserveOverview](#reserveoverview) - Reserve
|
|
12
|
-
* [tokenPrice](#tokenprice) - Token
|
|
13
|
-
* [liquidityChange](#liquiditychange) - Liquidity
|
|
14
|
-
* [userPositionSummary](#userpositionsummary) - Positions -
|
|
15
|
-
* [userPositionPerToken](#userpositionpertoken) - Positions - per
|
|
16
|
-
* [historicalTransactions](#historicaltransactions) - Historical
|
|
9
|
+
* [avgRate](#avgrate) - Interest Rates: Time Average
|
|
10
|
+
* [stdRate](#stdrate) - Interest Rates: Standard Deviation
|
|
11
|
+
* [reserveOverview](#reserveoverview) - Reserve Overview
|
|
12
|
+
* [tokenPrice](#tokenprice) - Token Prices
|
|
13
|
+
* [liquidityChange](#liquiditychange) - Liquidity Index
|
|
14
|
+
* [userPositionSummary](#userpositionsummary) - Positions - Total
|
|
15
|
+
* [userPositionPerToken](#userpositionpertoken) - Positions - per Token
|
|
16
|
+
* [historicalTransactions](#historicaltransactions) - Historical Transactions
|
|
17
17
|
* [supply](#supply) - Supply/Lend
|
|
18
18
|
* [borrow](#borrow) - Borrow
|
|
19
|
-
* [repay](#repay) - Repay
|
|
19
|
+
* [repay](#repay) - Repay Loans
|
|
20
20
|
* [withdraw](#withdraw) - Unstake
|
|
21
21
|
|
|
22
22
|
## rate
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [slipstreamLiquidityProvisionPositions](#slipstreamliquidityprovisionpositions) - List LP
|
|
9
|
-
* [slipstreamPoolPrice](#slipstreampoolprice) - Pool
|
|
10
|
-
* [slipstreamSwapSellExactly](#slipstreamswapsellexactly) - Swap - from
|
|
11
|
-
* [slipstreamSwapBuyExactly](#slipstreamswapbuyexactly) - Swap - into
|
|
12
|
-
* [slipstreamLiquidityProvisionMint](#slipstreamliquidityprovisionmint) - Open a
|
|
13
|
-
* [slipstreamLiquidityProvisionIncrease](#slipstreamliquidityprovisionincrease) - Increase an LP
|
|
14
|
-
* [slipstreamLiquidityProvisionWithdraw](#slipstreamliquidityprovisionwithdraw) - Withdraw an LP
|
|
8
|
+
* [slipstreamLiquidityProvisionPositions](#slipstreamliquidityprovisionpositions) - List LP Positions
|
|
9
|
+
* [slipstreamPoolPrice](#slipstreampoolprice) - Pool Price
|
|
10
|
+
* [slipstreamSwapSellExactly](#slipstreamswapsellexactly) - Swap - from Specified Amount
|
|
11
|
+
* [slipstreamSwapBuyExactly](#slipstreamswapbuyexactly) - Swap - into Specified Amount
|
|
12
|
+
* [slipstreamLiquidityProvisionMint](#slipstreamliquidityprovisionmint) - Open a New LP Position
|
|
13
|
+
* [slipstreamLiquidityProvisionIncrease](#slipstreamliquidityprovisionincrease) - Increase an LP Position
|
|
14
|
+
* [slipstreamLiquidityProvisionWithdraw](#slipstreamliquidityprovisionwithdraw) - Withdraw an LP Position
|
|
15
15
|
|
|
16
16
|
## slipstreamLiquidityProvisionPositions
|
|
17
17
|
|
|
@@ -23,6 +23,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
23
23
|
async function run() {
|
|
24
24
|
const result = await compassApiSDK.smartAccount.accountBatchedUserOperations({
|
|
25
25
|
chain: "base:mainnet",
|
|
26
|
+
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
26
27
|
operations: [
|
|
27
28
|
{
|
|
28
29
|
body: {
|
|
@@ -57,6 +58,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
57
58
|
async function run() {
|
|
58
59
|
const res = await smartAccountAccountBatchedUserOperations(compassApiSDK, {
|
|
59
60
|
chain: "base:mainnet",
|
|
61
|
+
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
60
62
|
operations: [
|
|
61
63
|
{
|
|
62
64
|
body: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#
|
|
2
|
-
(*
|
|
1
|
+
# TransactionBundler
|
|
2
|
+
(*transactionBundler*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
9
|
-
* [
|
|
10
|
-
* [
|
|
8
|
+
* [bundlerAuthorization](#bundlerauthorization) - Enable Transaction Bundling
|
|
9
|
+
* [bundlerExecute](#bundlerexecute) - Construct Bundled Transaction
|
|
10
|
+
* [bundlerAaveLoop](#bundleraaveloop) - AAVE Leverage Long/Short
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## bundlerAuthorization
|
|
13
13
|
|
|
14
14
|
Get authorization for bundling transactions.
|
|
15
15
|
|
|
@@ -28,7 +28,7 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
async function run() {
|
|
31
|
-
const result = await compassApiSDK.
|
|
31
|
+
const result = await compassApiSDK.transactionBundler.bundlerAuthorization({
|
|
32
32
|
chain: "ethereum:mainnet",
|
|
33
33
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
34
34
|
});
|
|
@@ -45,7 +45,7 @@ The standalone function version of this method:
|
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
48
|
-
import {
|
|
48
|
+
import { transactionBundlerBundlerAuthorization } from "@compass-labs/api-sdk/funcs/transactionBundlerBundlerAuthorization.js";
|
|
49
49
|
|
|
50
50
|
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
51
51
|
// You can create one instance of it to use across an application.
|
|
@@ -54,7 +54,7 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
async function run() {
|
|
57
|
-
const res = await
|
|
57
|
+
const res = await transactionBundlerBundlerAuthorization(compassApiSDK, {
|
|
58
58
|
chain: "ethereum:mainnet",
|
|
59
59
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
60
60
|
});
|
|
@@ -62,7 +62,7 @@ async function run() {
|
|
|
62
62
|
const { value: result } = res;
|
|
63
63
|
console.log(result);
|
|
64
64
|
} else {
|
|
65
|
-
console.log("
|
|
65
|
+
console.log("transactionBundlerBundlerAuthorization failed:", res.error);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -89,7 +89,7 @@ run();
|
|
|
89
89
|
| errors.HTTPValidationError | 422 | application/json |
|
|
90
90
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
91
91
|
|
|
92
|
-
##
|
|
92
|
+
## bundlerExecute
|
|
93
93
|
|
|
94
94
|
Bundle arbitrary transactions together into a single multicall transaction using
|
|
95
95
|
EIP-7702.
|
|
@@ -109,8 +109,8 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
async function run() {
|
|
112
|
-
const result = await compassApiSDK.
|
|
113
|
-
chain: "
|
|
112
|
+
const result = await compassApiSDK.transactionBundler.bundlerExecute({
|
|
113
|
+
chain: "arbitrum:mainnet",
|
|
114
114
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
115
115
|
signedAuthorization: {
|
|
116
116
|
nonce: 1000,
|
|
@@ -143,7 +143,7 @@ The standalone function version of this method:
|
|
|
143
143
|
|
|
144
144
|
```typescript
|
|
145
145
|
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
146
|
-
import {
|
|
146
|
+
import { transactionBundlerBundlerExecute } from "@compass-labs/api-sdk/funcs/transactionBundlerBundlerExecute.js";
|
|
147
147
|
|
|
148
148
|
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
149
149
|
// You can create one instance of it to use across an application.
|
|
@@ -152,8 +152,8 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
async function run() {
|
|
155
|
-
const res = await
|
|
156
|
-
chain: "
|
|
155
|
+
const res = await transactionBundlerBundlerExecute(compassApiSDK, {
|
|
156
|
+
chain: "arbitrum:mainnet",
|
|
157
157
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
158
158
|
signedAuthorization: {
|
|
159
159
|
nonce: 1000,
|
|
@@ -177,7 +177,7 @@ async function run() {
|
|
|
177
177
|
const { value: result } = res;
|
|
178
178
|
console.log(result);
|
|
179
179
|
} else {
|
|
180
|
-
console.log("
|
|
180
|
+
console.log("transactionBundlerBundlerExecute failed:", res.error);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -204,7 +204,7 @@ run();
|
|
|
204
204
|
| errors.HTTPValidationError | 422 | application/json |
|
|
205
205
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
206
206
|
|
|
207
|
-
##
|
|
207
|
+
## bundlerAaveLoop
|
|
208
208
|
|
|
209
209
|
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
210
210
|
operations.
|
|
@@ -228,8 +228,8 @@ const compassApiSDK = new CompassApiSDK({
|
|
|
228
228
|
});
|
|
229
229
|
|
|
230
230
|
async function run() {
|
|
231
|
-
const result = await compassApiSDK.
|
|
232
|
-
chain: "
|
|
231
|
+
const result = await compassApiSDK.transactionBundler.bundlerAaveLoop({
|
|
232
|
+
chain: "arbitrum:mainnet",
|
|
233
233
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
234
234
|
signedAuthorization: {
|
|
235
235
|
nonce: 1000,
|
|
@@ -239,8 +239,8 @@ async function run() {
|
|
|
239
239
|
s: 5.471500338403868e+76,
|
|
240
240
|
yParity: 0,
|
|
241
241
|
},
|
|
242
|
-
collateralToken: "
|
|
243
|
-
borrowToken: "
|
|
242
|
+
collateralToken: "wstETH",
|
|
243
|
+
borrowToken: "AAVE",
|
|
244
244
|
initialCollateralAmount: "1000",
|
|
245
245
|
multiplier: "2.5",
|
|
246
246
|
maxSlippagePercent: 2.5,
|
|
@@ -259,7 +259,7 @@ The standalone function version of this method:
|
|
|
259
259
|
|
|
260
260
|
```typescript
|
|
261
261
|
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
262
|
-
import {
|
|
262
|
+
import { transactionBundlerBundlerAaveLoop } from "@compass-labs/api-sdk/funcs/transactionBundlerBundlerAaveLoop.js";
|
|
263
263
|
|
|
264
264
|
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
265
265
|
// You can create one instance of it to use across an application.
|
|
@@ -268,8 +268,8 @@ const compassApiSDK = new CompassApiSDKCore({
|
|
|
268
268
|
});
|
|
269
269
|
|
|
270
270
|
async function run() {
|
|
271
|
-
const res = await
|
|
272
|
-
chain: "
|
|
271
|
+
const res = await transactionBundlerBundlerAaveLoop(compassApiSDK, {
|
|
272
|
+
chain: "arbitrum:mainnet",
|
|
273
273
|
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
274
274
|
signedAuthorization: {
|
|
275
275
|
nonce: 1000,
|
|
@@ -279,8 +279,8 @@ async function run() {
|
|
|
279
279
|
s: 5.471500338403868e+76,
|
|
280
280
|
yParity: 0,
|
|
281
281
|
},
|
|
282
|
-
collateralToken: "
|
|
283
|
-
borrowToken: "
|
|
282
|
+
collateralToken: "wstETH",
|
|
283
|
+
borrowToken: "AAVE",
|
|
284
284
|
initialCollateralAmount: "1000",
|
|
285
285
|
multiplier: "2.5",
|
|
286
286
|
maxSlippagePercent: 2.5,
|
|
@@ -290,7 +290,7 @@ async function run() {
|
|
|
290
290
|
const { value: result } = res;
|
|
291
291
|
console.log(result);
|
|
292
292
|
} else {
|
|
293
|
-
console.log("
|
|
293
|
+
console.log("transactionBundlerBundlerAaveLoop failed:", res.error);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [quoteBuyExactly](#quotebuyexactly) - Get
|
|
9
|
-
* [quoteSellExactly](#quotesellexactly) - Get quote -
|
|
10
|
-
* [poolPrice](#poolprice) - Pool
|
|
11
|
-
* [liquidityProvisionInRange](#liquidityprovisioninrange) - Check if LP is
|
|
8
|
+
* [quoteBuyExactly](#quotebuyexactly) - Get Quote - to Specified Amount
|
|
9
|
+
* [quoteSellExactly](#quotesellexactly) - Get quote - From Specified Amount
|
|
10
|
+
* [poolPrice](#poolprice) - Pool Price
|
|
11
|
+
* [liquidityProvisionInRange](#liquidityprovisioninrange) - Check if LP is Active.
|
|
12
12
|
* [liquidityProvisionPositions](#liquidityprovisionpositions) - List LP
|
|
13
13
|
* [swapBuyExactly](#swapbuyexactly) - Buy exact amount
|
|
14
14
|
* [swapSellExactly](#swapsellexactly) - Sell exact amount
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [portfolio](#portfolio) - List
|
|
9
|
-
* [visualizePortfolio](#visualizeportfolio) - Visualize
|
|
10
|
-
* [supportedTokens](#supportedtokens) - List
|
|
11
|
-
* [allowance](#allowance) - Get
|
|
8
|
+
* [portfolio](#portfolio) - List User Portfolio
|
|
9
|
+
* [visualizePortfolio](#visualizeportfolio) - Visualize User Portfolio
|
|
10
|
+
* [supportedTokens](#supportedtokens) - List Supported Tokens
|
|
11
|
+
* [allowance](#allowance) - Get Allowance
|
|
12
12
|
* [ens](#ens) - Resolve ENS
|
|
13
13
|
* [wrapEth](#wrapeth) - Wrap ETH
|
|
14
14
|
* [unwrapWeth](#unwrapweth) - Unwrap WETH
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Interest Rates:
|
|
30
|
+
* Interest Rates: Time Average
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Historical
|
|
30
|
+
* Historical Transactions
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* This endpoint retrieves historical transactions for a user on the AAVE platform.
|
package/src/funcs/aaveV3Repay.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Interest Rates:
|
|
30
|
+
* Interest Rates: Standard Deviation
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Positions - per
|
|
30
|
+
* Positions - per Token
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* This endpoint retrieves the user's position for a specific token on the AAVE
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Positions -
|
|
30
|
+
* Positions - Total
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* This endpoint retrieves a comprehensive summary of a user's position on the AAVE
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Increase an LP
|
|
29
|
+
* Increase an LP Position
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Increase the liquidity of an existing Liquidity Provider (LP) position.
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* List LP
|
|
30
|
+
* List LP Positions
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Retrieve the total number of Liquidity Provider (LP) positions associated with a
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Swap - into
|
|
29
|
+
* Swap - into Specified Amount
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* This endpoint facilitates the trading of tokens by allowing users to specify the
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Swap - from
|
|
29
|
+
* Swap - from Specified Amount
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* This endpoint allows users to trade a specific amount of one token into another
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Transfer ETH or ERC20 Tokens
|
|
29
|
+
* Transfer ETH or ERC20 Tokens
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Sends native ETH or ERC20 tokens from the sender's address to another address.
|