compass_api_sdk 0.9.51__py3-none-any.whl → 0.9.52__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of compass_api_sdk might be problematic. Click here for more details.

Files changed (181) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +314 -260
  3. compass_api_sdk/aerodrome_slipstream.py +186 -184
  4. compass_api_sdk/erc_4626_vaults.py +82 -58
  5. compass_api_sdk/errors/__init__.py +3 -2
  6. compass_api_sdk/models/__init__.py +1736 -1528
  7. compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
  8. compass_api_sdk/models/{chain.py → compass_api_backend_config_chain_chain.py} +4 -4
  9. compass_api_sdk/models/compass_api_backend_models_aave_read_response_historical_transactions_aavehistoricaltransactionsresponse.py +115 -0
  10. compass_api_sdk/models/{borrow.py → compass_api_backend_models_aave_read_response_historical_transactions_borrow.py} +4 -2
  11. compass_api_sdk/models/{liquidationcall.py → compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall.py} +6 -2
  12. compass_api_sdk/models/{redeemunderlying.py → compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying.py} +6 -2
  13. compass_api_sdk/models/{repay.py → compass_api_backend_models_aave_read_response_historical_transactions_repay.py} +4 -2
  14. compass_api_sdk/models/{supply.py → compass_api_backend_models_aave_read_response_historical_transactions_supply.py} +4 -2
  15. compass_api_sdk/models/{swapborrowrate.py → compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate.py} +6 -2
  16. compass_api_sdk/models/{usageascollateral.py → compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral.py} +6 -2
  17. compass_api_sdk/models/{aaveborrowrequest.py → compass_api_backend_models_aave_transact_request_borrow_aaveborrowrequest.py} +24 -12
  18. compass_api_sdk/models/{aaverepayrequest.py → compass_api_backend_models_aave_transact_request_repay_aaverepayrequest.py} +24 -12
  19. compass_api_sdk/models/{aavesupplyrequest.py → compass_api_backend_models_aave_transact_request_supply_aavesupplyrequest.py} +24 -12
  20. compass_api_sdk/models/{aavewithdrawrequest.py → compass_api_backend_models_aave_transact_request_withdraw_aavewithdrawrequest.py} +25 -13
  21. compass_api_sdk/models/{aerodromelppositionsresponse.py → compass_api_backend_models_aerodrome_slipstream_read_response_positions_aerodromelppositionsresponse.py} +6 -2
  22. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_increase_aerodromeslipstreamincreaseliquidityprovisionrequest.py +125 -0
  23. compass_api_sdk/models/{aerodromeslipstreammintliquidityprovisionrequest.py → compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_mint_aerodromeslipstreammintliquidityprovisionrequest.py} +43 -35
  24. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_withdraw_aerodromeslipstreamwithdrawliquidityprovisionrequest.py +68 -0
  25. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_swap_buy_exactly_aerodromeslipstreambuyexactlyrequest.py +116 -0
  26. compass_api_sdk/models/{aerodromeslipstreamsellexactlyrequest.py → compass_api_backend_models_aerodrome_slipstream_transact_request_swap_sell_exactly_aerodromeslipstreamsellexactlyrequest.py} +31 -19
  27. compass_api_sdk/models/compass_api_backend_models_generic_read_response_chains_supportedchaininfo.py +21 -0
  28. compass_api_sdk/models/{portfolio.py → compass_api_backend_models_generic_read_response_portfolio_portfolio.py} +2 -2
  29. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_allowance_setallowancerequest.py +139 -0
  30. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_unwrap_weth_unwrapwethrequest.py +69 -0
  31. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_wrap_eth_wrapethrequest.py +66 -0
  32. compass_api_sdk/models/{marketposition.py → compass_api_backend_models_morpho_read_response_check_user_position_marketposition.py} +6 -2
  33. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_check_user_position_morphocheckuserpositionresponse.py +48 -0
  34. compass_api_sdk/models/{vault.py → compass_api_backend_models_morpho_read_response_check_user_position_vault.py} +4 -2
  35. compass_api_sdk/models/{vaultposition.py → compass_api_backend_models_morpho_read_response_check_user_position_vaultposition.py} +12 -5
  36. compass_api_sdk/models/{morphogetmarketresponse.py → compass_api_backend_models_morpho_read_response_get_market_morphogetmarketresponse.py} +6 -2
  37. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_morphogetmarketsresponse.py +26 -0
  38. compass_api_sdk/models/{morphomarket.py → compass_api_backend_models_morpho_read_response_get_markets_morphomarket.py} +4 -2
  39. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_morphogetvaultsresponse.py +24 -0
  40. compass_api_sdk/models/{morphovault.py → compass_api_backend_models_morpho_read_response_get_vaults_morphovault.py} +2 -2
  41. compass_api_sdk/models/{morphoborrowrequest.py → compass_api_backend_models_morpho_transact_request_borrow_morphoborrowrequest.py} +22 -13
  42. compass_api_sdk/models/{morphodepositrequest.py → compass_api_backend_models_morpho_transact_request_deposit_morphodepositrequest.py} +26 -13
  43. compass_api_sdk/models/{morphorepayrequest.py → compass_api_backend_models_morpho_transact_request_repay_morphorepayrequest.py} +12 -7
  44. compass_api_sdk/models/{morphosupplycollateralrequest.py → compass_api_backend_models_morpho_transact_request_supply_collateral_morphosupplycollateralrequest.py} +22 -13
  45. compass_api_sdk/models/{morphowithdrawcollateralrequest.py → compass_api_backend_models_morpho_transact_request_withdraw_collateral_morphowithdrawcollateralrequest.py} +22 -13
  46. compass_api_sdk/models/{morphowithdrawrequest.py → compass_api_backend_models_morpho_transact_request_withdraw_morphowithdrawrequest.py} +18 -7
  47. compass_api_sdk/models/{multicallauthorizationrequest.py → compass_api_backend_models_multicall_read_request_get_authorization_multicallauthorizationrequest.py} +17 -7
  48. compass_api_sdk/models/{aavelooprequest.py → compass_api_backend_models_multicall_transact_request_aave_loop_request_aavelooprequest.py} +67 -13
  49. compass_api_sdk/models/compass_api_backend_models_multicall_transact_request_multicall_execution_request_multicallexecuterequest.py +92 -0
  50. compass_api_sdk/models/{useroperation.py → compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation.py} +40 -42
  51. compass_api_sdk/models/{pendlegetmarketresponse.py → compass_api_backend_models_pendle_read_response_market_pendlegetmarketresponse.py} +4 -2
  52. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_markets_pendlelistmarketsresponse.py +24 -0
  53. compass_api_sdk/models/{pendlemarket.py → compass_api_backend_models_pendle_read_response_markets_pendlemarket.py} +2 -2
  54. compass_api_sdk/models/{openposition.py → compass_api_backend_models_pendle_read_response_positions_openposition.py} +4 -2
  55. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_pendlelistuserpositionsresponse.py +24 -0
  56. compass_api_sdk/models/{position.py → compass_api_backend_models_pendle_read_response_positions_position.py} +18 -7
  57. compass_api_sdk/models/{pendleredeemyieldrequest.py → compass_api_backend_models_pendle_transact_request_redeem_yield_pendleredeemyieldrequest.py} +17 -7
  58. compass_api_sdk/models/{skybuyrequest.py → compass_api_backend_models_sky_transact_request_buy_skybuyrequest.py} +22 -19
  59. compass_api_sdk/models/{skydepositrequest.py → compass_api_backend_models_sky_transact_request_deposit_skydepositrequest.py} +26 -15
  60. compass_api_sdk/models/compass_api_backend_models_sky_transact_request_sell_skysellrequest.py +70 -0
  61. compass_api_sdk/models/{skywithdrawrequest.py → compass_api_backend_models_sky_transact_request_withdraw_skywithdrawrequest.py} +17 -10
  62. compass_api_sdk/models/compass_api_backend_models_smart_account_transact_request_user_operations_batcheduseroperationsrequest.py +49 -0
  63. compass_api_sdk/models/compass_api_backend_models_swap_transact_request_odos_odosswaprequest.py +108 -0
  64. compass_api_sdk/models/compass_api_backend_models_token_transact_request_transfer_tokentransferrequest.py +98 -0
  65. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_increase_uniswapincreaseliquidityprovisionrequest.py +129 -0
  66. compass_api_sdk/models/{uniswapmintliquidityprovisionrequest.py → compass_api_backend_models_uniswap_transact_liquidity_provision_request_mint_uniswapmintliquidityprovisionrequest.py} +49 -31
  67. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_withdraw_uniswapwithdrawliquidityprovisionrequest.py +68 -0
  68. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_buy_exactly_uniswapbuyexactlyrequest.py +123 -0
  69. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_sell_exactly_uniswapsellexactlyrequest.py +123 -0
  70. compass_api_sdk/models/{vaultgetvaultresponse.py → compass_api_backend_models_vaults_read_response_vault_vaultgetvaultresponse.py} +4 -2
  71. compass_api_sdk/models/compass_api_backend_models_vaults_transact_request_deposit_vaultdepositrequest.py +110 -0
  72. compass_api_sdk/models/compass_api_backend_models_vaults_transact_request_withdraw_vaultwithdrawrequest.py +96 -0
  73. compass_api_sdk/models/details.py +44 -7
  74. compass_api_sdk/models/movement10percent.py +65 -10
  75. compass_api_sdk/models/pendlemanageliquidityparams.py +81 -0
  76. compass_api_sdk/models/pendlemanageliquidityrequest.py +95 -0
  77. compass_api_sdk/models/pendletradeptparams.py +81 -0
  78. compass_api_sdk/models/pendletradeptrequest.py +95 -0
  79. compass_api_sdk/models/pendletradeytparams.py +81 -0
  80. compass_api_sdk/models/pendletradeytrequest.py +95 -0
  81. compass_api_sdk/models/pendletxresponse.py +45 -0
  82. compass_api_sdk/models/token_enum.py +17 -0
  83. compass_api_sdk/models/{tokentransferrequest.py → tokentransferparams.py} +16 -27
  84. compass_api_sdk/models/transactionresponse.py +40 -0
  85. compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -24
  86. compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +45 -0
  87. compass_api_sdk/models/uniswapsellexactlyparams.py +43 -40
  88. compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +45 -0
  89. compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py} +9 -13
  90. compass_api_sdk/models/{aave_avg_rateop.py → v1_aave_avg_rateop.py} +32 -19
  91. compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +9 -13
  92. compass_api_sdk/models/{aave_liquidity_changeop.py → v1_aave_liquidity_changeop.py} +30 -17
  93. compass_api_sdk/models/{aave_rateop.py → v1_aave_rateop.py} +32 -19
  94. compass_api_sdk/models/{aave_reserve_overviewop.py → v1_aave_reserve_overviewop.py} +32 -19
  95. compass_api_sdk/models/{aave_std_rateop.py → v1_aave_std_rateop.py} +32 -19
  96. compass_api_sdk/models/{aave_token_priceop.py → v1_aave_token_priceop.py} +32 -19
  97. compass_api_sdk/models/{aave_user_position_per_tokenop.py → v1_aave_user_position_per_tokenop.py} +32 -19
  98. compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +9 -13
  99. compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_aerodrome_slipstream_liquidity_provision_positionsop.py} +7 -13
  100. compass_api_sdk/models/{aerodrome_slipstream_pool_priceop.py → v1_aerodrome_slipstream_pool_priceop.py} +53 -25
  101. compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +24 -25
  102. compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +7 -13
  103. compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +9 -13
  104. compass_api_sdk/models/{generic_supported_chainsop.py → v1_generic_supported_chainsop.py} +2 -2
  105. compass_api_sdk/models/v1_generic_supported_tokensop.py +24 -0
  106. compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +9 -8
  107. compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +9 -8
  108. compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +9 -8
  109. compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +9 -8
  110. compass_api_sdk/models/{morpho_vaultop.py → v1_morpho_vaultop.py} +9 -13
  111. compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +9 -8
  112. compass_api_sdk/models/{pendle_marketop.py → v1_pendle_marketop.py} +9 -13
  113. compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
  114. compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
  115. compass_api_sdk/models/{sky_positionop.py → v1_sky_positionop.py} +14 -15
  116. compass_api_sdk/models/{token_addressop.py → v1_token_addressop.py} +30 -17
  117. compass_api_sdk/models/{token_balanceop.py → v1_token_balanceop.py} +14 -18
  118. compass_api_sdk/models/{token_priceop.py → v1_token_priceop.py} +14 -18
  119. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +24 -0
  120. compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +9 -13
  121. compass_api_sdk/models/{aerodrome_slipstream_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +9 -13
  122. compass_api_sdk/models/{uniswap_pool_priceop.py → v1_uniswap_pool_priceop.py} +59 -29
  123. compass_api_sdk/models/{uniswap_quote_buy_exactlyop.py → v1_uniswap_quote_buy_exactlyop.py} +65 -35
  124. compass_api_sdk/models/{uniswap_quote_sell_exactlyop.py → v1_uniswap_quote_sell_exactlyop.py} +65 -35
  125. compass_api_sdk/models/{vaults_vaultop.py → v1_vaults_vaultop.py} +9 -13
  126. compass_api_sdk/models/{vaultdepositrequest.py → vaultdepositparams.py} +7 -20
  127. compass_api_sdk/models/{vaultwithdrawrequest.py → vaultwithdrawparams.py} +2 -13
  128. compass_api_sdk/morpho.py +310 -222
  129. compass_api_sdk/pendle.py +307 -1081
  130. compass_api_sdk/sky.py +186 -94
  131. compass_api_sdk/smart_account.py +46 -18
  132. compass_api_sdk/swap.py +40 -26
  133. compass_api_sdk/token_sdk.py +76 -66
  134. compass_api_sdk/transaction_bundler.py +126 -76
  135. compass_api_sdk/uniswap_v3.py +302 -278
  136. compass_api_sdk/universal.py +189 -329
  137. compass_api_sdk/utils/__init__.py +3 -2
  138. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-0.9.52.dist-info}/METADATA +83 -88
  139. compass_api_sdk-0.9.52.dist-info/RECORD +263 -0
  140. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -65
  141. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +0 -104
  142. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +0 -123
  143. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +0 -64
  144. compass_api_sdk/models/batcheduseroperationsrequest.py +0 -32
  145. compass_api_sdk/models/generic_supported_tokensop.py +0 -28
  146. compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
  147. compass_api_sdk/models/image.py +0 -15
  148. compass_api_sdk/models/morphocheckuserpositionresponse.py +0 -32
  149. compass_api_sdk/models/morphogetmarketsresponse.py +0 -17
  150. compass_api_sdk/models/morphogetvaultsresponse.py +0 -17
  151. compass_api_sdk/models/multicallexecuterequest.py +0 -36
  152. compass_api_sdk/models/odosswaprequest.py +0 -86
  153. compass_api_sdk/models/pendle_marketsop.py +0 -28
  154. compass_api_sdk/models/pendle_quoteop.py +0 -128
  155. compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
  156. compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
  157. compass_api_sdk/models/pendlebuyptparams.py +0 -48
  158. compass_api_sdk/models/pendlebuyptrequest.py +0 -59
  159. compass_api_sdk/models/pendlebuyytparams.py +0 -48
  160. compass_api_sdk/models/pendlebuyytrequest.py +0 -59
  161. compass_api_sdk/models/pendlegetquoteresponse.py +0 -15
  162. compass_api_sdk/models/pendlelistmarketsresponse.py +0 -17
  163. compass_api_sdk/models/pendlelistuserpositionsresponse.py +0 -17
  164. compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
  165. compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
  166. compass_api_sdk/models/pendlesellptparams.py +0 -48
  167. compass_api_sdk/models/pendlesellptrequest.py +0 -61
  168. compass_api_sdk/models/pendlesellytparams.py +0 -48
  169. compass_api_sdk/models/pendlesellytrequest.py +0 -61
  170. compass_api_sdk/models/setallowancerequest.py +0 -109
  171. compass_api_sdk/models/skysellrequest.py +0 -64
  172. compass_api_sdk/models/supportedchaininfo.py +0 -19
  173. compass_api_sdk/models/txresponse.py +0 -27
  174. compass_api_sdk/models/uniswapbuyexactlyrequest.py +0 -112
  175. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +0 -111
  176. compass_api_sdk/models/uniswapsellexactlyrequest.py +0 -104
  177. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +0 -63
  178. compass_api_sdk/models/unwrapwethrequest.py +0 -53
  179. compass_api_sdk/models/wrapethrequest.py +0 -52
  180. compass_api_sdk-0.9.51.dist-info/RECORD +0 -266
  181. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-0.9.52.dist-info}/WHEEL +0 -0
