compass_api_sdk 1.1.1__py3-none-any.whl → 2.0.21rc1__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 +1780 -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 +446 -0
- compass_api_sdk/httpclient.py +0 -1
- compass_api_sdk/models/__init__.py +764 -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 +49 -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 +49 -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/depositforburnrequest.py +77 -0
- compass_api_sdk/models/depositforburnresponse.py +100 -0
- compass_api_sdk/models/earnmanageparams.py +74 -0
- compass_api_sdk/models/earnmanagerequest.py +130 -0
- compass_api_sdk/models/earnmanageresponse.py +52 -0
- compass_api_sdk/models/earnpositionsresponse.py +39 -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 +42 -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/pendlegetmarketresponse.py +5 -5
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
- 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/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/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_positionsop.py +56 -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/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/uniswap_v3.py +152 -114
- compass_api_sdk/universal.py +44 -606
- compass_api_sdk/utils/annotations.py +32 -8
- compass_api_sdk/utils/forms.py +21 -10
- compass_api_sdk/utils/queryparams.py +14 -2
- compass_api_sdk/utils/retries.py +69 -5
- compass_api_sdk/utils/unmarshal_json_response.py +15 -1
- compass_api_sdk/wildcat.py +208 -0
- compass_api_sdk-2.0.21rc1.dist-info/METADATA +623 -0
- compass_api_sdk-2.0.21rc1.dist-info/RECORD +346 -0
- {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.0.21rc1.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,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
|
from enum import Enum
|
|
@@ -42,18 +41,10 @@ class AerodromeSlipstreamSellExactlyRequestChain(str, Enum):
|
|
|
42
41
|
class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
|
|
43
42
|
r"""Request model for selling 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 or address of the token to swap from."""
|
|
46
|
+
token_out: str
|
|
47
|
+
r"""The symbol or address of the token to swap to."""
|
|
57
48
|
tick_spacing: int
|
|
58
49
|
r"""The tick spacing of the pool"""
|
|
59
50
|
amount_in: AerodromeSlipstreamSellExactlyRequestAmountInTypedDict
|
|
@@ -66,24 +57,18 @@ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
|
|
|
66
57
|
AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict
|
|
67
58
|
]
|
|
68
59
|
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
60
|
+
estimate_gas: NotRequired[bool]
|
|
61
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
69
62
|
|
|
70
63
|
|
|
71
64
|
class AerodromeSlipstreamSellExactlyRequest(BaseModel):
|
|
72
65
|
r"""Request model for selling exactly an amount of tokens."""
|
|
73
66
|
|
|
74
|
-
token_in:
|
|
75
|
-
r"""
|
|
76
|
-
|
|
77
|
-
This class is used to represent the token in the system. Notice individual
|
|
78
|
-
endpoints' documentation where per chain tokens are presented.
|
|
79
|
-
"""
|
|
67
|
+
token_in: str
|
|
68
|
+
r"""The symbol or address of the token to swap from."""
|
|
80
69
|
|
|
81
|
-
token_out:
|
|
82
|
-
r"""
|
|
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
|
-
"""
|
|
70
|
+
token_out: str
|
|
71
|
+
r"""The symbol or address of the token to swap to."""
|
|
87
72
|
|
|
88
73
|
tick_spacing: int
|
|
89
74
|
r"""The tick spacing of the pool"""
|
|
@@ -108,3 +93,6 @@ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
|
|
|
108
93
|
AerodromeSlipstreamSellExactlyRequestAmountOutMinimum
|
|
109
94
|
] = None
|
|
110
95
|
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
96
|
+
|
|
97
|
+
estimate_gas: Optional[bool] = None
|
|
98
|
+
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
|
AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict = TypeAliasType(
|
|
@@ -39,6 +39,8 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
39
39
|
sender: str
|
|
40
40
|
r"""The address of the transaction sender."""
|
|
41
41
|
action_type: Literal["AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"]
|
|
42
|
+
estimate_gas: NotRequired[bool]
|
|
43
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
|
|
@@ -64,3 +66,6 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
|
|
|
64
66
|
],
|
|
65
67
|
pydantic.Field(alias="action_type"),
|
|
66
68
|
] = "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"
|
|
69
|
+
|
|
70
|
+
estimate_gas: Optional[bool] = None
|
|
71
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chain import Chain
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ApproveTransferRequestTypedDict(TypedDict):
|
|
11
|
+
owner: str
|
|
12
|
+
r"""The owner of the smart account's address."""
|
|
13
|
+
chain: Chain
|
|
14
|
+
r"""The chain to use."""
|
|
15
|
+
token: str
|
|
16
|
+
r"""The token you would like to transfer with gas sponsorship."""
|
|
17
|
+
gas_sponsorship: NotRequired[bool]
|
|
18
|
+
r"""Optionally request gas sponsorship. If set to `true`, EIP-712 signature data will be returned that must be signed by the `owner` and submitted to the `/gas_sponsorship/prepare` endpoint."""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ApproveTransferRequest(BaseModel):
|
|
22
|
+
owner: str
|
|
23
|
+
r"""The owner of the smart account's address."""
|
|
24
|
+
|
|
25
|
+
chain: Chain
|
|
26
|
+
r"""The chain to use."""
|
|
27
|
+
|
|
28
|
+
token: str
|
|
29
|
+
r"""The token you would like to transfer with gas sponsorship."""
|
|
30
|
+
|
|
31
|
+
gas_sponsorship: Optional[bool] = None
|
|
32
|
+
r"""Optionally request gas sponsorship. If set to `true`, EIP-712 signature data will be returned that must be signed by the `owner` and submitted to the `/gas_sponsorship/prepare` endpoint."""
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .permittypeddataresponse_output import (
|
|
5
|
+
PermitTypedDataResponseOutput,
|
|
6
|
+
PermitTypedDataResponseOutputTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
9
|
+
from compass_api_sdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
10
|
+
from pydantic import model_serializer
|
|
11
|
+
from typing_extensions import TypedDict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ApproveTransferResponseTypedDict(TypedDict):
|
|
15
|
+
transaction: Nullable[UnsignedTransactionTypedDict]
|
|
16
|
+
eip_712: Nullable[PermitTypedDataResponseOutputTypedDict]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ApproveTransferResponse(BaseModel):
|
|
20
|
+
transaction: Nullable[UnsignedTransaction]
|
|
21
|
+
|
|
22
|
+
eip_712: Nullable[PermitTypedDataResponseOutput]
|
|
23
|
+
|
|
24
|
+
@model_serializer(mode="wrap")
|
|
25
|
+
def serialize_model(self, handler):
|
|
26
|
+
optional_fields = []
|
|
27
|
+
nullable_fields = ["transaction", "eip_712"]
|
|
28
|
+
null_default_fields = []
|
|
29
|
+
|
|
30
|
+
serialized = handler(self)
|
|
31
|
+
|
|
32
|
+
m = {}
|
|
33
|
+
|
|
34
|
+
for n, f in type(self).model_fields.items():
|
|
35
|
+
k = f.alias or n
|
|
36
|
+
val = serialized.get(k)
|
|
37
|
+
serialized.pop(k, None)
|
|
38
|
+
|
|
39
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
40
|
+
is_set = (
|
|
41
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
42
|
+
or k in null_default_fields
|
|
43
|
+
) # pylint: disable=no-member
|
|
44
|
+
|
|
45
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
46
|
+
m[k] = val
|
|
47
|
+
elif val != UNSET_SENTINEL and (
|
|
48
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
49
|
+
):
|
|
50
|
+
m[k] = val
|
|
51
|
+
|
|
52
|
+
return m
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .safetxmessage import SafeTxMessage, SafeTxMessageTypedDict
|
|
13
|
+
from compass_api_sdk.types import BaseModel
|
|
14
|
+
from compass_api_sdk.utils import validate_const
|
|
15
|
+
import pydantic
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal
|
|
18
|
+
from typing_extensions import Annotated, TypedDict
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BatchedSafeOperationsResponseInputTypedDict(TypedDict):
|
|
22
|
+
r"""Response containing EIP-712 typed data for Safe transaction signing."""
|
|
23
|
+
|
|
24
|
+
domain: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712DomainTypedDict
|
|
25
|
+
r"""The EIP-712 domain separator for Safe transactions."""
|
|
26
|
+
types: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712TypesTypedDict
|
|
27
|
+
r"""The type definitions for EIP-712 structured data."""
|
|
28
|
+
message: SafeTxMessageTypedDict
|
|
29
|
+
r"""The message data for a Safe transaction."""
|
|
30
|
+
primary_type: Literal["SafeTx"]
|
|
31
|
+
r"""Primary type for the structured data"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class BatchedSafeOperationsResponseInput(BaseModel):
|
|
35
|
+
r"""Response containing EIP-712 typed data for Safe transaction signing."""
|
|
36
|
+
|
|
37
|
+
domain: (
|
|
38
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain
|
|
39
|
+
)
|
|
40
|
+
r"""The EIP-712 domain separator for Safe transactions."""
|
|
41
|
+
|
|
42
|
+
types: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types
|
|
43
|
+
r"""The type definitions for EIP-712 structured data."""
|
|
44
|
+
|
|
45
|
+
message: SafeTxMessage
|
|
46
|
+
r"""The message data for a Safe transaction."""
|
|
47
|
+
|
|
48
|
+
PRIMARY_TYPE: Annotated[
|
|
49
|
+
Annotated[Literal["SafeTx"], AfterValidator(validate_const("SafeTx"))],
|
|
50
|
+
pydantic.Field(alias="primaryType"),
|
|
51
|
+
] = "SafeTx"
|
|
52
|
+
r"""Primary type for the structured data"""
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .safetxmessage import SafeTxMessage, SafeTxMessageTypedDict
|
|
13
|
+
from compass_api_sdk.types import BaseModel
|
|
14
|
+
from compass_api_sdk.utils import validate_const
|
|
15
|
+
import pydantic
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal
|
|
18
|
+
from typing_extensions import Annotated, TypedDict
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BatchedSafeOperationsResponseOutputTypedDict(TypedDict):
|
|
22
|
+
r"""Response containing EIP-712 typed data for Safe transaction signing."""
|
|
23
|
+
|
|
24
|
+
domain: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712DomainTypedDict
|
|
25
|
+
r"""The EIP-712 domain separator for Safe transactions."""
|
|
26
|
+
types: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712TypesTypedDict
|
|
27
|
+
r"""The type definitions for EIP-712 structured data."""
|
|
28
|
+
message: SafeTxMessageTypedDict
|
|
29
|
+
r"""The message data for a Safe transaction."""
|
|
30
|
+
primary_type: Literal["SafeTx"]
|
|
31
|
+
r"""Primary type for the structured data"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class BatchedSafeOperationsResponseOutput(BaseModel):
|
|
35
|
+
r"""Response containing EIP-712 typed data for Safe transaction signing."""
|
|
36
|
+
|
|
37
|
+
domain: (
|
|
38
|
+
CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain
|
|
39
|
+
)
|
|
40
|
+
r"""The EIP-712 domain separator for Safe transactions."""
|
|
41
|
+
|
|
42
|
+
types: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types
|
|
43
|
+
r"""The type definitions for EIP-712 structured data."""
|
|
44
|
+
|
|
45
|
+
message: SafeTxMessage
|
|
46
|
+
r"""The message data for a Safe transaction."""
|
|
47
|
+
|
|
48
|
+
PRIMARY_TYPE: Annotated[
|
|
49
|
+
Annotated[Literal["SafeTx"], AfterValidator(validate_const("SafeTx"))],
|
|
50
|
+
pydantic.Field(alias="primaryType"),
|
|
51
|
+
] = "SafeTx"
|
|
52
|
+
r"""Primary type for the structured data"""
|
|
@@ -4,8 +4,8 @@ from __future__ import annotations
|
|
|
4
4
|
from .useroperation import UserOperation, UserOperationTypedDict
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from typing import List
|
|
8
|
-
from typing_extensions import TypedDict
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class BatchedUserOperationsRequestChain(str, Enum):
|
|
@@ -15,17 +15,25 @@ class BatchedUserOperationsRequestChain(str, Enum):
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class BatchedUserOperationsRequestTypedDict(TypedDict):
|
|
18
|
-
r"""Request model for batching user operations.
|
|
18
|
+
r"""Request model for batching user operations.
|
|
19
|
+
|
|
20
|
+
Used for smart account batching and 5792 batching.
|
|
21
|
+
"""
|
|
19
22
|
|
|
20
23
|
chain: BatchedUserOperationsRequestChain
|
|
21
24
|
sender: str
|
|
22
25
|
r"""The address of the transaction sender."""
|
|
23
26
|
operations: List[UserOperationTypedDict]
|
|
24
27
|
r"""List of possible user operations"""
|
|
28
|
+
estimate_gas: NotRequired[bool]
|
|
29
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
class BatchedUserOperationsRequest(BaseModel):
|
|
28
|
-
r"""Request model for batching user operations.
|
|
33
|
+
r"""Request model for batching user operations.
|
|
34
|
+
|
|
35
|
+
Used for smart account batching and 5792 batching.
|
|
36
|
+
"""
|
|
29
37
|
|
|
30
38
|
chain: BatchedUserOperationsRequestChain
|
|
31
39
|
|
|
@@ -34,3 +42,6 @@ class BatchedUserOperationsRequest(BaseModel):
|
|
|
34
42
|
|
|
35
43
|
operations: List[UserOperation]
|
|
36
44
|
r"""List of possible user operations"""
|
|
45
|
+
|
|
46
|
+
estimate_gas: Optional[bool] = None
|
|
47
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -0,0 +1,29 @@
|
|
|
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 ChainMarketInfoTypedDict(TypedDict):
|
|
9
|
+
r"""Rate information for a token on a specific chain."""
|
|
10
|
+
|
|
11
|
+
address: str
|
|
12
|
+
r"""Token contract address on this chain."""
|
|
13
|
+
supply_apy: str
|
|
14
|
+
r"""Variable rate APY for deposits, in percentage (e.g., 4.5 means 4.5%)."""
|
|
15
|
+
borrow_apy: str
|
|
16
|
+
r"""Variable rate APY for loans, in percentage (e.g., 6.2 means 6.2%)."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ChainMarketInfo(BaseModel):
|
|
20
|
+
r"""Rate information for a token on a specific chain."""
|
|
21
|
+
|
|
22
|
+
address: str
|
|
23
|
+
r"""Token contract address on this chain."""
|
|
24
|
+
|
|
25
|
+
supply_apy: str
|
|
26
|
+
r"""Variable rate APY for deposits, in percentage (e.g., 4.5 means 4.5%)."""
|
|
27
|
+
|
|
28
|
+
borrow_apy: str
|
|
29
|
+
r"""Variable rate APY for loans, in percentage (e.g., 6.2 means 6.2%)."""
|
|
@@ -1,24 +1,19 @@
|
|
|
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
|
-
class
|
|
8
|
+
class CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalanceTypedDict(
|
|
10
9
|
TypedDict
|
|
11
10
|
):
|
|
12
11
|
amount: str
|
|
13
12
|
r"""Amount of tokens a particular address holds"""
|
|
14
13
|
decimals: int
|
|
15
14
|
r"""Number of decimals of the token"""
|
|
16
|
-
token_symbol:
|
|
17
|
-
r"""
|
|
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
|
-
"""
|
|
15
|
+
token_symbol: str
|
|
16
|
+
r"""Symbol of the token."""
|
|
22
17
|
token_address: str
|
|
23
18
|
r"""Address of the token"""
|
|
24
19
|
price: str
|
|
@@ -27,19 +22,15 @@ class CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict(
|
|
|
27
22
|
r"""Value of the token balance in USD"""
|
|
28
23
|
|
|
29
24
|
|
|
30
|
-
class
|
|
25
|
+
class CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalance(BaseModel):
|
|
31
26
|
amount: str
|
|
32
27
|
r"""Amount of tokens a particular address holds"""
|
|
33
28
|
|
|
34
29
|
decimals: int
|
|
35
30
|
r"""Number of decimals of the token"""
|
|
36
31
|
|
|
37
|
-
token_symbol:
|
|
38
|
-
r"""
|
|
39
|
-
|
|
40
|
-
This class is used to represent the token in the system. Notice individual
|
|
41
|
-
endpoints' documentation where per chain tokens are presented.
|
|
42
|
-
"""
|
|
32
|
+
token_symbol: str
|
|
33
|
+
r"""Symbol of the token."""
|
|
43
34
|
|
|
44
35
|
token_address: str
|
|
45
36
|
r"""Address of the token"""
|
|
@@ -6,14 +6,14 @@ import pydantic
|
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionApyDataTypedDict(
|
|
10
10
|
TypedDict
|
|
11
11
|
):
|
|
12
12
|
apy: str
|
|
13
13
|
net_apy: str
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionApyData(BaseModel):
|
|
17
17
|
apy: str
|
|
18
18
|
|
|
19
19
|
net_apy: Annotated[str, pydantic.Field(alias="netApy")]
|
|
@@ -7,7 +7,7 @@ from pydantic import model_serializer
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionAssetTypedDict(
|
|
11
11
|
TypedDict
|
|
12
12
|
):
|
|
13
13
|
name: str
|
|
@@ -18,7 +18,7 @@ class CompassAPIBackendModelsMorphoReadResponseCheckUserPositionAssetTypedDict(
|
|
|
18
18
|
logo_uri: Nullable[str]
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionAsset(BaseModel):
|
|
22
22
|
name: str
|
|
23
23
|
|
|
24
24
|
symbol: str
|
|
@@ -6,7 +6,7 @@ import pydantic
|
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionMarketStateTypedDict(
|
|
10
10
|
TypedDict
|
|
11
11
|
):
|
|
12
12
|
pnl_usd: str
|
|
@@ -20,7 +20,9 @@ class CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMarketStateTyped
|
|
|
20
20
|
supply_assets_usd: str
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionMarketState(
|
|
24
|
+
BaseModel
|
|
25
|
+
):
|
|
24
26
|
pnl_usd: Annotated[str, pydantic.Field(alias="pnlUsd")]
|
|
25
27
|
|
|
26
28
|
borrow_assets: Annotated[str, pydantic.Field(alias="borrowAssets")]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate import (
|
|
5
|
+
CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState,
|
|
6
|
+
CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultStateTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .vault import Vault, VaultTypedDict
|
|
9
|
+
from compass_api_sdk.types import BaseModel
|
|
10
|
+
from typing_extensions import TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultPositionTypedDict(
|
|
14
|
+
TypedDict
|
|
15
|
+
):
|
|
16
|
+
id: str
|
|
17
|
+
state: (
|
|
18
|
+
CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultStateTypedDict
|
|
19
|
+
)
|
|
20
|
+
vault: VaultTypedDict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultPosition(
|
|
24
|
+
BaseModel
|
|
25
|
+
):
|
|
26
|
+
id: str
|
|
27
|
+
|
|
28
|
+
state: CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState
|
|
29
|
+
|
|
30
|
+
vault: Vault
|
|
@@ -6,7 +6,7 @@ import pydantic
|
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultStateTypedDict(
|
|
10
10
|
TypedDict
|
|
11
11
|
):
|
|
12
12
|
pnl_usd: str
|
|
@@ -15,7 +15,7 @@ class CompassAPIBackendModelsMorphoReadResponseCheckUserPositionVaultStateTypedD
|
|
|
15
15
|
shares: str
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseCheckUserPositionVaultState(BaseModel):
|
|
19
19
|
pnl_usd: Annotated[str, pydantic.Field(alias="pnlUsd")]
|
|
20
20
|
|
|
21
21
|
assets: str
|
|
@@ -6,14 +6,14 @@ import pydantic
|
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketApyDataTypedDict(TypedDict):
|
|
10
10
|
borrow_apy: str
|
|
11
11
|
net_borrow_apy: str
|
|
12
12
|
net_supply_apy: str
|
|
13
13
|
supply_apy: str
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketApyData(BaseModel):
|
|
17
17
|
borrow_apy: Annotated[str, pydantic.Field(alias="borrowApy")]
|
|
18
18
|
|
|
19
19
|
net_borrow_apy: Annotated[str, pydantic.Field(alias="netBorrowApy")]
|
|
@@ -7,16 +7,16 @@ from pydantic import model_serializer
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketAssetTypedDict(TypedDict):
|
|
11
11
|
address: str
|
|
12
12
|
symbol: str
|
|
13
13
|
name: str
|
|
14
14
|
decimals: int
|
|
15
|
-
price_usd: str
|
|
15
|
+
price_usd: Nullable[str]
|
|
16
16
|
logo_uri: Nullable[str]
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class
|
|
19
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketAsset(BaseModel):
|
|
20
20
|
address: str
|
|
21
21
|
|
|
22
22
|
symbol: str
|
|
@@ -25,14 +25,14 @@ class CompassAPIBackendModelsMorphoReadResponseGetMarketAsset(BaseModel):
|
|
|
25
25
|
|
|
26
26
|
decimals: int
|
|
27
27
|
|
|
28
|
-
price_usd: Annotated[str, pydantic.Field(alias="priceUsd")]
|
|
28
|
+
price_usd: Annotated[Nullable[str], pydantic.Field(alias="priceUsd")]
|
|
29
29
|
|
|
30
30
|
logo_uri: Annotated[Nullable[str], pydantic.Field(alias="logoURI")]
|
|
31
31
|
|
|
32
32
|
@model_serializer(mode="wrap")
|
|
33
33
|
def serialize_model(self, handler):
|
|
34
34
|
optional_fields = []
|
|
35
|
-
nullable_fields = ["logoURI"]
|
|
35
|
+
nullable_fields = ["priceUsd", "logoURI"]
|
|
36
36
|
null_default_fields = []
|
|
37
37
|
|
|
38
38
|
serialized = handler(self)
|
|
@@ -13,7 +13,9 @@ from pydantic import model_serializer
|
|
|
13
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketMarketStateTypedDict(
|
|
17
|
+
TypedDict
|
|
18
|
+
):
|
|
17
19
|
utilization: str
|
|
18
20
|
borrow_assets: str
|
|
19
21
|
liquidity_assets: str
|
|
@@ -25,7 +27,7 @@ class CompassAPIBackendModelsMorphoReadResponseGetMarketMarketStateTypedDict(Typ
|
|
|
25
27
|
total_liquidity_usd: NotRequired[Nullable[str]]
|
|
26
28
|
|
|
27
29
|
|
|
28
|
-
class
|
|
30
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketMarketState(BaseModel):
|
|
29
31
|
utilization: str
|
|
30
32
|
|
|
31
33
|
borrow_assets: Annotated[str, pydantic.Field(alias="borrowAssets")]
|
|
@@ -5,14 +5,14 @@ from compass_api_sdk.types import BaseModel
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketsAssetTypedDict(TypedDict):
|
|
9
9
|
address: str
|
|
10
10
|
symbol: str
|
|
11
11
|
name: str
|
|
12
12
|
decimals: int
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketsAsset(BaseModel):
|
|
16
16
|
address: str
|
|
17
17
|
|
|
18
18
|
symbol: str
|
|
@@ -7,7 +7,7 @@ from pydantic import model_serializer
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketsMarketStateTypedDict(
|
|
11
11
|
TypedDict
|
|
12
12
|
):
|
|
13
13
|
borrow_apy: float
|
|
@@ -20,7 +20,7 @@ class CompassAPIBackendModelsMorphoReadResponseGetMarketsMarketStateTypedDict(
|
|
|
20
20
|
utilization: float
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetMarketsMarketState(BaseModel):
|
|
24
24
|
borrow_apy: Annotated[float, pydantic.Field(alias="borrowApy")]
|
|
25
25
|
|
|
26
26
|
borrow_assets: Annotated[int, pydantic.Field(alias="borrowAssets")]
|
|
@@ -6,14 +6,14 @@ from compass_api_sdk.types import BaseModel
|
|
|
6
6
|
from typing_extensions import TypedDict
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetVaultsAssetTypedDict(TypedDict):
|
|
10
10
|
symbol: str
|
|
11
11
|
address: str
|
|
12
12
|
decimals: int
|
|
13
13
|
chain: ChainInfoTypedDict
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class CompassAPIBackendV1ModelsMorphoReadResponseGetVaultsAsset(BaseModel):
|
|
17
17
|
symbol: str
|
|
18
18
|
|
|
19
19
|
address: str
|