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
|
@@ -10,53 +10,53 @@ from typing import Literal, Optional, Union
|
|
|
10
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
"
|
|
13
|
+
TokenTransferParamsTokenTypedDict = TypeAliasType(
|
|
14
|
+
"TokenTransferParamsTokenTypedDict", Union[TokenEnum, str]
|
|
15
15
|
)
|
|
16
|
-
r"""
|
|
16
|
+
r"""The symbol or address of the token to transfer."""
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
"
|
|
19
|
+
TokenTransferParamsToken = TypeAliasType(
|
|
20
|
+
"TokenTransferParamsToken", Union[TokenEnum, str]
|
|
21
21
|
)
|
|
22
|
-
r"""
|
|
22
|
+
r"""The symbol or address of the token to transfer."""
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
"
|
|
25
|
+
TokenTransferParamsAmountTypedDict = TypeAliasType(
|
|
26
|
+
"TokenTransferParamsAmountTypedDict", Union[float, str]
|
|
27
27
|
)
|
|
28
|
-
r"""
|
|
28
|
+
r"""Amount of token to transfer"""
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
"
|
|
31
|
+
TokenTransferParamsAmount = TypeAliasType(
|
|
32
|
+
"TokenTransferParamsAmount", Union[float, str]
|
|
33
33
|
)
|
|
34
|
-
r"""
|
|
34
|
+
r"""Amount of token to transfer"""
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class TokenTransferParamsTypedDict(TypedDict):
|
|
38
38
|
r"""Parameters model for transferring ETH or ERC20 tokens."""
|
|
39
39
|
|
|
40
|
-
amount: TokenTransferParamsAmountTypedDict
|
|
41
|
-
r"""Amount of token to transfer"""
|
|
42
|
-
token: TokenTransferParamsTokenTypedDict
|
|
43
|
-
r"""The symbol of the token to transfer.."""
|
|
44
40
|
to: str
|
|
45
41
|
r"""The recipient of the tokens."""
|
|
42
|
+
token: TokenTransferParamsTokenTypedDict
|
|
43
|
+
r"""The symbol or address of the token to transfer."""
|
|
44
|
+
amount: TokenTransferParamsAmountTypedDict
|
|
45
|
+
r"""Amount of token to transfer"""
|
|
46
46
|
action_type: Literal["TOKEN_TRANSFER"]
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
class TokenTransferParams(BaseModel):
|
|
50
50
|
r"""Parameters model for transferring ETH or ERC20 tokens."""
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
r"""
|
|
52
|
+
to: str
|
|
53
|
+
r"""The recipient of the tokens."""
|
|
54
54
|
|
|
55
55
|
token: TokenTransferParamsToken
|
|
56
|
-
r"""The symbol of the token to transfer
|
|
56
|
+
r"""The symbol or address of the token to transfer."""
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
r"""
|
|
58
|
+
amount: TokenTransferParamsAmount
|
|
59
|
+
r"""Amount of token to transfer"""
|
|
60
60
|
|
|
61
61
|
ACTION_TYPE: Annotated[
|
|
62
62
|
Annotated[
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
TokenTransferRequestTokenTypedDict = TypeAliasType(
|
|
15
|
+
"TokenTransferRequestTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
+
)
|
|
17
|
+
r"""The symbol or address of the token to transfer."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
TokenTransferRequestToken = TypeAliasType(
|
|
21
|
+
"TokenTransferRequestToken", Union[TokenEnum, str]
|
|
22
|
+
)
|
|
23
|
+
r"""The symbol or address of the token to transfer."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
TokenTransferRequestAmountTypedDict = TypeAliasType(
|
|
27
|
+
"TokenTransferRequestAmountTypedDict", Union[float, str]
|
|
28
|
+
)
|
|
29
|
+
r"""Amount of token to transfer"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
TokenTransferRequestAmount = TypeAliasType(
|
|
33
|
+
"TokenTransferRequestAmount", Union[float, str]
|
|
34
|
+
)
|
|
35
|
+
r"""Amount of token to transfer"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class TokenTransferRequestChain(str, Enum):
|
|
39
|
+
ARBITRUM = "arbitrum"
|
|
40
|
+
BASE = "base"
|
|
41
|
+
ETHEREUM = "ethereum"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class TokenTransferRequestTypedDict(TypedDict):
|
|
45
|
+
r"""Request model for transferring ETH or ERC20 tokens."""
|
|
46
|
+
|
|
47
|
+
to: str
|
|
48
|
+
r"""The recipient of the tokens."""
|
|
49
|
+
token: TokenTransferRequestTokenTypedDict
|
|
50
|
+
r"""The symbol or address of the token to transfer."""
|
|
51
|
+
amount: TokenTransferRequestAmountTypedDict
|
|
52
|
+
r"""Amount of token to transfer"""
|
|
53
|
+
chain: TokenTransferRequestChain
|
|
54
|
+
sender: str
|
|
55
|
+
r"""The address of the transaction sender."""
|
|
56
|
+
action_type: Literal["TOKEN_TRANSFER"]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class TokenTransferRequest(BaseModel):
|
|
60
|
+
r"""Request model for transferring ETH or ERC20 tokens."""
|
|
61
|
+
|
|
62
|
+
to: str
|
|
63
|
+
r"""The recipient of the tokens."""
|
|
64
|
+
|
|
65
|
+
token: TokenTransferRequestToken
|
|
66
|
+
r"""The symbol or address of the token to transfer."""
|
|
67
|
+
|
|
68
|
+
amount: TokenTransferRequestAmount
|
|
69
|
+
r"""Amount of token to transfer"""
|
|
70
|
+
|
|
71
|
+
chain: TokenTransferRequestChain
|
|
72
|
+
|
|
73
|
+
sender: str
|
|
74
|
+
r"""The address of the transaction sender."""
|
|
75
|
+
|
|
76
|
+
ACTION_TYPE: Annotated[
|
|
77
|
+
Annotated[
|
|
78
|
+
Optional[Literal["TOKEN_TRANSFER"]],
|
|
79
|
+
AfterValidator(validate_const("TOKEN_TRANSFER")),
|
|
80
|
+
],
|
|
81
|
+
pydantic.Field(alias="action_type"),
|
|
82
|
+
] = "TOKEN_TRANSFER"
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .unsignedmulticalltransaction import (
|
|
5
|
-
UnsignedMulticallTransaction,
|
|
6
|
-
UnsignedMulticallTransactionTypedDict,
|
|
7
|
-
)
|
|
8
4
|
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
9
5
|
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
10
6
|
from compass_api_sdk.types import BaseModel
|
|
@@ -14,18 +10,13 @@ from typing_extensions import TypeAliasType, TypedDict
|
|
|
14
10
|
|
|
15
11
|
TransactionResponseTransactionTypedDict = TypeAliasType(
|
|
16
12
|
"TransactionResponseTransactionTypedDict",
|
|
17
|
-
Union[
|
|
18
|
-
UserOperationResponseTypedDict,
|
|
19
|
-
UnsignedTransactionTypedDict,
|
|
20
|
-
UnsignedMulticallTransactionTypedDict,
|
|
21
|
-
],
|
|
13
|
+
Union[UserOperationResponseTypedDict, UnsignedTransactionTypedDict],
|
|
22
14
|
)
|
|
23
15
|
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
24
16
|
|
|
25
17
|
|
|
26
18
|
TransactionResponseTransaction = TypeAliasType(
|
|
27
|
-
"TransactionResponseTransaction",
|
|
28
|
-
Union[UserOperationResponse, UnsignedTransaction, UnsignedMulticallTransaction],
|
|
19
|
+
"TransactionResponseTransaction", Union[UserOperationResponse, UnsignedTransaction]
|
|
29
20
|
)
|
|
30
21
|
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
31
22
|
|
|
@@ -5,14 +5,14 @@ from compass_api_sdk.types import BaseModel
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class UnderlyingTokenTypedDict(TypedDict):
|
|
9
9
|
address: str
|
|
10
10
|
name: str
|
|
11
11
|
symbol: str
|
|
12
12
|
decimals: int
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class UnderlyingToken(BaseModel):
|
|
16
16
|
address: str
|
|
17
17
|
|
|
18
18
|
name: str
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
UniswapBuyExactlyRequestTokenInTypedDict = TypeAliasType(
|
|
16
|
+
"UniswapBuyExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
|
|
17
|
+
)
|
|
18
|
+
r"""The symbol or address of the token to swap from."""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
UniswapBuyExactlyRequestTokenIn = TypeAliasType(
|
|
22
|
+
"UniswapBuyExactlyRequestTokenIn", Union[TokenEnum, str]
|
|
23
|
+
)
|
|
24
|
+
r"""The symbol or address of the token to swap from."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
UniswapBuyExactlyRequestTokenOutTypedDict = TypeAliasType(
|
|
28
|
+
"UniswapBuyExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
|
|
29
|
+
)
|
|
30
|
+
r"""The symbol or address of the token to swap to."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
UniswapBuyExactlyRequestTokenOut = TypeAliasType(
|
|
34
|
+
"UniswapBuyExactlyRequestTokenOut", Union[TokenEnum, str]
|
|
35
|
+
)
|
|
36
|
+
r"""The symbol or address of the token to swap to."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
40
|
+
"UniswapBuyExactlyRequestAmountOutTypedDict", Union[float, str]
|
|
41
|
+
)
|
|
42
|
+
r"""The amount of 'token_out' to buy."""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
UniswapBuyExactlyRequestAmountOut = TypeAliasType(
|
|
46
|
+
"UniswapBuyExactlyRequestAmountOut", Union[float, str]
|
|
47
|
+
)
|
|
48
|
+
r"""The amount of 'token_out' to buy."""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class UniswapBuyExactlyRequestChain(str, Enum):
|
|
52
|
+
ARBITRUM = "arbitrum"
|
|
53
|
+
BASE = "base"
|
|
54
|
+
ETHEREUM = "ethereum"
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
58
|
+
r"""Request model for buying an exact amount of tokens."""
|
|
59
|
+
|
|
60
|
+
token_in: UniswapBuyExactlyRequestTokenInTypedDict
|
|
61
|
+
r"""The symbol or address of the token to swap from."""
|
|
62
|
+
token_out: UniswapBuyExactlyRequestTokenOutTypedDict
|
|
63
|
+
r"""The symbol or address of the token to swap to."""
|
|
64
|
+
fee: FeeEnum
|
|
65
|
+
r"""The transaction fee of a Uniswap pool in bips.
|
|
66
|
+
|
|
67
|
+
Uniswap supports 4 different fee levels.
|
|
68
|
+
"""
|
|
69
|
+
amount_out: UniswapBuyExactlyRequestAmountOutTypedDict
|
|
70
|
+
r"""The amount of 'token_out' to buy."""
|
|
71
|
+
max_slippage_percent: float
|
|
72
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
73
|
+
chain: UniswapBuyExactlyRequestChain
|
|
74
|
+
sender: str
|
|
75
|
+
r"""The address of the transaction sender."""
|
|
76
|
+
action_type: Literal["UNISWAP_BUY_EXACTLY"]
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class UniswapBuyExactlyRequest(BaseModel):
|
|
80
|
+
r"""Request model for buying an exact amount of tokens."""
|
|
81
|
+
|
|
82
|
+
token_in: UniswapBuyExactlyRequestTokenIn
|
|
83
|
+
r"""The symbol or address of the token to swap from."""
|
|
84
|
+
|
|
85
|
+
token_out: UniswapBuyExactlyRequestTokenOut
|
|
86
|
+
r"""The symbol or address of the token to swap to."""
|
|
87
|
+
|
|
88
|
+
fee: FeeEnum
|
|
89
|
+
r"""The transaction fee of a Uniswap pool in bips.
|
|
90
|
+
|
|
91
|
+
Uniswap supports 4 different fee levels.
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
amount_out: UniswapBuyExactlyRequestAmountOut
|
|
95
|
+
r"""The amount of 'token_out' to buy."""
|
|
96
|
+
|
|
97
|
+
max_slippage_percent: float
|
|
98
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
99
|
+
|
|
100
|
+
chain: UniswapBuyExactlyRequestChain
|
|
101
|
+
|
|
102
|
+
sender: str
|
|
103
|
+
r"""The address of the transaction sender."""
|
|
104
|
+
|
|
105
|
+
ACTION_TYPE: Annotated[
|
|
106
|
+
Annotated[
|
|
107
|
+
Optional[Literal["UNISWAP_BUY_EXACTLY"]],
|
|
108
|
+
AfterValidator(validate_const("UNISWAP_BUY_EXACTLY")),
|
|
109
|
+
],
|
|
110
|
+
pydantic.Field(alias="action_type"),
|
|
111
|
+
] = "UNISWAP_BUY_EXACTLY"
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .unsignedmulticalltransaction import (
|
|
5
|
-
UnsignedMulticallTransaction,
|
|
6
|
-
UnsignedMulticallTransactionTypedDict,
|
|
7
|
-
)
|
|
8
4
|
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
9
5
|
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
10
6
|
from compass_api_sdk.types import BaseModel
|
|
@@ -14,18 +10,14 @@ from typing_extensions import TypeAliasType, TypedDict
|
|
|
14
10
|
|
|
15
11
|
UniswapBuyExactlyTransactionResponseTransactionTypedDict = TypeAliasType(
|
|
16
12
|
"UniswapBuyExactlyTransactionResponseTransactionTypedDict",
|
|
17
|
-
Union[
|
|
18
|
-
UserOperationResponseTypedDict,
|
|
19
|
-
UnsignedTransactionTypedDict,
|
|
20
|
-
UnsignedMulticallTransactionTypedDict,
|
|
21
|
-
],
|
|
13
|
+
Union[UserOperationResponseTypedDict, UnsignedTransactionTypedDict],
|
|
22
14
|
)
|
|
23
15
|
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
24
16
|
|
|
25
17
|
|
|
26
18
|
UniswapBuyExactlyTransactionResponseTransaction = TypeAliasType(
|
|
27
19
|
"UniswapBuyExactlyTransactionResponseTransaction",
|
|
28
|
-
Union[UserOperationResponse, UnsignedTransaction
|
|
20
|
+
Union[UserOperationResponse, UnsignedTransaction],
|
|
29
21
|
)
|
|
30
22
|
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
31
23
|
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_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
|
+
UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
|
|
14
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict", Union[float, str]
|
|
15
|
+
)
|
|
16
|
+
r"""The desired amount of the first token to deposit"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
UniswapIncreaseLiquidityProvisionRequestAmount0Desired = TypeAliasType(
|
|
20
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount0Desired", Union[float, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The desired amount of the first token to deposit"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
|
|
26
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict", Union[float, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The desired amount of the second token to deposit"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
UniswapIncreaseLiquidityProvisionRequestAmount1Desired = TypeAliasType(
|
|
32
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount1Desired", Union[float, str]
|
|
33
|
+
)
|
|
34
|
+
r"""The desired amount of the second token to deposit"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
|
|
38
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict", Union[float, str]
|
|
39
|
+
)
|
|
40
|
+
r"""The minimum amount of the first token to deposit"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
UniswapIncreaseLiquidityProvisionRequestAmount0Min = TypeAliasType(
|
|
44
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount0Min", Union[float, str]
|
|
45
|
+
)
|
|
46
|
+
r"""The minimum amount of the first token to deposit"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
|
|
50
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict", Union[float, str]
|
|
51
|
+
)
|
|
52
|
+
r"""The minimum amount of the second token to deposit"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
UniswapIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
|
|
56
|
+
"UniswapIncreaseLiquidityProvisionRequestAmount1Min", Union[float, str]
|
|
57
|
+
)
|
|
58
|
+
r"""The minimum amount of the second token to deposit"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class UniswapIncreaseLiquidityProvisionRequestChain(str, Enum):
|
|
62
|
+
ARBITRUM = "arbitrum"
|
|
63
|
+
BASE = "base"
|
|
64
|
+
ETHEREUM = "ethereum"
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
68
|
+
r"""Request model for increasing liquidity provision in Uniswap V3."""
|
|
69
|
+
|
|
70
|
+
token_id: int
|
|
71
|
+
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
72
|
+
amount0_desired: UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict
|
|
73
|
+
r"""The desired amount of the first token to deposit"""
|
|
74
|
+
amount1_desired: UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict
|
|
75
|
+
r"""The desired amount of the second token to deposit"""
|
|
76
|
+
amount0_min: UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict
|
|
77
|
+
r"""The minimum amount of the first token to deposit"""
|
|
78
|
+
amount1_min: UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict
|
|
79
|
+
r"""The minimum amount of the second token to deposit"""
|
|
80
|
+
chain: UniswapIncreaseLiquidityProvisionRequestChain
|
|
81
|
+
sender: str
|
|
82
|
+
r"""The address of the transaction sender."""
|
|
83
|
+
action_type: Literal["UNISWAP_ADD_LIQUIDITY"]
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
|
|
87
|
+
r"""Request model for increasing liquidity provision in Uniswap V3."""
|
|
88
|
+
|
|
89
|
+
token_id: int
|
|
90
|
+
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
91
|
+
|
|
92
|
+
amount0_desired: UniswapIncreaseLiquidityProvisionRequestAmount0Desired
|
|
93
|
+
r"""The desired amount of the first token to deposit"""
|
|
94
|
+
|
|
95
|
+
amount1_desired: UniswapIncreaseLiquidityProvisionRequestAmount1Desired
|
|
96
|
+
r"""The desired amount of the second token to deposit"""
|
|
97
|
+
|
|
98
|
+
amount0_min: UniswapIncreaseLiquidityProvisionRequestAmount0Min
|
|
99
|
+
r"""The minimum amount of the first token to deposit"""
|
|
100
|
+
|
|
101
|
+
amount1_min: UniswapIncreaseLiquidityProvisionRequestAmount1Min
|
|
102
|
+
r"""The minimum amount of the second token to deposit"""
|
|
103
|
+
|
|
104
|
+
chain: UniswapIncreaseLiquidityProvisionRequestChain
|
|
105
|
+
|
|
106
|
+
sender: str
|
|
107
|
+
r"""The address of the transaction sender."""
|
|
108
|
+
|
|
109
|
+
ACTION_TYPE: Annotated[
|
|
110
|
+
Annotated[
|
|
111
|
+
Optional[Literal["UNISWAP_ADD_LIQUIDITY"]],
|
|
112
|
+
AfterValidator(validate_const("UNISWAP_ADD_LIQUIDITY")),
|
|
113
|
+
],
|
|
114
|
+
pydantic.Field(alias="action_type"),
|
|
115
|
+
] = "UNISWAP_ADD_LIQUIDITY"
|
|
@@ -19,73 +19,61 @@ from typing import Literal, Optional, Union
|
|
|
19
19
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
Union[float, str],
|
|
22
|
+
UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
|
|
23
|
+
"UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict", Union[float, str]
|
|
25
24
|
)
|
|
26
25
|
r"""The desired amount of the first token to deposit"""
|
|
27
26
|
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
Union[float, str],
|
|
28
|
+
UniswapMintLiquidityProvisionRequestAmount0Desired = TypeAliasType(
|
|
29
|
+
"UniswapMintLiquidityProvisionRequestAmount0Desired", Union[float, str]
|
|
32
30
|
)
|
|
33
31
|
r"""The desired amount of the first token to deposit"""
|
|
34
32
|
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
Union[float, str],
|
|
34
|
+
UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
|
|
35
|
+
"UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict", Union[float, str]
|
|
39
36
|
)
|
|
40
37
|
r"""The desired amount of the second token to deposit"""
|
|
41
38
|
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
Union[float, str],
|
|
40
|
+
UniswapMintLiquidityProvisionRequestAmount1Desired = TypeAliasType(
|
|
41
|
+
"UniswapMintLiquidityProvisionRequestAmount1Desired", Union[float, str]
|
|
46
42
|
)
|
|
47
43
|
r"""The desired amount of the second token to deposit"""
|
|
48
44
|
|
|
49
45
|
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
Union[float, str],
|
|
46
|
+
UniswapMintLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
|
|
47
|
+
"UniswapMintLiquidityProvisionRequestAmount0MinTypedDict", Union[float, str]
|
|
53
48
|
)
|
|
54
49
|
r"""The minimum amount of the first token to deposit"""
|
|
55
50
|
|
|
56
51
|
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
Union[float, str],
|
|
52
|
+
UniswapMintLiquidityProvisionRequestAmount0Min = TypeAliasType(
|
|
53
|
+
"UniswapMintLiquidityProvisionRequestAmount0Min", Union[float, str]
|
|
60
54
|
)
|
|
61
55
|
r"""The minimum amount of the first token to deposit"""
|
|
62
56
|
|
|
63
57
|
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
Union[float, str],
|
|
58
|
+
UniswapMintLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
|
|
59
|
+
"UniswapMintLiquidityProvisionRequestAmount1MinTypedDict", Union[float, str]
|
|
67
60
|
)
|
|
68
61
|
r"""The minimum amount of the second token to deposit"""
|
|
69
62
|
|
|
70
63
|
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
Union[float, str],
|
|
64
|
+
UniswapMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
|
|
65
|
+
"UniswapMintLiquidityProvisionRequestAmount1Min", Union[float, str]
|
|
74
66
|
)
|
|
75
67
|
r"""The minimum amount of the second token to deposit"""
|
|
76
68
|
|
|
77
69
|
|
|
78
|
-
class
|
|
79
|
-
str, Enum
|
|
80
|
-
):
|
|
70
|
+
class UniswapMintLiquidityProvisionRequestChain(str, Enum):
|
|
81
71
|
ARBITRUM = "arbitrum"
|
|
82
72
|
BASE = "base"
|
|
83
73
|
ETHEREUM = "ethereum"
|
|
84
74
|
|
|
85
75
|
|
|
86
|
-
class
|
|
87
|
-
TypedDict
|
|
88
|
-
):
|
|
76
|
+
class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
89
77
|
r"""Request model for minting a new liquidity position."""
|
|
90
78
|
|
|
91
79
|
token0: TokenEnum
|
|
@@ -109,15 +97,15 @@ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswap
|
|
|
109
97
|
r"""The lower tick of the range to mint the position in"""
|
|
110
98
|
tick_upper: int
|
|
111
99
|
r"""The upper tick of the range to mint the position in"""
|
|
112
|
-
amount0_desired:
|
|
100
|
+
amount0_desired: UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict
|
|
113
101
|
r"""The desired amount of the first token to deposit"""
|
|
114
|
-
amount1_desired:
|
|
102
|
+
amount1_desired: UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict
|
|
115
103
|
r"""The desired amount of the second token to deposit"""
|
|
116
|
-
amount0_min:
|
|
104
|
+
amount0_min: UniswapMintLiquidityProvisionRequestAmount0MinTypedDict
|
|
117
105
|
r"""The minimum amount of the first token to deposit"""
|
|
118
|
-
amount1_min:
|
|
106
|
+
amount1_min: UniswapMintLiquidityProvisionRequestAmount1MinTypedDict
|
|
119
107
|
r"""The minimum amount of the second token to deposit"""
|
|
120
|
-
chain:
|
|
108
|
+
chain: UniswapMintLiquidityProvisionRequestChain
|
|
121
109
|
sender: str
|
|
122
110
|
r"""The address of the transaction sender."""
|
|
123
111
|
action_type: Literal["UNISWAP_MINT_LIQUIDITY_PROVISION"]
|
|
@@ -125,9 +113,7 @@ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswap
|
|
|
125
113
|
r"""The address that will receive the LP tokens"""
|
|
126
114
|
|
|
127
115
|
|
|
128
|
-
class
|
|
129
|
-
BaseModel
|
|
130
|
-
):
|
|
116
|
+
class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
131
117
|
r"""Request model for minting a new liquidity position."""
|
|
132
118
|
|
|
133
119
|
token0: TokenEnum
|
|
@@ -156,19 +142,19 @@ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswap
|
|
|
156
142
|
tick_upper: int
|
|
157
143
|
r"""The upper tick of the range to mint the position in"""
|
|
158
144
|
|
|
159
|
-
amount0_desired:
|
|
145
|
+
amount0_desired: UniswapMintLiquidityProvisionRequestAmount0Desired
|
|
160
146
|
r"""The desired amount of the first token to deposit"""
|
|
161
147
|
|
|
162
|
-
amount1_desired:
|
|
148
|
+
amount1_desired: UniswapMintLiquidityProvisionRequestAmount1Desired
|
|
163
149
|
r"""The desired amount of the second token to deposit"""
|
|
164
150
|
|
|
165
|
-
amount0_min:
|
|
151
|
+
amount0_min: UniswapMintLiquidityProvisionRequestAmount0Min
|
|
166
152
|
r"""The minimum amount of the first token to deposit"""
|
|
167
153
|
|
|
168
|
-
amount1_min:
|
|
154
|
+
amount1_min: UniswapMintLiquidityProvisionRequestAmount1Min
|
|
169
155
|
r"""The minimum amount of the second token to deposit"""
|
|
170
156
|
|
|
171
|
-
chain:
|
|
157
|
+
chain: UniswapMintLiquidityProvisionRequestChain
|
|
172
158
|
|
|
173
159
|
sender: str
|
|
174
160
|
r"""The address of the transaction sender."""
|