compass_api_sdk 1.1.1__py3-none-any.whl → 2.0.21rc1__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.
Files changed (248) hide show
  1. compass_api_sdk/_hooks/sdkhooks.py +4 -4
  2. compass_api_sdk/_hooks/types.py +1 -2
  3. compass_api_sdk/_version.py +3 -3
  4. compass_api_sdk/aave_v3.py +386 -114
  5. compass_api_sdk/aerodrome_slipstream.py +104 -54
  6. compass_api_sdk/basesdk.py +6 -0
  7. compass_api_sdk/bridge.py +536 -0
  8. compass_api_sdk/earn.py +1780 -0
  9. compass_api_sdk/erc_4626_vaults.py +28 -10
  10. compass_api_sdk/errors/__init__.py +8 -0
  11. compass_api_sdk/errors/apierror.py +1 -1
  12. compass_api_sdk/errors/compassapierror.py +1 -1
  13. compass_api_sdk/errors/httpvalidationerror.py +1 -1
  14. compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
  15. compass_api_sdk/errors/no_response_error.py +1 -1
  16. compass_api_sdk/errors/responsevalidationerror.py +1 -1
  17. compass_api_sdk/ethena.py +36 -10
  18. compass_api_sdk/gas_sponsorship.py +446 -0
  19. compass_api_sdk/httpclient.py +0 -1
  20. compass_api_sdk/models/__init__.py +764 -392
  21. compass_api_sdk/models/aaveborrowparams.py +4 -13
  22. compass_api_sdk/models/aaveborrowrequest.py +10 -14
  23. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +3 -3
  24. compass_api_sdk/models/aavelooprequest.py +32 -28
  25. compass_api_sdk/models/aaveposition.py +49 -0
  26. compass_api_sdk/models/aaverepayparams.py +4 -13
  27. compass_api_sdk/models/aaverepayrequest.py +10 -14
  28. compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
  29. compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
  30. compass_api_sdk/models/aavesupplyparams.py +4 -13
  31. compass_api_sdk/models/aavesupplyrequest.py +10 -14
  32. compass_api_sdk/models/aavevenue.py +27 -0
  33. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  34. compass_api_sdk/models/aavewithdrawrequest.py +10 -14
  35. compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
  36. compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
  37. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  38. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
  39. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
  40. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  41. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
  42. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  43. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  44. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
  45. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
  46. compass_api_sdk/models/approvetransferrequest.py +32 -0
  47. compass_api_sdk/models/approvetransferresponse.py +52 -0
  48. compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
  49. compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
  50. compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
  51. compass_api_sdk/models/chainmarketinfo.py +29 -0
  52. compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
  53. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
  54. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
  55. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
  56. compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
  57. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
  58. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
  59. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
  60. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
  61. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
  62. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
  63. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
  64. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py} +4 -2
  65. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_userposition.py → compass_api_backend_v1_models_pendle_read_response_market_userposition.py} +2 -2
  66. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
  67. compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_userposition.py → compass_api_backend_v1_models_vaults_read_response_vault_userposition.py} +2 -2
  68. compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
  69. compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +49 -0
  70. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
  71. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
  72. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
  73. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
  74. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
  75. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
  76. compass_api_sdk/models/createaccountrequest.py +40 -0
  77. compass_api_sdk/models/createaccountresponse.py +56 -0
  78. compass_api_sdk/models/depositforburnrequest.py +77 -0
  79. compass_api_sdk/models/depositforburnresponse.py +100 -0
  80. compass_api_sdk/models/earnmanageparams.py +74 -0
  81. compass_api_sdk/models/earnmanagerequest.py +130 -0
  82. compass_api_sdk/models/earnmanageresponse.py +52 -0
  83. compass_api_sdk/models/earnpositionsresponse.py +39 -0
  84. compass_api_sdk/models/earnswapparams.py +74 -0
  85. compass_api_sdk/models/earnswaprequest.py +90 -0
  86. compass_api_sdk/models/earnswapresponse.py +55 -0
  87. compass_api_sdk/models/earntransferrequest.py +104 -0
  88. compass_api_sdk/models/earntransferresponse.py +71 -0
  89. compass_api_sdk/models/eip712domainfield.py +20 -0
  90. compass_api_sdk/models/eip712field.py +20 -0
  91. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  92. compass_api_sdk/models/ethenagetvaultresponse.py +5 -5
  93. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  94. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  95. compass_api_sdk/models/fee.py +42 -0
  96. compass_api_sdk/models/listaavemarketsresponse.py +21 -0
  97. compass_api_sdk/models/marketposition.py +5 -5
  98. compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
  99. compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
  100. compass_api_sdk/models/mintpreparependingresponse.py +65 -0
  101. compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
  102. compass_api_sdk/models/mintpreparerequest.py +25 -0
  103. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  104. compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
  105. compass_api_sdk/models/morphodepositrequest.py +6 -1
  106. compass_api_sdk/models/morphogetmarketresponse.py +72 -31
  107. compass_api_sdk/models/morphomarket.py +26 -20
  108. compass_api_sdk/models/morphorepayrequest.py +11 -1
  109. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  110. compass_api_sdk/models/morphovault.py +10 -10
  111. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  112. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  113. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  114. compass_api_sdk/models/odosswapparams.py +9 -30
  115. compass_api_sdk/models/odosswaprequest.py +15 -33
  116. compass_api_sdk/models/oneinchswapparams.py +59 -0
  117. compass_api_sdk/models/openposition.py +7 -7
  118. compass_api_sdk/models/operationtype.py +11 -0
  119. compass_api_sdk/models/pendlegetmarketresponse.py +5 -5
  120. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  121. compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
  122. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  123. compass_api_sdk/models/pendletradeptparams.py +2 -15
  124. compass_api_sdk/models/pendletradeptrequest.py +8 -16
  125. compass_api_sdk/models/pendletradeytparams.py +2 -15
  126. compass_api_sdk/models/pendletradeytrequest.py +8 -16
  127. compass_api_sdk/models/permit2typeddata_input.py +46 -0
  128. compass_api_sdk/models/permit2typeddata_output.py +46 -0
  129. compass_api_sdk/models/permitfield.py +20 -0
  130. compass_api_sdk/models/permitmessage.py +39 -0
  131. compass_api_sdk/models/permittransferfrommessage.py +29 -0
  132. compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
  133. compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
  134. compass_api_sdk/models/portfolio.py +5 -5
  135. compass_api_sdk/models/reserve.py +6 -15
  136. compass_api_sdk/models/safetransactionparams.py +78 -0
  137. compass_api_sdk/models/safetransactionresponse.py +28 -0
  138. compass_api_sdk/models/safetxfield.py +20 -0
  139. compass_api_sdk/models/safetxmessage.py +66 -0
  140. compass_api_sdk/models/setallowanceparams.py +3 -16
  141. compass_api_sdk/models/setallowancerequest.py +9 -17
  142. compass_api_sdk/models/skybuyrequest.py +6 -1
  143. compass_api_sdk/models/skydepositrequest.py +7 -2
  144. compass_api_sdk/models/skysellrequest.py +7 -2
  145. compass_api_sdk/models/skywithdrawrequest.py +7 -2
  146. compass_api_sdk/models/sponsorgasrequest.py +71 -0
  147. compass_api_sdk/models/sponsorgasresponse.py +14 -0
  148. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  149. compass_api_sdk/models/tokenconfig.py +30 -0
  150. compass_api_sdk/models/tokenlistresponse.py +21 -0
  151. compass_api_sdk/models/tokenmarketdata.py +27 -0
  152. compass_api_sdk/models/tokenpermissions.py +20 -0
  153. compass_api_sdk/models/tokentransferparams.py +2 -15
  154. compass_api_sdk/models/tokentransferrequest.py +8 -16
  155. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  156. compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
  157. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  158. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  159. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
  160. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  161. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  162. compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
  163. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  164. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  165. compass_api_sdk/models/unsignedtransaction.py +34 -3
  166. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  167. compass_api_sdk/models/useroperation.py +33 -24
  168. compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
  169. compass_api_sdk/models/v1_aave_avg_rateop.py +15 -93
  170. compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
  171. compass_api_sdk/models/v1_aave_liquidity_changeop.py +8 -86
  172. compass_api_sdk/models/v1_aave_rateop.py +8 -86
  173. compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -86
  174. compass_api_sdk/models/v1_aave_std_rateop.py +15 -93
  175. compass_api_sdk/models/v1_aave_token_priceop.py +8 -86
  176. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +14 -92
  177. compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
  178. compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +48 -3
  179. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +12 -168
  180. compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
  181. compass_api_sdk/models/v1_generic_allowanceop.py +12 -26
  182. compass_api_sdk/models/v1_generic_ensop.py +2 -2
  183. compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
  184. compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
  185. compass_api_sdk/models/v1_morpho_marketop.py +2 -2
  186. compass_api_sdk/models/v1_morpho_marketsop.py +10 -30
  187. compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
  188. compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
  189. compass_api_sdk/models/v1_morpho_vaultsop.py +6 -16
  190. compass_api_sdk/models/v1_pendle_marketop.py +8 -8
  191. compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
  192. compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
  193. compass_api_sdk/models/v1_sky_positionop.py +5 -6
  194. compass_api_sdk/models/v1_token_balanceop.py +12 -25
  195. compass_api_sdk/models/{v1_generic_supported_tokensop.py → v1_token_listop.py} +6 -6
  196. compass_api_sdk/models/v1_token_priceop.py +8 -9
  197. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -6
  198. compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
  199. compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
  200. compass_api_sdk/models/v1_uniswap_pool_priceop.py +12 -168
  201. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +20 -176
  202. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +20 -176
  203. compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
  204. compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
  205. compass_api_sdk/models/v2_cctp_mintop.py +47 -0
  206. compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
  207. compass_api_sdk/models/v2_earn_positionsop.py +56 -0
  208. compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
  209. compass_api_sdk/models/v2bundlerequest.py +33 -0
  210. compass_api_sdk/models/v2bundleresponse.py +67 -0
  211. compass_api_sdk/models/v2useroperation.py +37 -0
  212. compass_api_sdk/models/vault.py +14 -14
  213. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  214. compass_api_sdk/models/vaultgetvaultresponse.py +5 -5
  215. compass_api_sdk/models/vaultinfo.py +129 -0
  216. compass_api_sdk/models/vaultsresponse.py +30 -0
  217. compass_api_sdk/models/vaultvenue.py +27 -0
  218. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  219. compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
  220. compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
  221. compass_api_sdk/models/wrapethrequest.py +6 -1
  222. compass_api_sdk/morpho.py +126 -78
  223. compass_api_sdk/pendle.py +68 -44
  224. compass_api_sdk/sdk.py +18 -11
  225. compass_api_sdk/sky.py +62 -38
  226. compass_api_sdk/smart_account.py +10 -2
  227. compass_api_sdk/swap.py +22 -22
  228. compass_api_sdk/{token_sdk.py → token.py} +511 -103
  229. compass_api_sdk/transaction_bundler.py +46 -16
  230. compass_api_sdk/uniswap_v3.py +152 -114
  231. compass_api_sdk/universal.py +44 -606
  232. compass_api_sdk/utils/annotations.py +32 -8
  233. compass_api_sdk/utils/forms.py +21 -10
  234. compass_api_sdk/utils/queryparams.py +14 -2
  235. compass_api_sdk/utils/retries.py +69 -5
  236. compass_api_sdk/utils/unmarshal_json_response.py +15 -1
  237. compass_api_sdk/wildcat.py +208 -0
  238. compass_api_sdk-2.0.21rc1.dist-info/METADATA +623 -0
  239. compass_api_sdk-2.0.21rc1.dist-info/RECORD +346 -0
  240. {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.0.21rc1.dist-info}/WHEEL +1 -1
  241. compass_api_sdk/models/aerodromeposition.py +0 -70
  242. compass_api_sdk/models/token_enum.py +0 -81
  243. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  244. compass_api_sdk/models/tokeninfo.py +0 -17
  245. compass_api_sdk/models/v1_token_addressop.py +0 -109
  246. compass_api_sdk/models/vaultposition.py +0 -24
  247. compass_api_sdk-1.1.1.dist-info/METADATA +0 -592
  248. compass_api_sdk-1.1.1.dist-info/RECORD +0 -275