@@ -0,0 +1,49 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation import (
5
+ CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperation,
6
+ CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperationTypedDict,
7
+ )
8
+ from compass_api_sdk.types import BaseModel
9
+ from enum import Enum
10
+ from typing import List
11
+ from typing_extensions import TypedDict
12
+
13
+
14
+ class CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestChain(
15
+ str, Enum
16
+ ):
17
+ ARBITRUM = "arbitrum"
18
+ BASE = "base"
19
+ ETHEREUM = "ethereum"
20
+
21
+
22
+ class CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestTypedDict(
23
+ TypedDict
24
+ ):
25
+ r"""Request model for batching user operations."""
26
+
27
+ chain: CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestChain
28
+ sender: str
29
+ r"""The address of the transaction sender."""
30
+ operations: List[
31
+ CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperationTypedDict
32
+ ]
33
+ r"""List of possible user operations"""
34
+
35
+
36
+ class CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequest(
37
+ BaseModel
38
+ ):
39
+ r"""Request model for batching user operations."""
40
+
41
+ chain: CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestChain
42
+
43
+ sender: str
44
+ r"""The address of the transaction sender."""
45
+
46
+ operations: List[
47
+ CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperation
48
+ ]
49
+ r"""List of possible user operations"""
@@ -0,0 +1,108 @@
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
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenInTypedDict = (
15
+ TypeAliasType(
16
+ "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenInTypedDict",
17
+ Union[TokenEnum, str],
18
+ )
19
+ )
20
+ r"""The symbol or address of the token that is to be sold."""
21
+
22
+
23
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenIn = TypeAliasType(
24
+ "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenIn",
25
+ Union[TokenEnum, str],
26
+ )
27
+ r"""The symbol or address of the token that is to be sold."""
28
+
29
+
30
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOutTypedDict = TypeAliasType(
31
+ "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOutTypedDict",
32
+ Union[TokenEnum, str],
33
+ )
34
+ r"""The symbol or address of the token that is to be bought."""
35
+
36
+
37
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOut = TypeAliasType(
38
+ "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOut",
39
+ Union[TokenEnum, str],
40
+ )
41
+ r"""The symbol or address of the token that is to be bought."""
42
+
43
+
44
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmountTypedDict = (
45
+ TypeAliasType(
46
+ "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmountTypedDict",
47
+ Union[float, str],
48
+ )
49
+ )
50
+ r"""The amount of token_in to be sold."""
51
+
52
+
53
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmount = TypeAliasType(
54
+ "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmount",
55
+ Union[float, str],
56
+ )
57
+ r"""The amount of token_in to be sold."""
58
+
59
+
60
+ class CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestChain(str, Enum):
61
+ ARBITRUM = "arbitrum"
62
+ BASE = "base"
63
+ ETHEREUM = "ethereum"
64
+
65
+
66
+ class CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTypedDict(TypedDict):
67
+ token_in: (
68
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenInTypedDict
69
+ )
70
+ r"""The symbol or address of the token that is to be sold."""
71
+ token_out: (
72
+ CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOutTypedDict
73
+ )
74
+ r"""The symbol or address of the token that is to be bought."""
75
+ amount: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmountTypedDict
76
+ r"""The amount of token_in to be sold."""
77
+ max_slippage_percent: float
78
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
79
+ chain: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestChain
80
+ sender: str
81
+ r"""The address of the transaction sender."""
82
+ action_type: Literal["ODOS_SWAP"]
83
+
84
+
85
+ class CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequest(BaseModel):
86
+ token_in: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenIn
87
+ r"""The symbol or address of the token that is to be sold."""
88
+
89
+ token_out: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOut
90
+ r"""The symbol or address of the token that is to be bought."""
91
+
92
+ amount: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmount
93
+ r"""The amount of token_in to be sold."""
94
+
95
+ max_slippage_percent: float
96
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
97
+
98
+ chain: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestChain
99
+
100
+ sender: str
101
+ r"""The address of the transaction sender."""
102
+
103
+ ACTION_TYPE: Annotated[
104
+ Annotated[
105
+ Optional[Literal["ODOS_SWAP"]], AfterValidator(validate_const("ODOS_SWAP"))
106
+ ],
107
+ pydantic.Field(alias="action_type"),
108
+ ] = "ODOS_SWAP"
@@ -0,0 +1,98 @@
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"
@@ -0,0 +1,129 @@
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,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .chain import Chain
5
4
  from .feeenum import FeeEnum
