@compass-labs/api-sdk 0.0.23 → 0.0.25
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 -0
- package/bin/mcp-server.js +720 -418
- package/bin/mcp-server.js.map +33 -34
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +27 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +126 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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/transactionBatchingAaveLoop.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/{models/components/action.js → mcp-server/tools/transactionBatchingAaveLoop.js} +35 -27
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts +92 -5
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js +121 -6
- package/dist/commonjs/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
- package/dist/commonjs/models/components/aavelooprequest.d.ts +109 -0
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavelooprequest.js +132 -0
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -0
- package/dist/commonjs/models/components/borrow.d.ts +69 -12
- package/dist/commonjs/models/components/borrow.d.ts.map +1 -1
- package/dist/commonjs/models/components/borrow.js +39 -13
- package/dist/commonjs/models/components/borrow.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -4
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -4
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/liquidationcall.d.ts +32 -14
- package/dist/commonjs/models/components/liquidationcall.d.ts.map +1 -1
- package/dist/commonjs/models/components/liquidationcall.js +23 -14
- package/dist/commonjs/models/components/liquidationcall.js.map +1 -1
- package/dist/commonjs/models/components/morphoborrowrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphoborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphoborrowrequest.js +22 -4
- package/dist/commonjs/models/components/morphoborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphodepositrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphodepositrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphodepositrequest.js +22 -4
- package/dist/commonjs/models/components/morphodepositrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphorepayrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphorepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphorepayrequest.js +22 -4
- package/dist/commonjs/models/components/morphorepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.js +22 -4
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/morphosupplycollateralrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphosupplycollateralrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphosupplycollateralrequest.js +22 -4
- package/dist/commonjs/models/components/morphosupplycollateralrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.js +22 -4
- package/dist/commonjs/models/components/morphowithdrawcollateralrequest.js.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawrequest.d.ts +27 -5
- package/dist/commonjs/models/components/morphowithdrawrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/morphowithdrawrequest.js +22 -4
- package/dist/commonjs/models/components/morphowithdrawrequest.js.map +1 -1
- package/dist/commonjs/models/components/redeemunderlying.d.ts +32 -4
- package/dist/commonjs/models/components/redeemunderlying.d.ts.map +1 -1
- package/dist/commonjs/models/components/redeemunderlying.js +14 -4
- package/dist/commonjs/models/components/redeemunderlying.js.map +1 -1
- package/dist/commonjs/models/components/repay.d.ts +29 -4
- package/dist/commonjs/models/components/repay.d.ts.map +1 -1
- package/dist/commonjs/models/components/repay.js +14 -4
- package/dist/commonjs/models/components/repay.js.map +1 -1
- package/dist/commonjs/models/components/reserve.d.ts +25 -3
- package/dist/commonjs/models/components/reserve.d.ts.map +1 -1
- package/dist/commonjs/models/components/reserve.js +9 -4
- package/dist/commonjs/models/components/reserve.js.map +1 -1
- package/dist/commonjs/models/components/supply.d.ts +32 -4
- package/dist/commonjs/models/components/supply.d.ts.map +1 -1
- package/dist/commonjs/models/components/supply.js +14 -4
- package/dist/commonjs/models/components/supply.js.map +1 -1
- package/dist/commonjs/models/components/swapborrowrate.d.ts +27 -8
- package/dist/commonjs/models/components/swapborrowrate.d.ts.map +1 -1
- package/dist/commonjs/models/components/swapborrowrate.js +18 -8
- package/dist/commonjs/models/components/swapborrowrate.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +15 -15
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +18 -20
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +15 -15
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +18 -20
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.d.ts +26 -4
- package/dist/commonjs/models/components/usageascollateral.d.ts.map +1 -1
- package/dist/commonjs/models/components/usageascollateral.js +14 -4
- package/dist/commonjs/models/components/usageascollateral.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.d.ts +3 -15
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js +1 -5
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +3 -15
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +1 -5
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +3 -15
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js +1 -5
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +5 -17
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +3 -7
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.d.ts +17 -0
- package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.js +20 -0
- package/dist/commonjs/sdk/transactionbatching.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +27 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js +90 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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/transactionBatchingAaveLoop.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +38 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts +92 -5
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js +118 -5
- package/dist/esm/models/components/aavehistoricaltransactionsresponse.js.map +1 -1
- package/dist/esm/models/components/aavelooprequest.d.ts +109 -0
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -0
- package/dist/esm/models/components/aavelooprequest.js +92 -0
- package/dist/esm/models/components/aavelooprequest.js.map +1 -0
- package/dist/esm/models/components/borrow.d.ts +69 -12
- package/dist/esm/models/components/borrow.d.ts.map +1 -1
- package/dist/esm/models/components/borrow.js +38 -12
- package/dist/esm/models/components/borrow.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -4
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -4
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/liquidationcall.d.ts +32 -14
- package/dist/esm/models/components/liquidationcall.d.ts.map +1 -1
- package/dist/esm/models/components/liquidationcall.js +23 -14
- package/dist/esm/models/components/liquidationcall.js.map +1 -1
- package/dist/esm/models/components/morphoborrowrequest.d.ts +27 -5
- package/dist/esm/models/components/morphoborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphoborrowrequest.js +21 -3
- package/dist/esm/models/components/morphoborrowrequest.js.map +1 -1
- package/dist/esm/models/components/morphodepositrequest.d.ts +27 -5
- package/dist/esm/models/components/morphodepositrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphodepositrequest.js +21 -3
- package/dist/esm/models/components/morphodepositrequest.js.map +1 -1
- package/dist/esm/models/components/morphorepayrequest.d.ts +27 -5
- package/dist/esm/models/components/morphorepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphorepayrequest.js +21 -3
- package/dist/esm/models/components/morphorepayrequest.js.map +1 -1
- package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts +27 -5
- package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphosetvaultallowancerequest.js +21 -3
- package/dist/esm/models/components/morphosetvaultallowancerequest.js.map +1 -1
- package/dist/esm/models/components/morphosupplycollateralrequest.d.ts +27 -5
- package/dist/esm/models/components/morphosupplycollateralrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphosupplycollateralrequest.js +21 -3
- package/dist/esm/models/components/morphosupplycollateralrequest.js.map +1 -1
- package/dist/esm/models/components/morphowithdrawcollateralrequest.d.ts +27 -5
- package/dist/esm/models/components/morphowithdrawcollateralrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphowithdrawcollateralrequest.js +21 -3
- package/dist/esm/models/components/morphowithdrawcollateralrequest.js.map +1 -1
- package/dist/esm/models/components/morphowithdrawrequest.d.ts +27 -5
- package/dist/esm/models/components/morphowithdrawrequest.d.ts.map +1 -1
- package/dist/esm/models/components/morphowithdrawrequest.js +21 -3
- package/dist/esm/models/components/morphowithdrawrequest.js.map +1 -1
- package/dist/esm/models/components/redeemunderlying.d.ts +32 -4
- package/dist/esm/models/components/redeemunderlying.d.ts.map +1 -1
- package/dist/esm/models/components/redeemunderlying.js +14 -4
- package/dist/esm/models/components/redeemunderlying.js.map +1 -1
- package/dist/esm/models/components/repay.d.ts +29 -4
- package/dist/esm/models/components/repay.d.ts.map +1 -1
- package/dist/esm/models/components/repay.js +14 -4
- package/dist/esm/models/components/repay.js.map +1 -1
- package/dist/esm/models/components/reserve.d.ts +25 -3
- package/dist/esm/models/components/reserve.d.ts.map +1 -1
- package/dist/esm/models/components/reserve.js +9 -4
- package/dist/esm/models/components/reserve.js.map +1 -1
- package/dist/esm/models/components/supply.d.ts +32 -4
- package/dist/esm/models/components/supply.d.ts.map +1 -1
- package/dist/esm/models/components/supply.js +14 -4
- package/dist/esm/models/components/supply.js.map +1 -1
- package/dist/esm/models/components/swapborrowrate.d.ts +27 -8
- package/dist/esm/models/components/swapborrowrate.d.ts.map +1 -1
- package/dist/esm/models/components/swapborrowrate.js +18 -8
- package/dist/esm/models/components/swapborrowrate.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +15 -15
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.js +15 -17
- package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +15 -15
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js +15 -17
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/esm/models/components/usageascollateral.d.ts +26 -4
- package/dist/esm/models/components/usageascollateral.d.ts.map +1 -1
- package/dist/esm/models/components/usageascollateral.js +14 -4
- package/dist/esm/models/components/usageascollateral.js.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.d.ts +3 -15
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js +1 -5
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +3 -15
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +1 -5
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +3 -15
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js +1 -5
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +5 -17
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +3 -7
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/sdk/transactionbatching.d.ts +17 -0
- package/dist/esm/sdk/transactionbatching.d.ts.map +1 -1
- package/dist/esm/sdk/transactionbatching.js +20 -0
- package/dist/esm/sdk/transactionbatching.js.map +1 -1
- package/docs/sdks/morpho/README.md +8 -18
- package/docs/sdks/transactionbatching/README.md +120 -2
- package/docs/sdks/uniswapv3/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/transactionBatchingAaveLoop.ts +173 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +47 -0
- package/src/models/components/aavehistoricaltransactionsresponse.ts +275 -13
- package/src/models/components/aavelooprequest.ts +219 -0
- package/src/models/components/borrow.ts +87 -24
- package/src/models/components/index.ts +1 -4
- package/src/models/components/liquidationcall.ts +58 -35
- package/src/models/components/morphoborrowrequest.ts +33 -7
- package/src/models/components/morphodepositrequest.ts +33 -7
- package/src/models/components/morphorepayrequest.ts +33 -7
- package/src/models/components/morphosetvaultallowancerequest.ts +35 -7
- package/src/models/components/morphosupplycollateralrequest.ts +34 -7
- package/src/models/components/morphowithdrawcollateralrequest.ts +36 -7
- package/src/models/components/morphowithdrawrequest.ts +33 -7
- package/src/models/components/redeemunderlying.ts +46 -8
- package/src/models/components/repay.ts +43 -8
- package/src/models/components/reserve.ts +37 -7
- package/src/models/components/supply.ts +46 -8
- package/src/models/components/swapborrowrate.ts +45 -16
- package/src/models/components/uniswapbuyexactlyparams.ts +26 -28
- package/src/models/components/uniswapbuyexactlyrequest.ts +26 -29
- package/src/models/components/usageascollateral.ts +40 -8
- package/src/models/operations/morphomarketposition.ts +1 -11
- package/src/models/operations/morphomarkets.ts +1 -11
- package/src/models/operations/morphovaultposition.ts +1 -11
- package/src/models/operations/morphovaults.ts +5 -15
- package/src/sdk/transactionbatching.ts +28 -0
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts +0 -57
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.d.ts.map +0 -1
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.js +0 -97
- package/dist/commonjs/models/components/aavehistoricaltransactionbase.js.map +0 -1
- package/dist/commonjs/models/components/action.d.ts +0 -43
- package/dist/commonjs/models/components/action.d.ts.map +0 -1
- package/dist/commonjs/models/components/action.js.map +0 -1
- package/dist/commonjs/models/components/collateralreserve.d.ts +0 -31
- package/dist/commonjs/models/components/collateralreserve.d.ts.map +0 -1
- package/dist/commonjs/models/components/collateralreserve.js +0 -71
- package/dist/commonjs/models/components/collateralreserve.js.map +0 -1
- package/dist/commonjs/models/components/principalreserve.d.ts +0 -31
- package/dist/commonjs/models/components/principalreserve.d.ts.map +0 -1
- package/dist/commonjs/models/components/principalreserve.js +0 -71
- package/dist/commonjs/models/components/principalreserve.js.map +0 -1
- package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts +0 -57
- package/dist/esm/models/components/aavehistoricaltransactionbase.d.ts.map +0 -1
- package/dist/esm/models/components/aavehistoricaltransactionbase.js +0 -59
- package/dist/esm/models/components/aavehistoricaltransactionbase.js.map +0 -1
- package/dist/esm/models/components/action.d.ts +0 -43
- package/dist/esm/models/components/action.d.ts.map +0 -1
- package/dist/esm/models/components/action.js +0 -30
- package/dist/esm/models/components/action.js.map +0 -1
- package/dist/esm/models/components/collateralreserve.d.ts +0 -31
- package/dist/esm/models/components/collateralreserve.d.ts.map +0 -1
- package/dist/esm/models/components/collateralreserve.js +0 -33
- package/dist/esm/models/components/collateralreserve.js.map +0 -1
- package/dist/esm/models/components/principalreserve.d.ts +0 -31
- package/dist/esm/models/components/principalreserve.d.ts.map +0 -1
- package/dist/esm/models/components/principalreserve.js +0 -33
- package/dist/esm/models/components/principalreserve.js.map +0 -1
- package/src/models/components/aavehistoricaltransactionbase.ts +0 -155
- package/src/models/components/action.ts +0 -36
- package/src/models/components/collateralreserve.ts +0 -70
- package/src/models/components/principalreserve.ts +0 -70
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
Action,
|
|
11
|
-
Action$inboundSchema,
|
|
12
|
-
Action$outboundSchema,
|
|
13
|
-
} from "./action.js";
|
|
14
|
-
import {
|
|
15
|
-
Borrow,
|
|
16
|
-
Borrow$inboundSchema,
|
|
17
|
-
Borrow$Outbound,
|
|
18
|
-
Borrow$outboundSchema,
|
|
19
|
-
} from "./borrow.js";
|
|
20
|
-
import {
|
|
21
|
-
LiquidationCall,
|
|
22
|
-
LiquidationCall$inboundSchema,
|
|
23
|
-
LiquidationCall$Outbound,
|
|
24
|
-
LiquidationCall$outboundSchema,
|
|
25
|
-
} from "./liquidationcall.js";
|
|
26
|
-
import {
|
|
27
|
-
RedeemUnderlying,
|
|
28
|
-
RedeemUnderlying$inboundSchema,
|
|
29
|
-
RedeemUnderlying$Outbound,
|
|
30
|
-
RedeemUnderlying$outboundSchema,
|
|
31
|
-
} from "./redeemunderlying.js";
|
|
32
|
-
import {
|
|
33
|
-
Repay,
|
|
34
|
-
Repay$inboundSchema,
|
|
35
|
-
Repay$Outbound,
|
|
36
|
-
Repay$outboundSchema,
|
|
37
|
-
} from "./repay.js";
|
|
38
|
-
import {
|
|
39
|
-
Supply,
|
|
40
|
-
Supply$inboundSchema,
|
|
41
|
-
Supply$Outbound,
|
|
42
|
-
Supply$outboundSchema,
|
|
43
|
-
} from "./supply.js";
|
|
44
|
-
import {
|
|
45
|
-
SwapBorrowRate,
|
|
46
|
-
SwapBorrowRate$inboundSchema,
|
|
47
|
-
SwapBorrowRate$Outbound,
|
|
48
|
-
SwapBorrowRate$outboundSchema,
|
|
49
|
-
} from "./swapborrowrate.js";
|
|
50
|
-
import {
|
|
51
|
-
UsageAsCollateral,
|
|
52
|
-
UsageAsCollateral$inboundSchema,
|
|
53
|
-
UsageAsCollateral$Outbound,
|
|
54
|
-
UsageAsCollateral$outboundSchema,
|
|
55
|
-
} from "./usageascollateral.js";
|
|
56
|
-
|
|
57
|
-
export type AaveHistoricalTransactionBase = {
|
|
58
|
-
id: string;
|
|
59
|
-
timestamp: number;
|
|
60
|
-
txHash: string;
|
|
61
|
-
action: Action;
|
|
62
|
-
supply?: Supply | null | undefined;
|
|
63
|
-
redeemUnderlying?: RedeemUnderlying | null | undefined;
|
|
64
|
-
borrow?: Borrow | null | undefined;
|
|
65
|
-
usageAsCollateral?: UsageAsCollateral | null | undefined;
|
|
66
|
-
repay?: Repay | null | undefined;
|
|
67
|
-
swapBorrowRate?: SwapBorrowRate | null | undefined;
|
|
68
|
-
liquidationCall?: LiquidationCall | null | undefined;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const AaveHistoricalTransactionBase$inboundSchema: z.ZodType<
|
|
73
|
-
AaveHistoricalTransactionBase,
|
|
74
|
-
z.ZodTypeDef,
|
|
75
|
-
unknown
|
|
76
|
-
> = z.object({
|
|
77
|
-
id: z.string(),
|
|
78
|
-
timestamp: z.number().int(),
|
|
79
|
-
txHash: z.string(),
|
|
80
|
-
action: Action$inboundSchema,
|
|
81
|
-
supply: z.nullable(Supply$inboundSchema).optional(),
|
|
82
|
-
redeemUnderlying: z.nullable(RedeemUnderlying$inboundSchema).optional(),
|
|
83
|
-
borrow: z.nullable(Borrow$inboundSchema).optional(),
|
|
84
|
-
usageAsCollateral: z.nullable(UsageAsCollateral$inboundSchema).optional(),
|
|
85
|
-
repay: z.nullable(Repay$inboundSchema).optional(),
|
|
86
|
-
swapBorrowRate: z.nullable(SwapBorrowRate$inboundSchema).optional(),
|
|
87
|
-
liquidationCall: z.nullable(LiquidationCall$inboundSchema).optional(),
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type AaveHistoricalTransactionBase$Outbound = {
|
|
92
|
-
id: string;
|
|
93
|
-
timestamp: number;
|
|
94
|
-
txHash: string;
|
|
95
|
-
action: string;
|
|
96
|
-
supply?: Supply$Outbound | null | undefined;
|
|
97
|
-
redeemUnderlying?: RedeemUnderlying$Outbound | null | undefined;
|
|
98
|
-
borrow?: Borrow$Outbound | null | undefined;
|
|
99
|
-
usageAsCollateral?: UsageAsCollateral$Outbound | null | undefined;
|
|
100
|
-
repay?: Repay$Outbound | null | undefined;
|
|
101
|
-
swapBorrowRate?: SwapBorrowRate$Outbound | null | undefined;
|
|
102
|
-
liquidationCall?: LiquidationCall$Outbound | null | undefined;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const AaveHistoricalTransactionBase$outboundSchema: z.ZodType<
|
|
107
|
-
AaveHistoricalTransactionBase$Outbound,
|
|
108
|
-
z.ZodTypeDef,
|
|
109
|
-
AaveHistoricalTransactionBase
|
|
110
|
-
> = z.object({
|
|
111
|
-
id: z.string(),
|
|
112
|
-
timestamp: z.number().int(),
|
|
113
|
-
txHash: z.string(),
|
|
114
|
-
action: Action$outboundSchema,
|
|
115
|
-
supply: z.nullable(Supply$outboundSchema).optional(),
|
|
116
|
-
redeemUnderlying: z.nullable(RedeemUnderlying$outboundSchema).optional(),
|
|
117
|
-
borrow: z.nullable(Borrow$outboundSchema).optional(),
|
|
118
|
-
usageAsCollateral: z.nullable(UsageAsCollateral$outboundSchema).optional(),
|
|
119
|
-
repay: z.nullable(Repay$outboundSchema).optional(),
|
|
120
|
-
swapBorrowRate: z.nullable(SwapBorrowRate$outboundSchema).optional(),
|
|
121
|
-
liquidationCall: z.nullable(LiquidationCall$outboundSchema).optional(),
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
-
*/
|
|
128
|
-
export namespace AaveHistoricalTransactionBase$ {
|
|
129
|
-
/** @deprecated use `AaveHistoricalTransactionBase$inboundSchema` instead. */
|
|
130
|
-
export const inboundSchema = AaveHistoricalTransactionBase$inboundSchema;
|
|
131
|
-
/** @deprecated use `AaveHistoricalTransactionBase$outboundSchema` instead. */
|
|
132
|
-
export const outboundSchema = AaveHistoricalTransactionBase$outboundSchema;
|
|
133
|
-
/** @deprecated use `AaveHistoricalTransactionBase$Outbound` instead. */
|
|
134
|
-
export type Outbound = AaveHistoricalTransactionBase$Outbound;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export function aaveHistoricalTransactionBaseToJSON(
|
|
138
|
-
aaveHistoricalTransactionBase: AaveHistoricalTransactionBase,
|
|
139
|
-
): string {
|
|
140
|
-
return JSON.stringify(
|
|
141
|
-
AaveHistoricalTransactionBase$outboundSchema.parse(
|
|
142
|
-
aaveHistoricalTransactionBase,
|
|
143
|
-
),
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function aaveHistoricalTransactionBaseFromJSON(
|
|
148
|
-
jsonString: string,
|
|
149
|
-
): SafeParseResult<AaveHistoricalTransactionBase, SDKValidationError> {
|
|
150
|
-
return safeParse(
|
|
151
|
-
jsonString,
|
|
152
|
-
(x) => AaveHistoricalTransactionBase$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
-
`Failed to parse 'AaveHistoricalTransactionBase' from JSON`,
|
|
154
|
-
);
|
|
155
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const Action = {
|
|
9
|
-
Supply: "supply",
|
|
10
|
-
RedeemUnderlying: "redeemUnderlying",
|
|
11
|
-
Borrow: "borrow",
|
|
12
|
-
UsageAsCollateral: "usageAsCollateral",
|
|
13
|
-
Repay: "repay",
|
|
14
|
-
SwapBorrowRate: "swapBorrowRate",
|
|
15
|
-
LiquidationCall: "liquidationCall",
|
|
16
|
-
} as const;
|
|
17
|
-
export type Action = ClosedEnum<typeof Action>;
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
|
|
21
|
-
.nativeEnum(Action);
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const Action$outboundSchema: z.ZodNativeEnum<typeof Action> =
|
|
25
|
-
Action$inboundSchema;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
-
*/
|
|
31
|
-
export namespace Action$ {
|
|
32
|
-
/** @deprecated use `Action$inboundSchema` instead. */
|
|
33
|
-
export const inboundSchema = Action$inboundSchema;
|
|
34
|
-
/** @deprecated use `Action$outboundSchema` instead. */
|
|
35
|
-
export const outboundSchema = Action$outboundSchema;
|
|
36
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type CollateralReserve = {
|
|
11
|
-
symbol: string;
|
|
12
|
-
decimals: number;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const CollateralReserve$inboundSchema: z.ZodType<
|
|
17
|
-
CollateralReserve,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
symbol: z.string(),
|
|
22
|
-
decimals: z.number().int(),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export type CollateralReserve$Outbound = {
|
|
27
|
-
symbol: string;
|
|
28
|
-
decimals: number;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const CollateralReserve$outboundSchema: z.ZodType<
|
|
33
|
-
CollateralReserve$Outbound,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
CollateralReserve
|
|
36
|
-
> = z.object({
|
|
37
|
-
symbol: z.string(),
|
|
38
|
-
decimals: z.number().int(),
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace CollateralReserve$ {
|
|
46
|
-
/** @deprecated use `CollateralReserve$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = CollateralReserve$inboundSchema;
|
|
48
|
-
/** @deprecated use `CollateralReserve$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = CollateralReserve$outboundSchema;
|
|
50
|
-
/** @deprecated use `CollateralReserve$Outbound` instead. */
|
|
51
|
-
export type Outbound = CollateralReserve$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function collateralReserveToJSON(
|
|
55
|
-
collateralReserve: CollateralReserve,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
CollateralReserve$outboundSchema.parse(collateralReserve),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function collateralReserveFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<CollateralReserve, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => CollateralReserve$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'CollateralReserve' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type PrincipalReserve = {
|
|
11
|
-
symbol: string;
|
|
12
|
-
decimals: number;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const PrincipalReserve$inboundSchema: z.ZodType<
|
|
17
|
-
PrincipalReserve,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
symbol: z.string(),
|
|
22
|
-
decimals: z.number().int(),
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export type PrincipalReserve$Outbound = {
|
|
27
|
-
symbol: string;
|
|
28
|
-
decimals: number;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const PrincipalReserve$outboundSchema: z.ZodType<
|
|
33
|
-
PrincipalReserve$Outbound,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
PrincipalReserve
|
|
36
|
-
> = z.object({
|
|
37
|
-
symbol: z.string(),
|
|
38
|
-
decimals: z.number().int(),
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace PrincipalReserve$ {
|
|
46
|
-
/** @deprecated use `PrincipalReserve$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = PrincipalReserve$inboundSchema;
|
|
48
|
-
/** @deprecated use `PrincipalReserve$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = PrincipalReserve$outboundSchema;
|
|
50
|
-
/** @deprecated use `PrincipalReserve$Outbound` instead. */
|
|
51
|
-
export type Outbound = PrincipalReserve$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function principalReserveToJSON(
|
|
55
|
-
principalReserve: PrincipalReserve,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
PrincipalReserve$outboundSchema.parse(principalReserve),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function principalReserveFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<PrincipalReserve, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => PrincipalReserve$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'PrincipalReserve' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|