@@ -1,14 +1,13 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
11
 
13
12
 
14
13
  AaveWithdrawRequestAmountTypedDict = TypeAliasType(
@@ -30,12 +29,8 @@ class AaveWithdrawRequestChain(str, Enum):
30
29
 
31
30
 
32
31
  class AaveWithdrawRequestTypedDict(TypedDict):
33
- token: TokenEnum
34
- r"""A class representing the token.
35
-
36
- This class is used to represent the token in the system. Notice individual
37
- endpoints' documentation where per chain tokens are presented.
38
- """
32
+ token: str
33
+ r"""The symbol of the underlying asset to withdraw.."""
39
34
  amount: AaveWithdrawRequestAmountTypedDict
40
35
  r"""The amount of the asset to withdraw"""
41
36
  recipient: str
@@ -44,15 +39,13 @@ class AaveWithdrawRequestTypedDict(TypedDict):
44
39
  sender: str
45
40
  r"""The address of the transaction sender."""
46
41
  action_type: Literal["AAVE_WITHDRAW"]
42
+ estimate_gas: NotRequired[bool]
43
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
47
44
 
48
45
 
49
46
  class AaveWithdrawRequest(BaseModel):
50
- token: TokenEnum
51
- r"""A class representing the token.
52
-
53
- This class is used to represent the token in the system. Notice individual
54
- endpoints' documentation where per chain tokens are presented.
55
- """
47
+ token: str
48
+ r"""The symbol of the underlying asset to withdraw.."""
56
49
 
57
50
  amount: AaveWithdrawRequestAmount
58
51
  r"""The amount of the asset to withdraw"""
@@ -72,3 +65,6 @@ class AaveWithdrawRequest(BaseModel):
72
65
  ],
