@compass-labs/api-sdk 2.1.11 → 2.1.12-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +26 -0
- package/USAGE.md +20 -0
- package/codeSamples_typescript.yaml +551 -0
- package/dist/commonjs/funcs/bridgeCctpBurn.d.ts +1 -1
- package/dist/commonjs/funcs/bridgeCctpBurn.js +1 -1
- package/dist/commonjs/funcs/bridgeCctpMint.d.ts +2 -4
- package/dist/commonjs/funcs/bridgeCctpMint.d.ts.map +1 -1
- package/dist/commonjs/funcs/bridgeCctpMint.js +2 -4
- package/dist/commonjs/funcs/bridgeCctpMint.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/bridge.d.ts +3 -5
- package/dist/commonjs/sdk/bridge.d.ts.map +1 -1
- package/dist/commonjs/sdk/bridge.js +3 -5
- package/dist/commonjs/sdk/bridge.js.map +1 -1
- package/dist/esm/funcs/bridgeCctpBurn.d.ts +1 -1
- package/dist/esm/funcs/bridgeCctpBurn.js +1 -1
- package/dist/esm/funcs/bridgeCctpMint.d.ts +2 -4
- package/dist/esm/funcs/bridgeCctpMint.d.ts.map +1 -1
- package/dist/esm/funcs/bridgeCctpMint.js +2 -4
- package/dist/esm/funcs/bridgeCctpMint.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/bridge.d.ts +3 -5
- package/dist/esm/sdk/bridge.d.ts.map +1 -1
- package/dist/esm/sdk/bridge.js +3 -5
- package/dist/esm/sdk/bridge.js.map +1 -1
- package/docs/lib/utils/retryconfig.md +24 -0
- package/docs/models/components/aaveavgrateresponse.md +27 -0
- package/docs/models/components/aaveborrowparams.md +24 -0
- package/docs/models/components/aaveborrowparamsamount.md +19 -0
- package/docs/models/components/aaveborrowrequest.md +29 -0
- package/docs/models/components/aaveborrowrequestamount.md +19 -0
- package/docs/models/components/aaveborrowrequestchain.md +15 -0
- package/docs/models/components/aavehistoricaltransactionsresponse.md +23 -0
- package/docs/models/components/aavehistoricaltransactionsresponsetransaction.md +148 -0
- package/docs/models/components/aaveliquiditychangeresponse.md +21 -0
- package/docs/models/components/aavelooprequest.md +46 -0
- package/docs/models/components/aavelooprequestchain.md +15 -0
- package/docs/models/components/aaveposition.md +25 -0
- package/docs/models/components/aaverateresponse.md +27 -0
- package/docs/models/components/aaverepayparams.md +24 -0
- package/docs/models/components/aaverepayparamsamount.md +19 -0
- package/docs/models/components/aaverepayrequest.md +29 -0
- package/docs/models/components/aaverepayrequestamount.md +19 -0
- package/docs/models/components/aaverepayrequestchain.md +15 -0
- package/docs/models/components/aavereserveoverviewresponse.md +21 -0
- package/docs/models/components/aavestdrateresponse.md +27 -0
- package/docs/models/components/aavesupplyparams.md +22 -0
- package/docs/models/components/aavesupplyparamsamount.md +19 -0
- package/docs/models/components/aavesupplyrequest.md +26 -0
- package/docs/models/components/aavesupplyrequestamount.md +19 -0
- package/docs/models/components/aavesupplyrequestchain.md +15 -0
- package/docs/models/components/aavesupportedtokenmetadata.md +23 -0
- package/docs/models/components/aavesupportedtokensresponse.md +24 -0
- package/docs/models/components/aavetokenpriceresponse.md +17 -0
- package/docs/models/components/aaveusdcratesresponse.md +40 -0
- package/docs/models/components/aaveuserpositionpertokenresponse.md +33 -0
- package/docs/models/components/aaveuserpositionsummaryresponse.md +27 -0
- package/docs/models/components/aavevenue.md +19 -0
- package/docs/models/components/aavewithdrawparams.md +23 -0
- package/docs/models/components/aavewithdrawparamsamount.md +19 -0
- package/docs/models/components/aavewithdrawrequest.md +27 -0
- package/docs/models/components/aavewithdrawrequestamount.md +19 -0
- package/docs/models/components/aavewithdrawrequestchain.md +15 -0
- package/docs/models/components/aerodromelppositionsresponse.md +17 -0
- package/docs/models/components/aerodromeposition.md +41 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyparams.md +29 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyparamsamountinmaximum.md +19 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyparamsamountout.md +19 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyrequest.md +33 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestamountinmaximum.md +19 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestamountout.md +19 -0
- package/docs/models/components/aerodromeslipstreambuyexactlyrequestchain.md +15 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.md +32 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionparamsamount0desired.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionparamsamount0min.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionparamsamount1desired.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionparamsamount1min.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequest.md +31 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount0desired.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount0min.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount1desired.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestamount1min.md +19 -0
- package/docs/models/components/aerodromeslipstreamincreaseliquidityprovisionrequestchain.md +15 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionparams.md +38 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionparamsamount0desired.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionparamsamount0min.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionparamsamount1desired.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionparamsamount1min.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequest.md +43 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount0desired.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount0min.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount1desired.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestamount1min.md +19 -0
- package/docs/models/components/aerodromeslipstreammintliquidityprovisionrequestchain.md +15 -0
- package/docs/models/components/aerodromeslipstreampoolpriceresponse.md +23 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyparams.md +29 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyparamsamountin.md +19 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyparamsamountoutminimum.md +19 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyrequest.md +33 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyrequestamountin.md +19 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyrequestamountoutminimum.md +19 -0
- package/docs/models/components/aerodromeslipstreamsellexactlyrequestchain.md +15 -0
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.md +26 -0
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparamspercentageforwithdrawal.md +19 -0
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequest.md +25 -0
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequestchain.md +15 -0
- package/docs/models/components/aerodromeslipstreamwithdrawliquidityprovisionrequestpercentageforwithdrawal.md +19 -0
- package/docs/models/components/allowanceinforesponse.md +27 -0
- package/docs/models/components/approvetransferrequest.md +22 -0
- package/docs/models/components/approvetransferresponse.md +48 -0
- package/docs/models/components/apy.md +23 -0
- package/docs/models/components/batchedsafeoperationsresponseinput.md +47 -0
- package/docs/models/components/batchedsafeoperationsresponseoutput.md +47 -0
- package/docs/models/components/batcheduseroperationsrequest.md +36 -0
- package/docs/models/components/batcheduseroperationsrequestchain.md +15 -0
- package/docs/models/components/batcheduseroperationsresponse.md +17 -0
- package/docs/models/components/body.md +424 -0
- package/docs/models/components/borrow.md +37 -0
- package/docs/models/components/borrowratemode.md +17 -0
- package/docs/models/components/bundlertransactionresponse.md +28 -0
- package/docs/models/components/chain.md +17 -0
- package/docs/models/components/chaininfo.md +18 -0
- package/docs/models/components/chainratedata.md +21 -0
- package/docs/models/components/compassapibackendv1modelsgenericreadresponseportfoliotokenbalance.md +27 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsecheckuserpositionapydata.md +20 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsecheckuserpositionasset.md +27 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsecheckuserpositionmarketstate.md +34 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsecheckuserpositionvaultposition.md +52 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsecheckuserpositionvaultstate.md +24 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketapydata.md +23 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketasset.md +27 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketmarketstate.md +28 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketsasset.md +23 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketsmarketstate.md +31 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetvaultsasset.md +25 -0
- package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetvaultsvaultstate.md +28 -0
- package/docs/models/components/compassapibackendv1modelspendlereadresponsemarketuserposition.md +28 -0
- package/docs/models/components/compassapibackendv1modelspendlereadresponsepositionstokenbalance.md +19 -0
- package/docs/models/components/compassapibackendv1modelsvaultsreadresponsevaultuserposition.md +19 -0
- package/docs/models/components/compassapibackendv1modelswildcatreadresponsemarketuserposition.md +19 -0
- package/docs/models/components/compassapibackendv2modelsearnreadresponsepositionsvaultposition.md +27 -0
- package/docs/models/components/compassapibackendv2modelsgassponsorshippermit2typeddataeip712domain.md +21 -0
- package/docs/models/components/compassapibackendv2modelsgassponsorshippermit2typeddataeip712types.md +61 -0
- package/docs/models/components/compassapibackendv2modelsgassponsorshippermittypeddataeip712domain.md +26 -0
- package/docs/models/components/compassapibackendv2modelsgassponsorshippermittypeddataeip712types.md +21 -0
- package/docs/models/components/compassapibackendv2modelssafetransactresponsebatchedsafeoperationseip712domain.md +23 -0
- package/docs/models/components/compassapibackendv2modelssafetransactresponsebatchedsafeoperationseip712types.md +23 -0
- package/docs/models/components/cooldownend.md +19 -0
- package/docs/models/components/cooldownposition.md +21 -0
- package/docs/models/components/createaccountrequest.md +24 -0
- package/docs/models/components/createaccountrequestchain.md +15 -0
- package/docs/models/components/createaccountresponse.md +31 -0
- package/docs/models/components/denomination.md +17 -0
- package/docs/models/components/depositforburnrequest.md +27 -0
- package/docs/models/components/depositforburnrequestamount.md +19 -0
- package/docs/models/components/depositforburnrequestchain.md +17 -0
- package/docs/models/components/depositforburnrequesttransfermode.md +17 -0
- package/docs/models/components/depositforburnresponse.md +68 -0
- package/docs/models/components/depositforburnresponsetransfermode.md +17 -0
- package/docs/models/components/destinationchain.md +17 -0
- package/docs/models/components/details.md +33 -0
- package/docs/models/components/earnmanagerequest.md +30 -0
- package/docs/models/components/earnmanagerequestaction.md +17 -0
- package/docs/models/components/earnmanageresponse.md +29 -0
- package/docs/models/components/earnpositionresponse.md +26 -0
- package/docs/models/components/earnpositionsresponse.md +17 -0
- package/docs/models/components/earnswaprequest.md +29 -0
- package/docs/models/components/earnswaprequestamountin.md +19 -0
- package/docs/models/components/earnswapresponse.md +58 -0
- package/docs/models/components/earntransferrequest.md +27 -0
- package/docs/models/components/earntransferrequestaction.md +17 -0
- package/docs/models/components/earntransferrequestamount.md +19 -0
- package/docs/models/components/earntransferresponse.md +56 -0
- package/docs/models/components/earntransferresponseeip712.md +102 -0
- package/docs/models/components/eip712domainfield.md +21 -0
- package/docs/models/components/eip712field.md +19 -0
- package/docs/models/components/ensnameinforesponse.md +21 -0
- package/docs/models/components/erc20data.md +23 -0
- package/docs/models/components/ethenadepositparams.md +20 -0
- package/docs/models/components/ethenadepositparamsamount.md +19 -0
- package/docs/models/components/ethenadepositrequest.md +24 -0
- package/docs/models/components/ethenadepositrequestamount.md +19 -0
- package/docs/models/components/ethenadepositrequestchain.md +15 -0
- package/docs/models/components/ethenagetvaultresponse.md +45 -0
- package/docs/models/components/ethenarequesttowithdrawparams.md +19 -0
- package/docs/models/components/ethenarequesttowithdrawrequest.md +23 -0
- package/docs/models/components/ethenarequesttowithdrawrequestchain.md +15 -0
- package/docs/models/components/ethenarequesttowithdrawtransactionresponse.md +29 -0
- package/docs/models/components/ethenarequesttowithdrawtransactionresponsetransaction.md +33 -0
- package/docs/models/components/ethenaunstakeparams.md +18 -0
- package/docs/models/components/ethenaunstakerequest.md +22 -0
- package/docs/models/components/ethenaunstakerequestchain.md +15 -0
- package/docs/models/components/fee.md +21 -0
- package/docs/models/components/feeamount.md +19 -0
- package/docs/models/components/feeenum.md +19 -0
- package/docs/models/components/initialcollateralamount.md +19 -0
- package/docs/models/components/interestratemode.md +19 -0
- package/docs/models/components/liquidationcall.md +45 -0
- package/docs/models/components/loantovalue.md +19 -0
- package/docs/models/components/loc.md +17 -0
- package/docs/models/components/lpbalance.md +21 -0
- package/docs/models/components/market.md +17 -0
- package/docs/models/components/marketposition.md +35 -0
- package/docs/models/components/markettokens.md +50 -0
- package/docs/models/components/maxslippagepercent.md +19 -0
- package/docs/models/components/maxsupplyapydata.md +24 -0
- package/docs/models/components/mintpreparecompletedresponse.md +27 -0
- package/docs/models/components/mintpreparependingresponse.md +33 -0
- package/docs/models/components/mintpreparereadyresponse.md +36 -0
- package/docs/models/components/mintpreparerequest.md +22 -0
- package/docs/models/components/morphoborrowparams.md +23 -0
- package/docs/models/components/morphoborrowparamsamount.md +19 -0
- package/docs/models/components/morphoborrowrequest.md +28 -0
- package/docs/models/components/morphoborrowrequestamount.md +19 -0
- package/docs/models/components/morphoborrowrequestchain.md +15 -0
- package/docs/models/components/morphocheckmarketpositionresponse.md +25 -0
- package/docs/models/components/morphocheckuserpositionresponse.md +28 -0
- package/docs/models/components/morphodepositparams.md +22 -0
- package/docs/models/components/morphodepositparamsamount.md +19 -0
- package/docs/models/components/morphodepositrequest.md +26 -0
- package/docs/models/components/morphodepositrequestamount.md +19 -0
- package/docs/models/components/morphodepositrequestchain.md +15 -0
- package/docs/models/components/morphogetmarketresponse.md +71 -0
- package/docs/models/components/morphogetmarketsresponse.md +17 -0
- package/docs/models/components/morphogetvaultsresponse.md +17 -0
- package/docs/models/components/morphomarket.md +49 -0
- package/docs/models/components/morphorepayparams.md +23 -0
- package/docs/models/components/morphorepayrequest.md +28 -0
- package/docs/models/components/morphorepayrequestchain.md +15 -0
- package/docs/models/components/morphosupplycollateralparams.md +23 -0
- package/docs/models/components/morphosupplycollateralparamsamount.md +19 -0
- package/docs/models/components/morphosupplycollateralrequest.md +28 -0
- package/docs/models/components/morphosupplycollateralrequestamount.md +19 -0
- package/docs/models/components/morphosupplycollateralrequestchain.md +15 -0
- package/docs/models/components/morphovault.md +51 -0
- package/docs/models/components/morphowithdrawcollateralparams.md +23 -0
- package/docs/models/components/morphowithdrawcollateralparamsamount.md +19 -0
- package/docs/models/components/morphowithdrawcollateralrequest.md +28 -0
- package/docs/models/components/morphowithdrawcollateralrequestamount.md +19 -0
- package/docs/models/components/morphowithdrawcollateralrequestchain.md +15 -0
- package/docs/models/components/morphowithdrawparams.md +22 -0
- package/docs/models/components/morphowithdrawrequest.md +26 -0
- package/docs/models/components/morphowithdrawrequestchain.md +15 -0
- package/docs/models/components/movement10percent.md +18 -0
- package/docs/models/components/multicallauthorizationrequest.md +25 -0
- package/docs/models/components/multicallauthorizationrequestchain.md +15 -0
- package/docs/models/components/multicallauthorizationresponse.md +23 -0
- package/docs/models/components/multicallexecuterequest.md +84 -0
- package/docs/models/components/multicallexecuterequestchain.md +15 -0
- package/docs/models/components/multiplier.md +19 -0
- package/docs/models/components/odosswapparams.md +25 -0
- package/docs/models/components/odosswapparamsamountin.md +19 -0
- package/docs/models/components/odosswaprequest.md +29 -0
- package/docs/models/components/odosswaprequestamountin.md +19 -0
- package/docs/models/components/odosswaprequestchain.md +15 -0
- package/docs/models/components/odostransactionresponse.md +23 -0
- package/docs/models/components/odostransactionresponsetransaction.md +33 -0
- package/docs/models/components/openposition.md +33 -0
- package/docs/models/components/operationtype.md +17 -0
- package/docs/models/components/pendlegetmarketresponse.md +55 -0
- package/docs/models/components/pendlelistmarketsresponse.md +42 -0
- package/docs/models/components/pendlelistuserpositionsresponse.md +67 -0
- package/docs/models/components/pendlemanageliquidityparams.md +27 -0
- package/docs/models/components/pendlemanageliquidityparamsaction.md +17 -0
- package/docs/models/components/pendlemanageliquidityparamsamountin.md +19 -0
- package/docs/models/components/pendlemanageliquidityrequest.md +31 -0
- package/docs/models/components/pendlemanageliquidityrequestaction.md +17 -0
- package/docs/models/components/pendlemanageliquidityrequestamountin.md +19 -0
- package/docs/models/components/pendlemanageliquidityrequestchain.md +15 -0
- package/docs/models/components/pendlemarket.md +48 -0
- package/docs/models/components/pendleredeemyieldparams.md +19 -0
- package/docs/models/components/pendleredeemyieldrequest.md +23 -0
- package/docs/models/components/pendleredeemyieldrequestchain.md +15 -0
- package/docs/models/components/pendletradeptparams.md +27 -0
- package/docs/models/components/pendletradeptparamsaction.md +17 -0
- package/docs/models/components/pendletradeptparamsamountin.md +19 -0
- package/docs/models/components/pendletradeptrequest.md +31 -0
- package/docs/models/components/pendletradeptrequestaction.md +17 -0
- package/docs/models/components/pendletradeptrequestamountin.md +19 -0
- package/docs/models/components/pendletradeptrequestchain.md +15 -0
- package/docs/models/components/pendletradeytparams.md +27 -0
- package/docs/models/components/pendletradeytparamsaction.md +17 -0
- package/docs/models/components/pendletradeytparamsamountin.md +19 -0
- package/docs/models/components/pendletradeytrequest.md +31 -0
- package/docs/models/components/pendletradeytrequestaction.md +17 -0
- package/docs/models/components/pendletradeytrequestamountin.md +19 -0
- package/docs/models/components/pendletradeytrequestchain.md +15 -0
- package/docs/models/components/pendletxresponse.md +29 -0
- package/docs/models/components/pendletxresponsetransaction.md +33 -0
- package/docs/models/components/permit2typeddatainput.md +76 -0
- package/docs/models/components/permit2typeddataoutput.md +76 -0
- package/docs/models/components/permitfield.md +21 -0
- package/docs/models/components/permitmessage.md +27 -0
- package/docs/models/components/permittransferfrommessage.md +26 -0
- package/docs/models/components/permittypeddataresponseinput.md +39 -0
- package/docs/models/components/permittypeddataresponseoutput.md +39 -0
- package/docs/models/components/portfolio.md +28 -0
- package/docs/models/components/position.md +70 -0
- package/docs/models/components/positionunion.md +32 -0
- package/docs/models/components/protocol.md +15 -0
- package/docs/models/components/r.md +19 -0
- package/docs/models/components/repay.md +35 -0
- package/docs/models/components/reserve.md +22 -0
- package/docs/models/components/s.md +19 -0
- package/docs/models/components/safetxfield.md +21 -0
- package/docs/models/components/safetxmessage.md +37 -0
- package/docs/models/components/security.md +17 -0
- package/docs/models/components/setallowanceparams.md +25 -0
- package/docs/models/components/setallowanceparamsamount.md +19 -0
- package/docs/models/components/setallowanceparamscontractenum.md +15 -0
- package/docs/models/components/setallowanceparamscontractunion.md +20 -0
- package/docs/models/components/setallowancerequest.md +29 -0
- package/docs/models/components/setallowancerequestamount.md +19 -0
- package/docs/models/components/setallowancerequestchain.md +15 -0
- package/docs/models/components/setallowancerequestcontractenum.md +15 -0
- package/docs/models/components/setallowancerequestcontractunion.md +19 -0
- package/docs/models/components/signedauthorization.md +27 -0
- package/docs/models/components/skybuyparams.md +21 -0
- package/docs/models/components/skybuyparamsamount.md +19 -0
- package/docs/models/components/skybuyparamstokenin.md +17 -0
- package/docs/models/components/skybuyrequest.md +25 -0
- package/docs/models/components/skybuyrequestamount.md +19 -0
- package/docs/models/components/skybuyrequestchain.md +15 -0
- package/docs/models/components/skybuyrequesttokenin.md +17 -0
- package/docs/models/components/skycheckpositionresponse.md +19 -0
- package/docs/models/components/skydepositparams.md +20 -0
- package/docs/models/components/skydepositparamsamount.md +19 -0
- package/docs/models/components/skydepositrequest.md +24 -0
- package/docs/models/components/skydepositrequestamount.md +19 -0
- package/docs/models/components/skydepositrequestchain.md +15 -0
- package/docs/models/components/skysellparams.md +21 -0
- package/docs/models/components/skysellparamsamount.md +19 -0
- package/docs/models/components/skysellparamstokenout.md +17 -0
- package/docs/models/components/skysellrequest.md +25 -0
- package/docs/models/components/skysellrequestamount.md +19 -0
- package/docs/models/components/skysellrequestchain.md +15 -0
- package/docs/models/components/skysellrequesttokenout.md +17 -0
- package/docs/models/components/skywithdrawparams.md +20 -0
- package/docs/models/components/skywithdrawrequest.md +24 -0
- package/docs/models/components/skywithdrawrequestchain.md +15 -0
- package/docs/models/components/slippage.md +19 -0
- package/docs/models/components/sponsorgasrequest.md +84 -0
- package/docs/models/components/sponsorgasrequesteip712.md +129 -0
- package/docs/models/components/sponsorgasresponse.md +27 -0
- package/docs/models/components/supply.md +35 -0
- package/docs/models/components/supportedchaininfo.md +19 -0
- package/docs/models/components/swapborrowrate.md +39 -0
- package/docs/models/components/syposition.md +19 -0
- package/docs/models/components/tokenbalanceresponse.md +25 -0
- package/docs/models/components/tokenconfig.md +23 -0
- package/docs/models/components/tokenlistresponse.md +26 -0
- package/docs/models/components/tokenpermissions.md +19 -0
- package/docs/models/components/tokenpriceresponse.md +17 -0
- package/docs/models/components/tokentransferparams.md +25 -0
- package/docs/models/components/tokentransferparamsamount.md +19 -0
- package/docs/models/components/tokentransferrequest.md +29 -0
- package/docs/models/components/tokentransferrequestamount.md +19 -0
- package/docs/models/components/tokentransferrequestchain.md +15 -0
- package/docs/models/components/transactionresponse.md +21 -0
- package/docs/models/components/transactionresponsetransaction.md +33 -0
- package/docs/models/components/underlyingtoken.md +23 -0
- package/docs/models/components/uniswapbuyexactlyparams.md +27 -0
- package/docs/models/components/uniswapbuyexactlyparamsamountout.md +19 -0
- package/docs/models/components/uniswapbuyexactlyrequest.md +33 -0
- package/docs/models/components/uniswapbuyexactlyrequestamountout.md +19 -0
- package/docs/models/components/uniswapbuyexactlyrequestchain.md +15 -0
- package/docs/models/components/uniswapbuyexactlytransactionresponse.md +29 -0
- package/docs/models/components/uniswapbuyexactlytransactionresponsetransaction.md +33 -0
- package/docs/models/components/uniswapbuyquoteinforesponse.md +19 -0
- package/docs/models/components/uniswapcheckinrangeresponse.md +17 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionparams.md +27 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionparamsamount0desired.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionparamsamount0min.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionparamsamount1desired.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionparamsamount1min.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionrequest.md +33 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount0desired.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount0min.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount1desired.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestamount1min.md +19 -0
- package/docs/models/components/uniswapincreaseliquidityprovisionrequestchain.md +15 -0
- package/docs/models/components/uniswaplppositionsinforesponse.md +17 -0
- package/docs/models/components/uniswapmintliquidityprovisionparams.md +36 -0
- package/docs/models/components/uniswapmintliquidityprovisionparamsamount0desired.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionparamsamount0min.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionparamsamount1desired.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionparamsamount1min.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionrequest.md +43 -0
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount0desired.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount0min.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount1desired.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionrequestamount1min.md +19 -0
- package/docs/models/components/uniswapmintliquidityprovisionrequestchain.md +15 -0
- package/docs/models/components/uniswappoolpriceresponse.md +23 -0
- package/docs/models/components/uniswappositionssolidityresponse.md +40 -0
- package/docs/models/components/uniswapsellexactlyparams.md +29 -0
- package/docs/models/components/uniswapsellexactlyparamsamountin.md +19 -0
- package/docs/models/components/uniswapsellexactlyrequest.md +33 -0
- package/docs/models/components/uniswapsellexactlyrequestamountin.md +19 -0
- package/docs/models/components/uniswapsellexactlyrequestchain.md +15 -0
- package/docs/models/components/uniswapsellexactlytransactionresponse.md +23 -0
- package/docs/models/components/uniswapsellexactlytransactionresponsetransaction.md +33 -0
- package/docs/models/components/uniswapsellquoteinforesponse.md +19 -0
- package/docs/models/components/uniswapwithdrawliquidityprovisionparams.md +26 -0
- package/docs/models/components/uniswapwithdrawliquidityprovisionparamspercentageforwithdrawal.md +19 -0
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequest.md +25 -0
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequestchain.md +15 -0
- package/docs/models/components/uniswapwithdrawliquidityprovisionrequestpercentageforwithdrawal.md +19 -0
- package/docs/models/components/unsignedmulticalltransaction.md +35 -0
- package/docs/models/components/unsignedtransaction.md +33 -0
- package/docs/models/components/unwrapwethparams.md +21 -0
- package/docs/models/components/unwrapwethparamsamount.md +19 -0
- package/docs/models/components/unwrapwethrequest.md +25 -0
- package/docs/models/components/unwrapwethrequestamount.md +19 -0
- package/docs/models/components/unwrapwethrequestchain.md +15 -0
- package/docs/models/components/usageascollateral.md +35 -0
- package/docs/models/components/useroperation.md +21 -0
- package/docs/models/components/useroperationresponse.md +21 -0
- package/docs/models/components/userposition.md +30 -0
- package/docs/models/components/userstate.md +27 -0
- package/docs/models/components/validationerror.md +23 -0
- package/docs/models/components/vault.md +47 -0
- package/docs/models/components/vaultdepositparams.md +22 -0
- package/docs/models/components/vaultdepositparamsamount.md +19 -0
- package/docs/models/components/vaultdepositrequest.md +26 -0
- package/docs/models/components/vaultdepositrequestamount.md +19 -0
- package/docs/models/components/vaultdepositrequestchain.md +15 -0
- package/docs/models/components/vaultgetvaultresponse.md +42 -0
- package/docs/models/components/vaultinfo.md +57 -0
- package/docs/models/components/vaultslistresponse.md +25 -0
- package/docs/models/components/vaultvenue.md +19 -0
- package/docs/models/components/vaultwithdrawparams.md +22 -0
- package/docs/models/components/vaultwithdrawrequest.md +26 -0
- package/docs/models/components/vaultwithdrawrequestchain.md +15 -0
- package/docs/models/components/venue.md +25 -0
- package/docs/models/components/weeklyapys.md +23 -0
- package/docs/models/components/wildcatgetmarketresponse.md +57 -0
- package/docs/models/components/withdraw.md +35 -0
- package/docs/models/components/wrapethparams.md +21 -0
- package/docs/models/components/wrapethparamsamount.md +19 -0
- package/docs/models/components/wrapethrequest.md +25 -0
- package/docs/models/components/wrapethrequestamount.md +19 -0
- package/docs/models/components/wrapethrequestchain.md +15 -0
- package/docs/models/components/yieldrange.md +19 -0
- package/docs/models/errors/httpvalidationerror.md +15 -0
- package/docs/models/errors/mintpreparenotfoundresponseerror.md +22 -0
- package/docs/models/operations/amountin.md +19 -0
- package/docs/models/operations/amountout.md +19 -0
- package/docs/models/operations/contract.md +19 -0
- package/docs/models/operations/contractenum.md +15 -0
- package/docs/models/operations/direction.md +17 -0
- package/docs/models/operations/response200v2cctpmint.md +38 -0
- package/docs/models/operations/responsev1transactionbundleraaveloop.md +34 -0
- package/docs/models/operations/v1aaveaavesupportedtokenschain.md +15 -0
- package/docs/models/operations/v1aaveaavesupportedtokensrequest.md +18 -0
- package/docs/models/operations/v1aaveavgratechain.md +15 -0
- package/docs/models/operations/v1aaveavgraterequest.md +22 -0
- package/docs/models/operations/v1aavehistoricaltransactionschain.md +15 -0
- package/docs/models/operations/v1aavehistoricaltransactionsrequest.md +23 -0
- package/docs/models/operations/v1aaveliquiditychangechain.md +15 -0
- package/docs/models/operations/v1aaveliquiditychangerequest.md +23 -0
- package/docs/models/operations/v1aaveratechain.md +15 -0
- package/docs/models/operations/v1aaveraterequest.md +20 -0
- package/docs/models/operations/v1aavereserveoverviewchain.md +15 -0
- package/docs/models/operations/v1aavereserveoverviewrequest.md +20 -0
- package/docs/models/operations/v1aavestdratechain.md +15 -0
- package/docs/models/operations/v1aavestdraterequest.md +22 -0
- package/docs/models/operations/v1aavetokenpricechain.md +15 -0
- package/docs/models/operations/v1aavetokenpricerequest.md +20 -0
- package/docs/models/operations/v1aaveuserpositionpertokenchain.md +15 -0
- package/docs/models/operations/v1aaveuserpositionpertokenrequest.md +22 -0
- package/docs/models/operations/v1aaveuserpositionsummarychain.md +15 -0
- package/docs/models/operations/v1aaveuserpositionsummaryrequest.md +20 -0
- package/docs/models/operations/v1aerodromeslipstreamliquidityprovisionpositionschain.md +15 -0
- package/docs/models/operations/v1aerodromeslipstreamliquidityprovisionpositionsrequest.md +19 -0
- package/docs/models/operations/v1aerodromeslipstreampoolpricechain.md +15 -0
- package/docs/models/operations/v1aerodromeslipstreampoolpricerequest.md +23 -0
- package/docs/models/operations/v1ethenavaultchain.md +15 -0
- package/docs/models/operations/v1ethenavaultrequest.md +20 -0
- package/docs/models/operations/v1genericallowancechain.md +15 -0
- package/docs/models/operations/v1genericallowancerequest.md +23 -0
- package/docs/models/operations/v1genericenschain.md +15 -0
- package/docs/models/operations/v1genericensrequest.md +19 -0
- package/docs/models/operations/v1genericportfoliochain.md +15 -0
- package/docs/models/operations/v1genericportfoliorequest.md +19 -0
- package/docs/models/operations/v1genericsupportedchainsrequest.md +17 -0
- package/docs/models/operations/v1morphomarketchain.md +15 -0
- package/docs/models/operations/v1morphomarketpositionchain.md +15 -0
- package/docs/models/operations/v1morphomarketpositionrequest.md +22 -0
- package/docs/models/operations/v1morphomarketrequest.md +20 -0
- package/docs/models/operations/v1morphomarketschain.md +15 -0
- package/docs/models/operations/v1morphomarketsrequest.md +21 -0
- package/docs/models/operations/v1morphouserpositionchain.md +15 -0
- package/docs/models/operations/v1morphouserpositionrequest.md +19 -0
- package/docs/models/operations/v1morphovaultchain.md +15 -0
- package/docs/models/operations/v1morphovaultrequest.md +22 -0
- package/docs/models/operations/v1morphovaultschain.md +15 -0
- package/docs/models/operations/v1morphovaultsrequest.md +19 -0
- package/docs/models/operations/v1pendlemarketchain.md +15 -0
- package/docs/models/operations/v1pendlemarketrequest.md +22 -0
- package/docs/models/operations/v1pendlemarketschain.md +15 -0
- package/docs/models/operations/v1pendlemarketsrequest.md +17 -0
- package/docs/models/operations/v1pendlepositionschain.md +15 -0
- package/docs/models/operations/v1pendlepositionsrequest.md +19 -0
- package/docs/models/operations/v1skypositionchain.md +15 -0
- package/docs/models/operations/v1skypositionrequest.md +19 -0
- package/docs/models/operations/v1tokenbalancechain.md +15 -0
- package/docs/models/operations/v1tokenbalancerequest.md +21 -0
- package/docs/models/operations/v1tokenlistchain.md +15 -0
- package/docs/models/operations/v1tokenlistrequest.md +17 -0
- package/docs/models/operations/v1tokenpricechain.md +15 -0
- package/docs/models/operations/v1tokenpricerequest.md +20 -0
- package/docs/models/operations/v1uniswapliquidityprovisioninrangechain.md +15 -0
- package/docs/models/operations/v1uniswapliquidityprovisioninrangerequest.md +19 -0
- package/docs/models/operations/v1uniswapliquidityprovisionpositionschain.md +15 -0
- package/docs/models/operations/v1uniswapliquidityprovisionpositionsrequest.md +19 -0
- package/docs/models/operations/v1uniswappoolpricechain.md +15 -0
- package/docs/models/operations/v1uniswappoolpricefeeenum.md +19 -0
- package/docs/models/operations/v1uniswappoolpricerequest.md +23 -0
- package/docs/models/operations/v1uniswapquotebuyexactlychain.md +15 -0
- package/docs/models/operations/v1uniswapquotebuyexactlyfeeenum.md +19 -0
- package/docs/models/operations/v1uniswapquotebuyexactlyrequest.md +25 -0
- package/docs/models/operations/v1uniswapquotesellexactlychain.md +15 -0
- package/docs/models/operations/v1uniswapquotesellexactlyfeeenum.md +19 -0
- package/docs/models/operations/v1uniswapquotesellexactlyrequest.md +25 -0
- package/docs/models/operations/v1vaultsvaultchain.md +15 -0
- package/docs/models/operations/v1vaultsvaultrequest.md +22 -0
- package/docs/models/operations/v1wildcatmarketchain.md +15 -0
- package/docs/models/operations/v1wildcatmarketrequest.md +22 -0
- package/docs/models/operations/v2cctpmintresponse.md +26 -0
- package/docs/models/operations/v2earnaavetokenratesrequest.md +17 -0
- package/docs/models/operations/v2earnpositionschain.md +15 -0
- package/docs/models/operations/v2earnpositionspositionidrequest.md +21 -0
- package/docs/models/operations/v2earnpositionsrequest.md +25 -0
- package/docs/models/operations/v2earnvaultschain.md +15 -0
- package/docs/models/operations/v2earnvaultsrequest.md +25 -0
- package/docs/sdks/aavev3/README.md +1247 -0
- package/docs/sdks/aerodromeslipstream/README.md +702 -0
- package/docs/sdks/bridge/README.md +222 -0
- package/docs/sdks/earn/README.md +696 -0
- package/docs/sdks/erc4626vaults/README.md +264 -0
- package/docs/sdks/ethena/README.md +357 -0
- package/docs/sdks/gassponsorship/README.md +296 -0
- package/docs/sdks/morpho/README.md +1066 -0
- package/docs/sdks/pendle/README.md +630 -0
- package/docs/sdks/sky/README.md +458 -0
- package/docs/sdks/smartaccount/README.md +106 -0
- package/docs/sdks/swap/README.md +100 -0
- package/docs/sdks/token/README.md +481 -0
- package/docs/sdks/transactionbundler/README.md +411 -0
- package/docs/sdks/uniswapv3/README.md +947 -0
- package/docs/sdks/universal/README.md +419 -0
- package/docs/sdks/wildcat/README.md +88 -0
- package/eslint.config.mjs +22 -0
- package/examples/README.md +31 -0
- package/examples/node_modules/@esbuild/linux-x64/README.md +3 -0
- package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/examples/node_modules/@types/node/LICENSE +21 -0
- package/examples/node_modules/@types/node/README.md +15 -0
- package/examples/node_modules/dotenv/CHANGELOG.md +520 -0
- package/examples/node_modules/dotenv/LICENSE +23 -0
- package/examples/node_modules/dotenv/README-es.md +411 -0
- package/examples/node_modules/dotenv/README.md +645 -0
- package/examples/node_modules/dotenv/SECURITY.md +1 -0
- package/examples/node_modules/esbuild/LICENSE.md +21 -0
- package/examples/node_modules/esbuild/README.md +3 -0
- package/examples/node_modules/esbuild/bin/esbuild +0 -0
- package/examples/node_modules/get-tsconfig/LICENSE +21 -0
- package/examples/node_modules/get-tsconfig/README.md +235 -0
- package/examples/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/examples/node_modules/get-tsconfig/dist/index.d.cts +2088 -0
- package/examples/node_modules/get-tsconfig/dist/index.d.mts +2088 -0
- package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -0
- package/examples/node_modules/resolve-pkg-maps/LICENSE +21 -0
- package/examples/node_modules/resolve-pkg-maps/README.md +216 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -0
- package/examples/node_modules/tsx/LICENSE +21 -0
- package/examples/node_modules/tsx/README.md +32 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -0
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -0
- package/examples/node_modules/tsx/dist/cli.cjs +54 -0
- package/examples/node_modules/tsx/dist/cli.mjs +0 -0
- package/examples/node_modules/tsx/dist/client-D6NvIMSC.cjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.d.cts +35 -0
- package/examples/node_modules/tsx/dist/esm/api/index.d.mts +35 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -0
- package/examples/node_modules/tsx/dist/esm/index.cjs +2 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +0 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +1 -0
- package/examples/node_modules/tsx/dist/index-BWFBUo6r.cjs +1 -0
- package/examples/node_modules/tsx/dist/index-gckBtVBf.cjs +14 -0
- package/examples/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +3 -0
- package/examples/node_modules/tsx/dist/loader.cjs +1 -0
- package/examples/node_modules/tsx/dist/loader.mjs +0 -0
- package/examples/node_modules/tsx/dist/node-features-roYmp9jK.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-Dxt5kIHw.cjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.cjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -0
- package/examples/node_modules/tsx/dist/preflight.cjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +0 -0
- package/examples/node_modules/tsx/dist/register-2sWVXuRQ.cjs +1 -0
- package/examples/node_modules/tsx/dist/register-D46fvsV_.cjs +4 -0
- package/examples/node_modules/tsx/dist/repl.cjs +3 -0
- package/examples/node_modules/tsx/dist/repl.mjs +0 -0
- package/examples/node_modules/tsx/dist/require-D4F1Lv60.cjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -0
- package/examples/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +1 -0
- package/examples/node_modules/undici-types/LICENSE +21 -0
- package/examples/node_modules/undici-types/README.md +6 -0
- package/package.json +1 -1
- package/src/funcs/bridgeCctpBurn.ts +1 -1
- package/src/funcs/bridgeCctpMint.ts +2 -4
- package/src/lib/config.ts +2 -2
- package/src/sdk/bridge.ts +3 -5
- package/tsconfig.json +1 -1
- package/examples/node_modules/.package-lock.json +0 -159
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultPosition
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultPosition } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value:
|
|
9
|
+
CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultPosition = {
|
|
10
|
+
id: "<id>",
|
|
11
|
+
state: {
|
|
12
|
+
pnlUsd: "<value>",
|
|
13
|
+
assets: "<value>",
|
|
14
|
+
assetsUsd: "<value>",
|
|
15
|
+
shares: "<value>",
|
|
16
|
+
},
|
|
17
|
+
vault: {
|
|
18
|
+
address: "6345 Simonis Crest",
|
|
19
|
+
name: "<value>",
|
|
20
|
+
symbol: "<value>",
|
|
21
|
+
whitelisted: true,
|
|
22
|
+
asset: {
|
|
23
|
+
name: "<value>",
|
|
24
|
+
symbol: "<value>",
|
|
25
|
+
address: "47326 Grange Avenue",
|
|
26
|
+
decimals: 871956,
|
|
27
|
+
priceUsd: "<value>",
|
|
28
|
+
logoURI: "https://favorable-morbidity.net",
|
|
29
|
+
},
|
|
30
|
+
dailyApys: {
|
|
31
|
+
apy: "<value>",
|
|
32
|
+
netApy: "<value>",
|
|
33
|
+
},
|
|
34
|
+
weeklyApys: {
|
|
35
|
+
apy: "<value>",
|
|
36
|
+
netApy: "<value>",
|
|
37
|
+
},
|
|
38
|
+
monthlyApys: {
|
|
39
|
+
apy: "<value>",
|
|
40
|
+
netApy: "<value>",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Fields
|
|
47
|
+
|
|
48
|
+
| Field | Type | Required | Description |
|
|
49
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
|
+
| `id` | *string* | :heavy_check_mark: | N/A |
|
|
51
|
+
| `state` | [components.CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState](../../models/components/compassapibackendv1modelsmorphoreadresponsecheckuserpositionvaultstate.md) | :heavy_check_mark: | N/A |
|
|
52
|
+
| `vault` | [components.Vault](../../models/components/vault.md) | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value:
|
|
9
|
+
CompassApiBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState = {
|
|
10
|
+
pnlUsd: "<value>",
|
|
11
|
+
assets: "<value>",
|
|
12
|
+
assetsUsd: "<value>",
|
|
13
|
+
shares: "<value>",
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Fields
|
|
18
|
+
|
|
19
|
+
| Field | Type | Required | Description |
|
|
20
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
21
|
+
| `pnlUsd` | *string* | :heavy_check_mark: | N/A |
|
|
22
|
+
| `assets` | *string* | :heavy_check_mark: | N/A |
|
|
23
|
+
| `assetsUsd` | *string* | :heavy_check_mark: | N/A |
|
|
24
|
+
| `shares` | *string* | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetMarketApyData
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetMarketApyData } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetMarketApyData = {
|
|
9
|
+
borrowApy: "<value>",
|
|
10
|
+
netBorrowApy: "<value>",
|
|
11
|
+
netSupplyApy: "<value>",
|
|
12
|
+
supplyApy: "<value>",
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Fields
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
20
|
+
| `borrowApy` | *string* | :heavy_check_mark: | N/A |
|
|
21
|
+
| `netBorrowApy` | *string* | :heavy_check_mark: | N/A |
|
|
22
|
+
| `netSupplyApy` | *string* | :heavy_check_mark: | N/A |
|
|
23
|
+
| `supplyApy` | *string* | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetMarketAsset
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetMarketAsset } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetMarketAsset = {
|
|
9
|
+
address: "7954 Larch Close",
|
|
10
|
+
symbol: "<value>",
|
|
11
|
+
name: "<value>",
|
|
12
|
+
decimals: 977902,
|
|
13
|
+
priceUsd: "<value>",
|
|
14
|
+
logoURI: "https://yearly-dream.biz",
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
22
|
+
| `address` | *string* | :heavy_check_mark: | N/A |
|
|
23
|
+
| `symbol` | *string* | :heavy_check_mark: | N/A |
|
|
24
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
25
|
+
| `decimals` | *number* | :heavy_check_mark: | N/A |
|
|
26
|
+
| `priceUsd` | *string* | :heavy_check_mark: | N/A |
|
|
27
|
+
| `logoURI` | *string* | :heavy_check_mark: | N/A |
|
package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketmarketstate.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetMarketMarketState
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetMarketMarketState } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetMarketMarketState = {
|
|
9
|
+
utilization: "<value>",
|
|
10
|
+
borrowAssets: "<value>",
|
|
11
|
+
liquidityAssets: "<value>",
|
|
12
|
+
totalLiquidity: "<value>",
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Fields
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
| --------------------- | --------------------- | --------------------- | --------------------- |
|
|
20
|
+
| `utilization` | *string* | :heavy_check_mark: | N/A |
|
|
21
|
+
| `collateralAssets` | *string* | :heavy_minus_sign: | N/A |
|
|
22
|
+
| `collateralAssetsUsd` | *string* | :heavy_minus_sign: | N/A |
|
|
23
|
+
| `borrowAssets` | *string* | :heavy_check_mark: | N/A |
|
|
24
|
+
| `borrowAssetsUsd` | *string* | :heavy_minus_sign: | N/A |
|
|
25
|
+
| `liquidityAssets` | *string* | :heavy_check_mark: | N/A |
|
|
26
|
+
| `liquidityAssetsUsd` | *string* | :heavy_minus_sign: | N/A |
|
|
27
|
+
| `totalLiquidity` | *string* | :heavy_check_mark: | N/A |
|
|
28
|
+
| `totalLiquidityUsd` | *string* | :heavy_minus_sign: | N/A |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetMarketsAsset
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetMarketsAsset } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetMarketsAsset = {
|
|
9
|
+
address: "73719 Amelie Manor",
|
|
10
|
+
symbol: "<value>",
|
|
11
|
+
name: "<value>",
|
|
12
|
+
decimals: 613797,
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Fields
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
20
|
+
| `address` | *string* | :heavy_check_mark: | N/A |
|
|
21
|
+
| `symbol` | *string* | :heavy_check_mark: | N/A |
|
|
22
|
+
| `name` | *string* | :heavy_check_mark: | N/A |
|
|
23
|
+
| `decimals` | *number* | :heavy_check_mark: | N/A |
|
package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetmarketsmarketstate.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetMarketsMarketState
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetMarketsMarketState } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetMarketsMarketState = {
|
|
9
|
+
borrowApy: 6783.31,
|
|
10
|
+
borrowAssets: 434012,
|
|
11
|
+
borrowAssetsUsd: 269.23,
|
|
12
|
+
supplyApy: 7105.65,
|
|
13
|
+
supplyAssets: 577262,
|
|
14
|
+
supplyAssetsUsd: 4759.24,
|
|
15
|
+
fee: 8984.01,
|
|
16
|
+
utilization: 8580.96,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Fields
|
|
21
|
+
|
|
22
|
+
| Field | Type | Required | Description |
|
|
23
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
24
|
+
| `borrowApy` | *number* | :heavy_check_mark: | N/A |
|
|
25
|
+
| `borrowAssets` | *number* | :heavy_check_mark: | N/A |
|
|
26
|
+
| `borrowAssetsUsd` | *number* | :heavy_check_mark: | N/A |
|
|
27
|
+
| `supplyApy` | *number* | :heavy_check_mark: | N/A |
|
|
28
|
+
| `supplyAssets` | *number* | :heavy_check_mark: | N/A |
|
|
29
|
+
| `supplyAssetsUsd` | *number* | :heavy_check_mark: | N/A |
|
|
30
|
+
| `fee` | *number* | :heavy_check_mark: | N/A |
|
|
31
|
+
| `utilization` | *number* | :heavy_check_mark: | N/A |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetVaultsAsset
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetVaultsAsset } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetVaultsAsset = {
|
|
9
|
+
symbol: "<value>",
|
|
10
|
+
address: "43121 Rice Bypass",
|
|
11
|
+
decimals: 938619,
|
|
12
|
+
chain: {
|
|
13
|
+
id: 111446,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
22
|
+
| `symbol` | *string* | :heavy_check_mark: | N/A |
|
|
23
|
+
| `address` | *string* | :heavy_check_mark: | N/A |
|
|
24
|
+
| `decimals` | *number* | :heavy_check_mark: | N/A |
|
|
25
|
+
| `chain` | [components.ChainInfo](../../models/components/chaininfo.md) | :heavy_check_mark: | N/A |
|
package/docs/models/components/compassapibackendv1modelsmorphoreadresponsegetvaultsvaultstate.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsMorphoReadResponseGetVaultsVaultState
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsMorphoReadResponseGetVaultsVaultState } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsMorphoReadResponseGetVaultsVaultState = {
|
|
9
|
+
id: "<id>",
|
|
10
|
+
apy: 5923.62,
|
|
11
|
+
netApy: 2383.88,
|
|
12
|
+
totalAssets: 132455,
|
|
13
|
+
fee: 6635.24,
|
|
14
|
+
timelock: 346147,
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
22
|
+
| `id` | *string* | :heavy_check_mark: | N/A |
|
|
23
|
+
| `apy` | *number* | :heavy_check_mark: | N/A |
|
|
24
|
+
| `netApy` | *number* | :heavy_check_mark: | N/A |
|
|
25
|
+
| `totalAssets` | *number* | :heavy_check_mark: | N/A |
|
|
26
|
+
| `totalAssetsUsd` | *number* | :heavy_minus_sign: | N/A |
|
|
27
|
+
| `fee` | *number* | :heavy_check_mark: | N/A |
|
|
28
|
+
| `timelock` | *number* | :heavy_check_mark: | N/A |
|
package/docs/models/components/compassapibackendv1modelspendlereadresponsemarketuserposition.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsPendleReadResponseMarketUserPosition
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsPendleReadResponseMarketUserPosition } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsPendleReadResponseMarketUserPosition = {
|
|
9
|
+
claimableYield: "<value>",
|
|
10
|
+
syBalance: "<value>",
|
|
11
|
+
ptBalance: "<value>",
|
|
12
|
+
ytBalance: "<value>",
|
|
13
|
+
lpBalance: "<value>",
|
|
14
|
+
underlyingTokenBalance: "<value>",
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
|
|
22
|
+
| `claimableYield` | *string* | :heavy_check_mark: | The amount of yield that can be claimed in the underlying token. |
|
|
23
|
+
| `syBalance` | *string* | :heavy_check_mark: | The amount of SY tokens the user currently holds. |
|
|
24
|
+
| `ptBalance` | *string* | :heavy_check_mark: | The amount of PT tokens the user currently holds. |
|
|
25
|
+
| `ytBalance` | *string* | :heavy_check_mark: | The amount of YT tokens the user currently holds. |
|
|
26
|
+
| `lpBalance` | *string* | :heavy_check_mark: | The amount of LP tokens the user currently holds. |
|
|
27
|
+
| `underlyingTokenBalance` | *string* | :heavy_check_mark: | The amount of underlying tokens the user currently holds. |
|
|
28
|
+
| `accountingAssetBalance` | *string* | :heavy_minus_sign: | The amount of accounting assets the user currently holds. |
|
package/docs/models/components/compassapibackendv1modelspendlereadresponsepositionstokenbalance.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsPendleReadResponsePositionsTokenBalance
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsPendleReadResponsePositionsTokenBalance } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsPendleReadResponsePositionsTokenBalance = {
|
|
9
|
+
valuation: 194.52,
|
|
10
|
+
balance: "<value>",
|
|
11
|
+
};
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Fields
|
|
15
|
+
|
|
16
|
+
| Field | Type | Required | Description |
|
|
17
|
+
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
18
|
+
| `valuation` | *number* | :heavy_check_mark: | N/A |
|
|
19
|
+
| `balance` | *string* | :heavy_check_mark: | N/A |
|
package/docs/models/components/compassapibackendv1modelsvaultsreadresponsevaultuserposition.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsVaultsReadResponseVaultUserPosition
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsVaultsReadResponseVaultUserPosition } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsVaultsReadResponseVaultUserPosition = {
|
|
9
|
+
amountOfShares: "<value>",
|
|
10
|
+
amountInUnderlyingToken: "<value>",
|
|
11
|
+
};
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Fields
|
|
15
|
+
|
|
16
|
+
| Field | Type | Required | Description |
|
|
17
|
+
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
18
|
+
| `amountOfShares` | *string* | :heavy_check_mark: | The number of vault share tokens representing the user’s proportional ownership of the assets in the vault. |
|
|
19
|
+
| `amountInUnderlyingToken` | *string* | :heavy_check_mark: | The equivalent value of the user’s vault shares, denominated in the vault’s underlying asset (deposit token). |
|
package/docs/models/components/compassapibackendv1modelswildcatreadresponsemarketuserposition.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CompassApiBackendV1ModelsWildcatReadResponseMarketUserPosition
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV1ModelsWildcatReadResponseMarketUserPosition } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV1ModelsWildcatReadResponseMarketUserPosition = {
|
|
9
|
+
marketTokenBalance: "<value>",
|
|
10
|
+
underlyingTokenBalance: "<value>",
|
|
11
|
+
};
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Fields
|
|
15
|
+
|
|
16
|
+
| Field | Type | Required | Description |
|
|
17
|
+
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
18
|
+
| `marketTokenBalance` | *string* | :heavy_check_mark: | The quantity of market share tokens the user holds. |
|
|
19
|
+
| `underlyingTokenBalance` | *string* | :heavy_check_mark: | The total current value of the user's market tokens, denominated in the underlying asset. |
|
package/docs/models/components/compassapibackendv2modelsearnreadresponsepositionsvaultposition.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsEarnReadResponsePositionsVaultPosition
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV2ModelsEarnReadResponsePositionsVaultPosition } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV2ModelsEarnReadResponsePositionsVaultPosition = {
|
|
9
|
+
type: "VAULT",
|
|
10
|
+
id: "<id>",
|
|
11
|
+
vaultAddress: "<value>",
|
|
12
|
+
amountInUnderlyingToken: "<value>",
|
|
13
|
+
tokenName: "<value>",
|
|
14
|
+
vaultName: "<value>",
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
22
|
+
| `type` | *"VAULT"* | :heavy_check_mark: | The market type discriminator. |
|
|
23
|
+
| `id` | *string* | :heavy_check_mark: | Base64-encoded position identifier. |
|
|
24
|
+
| `vaultAddress` | *string* | :heavy_check_mark: | The vault address you are depositing to. |
|
|
25
|
+
| `amountInUnderlyingToken` | *string* | :heavy_check_mark: | The user's position value denominated in the underlying token. |
|
|
26
|
+
| `tokenName` | *string* | :heavy_check_mark: | Symbol of the underlying token (e.g., USDC). |
|
|
27
|
+
| `vaultName` | *string* | :heavy_check_mark: | Name of the vault token (share token). |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain =
|
|
9
|
+
{
|
|
10
|
+
chainId: 640875,
|
|
11
|
+
verifyingContract: "<value>",
|
|
12
|
+
};
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Fields
|
|
16
|
+
|
|
17
|
+
| Field | Type | Required | Description | Example |
|
|
18
|
+
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
|
|
19
|
+
| `name` | *"Permit2"* | :heavy_minus_sign: | Must be 'Permit2' | Permit2 |
|
|
20
|
+
| `chainId` | *number* | :heavy_check_mark: | EVM chain ID | |
|
|
21
|
+
| `verifyingContract` | *string* | :heavy_check_mark: | Permit2 contract address | |
|
package/docs/models/components/compassapibackendv2modelsgassponsorshippermit2typeddataeip712types.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CompassApiBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CompassApiBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types =
|
|
9
|
+
{
|
|
10
|
+
eip712Domain: [
|
|
11
|
+
{
|
|
12
|
+
name: "name",
|
|
13
|
+
type: "string",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "chainId",
|
|
17
|
+
type: "uint256",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "verifyingContract",
|
|
21
|
+
type: "address",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
tokenPermissions: [
|
|
25
|
+
{
|
|
26
|
+
name: "token",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "amount",
|
|
31
|
+
type: "uint256",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
permitTransferFrom: [
|
|
35
|
+
{
|
|
36
|
+
name: "permitted",
|
|
37
|
+
type: "TokenPermissions",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "spender",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "nonce",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "deadline",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Fields
|
|
56
|
+
|
|
57
|
+
| Field | Type | Required | Description | Example |
|
|
58
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
59
|
+
| `eip712Domain` | [components.Eip712Field](../../models/components/eip712field.md)[] | :heavy_minus_sign: | Standard EIP-712 domain type | [<br/>{<br/>"name": "name",<br/>"type": "string"<br/>},<br/>{<br/>"name": "chainId",<br/>"type": "uint256"<br/>},<br/>{<br/>"name": "verifyingContract",<br/>"type": "address"<br/>}<br/>] |
|
|
60
|
+
| `tokenPermissions` | [components.Eip712Field](../../models/components/eip712field.md)[] | :heavy_minus_sign: | TokenPermissions struct | [<br/>{<br/>"name": "token",<br/>"type": "address"<br/>},<br/>{<br/>"name": "amount",<br/>"type": "uint256"<br/>}<br/>] |
|
|
61
|
+
| `permitTransferFrom` | [components.Eip712Field](../../models/components/eip712field.md)[] | :heavy_minus_sign: | Main permit message type | [<br/>{<br/>"name": "permitted",<br/>"type": "TokenPermissions"<br/>},<br/>{<br/>"name": "spender",<br/>"type": "address"<br/>},<br/>{<br/>"name": "nonce",<br/>"type": "uint256"<br/>},<br/>{<br/>"name": "deadline",<br/>"type": "uint256"<br/>}<br/>] |
|
package/docs/models/components/compassapibackendv2modelsgassponsorshippermittypeddataeip712domain.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain
|
|
2
|
+
|
|
3
|
+
The EIP-712 domain separator for ERC-20 Permit.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CompassApiBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CompassApiBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain =
|
|
11
|
+
{
|
|
12
|
+
name: "<value>",
|
|
13
|
+
version: "<value>",
|
|
14
|
+
chainId: 561227,
|
|
15
|
+
verifyingContract: "<value>",
|
|
16
|
+
};
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Fields
|
|
20
|
+
|
|
21
|
+
| Field | Type | Required | Description |
|
|
22
|
+
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
|
23
|
+
| `name` | *string* | :heavy_check_mark: | Token name |
|
|
24
|
+
| `version` | *string* | :heavy_check_mark: | Token version (usually '1' or '2') |
|
|
25
|
+
| `chainId` | *number* | :heavy_check_mark: | Chain ID |
|
|
26
|
+
| `verifyingContract` | *string* | :heavy_check_mark: | Token contract address |
|
package/docs/models/components/compassapibackendv2modelsgassponsorshippermittypeddataeip712types.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types
|
|
2
|
+
|
|
3
|
+
The type definitions for EIP-712 structured data (ERC-20 Permit).
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CompassApiBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: CompassApiBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types = {
|
|
11
|
+
eip712Domain: [],
|
|
12
|
+
permit: [],
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Fields
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
|
20
|
+
| `eip712Domain` | [components.Eip712DomainField](../../models/components/eip712domainfield.md)[] | :heavy_check_mark: | EIP712Domain type definition |
|
|
21
|
+
| `permit` | [components.PermitField](../../models/components/permitfield.md)[] | :heavy_check_mark: | Permit type definition |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain
|
|
2
|
+
|
|
3
|
+
The EIP-712 domain separator for Safe transactions.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CompassApiBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value:
|
|
11
|
+
CompassApiBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain =
|
|
12
|
+
{
|
|
13
|
+
chainId: 923368,
|
|
14
|
+
verifyingContract: "<value>",
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
|
|
22
|
+
| `chainId` | *number* | :heavy_check_mark: | Chain ID for the Safe transaction |
|
|
23
|
+
| `verifyingContract` | *string* | :heavy_check_mark: | Address of the Safe contract |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CompassApiBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types
|
|
2
|
+
|
|
3
|
+
The type definitions for EIP-712 structured data.
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { CompassApiBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value:
|
|
11
|
+
CompassApiBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types =
|
|
12
|
+
{
|
|
13
|
+
eip712Domain: [],
|
|
14
|
+
safeTx: [],
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Fields
|
|
19
|
+
|
|
20
|
+
| Field | Type | Required | Description |
|
|
21
|
+
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
|
22
|
+
| `eip712Domain` | [components.Eip712DomainField](../../models/components/eip712domainfield.md)[] | :heavy_check_mark: | EIP712Domain type definition |
|
|
23
|
+
| `safeTx` | [components.SafeTxField](../../models/components/safetxfield.md)[] | :heavy_check_mark: | SafeTx type definition |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CooldownEnd
|
|
2
|
+
|
|
3
|
+
When the cooldown period ends. ISO 8601 format. UTC timezone.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported Types
|
|
7
|
+
|
|
8
|
+
### `Date`
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
const value: Date = new Date("2023-12-07T03:31:58.587Z");
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### `boolean`
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
const value: boolean = true;
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CooldownPosition
|
|
2
|
+
|
|
3
|
+
## Example Usage
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CooldownPosition } from "@compass-labs/api-sdk/models/components";
|
|
7
|
+
|
|
8
|
+
let value: CooldownPosition = {
|
|
9
|
+
amountInUnderlyingAsset: "<value>",
|
|
10
|
+
cooldownEnd: new Date("2024-06-19T22:17:27.773Z"),
|
|
11
|
+
canBeWithdrawn: false,
|
|
12
|
+
};
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Fields
|
|
16
|
+
|
|
17
|
+
| Field | Type | Required | Description |
|
|
18
|
+
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
19
|
+
| `amountInUnderlyingAsset` | *string* | :heavy_check_mark: | The amount of USDe currently in a cooldown period. |
|
|
20
|
+
| `cooldownEnd` | *components.CooldownEnd* | :heavy_check_mark: | When the cooldown period ends. ISO 8601 format. UTC timezone. |
|
|
21
|
+
| `canBeWithdrawn` | *boolean* | :heavy_check_mark: | Whether the USDe in cooldown can be withdrawn at this moment. |
|