compass_api_sdk 0.9.50__py3-none-any.whl → 0.9.52__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.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +314 -260
- compass_api_sdk/aerodrome_slipstream.py +186 -184
- compass_api_sdk/erc_4626_vaults.py +82 -58
- compass_api_sdk/errors/__init__.py +3 -2
- compass_api_sdk/models/__init__.py +1742 -1516
- compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
- compass_api_sdk/models/{chain.py → compass_api_backend_config_chain_chain.py} +4 -4
- compass_api_sdk/models/compass_api_backend_models_aave_read_response_historical_transactions_aavehistoricaltransactionsresponse.py +115 -0
- compass_api_sdk/models/{borrow.py → compass_api_backend_models_aave_read_response_historical_transactions_borrow.py} +4 -2
- compass_api_sdk/models/{liquidationcall.py → compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall.py} +6 -2
- compass_api_sdk/models/{redeemunderlying.py → compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying.py} +6 -2
- compass_api_sdk/models/{repay.py → compass_api_backend_models_aave_read_response_historical_transactions_repay.py} +4 -2
- compass_api_sdk/models/{supply.py → compass_api_backend_models_aave_read_response_historical_transactions_supply.py} +4 -2
- compass_api_sdk/models/{swapborrowrate.py → compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate.py} +6 -2
- compass_api_sdk/models/{usageascollateral.py → compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral.py} +6 -2
- compass_api_sdk/models/{aaveborrowrequest.py → compass_api_backend_models_aave_transact_request_borrow_aaveborrowrequest.py} +24 -12
- compass_api_sdk/models/{aaverepayrequest.py → compass_api_backend_models_aave_transact_request_repay_aaverepayrequest.py} +24 -12
- compass_api_sdk/models/{aavesupplyrequest.py → compass_api_backend_models_aave_transact_request_supply_aavesupplyrequest.py} +24 -12
- compass_api_sdk/models/{aavewithdrawrequest.py → compass_api_backend_models_aave_transact_request_withdraw_aavewithdrawrequest.py} +25 -13
- compass_api_sdk/models/{aerodromelppositionsresponse.py → compass_api_backend_models_aerodrome_slipstream_read_response_positions_aerodromelppositionsresponse.py} +6 -2
- compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_increase_aerodromeslipstreamincreaseliquidityprovisionrequest.py +125 -0
- compass_api_sdk/models/{aerodromeslipstreammintliquidityprovisionrequest.py → compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_mint_aerodromeslipstreammintliquidityprovisionrequest.py} +43 -35
- compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_withdraw_aerodromeslipstreamwithdrawliquidityprovisionrequest.py +68 -0
- compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_swap_buy_exactly_aerodromeslipstreambuyexactlyrequest.py +116 -0
- compass_api_sdk/models/{aerodromeslipstreamsellexactlyrequest.py → compass_api_backend_models_aerodrome_slipstream_transact_request_swap_sell_exactly_aerodromeslipstreamsellexactlyrequest.py} +31 -19
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_chains_supportedchaininfo.py +21 -0
- compass_api_sdk/models/{portfolio.py → compass_api_backend_models_generic_read_response_portfolio_portfolio.py} +2 -2
- compass_api_sdk/models/compass_api_backend_models_generic_transact_request_allowance_setallowancerequest.py +139 -0
- compass_api_sdk/models/compass_api_backend_models_generic_transact_request_unwrap_weth_unwrapwethrequest.py +69 -0
- compass_api_sdk/models/compass_api_backend_models_generic_transact_request_wrap_eth_wrapethrequest.py +66 -0
- compass_api_sdk/models/{marketposition.py → compass_api_backend_models_morpho_read_response_check_user_position_marketposition.py} +6 -2
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_check_user_position_morphocheckuserpositionresponse.py +48 -0
- compass_api_sdk/models/{vault.py → compass_api_backend_models_morpho_read_response_check_user_position_vault.py} +4 -2
- compass_api_sdk/models/{vaultposition.py → compass_api_backend_models_morpho_read_response_check_user_position_vaultposition.py} +12 -5
- compass_api_sdk/models/{morphogetmarketresponse.py → compass_api_backend_models_morpho_read_response_get_market_morphogetmarketresponse.py} +6 -2
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_morphogetmarketsresponse.py +26 -0
- compass_api_sdk/models/{morphomarket.py → compass_api_backend_models_morpho_read_response_get_markets_morphomarket.py} +4 -2
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_morphogetvaultsresponse.py +24 -0
- compass_api_sdk/models/{morphovault.py → compass_api_backend_models_morpho_read_response_get_vaults_morphovault.py} +2 -2
- compass_api_sdk/models/{morphoborrowrequest.py → compass_api_backend_models_morpho_transact_request_borrow_morphoborrowrequest.py} +22 -13
- compass_api_sdk/models/{morphodepositrequest.py → compass_api_backend_models_morpho_transact_request_deposit_morphodepositrequest.py} +26 -13
- compass_api_sdk/models/{morphorepayrequest.py → compass_api_backend_models_morpho_transact_request_repay_morphorepayrequest.py} +12 -7
- compass_api_sdk/models/{morphosupplycollateralrequest.py → compass_api_backend_models_morpho_transact_request_supply_collateral_morphosupplycollateralrequest.py} +22 -13
- compass_api_sdk/models/{morphowithdrawcollateralrequest.py → compass_api_backend_models_morpho_transact_request_withdraw_collateral_morphowithdrawcollateralrequest.py} +22 -13
- compass_api_sdk/models/{morphowithdrawrequest.py → compass_api_backend_models_morpho_transact_request_withdraw_morphowithdrawrequest.py} +18 -7
- compass_api_sdk/models/{multicallauthorizationrequest.py → compass_api_backend_models_multicall_read_request_get_authorization_multicallauthorizationrequest.py} +17 -7
- compass_api_sdk/models/{aavelooprequest.py → compass_api_backend_models_multicall_transact_request_aave_loop_request_aavelooprequest.py} +67 -13
- compass_api_sdk/models/compass_api_backend_models_multicall_transact_request_multicall_execution_request_multicallexecuterequest.py +92 -0
- compass_api_sdk/models/{useroperation.py → compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation.py} +40 -42
- compass_api_sdk/models/{pendlegetmarketresponse.py → compass_api_backend_models_pendle_read_response_market_pendlegetmarketresponse.py} +4 -2
- compass_api_sdk/models/compass_api_backend_models_pendle_read_response_markets_pendlelistmarketsresponse.py +24 -0
- compass_api_sdk/models/{pendlemarket.py → compass_api_backend_models_pendle_read_response_markets_pendlemarket.py} +2 -2
- compass_api_sdk/models/{openposition.py → compass_api_backend_models_pendle_read_response_positions_openposition.py} +4 -2
- compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_pendlelistuserpositionsresponse.py +24 -0
- compass_api_sdk/models/{position.py → compass_api_backend_models_pendle_read_response_positions_position.py} +18 -7
- compass_api_sdk/models/{pendleredeemyieldrequest.py → compass_api_backend_models_pendle_transact_request_redeem_yield_pendleredeemyieldrequest.py} +17 -7
- compass_api_sdk/models/{skybuyrequest.py → compass_api_backend_models_sky_transact_request_buy_skybuyrequest.py} +22 -19
- compass_api_sdk/models/{skydepositrequest.py → compass_api_backend_models_sky_transact_request_deposit_skydepositrequest.py} +26 -15
- compass_api_sdk/models/compass_api_backend_models_sky_transact_request_sell_skysellrequest.py +70 -0
- compass_api_sdk/models/{skywithdrawrequest.py → compass_api_backend_models_sky_transact_request_withdraw_skywithdrawrequest.py} +17 -10
- compass_api_sdk/models/compass_api_backend_models_smart_account_transact_request_user_operations_batcheduseroperationsrequest.py +49 -0
- compass_api_sdk/models/compass_api_backend_models_swap_transact_request_odos_odosswaprequest.py +108 -0
- compass_api_sdk/models/compass_api_backend_models_token_transact_request_transfer_tokentransferrequest.py +98 -0
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_increase_uniswapincreaseliquidityprovisionrequest.py +129 -0
- compass_api_sdk/models/{uniswapmintliquidityprovisionrequest.py → compass_api_backend_models_uniswap_transact_liquidity_provision_request_mint_uniswapmintliquidityprovisionrequest.py} +49 -31
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_withdraw_uniswapwithdrawliquidityprovisionrequest.py +68 -0
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_buy_exactly_uniswapbuyexactlyrequest.py +123 -0
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_sell_exactly_uniswapsellexactlyrequest.py +123 -0
- compass_api_sdk/models/{vaultgetvaultresponse.py → compass_api_backend_models_vaults_read_response_vault_vaultgetvaultresponse.py} +4 -2
- compass_api_sdk/models/compass_api_backend_models_vaults_transact_request_deposit_vaultdepositrequest.py +110 -0
- compass_api_sdk/models/compass_api_backend_models_vaults_transact_request_withdraw_vaultwithdrawrequest.py +96 -0
- compass_api_sdk/models/details.py +44 -7
- compass_api_sdk/models/movement10percent.py +65 -10
- compass_api_sdk/models/pendlemanageliquidityparams.py +81 -0
- compass_api_sdk/models/pendlemanageliquidityrequest.py +95 -0
- compass_api_sdk/models/pendletradeptparams.py +81 -0
- compass_api_sdk/models/pendletradeptrequest.py +95 -0
- compass_api_sdk/models/pendletradeytparams.py +81 -0
- compass_api_sdk/models/pendletradeytrequest.py +95 -0
- compass_api_sdk/models/pendletxresponse.py +45 -0
- compass_api_sdk/models/token_enum.py +17 -0
- compass_api_sdk/models/{tokentransferrequest.py → tokentransferparams.py} +16 -27
- compass_api_sdk/models/transactionresponse.py +40 -0
- compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -24
- compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +45 -0
- compass_api_sdk/models/uniswapsellexactlyparams.py +43 -40
- compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +45 -0
- compass_api_sdk/models/userstate.py +3 -3
- compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py} +9 -13
- compass_api_sdk/models/{aave_avg_rateop.py → v1_aave_avg_rateop.py} +32 -19
- compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +9 -13
- compass_api_sdk/models/{aave_liquidity_changeop.py → v1_aave_liquidity_changeop.py} +30 -17
- compass_api_sdk/models/{aave_rateop.py → v1_aave_rateop.py} +32 -19
- compass_api_sdk/models/{aave_reserve_overviewop.py → v1_aave_reserve_overviewop.py} +32 -19
- compass_api_sdk/models/{aave_std_rateop.py → v1_aave_std_rateop.py} +32 -19
- compass_api_sdk/models/{aave_token_priceop.py → v1_aave_token_priceop.py} +32 -19
- compass_api_sdk/models/{aave_user_position_per_tokenop.py → v1_aave_user_position_per_tokenop.py} +32 -19
- compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +9 -13
- compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_aerodrome_slipstream_liquidity_provision_positionsop.py} +7 -13
- compass_api_sdk/models/{aerodrome_slipstream_pool_priceop.py → v1_aerodrome_slipstream_pool_priceop.py} +53 -25
- compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +24 -25
- compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +7 -13
- compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +9 -13
- compass_api_sdk/models/{generic_supported_chainsop.py → v1_generic_supported_chainsop.py} +2 -2
- compass_api_sdk/models/v1_generic_supported_tokensop.py +24 -0
- compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +9 -8
- compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +9 -8
- compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +34 -13
- compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +9 -8
- compass_api_sdk/models/{morpho_vaultop.py → v1_morpho_vaultop.py} +9 -13
- compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +22 -11
- compass_api_sdk/models/{pendle_marketop.py → v1_pendle_marketop.py} +9 -13
- compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
- compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
- compass_api_sdk/models/{sky_positionop.py → v1_sky_positionop.py} +14 -15
- compass_api_sdk/models/{token_addressop.py → v1_token_addressop.py} +30 -17
- compass_api_sdk/models/{token_balanceop.py → v1_token_balanceop.py} +14 -18
- compass_api_sdk/models/{token_priceop.py → v1_token_priceop.py} +14 -18
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +24 -0
- compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +9 -13
- compass_api_sdk/models/{aerodrome_slipstream_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +9 -13
- compass_api_sdk/models/{uniswap_pool_priceop.py → v1_uniswap_pool_priceop.py} +59 -29
- compass_api_sdk/models/{uniswap_quote_buy_exactlyop.py → v1_uniswap_quote_buy_exactlyop.py} +65 -35
- compass_api_sdk/models/{uniswap_quote_sell_exactlyop.py → v1_uniswap_quote_sell_exactlyop.py} +65 -35
- compass_api_sdk/models/{vaults_vaultop.py → v1_vaults_vaultop.py} +9 -13
- compass_api_sdk/models/{vaultdepositrequest.py → vaultdepositparams.py} +7 -20
- compass_api_sdk/models/{vaultwithdrawrequest.py → vaultwithdrawparams.py} +2 -13
- compass_api_sdk/morpho.py +328 -228
- compass_api_sdk/pendle.py +307 -1081
- compass_api_sdk/sky.py +186 -94
- compass_api_sdk/smart_account.py +46 -18
- compass_api_sdk/swap.py +40 -26
- compass_api_sdk/token_sdk.py +76 -66
- compass_api_sdk/transaction_bundler.py +126 -76
- compass_api_sdk/uniswap_v3.py +302 -278
- compass_api_sdk/universal.py +189 -329
- compass_api_sdk/utils/__init__.py +3 -2
- {compass_api_sdk-0.9.50.dist-info → compass_api_sdk-0.9.52.dist-info}/METADATA +83 -88
- compass_api_sdk-0.9.52.dist-info/RECORD +263 -0
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -65
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +0 -104
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +0 -123
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +0 -64
- compass_api_sdk/models/batcheduseroperationsrequest.py +0 -32
- compass_api_sdk/models/generic_supported_tokensop.py +0 -28
- compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
- compass_api_sdk/models/image.py +0 -15
- compass_api_sdk/models/morphocheckuserpositionresponse.py +0 -32
- compass_api_sdk/models/morphogetmarketsresponse.py +0 -17
- compass_api_sdk/models/morphogetvaultsresponse.py +0 -17
- compass_api_sdk/models/multicallexecuterequest.py +0 -36
- compass_api_sdk/models/odosswaprequest.py +0 -86
- compass_api_sdk/models/pendle_marketsop.py +0 -28
- compass_api_sdk/models/pendle_quoteop.py +0 -128
- compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
- compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
- compass_api_sdk/models/pendlebuyptparams.py +0 -48
- compass_api_sdk/models/pendlebuyptrequest.py +0 -59
- compass_api_sdk/models/pendlebuyytparams.py +0 -48
- compass_api_sdk/models/pendlebuyytrequest.py +0 -59
- compass_api_sdk/models/pendlegetquoteresponse.py +0 -15
- compass_api_sdk/models/pendlelistmarketsresponse.py +0 -17
- compass_api_sdk/models/pendlelistuserpositionsresponse.py +0 -17
- compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
- compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
- compass_api_sdk/models/pendlesellptparams.py +0 -48
- compass_api_sdk/models/pendlesellptrequest.py +0 -61
- compass_api_sdk/models/pendlesellytparams.py +0 -48
- compass_api_sdk/models/pendlesellytrequest.py +0 -61
- compass_api_sdk/models/setallowancerequest.py +0 -109
- compass_api_sdk/models/skysellrequest.py +0 -64
- compass_api_sdk/models/supportedchaininfo.py +0 -19
- compass_api_sdk/models/txresponse.py +0 -27
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +0 -112
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +0 -111
- compass_api_sdk/models/uniswapsellexactlyrequest.py +0 -104
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +0 -63
- compass_api_sdk/models/unwrapwethrequest.py +0 -53
- compass_api_sdk/models/wrapethrequest.py +0 -52
- compass_api_sdk-0.9.50.dist-info/RECORD +0 -266
- {compass_api_sdk-0.9.50.dist-info → compass_api_sdk-0.9.52.dist-info}/WHEEL +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import BaseModel
|
|
4
|
+
from compass_api_sdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
5
|
+
from pydantic import model_serializer
|
|
5
6
|
from typing_extensions import TypedDict
|
|
6
7
|
|
|
7
8
|
|
|
@@ -10,7 +11,7 @@ class AaveReserveOverviewResponseTypedDict(TypedDict):
|
|
|
10
11
|
r"""Total tokens supplied in an Aave Reserve in USD. E.G. How much WBTC has been supplied on Aave in USD."""
|
|
11
12
|
total_borrowed: float
|
|
12
13
|
r"""Total tokens borrowed in an Aave Reserve converted to USD. E.G. How much WBTC has been supplied on Aave (in USD)."""
|
|
13
|
-
utilization_ratio: float
|
|
14
|
+
utilization_ratio: Nullable[float]
|
|
14
15
|
r"""Total borrowed divided by total supplied in an Aave Reserve. E.G. How much WBTC has been borrowed on Aaave divided by the amount supplied"""
|
|
15
16
|
|
|
16
17
|
|
|
@@ -21,5 +22,35 @@ class AaveReserveOverviewResponse(BaseModel):
|
|
|
21
22
|
total_borrowed: float
|
|
22
23
|
r"""Total tokens borrowed in an Aave Reserve converted to USD. E.G. How much WBTC has been supplied on Aave (in USD)."""
|
|
23
24
|
|
|
24
|
-
utilization_ratio: float
|
|
25
|
+
utilization_ratio: Nullable[float]
|
|
25
26
|
r"""Total borrowed divided by total supplied in an Aave Reserve. E.G. How much WBTC has been borrowed on Aaave divided by the amount supplied"""
|
|
27
|
+
|
|
28
|
+
@model_serializer(mode="wrap")
|
|
29
|
+
def serialize_model(self, handler):
|
|
30
|
+
optional_fields = []
|
|
31
|
+
nullable_fields = ["utilization_ratio"]
|
|
32
|
+
null_default_fields = []
|
|
33
|
+
|
|
34
|
+
serialized = handler(self)
|
|
35
|
+
|
|
36
|
+
m = {}
|
|
37
|
+
|
|
38
|
+
for n, f in type(self).model_fields.items():
|
|
39
|
+
k = f.alias or n
|
|
40
|
+
val = serialized.get(k)
|
|
41
|
+
serialized.pop(k, None)
|
|
42
|
+
|
|
43
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
44
|
+
is_set = (
|
|
45
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
46
|
+
or k in null_default_fields
|
|
47
|
+
) # pylint: disable=no-member
|
|
48
|
+
|
|
49
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
50
|
+
m[k] = val
|
|
51
|
+
elif val != UNSET_SENTINEL and (
|
|
52
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
53
|
+
):
|
|
54
|
+
m[k] = val
|
|
55
|
+
|
|
56
|
+
return m
|
|
@@ -4,9 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
from enum import Enum
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class
|
|
7
|
+
class CompassAPIBackendConfigChainChain(str, Enum):
|
|
8
8
|
r"""The chain to use."""
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
BASE = "base"
|
|
11
|
+
ETHEREUM = "ethereum"
|
|
12
|
+
ARBITRUM = "arbitrum"
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_borrow import (
|
|
5
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsBorrow,
|
|
6
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsBorrowTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall import (
|
|
9
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall,
|
|
10
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCallTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying import (
|
|
13
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRedeemUnderlying,
|
|
14
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRedeemUnderlyingTypedDict,
|
|
15
|
+
)
|
|
16
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_repay import (
|
|
17
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRepay,
|
|
18
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRepayTypedDict,
|
|
19
|
+
)
|
|
20
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_supply import (
|
|
21
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSupply,
|
|
22
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSupplyTypedDict,
|
|
23
|
+
)
|
|
24
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate import (
|
|
25
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate,
|
|
26
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRateTypedDict,
|
|
27
|
+
)
|
|
28
|
+
from .compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral import (
|
|
29
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral,
|
|
30
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateralTypedDict,
|
|
31
|
+
)
|
|
32
|
+
from compass_api_sdk.types import BaseModel
|
|
33
|
+
from compass_api_sdk.utils import get_discriminator
|
|
34
|
+
from pydantic import Discriminator, Tag
|
|
35
|
+
from typing import List, Union
|
|
36
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponseTransactionTypedDict = TypeAliasType(
|
|
40
|
+
"CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponseTransactionTypedDict",
|
|
41
|
+
Union[
|
|
42
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRedeemUnderlyingTypedDict,
|
|
43
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRepayTypedDict,
|
|
44
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSupplyTypedDict,
|
|
45
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateralTypedDict,
|
|
46
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsBorrowTypedDict,
|
|
47
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRateTypedDict,
|
|
48
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCallTypedDict,
|
|
49
|
+
],
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponseTransaction = Annotated[
|
|
54
|
+
Union[
|
|
55
|
+
Annotated[
|
|
56
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsBorrow,
|
|
57
|
+
Tag("Borrow"),
|
|
58
|
+
],
|
|
59
|
+
Annotated[
|
|
60
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall,
|
|
61
|
+
Tag("LiquidationCall"),
|
|
62
|
+
],
|
|
63
|
+
Annotated[
|
|
64
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRedeemUnderlying,
|
|
65
|
+
Tag("RedeemUnderlying"),
|
|
66
|
+
],
|
|
67
|
+
Annotated[
|
|
68
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRepay,
|
|
69
|
+
Tag("Repay"),
|
|
70
|
+
],
|
|
71
|
+
Annotated[
|
|
72
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSupply,
|
|
73
|
+
Tag("Supply"),
|
|
74
|
+
],
|
|
75
|
+
Annotated[
|
|
76
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate,
|
|
77
|
+
Tag("SwapBorrowRate"),
|
|
78
|
+
],
|
|
79
|
+
Annotated[
|
|
80
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral,
|
|
81
|
+
Tag("UsageAsCollateral"),
|
|
82
|
+
],
|
|
83
|
+
],
|
|
84
|
+
Discriminator(lambda m: get_discriminator(m, "action", "action")),
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponseTypedDict(
|
|
89
|
+
TypedDict
|
|
90
|
+
):
|
|
91
|
+
r"""Response model for getting Aave historical transactions."""
|
|
92
|
+
|
|
93
|
+
offset: int
|
|
94
|
+
r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
|
|
95
|
+
limit: int
|
|
96
|
+
r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
|
|
97
|
+
transactions: List[
|
|
98
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponseTransactionTypedDict
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponse(
|
|
103
|
+
BaseModel
|
|
104
|
+
):
|
|
105
|
+
r"""Response model for getting Aave historical transactions."""
|
|
106
|
+
|
|
107
|
+
offset: int
|
|
108
|
+
r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
|
|
109
|
+
|
|
110
|
+
limit: int
|
|
111
|
+
r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
|
|
112
|
+
|
|
113
|
+
transactions: List[
|
|
114
|
+
CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsAaveHistoricalTransactionsResponseTransaction
|
|
115
|
+
]
|
|
@@ -18,7 +18,9 @@ class Borrowratemode(int, Enum):
|
|
|
18
18
|
TWO = 2
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsBorrowTypedDict(
|
|
22
|
+
TypedDict
|
|
23
|
+
):
|
|
22
24
|
id: str
|
|
23
25
|
r"""The id of a historical transaction on aave"""
|
|
24
26
|
timestamp: int
|
|
@@ -37,7 +39,7 @@ class BorrowTypedDict(TypedDict):
|
|
|
37
39
|
r"""The type of transaction"""
|
|
38
40
|
|
|
39
41
|
|
|
40
|
-
class
|
|
42
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsBorrow(BaseModel):
|
|
41
43
|
id: str
|
|
42
44
|
r"""The id of a historical transaction on aave"""
|
|
43
45
|
|
|
@@ -10,7 +10,9 @@ from typing import Literal
|
|
|
10
10
|
from typing_extensions import Annotated, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCallTypedDict(
|
|
14
|
+
TypedDict
|
|
15
|
+
):
|
|
14
16
|
id: str
|
|
15
17
|
r"""The id of a historical transaction on aave"""
|
|
16
18
|
timestamp: int
|
|
@@ -27,7 +29,9 @@ class LiquidationCallTypedDict(TypedDict):
|
|
|
27
29
|
action: Literal["LiquidationCall"]
|
|
28
30
|
|
|
29
31
|
|
|
30
|
-
class
|
|
32
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall(
|
|
33
|
+
BaseModel
|
|
34
|
+
):
|
|
31
35
|
id: str
|
|
32
36
|
r"""The id of a historical transaction on aave"""
|
|
33
37
|
|
|
@@ -7,7 +7,9 @@ import pydantic
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRedeemUnderlyingTypedDict(
|
|
11
|
+
TypedDict
|
|
12
|
+
):
|
|
11
13
|
id: str
|
|
12
14
|
r"""The id of a historical transaction on aave"""
|
|
13
15
|
timestamp: int
|
|
@@ -24,7 +26,9 @@ class RedeemUnderlyingTypedDict(TypedDict):
|
|
|
24
26
|
block: int
|
|
25
27
|
|
|
26
28
|
|
|
27
|
-
class
|
|
29
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRedeemUnderlying(
|
|
30
|
+
BaseModel
|
|
31
|
+
):
|
|
28
32
|
id: str
|
|
29
33
|
r"""The id of a historical transaction on aave"""
|
|
30
34
|
|
|
@@ -10,7 +10,9 @@ from typing import Literal
|
|
|
10
10
|
from typing_extensions import Annotated, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRepayTypedDict(
|
|
14
|
+
TypedDict
|
|
15
|
+
):
|
|
14
16
|
id: str
|
|
15
17
|
r"""The id of a historical transaction on aave"""
|
|
16
18
|
timestamp: int
|
|
@@ -26,7 +28,7 @@ class RepayTypedDict(TypedDict):
|
|
|
26
28
|
r"""The type of transaction"""
|
|
27
29
|
|
|
28
30
|
|
|
29
|
-
class
|
|
31
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsRepay(BaseModel):
|
|
30
32
|
id: str
|
|
31
33
|
r"""The id of a historical transaction on aave"""
|
|
32
34
|
|
|
@@ -10,7 +10,9 @@ from typing import Literal
|
|
|
10
10
|
from typing_extensions import Annotated, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSupplyTypedDict(
|
|
14
|
+
TypedDict
|
|
15
|
+
):
|
|
14
16
|
id: str
|
|
15
17
|
r"""The id of a historical transaction on aave"""
|
|
16
18
|
timestamp: int
|
|
@@ -27,7 +29,7 @@ class SupplyTypedDict(TypedDict):
|
|
|
27
29
|
r"""The type of transaction"""
|
|
28
30
|
|
|
29
31
|
|
|
30
|
-
class
|
|
32
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSupply(BaseModel):
|
|
31
33
|
id: str
|
|
32
34
|
r"""The id of a historical transaction on aave"""
|
|
33
35
|
|
|
@@ -10,7 +10,9 @@ from typing import Literal
|
|
|
10
10
|
from typing_extensions import Annotated, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRateTypedDict(
|
|
14
|
+
TypedDict
|
|
15
|
+
):
|
|
14
16
|
id: str
|
|
15
17
|
r"""The id of a historical transaction on aave"""
|
|
16
18
|
timestamp: int
|
|
@@ -26,7 +28,9 @@ class SwapBorrowRateTypedDict(TypedDict):
|
|
|
26
28
|
action: Literal["SwapBorrowRate"]
|
|
27
29
|
|
|
28
30
|
|
|
29
|
-
class
|
|
31
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate(
|
|
32
|
+
BaseModel
|
|
33
|
+
):
|
|
30
34
|
id: str
|
|
31
35
|
r"""The id of a historical transaction on aave"""
|
|
32
36
|
|
|
@@ -10,7 +10,9 @@ from typing import Literal
|
|
|
10
10
|
from typing_extensions import Annotated, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateralTypedDict(
|
|
14
|
+
TypedDict
|
|
15
|
+
):
|
|
14
16
|
id: str
|
|
15
17
|
r"""The id of a historical transaction on aave"""
|
|
16
18
|
timestamp: int
|
|
@@ -25,7 +27,9 @@ class UsageAsCollateralTypedDict(TypedDict):
|
|
|
25
27
|
r"""The type of transaction"""
|
|
26
28
|
|
|
27
29
|
|
|
28
|
-
class
|
|
30
|
+
class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral(
|
|
31
|
+
BaseModel
|
|
32
|
+
):
|
|
29
33
|
id: str
|
|
30
34
|
r"""The id of a historical transaction on aave"""
|
|
31
35
|
|
|
@@ -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 .chain import Chain
|
|
5
4
|
from .interestratemode import InterestRateMode
|
|
6
5
|
from .token_enum import TokenEnum
|
|
7
6
|
from compass_api_sdk.types import (
|
|
@@ -12,6 +11,7 @@ from compass_api_sdk.types import (
|
|
|
12
11
|
UNSET_SENTINEL,
|
|
13
12
|
)
|
|
14
13
|
from compass_api_sdk.utils import validate_const
|
|
14
|
+
from enum import Enum
|
|
15
15
|
import pydantic
|
|
16
16
|
from pydantic import model_serializer
|
|
17
17
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -19,32 +19,45 @@ from typing import Literal, Optional, Union
|
|
|
19
19
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
"
|
|
22
|
+
CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestAmountTypedDict = TypeAliasType(
|
|
23
|
+
"CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestAmountTypedDict",
|
|
24
|
+
Union[float, str],
|
|
24
25
|
)
|
|
25
26
|
r"""The amount of the asset to borrow"""
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestAmount = TypeAliasType(
|
|
30
|
+
"CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestAmount",
|
|
31
|
+
Union[float, str],
|
|
32
|
+
)
|
|
29
33
|
r"""The amount of the asset to borrow"""
|
|
30
34
|
|
|
31
35
|
|
|
32
|
-
class
|
|
36
|
+
class CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestChain(str, Enum):
|
|
37
|
+
ARBITRUM = "arbitrum"
|
|
38
|
+
BASE = "base"
|
|
39
|
+
ETHEREUM = "ethereum"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestTypedDict(
|
|
43
|
+
TypedDict
|
|
44
|
+
):
|
|
33
45
|
token: TokenEnum
|
|
34
46
|
r"""A class representing the token.
|
|
35
47
|
|
|
36
48
|
This class is used to represent the token in the system. Notice individual
|
|
37
49
|
endpoints' documentation where per chain tokens are presented.
|
|
38
50
|
"""
|
|
39
|
-
amount:
|
|
51
|
+
amount: (
|
|
52
|
+
CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestAmountTypedDict
|
|
53
|
+
)
|
|
40
54
|
r"""The amount of the asset to borrow"""
|
|
41
55
|
interest_rate_mode: InterestRateMode
|
|
42
56
|
r"""On AAVE there are 2 different interest modes.
|
|
43
57
|
|
|
44
58
|
A stable (but typically higher rate), or a variable rate.
|
|
45
59
|
"""
|
|
46
|
-
chain:
|
|
47
|
-
r"""The chain to use."""
|
|
60
|
+
chain: CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestChain
|
|
48
61
|
sender: str
|
|
49
62
|
r"""The address of the transaction sender."""
|
|
50
63
|
action_type: Literal["AAVE_BORROW"]
|
|
@@ -52,7 +65,7 @@ class AaveBorrowRequestTypedDict(TypedDict):
|
|
|
52
65
|
r"""The address on behalf of whom the supply is made"""
|
|
53
66
|
|
|
54
67
|
|
|
55
|
-
class
|
|
68
|
+
class CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequest(BaseModel):
|
|
56
69
|
token: TokenEnum
|
|
57
70
|
r"""A class representing the token.
|
|
58
71
|
|
|
@@ -60,7 +73,7 @@ class AaveBorrowRequest(BaseModel):
|
|
|
60
73
|
endpoints' documentation where per chain tokens are presented.
|
|
61
74
|
"""
|
|
62
75
|
|
|
63
|
-
amount:
|
|
76
|
+
amount: CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestAmount
|
|
64
77
|
r"""The amount of the asset to borrow"""
|
|
65
78
|
|
|
66
79
|
interest_rate_mode: InterestRateMode
|
|
@@ -69,8 +82,7 @@ class AaveBorrowRequest(BaseModel):
|
|
|
69
82
|
A stable (but typically higher rate), or a variable rate.
|
|
70
83
|
"""
|
|
71
84
|
|
|
72
|
-
chain:
|
|
73
|
-
r"""The chain to use."""
|
|
85
|
+
chain: CompassAPIBackendModelsAaveTransactRequestBorrowAaveBorrowRequestChain
|
|
74
86
|
|
|
75
87
|
sender: str
|
|
76
88
|
r"""The address of the transaction sender."""
|
|
@@ -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 .chain import Chain
|
|
5
4
|
from .interestratemode import InterestRateMode
|
|
6
5
|
from .token_enum import TokenEnum
|
|
7
6
|
from compass_api_sdk.types import (
|
|
@@ -12,6 +11,7 @@ from compass_api_sdk.types import (
|
|
|
12
11
|
UNSET_SENTINEL,
|
|
13
12
|
)
|
|
14
13
|
from compass_api_sdk.utils import validate_const
|
|
14
|
+
from enum import Enum
|
|
15
15
|
import pydantic
|
|
16
16
|
from pydantic import model_serializer
|
|
17
17
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -19,32 +19,45 @@ from typing import Literal, Optional, Union
|
|
|
19
19
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
"
|
|
22
|
+
CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestAmountTypedDict = TypeAliasType(
|
|
23
|
+
"CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestAmountTypedDict",
|
|
24
|
+
Union[float, str],
|
|
24
25
|
)
|
|
25
26
|
r"""The amount of the asset to repay"""
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestAmount = TypeAliasType(
|
|
30
|
+
"CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestAmount",
|
|
31
|
+
Union[float, str],
|
|
32
|
+
)
|
|
29
33
|
r"""The amount of the asset to repay"""
|
|
30
34
|
|
|
31
35
|
|
|
32
|
-
class
|
|
36
|
+
class CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestChain(str, Enum):
|
|
37
|
+
ARBITRUM = "arbitrum"
|
|
38
|
+
BASE = "base"
|
|
39
|
+
ETHEREUM = "ethereum"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestTypedDict(
|
|
43
|
+
TypedDict
|
|
44
|
+
):
|
|
33
45
|
token: TokenEnum
|
|
34
46
|
r"""A class representing the token.
|
|
35
47
|
|
|
36
48
|
This class is used to represent the token in the system. Notice individual
|
|
37
49
|
endpoints' documentation where per chain tokens are presented.
|
|
38
50
|
"""
|
|
39
|
-
amount:
|
|
51
|
+
amount: (
|
|
52
|
+
CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestAmountTypedDict
|
|
53
|
+
)
|
|
40
54
|
r"""The amount of the asset to repay"""
|
|
41
55
|
interest_rate_mode: InterestRateMode
|
|
42
56
|
r"""On AAVE there are 2 different interest modes.
|
|
43
57
|
|
|
44
58
|
A stable (but typically higher rate), or a variable rate.
|
|
45
59
|
"""
|
|
46
|
-
chain:
|
|
47
|
-
r"""The chain to use."""
|
|
60
|
+
chain: CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestChain
|
|
48
61
|
sender: str
|
|
49
62
|
r"""The address of the transaction sender."""
|
|
50
63
|
action_type: Literal["AAVE_REPAY"]
|
|
@@ -52,7 +65,7 @@ class AaveRepayRequestTypedDict(TypedDict):
|
|
|
52
65
|
r"""The address on behalf of whom the supply is made"""
|
|
53
66
|
|
|
54
67
|
|
|
55
|
-
class
|
|
68
|
+
class CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequest(BaseModel):
|
|
56
69
|
token: TokenEnum
|
|
57
70
|
r"""A class representing the token.
|
|
58
71
|
|
|
@@ -60,7 +73,7 @@ class AaveRepayRequest(BaseModel):
|
|
|
60
73
|
endpoints' documentation where per chain tokens are presented.
|
|
61
74
|
"""
|
|
62
75
|
|
|
63
|
-
amount:
|
|
76
|
+
amount: CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestAmount
|
|
64
77
|
r"""The amount of the asset to repay"""
|
|
65
78
|
|
|
66
79
|
interest_rate_mode: InterestRateMode
|
|
@@ -69,8 +82,7 @@ class AaveRepayRequest(BaseModel):
|
|
|
69
82
|
A stable (but typically higher rate), or a variable rate.
|
|
70
83
|
"""
|
|
71
84
|
|
|
72
|
-
chain:
|
|
73
|
-
r"""The chain to use."""
|
|
85
|
+
chain: CompassAPIBackendModelsAaveTransactRequestRepayAaveRepayRequestChain
|
|
74
86
|
|
|
75
87
|
sender: str
|
|
76
88
|
r"""The address of the transaction sender."""
|
|
@@ -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 .chain import Chain
|
|
5
4
|
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
@@ -11,6 +10,7 @@ from compass_api_sdk.types import (
|
|
|
11
10
|
UNSET_SENTINEL,
|
|
12
11
|
)
|
|
13
12
|
from compass_api_sdk.utils import validate_const
|
|
13
|
+
from enum import Enum
|
|
14
14
|
import pydantic
|
|
15
15
|
from pydantic import model_serializer
|
|
16
16
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -18,27 +18,40 @@ from typing import Literal, Optional, Union
|
|
|
18
18
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
"
|
|
21
|
+
CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestAmountTypedDict = TypeAliasType(
|
|
22
|
+
"CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestAmountTypedDict",
|
|
23
|
+
Union[float, str],
|
|
23
24
|
)
|
|
24
25
|
r"""The amount of the asset to supply"""
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestAmount = TypeAliasType(
|
|
29
|
+
"CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestAmount",
|
|
30
|
+
Union[float, str],
|
|
31
|
+
)
|
|
28
32
|
r"""The amount of the asset to supply"""
|
|
29
33
|
|
|
30
34
|
|
|
31
|
-
class
|
|
35
|
+
class CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestChain(str, Enum):
|
|
36
|
+
ARBITRUM = "arbitrum"
|
|
37
|
+
BASE = "base"
|
|
38
|
+
ETHEREUM = "ethereum"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestTypedDict(
|
|
42
|
+
TypedDict
|
|
43
|
+
):
|
|
32
44
|
token: TokenEnum
|
|
33
45
|
r"""A class representing the token.
|
|
34
46
|
|
|
35
47
|
This class is used to represent the token in the system. Notice individual
|
|
36
48
|
endpoints' documentation where per chain tokens are presented.
|
|
37
49
|
"""
|
|
38
|
-
amount:
|
|
50
|
+
amount: (
|
|
51
|
+
CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestAmountTypedDict
|
|
52
|
+
)
|
|
39
53
|
r"""The amount of the asset to supply"""
|
|
40
|
-
chain:
|
|
41
|
-
r"""The chain to use."""
|
|
54
|
+
chain: CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestChain
|
|
42
55
|
sender: str
|
|
43
56
|
r"""The address of the transaction sender."""
|
|
44
57
|
action_type: Literal["AAVE_SUPPLY"]
|
|
@@ -46,7 +59,7 @@ class AaveSupplyRequestTypedDict(TypedDict):
|
|
|
46
59
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
47
60
|
|
|
48
61
|
|
|
49
|
-
class
|
|
62
|
+
class CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequest(BaseModel):
|
|
50
63
|
token: TokenEnum
|
|
51
64
|
r"""A class representing the token.
|
|
52
65
|
|
|
@@ -54,11 +67,10 @@ class AaveSupplyRequest(BaseModel):
|
|
|
54
67
|
endpoints' documentation where per chain tokens are presented.
|
|
55
68
|
"""
|
|
56
69
|
|
|
57
|
-
amount:
|
|
70
|
+
amount: CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestAmount
|
|
58
71
|
r"""The amount of the asset to supply"""
|
|
59
72
|
|
|
60
|
-
chain:
|
|
61
|
-
r"""The chain to use."""
|
|
73
|
+
chain: CompassAPIBackendModelsAaveTransactRequestSupplyAaveSupplyRequestChain
|
|
62
74
|
|
|
63
75
|
sender: str
|
|
64
76
|
r"""The address of the transaction sender."""
|