73
66
  pydantic.Field(alias="action_type"),
74
67
  ] = "AAVE_WITHDRAW"
68
+
69
+ estimate_gas: Optional[bool] = None
70
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -0,0 +1,109 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class AerodromeEnrichedPositionTypedDict(TypedDict):
9
+ r"""Aerodrome LP position enriched with token amounts and USD values."""
10
+
11
+ nonce: int
12
+ r"""Position nonce"""
13
+ operator: str
14
+ r"""Operator address"""
15
+ token0: str
16
+ r"""Token0 address"""
17
+ token1: str
18
+ r"""Token1 address"""
19
+ tick_spacing: int
20
+ r"""Pool tick spacing"""
21
+ tick_lower: int
22
+ r"""Lower tick of the position"""
23
+ tick_upper: int
24
+ r"""Upper tick of the position"""
25
+ liquidity: int
26
+ r"""Position liquidity"""
27
+ fee_growth_inside0_last_x128: int
28
+ r"""Fee growth inside for token0"""
29
+ fee_growth_inside1_last_x128: int
30
+ r"""Fee growth inside for token1"""
31
+ tokens_owed0: int
32
+ r"""Uncollected fees for token0"""
33
+ tokens_owed1: int
34
+ r"""Uncollected fees for token1"""
35
+ token_id: int
36
+ r"""NFT token ID"""
37
+ pool_address: str
38
+ r"""Pool contract address"""
39
+ amount0: str
40
+ r"""Amount of token0 in the position (human readable)"""
41
+ amount1: str
42
+ r"""Amount of token1 in the position (human readable)"""
43
+ amount0_usd: str
44
+ r"""USD value of token0 in the position"""
45
+ amount1_usd: str
46
+ r"""USD value of token1 in the position"""
47
+ total_value_usd: str
48
+ r"""Total USD value of the position"""
49
+
50
+
51
+ class AerodromeEnrichedPosition(BaseModel):
52
+ r"""Aerodrome LP position enriched with token amounts and USD values."""
53
+
54
+ nonce: int
55
+ r"""Position nonce"""
56
+
57
+ operator: str
58
+ r"""Operator address"""
59
+
60
+ token0: str
61
+ r"""Token0 address"""
62
+
63
+ token1: str
64
+ r"""Token1 address"""
65
+
66
+ tick_spacing: int
67
+ r"""Pool tick spacing"""
68
+
69
+ tick_lower: int
70
+ r"""Lower tick of the position"""
71
+
72
+ tick_upper: int
73
+ r"""Upper tick of the position"""
74
+
75
+ liquidity: int
76
+ r"""Position liquidity"""
77
+
78
+ fee_growth_inside0_last_x128: int
79
+ r"""Fee growth inside for token0"""
80
+
81
+ fee_growth_inside1_last_x128: int
82
+ r"""Fee growth inside for token1"""
83
+
84
+ tokens_owed0: int
85
+ r"""Uncollected fees for token0"""
86
+
87
+ tokens_owed1: int
88
+ r"""Uncollected fees for token1"""
89
+
90
+ token_id: int
91
+ r"""NFT token ID"""
92
+
93
+ pool_address: str
94
+ r"""Pool contract address"""
95
+
96
+ amount0: str
97
+ r"""Amount of token0 in the position (human readable)"""
98
+
99
+ amount1: str
100
+ r"""Amount of token1 in the position (human readable)"""
101
+
102
+ amount0_usd: str
103
+ r"""USD value of token0 in the position"""
104
+
105
+ amount1_usd: str
106
+ r"""USD value of token1 in the position"""
107
+
108
+ total_value_usd: str
109
+ r"""Total USD value of the position"""
@@ -1,21 +1,24 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
4
+ from .aerodromeenrichedposition import (
5
+ AerodromeEnrichedPosition,
6
+ AerodromeEnrichedPositionTypedDict,
7
+ )
5
8
  from compass_api_sdk.types import BaseModel
