@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,130 @@
|
|
|
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
|
+
export const EthenaRequestToWithdrawRequestChain = {
|
|
13
|
+
Ethereum: "ethereum",
|
|
14
|
+
} as const;
|
|
15
|
+
export type EthenaRequestToWithdrawRequestChain = ClosedEnum<
|
|
16
|
+
typeof EthenaRequestToWithdrawRequestChain
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export type EthenaRequestToWithdrawRequest = {
|
|
20
|
+
actionType?: "ETHENA_REQUEST_WITHDRAW" | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* 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.
|
|
23
|
+
*/
|
|
24
|
+
amount?: any | undefined;
|
|
25
|
+
chain: EthenaRequestToWithdrawRequestChain;
|
|
26
|
+
/**
|
|
27
|
+
* The address of the transaction sender.
|
|
28
|
+
*/
|
|
29
|
+
sender: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const EthenaRequestToWithdrawRequestChain$inboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof EthenaRequestToWithdrawRequestChain
|
|
35
|
+
> = z.nativeEnum(EthenaRequestToWithdrawRequestChain);
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const EthenaRequestToWithdrawRequestChain$outboundSchema:
|
|
39
|
+
z.ZodNativeEnum<typeof EthenaRequestToWithdrawRequestChain> =
|
|
40
|
+
EthenaRequestToWithdrawRequestChain$inboundSchema;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
export namespace EthenaRequestToWithdrawRequestChain$ {
|
|
47
|
+
/** @deprecated use `EthenaRequestToWithdrawRequestChain$inboundSchema` instead. */
|
|
48
|
+
export const inboundSchema =
|
|
49
|
+
EthenaRequestToWithdrawRequestChain$inboundSchema;
|
|
50
|
+
/** @deprecated use `EthenaRequestToWithdrawRequestChain$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema =
|
|
52
|
+
EthenaRequestToWithdrawRequestChain$outboundSchema;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const EthenaRequestToWithdrawRequest$inboundSchema: z.ZodType<
|
|
57
|
+
EthenaRequestToWithdrawRequest,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
action_type: z.literal("ETHENA_REQUEST_WITHDRAW").default(
|
|
62
|
+
"ETHENA_REQUEST_WITHDRAW",
|
|
63
|
+
),
|
|
64
|
+
amount: z.any().optional(),
|
|
65
|
+
chain: EthenaRequestToWithdrawRequestChain$inboundSchema,
|
|
66
|
+
sender: z.string(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
"action_type": "actionType",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type EthenaRequestToWithdrawRequest$Outbound = {
|
|
75
|
+
action_type: "ETHENA_REQUEST_WITHDRAW";
|
|
76
|
+
amount?: any | undefined;
|
|
77
|
+
chain: string;
|
|
78
|
+
sender: string;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const EthenaRequestToWithdrawRequest$outboundSchema: z.ZodType<
|
|
83
|
+
EthenaRequestToWithdrawRequest$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
EthenaRequestToWithdrawRequest
|
|
86
|
+
> = z.object({
|
|
87
|
+
actionType: z.literal("ETHENA_REQUEST_WITHDRAW").default(
|
|
88
|
+
"ETHENA_REQUEST_WITHDRAW" as const,
|
|
89
|
+
),
|
|
90
|
+
amount: z.any().optional(),
|
|
91
|
+
chain: EthenaRequestToWithdrawRequestChain$outboundSchema,
|
|
92
|
+
sender: z.string(),
|
|
93
|
+
}).transform((v) => {
|
|
94
|
+
return remap$(v, {
|
|
95
|
+
actionType: "action_type",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
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 EthenaRequestToWithdrawRequest$ {
|
|
104
|
+
/** @deprecated use `EthenaRequestToWithdrawRequest$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema = EthenaRequestToWithdrawRequest$inboundSchema;
|
|
106
|
+
/** @deprecated use `EthenaRequestToWithdrawRequest$outboundSchema` instead. */
|
|
107
|
+
export const outboundSchema = EthenaRequestToWithdrawRequest$outboundSchema;
|
|
108
|
+
/** @deprecated use `EthenaRequestToWithdrawRequest$Outbound` instead. */
|
|
109
|
+
export type Outbound = EthenaRequestToWithdrawRequest$Outbound;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ethenaRequestToWithdrawRequestToJSON(
|
|
113
|
+
ethenaRequestToWithdrawRequest: EthenaRequestToWithdrawRequest,
|
|
114
|
+
): string {
|
|
115
|
+
return JSON.stringify(
|
|
116
|
+
EthenaRequestToWithdrawRequest$outboundSchema.parse(
|
|
117
|
+
ethenaRequestToWithdrawRequest,
|
|
118
|
+
),
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function ethenaRequestToWithdrawRequestFromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<EthenaRequestToWithdrawRequest, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => EthenaRequestToWithdrawRequest$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'EthenaRequestToWithdrawRequest' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
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
|
+
UnsignedMulticallTransaction,
|
|
12
|
+
UnsignedMulticallTransaction$inboundSchema,
|
|
13
|
+
UnsignedMulticallTransaction$Outbound,
|
|
14
|
+
UnsignedMulticallTransaction$outboundSchema,
|
|
15
|
+
} from "./unsignedmulticalltransaction.js";
|
|
16
|
+
import {
|
|
17
|
+
UnsignedTransaction,
|
|
18
|
+
UnsignedTransaction$inboundSchema,
|
|
19
|
+
UnsignedTransaction$Outbound,
|
|
20
|
+
UnsignedTransaction$outboundSchema,
|
|
21
|
+
} from "./unsignedtransaction.js";
|
|
22
|
+
import {
|
|
23
|
+
UserOperationResponse,
|
|
24
|
+
UserOperationResponse$inboundSchema,
|
|
25
|
+
UserOperationResponse$Outbound,
|
|
26
|
+
UserOperationResponse$outboundSchema,
|
|
27
|
+
} from "./useroperationresponse.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The unsigned transaction data. User must sign and broadcast to network.
|
|
31
|
+
*/
|
|
32
|
+
export type EthenaRequestToWithdrawTransactionResponseTransaction =
|
|
33
|
+
| UnsignedTransaction
|
|
34
|
+
| UnsignedMulticallTransaction
|
|
35
|
+
| UserOperationResponse;
|
|
36
|
+
|
|
37
|
+
export type EthenaRequestToWithdrawTransactionResponse = {
|
|
38
|
+
/**
|
|
39
|
+
* The unsigned transaction data. User must sign and broadcast to network.
|
|
40
|
+
*/
|
|
41
|
+
transaction:
|
|
42
|
+
| UnsignedTransaction
|
|
43
|
+
| UnsignedMulticallTransaction
|
|
44
|
+
| UserOperationResponse;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
*/
|
|
48
|
+
cooldownDurationDays: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const EthenaRequestToWithdrawTransactionResponseTransaction$inboundSchema:
|
|
53
|
+
z.ZodType<
|
|
54
|
+
EthenaRequestToWithdrawTransactionResponseTransaction,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.union([
|
|
58
|
+
UnsignedTransaction$inboundSchema,
|
|
59
|
+
UnsignedMulticallTransaction$inboundSchema,
|
|
60
|
+
UserOperationResponse$inboundSchema,
|
|
61
|
+
]);
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type EthenaRequestToWithdrawTransactionResponseTransaction$Outbound =
|
|
65
|
+
| UnsignedTransaction$Outbound
|
|
66
|
+
| UnsignedMulticallTransaction$Outbound
|
|
67
|
+
| UserOperationResponse$Outbound;
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const EthenaRequestToWithdrawTransactionResponseTransaction$outboundSchema:
|
|
71
|
+
z.ZodType<
|
|
72
|
+
EthenaRequestToWithdrawTransactionResponseTransaction$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
EthenaRequestToWithdrawTransactionResponseTransaction
|
|
75
|
+
> = z.union([
|
|
76
|
+
UnsignedTransaction$outboundSchema,
|
|
77
|
+
UnsignedMulticallTransaction$outboundSchema,
|
|
78
|
+
UserOperationResponse$outboundSchema,
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export namespace EthenaRequestToWithdrawTransactionResponseTransaction$ {
|
|
86
|
+
/** @deprecated use `EthenaRequestToWithdrawTransactionResponseTransaction$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema =
|
|
88
|
+
EthenaRequestToWithdrawTransactionResponseTransaction$inboundSchema;
|
|
89
|
+
/** @deprecated use `EthenaRequestToWithdrawTransactionResponseTransaction$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema =
|
|
91
|
+
EthenaRequestToWithdrawTransactionResponseTransaction$outboundSchema;
|
|
92
|
+
/** @deprecated use `EthenaRequestToWithdrawTransactionResponseTransaction$Outbound` instead. */
|
|
93
|
+
export type Outbound =
|
|
94
|
+
EthenaRequestToWithdrawTransactionResponseTransaction$Outbound;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ethenaRequestToWithdrawTransactionResponseTransactionToJSON(
|
|
98
|
+
ethenaRequestToWithdrawTransactionResponseTransaction:
|
|
99
|
+
EthenaRequestToWithdrawTransactionResponseTransaction,
|
|
100
|
+
): string {
|
|
101
|
+
return JSON.stringify(
|
|
102
|
+
EthenaRequestToWithdrawTransactionResponseTransaction$outboundSchema.parse(
|
|
103
|
+
ethenaRequestToWithdrawTransactionResponseTransaction,
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function ethenaRequestToWithdrawTransactionResponseTransactionFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<
|
|
111
|
+
EthenaRequestToWithdrawTransactionResponseTransaction,
|
|
112
|
+
SDKValidationError
|
|
113
|
+
> {
|
|
114
|
+
return safeParse(
|
|
115
|
+
jsonString,
|
|
116
|
+
(x) =>
|
|
117
|
+
EthenaRequestToWithdrawTransactionResponseTransaction$inboundSchema.parse(
|
|
118
|
+
JSON.parse(x),
|
|
119
|
+
),
|
|
120
|
+
`Failed to parse 'EthenaRequestToWithdrawTransactionResponseTransaction' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const EthenaRequestToWithdrawTransactionResponse$inboundSchema:
|
|
126
|
+
z.ZodType<EthenaRequestToWithdrawTransactionResponse, z.ZodTypeDef, unknown> =
|
|
127
|
+
z.object({
|
|
128
|
+
transaction: z.union([
|
|
129
|
+
UnsignedTransaction$inboundSchema,
|
|
130
|
+
UnsignedMulticallTransaction$inboundSchema,
|
|
131
|
+
UserOperationResponse$inboundSchema,
|
|
132
|
+
]),
|
|
133
|
+
cooldown_duration_days: z.number().int(),
|
|
134
|
+
}).transform((v) => {
|
|
135
|
+
return remap$(v, {
|
|
136
|
+
"cooldown_duration_days": "cooldownDurationDays",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export type EthenaRequestToWithdrawTransactionResponse$Outbound = {
|
|
142
|
+
transaction:
|
|
143
|
+
| UnsignedTransaction$Outbound
|
|
144
|
+
| UnsignedMulticallTransaction$Outbound
|
|
145
|
+
| UserOperationResponse$Outbound;
|
|
146
|
+
cooldown_duration_days: number;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const EthenaRequestToWithdrawTransactionResponse$outboundSchema:
|
|
151
|
+
z.ZodType<
|
|
152
|
+
EthenaRequestToWithdrawTransactionResponse$Outbound,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
EthenaRequestToWithdrawTransactionResponse
|
|
155
|
+
> = z.object({
|
|
156
|
+
transaction: z.union([
|
|
157
|
+
UnsignedTransaction$outboundSchema,
|
|
158
|
+
UnsignedMulticallTransaction$outboundSchema,
|
|
159
|
+
UserOperationResponse$outboundSchema,
|
|
160
|
+
]),
|
|
161
|
+
cooldownDurationDays: z.number().int(),
|
|
162
|
+
}).transform((v) => {
|
|
163
|
+
return remap$(v, {
|
|
164
|
+
cooldownDurationDays: "cooldown_duration_days",
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
171
|
+
*/
|
|
172
|
+
export namespace EthenaRequestToWithdrawTransactionResponse$ {
|
|
173
|
+
/** @deprecated use `EthenaRequestToWithdrawTransactionResponse$inboundSchema` instead. */
|
|
174
|
+
export const inboundSchema =
|
|
175
|
+
EthenaRequestToWithdrawTransactionResponse$inboundSchema;
|
|
176
|
+
/** @deprecated use `EthenaRequestToWithdrawTransactionResponse$outboundSchema` instead. */
|
|
177
|
+
export const outboundSchema =
|
|
178
|
+
EthenaRequestToWithdrawTransactionResponse$outboundSchema;
|
|
179
|
+
/** @deprecated use `EthenaRequestToWithdrawTransactionResponse$Outbound` instead. */
|
|
180
|
+
export type Outbound = EthenaRequestToWithdrawTransactionResponse$Outbound;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function ethenaRequestToWithdrawTransactionResponseToJSON(
|
|
184
|
+
ethenaRequestToWithdrawTransactionResponse:
|
|
185
|
+
EthenaRequestToWithdrawTransactionResponse,
|
|
186
|
+
): string {
|
|
187
|
+
return JSON.stringify(
|
|
188
|
+
EthenaRequestToWithdrawTransactionResponse$outboundSchema.parse(
|
|
189
|
+
ethenaRequestToWithdrawTransactionResponse,
|
|
190
|
+
),
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function ethenaRequestToWithdrawTransactionResponseFromJSON(
|
|
195
|
+
jsonString: string,
|
|
196
|
+
): SafeParseResult<
|
|
197
|
+
EthenaRequestToWithdrawTransactionResponse,
|
|
198
|
+
SDKValidationError
|
|
199
|
+
> {
|
|
200
|
+
return safeParse(
|
|
201
|
+
jsonString,
|
|
202
|
+
(x) =>
|
|
203
|
+
EthenaRequestToWithdrawTransactionResponse$inboundSchema.parse(
|
|
204
|
+
JSON.parse(x),
|
|
205
|
+
),
|
|
206
|
+
`Failed to parse 'EthenaRequestToWithdrawTransactionResponse' from JSON`,
|
|
207
|
+
);
|
|
208
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 EthenaWithdrawParams = {
|
|
12
|
+
actionType?: "ETHENA_WITHDRAW" | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
|
|
15
|
+
*/
|
|
16
|
+
amount?: any | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The address which will receive the USDe withdrawn. Defaults to the sender.
|
|
19
|
+
*/
|
|
20
|
+
receiver?: string | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const EthenaWithdrawParams$inboundSchema: z.ZodType<
|
|
25
|
+
EthenaWithdrawParams,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
30
|
+
amount: z.any().optional(),
|
|
31
|
+
receiver: z.nullable(z.string()).optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"action_type": "actionType",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type EthenaWithdrawParams$Outbound = {
|
|
40
|
+
action_type: "ETHENA_WITHDRAW";
|
|
41
|
+
amount?: any | undefined;
|
|
42
|
+
receiver?: string | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const EthenaWithdrawParams$outboundSchema: z.ZodType<
|
|
47
|
+
EthenaWithdrawParams$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
EthenaWithdrawParams
|
|
50
|
+
> = z.object({
|
|
51
|
+
actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW" as const),
|
|
52
|
+
amount: z.any().optional(),
|
|
53
|
+
receiver: z.nullable(z.string()).optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
actionType: "action_type",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace EthenaWithdrawParams$ {
|
|
65
|
+
/** @deprecated use `EthenaWithdrawParams$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = EthenaWithdrawParams$inboundSchema;
|
|
67
|
+
/** @deprecated use `EthenaWithdrawParams$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = EthenaWithdrawParams$outboundSchema;
|
|
69
|
+
/** @deprecated use `EthenaWithdrawParams$Outbound` instead. */
|
|
70
|
+
export type Outbound = EthenaWithdrawParams$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ethenaWithdrawParamsToJSON(
|
|
74
|
+
ethenaWithdrawParams: EthenaWithdrawParams,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
EthenaWithdrawParams$outboundSchema.parse(ethenaWithdrawParams),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ethenaWithdrawParamsFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<EthenaWithdrawParams, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => EthenaWithdrawParams$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'EthenaWithdrawParams' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
export const EthenaWithdrawRequestChain = {
|
|
13
|
+
Ethereum: "ethereum",
|
|
14
|
+
} as const;
|
|
15
|
+
export type EthenaWithdrawRequestChain = ClosedEnum<
|
|
16
|
+
typeof EthenaWithdrawRequestChain
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export type EthenaWithdrawRequest = {
|
|
20
|
+
actionType?: "ETHENA_WITHDRAW" | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
|
|
23
|
+
*/
|
|
24
|
+
amount?: any | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The address which will receive the USDe withdrawn. Defaults to the sender.
|
|
27
|
+
*/
|
|
28
|
+
receiver?: string | null | undefined;
|
|
29
|
+
chain: EthenaWithdrawRequestChain;
|
|
30
|
+
/**
|
|
31
|
+
* The address of the transaction sender.
|
|
32
|
+
*/
|
|
33
|
+
sender: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const EthenaWithdrawRequestChain$inboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof EthenaWithdrawRequestChain
|
|
39
|
+
> = z.nativeEnum(EthenaWithdrawRequestChain);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const EthenaWithdrawRequestChain$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof EthenaWithdrawRequestChain
|
|
44
|
+
> = EthenaWithdrawRequestChain$inboundSchema;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace EthenaWithdrawRequestChain$ {
|
|
51
|
+
/** @deprecated use `EthenaWithdrawRequestChain$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = EthenaWithdrawRequestChain$inboundSchema;
|
|
53
|
+
/** @deprecated use `EthenaWithdrawRequestChain$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = EthenaWithdrawRequestChain$outboundSchema;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const EthenaWithdrawRequest$inboundSchema: z.ZodType<
|
|
59
|
+
EthenaWithdrawRequest,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.object({
|
|
63
|
+
action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
64
|
+
amount: z.any().optional(),
|
|
65
|
+
receiver: z.nullable(z.string()).optional(),
|
|
66
|
+
chain: EthenaWithdrawRequestChain$inboundSchema,
|
|
67
|
+
sender: z.string(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
"action_type": "actionType",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type EthenaWithdrawRequest$Outbound = {
|
|
76
|
+
action_type: "ETHENA_WITHDRAW";
|
|
77
|
+
amount?: any | undefined;
|
|
78
|
+
receiver?: string | null | undefined;
|
|
79
|
+
chain: string;
|
|
80
|
+
sender: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const EthenaWithdrawRequest$outboundSchema: z.ZodType<
|
|
85
|
+
EthenaWithdrawRequest$Outbound,
|
|
86
|
+
z.ZodTypeDef,
|
|
87
|
+
EthenaWithdrawRequest
|
|
88
|
+
> = z.object({
|
|
89
|
+
actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW" as const),
|
|
90
|
+
amount: z.any().optional(),
|
|
91
|
+
receiver: z.nullable(z.string()).optional(),
|
|
92
|
+
chain: EthenaWithdrawRequestChain$outboundSchema,
|
|
93
|
+
sender: z.string(),
|
|
94
|
+
}).transform((v) => {
|
|
95
|
+
return remap$(v, {
|
|
96
|
+
actionType: "action_type",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
+
*/
|
|
104
|
+
export namespace EthenaWithdrawRequest$ {
|
|
105
|
+
/** @deprecated use `EthenaWithdrawRequest$inboundSchema` instead. */
|
|
106
|
+
export const inboundSchema = EthenaWithdrawRequest$inboundSchema;
|
|
107
|
+
/** @deprecated use `EthenaWithdrawRequest$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema = EthenaWithdrawRequest$outboundSchema;
|
|
109
|
+
/** @deprecated use `EthenaWithdrawRequest$Outbound` instead. */
|
|
110
|
+
export type Outbound = EthenaWithdrawRequest$Outbound;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function ethenaWithdrawRequestToJSON(
|
|
114
|
+
ethenaWithdrawRequest: EthenaWithdrawRequest,
|
|
115
|
+
): string {
|
|
116
|
+
return JSON.stringify(
|
|
117
|
+
EthenaWithdrawRequest$outboundSchema.parse(ethenaWithdrawRequest),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function ethenaWithdrawRequestFromJSON(
|
|
122
|
+
jsonString: string,
|
|
123
|
+
): SafeParseResult<EthenaWithdrawRequest, SDKValidationError> {
|
|
124
|
+
return safeParse(
|
|
125
|
+
jsonString,
|
|
126
|
+
(x) => EthenaWithdrawRequest$inboundSchema.parse(JSON.parse(x)),
|
|
127
|
+
`Failed to parse 'EthenaWithdrawRequest' from JSON`,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
@@ -56,11 +56,19 @@ export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsasset.js";
|
|
|
56
56
|
export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate.js";
|
|
57
57
|
export * from "./compassapibackendmodelspendlereadresponsemarketuserposition.js";
|
|
58
58
|
export * from "./compassapibackendmodelspendlereadresponsepositionstokenbalance.js";
|
|
59
|
-
export * from "./compassapibackendmodelsvaultsreadresponsevaultasset.js";
|
|
60
59
|
export * from "./compassapibackendmodelsvaultsreadresponsevaultuserposition.js";
|
|
60
|
+
export * from "./cooldownposition.js";
|
|
61
61
|
export * from "./details.js";
|
|
62
62
|
export * from "./ensnameinforesponse.js";
|
|
63
63
|
export * from "./erc20data.js";
|
|
64
|
+
export * from "./ethenadepositparams.js";
|
|
65
|
+
export * from "./ethenadepositrequest.js";
|
|
66
|
+
export * from "./ethenagetvaultresponse.js";
|
|
67
|
+
export * from "./ethenarequesttowithdrawparams.js";
|
|
68
|
+
export * from "./ethenarequesttowithdrawrequest.js";
|
|
69
|
+
export * from "./ethenarequesttowithdrawtransactionresponse.js";
|
|
70
|
+
export * from "./ethenawithdrawparams.js";
|
|
71
|
+
export * from "./ethenawithdrawrequest.js";
|
|
64
72
|
export * from "./feeenum.js";
|
|
65
73
|
export * from "./interestratemode.js";
|
|
66
74
|
export * from "./liquidationcall.js";
|
|
@@ -139,6 +147,7 @@ export * from "./tokentransfererc20params.js";
|
|
|
139
147
|
export * from "./tokentransferparams.js";
|
|
140
148
|
export * from "./tokentransferrequest.js";
|
|
141
149
|
export * from "./transactionresponse.js";
|
|
150
|
+
export * from "./underlyingtoken.js";
|
|
142
151
|
export * from "./uniswapbuyexactlyparams.js";
|
|
143
152
|
export * from "./uniswapbuyexactlyrequest.js";
|
|
144
153
|
export * from "./uniswapbuyexactlytransactionresponse.js";
|
|
@@ -33,6 +33,7 @@ export const SetAllowanceParamsContractEnum = {
|
|
|
33
33
|
SkyUsdsVault: "SkyUsdsVault",
|
|
34
34
|
PendleRouter: "PendleRouter",
|
|
35
35
|
OdosRouter: "OdosRouter",
|
|
36
|
+
EthenaVault: "EthenaVault",
|
|
36
37
|
} as const;
|
|
37
38
|
export type SetAllowanceParamsContractEnum = ClosedEnum<
|
|
38
39
|
typeof SetAllowanceParamsContractEnum
|
|
@@ -33,6 +33,7 @@ export const SetAllowanceRequestContractEnum = {
|
|
|
33
33
|
SkyUsdsVault: "SkyUsdsVault",
|
|
34
34
|
PendleRouter: "PendleRouter",
|
|
35
35
|
OdosRouter: "OdosRouter",
|
|
36
|
+
EthenaVault: "EthenaVault",
|
|
36
37
|
} as const;
|
|
37
38
|
export type SetAllowanceRequestContractEnum = ClosedEnum<
|
|
38
39
|
typeof SetAllowanceRequestContractEnum
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type UnderlyingToken = {
|
|
11
|
+
address: string;
|
|
12
|
+
name: string;
|
|
13
|
+
symbol: string;
|
|
14
|
+
decimals: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const UnderlyingToken$inboundSchema: z.ZodType<
|
|
19
|
+
UnderlyingToken,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
address: z.string(),
|
|
24
|
+
name: z.string(),
|
|
25
|
+
symbol: z.string(),
|
|
26
|
+
decimals: z.number().int(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type UnderlyingToken$Outbound = {
|
|
31
|
+
address: string;
|
|
32
|
+
name: string;
|
|
33
|
+
symbol: string;
|
|
34
|
+
decimals: number;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const UnderlyingToken$outboundSchema: z.ZodType<
|
|
39
|
+
UnderlyingToken$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
UnderlyingToken
|
|
42
|
+
> = z.object({
|
|
43
|
+
address: z.string(),
|
|
44
|
+
name: z.string(),
|
|
45
|
+
symbol: z.string(),
|
|
46
|
+
decimals: z.number().int(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace UnderlyingToken$ {
|
|
54
|
+
/** @deprecated use `UnderlyingToken$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = UnderlyingToken$inboundSchema;
|
|
56
|
+
/** @deprecated use `UnderlyingToken$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = UnderlyingToken$outboundSchema;
|
|
58
|
+
/** @deprecated use `UnderlyingToken$Outbound` instead. */
|
|
59
|
+
export type Outbound = UnderlyingToken$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function underlyingTokenToJSON(
|
|
63
|
+
underlyingToken: UnderlyingToken,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(UnderlyingToken$outboundSchema.parse(underlyingToken));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function underlyingTokenFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<UnderlyingToken, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => UnderlyingToken$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'UnderlyingToken' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|