compass_api_sdk 0.9.51__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 +1736 -1528
- 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/{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} +9 -8
- 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} +9 -8
- 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 +310 -222
- 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.51.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.51.dist-info/RECORD +0 -266
- {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-0.9.52.dist-info}/WHEEL +0 -0
|
@@ -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 BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
@@ -11,64 +10,54 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
"
|
|
13
|
+
TokenTransferParamsAmountTypedDict = TypeAliasType(
|
|
14
|
+
"TokenTransferParamsAmountTypedDict", Union[float, str]
|
|
16
15
|
)
|
|
17
16
|
r"""Amount of token to transfer"""
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
"
|
|
19
|
+
TokenTransferParamsAmount = TypeAliasType(
|
|
20
|
+
"TokenTransferParamsAmount", Union[float, str]
|
|
22
21
|
)
|
|
23
22
|
r"""Amount of token to transfer"""
|
|
24
23
|
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
"
|
|
25
|
+
TokenTransferParamsTokenTypedDict = TypeAliasType(
|
|
26
|
+
"TokenTransferParamsTokenTypedDict", Union[TokenEnum, str]
|
|
28
27
|
)
|
|
29
28
|
r"""The symbol of the token to transfer.."""
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
"
|
|
31
|
+
TokenTransferParamsToken = TypeAliasType(
|
|
32
|
+
"TokenTransferParamsToken", Union[TokenEnum, str]
|
|
34
33
|
)
|
|
35
34
|
r"""The symbol of the token to transfer.."""
|
|
36
35
|
|
|
37
36
|
|
|
38
|
-
class
|
|
39
|
-
r"""
|
|
37
|
+
class TokenTransferParamsTypedDict(TypedDict):
|
|
38
|
+
r"""Parameters model for transferring ETH or ERC20 tokens."""
|
|
40
39
|
|
|
41
|
-
amount:
|
|
40
|
+
amount: TokenTransferParamsAmountTypedDict
|
|
42
41
|
r"""Amount of token to transfer"""
|
|
43
|
-
token:
|
|
42
|
+
token: TokenTransferParamsTokenTypedDict
|
|
44
43
|
r"""The symbol of the token to transfer.."""
|
|
45
44
|
to: str
|
|
46
45
|
r"""The recipient of the tokens."""
|
|
47
|
-
chain: Chain
|
|
48
|
-
r"""The chain to use."""
|
|
49
|
-
sender: str
|
|
50
|
-
r"""The address of the transaction sender."""
|
|
51
46
|
action_type: Literal["TOKEN_TRANSFER"]
|
|
52
47
|
|
|
53
48
|
|
|
54
|
-
class
|
|
55
|
-
r"""
|
|
49
|
+
class TokenTransferParams(BaseModel):
|
|
50
|
+
r"""Parameters model for transferring ETH or ERC20 tokens."""
|
|
56
51
|
|
|
57
|
-
amount:
|
|
52
|
+
amount: TokenTransferParamsAmount
|
|
58
53
|
r"""Amount of token to transfer"""
|
|
59
54
|
|
|
60
|
-
token:
|
|
55
|
+
token: TokenTransferParamsToken
|
|
61
56
|
r"""The symbol of the token to transfer.."""
|
|
62
57
|
|
|
63
58
|
to: str
|
|
64
59
|
r"""The recipient of the tokens."""
|
|
65
60
|
|
|
66
|
-
chain: Chain
|
|
67
|
-
r"""The chain to use."""
|
|
68
|
-
|
|
69
|
-
sender: str
|
|
70
|
-
r"""The address of the transaction sender."""
|
|
71
|
-
|
|
72
61
|
ACTION_TYPE: Annotated[
|
|
73
62
|
Annotated[
|
|
74
63
|
Optional[Literal["TOKEN_TRANSFER"]],
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedmulticalltransaction import (
|
|
5
|
+
UnsignedMulticallTransaction,
|
|
6
|
+
UnsignedMulticallTransactionTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
9
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
10
|
+
from compass_api_sdk.types import BaseModel
|
|
11
|
+
from typing import Union
|
|
12
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
TransactionResponseTransactionTypedDict = TypeAliasType(
|
|
16
|
+
"TransactionResponseTransactionTypedDict",
|
|
17
|
+
Union[
|
|
18
|
+
UserOperationResponseTypedDict,
|
|
19
|
+
UnsignedTransactionTypedDict,
|
|
20
|
+
UnsignedMulticallTransactionTypedDict,
|
|
21
|
+
],
|
|
22
|
+
)
|
|
23
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
TransactionResponseTransaction = TypeAliasType(
|
|
27
|
+
"TransactionResponseTransaction",
|
|
28
|
+
Union[UserOperationResponse, UnsignedTransaction, UnsignedMulticallTransaction],
|
|
29
|
+
)
|
|
30
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class TransactionResponseTypedDict(TypedDict):
|
|
34
|
+
transaction: TransactionResponseTransactionTypedDict
|
|
35
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class TransactionResponse(BaseModel):
|
|
39
|
+
transaction: TransactionResponseTransaction
|
|
40
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
@@ -8,70 +8,68 @@ from compass_api_sdk.utils import validate_const
|
|
|
8
8
|
import pydantic
|
|
9
9
|
from pydantic.functional_validators import AfterValidator
|
|
10
10
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated,
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
UniswapBuyExactlyParamsTokenInTypedDict = TypeAliasType(
|
|
15
15
|
"UniswapBuyExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
|
|
16
16
|
)
|
|
17
|
-
r"""The symbol of the token to swap from."""
|
|
17
|
+
r"""The symbol or address of the token to swap from."""
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
UniswapBuyExactlyParamsTokenIn = TypeAliasType(
|
|
21
21
|
"UniswapBuyExactlyParamsTokenIn", Union[TokenEnum, str]
|
|
22
22
|
)
|
|
23
|
-
r"""The symbol of the token to swap from."""
|
|
23
|
+
r"""The symbol or address of the token to swap from."""
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
UniswapBuyExactlyParamsTokenOutTypedDict = TypeAliasType(
|
|
27
27
|
"UniswapBuyExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
|
|
28
28
|
)
|
|
29
|
-
r"""The symbol of the token to swap to."""
|
|
29
|
+
r"""The symbol or address of the token to swap to."""
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
UniswapBuyExactlyParamsTokenOut = TypeAliasType(
|
|
33
33
|
"UniswapBuyExactlyParamsTokenOut", Union[TokenEnum, str]
|
|
34
34
|
)
|
|
35
|
-
r"""The symbol of the token to swap to."""
|
|
35
|
+
r"""The symbol or address of the token to swap to."""
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
"
|
|
38
|
+
UniswapBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
|
|
39
|
+
"UniswapBuyExactlyParamsAmountOutTypedDict", Union[float, str]
|
|
40
40
|
)
|
|
41
|
-
r"""The amount of
|
|
41
|
+
r"""The amount of 'token_out' to buy."""
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
"
|
|
44
|
+
UniswapBuyExactlyParamsAmountOut = TypeAliasType(
|
|
45
|
+
"UniswapBuyExactlyParamsAmountOut", Union[float, str]
|
|
46
46
|
)
|
|
47
|
-
r"""The amount of
|
|
47
|
+
r"""The amount of 'token_out' to buy."""
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
51
51
|
token_in: UniswapBuyExactlyParamsTokenInTypedDict
|
|
52
|
-
r"""The symbol of the token to swap from."""
|
|
52
|
+
r"""The symbol or address of the token to swap from."""
|
|
53
53
|
token_out: UniswapBuyExactlyParamsTokenOutTypedDict
|
|
54
|
-
r"""The symbol of the token to swap to."""
|
|
54
|
+
r"""The symbol or address of the token to swap to."""
|
|
55
55
|
fee: FeeEnum
|
|
56
56
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
57
57
|
|
|
58
58
|
Uniswap supports 4 different fee levels.
|
|
59
59
|
"""
|
|
60
|
-
|
|
61
|
-
r"""The amount of
|
|
60
|
+
amount_out: UniswapBuyExactlyParamsAmountOutTypedDict
|
|
61
|
+
r"""The amount of 'token_out' to buy."""
|
|
62
62
|
max_slippage_percent: float
|
|
63
63
|
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
64
64
|
action_type: Literal["UNISWAP_BUY_EXACTLY"]
|
|
65
|
-
wrap_eth: NotRequired[bool]
|
|
66
|
-
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
67
65
|
|
|
68
66
|
|
|
69
67
|
class UniswapBuyExactlyParams(BaseModel):
|
|
70
68
|
token_in: UniswapBuyExactlyParamsTokenIn
|
|
71
|
-
r"""The symbol of the token to swap from."""
|
|
69
|
+
r"""The symbol or address of the token to swap from."""
|
|
72
70
|
|
|
73
71
|
token_out: UniswapBuyExactlyParamsTokenOut
|
|
74
|
-
r"""The symbol of the token to swap to."""
|
|
72
|
+
r"""The symbol or address of the token to swap to."""
|
|
75
73
|
|
|
76
74
|
fee: FeeEnum
|
|
77
75
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -79,8 +77,8 @@ class UniswapBuyExactlyParams(BaseModel):
|
|
|
79
77
|
Uniswap supports 4 different fee levels.
|
|
80
78
|
"""
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
r"""The amount of
|
|
80
|
+
amount_out: UniswapBuyExactlyParamsAmountOut
|
|
81
|
+
r"""The amount of 'token_out' to buy."""
|
|
84
82
|
|
|
85
83
|
max_slippage_percent: float
|
|
86
84
|
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
@@ -92,6 +90,3 @@ class UniswapBuyExactlyParams(BaseModel):
|
|
|
92
90
|
],
|
|
93
91
|
pydantic.Field(alias="action_type"),
|
|
94
92
|
] = "UNISWAP_BUY_EXACTLY"
|
|
95
|
-
|
|
96
|
-
wrap_eth: Optional[bool] = False
|
|
97
|
-
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedmulticalltransaction import (
|
|
5
|
+
UnsignedMulticallTransaction,
|
|
6
|
+
UnsignedMulticallTransactionTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
9
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
10
|
+
from compass_api_sdk.types import BaseModel
|
|
11
|
+
from typing import Union
|
|
12
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
UniswapBuyExactlyTransactionResponseTransactionTypedDict = TypeAliasType(
|
|
16
|
+
"UniswapBuyExactlyTransactionResponseTransactionTypedDict",
|
|
17
|
+
Union[
|
|
18
|
+
UserOperationResponseTypedDict,
|
|
19
|
+
UnsignedTransactionTypedDict,
|
|
20
|
+
UnsignedMulticallTransactionTypedDict,
|
|
21
|
+
],
|
|
22
|
+
)
|
|
23
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
UniswapBuyExactlyTransactionResponseTransaction = TypeAliasType(
|
|
27
|
+
"UniswapBuyExactlyTransactionResponseTransaction",
|
|
28
|
+
Union[UserOperationResponse, UnsignedTransaction, UnsignedMulticallTransaction],
|
|
29
|
+
)
|
|
30
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class UniswapBuyExactlyTransactionResponseTypedDict(TypedDict):
|
|
34
|
+
transaction: UniswapBuyExactlyTransactionResponseTransactionTypedDict
|
|
35
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
36
|
+
amount_in_quote: str
|
|
37
|
+
r"""The estimated amount in for the transaction. The actual input amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class UniswapBuyExactlyTransactionResponse(BaseModel):
|
|
41
|
+
transaction: UniswapBuyExactlyTransactionResponseTransaction
|
|
42
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
43
|
+
|
|
44
|
+
amount_in_quote: str
|
|
45
|
+
r"""The estimated amount in for the transaction. The actual input amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
|
|
@@ -8,66 +8,72 @@ from compass_api_sdk.utils import validate_const
|
|
|
8
8
|
import pydantic
|
|
9
9
|
from pydantic.functional_validators import AfterValidator
|
|
10
10
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated,
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
"
|
|
14
|
+
UniswapSellExactlyParamsTokenInTypedDict = TypeAliasType(
|
|
15
|
+
"UniswapSellExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
|
|
16
16
|
)
|
|
17
|
-
r"""The
|
|
17
|
+
r"""The symbol or address of the token to sell.."""
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
"
|
|
20
|
+
UniswapSellExactlyParamsTokenIn = TypeAliasType(
|
|
21
|
+
"UniswapSellExactlyParamsTokenIn", Union[TokenEnum, str]
|
|
22
22
|
)
|
|
23
|
-
r"""The
|
|
23
|
+
r"""The symbol or address of the token to sell.."""
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
UniswapSellExactlyParamsTokenOutTypedDict = TypeAliasType(
|
|
27
|
+
"UniswapSellExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
|
|
28
|
+
)
|
|
29
|
+
r"""The symbol or address of the token to buy.."""
|
|
28
30
|
|
|
29
|
-
token_in: TokenEnum
|
|
30
|
-
r"""A class representing the token.
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
r"""A class representing the token.
|
|
32
|
+
UniswapSellExactlyParamsTokenOut = TypeAliasType(
|
|
33
|
+
"UniswapSellExactlyParamsTokenOut", Union[TokenEnum, str]
|
|
34
|
+
)
|
|
35
|
+
r"""The symbol or address of the token to buy.."""
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
""
|
|
37
|
+
|
|
38
|
+
UniswapSellExactlyParamsAmountInTypedDict = TypeAliasType(
|
|
39
|
+
"UniswapSellExactlyParamsAmountInTypedDict", Union[float, str]
|
|
40
|
+
)
|
|
41
|
+
r"""The amount of the `token_in` to sell"""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
UniswapSellExactlyParamsAmountIn = TypeAliasType(
|
|
45
|
+
"UniswapSellExactlyParamsAmountIn", Union[float, str]
|
|
46
|
+
)
|
|
47
|
+
r"""The amount of the `token_in` to sell"""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class UniswapSellExactlyParamsTypedDict(TypedDict):
|
|
51
|
+
r"""Parameters model for selling exactly an amount of tokens."""
|
|
52
|
+
|
|
53
|
+
token_in: UniswapSellExactlyParamsTokenInTypedDict
|
|
54
|
+
r"""The symbol or address of the token to sell.."""
|
|
55
|
+
token_out: UniswapSellExactlyParamsTokenOutTypedDict
|
|
56
|
+
r"""The symbol or address of the token to buy.."""
|
|
41
57
|
fee: FeeEnum
|
|
42
58
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
43
59
|
|
|
44
60
|
Uniswap supports 4 different fee levels.
|
|
45
61
|
"""
|
|
46
|
-
|
|
47
|
-
r"""The amount of the
|
|
62
|
+
amount_in: UniswapSellExactlyParamsAmountInTypedDict
|
|
63
|
+
r"""The amount of the `token_in` to sell"""
|
|
48
64
|
max_slippage_percent: float
|
|
49
65
|
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
50
66
|
action_type: Literal["UNISWAP_SELL_EXACTLY"]
|
|
51
|
-
wrap_eth: NotRequired[bool]
|
|
52
|
-
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
53
67
|
|
|
54
68
|
|
|
55
69
|
class UniswapSellExactlyParams(BaseModel):
|
|
56
70
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
57
71
|
|
|
58
|
-
token_in:
|
|
59
|
-
r"""
|
|
72
|
+
token_in: UniswapSellExactlyParamsTokenIn
|
|
73
|
+
r"""The symbol or address of the token to sell.."""
|
|
60
74
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"""
|
|
64
|
-
|
|
65
|
-
token_out: TokenEnum
|
|
66
|
-
r"""A class representing the token.
|
|
67
|
-
|
|
68
|
-
This class is used to represent the token in the system. Notice individual
|
|
69
|
-
endpoints' documentation where per chain tokens are presented.
|
|
70
|
-
"""
|
|
75
|
+
token_out: UniswapSellExactlyParamsTokenOut
|
|
76
|
+
r"""The symbol or address of the token to buy.."""
|
|
71
77
|
|
|
72
78
|
fee: FeeEnum
|
|
73
79
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -75,8 +81,8 @@ class UniswapSellExactlyParams(BaseModel):
|
|
|
75
81
|
Uniswap supports 4 different fee levels.
|
|
76
82
|
"""
|
|
77
83
|
|
|
78
|
-
|
|
79
|
-
r"""The amount of the
|
|
84
|
+
amount_in: UniswapSellExactlyParamsAmountIn
|
|
85
|
+
r"""The amount of the `token_in` to sell"""
|
|
80
86
|
|
|
81
87
|
max_slippage_percent: float
|
|
82
88
|
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
@@ -88,6 +94,3 @@ class UniswapSellExactlyParams(BaseModel):
|
|
|
88
94
|
],
|
|
89
95
|
pydantic.Field(alias="action_type"),
|
|
90
96
|
] = "UNISWAP_SELL_EXACTLY"
|
|
91
|
-
|
|
92
|
-
wrap_eth: Optional[bool] = False
|
|
93
|
-
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedmulticalltransaction import (
|
|
5
|
+
UnsignedMulticallTransaction,
|
|
6
|
+
UnsignedMulticallTransactionTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
9
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
10
|
+
from compass_api_sdk.types import BaseModel
|
|
11
|
+
from typing import Union
|
|
12
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
UniswapSellExactlyTransactionResponseTransactionTypedDict = TypeAliasType(
|
|
16
|
+
"UniswapSellExactlyTransactionResponseTransactionTypedDict",
|
|
17
|
+
Union[
|
|
18
|
+
UserOperationResponseTypedDict,
|
|
19
|
+
UnsignedTransactionTypedDict,
|
|
20
|
+
UnsignedMulticallTransactionTypedDict,
|
|
21
|
+
],
|
|
22
|
+
)
|
|
23
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
UniswapSellExactlyTransactionResponseTransaction = TypeAliasType(
|
|
27
|
+
"UniswapSellExactlyTransactionResponseTransaction",
|
|
28
|
+
Union[UserOperationResponse, UnsignedTransaction, UnsignedMulticallTransaction],
|
|
29
|
+
)
|
|
30
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class UniswapSellExactlyTransactionResponseTypedDict(TypedDict):
|
|
34
|
+
transaction: UniswapSellExactlyTransactionResponseTransactionTypedDict
|
|
35
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
36
|
+
amount_out_quote: str
|
|
37
|
+
r"""The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class UniswapSellExactlyTransactionResponse(BaseModel):
|
|
41
|
+
transaction: UniswapSellExactlyTransactionResponseTransaction
|
|
42
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
43
|
+
|
|
44
|
+
amount_out_quote: str
|
|
45
|
+
r"""The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
|
compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py}
RENAMED
|
@@ -14,27 +14,23 @@ from pydantic import model_serializer
|
|
|
14
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
18
|
-
|
|
17
|
+
class V1AaveAaveSupportedTokensChain(str, Enum):
|
|
18
|
+
ARBITRUM = "arbitrum"
|
|
19
|
+
BASE = "base"
|
|
20
|
+
ETHEREUM = "ethereum"
|
|
19
21
|
|
|
20
|
-
BASE_MAINNET = "base:mainnet"
|
|
21
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
22
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
chain: AaveAaveSupportedTokensChain
|
|
27
|
-
r"""The chain to use."""
|
|
23
|
+
class V1AaveAaveSupportedTokensRequestTypedDict(TypedDict):
|
|
24
|
+
chain: V1AaveAaveSupportedTokensChain
|
|
28
25
|
block: NotRequired[Nullable[int]]
|
|
29
26
|
r"""Optional block number (defaults to latest)."""
|
|
30
27
|
|
|
31
28
|
|
|
32
|
-
class
|
|
29
|
+
class V1AaveAaveSupportedTokensRequest(BaseModel):
|
|
33
30
|
chain: Annotated[
|
|
34
|
-
|
|
31
|
+
V1AaveAaveSupportedTokensChain,
|
|
35
32
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
36
|
-
] =
|
|
37
|
-
r"""The chain to use."""
|
|
33
|
+
] = V1AaveAaveSupportedTokensChain.ARBITRUM
|
|
38
34
|
|
|
39
35
|
block: Annotated[
|
|
40
36
|
OptionalNullable[int],
|
|
@@ -14,15 +14,13 @@ from pydantic import model_serializer
|
|
|
14
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
18
|
-
|
|
17
|
+
class V1AaveAvgRateChain(str, Enum):
|
|
18
|
+
ARBITRUM = "arbitrum"
|
|
19
|
+
BASE = "base"
|
|
20
|
+
ETHEREUM = "ethereum"
|
|
19
21
|
|
|
20
|
-
BASE_MAINNET = "base:mainnet"
|
|
21
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
22
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
class AaveAvgRateToken(str, Enum):
|
|
23
|
+
class V1AaveAvgRateToken(str, Enum):
|
|
26
24
|
r"""A class representing the token.
|
|
27
25
|
|
|
28
26
|
This class is used to represent the token in the system. Notice individual
|
|
@@ -70,29 +68,44 @@ class AaveAvgRateToken(str, Enum):
|
|
|
70
68
|
EURS = "EURS"
|
|
71
69
|
MAI = "MAI"
|
|
72
70
|
USD_CE = "USDCe"
|
|
71
|
+
ETH = "ETH"
|
|
73
72
|
AERO = "AERO"
|
|
74
73
|
EUR = "EUR"
|
|
75
74
|
VIRTUAL = "VIRTUAL"
|
|
76
75
|
EZ_ETH = "ezETH"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
CYBER = "CYBER"
|
|
77
|
+
WRS_ETH = "wrsETH"
|
|
78
|
+
E_BTC = "eBTC"
|
|
79
|
+
EURC = "EURC"
|
|
80
|
+
E_US_DE = "eUSDe"
|
|
81
|
+
FBTC = "FBTC"
|
|
82
|
+
LBTC = "LBTC"
|
|
83
|
+
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
84
|
+
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
85
|
+
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
86
|
+
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
87
|
+
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
88
|
+
RLUSD = "RLUSD"
|
|
89
|
+
USD_0 = "USD₮0"
|
|
90
|
+
US_DB_C = "USDbC"
|
|
91
|
+
US_DTB = "USDtb"
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class V1AaveAvgRateRequestTypedDict(TypedDict):
|
|
95
|
+
chain: V1AaveAvgRateChain
|
|
82
96
|
block: NotRequired[Nullable[int]]
|
|
83
97
|
r"""Optional block number (defaults to latest)."""
|
|
84
|
-
token:
|
|
98
|
+
token: V1AaveAvgRateToken
|
|
85
99
|
r"""The symbol of the token.."""
|
|
86
100
|
days: int
|
|
87
101
|
r"""The number of days for which the average shall be calculated."""
|
|
88
102
|
|
|
89
103
|
|
|
90
|
-
class
|
|
104
|
+
class V1AaveAvgRateRequest(BaseModel):
|
|
91
105
|
chain: Annotated[
|
|
92
|
-
|
|
106
|
+
V1AaveAvgRateChain,
|
|
93
107
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
94
|
-
] =
|
|
95
|
-
r"""The chain to use."""
|
|
108
|
+
] = V1AaveAvgRateChain.ETHEREUM
|
|
96
109
|
|
|
97
110
|
block: Annotated[
|
|
98
111
|
OptionalNullable[int],
|
|
@@ -101,9 +114,9 @@ class AaveAvgRateRequest(BaseModel):
|
|
|
101
114
|
r"""Optional block number (defaults to latest)."""
|
|
102
115
|
|
|
103
116
|
token: Annotated[
|
|
104
|
-
|
|
117
|
+
V1AaveAvgRateToken,
|
|
105
118
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
106
|
-
] =
|
|
119
|
+
] = V1AaveAvgRateToken.USDC
|
|
107
120
|
r"""The symbol of the token.."""
|
|
108
121
|
|
|
109
122
|
days: Annotated[
|
compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py}
RENAMED
|
@@ -8,26 +8,23 @@ from typing import Optional
|
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
12
|
-
|
|
11
|
+
class V1AaveHistoricalTransactionsChain(str, Enum):
|
|
12
|
+
ARBITRUM = "arbitrum"
|
|
13
|
+
BASE = "base"
|
|
14
|
+
ETHEREUM = "ethereum"
|
|
13
15
|
|
|
14
|
-
BASE_MAINNET = "base:mainnet"
|
|
15
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
class AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
17
|
+
class V1AaveHistoricalTransactionsRequestTypedDict(TypedDict):
|
|
20
18
|
offset: NotRequired[int]
|
|
21
19
|
r"""The offset of the first item to return."""
|
|
22
20
|
limit: NotRequired[int]
|
|
23
21
|
r"""The number of items to return."""
|
|
24
|
-
chain:
|
|
25
|
-
r"""The chain to use."""
|
|
22
|
+
chain: V1AaveHistoricalTransactionsChain
|
|
26
23
|
user_address: str
|
|
27
24
|
r"""The address of the user to get historical transactions for."""
|
|
28
25
|
|
|
29
26
|
|
|
30
|
-
class
|
|
27
|
+
class V1AaveHistoricalTransactionsRequest(BaseModel):
|
|
31
28
|
offset: Annotated[
|
|
32
29
|
Optional[int],
|
|
33
30
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -41,10 +38,9 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
41
38
|
r"""The number of items to return."""
|
|
42
39
|
|
|
43
40
|
chain: Annotated[
|
|
44
|
-
|
|
41
|
+
V1AaveHistoricalTransactionsChain,
|
|
45
42
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
46
|
-
] =
|
|
47
|
-
r"""The chain to use."""
|
|
43
|
+
] = V1AaveHistoricalTransactionsChain.BASE
|
|
48
44
|
|
|
49
45
|
user_address: Annotated[
|
|
50
46
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|