6
9
  from typing import Dict
7
10
  from typing_extensions import TypedDict
8
11
 
9
12
 
10
13
  class AerodromeLPPositionsResponseTypedDict(TypedDict):
11
- positions: Dict[str, AerodromePositionTypedDict]
12
- r"""Liquidity provision positions belonging to a particular user. The key is a
13
- tuple of the token0, token1, tick_spacing, tick_lower, and tick_upper of the position.
14
+ positions: Dict[str, AerodromeEnrichedPositionTypedDict]
15
+ r"""Liquidity provision positions belonging to a particular user, enriched with
16
+ token amounts and USD values. The key is the NFT token ID of the position.
14
17
  """
15
18
 
16
19
 
17
20
  class AerodromeLPPositionsResponse(BaseModel):
18
- positions: Dict[str, AerodromePosition]
19
- r"""Liquidity provision positions belonging to a particular user. The key is a
20
- tuple of the token0, token1, tick_spacing, tick_lower, and tick_upper of the position.
21
+ positions: Dict[str, AerodromeEnrichedPosition]
22
+ r"""Liquidity provision positions belonging to a particular user, enriched with
23
+ token amounts and USD values. The key is the NFT token ID of the position.
21
24
  """
@@ -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 .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  import pydantic
@@ -37,18 +36,10 @@ r"""The maximum amount of the token to swap from"""
37
36
  class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
