@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 @@
|
|
|
1
|
+
{"version":3,"file":"supply.d.ts","sourceRoot":"","sources":["../../../../src/models/components/supply.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,MAAM,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAKtE,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAC3C,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,MAAM,CAKN,CAAC;AAEH;;;GAGG;AACH,yBAAiB,OAAO,CAAC;IACvB,sDAAsD;IAC/C,MAAM,aAAa,0CAAuB,CAAC;IAClD,uDAAuD;IAChD,MAAM,cAAc,kDAAwB,CAAC;IACpD,iDAAiD;IACjD,KAAY,QAAQ,GAAG,eAAe,CAAC;CACxC;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAM7C"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Supply$ = exports.Supply$outboundSchema = exports.Supply$inboundSchema = void 0;
|
|
40
|
+
exports.supplyToJSON = supplyToJSON;
|
|
41
|
+
exports.supplyFromJSON = supplyFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const reserve_js_1 = require("./reserve.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.Supply$inboundSchema = z
|
|
47
|
+
.object({
|
|
48
|
+
amount: z.string(),
|
|
49
|
+
reserve: reserve_js_1.Reserve$inboundSchema,
|
|
50
|
+
assetPriceUSD: z.string(),
|
|
51
|
+
});
|
|
52
|
+
/** @internal */
|
|
53
|
+
exports.Supply$outboundSchema = z.object({
|
|
54
|
+
amount: z.string(),
|
|
55
|
+
reserve: reserve_js_1.Reserve$outboundSchema,
|
|
56
|
+
assetPriceUSD: z.string(),
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
var Supply$;
|
|
63
|
+
(function (Supply$) {
|
|
64
|
+
/** @deprecated use `Supply$inboundSchema` instead. */
|
|
65
|
+
Supply$.inboundSchema = exports.Supply$inboundSchema;
|
|
66
|
+
/** @deprecated use `Supply$outboundSchema` instead. */
|
|
67
|
+
Supply$.outboundSchema = exports.Supply$outboundSchema;
|
|
68
|
+
})(Supply$ || (exports.Supply$ = Supply$ = {}));
|
|
69
|
+
function supplyToJSON(supply) {
|
|
70
|
+
return JSON.stringify(exports.Supply$outboundSchema.parse(supply));
|
|
71
|
+
}
|
|
72
|
+
function supplyFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Supply$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Supply' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=supply.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supply.js","sourceRoot":"","sources":["../../../../src/models/components/supply.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DH,oCAEC;AAED,wCAQC;AApED,uCAAyB;AACzB,qDAAiD;AAGjD,6CAKsB;AAQtB,gBAAgB;AACH,QAAA,oBAAoB,GAA6C,CAAC;KAC5E,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,kCAAqB;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AASL,gBAAgB;AACH,QAAA,qBAAqB,GAI9B,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,mCAAsB;IAC/B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,OAAO,CAOvB;AAPD,WAAiB,OAAO;IACtB,sDAAsD;IACzC,qBAAa,GAAG,4BAAoB,CAAC;IAClD,uDAAuD;IAC1C,sBAAc,GAAG,6BAAqB,CAAC;AAGtD,CAAC,EAPgB,OAAO,uBAAP,OAAO,QAOvB;AAED,SAAgB,YAAY,CAAC,MAAc;IACzC,OAAO,IAAI,CAAC,SAAS,CAAC,6BAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,cAAc,CAC5B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChD,oCAAoC,CACrC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Reserve, Reserve$Outbound } from "./reserve.js";
|
|
5
|
+
export type SwapBorrowRate = {
|
|
6
|
+
borrowRateModeFrom: string;
|
|
7
|
+
borrowRateModeTo: string;
|
|
8
|
+
variableBorrowRate: string;
|
|
9
|
+
stableBorrowRate: string;
|
|
10
|
+
reserve: Reserve;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const SwapBorrowRate$inboundSchema: z.ZodType<SwapBorrowRate, z.ZodTypeDef, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type SwapBorrowRate$Outbound = {
|
|
16
|
+
borrowRateModeFrom: string;
|
|
17
|
+
borrowRateModeTo: string;
|
|
18
|
+
variableBorrowRate: string;
|
|
19
|
+
stableBorrowRate: string;
|
|
20
|
+
reserve: Reserve$Outbound;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const SwapBorrowRate$outboundSchema: z.ZodType<SwapBorrowRate$Outbound, z.ZodTypeDef, SwapBorrowRate>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace SwapBorrowRate$ {
|
|
29
|
+
/** @deprecated use `SwapBorrowRate$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<SwapBorrowRate, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `SwapBorrowRate$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<SwapBorrowRate$Outbound, z.ZodTypeDef, SwapBorrowRate>;
|
|
33
|
+
/** @deprecated use `SwapBorrowRate$Outbound` instead. */
|
|
34
|
+
type Outbound = SwapBorrowRate$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function swapBorrowRateToJSON(swapBorrowRate: SwapBorrowRate): string;
|
|
37
|
+
export declare function swapBorrowRateFromJSON(jsonString: string): SafeParseResult<SwapBorrowRate, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=swapborrowrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapborrowrate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/swapborrowrate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,cAAc,GAAG;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAOd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SwapBorrowRate$ = exports.SwapBorrowRate$outboundSchema = exports.SwapBorrowRate$inboundSchema = void 0;
|
|
40
|
+
exports.swapBorrowRateToJSON = swapBorrowRateToJSON;
|
|
41
|
+
exports.swapBorrowRateFromJSON = swapBorrowRateFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const reserve_js_1 = require("./reserve.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.SwapBorrowRate$inboundSchema = z.object({
|
|
47
|
+
borrowRateModeFrom: z.string(),
|
|
48
|
+
borrowRateModeTo: z.string(),
|
|
49
|
+
variableBorrowRate: z.string(),
|
|
50
|
+
stableBorrowRate: z.string(),
|
|
51
|
+
reserve: reserve_js_1.Reserve$inboundSchema,
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.SwapBorrowRate$outboundSchema = z.object({
|
|
55
|
+
borrowRateModeFrom: z.string(),
|
|
56
|
+
borrowRateModeTo: z.string(),
|
|
57
|
+
variableBorrowRate: z.string(),
|
|
58
|
+
stableBorrowRate: z.string(),
|
|
59
|
+
reserve: reserve_js_1.Reserve$outboundSchema,
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
var SwapBorrowRate$;
|
|
66
|
+
(function (SwapBorrowRate$) {
|
|
67
|
+
/** @deprecated use `SwapBorrowRate$inboundSchema` instead. */
|
|
68
|
+
SwapBorrowRate$.inboundSchema = exports.SwapBorrowRate$inboundSchema;
|
|
69
|
+
/** @deprecated use `SwapBorrowRate$outboundSchema` instead. */
|
|
70
|
+
SwapBorrowRate$.outboundSchema = exports.SwapBorrowRate$outboundSchema;
|
|
71
|
+
})(SwapBorrowRate$ || (exports.SwapBorrowRate$ = SwapBorrowRate$ = {}));
|
|
72
|
+
function swapBorrowRateToJSON(swapBorrowRate) {
|
|
73
|
+
return JSON.stringify(exports.SwapBorrowRate$outboundSchema.parse(swapBorrowRate));
|
|
74
|
+
}
|
|
75
|
+
function swapBorrowRateFromJSON(jsonString) {
|
|
76
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SwapBorrowRate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SwapBorrowRate' from JSON`);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=swapborrowrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapborrowrate.js","sourceRoot":"","sources":["../../../../src/models/components/swapborrowrate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEH,oDAEC;AAED,wDAQC;AA/ED,uCAAyB;AACzB,qDAAiD;AAGjD,6CAKsB;AAUtB,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,kCAAqB;CAC/B,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,mCAAsB;CAChC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -7,10 +7,6 @@ import { TokenEnum } from "./tokenenum.js";
|
|
|
7
7
|
* The amount of the token to swap to
|
|
8
8
|
*/
|
|
9
9
|
export type UniswapBuyExactlyParamsAmountOut = number | string;
|
|
10
|
-
/**
|
|
11
|
-
* The maximum amount of the token to swap from
|
|
12
|
-
*/
|
|
13
|
-
export type UniswapBuyExactlyParamsAmountInMaximum = number | string;
|
|
14
10
|
export type UniswapBuyExactlyParams = {
|
|
15
11
|
/**
|
|
16
12
|
* A class representing the token.
|
|
@@ -43,9 +39,9 @@ export type UniswapBuyExactlyParams = {
|
|
|
43
39
|
*/
|
|
44
40
|
amountOut: number | string;
|
|
45
41
|
/**
|
|
46
|
-
* The maximum
|
|
42
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
47
43
|
*/
|
|
48
|
-
|
|
44
|
+
maxSlippagePercent: number;
|
|
49
45
|
/**
|
|
50
46
|
* Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
51
47
|
*/
|
|
@@ -72,26 +68,6 @@ export declare namespace UniswapBuyExactlyParamsAmountOut$ {
|
|
|
72
68
|
export declare function uniswapBuyExactlyParamsAmountOutToJSON(uniswapBuyExactlyParamsAmountOut: UniswapBuyExactlyParamsAmountOut): string;
|
|
73
69
|
export declare function uniswapBuyExactlyParamsAmountOutFromJSON(jsonString: string): SafeParseResult<UniswapBuyExactlyParamsAmountOut, SDKValidationError>;
|
|
74
70
|
/** @internal */
|
|
75
|
-
export declare const UniswapBuyExactlyParamsAmountInMaximum$inboundSchema: z.ZodType<UniswapBuyExactlyParamsAmountInMaximum, z.ZodTypeDef, unknown>;
|
|
76
|
-
/** @internal */
|
|
77
|
-
export type UniswapBuyExactlyParamsAmountInMaximum$Outbound = number | string;
|
|
78
|
-
/** @internal */
|
|
79
|
-
export declare const UniswapBuyExactlyParamsAmountInMaximum$outboundSchema: z.ZodType<UniswapBuyExactlyParamsAmountInMaximum$Outbound, z.ZodTypeDef, UniswapBuyExactlyParamsAmountInMaximum>;
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export declare namespace UniswapBuyExactlyParamsAmountInMaximum$ {
|
|
85
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$inboundSchema` instead. */
|
|
86
|
-
const inboundSchema: z.ZodType<UniswapBuyExactlyParamsAmountInMaximum, z.ZodTypeDef, unknown>;
|
|
87
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$outboundSchema` instead. */
|
|
88
|
-
const outboundSchema: z.ZodType<UniswapBuyExactlyParamsAmountInMaximum$Outbound, z.ZodTypeDef, UniswapBuyExactlyParamsAmountInMaximum>;
|
|
89
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$Outbound` instead. */
|
|
90
|
-
type Outbound = UniswapBuyExactlyParamsAmountInMaximum$Outbound;
|
|
91
|
-
}
|
|
92
|
-
export declare function uniswapBuyExactlyParamsAmountInMaximumToJSON(uniswapBuyExactlyParamsAmountInMaximum: UniswapBuyExactlyParamsAmountInMaximum): string;
|
|
93
|
-
export declare function uniswapBuyExactlyParamsAmountInMaximumFromJSON(jsonString: string): SafeParseResult<UniswapBuyExactlyParamsAmountInMaximum, SDKValidationError>;
|
|
94
|
-
/** @internal */
|
|
95
71
|
export declare const UniswapBuyExactlyParams$inboundSchema: z.ZodType<UniswapBuyExactlyParams, z.ZodTypeDef, unknown>;
|
|
96
72
|
/** @internal */
|
|
97
73
|
export type UniswapBuyExactlyParams$Outbound = {
|
|
@@ -99,7 +75,7 @@ export type UniswapBuyExactlyParams$Outbound = {
|
|
|
99
75
|
token_out: string;
|
|
100
76
|
fee: string;
|
|
101
77
|
amount_out: number | string;
|
|
102
|
-
|
|
78
|
+
max_slippage_percent: number;
|
|
103
79
|
wrap_eth: boolean;
|
|
104
80
|
};
|
|
105
81
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapbuyexactlyparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAGR,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"uniswapbuyexactlyparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAGR,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;;;OAOG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;;;;OAOG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;OAMG;IACH,GAAG,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAC4B,CAAC;AAEtC,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG,MAAM,GAAG,MAAM,CAAC;AAExE,gBAAgB;AAChB,eAAO,MAAM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AAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UniswapBuyExactlyParams$ = exports.UniswapBuyExactlyParams$outboundSchema = exports.UniswapBuyExactlyParams$inboundSchema = exports.
|
|
39
|
+
exports.UniswapBuyExactlyParams$ = exports.UniswapBuyExactlyParams$outboundSchema = exports.UniswapBuyExactlyParams$inboundSchema = exports.UniswapBuyExactlyParamsAmountOut$ = exports.UniswapBuyExactlyParamsAmountOut$outboundSchema = exports.UniswapBuyExactlyParamsAmountOut$inboundSchema = void 0;
|
|
40
40
|
exports.uniswapBuyExactlyParamsAmountOutToJSON = uniswapBuyExactlyParamsAmountOutToJSON;
|
|
41
41
|
exports.uniswapBuyExactlyParamsAmountOutFromJSON = uniswapBuyExactlyParamsAmountOutFromJSON;
|
|
42
|
-
exports.uniswapBuyExactlyParamsAmountInMaximumToJSON = uniswapBuyExactlyParamsAmountInMaximumToJSON;
|
|
43
|
-
exports.uniswapBuyExactlyParamsAmountInMaximumFromJSON = uniswapBuyExactlyParamsAmountInMaximumFromJSON;
|
|
44
42
|
exports.uniswapBuyExactlyParamsToJSON = uniswapBuyExactlyParamsToJSON;
|
|
45
43
|
exports.uniswapBuyExactlyParamsFromJSON = uniswapBuyExactlyParamsFromJSON;
|
|
46
44
|
const z = __importStar(require("zod"));
|
|
@@ -70,40 +68,19 @@ function uniswapBuyExactlyParamsAmountOutFromJSON(jsonString) {
|
|
|
70
68
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UniswapBuyExactlyParamsAmountOut$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UniswapBuyExactlyParamsAmountOut' from JSON`);
|
|
71
69
|
}
|
|
72
70
|
/** @internal */
|
|
73
|
-
exports.UniswapBuyExactlyParamsAmountInMaximum$inboundSchema = z.union([z.number(), z.string()]);
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.UniswapBuyExactlyParamsAmountInMaximum$outboundSchema = z.union([z.number(), z.string()]);
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
var UniswapBuyExactlyParamsAmountInMaximum$;
|
|
81
|
-
(function (UniswapBuyExactlyParamsAmountInMaximum$) {
|
|
82
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$inboundSchema` instead. */
|
|
83
|
-
UniswapBuyExactlyParamsAmountInMaximum$.inboundSchema = exports.UniswapBuyExactlyParamsAmountInMaximum$inboundSchema;
|
|
84
|
-
/** @deprecated use `UniswapBuyExactlyParamsAmountInMaximum$outboundSchema` instead. */
|
|
85
|
-
UniswapBuyExactlyParamsAmountInMaximum$.outboundSchema = exports.UniswapBuyExactlyParamsAmountInMaximum$outboundSchema;
|
|
86
|
-
})(UniswapBuyExactlyParamsAmountInMaximum$ || (exports.UniswapBuyExactlyParamsAmountInMaximum$ = UniswapBuyExactlyParamsAmountInMaximum$ = {}));
|
|
87
|
-
function uniswapBuyExactlyParamsAmountInMaximumToJSON(uniswapBuyExactlyParamsAmountInMaximum) {
|
|
88
|
-
return JSON.stringify(exports.UniswapBuyExactlyParamsAmountInMaximum$outboundSchema.parse(uniswapBuyExactlyParamsAmountInMaximum));
|
|
89
|
-
}
|
|
90
|
-
function uniswapBuyExactlyParamsAmountInMaximumFromJSON(jsonString) {
|
|
91
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UniswapBuyExactlyParamsAmountInMaximum$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UniswapBuyExactlyParamsAmountInMaximum' from JSON`);
|
|
92
|
-
}
|
|
93
|
-
/** @internal */
|
|
94
71
|
exports.UniswapBuyExactlyParams$inboundSchema = z.object({
|
|
95
72
|
token_in: tokenenum_js_1.TokenEnum$inboundSchema,
|
|
96
73
|
token_out: tokenenum_js_1.TokenEnum$inboundSchema,
|
|
97
74
|
fee: feeenum_js_1.FeeEnum$inboundSchema,
|
|
98
75
|
amount_out: z.union([z.number(), z.string()]),
|
|
99
|
-
|
|
76
|
+
max_slippage_percent: z.number(),
|
|
100
77
|
wrap_eth: z.boolean().default(false),
|
|
101
78
|
}).transform((v) => {
|
|
102
79
|
return (0, primitives_js_1.remap)(v, {
|
|
103
80
|
"token_in": "tokenIn",
|
|
104
81
|
"token_out": "tokenOut",
|
|
105
82
|
"amount_out": "amountOut",
|
|
106
|
-
"
|
|
83
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
107
84
|
"wrap_eth": "wrapEth",
|
|
108
85
|
});
|
|
109
86
|
});
|
|
@@ -113,14 +90,14 @@ exports.UniswapBuyExactlyParams$outboundSchema = z.object({
|
|
|
113
90
|
tokenOut: tokenenum_js_1.TokenEnum$outboundSchema,
|
|
114
91
|
fee: feeenum_js_1.FeeEnum$outboundSchema,
|
|
115
92
|
amountOut: z.union([z.number(), z.string()]),
|
|
116
|
-
|
|
93
|
+
maxSlippagePercent: z.number(),
|
|
117
94
|
wrapEth: z.boolean().default(false),
|
|
118
95
|
}).transform((v) => {
|
|
119
96
|
return (0, primitives_js_1.remap)(v, {
|
|
120
97
|
tokenIn: "token_in",
|
|
121
98
|
tokenOut: "token_out",
|
|
122
99
|
amountOut: "amount_out",
|
|
123
|
-
|
|
100
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
124
101
|
wrapEth: "wrap_eth",
|
|
125
102
|
});
|
|
126
103
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapbuyexactlyparams.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"uniswapbuyexactlyparams.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,wFAQC;AAED,4FAQC;AAqED,sEAMC;AAED,0EAQC;AAnMD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,6CAIsB;AACtB,iDAIwB;AAgDxB,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKtC,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,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;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC;AAED,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -8,10 +8,6 @@ import { TokenEnum } from "./tokenenum.js";
|
|
|
8
8
|
* The amount of the token to swap to
|
|
9
9
|
*/
|
|
10
10
|
export type UniswapBuyExactlyRequestAmountOut = number | string;
|
|
11
|
-
/**
|
|
12
|
-
* The maximum amount of the token to swap from
|
|
13
|
-
*/
|
|
14
|
-
export type UniswapBuyExactlyRequestAmountInMaximum = number | string;
|
|
15
11
|
/**
|
|
16
12
|
* Request model for buying exactly an amount of tokens.
|
|
17
13
|
*/
|
|
@@ -47,9 +43,9 @@ export type UniswapBuyExactlyRequest = {
|
|
|
47
43
|
*/
|
|
48
44
|
amountOut: number | string;
|
|
49
45
|
/**
|
|
50
|
-
* The maximum
|
|
46
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
51
47
|
*/
|
|
52
|
-
|
|
48
|
+
maxSlippagePercent: number;
|
|
53
49
|
/**
|
|
54
50
|
* Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
55
51
|
*/
|
|
@@ -84,26 +80,6 @@ export declare namespace UniswapBuyExactlyRequestAmountOut$ {
|
|
|
84
80
|
export declare function uniswapBuyExactlyRequestAmountOutToJSON(uniswapBuyExactlyRequestAmountOut: UniswapBuyExactlyRequestAmountOut): string;
|
|
85
81
|
export declare function uniswapBuyExactlyRequestAmountOutFromJSON(jsonString: string): SafeParseResult<UniswapBuyExactlyRequestAmountOut, SDKValidationError>;
|
|
86
82
|
/** @internal */
|
|
87
|
-
export declare const UniswapBuyExactlyRequestAmountInMaximum$inboundSchema: z.ZodType<UniswapBuyExactlyRequestAmountInMaximum, z.ZodTypeDef, unknown>;
|
|
88
|
-
/** @internal */
|
|
89
|
-
export type UniswapBuyExactlyRequestAmountInMaximum$Outbound = number | string;
|
|
90
|
-
/** @internal */
|
|
91
|
-
export declare const UniswapBuyExactlyRequestAmountInMaximum$outboundSchema: z.ZodType<UniswapBuyExactlyRequestAmountInMaximum$Outbound, z.ZodTypeDef, UniswapBuyExactlyRequestAmountInMaximum>;
|
|
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 declare namespace UniswapBuyExactlyRequestAmountInMaximum$ {
|
|
97
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$inboundSchema` instead. */
|
|
98
|
-
const inboundSchema: z.ZodType<UniswapBuyExactlyRequestAmountInMaximum, z.ZodTypeDef, unknown>;
|
|
99
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$outboundSchema` instead. */
|
|
100
|
-
const outboundSchema: z.ZodType<UniswapBuyExactlyRequestAmountInMaximum$Outbound, z.ZodTypeDef, UniswapBuyExactlyRequestAmountInMaximum>;
|
|
101
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$Outbound` instead. */
|
|
102
|
-
type Outbound = UniswapBuyExactlyRequestAmountInMaximum$Outbound;
|
|
103
|
-
}
|
|
104
|
-
export declare function uniswapBuyExactlyRequestAmountInMaximumToJSON(uniswapBuyExactlyRequestAmountInMaximum: UniswapBuyExactlyRequestAmountInMaximum): string;
|
|
105
|
-
export declare function uniswapBuyExactlyRequestAmountInMaximumFromJSON(jsonString: string): SafeParseResult<UniswapBuyExactlyRequestAmountInMaximum, SDKValidationError>;
|
|
106
|
-
/** @internal */
|
|
107
83
|
export declare const UniswapBuyExactlyRequest$inboundSchema: z.ZodType<UniswapBuyExactlyRequest, z.ZodTypeDef, unknown>;
|
|
108
84
|
/** @internal */
|
|
109
85
|
export type UniswapBuyExactlyRequest$Outbound = {
|
|
@@ -111,7 +87,7 @@ export type UniswapBuyExactlyRequest$Outbound = {
|
|
|
111
87
|
token_out: string;
|
|
112
88
|
fee: string;
|
|
113
89
|
amount_out: number | string;
|
|
114
|
-
|
|
90
|
+
max_slippage_percent: number;
|
|
115
91
|
wrap_eth: boolean;
|
|
116
92
|
chain: string;
|
|
117
93
|
sender: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapbuyexactlyrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,KAAK,EAA6C,MAAM,YAAY,CAAC;AAC9E,OAAO,EACL,OAAO,EAGR,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"uniswapbuyexactlyrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAA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@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UniswapBuyExactlyRequest$ = exports.UniswapBuyExactlyRequest$outboundSchema = exports.UniswapBuyExactlyRequest$inboundSchema = exports.
|
|
39
|
+
exports.UniswapBuyExactlyRequest$ = exports.UniswapBuyExactlyRequest$outboundSchema = exports.UniswapBuyExactlyRequest$inboundSchema = exports.UniswapBuyExactlyRequestAmountOut$ = exports.UniswapBuyExactlyRequestAmountOut$outboundSchema = exports.UniswapBuyExactlyRequestAmountOut$inboundSchema = void 0;
|
|
40
40
|
exports.uniswapBuyExactlyRequestAmountOutToJSON = uniswapBuyExactlyRequestAmountOutToJSON;
|
|
41
41
|
exports.uniswapBuyExactlyRequestAmountOutFromJSON = uniswapBuyExactlyRequestAmountOutFromJSON;
|
|
42
|
-
exports.uniswapBuyExactlyRequestAmountInMaximumToJSON = uniswapBuyExactlyRequestAmountInMaximumToJSON;
|
|
43
|
-
exports.uniswapBuyExactlyRequestAmountInMaximumFromJSON = uniswapBuyExactlyRequestAmountInMaximumFromJSON;
|
|
44
42
|
exports.uniswapBuyExactlyRequestToJSON = uniswapBuyExactlyRequestToJSON;
|
|
45
43
|
exports.uniswapBuyExactlyRequestFromJSON = uniswapBuyExactlyRequestFromJSON;
|
|
46
44
|
const z = __importStar(require("zod"));
|
|
@@ -71,33 +69,12 @@ function uniswapBuyExactlyRequestAmountOutFromJSON(jsonString) {
|
|
|
71
69
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UniswapBuyExactlyRequestAmountOut$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UniswapBuyExactlyRequestAmountOut' from JSON`);
|
|
72
70
|
}
|
|
73
71
|
/** @internal */
|
|
74
|
-
exports.UniswapBuyExactlyRequestAmountInMaximum$inboundSchema = z.union([z.number(), z.string()]);
|
|
75
|
-
/** @internal */
|
|
76
|
-
exports.UniswapBuyExactlyRequestAmountInMaximum$outboundSchema = z.union([z.number(), z.string()]);
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
-
*/
|
|
81
|
-
var UniswapBuyExactlyRequestAmountInMaximum$;
|
|
82
|
-
(function (UniswapBuyExactlyRequestAmountInMaximum$) {
|
|
83
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$inboundSchema` instead. */
|
|
84
|
-
UniswapBuyExactlyRequestAmountInMaximum$.inboundSchema = exports.UniswapBuyExactlyRequestAmountInMaximum$inboundSchema;
|
|
85
|
-
/** @deprecated use `UniswapBuyExactlyRequestAmountInMaximum$outboundSchema` instead. */
|
|
86
|
-
UniswapBuyExactlyRequestAmountInMaximum$.outboundSchema = exports.UniswapBuyExactlyRequestAmountInMaximum$outboundSchema;
|
|
87
|
-
})(UniswapBuyExactlyRequestAmountInMaximum$ || (exports.UniswapBuyExactlyRequestAmountInMaximum$ = UniswapBuyExactlyRequestAmountInMaximum$ = {}));
|
|
88
|
-
function uniswapBuyExactlyRequestAmountInMaximumToJSON(uniswapBuyExactlyRequestAmountInMaximum) {
|
|
89
|
-
return JSON.stringify(exports.UniswapBuyExactlyRequestAmountInMaximum$outboundSchema.parse(uniswapBuyExactlyRequestAmountInMaximum));
|
|
90
|
-
}
|
|
91
|
-
function uniswapBuyExactlyRequestAmountInMaximumFromJSON(jsonString) {
|
|
92
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UniswapBuyExactlyRequestAmountInMaximum$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UniswapBuyExactlyRequestAmountInMaximum' from JSON`);
|
|
93
|
-
}
|
|
94
|
-
/** @internal */
|
|
95
72
|
exports.UniswapBuyExactlyRequest$inboundSchema = z.object({
|
|
96
73
|
token_in: tokenenum_js_1.TokenEnum$inboundSchema,
|
|
97
74
|
token_out: tokenenum_js_1.TokenEnum$inboundSchema,
|
|
98
75
|
fee: feeenum_js_1.FeeEnum$inboundSchema,
|
|
99
76
|
amount_out: z.union([z.number(), z.string()]),
|
|
100
|
-
|
|
77
|
+
max_slippage_percent: z.number(),
|
|
101
78
|
wrap_eth: z.boolean().default(false),
|
|
102
79
|
chain: chain_js_1.Chain$inboundSchema,
|
|
103
80
|
sender: z.string(),
|
|
@@ -106,7 +83,7 @@ exports.UniswapBuyExactlyRequest$inboundSchema = z.object({
|
|
|
106
83
|
"token_in": "tokenIn",
|
|
107
84
|
"token_out": "tokenOut",
|
|
108
85
|
"amount_out": "amountOut",
|
|
109
|
-
"
|
|
86
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
110
87
|
"wrap_eth": "wrapEth",
|
|
111
88
|
});
|
|
112
89
|
});
|
|
@@ -116,7 +93,7 @@ exports.UniswapBuyExactlyRequest$outboundSchema = z.object({
|
|
|
116
93
|
tokenOut: tokenenum_js_1.TokenEnum$outboundSchema,
|
|
117
94
|
fee: feeenum_js_1.FeeEnum$outboundSchema,
|
|
118
95
|
amountOut: z.union([z.number(), z.string()]),
|
|
119
|
-
|
|
96
|
+
maxSlippagePercent: z.number(),
|
|
120
97
|
wrapEth: z.boolean().default(false),
|
|
121
98
|
chain: chain_js_1.Chain$outboundSchema,
|
|
122
99
|
sender: z.string(),
|
|
@@ -125,7 +102,7 @@ exports.UniswapBuyExactlyRequest$outboundSchema = z.object({
|
|
|
125
102
|
tokenIn: "token_in",
|
|
126
103
|
tokenOut: "token_out",
|
|
127
104
|
amountOut: "amount_out",
|
|
128
|
-
|
|
105
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
129
106
|
wrapEth: "wrap_eth",
|
|
130
107
|
});
|
|
131
108
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapbuyexactlyrequest.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"uniswapbuyexactlyrequest.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlyrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GH,0FAQC;AAED,8FAQC;AA2ED,wEAMC;AAED,4EAQC;AAtND,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,yCAA8E;AAC9E,6CAIsB;AACtB,iDAIwB;AA2DxB,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKtC,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,sCAAsC,GAI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