@compass-labs/api-sdk 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/bin/mcp-server.js +720 -418
- package/bin/mcp-server.js.map +55 -56
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +27 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +126 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.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/transactionBatchingAaveLoop.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/{models/components/action.js → mcp-server/tools/transactionBatchingAaveLoop.js} +35 -27
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts +92 -5
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js +121 -6
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.d.ts +109 -0
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavelooprequest.js +132 -0
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -0
- package/dist/commonjs/models/components/borrow.d.ts +69 -12
- package/dist/commonjs/models/components/borrow.d.ts.map +1 -1
- package/dist/commonjs/models/components/borrow.js +39 -13
- package/dist/commonjs/models/components/borrow.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -4
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -4
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/liquidationcall.d.ts +32 -14
- package/dist/commonjs/models/components/liquidationcall.d.ts.map +1 -1
- package/dist/commonjs/models/components/liquidationcall.js +23 -14
- package/dist/commonjs/models/components/liquidationcall.js.map +1 -1
- package/dist/commonjs/models/components/morphoborrowrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphoborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphoborrowrequest.js +22 -4
- package/dist/commonjs/models/components/morphoborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphodepositrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphodepositrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphodepositrequest.js +22 -4
- package/dist/commonjs/models/components/morphodepositrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphorepayrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphorepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphorepayrequest.js +22 -4
- package/dist/commonjs/models/components/morphorepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.js +22 -4
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/morphosupplycollateralrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphosupplycollateralrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphosupplycollateralrequest.js +22 -4
- package/dist/commonjs/models/components/morphosupplycollateralrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.js +22 -4
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphowithdrawrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawrequest.js +22 -4
- package/dist/commonjs/models/components/morphowithdrawrequest.js.map +1 -1
- package/dist/commonjs/models/components/redeemunderlying.d.ts +32 -4
- package/dist/commonjs/models/components/redeemunderlying.d.ts.map +1 -1
- package/dist/commonjs/models/components/redeemunderlying.js +14 -4
- package/dist/commonjs/models/components/redeemunderlying.js.map +1 -1
- package/dist/commonjs/models/components/repay.d.ts +29 -4
- package/dist/commonjs/models/components/repay.d.ts.map +1 -1
- package/dist/commonjs/models/components/repay.js +14 -4
- package/dist/commonjs/models/components/repay.js.map +1 -1
- package/dist/commonjs/models/components/reserve.d.ts +25 -3
- package/dist/commonjs/models/components/reserve.d.ts.map +1 -1
- package/dist/commonjs/models/components/reserve.js +9 -4
- package/dist/commonjs/models/components/reserve.js.map +1 -1
- package/dist/commonjs/models/components/supply.d.ts +32 -4
- package/dist/commonjs/models/components/supply.d.ts.map +1 -1
- package/dist/commonjs/models/components/supply.js +14 -4
- package/dist/commonjs/models/components/supply.js.map +1 -1
- package/dist/commonjs/models/components/swapborrowrate.d.ts +27 -8
- package/dist/commonjs/models/components/swapborrowrate.d.ts.map +1 -1
- package/dist/commonjs/models/components/swapborrowrate.js +18 -8
- package/dist/commonjs/models/components/swapborrowrate.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +15 -15
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +18 -20
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +15 -15
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +18 -20
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.d.ts +26 -4
- package/dist/commonjs/models/components/usageascollateral.d.ts.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.js +14 -4
- package/dist/commonjs/models/components/usageascollateral.js.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +9 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +7 -6
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aaverate.d.ts +1 -6
- package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaverate.js.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts +1 -6
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.d.ts +1 -6
- package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +4 -6
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +3 -0
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +13 -6
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +3 -0
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/genericens.d.ts +3 -0
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +3 -0
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +3 -0
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +8 -14
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js +1 -5
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +8 -14
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +1 -5
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +8 -14
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js +1 -5
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +7 -16
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +3 -7
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/skyposition.d.ts +3 -0
- package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/skyposition.js.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.d.ts +1 -6
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.d.ts +9 -0
- package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.d.ts +1 -6
- package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +3 -17
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +9 -17
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +9 -17
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.d.ts +17 -0
- package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.js +20 -0
- package/dist/commonjs/sdk/transactionbatching.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +27 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js +90 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.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/transactionBatchingAaveLoop.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +38 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts +92 -5
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js +118 -5
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
- package/dist/esm/models/components/aavelooprequest.d.ts +109 -0
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -0
- package/dist/esm/models/components/aavelooprequest.js +92 -0
- package/dist/esm/models/components/aavelooprequest.js.map +1 -0
- package/dist/esm/models/components/borrow.d.ts +69 -12
- package/dist/esm/models/components/borrow.d.ts.map +1 -1
- package/dist/esm/models/components/borrow.js +38 -12
- package/dist/esm/models/components/borrow.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -4
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -4
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/liquidationcall.d.ts +32 -14
- package/dist/esm/models/components/liquidationcall.d.ts.map +1 -1
- package/dist/esm/models/components/liquidationcall.js +23 -14
- package/dist/esm/models/components/liquidationcall.js.map +1 -1
- package/dist/esm/models/components/morphoborrowrequest.d.ts +27 -5
- package/dist/esm/models/components/morphoborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphoborrowrequest.js +21 -3
- package/dist/esm/models/components/morphoborrowrequest.js.map +1 -1
- package/dist/esm/models/components/morphodepositrequest.d.ts +27 -5
- package/dist/esm/models/components/morphodepositrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphodepositrequest.js +21 -3
- package/dist/esm/models/components/morphodepositrequest.js.map +1 -1
- package/dist/esm/models/components/morphorepayrequest.d.ts +27 -5
- package/dist/esm/models/components/morphorepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphorepayrequest.js +21 -3
- package/dist/esm/models/components/morphorepayrequest.js.map +1 -1
- package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts +27 -5
- package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphosetvaultallowancerequest.js +21 -3
- package/dist/esm/models/components/morphosetvaultallowancerequest.js.map +1 -1
- package/dist/esm/models/components/morphosupplycollateralrequest.d.ts +27 -5
- package/dist/esm/models/components/morphosupplycollateralrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphosupplycollateralrequest.js +21 -3
- package/dist/esm/models/components/morphosupplycollateralrequest.js.map +1 -1
- package/dist/esm/models/components/morphowithdrawcollateralrequest.d.ts +27 -5
- package/dist/esm/models/components/morphowithdrawcollateralrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphowithdrawcollateralrequest.js +21 -3
- package/dist/esm/models/components/morphowithdrawcollateralrequest.js.map +1 -1
- package/dist/esm/models/components/morphowithdrawrequest.d.ts +27 -5
- package/dist/esm/models/components/morphowithdrawrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphowithdrawrequest.js +21 -3
- package/dist/esm/models/components/morphowithdrawrequest.js.map +1 -1
- package/dist/esm/models/components/redeemunderlying.d.ts +32 -4
- package/dist/esm/models/components/redeemunderlying.d.ts.map +1 -1
- package/dist/esm/models/components/redeemunderlying.js +14 -4
- package/dist/esm/models/components/redeemunderlying.js.map +1 -1
- package/dist/esm/models/components/repay.d.ts +29 -4
- package/dist/esm/models/components/repay.d.ts.map +1 -1
- package/dist/esm/models/components/repay.js +14 -4
- package/dist/esm/models/components/repay.js.map +1 -1
- package/dist/esm/models/components/reserve.d.ts +25 -3
- package/dist/esm/models/components/reserve.d.ts.map +1 -1
- package/dist/esm/models/components/reserve.js +9 -4
- package/dist/esm/models/components/reserve.js.map +1 -1
- package/dist/esm/models/components/supply.d.ts +32 -4
- package/dist/esm/models/components/supply.d.ts.map +1 -1
- package/dist/esm/models/components/supply.js +14 -4
- package/dist/esm/models/components/supply.js.map +1 -1
- package/dist/esm/models/components/swapborrowrate.d.ts +27 -8
- package/dist/esm/models/components/swapborrowrate.d.ts.map +1 -1
- package/dist/esm/models/components/swapborrowrate.js +18 -8
- package/dist/esm/models/components/swapborrowrate.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +15 -15
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.js +15 -17
- package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +15 -15
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js +15 -17
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/esm/models/components/usageascollateral.d.ts +26 -4
- package/dist/esm/models/components/usageascollateral.d.ts.map +1 -1
- package/dist/esm/models/components/usageascollateral.js +14 -4
- package/dist/esm/models/components/usageascollateral.js.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +9 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +7 -6
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aaverate.d.ts +1 -6
- package/dist/esm/models/operations/aaverate.d.ts.map +1 -1
- package/dist/esm/models/operations/aaverate.js.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.d.ts +1 -6
- package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.d.ts +1 -6
- package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +4 -6
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +3 -0
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +13 -6
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +3 -0
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/genericens.d.ts +3 -0
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +3 -0
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +3 -0
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +8 -14
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js +1 -5
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +8 -14
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +1 -5
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +8 -14
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js +1 -5
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +7 -16
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +3 -7
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/skyposition.d.ts +3 -0
- package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
- package/dist/esm/models/operations/skyposition.js.map +1 -1
- package/dist/esm/models/operations/tokenaddress.d.ts +1 -6
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/tokenbalance.d.ts +9 -0
- package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/tokenprice.d.ts +1 -6
- package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +3 -17
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +9 -17
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +9 -17
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/sdk/transactionbatching.d.ts +17 -0
- package/dist/esm/sdk/transactionbatching.d.ts.map +1 -1
- package/dist/esm/sdk/transactionbatching.js +20 -0
- package/dist/esm/sdk/transactionbatching.js.map +1 -1
- package/docs/sdks/aavev3/README.md +14 -14
- package/docs/sdks/aerodromeslipstream/README.md +30 -30
- package/docs/sdks/morpho/README.md +16 -30
- package/docs/sdks/sky/README.md +2 -2
- package/docs/sdks/token/README.md +2 -2
- package/docs/sdks/transactionbatching/README.md +128 -16
- package/docs/sdks/uniswapv3/README.md +28 -28
- package/docs/sdks/universal/README.md +4 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/transactionBatchingAaveLoop.ts +173 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +47 -0
- package/src/models/components/aavehistoricaltransactionsresponse.ts +275 -13
- package/src/models/components/aavelooprequest.ts +219 -0
- package/src/models/components/borrow.ts +87 -24
- package/src/models/components/index.ts +1 -4
- package/src/models/components/liquidationcall.ts +58 -35
- package/src/models/components/morphoborrowrequest.ts +33 -7
- package/src/models/components/morphodepositrequest.ts +33 -7
- package/src/models/components/morphorepayrequest.ts +33 -7
- package/src/models/components/morphosetvaultallowancerequest.ts +35 -7
- package/src/models/components/morphosupplycollateralrequest.ts +34 -7
- package/src/models/components/morphowithdrawcollateralrequest.ts +36 -7
- package/src/models/components/morphowithdrawrequest.ts +33 -7
- package/src/models/components/redeemunderlying.ts +46 -8
- package/src/models/components/repay.ts +43 -8
- package/src/models/components/reserve.ts +37 -7
- package/src/models/components/supply.ts +46 -8
- package/src/models/components/swapborrowrate.ts +45 -16
- package/src/models/components/uniswapbuyexactlyparams.ts +26 -28
- package/src/models/components/uniswapbuyexactlyrequest.ts +26 -29
- package/src/models/components/usageascollateral.ts +40 -8
- package/src/models/operations/aavehistoricaltransactions.ts +9 -0
- package/src/models/operations/aaveliquiditychange.ts +7 -6
- package/src/models/operations/aaverate.ts +1 -6
- package/src/models/operations/aavereserveoverview.ts +1 -6
- package/src/models/operations/aavetokenprice.ts +1 -6
- package/src/models/operations/aaveuserpositionpertoken.ts +4 -6
- package/src/models/operations/aaveuserpositionsummary.ts +3 -0
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/aerodromeslipstreampoolprice.ts +5 -12
- package/src/models/operations/genericallowance.ts +13 -6
- package/src/models/operations/genericens.ts +3 -0
- package/src/models/operations/genericportfolio.ts +3 -0
- package/src/models/operations/genericvisualizeportfolio.ts +3 -0
- package/src/models/operations/morphomarketposition.ts +6 -10
- package/src/models/operations/morphomarkets.ts +6 -10
- package/src/models/operations/morphovaultposition.ts +6 -10
- package/src/models/operations/morphovaults.ts +7 -14
- package/src/models/operations/skyposition.ts +3 -0
- package/src/models/operations/tokenaddress.ts +1 -6
- package/src/models/operations/tokenbalance.ts +9 -0
- package/src/models/operations/tokenprice.ts +1 -6
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +3 -0
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/uniswappoolprice.ts +3 -17
- package/src/models/operations/uniswapquotebuyexactly.ts +9 -17
- package/src/models/operations/uniswapquotesellexactly.ts +9 -17
- package/src/sdk/transactionbatching.ts +28 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts +0 -57
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts.map +0 -1
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.js +0 -97
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.js.map +0 -1
- package/dist/commonjs/models/components/action.d.ts +0 -43
- package/dist/commonjs/models/components/action.d.ts.map +0 -1
- package/dist/commonjs/models/components/action.js.map +0 -1
- package/dist/commonjs/models/components/collateralreserve.d.ts +0 -31
- package/dist/commonjs/models/components/collateralreserve.d.ts.map +0 -1
- package/dist/commonjs/models/components/collateralreserve.js +0 -71
- package/dist/commonjs/models/components/collateralreserve.js.map +0 -1
- package/dist/commonjs/models/components/principalreserve.d.ts +0 -31
- package/dist/commonjs/models/components/principalreserve.d.ts.map +0 -1
- package/dist/commonjs/models/components/principalreserve.js +0 -71
- package/dist/commonjs/models/components/principalreserve.js.map +0 -1
- package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts +0 -57
- package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts.map +0 -1
- package/dist/esm/models/components/aavehistoricaltransactionbase.js +0 -59
- package/dist/esm/models/components/aavehistoricaltransactionbase.js.map +0 -1
- package/dist/esm/models/components/action.d.ts +0 -43
- package/dist/esm/models/components/action.d.ts.map +0 -1
- package/dist/esm/models/components/action.js +0 -30
- package/dist/esm/models/components/action.js.map +0 -1
- package/dist/esm/models/components/collateralreserve.d.ts +0 -31
- package/dist/esm/models/components/collateralreserve.d.ts.map +0 -1
- package/dist/esm/models/components/collateralreserve.js +0 -33
- package/dist/esm/models/components/collateralreserve.js.map +0 -1
- package/dist/esm/models/components/principalreserve.d.ts +0 -31
- package/dist/esm/models/components/principalreserve.d.ts.map +0 -1
- package/dist/esm/models/components/principalreserve.js +0 -33
- package/dist/esm/models/components/principalreserve.js.map +0 -1
- package/src/models/components/aavehistoricaltransactionbase.ts +0 -155
- package/src/models/components/action.ts +0 -36
- package/src/models/components/collateralreserve.ts +0 -70
- package/src/models/components/principalreserve.ts +0 -70
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
/**
|
|
23
23
|
* The amount of the token to swap to
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type UniswapBuyExactlyRequestAmount = number | string;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Request model for buying exactly an amount of tokens.
|
|
@@ -57,7 +57,7 @@ export type UniswapBuyExactlyRequest = {
|
|
|
57
57
|
/**
|
|
58
58
|
* The amount of the token to swap to
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
amount: number | string;
|
|
61
61
|
/**
|
|
62
62
|
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
63
63
|
*/
|
|
@@ -77,53 +77,52 @@ export type UniswapBuyExactlyRequest = {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
/** @internal */
|
|
80
|
-
export const
|
|
81
|
-
|
|
80
|
+
export const UniswapBuyExactlyRequestAmount$inboundSchema: z.ZodType<
|
|
81
|
+
UniswapBuyExactlyRequestAmount,
|
|
82
82
|
z.ZodTypeDef,
|
|
83
83
|
unknown
|
|
84
84
|
> = z.union([z.number(), z.string()]);
|
|
85
85
|
|
|
86
86
|
/** @internal */
|
|
87
|
-
export type
|
|
87
|
+
export type UniswapBuyExactlyRequestAmount$Outbound = number | string;
|
|
88
88
|
|
|
89
89
|
/** @internal */
|
|
90
|
-
export const
|
|
91
|
-
|
|
90
|
+
export const UniswapBuyExactlyRequestAmount$outboundSchema: z.ZodType<
|
|
91
|
+
UniswapBuyExactlyRequestAmount$Outbound,
|
|
92
92
|
z.ZodTypeDef,
|
|
93
|
-
|
|
93
|
+
UniswapBuyExactlyRequestAmount
|
|
94
94
|
> = z.union([z.number(), z.string()]);
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* @internal
|
|
98
98
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
99
|
*/
|
|
100
|
-
export namespace
|
|
101
|
-
/** @deprecated use `
|
|
102
|
-
export const inboundSchema =
|
|
103
|
-
/** @deprecated use `
|
|
104
|
-
export const outboundSchema =
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export type Outbound = UniswapBuyExactlyRequestAmountOut$Outbound;
|
|
100
|
+
export namespace UniswapBuyExactlyRequestAmount$ {
|
|
101
|
+
/** @deprecated use `UniswapBuyExactlyRequestAmount$inboundSchema` instead. */
|
|
102
|
+
export const inboundSchema = UniswapBuyExactlyRequestAmount$inboundSchema;
|
|
103
|
+
/** @deprecated use `UniswapBuyExactlyRequestAmount$outboundSchema` instead. */
|
|
104
|
+
export const outboundSchema = UniswapBuyExactlyRequestAmount$outboundSchema;
|
|
105
|
+
/** @deprecated use `UniswapBuyExactlyRequestAmount$Outbound` instead. */
|
|
106
|
+
export type Outbound = UniswapBuyExactlyRequestAmount$Outbound;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
export function
|
|
111
|
-
|
|
109
|
+
export function uniswapBuyExactlyRequestAmountToJSON(
|
|
110
|
+
uniswapBuyExactlyRequestAmount: UniswapBuyExactlyRequestAmount,
|
|
112
111
|
): string {
|
|
113
112
|
return JSON.stringify(
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
UniswapBuyExactlyRequestAmount$outboundSchema.parse(
|
|
114
|
+
uniswapBuyExactlyRequestAmount,
|
|
116
115
|
),
|
|
117
116
|
);
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
export function
|
|
119
|
+
export function uniswapBuyExactlyRequestAmountFromJSON(
|
|
121
120
|
jsonString: string,
|
|
122
|
-
): SafeParseResult<
|
|
121
|
+
): SafeParseResult<UniswapBuyExactlyRequestAmount, SDKValidationError> {
|
|
123
122
|
return safeParse(
|
|
124
123
|
jsonString,
|
|
125
|
-
(x) =>
|
|
126
|
-
`Failed to parse '
|
|
124
|
+
(x) => UniswapBuyExactlyRequestAmount$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'UniswapBuyExactlyRequestAmount' from JSON`,
|
|
127
126
|
);
|
|
128
127
|
}
|
|
129
128
|
|
|
@@ -136,7 +135,7 @@ export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
|
|
|
136
135
|
token_in: TokenEnum$inboundSchema,
|
|
137
136
|
token_out: TokenEnum$inboundSchema,
|
|
138
137
|
fee: FeeEnum$inboundSchema,
|
|
139
|
-
|
|
138
|
+
amount: z.union([z.number(), z.string()]),
|
|
140
139
|
max_slippage_percent: z.number(),
|
|
141
140
|
wrap_eth: z.boolean().default(false),
|
|
142
141
|
chain: Chain$inboundSchema,
|
|
@@ -145,7 +144,6 @@ export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
|
|
|
145
144
|
return remap$(v, {
|
|
146
145
|
"token_in": "tokenIn",
|
|
147
146
|
"token_out": "tokenOut",
|
|
148
|
-
"amount_out": "amountOut",
|
|
149
147
|
"max_slippage_percent": "maxSlippagePercent",
|
|
150
148
|
"wrap_eth": "wrapEth",
|
|
151
149
|
});
|
|
@@ -156,7 +154,7 @@ export type UniswapBuyExactlyRequest$Outbound = {
|
|
|
156
154
|
token_in: string;
|
|
157
155
|
token_out: string;
|
|
158
156
|
fee: string;
|
|
159
|
-
|
|
157
|
+
amount: number | string;
|
|
160
158
|
max_slippage_percent: number;
|
|
161
159
|
wrap_eth: boolean;
|
|
162
160
|
chain: string;
|
|
@@ -172,7 +170,7 @@ export const UniswapBuyExactlyRequest$outboundSchema: z.ZodType<
|
|
|
172
170
|
tokenIn: TokenEnum$outboundSchema,
|
|
173
171
|
tokenOut: TokenEnum$outboundSchema,
|
|
174
172
|
fee: FeeEnum$outboundSchema,
|
|
175
|
-
|
|
173
|
+
amount: z.union([z.number(), z.string()]),
|
|
176
174
|
maxSlippagePercent: z.number(),
|
|
177
175
|
wrapEth: z.boolean().default(false),
|
|
178
176
|
chain: Chain$outboundSchema,
|
|
@@ -181,7 +179,6 @@ export const UniswapBuyExactlyRequest$outboundSchema: z.ZodType<
|
|
|
181
179
|
return remap$(v, {
|
|
182
180
|
tokenIn: "token_in",
|
|
183
181
|
tokenOut: "token_out",
|
|
184
|
-
amountOut: "amount_out",
|
|
185
182
|
maxSlippagePercent: "max_slippage_percent",
|
|
186
183
|
wrapEth: "wrap_eth",
|
|
187
184
|
});
|
|
@@ -14,9 +14,26 @@ import {
|
|
|
14
14
|
} from "./reserve.js";
|
|
15
15
|
|
|
16
16
|
export type UsageAsCollateral = {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The id of a historical transaction on aave
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Timestamp in unix time
|
|
23
|
+
*/
|
|
24
|
+
timestamp: number;
|
|
25
|
+
/**
|
|
26
|
+
* Transaction hash. You can paste these into the search bar on etherscan
|
|
27
|
+
*/
|
|
28
|
+
txHash: string;
|
|
29
|
+
fromState: boolean;
|
|
30
|
+
toState: boolean;
|
|
19
31
|
reserve: Reserve;
|
|
32
|
+
/**
|
|
33
|
+
* The type of transaction
|
|
34
|
+
*/
|
|
35
|
+
action?: "UsageAsCollateral" | undefined;
|
|
36
|
+
block: number;
|
|
20
37
|
};
|
|
21
38
|
|
|
22
39
|
/** @internal */
|
|
@@ -25,16 +42,26 @@ export const UsageAsCollateral$inboundSchema: z.ZodType<
|
|
|
25
42
|
z.ZodTypeDef,
|
|
26
43
|
unknown
|
|
27
44
|
> = z.object({
|
|
28
|
-
|
|
29
|
-
|
|
45
|
+
id: z.string(),
|
|
46
|
+
timestamp: z.number().int(),
|
|
47
|
+
txHash: z.string(),
|
|
48
|
+
fromState: z.boolean(),
|
|
49
|
+
toState: z.boolean(),
|
|
30
50
|
reserve: Reserve$inboundSchema,
|
|
51
|
+
action: z.literal("UsageAsCollateral").optional(),
|
|
52
|
+
block: z.number().int(),
|
|
31
53
|
});
|
|
32
54
|
|
|
33
55
|
/** @internal */
|
|
34
56
|
export type UsageAsCollateral$Outbound = {
|
|
35
|
-
|
|
36
|
-
|
|
57
|
+
id: string;
|
|
58
|
+
timestamp: number;
|
|
59
|
+
txHash: string;
|
|
60
|
+
fromState: boolean;
|
|
61
|
+
toState: boolean;
|
|
37
62
|
reserve: Reserve$Outbound;
|
|
63
|
+
action: "UsageAsCollateral";
|
|
64
|
+
block: number;
|
|
38
65
|
};
|
|
39
66
|
|
|
40
67
|
/** @internal */
|
|
@@ -43,9 +70,14 @@ export const UsageAsCollateral$outboundSchema: z.ZodType<
|
|
|
43
70
|
z.ZodTypeDef,
|
|
44
71
|
UsageAsCollateral
|
|
45
72
|
> = z.object({
|
|
46
|
-
|
|
47
|
-
|
|
73
|
+
id: z.string(),
|
|
74
|
+
timestamp: z.number().int(),
|
|
75
|
+
txHash: z.string(),
|
|
76
|
+
fromState: z.boolean(),
|
|
77
|
+
toState: z.boolean(),
|
|
48
78
|
reserve: Reserve$outboundSchema,
|
|
79
|
+
action: z.literal("UsageAsCollateral").default("UsageAsCollateral" as const),
|
|
80
|
+
block: z.number().int(),
|
|
49
81
|
});
|
|
50
82
|
|
|
51
83
|
/**
|
|
@@ -25,12 +25,21 @@ export type AaveHistoricalTransactionsChain = ClosedEnum<
|
|
|
25
25
|
>;
|
|
26
26
|
|
|
27
27
|
export type AaveHistoricalTransactionsRequest = {
|
|
28
|
+
/**
|
|
29
|
+
* The offset of the first item to return.
|
|
30
|
+
*/
|
|
28
31
|
offset?: number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The number of items to return.
|
|
34
|
+
*/
|
|
29
35
|
limit?: number | undefined;
|
|
30
36
|
/**
|
|
31
37
|
* The chain to use.
|
|
32
38
|
*/
|
|
33
39
|
chain?: AaveHistoricalTransactionsChain | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The address of the user to get historical transactions for.
|
|
42
|
+
*/
|
|
34
43
|
userAddress?: string | undefined;
|
|
35
44
|
};
|
|
36
45
|
|
|
@@ -96,15 +96,16 @@ export type AaveLiquidityChangeRequest = {
|
|
|
96
96
|
*/
|
|
97
97
|
chain?: AaveLiquidityChangeChain | undefined;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
*
|
|
103
|
-
* This class is used to represent the token in the system. Notice individual
|
|
104
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
99
|
+
* The symbol of the asset to get liquidity change for..
|
|
105
100
|
*/
|
|
106
101
|
token?: AaveLiquidityChangeToken | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* The start block to calculate liquidity change from.
|
|
104
|
+
*/
|
|
107
105
|
startBlock?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The end block to calculate liquidity change to.
|
|
108
|
+
*/
|
|
108
109
|
endBlock?: number | undefined;
|
|
109
110
|
};
|
|
110
111
|
|
|
@@ -91,12 +91,7 @@ export type AaveRateRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: AaveRateChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the asset to fetch the users' position on..
|
|
100
95
|
*/
|
|
101
96
|
token?: AaveRateToken | undefined;
|
|
102
97
|
};
|
|
@@ -95,12 +95,7 @@ export type AaveReserveOverviewRequest = {
|
|
|
95
95
|
*/
|
|
96
96
|
chain?: AaveReserveOverviewChain | undefined;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @remarks
|
|
101
|
-
*
|
|
102
|
-
* This class is used to represent the token in the system. Notice individual
|
|
103
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
98
|
+
* The symbol of the asset..
|
|
104
99
|
*/
|
|
105
100
|
token?: AaveReserveOverviewToken | undefined;
|
|
106
101
|
};
|
|
@@ -91,12 +91,7 @@ export type AaveTokenPriceRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: AaveTokenPriceChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the asset whose price you want..
|
|
100
95
|
*/
|
|
101
96
|
token?: AaveTokenPriceToken | undefined;
|
|
102
97
|
};
|
|
@@ -94,14 +94,12 @@ export type AaveUserPositionPerTokenRequest = {
|
|
|
94
94
|
* The chain to use.
|
|
95
95
|
*/
|
|
96
96
|
chain?: AaveUserPositionPerTokenChain | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The user to fetch the token-specific position of.
|
|
99
|
+
*/
|
|
97
100
|
user?: string | undefined;
|
|
98
101
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
*
|
|
103
|
-
* This class is used to represent the token in the system. Notice individual
|
|
104
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
102
|
+
* The symbol of the asset to fetch the user's position on..
|
|
105
103
|
*/
|
|
106
104
|
token?: AaveUserPositionPerTokenToken | undefined;
|
|
107
105
|
};
|
|
@@ -28,6 +28,9 @@ export type AerodromeSlipstreamLiquidityProvisionPositionsRequest = {
|
|
|
28
28
|
* The chain to use.
|
|
29
29
|
*/
|
|
30
30
|
chain?: AerodromeSlipstreamLiquidityProvisionPositionsChain | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The user to get positions for.
|
|
33
|
+
*/
|
|
31
34
|
user?: string | undefined;
|
|
32
35
|
};
|
|
33
36
|
|
|
@@ -162,23 +162,16 @@ export type AerodromeSlipstreamPoolPriceRequest = {
|
|
|
162
162
|
*/
|
|
163
163
|
chain?: AerodromeSlipstreamPoolPriceChain | undefined;
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* @remarks
|
|
168
|
-
*
|
|
169
|
-
* This class is used to represent the token in the system. Notice individual
|
|
170
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
165
|
+
* The symbol of a token in the pool.
|
|
171
166
|
*/
|
|
172
167
|
tokenIn?: AerodromeSlipstreamPoolPriceTokenInToken | undefined;
|
|
173
168
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* @remarks
|
|
177
|
-
*
|
|
178
|
-
* This class is used to represent the token in the system. Notice individual
|
|
179
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
169
|
+
* The symbol of a token in the pool.
|
|
180
170
|
*/
|
|
181
171
|
tokenOut?: AerodromeSlipstreamPoolPriceTokenOutToken | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The tick spacing of the pool
|
|
174
|
+
*/
|
|
182
175
|
tickSpacing?: number | undefined;
|
|
183
176
|
};
|
|
184
177
|
|
|
@@ -86,6 +86,9 @@ export const GenericAllowanceToken = {
|
|
|
86
86
|
*/
|
|
87
87
|
export type GenericAllowanceToken = ClosedEnum<typeof GenericAllowanceToken>;
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* The name of the contract to check allowance for.
|
|
91
|
+
*/
|
|
89
92
|
export const ContractName = {
|
|
90
93
|
AaveV3Pool: "AaveV3Pool",
|
|
91
94
|
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
@@ -99,6 +102,9 @@ export const ContractName = {
|
|
|
99
102
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
100
103
|
SkyUsdsVault: "SkyUsdsVault",
|
|
101
104
|
} as const;
|
|
105
|
+
/**
|
|
106
|
+
* The name of the contract to check allowance for.
|
|
107
|
+
*/
|
|
102
108
|
export type ContractName = ClosedEnum<typeof ContractName>;
|
|
103
109
|
|
|
104
110
|
export type GenericAllowanceRequest = {
|
|
@@ -106,16 +112,17 @@ export type GenericAllowanceRequest = {
|
|
|
106
112
|
* The chain to use.
|
|
107
113
|
*/
|
|
108
114
|
chain?: GenericAllowanceChain | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The user to get the ERC20 allowance of.
|
|
117
|
+
*/
|
|
109
118
|
user?: string | undefined;
|
|
110
119
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* @remarks
|
|
114
|
-
*
|
|
115
|
-
* This class is used to represent the token in the system. Notice individual
|
|
116
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
120
|
+
* The symbol of the token for which the allowance is checked..
|
|
117
121
|
*/
|
|
118
122
|
token?: GenericAllowanceToken | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The name of the contract to check allowance for.
|
|
125
|
+
*/
|
|
119
126
|
contractName?: ContractName | undefined;
|
|
120
127
|
};
|
|
121
128
|
|
|
@@ -9,27 +9,23 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* The chain to use.
|
|
14
|
-
*/
|
|
15
12
|
export const MorphoMarketPositionChain = {
|
|
16
|
-
BaseMainnet: "base:mainnet",
|
|
17
13
|
EthereumMainnet: "ethereum:mainnet",
|
|
18
|
-
|
|
14
|
+
BaseMainnet: "base:mainnet",
|
|
19
15
|
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* The chain to use.
|
|
22
|
-
*/
|
|
23
16
|
export type MorphoMarketPositionChain = ClosedEnum<
|
|
24
17
|
typeof MorphoMarketPositionChain
|
|
25
18
|
>;
|
|
26
19
|
|
|
27
20
|
export type MorphoMarketPositionRequest = {
|
|
21
|
+
chain?: MorphoMarketPositionChain | undefined;
|
|
28
22
|
/**
|
|
29
|
-
* The
|
|
23
|
+
* The user address of the desired market position.
|
|
30
24
|
*/
|
|
31
|
-
chain?: MorphoMarketPositionChain | undefined;
|
|
32
25
|
userAddress?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
28
|
+
*/
|
|
33
29
|
uniqueMarketKey?: string | undefined;
|
|
34
30
|
};
|
|
35
31
|
|
|
@@ -9,25 +9,21 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* The chain to use.
|
|
14
|
-
*/
|
|
15
12
|
export const MorphoMarketsChain = {
|
|
16
|
-
BaseMainnet: "base:mainnet",
|
|
17
13
|
EthereumMainnet: "ethereum:mainnet",
|
|
18
|
-
|
|
14
|
+
BaseMainnet: "base:mainnet",
|
|
19
15
|
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* The chain to use.
|
|
22
|
-
*/
|
|
23
16
|
export type MorphoMarketsChain = ClosedEnum<typeof MorphoMarketsChain>;
|
|
24
17
|
|
|
25
18
|
export type MorphoMarketsRequest = {
|
|
19
|
+
chain?: MorphoMarketsChain | undefined;
|
|
26
20
|
/**
|
|
27
|
-
*
|
|
21
|
+
* Collateral token to identify the market.
|
|
28
22
|
*/
|
|
29
|
-
chain?: MorphoMarketsChain | undefined;
|
|
30
23
|
collateralToken?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Loan token to identify the market.
|
|
26
|
+
*/
|
|
31
27
|
loanToken?: string | null | undefined;
|
|
32
28
|
};
|
|
33
29
|
|
|
@@ -9,27 +9,23 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* The chain to use.
|
|
14
|
-
*/
|
|
15
12
|
export const MorphoVaultPositionChain = {
|
|
16
|
-
BaseMainnet: "base:mainnet",
|
|
17
13
|
EthereumMainnet: "ethereum:mainnet",
|
|
18
|
-
|
|
14
|
+
BaseMainnet: "base:mainnet",
|
|
19
15
|
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* The chain to use.
|
|
22
|
-
*/
|
|
23
16
|
export type MorphoVaultPositionChain = ClosedEnum<
|
|
24
17
|
typeof MorphoVaultPositionChain
|
|
25
18
|
>;
|
|
26
19
|
|
|
27
20
|
export type MorphoVaultPositionRequest = {
|
|
21
|
+
chain?: MorphoVaultPositionChain | undefined;
|
|
28
22
|
/**
|
|
29
|
-
* The
|
|
23
|
+
* The user address of the desired vault position.
|
|
30
24
|
*/
|
|
31
|
-
chain?: MorphoVaultPositionChain | undefined;
|
|
32
25
|
userAddress?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The vault address of the desired vault position.
|
|
28
|
+
*/
|
|
33
29
|
vaultAddress?: string | undefined;
|
|
34
30
|
};
|
|
35
31
|
|
|
@@ -9,25 +9,18 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* The chain to use.
|
|
14
|
-
*/
|
|
15
12
|
export const MorphoVaultsChain = {
|
|
16
|
-
BaseMainnet: "base:mainnet",
|
|
17
13
|
EthereumMainnet: "ethereum:mainnet",
|
|
18
|
-
|
|
14
|
+
BaseMainnet: "base:mainnet",
|
|
19
15
|
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* The chain to use.
|
|
22
|
-
*/
|
|
23
16
|
export type MorphoVaultsChain = ClosedEnum<typeof MorphoVaultsChain>;
|
|
24
17
|
|
|
25
18
|
export type MorphoVaultsRequest = {
|
|
19
|
+
chain?: MorphoVaultsChain | undefined;
|
|
26
20
|
/**
|
|
27
|
-
*
|
|
21
|
+
* Token address that will filter vaults by this deposit token.
|
|
28
22
|
*/
|
|
29
|
-
|
|
30
|
-
depositToken: string | null;
|
|
23
|
+
depositToken?: string | null | undefined;
|
|
31
24
|
};
|
|
32
25
|
|
|
33
26
|
/** @internal */
|
|
@@ -58,7 +51,7 @@ export const MorphoVaultsRequest$inboundSchema: z.ZodType<
|
|
|
58
51
|
unknown
|
|
59
52
|
> = z.object({
|
|
60
53
|
chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
|
|
61
|
-
deposit_token: z.nullable(z.string()),
|
|
54
|
+
deposit_token: z.nullable(z.string()).optional(),
|
|
62
55
|
}).transform((v) => {
|
|
63
56
|
return remap$(v, {
|
|
64
57
|
"deposit_token": "depositToken",
|
|
@@ -68,7 +61,7 @@ export const MorphoVaultsRequest$inboundSchema: z.ZodType<
|
|
|
68
61
|
/** @internal */
|
|
69
62
|
export type MorphoVaultsRequest$Outbound = {
|
|
70
63
|
chain: string;
|
|
71
|
-
deposit_token
|
|
64
|
+
deposit_token?: string | null | undefined;
|
|
72
65
|
};
|
|
73
66
|
|
|
74
67
|
/** @internal */
|
|
@@ -78,7 +71,7 @@ export const MorphoVaultsRequest$outboundSchema: z.ZodType<
|
|
|
78
71
|
MorphoVaultsRequest
|
|
79
72
|
> = z.object({
|
|
80
73
|
chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
|
|
81
|
-
depositToken: z.nullable(z.string()),
|
|
74
|
+
depositToken: z.nullable(z.string()).optional(),
|
|
82
75
|
}).transform((v) => {
|
|
83
76
|
return remap$(v, {
|
|
84
77
|
depositToken: "deposit_token",
|
|
@@ -10,6 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type SkyPositionRequest = {
|
|
12
12
|
chain?: "ethereum:mainnet" | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The user address of the desired position.
|
|
15
|
+
*/
|
|
13
16
|
userAddress?: string | undefined;
|
|
14
17
|
};
|
|
15
18
|
|
|
@@ -91,12 +91,7 @@ export type TokenAddressRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: TokenAddressChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The token symbol to get the address for..
|
|
100
95
|
*/
|
|
101
96
|
token?: TokenAddressToken | undefined;
|
|
102
97
|
};
|
|
@@ -22,6 +22,9 @@ export const TokenBalanceChain = {
|
|
|
22
22
|
*/
|
|
23
23
|
export type TokenBalanceChain = ClosedEnum<typeof TokenBalanceChain>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The symbol of the token for which the balance is checked..
|
|
27
|
+
*/
|
|
25
28
|
export type TokenBalanceToken = components.TokenEnum | string;
|
|
26
29
|
|
|
27
30
|
export type TokenBalanceRequest = {
|
|
@@ -29,7 +32,13 @@ export type TokenBalanceRequest = {
|
|
|
29
32
|
* The chain to use.
|
|
30
33
|
*/
|
|
31
34
|
chain?: TokenBalanceChain | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The user to get the ERC20 balance of.
|
|
37
|
+
*/
|
|
32
38
|
user?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The symbol of the token for which the balance is checked..
|
|
41
|
+
*/
|
|
33
42
|
token: components.TokenEnum | string;
|
|
34
43
|
};
|
|
35
44
|
|
|
@@ -91,12 +91,7 @@ export type TokenPriceRequest = {
|
|
|
91
91
|
*/
|
|
92
92
|
chain?: TokenPriceChain | undefined;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
*
|
|
98
|
-
* This class is used to represent the token in the system. Notice individual
|
|
99
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
94
|
+
* The symbol of the token for which to get the price.
|
|
100
95
|
*/
|
|
101
96
|
token?: TokenPriceToken | undefined;
|
|
102
97
|
};
|