@compass-labs/api-sdk 0.0.39 → 0.1.1
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 +5 -0
- package/bin/mcp-server.js +5493 -5083
- package/bin/mcp-server.js.map +81 -65
- package/dist/commonjs/funcs/aaveV3Borrow.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.js +1 -1
- package/dist/commonjs/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js +1 -1
- package/dist/commonjs/funcs/aaveV3Repay.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.js +1 -1
- package/dist/commonjs/funcs/aaveV3Supply.js.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.js +1 -1
- package/dist/commonjs/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/morphoAllowance.d.ts +1 -1
- package/dist/commonjs/funcs/morphoAllowance.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoAllowance.js +1 -1
- package/dist/commonjs/funcs/morphoAllowance.js.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.d.ts +1 -1
- package/dist/commonjs/funcs/morphoBorrow.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoBorrow.js +1 -1
- package/dist/commonjs/funcs/morphoBorrow.js.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.d.ts +1 -1
- package/dist/commonjs/funcs/morphoDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js +1 -1
- package/dist/commonjs/funcs/morphoDeposit.js.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.d.ts +1 -1
- package/dist/commonjs/funcs/morphoRepay.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoRepay.js +1 -1
- package/dist/commonjs/funcs/morphoRepay.js.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.js +1 -1
- package/dist/commonjs/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.d.ts +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.js +1 -1
- package/dist/commonjs/funcs/morphoWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js +1 -1
- package/dist/commonjs/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/commonjs/funcs/skyBuy.d.ts +1 -1
- package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyBuy.js +1 -1
- package/dist/commonjs/funcs/skyBuy.js.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts +1 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.js +1 -1
- package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
- package/dist/commonjs/funcs/skySell.d.ts +1 -1
- package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
- package/dist/commonjs/funcs/skySell.js +1 -1
- package/dist/commonjs/funcs/skySell.js.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts +1 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.d.ts +17 -0
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js +116 -0
- package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -0
- package/dist/commonjs/funcs/tokenTransfer.d.ts +1 -1
- package/dist/commonjs/funcs/tokenTransfer.d.ts.map +1 -1
- package/dist/commonjs/funcs/tokenTransfer.js +1 -1
- package/dist/commonjs/funcs/tokenTransfer.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js +1 -1
- package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js +1 -1
- package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.d.ts +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.js +1 -1
- package/dist/commonjs/funcs/universalUnwrapWeth.js.map +1 -1
- package/dist/commonjs/funcs/universalWrapEth.d.ts +1 -1
- package/dist/commonjs/funcs/universalWrapEth.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalWrapEth.js +1 -1
- package/dist/commonjs/funcs/universalWrapEth.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.js +64 -0
- package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.js.map +1 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts +46 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js +82 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js.map +1 -0
- package/dist/commonjs/models/components/batcheduseroperationsresponse.d.ts +33 -0
- package/dist/commonjs/models/components/batcheduseroperationsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/batcheduseroperationsresponse.js +70 -0
- package/dist/commonjs/models/components/batcheduseroperationsresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallexecuterequest.d.ts +3 -3
- package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallexecuterequest.js +3 -3
- package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -1
- package/dist/commonjs/models/components/txresponse.d.ts +27 -0
- package/dist/commonjs/models/components/txresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/txresponse.js +73 -0
- package/dist/commonjs/models/components/txresponse.js.map +1 -0
- package/dist/commonjs/models/components/{multicallaction.d.ts → useroperation.d.ts} +14 -14
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -0
- package/dist/commonjs/models/components/{multicallaction.js → useroperation.js} +17 -17
- package/dist/commonjs/models/components/useroperation.js.map +1 -0
- package/dist/commonjs/models/components/useroperationresponse.d.ts +42 -0
- package/dist/commonjs/models/components/useroperationresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/useroperationresponse.js +73 -0
- package/dist/commonjs/models/components/useroperationresponse.js.map +1 -0
- package/dist/commonjs/sdk/aavev3.d.ts +4 -4
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aerodromeslipstream.d.ts +5 -5
- package/dist/commonjs/sdk/aerodromeslipstream.d.ts.map +1 -1
- package/dist/commonjs/sdk/morpho.d.ts +7 -7
- package/dist/commonjs/sdk/morpho.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/sky.d.ts +4 -4
- package/dist/commonjs/sdk/sky.d.ts.map +1 -1
- package/dist/commonjs/sdk/smartaccount.d.ts +12 -0
- package/dist/commonjs/sdk/smartaccount.d.ts.map +1 -0
- package/dist/commonjs/sdk/smartaccount.js +22 -0
- package/dist/commonjs/sdk/smartaccount.js.map +1 -0
- package/dist/commonjs/sdk/token.d.ts +1 -1
- package/dist/commonjs/sdk/token.d.ts.map +1 -1
- package/dist/commonjs/sdk/uniswapv3.d.ts +5 -5
- package/dist/commonjs/sdk/uniswapv3.d.ts.map +1 -1
- package/dist/commonjs/sdk/universal.d.ts +3 -3
- package/dist/commonjs/sdk/universal.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Borrow.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Borrow.js +1 -1
- package/dist/esm/funcs/aaveV3Borrow.js.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Repay.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Repay.js +1 -1
- package/dist/esm/funcs/aaveV3Repay.js.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Supply.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Supply.js +1 -1
- package/dist/esm/funcs/aaveV3Supply.js.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.js +1 -1
- package/dist/esm/funcs/aaveV3Withdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
- package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/morphoAllowance.d.ts +1 -1
- package/dist/esm/funcs/morphoAllowance.d.ts.map +1 -1
- package/dist/esm/funcs/morphoAllowance.js +1 -1
- package/dist/esm/funcs/morphoAllowance.js.map +1 -1
- package/dist/esm/funcs/morphoBorrow.d.ts +1 -1
- package/dist/esm/funcs/morphoBorrow.d.ts.map +1 -1
- package/dist/esm/funcs/morphoBorrow.js +1 -1
- package/dist/esm/funcs/morphoBorrow.js.map +1 -1
- package/dist/esm/funcs/morphoDeposit.d.ts +1 -1
- package/dist/esm/funcs/morphoDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/morphoDeposit.js +1 -1
- package/dist/esm/funcs/morphoDeposit.js.map +1 -1
- package/dist/esm/funcs/morphoRepay.d.ts +1 -1
- package/dist/esm/funcs/morphoRepay.d.ts.map +1 -1
- package/dist/esm/funcs/morphoRepay.js +1 -1
- package/dist/esm/funcs/morphoRepay.js.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.d.ts +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.d.ts.map +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.js +1 -1
- package/dist/esm/funcs/morphoSupplyCollateral.js.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.d.ts +1 -1
- package/dist/esm/funcs/morphoWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/morphoWithdraw.js +1 -1
- package/dist/esm/funcs/morphoWithdraw.js.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.d.ts +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.js +1 -1
- package/dist/esm/funcs/morphoWithdrawCollateral.js.map +1 -1
- package/dist/esm/funcs/skyBuy.d.ts +1 -1
- package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
- package/dist/esm/funcs/skyBuy.js +1 -1
- package/dist/esm/funcs/skyBuy.js.map +1 -1
- package/dist/esm/funcs/skyDeposit.d.ts +1 -1
- package/dist/esm/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/skyDeposit.js +1 -1
- package/dist/esm/funcs/skyDeposit.js.map +1 -1
- package/dist/esm/funcs/skySell.d.ts +1 -1
- package/dist/esm/funcs/skySell.d.ts.map +1 -1
- package/dist/esm/funcs/skySell.js +1 -1
- package/dist/esm/funcs/skySell.js.map +1 -1
- package/dist/esm/funcs/skyWithdraw.d.ts +1 -1
- package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/skyWithdraw.js +1 -1
- package/dist/esm/funcs/skyWithdraw.js.map +1 -1
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.d.ts +17 -0
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js +80 -0
- package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -0
- package/dist/esm/funcs/tokenTransfer.d.ts +1 -1
- package/dist/esm/funcs/tokenTransfer.d.ts.map +1 -1
- package/dist/esm/funcs/tokenTransfer.js +1 -1
- package/dist/esm/funcs/tokenTransfer.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js +1 -1
- package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js +1 -1
- package/dist/esm/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js +1 -1
- package/dist/esm/funcs/uniswapV3SwapSellExactly.js.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/esm/funcs/universalAllowanceSet.d.ts.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.d.ts +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.d.ts.map +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.js +1 -1
- package/dist/esm/funcs/universalUnwrapWeth.js.map +1 -1
- package/dist/esm/funcs/universalWrapEth.d.ts +1 -1
- package/dist/esm/funcs/universalWrapEth.d.ts.map +1 -1
- package/dist/esm/funcs/universalWrapEth.js +1 -1
- package/dist/esm/funcs/universalWrapEth.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +2 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts +8 -0
- package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.js +28 -0
- package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.js.map +1 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts +46 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts.map +1 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.js +44 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.js.map +1 -0
- package/dist/esm/models/components/batcheduseroperationsresponse.d.ts +33 -0
- package/dist/esm/models/components/batcheduseroperationsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/batcheduseroperationsresponse.js +32 -0
- package/dist/esm/models/components/batcheduseroperationsresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallexecuterequest.d.ts +3 -3
- package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -1
- package/dist/esm/models/components/multicallexecuterequest.js +3 -3
- package/dist/esm/models/components/multicallexecuterequest.js.map +1 -1
- package/dist/esm/models/components/txresponse.d.ts +27 -0
- package/dist/esm/models/components/txresponse.d.ts.map +1 -0
- package/dist/esm/models/components/txresponse.js +35 -0
- package/dist/esm/models/components/txresponse.js.map +1 -0
- package/dist/esm/models/components/{multicallaction.d.ts → useroperation.d.ts} +14 -14
- package/dist/esm/models/components/useroperation.d.ts.map +1 -0
- package/dist/esm/models/components/{multicallaction.js → useroperation.js} +14 -14
- package/dist/esm/models/components/useroperation.js.map +1 -0
- package/dist/esm/models/components/useroperationresponse.d.ts +42 -0
- package/dist/esm/models/components/useroperationresponse.d.ts.map +1 -0
- package/dist/esm/models/components/useroperationresponse.js +35 -0
- package/dist/esm/models/components/useroperationresponse.js.map +1 -0
- package/dist/esm/sdk/aavev3.d.ts +4 -4
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aerodromeslipstream.d.ts +5 -5
- package/dist/esm/sdk/aerodromeslipstream.d.ts.map +1 -1
- package/dist/esm/sdk/morpho.d.ts +7 -7
- package/dist/esm/sdk/morpho.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/sky.d.ts +4 -4
- package/dist/esm/sdk/sky.d.ts.map +1 -1
- package/dist/esm/sdk/smartaccount.d.ts +12 -0
- package/dist/esm/sdk/smartaccount.d.ts.map +1 -0
- package/dist/esm/sdk/smartaccount.js +18 -0
- package/dist/esm/sdk/smartaccount.js.map +1 -0
- package/dist/esm/sdk/token.d.ts +1 -1
- package/dist/esm/sdk/token.d.ts.map +1 -1
- package/dist/esm/sdk/uniswapv3.d.ts +5 -5
- package/dist/esm/sdk/uniswapv3.d.ts.map +1 -1
- package/dist/esm/sdk/universal.d.ts +3 -3
- package/dist/esm/sdk/universal.d.ts.map +1 -1
- package/docs/sdks/aavev3/README.md +4 -4
- package/docs/sdks/aerodromeslipstream/README.md +13 -13
- package/docs/sdks/morpho/README.md +7 -7
- package/docs/sdks/sky/README.md +4 -4
- package/docs/sdks/smartaccount/README.md +105 -0
- package/docs/sdks/token/README.md +1 -1
- package/docs/sdks/transactionbatching/README.md +10 -16
- package/docs/sdks/uniswapv3/README.md +7 -7
- package/docs/sdks/universal/README.md +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3Borrow.ts +4 -4
- package/src/funcs/aaveV3Repay.ts +4 -4
- package/src/funcs/aaveV3Supply.ts +4 -4
- package/src/funcs/aaveV3Withdraw.ts +4 -4
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +4 -4
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +4 -4
- package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +4 -4
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +4 -4
- package/src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +4 -4
- package/src/funcs/morphoAllowance.ts +4 -4
- package/src/funcs/morphoBorrow.ts +4 -4
- package/src/funcs/morphoDeposit.ts +4 -4
- package/src/funcs/morphoRepay.ts +4 -4
- package/src/funcs/morphoSupplyCollateral.ts +4 -4
- package/src/funcs/morphoWithdraw.ts +4 -4
- package/src/funcs/morphoWithdrawCollateral.ts +4 -4
- package/src/funcs/skyBuy.ts +4 -4
- package/src/funcs/skyDeposit.ts +4 -4
- package/src/funcs/skySell.ts +4 -4
- package/src/funcs/skyWithdraw.ts +4 -4
- package/src/funcs/smartAccountAccountBatchedUserOperations.ts +164 -0
- package/src/funcs/tokenTransfer.ts +4 -4
- package/src/funcs/uniswapV3LiquidityProvisionIncrease.ts +4 -4
- package/src/funcs/uniswapV3LiquidityProvisionMint.ts +4 -4
- package/src/funcs/uniswapV3LiquidityProvisionWithdraw.ts +4 -4
- package/src/funcs/uniswapV3SwapBuyExactly.ts +4 -4
- package/src/funcs/uniswapV3SwapSellExactly.ts +4 -4
- package/src/funcs/universalAllowanceSet.ts +4 -4
- package/src/funcs/universalUnwrapWeth.ts +4 -4
- package/src/funcs/universalWrapEth.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts +39 -0
- package/src/models/components/batcheduseroperationsrequest.ts +106 -0
- package/src/models/components/batcheduseroperationsresponse.ts +77 -0
- package/src/models/components/index.ts +5 -1
- package/src/models/components/multicallexecuterequest.ts +10 -10
- package/src/models/components/txresponse.ts +74 -0
- package/src/models/components/{multicallaction.ts → useroperation.ts} +20 -22
- package/src/models/components/useroperationresponse.ts +83 -0
- package/src/sdk/aavev3.ts +4 -4
- package/src/sdk/aerodromeslipstream.ts +5 -5
- package/src/sdk/morpho.ts +7 -7
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sky.ts +4 -4
- package/src/sdk/smartaccount.ts +27 -0
- package/src/sdk/token.ts +1 -1
- package/src/sdk/uniswapv3.ts +5 -5
- package/src/sdk/universal.ts +3 -3
- package/dist/commonjs/models/components/multicallaction.d.ts.map +0 -1
- package/dist/commonjs/models/components/multicallaction.js.map +0 -1
- package/dist/esm/models/components/multicallaction.d.ts.map +0 -1
- package/dist/esm/models/components/multicallaction.js.map +0 -1
|
@@ -44,7 +44,7 @@ export function uniswapV3LiquidityProvisionMint(
|
|
|
44
44
|
options?: RequestOptions,
|
|
45
45
|
): APIPromise<
|
|
46
46
|
Result<
|
|
47
|
-
components.
|
|
47
|
+
components.TxResponse,
|
|
48
48
|
| errors.HTTPValidationError
|
|
49
49
|
| APIError
|
|
50
50
|
| SDKValidationError
|
|
@@ -69,7 +69,7 @@ async function $do(
|
|
|
69
69
|
): Promise<
|
|
70
70
|
[
|
|
71
71
|
Result<
|
|
72
|
-
components.
|
|
72
|
+
components.TxResponse,
|
|
73
73
|
| errors.HTTPValidationError
|
|
74
74
|
| APIError
|
|
75
75
|
| SDKValidationError
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
const [result] = await M.match<
|
|
154
|
-
components.
|
|
154
|
+
components.TxResponse,
|
|
155
155
|
| errors.HTTPValidationError
|
|
156
156
|
| APIError
|
|
157
157
|
| SDKValidationError
|
|
@@ -161,7 +161,7 @@ async function $do(
|
|
|
161
161
|
| RequestTimeoutError
|
|
162
162
|
| ConnectionError
|
|
163
163
|
>(
|
|
164
|
-
M.json(200, components.
|
|
164
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
165
165
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
166
166
|
M.fail("4XX"),
|
|
167
167
|
M.fail("5XX"),
|
|
@@ -45,7 +45,7 @@ export function uniswapV3LiquidityProvisionWithdraw(
|
|
|
45
45
|
options?: RequestOptions,
|
|
46
46
|
): APIPromise<
|
|
47
47
|
Result<
|
|
48
|
-
components.
|
|
48
|
+
components.TxResponse,
|
|
49
49
|
| errors.HTTPValidationError
|
|
50
50
|
| APIError
|
|
51
51
|
| SDKValidationError
|
|
@@ -70,7 +70,7 @@ async function $do(
|
|
|
70
70
|
): Promise<
|
|
71
71
|
[
|
|
72
72
|
Result<
|
|
73
|
-
components.
|
|
73
|
+
components.TxResponse,
|
|
74
74
|
| errors.HTTPValidationError
|
|
75
75
|
| APIError
|
|
76
76
|
| SDKValidationError
|
|
@@ -152,7 +152,7 @@ async function $do(
|
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
const [result] = await M.match<
|
|
155
|
-
components.
|
|
155
|
+
components.TxResponse,
|
|
156
156
|
| errors.HTTPValidationError
|
|
157
157
|
| APIError
|
|
158
158
|
| SDKValidationError
|
|
@@ -162,7 +162,7 @@ async function $do(
|
|
|
162
162
|
| RequestTimeoutError
|
|
163
163
|
| ConnectionError
|
|
164
164
|
>(
|
|
165
|
-
M.json(200, components.
|
|
165
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
166
166
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
167
167
|
M.fail("4XX"),
|
|
168
168
|
M.fail("5XX"),
|
|
@@ -42,7 +42,7 @@ export function uniswapV3SwapBuyExactly(
|
|
|
42
42
|
options?: RequestOptions,
|
|
43
43
|
): APIPromise<
|
|
44
44
|
Result<
|
|
45
|
-
components.
|
|
45
|
+
components.TxResponse,
|
|
46
46
|
| errors.HTTPValidationError
|
|
47
47
|
| APIError
|
|
48
48
|
| SDKValidationError
|
|
@@ -67,7 +67,7 @@ async function $do(
|
|
|
67
67
|
): Promise<
|
|
68
68
|
[
|
|
69
69
|
Result<
|
|
70
|
-
components.
|
|
70
|
+
components.TxResponse,
|
|
71
71
|
| errors.HTTPValidationError
|
|
72
72
|
| APIError
|
|
73
73
|
| SDKValidationError
|
|
@@ -146,7 +146,7 @@ async function $do(
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
const [result] = await M.match<
|
|
149
|
-
components.
|
|
149
|
+
components.TxResponse,
|
|
150
150
|
| errors.HTTPValidationError
|
|
151
151
|
| APIError
|
|
152
152
|
| SDKValidationError
|
|
@@ -156,7 +156,7 @@ async function $do(
|
|
|
156
156
|
| RequestTimeoutError
|
|
157
157
|
| ConnectionError
|
|
158
158
|
>(
|
|
159
|
-
M.json(200, components.
|
|
159
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
160
160
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
161
161
|
M.fail("4XX"),
|
|
162
162
|
M.fail("5XX"),
|
|
@@ -42,7 +42,7 @@ export function uniswapV3SwapSellExactly(
|
|
|
42
42
|
options?: RequestOptions,
|
|
43
43
|
): APIPromise<
|
|
44
44
|
Result<
|
|
45
|
-
components.
|
|
45
|
+
components.TxResponse,
|
|
46
46
|
| errors.HTTPValidationError
|
|
47
47
|
| APIError
|
|
48
48
|
| SDKValidationError
|
|
@@ -67,7 +67,7 @@ async function $do(
|
|
|
67
67
|
): Promise<
|
|
68
68
|
[
|
|
69
69
|
Result<
|
|
70
|
-
components.
|
|
70
|
+
components.TxResponse,
|
|
71
71
|
| errors.HTTPValidationError
|
|
72
72
|
| APIError
|
|
73
73
|
| SDKValidationError
|
|
@@ -146,7 +146,7 @@ async function $do(
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
const [result] = await M.match<
|
|
149
|
-
components.
|
|
149
|
+
components.TxResponse,
|
|
150
150
|
| errors.HTTPValidationError
|
|
151
151
|
| APIError
|
|
152
152
|
| SDKValidationError
|
|
@@ -156,7 +156,7 @@ async function $do(
|
|
|
156
156
|
| RequestTimeoutError
|
|
157
157
|
| ConnectionError
|
|
158
158
|
>(
|
|
159
|
-
M.json(200, components.
|
|
159
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
160
160
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
161
161
|
M.fail("4XX"),
|
|
162
162
|
M.fail("5XX"),
|
|
@@ -42,7 +42,7 @@ export function universalAllowanceSet(
|
|
|
42
42
|
options?: RequestOptions,
|
|
43
43
|
): APIPromise<
|
|
44
44
|
Result<
|
|
45
|
-
components.
|
|
45
|
+
components.TxResponse,
|
|
46
46
|
| errors.HTTPValidationError
|
|
47
47
|
| APIError
|
|
48
48
|
| SDKValidationError
|
|
@@ -67,7 +67,7 @@ async function $do(
|
|
|
67
67
|
): Promise<
|
|
68
68
|
[
|
|
69
69
|
Result<
|
|
70
|
-
components.
|
|
70
|
+
components.TxResponse,
|
|
71
71
|
| errors.HTTPValidationError
|
|
72
72
|
| APIError
|
|
73
73
|
| SDKValidationError
|
|
@@ -146,7 +146,7 @@ async function $do(
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
const [result] = await M.match<
|
|
149
|
-
components.
|
|
149
|
+
components.TxResponse,
|
|
150
150
|
| errors.HTTPValidationError
|
|
151
151
|
| APIError
|
|
152
152
|
| SDKValidationError
|
|
@@ -156,7 +156,7 @@ async function $do(
|
|
|
156
156
|
| RequestTimeoutError
|
|
157
157
|
| ConnectionError
|
|
158
158
|
>(
|
|
159
|
-
M.json(200, components.
|
|
159
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
160
160
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
161
161
|
M.fail("4XX"),
|
|
162
162
|
M.fail("5XX"),
|
|
@@ -37,7 +37,7 @@ export function universalUnwrapWeth(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
components.
|
|
40
|
+
components.TxResponse,
|
|
41
41
|
| errors.HTTPValidationError
|
|
42
42
|
| APIError
|
|
43
43
|
| SDKValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
components.
|
|
65
|
+
components.TxResponse,
|
|
66
66
|
| errors.HTTPValidationError
|
|
67
67
|
| APIError
|
|
68
68
|
| SDKValidationError
|
|
@@ -141,7 +141,7 @@ async function $do(
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
const [result] = await M.match<
|
|
144
|
-
components.
|
|
144
|
+
components.TxResponse,
|
|
145
145
|
| errors.HTTPValidationError
|
|
146
146
|
| APIError
|
|
147
147
|
| SDKValidationError
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
| RequestTimeoutError
|
|
152
152
|
| ConnectionError
|
|
153
153
|
>(
|
|
154
|
-
M.json(200, components.
|
|
154
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
155
155
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
156
156
|
M.fail("4XX"),
|
|
157
157
|
M.fail("5XX"),
|
|
@@ -37,7 +37,7 @@ export function universalWrapEth(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
components.
|
|
40
|
+
components.TxResponse,
|
|
41
41
|
| errors.HTTPValidationError
|
|
42
42
|
| APIError
|
|
43
43
|
| SDKValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
components.
|
|
65
|
+
components.TxResponse,
|
|
66
66
|
| errors.HTTPValidationError
|
|
67
67
|
| APIError
|
|
68
68
|
| SDKValidationError
|
|
@@ -141,7 +141,7 @@ async function $do(
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
const [result] = await M.match<
|
|
144
|
-
components.
|
|
144
|
+
components.TxResponse,
|
|
145
145
|
| errors.HTTPValidationError
|
|
146
146
|
| APIError
|
|
147
147
|
| SDKValidationError
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
| RequestTimeoutError
|
|
152
152
|
| ConnectionError
|
|
153
153
|
>(
|
|
154
|
-
M.json(200, components.
|
|
154
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
155
155
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
156
156
|
M.fail("4XX"),
|
|
157
157
|
M.fail("5XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.
|
|
61
|
-
genVersion: "2.
|
|
60
|
+
sdkVersion: "0.1.1",
|
|
61
|
+
genVersion: "2.605.6",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.1 2.605.6 0.0.1 @compass-labs/api-sdk",
|
|
64
64
|
} as const;
|
|
@@ -50,7 +50,7 @@ async function startStdio(flags: StartCommandFlags) {
|
|
|
50
50
|
logger,
|
|
51
51
|
allowedTools: flags.tool,
|
|
52
52
|
scopes: flags.scope,
|
|
53
|
-
...{ apiKeyAuth: flags["api-key-auth"] },
|
|
53
|
+
...{ apiKeyAuth: flags["api-key-auth"] ?? "" },
|
|
54
54
|
serverURL: flags["server-url"],
|
|
55
55
|
serverIdx: flags["server-index"],
|
|
56
56
|
});
|
|
@@ -71,7 +71,7 @@ async function startSSE(flags: StartCommandFlags) {
|
|
|
71
71
|
logger,
|
|
72
72
|
allowedTools: flags.tool,
|
|
73
73
|
scopes: flags.scope,
|
|
74
|
-
...{ apiKeyAuth: flags["api-key-auth"] },
|
|
74
|
+
...{ apiKeyAuth: flags["api-key-auth"] ?? "" },
|
|
75
75
|
serverURL: flags["server-url"],
|
|
76
76
|
serverIdx: flags["server-index"],
|
|
77
77
|
});
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -52,6 +52,7 @@ import { tool$skyDeposit } from "./tools/skyDeposit.js";
|
|
|
52
52
|
import { tool$skyPosition } from "./tools/skyPosition.js";
|
|
53
53
|
import { tool$skySell } from "./tools/skySell.js";
|
|
54
54
|
import { tool$skyWithdraw } from "./tools/skyWithdraw.js";
|
|
55
|
+
import { tool$smartAccountAccountBatchedUserOperations } from "./tools/smartAccountAccountBatchedUserOperations.js";
|
|
55
56
|
import { tool$tokenAddress } from "./tools/tokenAddress.js";
|
|
56
57
|
import { tool$tokenBalance } from "./tools/tokenBalance.js";
|
|
57
58
|
import { tool$tokenPrice } from "./tools/tokenPrice.js";
|
|
@@ -88,7 +89,7 @@ export function createMCPServer(deps: {
|
|
|
88
89
|
}) {
|
|
89
90
|
const server = new McpServer({
|
|
90
91
|
name: "CompassApiSDK",
|
|
91
|
-
version: "0.
|
|
92
|
+
version: "0.1.1",
|
|
92
93
|
});
|
|
93
94
|
|
|
94
95
|
const client = new CompassApiSDKCore({
|
|
@@ -182,6 +183,7 @@ export function createMCPServer(deps: {
|
|
|
182
183
|
tool(tool$transactionBatchingAuthorization);
|
|
183
184
|
tool(tool$transactionBatchingExecute);
|
|
184
185
|
tool(tool$transactionBatchingAaveLoop);
|
|
186
|
+
tool(tool$smartAccountAccountBatchedUserOperations);
|
|
185
187
|
|
|
186
188
|
return server;
|
|
187
189
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { smartAccountAccountBatchedUserOperations } from "../../funcs/smartAccountAccountBatchedUserOperations.js";
|
|
6
|
+
import * as components from "../../models/components/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: components.BatchedUserOperationsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$smartAccountAccountBatchedUserOperations: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "smart-account-account-batched-user-operations",
|
|
17
|
+
description: `Get Smart Account Batched User Operations
|
|
18
|
+
|
|
19
|
+
Generate a list of user operations for smart account batching.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
|
|
14
|
+
import {
|
|
15
|
+
UserOperation,
|
|
16
|
+
UserOperation$inboundSchema,
|
|
17
|
+
UserOperation$Outbound,
|
|
18
|
+
UserOperation$outboundSchema,
|
|
19
|
+
} from "./useroperation.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Request model for batching user operations.
|
|
23
|
+
*/
|
|
24
|
+
export type BatchedUserOperationsRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* The chain to use.
|
|
27
|
+
*/
|
|
28
|
+
chain: Chain;
|
|
29
|
+
/**
|
|
30
|
+
* List of possible user operations
|
|
31
|
+
*/
|
|
32
|
+
operations: Array<UserOperation>;
|
|
33
|
+
additionalProperties?: { [k: string]: any };
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const BatchedUserOperationsRequest$inboundSchema: z.ZodType<
|
|
38
|
+
BatchedUserOperationsRequest,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = collectExtraKeys$(
|
|
42
|
+
z.object({
|
|
43
|
+
chain: Chain$inboundSchema,
|
|
44
|
+
operations: z.array(UserOperation$inboundSchema),
|
|
45
|
+
}).catchall(z.any()),
|
|
46
|
+
"additionalProperties",
|
|
47
|
+
true,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type BatchedUserOperationsRequest$Outbound = {
|
|
52
|
+
chain: string;
|
|
53
|
+
operations: Array<UserOperation$Outbound>;
|
|
54
|
+
[additionalProperties: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const BatchedUserOperationsRequest$outboundSchema: z.ZodType<
|
|
59
|
+
BatchedUserOperationsRequest$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
BatchedUserOperationsRequest
|
|
62
|
+
> = z.object({
|
|
63
|
+
chain: Chain$outboundSchema,
|
|
64
|
+
operations: z.array(UserOperation$outboundSchema),
|
|
65
|
+
additionalProperties: z.record(z.any()),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return {
|
|
68
|
+
...v.additionalProperties,
|
|
69
|
+
...remap$(v, {
|
|
70
|
+
additionalProperties: null,
|
|
71
|
+
}),
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace BatchedUserOperationsRequest$ {
|
|
80
|
+
/** @deprecated use `BatchedUserOperationsRequest$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema = BatchedUserOperationsRequest$inboundSchema;
|
|
82
|
+
/** @deprecated use `BatchedUserOperationsRequest$outboundSchema` instead. */
|
|
83
|
+
export const outboundSchema = BatchedUserOperationsRequest$outboundSchema;
|
|
84
|
+
/** @deprecated use `BatchedUserOperationsRequest$Outbound` instead. */
|
|
85
|
+
export type Outbound = BatchedUserOperationsRequest$Outbound;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function batchedUserOperationsRequestToJSON(
|
|
89
|
+
batchedUserOperationsRequest: BatchedUserOperationsRequest,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
BatchedUserOperationsRequest$outboundSchema.parse(
|
|
93
|
+
batchedUserOperationsRequest,
|
|
94
|
+
),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function batchedUserOperationsRequestFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<BatchedUserOperationsRequest, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => BatchedUserOperationsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'BatchedUserOperationsRequest' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
UserOperationResponse,
|
|
11
|
+
UserOperationResponse$inboundSchema,
|
|
12
|
+
UserOperationResponse$Outbound,
|
|
13
|
+
UserOperationResponse$outboundSchema,
|
|
14
|
+
} from "./useroperationresponse.js";
|
|
15
|
+
|
|
16
|
+
export type BatchedUserOperationsResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* List of user operations to be batched and executed by the smart account.
|
|
19
|
+
*/
|
|
20
|
+
operations: Array<UserOperationResponse>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const BatchedUserOperationsResponse$inboundSchema: z.ZodType<
|
|
25
|
+
BatchedUserOperationsResponse,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
operations: z.array(UserOperationResponse$inboundSchema),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type BatchedUserOperationsResponse$Outbound = {
|
|
34
|
+
operations: Array<UserOperationResponse$Outbound>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const BatchedUserOperationsResponse$outboundSchema: z.ZodType<
|
|
39
|
+
BatchedUserOperationsResponse$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
BatchedUserOperationsResponse
|
|
42
|
+
> = z.object({
|
|
43
|
+
operations: z.array(UserOperationResponse$outboundSchema),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace BatchedUserOperationsResponse$ {
|
|
51
|
+
/** @deprecated use `BatchedUserOperationsResponse$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = BatchedUserOperationsResponse$inboundSchema;
|
|
53
|
+
/** @deprecated use `BatchedUserOperationsResponse$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = BatchedUserOperationsResponse$outboundSchema;
|
|
55
|
+
/** @deprecated use `BatchedUserOperationsResponse$Outbound` instead. */
|
|
56
|
+
export type Outbound = BatchedUserOperationsResponse$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function batchedUserOperationsResponseToJSON(
|
|
60
|
+
batchedUserOperationsResponse: BatchedUserOperationsResponse,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
BatchedUserOperationsResponse$outboundSchema.parse(
|
|
64
|
+
batchedUserOperationsResponse,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function batchedUserOperationsResponseFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<BatchedUserOperationsResponse, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => BatchedUserOperationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'BatchedUserOperationsResponse' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -34,6 +34,8 @@ export * from "./aerodromeslipstreamsellexactlyrequest.js";
|
|
|
34
34
|
export * from "./aerodromeslipstreamwithdrawliquidityprovisionparams.js";
|
|
35
35
|
export * from "./aerodromeslipstreamwithdrawliquidityprovisionrequest.js";
|
|
36
36
|
export * from "./allowanceinforesponse.js";
|
|
37
|
+
export * from "./batcheduseroperationsrequest.js";
|
|
38
|
+
export * from "./batcheduseroperationsresponse.js";
|
|
37
39
|
export * from "./borrow.js";
|
|
38
40
|
export * from "./chain.js";
|
|
39
41
|
export * from "./chaininfo.js";
|
|
@@ -87,7 +89,6 @@ export * from "./morphowithdrawcollateralparams.js";
|
|
|
87
89
|
export * from "./morphowithdrawcollateralrequest.js";
|
|
88
90
|
export * from "./morphowithdrawparams.js";
|
|
89
91
|
export * from "./morphowithdrawrequest.js";
|
|
90
|
-
export * from "./multicallaction.js";
|
|
91
92
|
export * from "./multicallactiontype.js";
|
|
92
93
|
export * from "./multicallauthorizationrequest.js";
|
|
93
94
|
export * from "./multicallauthorizationresponse.js";
|
|
@@ -117,6 +118,7 @@ export * from "./tokeninfo.js";
|
|
|
117
118
|
export * from "./tokenpriceresponse.js";
|
|
118
119
|
export * from "./tokentransfererc20params.js";
|
|
119
120
|
export * from "./tokentransferrequest.js";
|
|
121
|
+
export * from "./txresponse.js";
|
|
120
122
|
export * from "./uniswapbuyexactlyparams.js";
|
|
121
123
|
export * from "./uniswapbuyexactlyrequest.js";
|
|
122
124
|
export * from "./uniswapbuyquoteinforesponse.js";
|
|
@@ -138,6 +140,8 @@ export * from "./unsignedtransaction.js";
|
|
|
138
140
|
export * from "./unwrapwethparams.js";
|
|
139
141
|
export * from "./unwrapwethrequest.js";
|
|
140
142
|
export * from "./usageascollateral.js";
|
|
143
|
+
export * from "./useroperation.js";
|
|
144
|
+
export * from "./useroperationresponse.js";
|
|
141
145
|
export * from "./userstate.js";
|
|
142
146
|
export * from "./validationerror.js";
|
|
143
147
|
export * from "./vault.js";
|
|
@@ -8,18 +8,18 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
|
|
11
|
-
import {
|
|
12
|
-
MulticallAction,
|
|
13
|
-
MulticallAction$inboundSchema,
|
|
14
|
-
MulticallAction$Outbound,
|
|
15
|
-
MulticallAction$outboundSchema,
|
|
16
|
-
} from "./multicallaction.js";
|
|
17
11
|
import {
|
|
18
12
|
SignedAuthorization,
|
|
19
13
|
SignedAuthorization$inboundSchema,
|
|
20
14
|
SignedAuthorization$Outbound,
|
|
21
15
|
SignedAuthorization$outboundSchema,
|
|
22
16
|
} from "./signedauthorization.js";
|
|
17
|
+
import {
|
|
18
|
+
UserOperation,
|
|
19
|
+
UserOperation$inboundSchema,
|
|
20
|
+
UserOperation$Outbound,
|
|
21
|
+
UserOperation$outboundSchema,
|
|
22
|
+
} from "./useroperation.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Request model for executing a multicall.
|
|
@@ -37,7 +37,7 @@ export type MulticallExecuteRequest = {
|
|
|
37
37
|
/**
|
|
38
38
|
* List of possible actions for multicall
|
|
39
39
|
*/
|
|
40
|
-
actions: Array<
|
|
40
|
+
actions: Array<UserOperation>;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
@@ -49,7 +49,7 @@ export const MulticallExecuteRequest$inboundSchema: z.ZodType<
|
|
|
49
49
|
chain: Chain$inboundSchema,
|
|
50
50
|
sender: z.string(),
|
|
51
51
|
signed_authorization: SignedAuthorization$inboundSchema,
|
|
52
|
-
actions: z.array(
|
|
52
|
+
actions: z.array(UserOperation$inboundSchema),
|
|
53
53
|
}).transform((v) => {
|
|
54
54
|
return remap$(v, {
|
|
55
55
|
"signed_authorization": "signedAuthorization",
|
|
@@ -61,7 +61,7 @@ export type MulticallExecuteRequest$Outbound = {
|
|
|
61
61
|
chain: string;
|
|
62
62
|
sender: string;
|
|
63
63
|
signed_authorization: SignedAuthorization$Outbound;
|
|
64
|
-
actions: Array<
|
|
64
|
+
actions: Array<UserOperation$Outbound>;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
/** @internal */
|
|
@@ -73,7 +73,7 @@ export const MulticallExecuteRequest$outboundSchema: z.ZodType<
|
|
|
73
73
|
chain: Chain$outboundSchema,
|
|
74
74
|
sender: z.string(),
|
|
75
75
|
signedAuthorization: SignedAuthorization$outboundSchema,
|
|
76
|
-
actions: z.array(
|
|
76
|
+
actions: z.array(UserOperation$outboundSchema),
|
|
77
77
|
}).transform((v) => {
|
|
78
78
|
return remap$(v, {
|
|
79
79
|
signedAuthorization: "signed_authorization",
|