38
37
  r"""Parameters model for buying exactly an amount of tokens."""
39
38
 
40
- token_in: TokenEnum
41
- r"""A class representing the token.
42
-
43
- This class is used to represent the token in the system. Notice individual
44
- endpoints' documentation where per chain tokens are presented.
45
- """
46
- token_out: TokenEnum
47
- r"""A class representing the token.
48
-
49
- This class is used to represent the token in the system. Notice individual
50
- endpoints' documentation where per chain tokens are presented.
51
- """
39
+ token_in: str
40
+ r"""The symbol of the token to swap from."""
41
+ token_out: str
42
+ r"""The symbol of the token to swap to."""
52
43
  tick_spacing: int
53
44
  r"""The tick spacing of the pool"""
54
45
  amount_out: AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict
@@ -61,19 +52,11 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
61
52
  class AerodromeSlipstreamBuyExactlyParams(BaseModel):
62
53
  r"""Parameters model for buying exactly an amount of tokens."""
63
54
 
64
- token_in: TokenEnum
65
- r"""A class representing the token.
66
-
67
- This class is used to represent the token in the system. Notice individual
68
- endpoints' documentation where per chain tokens are presented.
69
- """
70
-
71
- token_out: TokenEnum
72
- r"""A class representing the token.
55
+ token_in: str
56
+ r"""The symbol of the token to swap from."""
73
57
 
74
- This class is used to represent the token in the system. Notice individual
75
- endpoints' documentation where per chain tokens are presented.
76
- """
58
+ token_out: str
59
+ r"""The symbol of the token to swap to."""
77
60
 
