compass_api_sdk 0.9.52__py3-none-any.whl → 1.0.0__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.

Files changed (99) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +70 -124
  3. compass_api_sdk/aerodrome_slipstream.py +86 -88
  4. compass_api_sdk/erc_4626_vaults.py +18 -42
  5. compass_api_sdk/models/__init__.py +908 -962
  6. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_borrow_aaveborrowrequest.py → aaveborrowrequest.py} +10 -18
  7. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +65 -0
  8. compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_aave_loop_request_aavelooprequest.py → aavelooprequest.py} +5 -11
  9. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_repay_aaverepayrequest.py → aaverepayrequest.py} +10 -18
  10. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_supply_aavesupplyrequest.py → aavesupplyrequest.py} +10 -18
  11. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_withdraw_aavewithdrawrequest.py → aavewithdrawrequest.py} +11 -19
  12. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_read_response_positions_aerodromelppositionsresponse.py → aerodromelppositionsresponse.py} +2 -6
  13. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_swap_buy_exactly_aerodromeslipstreambuyexactlyrequest.py → aerodromeslipstreambuyexactlyrequest.py} +17 -27
  14. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +125 -0
  15. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_mint_aerodromeslipstreammintliquidityprovisionrequest.py → aerodromeslipstreammintliquidityprovisionrequest.py} +33 -39
  16. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_swap_sell_exactly_aerodromeslipstreamsellexactlyrequest.py → aerodromeslipstreamsellexactlyrequest.py} +17 -27
  17. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +66 -0
  18. compass_api_sdk/models/batcheduseroperationsrequest.py +36 -0
  19. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_borrow.py → borrow.py} +2 -4
  20. compass_api_sdk/models/{compass_api_backend_config_chain_chain.py → chain.py} +1 -1
  21. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall.py → liquidationcall.py} +2 -6
  22. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketposition.py → marketposition.py} +2 -6
  23. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_borrow_morphoborrowrequest.py → morphoborrowrequest.py} +11 -19
  24. compass_api_sdk/models/morphocheckuserpositionresponse.py +32 -0
  25. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_deposit_morphodepositrequest.py → morphodepositrequest.py} +11 -23
  26. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_morphogetmarketresponse.py → morphogetmarketresponse.py} +2 -6
  27. compass_api_sdk/models/morphogetmarketsresponse.py +17 -0
  28. compass_api_sdk/models/morphogetvaultsresponse.py +17 -0
  29. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_morphomarket.py → morphomarket.py} +2 -4
  30. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_repay_morphorepayrequest.py → morphorepayrequest.py} +5 -9
  31. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_supply_collateral_morphosupplycollateralrequest.py → morphosupplycollateralrequest.py} +11 -19
  32. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_morphovault.py → morphovault.py} +2 -2
  33. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_withdraw_collateral_morphowithdrawcollateralrequest.py → morphowithdrawcollateralrequest.py} +11 -19
  34. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_withdraw_morphowithdrawrequest.py → morphowithdrawrequest.py} +5 -15
  35. compass_api_sdk/models/{compass_api_backend_models_multicall_read_request_get_authorization_multicallauthorizationrequest.py → multicallauthorizationrequest.py} +5 -11
  36. compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_multicall_execution_request_multicallexecuterequest.py → multicallexecuterequest.py} +8 -21
  37. compass_api_sdk/models/odosswaprequest.py +90 -0
  38. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_openposition.py → openposition.py} +2 -4
  39. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_pendlegetmarketresponse.py → pendlegetmarketresponse.py} +2 -4
  40. compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
  41. compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
  42. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_markets_pendlemarket.py → pendlemarket.py} +2 -2
  43. compass_api_sdk/models/{compass_api_backend_models_pendle_transact_request_redeem_yield_pendleredeemyieldrequest.py → pendleredeemyieldrequest.py} +5 -11
  44. compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_portfolio.py → portfolio.py} +2 -2
  45. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_position.py → position.py} +7 -18
  46. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying.py → redeemunderlying.py} +2 -6
  47. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_repay.py → repay.py} +2 -4
  48. compass_api_sdk/models/setallowancerequest.py +112 -0
  49. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_buy_skybuyrequest.py → skybuyrequest.py} +13 -18
  50. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_deposit_skydepositrequest.py → skydepositrequest.py} +10 -22
  51. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_sell_skysellrequest.py → skysellrequest.py} +13 -21
  52. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_withdraw_skywithdrawrequest.py → skywithdrawrequest.py} +5 -13
  53. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_supply.py → supply.py} +2 -4
  54. compass_api_sdk/models/supportedchaininfo.py +19 -0
  55. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate.py → swapborrowrate.py} +2 -6
  56. compass_api_sdk/models/tokentransferrequest.py +82 -0
  57. compass_api_sdk/models/uniswapbuyexactlyrequest.py +111 -0
  58. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +115 -0
  59. compass_api_sdk/models/{compass_api_backend_models_uniswap_transact_liquidity_provision_request_mint_uniswapmintliquidityprovisionrequest.py → uniswapmintliquidityprovisionrequest.py} +29 -43
  60. compass_api_sdk/models/uniswapsellexactlyrequest.py +111 -0
  61. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +67 -0
  62. compass_api_sdk/models/{compass_api_backend_models_generic_transact_request_unwrap_weth_unwrapwethrequest.py → unwrapwethrequest.py} +10 -22
  63. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral.py → usageascollateral.py} +2 -6
  64. compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation.py → useroperation.py} +2 -6
  65. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vault.py → vault.py} +2 -4
  66. compass_api_sdk/models/{compass_api_backend_models_vaults_transact_request_deposit_vaultdepositrequest.py → vaultdepositrequest.py} +11 -19
  67. compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_vaultgetvaultresponse.py → vaultgetvaultresponse.py} +2 -4
  68. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultposition.py → vaultposition.py} +5 -12
  69. compass_api_sdk/models/{compass_api_backend_models_vaults_transact_request_withdraw_vaultwithdrawrequest.py → vaultwithdrawrequest.py} +5 -11
  70. compass_api_sdk/models/{compass_api_backend_models_generic_transact_request_wrap_eth_wrapethrequest.py → wrapethrequest.py} +10 -20
  71. compass_api_sdk/morpho.py +82 -170
  72. compass_api_sdk/pendle.py +18 -56
  73. compass_api_sdk/sky.py +56 -106
  74. compass_api_sdk/smart_account.py +10 -38
  75. compass_api_sdk/swap.py +12 -26
  76. compass_api_sdk/token_sdk.py +12 -22
  77. compass_api_sdk/transaction_bundler.py +22 -70
  78. compass_api_sdk/uniswap_v3.py +90 -106
  79. compass_api_sdk/universal.py +44 -92
  80. {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.0.dist-info}/METADATA +1 -1
  81. {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.0.dist-info}/RECORD +82 -82
  82. compass_api_sdk/models/compass_api_backend_models_aave_read_response_historical_transactions_aavehistoricaltransactionsresponse.py +0 -115
  83. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_increase_aerodromeslipstreamincreaseliquidityprovisionrequest.py +0 -125
  84. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_withdraw_aerodromeslipstreamwithdrawliquidityprovisionrequest.py +0 -68
  85. compass_api_sdk/models/compass_api_backend_models_generic_read_response_chains_supportedchaininfo.py +0 -21
  86. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_allowance_setallowancerequest.py +0 -139
  87. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_check_user_position_morphocheckuserpositionresponse.py +0 -48
  88. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_morphogetmarketsresponse.py +0 -26
  89. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_morphogetvaultsresponse.py +0 -24
  90. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_markets_pendlelistmarketsresponse.py +0 -24
  91. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_pendlelistuserpositionsresponse.py +0 -24
  92. compass_api_sdk/models/compass_api_backend_models_smart_account_transact_request_user_operations_batcheduseroperationsrequest.py +0 -49
  93. compass_api_sdk/models/compass_api_backend_models_swap_transact_request_odos_odosswaprequest.py +0 -108
  94. compass_api_sdk/models/compass_api_backend_models_token_transact_request_transfer_tokentransferrequest.py +0 -98
  95. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_increase_uniswapincreaseliquidityprovisionrequest.py +0 -129
  96. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_withdraw_uniswapwithdrawliquidityprovisionrequest.py +0 -68
  97. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_buy_exactly_uniswapbuyexactlyrequest.py +0 -123
  98. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_sell_exactly_uniswapsellexactlyrequest.py +0 -123
  99. {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.0.dist-info}/WHEEL +0 -0
@@ -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"