@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
|
@@ -24,11 +24,6 @@ import {
|
|
|
24
24
|
*/
|
|
25
25
|
export type UniswapBuyExactlyRequestAmountOut = number | string;
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* The maximum amount of the token to swap from
|
|
29
|
-
*/
|
|
30
|
-
export type UniswapBuyExactlyRequestAmountInMaximum = number | string;
|
|
31
|
-
|
|
32
27
|
/**
|
|
33
28
|
* Request model for buying exactly an amount of tokens.
|
|
34
29
|
*/
|
|
@@ -64,9 +59,9 @@ export type UniswapBuyExactlyRequest = {
|
|
|
64
59
|
*/
|
|
65
60
|
amountOut: number | string;
|
|
66
61
|
/**
|
|
67
|
-
* The maximum
|
|
62
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
68
63
|
*/
|
|
69
|
-
|
|
64
|
+
maxSlippagePercent: number;
|
|
70
65
|
/**
|
|
71
66
|
* Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
72
67
|
*/
|
|
@@ -132,65 +127,6 @@ export function uniswapBuyExactlyRequestAmountOutFromJSON(
|
|
|
132
127
|
);
|
|
133
128
|
}
|
|
134
129
|
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const UniswapBuyExactlyRequestAmountInMaximum$inboundSchema: z.ZodType<
|
|
137
|
-
UniswapBuyExactlyRequestAmountInMaximum,
|
|
138
|
-
z.ZodTypeDef,
|
|
139
|
-
unknown
|
|
140
|
-
> = z.union([z.number(), z.string()]);
|
|
141
|
-
|
|
142
|
-
/** @internal */
|
|
143
|
-
export type UniswapBuyExactlyRequestAmountInMaximum$Outbound = number | string;
|
|
144
|
-
|
|
145
|
-
/** @internal */
|
|
146
|
-
export const UniswapBuyExactlyRequestAmountInMaximum$outboundSchema: z.ZodType<
|
|
147
|
-
UniswapBuyExactlyRequestAmountInMaximum$Outbound,
|
|
148
|
-
z.ZodTypeDef,
|
|
149
|
-
UniswapBuyExactlyRequestAmountInMaximum
|
|
150
|
-
> = z.union([z.number(), z.string()]);
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
-
*/
|
|
156
|
-
export namespace UniswapBuyExactlyRequestAmountInMaximum$ {
|
|
157
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$inboundSchema` instead. */
|
|
158
|
-
export const inboundSchema =
|
|
159
|
-
UniswapBuyExactlyRequestAmountInMaximum$inboundSchema;
|
|
160
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$outboundSchema` instead. */
|
|
161
|
-
export const outboundSchema =
|
|
162
|
-
UniswapBuyExactlyRequestAmountInMaximum$outboundSchema;
|
|
163
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$Outbound` instead. */
|
|
164
|
-
export type Outbound = UniswapBuyExactlyRequestAmountInMaximum$Outbound;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function uniswapBuyExactlyRequestAmountInMaximumToJSON(
|
|
168
|
-
uniswapBuyExactlyRequestAmountInMaximum:
|
|
169
|
-
UniswapBuyExactlyRequestAmountInMaximum,
|
|
170
|
-
): string {
|
|
171
|
-
return JSON.stringify(
|
|
172
|
-
UniswapBuyExactlyRequestAmountInMaximum$outboundSchema.parse(
|
|
173
|
-
uniswapBuyExactlyRequestAmountInMaximum,
|
|
174
|
-
),
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export function uniswapBuyExactlyRequestAmountInMaximumFromJSON(
|
|
179
|
-
jsonString: string,
|
|
180
|
-
): SafeParseResult<
|
|
181
|
-
UniswapBuyExactlyRequestAmountInMaximum,
|
|
182
|
-
SDKValidationError
|
|
183
|
-
> {
|
|
184
|
-
return safeParse(
|
|
185
|
-
jsonString,
|
|
186
|
-
(x) =>
|
|
187
|
-
UniswapBuyExactlyRequestAmountInMaximum$inboundSchema.parse(
|
|
188
|
-
JSON.parse(x),
|
|
189
|
-
),
|
|
190
|
-
`Failed to parse 'UniswapBuyExactlyRequestAmountInMaximum' from JSON`,
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
130
|
/** @internal */
|
|
195
131
|
export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
|
|
196
132
|
UniswapBuyExactlyRequest,
|
|
@@ -201,7 +137,7 @@ export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
|
|
|
201
137
|
token_out: TokenEnum$inboundSchema,
|
|
202
138
|
fee: FeeEnum$inboundSchema,
|
|
203
139
|
amount_out: z.union([z.number(), z.string()]),
|
|
204
|
-
|
|
140
|
+
max_slippage_percent: z.number(),
|
|
205
141
|
wrap_eth: z.boolean().default(false),
|
|
206
142
|
chain: Chain$inboundSchema,
|
|
207
143
|
sender: z.string(),
|
|
@@ -210,7 +146,7 @@ export const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<
|
|
|
210
146
|
"token_in": "tokenIn",
|
|
211
147
|
"token_out": "tokenOut",
|
|
212
148
|
"amount_out": "amountOut",
|
|
213
|
-
"
|
|
149
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
214
150
|
"wrap_eth": "wrapEth",
|
|
215
151
|
});
|
|
216
152
|
});
|
|
@@ -221,7 +157,7 @@ export type UniswapBuyExactlyRequest$Outbound = {
|
|
|
221
157
|
token_out: string;
|
|
222
158
|
fee: string;
|
|
223
159
|
amount_out: number | string;
|
|
224
|
-
|
|
160
|
+
max_slippage_percent: number;
|
|
225
161
|
wrap_eth: boolean;
|
|
226
162
|
chain: string;
|
|
227
163
|
sender: string;
|
|
@@ -237,7 +173,7 @@ export const UniswapBuyExactlyRequest$outboundSchema: z.ZodType<
|
|
|
237
173
|
tokenOut: TokenEnum$outboundSchema,
|
|
238
174
|
fee: FeeEnum$outboundSchema,
|
|
239
175
|
amountOut: z.union([z.number(), z.string()]),
|
|
240
|
-
|
|
176
|
+
maxSlippagePercent: z.number(),
|
|
241
177
|
wrapEth: z.boolean().default(false),
|
|
242
178
|
chain: Chain$outboundSchema,
|
|
243
179
|
sender: z.string(),
|
|
@@ -246,7 +182,7 @@ export const UniswapBuyExactlyRequest$outboundSchema: z.ZodType<
|
|
|
246
182
|
tokenIn: "token_in",
|
|
247
183
|
tokenOut: "token_out",
|
|
248
184
|
amountOut: "amount_out",
|
|
249
|
-
|
|
185
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
250
186
|
wrapEth: "wrap_eth",
|
|
251
187
|
});
|
|
252
188
|
});
|
|
@@ -21,12 +21,7 @@ import {
|
|
|
21
21
|
/**
|
|
22
22
|
* The amount of the token to swap from
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The minimum amount of the token to swap to, defaults to 0
|
|
28
|
-
*/
|
|
29
|
-
export type UniswapSellExactlyParamsAmountOutMinimum = number | string;
|
|
24
|
+
export type UniswapSellExactlyParamsAmount = number | string;
|
|
30
25
|
|
|
31
26
|
/**
|
|
32
27
|
* Parameters model for selling exactly an amount of tokens.
|
|
@@ -61,11 +56,11 @@ export type UniswapSellExactlyParams = {
|
|
|
61
56
|
/**
|
|
62
57
|
* The amount of the token to swap from
|
|
63
58
|
*/
|
|
64
|
-
|
|
59
|
+
amount: number | string;
|
|
65
60
|
/**
|
|
66
|
-
* The
|
|
61
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
67
62
|
*/
|
|
68
|
-
|
|
63
|
+
maxSlippagePercent: number;
|
|
69
64
|
/**
|
|
70
65
|
* Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
71
66
|
*/
|
|
@@ -73,111 +68,52 @@ export type UniswapSellExactlyParams = {
|
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
/** @internal */
|
|
76
|
-
export const
|
|
77
|
-
|
|
78
|
-
z.ZodTypeDef,
|
|
79
|
-
unknown
|
|
80
|
-
> = z.union([z.number(), z.string()]);
|
|
81
|
-
|
|
82
|
-
/** @internal */
|
|
83
|
-
export type UniswapSellExactlyParamsAmountIn$Outbound = number | string;
|
|
84
|
-
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const UniswapSellExactlyParamsAmountIn$outboundSchema: z.ZodType<
|
|
87
|
-
UniswapSellExactlyParamsAmountIn$Outbound,
|
|
88
|
-
z.ZodTypeDef,
|
|
89
|
-
UniswapSellExactlyParamsAmountIn
|
|
90
|
-
> = z.union([z.number(), z.string()]);
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
-
*/
|
|
96
|
-
export namespace UniswapSellExactlyParamsAmountIn$ {
|
|
97
|
-
/** @deprecated use `UniswapSellExactlyParamsAmountIn$inboundSchema` instead. */
|
|
98
|
-
export const inboundSchema = UniswapSellExactlyParamsAmountIn$inboundSchema;
|
|
99
|
-
/** @deprecated use `UniswapSellExactlyParamsAmountIn$outboundSchema` instead. */
|
|
100
|
-
export const outboundSchema = UniswapSellExactlyParamsAmountIn$outboundSchema;
|
|
101
|
-
/** @deprecated use `UniswapSellExactlyParamsAmountIn$Outbound` instead. */
|
|
102
|
-
export type Outbound = UniswapSellExactlyParamsAmountIn$Outbound;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function uniswapSellExactlyParamsAmountInToJSON(
|
|
106
|
-
uniswapSellExactlyParamsAmountIn: UniswapSellExactlyParamsAmountIn,
|
|
107
|
-
): string {
|
|
108
|
-
return JSON.stringify(
|
|
109
|
-
UniswapSellExactlyParamsAmountIn$outboundSchema.parse(
|
|
110
|
-
uniswapSellExactlyParamsAmountIn,
|
|
111
|
-
),
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function uniswapSellExactlyParamsAmountInFromJSON(
|
|
116
|
-
jsonString: string,
|
|
117
|
-
): SafeParseResult<UniswapSellExactlyParamsAmountIn, SDKValidationError> {
|
|
118
|
-
return safeParse(
|
|
119
|
-
jsonString,
|
|
120
|
-
(x) => UniswapSellExactlyParamsAmountIn$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
-
`Failed to parse 'UniswapSellExactlyParamsAmountIn' from JSON`,
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const UniswapSellExactlyParamsAmountOutMinimum$inboundSchema: z.ZodType<
|
|
127
|
-
UniswapSellExactlyParamsAmountOutMinimum,
|
|
71
|
+
export const UniswapSellExactlyParamsAmount$inboundSchema: z.ZodType<
|
|
72
|
+
UniswapSellExactlyParamsAmount,
|
|
128
73
|
z.ZodTypeDef,
|
|
129
74
|
unknown
|
|
130
75
|
> = z.union([z.number(), z.string()]);
|
|
131
76
|
|
|
132
77
|
/** @internal */
|
|
133
|
-
export type
|
|
78
|
+
export type UniswapSellExactlyParamsAmount$Outbound = number | string;
|
|
134
79
|
|
|
135
80
|
/** @internal */
|
|
136
|
-
export const
|
|
137
|
-
|
|
81
|
+
export const UniswapSellExactlyParamsAmount$outboundSchema: z.ZodType<
|
|
82
|
+
UniswapSellExactlyParamsAmount$Outbound,
|
|
138
83
|
z.ZodTypeDef,
|
|
139
|
-
|
|
84
|
+
UniswapSellExactlyParamsAmount
|
|
140
85
|
> = z.union([z.number(), z.string()]);
|
|
141
86
|
|
|
142
87
|
/**
|
|
143
88
|
* @internal
|
|
144
89
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
90
|
*/
|
|
146
|
-
export namespace
|
|
147
|
-
/** @deprecated use `
|
|
148
|
-
export const inboundSchema =
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/** @deprecated use `UniswapSellExactlyParamsAmountOutMinimum$Outbound` instead. */
|
|
154
|
-
export type Outbound = UniswapSellExactlyParamsAmountOutMinimum$Outbound;
|
|
91
|
+
export namespace UniswapSellExactlyParamsAmount$ {
|
|
92
|
+
/** @deprecated use `UniswapSellExactlyParamsAmount$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = UniswapSellExactlyParamsAmount$inboundSchema;
|
|
94
|
+
/** @deprecated use `UniswapSellExactlyParamsAmount$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = UniswapSellExactlyParamsAmount$outboundSchema;
|
|
96
|
+
/** @deprecated use `UniswapSellExactlyParamsAmount$Outbound` instead. */
|
|
97
|
+
export type Outbound = UniswapSellExactlyParamsAmount$Outbound;
|
|
155
98
|
}
|
|
156
99
|
|
|
157
|
-
export function
|
|
158
|
-
|
|
159
|
-
UniswapSellExactlyParamsAmountOutMinimum,
|
|
100
|
+
export function uniswapSellExactlyParamsAmountToJSON(
|
|
101
|
+
uniswapSellExactlyParamsAmount: UniswapSellExactlyParamsAmount,
|
|
160
102
|
): string {
|
|
161
103
|
return JSON.stringify(
|
|
162
|
-
|
|
163
|
-
|
|
104
|
+
UniswapSellExactlyParamsAmount$outboundSchema.parse(
|
|
105
|
+
uniswapSellExactlyParamsAmount,
|
|
164
106
|
),
|
|
165
107
|
);
|
|
166
108
|
}
|
|
167
109
|
|
|
168
|
-
export function
|
|
110
|
+
export function uniswapSellExactlyParamsAmountFromJSON(
|
|
169
111
|
jsonString: string,
|
|
170
|
-
): SafeParseResult<
|
|
171
|
-
UniswapSellExactlyParamsAmountOutMinimum,
|
|
172
|
-
SDKValidationError
|
|
173
|
-
> {
|
|
112
|
+
): SafeParseResult<UniswapSellExactlyParamsAmount, SDKValidationError> {
|
|
174
113
|
return safeParse(
|
|
175
114
|
jsonString,
|
|
176
|
-
(x) =>
|
|
177
|
-
|
|
178
|
-
JSON.parse(x),
|
|
179
|
-
),
|
|
180
|
-
`Failed to parse 'UniswapSellExactlyParamsAmountOutMinimum' from JSON`,
|
|
115
|
+
(x) => UniswapSellExactlyParamsAmount$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'UniswapSellExactlyParamsAmount' from JSON`,
|
|
181
117
|
);
|
|
182
118
|
}
|
|
183
119
|
|
|
@@ -190,15 +126,14 @@ export const UniswapSellExactlyParams$inboundSchema: z.ZodType<
|
|
|
190
126
|
token_in: TokenEnum$inboundSchema,
|
|
191
127
|
token_out: TokenEnum$inboundSchema,
|
|
192
128
|
fee: FeeEnum$inboundSchema,
|
|
193
|
-
|
|
194
|
-
|
|
129
|
+
amount: z.union([z.number(), z.string()]),
|
|
130
|
+
max_slippage_percent: z.number(),
|
|
195
131
|
wrap_eth: z.boolean().default(false),
|
|
196
132
|
}).transform((v) => {
|
|
197
133
|
return remap$(v, {
|
|
198
134
|
"token_in": "tokenIn",
|
|
199
135
|
"token_out": "tokenOut",
|
|
200
|
-
"
|
|
201
|
-
"amount_out_minimum": "amountOutMinimum",
|
|
136
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
202
137
|
"wrap_eth": "wrapEth",
|
|
203
138
|
});
|
|
204
139
|
});
|
|
@@ -208,8 +143,8 @@ export type UniswapSellExactlyParams$Outbound = {
|
|
|
208
143
|
token_in: string;
|
|
209
144
|
token_out: string;
|
|
210
145
|
fee: string;
|
|
211
|
-
|
|
212
|
-
|
|
146
|
+
amount: number | string;
|
|
147
|
+
max_slippage_percent: number;
|
|
213
148
|
wrap_eth: boolean;
|
|
214
149
|
};
|
|
215
150
|
|
|
@@ -222,15 +157,14 @@ export const UniswapSellExactlyParams$outboundSchema: z.ZodType<
|
|
|
222
157
|
tokenIn: TokenEnum$outboundSchema,
|
|
223
158
|
tokenOut: TokenEnum$outboundSchema,
|
|
224
159
|
fee: FeeEnum$outboundSchema,
|
|
225
|
-
|
|
226
|
-
|
|
160
|
+
amount: z.union([z.number(), z.string()]),
|
|
161
|
+
maxSlippagePercent: z.number(),
|
|
227
162
|
wrapEth: z.boolean().default(false),
|
|
228
163
|
}).transform((v) => {
|
|
229
164
|
return remap$(v, {
|
|
230
165
|
tokenIn: "token_in",
|
|
231
166
|
tokenOut: "token_out",
|
|
232
|
-
|
|
233
|
-
amountOutMinimum: "amount_out_minimum",
|
|
167
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
234
168
|
wrapEth: "wrap_eth",
|
|
235
169
|
});
|
|
236
170
|
});
|
|
@@ -22,12 +22,7 @@ import {
|
|
|
22
22
|
/**
|
|
23
23
|
* The amount of the token to swap from
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The minimum amount of the token to swap to, defaults to 0
|
|
29
|
-
*/
|
|
30
|
-
export type UniswapSellExactlyRequestAmountOutMinimum = number | string;
|
|
25
|
+
export type UniswapSellExactlyRequestAmount = number | string;
|
|
31
26
|
|
|
32
27
|
/**
|
|
33
28
|
* Request model for selling exactly an amount of tokens.
|
|
@@ -62,11 +57,11 @@ export type UniswapSellExactlyRequest = {
|
|
|
62
57
|
/**
|
|
63
58
|
* The amount of the token to swap from
|
|
64
59
|
*/
|
|
65
|
-
|
|
60
|
+
amount: number | string;
|
|
66
61
|
/**
|
|
67
|
-
* The
|
|
62
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
68
63
|
*/
|
|
69
|
-
|
|
64
|
+
maxSlippagePercent: number;
|
|
70
65
|
/**
|
|
71
66
|
* Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
72
67
|
*/
|
|
@@ -82,115 +77,52 @@ export type UniswapSellExactlyRequest = {
|
|
|
82
77
|
};
|
|
83
78
|
|
|
84
79
|
/** @internal */
|
|
85
|
-
export const
|
|
86
|
-
|
|
80
|
+
export const UniswapSellExactlyRequestAmount$inboundSchema: z.ZodType<
|
|
81
|
+
UniswapSellExactlyRequestAmount,
|
|
87
82
|
z.ZodTypeDef,
|
|
88
83
|
unknown
|
|
89
84
|
> = z.union([z.number(), z.string()]);
|
|
90
85
|
|
|
91
86
|
/** @internal */
|
|
92
|
-
export type
|
|
93
|
-
|
|
94
|
-
/** @internal */
|
|
95
|
-
export const UniswapSellExactlyRequestAmountIn$outboundSchema: z.ZodType<
|
|
96
|
-
UniswapSellExactlyRequestAmountIn$Outbound,
|
|
97
|
-
z.ZodTypeDef,
|
|
98
|
-
UniswapSellExactlyRequestAmountIn
|
|
99
|
-
> = z.union([z.number(), z.string()]);
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
export namespace UniswapSellExactlyRequestAmountIn$ {
|
|
106
|
-
/** @deprecated use `UniswapSellExactlyRequestAmountIn$inboundSchema` instead. */
|
|
107
|
-
export const inboundSchema = UniswapSellExactlyRequestAmountIn$inboundSchema;
|
|
108
|
-
/** @deprecated use `UniswapSellExactlyRequestAmountIn$outboundSchema` instead. */
|
|
109
|
-
export const outboundSchema =
|
|
110
|
-
UniswapSellExactlyRequestAmountIn$outboundSchema;
|
|
111
|
-
/** @deprecated use `UniswapSellExactlyRequestAmountIn$Outbound` instead. */
|
|
112
|
-
export type Outbound = UniswapSellExactlyRequestAmountIn$Outbound;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function uniswapSellExactlyRequestAmountInToJSON(
|
|
116
|
-
uniswapSellExactlyRequestAmountIn: UniswapSellExactlyRequestAmountIn,
|
|
117
|
-
): string {
|
|
118
|
-
return JSON.stringify(
|
|
119
|
-
UniswapSellExactlyRequestAmountIn$outboundSchema.parse(
|
|
120
|
-
uniswapSellExactlyRequestAmountIn,
|
|
121
|
-
),
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export function uniswapSellExactlyRequestAmountInFromJSON(
|
|
126
|
-
jsonString: string,
|
|
127
|
-
): SafeParseResult<UniswapSellExactlyRequestAmountIn, SDKValidationError> {
|
|
128
|
-
return safeParse(
|
|
129
|
-
jsonString,
|
|
130
|
-
(x) => UniswapSellExactlyRequestAmountIn$inboundSchema.parse(JSON.parse(x)),
|
|
131
|
-
`Failed to parse 'UniswapSellExactlyRequestAmountIn' from JSON`,
|
|
132
|
-
);
|
|
133
|
-
}
|
|
87
|
+
export type UniswapSellExactlyRequestAmount$Outbound = number | string;
|
|
134
88
|
|
|
135
89
|
/** @internal */
|
|
136
|
-
export const
|
|
137
|
-
|
|
90
|
+
export const UniswapSellExactlyRequestAmount$outboundSchema: z.ZodType<
|
|
91
|
+
UniswapSellExactlyRequestAmount$Outbound,
|
|
138
92
|
z.ZodTypeDef,
|
|
139
|
-
|
|
93
|
+
UniswapSellExactlyRequestAmount
|
|
140
94
|
> = z.union([z.number(), z.string()]);
|
|
141
95
|
|
|
142
|
-
/** @internal */
|
|
143
|
-
export type UniswapSellExactlyRequestAmountOutMinimum$Outbound =
|
|
144
|
-
| number
|
|
145
|
-
| string;
|
|
146
|
-
|
|
147
|
-
/** @internal */
|
|
148
|
-
export const UniswapSellExactlyRequestAmountOutMinimum$outboundSchema:
|
|
149
|
-
z.ZodType<
|
|
150
|
-
UniswapSellExactlyRequestAmountOutMinimum$Outbound,
|
|
151
|
-
z.ZodTypeDef,
|
|
152
|
-
UniswapSellExactlyRequestAmountOutMinimum
|
|
153
|
-
> = z.union([z.number(), z.string()]);
|
|
154
|
-
|
|
155
96
|
/**
|
|
156
97
|
* @internal
|
|
157
98
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
158
99
|
*/
|
|
159
|
-
export namespace
|
|
160
|
-
/** @deprecated use `
|
|
161
|
-
export const inboundSchema =
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
/** @deprecated use `UniswapSellExactlyRequestAmountOutMinimum$Outbound` instead. */
|
|
167
|
-
export type Outbound = UniswapSellExactlyRequestAmountOutMinimum$Outbound;
|
|
100
|
+
export namespace UniswapSellExactlyRequestAmount$ {
|
|
101
|
+
/** @deprecated use `UniswapSellExactlyRequestAmount$inboundSchema` instead. */
|
|
102
|
+
export const inboundSchema = UniswapSellExactlyRequestAmount$inboundSchema;
|
|
103
|
+
/** @deprecated use `UniswapSellExactlyRequestAmount$outboundSchema` instead. */
|
|
104
|
+
export const outboundSchema = UniswapSellExactlyRequestAmount$outboundSchema;
|
|
105
|
+
/** @deprecated use `UniswapSellExactlyRequestAmount$Outbound` instead. */
|
|
106
|
+
export type Outbound = UniswapSellExactlyRequestAmount$Outbound;
|
|
168
107
|
}
|
|
169
108
|
|
|
170
|
-
export function
|
|
171
|
-
|
|
172
|
-
UniswapSellExactlyRequestAmountOutMinimum,
|
|
109
|
+
export function uniswapSellExactlyRequestAmountToJSON(
|
|
110
|
+
uniswapSellExactlyRequestAmount: UniswapSellExactlyRequestAmount,
|
|
173
111
|
): string {
|
|
174
112
|
return JSON.stringify(
|
|
175
|
-
|
|
176
|
-
|
|
113
|
+
UniswapSellExactlyRequestAmount$outboundSchema.parse(
|
|
114
|
+
uniswapSellExactlyRequestAmount,
|
|
177
115
|
),
|
|
178
116
|
);
|
|
179
117
|
}
|
|
180
118
|
|
|
181
|
-
export function
|
|
119
|
+
export function uniswapSellExactlyRequestAmountFromJSON(
|
|
182
120
|
jsonString: string,
|
|
183
|
-
): SafeParseResult<
|
|
184
|
-
UniswapSellExactlyRequestAmountOutMinimum,
|
|
185
|
-
SDKValidationError
|
|
186
|
-
> {
|
|
121
|
+
): SafeParseResult<UniswapSellExactlyRequestAmount, SDKValidationError> {
|
|
187
122
|
return safeParse(
|
|
188
123
|
jsonString,
|
|
189
|
-
(x) =>
|
|
190
|
-
|
|
191
|
-
JSON.parse(x),
|
|
192
|
-
),
|
|
193
|
-
`Failed to parse 'UniswapSellExactlyRequestAmountOutMinimum' from JSON`,
|
|
124
|
+
(x) => UniswapSellExactlyRequestAmount$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'UniswapSellExactlyRequestAmount' from JSON`,
|
|
194
126
|
);
|
|
195
127
|
}
|
|
196
128
|
|
|
@@ -203,8 +135,8 @@ export const UniswapSellExactlyRequest$inboundSchema: z.ZodType<
|
|
|
203
135
|
token_in: TokenEnum$inboundSchema,
|
|
204
136
|
token_out: TokenEnum$inboundSchema,
|
|
205
137
|
fee: FeeEnum$inboundSchema,
|
|
206
|
-
|
|
207
|
-
|
|
138
|
+
amount: z.union([z.number(), z.string()]),
|
|
139
|
+
max_slippage_percent: z.number(),
|
|
208
140
|
wrap_eth: z.boolean().default(false),
|
|
209
141
|
chain: Chain$inboundSchema,
|
|
210
142
|
sender: z.string(),
|
|
@@ -212,8 +144,7 @@ export const UniswapSellExactlyRequest$inboundSchema: z.ZodType<
|
|
|
212
144
|
return remap$(v, {
|
|
213
145
|
"token_in": "tokenIn",
|
|
214
146
|
"token_out": "tokenOut",
|
|
215
|
-
"
|
|
216
|
-
"amount_out_minimum": "amountOutMinimum",
|
|
147
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
217
148
|
"wrap_eth": "wrapEth",
|
|
218
149
|
});
|
|
219
150
|
});
|
|
@@ -223,8 +154,8 @@ export type UniswapSellExactlyRequest$Outbound = {
|
|
|
223
154
|
token_in: string;
|
|
224
155
|
token_out: string;
|
|
225
156
|
fee: string;
|
|
226
|
-
|
|
227
|
-
|
|
157
|
+
amount: number | string;
|
|
158
|
+
max_slippage_percent: number;
|
|
228
159
|
wrap_eth: boolean;
|
|
229
160
|
chain: string;
|
|
230
161
|
sender: string;
|
|
@@ -239,8 +170,8 @@ export const UniswapSellExactlyRequest$outboundSchema: z.ZodType<
|
|
|
239
170
|
tokenIn: TokenEnum$outboundSchema,
|
|
240
171
|
tokenOut: TokenEnum$outboundSchema,
|
|
241
172
|
fee: FeeEnum$outboundSchema,
|
|
242
|
-
|
|
243
|
-
|
|
173
|
+
amount: z.union([z.number(), z.string()]),
|
|
174
|
+
maxSlippagePercent: z.number(),
|
|
244
175
|
wrapEth: z.boolean().default(false),
|
|
245
176
|
chain: Chain$outboundSchema,
|
|
246
177
|
sender: z.string(),
|
|
@@ -248,8 +179,7 @@ export const UniswapSellExactlyRequest$outboundSchema: z.ZodType<
|
|
|
248
179
|
return remap$(v, {
|
|
249
180
|
tokenIn: "token_in",
|
|
250
181
|
tokenOut: "token_out",
|
|
251
|
-
|
|
252
|
-
amountOutMinimum: "amount_out_minimum",
|
|
182
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
253
183
|
wrapEth: "wrap_eth",
|
|
254
184
|
});
|
|
255
185
|
});
|
|
@@ -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 UsageAsCollateral = {
|
|
17
|
+
fromState: string;
|
|
18
|
+
toState: string;
|
|
19
|
+
reserve: Reserve;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const UsageAsCollateral$inboundSchema: z.ZodType<
|
|
24
|
+
UsageAsCollateral,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
fromState: z.string(),
|
|
29
|
+
toState: z.string(),
|
|
30
|
+
reserve: Reserve$inboundSchema,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type UsageAsCollateral$Outbound = {
|
|
35
|
+
fromState: string;
|
|
36
|
+
toState: string;
|
|
37
|
+
reserve: Reserve$Outbound;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const UsageAsCollateral$outboundSchema: z.ZodType<
|
|
42
|
+
UsageAsCollateral$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
UsageAsCollateral
|
|
45
|
+
> = z.object({
|
|
46
|
+
fromState: z.string(),
|
|
47
|
+
toState: z.string(),
|
|
48
|
+
reserve: Reserve$outboundSchema,
|
|
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 UsageAsCollateral$ {
|
|
56
|
+
/** @deprecated use `UsageAsCollateral$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = UsageAsCollateral$inboundSchema;
|
|
58
|
+
/** @deprecated use `UsageAsCollateral$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = UsageAsCollateral$outboundSchema;
|
|
60
|
+
/** @deprecated use `UsageAsCollateral$Outbound` instead. */
|
|
61
|
+
export type Outbound = UsageAsCollateral$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function usageAsCollateralToJSON(
|
|
65
|
+
usageAsCollateral: UsageAsCollateral,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
UsageAsCollateral$outboundSchema.parse(usageAsCollateral),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function usageAsCollateralFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<UsageAsCollateral, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => UsageAsCollateral$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'UsageAsCollateral' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|