@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
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
CollateralReserve,
|
|
11
|
+
CollateralReserve$inboundSchema,
|
|
12
|
+
CollateralReserve$Outbound,
|
|
13
|
+
CollateralReserve$outboundSchema,
|
|
14
|
+
} from "./collateralreserve.js";
|
|
15
|
+
import {
|
|
16
|
+
PrincipalReserve,
|
|
17
|
+
PrincipalReserve$inboundSchema,
|
|
18
|
+
PrincipalReserve$Outbound,
|
|
19
|
+
PrincipalReserve$outboundSchema,
|
|
20
|
+
} from "./principalreserve.js";
|
|
21
|
+
|
|
22
|
+
export type LiquidationCall = {
|
|
23
|
+
collateralAmount: string;
|
|
24
|
+
collateralReserve: CollateralReserve;
|
|
25
|
+
principalAmount: string;
|
|
26
|
+
principalReserve: PrincipalReserve;
|
|
27
|
+
collateralAssetPriceUSD: string;
|
|
28
|
+
borrowAssetPriceUSD: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const LiquidationCall$inboundSchema: z.ZodType<
|
|
33
|
+
LiquidationCall,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
collateralAmount: z.string(),
|
|
38
|
+
collateralReserve: CollateralReserve$inboundSchema,
|
|
39
|
+
principalAmount: z.string(),
|
|
40
|
+
principalReserve: PrincipalReserve$inboundSchema,
|
|
41
|
+
collateralAssetPriceUSD: z.string(),
|
|
42
|
+
borrowAssetPriceUSD: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type LiquidationCall$Outbound = {
|
|
47
|
+
collateralAmount: string;
|
|
48
|
+
collateralReserve: CollateralReserve$Outbound;
|
|
49
|
+
principalAmount: string;
|
|
50
|
+
principalReserve: PrincipalReserve$Outbound;
|
|
51
|
+
collateralAssetPriceUSD: string;
|
|
52
|
+
borrowAssetPriceUSD: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const LiquidationCall$outboundSchema: z.ZodType<
|
|
57
|
+
LiquidationCall$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
LiquidationCall
|
|
60
|
+
> = z.object({
|
|
61
|
+
collateralAmount: z.string(),
|
|
62
|
+
collateralReserve: CollateralReserve$outboundSchema,
|
|
63
|
+
principalAmount: z.string(),
|
|
64
|
+
principalReserve: PrincipalReserve$outboundSchema,
|
|
65
|
+
collateralAssetPriceUSD: z.string(),
|
|
66
|
+
borrowAssetPriceUSD: z.string(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace LiquidationCall$ {
|
|
74
|
+
/** @deprecated use `LiquidationCall$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = LiquidationCall$inboundSchema;
|
|
76
|
+
/** @deprecated use `LiquidationCall$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = LiquidationCall$outboundSchema;
|
|
78
|
+
/** @deprecated use `LiquidationCall$Outbound` instead. */
|
|
79
|
+
export type Outbound = LiquidationCall$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function liquidationCallToJSON(
|
|
83
|
+
liquidationCall: LiquidationCall,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(LiquidationCall$outboundSchema.parse(liquidationCall));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function liquidationCallFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<LiquidationCall, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => LiquidationCall$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'LiquidationCall' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -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 PrincipalReserve = {
|
|
11
|
+
symbol: string;
|
|
12
|
+
decimals: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PrincipalReserve$inboundSchema: z.ZodType<
|
|
17
|
+
PrincipalReserve,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
symbol: z.string(),
|
|
22
|
+
decimals: z.number().int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type PrincipalReserve$Outbound = {
|
|
27
|
+
symbol: string;
|
|
28
|
+
decimals: number;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const PrincipalReserve$outboundSchema: z.ZodType<
|
|
33
|
+
PrincipalReserve$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
PrincipalReserve
|
|
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 PrincipalReserve$ {
|
|
46
|
+
/** @deprecated use `PrincipalReserve$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = PrincipalReserve$inboundSchema;
|
|
48
|
+
/** @deprecated use `PrincipalReserve$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = PrincipalReserve$outboundSchema;
|
|
50
|
+
/** @deprecated use `PrincipalReserve$Outbound` instead. */
|
|
51
|
+
export type Outbound = PrincipalReserve$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function principalReserveToJSON(
|
|
55
|
+
principalReserve: PrincipalReserve,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
PrincipalReserve$outboundSchema.parse(principalReserve),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function principalReserveFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<PrincipalReserve, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => PrincipalReserve$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'PrincipalReserve' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 RedeemUnderlying = {
|
|
17
|
+
amount: string;
|
|
18
|
+
reserve: Reserve;
|
|
19
|
+
assetPriceUSD: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const RedeemUnderlying$inboundSchema: z.ZodType<
|
|
24
|
+
RedeemUnderlying,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
amount: z.string(),
|
|
29
|
+
reserve: Reserve$inboundSchema,
|
|
30
|
+
assetPriceUSD: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type RedeemUnderlying$Outbound = {
|
|
35
|
+
amount: string;
|
|
36
|
+
reserve: Reserve$Outbound;
|
|
37
|
+
assetPriceUSD: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const RedeemUnderlying$outboundSchema: z.ZodType<
|
|
42
|
+
RedeemUnderlying$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
RedeemUnderlying
|
|
45
|
+
> = z.object({
|
|
46
|
+
amount: z.string(),
|
|
47
|
+
reserve: Reserve$outboundSchema,
|
|
48
|
+
assetPriceUSD: z.string(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace RedeemUnderlying$ {
|
|
56
|
+
/** @deprecated use `RedeemUnderlying$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = RedeemUnderlying$inboundSchema;
|
|
58
|
+
/** @deprecated use `RedeemUnderlying$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = RedeemUnderlying$outboundSchema;
|
|
60
|
+
/** @deprecated use `RedeemUnderlying$Outbound` instead. */
|
|
61
|
+
export type Outbound = RedeemUnderlying$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function redeemUnderlyingToJSON(
|
|
65
|
+
redeemUnderlying: RedeemUnderlying,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
RedeemUnderlying$outboundSchema.parse(redeemUnderlying),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function redeemUnderlyingFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<RedeemUnderlying, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => RedeemUnderlying$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'RedeemUnderlying' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 Repay = {
|
|
17
|
+
amount: string;
|
|
18
|
+
reserve: Reserve;
|
|
19
|
+
assetPriceUSD: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Repay$inboundSchema: z.ZodType<Repay, z.ZodTypeDef, unknown> = z
|
|
24
|
+
.object({
|
|
25
|
+
amount: z.string(),
|
|
26
|
+
reserve: Reserve$inboundSchema,
|
|
27
|
+
assetPriceUSD: z.string(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type Repay$Outbound = {
|
|
32
|
+
amount: string;
|
|
33
|
+
reserve: Reserve$Outbound;
|
|
34
|
+
assetPriceUSD: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Repay$outboundSchema: z.ZodType<
|
|
39
|
+
Repay$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
Repay
|
|
42
|
+
> = z.object({
|
|
43
|
+
amount: z.string(),
|
|
44
|
+
reserve: Reserve$outboundSchema,
|
|
45
|
+
assetPriceUSD: z.string(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace Repay$ {
|
|
53
|
+
/** @deprecated use `Repay$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = Repay$inboundSchema;
|
|
55
|
+
/** @deprecated use `Repay$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = Repay$outboundSchema;
|
|
57
|
+
/** @deprecated use `Repay$Outbound` instead. */
|
|
58
|
+
export type Outbound = Repay$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function repayToJSON(repay: Repay): string {
|
|
62
|
+
return JSON.stringify(Repay$outboundSchema.parse(repay));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function repayFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<Repay, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => Repay$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'Repay' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 Reserve = {
|
|
11
|
+
symbol: string;
|
|
12
|
+
decimals: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const Reserve$inboundSchema: z.ZodType<Reserve, z.ZodTypeDef, unknown> =
|
|
17
|
+
z.object({
|
|
18
|
+
symbol: z.string(),
|
|
19
|
+
decimals: z.number().int(),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type Reserve$Outbound = {
|
|
24
|
+
symbol: string;
|
|
25
|
+
decimals: number;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const Reserve$outboundSchema: z.ZodType<
|
|
30
|
+
Reserve$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
Reserve
|
|
33
|
+
> = z.object({
|
|
34
|
+
symbol: z.string(),
|
|
35
|
+
decimals: z.number().int(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
+
*/
|
|
42
|
+
export namespace Reserve$ {
|
|
43
|
+
/** @deprecated use `Reserve$inboundSchema` instead. */
|
|
44
|
+
export const inboundSchema = Reserve$inboundSchema;
|
|
45
|
+
/** @deprecated use `Reserve$outboundSchema` instead. */
|
|
46
|
+
export const outboundSchema = Reserve$outboundSchema;
|
|
47
|
+
/** @deprecated use `Reserve$Outbound` instead. */
|
|
48
|
+
export type Outbound = Reserve$Outbound;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function reserveToJSON(reserve: Reserve): string {
|
|
52
|
+
return JSON.stringify(Reserve$outboundSchema.parse(reserve));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function reserveFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<Reserve, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => Reserve$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'Reserve' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 Supply = {
|
|
17
|
+
amount: string;
|
|
18
|
+
reserve: Reserve;
|
|
19
|
+
assetPriceUSD: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Supply$inboundSchema: z.ZodType<Supply, z.ZodTypeDef, unknown> = z
|
|
24
|
+
.object({
|
|
25
|
+
amount: z.string(),
|
|
26
|
+
reserve: Reserve$inboundSchema,
|
|
27
|
+
assetPriceUSD: z.string(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type Supply$Outbound = {
|
|
32
|
+
amount: string;
|
|
33
|
+
reserve: Reserve$Outbound;
|
|
34
|
+
assetPriceUSD: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Supply$outboundSchema: z.ZodType<
|
|
39
|
+
Supply$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
Supply
|
|
42
|
+
> = z.object({
|
|
43
|
+
amount: z.string(),
|
|
44
|
+
reserve: Reserve$outboundSchema,
|
|
45
|
+
assetPriceUSD: z.string(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace Supply$ {
|
|
53
|
+
/** @deprecated use `Supply$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = Supply$inboundSchema;
|
|
55
|
+
/** @deprecated use `Supply$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = Supply$outboundSchema;
|
|
57
|
+
/** @deprecated use `Supply$Outbound` instead. */
|
|
58
|
+
export type Outbound = Supply$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function supplyToJSON(supply: Supply): string {
|
|
62
|
+
return JSON.stringify(Supply$outboundSchema.parse(supply));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function supplyFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<Supply, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => Supply$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'Supply' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 SwapBorrowRate = {
|
|
17
|
+
borrowRateModeFrom: string;
|
|
18
|
+
borrowRateModeTo: string;
|
|
19
|
+
variableBorrowRate: string;
|
|
20
|
+
stableBorrowRate: string;
|
|
21
|
+
reserve: Reserve;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const SwapBorrowRate$inboundSchema: z.ZodType<
|
|
26
|
+
SwapBorrowRate,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
borrowRateModeFrom: z.string(),
|
|
31
|
+
borrowRateModeTo: z.string(),
|
|
32
|
+
variableBorrowRate: z.string(),
|
|
33
|
+
stableBorrowRate: z.string(),
|
|
34
|
+
reserve: Reserve$inboundSchema,
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type SwapBorrowRate$Outbound = {
|
|
39
|
+
borrowRateModeFrom: string;
|
|
40
|
+
borrowRateModeTo: string;
|
|
41
|
+
variableBorrowRate: string;
|
|
42
|
+
stableBorrowRate: string;
|
|
43
|
+
reserve: Reserve$Outbound;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const SwapBorrowRate$outboundSchema: z.ZodType<
|
|
48
|
+
SwapBorrowRate$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
SwapBorrowRate
|
|
51
|
+
> = z.object({
|
|
52
|
+
borrowRateModeFrom: z.string(),
|
|
53
|
+
borrowRateModeTo: z.string(),
|
|
54
|
+
variableBorrowRate: z.string(),
|
|
55
|
+
stableBorrowRate: z.string(),
|
|
56
|
+
reserve: Reserve$outboundSchema,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace SwapBorrowRate$ {
|
|
64
|
+
/** @deprecated use `SwapBorrowRate$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = SwapBorrowRate$inboundSchema;
|
|
66
|
+
/** @deprecated use `SwapBorrowRate$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema = SwapBorrowRate$outboundSchema;
|
|
68
|
+
/** @deprecated use `SwapBorrowRate$Outbound` instead. */
|
|
69
|
+
export type Outbound = SwapBorrowRate$Outbound;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function swapBorrowRateToJSON(swapBorrowRate: SwapBorrowRate): string {
|
|
73
|
+
return JSON.stringify(SwapBorrowRate$outboundSchema.parse(swapBorrowRate));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function swapBorrowRateFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<SwapBorrowRate, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => SwapBorrowRate$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'SwapBorrowRate' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -23,11 +23,6 @@ import {
|
|
|
23
23
|
*/
|
|
24
24
|
export type UniswapBuyExactlyParamsAmountOut = number | string;
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* The maximum amount of the token to swap from
|
|
28
|
-
*/
|
|
29
|
-
export type UniswapBuyExactlyParamsAmountInMaximum = number | string;
|
|
30
|
-
|
|
31
26
|
export type UniswapBuyExactlyParams = {
|
|
32
27
|
/**
|
|
33
28
|
* A class representing the token.
|
|
@@ -60,9 +55,9 @@ export type UniswapBuyExactlyParams = {
|
|
|
60
55
|
*/
|
|
61
56
|
amountOut: number | string;
|
|
62
57
|
/**
|
|
63
|
-
* The maximum
|
|
58
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
64
59
|
*/
|
|
65
|
-
|
|
60
|
+
maxSlippagePercent: number;
|
|
66
61
|
/**
|
|
67
62
|
* Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
68
63
|
*/
|
|
@@ -119,60 +114,6 @@ export function uniswapBuyExactlyParamsAmountOutFromJSON(
|
|
|
119
114
|
);
|
|
120
115
|
}
|
|
121
116
|
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const UniswapBuyExactlyParamsAmountInMaximum$inboundSchema: z.ZodType<
|
|
124
|
-
UniswapBuyExactlyParamsAmountInMaximum,
|
|
125
|
-
z.ZodTypeDef,
|
|
126
|
-
unknown
|
|
127
|
-
> = z.union([z.number(), z.string()]);
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export type UniswapBuyExactlyParamsAmountInMaximum$Outbound = number | string;
|
|
131
|
-
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const UniswapBuyExactlyParamsAmountInMaximum$outboundSchema: z.ZodType<
|
|
134
|
-
UniswapBuyExactlyParamsAmountInMaximum$Outbound,
|
|
135
|
-
z.ZodTypeDef,
|
|
136
|
-
UniswapBuyExactlyParamsAmountInMaximum
|
|
137
|
-
> = z.union([z.number(), z.string()]);
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @internal
|
|
141
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
-
*/
|
|
143
|
-
export namespace UniswapBuyExactlyParamsAmountInMaximum$ {
|
|
144
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$inboundSchema` instead. */
|
|
145
|
-
export const inboundSchema =
|
|
146
|
-
UniswapBuyExactlyParamsAmountInMaximum$inboundSchema;
|
|
147
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$outboundSchema` instead. */
|
|
148
|
-
export const outboundSchema =
|
|
149
|
-
UniswapBuyExactlyParamsAmountInMaximum$outboundSchema;
|
|
150
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$Outbound` instead. */
|
|
151
|
-
export type Outbound = UniswapBuyExactlyParamsAmountInMaximum$Outbound;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export function uniswapBuyExactlyParamsAmountInMaximumToJSON(
|
|
155
|
-
uniswapBuyExactlyParamsAmountInMaximum:
|
|
156
|
-
UniswapBuyExactlyParamsAmountInMaximum,
|
|
157
|
-
): string {
|
|
158
|
-
return JSON.stringify(
|
|
159
|
-
UniswapBuyExactlyParamsAmountInMaximum$outboundSchema.parse(
|
|
160
|
-
uniswapBuyExactlyParamsAmountInMaximum,
|
|
161
|
-
),
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export function uniswapBuyExactlyParamsAmountInMaximumFromJSON(
|
|
166
|
-
jsonString: string,
|
|
167
|
-
): SafeParseResult<UniswapBuyExactlyParamsAmountInMaximum, SDKValidationError> {
|
|
168
|
-
return safeParse(
|
|
169
|
-
jsonString,
|
|
170
|
-
(x) =>
|
|
171
|
-
UniswapBuyExactlyParamsAmountInMaximum$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
-
`Failed to parse 'UniswapBuyExactlyParamsAmountInMaximum' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
117
|
/** @internal */
|
|
177
118
|
export const UniswapBuyExactlyParams$inboundSchema: z.ZodType<
|
|
178
119
|
UniswapBuyExactlyParams,
|
|
@@ -183,14 +124,14 @@ export const UniswapBuyExactlyParams$inboundSchema: z.ZodType<
|
|
|
183
124
|
token_out: TokenEnum$inboundSchema,
|
|
184
125
|
fee: FeeEnum$inboundSchema,
|
|
185
126
|
amount_out: z.union([z.number(), z.string()]),
|
|
186
|
-
|
|
127
|
+
max_slippage_percent: z.number(),
|
|
187
128
|
wrap_eth: z.boolean().default(false),
|
|
188
129
|
}).transform((v) => {
|
|
189
130
|
return remap$(v, {
|
|
190
131
|
"token_in": "tokenIn",
|
|
191
132
|
"token_out": "tokenOut",
|
|
192
133
|
"amount_out": "amountOut",
|
|
193
|
-
"
|
|
134
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
194
135
|
"wrap_eth": "wrapEth",
|
|
195
136
|
});
|
|
196
137
|
});
|
|
@@ -201,7 +142,7 @@ export type UniswapBuyExactlyParams$Outbound = {
|
|
|
201
142
|
token_out: string;
|
|
202
143
|
fee: string;
|
|
203
144
|
amount_out: number | string;
|
|
204
|
-
|
|
145
|
+
max_slippage_percent: number;
|
|
205
146
|
wrap_eth: boolean;
|
|
206
147
|
};
|
|
207
148
|
|
|
@@ -215,14 +156,14 @@ export const UniswapBuyExactlyParams$outboundSchema: z.ZodType<
|
|
|
215
156
|
tokenOut: TokenEnum$outboundSchema,
|
|
216
157
|
fee: FeeEnum$outboundSchema,
|
|
217
158
|
amountOut: z.union([z.number(), z.string()]),
|
|
218
|
-
|
|
159
|
+
maxSlippagePercent: z.number(),
|
|
219
160
|
wrapEth: z.boolean().default(false),
|
|
220
161
|
}).transform((v) => {
|
|
221
162
|
return remap$(v, {
|
|
222
163
|
tokenIn: "token_in",
|
|
223
164
|
tokenOut: "token_out",
|
|
224
165
|
amountOut: "amount_out",
|
|
225
|
-
|
|
166
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
226
167
|
wrapEth: "wrap_eth",
|
|
227
168
|
});
|
|
228
169
|
});
|