@compass-labs/api-sdk 0.0.12 → 0.0.14
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 +14 -1
- package/bin/mcp-server.js +1047 -375
- package/bin/mcp-server.js.map +52 -36
- package/dist/commonjs/funcs/skyBuy.d.ts +19 -0
- package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -0
- package/dist/commonjs/funcs/skyBuy.js +118 -0
- package/dist/commonjs/funcs/skyBuy.js.map +1 -0
- package/dist/commonjs/funcs/skyDeposit.d.ts +19 -0
- package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -0
- package/dist/commonjs/funcs/skyDeposit.js +118 -0
- package/dist/commonjs/funcs/skyDeposit.js.map +1 -0
- package/dist/commonjs/funcs/skyPosition.d.ts +18 -0
- package/dist/commonjs/funcs/skyPosition.d.ts.map +1 -0
- package/dist/commonjs/funcs/skyPosition.js +121 -0
- package/dist/commonjs/funcs/skyPosition.js.map +1 -0
- package/dist/commonjs/funcs/skySell.d.ts +19 -0
- package/dist/commonjs/funcs/skySell.d.ts.map +1 -0
- package/dist/commonjs/funcs/skySell.js +118 -0
- package/dist/commonjs/funcs/skySell.js.map +1 -0
- package/dist/commonjs/funcs/skyWithdraw.d.ts +19 -0
- package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -0
- package/dist/commonjs/funcs/skyWithdraw.js +118 -0
- package/dist/commonjs/funcs/skyWithdraw.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 +11 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyBuy.js +66 -0
- package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyDeposit.js +66 -0
- package/dist/commonjs/mcp-server/tools/skyDeposit.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyPosition.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/skyPosition.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyPosition.js +64 -0
- package/dist/commonjs/mcp-server/tools/skyPosition.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/skySell.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/skySell.js +66 -0
- package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyWithdraw.js +66 -0
- package/dist/commonjs/mcp-server/tools/skyWithdraw.js.map +1 -0
- package/dist/commonjs/models/components/chain.d.ts +0 -9
- package/dist/commonjs/models/components/chain.d.ts.map +1 -1
- package/dist/commonjs/models/components/chain.js +0 -3
- package/dist/commonjs/models/components/chain.js.map +1 -1
- package/dist/commonjs/models/components/contractname.d.ts +9 -0
- package/dist/commonjs/models/components/contractname.d.ts.map +1 -1
- package/dist/commonjs/models/components/contractname.js +3 -0
- package/dist/commonjs/models/components/contractname.js.map +1 -1
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts +9 -0
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowanceparams.js +3 -0
- package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts +9 -0
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.js +3 -0
- package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.d.ts +57 -57
- package/dist/commonjs/models/components/multicallactiontype.js +19 -19
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
- package/dist/commonjs/models/components/skybuyrequest.d.ts +100 -0
- package/dist/commonjs/models/components/skybuyrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/skybuyrequest.js +130 -0
- package/dist/commonjs/models/components/skybuyrequest.js.map +1 -0
- package/dist/commonjs/models/components/skycheckpositionresponse.d.ts +34 -0
- package/dist/commonjs/models/components/skycheckpositionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/skycheckpositionresponse.js +80 -0
- package/dist/commonjs/models/components/skycheckpositionresponse.js.map +1 -0
- package/dist/commonjs/models/components/skydepositrequest.d.ts +68 -0
- package/dist/commonjs/models/components/skydepositrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/skydepositrequest.js +98 -0
- package/dist/commonjs/models/components/skydepositrequest.js.map +1 -0
- package/dist/commonjs/models/components/skysellrequest.d.ts +100 -0
- package/dist/commonjs/models/components/skysellrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/skysellrequest.js +130 -0
- package/dist/commonjs/models/components/skysellrequest.js.map +1 -0
- package/dist/commonjs/models/components/skywithdrawrequest.d.ts +44 -0
- package/dist/commonjs/models/components/skywithdrawrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/skywithdrawrequest.js +75 -0
- package/dist/commonjs/models/components/skywithdrawrequest.js.map +1 -0
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +0 -9
- package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveliquiditychange.js +0 -3
- package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.d.ts +0 -9
- package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavetokenprice.js +0 -3
- package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +0 -9
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js +0 -3
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +0 -9
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js +0 -3
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +0 -9
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +0 -3
- package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +0 -9
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js +0 -3
- package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +9 -9
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +3 -3
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/genericens.d.ts +0 -9
- package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericens.js +0 -3
- package/dist/commonjs/models/operations/genericens.js.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.d.ts +0 -9
- package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericportfolio.js +0 -3
- package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts +0 -9
- package/dist/commonjs/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericsupportedtokens.js +0 -3
- package/dist/commonjs/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +0 -9
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js +0 -3
- 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 +0 -9
- package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarketposition.js +0 -3
- package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.d.ts +0 -9
- package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphomarkets.js +0 -3
- package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.d.ts +0 -9
- package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaultposition.js +0 -3
- package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.d.ts +0 -9
- package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/commonjs/models/operations/morphovaults.js +0 -3
- package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
- package/dist/commonjs/models/operations/skyposition.d.ts +31 -0
- package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -0
- package/dist/commonjs/models/operations/skyposition.js +80 -0
- package/dist/commonjs/models/operations/skyposition.js.map +1 -0
- package/dist/commonjs/models/operations/tokenaddress.d.ts +0 -9
- package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenaddress.js +0 -3
- package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.d.ts +0 -9
- package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenbalance.js +0 -3
- package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.d.ts +0 -9
- package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tokenprice.js +0 -3
- package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +0 -9
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js +0 -3
- package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +0 -9
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js +0 -3
- package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts +0 -9
- package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswappoolprice.js +0 -3
- package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +0 -9
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js +0 -3
- package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +0 -9
- package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js +0 -3
- package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/sky.d.ts +49 -0
- package/dist/commonjs/sdk/sky.d.ts.map +1 -0
- package/dist/commonjs/sdk/sky.js +70 -0
- package/dist/commonjs/sdk/sky.js.map +1 -0
- package/dist/esm/funcs/skyBuy.d.ts +19 -0
- package/dist/esm/funcs/skyBuy.d.ts.map +1 -0
- package/dist/esm/funcs/skyBuy.js +82 -0
- package/dist/esm/funcs/skyBuy.js.map +1 -0
- package/dist/esm/funcs/skyDeposit.d.ts +19 -0
- package/dist/esm/funcs/skyDeposit.d.ts.map +1 -0
- package/dist/esm/funcs/skyDeposit.js +82 -0
- package/dist/esm/funcs/skyDeposit.js.map +1 -0
- package/dist/esm/funcs/skyPosition.d.ts +18 -0
- package/dist/esm/funcs/skyPosition.d.ts.map +1 -0
- package/dist/esm/funcs/skyPosition.js +85 -0
- package/dist/esm/funcs/skyPosition.js.map +1 -0
- package/dist/esm/funcs/skySell.d.ts +19 -0
- package/dist/esm/funcs/skySell.d.ts.map +1 -0
- package/dist/esm/funcs/skySell.js +82 -0
- package/dist/esm/funcs/skySell.js.map +1 -0
- package/dist/esm/funcs/skyWithdraw.d.ts +19 -0
- package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -0
- package/dist/esm/funcs/skyWithdraw.js +82 -0
- package/dist/esm/funcs/skyWithdraw.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 +11 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/skyBuy.d.ts +8 -0
- package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/skyBuy.js +30 -0
- package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -0
- package/dist/esm/mcp-server/tools/skyDeposit.d.ts +8 -0
- package/dist/esm/mcp-server/tools/skyDeposit.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/skyDeposit.js +30 -0
- package/dist/esm/mcp-server/tools/skyDeposit.js.map +1 -0
- package/dist/esm/mcp-server/tools/skyPosition.d.ts +8 -0
- package/dist/esm/mcp-server/tools/skyPosition.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/skyPosition.js +28 -0
- package/dist/esm/mcp-server/tools/skyPosition.js.map +1 -0
- package/dist/esm/mcp-server/tools/skySell.d.ts +8 -0
- package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/skySell.js +30 -0
- package/dist/esm/mcp-server/tools/skySell.js.map +1 -0
- package/dist/esm/mcp-server/tools/skyWithdraw.d.ts +8 -0
- package/dist/esm/mcp-server/tools/skyWithdraw.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/skyWithdraw.js +30 -0
- package/dist/esm/mcp-server/tools/skyWithdraw.js.map +1 -0
- package/dist/esm/models/components/chain.d.ts +0 -9
- package/dist/esm/models/components/chain.d.ts.map +1 -1
- package/dist/esm/models/components/chain.js +0 -3
- package/dist/esm/models/components/chain.js.map +1 -1
- package/dist/esm/models/components/contractname.d.ts +9 -0
- package/dist/esm/models/components/contractname.d.ts.map +1 -1
- package/dist/esm/models/components/contractname.js +3 -0
- package/dist/esm/models/components/contractname.js.map +1 -1
- package/dist/esm/models/components/increaseallowanceparams.d.ts +9 -0
- package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowanceparams.js +3 -0
- package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.d.ts +9 -0
- package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.js +3 -0
- package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallactiontype.d.ts +57 -57
- package/dist/esm/models/components/multicallactiontype.js +19 -19
- package/dist/esm/models/components/multicallactiontype.js.map +1 -1
- package/dist/esm/models/components/skybuyrequest.d.ts +100 -0
- package/dist/esm/models/components/skybuyrequest.d.ts.map +1 -0
- package/dist/esm/models/components/skybuyrequest.js +90 -0
- package/dist/esm/models/components/skybuyrequest.js.map +1 -0
- package/dist/esm/models/components/skycheckpositionresponse.d.ts +34 -0
- package/dist/esm/models/components/skycheckpositionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/skycheckpositionresponse.js +42 -0
- package/dist/esm/models/components/skycheckpositionresponse.js.map +1 -0
- package/dist/esm/models/components/skydepositrequest.d.ts +68 -0
- package/dist/esm/models/components/skydepositrequest.d.ts.map +1 -0
- package/dist/esm/models/components/skydepositrequest.js +58 -0
- package/dist/esm/models/components/skydepositrequest.js.map +1 -0
- package/dist/esm/models/components/skysellrequest.d.ts +100 -0
- package/dist/esm/models/components/skysellrequest.d.ts.map +1 -0
- package/dist/esm/models/components/skysellrequest.js +90 -0
- package/dist/esm/models/components/skysellrequest.js.map +1 -0
- package/dist/esm/models/components/skywithdrawrequest.d.ts +44 -0
- package/dist/esm/models/components/skywithdrawrequest.d.ts.map +1 -0
- package/dist/esm/models/components/skywithdrawrequest.js +37 -0
- package/dist/esm/models/components/skywithdrawrequest.js.map +1 -0
- package/dist/esm/models/operations/aaveliquiditychange.d.ts +0 -9
- package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveliquiditychange.js +0 -3
- package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.d.ts +0 -9
- package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aavetokenprice.js +0 -3
- package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +0 -9
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js +0 -3
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +0 -9
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js +0 -3
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +0 -9
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js +0 -3
- package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +0 -9
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js +0 -3
- package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +9 -9
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +3 -3
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/genericens.d.ts +0 -9
- package/dist/esm/models/operations/genericens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericens.js +0 -3
- package/dist/esm/models/operations/genericens.js.map +1 -1
- package/dist/esm/models/operations/genericportfolio.d.ts +0 -9
- package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericportfolio.js +0 -3
- package/dist/esm/models/operations/genericportfolio.js.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.d.ts +0 -9
- package/dist/esm/models/operations/genericsupportedtokens.d.ts.map +1 -1
- package/dist/esm/models/operations/genericsupportedtokens.js +0 -3
- package/dist/esm/models/operations/genericsupportedtokens.js.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +0 -9
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js +0 -3
- 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 +0 -9
- package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarketposition.js +0 -3
- package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
- package/dist/esm/models/operations/morphomarkets.d.ts +0 -9
- package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
- package/dist/esm/models/operations/morphomarkets.js +0 -3
- package/dist/esm/models/operations/morphomarkets.js.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.d.ts +0 -9
- package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaultposition.js +0 -3
- package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
- package/dist/esm/models/operations/morphovaults.d.ts +0 -9
- package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
- package/dist/esm/models/operations/morphovaults.js +0 -3
- package/dist/esm/models/operations/morphovaults.js.map +1 -1
- package/dist/esm/models/operations/skyposition.d.ts +31 -0
- package/dist/esm/models/operations/skyposition.d.ts.map +1 -0
- package/dist/esm/models/operations/skyposition.js +42 -0
- package/dist/esm/models/operations/skyposition.js.map +1 -0
- package/dist/esm/models/operations/tokenaddress.d.ts +0 -9
- package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenaddress.js +0 -3
- package/dist/esm/models/operations/tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/tokenbalance.d.ts +0 -9
- package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenbalance.js +0 -3
- package/dist/esm/models/operations/tokenbalance.js.map +1 -1
- package/dist/esm/models/operations/tokenprice.d.ts +0 -9
- package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/tokenprice.js +0 -3
- package/dist/esm/models/operations/tokenprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +0 -9
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js +0 -3
- package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +0 -9
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js +0 -3
- package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.d.ts +0 -9
- package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswappoolprice.js +0 -3
- package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +0 -9
- package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotebuyexactly.js +0 -3
- package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +0 -9
- package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/uniswapquotesellexactly.js +0 -3
- package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/sky.d.ts +49 -0
- package/dist/esm/sdk/sky.d.ts.map +1 -0
- package/dist/esm/sdk/sky.js +66 -0
- package/dist/esm/sdk/sky.js.map +1 -0
- package/docs/sdks/sky/README.md +417 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/skyBuy.ts +165 -0
- package/src/funcs/skyDeposit.ts +165 -0
- package/src/funcs/skyPosition.ts +169 -0
- package/src/funcs/skySell.ts +165 -0
- package/src/funcs/skyWithdraw.ts +165 -0
- package/src/lib/config.ts +4 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/skyBuy.ts +39 -0
- package/src/mcp-server/tools/skyDeposit.ts +39 -0
- package/src/mcp-server/tools/skyPosition.ts +37 -0
- package/src/mcp-server/tools/skySell.ts +39 -0
- package/src/mcp-server/tools/skyWithdraw.ts +39 -0
- package/src/models/components/chain.ts +0 -3
- package/src/models/components/contractname.ts +3 -0
- package/src/models/components/increaseallowanceparams.ts +3 -0
- package/src/models/components/increaseallowancerequest.ts +3 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/multicallactiontype.ts +20 -20
- package/src/models/components/skybuyrequest.ts +177 -0
- package/src/models/components/skycheckpositionresponse.ts +82 -0
- package/src/models/components/skydepositrequest.ts +140 -0
- package/src/models/components/skysellrequest.ts +177 -0
- package/src/models/components/skywithdrawrequest.ts +87 -0
- package/src/models/operations/aaveliquiditychange.ts +0 -3
- package/src/models/operations/aavetokenprice.ts +0 -3
- package/src/models/operations/aaveuserpositionpertoken.ts +0 -3
- package/src/models/operations/aaveuserpositionsummary.ts +0 -3
- package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +0 -3
- package/src/models/operations/aerodromeslipstreampoolprice.ts +0 -3
- package/src/models/operations/genericallowance.ts +3 -3
- package/src/models/operations/genericens.ts +0 -3
- package/src/models/operations/genericportfolio.ts +0 -3
- package/src/models/operations/genericsupportedtokens.ts +0 -3
- package/src/models/operations/genericvisualizeportfolio.ts +0 -3
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/morphomarketposition.ts +0 -3
- package/src/models/operations/morphomarkets.ts +0 -3
- package/src/models/operations/morphovaultposition.ts +0 -3
- package/src/models/operations/morphovaults.ts +0 -3
- package/src/models/operations/skyposition.ts +81 -0
- package/src/models/operations/tokenaddress.ts +0 -3
- package/src/models/operations/tokenbalance.ts +0 -3
- package/src/models/operations/tokenprice.ts +0 -3
- package/src/models/operations/uniswapliquidityprovisioninrange.ts +0 -3
- package/src/models/operations/uniswapliquidityprovisionpositions.ts +0 -3
- package/src/models/operations/uniswappoolprice.ts +0 -3
- package/src/models/operations/uniswapquotebuyexactly.ts +0 -3
- package/src/models/operations/uniswapquotesellexactly.ts +0 -3
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sky.ts +108 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34180,14 +34180,14 @@ var ServerList, SDK_METADATA;
|
|
|
34180
34180
|
var init_config = __esm(() => {
|
|
34181
34181
|
init_url();
|
|
34182
34182
|
ServerList = [
|
|
34183
|
-
"
|
|
34183
|
+
"https://api.compasslabs.ai"
|
|
34184
34184
|
];
|
|
34185
34185
|
SDK_METADATA = {
|
|
34186
34186
|
language: "typescript",
|
|
34187
34187
|
openapiDocVersion: "0.0.1",
|
|
34188
|
-
sdkVersion: "0.0.
|
|
34188
|
+
sdkVersion: "0.0.14",
|
|
34189
34189
|
genVersion: "2.596.2",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.14 2.596.2 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -35632,10 +35632,7 @@ var init_chain = __esm(() => {
|
|
|
35632
35632
|
Chain = {
|
|
35633
35633
|
BaseMainnet: "base:mainnet",
|
|
35634
35634
|
EthereumMainnet: "ethereum:mainnet",
|
|
35635
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
35636
|
-
EthereumLocal: "ethereum:local",
|
|
35637
|
-
ArbitrumLocal: "arbitrum:local",
|
|
35638
|
-
BaseLocal: "base:local"
|
|
35635
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
35639
35636
|
};
|
|
35640
35637
|
Chain$inboundSchema = nativeEnumType(Chain);
|
|
35641
35638
|
Chain$outboundSchema = Chain$inboundSchema;
|
|
@@ -37338,6 +37335,9 @@ var init_contractname = __esm(() => {
|
|
|
37338
37335
|
Morpho: "Morpho",
|
|
37339
37336
|
MorphoVault: "MorphoVault",
|
|
37340
37337
|
MorphoOracle: "MorphoOracle",
|
|
37338
|
+
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37339
|
+
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37340
|
+
SkyUsdsVault: "SkyUsdsVault",
|
|
37341
37341
|
Multicall: "Multicall"
|
|
37342
37342
|
};
|
|
37343
37343
|
ContractName$inboundSchema = nativeEnumType(ContractName);
|
|
@@ -37459,7 +37459,10 @@ var init_increaseallowanceparams = __esm(() => {
|
|
|
37459
37459
|
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
37460
37460
|
UniswapV3Router: "UniswapV3Router",
|
|
37461
37461
|
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
37462
|
-
Morpho: "Morpho"
|
|
37462
|
+
Morpho: "Morpho",
|
|
37463
|
+
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37464
|
+
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37465
|
+
SkyUsdsVault: "SkyUsdsVault"
|
|
37463
37466
|
};
|
|
37464
37467
|
IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
|
|
37465
37468
|
IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
|
|
@@ -37511,7 +37514,10 @@ var init_increaseallowancerequest = __esm(() => {
|
|
|
37511
37514
|
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
37512
37515
|
UniswapV3Router: "UniswapV3Router",
|
|
37513
37516
|
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
37514
|
-
Morpho: "Morpho"
|
|
37517
|
+
Morpho: "Morpho",
|
|
37518
|
+
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37519
|
+
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37520
|
+
SkyUsdsVault: "SkyUsdsVault"
|
|
37515
37521
|
};
|
|
37516
37522
|
IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
|
|
37517
37523
|
IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
@@ -38098,32 +38104,32 @@ var MulticallActionType, MulticallActionType$inboundSchema, MulticallActionType$
|
|
|
38098
38104
|
var init_multicallactiontype = __esm(() => {
|
|
38099
38105
|
init_lib();
|
|
38100
38106
|
MulticallActionType = {
|
|
38101
|
-
|
|
38102
|
-
AaveSupply: "AAVE_SUPPLY",
|
|
38103
|
-
AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
|
|
38104
|
-
AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
|
|
38105
|
-
UniswapSellExactly: "UNISWAP_SELL_EXACTLY",
|
|
38106
|
-
UniswapBuyExactly: "UNISWAP_BUY_EXACTLY",
|
|
38107
|
-
AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
|
|
38107
|
+
UniswapWithdrawLiquidity: "UNISWAP_WITHDRAW_LIQUIDITY",
|
|
38108
38108
|
AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
|
|
38109
|
-
AerodromeSlipstreamIncreaseLiquidity: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
|
|
38110
|
-
AaveWithdraw: "AAVE_WITHDRAW",
|
|
38111
|
-
AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
|
|
38112
|
-
AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
|
|
38113
|
-
AllowanceIncrease: "ALLOWANCE_INCREASE",
|
|
38114
38109
|
WrapEth: "WRAP_ETH",
|
|
38115
|
-
|
|
38116
|
-
|
|
38110
|
+
AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
|
|
38111
|
+
AaveWithdraw: "AAVE_WITHDRAW",
|
|
38117
38112
|
AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
|
|
38113
|
+
AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
|
|
38114
|
+
AaveSupply: "AAVE_SUPPLY",
|
|
38118
38115
|
AerodromeSlipstreamWithdrawLiquidity: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
|
|
38119
|
-
|
|
38116
|
+
UniswapSellExactly: "UNISWAP_SELL_EXACTLY",
|
|
38117
|
+
AaveRepay: "AAVE_REPAY",
|
|
38118
|
+
TransferErc20: "TRANSFER_ERC20",
|
|
38119
|
+
AllowanceIncrease: "ALLOWANCE_INCREASE",
|
|
38120
|
+
AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
|
|
38121
|
+
AerodromeSlipstreamSellExactly: "AERODROME_SLIPSTREAM_SELL_EXACTLY",
|
|
38122
|
+
UniswapBuyExactly: "UNISWAP_BUY_EXACTLY",
|
|
38120
38123
|
AerodromeSlipstreamMintLiquidity: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY",
|
|
38124
|
+
AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
|
|
38125
|
+
UniswapAddLiquidity: "UNISWAP_ADD_LIQUIDITY",
|
|
38126
|
+
AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
|
|
38121
38127
|
AerodromeSlipstreamBuyExactly: "AERODROME_SLIPSTREAM_BUY_EXACTLY",
|
|
38122
|
-
|
|
38123
|
-
|
|
38128
|
+
AaveBorrow: "AAVE_BORROW",
|
|
38129
|
+
AerodromeSlipstreamIncreaseLiquidity: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
|
|
38124
38130
|
UnwrapWeth: "UNWRAP_WETH",
|
|
38125
|
-
|
|
38126
|
-
|
|
38131
|
+
AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
|
|
38132
|
+
UniswapMintLiquidity: "UNISWAP_MINT_LIQUIDITY"
|
|
38127
38133
|
};
|
|
38128
38134
|
MulticallActionType$inboundSchema = nativeEnumType(MulticallActionType);
|
|
38129
38135
|
MulticallActionType$outboundSchema = MulticallActionType$inboundSchema;
|
|
@@ -38877,6 +38883,177 @@ var init_security2 = __esm(() => {
|
|
|
38877
38883
|
})(Security$ ||= {});
|
|
38878
38884
|
});
|
|
38879
38885
|
|
|
38886
|
+
// src/models/components/skybuyrequest.ts
|
|
38887
|
+
var TokenIn, TokenIn$inboundSchema, TokenIn$outboundSchema, TokenIn$, SkyBuyRequestAmount$inboundSchema, SkyBuyRequestAmount$outboundSchema, SkyBuyRequestAmount$, SkyBuyRequest$inboundSchema, SkyBuyRequest$outboundSchema, SkyBuyRequest$;
|
|
38888
|
+
var init_skybuyrequest = __esm(() => {
|
|
38889
|
+
init_lib();
|
|
38890
|
+
init_primitives();
|
|
38891
|
+
TokenIn = {
|
|
38892
|
+
Dai: "DAI",
|
|
38893
|
+
Usdc: "USDC"
|
|
38894
|
+
};
|
|
38895
|
+
TokenIn$inboundSchema = nativeEnumType(TokenIn);
|
|
38896
|
+
TokenIn$outboundSchema = TokenIn$inboundSchema;
|
|
38897
|
+
((TokenIn$) => {
|
|
38898
|
+
TokenIn$.inboundSchema = TokenIn$inboundSchema;
|
|
38899
|
+
TokenIn$.outboundSchema = TokenIn$outboundSchema;
|
|
38900
|
+
})(TokenIn$ ||= {});
|
|
38901
|
+
SkyBuyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38902
|
+
SkyBuyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38903
|
+
((SkyBuyRequestAmount$) => {
|
|
38904
|
+
SkyBuyRequestAmount$.inboundSchema = SkyBuyRequestAmount$inboundSchema;
|
|
38905
|
+
SkyBuyRequestAmount$.outboundSchema = SkyBuyRequestAmount$outboundSchema;
|
|
38906
|
+
})(SkyBuyRequestAmount$ ||= {});
|
|
38907
|
+
SkyBuyRequest$inboundSchema = objectType({
|
|
38908
|
+
token_in: TokenIn$inboundSchema,
|
|
38909
|
+
amount: unionType([numberType(), stringType()]),
|
|
38910
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
38911
|
+
sender: stringType()
|
|
38912
|
+
}).transform((v2) => {
|
|
38913
|
+
return remap(v2, {
|
|
38914
|
+
token_in: "tokenIn"
|
|
38915
|
+
});
|
|
38916
|
+
});
|
|
38917
|
+
SkyBuyRequest$outboundSchema = objectType({
|
|
38918
|
+
tokenIn: TokenIn$outboundSchema,
|
|
38919
|
+
amount: unionType([numberType(), stringType()]),
|
|
38920
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
38921
|
+
sender: stringType()
|
|
38922
|
+
}).transform((v2) => {
|
|
38923
|
+
return remap(v2, {
|
|
38924
|
+
tokenIn: "token_in"
|
|
38925
|
+
});
|
|
38926
|
+
});
|
|
38927
|
+
((SkyBuyRequest$) => {
|
|
38928
|
+
SkyBuyRequest$.inboundSchema = SkyBuyRequest$inboundSchema;
|
|
38929
|
+
SkyBuyRequest$.outboundSchema = SkyBuyRequest$outboundSchema;
|
|
38930
|
+
})(SkyBuyRequest$ ||= {});
|
|
38931
|
+
});
|
|
38932
|
+
|
|
38933
|
+
// src/models/components/skycheckpositionresponse.ts
|
|
38934
|
+
var SkyCheckPositionResponse$inboundSchema, SkyCheckPositionResponse$outboundSchema, SkyCheckPositionResponse$;
|
|
38935
|
+
var init_skycheckpositionresponse = __esm(() => {
|
|
38936
|
+
init_lib();
|
|
38937
|
+
init_primitives();
|
|
38938
|
+
SkyCheckPositionResponse$inboundSchema = objectType({
|
|
38939
|
+
usds_value_of_deposits: stringType(),
|
|
38940
|
+
shares: numberType().int()
|
|
38941
|
+
}).transform((v2) => {
|
|
38942
|
+
return remap(v2, {
|
|
38943
|
+
usds_value_of_deposits: "usdsValueOfDeposits"
|
|
38944
|
+
});
|
|
38945
|
+
});
|
|
38946
|
+
SkyCheckPositionResponse$outboundSchema = objectType({
|
|
38947
|
+
usdsValueOfDeposits: stringType(),
|
|
38948
|
+
shares: numberType().int()
|
|
38949
|
+
}).transform((v2) => {
|
|
38950
|
+
return remap(v2, {
|
|
38951
|
+
usdsValueOfDeposits: "usds_value_of_deposits"
|
|
38952
|
+
});
|
|
38953
|
+
});
|
|
38954
|
+
((SkyCheckPositionResponse$) => {
|
|
38955
|
+
SkyCheckPositionResponse$.inboundSchema = SkyCheckPositionResponse$inboundSchema;
|
|
38956
|
+
SkyCheckPositionResponse$.outboundSchema = SkyCheckPositionResponse$outboundSchema;
|
|
38957
|
+
})(SkyCheckPositionResponse$ ||= {});
|
|
38958
|
+
});
|
|
38959
|
+
|
|
38960
|
+
// src/models/components/skydepositrequest.ts
|
|
38961
|
+
var SkyDepositRequestAmount$inboundSchema, SkyDepositRequestAmount$outboundSchema, SkyDepositRequestAmount$, SkyDepositRequest$inboundSchema, SkyDepositRequest$outboundSchema, SkyDepositRequest$;
|
|
38962
|
+
var init_skydepositrequest = __esm(() => {
|
|
38963
|
+
init_lib();
|
|
38964
|
+
SkyDepositRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38965
|
+
SkyDepositRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38966
|
+
((SkyDepositRequestAmount$) => {
|
|
38967
|
+
SkyDepositRequestAmount$.inboundSchema = SkyDepositRequestAmount$inboundSchema;
|
|
38968
|
+
SkyDepositRequestAmount$.outboundSchema = SkyDepositRequestAmount$outboundSchema;
|
|
38969
|
+
})(SkyDepositRequestAmount$ ||= {});
|
|
38970
|
+
SkyDepositRequest$inboundSchema = objectType({
|
|
38971
|
+
amount: unionType([numberType(), stringType()]),
|
|
38972
|
+
receiver: nullableType(stringType()).optional(),
|
|
38973
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
38974
|
+
sender: stringType()
|
|
38975
|
+
});
|
|
38976
|
+
SkyDepositRequest$outboundSchema = objectType({
|
|
38977
|
+
amount: unionType([numberType(), stringType()]),
|
|
38978
|
+
receiver: nullableType(stringType()).optional(),
|
|
38979
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
38980
|
+
sender: stringType()
|
|
38981
|
+
});
|
|
38982
|
+
((SkyDepositRequest$) => {
|
|
38983
|
+
SkyDepositRequest$.inboundSchema = SkyDepositRequest$inboundSchema;
|
|
38984
|
+
SkyDepositRequest$.outboundSchema = SkyDepositRequest$outboundSchema;
|
|
38985
|
+
})(SkyDepositRequest$ ||= {});
|
|
38986
|
+
});
|
|
38987
|
+
|
|
38988
|
+
// src/models/components/skysellrequest.ts
|
|
38989
|
+
var TokenOut, TokenOut$inboundSchema, TokenOut$outboundSchema, TokenOut$, SkySellRequestAmount$inboundSchema, SkySellRequestAmount$outboundSchema, SkySellRequestAmount$, SkySellRequest$inboundSchema, SkySellRequest$outboundSchema, SkySellRequest$;
|
|
38990
|
+
var init_skysellrequest = __esm(() => {
|
|
38991
|
+
init_lib();
|
|
38992
|
+
init_primitives();
|
|
38993
|
+
TokenOut = {
|
|
38994
|
+
Dai: "DAI",
|
|
38995
|
+
Usdc: "USDC"
|
|
38996
|
+
};
|
|
38997
|
+
TokenOut$inboundSchema = nativeEnumType(TokenOut);
|
|
38998
|
+
TokenOut$outboundSchema = TokenOut$inboundSchema;
|
|
38999
|
+
((TokenOut$) => {
|
|
39000
|
+
TokenOut$.inboundSchema = TokenOut$inboundSchema;
|
|
39001
|
+
TokenOut$.outboundSchema = TokenOut$outboundSchema;
|
|
39002
|
+
})(TokenOut$ ||= {});
|
|
39003
|
+
SkySellRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
39004
|
+
SkySellRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
39005
|
+
((SkySellRequestAmount$) => {
|
|
39006
|
+
SkySellRequestAmount$.inboundSchema = SkySellRequestAmount$inboundSchema;
|
|
39007
|
+
SkySellRequestAmount$.outboundSchema = SkySellRequestAmount$outboundSchema;
|
|
39008
|
+
})(SkySellRequestAmount$ ||= {});
|
|
39009
|
+
SkySellRequest$inboundSchema = objectType({
|
|
39010
|
+
token_out: TokenOut$inboundSchema,
|
|
39011
|
+
amount: unionType([numberType(), stringType()]),
|
|
39012
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
39013
|
+
sender: stringType()
|
|
39014
|
+
}).transform((v2) => {
|
|
39015
|
+
return remap(v2, {
|
|
39016
|
+
token_out: "tokenOut"
|
|
39017
|
+
});
|
|
39018
|
+
});
|
|
39019
|
+
SkySellRequest$outboundSchema = objectType({
|
|
39020
|
+
tokenOut: TokenOut$outboundSchema,
|
|
39021
|
+
amount: unionType([numberType(), stringType()]),
|
|
39022
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
39023
|
+
sender: stringType()
|
|
39024
|
+
}).transform((v2) => {
|
|
39025
|
+
return remap(v2, {
|
|
39026
|
+
tokenOut: "token_out"
|
|
39027
|
+
});
|
|
39028
|
+
});
|
|
39029
|
+
((SkySellRequest$) => {
|
|
39030
|
+
SkySellRequest$.inboundSchema = SkySellRequest$inboundSchema;
|
|
39031
|
+
SkySellRequest$.outboundSchema = SkySellRequest$outboundSchema;
|
|
39032
|
+
})(SkySellRequest$ ||= {});
|
|
39033
|
+
});
|
|
39034
|
+
|
|
39035
|
+
// src/models/components/skywithdrawrequest.ts
|
|
39036
|
+
var SkyWithdrawRequest$inboundSchema, SkyWithdrawRequest$outboundSchema, SkyWithdrawRequest$;
|
|
39037
|
+
var init_skywithdrawrequest = __esm(() => {
|
|
39038
|
+
init_lib();
|
|
39039
|
+
SkyWithdrawRequest$inboundSchema = objectType({
|
|
39040
|
+
amount: anyType().optional(),
|
|
39041
|
+
receiver: nullableType(stringType()).optional(),
|
|
39042
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
39043
|
+
sender: stringType()
|
|
39044
|
+
});
|
|
39045
|
+
SkyWithdrawRequest$outboundSchema = objectType({
|
|
39046
|
+
amount: anyType().optional(),
|
|
39047
|
+
receiver: nullableType(stringType()).optional(),
|
|
39048
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
39049
|
+
sender: stringType()
|
|
39050
|
+
});
|
|
39051
|
+
((SkyWithdrawRequest$) => {
|
|
39052
|
+
SkyWithdrawRequest$.inboundSchema = SkyWithdrawRequest$inboundSchema;
|
|
39053
|
+
SkyWithdrawRequest$.outboundSchema = SkyWithdrawRequest$outboundSchema;
|
|
39054
|
+
})(SkyWithdrawRequest$ ||= {});
|
|
39055
|
+
});
|
|
39056
|
+
|
|
38880
39057
|
// src/models/components/tokenaddressresponse.ts
|
|
38881
39058
|
var TokenAddressResponse$inboundSchema, TokenAddressResponse$outboundSchema, TokenAddressResponse$;
|
|
38882
39059
|
var init_tokenaddressresponse = __esm(() => {
|
|
@@ -39729,6 +39906,11 @@ var init_components = __esm(() => {
|
|
|
39729
39906
|
init_portfolio();
|
|
39730
39907
|
init_security2();
|
|
39731
39908
|
init_signedauthorization();
|
|
39909
|
+
init_skybuyrequest();
|
|
39910
|
+
init_skycheckpositionresponse();
|
|
39911
|
+
init_skydepositrequest();
|
|
39912
|
+
init_skysellrequest();
|
|
39913
|
+
init_skywithdrawrequest();
|
|
39732
39914
|
init_tokenaddressresponse();
|
|
39733
39915
|
init_tokenbalance();
|
|
39734
39916
|
init_tokenbalanceresponse();
|
|
@@ -39941,10 +40123,7 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
39941
40123
|
AaveLiquidityChangeChain = {
|
|
39942
40124
|
BaseMainnet: "base:mainnet",
|
|
39943
40125
|
EthereumMainnet: "ethereum:mainnet",
|
|
39944
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
39945
|
-
EthereumLocal: "ethereum:local",
|
|
39946
|
-
ArbitrumLocal: "arbitrum:local",
|
|
39947
|
-
BaseLocal: "base:local"
|
|
40126
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
39948
40127
|
};
|
|
39949
40128
|
AaveLiquidityChangeToken = {
|
|
39950
40129
|
OneINCH: "1INCH",
|
|
@@ -40039,10 +40218,7 @@ var init_aavetokenprice = __esm(() => {
|
|
|
40039
40218
|
AaveTokenPriceChain = {
|
|
40040
40219
|
BaseMainnet: "base:mainnet",
|
|
40041
40220
|
EthereumMainnet: "ethereum:mainnet",
|
|
40042
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40043
|
-
EthereumLocal: "ethereum:local",
|
|
40044
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40045
|
-
BaseLocal: "base:local"
|
|
40221
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40046
40222
|
};
|
|
40047
40223
|
AaveTokenPriceToken = {
|
|
40048
40224
|
OneINCH: "1INCH",
|
|
@@ -40123,10 +40299,7 @@ var init_aaveuserpositionpertoken = __esm(() => {
|
|
|
40123
40299
|
AaveUserPositionPerTokenChain = {
|
|
40124
40300
|
BaseMainnet: "base:mainnet",
|
|
40125
40301
|
EthereumMainnet: "ethereum:mainnet",
|
|
40126
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40127
|
-
EthereumLocal: "ethereum:local",
|
|
40128
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40129
|
-
BaseLocal: "base:local"
|
|
40302
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40130
40303
|
};
|
|
40131
40304
|
AaveUserPositionPerTokenToken = {
|
|
40132
40305
|
OneINCH: "1INCH",
|
|
@@ -40209,10 +40382,7 @@ var init_aaveuserpositionsummary = __esm(() => {
|
|
|
40209
40382
|
AaveUserPositionSummaryChain = {
|
|
40210
40383
|
BaseMainnet: "base:mainnet",
|
|
40211
40384
|
EthereumMainnet: "ethereum:mainnet",
|
|
40212
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40213
|
-
EthereumLocal: "ethereum:local",
|
|
40214
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40215
|
-
BaseLocal: "base:local"
|
|
40385
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40216
40386
|
};
|
|
40217
40387
|
AaveUserPositionSummaryChain$inboundSchema = nativeEnumType(AaveUserPositionSummaryChain);
|
|
40218
40388
|
AaveUserPositionSummaryChain$outboundSchema = AaveUserPositionSummaryChain$inboundSchema;
|
|
@@ -40241,10 +40411,7 @@ var init_aerodromeslipstreamliquidityprovisionpositions = __esm(() => {
|
|
|
40241
40411
|
AerodromeSlipstreamLiquidityProvisionPositionsChain = {
|
|
40242
40412
|
BaseMainnet: "base:mainnet",
|
|
40243
40413
|
EthereumMainnet: "ethereum:mainnet",
|
|
40244
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40245
|
-
EthereumLocal: "ethereum:local",
|
|
40246
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40247
|
-
BaseLocal: "base:local"
|
|
40414
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40248
40415
|
};
|
|
40249
40416
|
AerodromeSlipstreamLiquidityProvisionPositionsChain$inboundSchema = nativeEnumType(AerodromeSlipstreamLiquidityProvisionPositionsChain);
|
|
40250
40417
|
AerodromeSlipstreamLiquidityProvisionPositionsChain$outboundSchema = AerodromeSlipstreamLiquidityProvisionPositionsChain$inboundSchema;
|
|
@@ -40274,10 +40441,7 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
40274
40441
|
AerodromeSlipstreamPoolPriceChain = {
|
|
40275
40442
|
BaseMainnet: "base:mainnet",
|
|
40276
40443
|
EthereumMainnet: "ethereum:mainnet",
|
|
40277
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40278
|
-
EthereumLocal: "ethereum:local",
|
|
40279
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40280
|
-
BaseLocal: "base:local"
|
|
40444
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40281
40445
|
};
|
|
40282
40446
|
AerodromeSlipstreamPoolPriceTokenInToken = {
|
|
40283
40447
|
OneINCH: "1INCH",
|
|
@@ -40427,10 +40591,7 @@ var init_genericallowance = __esm(() => {
|
|
|
40427
40591
|
GenericAllowanceChain = {
|
|
40428
40592
|
BaseMainnet: "base:mainnet",
|
|
40429
40593
|
EthereumMainnet: "ethereum:mainnet",
|
|
40430
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40431
|
-
EthereumLocal: "ethereum:local",
|
|
40432
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40433
|
-
BaseLocal: "base:local"
|
|
40594
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40434
40595
|
};
|
|
40435
40596
|
GenericAllowanceToken = {
|
|
40436
40597
|
OneINCH: "1INCH",
|
|
@@ -40485,7 +40646,10 @@ var init_genericallowance = __esm(() => {
|
|
|
40485
40646
|
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
40486
40647
|
UniswapV3Router: "UniswapV3Router",
|
|
40487
40648
|
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
40488
|
-
Morpho: "Morpho"
|
|
40649
|
+
Morpho: "Morpho",
|
|
40650
|
+
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
40651
|
+
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
40652
|
+
SkyUsdsVault: "SkyUsdsVault"
|
|
40489
40653
|
};
|
|
40490
40654
|
GenericAllowanceChain$inboundSchema = nativeEnumType(GenericAllowanceChain);
|
|
40491
40655
|
GenericAllowanceChain$outboundSchema = GenericAllowanceChain$inboundSchema;
|
|
@@ -40539,10 +40703,7 @@ var init_genericens = __esm(() => {
|
|
|
40539
40703
|
GenericEnsChain = {
|
|
40540
40704
|
BaseMainnet: "base:mainnet",
|
|
40541
40705
|
EthereumMainnet: "ethereum:mainnet",
|
|
40542
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40543
|
-
EthereumLocal: "ethereum:local",
|
|
40544
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40545
|
-
BaseLocal: "base:local"
|
|
40706
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40546
40707
|
};
|
|
40547
40708
|
GenericEnsChain$inboundSchema = nativeEnumType(GenericEnsChain);
|
|
40548
40709
|
GenericEnsChain$outboundSchema = GenericEnsChain$inboundSchema;
|
|
@@ -40579,10 +40740,7 @@ var init_genericportfolio = __esm(() => {
|
|
|
40579
40740
|
GenericPortfolioChain = {
|
|
40580
40741
|
BaseMainnet: "base:mainnet",
|
|
40581
40742
|
EthereumMainnet: "ethereum:mainnet",
|
|
40582
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40583
|
-
EthereumLocal: "ethereum:local",
|
|
40584
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40585
|
-
BaseLocal: "base:local"
|
|
40743
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40586
40744
|
};
|
|
40587
40745
|
GenericPortfolioChain$inboundSchema = nativeEnumType(GenericPortfolioChain);
|
|
40588
40746
|
GenericPortfolioChain$outboundSchema = GenericPortfolioChain$inboundSchema;
|
|
@@ -40611,10 +40769,7 @@ var init_genericsupportedtokens = __esm(() => {
|
|
|
40611
40769
|
GenericSupportedTokensChain = {
|
|
40612
40770
|
BaseMainnet: "base:mainnet",
|
|
40613
40771
|
EthereumMainnet: "ethereum:mainnet",
|
|
40614
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40615
|
-
EthereumLocal: "ethereum:local",
|
|
40616
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40617
|
-
BaseLocal: "base:local"
|
|
40772
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40618
40773
|
};
|
|
40619
40774
|
GenericSupportedTokensChain$inboundSchema = nativeEnumType(GenericSupportedTokensChain);
|
|
40620
40775
|
GenericSupportedTokensChain$outboundSchema = GenericSupportedTokensChain$inboundSchema;
|
|
@@ -40641,10 +40796,7 @@ var init_genericvisualizeportfolio = __esm(() => {
|
|
|
40641
40796
|
GenericVisualizePortfolioChain = {
|
|
40642
40797
|
BaseMainnet: "base:mainnet",
|
|
40643
40798
|
EthereumMainnet: "ethereum:mainnet",
|
|
40644
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40645
|
-
EthereumLocal: "ethereum:local",
|
|
40646
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40647
|
-
BaseLocal: "base:local"
|
|
40799
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40648
40800
|
};
|
|
40649
40801
|
GenericVisualizePortfolioChain$inboundSchema = nativeEnumType(GenericVisualizePortfolioChain);
|
|
40650
40802
|
GenericVisualizePortfolioChain$outboundSchema = GenericVisualizePortfolioChain$inboundSchema;
|
|
@@ -40674,10 +40826,7 @@ var init_morphomarketposition = __esm(() => {
|
|
|
40674
40826
|
MorphoMarketPositionChain = {
|
|
40675
40827
|
BaseMainnet: "base:mainnet",
|
|
40676
40828
|
EthereumMainnet: "ethereum:mainnet",
|
|
40677
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40678
|
-
EthereumLocal: "ethereum:local",
|
|
40679
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40680
|
-
BaseLocal: "base:local"
|
|
40829
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40681
40830
|
};
|
|
40682
40831
|
MorphoMarketPositionChain$inboundSchema = nativeEnumType(MorphoMarketPositionChain);
|
|
40683
40832
|
MorphoMarketPositionChain$outboundSchema = MorphoMarketPositionChain$inboundSchema;
|
|
@@ -40719,10 +40868,7 @@ var init_morphomarkets = __esm(() => {
|
|
|
40719
40868
|
MorphoMarketsChain = {
|
|
40720
40869
|
BaseMainnet: "base:mainnet",
|
|
40721
40870
|
EthereumMainnet: "ethereum:mainnet",
|
|
40722
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40723
|
-
EthereumLocal: "ethereum:local",
|
|
40724
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40725
|
-
BaseLocal: "base:local"
|
|
40871
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40726
40872
|
};
|
|
40727
40873
|
MorphoMarketsChain$inboundSchema = nativeEnumType(MorphoMarketsChain);
|
|
40728
40874
|
MorphoMarketsChain$outboundSchema = MorphoMarketsChain$inboundSchema;
|
|
@@ -40764,10 +40910,7 @@ var init_morphovaultposition = __esm(() => {
|
|
|
40764
40910
|
MorphoVaultPositionChain = {
|
|
40765
40911
|
BaseMainnet: "base:mainnet",
|
|
40766
40912
|
EthereumMainnet: "ethereum:mainnet",
|
|
40767
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40768
|
-
EthereumLocal: "ethereum:local",
|
|
40769
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40770
|
-
BaseLocal: "base:local"
|
|
40913
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40771
40914
|
};
|
|
40772
40915
|
MorphoVaultPositionChain$inboundSchema = nativeEnumType(MorphoVaultPositionChain);
|
|
40773
40916
|
MorphoVaultPositionChain$outboundSchema = MorphoVaultPositionChain$inboundSchema;
|
|
@@ -40809,10 +40952,7 @@ var init_morphovaults = __esm(() => {
|
|
|
40809
40952
|
MorphoVaultsChain = {
|
|
40810
40953
|
BaseMainnet: "base:mainnet",
|
|
40811
40954
|
EthereumMainnet: "ethereum:mainnet",
|
|
40812
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40813
|
-
EthereumLocal: "ethereum:local",
|
|
40814
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40815
|
-
BaseLocal: "base:local"
|
|
40955
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40816
40956
|
};
|
|
40817
40957
|
MorphoVaultsChain$inboundSchema = nativeEnumType(MorphoVaultsChain);
|
|
40818
40958
|
MorphoVaultsChain$outboundSchema = MorphoVaultsChain$inboundSchema;
|
|
@@ -40842,6 +40982,33 @@ var init_morphovaults = __esm(() => {
|
|
|
40842
40982
|
})(MorphoVaultsRequest$ ||= {});
|
|
40843
40983
|
});
|
|
40844
40984
|
|
|
40985
|
+
// src/models/operations/skyposition.ts
|
|
40986
|
+
var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
|
|
40987
|
+
var init_skyposition = __esm(() => {
|
|
40988
|
+
init_lib();
|
|
40989
|
+
init_primitives();
|
|
40990
|
+
SkyPositionRequest$inboundSchema = objectType({
|
|
40991
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
40992
|
+
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
40993
|
+
}).transform((v2) => {
|
|
40994
|
+
return remap(v2, {
|
|
40995
|
+
user_address: "userAddress"
|
|
40996
|
+
});
|
|
40997
|
+
});
|
|
40998
|
+
SkyPositionRequest$outboundSchema = objectType({
|
|
40999
|
+
chain: literalType("ethereum:mainnet").default("ethereum:mainnet"),
|
|
41000
|
+
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
41001
|
+
}).transform((v2) => {
|
|
41002
|
+
return remap(v2, {
|
|
41003
|
+
userAddress: "user_address"
|
|
41004
|
+
});
|
|
41005
|
+
});
|
|
41006
|
+
((SkyPositionRequest$) => {
|
|
41007
|
+
SkyPositionRequest$.inboundSchema = SkyPositionRequest$inboundSchema;
|
|
41008
|
+
SkyPositionRequest$.outboundSchema = SkyPositionRequest$outboundSchema;
|
|
41009
|
+
})(SkyPositionRequest$ ||= {});
|
|
41010
|
+
});
|
|
41011
|
+
|
|
40845
41012
|
// src/models/operations/tokenaddress.ts
|
|
40846
41013
|
var TokenAddressChain, TokenAddressToken, TokenAddressChain$inboundSchema, TokenAddressChain$outboundSchema, TokenAddressChain$, TokenAddressToken$inboundSchema, TokenAddressToken$outboundSchema, TokenAddressToken$, TokenAddressRequest$inboundSchema, TokenAddressRequest$outboundSchema, TokenAddressRequest$;
|
|
40847
41014
|
var init_tokenaddress = __esm(() => {
|
|
@@ -40849,10 +41016,7 @@ var init_tokenaddress = __esm(() => {
|
|
|
40849
41016
|
TokenAddressChain = {
|
|
40850
41017
|
BaseMainnet: "base:mainnet",
|
|
40851
41018
|
EthereumMainnet: "ethereum:mainnet",
|
|
40852
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40853
|
-
EthereumLocal: "ethereum:local",
|
|
40854
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40855
|
-
BaseLocal: "base:local"
|
|
41019
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40856
41020
|
};
|
|
40857
41021
|
TokenAddressToken = {
|
|
40858
41022
|
OneINCH: "1INCH",
|
|
@@ -40934,10 +41098,7 @@ var init_tokenbalance2 = __esm(() => {
|
|
|
40934
41098
|
TokenBalanceChain = {
|
|
40935
41099
|
BaseMainnet: "base:mainnet",
|
|
40936
41100
|
EthereumMainnet: "ethereum:mainnet",
|
|
40937
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40938
|
-
EthereumLocal: "ethereum:local",
|
|
40939
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40940
|
-
BaseLocal: "base:local"
|
|
41101
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40941
41102
|
};
|
|
40942
41103
|
TokenBalanceChain$inboundSchema = nativeEnumType(TokenBalanceChain);
|
|
40943
41104
|
TokenBalanceChain$outboundSchema = TokenBalanceChain$inboundSchema;
|
|
@@ -40974,10 +41135,7 @@ var init_tokenprice = __esm(() => {
|
|
|
40974
41135
|
TokenPriceChain = {
|
|
40975
41136
|
BaseMainnet: "base:mainnet",
|
|
40976
41137
|
EthereumMainnet: "ethereum:mainnet",
|
|
40977
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40978
|
-
EthereumLocal: "ethereum:local",
|
|
40979
|
-
ArbitrumLocal: "arbitrum:local",
|
|
40980
|
-
BaseLocal: "base:local"
|
|
41138
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40981
41139
|
};
|
|
40982
41140
|
TokenPriceToken = {
|
|
40983
41141
|
OneINCH: "1INCH",
|
|
@@ -41059,10 +41217,7 @@ var init_uniswapliquidityprovisioninrange = __esm(() => {
|
|
|
41059
41217
|
UniswapLiquidityProvisionInRangeChain = {
|
|
41060
41218
|
BaseMainnet: "base:mainnet",
|
|
41061
41219
|
EthereumMainnet: "ethereum:mainnet",
|
|
41062
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41063
|
-
EthereumLocal: "ethereum:local",
|
|
41064
|
-
ArbitrumLocal: "arbitrum:local",
|
|
41065
|
-
BaseLocal: "base:local"
|
|
41220
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41066
41221
|
};
|
|
41067
41222
|
UniswapLiquidityProvisionInRangeChain$inboundSchema = nativeEnumType(UniswapLiquidityProvisionInRangeChain);
|
|
41068
41223
|
UniswapLiquidityProvisionInRangeChain$outboundSchema = UniswapLiquidityProvisionInRangeChain$inboundSchema;
|
|
@@ -41099,10 +41254,7 @@ var init_uniswapliquidityprovisionpositions = __esm(() => {
|
|
|
41099
41254
|
UniswapLiquidityProvisionPositionsChain = {
|
|
41100
41255
|
BaseMainnet: "base:mainnet",
|
|
41101
41256
|
EthereumMainnet: "ethereum:mainnet",
|
|
41102
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41103
|
-
EthereumLocal: "ethereum:local",
|
|
41104
|
-
ArbitrumLocal: "arbitrum:local",
|
|
41105
|
-
BaseLocal: "base:local"
|
|
41257
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41106
41258
|
};
|
|
41107
41259
|
UniswapLiquidityProvisionPositionsChain$inboundSchema = nativeEnumType(UniswapLiquidityProvisionPositionsChain);
|
|
41108
41260
|
UniswapLiquidityProvisionPositionsChain$outboundSchema = UniswapLiquidityProvisionPositionsChain$inboundSchema;
|
|
@@ -41132,10 +41284,7 @@ var init_uniswappoolprice = __esm(() => {
|
|
|
41132
41284
|
UniswapPoolPriceChain = {
|
|
41133
41285
|
BaseMainnet: "base:mainnet",
|
|
41134
41286
|
EthereumMainnet: "ethereum:mainnet",
|
|
41135
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41136
|
-
EthereumLocal: "ethereum:local",
|
|
41137
|
-
ArbitrumLocal: "arbitrum:local",
|
|
41138
|
-
BaseLocal: "base:local"
|
|
41287
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41139
41288
|
};
|
|
41140
41289
|
UniswapPoolPriceTokenInToken = {
|
|
41141
41290
|
OneINCH: "1INCH",
|
|
@@ -41295,10 +41444,7 @@ var init_uniswapquotebuyexactly = __esm(() => {
|
|
|
41295
41444
|
UniswapQuoteBuyExactlyChain = {
|
|
41296
41445
|
BaseMainnet: "base:mainnet",
|
|
41297
41446
|
EthereumMainnet: "ethereum:mainnet",
|
|
41298
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41299
|
-
EthereumLocal: "ethereum:local",
|
|
41300
|
-
ArbitrumLocal: "arbitrum:local",
|
|
41301
|
-
BaseLocal: "base:local"
|
|
41447
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41302
41448
|
};
|
|
41303
41449
|
UniswapQuoteBuyExactlyTokenInToken = {
|
|
41304
41450
|
OneINCH: "1INCH",
|
|
@@ -41468,10 +41614,7 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
41468
41614
|
UniswapQuoteSellExactlyChain = {
|
|
41469
41615
|
BaseMainnet: "base:mainnet",
|
|
41470
41616
|
EthereumMainnet: "ethereum:mainnet",
|
|
41471
|
-
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41472
|
-
EthereumLocal: "ethereum:local",
|
|
41473
|
-
ArbitrumLocal: "arbitrum:local",
|
|
41474
|
-
BaseLocal: "base:local"
|
|
41617
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41475
41618
|
};
|
|
41476
41619
|
UniswapQuoteSellExactlyTokenInToken = {
|
|
41477
41620
|
OneINCH: "1INCH",
|
|
@@ -41650,6 +41793,7 @@ var init_operations = __esm(() => {
|
|
|
41650
41793
|
init_morphomarkets();
|
|
41651
41794
|
init_morphovaultposition();
|
|
41652
41795
|
init_morphovaults();
|
|
41796
|
+
init_skyposition();
|
|
41653
41797
|
init_tokenaddress();
|
|
41654
41798
|
init_tokenbalance2();
|
|
41655
41799
|
init_tokenprice();
|
|
@@ -44412,23 +44556,20 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44412
44556
|
};
|
|
44413
44557
|
});
|
|
44414
44558
|
|
|
44415
|
-
// src/funcs/
|
|
44416
|
-
function
|
|
44559
|
+
// src/funcs/skyBuy.ts
|
|
44560
|
+
function skyBuy(client, request, options) {
|
|
44417
44561
|
return new APIPromise($do27(client, request, options));
|
|
44418
44562
|
}
|
|
44419
44563
|
async function $do27(client, request, options) {
|
|
44420
|
-
const parsed = safeParse(request, (value) =>
|
|
44564
|
+
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44421
44565
|
if (!parsed.ok) {
|
|
44422
44566
|
return [parsed, { status: "invalid" }];
|
|
44423
44567
|
}
|
|
44424
44568
|
const payload = parsed.value;
|
|
44425
|
-
const body =
|
|
44426
|
-
const path = pathToFunc("/v0/
|
|
44427
|
-
const query = encodeFormQuery({
|
|
44428
|
-
chain: payload.chain,
|
|
44429
|
-
token: payload.token
|
|
44430
|
-
});
|
|
44569
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
44570
|
+
const path = pathToFunc("/v0/sky/buy")();
|
|
44431
44571
|
const headers = new Headers(compactMap({
|
|
44572
|
+
"Content-Type": "application/json",
|
|
44432
44573
|
Accept: "application/json"
|
|
44433
44574
|
}));
|
|
44434
44575
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -44436,7 +44577,7 @@ async function $do27(client, request, options) {
|
|
|
44436
44577
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44437
44578
|
const context = {
|
|
44438
44579
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44439
|
-
operationID: "
|
|
44580
|
+
operationID: "sky_buy",
|
|
44440
44581
|
oAuth2Scopes: [],
|
|
44441
44582
|
resolvedSecurity: requestSecurity,
|
|
44442
44583
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -44445,11 +44586,10 @@ async function $do27(client, request, options) {
|
|
|
44445
44586
|
};
|
|
44446
44587
|
const requestRes = client._createRequest(context, {
|
|
44447
44588
|
security: requestSecurity,
|
|
44448
|
-
method: "
|
|
44589
|
+
method: "POST",
|
|
44449
44590
|
baseURL: options?.serverURL,
|
|
44450
44591
|
path,
|
|
44451
44592
|
headers,
|
|
44452
|
-
query,
|
|
44453
44593
|
body,
|
|
44454
44594
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44455
44595
|
}, options);
|
|
@@ -44470,13 +44610,13 @@ async function $do27(client, request, options) {
|
|
|
44470
44610
|
const responseFields = {
|
|
44471
44611
|
HttpMeta: { Response: response, Request: req }
|
|
44472
44612
|
};
|
|
44473
|
-
const [result] = await match(json(200,
|
|
44613
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44474
44614
|
if (!result.ok) {
|
|
44475
44615
|
return [result, { status: "complete", request: req, response }];
|
|
44476
44616
|
}
|
|
44477
44617
|
return [result, { status: "complete", request: req, response }];
|
|
44478
44618
|
}
|
|
44479
|
-
var
|
|
44619
|
+
var init_skyBuy = __esm(() => {
|
|
44480
44620
|
init_encodings();
|
|
44481
44621
|
init_matchers();
|
|
44482
44622
|
init_primitives();
|
|
@@ -44485,27 +44625,28 @@ var init_tokenAddress = __esm(() => {
|
|
|
44485
44625
|
init_url();
|
|
44486
44626
|
init_components();
|
|
44487
44627
|
init_errors();
|
|
44488
|
-
init_operations();
|
|
44489
44628
|
init_async();
|
|
44490
44629
|
});
|
|
44491
44630
|
|
|
44492
|
-
// src/mcp-server/tools/
|
|
44493
|
-
var args27, tool$
|
|
44494
|
-
var
|
|
44495
|
-
|
|
44496
|
-
|
|
44631
|
+
// src/mcp-server/tools/skyBuy.ts
|
|
44632
|
+
var args27, tool$skyBuy;
|
|
44633
|
+
var init_skyBuy2 = __esm(() => {
|
|
44634
|
+
init_skyBuy();
|
|
44635
|
+
init_components();
|
|
44497
44636
|
init_tools();
|
|
44498
44637
|
args27 = {
|
|
44499
|
-
request:
|
|
44638
|
+
request: SkyBuyRequest$inboundSchema
|
|
44500
44639
|
};
|
|
44501
|
-
tool$
|
|
44502
|
-
name: "
|
|
44503
|
-
description: `
|
|
44640
|
+
tool$skyBuy = {
|
|
44641
|
+
name: "sky-buy",
|
|
44642
|
+
description: `Buy USDS
|
|
44504
44643
|
|
|
44505
|
-
|
|
44644
|
+
Buy USDS with DAI or USDC on a 1:1 basis.
|
|
44645
|
+
|
|
44646
|
+
There are no fees.`,
|
|
44506
44647
|
args: args27,
|
|
44507
44648
|
tool: async (client, args28, ctx) => {
|
|
44508
|
-
const [result, apiCall] = await
|
|
44649
|
+
const [result, apiCall] = await skyBuy(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44509
44650
|
if (!result.ok) {
|
|
44510
44651
|
return {
|
|
44511
44652
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44518,24 +44659,20 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
44518
44659
|
};
|
|
44519
44660
|
});
|
|
44520
44661
|
|
|
44521
|
-
// src/funcs/
|
|
44522
|
-
function
|
|
44662
|
+
// src/funcs/skyDeposit.ts
|
|
44663
|
+
function skyDeposit(client, request, options) {
|
|
44523
44664
|
return new APIPromise($do28(client, request, options));
|
|
44524
44665
|
}
|
|
44525
44666
|
async function $do28(client, request, options) {
|
|
44526
|
-
const parsed = safeParse(request, (value) =>
|
|
44667
|
+
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44527
44668
|
if (!parsed.ok) {
|
|
44528
44669
|
return [parsed, { status: "invalid" }];
|
|
44529
44670
|
}
|
|
44530
44671
|
const payload = parsed.value;
|
|
44531
|
-
const body =
|
|
44532
|
-
const path = pathToFunc("/v0/
|
|
44533
|
-
const query = encodeFormQuery({
|
|
44534
|
-
chain: payload.chain,
|
|
44535
|
-
token: payload.token,
|
|
44536
|
-
user: payload.user
|
|
44537
|
-
});
|
|
44672
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
44673
|
+
const path = pathToFunc("/v0/sky/deposit")();
|
|
44538
44674
|
const headers = new Headers(compactMap({
|
|
44675
|
+
"Content-Type": "application/json",
|
|
44539
44676
|
Accept: "application/json"
|
|
44540
44677
|
}));
|
|
44541
44678
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -44543,7 +44680,7 @@ async function $do28(client, request, options) {
|
|
|
44543
44680
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44544
44681
|
const context = {
|
|
44545
44682
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44546
|
-
operationID: "
|
|
44683
|
+
operationID: "sky_deposit",
|
|
44547
44684
|
oAuth2Scopes: [],
|
|
44548
44685
|
resolvedSecurity: requestSecurity,
|
|
44549
44686
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -44552,11 +44689,10 @@ async function $do28(client, request, options) {
|
|
|
44552
44689
|
};
|
|
44553
44690
|
const requestRes = client._createRequest(context, {
|
|
44554
44691
|
security: requestSecurity,
|
|
44555
|
-
method: "
|
|
44692
|
+
method: "POST",
|
|
44556
44693
|
baseURL: options?.serverURL,
|
|
44557
44694
|
path,
|
|
44558
44695
|
headers,
|
|
44559
|
-
query,
|
|
44560
44696
|
body,
|
|
44561
44697
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44562
44698
|
}, options);
|
|
@@ -44577,13 +44713,13 @@ async function $do28(client, request, options) {
|
|
|
44577
44713
|
const responseFields = {
|
|
44578
44714
|
HttpMeta: { Response: response, Request: req }
|
|
44579
44715
|
};
|
|
44580
|
-
const [result] = await match(json(200,
|
|
44716
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44581
44717
|
if (!result.ok) {
|
|
44582
44718
|
return [result, { status: "complete", request: req, response }];
|
|
44583
44719
|
}
|
|
44584
44720
|
return [result, { status: "complete", request: req, response }];
|
|
44585
44721
|
}
|
|
44586
|
-
var
|
|
44722
|
+
var init_skyDeposit = __esm(() => {
|
|
44587
44723
|
init_encodings();
|
|
44588
44724
|
init_matchers();
|
|
44589
44725
|
init_primitives();
|
|
@@ -44592,27 +44728,28 @@ var init_tokenBalance = __esm(() => {
|
|
|
44592
44728
|
init_url();
|
|
44593
44729
|
init_components();
|
|
44594
44730
|
init_errors();
|
|
44595
|
-
init_operations();
|
|
44596
44731
|
init_async();
|
|
44597
44732
|
});
|
|
44598
44733
|
|
|
44599
|
-
// src/mcp-server/tools/
|
|
44600
|
-
var args28, tool$
|
|
44601
|
-
var
|
|
44602
|
-
|
|
44603
|
-
|
|
44734
|
+
// src/mcp-server/tools/skyDeposit.ts
|
|
44735
|
+
var args28, tool$skyDeposit;
|
|
44736
|
+
var init_skyDeposit2 = __esm(() => {
|
|
44737
|
+
init_skyDeposit();
|
|
44738
|
+
init_components();
|
|
44604
44739
|
init_tools();
|
|
44605
44740
|
args28 = {
|
|
44606
|
-
request:
|
|
44741
|
+
request: SkyDepositRequest$inboundSchema
|
|
44607
44742
|
};
|
|
44608
|
-
tool$
|
|
44609
|
-
name: "
|
|
44610
|
-
description: `
|
|
44743
|
+
tool$skyDeposit = {
|
|
44744
|
+
name: "sky-deposit",
|
|
44745
|
+
description: `Deposit USDS
|
|
44611
44746
|
|
|
44612
|
-
|
|
44747
|
+
Deposit USDS for sUSDS to earn yield.
|
|
44748
|
+
|
|
44749
|
+
There are no fees.`,
|
|
44613
44750
|
args: args28,
|
|
44614
44751
|
tool: async (client, args29, ctx) => {
|
|
44615
|
-
const [result, apiCall] = await
|
|
44752
|
+
const [result, apiCall] = await skyDeposit(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44616
44753
|
if (!result.ok) {
|
|
44617
44754
|
return {
|
|
44618
44755
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44625,21 +44762,21 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
44625
44762
|
};
|
|
44626
44763
|
});
|
|
44627
44764
|
|
|
44628
|
-
// src/funcs/
|
|
44629
|
-
function
|
|
44765
|
+
// src/funcs/skyPosition.ts
|
|
44766
|
+
function skyPosition(client, request, options) {
|
|
44630
44767
|
return new APIPromise($do29(client, request, options));
|
|
44631
44768
|
}
|
|
44632
44769
|
async function $do29(client, request, options) {
|
|
44633
|
-
const parsed = safeParse(request, (value) =>
|
|
44770
|
+
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44634
44771
|
if (!parsed.ok) {
|
|
44635
44772
|
return [parsed, { status: "invalid" }];
|
|
44636
44773
|
}
|
|
44637
44774
|
const payload = parsed.value;
|
|
44638
44775
|
const body = null;
|
|
44639
|
-
const path = pathToFunc("/v0/
|
|
44776
|
+
const path = pathToFunc("/v0/sky/position")();
|
|
44640
44777
|
const query = encodeFormQuery({
|
|
44641
44778
|
chain: payload.chain,
|
|
44642
|
-
|
|
44779
|
+
user_address: payload.user_address
|
|
44643
44780
|
});
|
|
44644
44781
|
const headers = new Headers(compactMap({
|
|
44645
44782
|
Accept: "application/json"
|
|
@@ -44649,7 +44786,7 @@ async function $do29(client, request, options) {
|
|
|
44649
44786
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44650
44787
|
const context = {
|
|
44651
44788
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44652
|
-
operationID: "
|
|
44789
|
+
operationID: "sky_position",
|
|
44653
44790
|
oAuth2Scopes: [],
|
|
44654
44791
|
resolvedSecurity: requestSecurity,
|
|
44655
44792
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -44683,13 +44820,13 @@ async function $do29(client, request, options) {
|
|
|
44683
44820
|
const responseFields = {
|
|
44684
44821
|
HttpMeta: { Response: response, Request: req }
|
|
44685
44822
|
};
|
|
44686
|
-
const [result] = await match(json(200,
|
|
44823
|
+
const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44687
44824
|
if (!result.ok) {
|
|
44688
44825
|
return [result, { status: "complete", request: req, response }];
|
|
44689
44826
|
}
|
|
44690
44827
|
return [result, { status: "complete", request: req, response }];
|
|
44691
44828
|
}
|
|
44692
|
-
var
|
|
44829
|
+
var init_skyPosition = __esm(() => {
|
|
44693
44830
|
init_encodings();
|
|
44694
44831
|
init_matchers();
|
|
44695
44832
|
init_primitives();
|
|
@@ -44702,27 +44839,23 @@ var init_tokenPrice = __esm(() => {
|
|
|
44702
44839
|
init_async();
|
|
44703
44840
|
});
|
|
44704
44841
|
|
|
44705
|
-
// src/mcp-server/tools/
|
|
44706
|
-
var args29, tool$
|
|
44707
|
-
var
|
|
44708
|
-
|
|
44842
|
+
// src/mcp-server/tools/skyPosition.ts
|
|
44843
|
+
var args29, tool$skyPosition;
|
|
44844
|
+
var init_skyPosition2 = __esm(() => {
|
|
44845
|
+
init_skyPosition();
|
|
44709
44846
|
init_operations();
|
|
44710
44847
|
init_tools();
|
|
44711
44848
|
args29 = {
|
|
44712
|
-
request:
|
|
44849
|
+
request: SkyPositionRequest$inboundSchema
|
|
44713
44850
|
};
|
|
44714
|
-
tool$
|
|
44715
|
-
name: "
|
|
44716
|
-
description: `
|
|
44851
|
+
tool$skyPosition = {
|
|
44852
|
+
name: "sky-position",
|
|
44853
|
+
description: `Check USDS Position
|
|
44717
44854
|
|
|
44718
|
-
|
|
44719
|
-
|
|
44720
|
-
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
44721
|
-
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
44722
|
-
with the update frequency of the oracle.`,
|
|
44855
|
+
Check the USDS overall position.`,
|
|
44723
44856
|
args: args29,
|
|
44724
44857
|
tool: async (client, args30, ctx) => {
|
|
44725
|
-
const [result, apiCall] = await
|
|
44858
|
+
const [result, apiCall] = await skyPosition(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44726
44859
|
if (!result.ok) {
|
|
44727
44860
|
return {
|
|
44728
44861
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44735,18 +44868,18 @@ with the update frequency of the oracle.`,
|
|
|
44735
44868
|
};
|
|
44736
44869
|
});
|
|
44737
44870
|
|
|
44738
|
-
// src/funcs/
|
|
44739
|
-
function
|
|
44871
|
+
// src/funcs/skySell.ts
|
|
44872
|
+
function skySell(client, request, options) {
|
|
44740
44873
|
return new APIPromise($do30(client, request, options));
|
|
44741
44874
|
}
|
|
44742
44875
|
async function $do30(client, request, options) {
|
|
44743
|
-
const parsed = safeParse(request, (value) =>
|
|
44876
|
+
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44744
44877
|
if (!parsed.ok) {
|
|
44745
44878
|
return [parsed, { status: "invalid" }];
|
|
44746
44879
|
}
|
|
44747
44880
|
const payload = parsed.value;
|
|
44748
44881
|
const body = encodeJSON("body", payload, { explode: true });
|
|
44749
|
-
const path = pathToFunc("/v0/
|
|
44882
|
+
const path = pathToFunc("/v0/sky/sell")();
|
|
44750
44883
|
const headers = new Headers(compactMap({
|
|
44751
44884
|
"Content-Type": "application/json",
|
|
44752
44885
|
Accept: "application/json"
|
|
@@ -44756,7 +44889,7 @@ async function $do30(client, request, options) {
|
|
|
44756
44889
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44757
44890
|
const context = {
|
|
44758
44891
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44759
|
-
operationID: "
|
|
44892
|
+
operationID: "sky_sell",
|
|
44760
44893
|
oAuth2Scopes: [],
|
|
44761
44894
|
resolvedSecurity: requestSecurity,
|
|
44762
44895
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -44795,7 +44928,7 @@ async function $do30(client, request, options) {
|
|
|
44795
44928
|
}
|
|
44796
44929
|
return [result, { status: "complete", request: req, response }];
|
|
44797
44930
|
}
|
|
44798
|
-
var
|
|
44931
|
+
var init_skySell = __esm(() => {
|
|
44799
44932
|
init_encodings();
|
|
44800
44933
|
init_matchers();
|
|
44801
44934
|
init_primitives();
|
|
@@ -44807,23 +44940,25 @@ var init_tokenTransfer = __esm(() => {
|
|
|
44807
44940
|
init_async();
|
|
44808
44941
|
});
|
|
44809
44942
|
|
|
44810
|
-
// src/mcp-server/tools/
|
|
44811
|
-
var args30, tool$
|
|
44812
|
-
var
|
|
44813
|
-
|
|
44943
|
+
// src/mcp-server/tools/skySell.ts
|
|
44944
|
+
var args30, tool$skySell;
|
|
44945
|
+
var init_skySell2 = __esm(() => {
|
|
44946
|
+
init_skySell();
|
|
44814
44947
|
init_components();
|
|
44815
44948
|
init_tools();
|
|
44816
44949
|
args30 = {
|
|
44817
|
-
request:
|
|
44950
|
+
request: SkySellRequest$inboundSchema
|
|
44818
44951
|
};
|
|
44819
|
-
tool$
|
|
44820
|
-
name: "
|
|
44821
|
-
description: `
|
|
44952
|
+
tool$skySell = {
|
|
44953
|
+
name: "sky-sell",
|
|
44954
|
+
description: `Sell USDS
|
|
44822
44955
|
|
|
44823
|
-
|
|
44956
|
+
Sell USDS for DAI or USDC on a 1:1 basis.
|
|
44957
|
+
|
|
44958
|
+
There are no fees.`,
|
|
44824
44959
|
args: args30,
|
|
44825
44960
|
tool: async (client, args31, ctx) => {
|
|
44826
|
-
const [result, apiCall] = await
|
|
44961
|
+
const [result, apiCall] = await skySell(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44827
44962
|
if (!result.ok) {
|
|
44828
44963
|
return {
|
|
44829
44964
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44836,18 +44971,18 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
44836
44971
|
};
|
|
44837
44972
|
});
|
|
44838
44973
|
|
|
44839
|
-
// src/funcs/
|
|
44840
|
-
function
|
|
44974
|
+
// src/funcs/skyWithdraw.ts
|
|
44975
|
+
function skyWithdraw(client, request, options) {
|
|
44841
44976
|
return new APIPromise($do31(client, request, options));
|
|
44842
44977
|
}
|
|
44843
44978
|
async function $do31(client, request, options) {
|
|
44844
|
-
const parsed = safeParse(request, (value) =>
|
|
44979
|
+
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44845
44980
|
if (!parsed.ok) {
|
|
44846
44981
|
return [parsed, { status: "invalid" }];
|
|
44847
44982
|
}
|
|
44848
44983
|
const payload = parsed.value;
|
|
44849
44984
|
const body = encodeJSON("body", payload, { explode: true });
|
|
44850
|
-
const path = pathToFunc("/v0/
|
|
44985
|
+
const path = pathToFunc("/v0/sky/withdraw")();
|
|
44851
44986
|
const headers = new Headers(compactMap({
|
|
44852
44987
|
"Content-Type": "application/json",
|
|
44853
44988
|
Accept: "application/json"
|
|
@@ -44857,7 +44992,7 @@ async function $do31(client, request, options) {
|
|
|
44857
44992
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44858
44993
|
const context = {
|
|
44859
44994
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44860
|
-
operationID: "
|
|
44995
|
+
operationID: "sky_withdraw",
|
|
44861
44996
|
oAuth2Scopes: [],
|
|
44862
44997
|
resolvedSecurity: requestSecurity,
|
|
44863
44998
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -44890,13 +45025,13 @@ async function $do31(client, request, options) {
|
|
|
44890
45025
|
const responseFields = {
|
|
44891
45026
|
HttpMeta: { Response: response, Request: req }
|
|
44892
45027
|
};
|
|
44893
|
-
const [result] = await match(json(200,
|
|
45028
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44894
45029
|
if (!result.ok) {
|
|
44895
45030
|
return [result, { status: "complete", request: req, response }];
|
|
44896
45031
|
}
|
|
44897
45032
|
return [result, { status: "complete", request: req, response }];
|
|
44898
45033
|
}
|
|
44899
|
-
var
|
|
45034
|
+
var init_skyWithdraw = __esm(() => {
|
|
44900
45035
|
init_encodings();
|
|
44901
45036
|
init_matchers();
|
|
44902
45037
|
init_primitives();
|
|
@@ -44908,28 +45043,25 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
44908
45043
|
init_async();
|
|
44909
45044
|
});
|
|
44910
45045
|
|
|
44911
|
-
// src/mcp-server/tools/
|
|
44912
|
-
var args31, tool$
|
|
44913
|
-
var
|
|
44914
|
-
|
|
45046
|
+
// src/mcp-server/tools/skyWithdraw.ts
|
|
45047
|
+
var args31, tool$skyWithdraw;
|
|
45048
|
+
var init_skyWithdraw2 = __esm(() => {
|
|
45049
|
+
init_skyWithdraw();
|
|
44915
45050
|
init_components();
|
|
44916
45051
|
init_tools();
|
|
44917
45052
|
args31 = {
|
|
44918
|
-
request:
|
|
45053
|
+
request: SkyWithdrawRequest$inboundSchema
|
|
44919
45054
|
};
|
|
44920
|
-
tool$
|
|
44921
|
-
name: "
|
|
44922
|
-
description: `
|
|
45055
|
+
tool$skyWithdraw = {
|
|
45056
|
+
name: "sky-withdraw",
|
|
45057
|
+
description: `Withdraw USDS
|
|
44923
45058
|
|
|
44924
|
-
|
|
45059
|
+
Withdraw USDS for sUSDS to stop earning yield.
|
|
44925
45060
|
|
|
44926
|
-
|
|
44927
|
-
ordering when batching multiple actions into a single transaction. The authorization
|
|
44928
|
-
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
44929
|
-
targeting.`,
|
|
45061
|
+
There are no fees.`,
|
|
44930
45062
|
args: args31,
|
|
44931
45063
|
tool: async (client, args32, ctx) => {
|
|
44932
|
-
const [result, apiCall] = await
|
|
45064
|
+
const [result, apiCall] = await skyWithdraw(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44933
45065
|
if (!result.ok) {
|
|
44934
45066
|
return {
|
|
44935
45067
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44942,20 +45074,23 @@ targeting.`,
|
|
|
44942
45074
|
};
|
|
44943
45075
|
});
|
|
44944
45076
|
|
|
44945
|
-
// src/funcs/
|
|
44946
|
-
function
|
|
45077
|
+
// src/funcs/tokenAddress.ts
|
|
45078
|
+
function tokenAddress(client, request, options) {
|
|
44947
45079
|
return new APIPromise($do32(client, request, options));
|
|
44948
45080
|
}
|
|
44949
45081
|
async function $do32(client, request, options) {
|
|
44950
|
-
const parsed = safeParse(request, (value) =>
|
|
45082
|
+
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44951
45083
|
if (!parsed.ok) {
|
|
44952
45084
|
return [parsed, { status: "invalid" }];
|
|
44953
45085
|
}
|
|
44954
45086
|
const payload = parsed.value;
|
|
44955
|
-
const body =
|
|
44956
|
-
const path = pathToFunc("/v0/
|
|
45087
|
+
const body = null;
|
|
45088
|
+
const path = pathToFunc("/v0/token/address/get")();
|
|
45089
|
+
const query = encodeFormQuery({
|
|
45090
|
+
chain: payload.chain,
|
|
45091
|
+
token: payload.token
|
|
45092
|
+
});
|
|
44957
45093
|
const headers = new Headers(compactMap({
|
|
44958
|
-
"Content-Type": "application/json",
|
|
44959
45094
|
Accept: "application/json"
|
|
44960
45095
|
}));
|
|
44961
45096
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -44963,7 +45098,7 @@ async function $do32(client, request, options) {
|
|
|
44963
45098
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44964
45099
|
const context = {
|
|
44965
45100
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44966
|
-
operationID: "
|
|
45101
|
+
operationID: "token_address",
|
|
44967
45102
|
oAuth2Scopes: [],
|
|
44968
45103
|
resolvedSecurity: requestSecurity,
|
|
44969
45104
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -44972,7 +45107,534 @@ async function $do32(client, request, options) {
|
|
|
44972
45107
|
};
|
|
44973
45108
|
const requestRes = client._createRequest(context, {
|
|
44974
45109
|
security: requestSecurity,
|
|
44975
|
-
method: "
|
|
45110
|
+
method: "GET",
|
|
45111
|
+
baseURL: options?.serverURL,
|
|
45112
|
+
path,
|
|
45113
|
+
headers,
|
|
45114
|
+
query,
|
|
45115
|
+
body,
|
|
45116
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45117
|
+
}, options);
|
|
45118
|
+
if (!requestRes.ok) {
|
|
45119
|
+
return [requestRes, { status: "invalid" }];
|
|
45120
|
+
}
|
|
45121
|
+
const req = requestRes.value;
|
|
45122
|
+
const doResult = await client._do(req, {
|
|
45123
|
+
context,
|
|
45124
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
45125
|
+
retryConfig: context.retryConfig,
|
|
45126
|
+
retryCodes: context.retryCodes
|
|
45127
|
+
});
|
|
45128
|
+
if (!doResult.ok) {
|
|
45129
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45130
|
+
}
|
|
45131
|
+
const response = doResult.value;
|
|
45132
|
+
const responseFields = {
|
|
45133
|
+
HttpMeta: { Response: response, Request: req }
|
|
45134
|
+
};
|
|
45135
|
+
const [result] = await match(json(200, TokenAddressResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45136
|
+
if (!result.ok) {
|
|
45137
|
+
return [result, { status: "complete", request: req, response }];
|
|
45138
|
+
}
|
|
45139
|
+
return [result, { status: "complete", request: req, response }];
|
|
45140
|
+
}
|
|
45141
|
+
var init_tokenAddress = __esm(() => {
|
|
45142
|
+
init_encodings();
|
|
45143
|
+
init_matchers();
|
|
45144
|
+
init_primitives();
|
|
45145
|
+
init_schemas();
|
|
45146
|
+
init_security();
|
|
45147
|
+
init_url();
|
|
45148
|
+
init_components();
|
|
45149
|
+
init_errors();
|
|
45150
|
+
init_operations();
|
|
45151
|
+
init_async();
|
|
45152
|
+
});
|
|
45153
|
+
|
|
45154
|
+
// src/mcp-server/tools/tokenAddress.ts
|
|
45155
|
+
var args32, tool$tokenAddress;
|
|
45156
|
+
var init_tokenAddress2 = __esm(() => {
|
|
45157
|
+
init_tokenAddress();
|
|
45158
|
+
init_operations();
|
|
45159
|
+
init_tools();
|
|
45160
|
+
args32 = {
|
|
45161
|
+
request: TokenAddressRequest$inboundSchema
|
|
45162
|
+
};
|
|
45163
|
+
tool$tokenAddress = {
|
|
45164
|
+
name: "token-address",
|
|
45165
|
+
description: `Token Address
|
|
45166
|
+
|
|
45167
|
+
This endpoint retrieves the address for a token supported by us.`,
|
|
45168
|
+
args: args32,
|
|
45169
|
+
tool: async (client, args33, ctx) => {
|
|
45170
|
+
const [result, apiCall] = await tokenAddress(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45171
|
+
if (!result.ok) {
|
|
45172
|
+
return {
|
|
45173
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45174
|
+
isError: true
|
|
45175
|
+
};
|
|
45176
|
+
}
|
|
45177
|
+
const value = result.value;
|
|
45178
|
+
return formatResult(value, apiCall);
|
|
45179
|
+
}
|
|
45180
|
+
};
|
|
45181
|
+
});
|
|
45182
|
+
|
|
45183
|
+
// src/funcs/tokenBalance.ts
|
|
45184
|
+
function tokenBalance(client, request, options) {
|
|
45185
|
+
return new APIPromise($do33(client, request, options));
|
|
45186
|
+
}
|
|
45187
|
+
async function $do33(client, request, options) {
|
|
45188
|
+
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45189
|
+
if (!parsed.ok) {
|
|
45190
|
+
return [parsed, { status: "invalid" }];
|
|
45191
|
+
}
|
|
45192
|
+
const payload = parsed.value;
|
|
45193
|
+
const body = null;
|
|
45194
|
+
const path = pathToFunc("/v0/token/balance/get")();
|
|
45195
|
+
const query = encodeFormQuery({
|
|
45196
|
+
chain: payload.chain,
|
|
45197
|
+
token: payload.token,
|
|
45198
|
+
user: payload.user
|
|
45199
|
+
});
|
|
45200
|
+
const headers = new Headers(compactMap({
|
|
45201
|
+
Accept: "application/json"
|
|
45202
|
+
}));
|
|
45203
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45204
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45205
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45206
|
+
const context = {
|
|
45207
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45208
|
+
operationID: "token_balance",
|
|
45209
|
+
oAuth2Scopes: [],
|
|
45210
|
+
resolvedSecurity: requestSecurity,
|
|
45211
|
+
securitySource: client._options.apiKeyAuth,
|
|
45212
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45213
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45214
|
+
};
|
|
45215
|
+
const requestRes = client._createRequest(context, {
|
|
45216
|
+
security: requestSecurity,
|
|
45217
|
+
method: "GET",
|
|
45218
|
+
baseURL: options?.serverURL,
|
|
45219
|
+
path,
|
|
45220
|
+
headers,
|
|
45221
|
+
query,
|
|
45222
|
+
body,
|
|
45223
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45224
|
+
}, options);
|
|
45225
|
+
if (!requestRes.ok) {
|
|
45226
|
+
return [requestRes, { status: "invalid" }];
|
|
45227
|
+
}
|
|
45228
|
+
const req = requestRes.value;
|
|
45229
|
+
const doResult = await client._do(req, {
|
|
45230
|
+
context,
|
|
45231
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
45232
|
+
retryConfig: context.retryConfig,
|
|
45233
|
+
retryCodes: context.retryCodes
|
|
45234
|
+
});
|
|
45235
|
+
if (!doResult.ok) {
|
|
45236
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45237
|
+
}
|
|
45238
|
+
const response = doResult.value;
|
|
45239
|
+
const responseFields = {
|
|
45240
|
+
HttpMeta: { Response: response, Request: req }
|
|
45241
|
+
};
|
|
45242
|
+
const [result] = await match(json(200, TokenBalanceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45243
|
+
if (!result.ok) {
|
|
45244
|
+
return [result, { status: "complete", request: req, response }];
|
|
45245
|
+
}
|
|
45246
|
+
return [result, { status: "complete", request: req, response }];
|
|
45247
|
+
}
|
|
45248
|
+
var init_tokenBalance = __esm(() => {
|
|
45249
|
+
init_encodings();
|
|
45250
|
+
init_matchers();
|
|
45251
|
+
init_primitives();
|
|
45252
|
+
init_schemas();
|
|
45253
|
+
init_security();
|
|
45254
|
+
init_url();
|
|
45255
|
+
init_components();
|
|
45256
|
+
init_errors();
|
|
45257
|
+
init_operations();
|
|
45258
|
+
init_async();
|
|
45259
|
+
});
|
|
45260
|
+
|
|
45261
|
+
// src/mcp-server/tools/tokenBalance.ts
|
|
45262
|
+
var args33, tool$tokenBalance;
|
|
45263
|
+
var init_tokenBalance2 = __esm(() => {
|
|
45264
|
+
init_tokenBalance();
|
|
45265
|
+
init_operations();
|
|
45266
|
+
init_tools();
|
|
45267
|
+
args33 = {
|
|
45268
|
+
request: TokenBalanceRequest$inboundSchema
|
|
45269
|
+
};
|
|
45270
|
+
tool$tokenBalance = {
|
|
45271
|
+
name: "token-balance",
|
|
45272
|
+
description: `Token Balance
|
|
45273
|
+
|
|
45274
|
+
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
45275
|
+
args: args33,
|
|
45276
|
+
tool: async (client, args34, ctx) => {
|
|
45277
|
+
const [result, apiCall] = await tokenBalance(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45278
|
+
if (!result.ok) {
|
|
45279
|
+
return {
|
|
45280
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45281
|
+
isError: true
|
|
45282
|
+
};
|
|
45283
|
+
}
|
|
45284
|
+
const value = result.value;
|
|
45285
|
+
return formatResult(value, apiCall);
|
|
45286
|
+
}
|
|
45287
|
+
};
|
|
45288
|
+
});
|
|
45289
|
+
|
|
45290
|
+
// src/funcs/tokenPrice.ts
|
|
45291
|
+
function tokenPrice(client, request, options) {
|
|
45292
|
+
return new APIPromise($do34(client, request, options));
|
|
45293
|
+
}
|
|
45294
|
+
async function $do34(client, request, options) {
|
|
45295
|
+
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45296
|
+
if (!parsed.ok) {
|
|
45297
|
+
return [parsed, { status: "invalid" }];
|
|
45298
|
+
}
|
|
45299
|
+
const payload = parsed.value;
|
|
45300
|
+
const body = null;
|
|
45301
|
+
const path = pathToFunc("/v0/token/price/get")();
|
|
45302
|
+
const query = encodeFormQuery({
|
|
45303
|
+
chain: payload.chain,
|
|
45304
|
+
token: payload.token
|
|
45305
|
+
});
|
|
45306
|
+
const headers = new Headers(compactMap({
|
|
45307
|
+
Accept: "application/json"
|
|
45308
|
+
}));
|
|
45309
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45310
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45311
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45312
|
+
const context = {
|
|
45313
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45314
|
+
operationID: "token_price",
|
|
45315
|
+
oAuth2Scopes: [],
|
|
45316
|
+
resolvedSecurity: requestSecurity,
|
|
45317
|
+
securitySource: client._options.apiKeyAuth,
|
|
45318
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45319
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45320
|
+
};
|
|
45321
|
+
const requestRes = client._createRequest(context, {
|
|
45322
|
+
security: requestSecurity,
|
|
45323
|
+
method: "GET",
|
|
45324
|
+
baseURL: options?.serverURL,
|
|
45325
|
+
path,
|
|
45326
|
+
headers,
|
|
45327
|
+
query,
|
|
45328
|
+
body,
|
|
45329
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45330
|
+
}, options);
|
|
45331
|
+
if (!requestRes.ok) {
|
|
45332
|
+
return [requestRes, { status: "invalid" }];
|
|
45333
|
+
}
|
|
45334
|
+
const req = requestRes.value;
|
|
45335
|
+
const doResult = await client._do(req, {
|
|
45336
|
+
context,
|
|
45337
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
45338
|
+
retryConfig: context.retryConfig,
|
|
45339
|
+
retryCodes: context.retryCodes
|
|
45340
|
+
});
|
|
45341
|
+
if (!doResult.ok) {
|
|
45342
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45343
|
+
}
|
|
45344
|
+
const response = doResult.value;
|
|
45345
|
+
const responseFields = {
|
|
45346
|
+
HttpMeta: { Response: response, Request: req }
|
|
45347
|
+
};
|
|
45348
|
+
const [result] = await match(json(200, TokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45349
|
+
if (!result.ok) {
|
|
45350
|
+
return [result, { status: "complete", request: req, response }];
|
|
45351
|
+
}
|
|
45352
|
+
return [result, { status: "complete", request: req, response }];
|
|
45353
|
+
}
|
|
45354
|
+
var init_tokenPrice = __esm(() => {
|
|
45355
|
+
init_encodings();
|
|
45356
|
+
init_matchers();
|
|
45357
|
+
init_primitives();
|
|
45358
|
+
init_schemas();
|
|
45359
|
+
init_security();
|
|
45360
|
+
init_url();
|
|
45361
|
+
init_components();
|
|
45362
|
+
init_errors();
|
|
45363
|
+
init_operations();
|
|
45364
|
+
init_async();
|
|
45365
|
+
});
|
|
45366
|
+
|
|
45367
|
+
// src/mcp-server/tools/tokenPrice.ts
|
|
45368
|
+
var args34, tool$tokenPrice;
|
|
45369
|
+
var init_tokenPrice2 = __esm(() => {
|
|
45370
|
+
init_tokenPrice();
|
|
45371
|
+
init_operations();
|
|
45372
|
+
init_tools();
|
|
45373
|
+
args34 = {
|
|
45374
|
+
request: TokenPriceRequest$inboundSchema
|
|
45375
|
+
};
|
|
45376
|
+
tool$tokenPrice = {
|
|
45377
|
+
name: "token-price",
|
|
45378
|
+
description: `Token Price
|
|
45379
|
+
|
|
45380
|
+
Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
45381
|
+
|
|
45382
|
+
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
45383
|
+
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
45384
|
+
with the update frequency of the oracle.`,
|
|
45385
|
+
args: args34,
|
|
45386
|
+
tool: async (client, args35, ctx) => {
|
|
45387
|
+
const [result, apiCall] = await tokenPrice(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45388
|
+
if (!result.ok) {
|
|
45389
|
+
return {
|
|
45390
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45391
|
+
isError: true
|
|
45392
|
+
};
|
|
45393
|
+
}
|
|
45394
|
+
const value = result.value;
|
|
45395
|
+
return formatResult(value, apiCall);
|
|
45396
|
+
}
|
|
45397
|
+
};
|
|
45398
|
+
});
|
|
45399
|
+
|
|
45400
|
+
// src/funcs/tokenTransfer.ts
|
|
45401
|
+
function tokenTransfer(client, request, options) {
|
|
45402
|
+
return new APIPromise($do35(client, request, options));
|
|
45403
|
+
}
|
|
45404
|
+
async function $do35(client, request, options) {
|
|
45405
|
+
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45406
|
+
if (!parsed.ok) {
|
|
45407
|
+
return [parsed, { status: "invalid" }];
|
|
45408
|
+
}
|
|
45409
|
+
const payload = parsed.value;
|
|
45410
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
45411
|
+
const path = pathToFunc("/v0/token/transfer")();
|
|
45412
|
+
const headers = new Headers(compactMap({
|
|
45413
|
+
"Content-Type": "application/json",
|
|
45414
|
+
Accept: "application/json"
|
|
45415
|
+
}));
|
|
45416
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45417
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45418
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45419
|
+
const context = {
|
|
45420
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45421
|
+
operationID: "token_transfer",
|
|
45422
|
+
oAuth2Scopes: [],
|
|
45423
|
+
resolvedSecurity: requestSecurity,
|
|
45424
|
+
securitySource: client._options.apiKeyAuth,
|
|
45425
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45426
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45427
|
+
};
|
|
45428
|
+
const requestRes = client._createRequest(context, {
|
|
45429
|
+
security: requestSecurity,
|
|
45430
|
+
method: "POST",
|
|
45431
|
+
baseURL: options?.serverURL,
|
|
45432
|
+
path,
|
|
45433
|
+
headers,
|
|
45434
|
+
body,
|
|
45435
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45436
|
+
}, options);
|
|
45437
|
+
if (!requestRes.ok) {
|
|
45438
|
+
return [requestRes, { status: "invalid" }];
|
|
45439
|
+
}
|
|
45440
|
+
const req = requestRes.value;
|
|
45441
|
+
const doResult = await client._do(req, {
|
|
45442
|
+
context,
|
|
45443
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
45444
|
+
retryConfig: context.retryConfig,
|
|
45445
|
+
retryCodes: context.retryCodes
|
|
45446
|
+
});
|
|
45447
|
+
if (!doResult.ok) {
|
|
45448
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45449
|
+
}
|
|
45450
|
+
const response = doResult.value;
|
|
45451
|
+
const responseFields = {
|
|
45452
|
+
HttpMeta: { Response: response, Request: req }
|
|
45453
|
+
};
|
|
45454
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45455
|
+
if (!result.ok) {
|
|
45456
|
+
return [result, { status: "complete", request: req, response }];
|
|
45457
|
+
}
|
|
45458
|
+
return [result, { status: "complete", request: req, response }];
|
|
45459
|
+
}
|
|
45460
|
+
var init_tokenTransfer = __esm(() => {
|
|
45461
|
+
init_encodings();
|
|
45462
|
+
init_matchers();
|
|
45463
|
+
init_primitives();
|
|
45464
|
+
init_schemas();
|
|
45465
|
+
init_security();
|
|
45466
|
+
init_url();
|
|
45467
|
+
init_components();
|
|
45468
|
+
init_errors();
|
|
45469
|
+
init_async();
|
|
45470
|
+
});
|
|
45471
|
+
|
|
45472
|
+
// src/mcp-server/tools/tokenTransfer.ts
|
|
45473
|
+
var args35, tool$tokenTransfer;
|
|
45474
|
+
var init_tokenTransfer2 = __esm(() => {
|
|
45475
|
+
init_tokenTransfer();
|
|
45476
|
+
init_components();
|
|
45477
|
+
init_tools();
|
|
45478
|
+
args35 = {
|
|
45479
|
+
request: TokenTransferRequest$inboundSchema
|
|
45480
|
+
};
|
|
45481
|
+
tool$tokenTransfer = {
|
|
45482
|
+
name: "token-transfer",
|
|
45483
|
+
description: `Transfer ETH or ERC20 Tokens
|
|
45484
|
+
|
|
45485
|
+
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
45486
|
+
args: args35,
|
|
45487
|
+
tool: async (client, args36, ctx) => {
|
|
45488
|
+
const [result, apiCall] = await tokenTransfer(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45489
|
+
if (!result.ok) {
|
|
45490
|
+
return {
|
|
45491
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45492
|
+
isError: true
|
|
45493
|
+
};
|
|
45494
|
+
}
|
|
45495
|
+
const value = result.value;
|
|
45496
|
+
return formatResult(value, apiCall);
|
|
45497
|
+
}
|
|
45498
|
+
};
|
|
45499
|
+
});
|
|
45500
|
+
|
|
45501
|
+
// src/funcs/transactionBatchingAuthorization.ts
|
|
45502
|
+
function transactionBatchingAuthorization(client, request, options) {
|
|
45503
|
+
return new APIPromise($do36(client, request, options));
|
|
45504
|
+
}
|
|
45505
|
+
async function $do36(client, request, options) {
|
|
45506
|
+
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45507
|
+
if (!parsed.ok) {
|
|
45508
|
+
return [parsed, { status: "invalid" }];
|
|
45509
|
+
}
|
|
45510
|
+
const payload = parsed.value;
|
|
45511
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
45512
|
+
const path = pathToFunc("/v0/multicall/authorization")();
|
|
45513
|
+
const headers = new Headers(compactMap({
|
|
45514
|
+
"Content-Type": "application/json",
|
|
45515
|
+
Accept: "application/json"
|
|
45516
|
+
}));
|
|
45517
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45518
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45519
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45520
|
+
const context = {
|
|
45521
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45522
|
+
operationID: "multicall_authorization",
|
|
45523
|
+
oAuth2Scopes: [],
|
|
45524
|
+
resolvedSecurity: requestSecurity,
|
|
45525
|
+
securitySource: client._options.apiKeyAuth,
|
|
45526
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45527
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45528
|
+
};
|
|
45529
|
+
const requestRes = client._createRequest(context, {
|
|
45530
|
+
security: requestSecurity,
|
|
45531
|
+
method: "POST",
|
|
45532
|
+
baseURL: options?.serverURL,
|
|
45533
|
+
path,
|
|
45534
|
+
headers,
|
|
45535
|
+
body,
|
|
45536
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45537
|
+
}, options);
|
|
45538
|
+
if (!requestRes.ok) {
|
|
45539
|
+
return [requestRes, { status: "invalid" }];
|
|
45540
|
+
}
|
|
45541
|
+
const req = requestRes.value;
|
|
45542
|
+
const doResult = await client._do(req, {
|
|
45543
|
+
context,
|
|
45544
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
45545
|
+
retryConfig: context.retryConfig,
|
|
45546
|
+
retryCodes: context.retryCodes
|
|
45547
|
+
});
|
|
45548
|
+
if (!doResult.ok) {
|
|
45549
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45550
|
+
}
|
|
45551
|
+
const response = doResult.value;
|
|
45552
|
+
const responseFields = {
|
|
45553
|
+
HttpMeta: { Response: response, Request: req }
|
|
45554
|
+
};
|
|
45555
|
+
const [result] = await match(json(200, MulticallAuthorizationResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45556
|
+
if (!result.ok) {
|
|
45557
|
+
return [result, { status: "complete", request: req, response }];
|
|
45558
|
+
}
|
|
45559
|
+
return [result, { status: "complete", request: req, response }];
|
|
45560
|
+
}
|
|
45561
|
+
var init_transactionBatchingAuthorization = __esm(() => {
|
|
45562
|
+
init_encodings();
|
|
45563
|
+
init_matchers();
|
|
45564
|
+
init_primitives();
|
|
45565
|
+
init_schemas();
|
|
45566
|
+
init_security();
|
|
45567
|
+
init_url();
|
|
45568
|
+
init_components();
|
|
45569
|
+
init_errors();
|
|
45570
|
+
init_async();
|
|
45571
|
+
});
|
|
45572
|
+
|
|
45573
|
+
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
45574
|
+
var args36, tool$transactionBatchingAuthorization;
|
|
45575
|
+
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
45576
|
+
init_transactionBatchingAuthorization();
|
|
45577
|
+
init_components();
|
|
45578
|
+
init_tools();
|
|
45579
|
+
args36 = {
|
|
45580
|
+
request: MulticallAuthorizationRequest$inboundSchema
|
|
45581
|
+
};
|
|
45582
|
+
tool$transactionBatchingAuthorization = {
|
|
45583
|
+
name: "transaction-batching-authorization",
|
|
45584
|
+
description: `Get EIP-7702 Authorization
|
|
45585
|
+
|
|
45586
|
+
Get authorization data for EIP-7702 batching operations.
|
|
45587
|
+
|
|
45588
|
+
This authorization is required to prevent replay attacks and ensure transaction
|
|
45589
|
+
ordering when batching multiple actions into a single transaction. The authorization
|
|
45590
|
+
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
45591
|
+
targeting.`,
|
|
45592
|
+
args: args36,
|
|
45593
|
+
tool: async (client, args37, ctx) => {
|
|
45594
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45595
|
+
if (!result.ok) {
|
|
45596
|
+
return {
|
|
45597
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45598
|
+
isError: true
|
|
45599
|
+
};
|
|
45600
|
+
}
|
|
45601
|
+
const value = result.value;
|
|
45602
|
+
return formatResult(value, apiCall);
|
|
45603
|
+
}
|
|
45604
|
+
};
|
|
45605
|
+
});
|
|
45606
|
+
|
|
45607
|
+
// src/funcs/transactionBatchingExecute.ts
|
|
45608
|
+
function transactionBatchingExecute(client, request, options) {
|
|
45609
|
+
return new APIPromise($do37(client, request, options));
|
|
45610
|
+
}
|
|
45611
|
+
async function $do37(client, request, options) {
|
|
45612
|
+
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45613
|
+
if (!parsed.ok) {
|
|
45614
|
+
return [parsed, { status: "invalid" }];
|
|
45615
|
+
}
|
|
45616
|
+
const payload = parsed.value;
|
|
45617
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
45618
|
+
const path = pathToFunc("/v0/multicall/execute")();
|
|
45619
|
+
const headers = new Headers(compactMap({
|
|
45620
|
+
"Content-Type": "application/json",
|
|
45621
|
+
Accept: "application/json"
|
|
45622
|
+
}));
|
|
45623
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
45624
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
45625
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45626
|
+
const context = {
|
|
45627
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45628
|
+
operationID: "multicall_execute",
|
|
45629
|
+
oAuth2Scopes: [],
|
|
45630
|
+
resolvedSecurity: requestSecurity,
|
|
45631
|
+
securitySource: client._options.apiKeyAuth,
|
|
45632
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45633
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45634
|
+
};
|
|
45635
|
+
const requestRes = client._createRequest(context, {
|
|
45636
|
+
security: requestSecurity,
|
|
45637
|
+
method: "POST",
|
|
44976
45638
|
baseURL: options?.serverURL,
|
|
44977
45639
|
path,
|
|
44978
45640
|
headers,
|
|
@@ -45015,12 +45677,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
45015
45677
|
});
|
|
45016
45678
|
|
|
45017
45679
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
45018
|
-
var
|
|
45680
|
+
var args37, tool$transactionBatchingExecute;
|
|
45019
45681
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
45020
45682
|
init_transactionBatchingExecute();
|
|
45021
45683
|
init_components();
|
|
45022
45684
|
init_tools();
|
|
45023
|
-
|
|
45685
|
+
args37 = {
|
|
45024
45686
|
request: MulticallExecuteRequest$inboundSchema
|
|
45025
45687
|
};
|
|
45026
45688
|
tool$transactionBatchingExecute = {
|
|
@@ -45033,9 +45695,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
45033
45695
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
45034
45696
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
45035
45697
|
prevent replay attacks.`,
|
|
45036
|
-
args:
|
|
45037
|
-
tool: async (client,
|
|
45038
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
45698
|
+
args: args37,
|
|
45699
|
+
tool: async (client, args38, ctx) => {
|
|
45700
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45039
45701
|
if (!result.ok) {
|
|
45040
45702
|
return {
|
|
45041
45703
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45050,9 +45712,9 @@ prevent replay attacks.`,
|
|
|
45050
45712
|
|
|
45051
45713
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
45052
45714
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
45053
|
-
return new APIPromise($
|
|
45715
|
+
return new APIPromise($do38(client, request, options));
|
|
45054
45716
|
}
|
|
45055
|
-
async function $
|
|
45717
|
+
async function $do38(client, request, options) {
|
|
45056
45718
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45057
45719
|
if (!parsed.ok) {
|
|
45058
45720
|
return [parsed, { status: "invalid" }];
|
|
@@ -45121,12 +45783,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
45121
45783
|
});
|
|
45122
45784
|
|
|
45123
45785
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
45124
|
-
var
|
|
45786
|
+
var args38, tool$uniswapV3LiquidityProvisionIncrease;
|
|
45125
45787
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
45126
45788
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
45127
45789
|
init_components();
|
|
45128
45790
|
init_tools();
|
|
45129
|
-
|
|
45791
|
+
args38 = {
|
|
45130
45792
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
45131
45793
|
};
|
|
45132
45794
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -45142,9 +45804,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
45142
45804
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
45143
45805
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
45144
45806
|
process.`,
|
|
45145
|
-
args:
|
|
45146
|
-
tool: async (client,
|
|
45147
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
45807
|
+
args: args38,
|
|
45808
|
+
tool: async (client, args39, ctx) => {
|
|
45809
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45148
45810
|
if (!result.ok) {
|
|
45149
45811
|
return {
|
|
45150
45812
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45159,9 +45821,9 @@ process.`,
|
|
|
45159
45821
|
|
|
45160
45822
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
45161
45823
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
45162
|
-
return new APIPromise($
|
|
45824
|
+
return new APIPromise($do39(client, request, options));
|
|
45163
45825
|
}
|
|
45164
|
-
async function $
|
|
45826
|
+
async function $do39(client, request, options) {
|
|
45165
45827
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45166
45828
|
if (!parsed.ok) {
|
|
45167
45829
|
return [parsed, { status: "invalid" }];
|
|
@@ -45235,12 +45897,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
45235
45897
|
});
|
|
45236
45898
|
|
|
45237
45899
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
45238
|
-
var
|
|
45900
|
+
var args39, tool$uniswapV3LiquidityProvisionInRange;
|
|
45239
45901
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
45240
45902
|
init_uniswapV3LiquidityProvisionInRange();
|
|
45241
45903
|
init_operations();
|
|
45242
45904
|
init_tools();
|
|
45243
|
-
|
|
45905
|
+
args39 = {
|
|
45244
45906
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
45245
45907
|
};
|
|
45246
45908
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -45255,9 +45917,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
45255
45917
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
45256
45918
|
they are actively participating in the trading activities within the liquidity pool
|
|
45257
45919
|
and earning trading fees.`,
|
|
45258
|
-
args:
|
|
45259
|
-
tool: async (client,
|
|
45260
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
45920
|
+
args: args39,
|
|
45921
|
+
tool: async (client, args40, ctx) => {
|
|
45922
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45261
45923
|
if (!result.ok) {
|
|
45262
45924
|
return {
|
|
45263
45925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45272,9 +45934,9 @@ and earning trading fees.`,
|
|
|
45272
45934
|
|
|
45273
45935
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
45274
45936
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
45275
|
-
return new APIPromise($
|
|
45937
|
+
return new APIPromise($do40(client, request, options));
|
|
45276
45938
|
}
|
|
45277
|
-
async function $
|
|
45939
|
+
async function $do40(client, request, options) {
|
|
45278
45940
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45279
45941
|
if (!parsed.ok) {
|
|
45280
45942
|
return [parsed, { status: "invalid" }];
|
|
@@ -45343,12 +46005,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
45343
46005
|
});
|
|
45344
46006
|
|
|
45345
46007
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
45346
|
-
var
|
|
46008
|
+
var args40, tool$uniswapV3LiquidityProvisionMint;
|
|
45347
46009
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
45348
46010
|
init_uniswapV3LiquidityProvisionMint();
|
|
45349
46011
|
init_components();
|
|
45350
46012
|
init_tools();
|
|
45351
|
-
|
|
46013
|
+
args40 = {
|
|
45352
46014
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
45353
46015
|
};
|
|
45354
46016
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -45364,9 +46026,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
45364
46026
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
45365
46027
|
requires details such as the token pair, amount, and any additional parameters
|
|
45366
46028
|
needed for the minting process.`,
|
|
45367
|
-
args:
|
|
45368
|
-
tool: async (client,
|
|
45369
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
46029
|
+
args: args40,
|
|
46030
|
+
tool: async (client, args41, ctx) => {
|
|
46031
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45370
46032
|
if (!result.ok) {
|
|
45371
46033
|
return {
|
|
45372
46034
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45381,9 +46043,9 @@ needed for the minting process.`,
|
|
|
45381
46043
|
|
|
45382
46044
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
45383
46045
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
45384
|
-
return new APIPromise($
|
|
46046
|
+
return new APIPromise($do41(client, request, options));
|
|
45385
46047
|
}
|
|
45386
|
-
async function $
|
|
46048
|
+
async function $do41(client, request, options) {
|
|
45387
46049
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45388
46050
|
if (!parsed.ok) {
|
|
45389
46051
|
return [parsed, { status: "invalid" }];
|
|
@@ -45457,12 +46119,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
45457
46119
|
});
|
|
45458
46120
|
|
|
45459
46121
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
45460
|
-
var
|
|
46122
|
+
var args41, tool$uniswapV3LiquidityProvisionPositions;
|
|
45461
46123
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
45462
46124
|
init_uniswapV3LiquidityProvisionPositions();
|
|
45463
46125
|
init_operations();
|
|
45464
46126
|
init_tools();
|
|
45465
|
-
|
|
46127
|
+
args41 = {
|
|
45466
46128
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
45467
46129
|
};
|
|
45468
46130
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -45476,9 +46138,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
45476
46138
|
positions, including the total number of positions and relevant metadata. This
|
|
45477
46139
|
information is crucial for users to manage and analyze their liquidity provision
|
|
45478
46140
|
activities effectively.`,
|
|
45479
|
-
args:
|
|
45480
|
-
tool: async (client,
|
|
45481
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
46141
|
+
args: args41,
|
|
46142
|
+
tool: async (client, args42, ctx) => {
|
|
46143
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45482
46144
|
if (!result.ok) {
|
|
45483
46145
|
return {
|
|
45484
46146
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45493,9 +46155,9 @@ activities effectively.`,
|
|
|
45493
46155
|
|
|
45494
46156
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
45495
46157
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
45496
|
-
return new APIPromise($
|
|
46158
|
+
return new APIPromise($do42(client, request, options));
|
|
45497
46159
|
}
|
|
45498
|
-
async function $
|
|
46160
|
+
async function $do42(client, request, options) {
|
|
45499
46161
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45500
46162
|
if (!parsed.ok) {
|
|
45501
46163
|
return [parsed, { status: "invalid" }];
|
|
@@ -45564,12 +46226,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
45564
46226
|
});
|
|
45565
46227
|
|
|
45566
46228
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
45567
|
-
var
|
|
46229
|
+
var args42, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
45568
46230
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
45569
46231
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
45570
46232
|
init_components();
|
|
45571
46233
|
init_tools();
|
|
45572
|
-
|
|
46234
|
+
args42 = {
|
|
45573
46235
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
45574
46236
|
};
|
|
45575
46237
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -45586,9 +46248,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
45586
46248
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
45587
46249
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
45588
46250
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
45589
|
-
args:
|
|
45590
|
-
tool: async (client,
|
|
45591
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
46251
|
+
args: args42,
|
|
46252
|
+
tool: async (client, args43, ctx) => {
|
|
46253
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45592
46254
|
if (!result.ok) {
|
|
45593
46255
|
return {
|
|
45594
46256
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45603,9 +46265,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
45603
46265
|
|
|
45604
46266
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
45605
46267
|
function uniswapV3PoolPrice(client, request, options) {
|
|
45606
|
-
return new APIPromise($
|
|
46268
|
+
return new APIPromise($do43(client, request, options));
|
|
45607
46269
|
}
|
|
45608
|
-
async function $
|
|
46270
|
+
async function $do43(client, request, options) {
|
|
45609
46271
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45610
46272
|
if (!parsed.ok) {
|
|
45611
46273
|
return [parsed, { status: "invalid" }];
|
|
@@ -45681,12 +46343,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
45681
46343
|
});
|
|
45682
46344
|
|
|
45683
46345
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
45684
|
-
var
|
|
46346
|
+
var args43, tool$uniswapV3PoolPrice;
|
|
45685
46347
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
45686
46348
|
init_uniswapV3PoolPrice();
|
|
45687
46349
|
init_operations();
|
|
45688
46350
|
init_tools();
|
|
45689
|
-
|
|
46351
|
+
args43 = {
|
|
45690
46352
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
45691
46353
|
};
|
|
45692
46354
|
tool$uniswapV3PoolPrice = {
|
|
@@ -45696,9 +46358,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
45696
46358
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
45697
46359
|
|
|
45698
46360
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
45699
|
-
args:
|
|
45700
|
-
tool: async (client,
|
|
45701
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
46361
|
+
args: args43,
|
|
46362
|
+
tool: async (client, args44, ctx) => {
|
|
46363
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45702
46364
|
if (!result.ok) {
|
|
45703
46365
|
return {
|
|
45704
46366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45713,9 +46375,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
45713
46375
|
|
|
45714
46376
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
45715
46377
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
45716
|
-
return new APIPromise($
|
|
46378
|
+
return new APIPromise($do44(client, request, options));
|
|
45717
46379
|
}
|
|
45718
|
-
async function $
|
|
46380
|
+
async function $do44(client, request, options) {
|
|
45719
46381
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45720
46382
|
if (!parsed.ok) {
|
|
45721
46383
|
return [parsed, { status: "invalid" }];
|
|
@@ -45792,12 +46454,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
45792
46454
|
});
|
|
45793
46455
|
|
|
45794
46456
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
45795
|
-
var
|
|
46457
|
+
var args44, tool$uniswapV3QuoteBuyExactly;
|
|
45796
46458
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
45797
46459
|
init_uniswapV3QuoteBuyExactly();
|
|
45798
46460
|
init_operations();
|
|
45799
46461
|
init_tools();
|
|
45800
|
-
|
|
46462
|
+
args44 = {
|
|
45801
46463
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
45802
46464
|
};
|
|
45803
46465
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -45809,9 +46471,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
45809
46471
|
|
|
45810
46472
|
It also provides the resulting price after the transaction. The calculation takes
|
|
45811
46473
|
into account the current pool state and the specified fee tier.`,
|
|
45812
|
-
args:
|
|
45813
|
-
tool: async (client,
|
|
45814
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
46474
|
+
args: args44,
|
|
46475
|
+
tool: async (client, args45, ctx) => {
|
|
46476
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45815
46477
|
if (!result.ok) {
|
|
45816
46478
|
return {
|
|
45817
46479
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45826,9 +46488,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
45826
46488
|
|
|
45827
46489
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
45828
46490
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
45829
|
-
return new APIPromise($
|
|
46491
|
+
return new APIPromise($do45(client, request, options));
|
|
45830
46492
|
}
|
|
45831
|
-
async function $
|
|
46493
|
+
async function $do45(client, request, options) {
|
|
45832
46494
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45833
46495
|
if (!parsed.ok) {
|
|
45834
46496
|
return [parsed, { status: "invalid" }];
|
|
@@ -45905,12 +46567,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
45905
46567
|
});
|
|
45906
46568
|
|
|
45907
46569
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
45908
|
-
var
|
|
46570
|
+
var args45, tool$uniswapV3QuoteSellExactly;
|
|
45909
46571
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
45910
46572
|
init_uniswapV3QuoteSellExactly();
|
|
45911
46573
|
init_operations();
|
|
45912
46574
|
init_tools();
|
|
45913
|
-
|
|
46575
|
+
args45 = {
|
|
45914
46576
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
45915
46577
|
};
|
|
45916
46578
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -45922,9 +46584,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
45922
46584
|
|
|
45923
46585
|
It also provides the resulting price after the transaction. The calculation takes
|
|
45924
46586
|
into account the current pool state and the specified fee tier.`,
|
|
45925
|
-
args:
|
|
45926
|
-
tool: async (client,
|
|
45927
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
46587
|
+
args: args45,
|
|
46588
|
+
tool: async (client, args46, ctx) => {
|
|
46589
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45928
46590
|
if (!result.ok) {
|
|
45929
46591
|
return {
|
|
45930
46592
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45939,9 +46601,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
45939
46601
|
|
|
45940
46602
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
45941
46603
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
45942
|
-
return new APIPromise($
|
|
46604
|
+
return new APIPromise($do46(client, request, options));
|
|
45943
46605
|
}
|
|
45944
|
-
async function $
|
|
46606
|
+
async function $do46(client, request, options) {
|
|
45945
46607
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45946
46608
|
if (!parsed.ok) {
|
|
45947
46609
|
return [parsed, { status: "invalid" }];
|
|
@@ -46010,12 +46672,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
46010
46672
|
});
|
|
46011
46673
|
|
|
46012
46674
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
46013
|
-
var
|
|
46675
|
+
var args46, tool$uniswapV3SwapBuyExactly;
|
|
46014
46676
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
46015
46677
|
init_uniswapV3SwapBuyExactly();
|
|
46016
46678
|
init_components();
|
|
46017
46679
|
init_tools();
|
|
46018
|
-
|
|
46680
|
+
args46 = {
|
|
46019
46681
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
46020
46682
|
};
|
|
46021
46683
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -46029,9 +46691,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
46029
46691
|
provide the necessary transaction details, including the token to buy, the token to
|
|
46030
46692
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
46031
46693
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
46032
|
-
args:
|
|
46033
|
-
tool: async (client,
|
|
46034
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
46694
|
+
args: args46,
|
|
46695
|
+
tool: async (client, args47, ctx) => {
|
|
46696
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46035
46697
|
if (!result.ok) {
|
|
46036
46698
|
return {
|
|
46037
46699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46046,9 +46708,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
46046
46708
|
|
|
46047
46709
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
46048
46710
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
46049
|
-
return new APIPromise($
|
|
46711
|
+
return new APIPromise($do47(client, request, options));
|
|
46050
46712
|
}
|
|
46051
|
-
async function $
|
|
46713
|
+
async function $do47(client, request, options) {
|
|
46052
46714
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46053
46715
|
if (!parsed.ok) {
|
|
46054
46716
|
return [parsed, { status: "invalid" }];
|
|
@@ -46117,12 +46779,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
46117
46779
|
});
|
|
46118
46780
|
|
|
46119
46781
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
46120
|
-
var
|
|
46782
|
+
var args47, tool$uniswapV3SwapSellExactly;
|
|
46121
46783
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
46122
46784
|
init_uniswapV3SwapSellExactly();
|
|
46123
46785
|
init_components();
|
|
46124
46786
|
init_tools();
|
|
46125
|
-
|
|
46787
|
+
args47 = {
|
|
46126
46788
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
46127
46789
|
};
|
|
46128
46790
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -46136,9 +46798,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
46136
46798
|
provide the necessary transaction details, including the token to sell, the token to
|
|
46137
46799
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
46138
46800
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
46139
|
-
args:
|
|
46140
|
-
tool: async (client,
|
|
46141
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
46801
|
+
args: args47,
|
|
46802
|
+
tool: async (client, args48, ctx) => {
|
|
46803
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46142
46804
|
if (!result.ok) {
|
|
46143
46805
|
return {
|
|
46144
46806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46153,9 +46815,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
46153
46815
|
|
|
46154
46816
|
// src/funcs/universalAllowance.ts
|
|
46155
46817
|
function universalAllowance(client, request, options) {
|
|
46156
|
-
return new APIPromise($
|
|
46818
|
+
return new APIPromise($do48(client, request, options));
|
|
46157
46819
|
}
|
|
46158
|
-
async function $
|
|
46820
|
+
async function $do48(client, request, options) {
|
|
46159
46821
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46160
46822
|
if (!parsed.ok) {
|
|
46161
46823
|
return [parsed, { status: "invalid" }];
|
|
@@ -46231,12 +46893,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
46231
46893
|
});
|
|
46232
46894
|
|
|
46233
46895
|
// src/mcp-server/tools/universalAllowance.ts
|
|
46234
|
-
var
|
|
46896
|
+
var args48, tool$universalAllowance;
|
|
46235
46897
|
var init_universalAllowance2 = __esm(() => {
|
|
46236
46898
|
init_universalAllowance();
|
|
46237
46899
|
init_operations();
|
|
46238
46900
|
init_tools();
|
|
46239
|
-
|
|
46901
|
+
args48 = {
|
|
46240
46902
|
request: GenericAllowanceRequest$inboundSchema
|
|
46241
46903
|
};
|
|
46242
46904
|
tool$universalAllowance = {
|
|
@@ -46250,9 +46912,9 @@ tokens on their behalf.
|
|
|
46250
46912
|
This is a crucial step before engaging in any transactions or operations within
|
|
46251
46913
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
46252
46914
|
the user's tokens securely and efficiently.`,
|
|
46253
|
-
args:
|
|
46254
|
-
tool: async (client,
|
|
46255
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
46915
|
+
args: args48,
|
|
46916
|
+
tool: async (client, args49, ctx) => {
|
|
46917
|
+
const [result, apiCall] = await universalAllowance(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46256
46918
|
if (!result.ok) {
|
|
46257
46919
|
return {
|
|
46258
46920
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46267,9 +46929,9 @@ the user's tokens securely and efficiently.`,
|
|
|
46267
46929
|
|
|
46268
46930
|
// src/funcs/universalAllowanceSet.ts
|
|
46269
46931
|
function universalAllowanceSet(client, request, options) {
|
|
46270
|
-
return new APIPromise($
|
|
46932
|
+
return new APIPromise($do49(client, request, options));
|
|
46271
46933
|
}
|
|
46272
|
-
async function $
|
|
46934
|
+
async function $do49(client, request, options) {
|
|
46273
46935
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46274
46936
|
if (!parsed.ok) {
|
|
46275
46937
|
return [parsed, { status: "invalid" }];
|
|
@@ -46338,12 +47000,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
46338
47000
|
});
|
|
46339
47001
|
|
|
46340
47002
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
46341
|
-
var
|
|
47003
|
+
var args49, tool$universalAllowanceSet;
|
|
46342
47004
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
46343
47005
|
init_universalAllowanceSet();
|
|
46344
47006
|
init_components();
|
|
46345
47007
|
init_tools();
|
|
46346
|
-
|
|
47008
|
+
args49 = {
|
|
46347
47009
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
46348
47010
|
};
|
|
46349
47011
|
tool$universalAllowanceSet = {
|
|
@@ -46357,9 +47019,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
46357
47019
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
46358
47020
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
46359
47021
|
within the DeFi ecosystem.`,
|
|
46360
|
-
args:
|
|
46361
|
-
tool: async (client,
|
|
46362
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
47022
|
+
args: args49,
|
|
47023
|
+
tool: async (client, args50, ctx) => {
|
|
47024
|
+
const [result, apiCall] = await universalAllowanceSet(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46363
47025
|
if (!result.ok) {
|
|
46364
47026
|
return {
|
|
46365
47027
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46374,9 +47036,9 @@ within the DeFi ecosystem.`,
|
|
|
46374
47036
|
|
|
46375
47037
|
// src/funcs/universalEns.ts
|
|
46376
47038
|
function universalEns(client, request, options) {
|
|
46377
|
-
return new APIPromise($
|
|
47039
|
+
return new APIPromise($do50(client, request, options));
|
|
46378
47040
|
}
|
|
46379
|
-
async function $
|
|
47041
|
+
async function $do50(client, request, options) {
|
|
46380
47042
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46381
47043
|
if (!parsed.ok) {
|
|
46382
47044
|
return [parsed, { status: "invalid" }];
|
|
@@ -46450,12 +47112,12 @@ var init_universalEns = __esm(() => {
|
|
|
46450
47112
|
});
|
|
46451
47113
|
|
|
46452
47114
|
// src/mcp-server/tools/universalEns.ts
|
|
46453
|
-
var
|
|
47115
|
+
var args50, tool$universalEns;
|
|
46454
47116
|
var init_universalEns2 = __esm(() => {
|
|
46455
47117
|
init_universalEns();
|
|
46456
47118
|
init_operations();
|
|
46457
47119
|
init_tools();
|
|
46458
|
-
|
|
47120
|
+
args50 = {
|
|
46459
47121
|
request: GenericEnsRequest$inboundSchema
|
|
46460
47122
|
};
|
|
46461
47123
|
tool$universalEns = {
|
|
@@ -46466,9 +47128,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
46466
47128
|
|
|
46467
47129
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
46468
47130
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
46469
|
-
args:
|
|
46470
|
-
tool: async (client,
|
|
46471
|
-
const [result, apiCall] = await universalEns(client,
|
|
47131
|
+
args: args50,
|
|
47132
|
+
tool: async (client, args51, ctx) => {
|
|
47133
|
+
const [result, apiCall] = await universalEns(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46472
47134
|
if (!result.ok) {
|
|
46473
47135
|
return {
|
|
46474
47136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46483,9 +47145,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
46483
47145
|
|
|
46484
47146
|
// src/funcs/universalPortfolio.ts
|
|
46485
47147
|
function universalPortfolio(client, request, options) {
|
|
46486
|
-
return new APIPromise($
|
|
47148
|
+
return new APIPromise($do51(client, request, options));
|
|
46487
47149
|
}
|
|
46488
|
-
async function $
|
|
47150
|
+
async function $do51(client, request, options) {
|
|
46489
47151
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46490
47152
|
if (!parsed.ok) {
|
|
46491
47153
|
return [parsed, { status: "invalid" }];
|
|
@@ -46559,12 +47221,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
46559
47221
|
});
|
|
46560
47222
|
|
|
46561
47223
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
46562
|
-
var
|
|
47224
|
+
var args51, tool$universalPortfolio;
|
|
46563
47225
|
var init_universalPortfolio2 = __esm(() => {
|
|
46564
47226
|
init_universalPortfolio();
|
|
46565
47227
|
init_operations();
|
|
46566
47228
|
init_tools();
|
|
46567
|
-
|
|
47229
|
+
args51 = {
|
|
46568
47230
|
request: GenericPortfolioRequest$inboundSchema
|
|
46569
47231
|
};
|
|
46570
47232
|
tool$universalPortfolio = {
|
|
@@ -46575,9 +47237,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
46575
47237
|
|
|
46576
47238
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
46577
47239
|
balances, including their respective values and quantities.`,
|
|
46578
|
-
args:
|
|
46579
|
-
tool: async (client,
|
|
46580
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
47240
|
+
args: args51,
|
|
47241
|
+
tool: async (client, args52, ctx) => {
|
|
47242
|
+
const [result, apiCall] = await universalPortfolio(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46581
47243
|
if (!result.ok) {
|
|
46582
47244
|
return {
|
|
46583
47245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46592,9 +47254,9 @@ balances, including their respective values and quantities.`,
|
|
|
46592
47254
|
|
|
46593
47255
|
// src/funcs/universalSupportedTokens.ts
|
|
46594
47256
|
function universalSupportedTokens(client, request, options) {
|
|
46595
|
-
return new APIPromise($
|
|
47257
|
+
return new APIPromise($do52(client, request, options));
|
|
46596
47258
|
}
|
|
46597
|
-
async function $
|
|
47259
|
+
async function $do52(client, request, options) {
|
|
46598
47260
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46599
47261
|
if (!parsed.ok) {
|
|
46600
47262
|
return [parsed, { status: "invalid" }];
|
|
@@ -46667,12 +47329,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
46667
47329
|
});
|
|
46668
47330
|
|
|
46669
47331
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
46670
|
-
var
|
|
47332
|
+
var args52, tool$universalSupportedTokens;
|
|
46671
47333
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
46672
47334
|
init_universalSupportedTokens();
|
|
46673
47335
|
init_operations();
|
|
46674
47336
|
init_tools();
|
|
46675
|
-
|
|
47337
|
+
args52 = {
|
|
46676
47338
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
46677
47339
|
};
|
|
46678
47340
|
tool$universalSupportedTokens = {
|
|
@@ -46680,9 +47342,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
46680
47342
|
description: `List supported tokens
|
|
46681
47343
|
|
|
46682
47344
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
46683
|
-
args:
|
|
46684
|
-
tool: async (client,
|
|
46685
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
47345
|
+
args: args52,
|
|
47346
|
+
tool: async (client, args53, ctx) => {
|
|
47347
|
+
const [result, apiCall] = await universalSupportedTokens(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46686
47348
|
if (!result.ok) {
|
|
46687
47349
|
return {
|
|
46688
47350
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46697,9 +47359,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
46697
47359
|
|
|
46698
47360
|
// src/funcs/universalUnwrapWeth.ts
|
|
46699
47361
|
function universalUnwrapWeth(client, request, options) {
|
|
46700
|
-
return new APIPromise($
|
|
47362
|
+
return new APIPromise($do53(client, request, options));
|
|
46701
47363
|
}
|
|
46702
|
-
async function $
|
|
47364
|
+
async function $do53(client, request, options) {
|
|
46703
47365
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46704
47366
|
if (!parsed.ok) {
|
|
46705
47367
|
return [parsed, { status: "invalid" }];
|
|
@@ -46768,12 +47430,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
46768
47430
|
});
|
|
46769
47431
|
|
|
46770
47432
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
46771
|
-
var
|
|
47433
|
+
var args53, tool$universalUnwrapWeth;
|
|
46772
47434
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
46773
47435
|
init_universalUnwrapWeth();
|
|
46774
47436
|
init_components();
|
|
46775
47437
|
init_tools();
|
|
46776
|
-
|
|
47438
|
+
args53 = {
|
|
46777
47439
|
request: UnwrapWethRequest$inboundSchema
|
|
46778
47440
|
};
|
|
46779
47441
|
tool$universalUnwrapWeth = {
|
|
@@ -46782,9 +47444,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
46782
47444
|
|
|
46783
47445
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
46784
47446
|
can be used for gas and other native purposes.`,
|
|
46785
|
-
args:
|
|
46786
|
-
tool: async (client,
|
|
46787
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
47447
|
+
args: args53,
|
|
47448
|
+
tool: async (client, args54, ctx) => {
|
|
47449
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46788
47450
|
if (!result.ok) {
|
|
46789
47451
|
return {
|
|
46790
47452
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46799,9 +47461,9 @@ can be used for gas and other native purposes.`,
|
|
|
46799
47461
|
|
|
46800
47462
|
// src/funcs/universalVisualizePortfolio.ts
|
|
46801
47463
|
function universalVisualizePortfolio(client, request, options) {
|
|
46802
|
-
return new APIPromise($
|
|
47464
|
+
return new APIPromise($do54(client, request, options));
|
|
46803
47465
|
}
|
|
46804
|
-
async function $
|
|
47466
|
+
async function $do54(client, request, options) {
|
|
46805
47467
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46806
47468
|
if (!parsed.ok) {
|
|
46807
47469
|
return [parsed, { status: "invalid" }];
|
|
@@ -46875,12 +47537,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
46875
47537
|
});
|
|
46876
47538
|
|
|
46877
47539
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
46878
|
-
var
|
|
47540
|
+
var args54, tool$universalVisualizePortfolio;
|
|
46879
47541
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
46880
47542
|
init_universalVisualizePortfolio();
|
|
46881
47543
|
init_operations();
|
|
46882
47544
|
init_tools();
|
|
46883
|
-
|
|
47545
|
+
args54 = {
|
|
46884
47546
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
46885
47547
|
};
|
|
46886
47548
|
tool$universalVisualizePortfolio = {
|
|
@@ -46892,9 +47554,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
46892
47554
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
46893
47555
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
46894
47556
|
USD.`,
|
|
46895
|
-
args:
|
|
46896
|
-
tool: async (client,
|
|
46897
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
47557
|
+
args: args54,
|
|
47558
|
+
tool: async (client, args55, ctx) => {
|
|
47559
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46898
47560
|
if (!result.ok) {
|
|
46899
47561
|
return {
|
|
46900
47562
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46909,9 +47571,9 @@ USD.`,
|
|
|
46909
47571
|
|
|
46910
47572
|
// src/funcs/universalWrapEth.ts
|
|
46911
47573
|
function universalWrapEth(client, request, options) {
|
|
46912
|
-
return new APIPromise($
|
|
47574
|
+
return new APIPromise($do55(client, request, options));
|
|
46913
47575
|
}
|
|
46914
|
-
async function $
|
|
47576
|
+
async function $do55(client, request, options) {
|
|
46915
47577
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46916
47578
|
if (!parsed.ok) {
|
|
46917
47579
|
return [parsed, { status: "invalid" }];
|
|
@@ -46980,12 +47642,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
46980
47642
|
});
|
|
46981
47643
|
|
|
46982
47644
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
46983
|
-
var
|
|
47645
|
+
var args55, tool$universalWrapEth;
|
|
46984
47646
|
var init_universalWrapEth2 = __esm(() => {
|
|
46985
47647
|
init_universalWrapEth();
|
|
46986
47648
|
init_components();
|
|
46987
47649
|
init_tools();
|
|
46988
|
-
|
|
47650
|
+
args55 = {
|
|
46989
47651
|
request: WrapEthRequest$inboundSchema
|
|
46990
47652
|
};
|
|
46991
47653
|
tool$universalWrapEth = {
|
|
@@ -46994,9 +47656,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
46994
47656
|
|
|
46995
47657
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
46996
47658
|
it to be traded on DeFi protocols.`,
|
|
46997
|
-
args:
|
|
46998
|
-
tool: async (client,
|
|
46999
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
47659
|
+
args: args55,
|
|
47660
|
+
tool: async (client, args56, ctx) => {
|
|
47661
|
+
const [result, apiCall] = await universalWrapEth(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47000
47662
|
if (!result.ok) {
|
|
47001
47663
|
return {
|
|
47002
47664
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47013,7 +47675,7 @@ it to be traded on DeFi protocols.`,
|
|
|
47013
47675
|
function createMCPServer(deps) {
|
|
47014
47676
|
const server = new McpServer({
|
|
47015
47677
|
name: "CompassApiSDK",
|
|
47016
|
-
version: "0.0.
|
|
47678
|
+
version: "0.0.14"
|
|
47017
47679
|
});
|
|
47018
47680
|
const client = new CompassApiSDKCore({
|
|
47019
47681
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -47053,6 +47715,11 @@ function createMCPServer(deps) {
|
|
|
47053
47715
|
tool(tool$morphoWithdrawCollateral);
|
|
47054
47716
|
tool(tool$morphoBorrow);
|
|
47055
47717
|
tool(tool$morphoRepay);
|
|
47718
|
+
tool(tool$skyPosition);
|
|
47719
|
+
tool(tool$skyBuy);
|
|
47720
|
+
tool(tool$skySell);
|
|
47721
|
+
tool(tool$skyDeposit);
|
|
47722
|
+
tool(tool$skyWithdraw);
|
|
47056
47723
|
tool(tool$tokenAddress);
|
|
47057
47724
|
tool(tool$tokenPrice);
|
|
47058
47725
|
tool(tool$tokenBalance);
|
|
@@ -47110,6 +47777,11 @@ var init_server2 = __esm(() => {
|
|
|
47110
47777
|
init_morphoVaults2();
|
|
47111
47778
|
init_morphoWithdraw2();
|
|
47112
47779
|
init_morphoWithdrawCollateral2();
|
|
47780
|
+
init_skyBuy2();
|
|
47781
|
+
init_skyDeposit2();
|
|
47782
|
+
init_skyPosition2();
|
|
47783
|
+
init_skySell2();
|
|
47784
|
+
init_skyWithdraw2();
|
|
47113
47785
|
init_tokenAddress2();
|
|
47114
47786
|
init_tokenBalance2();
|
|
47115
47787
|
init_tokenPrice2();
|
|
@@ -48324,7 +48996,7 @@ var routes = an({
|
|
|
48324
48996
|
var app = He(routes, {
|
|
48325
48997
|
name: "mcp",
|
|
48326
48998
|
versionInfo: {
|
|
48327
|
-
currentVersion: "0.0.
|
|
48999
|
+
currentVersion: "0.0.14"
|
|
48328
49000
|
}
|
|
48329
49001
|
});
|
|
48330
49002
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -48332,5 +49004,5 @@ export {
|
|
|
48332
49004
|
app
|
|
48333
49005
|
};
|
|
48334
49006
|
|
|
48335
|
-
//# debugId=
|
|
49007
|
+
//# debugId=E726930E46DD27FC64756E2164756E21
|
|
48336
49008
|
//# sourceMappingURL=mcp-server.js.map
|