6
5
  from .token_enum import TokenEnum
7
6
  from compass_api_sdk.types import (
@@ -12,6 +11,7 @@ from compass_api_sdk.types import (
12
11
  UNSET_SENTINEL,
13
12
  )
14
13
  from compass_api_sdk.utils import validate_const
14
+ from enum import Enum
15
15
  import pydantic
16
16
  from pydantic import model_serializer
17
17
  from pydantic.functional_validators import AfterValidator
@@ -19,55 +19,73 @@ from typing import Literal, Optional, Union
19
19
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
20
20
 
21
21
 
22
- UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
23
- "UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict", Union[float, str]
22
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
23
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict",
24
+ Union[float, str],
24
25
  )
25
26
  r"""The desired amount of the first token to deposit"""
26
27
 
27
28
 
28
- UniswapMintLiquidityProvisionRequestAmount0Desired = TypeAliasType(
29
- "UniswapMintLiquidityProvisionRequestAmount0Desired", Union[float, str]
29
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Desired = TypeAliasType(
30
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Desired",
31
+ Union[float, str],
30
32
  )
31
33
  r"""The desired amount of the first token to deposit"""
32
34
 
33
35
 
34
- UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
35
- "UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict", Union[float, str]
36
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
37
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict",
38
+ Union[float, str],
36
39
  )
