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,65 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .borrow import Borrow, BorrowTypedDict
|
|
5
|
-
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
6
|
-
from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
|
|
7
|
-
from .repay import Repay, RepayTypedDict
|
|
8
|
-
from .supply import Supply, SupplyTypedDict
|
|
9
|
-
from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
|
|
10
|
-
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
11
|
-
from compass_api_sdk.types import BaseModel
|
|
12
|
-
from compass_api_sdk.utils import get_discriminator
|
|
13
|
-
from pydantic import Discriminator, Tag
|
|
14
|
-
from typing import List, Union
|
|
15
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
TransactionTypedDict = TypeAliasType(
|
|
19
|
-
"TransactionTypedDict",
|
|
20
|
-
Union[
|
|
21
|
-
RedeemUnderlyingTypedDict,
|
|
22
|
-
RepayTypedDict,
|
|
23
|
-
SupplyTypedDict,
|
|
24
|
-
UsageAsCollateralTypedDict,
|
|
25
|
-
BorrowTypedDict,
|
|
26
|
-
SwapBorrowRateTypedDict,
|
|
27
|
-
LiquidationCallTypedDict,
|
|
28
|
-
],
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Transaction = Annotated[
|
|
33
|
-
Union[
|
|
34
|
-
Annotated[Borrow, Tag("Borrow")],
|
|
35
|
-
Annotated[LiquidationCall, Tag("LiquidationCall")],
|
|
36
|
-
Annotated[RedeemUnderlying, Tag("RedeemUnderlying")],
|
|
37
|
-
Annotated[Repay, Tag("Repay")],
|
|
38
|
-
Annotated[Supply, Tag("Supply")],
|
|
39
|
-
Annotated[SwapBorrowRate, Tag("SwapBorrowRate")],
|
|
40
|
-
Annotated[UsageAsCollateral, Tag("UsageAsCollateral")],
|
|
41
|
-
],
|
|
42
|
-
Discriminator(lambda m: get_discriminator(m, "action", "action")),
|
|
43
|
-
]
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class AaveHistoricalTransactionsResponseTypedDict(TypedDict):
|
|
47
|
-
r"""Response model for getting Aave historical transactions."""
|
|
48
|
-
|
|
49
|
-
offset: int
|
|
50
|
-
r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
|
|
51
|
-
limit: int
|
|
52
|
-
r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
|
|
53
|
-
transactions: List[TransactionTypedDict]
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class AaveHistoricalTransactionsResponse(BaseModel):
|
|
57
|
-
r"""Response model for getting Aave historical transactions."""
|
|
58
|
-
|
|
59
|
-
offset: int
|
|
60
|
-
r"""Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive."""
|
|
61
|
-
|
|
62
|
-
limit: int
|
|
63
|
-
r"""Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset."""
|
|
64
|
-
|
|
65
|
-
transactions: List[Transaction]
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
|
-
from compass_api_sdk.types import BaseModel
|
|
7
|
-
from compass_api_sdk.utils import validate_const
|
|
8
|
-
import pydantic
|
|
9
|
-
from pydantic.functional_validators import AfterValidator
|
|
10
|
-
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
15
|
-
"AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict", Union[float, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The amount of the token to swap to"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
AerodromeSlipstreamBuyExactlyRequestAmountOut = TypeAliasType(
|
|
21
|
-
"AerodromeSlipstreamBuyExactlyRequestAmountOut", Union[float, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The amount of the token to swap to"""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict = TypeAliasType(
|
|
27
|
-
"AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict", Union[float, str]
|
|
28
|
-
)
|
|
29
|
-
r"""The maximum amount of the token to swap from"""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
AerodromeSlipstreamBuyExactlyRequestAmountInMaximum = TypeAliasType(
|
|
33
|
-
"AerodromeSlipstreamBuyExactlyRequestAmountInMaximum", Union[float, str]
|
|
34
|
-
)
|
|
35
|
-
r"""The maximum amount of the token to swap from"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
39
|
-
r"""Request model for buying exactly an amount of tokens."""
|
|
40
|
-
|
|
41
|
-
token_in: TokenEnum
|
|
42
|
-
r"""A class representing the token.
|
|
43
|
-
|
|
44
|
-
This class is used to represent the token in the system. Notice individual
|
|
45
|
-
endpoints' documentation where per chain tokens are presented.
|
|
46
|
-
"""
|
|
47
|
-
token_out: TokenEnum
|
|
48
|
-
r"""A class representing the token.
|
|
49
|
-
|
|
50
|
-
This class is used to represent the token in the system. Notice individual
|
|
51
|
-
endpoints' documentation where per chain tokens are presented.
|
|
52
|
-
"""
|
|
53
|
-
tick_spacing: int
|
|
54
|
-
r"""The tick spacing of the pool"""
|
|
55
|
-
amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict
|
|
56
|
-
r"""The amount of the token to swap to"""
|
|
57
|
-
amount_in_maximum: AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict
|
|
58
|
-
r"""The maximum amount of the token to swap from"""
|
|
59
|
-
chain: Chain
|
|
60
|
-
r"""The chain to use."""
|
|
61
|
-
sender: str
|
|
62
|
-
r"""The address of the transaction sender."""
|
|
63
|
-
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
67
|
-
r"""Request model for buying exactly an amount of tokens."""
|
|
68
|
-
|
|
69
|
-
token_in: TokenEnum
|
|
70
|
-
r"""A class representing the token.
|
|
71
|
-
|
|
72
|
-
This class is used to represent the token in the system. Notice individual
|
|
73
|
-
endpoints' documentation where per chain tokens are presented.
|
|
74
|
-
"""
|
|
75
|
-
|
|
76
|
-
token_out: TokenEnum
|
|
77
|
-
r"""A class representing the token.
|
|
78
|
-
|
|
79
|
-
This class is used to represent the token in the system. Notice individual
|
|
80
|
-
endpoints' documentation where per chain tokens are presented.
|
|
81
|
-
"""
|
|
82
|
-
|
|
83
|
-
tick_spacing: int
|
|
84
|
-
r"""The tick spacing of the pool"""
|
|
85
|
-
|
|
86
|
-
amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOut
|
|
87
|
-
r"""The amount of the token to swap to"""
|
|
88
|
-
|
|
89
|
-
amount_in_maximum: AerodromeSlipstreamBuyExactlyRequestAmountInMaximum
|
|
90
|
-
r"""The maximum amount of the token to swap from"""
|
|
91
|
-
|
|
92
|
-
chain: Chain
|
|
93
|
-
r"""The chain to use."""
|
|
94
|
-
|
|
95
|
-
sender: str
|
|
96
|
-
r"""The address of the transaction sender."""
|
|
97
|
-
|
|
98
|
-
ACTION_TYPE: Annotated[
|
|
99
|
-
Annotated[
|
|
100
|
-
Optional[Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]],
|
|
101
|
-
AfterValidator(validate_const("AERODROME_SLIPSTREAM_BUY_EXACTLY")),
|
|
102
|
-
],
|
|
103
|
-
pydantic.Field(alias="action_type"),
|
|
104
|
-
] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from compass_api_sdk.types import BaseModel
|
|
6
|
-
from compass_api_sdk.utils import validate_const
|
|
7
|
-
import pydantic
|
|
8
|
-
from pydantic.functional_validators import AfterValidator
|
|
9
|
-
from typing import Literal, Optional, Union
|
|
10
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
|
|
14
|
-
TypeAliasType(
|
|
15
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict",
|
|
16
|
-
Union[float, str],
|
|
17
|
-
)
|
|
18
|
-
)
|
|
19
|
-
r"""The desired amount of the first token to deposit"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Desired = TypeAliasType(
|
|
23
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Desired",
|
|
24
|
-
Union[float, str],
|
|
25
|
-
)
|
|
26
|
-
r"""The desired amount of the first token to deposit"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict = (
|
|
30
|
-
TypeAliasType(
|
|
31
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict",
|
|
32
|
-
Union[float, str],
|
|
33
|
-
)
|
|
34
|
-
)
|
|
35
|
-
r"""The desired amount of the second token to deposit"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Desired = TypeAliasType(
|
|
39
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Desired",
|
|
40
|
-
Union[float, str],
|
|
41
|
-
)
|
|
42
|
-
r"""The desired amount of the second token to deposit"""
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
|
|
46
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0MinTypedDict",
|
|
47
|
-
Union[float, str],
|
|
48
|
-
)
|
|
49
|
-
r"""The minimum amount of the first token to deposit"""
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Min = TypeAliasType(
|
|
53
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Min", Union[float, str]
|
|
54
|
-
)
|
|
55
|
-
r"""The minimum amount of the first token to deposit"""
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
|
|
59
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict",
|
|
60
|
-
Union[float, str],
|
|
61
|
-
)
|
|
62
|
-
r"""The minimum amount of the second token to deposit"""
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
|
|
66
|
-
"AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min", Union[float, str]
|
|
67
|
-
)
|
|
68
|
-
r"""The minimum amount of the second token to deposit"""
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
72
|
-
token_id: int
|
|
73
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
74
|
-
amount0_desired: (
|
|
75
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict
|
|
76
|
-
)
|
|
77
|
-
r"""The desired amount of the first token to deposit"""
|
|
78
|
-
amount1_desired: (
|
|
79
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict
|
|
80
|
-
)
|
|
81
|
-
r"""The desired amount of the second token to deposit"""
|
|
82
|
-
amount0_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0MinTypedDict
|
|
83
|
-
r"""The minimum amount of the first token to deposit"""
|
|
84
|
-
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict
|
|
85
|
-
r"""The minimum amount of the second token to deposit"""
|
|
86
|
-
chain: Chain
|
|
87
|
-
r"""The chain to use."""
|
|
88
|
-
sender: str
|
|
89
|
-
r"""The address of the transaction sender."""
|
|
90
|
-
action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
94
|
-
token_id: int
|
|
95
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
96
|
-
|
|
97
|
-
amount0_desired: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Desired
|
|
98
|
-
r"""The desired amount of the first token to deposit"""
|
|
99
|
-
|
|
100
|
-
amount1_desired: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Desired
|
|
101
|
-
r"""The desired amount of the second token to deposit"""
|
|
102
|
-
|
|
103
|
-
amount0_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0Min
|
|
104
|
-
r"""The minimum amount of the first token to deposit"""
|
|
105
|
-
|
|
106
|
-
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min
|
|
107
|
-
r"""The minimum amount of the second token to deposit"""
|
|
108
|
-
|
|
109
|
-
chain: Chain
|
|
110
|
-
r"""The chain to use."""
|
|
111
|
-
|
|
112
|
-
sender: str
|
|
113
|
-
r"""The address of the transaction sender."""
|
|
114
|
-
|
|
115
|
-
ACTION_TYPE: Annotated[
|
|
116
|
-
Annotated[
|
|
117
|
-
Optional[Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]],
|
|
118
|
-
AfterValidator(
|
|
119
|
-
validate_const("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
120
|
-
),
|
|
121
|
-
],
|
|
122
|
-
pydantic.Field(alias="action_type"),
|
|
123
|
-
] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from compass_api_sdk.types import BaseModel
|
|
6
|
-
from compass_api_sdk.utils import validate_const
|
|
7
|
-
import pydantic
|
|
8
|
-
from pydantic.functional_validators import AfterValidator
|
|
9
|
-
from typing import Literal, Optional, Union
|
|
10
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict = TypeAliasType(
|
|
14
|
-
"AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
|
|
15
|
-
Union[float, str],
|
|
16
|
-
)
|
|
17
|
-
r"""How much liquidity to take out in percentage."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal = (
|
|
21
|
-
TypeAliasType(
|
|
22
|
-
"AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal",
|
|
23
|
-
Union[float, str],
|
|
24
|
-
)
|
|
25
|
-
)
|
|
26
|
-
r"""How much liquidity to take out in percentage."""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
|
|
30
|
-
token_id: int
|
|
31
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
32
|
-
percentage_for_withdrawal: AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict
|
|
33
|
-
r"""How much liquidity to take out in percentage."""
|
|
34
|
-
chain: Chain
|
|
35
|
-
r"""The chain to use."""
|
|
36
|
-
sender: str
|
|
37
|
-
r"""The address of the transaction sender."""
|
|
38
|
-
action_type: Literal["AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"]
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
|
|
42
|
-
token_id: int
|
|
43
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
44
|
-
|
|
45
|
-
percentage_for_withdrawal: (
|
|
46
|
-
AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal
|
|
47
|
-
)
|
|
48
|
-
r"""How much liquidity to take out in percentage."""
|
|
49
|
-
|
|
50
|
-
chain: Chain
|
|
51
|
-
r"""The chain to use."""
|
|
52
|
-
|
|
53
|
-
sender: str
|
|
54
|
-
r"""The address of the transaction sender."""
|
|
55
|
-
|
|
56
|
-
ACTION_TYPE: Annotated[
|
|
57
|
-
Annotated[
|
|
58
|
-
Optional[Literal["AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"]],
|
|
59
|
-
AfterValidator(
|
|
60
|
-
validate_const("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
61
|
-
),
|
|
62
|
-
],
|
|
63
|
-
pydantic.Field(alias="action_type"),
|
|
64
|
-
] = "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .useroperation import UserOperation, UserOperationTypedDict
|
|
6
|
-
from compass_api_sdk.types import BaseModel
|
|
7
|
-
from typing import List
|
|
8
|
-
from typing_extensions import TypedDict
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class BatchedUserOperationsRequestTypedDict(TypedDict):
|
|
12
|
-
r"""Request model for batching user operations."""
|
|
13
|
-
|
|
14
|
-
chain: Chain
|
|
15
|
-
r"""The chain to use."""
|
|
16
|
-
sender: str
|
|
17
|
-
r"""The address of the transaction sender."""
|
|
18
|
-
operations: List[UserOperationTypedDict]
|
|
19
|
-
r"""List of possible user operations"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class BatchedUserOperationsRequest(BaseModel):
|
|
23
|
-
r"""Request model for batching user operations."""
|
|
24
|
-
|
|
25
|
-
chain: Chain
|
|
26
|
-
r"""The chain to use."""
|
|
27
|
-
|
|
28
|
-
sender: str
|
|
29
|
-
r"""The address of the transaction sender."""
|
|
30
|
-
|
|
31
|
-
operations: List[UserOperation]
|
|
32
|
-
r"""List of possible user operations"""
|
|
@@ -1,28 +0,0 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
-
from enum import Enum
|
|
7
|
-
from typing_extensions import Annotated, TypedDict
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class GenericSupportedTokensChain(str, Enum):
|
|
11
|
-
r"""The chain to use."""
|
|
12
|
-
|
|
13
|
-
BASE_MAINNET = "base:mainnet"
|
|
14
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class GenericSupportedTokensRequestTypedDict(TypedDict):
|
|
19
|
-
chain: GenericSupportedTokensChain
|
|
20
|
-
r"""The chain to use."""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class GenericSupportedTokensRequest(BaseModel):
|
|
24
|
-
chain: Annotated[
|
|
25
|
-
GenericSupportedTokensChain,
|
|
26
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
27
|
-
] = GenericSupportedTokensChain.ARBITRUM_MAINNET
|
|
28
|
-
r"""The chain to use."""
|
|
@@ -1,37 +0,0 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
-
from enum import Enum
|
|
7
|
-
from typing import Optional
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class GenericVisualizePortfolioChain(str, Enum):
|
|
12
|
-
r"""The chain to use."""
|
|
13
|
-
|
|
14
|
-
BASE_MAINNET = "base:mainnet"
|
|
15
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class GenericVisualizePortfolioRequestTypedDict(TypedDict):
|
|
20
|
-
chain: GenericVisualizePortfolioChain
|
|
21
|
-
r"""The chain to use."""
|
|
22
|
-
user: NotRequired[str]
|
|
23
|
-
r"""The user to get portfolio for."""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class GenericVisualizePortfolioRequest(BaseModel):
|
|
27
|
-
chain: Annotated[
|
|
28
|
-
GenericVisualizePortfolioChain,
|
|
29
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
30
|
-
] = GenericVisualizePortfolioChain.ARBITRUM_MAINNET
|
|
31
|
-
r"""The chain to use."""
|
|
32
|
-
|
|
33
|
-
user: Annotated[
|
|
34
|
-
Optional[str],
|
|
35
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
36
|
-
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
37
|
-
r"""The user to get portfolio for."""
|
compass_api_sdk/models/image.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from compass_api_sdk.types import BaseModel
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ImageTypedDict(TypedDict):
|
|
9
|
-
image: str
|
|
10
|
-
r"""Base64 encoded SVG image"""
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class Image(BaseModel):
|
|
14
|
-
image: str
|
|
15
|
-
r"""Base64 encoded SVG image"""
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .marketposition import MarketPosition, MarketPositionTypedDict
|
|
5
|
-
from .userstate import UserState, UserStateTypedDict
|
|
6
|
-
from .vaultposition import VaultPosition, VaultPositionTypedDict
|
|
7
|
-
from compass_api_sdk.types import BaseModel
|
|
8
|
-
import pydantic
|
|
9
|
-
from typing import List
|
|
10
|
-
from typing_extensions import Annotated, TypedDict
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class MorphoCheckUserPositionResponseTypedDict(TypedDict):
|
|
14
|
-
state: UserStateTypedDict
|
|
15
|
-
vault_positions: List[VaultPositionTypedDict]
|
|
16
|
-
r"""A list of the user's vault positions."""
|
|
17
|
-
market_positions: List[MarketPositionTypedDict]
|
|
18
|
-
r"""A list of the user's market positions."""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class MorphoCheckUserPositionResponse(BaseModel):
|
|
22
|
-
state: UserState
|
|
23
|
-
|
|
24
|
-
vault_positions: Annotated[
|
|
25
|
-
List[VaultPosition], pydantic.Field(alias="vaultPositions")
|
|
26
|
-
]
|
|
27
|
-
r"""A list of the user's vault positions."""
|
|
28
|
-
|
|
29
|
-
market_positions: Annotated[
|
|
30
|
-
List[MarketPosition], pydantic.Field(alias="marketPositions")
|
|
31
|
-
]
|
|
32
|
-
r"""A list of the user's market positions."""
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .morphomarket import MorphoMarket, MorphoMarketTypedDict
|
|
5
|
-
from compass_api_sdk.types import BaseModel
|
|
6
|
-
from typing import List
|
|
7
|
-
from typing_extensions import TypedDict
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class MorphoGetMarketsResponseTypedDict(TypedDict):
|
|
11
|
-
markets: List[MorphoMarketTypedDict]
|
|
12
|
-
r"""A list of markets matching the query."""
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class MorphoGetMarketsResponse(BaseModel):
|
|
16
|
-
markets: List[MorphoMarket]
|
|
17
|
-
r"""A list of markets matching the query."""
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .morphovault import MorphoVault, MorphoVaultTypedDict
|
|
5
|
-
from compass_api_sdk.types import BaseModel
|
|
6
|
-
from typing import List
|
|
7
|
-
from typing_extensions import TypedDict
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class MorphoGetVaultsResponseTypedDict(TypedDict):
|
|
11
|
-
vaults: List[MorphoVaultTypedDict]
|
|
12
|
-
r"""A list of vaults matching the query."""
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class MorphoGetVaultsResponse(BaseModel):
|
|
16
|
-
vaults: List[MorphoVault]
|
|
17
|
-
r"""A list of vaults matching the query."""
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
|
|
6
|
-
from .useroperation import UserOperation, UserOperationTypedDict
|
|
7
|
-
from compass_api_sdk.types import BaseModel
|
|
8
|
-
from typing import List
|
|
9
|
-
from typing_extensions import TypedDict
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class MulticallExecuteRequestTypedDict(TypedDict):
|
|
13
|
-
r"""Request model for executing a multicall."""
|
|
14
|
-
|
|
15
|
-
chain: Chain
|
|
16
|
-
r"""The chain to use."""
|
|
17
|
-
sender: str
|
|
18
|
-
r"""The address of the transaction sender."""
|
|
19
|
-
signed_authorization: SignedAuthorizationTypedDict
|
|
20
|
-
actions: List[UserOperationTypedDict]
|
|
21
|
-
r"""List of possible actions for multicall"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class MulticallExecuteRequest(BaseModel):
|
|
25
|
-
r"""Request model for executing a multicall."""
|
|
26
|
-
|
|
27
|
-
chain: Chain
|
|
28
|
-
r"""The chain to use."""
|
|
29
|
-
|
|
30
|
-
sender: str
|
|
31
|
-
r"""The address of the transaction sender."""
|
|
32
|
-
|
|
33
|
-
signed_authorization: SignedAuthorization
|
|
34
|
-
|
|
35
|
-
actions: List[UserOperation]
|
|
36
|
-
r"""List of possible actions for multicall"""
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
|
-
from compass_api_sdk.types import BaseModel
|
|
7
|
-
from compass_api_sdk.utils import validate_const
|
|
8
|
-
import pydantic
|
|
9
|
-
from pydantic.functional_validators import AfterValidator
|
|
10
|
-
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
OdosSwapRequestTokenInTypedDict = TypeAliasType(
|
|
15
|
-
"OdosSwapRequestTokenInTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token that is to be sold."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
OdosSwapRequestTokenIn = TypeAliasType("OdosSwapRequestTokenIn", Union[TokenEnum, str])
|
|
21
|
-
r"""The symbol or address of the token that is to be sold."""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
OdosSwapRequestTokenOutTypedDict = TypeAliasType(
|
|
25
|
-
"OdosSwapRequestTokenOutTypedDict", Union[TokenEnum, str]
|
|
26
|
-
)
|
|
27
|
-
r"""The symbol or address of the token that is to be bought."""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
OdosSwapRequestTokenOut = TypeAliasType(
|
|
31
|
-
"OdosSwapRequestTokenOut", Union[TokenEnum, str]
|
|
32
|
-
)
|
|
33
|
-
r"""The symbol or address of the token that is to be bought."""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
OdosSwapRequestAmountTypedDict = TypeAliasType(
|
|
37
|
-
"OdosSwapRequestAmountTypedDict", Union[float, str]
|
|
38
|
-
)
|
|
39
|
-
r"""The amount of token_in to be sold."""
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
OdosSwapRequestAmount = TypeAliasType("OdosSwapRequestAmount", Union[float, str])
|
|
43
|
-
r"""The amount of token_in to be sold."""
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class OdosSwapRequestTypedDict(TypedDict):
|
|
47
|
-
token_in: OdosSwapRequestTokenInTypedDict
|
|
48
|
-
r"""The symbol or address of the token that is to be sold."""
|
|
49
|
-
token_out: OdosSwapRequestTokenOutTypedDict
|
|
50
|
-
r"""The symbol or address of the token that is to be bought."""
|
|
51
|
-
amount: OdosSwapRequestAmountTypedDict
|
|
52
|
-
r"""The amount of token_in to be sold."""
|
|
53
|
-
max_slippage_percent: float
|
|
54
|
-
r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
|
|
55
|
-
chain: Chain
|
|
56
|
-
r"""The chain to use."""
|
|
57
|
-
sender: str
|
|
58
|
-
r"""The address of the transaction sender."""
|
|
59
|
-
action_type: Literal["ODOS_SWAP"]
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
class OdosSwapRequest(BaseModel):
|
|
63
|
-
token_in: OdosSwapRequestTokenIn
|
|
64
|
-
r"""The symbol or address of the token that is to be sold."""
|
|
65
|
-
|
|
66
|
-
token_out: OdosSwapRequestTokenOut
|
|
67
|
-
r"""The symbol or address of the token that is to be bought."""
|
|
68
|
-
|
|
69
|
-
amount: OdosSwapRequestAmount
|
|
70
|
-
r"""The amount of token_in to be sold."""
|
|
71
|
-
|
|
72
|
-
max_slippage_percent: float
|
|
73
|
-
r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
|
|
74
|
-
|
|
75
|
-
chain: Chain
|
|
76
|
-
r"""The chain to use."""
|
|
77
|
-
|
|
78
|
-
sender: str
|
|
79
|
-
r"""The address of the transaction sender."""
|
|
80
|
-
|
|
81
|
-
ACTION_TYPE: Annotated[
|
|
82
|
-
Annotated[
|
|
83
|
-
Optional[Literal["ODOS_SWAP"]], AfterValidator(validate_const("ODOS_SWAP"))
|
|
84
|
-
],
|
|
85
|
-
pydantic.Field(alias="action_type"),
|
|
86
|
-
] = "ODOS_SWAP"
|