78
61
  tick_spacing: int
79
62
  r"""The tick spacing of the pool"""
@@ -1,14 +1,13 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  from enum import Enum
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
11
 
13
12
 
14
13
  AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
@@ -42,18 +41,10 @@ class AerodromeSlipstreamBuyExactlyRequestChain(str, Enum):
42
41
  class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
43
42
  r"""Request model for buying exactly an amount of tokens."""
44
43
 
45
- token_in: TokenEnum
46
- r"""A class representing the token.
47
-
48
- This class is used to represent the token in the system. Notice individual
49
- endpoints' documentation where per chain tokens are presented.
50
- """
51
- token_out: TokenEnum
52
- r"""A class representing the token.
53
-
54
- This class is used to represent the token in the system. Notice individual
55
- endpoints' documentation where per chain tokens are presented.
56
- """
44
+ token_in: str
45
+ r"""The symbol of the token to swap from."""
46
+ token_out: str
47
+ r"""The symbol of the token to swap to."""
57
48
  tick_spacing: int
58
49
  r"""The tick spacing of the pool"""
59
50
  amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict
@@ -64,24 +55,18 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
64
55
  sender: str
65
56
  r"""The address of the transaction sender."""
66
57
  action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
58
+ estimate_gas: NotRequired[bool]
59
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
67
60
 
68
61
 
69
62
  class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
70
63
  r"""Request model for buying exactly an amount of tokens."""
71
64
 
72
- token_in: TokenEnum
73
- r"""A class representing the token.
74
-
75
- This class is used to represent the token in the system. Notice individual
76
- endpoints' documentation where per chain tokens are presented.
77
- """
65
+ token_in: str
66
+ r"""The symbol of the token to swap from."""
78
67
 
79
- token_out: TokenEnum
80
- r"""A class representing the token.
81
-
82
- This class is used to represent the token in the system. Notice individual
83
- endpoints' documentation where per chain tokens are presented.
84
- """
68
+ token_out: str
69
+ r"""The symbol of the token to swap to."""
85
70
 
86
71
  tick_spacing: int
87
72
  r"""The tick spacing of the pool"""
@@ -104,3 +89,6 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
104
89
  ],
105
90
  pydantic.Field(alias="action_type"),
106
91
  ] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
92
+
93
+ estimate_gas: Optional[bool] = None
94
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -7,7 +7,7 @@ from enum import Enum
7
7
  import pydantic
8
8
  from pydantic.functional_validators import AfterValidator
9
9
  from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
11
11
 
12
12
 
13
13
  AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
@@ -91,6 +91,8 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
91
91
  sender: str
92
92
  r"""The address of the transaction sender."""
93
93
  action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
94
+ estimate_gas: NotRequired[bool]
95
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
94
96
 
95
97
 
96
98
  class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
@@ -123,3 +125,6 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
123
125
  ],
124
126
  pydantic.Field(alias="action_type"),
125
127
  ] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