37
40
  r"""The desired amount of the second token to deposit"""
38
41
 
39
42
 
40
- UniswapMintLiquidityProvisionRequestAmount1Desired = TypeAliasType(
41
- "UniswapMintLiquidityProvisionRequestAmount1Desired", Union[float, str]
43
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Desired = TypeAliasType(
44
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Desired",
45
+ Union[float, str],
42
46
  )
43
47
  r"""The desired amount of the second token to deposit"""
44
48
 
45
49
 
46
- UniswapMintLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
47
- "UniswapMintLiquidityProvisionRequestAmount0MinTypedDict", Union[float, str]
50
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
51
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0MinTypedDict",
52
+ Union[float, str],
48
53
  )
49
54
  r"""The minimum amount of the first token to deposit"""
50
55
 
51
56
 
52
- UniswapMintLiquidityProvisionRequestAmount0Min = TypeAliasType(
53
- "UniswapMintLiquidityProvisionRequestAmount0Min", Union[float, str]
57
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Min = TypeAliasType(
58
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Min",
59
+ Union[float, str],
54
60
  )
55
61
  r"""The minimum amount of the first token to deposit"""
56
62
 
57
63
 
58
- UniswapMintLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
59
- "UniswapMintLiquidityProvisionRequestAmount1MinTypedDict", Union[float, str]
64
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
65
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1MinTypedDict",
66
+ Union[float, str],
60
67
  )
