@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 aerodromeSlipstreamSlipstreamSwapSellExactly(
|
|
|
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"),
|
|
@@ -40,7 +40,7 @@ export function morphoAllowance(
|
|
|
40
40
|
options?: RequestOptions,
|
|
41
41
|
): APIPromise<
|
|
42
42
|
Result<
|
|
43
|
-
components.
|
|
43
|
+
components.TxResponse,
|
|
44
44
|
| errors.HTTPValidationError
|
|
45
45
|
| APIError
|
|
46
46
|
| SDKValidationError
|
|
@@ -65,7 +65,7 @@ async function $do(
|
|
|
65
65
|
): Promise<
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
|
-
components.
|
|
68
|
+
components.TxResponse,
|
|
69
69
|
| errors.HTTPValidationError
|
|
70
70
|
| APIError
|
|
71
71
|
| SDKValidationError
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
const [result] = await M.match<
|
|
148
|
-
components.
|
|
148
|
+
components.TxResponse,
|
|
149
149
|
| errors.HTTPValidationError
|
|
150
150
|
| APIError
|
|
151
151
|
| SDKValidationError
|
|
@@ -155,7 +155,7 @@ async function $do(
|
|
|
155
155
|
| RequestTimeoutError
|
|
156
156
|
| ConnectionError
|
|
157
157
|
>(
|
|
158
|
-
M.json(200, components.
|
|
158
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
159
159
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
160
160
|
M.fail("4XX"),
|
|
161
161
|
M.fail("5XX"),
|
|
@@ -44,7 +44,7 @@ export function morphoBorrow(
|
|
|
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
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
components.
|
|
151
|
+
components.TxResponse,
|
|
152
152
|
| errors.HTTPValidationError
|
|
153
153
|
| APIError
|
|
154
154
|
| SDKValidationError
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
| RequestTimeoutError
|
|
159
159
|
| ConnectionError
|
|
160
160
|
>(
|
|
161
|
-
M.json(200, components.
|
|
161
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
162
162
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
163
163
|
M.fail("4XX"),
|
|
164
164
|
M.fail("5XX"),
|
|
@@ -46,7 +46,7 @@ export function morphoDeposit(
|
|
|
46
46
|
options?: RequestOptions,
|
|
47
47
|
): APIPromise<
|
|
48
48
|
Result<
|
|
49
|
-
components.
|
|
49
|
+
components.TxResponse,
|
|
50
50
|
| errors.HTTPValidationError
|
|
51
51
|
| APIError
|
|
52
52
|
| SDKValidationError
|
|
@@ -71,7 +71,7 @@ async function $do(
|
|
|
71
71
|
): Promise<
|
|
72
72
|
[
|
|
73
73
|
Result<
|
|
74
|
-
components.
|
|
74
|
+
components.TxResponse,
|
|
75
75
|
| errors.HTTPValidationError
|
|
76
76
|
| APIError
|
|
77
77
|
| SDKValidationError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
const [result] = await M.match<
|
|
153
|
-
components.
|
|
153
|
+
components.TxResponse,
|
|
154
154
|
| errors.HTTPValidationError
|
|
155
155
|
| APIError
|
|
156
156
|
| SDKValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| RequestTimeoutError
|
|
161
161
|
| ConnectionError
|
|
162
162
|
>(
|
|
163
|
-
M.json(200, components.
|
|
163
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
164
164
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
package/src/funcs/morphoRepay.ts
CHANGED
|
@@ -41,7 +41,7 @@ export function morphoRepay(
|
|
|
41
41
|
options?: RequestOptions,
|
|
42
42
|
): APIPromise<
|
|
43
43
|
Result<
|
|
44
|
-
components.
|
|
44
|
+
components.TxResponse,
|
|
45
45
|
| errors.HTTPValidationError
|
|
46
46
|
| APIError
|
|
47
47
|
| SDKValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
components.
|
|
69
|
+
components.TxResponse,
|
|
70
70
|
| errors.HTTPValidationError
|
|
71
71
|
| APIError
|
|
72
72
|
| SDKValidationError
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
const [result] = await M.match<
|
|
148
|
-
components.
|
|
148
|
+
components.TxResponse,
|
|
149
149
|
| errors.HTTPValidationError
|
|
150
150
|
| APIError
|
|
151
151
|
| SDKValidationError
|
|
@@ -155,7 +155,7 @@ async function $do(
|
|
|
155
155
|
| RequestTimeoutError
|
|
156
156
|
| ConnectionError
|
|
157
157
|
>(
|
|
158
|
-
M.json(200, components.
|
|
158
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
159
159
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
160
160
|
M.fail("4XX"),
|
|
161
161
|
M.fail("5XX"),
|
|
@@ -41,7 +41,7 @@ export function morphoSupplyCollateral(
|
|
|
41
41
|
options?: RequestOptions,
|
|
42
42
|
): APIPromise<
|
|
43
43
|
Result<
|
|
44
|
-
components.
|
|
44
|
+
components.TxResponse,
|
|
45
45
|
| errors.HTTPValidationError
|
|
46
46
|
| APIError
|
|
47
47
|
| SDKValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
components.
|
|
69
|
+
components.TxResponse,
|
|
70
70
|
| errors.HTTPValidationError
|
|
71
71
|
| APIError
|
|
72
72
|
| 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"),
|
|
@@ -46,7 +46,7 @@ export function morphoWithdraw(
|
|
|
46
46
|
options?: RequestOptions,
|
|
47
47
|
): APIPromise<
|
|
48
48
|
Result<
|
|
49
|
-
components.
|
|
49
|
+
components.TxResponse,
|
|
50
50
|
| errors.HTTPValidationError
|
|
51
51
|
| APIError
|
|
52
52
|
| SDKValidationError
|
|
@@ -71,7 +71,7 @@ async function $do(
|
|
|
71
71
|
): Promise<
|
|
72
72
|
[
|
|
73
73
|
Result<
|
|
74
|
-
components.
|
|
74
|
+
components.TxResponse,
|
|
75
75
|
| errors.HTTPValidationError
|
|
76
76
|
| APIError
|
|
77
77
|
| SDKValidationError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
const [result] = await M.match<
|
|
153
|
-
components.
|
|
153
|
+
components.TxResponse,
|
|
154
154
|
| errors.HTTPValidationError
|
|
155
155
|
| APIError
|
|
156
156
|
| SDKValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| RequestTimeoutError
|
|
161
161
|
| ConnectionError
|
|
162
162
|
>(
|
|
163
|
-
M.json(200, components.
|
|
163
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
164
164
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
|
@@ -41,7 +41,7 @@ export function morphoWithdrawCollateral(
|
|
|
41
41
|
options?: RequestOptions,
|
|
42
42
|
): APIPromise<
|
|
43
43
|
Result<
|
|
44
|
-
components.
|
|
44
|
+
components.TxResponse,
|
|
45
45
|
| errors.HTTPValidationError
|
|
46
46
|
| APIError
|
|
47
47
|
| SDKValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
components.
|
|
69
|
+
components.TxResponse,
|
|
70
70
|
| errors.HTTPValidationError
|
|
71
71
|
| APIError
|
|
72
72
|
| 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"),
|
package/src/funcs/skyBuy.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function skyBuy(
|
|
|
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"),
|
package/src/funcs/skyDeposit.ts
CHANGED
|
@@ -38,7 +38,7 @@ export function skyDeposit(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
components.
|
|
41
|
+
components.TxResponse,
|
|
42
42
|
| errors.HTTPValidationError
|
|
43
43
|
| APIError
|
|
44
44
|
| SDKValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
components.
|
|
66
|
+
components.TxResponse,
|
|
67
67
|
| errors.HTTPValidationError
|
|
68
68
|
| APIError
|
|
69
69
|
| SDKValidationError
|
|
@@ -142,7 +142,7 @@ async function $do(
|
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
const [result] = await M.match<
|
|
145
|
-
components.
|
|
145
|
+
components.TxResponse,
|
|
146
146
|
| errors.HTTPValidationError
|
|
147
147
|
| APIError
|
|
148
148
|
| SDKValidationError
|
|
@@ -152,7 +152,7 @@ async function $do(
|
|
|
152
152
|
| RequestTimeoutError
|
|
153
153
|
| ConnectionError
|
|
154
154
|
>(
|
|
155
|
-
M.json(200, components.
|
|
155
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
156
156
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
157
157
|
M.fail("4XX"),
|
|
158
158
|
M.fail("5XX"),
|
package/src/funcs/skySell.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function skySell(
|
|
|
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"),
|
package/src/funcs/skyWithdraw.ts
CHANGED
|
@@ -36,7 +36,7 @@ export function skyWithdraw(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
components.
|
|
39
|
+
components.TxResponse,
|
|
40
40
|
| errors.HTTPValidationError
|
|
41
41
|
| APIError
|
|
42
42
|
| SDKValidationError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
components.
|
|
64
|
+
components.TxResponse,
|
|
65
65
|
| errors.HTTPValidationError
|
|
66
66
|
| APIError
|
|
67
67
|
| SDKValidationError
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
components.
|
|
143
|
+
components.TxResponse,
|
|
144
144
|
| errors.HTTPValidationError
|
|
145
145
|
| APIError
|
|
146
146
|
| SDKValidationError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
| RequestTimeoutError
|
|
151
151
|
| ConnectionError
|
|
152
152
|
>(
|
|
153
|
-
M.json(200, components.
|
|
153
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
154
154
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
155
155
|
M.fail("4XX"),
|
|
156
156
|
M.fail("5XX"),
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { CompassApiSDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get Smart Account Batched User Operations
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Generate a list of user operations for smart account batching.
|
|
32
|
+
*/
|
|
33
|
+
export function smartAccountAccountBatchedUserOperations(
|
|
34
|
+
client: CompassApiSDKCore,
|
|
35
|
+
request: components.BatchedUserOperationsRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
components.BatchedUserOperationsResponse,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| APIError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: CompassApiSDKCore,
|
|
59
|
+
request: components.BatchedUserOperationsRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
components.BatchedUserOperationsResponse,
|
|
65
|
+
| errors.HTTPValidationError
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value) =>
|
|
80
|
+
components.BatchedUserOperationsRequest$outboundSchema.parse(value),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed.ok) {
|
|
84
|
+
return [parsed, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload = parsed.value;
|
|
87
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
88
|
+
|
|
89
|
+
const path = pathToFunc("/v0/smart_account/batched_user_operations")();
|
|
90
|
+
|
|
91
|
+
const headers = new Headers(compactMap({
|
|
92
|
+
"Content-Type": "application/json",
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
97
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
98
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
+
|
|
100
|
+
const context = {
|
|
101
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
|
+
operationID: "smart_account_batched_user_operations",
|
|
103
|
+
oAuth2Scopes: [],
|
|
104
|
+
|
|
105
|
+
resolvedSecurity: requestSecurity,
|
|
106
|
+
|
|
107
|
+
securitySource: client._options.apiKeyAuth,
|
|
108
|
+
retryConfig: options?.retries
|
|
109
|
+
|| client._options.retryConfig
|
|
110
|
+
|| { strategy: "none" },
|
|
111
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const requestRes = client._createRequest(context, {
|
|
115
|
+
security: requestSecurity,
|
|
116
|
+
method: "POST",
|
|
117
|
+
baseURL: options?.serverURL,
|
|
118
|
+
path: path,
|
|
119
|
+
headers: headers,
|
|
120
|
+
body: body,
|
|
121
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
122
|
+
}, options);
|
|
123
|
+
if (!requestRes.ok) {
|
|
124
|
+
return [requestRes, { status: "invalid" }];
|
|
125
|
+
}
|
|
126
|
+
const req = requestRes.value;
|
|
127
|
+
|
|
128
|
+
const doResult = await client._do(req, {
|
|
129
|
+
context,
|
|
130
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
131
|
+
retryConfig: context.retryConfig,
|
|
132
|
+
retryCodes: context.retryCodes,
|
|
133
|
+
});
|
|
134
|
+
if (!doResult.ok) {
|
|
135
|
+
return [doResult, { status: "request-error", request: req }];
|
|
136
|
+
}
|
|
137
|
+
const response = doResult.value;
|
|
138
|
+
|
|
139
|
+
const responseFields = {
|
|
140
|
+
HttpMeta: { Response: response, Request: req },
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const [result] = await M.match<
|
|
144
|
+
components.BatchedUserOperationsResponse,
|
|
145
|
+
| errors.HTTPValidationError
|
|
146
|
+
| APIError
|
|
147
|
+
| SDKValidationError
|
|
148
|
+
| UnexpectedClientError
|
|
149
|
+
| InvalidRequestError
|
|
150
|
+
| RequestAbortedError
|
|
151
|
+
| RequestTimeoutError
|
|
152
|
+
| ConnectionError
|
|
153
|
+
>(
|
|
154
|
+
M.json(200, components.BatchedUserOperationsResponse$inboundSchema),
|
|
155
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
156
|
+
M.fail("4XX"),
|
|
157
|
+
M.fail("5XX"),
|
|
158
|
+
)(response, { extraFields: responseFields });
|
|
159
|
+
if (!result.ok) {
|
|
160
|
+
return [result, { status: "complete", request: req, response }];
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return [result, { status: "complete", request: req, response }];
|
|
164
|
+
}
|
|
@@ -36,7 +36,7 @@ export function tokenTransfer(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
components.
|
|
39
|
+
components.TxResponse,
|
|
40
40
|
| errors.HTTPValidationError
|
|
41
41
|
| APIError
|
|
42
42
|
| SDKValidationError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
components.
|
|
64
|
+
components.TxResponse,
|
|
65
65
|
| errors.HTTPValidationError
|
|
66
66
|
| APIError
|
|
67
67
|
| SDKValidationError
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
components.
|
|
143
|
+
components.TxResponse,
|
|
144
144
|
| errors.HTTPValidationError
|
|
145
145
|
| APIError
|
|
146
146
|
| SDKValidationError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
| RequestTimeoutError
|
|
151
151
|
| ConnectionError
|
|
152
152
|
>(
|
|
153
|
-
M.json(200, components.
|
|
153
|
+
M.json(200, components.TxResponse$inboundSchema),
|
|
154
154
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
155
155
|
M.fail("4XX"),
|
|
156
156
|
M.fail("5XX"),
|
|
@@ -44,7 +44,7 @@ export function uniswapV3LiquidityProvisionIncrease(
|
|
|
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"),
|