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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .interestratemode import InterestRateMode
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -29,12 +28,8 @@ r"""The amount of the asset to borrow"""
|
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
class AaveBorrowParamsTypedDict(TypedDict):
|
|
32
|
-
token:
|
|
33
|
-
r"""
|
|
34
|
-
|
|
35
|
-
This class is used to represent the token in the system. Notice individual
|
|
36
|
-
endpoints' documentation where per chain tokens are presented.
|
|
37
|
-
"""
|
|
31
|
+
token: str
|
|
32
|
+
r"""The symbol or address of the underlying asset to borrow.."""
|
|
38
33
|
amount: AaveBorrowParamsAmountTypedDict
|
|
39
34
|
r"""The amount of the asset to borrow"""
|
|
40
35
|
interest_rate_mode: InterestRateMode
|
|
@@ -48,12 +43,8 @@ class AaveBorrowParamsTypedDict(TypedDict):
|
|
|
48
43
|
|
|
49
44
|
|
|
50
45
|
class AaveBorrowParams(BaseModel):
|
|
51
|
-
token:
|
|
52
|
-
r"""
|
|
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
|
-
"""
|
|
46
|
+
token: str
|
|
47
|
+
r"""The symbol or address of the underlying asset to borrow.."""
|
|
57
48
|
|
|
58
49
|
amount: AaveBorrowParamsAmount
|
|
59
50
|
r"""The amount of the asset to borrow"""
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .interestratemode import InterestRateMode
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -36,12 +35,8 @@ class AaveBorrowRequestChain(str, Enum):
|
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
class AaveBorrowRequestTypedDict(TypedDict):
|
|
39
|
-
token:
|
|
40
|
-
r"""
|
|
41
|
-
|
|
42
|
-
This class is used to represent the token in the system. Notice individual
|
|
43
|
-
endpoints' documentation where per chain tokens are presented.
|
|
44
|
-
"""
|
|
38
|
+
token: str
|
|
39
|
+
r"""The symbol or address of the underlying asset to borrow.."""
|
|
45
40
|
amount: AaveBorrowRequestAmountTypedDict
|
|
46
41
|
r"""The amount of the asset to borrow"""
|
|
47
42
|
interest_rate_mode: InterestRateMode
|
|
@@ -55,15 +50,13 @@ class AaveBorrowRequestTypedDict(TypedDict):
|
|
|
55
50
|
action_type: Literal["AAVE_BORROW"]
|
|
56
51
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
57
52
|
r"""The address on behalf of whom the supply is made"""
|
|
53
|
+
estimate_gas: NotRequired[bool]
|
|
54
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class AaveBorrowRequest(BaseModel):
|
|
61
|
-
token:
|
|
62
|
-
r"""
|
|
63
|
-
|
|
64
|
-
This class is used to represent the token in the system. Notice individual
|
|
65
|
-
endpoints' documentation where per chain tokens are presented.
|
|
66
|
-
"""
|
|
58
|
+
token: str
|
|
59
|
+
r"""The symbol or address of the underlying asset to borrow.."""
|
|
67
60
|
|
|
68
61
|
amount: AaveBorrowRequestAmount
|
|
69
62
|
r"""The amount of the asset to borrow"""
|
|
@@ -90,9 +83,12 @@ class AaveBorrowRequest(BaseModel):
|
|
|
90
83
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
91
84
|
r"""The address on behalf of whom the supply is made"""
|
|
92
85
|
|
|
86
|
+
estimate_gas: Optional[bool] = None
|
|
87
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
88
|
+
|
|
93
89
|
@model_serializer(mode="wrap")
|
|
94
90
|
def serialize_model(self, handler):
|
|
95
|
-
optional_fields = ["action_type", "on_behalf_of"]
|
|
91
|
+
optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
|
|
96
92
|
nullable_fields = ["on_behalf_of"]
|
|
97
93
|
null_default_fields = []
|
|
98
94
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .borrow import Borrow, BorrowTypedDict
|
|
5
5
|
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
6
|
-
from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
|
|
7
6
|
from .repay import Repay, RepayTypedDict
|
|
8
7
|
from .supply import Supply, SupplyTypedDict
|
|
9
8
|
from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
|
|
10
9
|
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
10
|
+
from .withdraw import Withdraw, WithdrawTypedDict
|
|
11
11
|
from compass_api_sdk.types import BaseModel
|
|
12
12
|
from compass_api_sdk.utils import get_discriminator
|
|
13
13
|
from pydantic import Discriminator, Tag
|
|
@@ -18,7 +18,7 @@ from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
|
18
18
|
AaveHistoricalTransactionsResponseTransactionTypedDict = TypeAliasType(
|
|
19
19
|
"AaveHistoricalTransactionsResponseTransactionTypedDict",
|
|
20
20
|
Union[
|
|
21
|
-
|
|
21
|
+
WithdrawTypedDict,
|
|
22
22
|
RepayTypedDict,
|
|
23
23
|
SupplyTypedDict,
|
|
24
24
|
UsageAsCollateralTypedDict,
|
|
@@ -33,7 +33,7 @@ AaveHistoricalTransactionsResponseTransaction = Annotated[
|
|
|
33
33
|
Union[
|
|
34
34
|
Annotated[Borrow, Tag("Borrow")],
|
|
35
35
|
Annotated[LiquidationCall, Tag("LiquidationCall")],
|
|
36
|
-
Annotated[
|
|
36
|
+
Annotated[Withdraw, Tag("Withdraw")],
|
|
37
37
|
Annotated[Repay, Tag("Repay")],
|
|
38
38
|
Annotated[Supply, Tag("Supply")],
|
|
39
39
|
Annotated[SwapBorrowRate, Tag("SwapBorrowRate")],
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -64,18 +63,10 @@ class AaveLoopRequestTypedDict(TypedDict):
|
|
|
64
63
|
chain: AaveLoopRequestChain
|
|
65
64
|
sender: str
|
|
66
65
|
r"""The address of the transaction sender."""
|
|
67
|
-
collateral_token:
|
|
68
|
-
r"""
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
endpoints' documentation where per chain tokens are presented.
|
|
72
|
-
"""
|
|
73
|
-
borrow_token: TokenEnum
|
|
74
|
-
r"""A class representing the token.
|
|
75
|
-
|
|
76
|
-
This class is used to represent the token in the system. Notice individual
|
|
77
|
-
endpoints' documentation where per chain tokens are presented.
|
|
78
|
-
"""
|
|
66
|
+
collateral_token: str
|
|
67
|
+
r"""Symbol or address of token to supply to Aave.."""
|
|
68
|
+
borrow_token: str
|
|
69
|
+
r"""Symbol or address of token to borrow from Aave.."""
|
|
79
70
|
initial_collateral_amount: InitialCollateralAmountTypedDict
|
|
80
71
|
r"""Amount of collateral token to supply to Aave"""
|
|
81
72
|
multiplier: MultiplierTypedDict
|
|
@@ -84,10 +75,16 @@ class AaveLoopRequestTypedDict(TypedDict):
|
|
|
84
75
|
r"""Maximum allowed slippage for token swaps in percentage"""
|
|
85
76
|
loan_to_value: LoanToValueTypedDict
|
|
86
77
|
r"""Loan To Value percentage of the loop"""
|
|
78
|
+
estimate_gas: NotRequired[bool]
|
|
79
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
87
80
|
signed_authorization: NotRequired[Nullable[SignedAuthorizationTypedDict]]
|
|
88
81
|
r"""EIP-7702 authorization. Required when `is_account_abstraction` is False."""
|
|
82
|
+
emode_category: NotRequired[Nullable[int]]
|
|
83
|
+
r"""Aave E-Mode category ID to set before executing the loop. If not provided, E-Mode will not be changed."""
|
|
89
84
|
is_account_abstraction: NotRequired[bool]
|
|
90
85
|
r"""Whether to use account abstraction for the transaction."""
|
|
86
|
+
account_owner: NotRequired[Nullable[str]]
|
|
87
|
+
r"""The owner address of the smart account (Safe). Required when `is_account_abstraction` is True. This address will be used as the 'from' address when building the execTransaction call."""
|
|
91
88
|
|
|
92
89
|
|
|
93
90
|
class AaveLoopRequest(BaseModel):
|
|
@@ -98,19 +95,11 @@ class AaveLoopRequest(BaseModel):
|
|
|
98
95
|
sender: str
|
|
99
96
|
r"""The address of the transaction sender."""
|
|
100
97
|
|
|
101
|
-
collateral_token:
|
|
102
|
-
r"""
|
|
98
|
+
collateral_token: str
|
|
99
|
+
r"""Symbol or address of token to supply to Aave.."""
|
|
103
100
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"""
|
|
107
|
-
|
|
108
|
-
borrow_token: TokenEnum
|
|
109
|
-
r"""A class representing the token.
|
|
110
|
-
|
|
111
|
-
This class is used to represent the token in the system. Notice individual
|
|
112
|
-
endpoints' documentation where per chain tokens are presented.
|
|
113
|
-
"""
|
|
101
|
+
borrow_token: str
|
|
102
|
+
r"""Symbol or address of token to borrow from Aave.."""
|
|
114
103
|
|
|
115
104
|
initial_collateral_amount: InitialCollateralAmount
|
|
116
105
|
r"""Amount of collateral token to supply to Aave"""
|
|
@@ -124,16 +113,31 @@ class AaveLoopRequest(BaseModel):
|
|
|
124
113
|
loan_to_value: LoanToValue
|
|
125
114
|
r"""Loan To Value percentage of the loop"""
|
|
126
115
|
|
|
116
|
+
estimate_gas: Optional[bool] = None
|
|
117
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
118
|
+
|
|
127
119
|
signed_authorization: OptionalNullable[SignedAuthorization] = UNSET
|
|
128
120
|
r"""EIP-7702 authorization. Required when `is_account_abstraction` is False."""
|
|
129
121
|
|
|
130
|
-
|
|
122
|
+
emode_category: OptionalNullable[int] = UNSET
|
|
123
|
+
r"""Aave E-Mode category ID to set before executing the loop. If not provided, E-Mode will not be changed."""
|
|
124
|
+
|
|
125
|
+
is_account_abstraction: Optional[bool] = None
|
|
131
126
|
r"""Whether to use account abstraction for the transaction."""
|
|
132
127
|
|
|
128
|
+
account_owner: OptionalNullable[str] = UNSET
|
|
129
|
+
r"""The owner address of the smart account (Safe). Required when `is_account_abstraction` is True. This address will be used as the 'from' address when building the execTransaction call."""
|
|
130
|
+
|
|
133
131
|
@model_serializer(mode="wrap")
|
|
134
132
|
def serialize_model(self, handler):
|
|
135
|
-
optional_fields = [
|
|
136
|
-
|
|
133
|
+
optional_fields = [
|
|
134
|
+
"estimate_gas",
|
|
135
|
+
"signed_authorization",
|
|
136
|
+
"emode_category",
|
|
137
|
+
"is_account_abstraction",
|
|
138
|
+
"account_owner",
|
|
139
|
+
]
|
|
140
|
+
nullable_fields = ["signed_authorization", "emode_category", "account_owner"]
|
|
137
141
|
null_default_fields = []
|
|
138
142
|
|
|
139
143
|
serialized = handler(self)
|
|
@@ -0,0 +1,49 @@
|
|
|
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 compass_api_sdk.utils import validate_const
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic.functional_validators import AfterValidator
|
|
8
|
+
from typing import Literal, Optional
|
|
9
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AavePositionTypedDict(TypedDict):
|
|
13
|
+
id: str
|
|
14
|
+
r"""Base64-encoded position identifier."""
|
|
15
|
+
amount_in_underlying_token: str
|
|
16
|
+
r"""The user's position value denominated in the supplied asset."""
|
|
17
|
+
token_name: str
|
|
18
|
+
r"""Symbol of the Aave reserve asset (e.g., USDC)."""
|
|
19
|
+
type: Literal["AAVE"]
|
|
20
|
+
r"""The market type discriminator."""
|
|
21
|
+
vault_address: Literal["None"]
|
|
22
|
+
vault_name: Literal["None"]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AavePosition(BaseModel):
|
|
26
|
+
id: str
|
|
27
|
+
r"""Base64-encoded position identifier."""
|
|
28
|
+
|
|
29
|
+
amount_in_underlying_token: str
|
|
30
|
+
r"""The user's position value denominated in the supplied asset."""
|
|
31
|
+
|
|
32
|
+
token_name: str
|
|
33
|
+
r"""Symbol of the Aave reserve asset (e.g., USDC)."""
|
|
34
|
+
|
|
35
|
+
TYPE: Annotated[
|
|
36
|
+
Annotated[Literal["AAVE"], AfterValidator(validate_const("AAVE"))],
|
|
37
|
+
pydantic.Field(alias="type"),
|
|
38
|
+
] = "AAVE"
|
|
39
|
+
r"""The market type discriminator."""
|
|
40
|
+
|
|
41
|
+
VAULT_ADDRESS: Annotated[
|
|
42
|
+
Annotated[Optional[Literal["None"]], AfterValidator(validate_const("None"))],
|
|
43
|
+
pydantic.Field(alias="vault_address"),
|
|
44
|
+
] = "None"
|
|
45
|
+
|
|
46
|
+
VAULT_NAME: Annotated[
|
|
47
|
+
Annotated[Optional[Literal["None"]], AfterValidator(validate_const("None"))],
|
|
48
|
+
pydantic.Field(alias="vault_name"),
|
|
49
|
+
] = "None"
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .interestratemode import InterestRateMode
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -29,12 +28,8 @@ r"""The amount of the asset to repay"""
|
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
class AaveRepayParamsTypedDict(TypedDict):
|
|
32
|
-
token:
|
|
33
|
-
r"""
|
|
34
|
-
|
|
35
|
-
This class is used to represent the token in the system. Notice individual
|
|
36
|
-
endpoints' documentation where per chain tokens are presented.
|
|
37
|
-
"""
|
|
31
|
+
token: str
|
|
32
|
+
r"""The symbol of the underlying asset to repay.."""
|
|
38
33
|
amount: AaveRepayParamsAmountTypedDict
|
|
39
34
|
r"""The amount of the asset to repay"""
|
|
40
35
|
interest_rate_mode: InterestRateMode
|
|
@@ -48,12 +43,8 @@ class AaveRepayParamsTypedDict(TypedDict):
|
|
|
48
43
|
|
|
49
44
|
|
|
50
45
|
class AaveRepayParams(BaseModel):
|
|
51
|
-
token:
|
|
52
|
-
r"""
|
|
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
|
-
"""
|
|
46
|
+
token: str
|
|
47
|
+
r"""The symbol of the underlying asset to repay.."""
|
|
57
48
|
|
|
58
49
|
amount: AaveRepayParamsAmount
|
|
59
50
|
r"""The amount of the asset to repay"""
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .interestratemode import InterestRateMode
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -36,12 +35,8 @@ class AaveRepayRequestChain(str, Enum):
|
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
class AaveRepayRequestTypedDict(TypedDict):
|
|
39
|
-
token:
|
|
40
|
-
r"""
|
|
41
|
-
|
|
42
|
-
This class is used to represent the token in the system. Notice individual
|
|
43
|
-
endpoints' documentation where per chain tokens are presented.
|
|
44
|
-
"""
|
|
38
|
+
token: str
|
|
39
|
+
r"""The symbol of the underlying asset to repay.."""
|
|
45
40
|
amount: AaveRepayRequestAmountTypedDict
|
|
46
41
|
r"""The amount of the asset to repay"""
|
|
47
42
|
interest_rate_mode: InterestRateMode
|
|
@@ -55,15 +50,13 @@ class AaveRepayRequestTypedDict(TypedDict):
|
|
|
55
50
|
action_type: Literal["AAVE_REPAY"]
|
|
56
51
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
57
52
|
r"""The address on behalf of whom the supply is made"""
|
|
53
|
+
estimate_gas: NotRequired[bool]
|
|
54
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class AaveRepayRequest(BaseModel):
|
|
61
|
-
token:
|
|
62
|
-
r"""
|
|
63
|
-
|
|
64
|
-
This class is used to represent the token in the system. Notice individual
|
|
65
|
-
endpoints' documentation where per chain tokens are presented.
|
|
66
|
-
"""
|
|
58
|
+
token: str
|
|
59
|
+
r"""The symbol of the underlying asset to repay.."""
|
|
67
60
|
|
|
68
61
|
amount: AaveRepayRequestAmount
|
|
69
62
|
r"""The amount of the asset to repay"""
|
|
@@ -90,9 +83,12 @@ class AaveRepayRequest(BaseModel):
|
|
|
90
83
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
91
84
|
r"""The address on behalf of whom the supply is made"""
|
|
92
85
|
|
|
86
|
+
estimate_gas: Optional[bool] = None
|
|
87
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
88
|
+
|
|
93
89
|
@model_serializer(mode="wrap")
|
|
94
90
|
def serialize_model(self, handler):
|
|
95
|
-
optional_fields = ["action_type", "on_behalf_of"]
|
|
91
|
+
optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
|
|
96
92
|
nullable_fields = ["on_behalf_of"]
|
|
97
93
|
null_default_fields = []
|
|
98
94
|
|
|
@@ -0,0 +1,28 @@
|
|
|
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 compass_api_sdk.utils import validate_const
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic.functional_validators import AfterValidator
|
|
8
|
+
from typing import Literal, Optional
|
|
9
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AaveSetUserEModeParamsTypedDict(TypedDict):
|
|
13
|
+
category_id: int
|
|
14
|
+
r"""The eMode category ID to set for the user. 0 = no eMode, 1+ = specific eMode category."""
|
|
15
|
+
action_type: Literal["AAVE_SET_USER_EMODE"]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class AaveSetUserEModeParams(BaseModel):
|
|
19
|
+
category_id: int
|
|
20
|
+
r"""The eMode category ID to set for the user. 0 = no eMode, 1+ = specific eMode category."""
|
|
21
|
+
|
|
22
|
+
ACTION_TYPE: Annotated[
|
|
23
|
+
Annotated[
|
|
24
|
+
Optional[Literal["AAVE_SET_USER_EMODE"]],
|
|
25
|
+
AfterValidator(validate_const("AAVE_SET_USER_EMODE")),
|
|
26
|
+
],
|
|
27
|
+
pydantic.Field(alias="action_type"),
|
|
28
|
+
] = "AAVE_SET_USER_EMODE"
|
|
@@ -0,0 +1,48 @@
|
|
|
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 compass_api_sdk.utils import validate_const
|
|
6
|
+
from enum import Enum
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AaveSetUserEModeRequestChain(str, Enum):
|
|
14
|
+
ARBITRUM = "arbitrum"
|
|
15
|
+
BASE = "base"
|
|
16
|
+
ETHEREUM = "ethereum"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AaveSetUserEModeRequestTypedDict(TypedDict):
|
|
20
|
+
category_id: int
|
|
21
|
+
r"""The eMode category ID to set for the user. 0 = no eMode, 1+ = specific eMode category."""
|
|
22
|
+
chain: AaveSetUserEModeRequestChain
|
|
23
|
+
sender: str
|
|
24
|
+
r"""The address of the transaction sender."""
|
|
25
|
+
action_type: Literal["AAVE_SET_USER_EMODE"]
|
|
26
|
+
estimate_gas: NotRequired[bool]
|
|
27
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AaveSetUserEModeRequest(BaseModel):
|
|
31
|
+
category_id: int
|
|
32
|
+
r"""The eMode category ID to set for the user. 0 = no eMode, 1+ = specific eMode category."""
|
|
33
|
+
|
|
34
|
+
chain: AaveSetUserEModeRequestChain
|
|
35
|
+
|
|
36
|
+
sender: str
|
|
37
|
+
r"""The address of the transaction sender."""
|
|
38
|
+
|
|
39
|
+
ACTION_TYPE: Annotated[
|
|
40
|
+
Annotated[
|
|
41
|
+
Optional[Literal["AAVE_SET_USER_EMODE"]],
|
|
42
|
+
AfterValidator(validate_const("AAVE_SET_USER_EMODE")),
|
|
43
|
+
],
|
|
44
|
+
pydantic.Field(alias="action_type"),
|
|
45
|
+
] = "AAVE_SET_USER_EMODE"
|
|
46
|
+
|
|
47
|
+
estimate_gas: Optional[bool] = None
|
|
48
|
+
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,
|
|
@@ -28,12 +27,8 @@ r"""The amount of the asset to supply"""
|
|
|
28
27
|
|
|
29
28
|
|
|
30
29
|
class AaveSupplyParamsTypedDict(TypedDict):
|
|
31
|
-
token:
|
|
32
|
-
r"""
|
|
33
|
-
|
|
34
|
-
This class is used to represent the token in the system. Notice individual
|
|
35
|
-
endpoints' documentation where per chain tokens are presented.
|
|
36
|
-
"""
|
|
30
|
+
token: str
|
|
31
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
37
32
|
amount: AaveSupplyParamsAmountTypedDict
|
|
38
33
|
r"""The amount of the asset to supply"""
|
|
39
34
|
action_type: Literal["AAVE_SUPPLY"]
|
|
@@ -42,12 +37,8 @@ class AaveSupplyParamsTypedDict(TypedDict):
|
|
|
42
37
|
|
|
43
38
|
|
|
44
39
|
class AaveSupplyParams(BaseModel):
|
|
45
|
-
token:
|
|
46
|
-
r"""
|
|
47
|
-
|
|
48
|
-
This class is used to represent the token in the system. Notice individual
|
|
49
|
-
endpoints' documentation where per chain tokens are presented.
|
|
50
|
-
"""
|
|
40
|
+
token: str
|
|
41
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
51
42
|
|
|
52
43
|
amount: AaveSupplyParamsAmount
|
|
53
44
|
r"""The amount of the asset to supply"""
|
|
@@ -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,
|
|
@@ -35,12 +34,8 @@ class AaveSupplyRequestChain(str, Enum):
|
|
|
35
34
|
|
|
36
35
|
|
|
37
36
|
class AaveSupplyRequestTypedDict(TypedDict):
|
|
38
|
-
token:
|
|
39
|
-
r"""
|
|
40
|
-
|
|
41
|
-
This class is used to represent the token in the system. Notice individual
|
|
42
|
-
endpoints' documentation where per chain tokens are presented.
|
|
43
|
-
"""
|
|
37
|
+
token: str
|
|
38
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
44
39
|
amount: AaveSupplyRequestAmountTypedDict
|
|
45
40
|
r"""The amount of the asset to supply"""
|
|
46
41
|
chain: AaveSupplyRequestChain
|
|
@@ -49,15 +44,13 @@ class AaveSupplyRequestTypedDict(TypedDict):
|
|
|
49
44
|
action_type: Literal["AAVE_SUPPLY"]
|
|
50
45
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
51
46
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
47
|
+
estimate_gas: NotRequired[bool]
|
|
48
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
52
49
|
|
|
53
50
|
|
|
54
51
|
class AaveSupplyRequest(BaseModel):
|
|
55
|
-
token:
|
|
56
|
-
r"""
|
|
57
|
-
|
|
58
|
-
This class is used to represent the token in the system. Notice individual
|
|
59
|
-
endpoints' documentation where per chain tokens are presented.
|
|
60
|
-
"""
|
|
52
|
+
token: str
|
|
53
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
61
54
|
|
|
62
55
|
amount: AaveSupplyRequestAmount
|
|
63
56
|
r"""The amount of the asset to supply"""
|
|
@@ -78,9 +71,12 @@ class AaveSupplyRequest(BaseModel):
|
|
|
78
71
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
79
72
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
80
73
|
|
|
74
|
+
estimate_gas: Optional[bool] = None
|
|
75
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
76
|
+
|
|
81
77
|
@model_serializer(mode="wrap")
|
|
82
78
|
def serialize_model(self, handler):
|
|
83
|
-
optional_fields = ["action_type", "on_behalf_of"]
|
|
79
|
+
optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
|
|
84
80
|
nullable_fields = ["on_behalf_of"]
|
|
85
81
|
null_default_fields = []
|
|
86
82
|
|
|
@@ -0,0 +1,27 @@
|
|
|
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 compass_api_sdk.utils import validate_const
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic.functional_validators import AfterValidator
|
|
8
|
+
from typing import Literal
|
|
9
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AaveVenueTypedDict(TypedDict):
|
|
13
|
+
token: str
|
|
14
|
+
r"""The reserve token for the Aave pool you are interacting with."""
|
|
15
|
+
type: Literal["AAVE"]
|
|
16
|
+
r"""The venue type discriminator."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AaveVenue(BaseModel):
|
|
20
|
+
token: str
|
|
21
|
+
r"""The reserve token for the Aave pool you are interacting with."""
|
|
22
|
+
|
|
23
|
+
TYPE: Annotated[
|
|
24
|
+
Annotated[Literal["AAVE"], AfterValidator(validate_const("AAVE"))],
|
|
25
|
+
pydantic.Field(alias="type"),
|
|
26
|
+
] = "AAVE"
|
|
27
|
+
r"""The venue type discriminator."""
|
|
@@ -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
|
|
@@ -21,12 +20,8 @@ r"""The amount of the asset to withdraw"""
|
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
class AaveWithdrawParamsTypedDict(TypedDict):
|
|
24
|
-
token:
|
|
25
|
-
r"""
|
|
26
|
-
|
|
27
|
-
This class is used to represent the token in the system. Notice individual
|
|
28
|
-
endpoints' documentation where per chain tokens are presented.
|
|
29
|
-
"""
|
|
23
|
+
token: str
|
|
24
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
30
25
|
amount: AaveWithdrawParamsAmountTypedDict
|
|
31
26
|
r"""The amount of the asset to withdraw"""
|
|
32
27
|
recipient: str
|
|
@@ -35,12 +30,8 @@ class AaveWithdrawParamsTypedDict(TypedDict):
|
|
|
35
30
|
|
|
36
31
|
|
|
37
32
|
class AaveWithdrawParams(BaseModel):
|
|
38
|
-
token:
|
|
39
|
-
r"""
|
|
40
|
-
|
|
41
|
-
This class is used to represent the token in the system. Notice individual
|
|
42
|
-
endpoints' documentation where per chain tokens are presented.
|
|
43
|
-
"""
|
|
33
|
+
token: str
|
|
34
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
44
35
|
|
|
45
36
|
amount: AaveWithdrawParamsAmount
|
|
46
37
|
r"""The amount of the asset to withdraw"""
|