61
68
  r"""The minimum amount of the second token to deposit"""
62
69
 
63
70
 
64
- UniswapMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
65
- "UniswapMintLiquidityProvisionRequestAmount1Min", Union[float, str]
71
+ CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
72
+ "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Min",
73
+ Union[float, str],
66
74
  )
67
75
  r"""The minimum amount of the second token to deposit"""
68
76
 
69
77
 
70
- class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
78
+ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestChain(
79
+ str, Enum
80
+ ):
81
+ ARBITRUM = "arbitrum"
82
+ BASE = "base"
83
+ ETHEREUM = "ethereum"
84
+
85
+
86
+ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestTypedDict(
87
+ TypedDict
88
+ ):
71
89
  r"""Request model for minting a new liquidity position."""
72
90
 
73
91
  token0: TokenEnum
@@ -91,16 +109,15 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
91
109
  r"""The lower tick of the range to mint the position in"""
92
110
  tick_upper: int
93
111
  r"""The upper tick of the range to mint the position in"""
94
- amount0_desired: UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict
112
+ amount0_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict
95
113
  r"""The desired amount of the first token to deposit"""
96
- amount1_desired: UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict
114
+ amount1_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict
97
115
  r"""The desired amount of the second token to deposit"""
98
- amount0_min: UniswapMintLiquidityProvisionRequestAmount0MinTypedDict
116
+ amount0_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0MinTypedDict
99
117
  r"""The minimum amount of the first token to deposit"""
