compass_api_sdk 0.9.52__py3-none-any.whl → 1.0.1__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 +78 -124
- compass_api_sdk/aerodrome_slipstream.py +86 -88
- compass_api_sdk/erc_4626_vaults.py +18 -42
- compass_api_sdk/ethena.py +880 -0
- compass_api_sdk/models/__init__.py +1050 -989
- compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_borrow_aaveborrowrequest.py → aaveborrowrequest.py} +10 -18
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +65 -0
- compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_aave_loop_request_aavelooprequest.py → aavelooprequest.py} +5 -11
- compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_repay_aaverepayrequest.py → aaverepayrequest.py} +10 -18
- compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_supply_aavesupplyrequest.py → aavesupplyrequest.py} +10 -18
- compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_withdraw_aavewithdrawrequest.py → aavewithdrawrequest.py} +11 -19
- compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_read_response_positions_aerodromelppositionsresponse.py → aerodromelppositionsresponse.py} +2 -6
- compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_swap_buy_exactly_aerodromeslipstreambuyexactlyrequest.py → aerodromeslipstreambuyexactlyrequest.py} +17 -27
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +125 -0
- compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_mint_aerodromeslipstreammintliquidityprovisionrequest.py → aerodromeslipstreammintliquidityprovisionrequest.py} +33 -39
- compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_swap_sell_exactly_aerodromeslipstreamsellexactlyrequest.py → aerodromeslipstreamsellexactlyrequest.py} +17 -27
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +66 -0
- compass_api_sdk/models/batcheduseroperationsrequest.py +36 -0
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_borrow.py → borrow.py} +2 -4
- compass_api_sdk/models/bundlertransactionresponse.py +17 -0
- compass_api_sdk/models/{compass_api_backend_config_chain_chain.py → chain.py} +1 -1
- compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py +8 -4
- compass_api_sdk/models/cooldownposition.py +35 -0
- compass_api_sdk/models/ethenadepositparams.py +82 -0
- compass_api_sdk/models/ethenadepositrequest.py +95 -0
- compass_api_sdk/models/ethenagetvaultresponse.py +109 -0
- compass_api_sdk/models/ethenarequesttowithdrawparams.py +28 -0
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +41 -0
- compass_api_sdk/models/ethenarequesttowithdrawtransactionresponse.py +37 -0
- compass_api_sdk/models/ethenawithdrawparams.py +70 -0
- compass_api_sdk/models/ethenawithdrawrequest.py +83 -0
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall.py → liquidationcall.py} +2 -6
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketposition.py → marketposition.py} +2 -6
- compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_borrow_morphoborrowrequest.py → morphoborrowrequest.py} +11 -19
- compass_api_sdk/models/morphocheckuserpositionresponse.py +32 -0
- compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_deposit_morphodepositrequest.py → morphodepositrequest.py} +11 -23
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_morphogetmarketresponse.py → morphogetmarketresponse.py} +2 -6
- compass_api_sdk/models/morphogetmarketsresponse.py +17 -0
- compass_api_sdk/models/morphogetvaultsresponse.py +17 -0
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_morphomarket.py → morphomarket.py} +2 -4
- compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_repay_morphorepayrequest.py → morphorepayrequest.py} +5 -9
- compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_supply_collateral_morphosupplycollateralrequest.py → morphosupplycollateralrequest.py} +11 -19
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_morphovault.py → morphovault.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_withdraw_collateral_morphowithdrawcollateralrequest.py → morphowithdrawcollateralrequest.py} +11 -19
- compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_withdraw_morphowithdrawrequest.py → morphowithdrawrequest.py} +5 -15
- compass_api_sdk/models/{compass_api_backend_models_multicall_read_request_get_authorization_multicallauthorizationrequest.py → multicallauthorizationrequest.py} +5 -11
- compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_multicall_execution_request_multicallexecuterequest.py → multicallexecuterequest.py} +8 -21
- compass_api_sdk/models/odosswaprequest.py +90 -0
- compass_api_sdk/models/odostransactionresponse.py +37 -0
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_openposition.py → openposition.py} +2 -4
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_pendlegetmarketresponse.py → pendlegetmarketresponse.py} +2 -4
- compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
- compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_markets_pendlemarket.py → pendlemarket.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_pendle_transact_request_redeem_yield_pendleredeemyieldrequest.py → pendleredeemyieldrequest.py} +5 -11
- compass_api_sdk/models/pendletxresponse.py +2 -11
- compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_portfolio.py → portfolio.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_position.py → position.py} +7 -18
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying.py → redeemunderlying.py} +2 -6
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_repay.py → repay.py} +2 -4
- compass_api_sdk/models/setallowanceparams.py +1 -0
- compass_api_sdk/models/setallowancerequest.py +113 -0
- compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_buy_skybuyrequest.py → skybuyrequest.py} +13 -18
- compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_deposit_skydepositrequest.py → skydepositrequest.py} +10 -22
- compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_sell_skysellrequest.py → skysellrequest.py} +13 -21
- compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_withdraw_skywithdrawrequest.py → skywithdrawrequest.py} +5 -13
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_supply.py → supply.py} +2 -4
- compass_api_sdk/models/supportedchaininfo.py +19 -0
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate.py → swapborrowrate.py} +2 -6
- compass_api_sdk/models/token_enum.py +31 -25
- compass_api_sdk/models/tokentransferparams.py +21 -21
- compass_api_sdk/models/tokentransferrequest.py +82 -0
- compass_api_sdk/models/transactionresponse.py +2 -11
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_asset.py → underlyingtoken.py} +2 -2
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +111 -0
- compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +2 -10
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +115 -0
- compass_api_sdk/models/{compass_api_backend_models_uniswap_transact_liquidity_provision_request_mint_uniswapmintliquidityprovisionrequest.py → uniswapmintliquidityprovisionrequest.py} +29 -43
- compass_api_sdk/models/uniswapsellexactlyrequest.py +111 -0
- compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +2 -10
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +67 -0
- compass_api_sdk/models/{compass_api_backend_models_generic_transact_request_unwrap_weth_unwrapwethrequest.py → unwrapwethrequest.py} +10 -22
- compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral.py → usageascollateral.py} +2 -6
- compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation.py → useroperation.py} +27 -25
- compass_api_sdk/models/v1_aave_avg_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +31 -25
- compass_api_sdk/models/v1_aave_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +31 -25
- compass_api_sdk/models/v1_aave_std_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_token_priceop.py +31 -25
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +31 -25
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +62 -50
- compass_api_sdk/models/v1_ethena_vaultop.py +75 -0
- compass_api_sdk/models/v1_generic_allowanceop.py +1 -0
- compass_api_sdk/models/v1_token_addressop.py +31 -25
- compass_api_sdk/models/v1_token_priceop.py +4 -16
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -3
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +62 -50
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +62 -50
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +62 -50
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vault.py → vault.py} +2 -4
- compass_api_sdk/models/{compass_api_backend_models_vaults_transact_request_deposit_vaultdepositrequest.py → vaultdepositrequest.py} +11 -19
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_vaultgetvaultresponse.py → vaultgetvaultresponse.py} +5 -10
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultposition.py → vaultposition.py} +5 -12
- compass_api_sdk/models/{compass_api_backend_models_vaults_transact_request_withdraw_vaultwithdrawrequest.py → vaultwithdrawrequest.py} +5 -11
- compass_api_sdk/models/{compass_api_backend_models_generic_transact_request_wrap_eth_wrapethrequest.py → wrapethrequest.py} +10 -20
- compass_api_sdk/morpho.py +82 -170
- compass_api_sdk/pendle.py +18 -56
- compass_api_sdk/sdk.py +3 -0
- compass_api_sdk/sky.py +56 -106
- compass_api_sdk/smart_account.py +10 -38
- compass_api_sdk/swap.py +16 -30
- compass_api_sdk/token_sdk.py +30 -40
- compass_api_sdk/transaction_bundler.py +26 -74
- compass_api_sdk/uniswap_v3.py +90 -106
- compass_api_sdk/universal.py +44 -92
- {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.1.dist-info}/METADATA +150 -135
- {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.1.dist-info}/RECORD +120 -108
- compass_api_sdk/models/compass_api_backend_models_aave_read_response_historical_transactions_aavehistoricaltransactionsresponse.py +0 -115
- compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_increase_aerodromeslipstreamincreaseliquidityprovisionrequest.py +0 -125
- compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_withdraw_aerodromeslipstreamwithdrawliquidityprovisionrequest.py +0 -68
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_chains_supportedchaininfo.py +0 -21
- compass_api_sdk/models/compass_api_backend_models_generic_transact_request_allowance_setallowancerequest.py +0 -139
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_check_user_position_morphocheckuserpositionresponse.py +0 -48
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_morphogetmarketsresponse.py +0 -26
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_morphogetvaultsresponse.py +0 -24
- compass_api_sdk/models/compass_api_backend_models_pendle_read_response_markets_pendlelistmarketsresponse.py +0 -24
- compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_pendlelistuserpositionsresponse.py +0 -24
- compass_api_sdk/models/compass_api_backend_models_smart_account_transact_request_user_operations_batcheduseroperationsrequest.py +0 -49
- compass_api_sdk/models/compass_api_backend_models_swap_transact_request_odos_odosswaprequest.py +0 -108
- compass_api_sdk/models/compass_api_backend_models_token_transact_request_transfer_tokentransferrequest.py +0 -98
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_increase_uniswapincreaseliquidityprovisionrequest.py +0 -129
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_withdraw_uniswapwithdrawliquidityprovisionrequest.py +0 -68
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_buy_exactly_uniswapbuyexactlyrequest.py +0 -123
- compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_sell_exactly_uniswapsellexactlyrequest.py +0 -123
- compass_api_sdk/models/tokentransfererc20params.py +0 -63
- {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.1.dist-info}/WHEEL +0 -0
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
|
-
from compass_api_sdk.types import BaseModel
|
|
6
|
-
from compass_api_sdk.utils import validate_const
|
|
7
|
-
from enum import Enum
|
|
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
|
-
CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmountTypedDict = TypeAliasType(
|
|
15
|
-
"CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmountTypedDict",
|
|
16
|
-
Union[float, str],
|
|
17
|
-
)
|
|
18
|
-
r"""Amount of token to transfer"""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmount = (
|
|
22
|
-
TypeAliasType(
|
|
23
|
-
"CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmount",
|
|
24
|
-
Union[float, str],
|
|
25
|
-
)
|
|
26
|
-
)
|
|
27
|
-
r"""Amount of token to transfer"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTokenTypedDict = TypeAliasType(
|
|
31
|
-
"CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTokenTypedDict",
|
|
32
|
-
Union[TokenEnum, str],
|
|
33
|
-
)
|
|
34
|
-
r"""The symbol of the token to transfer.."""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestToken = (
|
|
38
|
-
TypeAliasType(
|
|
39
|
-
"CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestToken",
|
|
40
|
-
Union[TokenEnum, str],
|
|
41
|
-
)
|
|
42
|
-
)
|
|
43
|
-
r"""The symbol of the token to transfer.."""
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestChain(
|
|
47
|
-
str, Enum
|
|
48
|
-
):
|
|
49
|
-
ARBITRUM = "arbitrum"
|
|
50
|
-
BASE = "base"
|
|
51
|
-
ETHEREUM = "ethereum"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTypedDict(
|
|
55
|
-
TypedDict
|
|
56
|
-
):
|
|
57
|
-
r"""Request model for transferring ETH or ERC20 tokens."""
|
|
58
|
-
|
|
59
|
-
amount: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmountTypedDict
|
|
60
|
-
r"""Amount of token to transfer"""
|
|
61
|
-
token: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTokenTypedDict
|
|
62
|
-
r"""The symbol of the token to transfer.."""
|
|
63
|
-
to: str
|
|
64
|
-
r"""The recipient of the tokens."""
|
|
65
|
-
chain: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestChain
|
|
66
|
-
sender: str
|
|
67
|
-
r"""The address of the transaction sender."""
|
|
68
|
-
action_type: Literal["TOKEN_TRANSFER"]
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
class CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequest(
|
|
72
|
-
BaseModel
|
|
73
|
-
):
|
|
74
|
-
r"""Request model for transferring ETH or ERC20 tokens."""
|
|
75
|
-
|
|
76
|
-
amount: (
|
|
77
|
-
CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmount
|
|
78
|
-
)
|
|
79
|
-
r"""Amount of token to transfer"""
|
|
80
|
-
|
|
81
|
-
token: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestToken
|
|
82
|
-
r"""The symbol of the token to transfer.."""
|
|
83
|
-
|
|
84
|
-
to: str
|
|
85
|
-
r"""The recipient of the tokens."""
|
|
86
|
-
|
|
87
|
-
chain: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestChain
|
|
88
|
-
|
|
89
|
-
sender: str
|
|
90
|
-
r"""The address of the transaction sender."""
|
|
91
|
-
|
|
92
|
-
ACTION_TYPE: Annotated[
|
|
93
|
-
Annotated[
|
|
94
|
-
Optional[Literal["TOKEN_TRANSFER"]],
|
|
95
|
-
AfterValidator(validate_const("TOKEN_TRANSFER")),
|
|
96
|
-
],
|
|
97
|
-
pydantic.Field(alias="action_type"),
|
|
98
|
-
] = "TOKEN_TRANSFER"
|
|
@@ -1,129 +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 validate_const
|
|
6
|
-
from enum import Enum
|
|
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
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
|
|
14
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict",
|
|
15
|
-
Union[float, str],
|
|
16
|
-
)
|
|
17
|
-
r"""The desired amount of the first token to deposit"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0Desired = TypeAliasType(
|
|
21
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0Desired",
|
|
22
|
-
Union[float, str],
|
|
23
|
-
)
|
|
24
|
-
r"""The desired amount of the first token to deposit"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
|
|
28
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict",
|
|
29
|
-
Union[float, str],
|
|
30
|
-
)
|
|
31
|
-
r"""The desired amount of the second token to deposit"""
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1Desired = TypeAliasType(
|
|
35
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1Desired",
|
|
36
|
-
Union[float, str],
|
|
37
|
-
)
|
|
38
|
-
r"""The desired amount of the second token to deposit"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
|
|
42
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict",
|
|
43
|
-
Union[float, str],
|
|
44
|
-
)
|
|
45
|
-
r"""The minimum amount of the first token to deposit"""
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0Min = TypeAliasType(
|
|
49
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0Min",
|
|
50
|
-
Union[float, str],
|
|
51
|
-
)
|
|
52
|
-
r"""The minimum amount of the first token to deposit"""
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
|
|
56
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict",
|
|
57
|
-
Union[float, str],
|
|
58
|
-
)
|
|
59
|
-
r"""The minimum amount of the second token to deposit"""
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
|
|
63
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1Min",
|
|
64
|
-
Union[float, str],
|
|
65
|
-
)
|
|
66
|
-
r"""The minimum amount of the second token to deposit"""
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestChain(
|
|
70
|
-
str, Enum
|
|
71
|
-
):
|
|
72
|
-
ARBITRUM = "arbitrum"
|
|
73
|
-
BASE = "base"
|
|
74
|
-
ETHEREUM = "ethereum"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestTypedDict(
|
|
78
|
-
TypedDict
|
|
79
|
-
):
|
|
80
|
-
r"""Request model for increasing liquidity provision in Uniswap V3."""
|
|
81
|
-
|
|
82
|
-
token_id: int
|
|
83
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
84
|
-
amount0_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict
|
|
85
|
-
r"""The desired amount of the first token to deposit"""
|
|
86
|
-
amount1_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict
|
|
87
|
-
r"""The desired amount of the second token to deposit"""
|
|
88
|
-
amount0_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict
|
|
89
|
-
r"""The minimum amount of the first token to deposit"""
|
|
90
|
-
amount1_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict
|
|
91
|
-
r"""The minimum amount of the second token to deposit"""
|
|
92
|
-
chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestChain
|
|
93
|
-
sender: str
|
|
94
|
-
r"""The address of the transaction sender."""
|
|
95
|
-
action_type: Literal["UNISWAP_ADD_LIQUIDITY"]
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequest(
|
|
99
|
-
BaseModel
|
|
100
|
-
):
|
|
101
|
-
r"""Request model for increasing liquidity provision in Uniswap V3."""
|
|
102
|
-
|
|
103
|
-
token_id: int
|
|
104
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
105
|
-
|
|
106
|
-
amount0_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0Desired
|
|
107
|
-
r"""The desired amount of the first token to deposit"""
|
|
108
|
-
|
|
109
|
-
amount1_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1Desired
|
|
110
|
-
r"""The desired amount of the second token to deposit"""
|
|
111
|
-
|
|
112
|
-
amount0_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount0Min
|
|
113
|
-
r"""The minimum amount of the first token to deposit"""
|
|
114
|
-
|
|
115
|
-
amount1_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestAmount1Min
|
|
116
|
-
r"""The minimum amount of the second token to deposit"""
|
|
117
|
-
|
|
118
|
-
chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestIncreaseUniswapIncreaseLiquidityProvisionRequestChain
|
|
119
|
-
|
|
120
|
-
sender: str
|
|
121
|
-
r"""The address of the transaction sender."""
|
|
122
|
-
|
|
123
|
-
ACTION_TYPE: Annotated[
|
|
124
|
-
Annotated[
|
|
125
|
-
Optional[Literal["UNISWAP_ADD_LIQUIDITY"]],
|
|
126
|
-
AfterValidator(validate_const("UNISWAP_ADD_LIQUIDITY")),
|
|
127
|
-
],
|
|
128
|
-
pydantic.Field(alias="action_type"),
|
|
129
|
-
] = "UNISWAP_ADD_LIQUIDITY"
|
|
@@ -1,68 +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 validate_const
|
|
6
|
-
from enum import Enum
|
|
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
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict = TypeAliasType(
|
|
14
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
|
|
15
|
-
Union[float, str],
|
|
16
|
-
)
|
|
17
|
-
r"""How much liquidity to take out in percentage."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal = TypeAliasType(
|
|
21
|
-
"CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal",
|
|
22
|
-
Union[float, str],
|
|
23
|
-
)
|
|
24
|
-
r"""How much liquidity to take out in percentage."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestChain(
|
|
28
|
-
str, Enum
|
|
29
|
-
):
|
|
30
|
-
ARBITRUM = "arbitrum"
|
|
31
|
-
BASE = "base"
|
|
32
|
-
ETHEREUM = "ethereum"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestTypedDict(
|
|
36
|
-
TypedDict
|
|
37
|
-
):
|
|
38
|
-
token_id: int
|
|
39
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
40
|
-
percentage_for_withdrawal: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict
|
|
41
|
-
r"""How much liquidity to take out in percentage."""
|
|
42
|
-
chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestChain
|
|
43
|
-
sender: str
|
|
44
|
-
r"""The address of the transaction sender."""
|
|
45
|
-
action_type: Literal["UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"]
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequest(
|
|
49
|
-
BaseModel
|
|
50
|
-
):
|
|
51
|
-
token_id: int
|
|
52
|
-
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
53
|
-
|
|
54
|
-
percentage_for_withdrawal: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal
|
|
55
|
-
r"""How much liquidity to take out in percentage."""
|
|
56
|
-
|
|
57
|
-
chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestWithdrawUniswapWithdrawLiquidityProvisionRequestChain
|
|
58
|
-
|
|
59
|
-
sender: str
|
|
60
|
-
r"""The address of the transaction sender."""
|
|
61
|
-
|
|
62
|
-
ACTION_TYPE: Annotated[
|
|
63
|
-
Annotated[
|
|
64
|
-
Optional[Literal["UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"]],
|
|
65
|
-
AfterValidator(validate_const("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")),
|
|
66
|
-
],
|
|
67
|
-
pydantic.Field(alias="action_type"),
|
|
68
|
-
] = "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
|
-
from compass_api_sdk.types import BaseModel
|
|
7
|
-
from compass_api_sdk.utils import validate_const
|
|
8
|
-
from enum import Enum
|
|
9
|
-
import pydantic
|
|
10
|
-
from pydantic.functional_validators import AfterValidator
|
|
11
|
-
from typing import Literal, Optional, Union
|
|
12
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenInTypedDict = TypeAliasType(
|
|
16
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenInTypedDict",
|
|
17
|
-
Union[TokenEnum, str],
|
|
18
|
-
)
|
|
19
|
-
r"""The symbol or address of the token to swap from."""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenIn = TypeAliasType(
|
|
23
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenIn",
|
|
24
|
-
Union[TokenEnum, str],
|
|
25
|
-
)
|
|
26
|
-
r"""The symbol or address of the token to swap from."""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenOutTypedDict = TypeAliasType(
|
|
30
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenOutTypedDict",
|
|
31
|
-
Union[TokenEnum, str],
|
|
32
|
-
)
|
|
33
|
-
r"""The symbol or address of the token to swap to."""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenOut = TypeAliasType(
|
|
37
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenOut",
|
|
38
|
-
Union[TokenEnum, str],
|
|
39
|
-
)
|
|
40
|
-
r"""The symbol or address of the token to swap to."""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
44
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestAmountOutTypedDict",
|
|
45
|
-
Union[float, str],
|
|
46
|
-
)
|
|
47
|
-
r"""The amount of 'token_out' to buy."""
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestAmountOut = TypeAliasType(
|
|
51
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestAmountOut",
|
|
52
|
-
Union[float, str],
|
|
53
|
-
)
|
|
54
|
-
r"""The amount of 'token_out' to buy."""
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
class CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestChain(
|
|
58
|
-
str, Enum
|
|
59
|
-
):
|
|
60
|
-
ARBITRUM = "arbitrum"
|
|
61
|
-
BASE = "base"
|
|
62
|
-
ETHEREUM = "ethereum"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTypedDict(
|
|
66
|
-
TypedDict
|
|
67
|
-
):
|
|
68
|
-
r"""Request model for buying an exact amount of tokens."""
|
|
69
|
-
|
|
70
|
-
token_in: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenInTypedDict
|
|
71
|
-
r"""The symbol or address of the token to swap from."""
|
|
72
|
-
token_out: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenOutTypedDict
|
|
73
|
-
r"""The symbol or address of the token to swap to."""
|
|
74
|
-
fee: FeeEnum
|
|
75
|
-
r"""The transaction fee of a Uniswap pool in bips.
|
|
76
|
-
|
|
77
|
-
Uniswap supports 4 different fee levels.
|
|
78
|
-
"""
|
|
79
|
-
amount_out: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestAmountOutTypedDict
|
|
80
|
-
r"""The amount of 'token_out' to buy."""
|
|
81
|
-
max_slippage_percent: float
|
|
82
|
-
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
83
|
-
chain: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestChain
|
|
84
|
-
sender: str
|
|
85
|
-
r"""The address of the transaction sender."""
|
|
86
|
-
action_type: Literal["UNISWAP_BUY_EXACTLY"]
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
class CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequest(
|
|
90
|
-
BaseModel
|
|
91
|
-
):
|
|
92
|
-
r"""Request model for buying an exact amount of tokens."""
|
|
93
|
-
|
|
94
|
-
token_in: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenIn
|
|
95
|
-
r"""The symbol or address of the token to swap from."""
|
|
96
|
-
|
|
97
|
-
token_out: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestTokenOut
|
|
98
|
-
r"""The symbol or address of the token to swap to."""
|
|
99
|
-
|
|
100
|
-
fee: FeeEnum
|
|
101
|
-
r"""The transaction fee of a Uniswap pool in bips.
|
|
102
|
-
|
|
103
|
-
Uniswap supports 4 different fee levels.
|
|
104
|
-
"""
|
|
105
|
-
|
|
106
|
-
amount_out: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestAmountOut
|
|
107
|
-
r"""The amount of 'token_out' to buy."""
|
|
108
|
-
|
|
109
|
-
max_slippage_percent: float
|
|
110
|
-
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
111
|
-
|
|
112
|
-
chain: CompassAPIBackendModelsUniswapTransactSwapRequestBuyExactlyUniswapBuyExactlyRequestChain
|
|
113
|
-
|
|
114
|
-
sender: str
|
|
115
|
-
r"""The address of the transaction sender."""
|
|
116
|
-
|
|
117
|
-
ACTION_TYPE: Annotated[
|
|
118
|
-
Annotated[
|
|
119
|
-
Optional[Literal["UNISWAP_BUY_EXACTLY"]],
|
|
120
|
-
AfterValidator(validate_const("UNISWAP_BUY_EXACTLY")),
|
|
121
|
-
],
|
|
122
|
-
pydantic.Field(alias="action_type"),
|
|
123
|
-
] = "UNISWAP_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 .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
|
-
from compass_api_sdk.types import BaseModel
|
|
7
|
-
from compass_api_sdk.utils import validate_const
|
|
8
|
-
from enum import Enum
|
|
9
|
-
import pydantic
|
|
10
|
-
from pydantic.functional_validators import AfterValidator
|
|
11
|
-
from typing import Literal, Optional, Union
|
|
12
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenInTypedDict = TypeAliasType(
|
|
16
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenInTypedDict",
|
|
17
|
-
Union[TokenEnum, str],
|
|
18
|
-
)
|
|
19
|
-
r"""The symbol or address of the token to sell.."""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenIn = TypeAliasType(
|
|
23
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenIn",
|
|
24
|
-
Union[TokenEnum, str],
|
|
25
|
-
)
|
|
26
|
-
r"""The symbol or address of the token to sell.."""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenOutTypedDict = TypeAliasType(
|
|
30
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenOutTypedDict",
|
|
31
|
-
Union[TokenEnum, str],
|
|
32
|
-
)
|
|
33
|
-
r"""The symbol or address of the token to buy.."""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenOut = TypeAliasType(
|
|
37
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenOut",
|
|
38
|
-
Union[TokenEnum, str],
|
|
39
|
-
)
|
|
40
|
-
r"""The symbol or address of the token to buy.."""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestAmountInTypedDict = TypeAliasType(
|
|
44
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestAmountInTypedDict",
|
|
45
|
-
Union[float, str],
|
|
46
|
-
)
|
|
47
|
-
r"""The amount of the `token_in` to sell"""
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestAmountIn = TypeAliasType(
|
|
51
|
-
"CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestAmountIn",
|
|
52
|
-
Union[float, str],
|
|
53
|
-
)
|
|
54
|
-
r"""The amount of the `token_in` to sell"""
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
class CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestChain(
|
|
58
|
-
str, Enum
|
|
59
|
-
):
|
|
60
|
-
ARBITRUM = "arbitrum"
|
|
61
|
-
BASE = "base"
|
|
62
|
-
ETHEREUM = "ethereum"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTypedDict(
|
|
66
|
-
TypedDict
|
|
67
|
-
):
|
|
68
|
-
r"""Request model for selling exactly an amount of tokens."""
|
|
69
|
-
|
|
70
|
-
token_in: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenInTypedDict
|
|
71
|
-
r"""The symbol or address of the token to sell.."""
|
|
72
|
-
token_out: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenOutTypedDict
|
|
73
|
-
r"""The symbol or address of the token to buy.."""
|
|
74
|
-
fee: FeeEnum
|
|
75
|
-
r"""The transaction fee of a Uniswap pool in bips.
|
|
76
|
-
|
|
77
|
-
Uniswap supports 4 different fee levels.
|
|
78
|
-
"""
|
|
79
|
-
amount_in: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestAmountInTypedDict
|
|
80
|
-
r"""The amount of the `token_in` to sell"""
|
|
81
|
-
max_slippage_percent: float
|
|
82
|
-
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
83
|
-
chain: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestChain
|
|
84
|
-
sender: str
|
|
85
|
-
r"""The address of the transaction sender."""
|
|
86
|
-
action_type: Literal["UNISWAP_SELL_EXACTLY"]
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
class CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequest(
|
|
90
|
-
BaseModel
|
|
91
|
-
):
|
|
92
|
-
r"""Request model for selling exactly an amount of tokens."""
|
|
93
|
-
|
|
94
|
-
token_in: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenIn
|
|
95
|
-
r"""The symbol or address of the token to sell.."""
|
|
96
|
-
|
|
97
|
-
token_out: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestTokenOut
|
|
98
|
-
r"""The symbol or address of the token to buy.."""
|
|
99
|
-
|
|
100
|
-
fee: FeeEnum
|
|
101
|
-
r"""The transaction fee of a Uniswap pool in bips.
|
|
102
|
-
|
|
103
|
-
Uniswap supports 4 different fee levels.
|
|
104
|
-
"""
|
|
105
|
-
|
|
106
|
-
amount_in: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestAmountIn
|
|
107
|
-
r"""The amount of the `token_in` to sell"""
|
|
108
|
-
|
|
109
|
-
max_slippage_percent: float
|
|
110
|
-
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
111
|
-
|
|
112
|
-
chain: CompassAPIBackendModelsUniswapTransactSwapRequestSellExactlyUniswapSellExactlyRequestChain
|
|
113
|
-
|
|
114
|
-
sender: str
|
|
115
|
-
r"""The address of the transaction sender."""
|
|
116
|
-
|
|
117
|
-
ACTION_TYPE: Annotated[
|
|
118
|
-
Annotated[
|
|
119
|
-
Optional[Literal["UNISWAP_SELL_EXACTLY"]],
|
|
120
|
-
AfterValidator(validate_const("UNISWAP_SELL_EXACTLY")),
|
|
121
|
-
],
|
|
122
|
-
pydantic.Field(alias="action_type"),
|
|
123
|
-
] = "UNISWAP_SELL_EXACTLY"
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
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
|
-
TokenTransferErc20ParamsAmountTypedDict = TypeAliasType(
|
|
14
|
-
"TokenTransferErc20ParamsAmountTypedDict", Union[float, str]
|
|
15
|
-
)
|
|
16
|
-
r"""Amount of token to transfer"""
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
TokenTransferErc20ParamsAmount = TypeAliasType(
|
|
20
|
-
"TokenTransferErc20ParamsAmount", Union[float, str]
|
|
21
|
-
)
|
|
22
|
-
r"""Amount of token to transfer"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class TokenTransferErc20ParamsTypedDict(TypedDict):
|
|
26
|
-
r"""Parameters model for transferring ERC20 tokens."""
|
|
27
|
-
|
|
28
|
-
amount: TokenTransferErc20ParamsAmountTypedDict
|
|
29
|
-
r"""Amount of token to transfer"""
|
|
30
|
-
token: TokenEnum
|
|
31
|
-
r"""A class representing the token.
|
|
32
|
-
|
|
33
|
-
This class is used to represent the token in the system. Notice individual
|
|
34
|
-
endpoints' documentation where per chain tokens are presented.
|
|
35
|
-
"""
|
|
36
|
-
to: str
|
|
37
|
-
r"""The recipient of the tokens."""
|
|
38
|
-
action_type: Literal["TOKEN_TRANSFER_ERC20"]
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class TokenTransferErc20Params(BaseModel):
|
|
42
|
-
r"""Parameters model for transferring ERC20 tokens."""
|
|
43
|
-
|
|
44
|
-
amount: TokenTransferErc20ParamsAmount
|
|
45
|
-
r"""Amount of token to transfer"""
|
|
46
|
-
|
|
47
|
-
token: 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
|
-
|
|
54
|
-
to: str
|
|
55
|
-
r"""The recipient of the tokens."""
|
|
56
|
-
|
|
57
|
-
ACTION_TYPE: Annotated[
|
|
58
|
-
Annotated[
|
|
59
|
-
Optional[Literal["TOKEN_TRANSFER_ERC20"]],
|
|
60
|
-
AfterValidator(validate_const("TOKEN_TRANSFER_ERC20")),
|
|
61
|
-
],
|
|
62
|
-
pydantic.Field(alias="action_type"),
|
|
63
|
-
] = "TOKEN_TRANSFER_ERC20"
|
|
File without changes
|