@compass-labs/api-sdk 0.0.16 → 0.0.17
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 +3 -1
- package/bin/mcp-server.js +998 -472
- package/bin/mcp-server.js.map +52 -36
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts +23 -0
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js +128 -0
- package/dist/commonjs/funcs/aaveV3HistoricalTransactions.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- 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/aaveV3HistoricalTransactions.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.js +69 -0
- package/dist/commonjs/mcp-server/tools/aaveV3HistoricalTransactions.js.map +1 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts +57 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.js +97 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.js.map +1 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts +39 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js +76 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js.map +1 -0
- package/dist/commonjs/models/components/action.d.ts +43 -0
- package/dist/commonjs/models/components/action.d.ts.map +1 -0
- package/dist/commonjs/models/components/action.js +66 -0
- package/dist/commonjs/models/components/action.js.map +1 -0
- package/dist/commonjs/models/components/borrow.d.ts +42 -0
- package/dist/commonjs/models/components/borrow.d.ts.map +1 -0
- package/dist/commonjs/models/components/borrow.js +83 -0
- package/dist/commonjs/models/components/borrow.js.map +1 -0
- package/dist/commonjs/models/components/chain.d.ts +9 -0
- package/dist/commonjs/models/components/chain.d.ts.map +1 -1
- package/dist/commonjs/models/components/chain.js +3 -0
- package/dist/commonjs/models/components/chain.js.map +1 -1
- package/dist/commonjs/models/components/collateralreserve.d.ts +31 -0
- package/dist/commonjs/models/components/collateralreserve.d.ts.map +1 -0
- package/dist/commonjs/models/components/collateralreserve.js +71 -0
- package/dist/commonjs/models/components/collateralreserve.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +13 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +13 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/liquidationcall.d.ts +41 -0
- package/dist/commonjs/models/components/liquidationcall.d.ts.map +1 -0
- package/dist/commonjs/models/components/liquidationcall.js +81 -0
- package/dist/commonjs/models/components/liquidationcall.js.map +1 -0
- package/dist/commonjs/models/components/principalreserve.d.ts +31 -0
- package/dist/commonjs/models/components/principalreserve.d.ts.map +1 -0
- package/dist/commonjs/models/components/principalreserve.js +71 -0
- package/dist/commonjs/models/components/principalreserve.js.map +1 -0
- package/dist/commonjs/models/components/redeemunderlying.d.ts +34 -0
- package/dist/commonjs/models/components/redeemunderlying.d.ts.map +1 -0
- package/dist/commonjs/models/components/redeemunderlying.js +74 -0
- package/dist/commonjs/models/components/redeemunderlying.js.map +1 -0
- package/dist/commonjs/models/components/repay.d.ts +34 -0
- package/dist/commonjs/models/components/repay.d.ts.map +1 -0
- package/dist/commonjs/models/components/repay.js +75 -0
- package/dist/commonjs/models/components/repay.js.map +1 -0
- package/dist/commonjs/models/components/reserve.d.ts +31 -0
- package/dist/commonjs/models/components/reserve.d.ts.map +1 -0
- package/dist/commonjs/models/components/reserve.js +71 -0
- package/dist/commonjs/models/components/reserve.js.map +1 -0
- package/dist/commonjs/models/components/supply.d.ts +34 -0
- package/dist/commonjs/models/components/supply.d.ts.map +1 -0
- package/dist/commonjs/models/components/supply.js +75 -0
- package/dist/commonjs/models/components/supply.js.map +1 -0
- package/dist/commonjs/models/components/swapborrowrate.d.ts +38 -0
- package/dist/commonjs/models/components/swapborrowrate.d.ts.map +1 -0
- package/dist/commonjs/models/components/swapborrowrate.js +78 -0
- package/dist/commonjs/models/components/swapborrowrate.js.map +1 -0
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +3 -27
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +5 -28
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +3 -27
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +5 -28
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts +18 -42
- package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapsellexactlyparams.js +22 -47
- package/dist/commonjs/models/components/uniswapsellexactlyparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapsellexactlyrequest.d.ts +18 -42
- package/dist/commonjs/models/components/uniswapsellexactlyrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapsellexactlyrequest.js +22 -47
- package/dist/commonjs/models/components/uniswapsellexactlyrequest.js.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.d.ts +34 -0
- package/dist/commonjs/models/components/usageascollateral.d.ts.map +1 -0
- package/dist/commonjs/models/components/usageascollateral.js +74 -0
- package/dist/commonjs/models/components/usageascollateral.js.map +1 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +82 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js +110 -0
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -0
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +9 -0
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js +3 -0
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.d.ts +9 -0
- package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.js +3 -0
- package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +9 -0
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js +3 -0
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +9 -0
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js +3 -0
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +9 -0
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +3 -0
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +9 -0
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js +3 -0
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +9 -0
- 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 +9 -0
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js +3 -0
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +9 -0
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js +3 -0
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts +9 -0
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.js +3 -0
- package/dist/commonjs/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +9 -0
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js +3 -0
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +9 -0
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js +3 -0
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +9 -0
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +3 -0
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +9 -0
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js +3 -0
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +9 -0
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +3 -0
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.d.ts +9 -0
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js +3 -0
- 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 +3 -0
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.d.ts +9 -0
- package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.js +3 -0
- package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +9 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +9 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js +3 -0
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +9 -0
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js +3 -0
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +9 -0
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js +3 -0
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +9 -0
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js +3 -0
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +12 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +15 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts +23 -0
- package/dist/esm/funcs/aaveV3HistoricalTransactions.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js +92 -0
- package/dist/esm/funcs/aaveV3HistoricalTransactions.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/config.js.map +1 -1
- 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/aaveV3HistoricalTransactions.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.js +33 -0
- package/dist/esm/mcp-server/tools/aaveV3HistoricalTransactions.js.map +1 -0
- package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts +57 -0
- package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts.map +1 -0
- package/dist/esm/models/components/aavehistoricaltransactionbase.js +59 -0
- package/dist/esm/models/components/aavehistoricaltransactionbase.js.map +1 -0
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts +39 -0
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js +38 -0
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js.map +1 -0
- package/dist/esm/models/components/action.d.ts +43 -0
- package/dist/esm/models/components/action.d.ts.map +1 -0
- package/dist/esm/models/components/action.js +30 -0
- package/dist/esm/models/components/action.js.map +1 -0
- package/dist/esm/models/components/borrow.d.ts +42 -0
- package/dist/esm/models/components/borrow.d.ts.map +1 -0
- package/dist/esm/models/components/borrow.js +45 -0
- package/dist/esm/models/components/borrow.js.map +1 -0
- package/dist/esm/models/components/chain.d.ts +9 -0
- package/dist/esm/models/components/chain.d.ts.map +1 -1
- package/dist/esm/models/components/chain.js +3 -0
- package/dist/esm/models/components/chain.js.map +1 -1
- package/dist/esm/models/components/collateralreserve.d.ts +31 -0
- package/dist/esm/models/components/collateralreserve.d.ts.map +1 -0
- package/dist/esm/models/components/collateralreserve.js +33 -0
- package/dist/esm/models/components/collateralreserve.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +13 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +13 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/liquidationcall.d.ts +41 -0
- package/dist/esm/models/components/liquidationcall.d.ts.map +1 -0
- package/dist/esm/models/components/liquidationcall.js +43 -0
- package/dist/esm/models/components/liquidationcall.js.map +1 -0
- package/dist/esm/models/components/principalreserve.d.ts +31 -0
- package/dist/esm/models/components/principalreserve.d.ts.map +1 -0
- package/dist/esm/models/components/principalreserve.js +33 -0
- package/dist/esm/models/components/principalreserve.js.map +1 -0
- package/dist/esm/models/components/redeemunderlying.d.ts +34 -0
- package/dist/esm/models/components/redeemunderlying.d.ts.map +1 -0
- package/dist/esm/models/components/redeemunderlying.js +36 -0
- package/dist/esm/models/components/redeemunderlying.js.map +1 -0
- package/dist/esm/models/components/repay.d.ts +34 -0
- package/dist/esm/models/components/repay.d.ts.map +1 -0
- package/dist/esm/models/components/repay.js +37 -0
- package/dist/esm/models/components/repay.js.map +1 -0
- package/dist/esm/models/components/reserve.d.ts +31 -0
- package/dist/esm/models/components/reserve.d.ts.map +1 -0
- package/dist/esm/models/components/reserve.js +33 -0
- package/dist/esm/models/components/reserve.js.map +1 -0
- package/dist/esm/models/components/supply.d.ts +34 -0
- package/dist/esm/models/components/supply.d.ts.map +1 -0
- package/dist/esm/models/components/supply.js +37 -0
- package/dist/esm/models/components/supply.js.map +1 -0
- package/dist/esm/models/components/swapborrowrate.d.ts +38 -0
- package/dist/esm/models/components/swapborrowrate.d.ts.map +1 -0
- package/dist/esm/models/components/swapborrowrate.js +40 -0
- package/dist/esm/models/components/swapborrowrate.js.map +1 -0
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +3 -27
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.js +4 -25
- package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +3 -27
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js +4 -25
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/esm/models/components/uniswapsellexactlyparams.d.ts +18 -42
- package/dist/esm/models/components/uniswapsellexactlyparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapsellexactlyparams.js +19 -42
- package/dist/esm/models/components/uniswapsellexactlyparams.js.map +1 -1
- package/dist/esm/models/components/uniswapsellexactlyrequest.d.ts +18 -42
- package/dist/esm/models/components/uniswapsellexactlyrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapsellexactlyrequest.js +19 -42
- package/dist/esm/models/components/uniswapsellexactlyrequest.js.map +1 -1
- package/dist/esm/models/components/usageascollateral.d.ts +34 -0
- package/dist/esm/models/components/usageascollateral.d.ts.map +1 -0
- package/dist/esm/models/components/usageascollateral.js +36 -0
- package/dist/esm/models/components/usageascollateral.js.map +1 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +82 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.js +72 -0
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -0
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +9 -0
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js +3 -0
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.d.ts +9 -0
- package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.js +3 -0
- package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +9 -0
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js +3 -0
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +9 -0
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js +3 -0
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +9 -0
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +3 -0
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +9 -0
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js +3 -0
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +9 -0
- 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 +9 -0
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js +3 -0
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +9 -0
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js +3 -0
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.d.ts +9 -0
- package/dist/esm/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.js +3 -0
- package/dist/esm/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +9 -0
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js +3 -0
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +9 -0
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js +3 -0
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +9 -0
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +3 -0
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +9 -0
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js +3 -0
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +9 -0
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +3 -0
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/tokenaddress.d.ts +9 -0
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js +3 -0
- 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 +3 -0
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/tokenprice.d.ts +9 -0
- package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenprice.js +3 -0
- package/dist/esm/models/operations/tokenprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +9 -0
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +9 -0
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js +3 -0
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +9 -0
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js +3 -0
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +9 -0
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js +3 -0
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +9 -0
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js +3 -0
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +12 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +15 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +85 -0
- package/docs/sdks/transactionbatching/README.md +2 -2
- package/docs/sdks/uniswapv3/README.md +6 -6
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3HistoricalTransactions.ts +177 -0
- package/src/lib/config.ts +4 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/aaveV3HistoricalTransactions.ts +42 -0
- package/src/models/components/aavehistoricaltransactionbase.ts +155 -0
- package/src/models/components/aavehistoricaltransactionsresponse.ts +91 -0
- package/src/models/components/action.ts +36 -0
- package/src/models/components/borrow.ts +89 -0
- package/src/models/components/chain.ts +3 -0
- package/src/models/components/collateralreserve.ts +70 -0
- package/src/models/components/index.ts +13 -0
- package/src/models/components/liquidationcall.ts +96 -0
- package/src/models/components/principalreserve.ts +70 -0
- package/src/models/components/redeemunderlying.ts +80 -0
- package/src/models/components/repay.ts +73 -0
- package/src/models/components/reserve.ts +63 -0
- package/src/models/components/supply.ts +73 -0
- package/src/models/components/swapborrowrate.ts +84 -0
- package/src/models/components/uniswapbuyexactlyparams.ts +7 -66
- package/src/models/components/uniswapbuyexactlyrequest.ts +7 -71
- package/src/models/components/uniswapsellexactlyparams.ts +33 -99
- package/src/models/components/uniswapsellexactlyrequest.ts +33 -103
- package/src/models/components/usageascollateral.ts +80 -0
- package/src/models/operations/aavehistoricaltransactions.ts +139 -0
- package/src/models/operations/aaveliquiditychange.ts +3 -0
- package/src/models/operations/aavetokenprice.ts +3 -0
- package/src/models/operations/aaveuserpositionpertoken.ts +3 -0
- package/src/models/operations/aaveuserpositionsummary.ts +3 -0
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/aerodromeslipstreampoolprice.ts +3 -0
- package/src/models/operations/genericallowance.ts +3 -0
- package/src/models/operations/genericens.ts +3 -0
- package/src/models/operations/genericportfolio.ts +3 -0
- package/src/models/operations/genericsupportedtokens.ts +3 -0
- package/src/models/operations/genericvisualizeportfolio.ts +3 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/morphomarketposition.ts +3 -0
- package/src/models/operations/morphomarkets.ts +3 -0
- package/src/models/operations/morphovaultposition.ts +3 -0
- package/src/models/operations/morphovaults.ts +3 -0
- package/src/models/operations/tokenaddress.ts +3 -0
- package/src/models/operations/tokenbalance.ts +3 -0
- package/src/models/operations/tokenprice.ts +3 -0
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +3 -0
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +3 -0
- package/src/models/operations/uniswappoolprice.ts +3 -0
- package/src/models/operations/uniswapquotebuyexactly.ts +3 -0
- package/src/models/operations/uniswapquotesellexactly.ts +3 -0
- package/src/sdk/aavev3.ts +23 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34180,14 +34180,14 @@ var ServerList, SDK_METADATA;
|
|
|
34180
34180
|
var init_config = __esm(() => {
|
|
34181
34181
|
init_url();
|
|
34182
34182
|
ServerList = [
|
|
34183
|
-
"
|
|
34183
|
+
"http://0.0.0.0:80"
|
|
34184
34184
|
];
|
|
34185
34185
|
SDK_METADATA = {
|
|
34186
34186
|
language: "typescript",
|
|
34187
34187
|
openapiDocVersion: "0.0.1",
|
|
34188
|
-
sdkVersion: "0.0.
|
|
34188
|
+
sdkVersion: "0.0.17",
|
|
34189
34189
|
genVersion: "2.597.9",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.17 2.597.9 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -35632,7 +35632,10 @@ var init_chain = __esm(() => {
|
|
|
35632
35632
|
Chain = {
|
|
35633
35633
|
BaseMainnet: "base:mainnet",
|
|
35634
35634
|
EthereumMainnet: "ethereum:mainnet",
|
|
35635
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
35635
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
35636
|
+
EthereumLocal: "ethereum:local",
|
|
35637
|
+
ArbitrumLocal: "arbitrum:local",
|
|
35638
|
+
BaseLocal: "base:local"
|
|
35636
35639
|
};
|
|
35637
35640
|
Chain$inboundSchema = nativeEnumType(Chain);
|
|
35638
35641
|
Chain$outboundSchema = Chain$inboundSchema;
|
|
@@ -35688,6 +35691,314 @@ var init_aaveborrowrequest = __esm(() => {
|
|
|
35688
35691
|
})(AaveBorrowRequest$ ||= {});
|
|
35689
35692
|
});
|
|
35690
35693
|
|
|
35694
|
+
// src/models/components/action.ts
|
|
35695
|
+
var Action, Action$inboundSchema, Action$outboundSchema, Action$;
|
|
35696
|
+
var init_action = __esm(() => {
|
|
35697
|
+
init_lib();
|
|
35698
|
+
Action = {
|
|
35699
|
+
Supply: "supply",
|
|
35700
|
+
RedeemUnderlying: "redeemUnderlying",
|
|
35701
|
+
Borrow: "borrow",
|
|
35702
|
+
UsageAsCollateral: "usageAsCollateral",
|
|
35703
|
+
Repay: "repay",
|
|
35704
|
+
SwapBorrowRate: "swapBorrowRate",
|
|
35705
|
+
LiquidationCall: "liquidationCall"
|
|
35706
|
+
};
|
|
35707
|
+
Action$inboundSchema = nativeEnumType(Action);
|
|
35708
|
+
Action$outboundSchema = Action$inboundSchema;
|
|
35709
|
+
((Action$) => {
|
|
35710
|
+
Action$.inboundSchema = Action$inboundSchema;
|
|
35711
|
+
Action$.outboundSchema = Action$outboundSchema;
|
|
35712
|
+
})(Action$ ||= {});
|
|
35713
|
+
});
|
|
35714
|
+
|
|
35715
|
+
// src/models/components/reserve.ts
|
|
35716
|
+
var Reserve$inboundSchema, Reserve$outboundSchema, Reserve$;
|
|
35717
|
+
var init_reserve = __esm(() => {
|
|
35718
|
+
init_lib();
|
|
35719
|
+
Reserve$inboundSchema = objectType({
|
|
35720
|
+
symbol: stringType(),
|
|
35721
|
+
decimals: numberType().int()
|
|
35722
|
+
});
|
|
35723
|
+
Reserve$outboundSchema = objectType({
|
|
35724
|
+
symbol: stringType(),
|
|
35725
|
+
decimals: numberType().int()
|
|
35726
|
+
});
|
|
35727
|
+
((Reserve$) => {
|
|
35728
|
+
Reserve$.inboundSchema = Reserve$inboundSchema;
|
|
35729
|
+
Reserve$.outboundSchema = Reserve$outboundSchema;
|
|
35730
|
+
})(Reserve$ ||= {});
|
|
35731
|
+
});
|
|
35732
|
+
|
|
35733
|
+
// src/models/components/borrow.ts
|
|
35734
|
+
var Borrow$inboundSchema, Borrow$outboundSchema, Borrow$;
|
|
35735
|
+
var init_borrow = __esm(() => {
|
|
35736
|
+
init_lib();
|
|
35737
|
+
init_reserve();
|
|
35738
|
+
Borrow$inboundSchema = objectType({
|
|
35739
|
+
amount: stringType(),
|
|
35740
|
+
borrowRateMode: stringType(),
|
|
35741
|
+
borrowRate: stringType(),
|
|
35742
|
+
stableTokenDebt: stringType(),
|
|
35743
|
+
variableTokenDebt: stringType(),
|
|
35744
|
+
reserve: Reserve$inboundSchema,
|
|
35745
|
+
assetPriceUSD: stringType()
|
|
35746
|
+
});
|
|
35747
|
+
Borrow$outboundSchema = objectType({
|
|
35748
|
+
amount: stringType(),
|
|
35749
|
+
borrowRateMode: stringType(),
|
|
35750
|
+
borrowRate: stringType(),
|
|
35751
|
+
stableTokenDebt: stringType(),
|
|
35752
|
+
variableTokenDebt: stringType(),
|
|
35753
|
+
reserve: Reserve$outboundSchema,
|
|
35754
|
+
assetPriceUSD: stringType()
|
|
35755
|
+
});
|
|
35756
|
+
((Borrow$) => {
|
|
35757
|
+
Borrow$.inboundSchema = Borrow$inboundSchema;
|
|
35758
|
+
Borrow$.outboundSchema = Borrow$outboundSchema;
|
|
35759
|
+
})(Borrow$ ||= {});
|
|
35760
|
+
});
|
|
35761
|
+
|
|
35762
|
+
// src/models/components/collateralreserve.ts
|
|
35763
|
+
var CollateralReserve$inboundSchema, CollateralReserve$outboundSchema, CollateralReserve$;
|
|
35764
|
+
var init_collateralreserve = __esm(() => {
|
|
35765
|
+
init_lib();
|
|
35766
|
+
CollateralReserve$inboundSchema = objectType({
|
|
35767
|
+
symbol: stringType(),
|
|
35768
|
+
decimals: numberType().int()
|
|
35769
|
+
});
|
|
35770
|
+
CollateralReserve$outboundSchema = objectType({
|
|
35771
|
+
symbol: stringType(),
|
|
35772
|
+
decimals: numberType().int()
|
|
35773
|
+
});
|
|
35774
|
+
((CollateralReserve$) => {
|
|
35775
|
+
CollateralReserve$.inboundSchema = CollateralReserve$inboundSchema;
|
|
35776
|
+
CollateralReserve$.outboundSchema = CollateralReserve$outboundSchema;
|
|
35777
|
+
})(CollateralReserve$ ||= {});
|
|
35778
|
+
});
|
|
35779
|
+
|
|
35780
|
+
// src/models/components/principalreserve.ts
|
|
35781
|
+
var PrincipalReserve$inboundSchema, PrincipalReserve$outboundSchema, PrincipalReserve$;
|
|
35782
|
+
var init_principalreserve = __esm(() => {
|
|
35783
|
+
init_lib();
|
|
35784
|
+
PrincipalReserve$inboundSchema = objectType({
|
|
35785
|
+
symbol: stringType(),
|
|
35786
|
+
decimals: numberType().int()
|
|
35787
|
+
});
|
|
35788
|
+
PrincipalReserve$outboundSchema = objectType({
|
|
35789
|
+
symbol: stringType(),
|
|
35790
|
+
decimals: numberType().int()
|
|
35791
|
+
});
|
|
35792
|
+
((PrincipalReserve$) => {
|
|
35793
|
+
PrincipalReserve$.inboundSchema = PrincipalReserve$inboundSchema;
|
|
35794
|
+
PrincipalReserve$.outboundSchema = PrincipalReserve$outboundSchema;
|
|
35795
|
+
})(PrincipalReserve$ ||= {});
|
|
35796
|
+
});
|
|
35797
|
+
|
|
35798
|
+
// src/models/components/liquidationcall.ts
|
|
35799
|
+
var LiquidationCall$inboundSchema, LiquidationCall$outboundSchema, LiquidationCall$;
|
|
35800
|
+
var init_liquidationcall = __esm(() => {
|
|
35801
|
+
init_lib();
|
|
35802
|
+
init_collateralreserve();
|
|
35803
|
+
init_principalreserve();
|
|
35804
|
+
LiquidationCall$inboundSchema = objectType({
|
|
35805
|
+
collateralAmount: stringType(),
|
|
35806
|
+
collateralReserve: CollateralReserve$inboundSchema,
|
|
35807
|
+
principalAmount: stringType(),
|
|
35808
|
+
principalReserve: PrincipalReserve$inboundSchema,
|
|
35809
|
+
collateralAssetPriceUSD: stringType(),
|
|
35810
|
+
borrowAssetPriceUSD: stringType()
|
|
35811
|
+
});
|
|
35812
|
+
LiquidationCall$outboundSchema = objectType({
|
|
35813
|
+
collateralAmount: stringType(),
|
|
35814
|
+
collateralReserve: CollateralReserve$outboundSchema,
|
|
35815
|
+
principalAmount: stringType(),
|
|
35816
|
+
principalReserve: PrincipalReserve$outboundSchema,
|
|
35817
|
+
collateralAssetPriceUSD: stringType(),
|
|
35818
|
+
borrowAssetPriceUSD: stringType()
|
|
35819
|
+
});
|
|
35820
|
+
((LiquidationCall$) => {
|
|
35821
|
+
LiquidationCall$.inboundSchema = LiquidationCall$inboundSchema;
|
|
35822
|
+
LiquidationCall$.outboundSchema = LiquidationCall$outboundSchema;
|
|
35823
|
+
})(LiquidationCall$ ||= {});
|
|
35824
|
+
});
|
|
35825
|
+
|
|
35826
|
+
// src/models/components/redeemunderlying.ts
|
|
35827
|
+
var RedeemUnderlying$inboundSchema, RedeemUnderlying$outboundSchema, RedeemUnderlying$;
|
|
35828
|
+
var init_redeemunderlying = __esm(() => {
|
|
35829
|
+
init_lib();
|
|
35830
|
+
init_reserve();
|
|
35831
|
+
RedeemUnderlying$inboundSchema = objectType({
|
|
35832
|
+
amount: stringType(),
|
|
35833
|
+
reserve: Reserve$inboundSchema,
|
|
35834
|
+
assetPriceUSD: stringType()
|
|
35835
|
+
});
|
|
35836
|
+
RedeemUnderlying$outboundSchema = objectType({
|
|
35837
|
+
amount: stringType(),
|
|
35838
|
+
reserve: Reserve$outboundSchema,
|
|
35839
|
+
assetPriceUSD: stringType()
|
|
35840
|
+
});
|
|
35841
|
+
((RedeemUnderlying$) => {
|
|
35842
|
+
RedeemUnderlying$.inboundSchema = RedeemUnderlying$inboundSchema;
|
|
35843
|
+
RedeemUnderlying$.outboundSchema = RedeemUnderlying$outboundSchema;
|
|
35844
|
+
})(RedeemUnderlying$ ||= {});
|
|
35845
|
+
});
|
|
35846
|
+
|
|
35847
|
+
// src/models/components/repay.ts
|
|
35848
|
+
var Repay$inboundSchema, Repay$outboundSchema, Repay$;
|
|
35849
|
+
var init_repay = __esm(() => {
|
|
35850
|
+
init_lib();
|
|
35851
|
+
init_reserve();
|
|
35852
|
+
Repay$inboundSchema = objectType({
|
|
35853
|
+
amount: stringType(),
|
|
35854
|
+
reserve: Reserve$inboundSchema,
|
|
35855
|
+
assetPriceUSD: stringType()
|
|
35856
|
+
});
|
|
35857
|
+
Repay$outboundSchema = objectType({
|
|
35858
|
+
amount: stringType(),
|
|
35859
|
+
reserve: Reserve$outboundSchema,
|
|
35860
|
+
assetPriceUSD: stringType()
|
|
35861
|
+
});
|
|
35862
|
+
((Repay$) => {
|
|
35863
|
+
Repay$.inboundSchema = Repay$inboundSchema;
|
|
35864
|
+
Repay$.outboundSchema = Repay$outboundSchema;
|
|
35865
|
+
})(Repay$ ||= {});
|
|
35866
|
+
});
|
|
35867
|
+
|
|
35868
|
+
// src/models/components/supply.ts
|
|
35869
|
+
var Supply$inboundSchema, Supply$outboundSchema, Supply$;
|
|
35870
|
+
var init_supply = __esm(() => {
|
|
35871
|
+
init_lib();
|
|
35872
|
+
init_reserve();
|
|
35873
|
+
Supply$inboundSchema = objectType({
|
|
35874
|
+
amount: stringType(),
|
|
35875
|
+
reserve: Reserve$inboundSchema,
|
|
35876
|
+
assetPriceUSD: stringType()
|
|
35877
|
+
});
|
|
35878
|
+
Supply$outboundSchema = objectType({
|
|
35879
|
+
amount: stringType(),
|
|
35880
|
+
reserve: Reserve$outboundSchema,
|
|
35881
|
+
assetPriceUSD: stringType()
|
|
35882
|
+
});
|
|
35883
|
+
((Supply$) => {
|
|
35884
|
+
Supply$.inboundSchema = Supply$inboundSchema;
|
|
35885
|
+
Supply$.outboundSchema = Supply$outboundSchema;
|
|
35886
|
+
})(Supply$ ||= {});
|
|
35887
|
+
});
|
|
35888
|
+
|
|
35889
|
+
// src/models/components/swapborrowrate.ts
|
|
35890
|
+
var SwapBorrowRate$inboundSchema, SwapBorrowRate$outboundSchema, SwapBorrowRate$;
|
|
35891
|
+
var init_swapborrowrate = __esm(() => {
|
|
35892
|
+
init_lib();
|
|
35893
|
+
init_reserve();
|
|
35894
|
+
SwapBorrowRate$inboundSchema = objectType({
|
|
35895
|
+
borrowRateModeFrom: stringType(),
|
|
35896
|
+
borrowRateModeTo: stringType(),
|
|
35897
|
+
variableBorrowRate: stringType(),
|
|
35898
|
+
stableBorrowRate: stringType(),
|
|
35899
|
+
reserve: Reserve$inboundSchema
|
|
35900
|
+
});
|
|
35901
|
+
SwapBorrowRate$outboundSchema = objectType({
|
|
35902
|
+
borrowRateModeFrom: stringType(),
|
|
35903
|
+
borrowRateModeTo: stringType(),
|
|
35904
|
+
variableBorrowRate: stringType(),
|
|
35905
|
+
stableBorrowRate: stringType(),
|
|
35906
|
+
reserve: Reserve$outboundSchema
|
|
35907
|
+
});
|
|
35908
|
+
((SwapBorrowRate$) => {
|
|
35909
|
+
SwapBorrowRate$.inboundSchema = SwapBorrowRate$inboundSchema;
|
|
35910
|
+
SwapBorrowRate$.outboundSchema = SwapBorrowRate$outboundSchema;
|
|
35911
|
+
})(SwapBorrowRate$ ||= {});
|
|
35912
|
+
});
|
|
35913
|
+
|
|
35914
|
+
// src/models/components/usageascollateral.ts
|
|
35915
|
+
var UsageAsCollateral$inboundSchema, UsageAsCollateral$outboundSchema, UsageAsCollateral$;
|
|
35916
|
+
var init_usageascollateral = __esm(() => {
|
|
35917
|
+
init_lib();
|
|
35918
|
+
init_reserve();
|
|
35919
|
+
UsageAsCollateral$inboundSchema = objectType({
|
|
35920
|
+
fromState: stringType(),
|
|
35921
|
+
toState: stringType(),
|
|
35922
|
+
reserve: Reserve$inboundSchema
|
|
35923
|
+
});
|
|
35924
|
+
UsageAsCollateral$outboundSchema = objectType({
|
|
35925
|
+
fromState: stringType(),
|
|
35926
|
+
toState: stringType(),
|
|
35927
|
+
reserve: Reserve$outboundSchema
|
|
35928
|
+
});
|
|
35929
|
+
((UsageAsCollateral$) => {
|
|
35930
|
+
UsageAsCollateral$.inboundSchema = UsageAsCollateral$inboundSchema;
|
|
35931
|
+
UsageAsCollateral$.outboundSchema = UsageAsCollateral$outboundSchema;
|
|
35932
|
+
})(UsageAsCollateral$ ||= {});
|
|
35933
|
+
});
|
|
35934
|
+
|
|
35935
|
+
// src/models/components/aavehistoricaltransactionbase.ts
|
|
35936
|
+
var AaveHistoricalTransactionBase$inboundSchema, AaveHistoricalTransactionBase$outboundSchema, AaveHistoricalTransactionBase$;
|
|
35937
|
+
var init_aavehistoricaltransactionbase = __esm(() => {
|
|
35938
|
+
init_lib();
|
|
35939
|
+
init_action();
|
|
35940
|
+
init_borrow();
|
|
35941
|
+
init_liquidationcall();
|
|
35942
|
+
init_redeemunderlying();
|
|
35943
|
+
init_repay();
|
|
35944
|
+
init_supply();
|
|
35945
|
+
init_swapborrowrate();
|
|
35946
|
+
init_usageascollateral();
|
|
35947
|
+
AaveHistoricalTransactionBase$inboundSchema = objectType({
|
|
35948
|
+
id: stringType(),
|
|
35949
|
+
timestamp: numberType().int(),
|
|
35950
|
+
txHash: stringType(),
|
|
35951
|
+
action: Action$inboundSchema,
|
|
35952
|
+
supply: nullableType(Supply$inboundSchema).optional(),
|
|
35953
|
+
redeemUnderlying: nullableType(RedeemUnderlying$inboundSchema).optional(),
|
|
35954
|
+
borrow: nullableType(Borrow$inboundSchema).optional(),
|
|
35955
|
+
usageAsCollateral: nullableType(UsageAsCollateral$inboundSchema).optional(),
|
|
35956
|
+
repay: nullableType(Repay$inboundSchema).optional(),
|
|
35957
|
+
swapBorrowRate: nullableType(SwapBorrowRate$inboundSchema).optional(),
|
|
35958
|
+
liquidationCall: nullableType(LiquidationCall$inboundSchema).optional()
|
|
35959
|
+
});
|
|
35960
|
+
AaveHistoricalTransactionBase$outboundSchema = objectType({
|
|
35961
|
+
id: stringType(),
|
|
35962
|
+
timestamp: numberType().int(),
|
|
35963
|
+
txHash: stringType(),
|
|
35964
|
+
action: Action$outboundSchema,
|
|
35965
|
+
supply: nullableType(Supply$outboundSchema).optional(),
|
|
35966
|
+
redeemUnderlying: nullableType(RedeemUnderlying$outboundSchema).optional(),
|
|
35967
|
+
borrow: nullableType(Borrow$outboundSchema).optional(),
|
|
35968
|
+
usageAsCollateral: nullableType(UsageAsCollateral$outboundSchema).optional(),
|
|
35969
|
+
repay: nullableType(Repay$outboundSchema).optional(),
|
|
35970
|
+
swapBorrowRate: nullableType(SwapBorrowRate$outboundSchema).optional(),
|
|
35971
|
+
liquidationCall: nullableType(LiquidationCall$outboundSchema).optional()
|
|
35972
|
+
});
|
|
35973
|
+
((AaveHistoricalTransactionBase$) => {
|
|
35974
|
+
AaveHistoricalTransactionBase$.inboundSchema = AaveHistoricalTransactionBase$inboundSchema;
|
|
35975
|
+
AaveHistoricalTransactionBase$.outboundSchema = AaveHistoricalTransactionBase$outboundSchema;
|
|
35976
|
+
})(AaveHistoricalTransactionBase$ ||= {});
|
|
35977
|
+
});
|
|
35978
|
+
|
|
35979
|
+
// src/models/components/aavehistoricaltransactionsresponse.ts
|
|
35980
|
+
var AaveHistoricalTransactionsResponse$inboundSchema, AaveHistoricalTransactionsResponse$outboundSchema, AaveHistoricalTransactionsResponse$;
|
|
35981
|
+
var init_aavehistoricaltransactionsresponse = __esm(() => {
|
|
35982
|
+
init_lib();
|
|
35983
|
+
init_aavehistoricaltransactionbase();
|
|
35984
|
+
AaveHistoricalTransactionsResponse$inboundSchema = objectType({
|
|
35985
|
+
total: numberType().int(),
|
|
35986
|
+
offset: numberType().int(),
|
|
35987
|
+
limit: numberType().int(),
|
|
35988
|
+
transactions: arrayType(AaveHistoricalTransactionBase$inboundSchema)
|
|
35989
|
+
});
|
|
35990
|
+
AaveHistoricalTransactionsResponse$outboundSchema = objectType({
|
|
35991
|
+
total: numberType().int(),
|
|
35992
|
+
offset: numberType().int(),
|
|
35993
|
+
limit: numberType().int(),
|
|
35994
|
+
transactions: arrayType(AaveHistoricalTransactionBase$outboundSchema)
|
|
35995
|
+
});
|
|
35996
|
+
((AaveHistoricalTransactionsResponse$) => {
|
|
35997
|
+
AaveHistoricalTransactionsResponse$.inboundSchema = AaveHistoricalTransactionsResponse$inboundSchema;
|
|
35998
|
+
AaveHistoricalTransactionsResponse$.outboundSchema = AaveHistoricalTransactionsResponse$outboundSchema;
|
|
35999
|
+
})(AaveHistoricalTransactionsResponse$ ||= {});
|
|
36000
|
+
});
|
|
36001
|
+
|
|
35691
36002
|
// src/models/components/aaveliquiditychangeresponse.ts
|
|
35692
36003
|
var AaveLiquidityChangeResponse$inboundSchema, AaveLiquidityChangeResponse$outboundSchema, AaveLiquidityChangeResponse$;
|
|
35693
36004
|
var init_aaveliquiditychangeresponse = __esm(() => {
|
|
@@ -38167,7 +38478,7 @@ var init_tokentransfererc20params = __esm(() => {
|
|
|
38167
38478
|
});
|
|
38168
38479
|
|
|
38169
38480
|
// src/models/components/uniswapbuyexactlyparams.ts
|
|
38170
|
-
var UniswapBuyExactlyParamsAmountOut$inboundSchema, UniswapBuyExactlyParamsAmountOut$outboundSchema, UniswapBuyExactlyParamsAmountOut$,
|
|
38481
|
+
var UniswapBuyExactlyParamsAmountOut$inboundSchema, UniswapBuyExactlyParamsAmountOut$outboundSchema, UniswapBuyExactlyParamsAmountOut$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
|
|
38171
38482
|
var init_uniswapbuyexactlyparams = __esm(() => {
|
|
38172
38483
|
init_lib();
|
|
38173
38484
|
init_primitives();
|
|
@@ -38179,25 +38490,19 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38179
38490
|
UniswapBuyExactlyParamsAmountOut$.inboundSchema = UniswapBuyExactlyParamsAmountOut$inboundSchema;
|
|
38180
38491
|
UniswapBuyExactlyParamsAmountOut$.outboundSchema = UniswapBuyExactlyParamsAmountOut$outboundSchema;
|
|
38181
38492
|
})(UniswapBuyExactlyParamsAmountOut$ ||= {});
|
|
38182
|
-
UniswapBuyExactlyParamsAmountInMaximum$inboundSchema = unionType([numberType(), stringType()]);
|
|
38183
|
-
UniswapBuyExactlyParamsAmountInMaximum$outboundSchema = unionType([numberType(), stringType()]);
|
|
38184
|
-
((UniswapBuyExactlyParamsAmountInMaximum$) => {
|
|
38185
|
-
UniswapBuyExactlyParamsAmountInMaximum$.inboundSchema = UniswapBuyExactlyParamsAmountInMaximum$inboundSchema;
|
|
38186
|
-
UniswapBuyExactlyParamsAmountInMaximum$.outboundSchema = UniswapBuyExactlyParamsAmountInMaximum$outboundSchema;
|
|
38187
|
-
})(UniswapBuyExactlyParamsAmountInMaximum$ ||= {});
|
|
38188
38493
|
UniswapBuyExactlyParams$inboundSchema = objectType({
|
|
38189
38494
|
token_in: TokenEnum$inboundSchema,
|
|
38190
38495
|
token_out: TokenEnum$inboundSchema,
|
|
38191
38496
|
fee: FeeEnum$inboundSchema,
|
|
38192
38497
|
amount_out: unionType([numberType(), stringType()]),
|
|
38193
|
-
|
|
38498
|
+
max_slippage_percent: numberType(),
|
|
38194
38499
|
wrap_eth: booleanType().default(false)
|
|
38195
38500
|
}).transform((v2) => {
|
|
38196
38501
|
return remap(v2, {
|
|
38197
38502
|
token_in: "tokenIn",
|
|
38198
38503
|
token_out: "tokenOut",
|
|
38199
38504
|
amount_out: "amountOut",
|
|
38200
|
-
|
|
38505
|
+
max_slippage_percent: "maxSlippagePercent",
|
|
38201
38506
|
wrap_eth: "wrapEth"
|
|
38202
38507
|
});
|
|
38203
38508
|
});
|
|
@@ -38206,14 +38511,14 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38206
38511
|
tokenOut: TokenEnum$outboundSchema,
|
|
38207
38512
|
fee: FeeEnum$outboundSchema,
|
|
38208
38513
|
amountOut: unionType([numberType(), stringType()]),
|
|
38209
|
-
|
|
38514
|
+
maxSlippagePercent: numberType(),
|
|
38210
38515
|
wrapEth: booleanType().default(false)
|
|
38211
38516
|
}).transform((v2) => {
|
|
38212
38517
|
return remap(v2, {
|
|
38213
38518
|
tokenIn: "token_in",
|
|
38214
38519
|
tokenOut: "token_out",
|
|
38215
38520
|
amountOut: "amount_out",
|
|
38216
|
-
|
|
38521
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
38217
38522
|
wrapEth: "wrap_eth"
|
|
38218
38523
|
});
|
|
38219
38524
|
});
|
|
@@ -38368,37 +38673,30 @@ var init_uniswapmintliquidityprovisionparams = __esm(() => {
|
|
|
38368
38673
|
});
|
|
38369
38674
|
|
|
38370
38675
|
// src/models/components/uniswapsellexactlyparams.ts
|
|
38371
|
-
var
|
|
38676
|
+
var UniswapSellExactlyParamsAmount$inboundSchema, UniswapSellExactlyParamsAmount$outboundSchema, UniswapSellExactlyParamsAmount$, UniswapSellExactlyParams$inboundSchema, UniswapSellExactlyParams$outboundSchema, UniswapSellExactlyParams$;
|
|
38372
38677
|
var init_uniswapsellexactlyparams = __esm(() => {
|
|
38373
38678
|
init_lib();
|
|
38374
38679
|
init_primitives();
|
|
38375
38680
|
init_feeenum();
|
|
38376
38681
|
init_tokenenum();
|
|
38377
|
-
|
|
38378
|
-
|
|
38379
|
-
((
|
|
38380
|
-
|
|
38381
|
-
|
|
38382
|
-
})(
|
|
38383
|
-
UniswapSellExactlyParamsAmountOutMinimum$inboundSchema = unionType([numberType(), stringType()]);
|
|
38384
|
-
UniswapSellExactlyParamsAmountOutMinimum$outboundSchema = unionType([numberType(), stringType()]);
|
|
38385
|
-
((UniswapSellExactlyParamsAmountOutMinimum$) => {
|
|
38386
|
-
UniswapSellExactlyParamsAmountOutMinimum$.inboundSchema = UniswapSellExactlyParamsAmountOutMinimum$inboundSchema;
|
|
38387
|
-
UniswapSellExactlyParamsAmountOutMinimum$.outboundSchema = UniswapSellExactlyParamsAmountOutMinimum$outboundSchema;
|
|
38388
|
-
})(UniswapSellExactlyParamsAmountOutMinimum$ ||= {});
|
|
38682
|
+
UniswapSellExactlyParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38683
|
+
UniswapSellExactlyParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38684
|
+
((UniswapSellExactlyParamsAmount$) => {
|
|
38685
|
+
UniswapSellExactlyParamsAmount$.inboundSchema = UniswapSellExactlyParamsAmount$inboundSchema;
|
|
38686
|
+
UniswapSellExactlyParamsAmount$.outboundSchema = UniswapSellExactlyParamsAmount$outboundSchema;
|
|
38687
|
+
})(UniswapSellExactlyParamsAmount$ ||= {});
|
|
38389
38688
|
UniswapSellExactlyParams$inboundSchema = objectType({
|
|
38390
38689
|
token_in: TokenEnum$inboundSchema,
|
|
38391
38690
|
token_out: TokenEnum$inboundSchema,
|
|
38392
38691
|
fee: FeeEnum$inboundSchema,
|
|
38393
|
-
|
|
38394
|
-
|
|
38692
|
+
amount: unionType([numberType(), stringType()]),
|
|
38693
|
+
max_slippage_percent: numberType(),
|
|
38395
38694
|
wrap_eth: booleanType().default(false)
|
|
38396
38695
|
}).transform((v2) => {
|
|
38397
38696
|
return remap(v2, {
|
|
38398
38697
|
token_in: "tokenIn",
|
|
38399
38698
|
token_out: "tokenOut",
|
|
38400
|
-
|
|
38401
|
-
amount_out_minimum: "amountOutMinimum",
|
|
38699
|
+
max_slippage_percent: "maxSlippagePercent",
|
|
38402
38700
|
wrap_eth: "wrapEth"
|
|
38403
38701
|
});
|
|
38404
38702
|
});
|
|
@@ -38406,15 +38704,14 @@ var init_uniswapsellexactlyparams = __esm(() => {
|
|
|
38406
38704
|
tokenIn: TokenEnum$outboundSchema,
|
|
38407
38705
|
tokenOut: TokenEnum$outboundSchema,
|
|
38408
38706
|
fee: FeeEnum$outboundSchema,
|
|
38409
|
-
|
|
38410
|
-
|
|
38707
|
+
amount: unionType([numberType(), stringType()]),
|
|
38708
|
+
maxSlippagePercent: numberType(),
|
|
38411
38709
|
wrapEth: booleanType().default(false)
|
|
38412
38710
|
}).transform((v2) => {
|
|
38413
38711
|
return remap(v2, {
|
|
38414
38712
|
tokenIn: "token_in",
|
|
38415
38713
|
tokenOut: "token_out",
|
|
38416
|
-
|
|
38417
|
-
amountOutMinimum: "amount_out_minimum",
|
|
38714
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
38418
38715
|
wrapEth: "wrap_eth"
|
|
38419
38716
|
});
|
|
38420
38717
|
});
|
|
@@ -39182,7 +39479,7 @@ var init_tokentransferrequest = __esm(() => {
|
|
|
39182
39479
|
});
|
|
39183
39480
|
|
|
39184
39481
|
// src/models/components/uniswapbuyexactlyrequest.ts
|
|
39185
|
-
var UniswapBuyExactlyRequestAmountOut$inboundSchema, UniswapBuyExactlyRequestAmountOut$outboundSchema, UniswapBuyExactlyRequestAmountOut$,
|
|
39482
|
+
var UniswapBuyExactlyRequestAmountOut$inboundSchema, UniswapBuyExactlyRequestAmountOut$outboundSchema, UniswapBuyExactlyRequestAmountOut$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
|
|
39186
39483
|
var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
39187
39484
|
init_lib();
|
|
39188
39485
|
init_primitives();
|
|
@@ -39195,18 +39492,12 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
39195
39492
|
UniswapBuyExactlyRequestAmountOut$.inboundSchema = UniswapBuyExactlyRequestAmountOut$inboundSchema;
|
|
39196
39493
|
UniswapBuyExactlyRequestAmountOut$.outboundSchema = UniswapBuyExactlyRequestAmountOut$outboundSchema;
|
|
39197
39494
|
})(UniswapBuyExactlyRequestAmountOut$ ||= {});
|
|
39198
|
-
UniswapBuyExactlyRequestAmountInMaximum$inboundSchema = unionType([numberType(), stringType()]);
|
|
39199
|
-
UniswapBuyExactlyRequestAmountInMaximum$outboundSchema = unionType([numberType(), stringType()]);
|
|
39200
|
-
((UniswapBuyExactlyRequestAmountInMaximum$) => {
|
|
39201
|
-
UniswapBuyExactlyRequestAmountInMaximum$.inboundSchema = UniswapBuyExactlyRequestAmountInMaximum$inboundSchema;
|
|
39202
|
-
UniswapBuyExactlyRequestAmountInMaximum$.outboundSchema = UniswapBuyExactlyRequestAmountInMaximum$outboundSchema;
|
|
39203
|
-
})(UniswapBuyExactlyRequestAmountInMaximum$ ||= {});
|
|
39204
39495
|
UniswapBuyExactlyRequest$inboundSchema = objectType({
|
|
39205
39496
|
token_in: TokenEnum$inboundSchema,
|
|
39206
39497
|
token_out: TokenEnum$inboundSchema,
|
|
39207
39498
|
fee: FeeEnum$inboundSchema,
|
|
39208
39499
|
amount_out: unionType([numberType(), stringType()]),
|
|
39209
|
-
|
|
39500
|
+
max_slippage_percent: numberType(),
|
|
39210
39501
|
wrap_eth: booleanType().default(false),
|
|
39211
39502
|
chain: Chain$inboundSchema,
|
|
39212
39503
|
sender: stringType()
|
|
@@ -39215,7 +39506,7 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
39215
39506
|
token_in: "tokenIn",
|
|
39216
39507
|
token_out: "tokenOut",
|
|
39217
39508
|
amount_out: "amountOut",
|
|
39218
|
-
|
|
39509
|
+
max_slippage_percent: "maxSlippagePercent",
|
|
39219
39510
|
wrap_eth: "wrapEth"
|
|
39220
39511
|
});
|
|
39221
39512
|
});
|
|
@@ -39224,7 +39515,7 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
39224
39515
|
tokenOut: TokenEnum$outboundSchema,
|
|
39225
39516
|
fee: FeeEnum$outboundSchema,
|
|
39226
39517
|
amountOut: unionType([numberType(), stringType()]),
|
|
39227
|
-
|
|
39518
|
+
maxSlippagePercent: numberType(),
|
|
39228
39519
|
wrapEth: booleanType().default(false),
|
|
39229
39520
|
chain: Chain$outboundSchema,
|
|
39230
39521
|
sender: stringType()
|
|
@@ -39233,7 +39524,7 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
39233
39524
|
tokenIn: "token_in",
|
|
39234
39525
|
tokenOut: "token_out",
|
|
39235
39526
|
amountOut: "amount_out",
|
|
39236
|
-
|
|
39527
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
39237
39528
|
wrapEth: "wrap_eth"
|
|
39238
39529
|
});
|
|
39239
39530
|
});
|
|
@@ -39560,31 +39851,25 @@ var init_uniswappoolpriceresponse = __esm(() => {
|
|
|
39560
39851
|
});
|
|
39561
39852
|
|
|
39562
39853
|
// src/models/components/uniswapsellexactlyrequest.ts
|
|
39563
|
-
var
|
|
39854
|
+
var UniswapSellExactlyRequestAmount$inboundSchema, UniswapSellExactlyRequestAmount$outboundSchema, UniswapSellExactlyRequestAmount$, UniswapSellExactlyRequest$inboundSchema, UniswapSellExactlyRequest$outboundSchema, UniswapSellExactlyRequest$;
|
|
39564
39855
|
var init_uniswapsellexactlyrequest = __esm(() => {
|
|
39565
39856
|
init_lib();
|
|
39566
39857
|
init_primitives();
|
|
39567
39858
|
init_chain();
|
|
39568
39859
|
init_feeenum();
|
|
39569
39860
|
init_tokenenum();
|
|
39570
|
-
|
|
39571
|
-
|
|
39572
|
-
((
|
|
39573
|
-
|
|
39574
|
-
|
|
39575
|
-
})(
|
|
39576
|
-
UniswapSellExactlyRequestAmountOutMinimum$inboundSchema = unionType([numberType(), stringType()]);
|
|
39577
|
-
UniswapSellExactlyRequestAmountOutMinimum$outboundSchema = unionType([numberType(), stringType()]);
|
|
39578
|
-
((UniswapSellExactlyRequestAmountOutMinimum$) => {
|
|
39579
|
-
UniswapSellExactlyRequestAmountOutMinimum$.inboundSchema = UniswapSellExactlyRequestAmountOutMinimum$inboundSchema;
|
|
39580
|
-
UniswapSellExactlyRequestAmountOutMinimum$.outboundSchema = UniswapSellExactlyRequestAmountOutMinimum$outboundSchema;
|
|
39581
|
-
})(UniswapSellExactlyRequestAmountOutMinimum$ ||= {});
|
|
39861
|
+
UniswapSellExactlyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
39862
|
+
UniswapSellExactlyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
39863
|
+
((UniswapSellExactlyRequestAmount$) => {
|
|
39864
|
+
UniswapSellExactlyRequestAmount$.inboundSchema = UniswapSellExactlyRequestAmount$inboundSchema;
|
|
39865
|
+
UniswapSellExactlyRequestAmount$.outboundSchema = UniswapSellExactlyRequestAmount$outboundSchema;
|
|
39866
|
+
})(UniswapSellExactlyRequestAmount$ ||= {});
|
|
39582
39867
|
UniswapSellExactlyRequest$inboundSchema = objectType({
|
|
39583
39868
|
token_in: TokenEnum$inboundSchema,
|
|
39584
39869
|
token_out: TokenEnum$inboundSchema,
|
|
39585
39870
|
fee: FeeEnum$inboundSchema,
|
|
39586
|
-
|
|
39587
|
-
|
|
39871
|
+
amount: unionType([numberType(), stringType()]),
|
|
39872
|
+
max_slippage_percent: numberType(),
|
|
39588
39873
|
wrap_eth: booleanType().default(false),
|
|
39589
39874
|
chain: Chain$inboundSchema,
|
|
39590
39875
|
sender: stringType()
|
|
@@ -39592,8 +39877,7 @@ var init_uniswapsellexactlyrequest = __esm(() => {
|
|
|
39592
39877
|
return remap(v2, {
|
|
39593
39878
|
token_in: "tokenIn",
|
|
39594
39879
|
token_out: "tokenOut",
|
|
39595
|
-
|
|
39596
|
-
amount_out_minimum: "amountOutMinimum",
|
|
39880
|
+
max_slippage_percent: "maxSlippagePercent",
|
|
39597
39881
|
wrap_eth: "wrapEth"
|
|
39598
39882
|
});
|
|
39599
39883
|
});
|
|
@@ -39601,8 +39885,8 @@ var init_uniswapsellexactlyrequest = __esm(() => {
|
|
|
39601
39885
|
tokenIn: TokenEnum$outboundSchema,
|
|
39602
39886
|
tokenOut: TokenEnum$outboundSchema,
|
|
39603
39887
|
fee: FeeEnum$outboundSchema,
|
|
39604
|
-
|
|
39605
|
-
|
|
39888
|
+
amount: unionType([numberType(), stringType()]),
|
|
39889
|
+
maxSlippagePercent: numberType(),
|
|
39606
39890
|
wrapEth: booleanType().default(false),
|
|
39607
39891
|
chain: Chain$outboundSchema,
|
|
39608
39892
|
sender: stringType()
|
|
@@ -39610,8 +39894,7 @@ var init_uniswapsellexactlyrequest = __esm(() => {
|
|
|
39610
39894
|
return remap(v2, {
|
|
39611
39895
|
tokenIn: "token_in",
|
|
39612
39896
|
tokenOut: "token_out",
|
|
39613
|
-
|
|
39614
|
-
amountOutMinimum: "amount_out_minimum",
|
|
39897
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
39615
39898
|
wrapEth: "wrap_eth"
|
|
39616
39899
|
});
|
|
39617
39900
|
});
|
|
@@ -39841,6 +40124,8 @@ var init_wrapethrequest = __esm(() => {
|
|
|
39841
40124
|
var init_components = __esm(() => {
|
|
39842
40125
|
init_aaveborrowparams();
|
|
39843
40126
|
init_aaveborrowrequest();
|
|
40127
|
+
init_aavehistoricaltransactionbase();
|
|
40128
|
+
init_aavehistoricaltransactionsresponse();
|
|
39844
40129
|
init_aaveliquiditychangeresponse();
|
|
39845
40130
|
init_aaverepayparams();
|
|
39846
40131
|
init_aaverepayrequest();
|
|
@@ -39851,6 +40136,7 @@ var init_components = __esm(() => {
|
|
|
39851
40136
|
init_aaveuserpositionsummaryresponse();
|
|
39852
40137
|
init_aavewithdrawparams();
|
|
39853
40138
|
init_aavewithdrawrequest();
|
|
40139
|
+
init_action();
|
|
39854
40140
|
init_aerodromeaddliquidityethparams();
|
|
39855
40141
|
init_aerodromeaddliquidityparams();
|
|
39856
40142
|
init_aerodromelppositionsresponse();
|
|
@@ -39872,8 +40158,10 @@ var init_components = __esm(() => {
|
|
|
39872
40158
|
init_aerodromeswaptokenforethparams();
|
|
39873
40159
|
init_aerodromeswaptokensparams();
|
|
39874
40160
|
init_allowanceinforesponse();
|
|
40161
|
+
init_borrow();
|
|
39875
40162
|
init_chain();
|
|
39876
40163
|
init_chaininfo();
|
|
40164
|
+
init_collateralreserve();
|
|
39877
40165
|
init_compassapibackendmodelsmorphoreadresponsegetmarketsasset();
|
|
39878
40166
|
init_compassapibackendmodelsmorphoreadresponsegetvaultsasset();
|
|
39879
40167
|
init_contractname();
|
|
@@ -39884,6 +40172,7 @@ var init_components = __esm(() => {
|
|
|
39884
40172
|
init_increaseallowanceparams();
|
|
39885
40173
|
init_increaseallowancerequest();
|
|
39886
40174
|
init_interestratemode();
|
|
40175
|
+
init_liquidationcall();
|
|
39887
40176
|
init_marketstate();
|
|
39888
40177
|
init_morphoborrowrequest();
|
|
39889
40178
|
init_morphocheckmarketpositionresponse();
|
|
@@ -39904,6 +40193,10 @@ var init_components = __esm(() => {
|
|
|
39904
40193
|
init_multicallauthorizationresponse();
|
|
39905
40194
|
init_multicallexecuterequest();
|
|
39906
40195
|
init_portfolio();
|
|
40196
|
+
init_principalreserve();
|
|
40197
|
+
init_redeemunderlying();
|
|
40198
|
+
init_repay();
|
|
40199
|
+
init_reserve();
|
|
39907
40200
|
init_security2();
|
|
39908
40201
|
init_signedauthorization();
|
|
39909
40202
|
init_skybuyrequest();
|
|
@@ -39911,6 +40204,8 @@ var init_components = __esm(() => {
|
|
|
39911
40204
|
init_skydepositrequest();
|
|
39912
40205
|
init_skysellrequest();
|
|
39913
40206
|
init_skywithdrawrequest();
|
|
40207
|
+
init_supply();
|
|
40208
|
+
init_swapborrowrate();
|
|
39914
40209
|
init_tokenaddressresponse();
|
|
39915
40210
|
init_tokenbalance();
|
|
39916
40211
|
init_tokenbalanceresponse();
|
|
@@ -39939,6 +40234,7 @@ var init_components = __esm(() => {
|
|
|
39939
40234
|
init_unsignedtransaction();
|
|
39940
40235
|
init_unwrapwethparams();
|
|
39941
40236
|
init_unwrapwethrequest();
|
|
40237
|
+
init_usageascollateral();
|
|
39942
40238
|
init_validationerror();
|
|
39943
40239
|
init_vaultstate();
|
|
39944
40240
|
init_weeklyapys();
|
|
@@ -40115,6 +40411,51 @@ liquidated, if the borrow position becomes unhealthy.`,
|
|
|
40115
40411
|
};
|
|
40116
40412
|
});
|
|
40117
40413
|
|
|
40414
|
+
// src/models/operations/aavehistoricaltransactions.ts
|
|
40415
|
+
var AaveHistoricalTransactionsChain, AaveHistoricalTransactionsChain$inboundSchema, AaveHistoricalTransactionsChain$outboundSchema, AaveHistoricalTransactionsChain$, AaveHistoricalTransactionsRequest$inboundSchema, AaveHistoricalTransactionsRequest$outboundSchema, AaveHistoricalTransactionsRequest$;
|
|
40416
|
+
var init_aavehistoricaltransactions = __esm(() => {
|
|
40417
|
+
init_lib();
|
|
40418
|
+
init_primitives();
|
|
40419
|
+
AaveHistoricalTransactionsChain = {
|
|
40420
|
+
BaseMainnet: "base:mainnet",
|
|
40421
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40422
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40423
|
+
EthereumLocal: "ethereum:local",
|
|
40424
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40425
|
+
BaseLocal: "base:local"
|
|
40426
|
+
};
|
|
40427
|
+
AaveHistoricalTransactionsChain$inboundSchema = nativeEnumType(AaveHistoricalTransactionsChain);
|
|
40428
|
+
AaveHistoricalTransactionsChain$outboundSchema = AaveHistoricalTransactionsChain$inboundSchema;
|
|
40429
|
+
((AaveHistoricalTransactionsChain$) => {
|
|
40430
|
+
AaveHistoricalTransactionsChain$.inboundSchema = AaveHistoricalTransactionsChain$inboundSchema;
|
|
40431
|
+
AaveHistoricalTransactionsChain$.outboundSchema = AaveHistoricalTransactionsChain$outboundSchema;
|
|
40432
|
+
})(AaveHistoricalTransactionsChain$ ||= {});
|
|
40433
|
+
AaveHistoricalTransactionsRequest$inboundSchema = objectType({
|
|
40434
|
+
offset: numberType().int().default(0),
|
|
40435
|
+
limit: numberType().int().default(100),
|
|
40436
|
+
chain: AaveHistoricalTransactionsChain$inboundSchema.default("arbitrum:mainnet"),
|
|
40437
|
+
user_address: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
40438
|
+
}).transform((v2) => {
|
|
40439
|
+
return remap(v2, {
|
|
40440
|
+
user_address: "userAddress"
|
|
40441
|
+
});
|
|
40442
|
+
});
|
|
40443
|
+
AaveHistoricalTransactionsRequest$outboundSchema = objectType({
|
|
40444
|
+
offset: numberType().int().default(0),
|
|
40445
|
+
limit: numberType().int().default(100),
|
|
40446
|
+
chain: AaveHistoricalTransactionsChain$outboundSchema.default("arbitrum:mainnet"),
|
|
40447
|
+
userAddress: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
40448
|
+
}).transform((v2) => {
|
|
40449
|
+
return remap(v2, {
|
|
40450
|
+
userAddress: "user_address"
|
|
40451
|
+
});
|
|
40452
|
+
});
|
|
40453
|
+
((AaveHistoricalTransactionsRequest$) => {
|
|
40454
|
+
AaveHistoricalTransactionsRequest$.inboundSchema = AaveHistoricalTransactionsRequest$inboundSchema;
|
|
40455
|
+
AaveHistoricalTransactionsRequest$.outboundSchema = AaveHistoricalTransactionsRequest$outboundSchema;
|
|
40456
|
+
})(AaveHistoricalTransactionsRequest$ ||= {});
|
|
40457
|
+
});
|
|
40458
|
+
|
|
40118
40459
|
// src/models/operations/aaveliquiditychange.ts
|
|
40119
40460
|
var AaveLiquidityChangeChain, AaveLiquidityChangeToken, AaveLiquidityChangeChain$inboundSchema, AaveLiquidityChangeChain$outboundSchema, AaveLiquidityChangeChain$, AaveLiquidityChangeToken$inboundSchema, AaveLiquidityChangeToken$outboundSchema, AaveLiquidityChangeToken$, AaveLiquidityChangeRequest$inboundSchema, AaveLiquidityChangeRequest$outboundSchema, AaveLiquidityChangeRequest$;
|
|
40120
40461
|
var init_aaveliquiditychange = __esm(() => {
|
|
@@ -40123,7 +40464,10 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
40123
40464
|
AaveLiquidityChangeChain = {
|
|
40124
40465
|
BaseMainnet: "base:mainnet",
|
|
40125
40466
|
EthereumMainnet: "ethereum:mainnet",
|
|
40126
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40467
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40468
|
+
EthereumLocal: "ethereum:local",
|
|
40469
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40470
|
+
BaseLocal: "base:local"
|
|
40127
40471
|
};
|
|
40128
40472
|
AaveLiquidityChangeToken = {
|
|
40129
40473
|
OneINCH: "1INCH",
|
|
@@ -40218,7 +40562,10 @@ var init_aavetokenprice = __esm(() => {
|
|
|
40218
40562
|
AaveTokenPriceChain = {
|
|
40219
40563
|
BaseMainnet: "base:mainnet",
|
|
40220
40564
|
EthereumMainnet: "ethereum:mainnet",
|
|
40221
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40565
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40566
|
+
EthereumLocal: "ethereum:local",
|
|
40567
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40568
|
+
BaseLocal: "base:local"
|
|
40222
40569
|
};
|
|
40223
40570
|
AaveTokenPriceToken = {
|
|
40224
40571
|
OneINCH: "1INCH",
|
|
@@ -40299,7 +40646,10 @@ var init_aaveuserpositionpertoken = __esm(() => {
|
|
|
40299
40646
|
AaveUserPositionPerTokenChain = {
|
|
40300
40647
|
BaseMainnet: "base:mainnet",
|
|
40301
40648
|
EthereumMainnet: "ethereum:mainnet",
|
|
40302
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40649
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40650
|
+
EthereumLocal: "ethereum:local",
|
|
40651
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40652
|
+
BaseLocal: "base:local"
|
|
40303
40653
|
};
|
|
40304
40654
|
AaveUserPositionPerTokenToken = {
|
|
40305
40655
|
OneINCH: "1INCH",
|
|
@@ -40382,7 +40732,10 @@ var init_aaveuserpositionsummary = __esm(() => {
|
|
|
40382
40732
|
AaveUserPositionSummaryChain = {
|
|
40383
40733
|
BaseMainnet: "base:mainnet",
|
|
40384
40734
|
EthereumMainnet: "ethereum:mainnet",
|
|
40385
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40735
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40736
|
+
EthereumLocal: "ethereum:local",
|
|
40737
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40738
|
+
BaseLocal: "base:local"
|
|
40386
40739
|
};
|
|
40387
40740
|
AaveUserPositionSummaryChain$inboundSchema = nativeEnumType(AaveUserPositionSummaryChain);
|
|
40388
40741
|
AaveUserPositionSummaryChain$outboundSchema = AaveUserPositionSummaryChain$inboundSchema;
|
|
@@ -40411,7 +40764,10 @@ var init_aerodromeslipstreamliquidityprovisionpositions = __esm(() => {
|
|
|
40411
40764
|
AerodromeSlipstreamLiquidityProvisionPositionsChain = {
|
|
40412
40765
|
BaseMainnet: "base:mainnet",
|
|
40413
40766
|
EthereumMainnet: "ethereum:mainnet",
|
|
40414
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40767
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40768
|
+
EthereumLocal: "ethereum:local",
|
|
40769
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40770
|
+
BaseLocal: "base:local"
|
|
40415
40771
|
};
|
|
40416
40772
|
AerodromeSlipstreamLiquidityProvisionPositionsChain$inboundSchema = nativeEnumType(AerodromeSlipstreamLiquidityProvisionPositionsChain);
|
|
40417
40773
|
AerodromeSlipstreamLiquidityProvisionPositionsChain$outboundSchema = AerodromeSlipstreamLiquidityProvisionPositionsChain$inboundSchema;
|
|
@@ -40441,7 +40797,10 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
40441
40797
|
AerodromeSlipstreamPoolPriceChain = {
|
|
40442
40798
|
BaseMainnet: "base:mainnet",
|
|
40443
40799
|
EthereumMainnet: "ethereum:mainnet",
|
|
40444
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40800
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40801
|
+
EthereumLocal: "ethereum:local",
|
|
40802
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40803
|
+
BaseLocal: "base:local"
|
|
40445
40804
|
};
|
|
40446
40805
|
AerodromeSlipstreamPoolPriceTokenInToken = {
|
|
40447
40806
|
OneINCH: "1INCH",
|
|
@@ -40591,7 +40950,10 @@ var init_genericallowance = __esm(() => {
|
|
|
40591
40950
|
GenericAllowanceChain = {
|
|
40592
40951
|
BaseMainnet: "base:mainnet",
|
|
40593
40952
|
EthereumMainnet: "ethereum:mainnet",
|
|
40594
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40953
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
40954
|
+
EthereumLocal: "ethereum:local",
|
|
40955
|
+
ArbitrumLocal: "arbitrum:local",
|
|
40956
|
+
BaseLocal: "base:local"
|
|
40595
40957
|
};
|
|
40596
40958
|
GenericAllowanceToken = {
|
|
40597
40959
|
OneINCH: "1INCH",
|
|
@@ -40703,7 +41065,10 @@ var init_genericens = __esm(() => {
|
|
|
40703
41065
|
GenericEnsChain = {
|
|
40704
41066
|
BaseMainnet: "base:mainnet",
|
|
40705
41067
|
EthereumMainnet: "ethereum:mainnet",
|
|
40706
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41068
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41069
|
+
EthereumLocal: "ethereum:local",
|
|
41070
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41071
|
+
BaseLocal: "base:local"
|
|
40707
41072
|
};
|
|
40708
41073
|
GenericEnsChain$inboundSchema = nativeEnumType(GenericEnsChain);
|
|
40709
41074
|
GenericEnsChain$outboundSchema = GenericEnsChain$inboundSchema;
|
|
@@ -40740,7 +41105,10 @@ var init_genericportfolio = __esm(() => {
|
|
|
40740
41105
|
GenericPortfolioChain = {
|
|
40741
41106
|
BaseMainnet: "base:mainnet",
|
|
40742
41107
|
EthereumMainnet: "ethereum:mainnet",
|
|
40743
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41108
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41109
|
+
EthereumLocal: "ethereum:local",
|
|
41110
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41111
|
+
BaseLocal: "base:local"
|
|
40744
41112
|
};
|
|
40745
41113
|
GenericPortfolioChain$inboundSchema = nativeEnumType(GenericPortfolioChain);
|
|
40746
41114
|
GenericPortfolioChain$outboundSchema = GenericPortfolioChain$inboundSchema;
|
|
@@ -40769,7 +41137,10 @@ var init_genericsupportedtokens = __esm(() => {
|
|
|
40769
41137
|
GenericSupportedTokensChain = {
|
|
40770
41138
|
BaseMainnet: "base:mainnet",
|
|
40771
41139
|
EthereumMainnet: "ethereum:mainnet",
|
|
40772
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41140
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41141
|
+
EthereumLocal: "ethereum:local",
|
|
41142
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41143
|
+
BaseLocal: "base:local"
|
|
40773
41144
|
};
|
|
40774
41145
|
GenericSupportedTokensChain$inboundSchema = nativeEnumType(GenericSupportedTokensChain);
|
|
40775
41146
|
GenericSupportedTokensChain$outboundSchema = GenericSupportedTokensChain$inboundSchema;
|
|
@@ -40796,7 +41167,10 @@ var init_genericvisualizeportfolio = __esm(() => {
|
|
|
40796
41167
|
GenericVisualizePortfolioChain = {
|
|
40797
41168
|
BaseMainnet: "base:mainnet",
|
|
40798
41169
|
EthereumMainnet: "ethereum:mainnet",
|
|
40799
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41170
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41171
|
+
EthereumLocal: "ethereum:local",
|
|
41172
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41173
|
+
BaseLocal: "base:local"
|
|
40800
41174
|
};
|
|
40801
41175
|
GenericVisualizePortfolioChain$inboundSchema = nativeEnumType(GenericVisualizePortfolioChain);
|
|
40802
41176
|
GenericVisualizePortfolioChain$outboundSchema = GenericVisualizePortfolioChain$inboundSchema;
|
|
@@ -40826,7 +41200,10 @@ var init_morphomarketposition = __esm(() => {
|
|
|
40826
41200
|
MorphoMarketPositionChain = {
|
|
40827
41201
|
BaseMainnet: "base:mainnet",
|
|
40828
41202
|
EthereumMainnet: "ethereum:mainnet",
|
|
40829
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41203
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41204
|
+
EthereumLocal: "ethereum:local",
|
|
41205
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41206
|
+
BaseLocal: "base:local"
|
|
40830
41207
|
};
|
|
40831
41208
|
MorphoMarketPositionChain$inboundSchema = nativeEnumType(MorphoMarketPositionChain);
|
|
40832
41209
|
MorphoMarketPositionChain$outboundSchema = MorphoMarketPositionChain$inboundSchema;
|
|
@@ -40868,7 +41245,10 @@ var init_morphomarkets = __esm(() => {
|
|
|
40868
41245
|
MorphoMarketsChain = {
|
|
40869
41246
|
BaseMainnet: "base:mainnet",
|
|
40870
41247
|
EthereumMainnet: "ethereum:mainnet",
|
|
40871
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41248
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41249
|
+
EthereumLocal: "ethereum:local",
|
|
41250
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41251
|
+
BaseLocal: "base:local"
|
|
40872
41252
|
};
|
|
40873
41253
|
MorphoMarketsChain$inboundSchema = nativeEnumType(MorphoMarketsChain);
|
|
40874
41254
|
MorphoMarketsChain$outboundSchema = MorphoMarketsChain$inboundSchema;
|
|
@@ -40910,7 +41290,10 @@ var init_morphovaultposition = __esm(() => {
|
|
|
40910
41290
|
MorphoVaultPositionChain = {
|
|
40911
41291
|
BaseMainnet: "base:mainnet",
|
|
40912
41292
|
EthereumMainnet: "ethereum:mainnet",
|
|
40913
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41293
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41294
|
+
EthereumLocal: "ethereum:local",
|
|
41295
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41296
|
+
BaseLocal: "base:local"
|
|
40914
41297
|
};
|
|
40915
41298
|
MorphoVaultPositionChain$inboundSchema = nativeEnumType(MorphoVaultPositionChain);
|
|
40916
41299
|
MorphoVaultPositionChain$outboundSchema = MorphoVaultPositionChain$inboundSchema;
|
|
@@ -40952,7 +41335,10 @@ var init_morphovaults = __esm(() => {
|
|
|
40952
41335
|
MorphoVaultsChain = {
|
|
40953
41336
|
BaseMainnet: "base:mainnet",
|
|
40954
41337
|
EthereumMainnet: "ethereum:mainnet",
|
|
40955
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41338
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41339
|
+
EthereumLocal: "ethereum:local",
|
|
41340
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41341
|
+
BaseLocal: "base:local"
|
|
40956
41342
|
};
|
|
40957
41343
|
MorphoVaultsChain$inboundSchema = nativeEnumType(MorphoVaultsChain);
|
|
40958
41344
|
MorphoVaultsChain$outboundSchema = MorphoVaultsChain$inboundSchema;
|
|
@@ -41016,7 +41402,10 @@ var init_tokenaddress = __esm(() => {
|
|
|
41016
41402
|
TokenAddressChain = {
|
|
41017
41403
|
BaseMainnet: "base:mainnet",
|
|
41018
41404
|
EthereumMainnet: "ethereum:mainnet",
|
|
41019
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41405
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41406
|
+
EthereumLocal: "ethereum:local",
|
|
41407
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41408
|
+
BaseLocal: "base:local"
|
|
41020
41409
|
};
|
|
41021
41410
|
TokenAddressToken = {
|
|
41022
41411
|
OneINCH: "1INCH",
|
|
@@ -41098,7 +41487,10 @@ var init_tokenbalance2 = __esm(() => {
|
|
|
41098
41487
|
TokenBalanceChain = {
|
|
41099
41488
|
BaseMainnet: "base:mainnet",
|
|
41100
41489
|
EthereumMainnet: "ethereum:mainnet",
|
|
41101
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41490
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41491
|
+
EthereumLocal: "ethereum:local",
|
|
41492
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41493
|
+
BaseLocal: "base:local"
|
|
41102
41494
|
};
|
|
41103
41495
|
TokenBalanceChain$inboundSchema = nativeEnumType(TokenBalanceChain);
|
|
41104
41496
|
TokenBalanceChain$outboundSchema = TokenBalanceChain$inboundSchema;
|
|
@@ -41135,7 +41527,10 @@ var init_tokenprice = __esm(() => {
|
|
|
41135
41527
|
TokenPriceChain = {
|
|
41136
41528
|
BaseMainnet: "base:mainnet",
|
|
41137
41529
|
EthereumMainnet: "ethereum:mainnet",
|
|
41138
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41530
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41531
|
+
EthereumLocal: "ethereum:local",
|
|
41532
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41533
|
+
BaseLocal: "base:local"
|
|
41139
41534
|
};
|
|
41140
41535
|
TokenPriceToken = {
|
|
41141
41536
|
OneINCH: "1INCH",
|
|
@@ -41217,7 +41612,10 @@ var init_uniswapliquidityprovisioninrange = __esm(() => {
|
|
|
41217
41612
|
UniswapLiquidityProvisionInRangeChain = {
|
|
41218
41613
|
BaseMainnet: "base:mainnet",
|
|
41219
41614
|
EthereumMainnet: "ethereum:mainnet",
|
|
41220
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41615
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41616
|
+
EthereumLocal: "ethereum:local",
|
|
41617
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41618
|
+
BaseLocal: "base:local"
|
|
41221
41619
|
};
|
|
41222
41620
|
UniswapLiquidityProvisionInRangeChain$inboundSchema = nativeEnumType(UniswapLiquidityProvisionInRangeChain);
|
|
41223
41621
|
UniswapLiquidityProvisionInRangeChain$outboundSchema = UniswapLiquidityProvisionInRangeChain$inboundSchema;
|
|
@@ -41254,7 +41652,10 @@ var init_uniswapliquidityprovisionpositions = __esm(() => {
|
|
|
41254
41652
|
UniswapLiquidityProvisionPositionsChain = {
|
|
41255
41653
|
BaseMainnet: "base:mainnet",
|
|
41256
41654
|
EthereumMainnet: "ethereum:mainnet",
|
|
41257
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41655
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41656
|
+
EthereumLocal: "ethereum:local",
|
|
41657
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41658
|
+
BaseLocal: "base:local"
|
|
41258
41659
|
};
|
|
41259
41660
|
UniswapLiquidityProvisionPositionsChain$inboundSchema = nativeEnumType(UniswapLiquidityProvisionPositionsChain);
|
|
41260
41661
|
UniswapLiquidityProvisionPositionsChain$outboundSchema = UniswapLiquidityProvisionPositionsChain$inboundSchema;
|
|
@@ -41284,7 +41685,10 @@ var init_uniswappoolprice = __esm(() => {
|
|
|
41284
41685
|
UniswapPoolPriceChain = {
|
|
41285
41686
|
BaseMainnet: "base:mainnet",
|
|
41286
41687
|
EthereumMainnet: "ethereum:mainnet",
|
|
41287
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41688
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41689
|
+
EthereumLocal: "ethereum:local",
|
|
41690
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41691
|
+
BaseLocal: "base:local"
|
|
41288
41692
|
};
|
|
41289
41693
|
UniswapPoolPriceTokenInToken = {
|
|
41290
41694
|
OneINCH: "1INCH",
|
|
@@ -41444,7 +41848,10 @@ var init_uniswapquotebuyexactly = __esm(() => {
|
|
|
41444
41848
|
UniswapQuoteBuyExactlyChain = {
|
|
41445
41849
|
BaseMainnet: "base:mainnet",
|
|
41446
41850
|
EthereumMainnet: "ethereum:mainnet",
|
|
41447
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41851
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
41852
|
+
EthereumLocal: "ethereum:local",
|
|
41853
|
+
ArbitrumLocal: "arbitrum:local",
|
|
41854
|
+
BaseLocal: "base:local"
|
|
41448
41855
|
};
|
|
41449
41856
|
UniswapQuoteBuyExactlyTokenInToken = {
|
|
41450
41857
|
OneINCH: "1INCH",
|
|
@@ -41614,7 +42021,10 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
41614
42021
|
UniswapQuoteSellExactlyChain = {
|
|
41615
42022
|
BaseMainnet: "base:mainnet",
|
|
41616
42023
|
EthereumMainnet: "ethereum:mainnet",
|
|
41617
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
42024
|
+
ArbitrumMainnet: "arbitrum:mainnet",
|
|
42025
|
+
EthereumLocal: "ethereum:local",
|
|
42026
|
+
ArbitrumLocal: "arbitrum:local",
|
|
42027
|
+
BaseLocal: "base:local"
|
|
41618
42028
|
};
|
|
41619
42029
|
UniswapQuoteSellExactlyTokenInToken = {
|
|
41620
42030
|
OneINCH: "1INCH",
|
|
@@ -41778,6 +42188,7 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
41778
42188
|
|
|
41779
42189
|
// src/models/operations/index.ts
|
|
41780
42190
|
var init_operations = __esm(() => {
|
|
42191
|
+
init_aavehistoricaltransactions();
|
|
41781
42192
|
init_aaveliquiditychange();
|
|
41782
42193
|
init_aavetokenprice();
|
|
41783
42194
|
init_aaveuserpositionpertoken();
|
|
@@ -41804,11 +42215,124 @@ var init_operations = __esm(() => {
|
|
|
41804
42215
|
init_uniswapquotesellexactly();
|
|
41805
42216
|
});
|
|
41806
42217
|
|
|
41807
|
-
// src/funcs/
|
|
41808
|
-
function
|
|
42218
|
+
// src/funcs/aaveV3HistoricalTransactions.ts
|
|
42219
|
+
function aaveV3HistoricalTransactions(client, request, options) {
|
|
41809
42220
|
return new APIPromise($do2(client, request, options));
|
|
41810
42221
|
}
|
|
41811
42222
|
async function $do2(client, request, options) {
|
|
42223
|
+
const parsed = safeParse(request, (value) => AaveHistoricalTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42224
|
+
if (!parsed.ok) {
|
|
42225
|
+
return [parsed, { status: "invalid" }];
|
|
42226
|
+
}
|
|
42227
|
+
const payload = parsed.value;
|
|
42228
|
+
const body = null;
|
|
42229
|
+
const path = pathToFunc("/v0/aave/historical_transactions/get")();
|
|
42230
|
+
const query = encodeFormQuery({
|
|
42231
|
+
chain: payload.chain,
|
|
42232
|
+
limit: payload.limit,
|
|
42233
|
+
offset: payload.offset,
|
|
42234
|
+
user_address: payload.user_address
|
|
42235
|
+
});
|
|
42236
|
+
const headers = new Headers(compactMap({
|
|
42237
|
+
Accept: "application/json"
|
|
42238
|
+
}));
|
|
42239
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42240
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42241
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42242
|
+
const context = {
|
|
42243
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42244
|
+
operationID: "aave_historical_transactions",
|
|
42245
|
+
oAuth2Scopes: [],
|
|
42246
|
+
resolvedSecurity: requestSecurity,
|
|
42247
|
+
securitySource: client._options.apiKeyAuth,
|
|
42248
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42249
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42250
|
+
};
|
|
42251
|
+
const requestRes = client._createRequest(context, {
|
|
42252
|
+
security: requestSecurity,
|
|
42253
|
+
method: "GET",
|
|
42254
|
+
baseURL: options?.serverURL,
|
|
42255
|
+
path,
|
|
42256
|
+
headers,
|
|
42257
|
+
query,
|
|
42258
|
+
body,
|
|
42259
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42260
|
+
}, options);
|
|
42261
|
+
if (!requestRes.ok) {
|
|
42262
|
+
return [requestRes, { status: "invalid" }];
|
|
42263
|
+
}
|
|
42264
|
+
const req = requestRes.value;
|
|
42265
|
+
const doResult = await client._do(req, {
|
|
42266
|
+
context,
|
|
42267
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42268
|
+
retryConfig: context.retryConfig,
|
|
42269
|
+
retryCodes: context.retryCodes
|
|
42270
|
+
});
|
|
42271
|
+
if (!doResult.ok) {
|
|
42272
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42273
|
+
}
|
|
42274
|
+
const response = doResult.value;
|
|
42275
|
+
const responseFields = {
|
|
42276
|
+
HttpMeta: { Response: response, Request: req }
|
|
42277
|
+
};
|
|
42278
|
+
const [result] = await match(json(200, AaveHistoricalTransactionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42279
|
+
if (!result.ok) {
|
|
42280
|
+
return [result, { status: "complete", request: req, response }];
|
|
42281
|
+
}
|
|
42282
|
+
return [result, { status: "complete", request: req, response }];
|
|
42283
|
+
}
|
|
42284
|
+
var init_aaveV3HistoricalTransactions = __esm(() => {
|
|
42285
|
+
init_encodings();
|
|
42286
|
+
init_matchers();
|
|
42287
|
+
init_primitives();
|
|
42288
|
+
init_schemas();
|
|
42289
|
+
init_security();
|
|
42290
|
+
init_url();
|
|
42291
|
+
init_components();
|
|
42292
|
+
init_errors();
|
|
42293
|
+
init_operations();
|
|
42294
|
+
init_async();
|
|
42295
|
+
});
|
|
42296
|
+
|
|
42297
|
+
// src/mcp-server/tools/aaveV3HistoricalTransactions.ts
|
|
42298
|
+
var args2, tool$aaveV3HistoricalTransactions;
|
|
42299
|
+
var init_aaveV3HistoricalTransactions2 = __esm(() => {
|
|
42300
|
+
init_aaveV3HistoricalTransactions();
|
|
42301
|
+
init_operations();
|
|
42302
|
+
init_tools();
|
|
42303
|
+
args2 = {
|
|
42304
|
+
request: AaveHistoricalTransactionsRequest$inboundSchema
|
|
42305
|
+
};
|
|
42306
|
+
tool$aaveV3HistoricalTransactions = {
|
|
42307
|
+
name: "aave-v3-historical-transactions",
|
|
42308
|
+
description: `Historical transactions
|
|
42309
|
+
|
|
42310
|
+
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
42311
|
+
|
|
42312
|
+
It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
42313
|
+
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
42314
|
+
and transaction type. This provides a comprehensive view of the user's historical
|
|
42315
|
+
activity within the AAVE protocol.`,
|
|
42316
|
+
args: args2,
|
|
42317
|
+
tool: async (client, args3, ctx) => {
|
|
42318
|
+
const [result, apiCall] = await aaveV3HistoricalTransactions(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42319
|
+
if (!result.ok) {
|
|
42320
|
+
return {
|
|
42321
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42322
|
+
isError: true
|
|
42323
|
+
};
|
|
42324
|
+
}
|
|
42325
|
+
const value = result.value;
|
|
42326
|
+
return formatResult(value, apiCall);
|
|
42327
|
+
}
|
|
42328
|
+
};
|
|
42329
|
+
});
|
|
42330
|
+
|
|
42331
|
+
// src/funcs/aaveV3LiquidityChange.ts
|
|
42332
|
+
function aaveV3LiquidityChange(client, request, options) {
|
|
42333
|
+
return new APIPromise($do3(client, request, options));
|
|
42334
|
+
}
|
|
42335
|
+
async function $do3(client, request, options) {
|
|
41812
42336
|
const parsed = safeParse(request, (value) => AaveLiquidityChangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41813
42337
|
if (!parsed.ok) {
|
|
41814
42338
|
return [parsed, { status: "invalid" }];
|
|
@@ -41884,12 +42408,12 @@ var init_aaveV3LiquidityChange = __esm(() => {
|
|
|
41884
42408
|
});
|
|
41885
42409
|
|
|
41886
42410
|
// src/mcp-server/tools/aaveV3LiquidityChange.ts
|
|
41887
|
-
var
|
|
42411
|
+
var args3, tool$aaveV3LiquidityChange;
|
|
41888
42412
|
var init_aaveV3LiquidityChange2 = __esm(() => {
|
|
41889
42413
|
init_aaveV3LiquidityChange();
|
|
41890
42414
|
init_operations();
|
|
41891
42415
|
init_tools();
|
|
41892
|
-
|
|
42416
|
+
args3 = {
|
|
41893
42417
|
request: AaveLiquidityChangeRequest$inboundSchema
|
|
41894
42418
|
};
|
|
41895
42419
|
tool$aaveV3LiquidityChange = {
|
|
@@ -41907,9 +42431,9 @@ at the start block, a positive liquidity index change will represent accrued
|
|
|
41907
42431
|
interest and a profit. If tokens were borrowed at the start block, this debt will
|
|
41908
42432
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
41909
42433
|
true if the liquidity index is negative.`,
|
|
41910
|
-
args:
|
|
41911
|
-
tool: async (client,
|
|
41912
|
-
const [result, apiCall] = await aaveV3LiquidityChange(client,
|
|
42434
|
+
args: args3,
|
|
42435
|
+
tool: async (client, args4, ctx) => {
|
|
42436
|
+
const [result, apiCall] = await aaveV3LiquidityChange(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41913
42437
|
if (!result.ok) {
|
|
41914
42438
|
return {
|
|
41915
42439
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41924,9 +42448,9 @@ true if the liquidity index is negative.`,
|
|
|
41924
42448
|
|
|
41925
42449
|
// src/funcs/aaveV3Repay.ts
|
|
41926
42450
|
function aaveV3Repay(client, request, options) {
|
|
41927
|
-
return new APIPromise($
|
|
42451
|
+
return new APIPromise($do4(client, request, options));
|
|
41928
42452
|
}
|
|
41929
|
-
async function $
|
|
42453
|
+
async function $do4(client, request, options) {
|
|
41930
42454
|
const parsed = safeParse(request, (value) => AaveRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41931
42455
|
if (!parsed.ok) {
|
|
41932
42456
|
return [parsed, { status: "invalid" }];
|
|
@@ -41995,12 +42519,12 @@ var init_aaveV3Repay = __esm(() => {
|
|
|
41995
42519
|
});
|
|
41996
42520
|
|
|
41997
42521
|
// src/mcp-server/tools/aaveV3Repay.ts
|
|
41998
|
-
var
|
|
42522
|
+
var args4, tool$aaveV3Repay;
|
|
41999
42523
|
var init_aaveV3Repay2 = __esm(() => {
|
|
42000
42524
|
init_aaveV3Repay();
|
|
42001
42525
|
init_components();
|
|
42002
42526
|
init_tools();
|
|
42003
|
-
|
|
42527
|
+
args4 = {
|
|
42004
42528
|
request: AaveRepayRequest$inboundSchema
|
|
42005
42529
|
};
|
|
42006
42530
|
tool$aaveV3Repay = {
|
|
@@ -42015,9 +42539,9 @@ measure of the safety of their loan position. A higher health factor reduces the
|
|
|
42015
42539
|
risk of liquidation, ensuring a more secure borrowing experience. The endpoint
|
|
42016
42540
|
requires specifying the chain and the details of the repayment transaction,
|
|
42017
42541
|
including the amount and the asset to be repaid.`,
|
|
42018
|
-
args:
|
|
42019
|
-
tool: async (client,
|
|
42020
|
-
const [result, apiCall] = await aaveV3Repay(client,
|
|
42542
|
+
args: args4,
|
|
42543
|
+
tool: async (client, args5, ctx) => {
|
|
42544
|
+
const [result, apiCall] = await aaveV3Repay(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42021
42545
|
if (!result.ok) {
|
|
42022
42546
|
return {
|
|
42023
42547
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42032,9 +42556,9 @@ including the amount and the asset to be repaid.`,
|
|
|
42032
42556
|
|
|
42033
42557
|
// src/funcs/aaveV3Supply.ts
|
|
42034
42558
|
function aaveV3Supply(client, request, options) {
|
|
42035
|
-
return new APIPromise($
|
|
42559
|
+
return new APIPromise($do5(client, request, options));
|
|
42036
42560
|
}
|
|
42037
|
-
async function $
|
|
42561
|
+
async function $do5(client, request, options) {
|
|
42038
42562
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42039
42563
|
if (!parsed.ok) {
|
|
42040
42564
|
return [parsed, { status: "invalid" }];
|
|
@@ -42103,12 +42627,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
42103
42627
|
});
|
|
42104
42628
|
|
|
42105
42629
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
42106
|
-
var
|
|
42630
|
+
var args5, tool$aaveV3Supply;
|
|
42107
42631
|
var init_aaveV3Supply2 = __esm(() => {
|
|
42108
42632
|
init_aaveV3Supply();
|
|
42109
42633
|
init_components();
|
|
42110
42634
|
init_tools();
|
|
42111
|
-
|
|
42635
|
+
args5 = {
|
|
42112
42636
|
request: AaveSupplyRequest$inboundSchema
|
|
42113
42637
|
};
|
|
42114
42638
|
tool$aaveV3Supply = {
|
|
@@ -42124,9 +42648,9 @@ create leverage.
|
|
|
42124
42648
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
42125
42649
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
42126
42650
|
borrowing flexibility.`,
|
|
42127
|
-
args:
|
|
42128
|
-
tool: async (client,
|
|
42129
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
42651
|
+
args: args5,
|
|
42652
|
+
tool: async (client, args6, ctx) => {
|
|
42653
|
+
const [result, apiCall] = await aaveV3Supply(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42130
42654
|
if (!result.ok) {
|
|
42131
42655
|
return {
|
|
42132
42656
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42141,9 +42665,9 @@ borrowing flexibility.`,
|
|
|
42141
42665
|
|
|
42142
42666
|
// src/funcs/aaveV3TokenPrice.ts
|
|
42143
42667
|
function aaveV3TokenPrice(client, request, options) {
|
|
42144
|
-
return new APIPromise($
|
|
42668
|
+
return new APIPromise($do6(client, request, options));
|
|
42145
42669
|
}
|
|
42146
|
-
async function $
|
|
42670
|
+
async function $do6(client, request, options) {
|
|
42147
42671
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42148
42672
|
if (!parsed.ok) {
|
|
42149
42673
|
return [parsed, { status: "invalid" }];
|
|
@@ -42217,12 +42741,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
42217
42741
|
});
|
|
42218
42742
|
|
|
42219
42743
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
42220
|
-
var
|
|
42744
|
+
var args6, tool$aaveV3TokenPrice;
|
|
42221
42745
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
42222
42746
|
init_aaveV3TokenPrice();
|
|
42223
42747
|
init_operations();
|
|
42224
42748
|
init_tools();
|
|
42225
|
-
|
|
42749
|
+
args6 = {
|
|
42226
42750
|
request: AaveTokenPriceRequest$inboundSchema
|
|
42227
42751
|
};
|
|
42228
42752
|
tool$aaveV3TokenPrice = {
|
|
@@ -42237,9 +42761,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
42237
42761
|
network (chain) on which the token resides. The response provides the token price in
|
|
42238
42762
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
42239
42763
|
Aave.`,
|
|
42240
|
-
args:
|
|
42241
|
-
tool: async (client,
|
|
42242
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
42764
|
+
args: args6,
|
|
42765
|
+
tool: async (client, args7, ctx) => {
|
|
42766
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42243
42767
|
if (!result.ok) {
|
|
42244
42768
|
return {
|
|
42245
42769
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42254,9 +42778,9 @@ Aave.`,
|
|
|
42254
42778
|
|
|
42255
42779
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
42256
42780
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
42257
|
-
return new APIPromise($
|
|
42781
|
+
return new APIPromise($do7(client, request, options));
|
|
42258
42782
|
}
|
|
42259
|
-
async function $
|
|
42783
|
+
async function $do7(client, request, options) {
|
|
42260
42784
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42261
42785
|
if (!parsed.ok) {
|
|
42262
42786
|
return [parsed, { status: "invalid" }];
|
|
@@ -42331,12 +42855,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
42331
42855
|
});
|
|
42332
42856
|
|
|
42333
42857
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
42334
|
-
var
|
|
42858
|
+
var args7, tool$aaveV3UserPositionPerToken;
|
|
42335
42859
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
42336
42860
|
init_aaveV3UserPositionPerToken();
|
|
42337
42861
|
init_operations();
|
|
42338
42862
|
init_tools();
|
|
42339
|
-
|
|
42863
|
+
args7 = {
|
|
42340
42864
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
42341
42865
|
};
|
|
42342
42866
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -42352,9 +42876,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
42352
42876
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
42353
42877
|
positions held by the user for the specified token, offering a detailed view of
|
|
42354
42878
|
their financial standing within the AAVE ecosystem.`,
|
|
42355
|
-
args:
|
|
42356
|
-
tool: async (client,
|
|
42357
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
42879
|
+
args: args7,
|
|
42880
|
+
tool: async (client, args8, ctx) => {
|
|
42881
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42358
42882
|
if (!result.ok) {
|
|
42359
42883
|
return {
|
|
42360
42884
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42369,9 +42893,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
42369
42893
|
|
|
42370
42894
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
42371
42895
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
42372
|
-
return new APIPromise($
|
|
42896
|
+
return new APIPromise($do8(client, request, options));
|
|
42373
42897
|
}
|
|
42374
|
-
async function $
|
|
42898
|
+
async function $do8(client, request, options) {
|
|
42375
42899
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42376
42900
|
if (!parsed.ok) {
|
|
42377
42901
|
return [parsed, { status: "invalid" }];
|
|
@@ -42445,12 +42969,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
42445
42969
|
});
|
|
42446
42970
|
|
|
42447
42971
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
42448
|
-
var
|
|
42972
|
+
var args8, tool$aaveV3UserPositionSummary;
|
|
42449
42973
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
42450
42974
|
init_aaveV3UserPositionSummary();
|
|
42451
42975
|
init_operations();
|
|
42452
42976
|
init_tools();
|
|
42453
|
-
|
|
42977
|
+
args8 = {
|
|
42454
42978
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
42455
42979
|
};
|
|
42456
42980
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -42465,9 +42989,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
42465
42989
|
value ratio, and the health factor of the user's account. These metrics are
|
|
42466
42990
|
calculated by aggregating data across all open positions held by the user, offering
|
|
42467
42991
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
42468
|
-
args:
|
|
42469
|
-
tool: async (client,
|
|
42470
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
42992
|
+
args: args8,
|
|
42993
|
+
tool: async (client, args9, ctx) => {
|
|
42994
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42471
42995
|
if (!result.ok) {
|
|
42472
42996
|
return {
|
|
42473
42997
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42482,9 +43006,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
42482
43006
|
|
|
42483
43007
|
// src/funcs/aaveV3Withdraw.ts
|
|
42484
43008
|
function aaveV3Withdraw(client, request, options) {
|
|
42485
|
-
return new APIPromise($
|
|
43009
|
+
return new APIPromise($do9(client, request, options));
|
|
42486
43010
|
}
|
|
42487
|
-
async function $
|
|
43011
|
+
async function $do9(client, request, options) {
|
|
42488
43012
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42489
43013
|
if (!parsed.ok) {
|
|
42490
43014
|
return [parsed, { status: "invalid" }];
|
|
@@ -42553,12 +43077,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
42553
43077
|
});
|
|
42554
43078
|
|
|
42555
43079
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
42556
|
-
var
|
|
43080
|
+
var args9, tool$aaveV3Withdraw;
|
|
42557
43081
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
42558
43082
|
init_aaveV3Withdraw();
|
|
42559
43083
|
init_components();
|
|
42560
43084
|
init_tools();
|
|
42561
|
-
|
|
43085
|
+
args9 = {
|
|
42562
43086
|
request: AaveWithdrawRequest$inboundSchema
|
|
42563
43087
|
};
|
|
42564
43088
|
tool$aaveV3Withdraw = {
|
|
@@ -42574,9 +43098,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
42574
43098
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
42575
43099
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
42576
43100
|
the Aave ecosystem.`,
|
|
42577
|
-
args:
|
|
42578
|
-
tool: async (client,
|
|
42579
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
43101
|
+
args: args9,
|
|
43102
|
+
tool: async (client, args10, ctx) => {
|
|
43103
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42580
43104
|
if (!result.ok) {
|
|
42581
43105
|
return {
|
|
42582
43106
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42591,9 +43115,9 @@ the Aave ecosystem.`,
|
|
|
42591
43115
|
|
|
42592
43116
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
42593
43117
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
42594
|
-
return new APIPromise($
|
|
43118
|
+
return new APIPromise($do10(client, request, options));
|
|
42595
43119
|
}
|
|
42596
|
-
async function $
|
|
43120
|
+
async function $do10(client, request, options) {
|
|
42597
43121
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42598
43122
|
if (!parsed.ok) {
|
|
42599
43123
|
return [parsed, { status: "invalid" }];
|
|
@@ -42662,12 +43186,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
42662
43186
|
});
|
|
42663
43187
|
|
|
42664
43188
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
42665
|
-
var
|
|
43189
|
+
var args10, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
42666
43190
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
42667
43191
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
42668
43192
|
init_components();
|
|
42669
43193
|
init_tools();
|
|
42670
|
-
|
|
43194
|
+
args10 = {
|
|
42671
43195
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
42672
43196
|
};
|
|
42673
43197
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -42685,9 +43209,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
42685
43209
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
42686
43210
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
42687
43211
|
(DeFi) markets.`,
|
|
42688
|
-
args:
|
|
42689
|
-
tool: async (client,
|
|
42690
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
43212
|
+
args: args10,
|
|
43213
|
+
tool: async (client, args11, ctx) => {
|
|
43214
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42691
43215
|
if (!result.ok) {
|
|
42692
43216
|
return {
|
|
42693
43217
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42702,9 +43226,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
42702
43226
|
|
|
42703
43227
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
42704
43228
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
42705
|
-
return new APIPromise($
|
|
43229
|
+
return new APIPromise($do11(client, request, options));
|
|
42706
43230
|
}
|
|
42707
|
-
async function $
|
|
43231
|
+
async function $do11(client, request, options) {
|
|
42708
43232
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42709
43233
|
if (!parsed.ok) {
|
|
42710
43234
|
return [parsed, { status: "invalid" }];
|
|
@@ -42773,12 +43297,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
42773
43297
|
});
|
|
42774
43298
|
|
|
42775
43299
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
42776
|
-
var
|
|
43300
|
+
var args11, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
42777
43301
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
42778
43302
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
42779
43303
|
init_components();
|
|
42780
43304
|
init_tools();
|
|
42781
|
-
|
|
43305
|
+
args11 = {
|
|
42782
43306
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
42783
43307
|
};
|
|
42784
43308
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -42794,9 +43318,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
42794
43318
|
necessary information to manage their newly minted position. This functionality is
|
|
42795
43319
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
42796
43320
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
42797
|
-
args:
|
|
42798
|
-
tool: async (client,
|
|
42799
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
43321
|
+
args: args11,
|
|
43322
|
+
tool: async (client, args12, ctx) => {
|
|
43323
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42800
43324
|
if (!result.ok) {
|
|
42801
43325
|
return {
|
|
42802
43326
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42811,9 +43335,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
42811
43335
|
|
|
42812
43336
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
42813
43337
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
42814
|
-
return new APIPromise($
|
|
43338
|
+
return new APIPromise($do12(client, request, options));
|
|
42815
43339
|
}
|
|
42816
|
-
async function $
|
|
43340
|
+
async function $do12(client, request, options) {
|
|
42817
43341
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42818
43342
|
if (!parsed.ok) {
|
|
42819
43343
|
return [parsed, { status: "invalid" }];
|
|
@@ -42887,12 +43411,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
42887
43411
|
});
|
|
42888
43412
|
|
|
42889
43413
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
42890
|
-
var
|
|
43414
|
+
var args12, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
42891
43415
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
42892
43416
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
42893
43417
|
init_operations();
|
|
42894
43418
|
init_tools();
|
|
42895
|
-
|
|
43419
|
+
args12 = {
|
|
42896
43420
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
42897
43421
|
};
|
|
42898
43422
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -42908,9 +43432,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
42908
43432
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
42909
43433
|
managing their liquidity provision activities, enabling them to make informed
|
|
42910
43434
|
decisions based on their current positions.`,
|
|
42911
|
-
args:
|
|
42912
|
-
tool: async (client,
|
|
42913
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
43435
|
+
args: args12,
|
|
43436
|
+
tool: async (client, args13, ctx) => {
|
|
43437
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42914
43438
|
if (!result.ok) {
|
|
42915
43439
|
return {
|
|
42916
43440
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42925,9 +43449,9 @@ decisions based on their current positions.`,
|
|
|
42925
43449
|
|
|
42926
43450
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
42927
43451
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
42928
|
-
return new APIPromise($
|
|
43452
|
+
return new APIPromise($do13(client, request, options));
|
|
42929
43453
|
}
|
|
42930
|
-
async function $
|
|
43454
|
+
async function $do13(client, request, options) {
|
|
42931
43455
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42932
43456
|
if (!parsed.ok) {
|
|
42933
43457
|
return [parsed, { status: "invalid" }];
|
|
@@ -42996,12 +43520,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
42996
43520
|
});
|
|
42997
43521
|
|
|
42998
43522
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
42999
|
-
var
|
|
43523
|
+
var args13, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
43000
43524
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
43001
43525
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
43002
43526
|
init_components();
|
|
43003
43527
|
init_tools();
|
|
43004
|
-
|
|
43528
|
+
args13 = {
|
|
43005
43529
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
43006
43530
|
};
|
|
43007
43531
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -43019,9 +43543,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
43019
43543
|
assets and potentially reallocate them to other investment opportunities. The
|
|
43020
43544
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
43021
43545
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
43022
|
-
args:
|
|
43023
|
-
tool: async (client,
|
|
43024
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
43546
|
+
args: args13,
|
|
43547
|
+
tool: async (client, args14, ctx) => {
|
|
43548
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43025
43549
|
if (!result.ok) {
|
|
43026
43550
|
return {
|
|
43027
43551
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43036,9 +43560,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
43036
43560
|
|
|
43037
43561
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43038
43562
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
43039
|
-
return new APIPromise($
|
|
43563
|
+
return new APIPromise($do14(client, request, options));
|
|
43040
43564
|
}
|
|
43041
|
-
async function $
|
|
43565
|
+
async function $do14(client, request, options) {
|
|
43042
43566
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43043
43567
|
if (!parsed.ok) {
|
|
43044
43568
|
return [parsed, { status: "invalid" }];
|
|
@@ -43114,12 +43638,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
43114
43638
|
});
|
|
43115
43639
|
|
|
43116
43640
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43117
|
-
var
|
|
43641
|
+
var args14, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
43118
43642
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
43119
43643
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
43120
43644
|
init_operations();
|
|
43121
43645
|
init_tools();
|
|
43122
|
-
|
|
43646
|
+
args14 = {
|
|
43123
43647
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
43124
43648
|
};
|
|
43125
43649
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -43132,9 +43656,9 @@ you can purchase for 1 token1.
|
|
|
43132
43656
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
43133
43657
|
accurate representation of the trade ratios between the two assets, consider using
|
|
43134
43658
|
the quote endpoint.`,
|
|
43135
|
-
args:
|
|
43136
|
-
tool: async (client,
|
|
43137
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
43659
|
+
args: args14,
|
|
43660
|
+
tool: async (client, args15, ctx) => {
|
|
43661
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43138
43662
|
if (!result.ok) {
|
|
43139
43663
|
return {
|
|
43140
43664
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43149,9 +43673,9 @@ the quote endpoint.`,
|
|
|
43149
43673
|
|
|
43150
43674
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43151
43675
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
43152
|
-
return new APIPromise($
|
|
43676
|
+
return new APIPromise($do15(client, request, options));
|
|
43153
43677
|
}
|
|
43154
|
-
async function $
|
|
43678
|
+
async function $do15(client, request, options) {
|
|
43155
43679
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43156
43680
|
if (!parsed.ok) {
|
|
43157
43681
|
return [parsed, { status: "invalid" }];
|
|
@@ -43220,12 +43744,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
43220
43744
|
});
|
|
43221
43745
|
|
|
43222
43746
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43223
|
-
var
|
|
43747
|
+
var args15, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
43224
43748
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
43225
43749
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
43226
43750
|
init_components();
|
|
43227
43751
|
init_tools();
|
|
43228
|
-
|
|
43752
|
+
args15 = {
|
|
43229
43753
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
43230
43754
|
};
|
|
43231
43755
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -43242,9 +43766,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
43242
43766
|
transaction is executed with consideration of current market conditions, including
|
|
43243
43767
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
43244
43768
|
effectively.`,
|
|
43245
|
-
args:
|
|
43246
|
-
tool: async (client,
|
|
43247
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
43769
|
+
args: args15,
|
|
43770
|
+
tool: async (client, args16, ctx) => {
|
|
43771
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43248
43772
|
if (!result.ok) {
|
|
43249
43773
|
return {
|
|
43250
43774
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43259,9 +43783,9 @@ effectively.`,
|
|
|
43259
43783
|
|
|
43260
43784
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43261
43785
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
43262
|
-
return new APIPromise($
|
|
43786
|
+
return new APIPromise($do16(client, request, options));
|
|
43263
43787
|
}
|
|
43264
|
-
async function $
|
|
43788
|
+
async function $do16(client, request, options) {
|
|
43265
43789
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43266
43790
|
if (!parsed.ok) {
|
|
43267
43791
|
return [parsed, { status: "invalid" }];
|
|
@@ -43330,12 +43854,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
43330
43854
|
});
|
|
43331
43855
|
|
|
43332
43856
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43333
|
-
var
|
|
43857
|
+
var args16, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
43334
43858
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
43335
43859
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
43336
43860
|
init_components();
|
|
43337
43861
|
init_tools();
|
|
43338
|
-
|
|
43862
|
+
args16 = {
|
|
43339
43863
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
43340
43864
|
};
|
|
43341
43865
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -43351,9 +43875,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
43351
43875
|
of the current market conditions, taking into account the liquidity and price
|
|
43352
43876
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
43353
43877
|
token and are willing to accept the resulting amount of the other token.`,
|
|
43354
|
-
args:
|
|
43355
|
-
tool: async (client,
|
|
43356
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
43878
|
+
args: args16,
|
|
43879
|
+
tool: async (client, args17, ctx) => {
|
|
43880
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43357
43881
|
if (!result.ok) {
|
|
43358
43882
|
return {
|
|
43359
43883
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43368,9 +43892,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
43368
43892
|
|
|
43369
43893
|
// src/funcs/morphoAllowance.ts
|
|
43370
43894
|
function morphoAllowance(client, request, options) {
|
|
43371
|
-
return new APIPromise($
|
|
43895
|
+
return new APIPromise($do17(client, request, options));
|
|
43372
43896
|
}
|
|
43373
|
-
async function $
|
|
43897
|
+
async function $do17(client, request, options) {
|
|
43374
43898
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43375
43899
|
if (!parsed.ok) {
|
|
43376
43900
|
return [parsed, { status: "invalid" }];
|
|
@@ -43439,12 +43963,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
43439
43963
|
});
|
|
43440
43964
|
|
|
43441
43965
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
43442
|
-
var
|
|
43966
|
+
var args17, tool$morphoAllowance;
|
|
43443
43967
|
var init_morphoAllowance2 = __esm(() => {
|
|
43444
43968
|
init_morphoAllowance();
|
|
43445
43969
|
init_components();
|
|
43446
43970
|
init_tools();
|
|
43447
|
-
|
|
43971
|
+
args17 = {
|
|
43448
43972
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
43449
43973
|
};
|
|
43450
43974
|
tool$morphoAllowance = {
|
|
@@ -43456,9 +43980,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
43456
43980
|
Each vault has only one associated token that can be deposited.
|
|
43457
43981
|
|
|
43458
43982
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
43459
|
-
args:
|
|
43460
|
-
tool: async (client,
|
|
43461
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
43983
|
+
args: args17,
|
|
43984
|
+
tool: async (client, args18, ctx) => {
|
|
43985
|
+
const [result, apiCall] = await morphoAllowance(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43462
43986
|
if (!result.ok) {
|
|
43463
43987
|
return {
|
|
43464
43988
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43473,9 +43997,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
43473
43997
|
|
|
43474
43998
|
// src/funcs/morphoBorrow.ts
|
|
43475
43999
|
function morphoBorrow(client, request, options) {
|
|
43476
|
-
return new APIPromise($
|
|
44000
|
+
return new APIPromise($do18(client, request, options));
|
|
43477
44001
|
}
|
|
43478
|
-
async function $
|
|
44002
|
+
async function $do18(client, request, options) {
|
|
43479
44003
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43480
44004
|
if (!parsed.ok) {
|
|
43481
44005
|
return [parsed, { status: "invalid" }];
|
|
@@ -43544,12 +44068,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
43544
44068
|
});
|
|
43545
44069
|
|
|
43546
44070
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
43547
|
-
var
|
|
44071
|
+
var args18, tool$morphoBorrow;
|
|
43548
44072
|
var init_morphoBorrow2 = __esm(() => {
|
|
43549
44073
|
init_morphoBorrow();
|
|
43550
44074
|
init_components();
|
|
43551
44075
|
init_tools();
|
|
43552
|
-
|
|
44076
|
+
args18 = {
|
|
43553
44077
|
request: MorphoBorrowRequest$inboundSchema
|
|
43554
44078
|
};
|
|
43555
44079
|
tool$morphoBorrow = {
|
|
@@ -43565,9 +44089,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
43565
44089
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
43566
44090
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
43567
44091
|
as long as the blockchain it is deployed on is live.`,
|
|
43568
|
-
args:
|
|
43569
|
-
tool: async (client,
|
|
43570
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
44092
|
+
args: args18,
|
|
44093
|
+
tool: async (client, args19, ctx) => {
|
|
44094
|
+
const [result, apiCall] = await morphoBorrow(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43571
44095
|
if (!result.ok) {
|
|
43572
44096
|
return {
|
|
43573
44097
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43582,9 +44106,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
43582
44106
|
|
|
43583
44107
|
// src/funcs/morphoDeposit.ts
|
|
43584
44108
|
function morphoDeposit(client, request, options) {
|
|
43585
|
-
return new APIPromise($
|
|
44109
|
+
return new APIPromise($do19(client, request, options));
|
|
43586
44110
|
}
|
|
43587
|
-
async function $
|
|
44111
|
+
async function $do19(client, request, options) {
|
|
43588
44112
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43589
44113
|
if (!parsed.ok) {
|
|
43590
44114
|
return [parsed, { status: "invalid" }];
|
|
@@ -43653,12 +44177,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
43653
44177
|
});
|
|
43654
44178
|
|
|
43655
44179
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
43656
|
-
var
|
|
44180
|
+
var args19, tool$morphoDeposit;
|
|
43657
44181
|
var init_morphoDeposit2 = __esm(() => {
|
|
43658
44182
|
init_morphoDeposit();
|
|
43659
44183
|
init_components();
|
|
43660
44184
|
init_tools();
|
|
43661
|
-
|
|
44185
|
+
args19 = {
|
|
43662
44186
|
request: MorphoDepositRequest$inboundSchema
|
|
43663
44187
|
};
|
|
43664
44188
|
tool$morphoDeposit = {
|
|
@@ -43676,9 +44200,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
43676
44200
|
exposure for all deposited assets so users don't need to make these decisions
|
|
43677
44201
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
43678
44202
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
43679
|
-
args:
|
|
43680
|
-
tool: async (client,
|
|
43681
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
44203
|
+
args: args19,
|
|
44204
|
+
tool: async (client, args20, ctx) => {
|
|
44205
|
+
const [result, apiCall] = await morphoDeposit(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43682
44206
|
if (!result.ok) {
|
|
43683
44207
|
return {
|
|
43684
44208
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43693,9 +44217,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
43693
44217
|
|
|
43694
44218
|
// src/funcs/morphoMarketPosition.ts
|
|
43695
44219
|
function morphoMarketPosition(client, request, options) {
|
|
43696
|
-
return new APIPromise($
|
|
44220
|
+
return new APIPromise($do20(client, request, options));
|
|
43697
44221
|
}
|
|
43698
|
-
async function $
|
|
44222
|
+
async function $do20(client, request, options) {
|
|
43699
44223
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43700
44224
|
if (!parsed.ok) {
|
|
43701
44225
|
return [parsed, { status: "invalid" }];
|
|
@@ -43770,12 +44294,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
43770
44294
|
});
|
|
43771
44295
|
|
|
43772
44296
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
43773
|
-
var
|
|
44297
|
+
var args20, tool$morphoMarketPosition;
|
|
43774
44298
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
43775
44299
|
init_morphoMarketPosition();
|
|
43776
44300
|
init_operations();
|
|
43777
44301
|
init_tools();
|
|
43778
|
-
|
|
44302
|
+
args20 = {
|
|
43779
44303
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
43780
44304
|
};
|
|
43781
44305
|
tool$morphoMarketPosition = {
|
|
@@ -43784,9 +44308,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
43784
44308
|
|
|
43785
44309
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
43786
44310
|
market.`,
|
|
43787
|
-
args:
|
|
43788
|
-
tool: async (client,
|
|
43789
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
44311
|
+
args: args20,
|
|
44312
|
+
tool: async (client, args21, ctx) => {
|
|
44313
|
+
const [result, apiCall] = await morphoMarketPosition(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43790
44314
|
if (!result.ok) {
|
|
43791
44315
|
return {
|
|
43792
44316
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43801,9 +44325,9 @@ market.`,
|
|
|
43801
44325
|
|
|
43802
44326
|
// src/funcs/morphoMarkets.ts
|
|
43803
44327
|
function morphoMarkets(client, request, options) {
|
|
43804
|
-
return new APIPromise($
|
|
44328
|
+
return new APIPromise($do21(client, request, options));
|
|
43805
44329
|
}
|
|
43806
|
-
async function $
|
|
44330
|
+
async function $do21(client, request, options) {
|
|
43807
44331
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43808
44332
|
if (!parsed.ok) {
|
|
43809
44333
|
return [parsed, { status: "invalid" }];
|
|
@@ -43878,12 +44402,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
43878
44402
|
});
|
|
43879
44403
|
|
|
43880
44404
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
43881
|
-
var
|
|
44405
|
+
var args21, tool$morphoMarkets;
|
|
43882
44406
|
var init_morphoMarkets2 = __esm(() => {
|
|
43883
44407
|
init_morphoMarkets();
|
|
43884
44408
|
init_operations();
|
|
43885
44409
|
init_tools();
|
|
43886
|
-
|
|
44410
|
+
args21 = {
|
|
43887
44411
|
request: MorphoMarketsRequest$inboundSchema
|
|
43888
44412
|
};
|
|
43889
44413
|
tool$morphoMarkets = {
|
|
@@ -43894,9 +44418,9 @@ Query a list of markets you can borrow from.
|
|
|
43894
44418
|
|
|
43895
44419
|
Each market has one unique token that can be borrowed against one unique token that
|
|
43896
44420
|
can be used as collateral.`,
|
|
43897
|
-
args:
|
|
43898
|
-
tool: async (client,
|
|
43899
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
44421
|
+
args: args21,
|
|
44422
|
+
tool: async (client, args22, ctx) => {
|
|
44423
|
+
const [result, apiCall] = await morphoMarkets(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43900
44424
|
if (!result.ok) {
|
|
43901
44425
|
return {
|
|
43902
44426
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43911,9 +44435,9 @@ can be used as collateral.`,
|
|
|
43911
44435
|
|
|
43912
44436
|
// src/funcs/morphoRepay.ts
|
|
43913
44437
|
function morphoRepay(client, request, options) {
|
|
43914
|
-
return new APIPromise($
|
|
44438
|
+
return new APIPromise($do22(client, request, options));
|
|
43915
44439
|
}
|
|
43916
|
-
async function $
|
|
44440
|
+
async function $do22(client, request, options) {
|
|
43917
44441
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43918
44442
|
if (!parsed.ok) {
|
|
43919
44443
|
return [parsed, { status: "invalid" }];
|
|
@@ -43982,12 +44506,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
43982
44506
|
});
|
|
43983
44507
|
|
|
43984
44508
|
// src/mcp-server/tools/morphoRepay.ts
|
|
43985
|
-
var
|
|
44509
|
+
var args22, tool$morphoRepay;
|
|
43986
44510
|
var init_morphoRepay2 = __esm(() => {
|
|
43987
44511
|
init_morphoRepay();
|
|
43988
44512
|
init_components();
|
|
43989
44513
|
init_tools();
|
|
43990
|
-
|
|
44514
|
+
args22 = {
|
|
43991
44515
|
request: MorphoRepayRequest$inboundSchema
|
|
43992
44516
|
};
|
|
43993
44517
|
tool$morphoRepay = {
|
|
@@ -44000,9 +44524,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44000
44524
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44001
44525
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44002
44526
|
as long as the blockchain it is deployed on is live.`,
|
|
44003
|
-
args:
|
|
44004
|
-
tool: async (client,
|
|
44005
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
44527
|
+
args: args22,
|
|
44528
|
+
tool: async (client, args23, ctx) => {
|
|
44529
|
+
const [result, apiCall] = await morphoRepay(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44006
44530
|
if (!result.ok) {
|
|
44007
44531
|
return {
|
|
44008
44532
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44017,9 +44541,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44017
44541
|
|
|
44018
44542
|
// src/funcs/morphoSupplyCollateral.ts
|
|
44019
44543
|
function morphoSupplyCollateral(client, request, options) {
|
|
44020
|
-
return new APIPromise($
|
|
44544
|
+
return new APIPromise($do23(client, request, options));
|
|
44021
44545
|
}
|
|
44022
|
-
async function $
|
|
44546
|
+
async function $do23(client, request, options) {
|
|
44023
44547
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44024
44548
|
if (!parsed.ok) {
|
|
44025
44549
|
return [parsed, { status: "invalid" }];
|
|
@@ -44088,12 +44612,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
44088
44612
|
});
|
|
44089
44613
|
|
|
44090
44614
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
44091
|
-
var
|
|
44615
|
+
var args23, tool$morphoSupplyCollateral;
|
|
44092
44616
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
44093
44617
|
init_morphoSupplyCollateral();
|
|
44094
44618
|
init_components();
|
|
44095
44619
|
init_tools();
|
|
44096
|
-
|
|
44620
|
+
args23 = {
|
|
44097
44621
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
44098
44622
|
};
|
|
44099
44623
|
tool$morphoSupplyCollateral = {
|
|
@@ -44106,9 +44630,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44106
44630
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44107
44631
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44108
44632
|
as long as the blockchain it is deployed on is live.`,
|
|
44109
|
-
args:
|
|
44110
|
-
tool: async (client,
|
|
44111
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
44633
|
+
args: args23,
|
|
44634
|
+
tool: async (client, args24, ctx) => {
|
|
44635
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44112
44636
|
if (!result.ok) {
|
|
44113
44637
|
return {
|
|
44114
44638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44123,9 +44647,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44123
44647
|
|
|
44124
44648
|
// src/funcs/morphoVaultPosition.ts
|
|
44125
44649
|
function morphoVaultPosition(client, request, options) {
|
|
44126
|
-
return new APIPromise($
|
|
44650
|
+
return new APIPromise($do24(client, request, options));
|
|
44127
44651
|
}
|
|
44128
|
-
async function $
|
|
44652
|
+
async function $do24(client, request, options) {
|
|
44129
44653
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44130
44654
|
if (!parsed.ok) {
|
|
44131
44655
|
return [parsed, { status: "invalid" }];
|
|
@@ -44200,12 +44724,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
44200
44724
|
});
|
|
44201
44725
|
|
|
44202
44726
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
44203
|
-
var
|
|
44727
|
+
var args24, tool$morphoVaultPosition;
|
|
44204
44728
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
44205
44729
|
init_morphoVaultPosition();
|
|
44206
44730
|
init_operations();
|
|
44207
44731
|
init_tools();
|
|
44208
|
-
|
|
44732
|
+
args24 = {
|
|
44209
44733
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
44210
44734
|
};
|
|
44211
44735
|
tool$morphoVaultPosition = {
|
|
@@ -44214,9 +44738,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
44214
44738
|
|
|
44215
44739
|
Check how many shares you own and the equivalent token amount of a given
|
|
44216
44740
|
vault.`,
|
|
44217
|
-
args:
|
|
44218
|
-
tool: async (client,
|
|
44219
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
44741
|
+
args: args24,
|
|
44742
|
+
tool: async (client, args25, ctx) => {
|
|
44743
|
+
const [result, apiCall] = await morphoVaultPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44220
44744
|
if (!result.ok) {
|
|
44221
44745
|
return {
|
|
44222
44746
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44231,9 +44755,9 @@ vault.`,
|
|
|
44231
44755
|
|
|
44232
44756
|
// src/funcs/morphoVaults.ts
|
|
44233
44757
|
function morphoVaults(client, request, options) {
|
|
44234
|
-
return new APIPromise($
|
|
44758
|
+
return new APIPromise($do25(client, request, options));
|
|
44235
44759
|
}
|
|
44236
|
-
async function $
|
|
44760
|
+
async function $do25(client, request, options) {
|
|
44237
44761
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44238
44762
|
if (!parsed.ok) {
|
|
44239
44763
|
return [parsed, { status: "invalid" }];
|
|
@@ -44307,12 +44831,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
44307
44831
|
});
|
|
44308
44832
|
|
|
44309
44833
|
// src/mcp-server/tools/morphoVaults.ts
|
|
44310
|
-
var
|
|
44834
|
+
var args25, tool$morphoVaults;
|
|
44311
44835
|
var init_morphoVaults2 = __esm(() => {
|
|
44312
44836
|
init_morphoVaults();
|
|
44313
44837
|
init_operations();
|
|
44314
44838
|
init_tools();
|
|
44315
|
-
|
|
44839
|
+
args25 = {
|
|
44316
44840
|
request: MorphoVaultsRequest$inboundSchema
|
|
44317
44841
|
};
|
|
44318
44842
|
tool$morphoVaults = {
|
|
@@ -44324,9 +44848,9 @@ Query a list of vaults you can deposit into.
|
|
|
44324
44848
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
44325
44849
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
44326
44850
|
exchange value increasing over time.`,
|
|
44327
|
-
args:
|
|
44328
|
-
tool: async (client,
|
|
44329
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
44851
|
+
args: args25,
|
|
44852
|
+
tool: async (client, args26, ctx) => {
|
|
44853
|
+
const [result, apiCall] = await morphoVaults(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44330
44854
|
if (!result.ok) {
|
|
44331
44855
|
return {
|
|
44332
44856
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44341,9 +44865,9 @@ exchange value increasing over time.`,
|
|
|
44341
44865
|
|
|
44342
44866
|
// src/funcs/morphoWithdraw.ts
|
|
44343
44867
|
function morphoWithdraw(client, request, options) {
|
|
44344
|
-
return new APIPromise($
|
|
44868
|
+
return new APIPromise($do26(client, request, options));
|
|
44345
44869
|
}
|
|
44346
|
-
async function $
|
|
44870
|
+
async function $do26(client, request, options) {
|
|
44347
44871
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44348
44872
|
if (!parsed.ok) {
|
|
44349
44873
|
return [parsed, { status: "invalid" }];
|
|
@@ -44412,12 +44936,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
44412
44936
|
});
|
|
44413
44937
|
|
|
44414
44938
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
44415
|
-
var
|
|
44939
|
+
var args26, tool$morphoWithdraw;
|
|
44416
44940
|
var init_morphoWithdraw2 = __esm(() => {
|
|
44417
44941
|
init_morphoWithdraw();
|
|
44418
44942
|
init_components();
|
|
44419
44943
|
init_tools();
|
|
44420
|
-
|
|
44944
|
+
args26 = {
|
|
44421
44945
|
request: MorphoWithdrawRequest$inboundSchema
|
|
44422
44946
|
};
|
|
44423
44947
|
tool$morphoWithdraw = {
|
|
@@ -44435,9 +44959,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44435
44959
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44436
44960
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44437
44961
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44438
|
-
args:
|
|
44439
|
-
tool: async (client,
|
|
44440
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
44962
|
+
args: args26,
|
|
44963
|
+
tool: async (client, args27, ctx) => {
|
|
44964
|
+
const [result, apiCall] = await morphoWithdraw(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44441
44965
|
if (!result.ok) {
|
|
44442
44966
|
return {
|
|
44443
44967
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44452,9 +44976,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44452
44976
|
|
|
44453
44977
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
44454
44978
|
function morphoWithdrawCollateral(client, request, options) {
|
|
44455
|
-
return new APIPromise($
|
|
44979
|
+
return new APIPromise($do27(client, request, options));
|
|
44456
44980
|
}
|
|
44457
|
-
async function $
|
|
44981
|
+
async function $do27(client, request, options) {
|
|
44458
44982
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44459
44983
|
if (!parsed.ok) {
|
|
44460
44984
|
return [parsed, { status: "invalid" }];
|
|
@@ -44523,12 +45047,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
44523
45047
|
});
|
|
44524
45048
|
|
|
44525
45049
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
44526
|
-
var
|
|
45050
|
+
var args27, tool$morphoWithdrawCollateral;
|
|
44527
45051
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
44528
45052
|
init_morphoWithdrawCollateral();
|
|
44529
45053
|
init_components();
|
|
44530
45054
|
init_tools();
|
|
44531
|
-
|
|
45055
|
+
args27 = {
|
|
44532
45056
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
44533
45057
|
};
|
|
44534
45058
|
tool$morphoWithdrawCollateral = {
|
|
@@ -44541,9 +45065,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44541
45065
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44542
45066
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44543
45067
|
as long as the blockchain it is deployed on is live.`,
|
|
44544
|
-
args:
|
|
44545
|
-
tool: async (client,
|
|
44546
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
45068
|
+
args: args27,
|
|
45069
|
+
tool: async (client, args28, ctx) => {
|
|
45070
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44547
45071
|
if (!result.ok) {
|
|
44548
45072
|
return {
|
|
44549
45073
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44558,9 +45082,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44558
45082
|
|
|
44559
45083
|
// src/funcs/skyBuy.ts
|
|
44560
45084
|
function skyBuy(client, request, options) {
|
|
44561
|
-
return new APIPromise($
|
|
45085
|
+
return new APIPromise($do28(client, request, options));
|
|
44562
45086
|
}
|
|
44563
|
-
async function $
|
|
45087
|
+
async function $do28(client, request, options) {
|
|
44564
45088
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44565
45089
|
if (!parsed.ok) {
|
|
44566
45090
|
return [parsed, { status: "invalid" }];
|
|
@@ -44629,12 +45153,12 @@ var init_skyBuy = __esm(() => {
|
|
|
44629
45153
|
});
|
|
44630
45154
|
|
|
44631
45155
|
// src/mcp-server/tools/skyBuy.ts
|
|
44632
|
-
var
|
|
45156
|
+
var args28, tool$skyBuy;
|
|
44633
45157
|
var init_skyBuy2 = __esm(() => {
|
|
44634
45158
|
init_skyBuy();
|
|
44635
45159
|
init_components();
|
|
44636
45160
|
init_tools();
|
|
44637
|
-
|
|
45161
|
+
args28 = {
|
|
44638
45162
|
request: SkyBuyRequest$inboundSchema
|
|
44639
45163
|
};
|
|
44640
45164
|
tool$skyBuy = {
|
|
@@ -44644,9 +45168,9 @@ var init_skyBuy2 = __esm(() => {
|
|
|
44644
45168
|
Buy USDS with DAI or USDC on a 1:1 basis.
|
|
44645
45169
|
|
|
44646
45170
|
There are no fees.`,
|
|
44647
|
-
args:
|
|
44648
|
-
tool: async (client,
|
|
44649
|
-
const [result, apiCall] = await skyBuy(client,
|
|
45171
|
+
args: args28,
|
|
45172
|
+
tool: async (client, args29, ctx) => {
|
|
45173
|
+
const [result, apiCall] = await skyBuy(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44650
45174
|
if (!result.ok) {
|
|
44651
45175
|
return {
|
|
44652
45176
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44661,9 +45185,9 @@ There are no fees.`,
|
|
|
44661
45185
|
|
|
44662
45186
|
// src/funcs/skyDeposit.ts
|
|
44663
45187
|
function skyDeposit(client, request, options) {
|
|
44664
|
-
return new APIPromise($
|
|
45188
|
+
return new APIPromise($do29(client, request, options));
|
|
44665
45189
|
}
|
|
44666
|
-
async function $
|
|
45190
|
+
async function $do29(client, request, options) {
|
|
44667
45191
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44668
45192
|
if (!parsed.ok) {
|
|
44669
45193
|
return [parsed, { status: "invalid" }];
|
|
@@ -44732,12 +45256,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
44732
45256
|
});
|
|
44733
45257
|
|
|
44734
45258
|
// src/mcp-server/tools/skyDeposit.ts
|
|
44735
|
-
var
|
|
45259
|
+
var args29, tool$skyDeposit;
|
|
44736
45260
|
var init_skyDeposit2 = __esm(() => {
|
|
44737
45261
|
init_skyDeposit();
|
|
44738
45262
|
init_components();
|
|
44739
45263
|
init_tools();
|
|
44740
|
-
|
|
45264
|
+
args29 = {
|
|
44741
45265
|
request: SkyDepositRequest$inboundSchema
|
|
44742
45266
|
};
|
|
44743
45267
|
tool$skyDeposit = {
|
|
@@ -44747,9 +45271,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
44747
45271
|
Deposit USDS for sUSDS to earn yield.
|
|
44748
45272
|
|
|
44749
45273
|
There are no fees.`,
|
|
44750
|
-
args:
|
|
44751
|
-
tool: async (client,
|
|
44752
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
45274
|
+
args: args29,
|
|
45275
|
+
tool: async (client, args30, ctx) => {
|
|
45276
|
+
const [result, apiCall] = await skyDeposit(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44753
45277
|
if (!result.ok) {
|
|
44754
45278
|
return {
|
|
44755
45279
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44764,9 +45288,9 @@ There are no fees.`,
|
|
|
44764
45288
|
|
|
44765
45289
|
// src/funcs/skyPosition.ts
|
|
44766
45290
|
function skyPosition(client, request, options) {
|
|
44767
|
-
return new APIPromise($
|
|
45291
|
+
return new APIPromise($do30(client, request, options));
|
|
44768
45292
|
}
|
|
44769
|
-
async function $
|
|
45293
|
+
async function $do30(client, request, options) {
|
|
44770
45294
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44771
45295
|
if (!parsed.ok) {
|
|
44772
45296
|
return [parsed, { status: "invalid" }];
|
|
@@ -44840,12 +45364,12 @@ var init_skyPosition = __esm(() => {
|
|
|
44840
45364
|
});
|
|
44841
45365
|
|
|
44842
45366
|
// src/mcp-server/tools/skyPosition.ts
|
|
44843
|
-
var
|
|
45367
|
+
var args30, tool$skyPosition;
|
|
44844
45368
|
var init_skyPosition2 = __esm(() => {
|
|
44845
45369
|
init_skyPosition();
|
|
44846
45370
|
init_operations();
|
|
44847
45371
|
init_tools();
|
|
44848
|
-
|
|
45372
|
+
args30 = {
|
|
44849
45373
|
request: SkyPositionRequest$inboundSchema
|
|
44850
45374
|
};
|
|
44851
45375
|
tool$skyPosition = {
|
|
@@ -44853,9 +45377,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
44853
45377
|
description: `Check USDS Position
|
|
44854
45378
|
|
|
44855
45379
|
Check the USDS overall position.`,
|
|
44856
|
-
args:
|
|
44857
|
-
tool: async (client,
|
|
44858
|
-
const [result, apiCall] = await skyPosition(client,
|
|
45380
|
+
args: args30,
|
|
45381
|
+
tool: async (client, args31, ctx) => {
|
|
45382
|
+
const [result, apiCall] = await skyPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44859
45383
|
if (!result.ok) {
|
|
44860
45384
|
return {
|
|
44861
45385
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44870,9 +45394,9 @@ Check the USDS overall position.`,
|
|
|
44870
45394
|
|
|
44871
45395
|
// src/funcs/skySell.ts
|
|
44872
45396
|
function skySell(client, request, options) {
|
|
44873
|
-
return new APIPromise($
|
|
45397
|
+
return new APIPromise($do31(client, request, options));
|
|
44874
45398
|
}
|
|
44875
|
-
async function $
|
|
45399
|
+
async function $do31(client, request, options) {
|
|
44876
45400
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44877
45401
|
if (!parsed.ok) {
|
|
44878
45402
|
return [parsed, { status: "invalid" }];
|
|
@@ -44941,12 +45465,12 @@ var init_skySell = __esm(() => {
|
|
|
44941
45465
|
});
|
|
44942
45466
|
|
|
44943
45467
|
// src/mcp-server/tools/skySell.ts
|
|
44944
|
-
var
|
|
45468
|
+
var args31, tool$skySell;
|
|
44945
45469
|
var init_skySell2 = __esm(() => {
|
|
44946
45470
|
init_skySell();
|
|
44947
45471
|
init_components();
|
|
44948
45472
|
init_tools();
|
|
44949
|
-
|
|
45473
|
+
args31 = {
|
|
44950
45474
|
request: SkySellRequest$inboundSchema
|
|
44951
45475
|
};
|
|
44952
45476
|
tool$skySell = {
|
|
@@ -44956,9 +45480,9 @@ var init_skySell2 = __esm(() => {
|
|
|
44956
45480
|
Sell USDS for DAI or USDC on a 1:1 basis.
|
|
44957
45481
|
|
|
44958
45482
|
There are no fees.`,
|
|
44959
|
-
args:
|
|
44960
|
-
tool: async (client,
|
|
44961
|
-
const [result, apiCall] = await skySell(client,
|
|
45483
|
+
args: args31,
|
|
45484
|
+
tool: async (client, args32, ctx) => {
|
|
45485
|
+
const [result, apiCall] = await skySell(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44962
45486
|
if (!result.ok) {
|
|
44963
45487
|
return {
|
|
44964
45488
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44973,9 +45497,9 @@ There are no fees.`,
|
|
|
44973
45497
|
|
|
44974
45498
|
// src/funcs/skyWithdraw.ts
|
|
44975
45499
|
function skyWithdraw(client, request, options) {
|
|
44976
|
-
return new APIPromise($
|
|
45500
|
+
return new APIPromise($do32(client, request, options));
|
|
44977
45501
|
}
|
|
44978
|
-
async function $
|
|
45502
|
+
async function $do32(client, request, options) {
|
|
44979
45503
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44980
45504
|
if (!parsed.ok) {
|
|
44981
45505
|
return [parsed, { status: "invalid" }];
|
|
@@ -45044,12 +45568,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
45044
45568
|
});
|
|
45045
45569
|
|
|
45046
45570
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
45047
|
-
var
|
|
45571
|
+
var args32, tool$skyWithdraw;
|
|
45048
45572
|
var init_skyWithdraw2 = __esm(() => {
|
|
45049
45573
|
init_skyWithdraw();
|
|
45050
45574
|
init_components();
|
|
45051
45575
|
init_tools();
|
|
45052
|
-
|
|
45576
|
+
args32 = {
|
|
45053
45577
|
request: SkyWithdrawRequest$inboundSchema
|
|
45054
45578
|
};
|
|
45055
45579
|
tool$skyWithdraw = {
|
|
@@ -45059,9 +45583,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
45059
45583
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
45060
45584
|
|
|
45061
45585
|
There are no fees.`,
|
|
45062
|
-
args:
|
|
45063
|
-
tool: async (client,
|
|
45064
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
45586
|
+
args: args32,
|
|
45587
|
+
tool: async (client, args33, ctx) => {
|
|
45588
|
+
const [result, apiCall] = await skyWithdraw(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45065
45589
|
if (!result.ok) {
|
|
45066
45590
|
return {
|
|
45067
45591
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45076,9 +45600,9 @@ There are no fees.`,
|
|
|
45076
45600
|
|
|
45077
45601
|
// src/funcs/tokenAddress.ts
|
|
45078
45602
|
function tokenAddress(client, request, options) {
|
|
45079
|
-
return new APIPromise($
|
|
45603
|
+
return new APIPromise($do33(client, request, options));
|
|
45080
45604
|
}
|
|
45081
|
-
async function $
|
|
45605
|
+
async function $do33(client, request, options) {
|
|
45082
45606
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45083
45607
|
if (!parsed.ok) {
|
|
45084
45608
|
return [parsed, { status: "invalid" }];
|
|
@@ -45152,12 +45676,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
45152
45676
|
});
|
|
45153
45677
|
|
|
45154
45678
|
// src/mcp-server/tools/tokenAddress.ts
|
|
45155
|
-
var
|
|
45679
|
+
var args33, tool$tokenAddress;
|
|
45156
45680
|
var init_tokenAddress2 = __esm(() => {
|
|
45157
45681
|
init_tokenAddress();
|
|
45158
45682
|
init_operations();
|
|
45159
45683
|
init_tools();
|
|
45160
|
-
|
|
45684
|
+
args33 = {
|
|
45161
45685
|
request: TokenAddressRequest$inboundSchema
|
|
45162
45686
|
};
|
|
45163
45687
|
tool$tokenAddress = {
|
|
@@ -45165,9 +45689,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
45165
45689
|
description: `Token Address
|
|
45166
45690
|
|
|
45167
45691
|
This endpoint retrieves the address for a token supported by us.`,
|
|
45168
|
-
args:
|
|
45169
|
-
tool: async (client,
|
|
45170
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
45692
|
+
args: args33,
|
|
45693
|
+
tool: async (client, args34, ctx) => {
|
|
45694
|
+
const [result, apiCall] = await tokenAddress(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45171
45695
|
if (!result.ok) {
|
|
45172
45696
|
return {
|
|
45173
45697
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45182,9 +45706,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
45182
45706
|
|
|
45183
45707
|
// src/funcs/tokenBalance.ts
|
|
45184
45708
|
function tokenBalance(client, request, options) {
|
|
45185
|
-
return new APIPromise($
|
|
45709
|
+
return new APIPromise($do34(client, request, options));
|
|
45186
45710
|
}
|
|
45187
|
-
async function $
|
|
45711
|
+
async function $do34(client, request, options) {
|
|
45188
45712
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45189
45713
|
if (!parsed.ok) {
|
|
45190
45714
|
return [parsed, { status: "invalid" }];
|
|
@@ -45259,12 +45783,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
45259
45783
|
});
|
|
45260
45784
|
|
|
45261
45785
|
// src/mcp-server/tools/tokenBalance.ts
|
|
45262
|
-
var
|
|
45786
|
+
var args34, tool$tokenBalance;
|
|
45263
45787
|
var init_tokenBalance2 = __esm(() => {
|
|
45264
45788
|
init_tokenBalance();
|
|
45265
45789
|
init_operations();
|
|
45266
45790
|
init_tools();
|
|
45267
|
-
|
|
45791
|
+
args34 = {
|
|
45268
45792
|
request: TokenBalanceRequest$inboundSchema
|
|
45269
45793
|
};
|
|
45270
45794
|
tool$tokenBalance = {
|
|
@@ -45272,9 +45796,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
45272
45796
|
description: `Token Balance
|
|
45273
45797
|
|
|
45274
45798
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
45275
|
-
args:
|
|
45276
|
-
tool: async (client,
|
|
45277
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
45799
|
+
args: args34,
|
|
45800
|
+
tool: async (client, args35, ctx) => {
|
|
45801
|
+
const [result, apiCall] = await tokenBalance(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45278
45802
|
if (!result.ok) {
|
|
45279
45803
|
return {
|
|
45280
45804
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45289,9 +45813,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
45289
45813
|
|
|
45290
45814
|
// src/funcs/tokenPrice.ts
|
|
45291
45815
|
function tokenPrice(client, request, options) {
|
|
45292
|
-
return new APIPromise($
|
|
45816
|
+
return new APIPromise($do35(client, request, options));
|
|
45293
45817
|
}
|
|
45294
|
-
async function $
|
|
45818
|
+
async function $do35(client, request, options) {
|
|
45295
45819
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45296
45820
|
if (!parsed.ok) {
|
|
45297
45821
|
return [parsed, { status: "invalid" }];
|
|
@@ -45365,12 +45889,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
45365
45889
|
});
|
|
45366
45890
|
|
|
45367
45891
|
// src/mcp-server/tools/tokenPrice.ts
|
|
45368
|
-
var
|
|
45892
|
+
var args35, tool$tokenPrice;
|
|
45369
45893
|
var init_tokenPrice2 = __esm(() => {
|
|
45370
45894
|
init_tokenPrice();
|
|
45371
45895
|
init_operations();
|
|
45372
45896
|
init_tools();
|
|
45373
|
-
|
|
45897
|
+
args35 = {
|
|
45374
45898
|
request: TokenPriceRequest$inboundSchema
|
|
45375
45899
|
};
|
|
45376
45900
|
tool$tokenPrice = {
|
|
@@ -45382,9 +45906,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
45382
45906
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
45383
45907
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
45384
45908
|
with the update frequency of the oracle.`,
|
|
45385
|
-
args:
|
|
45386
|
-
tool: async (client,
|
|
45387
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
45909
|
+
args: args35,
|
|
45910
|
+
tool: async (client, args36, ctx) => {
|
|
45911
|
+
const [result, apiCall] = await tokenPrice(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45388
45912
|
if (!result.ok) {
|
|
45389
45913
|
return {
|
|
45390
45914
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45399,9 +45923,9 @@ with the update frequency of the oracle.`,
|
|
|
45399
45923
|
|
|
45400
45924
|
// src/funcs/tokenTransfer.ts
|
|
45401
45925
|
function tokenTransfer(client, request, options) {
|
|
45402
|
-
return new APIPromise($
|
|
45926
|
+
return new APIPromise($do36(client, request, options));
|
|
45403
45927
|
}
|
|
45404
|
-
async function $
|
|
45928
|
+
async function $do36(client, request, options) {
|
|
45405
45929
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45406
45930
|
if (!parsed.ok) {
|
|
45407
45931
|
return [parsed, { status: "invalid" }];
|
|
@@ -45470,12 +45994,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
45470
45994
|
});
|
|
45471
45995
|
|
|
45472
45996
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
45473
|
-
var
|
|
45997
|
+
var args36, tool$tokenTransfer;
|
|
45474
45998
|
var init_tokenTransfer2 = __esm(() => {
|
|
45475
45999
|
init_tokenTransfer();
|
|
45476
46000
|
init_components();
|
|
45477
46001
|
init_tools();
|
|
45478
|
-
|
|
46002
|
+
args36 = {
|
|
45479
46003
|
request: TokenTransferRequest$inboundSchema
|
|
45480
46004
|
};
|
|
45481
46005
|
tool$tokenTransfer = {
|
|
@@ -45483,9 +46007,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
45483
46007
|
description: `Transfer ETH or ERC20 Tokens
|
|
45484
46008
|
|
|
45485
46009
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
45486
|
-
args:
|
|
45487
|
-
tool: async (client,
|
|
45488
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
46010
|
+
args: args36,
|
|
46011
|
+
tool: async (client, args37, ctx) => {
|
|
46012
|
+
const [result, apiCall] = await tokenTransfer(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45489
46013
|
if (!result.ok) {
|
|
45490
46014
|
return {
|
|
45491
46015
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45500,9 +46024,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
45500
46024
|
|
|
45501
46025
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
45502
46026
|
function transactionBatchingAuthorization(client, request, options) {
|
|
45503
|
-
return new APIPromise($
|
|
46027
|
+
return new APIPromise($do37(client, request, options));
|
|
45504
46028
|
}
|
|
45505
|
-
async function $
|
|
46029
|
+
async function $do37(client, request, options) {
|
|
45506
46030
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45507
46031
|
if (!parsed.ok) {
|
|
45508
46032
|
return [parsed, { status: "invalid" }];
|
|
@@ -45571,12 +46095,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
45571
46095
|
});
|
|
45572
46096
|
|
|
45573
46097
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
45574
|
-
var
|
|
46098
|
+
var args37, tool$transactionBatchingAuthorization;
|
|
45575
46099
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
45576
46100
|
init_transactionBatchingAuthorization();
|
|
45577
46101
|
init_components();
|
|
45578
46102
|
init_tools();
|
|
45579
|
-
|
|
46103
|
+
args37 = {
|
|
45580
46104
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
45581
46105
|
};
|
|
45582
46106
|
tool$transactionBatchingAuthorization = {
|
|
@@ -45589,9 +46113,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
45589
46113
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
45590
46114
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
45591
46115
|
targeting.`,
|
|
45592
|
-
args:
|
|
45593
|
-
tool: async (client,
|
|
45594
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
46116
|
+
args: args37,
|
|
46117
|
+
tool: async (client, args38, ctx) => {
|
|
46118
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45595
46119
|
if (!result.ok) {
|
|
45596
46120
|
return {
|
|
45597
46121
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45606,9 +46130,9 @@ targeting.`,
|
|
|
45606
46130
|
|
|
45607
46131
|
// src/funcs/transactionBatchingExecute.ts
|
|
45608
46132
|
function transactionBatchingExecute(client, request, options) {
|
|
45609
|
-
return new APIPromise($
|
|
46133
|
+
return new APIPromise($do38(client, request, options));
|
|
45610
46134
|
}
|
|
45611
|
-
async function $
|
|
46135
|
+
async function $do38(client, request, options) {
|
|
45612
46136
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45613
46137
|
if (!parsed.ok) {
|
|
45614
46138
|
return [parsed, { status: "invalid" }];
|
|
@@ -45677,12 +46201,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
45677
46201
|
});
|
|
45678
46202
|
|
|
45679
46203
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
45680
|
-
var
|
|
46204
|
+
var args38, tool$transactionBatchingExecute;
|
|
45681
46205
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
45682
46206
|
init_transactionBatchingExecute();
|
|
45683
46207
|
init_components();
|
|
45684
46208
|
init_tools();
|
|
45685
|
-
|
|
46209
|
+
args38 = {
|
|
45686
46210
|
request: MulticallExecuteRequest$inboundSchema
|
|
45687
46211
|
};
|
|
45688
46212
|
tool$transactionBatchingExecute = {
|
|
@@ -45695,9 +46219,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
45695
46219
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
45696
46220
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
45697
46221
|
prevent replay attacks.`,
|
|
45698
|
-
args:
|
|
45699
|
-
tool: async (client,
|
|
45700
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
46222
|
+
args: args38,
|
|
46223
|
+
tool: async (client, args39, ctx) => {
|
|
46224
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45701
46225
|
if (!result.ok) {
|
|
45702
46226
|
return {
|
|
45703
46227
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45712,9 +46236,9 @@ prevent replay attacks.`,
|
|
|
45712
46236
|
|
|
45713
46237
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
45714
46238
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
45715
|
-
return new APIPromise($
|
|
46239
|
+
return new APIPromise($do39(client, request, options));
|
|
45716
46240
|
}
|
|
45717
|
-
async function $
|
|
46241
|
+
async function $do39(client, request, options) {
|
|
45718
46242
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45719
46243
|
if (!parsed.ok) {
|
|
45720
46244
|
return [parsed, { status: "invalid" }];
|
|
@@ -45783,12 +46307,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
45783
46307
|
});
|
|
45784
46308
|
|
|
45785
46309
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
45786
|
-
var
|
|
46310
|
+
var args39, tool$uniswapV3LiquidityProvisionIncrease;
|
|
45787
46311
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
45788
46312
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
45789
46313
|
init_components();
|
|
45790
46314
|
init_tools();
|
|
45791
|
-
|
|
46315
|
+
args39 = {
|
|
45792
46316
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
45793
46317
|
};
|
|
45794
46318
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -45804,9 +46328,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
45804
46328
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
45805
46329
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
45806
46330
|
process.`,
|
|
45807
|
-
args:
|
|
45808
|
-
tool: async (client,
|
|
45809
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
46331
|
+
args: args39,
|
|
46332
|
+
tool: async (client, args40, ctx) => {
|
|
46333
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45810
46334
|
if (!result.ok) {
|
|
45811
46335
|
return {
|
|
45812
46336
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45821,9 +46345,9 @@ process.`,
|
|
|
45821
46345
|
|
|
45822
46346
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
45823
46347
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
45824
|
-
return new APIPromise($
|
|
46348
|
+
return new APIPromise($do40(client, request, options));
|
|
45825
46349
|
}
|
|
45826
|
-
async function $
|
|
46350
|
+
async function $do40(client, request, options) {
|
|
45827
46351
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45828
46352
|
if (!parsed.ok) {
|
|
45829
46353
|
return [parsed, { status: "invalid" }];
|
|
@@ -45897,12 +46421,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
45897
46421
|
});
|
|
45898
46422
|
|
|
45899
46423
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
45900
|
-
var
|
|
46424
|
+
var args40, tool$uniswapV3LiquidityProvisionInRange;
|
|
45901
46425
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
45902
46426
|
init_uniswapV3LiquidityProvisionInRange();
|
|
45903
46427
|
init_operations();
|
|
45904
46428
|
init_tools();
|
|
45905
|
-
|
|
46429
|
+
args40 = {
|
|
45906
46430
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
45907
46431
|
};
|
|
45908
46432
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -45917,9 +46441,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
45917
46441
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
45918
46442
|
they are actively participating in the trading activities within the liquidity pool
|
|
45919
46443
|
and earning trading fees.`,
|
|
45920
|
-
args:
|
|
45921
|
-
tool: async (client,
|
|
45922
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
46444
|
+
args: args40,
|
|
46445
|
+
tool: async (client, args41, ctx) => {
|
|
46446
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45923
46447
|
if (!result.ok) {
|
|
45924
46448
|
return {
|
|
45925
46449
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45934,9 +46458,9 @@ and earning trading fees.`,
|
|
|
45934
46458
|
|
|
45935
46459
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
45936
46460
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
45937
|
-
return new APIPromise($
|
|
46461
|
+
return new APIPromise($do41(client, request, options));
|
|
45938
46462
|
}
|
|
45939
|
-
async function $
|
|
46463
|
+
async function $do41(client, request, options) {
|
|
45940
46464
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45941
46465
|
if (!parsed.ok) {
|
|
45942
46466
|
return [parsed, { status: "invalid" }];
|
|
@@ -46005,12 +46529,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
46005
46529
|
});
|
|
46006
46530
|
|
|
46007
46531
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
46008
|
-
var
|
|
46532
|
+
var args41, tool$uniswapV3LiquidityProvisionMint;
|
|
46009
46533
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
46010
46534
|
init_uniswapV3LiquidityProvisionMint();
|
|
46011
46535
|
init_components();
|
|
46012
46536
|
init_tools();
|
|
46013
|
-
|
|
46537
|
+
args41 = {
|
|
46014
46538
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
46015
46539
|
};
|
|
46016
46540
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -46026,9 +46550,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
46026
46550
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
46027
46551
|
requires details such as the token pair, amount, and any additional parameters
|
|
46028
46552
|
needed for the minting process.`,
|
|
46029
|
-
args:
|
|
46030
|
-
tool: async (client,
|
|
46031
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
46553
|
+
args: args41,
|
|
46554
|
+
tool: async (client, args42, ctx) => {
|
|
46555
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46032
46556
|
if (!result.ok) {
|
|
46033
46557
|
return {
|
|
46034
46558
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46043,9 +46567,9 @@ needed for the minting process.`,
|
|
|
46043
46567
|
|
|
46044
46568
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
46045
46569
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
46046
|
-
return new APIPromise($
|
|
46570
|
+
return new APIPromise($do42(client, request, options));
|
|
46047
46571
|
}
|
|
46048
|
-
async function $
|
|
46572
|
+
async function $do42(client, request, options) {
|
|
46049
46573
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46050
46574
|
if (!parsed.ok) {
|
|
46051
46575
|
return [parsed, { status: "invalid" }];
|
|
@@ -46119,12 +46643,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
46119
46643
|
});
|
|
46120
46644
|
|
|
46121
46645
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
46122
|
-
var
|
|
46646
|
+
var args42, tool$uniswapV3LiquidityProvisionPositions;
|
|
46123
46647
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
46124
46648
|
init_uniswapV3LiquidityProvisionPositions();
|
|
46125
46649
|
init_operations();
|
|
46126
46650
|
init_tools();
|
|
46127
|
-
|
|
46651
|
+
args42 = {
|
|
46128
46652
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
46129
46653
|
};
|
|
46130
46654
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -46138,9 +46662,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
46138
46662
|
positions, including the total number of positions and relevant metadata. This
|
|
46139
46663
|
information is crucial for users to manage and analyze their liquidity provision
|
|
46140
46664
|
activities effectively.`,
|
|
46141
|
-
args:
|
|
46142
|
-
tool: async (client,
|
|
46143
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
46665
|
+
args: args42,
|
|
46666
|
+
tool: async (client, args43, ctx) => {
|
|
46667
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46144
46668
|
if (!result.ok) {
|
|
46145
46669
|
return {
|
|
46146
46670
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46155,9 +46679,9 @@ activities effectively.`,
|
|
|
46155
46679
|
|
|
46156
46680
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46157
46681
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
46158
|
-
return new APIPromise($
|
|
46682
|
+
return new APIPromise($do43(client, request, options));
|
|
46159
46683
|
}
|
|
46160
|
-
async function $
|
|
46684
|
+
async function $do43(client, request, options) {
|
|
46161
46685
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46162
46686
|
if (!parsed.ok) {
|
|
46163
46687
|
return [parsed, { status: "invalid" }];
|
|
@@ -46226,12 +46750,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
46226
46750
|
});
|
|
46227
46751
|
|
|
46228
46752
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46229
|
-
var
|
|
46753
|
+
var args43, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
46230
46754
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
46231
46755
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
46232
46756
|
init_components();
|
|
46233
46757
|
init_tools();
|
|
46234
|
-
|
|
46758
|
+
args43 = {
|
|
46235
46759
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
46236
46760
|
};
|
|
46237
46761
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -46248,9 +46772,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
46248
46772
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
46249
46773
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
46250
46774
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
46251
|
-
args:
|
|
46252
|
-
tool: async (client,
|
|
46253
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
46775
|
+
args: args43,
|
|
46776
|
+
tool: async (client, args44, ctx) => {
|
|
46777
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46254
46778
|
if (!result.ok) {
|
|
46255
46779
|
return {
|
|
46256
46780
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46265,9 +46789,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
46265
46789
|
|
|
46266
46790
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
46267
46791
|
function uniswapV3PoolPrice(client, request, options) {
|
|
46268
|
-
return new APIPromise($
|
|
46792
|
+
return new APIPromise($do44(client, request, options));
|
|
46269
46793
|
}
|
|
46270
|
-
async function $
|
|
46794
|
+
async function $do44(client, request, options) {
|
|
46271
46795
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46272
46796
|
if (!parsed.ok) {
|
|
46273
46797
|
return [parsed, { status: "invalid" }];
|
|
@@ -46343,12 +46867,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
46343
46867
|
});
|
|
46344
46868
|
|
|
46345
46869
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
46346
|
-
var
|
|
46870
|
+
var args44, tool$uniswapV3PoolPrice;
|
|
46347
46871
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
46348
46872
|
init_uniswapV3PoolPrice();
|
|
46349
46873
|
init_operations();
|
|
46350
46874
|
init_tools();
|
|
46351
|
-
|
|
46875
|
+
args44 = {
|
|
46352
46876
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
46353
46877
|
};
|
|
46354
46878
|
tool$uniswapV3PoolPrice = {
|
|
@@ -46358,9 +46882,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
46358
46882
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
46359
46883
|
|
|
46360
46884
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
46361
|
-
args:
|
|
46362
|
-
tool: async (client,
|
|
46363
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
46885
|
+
args: args44,
|
|
46886
|
+
tool: async (client, args45, ctx) => {
|
|
46887
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46364
46888
|
if (!result.ok) {
|
|
46365
46889
|
return {
|
|
46366
46890
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46375,9 +46899,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
46375
46899
|
|
|
46376
46900
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
46377
46901
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
46378
|
-
return new APIPromise($
|
|
46902
|
+
return new APIPromise($do45(client, request, options));
|
|
46379
46903
|
}
|
|
46380
|
-
async function $
|
|
46904
|
+
async function $do45(client, request, options) {
|
|
46381
46905
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46382
46906
|
if (!parsed.ok) {
|
|
46383
46907
|
return [parsed, { status: "invalid" }];
|
|
@@ -46454,12 +46978,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
46454
46978
|
});
|
|
46455
46979
|
|
|
46456
46980
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
46457
|
-
var
|
|
46981
|
+
var args45, tool$uniswapV3QuoteBuyExactly;
|
|
46458
46982
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
46459
46983
|
init_uniswapV3QuoteBuyExactly();
|
|
46460
46984
|
init_operations();
|
|
46461
46985
|
init_tools();
|
|
46462
|
-
|
|
46986
|
+
args45 = {
|
|
46463
46987
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
46464
46988
|
};
|
|
46465
46989
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -46471,9 +46995,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
46471
46995
|
|
|
46472
46996
|
It also provides the resulting price after the transaction. The calculation takes
|
|
46473
46997
|
into account the current pool state and the specified fee tier.`,
|
|
46474
|
-
args:
|
|
46475
|
-
tool: async (client,
|
|
46476
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
46998
|
+
args: args45,
|
|
46999
|
+
tool: async (client, args46, ctx) => {
|
|
47000
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46477
47001
|
if (!result.ok) {
|
|
46478
47002
|
return {
|
|
46479
47003
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46488,9 +47012,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
46488
47012
|
|
|
46489
47013
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
46490
47014
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
46491
|
-
return new APIPromise($
|
|
47015
|
+
return new APIPromise($do46(client, request, options));
|
|
46492
47016
|
}
|
|
46493
|
-
async function $
|
|
47017
|
+
async function $do46(client, request, options) {
|
|
46494
47018
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46495
47019
|
if (!parsed.ok) {
|
|
46496
47020
|
return [parsed, { status: "invalid" }];
|
|
@@ -46567,12 +47091,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
46567
47091
|
});
|
|
46568
47092
|
|
|
46569
47093
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
46570
|
-
var
|
|
47094
|
+
var args46, tool$uniswapV3QuoteSellExactly;
|
|
46571
47095
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
46572
47096
|
init_uniswapV3QuoteSellExactly();
|
|
46573
47097
|
init_operations();
|
|
46574
47098
|
init_tools();
|
|
46575
|
-
|
|
47099
|
+
args46 = {
|
|
46576
47100
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
46577
47101
|
};
|
|
46578
47102
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -46584,9 +47108,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
46584
47108
|
|
|
46585
47109
|
It also provides the resulting price after the transaction. The calculation takes
|
|
46586
47110
|
into account the current pool state and the specified fee tier.`,
|
|
46587
|
-
args:
|
|
46588
|
-
tool: async (client,
|
|
46589
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
47111
|
+
args: args46,
|
|
47112
|
+
tool: async (client, args47, ctx) => {
|
|
47113
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46590
47114
|
if (!result.ok) {
|
|
46591
47115
|
return {
|
|
46592
47116
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46601,9 +47125,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
46601
47125
|
|
|
46602
47126
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
46603
47127
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
46604
|
-
return new APIPromise($
|
|
47128
|
+
return new APIPromise($do47(client, request, options));
|
|
46605
47129
|
}
|
|
46606
|
-
async function $
|
|
47130
|
+
async function $do47(client, request, options) {
|
|
46607
47131
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46608
47132
|
if (!parsed.ok) {
|
|
46609
47133
|
return [parsed, { status: "invalid" }];
|
|
@@ -46672,12 +47196,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
46672
47196
|
});
|
|
46673
47197
|
|
|
46674
47198
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
46675
|
-
var
|
|
47199
|
+
var args47, tool$uniswapV3SwapBuyExactly;
|
|
46676
47200
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
46677
47201
|
init_uniswapV3SwapBuyExactly();
|
|
46678
47202
|
init_components();
|
|
46679
47203
|
init_tools();
|
|
46680
|
-
|
|
47204
|
+
args47 = {
|
|
46681
47205
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
46682
47206
|
};
|
|
46683
47207
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -46691,9 +47215,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
46691
47215
|
provide the necessary transaction details, including the token to buy, the token to
|
|
46692
47216
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
46693
47217
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
46694
|
-
args:
|
|
46695
|
-
tool: async (client,
|
|
46696
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
47218
|
+
args: args47,
|
|
47219
|
+
tool: async (client, args48, ctx) => {
|
|
47220
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46697
47221
|
if (!result.ok) {
|
|
46698
47222
|
return {
|
|
46699
47223
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46708,9 +47232,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
46708
47232
|
|
|
46709
47233
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
46710
47234
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
46711
|
-
return new APIPromise($
|
|
47235
|
+
return new APIPromise($do48(client, request, options));
|
|
46712
47236
|
}
|
|
46713
|
-
async function $
|
|
47237
|
+
async function $do48(client, request, options) {
|
|
46714
47238
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46715
47239
|
if (!parsed.ok) {
|
|
46716
47240
|
return [parsed, { status: "invalid" }];
|
|
@@ -46779,12 +47303,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
46779
47303
|
});
|
|
46780
47304
|
|
|
46781
47305
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
46782
|
-
var
|
|
47306
|
+
var args48, tool$uniswapV3SwapSellExactly;
|
|
46783
47307
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
46784
47308
|
init_uniswapV3SwapSellExactly();
|
|
46785
47309
|
init_components();
|
|
46786
47310
|
init_tools();
|
|
46787
|
-
|
|
47311
|
+
args48 = {
|
|
46788
47312
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
46789
47313
|
};
|
|
46790
47314
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -46798,9 +47322,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
46798
47322
|
provide the necessary transaction details, including the token to sell, the token to
|
|
46799
47323
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
46800
47324
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
46801
|
-
args:
|
|
46802
|
-
tool: async (client,
|
|
46803
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
47325
|
+
args: args48,
|
|
47326
|
+
tool: async (client, args49, ctx) => {
|
|
47327
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46804
47328
|
if (!result.ok) {
|
|
46805
47329
|
return {
|
|
46806
47330
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46815,9 +47339,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
46815
47339
|
|
|
46816
47340
|
// src/funcs/universalAllowance.ts
|
|
46817
47341
|
function universalAllowance(client, request, options) {
|
|
46818
|
-
return new APIPromise($
|
|
47342
|
+
return new APIPromise($do49(client, request, options));
|
|
46819
47343
|
}
|
|
46820
|
-
async function $
|
|
47344
|
+
async function $do49(client, request, options) {
|
|
46821
47345
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46822
47346
|
if (!parsed.ok) {
|
|
46823
47347
|
return [parsed, { status: "invalid" }];
|
|
@@ -46893,12 +47417,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
46893
47417
|
});
|
|
46894
47418
|
|
|
46895
47419
|
// src/mcp-server/tools/universalAllowance.ts
|
|
46896
|
-
var
|
|
47420
|
+
var args49, tool$universalAllowance;
|
|
46897
47421
|
var init_universalAllowance2 = __esm(() => {
|
|
46898
47422
|
init_universalAllowance();
|
|
46899
47423
|
init_operations();
|
|
46900
47424
|
init_tools();
|
|
46901
|
-
|
|
47425
|
+
args49 = {
|
|
46902
47426
|
request: GenericAllowanceRequest$inboundSchema
|
|
46903
47427
|
};
|
|
46904
47428
|
tool$universalAllowance = {
|
|
@@ -46912,9 +47436,9 @@ tokens on their behalf.
|
|
|
46912
47436
|
This is a crucial step before engaging in any transactions or operations within
|
|
46913
47437
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
46914
47438
|
the user's tokens securely and efficiently.`,
|
|
46915
|
-
args:
|
|
46916
|
-
tool: async (client,
|
|
46917
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
47439
|
+
args: args49,
|
|
47440
|
+
tool: async (client, args50, ctx) => {
|
|
47441
|
+
const [result, apiCall] = await universalAllowance(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46918
47442
|
if (!result.ok) {
|
|
46919
47443
|
return {
|
|
46920
47444
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46929,9 +47453,9 @@ the user's tokens securely and efficiently.`,
|
|
|
46929
47453
|
|
|
46930
47454
|
// src/funcs/universalAllowanceSet.ts
|
|
46931
47455
|
function universalAllowanceSet(client, request, options) {
|
|
46932
|
-
return new APIPromise($
|
|
47456
|
+
return new APIPromise($do50(client, request, options));
|
|
46933
47457
|
}
|
|
46934
|
-
async function $
|
|
47458
|
+
async function $do50(client, request, options) {
|
|
46935
47459
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46936
47460
|
if (!parsed.ok) {
|
|
46937
47461
|
return [parsed, { status: "invalid" }];
|
|
@@ -47000,12 +47524,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
47000
47524
|
});
|
|
47001
47525
|
|
|
47002
47526
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
47003
|
-
var
|
|
47527
|
+
var args50, tool$universalAllowanceSet;
|
|
47004
47528
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
47005
47529
|
init_universalAllowanceSet();
|
|
47006
47530
|
init_components();
|
|
47007
47531
|
init_tools();
|
|
47008
|
-
|
|
47532
|
+
args50 = {
|
|
47009
47533
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
47010
47534
|
};
|
|
47011
47535
|
tool$universalAllowanceSet = {
|
|
@@ -47019,9 +47543,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
47019
47543
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
47020
47544
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
47021
47545
|
within the DeFi ecosystem.`,
|
|
47022
|
-
args:
|
|
47023
|
-
tool: async (client,
|
|
47024
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
47546
|
+
args: args50,
|
|
47547
|
+
tool: async (client, args51, ctx) => {
|
|
47548
|
+
const [result, apiCall] = await universalAllowanceSet(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47025
47549
|
if (!result.ok) {
|
|
47026
47550
|
return {
|
|
47027
47551
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47036,9 +47560,9 @@ within the DeFi ecosystem.`,
|
|
|
47036
47560
|
|
|
47037
47561
|
// src/funcs/universalEns.ts
|
|
47038
47562
|
function universalEns(client, request, options) {
|
|
47039
|
-
return new APIPromise($
|
|
47563
|
+
return new APIPromise($do51(client, request, options));
|
|
47040
47564
|
}
|
|
47041
|
-
async function $
|
|
47565
|
+
async function $do51(client, request, options) {
|
|
47042
47566
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47043
47567
|
if (!parsed.ok) {
|
|
47044
47568
|
return [parsed, { status: "invalid" }];
|
|
@@ -47112,12 +47636,12 @@ var init_universalEns = __esm(() => {
|
|
|
47112
47636
|
});
|
|
47113
47637
|
|
|
47114
47638
|
// src/mcp-server/tools/universalEns.ts
|
|
47115
|
-
var
|
|
47639
|
+
var args51, tool$universalEns;
|
|
47116
47640
|
var init_universalEns2 = __esm(() => {
|
|
47117
47641
|
init_universalEns();
|
|
47118
47642
|
init_operations();
|
|
47119
47643
|
init_tools();
|
|
47120
|
-
|
|
47644
|
+
args51 = {
|
|
47121
47645
|
request: GenericEnsRequest$inboundSchema
|
|
47122
47646
|
};
|
|
47123
47647
|
tool$universalEns = {
|
|
@@ -47128,9 +47652,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
47128
47652
|
|
|
47129
47653
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
47130
47654
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
47131
|
-
args:
|
|
47132
|
-
tool: async (client,
|
|
47133
|
-
const [result, apiCall] = await universalEns(client,
|
|
47655
|
+
args: args51,
|
|
47656
|
+
tool: async (client, args52, ctx) => {
|
|
47657
|
+
const [result, apiCall] = await universalEns(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47134
47658
|
if (!result.ok) {
|
|
47135
47659
|
return {
|
|
47136
47660
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47145,9 +47669,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
47145
47669
|
|
|
47146
47670
|
// src/funcs/universalPortfolio.ts
|
|
47147
47671
|
function universalPortfolio(client, request, options) {
|
|
47148
|
-
return new APIPromise($
|
|
47672
|
+
return new APIPromise($do52(client, request, options));
|
|
47149
47673
|
}
|
|
47150
|
-
async function $
|
|
47674
|
+
async function $do52(client, request, options) {
|
|
47151
47675
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47152
47676
|
if (!parsed.ok) {
|
|
47153
47677
|
return [parsed, { status: "invalid" }];
|
|
@@ -47221,12 +47745,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
47221
47745
|
});
|
|
47222
47746
|
|
|
47223
47747
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
47224
|
-
var
|
|
47748
|
+
var args52, tool$universalPortfolio;
|
|
47225
47749
|
var init_universalPortfolio2 = __esm(() => {
|
|
47226
47750
|
init_universalPortfolio();
|
|
47227
47751
|
init_operations();
|
|
47228
47752
|
init_tools();
|
|
47229
|
-
|
|
47753
|
+
args52 = {
|
|
47230
47754
|
request: GenericPortfolioRequest$inboundSchema
|
|
47231
47755
|
};
|
|
47232
47756
|
tool$universalPortfolio = {
|
|
@@ -47237,9 +47761,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
47237
47761
|
|
|
47238
47762
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
47239
47763
|
balances, including their respective values and quantities.`,
|
|
47240
|
-
args:
|
|
47241
|
-
tool: async (client,
|
|
47242
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
47764
|
+
args: args52,
|
|
47765
|
+
tool: async (client, args53, ctx) => {
|
|
47766
|
+
const [result, apiCall] = await universalPortfolio(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47243
47767
|
if (!result.ok) {
|
|
47244
47768
|
return {
|
|
47245
47769
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47254,9 +47778,9 @@ balances, including their respective values and quantities.`,
|
|
|
47254
47778
|
|
|
47255
47779
|
// src/funcs/universalSupportedTokens.ts
|
|
47256
47780
|
function universalSupportedTokens(client, request, options) {
|
|
47257
|
-
return new APIPromise($
|
|
47781
|
+
return new APIPromise($do53(client, request, options));
|
|
47258
47782
|
}
|
|
47259
|
-
async function $
|
|
47783
|
+
async function $do53(client, request, options) {
|
|
47260
47784
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47261
47785
|
if (!parsed.ok) {
|
|
47262
47786
|
return [parsed, { status: "invalid" }];
|
|
@@ -47329,12 +47853,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
47329
47853
|
});
|
|
47330
47854
|
|
|
47331
47855
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
47332
|
-
var
|
|
47856
|
+
var args53, tool$universalSupportedTokens;
|
|
47333
47857
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
47334
47858
|
init_universalSupportedTokens();
|
|
47335
47859
|
init_operations();
|
|
47336
47860
|
init_tools();
|
|
47337
|
-
|
|
47861
|
+
args53 = {
|
|
47338
47862
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
47339
47863
|
};
|
|
47340
47864
|
tool$universalSupportedTokens = {
|
|
@@ -47342,9 +47866,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
47342
47866
|
description: `List supported tokens
|
|
47343
47867
|
|
|
47344
47868
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
47345
|
-
args:
|
|
47346
|
-
tool: async (client,
|
|
47347
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
47869
|
+
args: args53,
|
|
47870
|
+
tool: async (client, args54, ctx) => {
|
|
47871
|
+
const [result, apiCall] = await universalSupportedTokens(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47348
47872
|
if (!result.ok) {
|
|
47349
47873
|
return {
|
|
47350
47874
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47359,9 +47883,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
47359
47883
|
|
|
47360
47884
|
// src/funcs/universalUnwrapWeth.ts
|
|
47361
47885
|
function universalUnwrapWeth(client, request, options) {
|
|
47362
|
-
return new APIPromise($
|
|
47886
|
+
return new APIPromise($do54(client, request, options));
|
|
47363
47887
|
}
|
|
47364
|
-
async function $
|
|
47888
|
+
async function $do54(client, request, options) {
|
|
47365
47889
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47366
47890
|
if (!parsed.ok) {
|
|
47367
47891
|
return [parsed, { status: "invalid" }];
|
|
@@ -47430,12 +47954,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
47430
47954
|
});
|
|
47431
47955
|
|
|
47432
47956
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
47433
|
-
var
|
|
47957
|
+
var args54, tool$universalUnwrapWeth;
|
|
47434
47958
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
47435
47959
|
init_universalUnwrapWeth();
|
|
47436
47960
|
init_components();
|
|
47437
47961
|
init_tools();
|
|
47438
|
-
|
|
47962
|
+
args54 = {
|
|
47439
47963
|
request: UnwrapWethRequest$inboundSchema
|
|
47440
47964
|
};
|
|
47441
47965
|
tool$universalUnwrapWeth = {
|
|
@@ -47444,9 +47968,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
47444
47968
|
|
|
47445
47969
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
47446
47970
|
can be used for gas and other native purposes.`,
|
|
47447
|
-
args:
|
|
47448
|
-
tool: async (client,
|
|
47449
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
47971
|
+
args: args54,
|
|
47972
|
+
tool: async (client, args55, ctx) => {
|
|
47973
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47450
47974
|
if (!result.ok) {
|
|
47451
47975
|
return {
|
|
47452
47976
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47461,9 +47985,9 @@ can be used for gas and other native purposes.`,
|
|
|
47461
47985
|
|
|
47462
47986
|
// src/funcs/universalVisualizePortfolio.ts
|
|
47463
47987
|
function universalVisualizePortfolio(client, request, options) {
|
|
47464
|
-
return new APIPromise($
|
|
47988
|
+
return new APIPromise($do55(client, request, options));
|
|
47465
47989
|
}
|
|
47466
|
-
async function $
|
|
47990
|
+
async function $do55(client, request, options) {
|
|
47467
47991
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47468
47992
|
if (!parsed.ok) {
|
|
47469
47993
|
return [parsed, { status: "invalid" }];
|
|
@@ -47537,12 +48061,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
47537
48061
|
});
|
|
47538
48062
|
|
|
47539
48063
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
47540
|
-
var
|
|
48064
|
+
var args55, tool$universalVisualizePortfolio;
|
|
47541
48065
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
47542
48066
|
init_universalVisualizePortfolio();
|
|
47543
48067
|
init_operations();
|
|
47544
48068
|
init_tools();
|
|
47545
|
-
|
|
48069
|
+
args55 = {
|
|
47546
48070
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
47547
48071
|
};
|
|
47548
48072
|
tool$universalVisualizePortfolio = {
|
|
@@ -47554,9 +48078,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
47554
48078
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
47555
48079
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
47556
48080
|
USD.`,
|
|
47557
|
-
args:
|
|
47558
|
-
tool: async (client,
|
|
47559
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
48081
|
+
args: args55,
|
|
48082
|
+
tool: async (client, args56, ctx) => {
|
|
48083
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47560
48084
|
if (!result.ok) {
|
|
47561
48085
|
return {
|
|
47562
48086
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47571,9 +48095,9 @@ USD.`,
|
|
|
47571
48095
|
|
|
47572
48096
|
// src/funcs/universalWrapEth.ts
|
|
47573
48097
|
function universalWrapEth(client, request, options) {
|
|
47574
|
-
return new APIPromise($
|
|
48098
|
+
return new APIPromise($do56(client, request, options));
|
|
47575
48099
|
}
|
|
47576
|
-
async function $
|
|
48100
|
+
async function $do56(client, request, options) {
|
|
47577
48101
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47578
48102
|
if (!parsed.ok) {
|
|
47579
48103
|
return [parsed, { status: "invalid" }];
|
|
@@ -47642,12 +48166,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
47642
48166
|
});
|
|
47643
48167
|
|
|
47644
48168
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
47645
|
-
var
|
|
48169
|
+
var args56, tool$universalWrapEth;
|
|
47646
48170
|
var init_universalWrapEth2 = __esm(() => {
|
|
47647
48171
|
init_universalWrapEth();
|
|
47648
48172
|
init_components();
|
|
47649
48173
|
init_tools();
|
|
47650
|
-
|
|
48174
|
+
args56 = {
|
|
47651
48175
|
request: WrapEthRequest$inboundSchema
|
|
47652
48176
|
};
|
|
47653
48177
|
tool$universalWrapEth = {
|
|
@@ -47656,9 +48180,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
47656
48180
|
|
|
47657
48181
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
47658
48182
|
it to be traded on DeFi protocols.`,
|
|
47659
|
-
args:
|
|
47660
|
-
tool: async (client,
|
|
47661
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
48183
|
+
args: args56,
|
|
48184
|
+
tool: async (client, args57, ctx) => {
|
|
48185
|
+
const [result, apiCall] = await universalWrapEth(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47662
48186
|
if (!result.ok) {
|
|
47663
48187
|
return {
|
|
47664
48188
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47675,7 +48199,7 @@ it to be traded on DeFi protocols.`,
|
|
|
47675
48199
|
function createMCPServer(deps) {
|
|
47676
48200
|
const server = new McpServer({
|
|
47677
48201
|
name: "CompassApiSDK",
|
|
47678
|
-
version: "0.0.
|
|
48202
|
+
version: "0.0.17"
|
|
47679
48203
|
});
|
|
47680
48204
|
const client = new CompassApiSDKCore({
|
|
47681
48205
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -47693,6 +48217,7 @@ function createMCPServer(deps) {
|
|
|
47693
48217
|
tool(tool$aaveV3LiquidityChange);
|
|
47694
48218
|
tool(tool$aaveV3UserPositionSummary);
|
|
47695
48219
|
tool(tool$aaveV3UserPositionPerToken);
|
|
48220
|
+
tool(tool$aaveV3HistoricalTransactions);
|
|
47696
48221
|
tool(tool$aaveV3Supply);
|
|
47697
48222
|
tool(tool$aaveV3Borrow);
|
|
47698
48223
|
tool(tool$aaveV3Repay);
|
|
@@ -47752,6 +48277,7 @@ var init_server2 = __esm(() => {
|
|
|
47752
48277
|
init_resources();
|
|
47753
48278
|
init_tools();
|
|
47754
48279
|
init_aaveV3Borrow2();
|
|
48280
|
+
init_aaveV3HistoricalTransactions2();
|
|
47755
48281
|
init_aaveV3LiquidityChange2();
|
|
47756
48282
|
init_aaveV3Repay2();
|
|
47757
48283
|
init_aaveV3Supply2();
|
|
@@ -48996,7 +49522,7 @@ var routes = an({
|
|
|
48996
49522
|
var app = He(routes, {
|
|
48997
49523
|
name: "mcp",
|
|
48998
49524
|
versionInfo: {
|
|
48999
|
-
currentVersion: "0.0.
|
|
49525
|
+
currentVersion: "0.0.17"
|
|
49000
49526
|
}
|
|
49001
49527
|
});
|
|
49002
49528
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49004,5 +49530,5 @@ export {
|
|
|
49004
49530
|
app
|
|
49005
49531
|
};
|
|
49006
49532
|
|
|
49007
|
-
//# debugId=
|
|
49533
|
+
//# debugId=EDFC448541B62CC064756E2164756E21
|
|
49008
49534
|
//# sourceMappingURL=mcp-server.js.map
|