100
- amount1_min: UniswapMintLiquidityProvisionRequestAmount1MinTypedDict
118
+ amount1_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1MinTypedDict
101
119
  r"""The minimum amount of the second token to deposit"""
102
- chain: Chain
103
- r"""The chain to use."""
120
+ chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestChain
104
121
  sender: str
105
122
  r"""The address of the transaction sender."""
106
123
  action_type: Literal["UNISWAP_MINT_LIQUIDITY_PROVISION"]
@@ -108,7 +125,9 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
108
125
  r"""The address that will receive the LP tokens"""
109
126
 
110
127
 
111
- class UniswapMintLiquidityProvisionRequest(BaseModel):
128
+ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequest(
129
+ BaseModel
130
+ ):
112
131
  r"""Request model for minting a new liquidity position."""
113
132
 
114
133
  token0: TokenEnum
@@ -137,20 +156,19 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
137
156
  tick_upper: int
138
157
  r"""The upper tick of the range to mint the position in"""
139
158
 
140
- amount0_desired: UniswapMintLiquidityProvisionRequestAmount0Desired
159
+ amount0_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Desired
141
160
  r"""The desired amount of the first token to deposit"""
142
161
 
143
- amount1_desired: UniswapMintLiquidityProvisionRequestAmount1Desired
162
+ amount1_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Desired
144
163
  r"""The desired amount of the second token to deposit"""
145
164
 
146
- amount0_min: UniswapMintLiquidityProvisionRequestAmount0Min
165
+ amount0_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Min
147
166
  r"""The minimum amount of the first token to deposit"""
148
167
 
149
- amount1_min: UniswapMintLiquidityProvisionRequestAmount1Min
168
+ amount1_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Min
150
169
  r"""The minimum amount of the second token to deposit"""
151
170
 
152
- chain: Chain
153
- r"""The chain to use."""
171
+ chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestChain
154
172
 
155
173
  sender: str
156
174
  r"""The address of the transaction sender."""
@@ -0,0 +1,68 @@
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"