@compass-labs/api-sdk 1.0.3 → 1.0.5
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 +11 -0
- package/bin/mcp-server.js +2855 -1914
- package/bin/mcp-server.js.map +48 -30
- package/dist/commonjs/funcs/ethenaEthenaDeposit.d.ts +27 -0
- package/dist/commonjs/funcs/ethenaEthenaDeposit.d.ts.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaDeposit.js +127 -0
- package/dist/commonjs/funcs/ethenaEthenaDeposit.js.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts +34 -0
- package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaRequest.js +134 -0
- package/dist/commonjs/funcs/ethenaEthenaRequest.js.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaVault.d.ts +16 -0
- package/dist/commonjs/funcs/ethenaEthenaVault.d.ts.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaVault.js +121 -0
- package/dist/commonjs/funcs/ethenaEthenaVault.js.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaWithdraw.d.ts +29 -0
- package/dist/commonjs/funcs/ethenaEthenaWithdraw.d.ts.map +1 -0
- package/dist/commonjs/funcs/ethenaEthenaWithdraw.js +129 -0
- package/dist/commonjs/funcs/ethenaEthenaWithdraw.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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 +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.js +74 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js +81 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.js +62 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.js +76 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.js.map +1 -0
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +10 -4
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +8 -6
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -1
- package/dist/commonjs/models/components/cooldownposition.d.ts +66 -0
- package/dist/commonjs/models/components/cooldownposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/cooldownposition.js +115 -0
- package/dist/commonjs/models/components/cooldownposition.js.map +1 -0
- package/dist/commonjs/models/components/ethenadepositparams.d.ts +63 -0
- package/dist/commonjs/models/components/ethenadepositparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenadepositparams.js +105 -0
- package/dist/commonjs/models/components/ethenadepositparams.js.map +1 -0
- package/dist/commonjs/models/components/ethenadepositrequest.d.ts +93 -0
- package/dist/commonjs/models/components/ethenadepositrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenadepositrequest.js +127 -0
- package/dist/commonjs/models/components/ethenadepositrequest.js.map +1 -0
- package/dist/commonjs/models/components/ethenagetvaultresponse.d.ts +80 -0
- package/dist/commonjs/models/components/ethenagetvaultresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenagetvaultresponse.js +114 -0
- package/dist/commonjs/models/components/ethenagetvaultresponse.js.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawparams.d.ts +34 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawparams.js +80 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawparams.js.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.d.ts +64 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.js +102 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.js.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.d.ts +64 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.js +122 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.js.map +1 -0
- package/dist/commonjs/models/components/ethenawithdrawparams.d.ts +39 -0
- package/dist/commonjs/models/components/ethenawithdrawparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenawithdrawparams.js +82 -0
- package/dist/commonjs/models/components/ethenawithdrawparams.js.map +1 -0
- package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts +69 -0
- package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/ethenawithdrawrequest.js +104 -0
- package/dist/commonjs/models/components/ethenawithdrawrequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +10 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +10 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/setallowanceparams.d.ts +3 -0
- package/dist/commonjs/models/components/setallowanceparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/setallowanceparams.js +1 -0
- package/dist/commonjs/models/components/setallowanceparams.js.map +1 -1
- package/dist/commonjs/models/components/setallowancerequest.d.ts +3 -0
- package/dist/commonjs/models/components/setallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/setallowancerequest.js +1 -0
- package/dist/commonjs/models/components/setallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/tokenenum.d.ts +3 -0
- package/dist/commonjs/models/components/tokenenum.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokenenum.js +1 -0
- package/dist/commonjs/models/components/tokenenum.js.map +1 -1
- package/dist/commonjs/models/components/underlyingtoken.d.ts +35 -0
- package/dist/commonjs/models/components/underlyingtoken.d.ts.map +1 -0
- package/dist/commonjs/models/components/underlyingtoken.js +75 -0
- package/dist/commonjs/models/components/underlyingtoken.js.map +1 -0
- package/dist/commonjs/models/components/useroperation.d.ts +27 -0
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +27 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts +3 -3
- package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/vaultgetvaultresponse.js +5 -3
- package/dist/commonjs/models/components/vaultgetvaultresponse.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/v1aaveavgrate.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aaveavgrate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aaveavgrate.js +1 -0
- package/dist/commonjs/models/operations/v1aaveavgrate.js.map +1 -1
- package/dist/commonjs/models/operations/v1aaveliquiditychange.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aaveliquiditychange.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aaveliquiditychange.js +1 -0
- package/dist/commonjs/models/operations/v1aaveliquiditychange.js.map +1 -1
- package/dist/commonjs/models/operations/v1aaverate.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aaverate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aaverate.js +1 -0
- package/dist/commonjs/models/operations/v1aaverate.js.map +1 -1
- package/dist/commonjs/models/operations/v1aavereserveoverview.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aavereserveoverview.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aavereserveoverview.js +1 -0
- package/dist/commonjs/models/operations/v1aavereserveoverview.js.map +1 -1
- package/dist/commonjs/models/operations/v1aavestdrate.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aavestdrate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aavestdrate.js +1 -0
- package/dist/commonjs/models/operations/v1aavestdrate.js.map +1 -1
- package/dist/commonjs/models/operations/v1aavetokenprice.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aavetokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aavetokenprice.js +1 -0
- package/dist/commonjs/models/operations/v1aavetokenprice.js.map +1 -1
- package/dist/commonjs/models/operations/v1aaveuserpositionpertoken.d.ts +3 -0
- package/dist/commonjs/models/operations/v1aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aaveuserpositionpertoken.js +1 -0
- package/dist/commonjs/models/operations/v1aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/v1aerodromeslipstreampoolprice.d.ts +6 -0
- package/dist/commonjs/models/operations/v1aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1aerodromeslipstreampoolprice.js +2 -0
- package/dist/commonjs/models/operations/v1aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/v1ethenavault.d.ts +62 -0
- package/dist/commonjs/models/operations/v1ethenavault.d.ts.map +1 -0
- package/dist/commonjs/models/operations/v1ethenavault.js +100 -0
- package/dist/commonjs/models/operations/v1ethenavault.js.map +1 -0
- package/dist/commonjs/models/operations/v1genericallowance.d.ts +3 -0
- package/dist/commonjs/models/operations/v1genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1genericallowance.js +1 -0
- package/dist/commonjs/models/operations/v1genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/v1tokenaddress.d.ts +3 -0
- package/dist/commonjs/models/operations/v1tokenaddress.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1tokenaddress.js +1 -0
- package/dist/commonjs/models/operations/v1tokenaddress.js.map +1 -1
- package/dist/commonjs/models/operations/v1uniswappoolprice.d.ts +6 -0
- package/dist/commonjs/models/operations/v1uniswappoolprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1uniswappoolprice.js +2 -0
- package/dist/commonjs/models/operations/v1uniswappoolprice.js.map +1 -1
- package/dist/commonjs/models/operations/v1uniswapquotebuyexactly.d.ts +6 -0
- package/dist/commonjs/models/operations/v1uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1uniswapquotebuyexactly.js +2 -0
- package/dist/commonjs/models/operations/v1uniswapquotebuyexactly.js.map +1 -1
- package/dist/commonjs/models/operations/v1uniswapquotesellexactly.d.ts +6 -0
- package/dist/commonjs/models/operations/v1uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1uniswapquotesellexactly.js +2 -0
- package/dist/commonjs/models/operations/v1uniswapquotesellexactly.js.map +1 -1
- package/dist/commonjs/sdk/ethena.d.ts +67 -0
- package/dist/commonjs/sdk/ethena.d.ts.map +1 -0
- package/dist/commonjs/sdk/ethena.js +85 -0
- package/dist/commonjs/sdk/ethena.js.map +1 -0
- 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/esm/funcs/ethenaEthenaDeposit.d.ts +27 -0
- package/dist/esm/funcs/ethenaEthenaDeposit.d.ts.map +1 -0
- package/dist/esm/funcs/ethenaEthenaDeposit.js +91 -0
- package/dist/esm/funcs/ethenaEthenaDeposit.js.map +1 -0
- package/dist/esm/funcs/ethenaEthenaRequest.d.ts +34 -0
- package/dist/esm/funcs/ethenaEthenaRequest.d.ts.map +1 -0
- package/dist/esm/funcs/ethenaEthenaRequest.js +98 -0
- package/dist/esm/funcs/ethenaEthenaRequest.js.map +1 -0
- package/dist/esm/funcs/ethenaEthenaVault.d.ts +16 -0
- package/dist/esm/funcs/ethenaEthenaVault.d.ts.map +1 -0
- package/dist/esm/funcs/ethenaEthenaVault.js +85 -0
- package/dist/esm/funcs/ethenaEthenaVault.js.map +1 -0
- package/dist/esm/funcs/ethenaEthenaWithdraw.d.ts +29 -0
- package/dist/esm/funcs/ethenaEthenaWithdraw.d.ts.map +1 -0
- package/dist/esm/funcs/ethenaEthenaWithdraw.js +93 -0
- package/dist/esm/funcs/ethenaEthenaWithdraw.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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 +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.d.ts +8 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.js +38 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.js.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.d.ts +8 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js +45 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.d.ts +8 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.js +26 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.js.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts +8 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js +40 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +10 -4
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +8 -6
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -1
- package/dist/esm/models/components/cooldownposition.d.ts +66 -0
- package/dist/esm/models/components/cooldownposition.d.ts.map +1 -0
- package/dist/esm/models/components/cooldownposition.js +75 -0
- package/dist/esm/models/components/cooldownposition.js.map +1 -0
- package/dist/esm/models/components/ethenadepositparams.d.ts +63 -0
- package/dist/esm/models/components/ethenadepositparams.d.ts.map +1 -0
- package/dist/esm/models/components/ethenadepositparams.js +65 -0
- package/dist/esm/models/components/ethenadepositparams.js.map +1 -0
- package/dist/esm/models/components/ethenadepositrequest.d.ts +93 -0
- package/dist/esm/models/components/ethenadepositrequest.d.ts.map +1 -0
- package/dist/esm/models/components/ethenadepositrequest.js +87 -0
- package/dist/esm/models/components/ethenadepositrequest.js.map +1 -0
- package/dist/esm/models/components/ethenagetvaultresponse.d.ts +80 -0
- package/dist/esm/models/components/ethenagetvaultresponse.d.ts.map +1 -0
- package/dist/esm/models/components/ethenagetvaultresponse.js +76 -0
- package/dist/esm/models/components/ethenagetvaultresponse.js.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawparams.d.ts +34 -0
- package/dist/esm/models/components/ethenarequesttowithdrawparams.d.ts.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawparams.js +42 -0
- package/dist/esm/models/components/ethenarequesttowithdrawparams.js.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawrequest.d.ts +64 -0
- package/dist/esm/models/components/ethenarequesttowithdrawrequest.d.ts.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawrequest.js +64 -0
- package/dist/esm/models/components/ethenarequesttowithdrawrequest.js.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.d.ts +64 -0
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.js +82 -0
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.js.map +1 -0
- package/dist/esm/models/components/ethenawithdrawparams.d.ts +39 -0
- package/dist/esm/models/components/ethenawithdrawparams.d.ts.map +1 -0
- package/dist/esm/models/components/ethenawithdrawparams.js +44 -0
- package/dist/esm/models/components/ethenawithdrawparams.js.map +1 -0
- package/dist/esm/models/components/ethenawithdrawrequest.d.ts +69 -0
- package/dist/esm/models/components/ethenawithdrawrequest.d.ts.map +1 -0
- package/dist/esm/models/components/ethenawithdrawrequest.js +66 -0
- package/dist/esm/models/components/ethenawithdrawrequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +10 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +10 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/setallowanceparams.d.ts +3 -0
- package/dist/esm/models/components/setallowanceparams.d.ts.map +1 -1
- package/dist/esm/models/components/setallowanceparams.js +1 -0
- package/dist/esm/models/components/setallowanceparams.js.map +1 -1
- package/dist/esm/models/components/setallowancerequest.d.ts +3 -0
- package/dist/esm/models/components/setallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/setallowancerequest.js +1 -0
- package/dist/esm/models/components/setallowancerequest.js.map +1 -1
- package/dist/esm/models/components/tokenenum.d.ts +3 -0
- package/dist/esm/models/components/tokenenum.d.ts.map +1 -1
- package/dist/esm/models/components/tokenenum.js +1 -0
- package/dist/esm/models/components/tokenenum.js.map +1 -1
- package/dist/esm/models/components/underlyingtoken.d.ts +35 -0
- package/dist/esm/models/components/underlyingtoken.d.ts.map +1 -0
- package/dist/esm/models/components/underlyingtoken.js +37 -0
- package/dist/esm/models/components/underlyingtoken.js.map +1 -0
- package/dist/esm/models/components/useroperation.d.ts +27 -0
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +27 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/components/vaultgetvaultresponse.d.ts +3 -3
- package/dist/esm/models/components/vaultgetvaultresponse.d.ts.map +1 -1
- package/dist/esm/models/components/vaultgetvaultresponse.js +5 -3
- package/dist/esm/models/components/vaultgetvaultresponse.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/v1aaveavgrate.d.ts +3 -0
- package/dist/esm/models/operations/v1aaveavgrate.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aaveavgrate.js +1 -0
- package/dist/esm/models/operations/v1aaveavgrate.js.map +1 -1
- package/dist/esm/models/operations/v1aaveliquiditychange.d.ts +3 -0
- package/dist/esm/models/operations/v1aaveliquiditychange.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aaveliquiditychange.js +1 -0
- package/dist/esm/models/operations/v1aaveliquiditychange.js.map +1 -1
- package/dist/esm/models/operations/v1aaverate.d.ts +3 -0
- package/dist/esm/models/operations/v1aaverate.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aaverate.js +1 -0
- package/dist/esm/models/operations/v1aaverate.js.map +1 -1
- package/dist/esm/models/operations/v1aavereserveoverview.d.ts +3 -0
- package/dist/esm/models/operations/v1aavereserveoverview.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aavereserveoverview.js +1 -0
- package/dist/esm/models/operations/v1aavereserveoverview.js.map +1 -1
- package/dist/esm/models/operations/v1aavestdrate.d.ts +3 -0
- package/dist/esm/models/operations/v1aavestdrate.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aavestdrate.js +1 -0
- package/dist/esm/models/operations/v1aavestdrate.js.map +1 -1
- package/dist/esm/models/operations/v1aavetokenprice.d.ts +3 -0
- package/dist/esm/models/operations/v1aavetokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aavetokenprice.js +1 -0
- package/dist/esm/models/operations/v1aavetokenprice.js.map +1 -1
- package/dist/esm/models/operations/v1aaveuserpositionpertoken.d.ts +3 -0
- package/dist/esm/models/operations/v1aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aaveuserpositionpertoken.js +1 -0
- package/dist/esm/models/operations/v1aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/v1aerodromeslipstreampoolprice.d.ts +6 -0
- package/dist/esm/models/operations/v1aerodromeslipstreampoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/v1aerodromeslipstreampoolprice.js +2 -0
- package/dist/esm/models/operations/v1aerodromeslipstreampoolprice.js.map +1 -1
- package/dist/esm/models/operations/v1ethenavault.d.ts +62 -0
- package/dist/esm/models/operations/v1ethenavault.d.ts.map +1 -0
- package/dist/esm/models/operations/v1ethenavault.js +62 -0
- package/dist/esm/models/operations/v1ethenavault.js.map +1 -0
- package/dist/esm/models/operations/v1genericallowance.d.ts +3 -0
- package/dist/esm/models/operations/v1genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/v1genericallowance.js +1 -0
- package/dist/esm/models/operations/v1genericallowance.js.map +1 -1
- package/dist/esm/models/operations/v1tokenaddress.d.ts +3 -0
- package/dist/esm/models/operations/v1tokenaddress.d.ts.map +1 -1
- package/dist/esm/models/operations/v1tokenaddress.js +1 -0
- package/dist/esm/models/operations/v1tokenaddress.js.map +1 -1
- package/dist/esm/models/operations/v1uniswappoolprice.d.ts +6 -0
- package/dist/esm/models/operations/v1uniswappoolprice.d.ts.map +1 -1
- package/dist/esm/models/operations/v1uniswappoolprice.js +2 -0
- package/dist/esm/models/operations/v1uniswappoolprice.js.map +1 -1
- package/dist/esm/models/operations/v1uniswapquotebuyexactly.d.ts +6 -0
- package/dist/esm/models/operations/v1uniswapquotebuyexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/v1uniswapquotebuyexactly.js +2 -0
- package/dist/esm/models/operations/v1uniswapquotebuyexactly.js.map +1 -1
- package/dist/esm/models/operations/v1uniswapquotesellexactly.d.ts +6 -0
- package/dist/esm/models/operations/v1uniswapquotesellexactly.d.ts.map +1 -1
- package/dist/esm/models/operations/v1uniswapquotesellexactly.js +2 -0
- package/dist/esm/models/operations/v1uniswapquotesellexactly.js.map +1 -1
- package/dist/esm/sdk/ethena.d.ts +67 -0
- package/dist/esm/sdk/ethena.d.ts.map +1 -0
- package/dist/esm/sdk/ethena.js +81 -0
- package/dist/esm/sdk/ethena.js.map +1 -0
- 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/docs/sdks/ethena/README.md +354 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/ethenaEthenaDeposit.ts +178 -0
- package/src/funcs/ethenaEthenaRequest.ts +189 -0
- package/src/funcs/ethenaEthenaVault.ts +173 -0
- package/src/funcs/ethenaEthenaWithdraw.ts +180 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/ethenaEthenaDeposit.ts +47 -0
- package/src/mcp-server/tools/ethenaEthenaRequest.ts +54 -0
- package/src/mcp-server/tools/ethenaEthenaVault.ts +35 -0
- package/src/mcp-server/tools/ethenaEthenaWithdraw.ts +49 -0
- package/src/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.ts +18 -10
- package/src/models/components/cooldownposition.ts +151 -0
- package/src/models/components/ethenadepositparams.ts +142 -0
- package/src/models/components/ethenadepositrequest.ts +182 -0
- package/src/models/components/ethenagetvaultresponse.ts +188 -0
- package/src/models/components/ethenarequesttowithdrawparams.ts +88 -0
- package/src/models/components/ethenarequesttowithdrawrequest.ts +130 -0
- package/src/models/components/ethenarequesttowithdrawtransactionresponse.ts +208 -0
- package/src/models/components/ethenawithdrawparams.ts +89 -0
- package/src/models/components/ethenawithdrawrequest.ts +129 -0
- package/src/models/components/index.ts +10 -1
- package/src/models/components/setallowanceparams.ts +1 -0
- package/src/models/components/setallowancerequest.ts +1 -0
- package/src/models/components/tokenenum.ts +1 -0
- package/src/models/components/underlyingtoken.ts +76 -0
- package/src/models/components/useroperation.ts +96 -0
- package/src/models/components/vaultgetvaultresponse.ts +12 -10
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v1aaveavgrate.ts +1 -0
- package/src/models/operations/v1aaveliquiditychange.ts +1 -0
- package/src/models/operations/v1aaverate.ts +1 -0
- package/src/models/operations/v1aavereserveoverview.ts +1 -0
- package/src/models/operations/v1aavestdrate.ts +1 -0
- package/src/models/operations/v1aavetokenprice.ts +1 -0
- package/src/models/operations/v1aaveuserpositionpertoken.ts +1 -0
- package/src/models/operations/v1aerodromeslipstreampoolprice.ts +2 -0
- package/src/models/operations/v1ethenavault.ts +116 -0
- package/src/models/operations/v1genericallowance.ts +1 -0
- package/src/models/operations/v1tokenaddress.ts +1 -0
- package/src/models/operations/v1uniswappoolprice.ts +2 -0
- package/src/models/operations/v1uniswapquotebuyexactly.ts +2 -0
- package/src/models/operations/v1uniswapquotesellexactly.ts +2 -0
- package/src/sdk/ethena.ts +115 -0
- package/src/sdk/sdk.ts +6 -0
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts +0 -35
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts.map +0 -1
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js +0 -75
- package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js.map +0 -1
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts +0 -35
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts.map +0 -1
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js +0 -37
- package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js.map +0 -1
- package/src/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.ts +0 -92
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The amount of USDe to deposit into Ethena's vault.
|
|
13
|
+
*/
|
|
14
|
+
export type EthenaDepositParamsAmount = number | string;
|
|
15
|
+
|
|
16
|
+
export type EthenaDepositParams = {
|
|
17
|
+
actionType?: "ETHENA_DEPOSIT" | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The amount of USDe to deposit into Ethena's vault.
|
|
20
|
+
*/
|
|
21
|
+
amount: number | string;
|
|
22
|
+
/**
|
|
23
|
+
* The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
24
|
+
*/
|
|
25
|
+
receiver?: string | null | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const EthenaDepositParamsAmount$inboundSchema: z.ZodType<
|
|
30
|
+
EthenaDepositParamsAmount,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.union([z.number(), z.string()]);
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type EthenaDepositParamsAmount$Outbound = number | string;
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const EthenaDepositParamsAmount$outboundSchema: z.ZodType<
|
|
40
|
+
EthenaDepositParamsAmount$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
EthenaDepositParamsAmount
|
|
43
|
+
> = z.union([z.number(), z.string()]);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace EthenaDepositParamsAmount$ {
|
|
50
|
+
/** @deprecated use `EthenaDepositParamsAmount$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = EthenaDepositParamsAmount$inboundSchema;
|
|
52
|
+
/** @deprecated use `EthenaDepositParamsAmount$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = EthenaDepositParamsAmount$outboundSchema;
|
|
54
|
+
/** @deprecated use `EthenaDepositParamsAmount$Outbound` instead. */
|
|
55
|
+
export type Outbound = EthenaDepositParamsAmount$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ethenaDepositParamsAmountToJSON(
|
|
59
|
+
ethenaDepositParamsAmount: EthenaDepositParamsAmount,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
EthenaDepositParamsAmount$outboundSchema.parse(ethenaDepositParamsAmount),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ethenaDepositParamsAmountFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<EthenaDepositParamsAmount, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => EthenaDepositParamsAmount$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'EthenaDepositParamsAmount' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const EthenaDepositParams$inboundSchema: z.ZodType<
|
|
78
|
+
EthenaDepositParams,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
action_type: z.literal("ETHENA_DEPOSIT").default("ETHENA_DEPOSIT"),
|
|
83
|
+
amount: z.union([z.number(), z.string()]),
|
|
84
|
+
receiver: z.nullable(z.string()).optional(),
|
|
85
|
+
}).transform((v) => {
|
|
86
|
+
return remap$(v, {
|
|
87
|
+
"action_type": "actionType",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type EthenaDepositParams$Outbound = {
|
|
93
|
+
action_type: "ETHENA_DEPOSIT";
|
|
94
|
+
amount: number | string;
|
|
95
|
+
receiver?: string | null | undefined;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const EthenaDepositParams$outboundSchema: z.ZodType<
|
|
100
|
+
EthenaDepositParams$Outbound,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
EthenaDepositParams
|
|
103
|
+
> = z.object({
|
|
104
|
+
actionType: z.literal("ETHENA_DEPOSIT").default("ETHENA_DEPOSIT" as const),
|
|
105
|
+
amount: z.union([z.number(), z.string()]),
|
|
106
|
+
receiver: z.nullable(z.string()).optional(),
|
|
107
|
+
}).transform((v) => {
|
|
108
|
+
return remap$(v, {
|
|
109
|
+
actionType: "action_type",
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
+
*/
|
|
117
|
+
export namespace EthenaDepositParams$ {
|
|
118
|
+
/** @deprecated use `EthenaDepositParams$inboundSchema` instead. */
|
|
119
|
+
export const inboundSchema = EthenaDepositParams$inboundSchema;
|
|
120
|
+
/** @deprecated use `EthenaDepositParams$outboundSchema` instead. */
|
|
121
|
+
export const outboundSchema = EthenaDepositParams$outboundSchema;
|
|
122
|
+
/** @deprecated use `EthenaDepositParams$Outbound` instead. */
|
|
123
|
+
export type Outbound = EthenaDepositParams$Outbound;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function ethenaDepositParamsToJSON(
|
|
127
|
+
ethenaDepositParams: EthenaDepositParams,
|
|
128
|
+
): string {
|
|
129
|
+
return JSON.stringify(
|
|
130
|
+
EthenaDepositParams$outboundSchema.parse(ethenaDepositParams),
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ethenaDepositParamsFromJSON(
|
|
135
|
+
jsonString: string,
|
|
136
|
+
): SafeParseResult<EthenaDepositParams, SDKValidationError> {
|
|
137
|
+
return safeParse(
|
|
138
|
+
jsonString,
|
|
139
|
+
(x) => EthenaDepositParams$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'EthenaDepositParams' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The amount of USDe to deposit into Ethena's vault.
|
|
14
|
+
*/
|
|
15
|
+
export type EthenaDepositRequestAmount = number | string;
|
|
16
|
+
|
|
17
|
+
export const EthenaDepositRequestChain = {
|
|
18
|
+
Ethereum: "ethereum",
|
|
19
|
+
} as const;
|
|
20
|
+
export type EthenaDepositRequestChain = ClosedEnum<
|
|
21
|
+
typeof EthenaDepositRequestChain
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type EthenaDepositRequest = {
|
|
25
|
+
actionType?: "ETHENA_DEPOSIT" | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The amount of USDe to deposit into Ethena's vault.
|
|
28
|
+
*/
|
|
29
|
+
amount: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
32
|
+
*/
|
|
33
|
+
receiver?: string | null | undefined;
|
|
34
|
+
chain: EthenaDepositRequestChain;
|
|
35
|
+
/**
|
|
36
|
+
* The address of the transaction sender.
|
|
37
|
+
*/
|
|
38
|
+
sender: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const EthenaDepositRequestAmount$inboundSchema: z.ZodType<
|
|
43
|
+
EthenaDepositRequestAmount,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.union([z.number(), z.string()]);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type EthenaDepositRequestAmount$Outbound = number | string;
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const EthenaDepositRequestAmount$outboundSchema: z.ZodType<
|
|
53
|
+
EthenaDepositRequestAmount$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
EthenaDepositRequestAmount
|
|
56
|
+
> = z.union([z.number(), z.string()]);
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace EthenaDepositRequestAmount$ {
|
|
63
|
+
/** @deprecated use `EthenaDepositRequestAmount$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = EthenaDepositRequestAmount$inboundSchema;
|
|
65
|
+
/** @deprecated use `EthenaDepositRequestAmount$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = EthenaDepositRequestAmount$outboundSchema;
|
|
67
|
+
/** @deprecated use `EthenaDepositRequestAmount$Outbound` instead. */
|
|
68
|
+
export type Outbound = EthenaDepositRequestAmount$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ethenaDepositRequestAmountToJSON(
|
|
72
|
+
ethenaDepositRequestAmount: EthenaDepositRequestAmount,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
EthenaDepositRequestAmount$outboundSchema.parse(ethenaDepositRequestAmount),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ethenaDepositRequestAmountFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<EthenaDepositRequestAmount, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => EthenaDepositRequestAmount$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'EthenaDepositRequestAmount' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const EthenaDepositRequestChain$inboundSchema: z.ZodNativeEnum<
|
|
91
|
+
typeof EthenaDepositRequestChain
|
|
92
|
+
> = z.nativeEnum(EthenaDepositRequestChain);
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const EthenaDepositRequestChain$outboundSchema: z.ZodNativeEnum<
|
|
96
|
+
typeof EthenaDepositRequestChain
|
|
97
|
+
> = EthenaDepositRequestChain$inboundSchema;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace EthenaDepositRequestChain$ {
|
|
104
|
+
/** @deprecated use `EthenaDepositRequestChain$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema = EthenaDepositRequestChain$inboundSchema;
|
|
106
|
+
/** @deprecated use `EthenaDepositRequestChain$outboundSchema` instead. */
|
|
107
|
+
export const outboundSchema = EthenaDepositRequestChain$outboundSchema;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const EthenaDepositRequest$inboundSchema: z.ZodType<
|
|
112
|
+
EthenaDepositRequest,
|
|
113
|
+
z.ZodTypeDef,
|
|
114
|
+
unknown
|
|
115
|
+
> = z.object({
|
|
116
|
+
action_type: z.literal("ETHENA_DEPOSIT").default("ETHENA_DEPOSIT"),
|
|
117
|
+
amount: z.union([z.number(), z.string()]),
|
|
118
|
+
receiver: z.nullable(z.string()).optional(),
|
|
119
|
+
chain: EthenaDepositRequestChain$inboundSchema,
|
|
120
|
+
sender: z.string(),
|
|
121
|
+
}).transform((v) => {
|
|
122
|
+
return remap$(v, {
|
|
123
|
+
"action_type": "actionType",
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export type EthenaDepositRequest$Outbound = {
|
|
129
|
+
action_type: "ETHENA_DEPOSIT";
|
|
130
|
+
amount: number | string;
|
|
131
|
+
receiver?: string | null | undefined;
|
|
132
|
+
chain: string;
|
|
133
|
+
sender: string;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const EthenaDepositRequest$outboundSchema: z.ZodType<
|
|
138
|
+
EthenaDepositRequest$Outbound,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
EthenaDepositRequest
|
|
141
|
+
> = z.object({
|
|
142
|
+
actionType: z.literal("ETHENA_DEPOSIT").default("ETHENA_DEPOSIT" as const),
|
|
143
|
+
amount: z.union([z.number(), z.string()]),
|
|
144
|
+
receiver: z.nullable(z.string()).optional(),
|
|
145
|
+
chain: EthenaDepositRequestChain$outboundSchema,
|
|
146
|
+
sender: z.string(),
|
|
147
|
+
}).transform((v) => {
|
|
148
|
+
return remap$(v, {
|
|
149
|
+
actionType: "action_type",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
156
|
+
*/
|
|
157
|
+
export namespace EthenaDepositRequest$ {
|
|
158
|
+
/** @deprecated use `EthenaDepositRequest$inboundSchema` instead. */
|
|
159
|
+
export const inboundSchema = EthenaDepositRequest$inboundSchema;
|
|
160
|
+
/** @deprecated use `EthenaDepositRequest$outboundSchema` instead. */
|
|
161
|
+
export const outboundSchema = EthenaDepositRequest$outboundSchema;
|
|
162
|
+
/** @deprecated use `EthenaDepositRequest$Outbound` instead. */
|
|
163
|
+
export type Outbound = EthenaDepositRequest$Outbound;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function ethenaDepositRequestToJSON(
|
|
167
|
+
ethenaDepositRequest: EthenaDepositRequest,
|
|
168
|
+
): string {
|
|
169
|
+
return JSON.stringify(
|
|
170
|
+
EthenaDepositRequest$outboundSchema.parse(ethenaDepositRequest),
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function ethenaDepositRequestFromJSON(
|
|
175
|
+
jsonString: string,
|
|
176
|
+
): SafeParseResult<EthenaDepositRequest, SDKValidationError> {
|
|
177
|
+
return safeParse(
|
|
178
|
+
jsonString,
|
|
179
|
+
(x) => EthenaDepositRequest$inboundSchema.parse(JSON.parse(x)),
|
|
180
|
+
`Failed to parse 'EthenaDepositRequest' from JSON`,
|
|
181
|
+
);
|
|
182
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Apy,
|
|
12
|
+
Apy$inboundSchema,
|
|
13
|
+
Apy$Outbound,
|
|
14
|
+
Apy$outboundSchema,
|
|
15
|
+
} from "./apy.js";
|
|
16
|
+
import {
|
|
17
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition,
|
|
18
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema,
|
|
19
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$Outbound,
|
|
20
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema,
|
|
21
|
+
} from "./compassapibackendmodelsvaultsreadresponsevaultuserposition.js";
|
|
22
|
+
import {
|
|
23
|
+
CooldownPosition,
|
|
24
|
+
CooldownPosition$inboundSchema,
|
|
25
|
+
CooldownPosition$Outbound,
|
|
26
|
+
CooldownPosition$outboundSchema,
|
|
27
|
+
} from "./cooldownposition.js";
|
|
28
|
+
import {
|
|
29
|
+
UnderlyingToken,
|
|
30
|
+
UnderlyingToken$inboundSchema,
|
|
31
|
+
UnderlyingToken$Outbound,
|
|
32
|
+
UnderlyingToken$outboundSchema,
|
|
33
|
+
} from "./underlyingtoken.js";
|
|
34
|
+
|
|
35
|
+
export type EthenaGetVaultResponse = {
|
|
36
|
+
/**
|
|
37
|
+
* Name of the vault.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Symbol of the vault.
|
|
42
|
+
*/
|
|
43
|
+
symbol: string;
|
|
44
|
+
/**
|
|
45
|
+
* Number of decimals used for the vault's share precision.
|
|
46
|
+
*/
|
|
47
|
+
decimals: number;
|
|
48
|
+
/**
|
|
49
|
+
* Total amount of assets deposited in the vault.
|
|
50
|
+
*/
|
|
51
|
+
totalAssets: string;
|
|
52
|
+
/**
|
|
53
|
+
* Total amount of shares issued from the vault.
|
|
54
|
+
*/
|
|
55
|
+
totalSupply: string;
|
|
56
|
+
/**
|
|
57
|
+
* The price of one vault share in terms of the underlying asset.
|
|
58
|
+
*/
|
|
59
|
+
sharePrice: string;
|
|
60
|
+
underlyingToken: UnderlyingToken;
|
|
61
|
+
apy: Apy;
|
|
62
|
+
/**
|
|
63
|
+
* The user's position in the vault.
|
|
64
|
+
*/
|
|
65
|
+
userPosition?:
|
|
66
|
+
| CompassApiBackendModelsVaultsReadResponseVaultUserPosition
|
|
67
|
+
| null
|
|
68
|
+
| undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The duration of days that must pass before a position can be withdrawn from the Ethena vault after a request to withdraw has been made.
|
|
71
|
+
*/
|
|
72
|
+
cooldownDurationDays: number;
|
|
73
|
+
/**
|
|
74
|
+
* The user's cooldown position.
|
|
75
|
+
*/
|
|
76
|
+
cooldownPosition?: CooldownPosition | null | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const EthenaGetVaultResponse$inboundSchema: z.ZodType<
|
|
81
|
+
EthenaGetVaultResponse,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
name: z.string(),
|
|
86
|
+
symbol: z.string(),
|
|
87
|
+
decimals: z.number().int(),
|
|
88
|
+
total_assets: z.string(),
|
|
89
|
+
total_supply: z.string(),
|
|
90
|
+
share_price: z.string(),
|
|
91
|
+
underlying_token: UnderlyingToken$inboundSchema,
|
|
92
|
+
apy: Apy$inboundSchema,
|
|
93
|
+
user_position: z.nullable(
|
|
94
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema,
|
|
95
|
+
).optional(),
|
|
96
|
+
cooldown_duration_days: z.number().int(),
|
|
97
|
+
cooldown_position: z.nullable(CooldownPosition$inboundSchema).optional(),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"total_assets": "totalAssets",
|
|
101
|
+
"total_supply": "totalSupply",
|
|
102
|
+
"share_price": "sharePrice",
|
|
103
|
+
"underlying_token": "underlyingToken",
|
|
104
|
+
"user_position": "userPosition",
|
|
105
|
+
"cooldown_duration_days": "cooldownDurationDays",
|
|
106
|
+
"cooldown_position": "cooldownPosition",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export type EthenaGetVaultResponse$Outbound = {
|
|
112
|
+
name: string;
|
|
113
|
+
symbol: string;
|
|
114
|
+
decimals: number;
|
|
115
|
+
total_assets: string;
|
|
116
|
+
total_supply: string;
|
|
117
|
+
share_price: string;
|
|
118
|
+
underlying_token: UnderlyingToken$Outbound;
|
|
119
|
+
apy: Apy$Outbound;
|
|
120
|
+
user_position?:
|
|
121
|
+
| CompassApiBackendModelsVaultsReadResponseVaultUserPosition$Outbound
|
|
122
|
+
| null
|
|
123
|
+
| undefined;
|
|
124
|
+
cooldown_duration_days: number;
|
|
125
|
+
cooldown_position?: CooldownPosition$Outbound | null | undefined;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const EthenaGetVaultResponse$outboundSchema: z.ZodType<
|
|
130
|
+
EthenaGetVaultResponse$Outbound,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
EthenaGetVaultResponse
|
|
133
|
+
> = z.object({
|
|
134
|
+
name: z.string(),
|
|
135
|
+
symbol: z.string(),
|
|
136
|
+
decimals: z.number().int(),
|
|
137
|
+
totalAssets: z.string(),
|
|
138
|
+
totalSupply: z.string(),
|
|
139
|
+
sharePrice: z.string(),
|
|
140
|
+
underlyingToken: UnderlyingToken$outboundSchema,
|
|
141
|
+
apy: Apy$outboundSchema,
|
|
142
|
+
userPosition: z.nullable(
|
|
143
|
+
CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema,
|
|
144
|
+
).optional(),
|
|
145
|
+
cooldownDurationDays: z.number().int(),
|
|
146
|
+
cooldownPosition: z.nullable(CooldownPosition$outboundSchema).optional(),
|
|
147
|
+
}).transform((v) => {
|
|
148
|
+
return remap$(v, {
|
|
149
|
+
totalAssets: "total_assets",
|
|
150
|
+
totalSupply: "total_supply",
|
|
151
|
+
sharePrice: "share_price",
|
|
152
|
+
underlyingToken: "underlying_token",
|
|
153
|
+
userPosition: "user_position",
|
|
154
|
+
cooldownDurationDays: "cooldown_duration_days",
|
|
155
|
+
cooldownPosition: "cooldown_position",
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
162
|
+
*/
|
|
163
|
+
export namespace EthenaGetVaultResponse$ {
|
|
164
|
+
/** @deprecated use `EthenaGetVaultResponse$inboundSchema` instead. */
|
|
165
|
+
export const inboundSchema = EthenaGetVaultResponse$inboundSchema;
|
|
166
|
+
/** @deprecated use `EthenaGetVaultResponse$outboundSchema` instead. */
|
|
167
|
+
export const outboundSchema = EthenaGetVaultResponse$outboundSchema;
|
|
168
|
+
/** @deprecated use `EthenaGetVaultResponse$Outbound` instead. */
|
|
169
|
+
export type Outbound = EthenaGetVaultResponse$Outbound;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function ethenaGetVaultResponseToJSON(
|
|
173
|
+
ethenaGetVaultResponse: EthenaGetVaultResponse,
|
|
174
|
+
): string {
|
|
175
|
+
return JSON.stringify(
|
|
176
|
+
EthenaGetVaultResponse$outboundSchema.parse(ethenaGetVaultResponse),
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function ethenaGetVaultResponseFromJSON(
|
|
181
|
+
jsonString: string,
|
|
182
|
+
): SafeParseResult<EthenaGetVaultResponse, SDKValidationError> {
|
|
183
|
+
return safeParse(
|
|
184
|
+
jsonString,
|
|
185
|
+
(x) => EthenaGetVaultResponse$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
+
`Failed to parse 'EthenaGetVaultResponse' from JSON`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type EthenaRequestToWithdrawParams = {
|
|
12
|
+
actionType?: "ETHENA_REQUEST_WITHDRAW" | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The amount of USDe to request to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be requested to be withdrawn.
|
|
15
|
+
*/
|
|
16
|
+
amount?: any | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const EthenaRequestToWithdrawParams$inboundSchema: z.ZodType<
|
|
21
|
+
EthenaRequestToWithdrawParams,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
action_type: z.literal("ETHENA_REQUEST_WITHDRAW").default(
|
|
26
|
+
"ETHENA_REQUEST_WITHDRAW",
|
|
27
|
+
),
|
|
28
|
+
amount: z.any().optional(),
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"action_type": "actionType",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type EthenaRequestToWithdrawParams$Outbound = {
|
|
37
|
+
action_type: "ETHENA_REQUEST_WITHDRAW";
|
|
38
|
+
amount?: any | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const EthenaRequestToWithdrawParams$outboundSchema: z.ZodType<
|
|
43
|
+
EthenaRequestToWithdrawParams$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
EthenaRequestToWithdrawParams
|
|
46
|
+
> = z.object({
|
|
47
|
+
actionType: z.literal("ETHENA_REQUEST_WITHDRAW").default(
|
|
48
|
+
"ETHENA_REQUEST_WITHDRAW" as const,
|
|
49
|
+
),
|
|
50
|
+
amount: z.any().optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
actionType: "action_type",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace EthenaRequestToWithdrawParams$ {
|
|
62
|
+
/** @deprecated use `EthenaRequestToWithdrawParams$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = EthenaRequestToWithdrawParams$inboundSchema;
|
|
64
|
+
/** @deprecated use `EthenaRequestToWithdrawParams$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = EthenaRequestToWithdrawParams$outboundSchema;
|
|
66
|
+
/** @deprecated use `EthenaRequestToWithdrawParams$Outbound` instead. */
|
|
67
|
+
export type Outbound = EthenaRequestToWithdrawParams$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ethenaRequestToWithdrawParamsToJSON(
|
|
71
|
+
ethenaRequestToWithdrawParams: EthenaRequestToWithdrawParams,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
EthenaRequestToWithdrawParams$outboundSchema.parse(
|
|
75
|
+
ethenaRequestToWithdrawParams,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ethenaRequestToWithdrawParamsFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<EthenaRequestToWithdrawParams, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => EthenaRequestToWithdrawParams$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'EthenaRequestToWithdrawParams' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|