compass_api_sdk 1.1.1__py3-none-any.whl → 2.2.1rc3__py3-none-any.whl
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.
- compass_api_sdk/_hooks/sdkhooks.py +4 -4
- compass_api_sdk/_hooks/types.py +1 -2
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +386 -114
- compass_api_sdk/aerodrome_slipstream.py +104 -54
- compass_api_sdk/basesdk.py +6 -0
- compass_api_sdk/bridge.py +536 -0
- compass_api_sdk/earn.py +2026 -0
- compass_api_sdk/erc_4626_vaults.py +28 -10
- compass_api_sdk/errors/__init__.py +8 -0
- compass_api_sdk/errors/apierror.py +1 -1
- compass_api_sdk/errors/compassapierror.py +1 -1
- compass_api_sdk/errors/httpvalidationerror.py +1 -1
- compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
- compass_api_sdk/errors/no_response_error.py +1 -1
- compass_api_sdk/errors/responsevalidationerror.py +1 -1
- compass_api_sdk/ethena.py +36 -10
- compass_api_sdk/gas_sponsorship.py +458 -0
- compass_api_sdk/httpclient.py +0 -1
- compass_api_sdk/models/__init__.py +820 -392
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +10 -14
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +3 -3
- compass_api_sdk/models/aavelooprequest.py +32 -28
- compass_api_sdk/models/aaveposition.py +104 -0
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +10 -14
- compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
- compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +10 -14
- compass_api_sdk/models/aavevenue.py +27 -0
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +10 -14
- compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
- compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/approvetransferrequest.py +32 -0
- compass_api_sdk/models/approvetransferresponse.py +52 -0
- compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
- compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
- compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
- compass_api_sdk/models/chainmarketinfo.py +29 -0
- compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
- compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py} +4 -2
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_userposition.py → compass_api_backend_v1_models_pendle_read_response_market_userposition.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_userposition.py → compass_api_backend_v1_models_vaults_read_response_vault_userposition.py} +2 -2
- compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
- compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +103 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
- compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
- compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
- compass_api_sdk/models/createaccountrequest.py +40 -0
- compass_api_sdk/models/createaccountresponse.py +56 -0
- compass_api_sdk/models/depositevent.py +61 -0
- compass_api_sdk/models/depositforburnrequest.py +77 -0
- compass_api_sdk/models/depositforburnresponse.py +100 -0
- compass_api_sdk/models/earnmanageparams.py +76 -0
- compass_api_sdk/models/earnmanagerequest.py +132 -0
- compass_api_sdk/models/earnmanageresponse.py +52 -0
- compass_api_sdk/models/earnpositionsresponse.py +48 -0
- compass_api_sdk/models/earnswapparams.py +74 -0
- compass_api_sdk/models/earnswaprequest.py +90 -0
- compass_api_sdk/models/earnswapresponse.py +55 -0
- compass_api_sdk/models/earntransferrequest.py +104 -0
- compass_api_sdk/models/earntransferresponse.py +71 -0
- compass_api_sdk/models/eip712domainfield.py +20 -0
- compass_api_sdk/models/eip712field.py +20 -0
- compass_api_sdk/models/ethenadepositrequest.py +6 -1
- compass_api_sdk/models/ethenagetvaultresponse.py +5 -5
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
- compass_api_sdk/models/ethenaunstakerequest.py +6 -1
- compass_api_sdk/models/fee.py +43 -0
- compass_api_sdk/models/listaavemarketsresponse.py +21 -0
- compass_api_sdk/models/marketposition.py +5 -5
- compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
- compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
- compass_api_sdk/models/mintpreparependingresponse.py +65 -0
- compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
- compass_api_sdk/models/mintpreparerequest.py +25 -0
- compass_api_sdk/models/morphoborrowrequest.py +6 -1
- compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
- compass_api_sdk/models/morphodepositrequest.py +6 -1
- compass_api_sdk/models/morphogetmarketresponse.py +72 -31
- compass_api_sdk/models/morphomarket.py +26 -20
- compass_api_sdk/models/morphorepayrequest.py +11 -1
- compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
- compass_api_sdk/models/morphovault.py +10 -10
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
- compass_api_sdk/models/morphowithdrawrequest.py +6 -1
- compass_api_sdk/models/multicallexecuterequest.py +7 -2
- compass_api_sdk/models/odosswapparams.py +9 -30
- compass_api_sdk/models/odosswaprequest.py +15 -33
- compass_api_sdk/models/oneinchswapparams.py +59 -0
- compass_api_sdk/models/openposition.py +7 -7
- compass_api_sdk/models/operationtype.py +11 -0
- compass_api_sdk/models/pendledepositevent.py +49 -0
- compass_api_sdk/models/pendlegetmarketresponse.py +5 -5
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
- compass_api_sdk/models/pendlemarketinfo.py +138 -0
- compass_api_sdk/models/pendlemarketsresponse.py +30 -0
- compass_api_sdk/models/pendleptposition.py +111 -0
- compass_api_sdk/models/pendleptvenue.py +78 -0
- compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
- compass_api_sdk/models/pendletradeptparams.py +2 -15
- compass_api_sdk/models/pendletradeptrequest.py +8 -16
- compass_api_sdk/models/pendletradeytparams.py +2 -15
- compass_api_sdk/models/pendletradeytrequest.py +8 -16
- compass_api_sdk/models/pendlewithdrawalevent.py +54 -0
- compass_api_sdk/models/permit2typeddata_input.py +46 -0
- compass_api_sdk/models/permit2typeddata_output.py +46 -0
- compass_api_sdk/models/permitfield.py +20 -0
- compass_api_sdk/models/permitmessage.py +39 -0
- compass_api_sdk/models/permittransferfrommessage.py +29 -0
- compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
- compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
- compass_api_sdk/models/portfolio.py +5 -5
- compass_api_sdk/models/positionpnl.py +52 -0
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/safetransactionparams.py +78 -0
- compass_api_sdk/models/safetransactionresponse.py +28 -0
- compass_api_sdk/models/safetxfield.py +20 -0
- compass_api_sdk/models/safetxmessage.py +66 -0
- compass_api_sdk/models/setallowanceparams.py +3 -16
- compass_api_sdk/models/setallowancerequest.py +9 -17
- compass_api_sdk/models/skybuyrequest.py +6 -1
- compass_api_sdk/models/skydepositrequest.py +7 -2
- compass_api_sdk/models/skysellrequest.py +7 -2
- compass_api_sdk/models/skywithdrawrequest.py +7 -2
- compass_api_sdk/models/sponsorgasrequest.py +71 -0
- compass_api_sdk/models/sponsorgasresponse.py +14 -0
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokenconfig.py +30 -0
- compass_api_sdk/models/tokenlistresponse.py +21 -0
- compass_api_sdk/models/tokenmarketdata.py +27 -0
- compass_api_sdk/models/tokenpermissions.py +20 -0
- compass_api_sdk/models/tokentransferparams.py +2 -15
- compass_api_sdk/models/tokentransferrequest.py +8 -16
- compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
- compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
- compass_api_sdk/models/unsignedtransaction.py +34 -3
- compass_api_sdk/models/unwrapwethrequest.py +6 -1
- compass_api_sdk/models/useroperation.py +33 -24
- compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
- compass_api_sdk/models/v1_aave_avg_rateop.py +15 -93
- compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +8 -86
- compass_api_sdk/models/v1_aave_rateop.py +8 -86
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -86
- compass_api_sdk/models/v1_aave_std_rateop.py +15 -93
- compass_api_sdk/models/v1_aave_token_priceop.py +8 -86
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +14 -92
- compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
- compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +48 -3
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +12 -168
- compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
- compass_api_sdk/models/v1_generic_allowanceop.py +12 -26
- compass_api_sdk/models/v1_generic_ensop.py +2 -2
- compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
- compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
- compass_api_sdk/models/v1_morpho_marketop.py +2 -2
- compass_api_sdk/models/v1_morpho_marketsop.py +10 -30
- compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
- compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
- compass_api_sdk/models/v1_morpho_vaultsop.py +6 -16
- compass_api_sdk/models/v1_pendle_marketop.py +8 -8
- compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
- compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
- compass_api_sdk/models/v1_sky_positionop.py +5 -6
- compass_api_sdk/models/v1_token_balanceop.py +12 -25
- compass_api_sdk/models/{v1_generic_supported_tokensop.py → v1_token_listop.py} +6 -6
- compass_api_sdk/models/v1_token_priceop.py +8 -9
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -6
- compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
- compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +12 -168
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +20 -176
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +20 -176
- compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
- compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
- compass_api_sdk/models/v2_cctp_mintop.py +47 -0
- compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
- compass_api_sdk/models/v2_earn_pendle_marketsop.py +105 -0
- compass_api_sdk/models/v2_earn_positionsop.py +31 -0
- compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
- compass_api_sdk/models/v2bundlerequest.py +33 -0
- compass_api_sdk/models/v2bundleresponse.py +67 -0
- compass_api_sdk/models/v2useroperation.py +37 -0
- compass_api_sdk/models/vault.py +14 -14
- compass_api_sdk/models/vaultdepositrequest.py +6 -1
- compass_api_sdk/models/vaultgetvaultresponse.py +5 -5
- compass_api_sdk/models/vaultinfo.py +129 -0
- compass_api_sdk/models/vaultsresponse.py +30 -0
- compass_api_sdk/models/vaultvenue.py +27 -0
- compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
- compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
- compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
- compass_api_sdk/models/withdrawalevent.py +61 -0
- compass_api_sdk/models/wrapethrequest.py +6 -1
- compass_api_sdk/morpho.py +126 -78
- compass_api_sdk/pendle.py +68 -44
- compass_api_sdk/sdk.py +18 -11
- compass_api_sdk/sky.py +62 -38
- compass_api_sdk/smart_account.py +10 -2
- compass_api_sdk/swap.py +22 -22
- compass_api_sdk/{token_sdk.py → token.py} +511 -103
- compass_api_sdk/transaction_bundler.py +46 -16
- compass_api_sdk/types/basemodel.py +41 -3
- compass_api_sdk/uniswap_v3.py +152 -114
- compass_api_sdk/universal.py +44 -606
- compass_api_sdk/utils/__init__.py +0 -3
- compass_api_sdk/utils/annotations.py +32 -8
- compass_api_sdk/utils/enums.py +60 -0
- compass_api_sdk/utils/forms.py +21 -10
- compass_api_sdk/utils/queryparams.py +14 -2
- compass_api_sdk/utils/requestbodies.py +3 -3
- compass_api_sdk/utils/retries.py +69 -5
- compass_api_sdk/utils/serializers.py +0 -20
- compass_api_sdk/utils/unmarshal_json_response.py +15 -1
- compass_api_sdk/wildcat.py +208 -0
- compass_api_sdk-2.2.1rc3.dist-info/METADATA +624 -0
- compass_api_sdk-2.2.1rc3.dist-info/RECORD +356 -0
- {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.2.1rc3.dist-info}/WHEEL +1 -1
- compass_api_sdk/models/aerodromeposition.py +0 -70
- compass_api_sdk/models/token_enum.py +0 -81
- compass_api_sdk/models/tokenaddressresponse.py +0 -15
- compass_api_sdk/models/tokeninfo.py +0 -17
- compass_api_sdk/models/v1_token_addressop.py +0 -109
- compass_api_sdk/models/vaultposition.py +0 -24
- compass_api_sdk-1.1.1.dist-info/METADATA +0 -592
- compass_api_sdk-1.1.1.dist-info/RECORD +0 -275
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
AaveWithdrawRequestAmountTypedDict = TypeAliasType(
|
|
@@ -30,12 +29,8 @@ class AaveWithdrawRequestChain(str, Enum):
|
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
class AaveWithdrawRequestTypedDict(TypedDict):
|
|
33
|
-
token:
|
|
34
|
-
r"""
|
|
35
|
-
|
|
36
|
-
This class is used to represent the token in the system. Notice individual
|
|
37
|
-
endpoints' documentation where per chain tokens are presented.
|
|
38
|
-
"""
|
|
32
|
+
token: str
|
|
33
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
39
34
|
amount: AaveWithdrawRequestAmountTypedDict
|
|
40
35
|
r"""The amount of the asset to withdraw"""
|
|
41
36
|
recipient: str
|
|
@@ -44,15 +39,13 @@ class AaveWithdrawRequestTypedDict(TypedDict):
|
|
|
44
39
|
sender: str
|
|
45
40
|
r"""The address of the transaction sender."""
|
|
46
41
|
action_type: Literal["AAVE_WITHDRAW"]
|
|
42
|
+
estimate_gas: NotRequired[bool]
|
|
43
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
47
44
|
|
|
48
45
|
|
|
49
46
|
class AaveWithdrawRequest(BaseModel):
|
|
50
|
-
token:
|
|
51
|
-
r"""
|
|
52
|
-
|
|
53
|
-
This class is used to represent the token in the system. Notice individual
|
|
54
|
-
endpoints' documentation where per chain tokens are presented.
|
|
55
|
-
"""
|
|
47
|
+
token: str
|
|
48
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
56
49
|
|
|
57
50
|
amount: AaveWithdrawRequestAmount
|
|
58
51
|
r"""The amount of the asset to withdraw"""
|
|
@@ -72,3 +65,6 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
72
65
|
],
|
|
73
66
|
pydantic.Field(alias="action_type"),
|
|
74
67
|
] = "AAVE_WITHDRAW"
|
|
68
|
+
|
|
69
|
+
estimate_gas: Optional[bool] = None
|
|
70
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AerodromeEnrichedPositionTypedDict(TypedDict):
|
|
9
|
+
r"""Aerodrome LP position enriched with token amounts and USD values."""
|
|
10
|
+
|
|
11
|
+
nonce: int
|
|
12
|
+
r"""Position nonce"""
|
|
13
|
+
operator: str
|
|
14
|
+
r"""Operator address"""
|
|
15
|
+
token0: str
|
|
16
|
+
r"""Token0 address"""
|
|
17
|
+
token1: str
|
|
18
|
+
r"""Token1 address"""
|
|
19
|
+
tick_spacing: int
|
|
20
|
+
r"""Pool tick spacing"""
|
|
21
|
+
tick_lower: int
|
|
22
|
+
r"""Lower tick of the position"""
|
|
23
|
+
tick_upper: int
|
|
24
|
+
r"""Upper tick of the position"""
|
|
25
|
+
liquidity: int
|
|
26
|
+
r"""Position liquidity"""
|
|
27
|
+
fee_growth_inside0_last_x128: int
|
|
28
|
+
r"""Fee growth inside for token0"""
|
|
29
|
+
fee_growth_inside1_last_x128: int
|
|
30
|
+
r"""Fee growth inside for token1"""
|
|
31
|
+
tokens_owed0: int
|
|
32
|
+
r"""Uncollected fees for token0"""
|
|
33
|
+
tokens_owed1: int
|
|
34
|
+
r"""Uncollected fees for token1"""
|
|
35
|
+
token_id: int
|
|
36
|
+
r"""NFT token ID"""
|
|
37
|
+
pool_address: str
|
|
38
|
+
r"""Pool contract address"""
|
|
39
|
+
amount0: str
|
|
40
|
+
r"""Amount of token0 in the position (human readable)"""
|
|
41
|
+
amount1: str
|
|
42
|
+
r"""Amount of token1 in the position (human readable)"""
|
|
43
|
+
amount0_usd: str
|
|
44
|
+
r"""USD value of token0 in the position"""
|
|
45
|
+
amount1_usd: str
|
|
46
|
+
r"""USD value of token1 in the position"""
|
|
47
|
+
total_value_usd: str
|
|
48
|
+
r"""Total USD value of the position"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class AerodromeEnrichedPosition(BaseModel):
|
|
52
|
+
r"""Aerodrome LP position enriched with token amounts and USD values."""
|
|
53
|
+
|
|
54
|
+
nonce: int
|
|
55
|
+
r"""Position nonce"""
|
|
56
|
+
|
|
57
|
+
operator: str
|
|
58
|
+
r"""Operator address"""
|
|
59
|
+
|
|
60
|
+
token0: str
|
|
61
|
+
r"""Token0 address"""
|
|
62
|
+
|
|
63
|
+
token1: str
|
|
64
|
+
r"""Token1 address"""
|
|
65
|
+
|
|
66
|
+
tick_spacing: int
|
|
67
|
+
r"""Pool tick spacing"""
|
|
68
|
+
|
|
69
|
+
tick_lower: int
|
|
70
|
+
r"""Lower tick of the position"""
|
|
71
|
+
|
|
72
|
+
tick_upper: int
|
|
73
|
+
r"""Upper tick of the position"""
|
|
74
|
+
|
|
75
|
+
liquidity: int
|
|
76
|
+
r"""Position liquidity"""
|
|
77
|
+
|
|
78
|
+
fee_growth_inside0_last_x128: int
|
|
79
|
+
r"""Fee growth inside for token0"""
|
|
80
|
+
|
|
81
|
+
fee_growth_inside1_last_x128: int
|
|
82
|
+
r"""Fee growth inside for token1"""
|
|
83
|
+
|
|
84
|
+
tokens_owed0: int
|
|
85
|
+
r"""Uncollected fees for token0"""
|
|
86
|
+
|
|
87
|
+
tokens_owed1: int
|
|
88
|
+
r"""Uncollected fees for token1"""
|
|
89
|
+
|
|
90
|
+
token_id: int
|
|
91
|
+
r"""NFT token ID"""
|
|
92
|
+
|
|
93
|
+
pool_address: str
|
|
94
|
+
r"""Pool contract address"""
|
|
95
|
+
|
|
96
|
+
amount0: str
|
|
97
|
+
r"""Amount of token0 in the position (human readable)"""
|
|
98
|
+
|
|
99
|
+
amount1: str
|
|
100
|
+
r"""Amount of token1 in the position (human readable)"""
|
|
101
|
+
|
|
102
|
+
amount0_usd: str
|
|
103
|
+
r"""USD value of token0 in the position"""
|
|
104
|
+
|
|
105
|
+
amount1_usd: str
|
|
106
|
+
r"""USD value of token1 in the position"""
|
|
107
|
+
|
|
108
|
+
total_value_usd: str
|
|
109
|
+
r"""Total USD value of the position"""
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .aerodromeenrichedposition import (
|
|
5
|
+
AerodromeEnrichedPosition,
|
|
6
|
+
AerodromeEnrichedPositionTypedDict,
|
|
7
|
+
)
|
|
5
8
|
from compass_api_sdk.types import BaseModel
|
|
6
9
|
from typing import Dict
|
|
7
10
|
from typing_extensions import TypedDict
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
class AerodromeLPPositionsResponseTypedDict(TypedDict):
|
|
11
|
-
positions: Dict[str,
|
|
12
|
-
r"""Liquidity provision positions belonging to a particular user
|
|
13
|
-
|
|
14
|
+
positions: Dict[str, AerodromeEnrichedPositionTypedDict]
|
|
15
|
+
r"""Liquidity provision positions belonging to a particular user, enriched with
|
|
16
|
+
token amounts and USD values. The key is the NFT token ID of the position.
|
|
14
17
|
"""
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
class AerodromeLPPositionsResponse(BaseModel):
|
|
18
|
-
positions: Dict[str,
|
|
19
|
-
r"""Liquidity provision positions belonging to a particular user
|
|
20
|
-
|
|
21
|
+
positions: Dict[str, AerodromeEnrichedPosition]
|
|
22
|
+
r"""Liquidity provision positions belonging to a particular user, enriched with
|
|
23
|
+
token amounts and USD values. The key is the NFT token ID of the position.
|
|
21
24
|
"""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
import pydantic
|
|
@@ -37,18 +36,10 @@ r"""The maximum amount of the token to swap from"""
|
|
|
37
36
|
class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
38
37
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
39
38
|
|
|
40
|
-
token_in:
|
|
41
|
-
r"""
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
endpoints' documentation where per chain tokens are presented.
|
|
45
|
-
"""
|
|
46
|
-
token_out: TokenEnum
|
|
47
|
-
r"""A class representing the token.
|
|
48
|
-
|
|
49
|
-
This class is used to represent the token in the system. Notice individual
|
|
50
|
-
endpoints' documentation where per chain tokens are presented.
|
|
51
|
-
"""
|
|
39
|
+
token_in: str
|
|
40
|
+
r"""The symbol of the token to swap from."""
|
|
41
|
+
token_out: str
|
|
42
|
+
r"""The symbol of the token to swap to."""
|
|
52
43
|
tick_spacing: int
|
|
53
44
|
r"""The tick spacing of the pool"""
|
|
54
45
|
amount_out: AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict
|
|
@@ -61,19 +52,11 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
|
61
52
|
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
62
53
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
63
54
|
|
|
64
|
-
token_in:
|
|
65
|
-
r"""
|
|
66
|
-
|
|
67
|
-
This class is used to represent the token in the system. Notice individual
|
|
68
|
-
endpoints' documentation where per chain tokens are presented.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
token_out: TokenEnum
|
|
72
|
-
r"""A class representing the token.
|
|
55
|
+
token_in: str
|
|
56
|
+
r"""The symbol of the token to swap from."""
|
|
73
57
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"""
|
|
58
|
+
token_out: str
|
|
59
|
+
r"""The symbol of the token to swap to."""
|
|
77
60
|
|
|
78
61
|
tick_spacing: int
|
|
79
62
|
r"""The tick spacing of the pool"""
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
@@ -42,18 +41,10 @@ class AerodromeSlipstreamBuyExactlyRequestChain(str, Enum):
|
|
|
42
41
|
class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
43
42
|
r"""Request model for buying exactly an amount of tokens."""
|
|
44
43
|
|
|
45
|
-
token_in:
|
|
46
|
-
r"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
endpoints' documentation where per chain tokens are presented.
|
|
50
|
-
"""
|
|
51
|
-
token_out: TokenEnum
|
|
52
|
-
r"""A class representing the token.
|
|
53
|
-
|
|
54
|
-
This class is used to represent the token in the system. Notice individual
|
|
55
|
-
endpoints' documentation where per chain tokens are presented.
|
|
56
|
-
"""
|
|
44
|
+
token_in: str
|
|
45
|
+
r"""The symbol of the token to swap from."""
|
|
46
|
+
token_out: str
|
|
47
|
+
r"""The symbol of the token to swap to."""
|
|
57
48
|
tick_spacing: int
|
|
58
49
|
r"""The tick spacing of the pool"""
|
|
59
50
|
amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict
|
|
@@ -64,24 +55,18 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
|
64
55
|
sender: str
|
|
65
56
|
r"""The address of the transaction sender."""
|
|
66
57
|
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
58
|
+
estimate_gas: NotRequired[bool]
|
|
59
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
67
60
|
|
|
68
61
|
|
|
69
62
|
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
70
63
|
r"""Request model for buying exactly an amount of tokens."""
|
|
71
64
|
|
|
72
|
-
token_in:
|
|
73
|
-
r"""
|
|
74
|
-
|
|
75
|
-
This class is used to represent the token in the system. Notice individual
|
|
76
|
-
endpoints' documentation where per chain tokens are presented.
|
|
77
|
-
"""
|
|
65
|
+
token_in: str
|
|
66
|
+
r"""The symbol of the token to swap from."""
|
|
78
67
|
|
|
79
|
-
token_out:
|
|
80
|
-
r"""
|
|
81
|
-
|
|
82
|
-
This class is used to represent the token in the system. Notice individual
|
|
83
|
-
endpoints' documentation where per chain tokens are presented.
|
|
84
|
-
"""
|
|
68
|
+
token_out: str
|
|
69
|
+
r"""The symbol of the token to swap to."""
|
|
85
70
|
|
|
86
71
|
tick_spacing: int
|
|
87
72
|
r"""The tick spacing of the pool"""
|
|
@@ -104,3 +89,6 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
104
89
|
],
|
|
105
90
|
pydantic.Field(alias="action_type"),
|
|
106
91
|
] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
92
|
+
|
|
93
|
+
estimate_gas: Optional[bool] = None
|
|
94
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -7,7 +7,7 @@ from enum import Enum
|
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal, Optional, Union
|
|
10
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
|
|
@@ -91,6 +91,8 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
91
91
|
sender: str
|
|
92
92
|
r"""The address of the transaction sender."""
|
|
93
93
|
action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
|
|
94
|
+
estimate_gas: NotRequired[bool]
|
|
95
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
94
96
|
|
|
95
97
|
|
|
96
98
|
class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
@@ -123,3 +125,6 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
123
125
|
],
|
|
124
126
|
pydantic.Field(alias="action_type"),
|
|
125
127
|
] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
|
|
128
|
+
|
|
129
|
+
estimate_gas: Optional[bool] = None
|
|
130
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import (
|
|
6
5
|
BaseModel,
|
|
7
6
|
Nullable,
|
|
@@ -72,18 +71,10 @@ r"""The minimum amount of the second token to deposit"""
|
|
|
72
71
|
class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
73
72
|
r"""Parameters model for minting a new liquidity position."""
|
|
74
73
|
|
|
75
|
-
token0:
|
|
76
|
-
r"""
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
endpoints' documentation where per chain tokens are presented.
|
|
80
|
-
"""
|
|
81
|
-
token1: TokenEnum
|
|
82
|
-
r"""A class representing the token.
|
|
83
|
-
|
|
84
|
-
This class is used to represent the token in the system. Notice individual
|
|
85
|
-
endpoints' documentation where per chain tokens are presented.
|
|
86
|
-
"""
|
|
74
|
+
token0: str
|
|
75
|
+
r"""The symbol or address of the first token in the pair."""
|
|
76
|
+
token1: str
|
|
77
|
+
r"""The symbol or address of the second token in the pair."""
|
|
87
78
|
tick_spacing: int
|
|
88
79
|
r"""The tick spacing of the pool"""
|
|
89
80
|
tick_lower: int
|
|
@@ -110,19 +101,11 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
110
101
|
class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
111
102
|
r"""Parameters model for minting a new liquidity position."""
|
|
112
103
|
|
|
113
|
-
token0:
|
|
114
|
-
r"""
|
|
115
|
-
|
|
116
|
-
This class is used to represent the token in the system. Notice individual
|
|
117
|
-
endpoints' documentation where per chain tokens are presented.
|
|
118
|
-
"""
|
|
119
|
-
|
|
120
|
-
token1: TokenEnum
|
|
121
|
-
r"""A class representing the token.
|
|
104
|
+
token0: str
|
|
105
|
+
r"""The symbol or address of the first token in the pair."""
|
|
122
106
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"""
|
|
107
|
+
token1: str
|
|
108
|
+
r"""The symbol or address of the second token in the pair."""
|
|
126
109
|
|
|
127
110
|
tick_spacing: int
|
|
128
111
|
r"""The tick spacing of the pool"""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import (
|
|
6
5
|
BaseModel,
|
|
7
6
|
Nullable,
|
|
@@ -77,18 +76,10 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestChain(str, Enum):
|
|
|
77
76
|
class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
78
77
|
r"""Request model for minting a new liquidity position."""
|
|
79
78
|
|
|
80
|
-
token0:
|
|
81
|
-
r"""
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
endpoints' documentation where per chain tokens are presented.
|
|
85
|
-
"""
|
|
86
|
-
token1: TokenEnum
|
|
87
|
-
r"""A class representing the token.
|
|
88
|
-
|
|
89
|
-
This class is used to represent the token in the system. Notice individual
|
|
90
|
-
endpoints' documentation where per chain tokens are presented.
|
|
91
|
-
"""
|
|
79
|
+
token0: str
|
|
80
|
+
r"""The symbol or address of the first token in the pair."""
|
|
81
|
+
token1: str
|
|
82
|
+
r"""The symbol or address of the second token in the pair."""
|
|
92
83
|
tick_spacing: int
|
|
93
84
|
r"""The tick spacing of the pool"""
|
|
94
85
|
tick_lower: int
|
|
@@ -113,24 +104,18 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
113
104
|
action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
|
|
114
105
|
recipient: NotRequired[Nullable[str]]
|
|
115
106
|
r"""The address that will receive the LP tokens"""
|
|
107
|
+
estimate_gas: NotRequired[bool]
|
|
108
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
116
109
|
|
|
117
110
|
|
|
118
111
|
class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
119
112
|
r"""Request model for minting a new liquidity position."""
|
|
120
113
|
|
|
121
|
-
token0:
|
|
122
|
-
r"""
|
|
123
|
-
|
|
124
|
-
This class is used to represent the token in the system. Notice individual
|
|
125
|
-
endpoints' documentation where per chain tokens are presented.
|
|
126
|
-
"""
|
|
114
|
+
token0: str
|
|
115
|
+
r"""The symbol or address of the first token in the pair."""
|
|
127
116
|
|
|
128
|
-
token1:
|
|
129
|
-
r"""
|
|
130
|
-
|
|
131
|
-
This class is used to represent the token in the system. Notice individual
|
|
132
|
-
endpoints' documentation where per chain tokens are presented.
|
|
133
|
-
"""
|
|
117
|
+
token1: str
|
|
118
|
+
r"""The symbol or address of the second token in the pair."""
|
|
134
119
|
|
|
135
120
|
tick_spacing: int
|
|
136
121
|
r"""The tick spacing of the pool"""
|
|
@@ -171,9 +156,12 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
171
156
|
recipient: OptionalNullable[str] = UNSET
|
|
172
157
|
r"""The address that will receive the LP tokens"""
|
|
173
158
|
|
|
159
|
+
estimate_gas: Optional[bool] = None
|
|
160
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
161
|
+
|
|
174
162
|
@model_serializer(mode="wrap")
|
|
175
163
|
def serialize_model(self, handler):
|
|
176
|
-
optional_fields = ["action_type", "recipient"]
|
|
164
|
+
optional_fields = ["action_type", "recipient", "estimate_gas"]
|
|
177
165
|
nullable_fields = ["recipient"]
|
|
178
166
|
null_default_fields = []
|
|
179
167
|
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from typing_extensions import TypedDict
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
|
|
10
|
-
token_in:
|
|
11
|
-
r"""
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
endpoints' documentation where per chain tokens are presented.
|
|
15
|
-
"""
|
|
16
|
-
token_out: TokenEnum
|
|
17
|
-
r"""A class representing the token.
|
|
18
|
-
|
|
19
|
-
This class is used to represent the token in the system. Notice individual
|
|
20
|
-
endpoints' documentation where per chain tokens are presented.
|
|
21
|
-
"""
|
|
9
|
+
token_in: str
|
|
10
|
+
r"""The first token in the pool."""
|
|
11
|
+
token_out: str
|
|
12
|
+
r"""The second token in the pool."""
|
|
22
13
|
price: str
|
|
23
14
|
r"""The price of the pool. This is expressed as an instantaneous amount of how
|
|
24
15
|
many token0 you need to buy 1 token1. In any swap this will not change during the trade; use
|
|
@@ -31,19 +22,11 @@ class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
|
|
|
31
22
|
|
|
32
23
|
|
|
33
24
|
class AerodromeSlipstreamPoolPriceResponse(BaseModel):
|
|
34
|
-
token_in:
|
|
35
|
-
r"""
|
|
25
|
+
token_in: str
|
|
26
|
+
r"""The first token in the pool."""
|
|
36
27
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"""
|
|
40
|
-
|
|
41
|
-
token_out: TokenEnum
|
|
42
|
-
r"""A class representing the token.
|
|
43
|
-
|
|
44
|
-
This class is used to represent the token in the system. Notice individual
|
|
45
|
-
endpoints' documentation where per chain tokens are presented.
|
|
46
|
-
"""
|
|
28
|
+
token_out: str
|
|
29
|
+
r"""The second token in the pool."""
|
|
47
30
|
|
|
48
31
|
price: str
|
|
49
32
|
r"""The price of the pool. This is expressed as an instantaneous amount of how
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
import pydantic
|
|
@@ -37,18 +36,10 @@ r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
|
37
36
|
class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
|
|
38
37
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
39
38
|
|
|
40
|
-
token_in:
|
|
41
|
-
r"""
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
endpoints' documentation where per chain tokens are presented.
|
|
45
|
-
"""
|
|
46
|
-
token_out: TokenEnum
|
|
47
|
-
r"""A class representing the token.
|
|
48
|
-
|
|
49
|
-
This class is used to represent the token in the system. Notice individual
|
|
50
|
-
endpoints' documentation where per chain tokens are presented.
|
|
51
|
-
"""
|
|
39
|
+
token_in: str
|
|
40
|
+
r"""The symbol or address of the token to swap from."""
|
|
41
|
+
token_out: str
|
|
42
|
+
r"""The symbol or address of the token to swap to."""
|
|
52
43
|
tick_spacing: int
|
|
53
44
|
r"""The tick spacing of the pool"""
|
|
54
45
|
amount_in: AerodromeSlipstreamSellExactlyParamsAmountInTypedDict
|
|
@@ -63,19 +54,11 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
|
|
|
63
54
|
class AerodromeSlipstreamSellExactlyParams(BaseModel):
|
|
64
55
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
65
56
|
|
|
66
|
-
token_in:
|
|
67
|
-
r"""
|
|
68
|
-
|
|
69
|
-
This class is used to represent the token in the system. Notice individual
|
|
70
|
-
endpoints' documentation where per chain tokens are presented.
|
|
71
|
-
"""
|
|
72
|
-
|
|
73
|
-
token_out: TokenEnum
|
|
74
|
-
r"""A class representing the token.
|
|
57
|
+
token_in: str
|
|
58
|
+
r"""The symbol or address of the token to swap from."""
|
|
75
59
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"""
|
|
60
|
+
token_out: str
|
|
61
|
+
r"""The symbol or address of the token to swap to."""
|
|
79
62
|
|
|
80
63
|
tick_spacing: int
|
|
81
64
|
r"""The tick spacing of the pool"""
|