@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/src/lib/config.ts
CHANGED
|
@@ -12,9 +12,9 @@ import { Params, pathToFunc } from "./url.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export const ServerList = [
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Development server
|
|
16
16
|
*/
|
|
17
|
-
"
|
|
17
|
+
"http://0.0.0.0:80",
|
|
18
18
|
] as const;
|
|
19
19
|
|
|
20
20
|
export type SDKOptions = {
|
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.0.
|
|
60
|
+
sdkVersion: "0.0.17",
|
|
61
61
|
genVersion: "2.597.9",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.0.
|
|
63
|
+
"speakeasy-sdk/typescript 0.0.17 2.597.9 0.0.1 @compass-labs/api-sdk",
|
|
64
64
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
import { MCPScope } from "./scopes.js";
|
|
15
15
|
import { createRegisterTool } from "./tools.js";
|
|
16
16
|
import { tool$aaveV3Borrow } from "./tools/aaveV3Borrow.js";
|
|
17
|
+
import { tool$aaveV3HistoricalTransactions } from "./tools/aaveV3HistoricalTransactions.js";
|
|
17
18
|
import { tool$aaveV3LiquidityChange } from "./tools/aaveV3LiquidityChange.js";
|
|
18
19
|
import { tool$aaveV3Repay } from "./tools/aaveV3Repay.js";
|
|
19
20
|
import { tool$aaveV3Supply } from "./tools/aaveV3Supply.js";
|
|
@@ -79,7 +80,7 @@ export function createMCPServer(deps: {
|
|
|
79
80
|
}) {
|
|
80
81
|
const server = new McpServer({
|
|
81
82
|
name: "CompassApiSDK",
|
|
82
|
-
version: "0.0.
|
|
83
|
+
version: "0.0.17",
|
|
83
84
|
});
|
|
84
85
|
|
|
85
86
|
const client = new CompassApiSDKCore({
|
|
@@ -113,6 +114,7 @@ export function createMCPServer(deps: {
|
|
|
113
114
|
tool(tool$aaveV3LiquidityChange);
|
|
114
115
|
tool(tool$aaveV3UserPositionSummary);
|
|
115
116
|
tool(tool$aaveV3UserPositionPerToken);
|
|
117
|
+
tool(tool$aaveV3HistoricalTransactions);
|
|
116
118
|
tool(tool$aaveV3Supply);
|
|
117
119
|
tool(tool$aaveV3Borrow);
|
|
118
120
|
tool(tool$aaveV3Repay);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { aaveV3HistoricalTransactions } from "../../funcs/aaveV3HistoricalTransactions.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.AaveHistoricalTransactionsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$aaveV3HistoricalTransactions: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "aave-v3-historical-transactions",
|
|
15
|
+
description: `Historical transactions
|
|
16
|
+
|
|
17
|
+
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
18
|
+
|
|
19
|
+
It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
20
|
+
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
21
|
+
and transaction type. This provides a comprehensive view of the user's historical
|
|
22
|
+
activity within the AAVE protocol.`,
|
|
23
|
+
args,
|
|
24
|
+
tool: async (client, args, ctx) => {
|
|
25
|
+
const [result, apiCall] = await aaveV3HistoricalTransactions(
|
|
26
|
+
client,
|
|
27
|
+
args.request,
|
|
28
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
29
|
+
).$inspect();
|
|
30
|
+
|
|
31
|
+
if (!result.ok) {
|
|
32
|
+
return {
|
|
33
|
+
content: [{ type: "text", text: result.error.message }],
|
|
34
|
+
isError: true,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const value = result.value;
|
|
39
|
+
|
|
40
|
+
return formatResult(value, apiCall);
|
|
41
|
+
},
|
|
42
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Action,
|
|
11
|
+
Action$inboundSchema,
|
|
12
|
+
Action$outboundSchema,
|
|
13
|
+
} from "./action.js";
|
|
14
|
+
import {
|
|
15
|
+
Borrow,
|
|
16
|
+
Borrow$inboundSchema,
|
|
17
|
+
Borrow$Outbound,
|
|
18
|
+
Borrow$outboundSchema,
|
|
19
|
+
} from "./borrow.js";
|
|
20
|
+
import {
|
|
21
|
+
LiquidationCall,
|
|
22
|
+
LiquidationCall$inboundSchema,
|
|
23
|
+
LiquidationCall$Outbound,
|
|
24
|
+
LiquidationCall$outboundSchema,
|
|
25
|
+
} from "./liquidationcall.js";
|
|
26
|
+
import {
|
|
27
|
+
RedeemUnderlying,
|
|
28
|
+
RedeemUnderlying$inboundSchema,
|
|
29
|
+
RedeemUnderlying$Outbound,
|
|
30
|
+
RedeemUnderlying$outboundSchema,
|
|
31
|
+
} from "./redeemunderlying.js";
|
|
32
|
+
import {
|
|
33
|
+
Repay,
|
|
34
|
+
Repay$inboundSchema,
|
|
35
|
+
Repay$Outbound,
|
|
36
|
+
Repay$outboundSchema,
|
|
37
|
+
} from "./repay.js";
|
|
38
|
+
import {
|
|
39
|
+
Supply,
|
|
40
|
+
Supply$inboundSchema,
|
|
41
|
+
Supply$Outbound,
|
|
42
|
+
Supply$outboundSchema,
|
|
43
|
+
} from "./supply.js";
|
|
44
|
+
import {
|
|
45
|
+
SwapBorrowRate,
|
|
46
|
+
SwapBorrowRate$inboundSchema,
|
|
47
|
+
SwapBorrowRate$Outbound,
|
|
48
|
+
SwapBorrowRate$outboundSchema,
|
|
49
|
+
} from "./swapborrowrate.js";
|
|
50
|
+
import {
|
|
51
|
+
UsageAsCollateral,
|
|
52
|
+
UsageAsCollateral$inboundSchema,
|
|
53
|
+
UsageAsCollateral$Outbound,
|
|
54
|
+
UsageAsCollateral$outboundSchema,
|
|
55
|
+
} from "./usageascollateral.js";
|
|
56
|
+
|
|
57
|
+
export type AaveHistoricalTransactionBase = {
|
|
58
|
+
id: string;
|
|
59
|
+
timestamp: number;
|
|
60
|
+
txHash: string;
|
|
61
|
+
action: Action;
|
|
62
|
+
supply?: Supply | null | undefined;
|
|
63
|
+
redeemUnderlying?: RedeemUnderlying | null | undefined;
|
|
64
|
+
borrow?: Borrow | null | undefined;
|
|
65
|
+
usageAsCollateral?: UsageAsCollateral | null | undefined;
|
|
66
|
+
repay?: Repay | null | undefined;
|
|
67
|
+
swapBorrowRate?: SwapBorrowRate | null | undefined;
|
|
68
|
+
liquidationCall?: LiquidationCall | null | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const AaveHistoricalTransactionBase$inboundSchema: z.ZodType<
|
|
73
|
+
AaveHistoricalTransactionBase,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.object({
|
|
77
|
+
id: z.string(),
|
|
78
|
+
timestamp: z.number().int(),
|
|
79
|
+
txHash: z.string(),
|
|
80
|
+
action: Action$inboundSchema,
|
|
81
|
+
supply: z.nullable(Supply$inboundSchema).optional(),
|
|
82
|
+
redeemUnderlying: z.nullable(RedeemUnderlying$inboundSchema).optional(),
|
|
83
|
+
borrow: z.nullable(Borrow$inboundSchema).optional(),
|
|
84
|
+
usageAsCollateral: z.nullable(UsageAsCollateral$inboundSchema).optional(),
|
|
85
|
+
repay: z.nullable(Repay$inboundSchema).optional(),
|
|
86
|
+
swapBorrowRate: z.nullable(SwapBorrowRate$inboundSchema).optional(),
|
|
87
|
+
liquidationCall: z.nullable(LiquidationCall$inboundSchema).optional(),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export type AaveHistoricalTransactionBase$Outbound = {
|
|
92
|
+
id: string;
|
|
93
|
+
timestamp: number;
|
|
94
|
+
txHash: string;
|
|
95
|
+
action: string;
|
|
96
|
+
supply?: Supply$Outbound | null | undefined;
|
|
97
|
+
redeemUnderlying?: RedeemUnderlying$Outbound | null | undefined;
|
|
98
|
+
borrow?: Borrow$Outbound | null | undefined;
|
|
99
|
+
usageAsCollateral?: UsageAsCollateral$Outbound | null | undefined;
|
|
100
|
+
repay?: Repay$Outbound | null | undefined;
|
|
101
|
+
swapBorrowRate?: SwapBorrowRate$Outbound | null | undefined;
|
|
102
|
+
liquidationCall?: LiquidationCall$Outbound | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const AaveHistoricalTransactionBase$outboundSchema: z.ZodType<
|
|
107
|
+
AaveHistoricalTransactionBase$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
AaveHistoricalTransactionBase
|
|
110
|
+
> = z.object({
|
|
111
|
+
id: z.string(),
|
|
112
|
+
timestamp: z.number().int(),
|
|
113
|
+
txHash: z.string(),
|
|
114
|
+
action: Action$outboundSchema,
|
|
115
|
+
supply: z.nullable(Supply$outboundSchema).optional(),
|
|
116
|
+
redeemUnderlying: z.nullable(RedeemUnderlying$outboundSchema).optional(),
|
|
117
|
+
borrow: z.nullable(Borrow$outboundSchema).optional(),
|
|
118
|
+
usageAsCollateral: z.nullable(UsageAsCollateral$outboundSchema).optional(),
|
|
119
|
+
repay: z.nullable(Repay$outboundSchema).optional(),
|
|
120
|
+
swapBorrowRate: z.nullable(SwapBorrowRate$outboundSchema).optional(),
|
|
121
|
+
liquidationCall: z.nullable(LiquidationCall$outboundSchema).optional(),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
+
*/
|
|
128
|
+
export namespace AaveHistoricalTransactionBase$ {
|
|
129
|
+
/** @deprecated use `AaveHistoricalTransactionBase$inboundSchema` instead. */
|
|
130
|
+
export const inboundSchema = AaveHistoricalTransactionBase$inboundSchema;
|
|
131
|
+
/** @deprecated use `AaveHistoricalTransactionBase$outboundSchema` instead. */
|
|
132
|
+
export const outboundSchema = AaveHistoricalTransactionBase$outboundSchema;
|
|
133
|
+
/** @deprecated use `AaveHistoricalTransactionBase$Outbound` instead. */
|
|
134
|
+
export type Outbound = AaveHistoricalTransactionBase$Outbound;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function aaveHistoricalTransactionBaseToJSON(
|
|
138
|
+
aaveHistoricalTransactionBase: AaveHistoricalTransactionBase,
|
|
139
|
+
): string {
|
|
140
|
+
return JSON.stringify(
|
|
141
|
+
AaveHistoricalTransactionBase$outboundSchema.parse(
|
|
142
|
+
aaveHistoricalTransactionBase,
|
|
143
|
+
),
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function aaveHistoricalTransactionBaseFromJSON(
|
|
148
|
+
jsonString: string,
|
|
149
|
+
): SafeParseResult<AaveHistoricalTransactionBase, SDKValidationError> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) => AaveHistoricalTransactionBase$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
+
`Failed to parse 'AaveHistoricalTransactionBase' from JSON`,
|
|
154
|
+
);
|
|
155
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AaveHistoricalTransactionBase,
|
|
11
|
+
AaveHistoricalTransactionBase$inboundSchema,
|
|
12
|
+
AaveHistoricalTransactionBase$Outbound,
|
|
13
|
+
AaveHistoricalTransactionBase$outboundSchema,
|
|
14
|
+
} from "./aavehistoricaltransactionbase.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Response model for getting Aave historical transactions.
|
|
18
|
+
*/
|
|
19
|
+
export type AaveHistoricalTransactionsResponse = {
|
|
20
|
+
total: number;
|
|
21
|
+
offset: number;
|
|
22
|
+
limit: number;
|
|
23
|
+
transactions: Array<AaveHistoricalTransactionBase>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AaveHistoricalTransactionsResponse$inboundSchema: z.ZodType<
|
|
28
|
+
AaveHistoricalTransactionsResponse,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
total: z.number().int(),
|
|
33
|
+
offset: z.number().int(),
|
|
34
|
+
limit: z.number().int(),
|
|
35
|
+
transactions: z.array(AaveHistoricalTransactionBase$inboundSchema),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type AaveHistoricalTransactionsResponse$Outbound = {
|
|
40
|
+
total: number;
|
|
41
|
+
offset: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
transactions: Array<AaveHistoricalTransactionBase$Outbound>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AaveHistoricalTransactionsResponse$outboundSchema: z.ZodType<
|
|
48
|
+
AaveHistoricalTransactionsResponse$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
AaveHistoricalTransactionsResponse
|
|
51
|
+
> = z.object({
|
|
52
|
+
total: z.number().int(),
|
|
53
|
+
offset: z.number().int(),
|
|
54
|
+
limit: z.number().int(),
|
|
55
|
+
transactions: z.array(AaveHistoricalTransactionBase$outboundSchema),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace AaveHistoricalTransactionsResponse$ {
|
|
63
|
+
/** @deprecated use `AaveHistoricalTransactionsResponse$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = AaveHistoricalTransactionsResponse$inboundSchema;
|
|
65
|
+
/** @deprecated use `AaveHistoricalTransactionsResponse$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema =
|
|
67
|
+
AaveHistoricalTransactionsResponse$outboundSchema;
|
|
68
|
+
/** @deprecated use `AaveHistoricalTransactionsResponse$Outbound` instead. */
|
|
69
|
+
export type Outbound = AaveHistoricalTransactionsResponse$Outbound;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function aaveHistoricalTransactionsResponseToJSON(
|
|
73
|
+
aaveHistoricalTransactionsResponse: AaveHistoricalTransactionsResponse,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
AaveHistoricalTransactionsResponse$outboundSchema.parse(
|
|
77
|
+
aaveHistoricalTransactionsResponse,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function aaveHistoricalTransactionsResponseFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<AaveHistoricalTransactionsResponse, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) =>
|
|
88
|
+
AaveHistoricalTransactionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'AaveHistoricalTransactionsResponse' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const Action = {
|
|
9
|
+
Supply: "supply",
|
|
10
|
+
RedeemUnderlying: "redeemUnderlying",
|
|
11
|
+
Borrow: "borrow",
|
|
12
|
+
UsageAsCollateral: "usageAsCollateral",
|
|
13
|
+
Repay: "repay",
|
|
14
|
+
SwapBorrowRate: "swapBorrowRate",
|
|
15
|
+
LiquidationCall: "liquidationCall",
|
|
16
|
+
} as const;
|
|
17
|
+
export type Action = ClosedEnum<typeof Action>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
|
|
21
|
+
.nativeEnum(Action);
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const Action$outboundSchema: z.ZodNativeEnum<typeof Action> =
|
|
25
|
+
Action$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace Action$ {
|
|
32
|
+
/** @deprecated use `Action$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = Action$inboundSchema;
|
|
34
|
+
/** @deprecated use `Action$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = Action$outboundSchema;
|
|
36
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Reserve,
|
|
11
|
+
Reserve$inboundSchema,
|
|
12
|
+
Reserve$Outbound,
|
|
13
|
+
Reserve$outboundSchema,
|
|
14
|
+
} from "./reserve.js";
|
|
15
|
+
|
|
16
|
+
export type Borrow = {
|
|
17
|
+
amount: string;
|
|
18
|
+
borrowRateMode: string;
|
|
19
|
+
borrowRate: string;
|
|
20
|
+
stableTokenDebt: string;
|
|
21
|
+
variableTokenDebt: string;
|
|
22
|
+
reserve: Reserve;
|
|
23
|
+
assetPriceUSD: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const Borrow$inboundSchema: z.ZodType<Borrow, z.ZodTypeDef, unknown> = z
|
|
28
|
+
.object({
|
|
29
|
+
amount: z.string(),
|
|
30
|
+
borrowRateMode: z.string(),
|
|
31
|
+
borrowRate: z.string(),
|
|
32
|
+
stableTokenDebt: z.string(),
|
|
33
|
+
variableTokenDebt: z.string(),
|
|
34
|
+
reserve: Reserve$inboundSchema,
|
|
35
|
+
assetPriceUSD: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type Borrow$Outbound = {
|
|
40
|
+
amount: string;
|
|
41
|
+
borrowRateMode: string;
|
|
42
|
+
borrowRate: string;
|
|
43
|
+
stableTokenDebt: string;
|
|
44
|
+
variableTokenDebt: string;
|
|
45
|
+
reserve: Reserve$Outbound;
|
|
46
|
+
assetPriceUSD: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const Borrow$outboundSchema: z.ZodType<
|
|
51
|
+
Borrow$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
Borrow
|
|
54
|
+
> = z.object({
|
|
55
|
+
amount: z.string(),
|
|
56
|
+
borrowRateMode: z.string(),
|
|
57
|
+
borrowRate: z.string(),
|
|
58
|
+
stableTokenDebt: z.string(),
|
|
59
|
+
variableTokenDebt: z.string(),
|
|
60
|
+
reserve: Reserve$outboundSchema,
|
|
61
|
+
assetPriceUSD: z.string(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace Borrow$ {
|
|
69
|
+
/** @deprecated use `Borrow$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = Borrow$inboundSchema;
|
|
71
|
+
/** @deprecated use `Borrow$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = Borrow$outboundSchema;
|
|
73
|
+
/** @deprecated use `Borrow$Outbound` instead. */
|
|
74
|
+
export type Outbound = Borrow$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function borrowToJSON(borrow: Borrow): string {
|
|
78
|
+
return JSON.stringify(Borrow$outboundSchema.parse(borrow));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function borrowFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<Borrow, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => Borrow$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'Borrow' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -12,6 +12,9 @@ export const Chain = {
|
|
|
12
12
|
BaseMainnet: "base:mainnet",
|
|
13
13
|
EthereumMainnet: "ethereum:mainnet",
|
|
14
14
|
ArbitrumMainnet: "arbitrum:mainnet",
|
|
15
|
+
EthereumLocal: "ethereum:local",
|
|
16
|
+
ArbitrumLocal: "arbitrum:local",
|
|
17
|
+
BaseLocal: "base:local",
|
|
15
18
|
} as const;
|
|
16
19
|
/**
|
|
17
20
|
* The chain to use.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CollateralReserve = {
|
|
11
|
+
symbol: string;
|
|
12
|
+
decimals: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CollateralReserve$inboundSchema: z.ZodType<
|
|
17
|
+
CollateralReserve,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
symbol: z.string(),
|
|
22
|
+
decimals: z.number().int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type CollateralReserve$Outbound = {
|
|
27
|
+
symbol: string;
|
|
28
|
+
decimals: number;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const CollateralReserve$outboundSchema: z.ZodType<
|
|
33
|
+
CollateralReserve$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
CollateralReserve
|
|
36
|
+
> = z.object({
|
|
37
|
+
symbol: z.string(),
|
|
38
|
+
decimals: z.number().int(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace CollateralReserve$ {
|
|
46
|
+
/** @deprecated use `CollateralReserve$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = CollateralReserve$inboundSchema;
|
|
48
|
+
/** @deprecated use `CollateralReserve$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = CollateralReserve$outboundSchema;
|
|
50
|
+
/** @deprecated use `CollateralReserve$Outbound` instead. */
|
|
51
|
+
export type Outbound = CollateralReserve$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function collateralReserveToJSON(
|
|
55
|
+
collateralReserve: CollateralReserve,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
CollateralReserve$outboundSchema.parse(collateralReserve),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function collateralReserveFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<CollateralReserve, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => CollateralReserve$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'CollateralReserve' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./aaveborrowparams.js";
|
|
6
6
|
export * from "./aaveborrowrequest.js";
|
|
7
|
+
export * from "./aavehistoricaltransactionbase.js";
|
|
8
|
+
export * from "./aavehistoricaltransactionsresponse.js";
|
|
7
9
|
export * from "./aaveliquiditychangeresponse.js";
|
|
8
10
|
export * from "./aaverepayparams.js";
|
|
9
11
|
export * from "./aaverepayrequest.js";
|
|
@@ -14,6 +16,7 @@ export * from "./aaveuserpositionpertokenresponse.js";
|
|
|
14
16
|
export * from "./aaveuserpositionsummaryresponse.js";
|
|
15
17
|
export * from "./aavewithdrawparams.js";
|
|
16
18
|
export * from "./aavewithdrawrequest.js";
|
|
19
|
+
export * from "./action.js";
|
|
17
20
|
export * from "./aerodromeaddliquidityethparams.js";
|
|
18
21
|
export * from "./aerodromeaddliquidityparams.js";
|
|
19
22
|
export * from "./aerodromelppositionsresponse.js";
|
|
@@ -35,8 +38,10 @@ export * from "./aerodromeswapethfortokenparams.js";
|
|
|
35
38
|
export * from "./aerodromeswaptokenforethparams.js";
|
|
36
39
|
export * from "./aerodromeswaptokensparams.js";
|
|
37
40
|
export * from "./allowanceinforesponse.js";
|
|
41
|
+
export * from "./borrow.js";
|
|
38
42
|
export * from "./chain.js";
|
|
39
43
|
export * from "./chaininfo.js";
|
|
44
|
+
export * from "./collateralreserve.js";
|
|
40
45
|
export * from "./compassapibackendmodelsmorphoreadresponsegetmarketsasset.js";
|
|
41
46
|
export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsasset.js";
|
|
42
47
|
export * from "./contractname.js";
|
|
@@ -47,6 +52,7 @@ export * from "./increaseallowanceanyparams.js";
|
|
|
47
52
|
export * from "./increaseallowanceparams.js";
|
|
48
53
|
export * from "./increaseallowancerequest.js";
|
|
49
54
|
export * from "./interestratemode.js";
|
|
55
|
+
export * from "./liquidationcall.js";
|
|
50
56
|
export * from "./marketstate.js";
|
|
51
57
|
export * from "./morphoborrowrequest.js";
|
|
52
58
|
export * from "./morphocheckmarketpositionresponse.js";
|
|
@@ -67,6 +73,10 @@ export * from "./multicallauthorizationrequest.js";
|
|
|
67
73
|
export * from "./multicallauthorizationresponse.js";
|
|
68
74
|
export * from "./multicallexecuterequest.js";
|
|
69
75
|
export * from "./portfolio.js";
|
|
76
|
+
export * from "./principalreserve.js";
|
|
77
|
+
export * from "./redeemunderlying.js";
|
|
78
|
+
export * from "./repay.js";
|
|
79
|
+
export * from "./reserve.js";
|
|
70
80
|
export * from "./security.js";
|
|
71
81
|
export * from "./signedauthorization.js";
|
|
72
82
|
export * from "./skybuyrequest.js";
|
|
@@ -74,6 +84,8 @@ export * from "./skycheckpositionresponse.js";
|
|
|
74
84
|
export * from "./skydepositrequest.js";
|
|
75
85
|
export * from "./skysellrequest.js";
|
|
76
86
|
export * from "./skywithdrawrequest.js";
|
|
87
|
+
export * from "./supply.js";
|
|
88
|
+
export * from "./swapborrowrate.js";
|
|
77
89
|
export * from "./tokenaddressresponse.js";
|
|
78
90
|
export * from "./tokenbalance.js";
|
|
79
91
|
export * from "./tokenbalanceresponse.js";
|
|
@@ -102,6 +114,7 @@ export * from "./unsignedmulticalltransaction.js";
|
|
|
102
114
|
export * from "./unsignedtransaction.js";
|
|
103
115
|
export * from "./unwrapwethparams.js";
|
|
104
116
|
export * from "./unwrapwethrequest.js";
|
|
117
|
+
export * from "./usageascollateral.js";
|
|
105
118
|
export * from "./validationerror.js";
|
|
106
119
|
export * from "./vaultstate.js";
|
|
107
120
|
export * from "./weeklyapys.js";
|