128
+
129
+ estimate_gas: Optional[bool] = None
130
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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 .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import (
6
5
  BaseModel,
7
6
  Nullable,
@@ -72,18 +71,10 @@ r"""The minimum amount of the second token to deposit"""
72
71
  class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
73
72
  r"""Parameters model for minting a new liquidity position."""
74
73
 
75
- token0: TokenEnum
76
- r"""A class representing the token.
77
-
78
- This class is used to represent the token in the system. Notice individual
79
- endpoints' documentation where per chain tokens are presented.
80
- """
81
- token1: TokenEnum
82
- r"""A class representing the token.
83
-
84
- This class is used to represent the token in the system. Notice individual
85
- endpoints' documentation where per chain tokens are presented.
86
- """
74
+ token0: str
75
+ r"""The symbol or address of the first token in the pair."""
76
+ token1: str
77
+ r"""The symbol or address of the second token in the pair."""
87
78
  tick_spacing: int
88
79
  r"""The tick spacing of the pool"""
89
80
  tick_lower: int
@@ -110,19 +101,11 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
110
101
  class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
111
102
  r"""Parameters model for minting a new liquidity position."""
112
103
 
113
- token0: TokenEnum
114
- r"""A class representing the token.
115
-
116
- This class is used to represent the token in the system. Notice individual
117
- endpoints' documentation where per chain tokens are presented.
118
- """
119
-
120
- token1: TokenEnum
121
- r"""A class representing the token.
104
+ token0: str
105
+ r"""The symbol or address of the first token in the pair."""
122
106
 
123
- This class is used to represent the token in the system. Notice individual
124
- endpoints' documentation where per chain tokens are presented.
125
- """
107
+ token1: str
108
+ r"""The symbol or address of the second token in the pair."""
126
109
 
127
110
  tick_spacing: int
128
111
  r"""The tick spacing of the pool"""
@@ -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 .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import (
6
5
  BaseModel,
7
6
  Nullable,
@@ -77,18 +76,10 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestChain(str, Enum):
77
76
  class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
78
77
  r"""Request model for minting a new liquidity position."""
79
78
 
80
- token0: TokenEnum
81
- r"""A class representing the token.
82
-
83
- This class is used to represent the token in the system. Notice individual
84
- endpoints' documentation where per chain tokens are presented.
85
- """
86
- token1: TokenEnum
87
- r"""A class representing the token.
88
-
89
- This class is used to represent the token in the system. Notice individual
90
- endpoints' documentation where per chain tokens are presented.
91
- """
79
+ token0: str
80
+ r"""The symbol or address of the first token in the pair."""
81
+ token1: str
82
+ r"""The symbol or address of the second token in the pair."""
92
83
  tick_spacing: int
93
84
  r"""The tick spacing of the pool"""
94
85
  tick_lower: int
@@ -113,24 +104,18 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
113
104
  action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
114
105
  recipient: NotRequired[Nullable[str]]
115
106
  r"""The address that will receive the LP tokens"""
107
+ estimate_gas: NotRequired[bool]
108
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
116
109
 
117
110
 
118
111
  class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
119
112
  r"""Request model for minting a new liquidity position."""
120
113
 
121
- token0: TokenEnum
122
- r"""A class representing the token.
123
-
124
- This class is used to represent the token in the system. Notice individual
125
- endpoints' documentation where per chain tokens are presented.
126
- """
114
+ token0: str
115
+ r"""The symbol or address of the first token in the pair."""
127
116
 
128
- token1: TokenEnum
129
- r"""A class representing the token.
130
-
131
- This class is used to represent the token in the system. Notice individual
132
- endpoints' documentation where per chain tokens are presented.
133
- """
117
+ token1: str
118
+ r"""The symbol or address of the second token in the pair."""
134
119
 
135
120
  tick_spacing: int
136
121
  r"""The tick spacing of the pool"""
@@ -171,9 +156,12 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
171
156
  recipient: OptionalNullable[str] = UNSET
172
157
  r"""The address that will receive the LP tokens"""
173
158
 
159
+ estimate_gas: Optional[bool] = None
160
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
161
+
174
162
  @model_serializer(mode="wrap")
175
163
  def serialize_model(self, handler):
176
- optional_fields = ["action_type", "recipient"]
164
+ optional_fields = ["action_type", "recipient", "estimate_gas"]
177
165
  nullable_fields = ["recipient"]
178
166
  null_default_fields = []
179
167
 
@@ -1,24 +1,15 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from typing_extensions import TypedDict
7
6
 
8
7
 
9
8
  class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
10
- token_in: TokenEnum
11
- r"""A class representing the token.
12
-
13
- This class is used to represent the token in the system. Notice individual
14
- endpoints' documentation where per chain tokens are presented.
15
- """
16
- token_out: TokenEnum
17
- r"""A class representing the token.
18
-
19
- This class is used to represent the token in the system. Notice individual
20
- endpoints' documentation where per chain tokens are presented.
21
- """
9
+ token_in: str
10
+ r"""The first token in the pool."""
11
+ token_out: str
12
+ r"""The second token in the pool."""
22
13
  price: str
23
14
  r"""The price of the pool. This is expressed as an instantaneous amount of how
24
15
  many token0 you need to buy 1 token1. In any swap this will not change during the trade; use
@@ -31,19 +22,11 @@ class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
31
22
 
32
23
 
33
24
  class AerodromeSlipstreamPoolPriceResponse(BaseModel):
34
- token_in: TokenEnum
35
- r"""A class representing the token.
25
+ token_in: str
26
+ r"""The first token in the pool."""
36
27
 
37
- This class is used to represent the token in the system. Notice individual
38
- endpoints' documentation where per chain tokens are presented.
39
- """
40
-
41
- token_out: TokenEnum
42
- r"""A class representing the token.
43
-
44
- This class is used to represent the token in the system. Notice individual
45
- endpoints' documentation where per chain tokens are presented.
46
- """
28
+ token_out: str
29
+ r"""The second token in the pool."""
47
30
 
48
31
  price: str
49
32
  r"""The price of the pool. This is expressed as an instantaneous amount of how
@@ -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 .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
7
6
  import pydantic
@@ -37,18 +36,10 @@ r"""The minimum amount of the token to swap to, defaults to 0"""
37
36
  class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
38
37
  r"""Parameters model for selling exactly an amount of tokens."""
39
38
 
40
- token_in: TokenEnum
41
- r"""A class representing the token.
42
-
43
- This class is used to represent the token in the system. Notice individual
44
- endpoints' documentation where per chain tokens are presented.
45
- """
46
- token_out: TokenEnum
47
- r"""A class representing the token.
48
-
49
- This class is used to represent the token in the system. Notice individual
50
- endpoints' documentation where per chain tokens are presented.
51
- """
39
+ token_in: str
40
+ r"""The symbol or address of the token to swap from."""
41
+ token_out: str
42
+ r"""The symbol or address of the token to swap to."""
52
43
  tick_spacing: int
53
44
  r"""The tick spacing of the pool"""
54
45
  amount_in: AerodromeSlipstreamSellExactlyParamsAmountInTypedDict
@@ -63,19 +54,11 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
63
54
  class AerodromeSlipstreamSellExactlyParams(BaseModel):
64
55
  r"""Parameters model for selling exactly an amount of tokens."""
65
56
 
66
- token_in: TokenEnum
67
- r"""A class representing the token.
68
-
69
- This class is used to represent the token in the system. Notice individual
70
- endpoints' documentation where per chain tokens are presented.
71
- """
72
-
73
- token_out: TokenEnum
74
- r"""A class representing the token.
57
+ token_in: str
58
+ r"""The symbol or address of the token to swap from."""
75
59
 
76
- This class is used to represent the token in the system. Notice individual
77
- endpoints' documentation where per chain tokens are presented.
78
- """
60
+ token_out: str
61
+ r"""The symbol or address of the token to swap to."""
79
62
 
80
63
  tick_spacing: int
81
64
  r"""The tick spacing of the pool"""