@compass-labs/api-sdk 0.1.9 → 0.2.1
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 +2 -2
- package/bin/mcp-server.js +118 -379
- package/bin/mcp-server.js.map +43 -43
- package/dist/commonjs/funcs/aaveV3Rate.d.ts +1 -1
- package/dist/commonjs/funcs/aaveV3Rate.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.js +1 -1
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts +0 -4
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js +2 -11
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js.map +1 -1
- package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +0 -29
- package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallauthorizationrequest.js +1 -27
- package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -1
- package/dist/commonjs/models/operations/aaveavgrate.d.ts +3 -27
- package/dist/commonjs/models/operations/aaveavgrate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveavgrate.js +3 -26
- package/dist/commonjs/models/operations/aaveavgrate.js.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +3 -27
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js +3 -26
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +3 -27
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js +3 -26
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aaverate.d.ts +3 -27
- package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaverate.js +3 -26
- package/dist/commonjs/models/operations/aaverate.js.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts +3 -27
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.js +3 -26
- package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/commonjs/models/operations/aavestdrate.d.ts +3 -27
- package/dist/commonjs/models/operations/aavestdrate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavestdrate.js +3 -26
- package/dist/commonjs/models/operations/aavestdrate.js.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.d.ts +3 -27
- package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.js +3 -26
- package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +3 -27
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js +3 -26
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +3 -27
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js +3 -26
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -27
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +3 -26
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +3 -27
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js +3 -26
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +3 -27
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +3 -26
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/genericens.d.ts +3 -27
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js +3 -26
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +3 -27
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js +3 -26
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts +3 -27
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.js +3 -26
- package/dist/commonjs/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +3 -27
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js +3 -26
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarket.d.ts +3 -27
- package/dist/commonjs/models/operations/morphomarket.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarket.js +3 -26
- package/dist/commonjs/models/operations/morphomarket.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +3 -27
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js +3 -26
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +3 -27
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +3 -26
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphouserposition.d.ts +3 -27
- package/dist/commonjs/models/operations/morphouserposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphouserposition.js +3 -26
- package/dist/commonjs/models/operations/morphouserposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovault.d.ts +3 -27
- package/dist/commonjs/models/operations/morphovault.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovault.js +3 -26
- package/dist/commonjs/models/operations/morphovault.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +3 -27
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js +3 -26
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +3 -27
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +3 -26
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.d.ts +3 -27
- package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.js +3 -26
- package/dist/commonjs/models/operations/pendlemarket.js.map +1 -1
- package/dist/commonjs/models/operations/pendleposition.d.ts +3 -27
- package/dist/commonjs/models/operations/pendleposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/pendleposition.js +3 -26
- package/dist/commonjs/models/operations/pendleposition.js.map +1 -1
- package/dist/commonjs/models/operations/skyposition.d.ts +3 -27
- package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/skyposition.js +3 -26
- package/dist/commonjs/models/operations/skyposition.js.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.d.ts +3 -27
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js +3 -26
- package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.d.ts +3 -27
- package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.js +3 -26
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -27
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js +3 -26
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -27
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js +3 -26
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +3 -27
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js +3 -26
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +3 -27
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js +3 -26
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +3 -27
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js +3 -26
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +1 -1
- package/dist/commonjs/sdk/aavev3.js +1 -1
- package/dist/esm/funcs/aaveV3Rate.d.ts +1 -1
- package/dist/esm/funcs/aaveV3Rate.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/aaveV3Rate.js +1 -1
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts +0 -4
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/batcheduseroperationsrequest.js +3 -12
- package/dist/esm/models/components/batcheduseroperationsrequest.js.map +1 -1
- package/dist/esm/models/components/multicallauthorizationrequest.d.ts +0 -29
- package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -1
- package/dist/esm/models/components/multicallauthorizationrequest.js +0 -24
- package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -1
- package/dist/esm/models/operations/aaveavgrate.d.ts +3 -27
- package/dist/esm/models/operations/aaveavgrate.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveavgrate.js +2 -23
- package/dist/esm/models/operations/aaveavgrate.js.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +3 -27
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.js +2 -23
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +3 -27
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js +2 -23
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aaverate.d.ts +3 -27
- package/dist/esm/models/operations/aaverate.d.ts.map +1 -1
- package/dist/esm/models/operations/aaverate.js +2 -23
- package/dist/esm/models/operations/aaverate.js.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.d.ts +3 -27
- package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.js +2 -23
- package/dist/esm/models/operations/aavereserveoverview.js.map +1 -1
- package/dist/esm/models/operations/aavestdrate.d.ts +3 -27
- package/dist/esm/models/operations/aavestdrate.d.ts.map +1 -1
- package/dist/esm/models/operations/aavestdrate.js +2 -23
- package/dist/esm/models/operations/aavestdrate.js.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.d.ts +3 -27
- package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.js +2 -23
- package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +3 -27
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js +2 -23
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +3 -27
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js +2 -23
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -27
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +2 -23
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +3 -27
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js +2 -23
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +3 -27
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +2 -23
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/genericens.d.ts +3 -27
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js +2 -23
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +3 -27
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js +2 -23
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.d.ts +3 -27
- package/dist/esm/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.js +2 -23
- package/dist/esm/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +3 -27
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js +2 -23
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
- package/dist/esm/models/operations/morphomarket.d.ts +3 -27
- package/dist/esm/models/operations/morphomarket.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarket.js +2 -23
- package/dist/esm/models/operations/morphomarket.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +3 -27
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js +2 -23
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +3 -27
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +2 -23
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphouserposition.d.ts +3 -27
- package/dist/esm/models/operations/morphouserposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphouserposition.js +2 -23
- package/dist/esm/models/operations/morphouserposition.js.map +1 -1
- package/dist/esm/models/operations/morphovault.d.ts +3 -27
- package/dist/esm/models/operations/morphovault.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovault.js +2 -23
- package/dist/esm/models/operations/morphovault.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +3 -27
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js +2 -23
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +3 -27
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +2 -23
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/pendlemarket.d.ts +3 -27
- package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -1
- package/dist/esm/models/operations/pendlemarket.js +2 -23
- package/dist/esm/models/operations/pendlemarket.js.map +1 -1
- package/dist/esm/models/operations/pendleposition.d.ts +3 -27
- package/dist/esm/models/operations/pendleposition.d.ts.map +1 -1
- package/dist/esm/models/operations/pendleposition.js +2 -23
- package/dist/esm/models/operations/pendleposition.js.map +1 -1
- package/dist/esm/models/operations/skyposition.d.ts +3 -27
- package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
- package/dist/esm/models/operations/skyposition.js +2 -23
- package/dist/esm/models/operations/skyposition.js.map +1 -1
- package/dist/esm/models/operations/tokenaddress.d.ts +3 -27
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js +2 -23
- package/dist/esm/models/operations/tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/tokenbalance.d.ts +3 -27
- package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenbalance.js +2 -23
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -27
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js +2 -23
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -27
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js +2 -23
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +3 -27
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js +2 -23
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +3 -27
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js +2 -23
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +3 -27
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js +2 -23
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +1 -1
- package/dist/esm/sdk/aavev3.js +1 -1
- package/docs/sdks/aavev3/README.md +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3Rate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/aaveV3Rate.ts +1 -1
- package/src/models/components/batcheduseroperationsrequest.ts +5 -23
- package/src/models/components/multicallauthorizationrequest.ts +0 -53
- package/src/models/operations/aaveavgrate.ts +5 -58
- package/src/models/operations/aavehistoricaltransactions.ts +5 -60
- package/src/models/operations/aaveliquiditychange.ts +5 -58
- package/src/models/operations/aaverate.ts +5 -54
- package/src/models/operations/aavereserveoverview.ts +5 -58
- package/src/models/operations/aavestdrate.ts +5 -58
- package/src/models/operations/aavetokenprice.ts +5 -58
- package/src/models/operations/aaveuserpositionpertoken.ts +5 -60
- package/src/models/operations/aaveuserpositionsummary.ts +5 -60
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +5 -76
- package/src/models/operations/aerodromeslipstreampoolprice.ts +5 -61
- package/src/models/operations/genericallowance.ts +5 -58
- package/src/models/operations/genericens.ts +5 -56
- package/src/models/operations/genericportfolio.ts +5 -58
- package/src/models/operations/genericsupportedtokens.ts +5 -60
- package/src/models/operations/genericvisualizeportfolio.ts +5 -60
- package/src/models/operations/morphomarket.ts +5 -58
- package/src/models/operations/morphomarketposition.ts +5 -58
- package/src/models/operations/morphomarkets.ts +5 -58
- package/src/models/operations/morphouserposition.ts +5 -58
- package/src/models/operations/morphovault.ts +5 -58
- package/src/models/operations/morphovaultposition.ts +5 -58
- package/src/models/operations/morphovaults.ts +5 -58
- package/src/models/operations/pendlemarket.ts +5 -58
- package/src/models/operations/pendleposition.ts +5 -58
- package/src/models/operations/skyposition.ts +5 -58
- package/src/models/operations/tokenaddress.ts +5 -58
- package/src/models/operations/tokenbalance.ts +5 -58
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +5 -63
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +5 -69
- package/src/models/operations/uniswappoolprice.ts +5 -58
- package/src/models/operations/uniswapquotebuyexactly.ts +5 -60
- package/src/models/operations/uniswapquotesellexactly.ts +5 -60
- package/src/sdk/aavev3.ts +1 -1
package/dist/esm/sdk/aavev3.js
CHANGED
|
@@ -18,7 +18,7 @@ import { ClientSDK } from "../lib/sdks.js";
|
|
|
18
18
|
import { unwrapAsync } from "../types/fp.js";
|
|
19
19
|
export class AaveV3 extends ClientSDK {
|
|
20
20
|
/**
|
|
21
|
-
* Interest Rates
|
|
21
|
+
* Interest Rates
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
24
|
* Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [rate](#rate) - Interest Rates
|
|
8
|
+
* [rate](#rate) - Interest Rates
|
|
9
9
|
* [avgRate](#avgrate) - Interest Rates: time average
|
|
10
10
|
* [stdRate](#stdrate) - Interest Rates: standard deviation
|
|
11
11
|
* [reserveOverview](#reserveoverview) - Reserve overview
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/funcs/aaveV3Rate.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.1
|
|
60
|
+
sdkVersion: "0.2.1",
|
|
61
61
|
genVersion: "2.610.0",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1
|
|
63
|
+
"speakeasy-sdk/typescript 0.2.1 2.610.0 0.0.1 @compass-labs/api-sdk",
|
|
64
64
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$aaveV3Rate: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "aave-v3-rate",
|
|
15
|
-
description: `Interest Rates
|
|
15
|
+
description: `Interest Rates
|
|
16
16
|
|
|
17
17
|
Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
18
18
|
deposits and loans.
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
collectExtraKeys as collectExtraKeys$,
|
|
9
|
-
safeParse,
|
|
10
|
-
} from "../../lib/schemas.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
11
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
9
|
import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
|
|
@@ -30,7 +26,6 @@ export type BatchedUserOperationsRequest = {
|
|
|
30
26
|
* List of possible user operations
|
|
31
27
|
*/
|
|
32
28
|
operations: Array<UserOperation>;
|
|
33
|
-
additionalProperties?: { [k: string]: any };
|
|
34
29
|
};
|
|
35
30
|
|
|
36
31
|
/** @internal */
|
|
@@ -38,20 +33,15 @@ export const BatchedUserOperationsRequest$inboundSchema: z.ZodType<
|
|
|
38
33
|
BatchedUserOperationsRequest,
|
|
39
34
|
z.ZodTypeDef,
|
|
40
35
|
unknown
|
|
41
|
-
> =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}).catchall(z.any()),
|
|
46
|
-
"additionalProperties",
|
|
47
|
-
true,
|
|
48
|
-
);
|
|
36
|
+
> = z.object({
|
|
37
|
+
chain: Chain$inboundSchema,
|
|
38
|
+
operations: z.array(UserOperation$inboundSchema),
|
|
39
|
+
});
|
|
49
40
|
|
|
50
41
|
/** @internal */
|
|
51
42
|
export type BatchedUserOperationsRequest$Outbound = {
|
|
52
43
|
chain: string;
|
|
53
44
|
operations: Array<UserOperation$Outbound>;
|
|
54
|
-
[additionalProperties: string]: unknown;
|
|
55
45
|
};
|
|
56
46
|
|
|
57
47
|
/** @internal */
|
|
@@ -62,14 +52,6 @@ export const BatchedUserOperationsRequest$outboundSchema: z.ZodType<
|
|
|
62
52
|
> = z.object({
|
|
63
53
|
chain: Chain$outboundSchema,
|
|
64
54
|
operations: z.array(UserOperation$outboundSchema),
|
|
65
|
-
additionalProperties: z.record(z.any()),
|
|
66
|
-
}).transform((v) => {
|
|
67
|
-
return {
|
|
68
|
-
...v.additionalProperties,
|
|
69
|
-
...remap$(v, {
|
|
70
|
-
additionalProperties: null,
|
|
71
|
-
}),
|
|
72
|
-
};
|
|
73
55
|
});
|
|
74
56
|
|
|
75
57
|
/**
|
|
@@ -8,11 +8,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* The block number you want to get this data at.
|
|
13
|
-
*/
|
|
14
|
-
export type Block = number | string;
|
|
15
|
-
|
|
16
11
|
/**
|
|
17
12
|
* Request model for getting a multicall authorization.
|
|
18
13
|
*
|
|
@@ -29,57 +24,12 @@ export type MulticallAuthorizationRequest = {
|
|
|
29
24
|
* The chain to use.
|
|
30
25
|
*/
|
|
31
26
|
chain: Chain;
|
|
32
|
-
/**
|
|
33
|
-
* The block number you want to get this data at.
|
|
34
|
-
*/
|
|
35
|
-
block?: number | string | undefined;
|
|
36
27
|
/**
|
|
37
28
|
* The Ethereum address to use for authorization
|
|
38
29
|
*/
|
|
39
30
|
sender: string;
|
|
40
31
|
};
|
|
41
32
|
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const Block$inboundSchema: z.ZodType<Block, z.ZodTypeDef, unknown> = z
|
|
44
|
-
.union([z.number().int(), z.string()]);
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export type Block$Outbound = number | string;
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const Block$outboundSchema: z.ZodType<
|
|
51
|
-
Block$Outbound,
|
|
52
|
-
z.ZodTypeDef,
|
|
53
|
-
Block
|
|
54
|
-
> = z.union([z.number().int(), z.string()]);
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace Block$ {
|
|
61
|
-
/** @deprecated use `Block$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = Block$inboundSchema;
|
|
63
|
-
/** @deprecated use `Block$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema = Block$outboundSchema;
|
|
65
|
-
/** @deprecated use `Block$Outbound` instead. */
|
|
66
|
-
export type Outbound = Block$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function blockToJSON(block: Block): string {
|
|
70
|
-
return JSON.stringify(Block$outboundSchema.parse(block));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function blockFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<Block, SDKValidationError> {
|
|
76
|
-
return safeParse(
|
|
77
|
-
jsonString,
|
|
78
|
-
(x) => Block$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
-
`Failed to parse 'Block' from JSON`,
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
33
|
/** @internal */
|
|
84
34
|
export const MulticallAuthorizationRequest$inboundSchema: z.ZodType<
|
|
85
35
|
MulticallAuthorizationRequest,
|
|
@@ -87,14 +37,12 @@ export const MulticallAuthorizationRequest$inboundSchema: z.ZodType<
|
|
|
87
37
|
unknown
|
|
88
38
|
> = z.object({
|
|
89
39
|
chain: Chain$inboundSchema,
|
|
90
|
-
block: z.union([z.number().int(), z.string()]).optional(),
|
|
91
40
|
sender: z.string(),
|
|
92
41
|
});
|
|
93
42
|
|
|
94
43
|
/** @internal */
|
|
95
44
|
export type MulticallAuthorizationRequest$Outbound = {
|
|
96
45
|
chain: string;
|
|
97
|
-
block?: number | string | undefined;
|
|
98
46
|
sender: string;
|
|
99
47
|
};
|
|
100
48
|
|
|
@@ -105,7 +53,6 @@ export const MulticallAuthorizationRequest$outboundSchema: z.ZodType<
|
|
|
105
53
|
MulticallAuthorizationRequest
|
|
106
54
|
> = z.object({
|
|
107
55
|
chain: Chain$outboundSchema,
|
|
108
|
-
block: z.union([z.number().int(), z.string()]).optional(),
|
|
109
56
|
sender: z.string(),
|
|
110
57
|
});
|
|
111
58
|
|
|
@@ -21,11 +21,6 @@ export const AaveAvgRateChain = {
|
|
|
21
21
|
*/
|
|
22
22
|
export type AaveAvgRateChain = ClosedEnum<typeof AaveAvgRateChain>;
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* The block number you want to get this data at.
|
|
26
|
-
*/
|
|
27
|
-
export type AaveAvgRateBlock = number | string;
|
|
28
|
-
|
|
29
24
|
/**
|
|
30
25
|
* A class representing the token.
|
|
31
26
|
*
|
|
@@ -96,9 +91,9 @@ export type AaveAvgRateRequest = {
|
|
|
96
91
|
*/
|
|
97
92
|
chain?: AaveAvgRateChain | undefined;
|
|
98
93
|
/**
|
|
99
|
-
*
|
|
94
|
+
* Optional block number (defaults to latest).
|
|
100
95
|
*/
|
|
101
|
-
block?: number |
|
|
96
|
+
block?: number | null | undefined;
|
|
102
97
|
/**
|
|
103
98
|
* The symbol of the token..
|
|
104
99
|
*/
|
|
@@ -130,54 +125,6 @@ export namespace AaveAvgRateChain$ {
|
|
|
130
125
|
export const outboundSchema = AaveAvgRateChain$outboundSchema;
|
|
131
126
|
}
|
|
132
127
|
|
|
133
|
-
/** @internal */
|
|
134
|
-
export const AaveAvgRateBlock$inboundSchema: z.ZodType<
|
|
135
|
-
AaveAvgRateBlock,
|
|
136
|
-
z.ZodTypeDef,
|
|
137
|
-
unknown
|
|
138
|
-
> = z.union([z.number().int(), z.string()]);
|
|
139
|
-
|
|
140
|
-
/** @internal */
|
|
141
|
-
export type AaveAvgRateBlock$Outbound = number | string;
|
|
142
|
-
|
|
143
|
-
/** @internal */
|
|
144
|
-
export const AaveAvgRateBlock$outboundSchema: z.ZodType<
|
|
145
|
-
AaveAvgRateBlock$Outbound,
|
|
146
|
-
z.ZodTypeDef,
|
|
147
|
-
AaveAvgRateBlock
|
|
148
|
-
> = z.union([z.number().int(), z.string()]);
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
|
-
*/
|
|
154
|
-
export namespace AaveAvgRateBlock$ {
|
|
155
|
-
/** @deprecated use `AaveAvgRateBlock$inboundSchema` instead. */
|
|
156
|
-
export const inboundSchema = AaveAvgRateBlock$inboundSchema;
|
|
157
|
-
/** @deprecated use `AaveAvgRateBlock$outboundSchema` instead. */
|
|
158
|
-
export const outboundSchema = AaveAvgRateBlock$outboundSchema;
|
|
159
|
-
/** @deprecated use `AaveAvgRateBlock$Outbound` instead. */
|
|
160
|
-
export type Outbound = AaveAvgRateBlock$Outbound;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function aaveAvgRateBlockToJSON(
|
|
164
|
-
aaveAvgRateBlock: AaveAvgRateBlock,
|
|
165
|
-
): string {
|
|
166
|
-
return JSON.stringify(
|
|
167
|
-
AaveAvgRateBlock$outboundSchema.parse(aaveAvgRateBlock),
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export function aaveAvgRateBlockFromJSON(
|
|
172
|
-
jsonString: string,
|
|
173
|
-
): SafeParseResult<AaveAvgRateBlock, SDKValidationError> {
|
|
174
|
-
return safeParse(
|
|
175
|
-
jsonString,
|
|
176
|
-
(x) => AaveAvgRateBlock$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
-
`Failed to parse 'AaveAvgRateBlock' from JSON`,
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
128
|
/** @internal */
|
|
182
129
|
export const AaveAvgRateToken$inboundSchema: z.ZodNativeEnum<
|
|
183
130
|
typeof AaveAvgRateToken
|
|
@@ -206,7 +153,7 @@ export const AaveAvgRateRequest$inboundSchema: z.ZodType<
|
|
|
206
153
|
unknown
|
|
207
154
|
> = z.object({
|
|
208
155
|
chain: AaveAvgRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
209
|
-
block: z.
|
|
156
|
+
block: z.nullable(z.number().int()).optional(),
|
|
210
157
|
token: AaveAvgRateToken$inboundSchema.default("USDC"),
|
|
211
158
|
days: z.number().int().default(7),
|
|
212
159
|
});
|
|
@@ -214,7 +161,7 @@ export const AaveAvgRateRequest$inboundSchema: z.ZodType<
|
|
|
214
161
|
/** @internal */
|
|
215
162
|
export type AaveAvgRateRequest$Outbound = {
|
|
216
163
|
chain: string;
|
|
217
|
-
block?: number |
|
|
164
|
+
block?: number | null | undefined;
|
|
218
165
|
token: string;
|
|
219
166
|
days: number;
|
|
220
167
|
};
|
|
@@ -226,7 +173,7 @@ export const AaveAvgRateRequest$outboundSchema: z.ZodType<
|
|
|
226
173
|
AaveAvgRateRequest
|
|
227
174
|
> = z.object({
|
|
228
175
|
chain: AaveAvgRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
229
|
-
block: z.
|
|
176
|
+
block: z.nullable(z.number().int()).optional(),
|
|
230
177
|
token: AaveAvgRateToken$outboundSchema.default("USDC"),
|
|
231
178
|
days: z.number().int().default(7),
|
|
232
179
|
});
|
|
@@ -24,11 +24,6 @@ export type AaveHistoricalTransactionsChain = ClosedEnum<
|
|
|
24
24
|
typeof AaveHistoricalTransactionsChain
|
|
25
25
|
>;
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* The block number you want to get this data at.
|
|
29
|
-
*/
|
|
30
|
-
export type AaveHistoricalTransactionsBlock = number | string;
|
|
31
|
-
|
|
32
27
|
export type AaveHistoricalTransactionsRequest = {
|
|
33
28
|
/**
|
|
34
29
|
* The offset of the first item to return.
|
|
@@ -43,9 +38,9 @@ export type AaveHistoricalTransactionsRequest = {
|
|
|
43
38
|
*/
|
|
44
39
|
chain?: AaveHistoricalTransactionsChain | undefined;
|
|
45
40
|
/**
|
|
46
|
-
*
|
|
41
|
+
* Optional block number (defaults to latest).
|
|
47
42
|
*/
|
|
48
|
-
block?: number |
|
|
43
|
+
block?: number | null | undefined;
|
|
49
44
|
/**
|
|
50
45
|
* The address of the user to get historical transactions for.
|
|
51
46
|
*/
|
|
@@ -73,56 +68,6 @@ export namespace AaveHistoricalTransactionsChain$ {
|
|
|
73
68
|
export const outboundSchema = AaveHistoricalTransactionsChain$outboundSchema;
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const AaveHistoricalTransactionsBlock$inboundSchema: z.ZodType<
|
|
78
|
-
AaveHistoricalTransactionsBlock,
|
|
79
|
-
z.ZodTypeDef,
|
|
80
|
-
unknown
|
|
81
|
-
> = z.union([z.number().int(), z.string()]);
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type AaveHistoricalTransactionsBlock$Outbound = number | string;
|
|
85
|
-
|
|
86
|
-
/** @internal */
|
|
87
|
-
export const AaveHistoricalTransactionsBlock$outboundSchema: z.ZodType<
|
|
88
|
-
AaveHistoricalTransactionsBlock$Outbound,
|
|
89
|
-
z.ZodTypeDef,
|
|
90
|
-
AaveHistoricalTransactionsBlock
|
|
91
|
-
> = z.union([z.number().int(), z.string()]);
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
96
|
-
*/
|
|
97
|
-
export namespace AaveHistoricalTransactionsBlock$ {
|
|
98
|
-
/** @deprecated use `AaveHistoricalTransactionsBlock$inboundSchema` instead. */
|
|
99
|
-
export const inboundSchema = AaveHistoricalTransactionsBlock$inboundSchema;
|
|
100
|
-
/** @deprecated use `AaveHistoricalTransactionsBlock$outboundSchema` instead. */
|
|
101
|
-
export const outboundSchema = AaveHistoricalTransactionsBlock$outboundSchema;
|
|
102
|
-
/** @deprecated use `AaveHistoricalTransactionsBlock$Outbound` instead. */
|
|
103
|
-
export type Outbound = AaveHistoricalTransactionsBlock$Outbound;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function aaveHistoricalTransactionsBlockToJSON(
|
|
107
|
-
aaveHistoricalTransactionsBlock: AaveHistoricalTransactionsBlock,
|
|
108
|
-
): string {
|
|
109
|
-
return JSON.stringify(
|
|
110
|
-
AaveHistoricalTransactionsBlock$outboundSchema.parse(
|
|
111
|
-
aaveHistoricalTransactionsBlock,
|
|
112
|
-
),
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function aaveHistoricalTransactionsBlockFromJSON(
|
|
117
|
-
jsonString: string,
|
|
118
|
-
): SafeParseResult<AaveHistoricalTransactionsBlock, SDKValidationError> {
|
|
119
|
-
return safeParse(
|
|
120
|
-
jsonString,
|
|
121
|
-
(x) => AaveHistoricalTransactionsBlock$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
-
`Failed to parse 'AaveHistoricalTransactionsBlock' from JSON`,
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
71
|
/** @internal */
|
|
127
72
|
export const AaveHistoricalTransactionsRequest$inboundSchema: z.ZodType<
|
|
128
73
|
AaveHistoricalTransactionsRequest,
|
|
@@ -134,7 +79,7 @@ export const AaveHistoricalTransactionsRequest$inboundSchema: z.ZodType<
|
|
|
134
79
|
chain: AaveHistoricalTransactionsChain$inboundSchema.default(
|
|
135
80
|
"arbitrum:mainnet",
|
|
136
81
|
),
|
|
137
|
-
block: z.
|
|
82
|
+
block: z.nullable(z.number().int()).optional(),
|
|
138
83
|
user_address: z.string().default(
|
|
139
84
|
"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
140
85
|
),
|
|
@@ -149,7 +94,7 @@ export type AaveHistoricalTransactionsRequest$Outbound = {
|
|
|
149
94
|
offset: number;
|
|
150
95
|
limit: number;
|
|
151
96
|
chain: string;
|
|
152
|
-
block?: number |
|
|
97
|
+
block?: number | null | undefined;
|
|
153
98
|
user_address: string;
|
|
154
99
|
};
|
|
155
100
|
|
|
@@ -164,7 +109,7 @@ export const AaveHistoricalTransactionsRequest$outboundSchema: z.ZodType<
|
|
|
164
109
|
chain: AaveHistoricalTransactionsChain$outboundSchema.default(
|
|
165
110
|
"arbitrum:mainnet",
|
|
166
111
|
),
|
|
167
|
-
block: z.
|
|
112
|
+
block: z.nullable(z.number().int()).optional(),
|
|
168
113
|
userAddress: z.string().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
169
114
|
}).transform((v) => {
|
|
170
115
|
return remap$(v, {
|
|
@@ -24,11 +24,6 @@ export type AaveLiquidityChangeChain = ClosedEnum<
|
|
|
24
24
|
typeof AaveLiquidityChangeChain
|
|
25
25
|
>;
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* The block number you want to get this data at.
|
|
29
|
-
*/
|
|
30
|
-
export type AaveLiquidityChangeBlock = number | string;
|
|
31
|
-
|
|
32
27
|
/**
|
|
33
28
|
* A class representing the token.
|
|
34
29
|
*
|
|
@@ -101,9 +96,9 @@ export type AaveLiquidityChangeRequest = {
|
|
|
101
96
|
*/
|
|
102
97
|
chain?: AaveLiquidityChangeChain | undefined;
|
|
103
98
|
/**
|
|
104
|
-
*
|
|
99
|
+
* Optional block number (defaults to latest).
|
|
105
100
|
*/
|
|
106
|
-
block?: number |
|
|
101
|
+
block?: number | null | undefined;
|
|
107
102
|
/**
|
|
108
103
|
* The symbol of the asset to get liquidity change for..
|
|
109
104
|
*/
|
|
@@ -139,54 +134,6 @@ export namespace AaveLiquidityChangeChain$ {
|
|
|
139
134
|
export const outboundSchema = AaveLiquidityChangeChain$outboundSchema;
|
|
140
135
|
}
|
|
141
136
|
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const AaveLiquidityChangeBlock$inboundSchema: z.ZodType<
|
|
144
|
-
AaveLiquidityChangeBlock,
|
|
145
|
-
z.ZodTypeDef,
|
|
146
|
-
unknown
|
|
147
|
-
> = z.union([z.number().int(), z.string()]);
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export type AaveLiquidityChangeBlock$Outbound = number | string;
|
|
151
|
-
|
|
152
|
-
/** @internal */
|
|
153
|
-
export const AaveLiquidityChangeBlock$outboundSchema: z.ZodType<
|
|
154
|
-
AaveLiquidityChangeBlock$Outbound,
|
|
155
|
-
z.ZodTypeDef,
|
|
156
|
-
AaveLiquidityChangeBlock
|
|
157
|
-
> = z.union([z.number().int(), z.string()]);
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @internal
|
|
161
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
162
|
-
*/
|
|
163
|
-
export namespace AaveLiquidityChangeBlock$ {
|
|
164
|
-
/** @deprecated use `AaveLiquidityChangeBlock$inboundSchema` instead. */
|
|
165
|
-
export const inboundSchema = AaveLiquidityChangeBlock$inboundSchema;
|
|
166
|
-
/** @deprecated use `AaveLiquidityChangeBlock$outboundSchema` instead. */
|
|
167
|
-
export const outboundSchema = AaveLiquidityChangeBlock$outboundSchema;
|
|
168
|
-
/** @deprecated use `AaveLiquidityChangeBlock$Outbound` instead. */
|
|
169
|
-
export type Outbound = AaveLiquidityChangeBlock$Outbound;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export function aaveLiquidityChangeBlockToJSON(
|
|
173
|
-
aaveLiquidityChangeBlock: AaveLiquidityChangeBlock,
|
|
174
|
-
): string {
|
|
175
|
-
return JSON.stringify(
|
|
176
|
-
AaveLiquidityChangeBlock$outboundSchema.parse(aaveLiquidityChangeBlock),
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export function aaveLiquidityChangeBlockFromJSON(
|
|
181
|
-
jsonString: string,
|
|
182
|
-
): SafeParseResult<AaveLiquidityChangeBlock, SDKValidationError> {
|
|
183
|
-
return safeParse(
|
|
184
|
-
jsonString,
|
|
185
|
-
(x) => AaveLiquidityChangeBlock$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
-
`Failed to parse 'AaveLiquidityChangeBlock' from JSON`,
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
137
|
/** @internal */
|
|
191
138
|
export const AaveLiquidityChangeToken$inboundSchema: z.ZodNativeEnum<
|
|
192
139
|
typeof AaveLiquidityChangeToken
|
|
@@ -215,7 +162,7 @@ export const AaveLiquidityChangeRequest$inboundSchema: z.ZodType<
|
|
|
215
162
|
unknown
|
|
216
163
|
> = z.object({
|
|
217
164
|
chain: AaveLiquidityChangeChain$inboundSchema.default("arbitrum:mainnet"),
|
|
218
|
-
block: z.
|
|
165
|
+
block: z.nullable(z.number().int()).optional(),
|
|
219
166
|
token: AaveLiquidityChangeToken$inboundSchema.default("USDC"),
|
|
220
167
|
start_block: z.number().int().default(0),
|
|
221
168
|
end_block: z.number().int().default(319407231),
|
|
@@ -229,7 +176,7 @@ export const AaveLiquidityChangeRequest$inboundSchema: z.ZodType<
|
|
|
229
176
|
/** @internal */
|
|
230
177
|
export type AaveLiquidityChangeRequest$Outbound = {
|
|
231
178
|
chain: string;
|
|
232
|
-
block?: number |
|
|
179
|
+
block?: number | null | undefined;
|
|
233
180
|
token: string;
|
|
234
181
|
start_block: number;
|
|
235
182
|
end_block: number;
|
|
@@ -242,7 +189,7 @@ export const AaveLiquidityChangeRequest$outboundSchema: z.ZodType<
|
|
|
242
189
|
AaveLiquidityChangeRequest
|
|
243
190
|
> = z.object({
|
|
244
191
|
chain: AaveLiquidityChangeChain$outboundSchema.default("arbitrum:mainnet"),
|
|
245
|
-
block: z.
|
|
192
|
+
block: z.nullable(z.number().int()).optional(),
|
|
246
193
|
token: AaveLiquidityChangeToken$outboundSchema.default("USDC"),
|
|
247
194
|
startBlock: z.number().int().default(0),
|
|
248
195
|
endBlock: z.number().int().default(319407231),
|
|
@@ -21,11 +21,6 @@ export const AaveRateChain = {
|
|
|
21
21
|
*/
|
|
22
22
|
export type AaveRateChain = ClosedEnum<typeof AaveRateChain>;
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* The block number you want to get this data at.
|
|
26
|
-
*/
|
|
27
|
-
export type AaveRateBlock = number | string;
|
|
28
|
-
|
|
29
24
|
/**
|
|
30
25
|
* A class representing the token.
|
|
31
26
|
*
|
|
@@ -96,9 +91,9 @@ export type AaveRateRequest = {
|
|
|
96
91
|
*/
|
|
97
92
|
chain?: AaveRateChain | undefined;
|
|
98
93
|
/**
|
|
99
|
-
*
|
|
94
|
+
* Optional block number (defaults to latest).
|
|
100
95
|
*/
|
|
101
|
-
block?: number |
|
|
96
|
+
block?: number | null | undefined;
|
|
102
97
|
/**
|
|
103
98
|
* The symbol of the asset to fetch the users' position on..
|
|
104
99
|
*/
|
|
@@ -126,50 +121,6 @@ export namespace AaveRateChain$ {
|
|
|
126
121
|
export const outboundSchema = AaveRateChain$outboundSchema;
|
|
127
122
|
}
|
|
128
123
|
|
|
129
|
-
/** @internal */
|
|
130
|
-
export const AaveRateBlock$inboundSchema: z.ZodType<
|
|
131
|
-
AaveRateBlock,
|
|
132
|
-
z.ZodTypeDef,
|
|
133
|
-
unknown
|
|
134
|
-
> = z.union([z.number().int(), z.string()]);
|
|
135
|
-
|
|
136
|
-
/** @internal */
|
|
137
|
-
export type AaveRateBlock$Outbound = number | string;
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const AaveRateBlock$outboundSchema: z.ZodType<
|
|
141
|
-
AaveRateBlock$Outbound,
|
|
142
|
-
z.ZodTypeDef,
|
|
143
|
-
AaveRateBlock
|
|
144
|
-
> = z.union([z.number().int(), z.string()]);
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
148
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
149
|
-
*/
|
|
150
|
-
export namespace AaveRateBlock$ {
|
|
151
|
-
/** @deprecated use `AaveRateBlock$inboundSchema` instead. */
|
|
152
|
-
export const inboundSchema = AaveRateBlock$inboundSchema;
|
|
153
|
-
/** @deprecated use `AaveRateBlock$outboundSchema` instead. */
|
|
154
|
-
export const outboundSchema = AaveRateBlock$outboundSchema;
|
|
155
|
-
/** @deprecated use `AaveRateBlock$Outbound` instead. */
|
|
156
|
-
export type Outbound = AaveRateBlock$Outbound;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function aaveRateBlockToJSON(aaveRateBlock: AaveRateBlock): string {
|
|
160
|
-
return JSON.stringify(AaveRateBlock$outboundSchema.parse(aaveRateBlock));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function aaveRateBlockFromJSON(
|
|
164
|
-
jsonString: string,
|
|
165
|
-
): SafeParseResult<AaveRateBlock, SDKValidationError> {
|
|
166
|
-
return safeParse(
|
|
167
|
-
jsonString,
|
|
168
|
-
(x) => AaveRateBlock$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
-
`Failed to parse 'AaveRateBlock' from JSON`,
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
124
|
/** @internal */
|
|
174
125
|
export const AaveRateToken$inboundSchema: z.ZodNativeEnum<
|
|
175
126
|
typeof AaveRateToken
|
|
@@ -198,14 +149,14 @@ export const AaveRateRequest$inboundSchema: z.ZodType<
|
|
|
198
149
|
unknown
|
|
199
150
|
> = z.object({
|
|
200
151
|
chain: AaveRateChain$inboundSchema.default("arbitrum:mainnet"),
|
|
201
|
-
block: z.
|
|
152
|
+
block: z.nullable(z.number().int()).optional(),
|
|
202
153
|
token: AaveRateToken$inboundSchema.default("USDC"),
|
|
203
154
|
});
|
|
204
155
|
|
|
205
156
|
/** @internal */
|
|
206
157
|
export type AaveRateRequest$Outbound = {
|
|
207
158
|
chain: string;
|
|
208
|
-
block?: number |
|
|
159
|
+
block?: number | null | undefined;
|
|
209
160
|
token: string;
|
|
210
161
|
};
|
|
211
162
|
|
|
@@ -216,7 +167,7 @@ export const AaveRateRequest$outboundSchema: z.ZodType<
|
|
|
216
167
|
AaveRateRequest
|
|
217
168
|
> = z.object({
|
|
218
169
|
chain: AaveRateChain$outboundSchema.default("arbitrum:mainnet"),
|
|
219
|
-
block: z.
|
|
170
|
+
block: z.nullable(z.number().int()).optional(),
|
|
220
171
|
token: AaveRateToken$outboundSchema.default("USDC"),
|
|
221
172
|
});
|
|
222
173
|
|