@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,702 @@
|
|
|
1
|
+
# AerodromeSlipstream
|
|
2
|
+
(*aerodromeSlipstream*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [aerodromeSlipstreamLiquidityProvisionPositions](#aerodromeslipstreamliquidityprovisionpositions) - List LP Positions
|
|
9
|
+
* [aerodromeSlipstreamPoolPrice](#aerodromeslipstreampoolprice) - Pool Price
|
|
10
|
+
* [aerodromeSlipstreamSwapSellExactly](#aerodromeslipstreamswapsellexactly) - Swap - from Specified Amount
|
|
11
|
+
* [aerodromeSlipstreamSwapBuyExactly](#aerodromeslipstreamswapbuyexactly) - Swap - into Specified Amount
|
|
12
|
+
* [aerodromeSlipstreamLiquidityProvisionMint](#aerodromeslipstreamliquidityprovisionmint) - Open a New LP Position
|
|
13
|
+
* [aerodromeSlipstreamLiquidityProvisionIncrease](#aerodromeslipstreamliquidityprovisionincrease) - Increase an LP Position
|
|
14
|
+
* [aerodromeSlipstreamLiquidityProvisionWithdraw](#aerodromeslipstreamliquidityprovisionwithdraw) - Withdraw an LP Position
|
|
15
|
+
|
|
16
|
+
## aerodromeSlipstreamLiquidityProvisionPositions
|
|
17
|
+
|
|
18
|
+
Retrieve the total number of Liquidity Provider (LP) positions associated with a
|
|
19
|
+
specific sender.
|
|
20
|
+
|
|
21
|
+
This endpoint allows users to query and obtain detailed information about their LP
|
|
22
|
+
positions, including the number of active positions they hold. The response model,
|
|
23
|
+
AerodromeLPPositionsInfo, provides a structured representation of the LP positions
|
|
24
|
+
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
25
|
+
managing their liquidity provision activities, enabling them to make informed
|
|
26
|
+
decisions based on their current positions.
|
|
27
|
+
|
|
28
|
+
### Example Usage
|
|
29
|
+
|
|
30
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_liquidity_provision_positions" method="get" path="/v1/aerodrome_slipstream/liquidity_provision/positions" -->
|
|
31
|
+
```typescript
|
|
32
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
33
|
+
|
|
34
|
+
const compassApiSDK = new CompassApiSDK({
|
|
35
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
async function run() {
|
|
39
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamLiquidityProvisionPositions({
|
|
40
|
+
chain: "base",
|
|
41
|
+
user: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
console.log(result);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
run();
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Standalone function
|
|
51
|
+
|
|
52
|
+
The standalone function version of this method:
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
56
|
+
import { aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionPositions } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionPositions.js";
|
|
57
|
+
|
|
58
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
59
|
+
// You can create one instance of it to use across an application.
|
|
60
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
61
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
async function run() {
|
|
65
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionPositions(compassApiSDK, {
|
|
66
|
+
chain: "base",
|
|
67
|
+
user: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
68
|
+
});
|
|
69
|
+
if (res.ok) {
|
|
70
|
+
const { value: result } = res;
|
|
71
|
+
console.log(result);
|
|
72
|
+
} else {
|
|
73
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionPositions failed:", res.error);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
run();
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Parameters
|
|
81
|
+
|
|
82
|
+
| Parameter | Type | Required | Description |
|
|
83
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
84
|
+
| `request` | [operations.V1AerodromeSlipstreamLiquidityProvisionPositionsRequest](../../models/operations/v1aerodromeslipstreamliquidityprovisionpositionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
85
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
86
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
87
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
88
|
+
|
|
89
|
+
### Response
|
|
90
|
+
|
|
91
|
+
**Promise\<[components.AerodromeLPPositionsResponse](../../models/components/aerodromelppositionsresponse.md)\>**
|
|
92
|
+
|
|
93
|
+
### Errors
|
|
94
|
+
|
|
95
|
+
| Error Type | Status Code | Content Type |
|
|
96
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
97
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
98
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
99
|
+
|
|
100
|
+
## aerodromeSlipstreamPoolPrice
|
|
101
|
+
|
|
102
|
+
This endpoint retrieves the current price of a pool, indicating how many token0
|
|
103
|
+
you can purchase for 1 token1.
|
|
104
|
+
|
|
105
|
+
Note that this is an instantaneous price and may change during any trade. For a more
|
|
106
|
+
accurate representation of the trade ratios between the two assets, consider using
|
|
107
|
+
the quote endpoint.
|
|
108
|
+
|
|
109
|
+
### Example Usage
|
|
110
|
+
|
|
111
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_pool_price" method="get" path="/v1/aerodrome_slipstream/pool_price" -->
|
|
112
|
+
```typescript
|
|
113
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
114
|
+
|
|
115
|
+
const compassApiSDK = new CompassApiSDK({
|
|
116
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
async function run() {
|
|
120
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamPoolPrice({
|
|
121
|
+
chain: "base",
|
|
122
|
+
tokenIn: "USDC",
|
|
123
|
+
tokenOut: "WETH",
|
|
124
|
+
tickSpacing: 100,
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
console.log(result);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
run();
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Standalone function
|
|
134
|
+
|
|
135
|
+
The standalone function version of this method:
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
139
|
+
import { aerodromeSlipstreamAerodromeSlipstreamPoolPrice } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamPoolPrice.js";
|
|
140
|
+
|
|
141
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
142
|
+
// You can create one instance of it to use across an application.
|
|
143
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
144
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
async function run() {
|
|
148
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamPoolPrice(compassApiSDK, {
|
|
149
|
+
chain: "base",
|
|
150
|
+
tokenIn: "USDC",
|
|
151
|
+
tokenOut: "WETH",
|
|
152
|
+
tickSpacing: 100,
|
|
153
|
+
});
|
|
154
|
+
if (res.ok) {
|
|
155
|
+
const { value: result } = res;
|
|
156
|
+
console.log(result);
|
|
157
|
+
} else {
|
|
158
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamPoolPrice failed:", res.error);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
run();
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
| Parameter | Type | Required | Description |
|
|
168
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
169
|
+
| `request` | [operations.V1AerodromeSlipstreamPoolPriceRequest](../../models/operations/v1aerodromeslipstreampoolpricerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
170
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
171
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
172
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
173
|
+
|
|
174
|
+
### Response
|
|
175
|
+
|
|
176
|
+
**Promise\<[components.AerodromeSlipstreamPoolPriceResponse](../../models/components/aerodromeslipstreampoolpriceresponse.md)\>**
|
|
177
|
+
|
|
178
|
+
### Errors
|
|
179
|
+
|
|
180
|
+
| Error Type | Status Code | Content Type |
|
|
181
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
182
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
183
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
184
|
+
|
|
185
|
+
## aerodromeSlipstreamSwapSellExactly
|
|
186
|
+
|
|
187
|
+
This endpoint allows users to trade a specific amount of one token into another
|
|
188
|
+
token using the Aerodrome Slipstream protocol.
|
|
189
|
+
|
|
190
|
+
The transaction is executed by specifying the exact amount of the input token to be
|
|
191
|
+
sold, and the system calculates the amount of the output token that will be
|
|
192
|
+
received. The operation ensures that the trade is conducted within the constraints
|
|
193
|
+
of the current market conditions, taking into account the liquidity and price
|
|
194
|
+
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
195
|
+
token and are willing to accept the resulting amount of the other token.
|
|
196
|
+
<Info>
|
|
197
|
+
**Required Allowances**
|
|
198
|
+
|
|
199
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
200
|
+
|
|
201
|
+
- `AerodromeSlipstreamRouter`
|
|
202
|
+
</Info>
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Example Usage
|
|
206
|
+
|
|
207
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_swap_sell_exactly" method="post" path="/v1/aerodrome_slipstream/swap/sell_exactly" -->
|
|
208
|
+
```typescript
|
|
209
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
210
|
+
|
|
211
|
+
const compassApiSDK = new CompassApiSDK({
|
|
212
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
async function run() {
|
|
216
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamSwapSellExactly({
|
|
217
|
+
tokenIn: "USDC",
|
|
218
|
+
tokenOut: "WETH",
|
|
219
|
+
tickSpacing: 100,
|
|
220
|
+
amountIn: 0.5,
|
|
221
|
+
amountOutMinimum: 0,
|
|
222
|
+
chain: "base",
|
|
223
|
+
sender: "0xED954266764e163cE73A0bC2aC717226cf73B03E",
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
console.log(result);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
run();
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Standalone function
|
|
233
|
+
|
|
234
|
+
The standalone function version of this method:
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
238
|
+
import { aerodromeSlipstreamAerodromeSlipstreamSwapSellExactly } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamSwapSellExactly.js";
|
|
239
|
+
|
|
240
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
241
|
+
// You can create one instance of it to use across an application.
|
|
242
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
243
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
async function run() {
|
|
247
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamSwapSellExactly(compassApiSDK, {
|
|
248
|
+
tokenIn: "USDC",
|
|
249
|
+
tokenOut: "WETH",
|
|
250
|
+
tickSpacing: 100,
|
|
251
|
+
amountIn: 0.5,
|
|
252
|
+
amountOutMinimum: 0,
|
|
253
|
+
chain: "base",
|
|
254
|
+
sender: "0xED954266764e163cE73A0bC2aC717226cf73B03E",
|
|
255
|
+
});
|
|
256
|
+
if (res.ok) {
|
|
257
|
+
const { value: result } = res;
|
|
258
|
+
console.log(result);
|
|
259
|
+
} else {
|
|
260
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamSwapSellExactly failed:", res.error);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
run();
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
| Parameter | Type | Required | Description |
|
|
270
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
271
|
+
| `request` | [components.AerodromeSlipstreamSellExactlyRequest](../../models/components/aerodromeslipstreamsellexactlyrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
272
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
273
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
274
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
275
|
+
|
|
276
|
+
### Response
|
|
277
|
+
|
|
278
|
+
**Promise\<[components.TransactionResponse](../../models/components/transactionresponse.md)\>**
|
|
279
|
+
|
|
280
|
+
### Errors
|
|
281
|
+
|
|
282
|
+
| Error Type | Status Code | Content Type |
|
|
283
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
284
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
285
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
286
|
+
|
|
287
|
+
## aerodromeSlipstreamSwapBuyExactly
|
|
288
|
+
|
|
289
|
+
This endpoint facilitates the trading of tokens by allowing users to specify the
|
|
290
|
+
exact amount of the output token they wish to receive.
|
|
291
|
+
|
|
292
|
+
Utilizing the Aerodrome Slipstream protocol, the system calculates the necessary
|
|
293
|
+
amount of the input token required to achieve the desired output. This operation is
|
|
294
|
+
particularly useful for users who have a specific target amount of the output token
|
|
295
|
+
in mind and are willing to provide the corresponding input token amount. The
|
|
296
|
+
transaction is executed with consideration of current market conditions, including
|
|
297
|
+
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
298
|
+
effectively.
|
|
299
|
+
<Info>
|
|
300
|
+
**Required Allowances**
|
|
301
|
+
|
|
302
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
303
|
+
|
|
304
|
+
- `AerodromeSlipstreamRouter`
|
|
305
|
+
</Info>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
### Example Usage
|
|
309
|
+
|
|
310
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_swap_buy_exactly" method="post" path="/v1/aerodrome_slipstream/swap/buy_exactly" -->
|
|
311
|
+
```typescript
|
|
312
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
313
|
+
|
|
314
|
+
const compassApiSDK = new CompassApiSDK({
|
|
315
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
async function run() {
|
|
319
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamSwapBuyExactly({
|
|
320
|
+
tokenIn: "USDC",
|
|
321
|
+
tokenOut: "WETH",
|
|
322
|
+
tickSpacing: 100,
|
|
323
|
+
amountOut: 0.00001,
|
|
324
|
+
amountInMaximum: 0.1,
|
|
325
|
+
chain: "base",
|
|
326
|
+
sender: "0xA4C4fB06093C91E70528d4029050f358c4B065EE",
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
console.log(result);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
run();
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
### Standalone function
|
|
336
|
+
|
|
337
|
+
The standalone function version of this method:
|
|
338
|
+
|
|
339
|
+
```typescript
|
|
340
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
341
|
+
import { aerodromeSlipstreamAerodromeSlipstreamSwapBuyExactly } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamSwapBuyExactly.js";
|
|
342
|
+
|
|
343
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
344
|
+
// You can create one instance of it to use across an application.
|
|
345
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
346
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
async function run() {
|
|
350
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamSwapBuyExactly(compassApiSDK, {
|
|
351
|
+
tokenIn: "USDC",
|
|
352
|
+
tokenOut: "WETH",
|
|
353
|
+
tickSpacing: 100,
|
|
354
|
+
amountOut: 0.00001,
|
|
355
|
+
amountInMaximum: 0.1,
|
|
356
|
+
chain: "base",
|
|
357
|
+
sender: "0xA4C4fB06093C91E70528d4029050f358c4B065EE",
|
|
358
|
+
});
|
|
359
|
+
if (res.ok) {
|
|
360
|
+
const { value: result } = res;
|
|
361
|
+
console.log(result);
|
|
362
|
+
} else {
|
|
363
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamSwapBuyExactly failed:", res.error);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
run();
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Parameters
|
|
371
|
+
|
|
372
|
+
| Parameter | Type | Required | Description |
|
|
373
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
374
|
+
| `request` | [components.AerodromeSlipstreamBuyExactlyRequest](../../models/components/aerodromeslipstreambuyexactlyrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
375
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
376
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
377
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
378
|
+
|
|
379
|
+
### Response
|
|
380
|
+
|
|
381
|
+
**Promise\<[components.TransactionResponse](../../models/components/transactionresponse.md)\>**
|
|
382
|
+
|
|
383
|
+
### Errors
|
|
384
|
+
|
|
385
|
+
| Error Type | Status Code | Content Type |
|
|
386
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
387
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
388
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
389
|
+
|
|
390
|
+
## aerodromeSlipstreamLiquidityProvisionMint
|
|
391
|
+
|
|
392
|
+
Initiate a new Liquidity Provider (LP) position by minting tokens.
|
|
393
|
+
|
|
394
|
+
This endpoint allows users to open a new LP position, enabling them to participate
|
|
395
|
+
in liquidity provision. The minting process involves creating a new position with
|
|
396
|
+
specified parameters, such as token amounts and pool details. The response will
|
|
397
|
+
confirm the successful creation of the LP position, providing users with the
|
|
398
|
+
necessary information to manage their newly minted position. This functionality is
|
|
399
|
+
crucial for users looking to expand their liquidity provision activities, offering
|
|
400
|
+
them the opportunity to engage in decentralized finance (DeFi) markets effectively.
|
|
401
|
+
<Info>
|
|
402
|
+
**Required Allowances**
|
|
403
|
+
|
|
404
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
405
|
+
|
|
406
|
+
- `AerodromeSlipstreamNonfungiblePositionManager`
|
|
407
|
+
</Info>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
### Example Usage
|
|
411
|
+
|
|
412
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_liquidity_provision_mint" method="post" path="/v1/aerodrome_slipstream/liquidity_provision/mint" -->
|
|
413
|
+
```typescript
|
|
414
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
415
|
+
|
|
416
|
+
const compassApiSDK = new CompassApiSDK({
|
|
417
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
async function run() {
|
|
421
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamLiquidityProvisionMint({
|
|
422
|
+
token0: "USDC",
|
|
423
|
+
token1: "USDT",
|
|
424
|
+
tickSpacing: 1,
|
|
425
|
+
tickLower: 100,
|
|
426
|
+
tickUpper: 200,
|
|
427
|
+
amount0Desired: 0.01,
|
|
428
|
+
amount1Desired: 0,
|
|
429
|
+
amount0Min: 0,
|
|
430
|
+
amount1Min: 0,
|
|
431
|
+
recipient: "0x46D00E3Dc6E9B788B9730Ab38433a16CB55EDd7a",
|
|
432
|
+
chain: "base",
|
|
433
|
+
sender: "0x46D00E3Dc6E9B788B9730Ab38433a16CB55EDd7a",
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
console.log(result);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
run();
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Standalone function
|
|
443
|
+
|
|
444
|
+
The standalone function version of this method:
|
|
445
|
+
|
|
446
|
+
```typescript
|
|
447
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
448
|
+
import { aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionMint } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionMint.js";
|
|
449
|
+
|
|
450
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
451
|
+
// You can create one instance of it to use across an application.
|
|
452
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
453
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
async function run() {
|
|
457
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionMint(compassApiSDK, {
|
|
458
|
+
token0: "USDC",
|
|
459
|
+
token1: "USDT",
|
|
460
|
+
tickSpacing: 1,
|
|
461
|
+
tickLower: 100,
|
|
462
|
+
tickUpper: 200,
|
|
463
|
+
amount0Desired: 0.01,
|
|
464
|
+
amount1Desired: 0,
|
|
465
|
+
amount0Min: 0,
|
|
466
|
+
amount1Min: 0,
|
|
467
|
+
recipient: "0x46D00E3Dc6E9B788B9730Ab38433a16CB55EDd7a",
|
|
468
|
+
chain: "base",
|
|
469
|
+
sender: "0x46D00E3Dc6E9B788B9730Ab38433a16CB55EDd7a",
|
|
470
|
+
});
|
|
471
|
+
if (res.ok) {
|
|
472
|
+
const { value: result } = res;
|
|
473
|
+
console.log(result);
|
|
474
|
+
} else {
|
|
475
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionMint failed:", res.error);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
run();
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### Parameters
|
|
483
|
+
|
|
484
|
+
| Parameter | Type | Required | Description |
|
|
485
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
486
|
+
| `request` | [components.AerodromeSlipstreamMintLiquidityProvisionRequest](../../models/components/aerodromeslipstreammintliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
487
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
488
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
489
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
490
|
+
|
|
491
|
+
### Response
|
|
492
|
+
|
|
493
|
+
**Promise\<[components.TransactionResponse](../../models/components/transactionresponse.md)\>**
|
|
494
|
+
|
|
495
|
+
### Errors
|
|
496
|
+
|
|
497
|
+
| Error Type | Status Code | Content Type |
|
|
498
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
499
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
500
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
501
|
+
|
|
502
|
+
## aerodromeSlipstreamLiquidityProvisionIncrease
|
|
503
|
+
|
|
504
|
+
Increase the liquidity of an existing Liquidity Provider (LP) position.
|
|
505
|
+
|
|
506
|
+
This endpoint allows users to add more tokens to their current LP position,
|
|
507
|
+
enhancing their participation in liquidity provision. By increasing liquidity, users
|
|
508
|
+
can potentially earn more rewards and improve their position in the pool. The
|
|
509
|
+
process involves specifying additional token amounts and updating the pool details.
|
|
510
|
+
The response will confirm the successful increase of the LP position, providing
|
|
511
|
+
users with updated information about their enhanced position. This functionality is
|
|
512
|
+
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
513
|
+
to adapt to market conditions and maximize their returns in decentralized finance
|
|
514
|
+
(DeFi) markets.
|
|
515
|
+
<Info>
|
|
516
|
+
**Required Allowances**
|
|
517
|
+
|
|
518
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
519
|
+
|
|
520
|
+
- `AerodromeSlipstreamRouter`
|
|
521
|
+
</Info>
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
### Example Usage
|
|
525
|
+
|
|
526
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_liquidity_provision_increase" method="post" path="/v1/aerodrome_slipstream/liquidity_provision/increase" -->
|
|
527
|
+
```typescript
|
|
528
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
529
|
+
|
|
530
|
+
const compassApiSDK = new CompassApiSDK({
|
|
531
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
532
|
+
});
|
|
533
|
+
|
|
534
|
+
async function run() {
|
|
535
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamLiquidityProvisionIncrease({
|
|
536
|
+
tokenId: 17570780,
|
|
537
|
+
amount0Desired: 0.02,
|
|
538
|
+
amount1Desired: 0.01,
|
|
539
|
+
amount0Min: 0,
|
|
540
|
+
amount1Min: 0,
|
|
541
|
+
chain: "base",
|
|
542
|
+
sender: "0x46D00E3Dc6E9B788B9730Ab38433a16CB55EDd7a",
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
console.log(result);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
run();
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### Standalone function
|
|
552
|
+
|
|
553
|
+
The standalone function version of this method:
|
|
554
|
+
|
|
555
|
+
```typescript
|
|
556
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
557
|
+
import { aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionIncrease } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionIncrease.js";
|
|
558
|
+
|
|
559
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
560
|
+
// You can create one instance of it to use across an application.
|
|
561
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
562
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
563
|
+
});
|
|
564
|
+
|
|
565
|
+
async function run() {
|
|
566
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionIncrease(compassApiSDK, {
|
|
567
|
+
tokenId: 17570780,
|
|
568
|
+
amount0Desired: 0.02,
|
|
569
|
+
amount1Desired: 0.01,
|
|
570
|
+
amount0Min: 0,
|
|
571
|
+
amount1Min: 0,
|
|
572
|
+
chain: "base",
|
|
573
|
+
sender: "0x46D00E3Dc6E9B788B9730Ab38433a16CB55EDd7a",
|
|
574
|
+
});
|
|
575
|
+
if (res.ok) {
|
|
576
|
+
const { value: result } = res;
|
|
577
|
+
console.log(result);
|
|
578
|
+
} else {
|
|
579
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionIncrease failed:", res.error);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
run();
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
### Parameters
|
|
587
|
+
|
|
588
|
+
| Parameter | Type | Required | Description |
|
|
589
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
590
|
+
| `request` | [components.AerodromeSlipstreamIncreaseLiquidityProvisionRequest](../../models/components/aerodromeslipstreamincreaseliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
591
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
592
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
593
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
594
|
+
|
|
595
|
+
### Response
|
|
596
|
+
|
|
597
|
+
**Promise\<[components.TransactionResponse](../../models/components/transactionresponse.md)\>**
|
|
598
|
+
|
|
599
|
+
### Errors
|
|
600
|
+
|
|
601
|
+
| Error Type | Status Code | Content Type |
|
|
602
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
603
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
604
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
605
|
+
|
|
606
|
+
## aerodromeSlipstreamLiquidityProvisionWithdraw
|
|
607
|
+
|
|
608
|
+
Withdraw an existing Liquidity Provider (LP) position.
|
|
609
|
+
|
|
610
|
+
This endpoint allows users to remove their tokens from an LP position, effectively
|
|
611
|
+
closing their participation in the liquidity pool. The withdrawal process involves
|
|
612
|
+
specifying the LP position to be closed, and the response will confirm the
|
|
613
|
+
successful removal of liquidity, providing users with details about the withdrawn
|
|
614
|
+
tokens and any remaining balances. This functionality is essential for users who
|
|
615
|
+
wish to exit their liquidity provision activities, enabling them to reclaim their
|
|
616
|
+
assets and potentially reallocate them to other investment opportunities. The
|
|
617
|
+
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
618
|
+
strategic management of their decentralized finance (DeFi) portfolios.
|
|
619
|
+
<Info>
|
|
620
|
+
**Required Allowances**
|
|
621
|
+
|
|
622
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
623
|
+
|
|
624
|
+
- `AerodromeSlipstreamNonfungiblePositionManager`
|
|
625
|
+
</Info>
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
### Example Usage
|
|
629
|
+
|
|
630
|
+
<!-- UsageSnippet language="typescript" operationID="v1_aerodrome_slipstream_liquidity_provision_withdraw" method="post" path="/v1/aerodrome_slipstream/liquidity_provision/withdraw" -->
|
|
631
|
+
```typescript
|
|
632
|
+
import { CompassApiSDK } from "@compass-labs/api-sdk";
|
|
633
|
+
|
|
634
|
+
const compassApiSDK = new CompassApiSDK({
|
|
635
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
636
|
+
});
|
|
637
|
+
|
|
638
|
+
async function run() {
|
|
639
|
+
const result = await compassApiSDK.aerodromeSlipstream.aerodromeSlipstreamLiquidityProvisionWithdraw({
|
|
640
|
+
tokenId: 10433247,
|
|
641
|
+
percentageForWithdrawal: 1,
|
|
642
|
+
chain: "base",
|
|
643
|
+
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
console.log(result);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
run();
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### Standalone function
|
|
653
|
+
|
|
654
|
+
The standalone function version of this method:
|
|
655
|
+
|
|
656
|
+
```typescript
|
|
657
|
+
import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
|
|
658
|
+
import { aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionWithdraw } from "@compass-labs/api-sdk/funcs/aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionWithdraw.js";
|
|
659
|
+
|
|
660
|
+
// Use `CompassApiSDKCore` for best tree-shaking performance.
|
|
661
|
+
// You can create one instance of it to use across an application.
|
|
662
|
+
const compassApiSDK = new CompassApiSDKCore({
|
|
663
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
664
|
+
});
|
|
665
|
+
|
|
666
|
+
async function run() {
|
|
667
|
+
const res = await aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionWithdraw(compassApiSDK, {
|
|
668
|
+
tokenId: 10433247,
|
|
669
|
+
percentageForWithdrawal: 1,
|
|
670
|
+
chain: "base",
|
|
671
|
+
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
|
|
672
|
+
});
|
|
673
|
+
if (res.ok) {
|
|
674
|
+
const { value: result } = res;
|
|
675
|
+
console.log(result);
|
|
676
|
+
} else {
|
|
677
|
+
console.log("aerodromeSlipstreamAerodromeSlipstreamLiquidityProvisionWithdraw failed:", res.error);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
run();
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
### Parameters
|
|
685
|
+
|
|
686
|
+
| Parameter | Type | Required | Description |
|
|
687
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
688
|
+
| `request` | [components.AerodromeSlipstreamWithdrawLiquidityProvisionRequest](../../models/components/aerodromeslipstreamwithdrawliquidityprovisionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
689
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
690
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
691
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
692
|
+
|
|
693
|
+
### Response
|
|
694
|
+
|
|
695
|
+
**Promise\<[components.TransactionResponse](../../models/components/transactionresponse.md)\>**
|
|
696
|
+
|
|
697
|
+
### Errors
|
|
698
|
+
|
|
699
|
+
| Error Type | Status Code | Content Type |
|
|
700
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
701
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
702
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|