compass_api_sdk 1.1.1__py3-none-any.whl → 2.2.1rc3__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 (263) 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 +2026 -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 +458 -0
  19. compass_api_sdk/httpclient.py +0 -1
  20. compass_api_sdk/models/__init__.py +820 -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 +104 -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 +103 -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/depositevent.py +61 -0
  79. compass_api_sdk/models/depositforburnrequest.py +77 -0
  80. compass_api_sdk/models/depositforburnresponse.py +100 -0
  81. compass_api_sdk/models/earnmanageparams.py +76 -0
  82. compass_api_sdk/models/earnmanagerequest.py +132 -0
  83. compass_api_sdk/models/earnmanageresponse.py +52 -0
  84. compass_api_sdk/models/earnpositionsresponse.py +48 -0
  85. compass_api_sdk/models/earnswapparams.py +74 -0
  86. compass_api_sdk/models/earnswaprequest.py +90 -0
  87. compass_api_sdk/models/earnswapresponse.py +55 -0
  88. compass_api_sdk/models/earntransferrequest.py +104 -0
  89. compass_api_sdk/models/earntransferresponse.py +71 -0
  90. compass_api_sdk/models/eip712domainfield.py +20 -0
  91. compass_api_sdk/models/eip712field.py +20 -0
  92. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  93. compass_api_sdk/models/ethenagetvaultresponse.py +5 -5
  94. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  95. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  96. compass_api_sdk/models/fee.py +43 -0
  97. compass_api_sdk/models/listaavemarketsresponse.py +21 -0
  98. compass_api_sdk/models/marketposition.py +5 -5
  99. compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
  100. compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
  101. compass_api_sdk/models/mintpreparependingresponse.py +65 -0
  102. compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
  103. compass_api_sdk/models/mintpreparerequest.py +25 -0
  104. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  105. compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
  106. compass_api_sdk/models/morphodepositrequest.py +6 -1
  107. compass_api_sdk/models/morphogetmarketresponse.py +72 -31
  108. compass_api_sdk/models/morphomarket.py +26 -20
  109. compass_api_sdk/models/morphorepayrequest.py +11 -1
  110. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  111. compass_api_sdk/models/morphovault.py +10 -10
  112. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  113. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  114. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  115. compass_api_sdk/models/odosswapparams.py +9 -30
  116. compass_api_sdk/models/odosswaprequest.py +15 -33
  117. compass_api_sdk/models/oneinchswapparams.py +59 -0
  118. compass_api_sdk/models/openposition.py +7 -7
  119. compass_api_sdk/models/operationtype.py +11 -0
  120. compass_api_sdk/models/pendledepositevent.py +49 -0
  121. compass_api_sdk/models/pendlegetmarketresponse.py +5 -5
  122. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  123. compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
  124. compass_api_sdk/models/pendlemarketinfo.py +138 -0
  125. compass_api_sdk/models/pendlemarketsresponse.py +30 -0
  126. compass_api_sdk/models/pendleptposition.py +111 -0
  127. compass_api_sdk/models/pendleptvenue.py +78 -0
  128. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  129. compass_api_sdk/models/pendletradeptparams.py +2 -15
  130. compass_api_sdk/models/pendletradeptrequest.py +8 -16
  131. compass_api_sdk/models/pendletradeytparams.py +2 -15
  132. compass_api_sdk/models/pendletradeytrequest.py +8 -16
  133. compass_api_sdk/models/pendlewithdrawalevent.py +54 -0
  134. compass_api_sdk/models/permit2typeddata_input.py +46 -0
  135. compass_api_sdk/models/permit2typeddata_output.py +46 -0
  136. compass_api_sdk/models/permitfield.py +20 -0
  137. compass_api_sdk/models/permitmessage.py +39 -0
  138. compass_api_sdk/models/permittransferfrommessage.py +29 -0
  139. compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
  140. compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
  141. compass_api_sdk/models/portfolio.py +5 -5
  142. compass_api_sdk/models/positionpnl.py +52 -0
  143. compass_api_sdk/models/reserve.py +6 -15
  144. compass_api_sdk/models/safetransactionparams.py +78 -0
  145. compass_api_sdk/models/safetransactionresponse.py +28 -0
  146. compass_api_sdk/models/safetxfield.py +20 -0
  147. compass_api_sdk/models/safetxmessage.py +66 -0
  148. compass_api_sdk/models/setallowanceparams.py +3 -16
  149. compass_api_sdk/models/setallowancerequest.py +9 -17
  150. compass_api_sdk/models/skybuyrequest.py +6 -1
  151. compass_api_sdk/models/skydepositrequest.py +7 -2
  152. compass_api_sdk/models/skysellrequest.py +7 -2
  153. compass_api_sdk/models/skywithdrawrequest.py +7 -2
  154. compass_api_sdk/models/sponsorgasrequest.py +71 -0
  155. compass_api_sdk/models/sponsorgasresponse.py +14 -0
  156. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  157. compass_api_sdk/models/tokenconfig.py +30 -0
  158. compass_api_sdk/models/tokenlistresponse.py +21 -0
  159. compass_api_sdk/models/tokenmarketdata.py +27 -0
  160. compass_api_sdk/models/tokenpermissions.py +20 -0
  161. compass_api_sdk/models/tokentransferparams.py +2 -15
  162. compass_api_sdk/models/tokentransferrequest.py +8 -16
  163. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  164. compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
  165. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  166. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  167. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
  168. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  169. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  170. compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
  171. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  172. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  173. compass_api_sdk/models/unsignedtransaction.py +34 -3
  174. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  175. compass_api_sdk/models/useroperation.py +33 -24
  176. compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
  177. compass_api_sdk/models/v1_aave_avg_rateop.py +15 -93
  178. compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
  179. compass_api_sdk/models/v1_aave_liquidity_changeop.py +8 -86
  180. compass_api_sdk/models/v1_aave_rateop.py +8 -86
  181. compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -86
  182. compass_api_sdk/models/v1_aave_std_rateop.py +15 -93
  183. compass_api_sdk/models/v1_aave_token_priceop.py +8 -86
  184. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +14 -92
  185. compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
  186. compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +48 -3
  187. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +12 -168
  188. compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
  189. compass_api_sdk/models/v1_generic_allowanceop.py +12 -26
  190. compass_api_sdk/models/v1_generic_ensop.py +2 -2
  191. compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
  192. compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
  193. compass_api_sdk/models/v1_morpho_marketop.py +2 -2
  194. compass_api_sdk/models/v1_morpho_marketsop.py +10 -30
  195. compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
  196. compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
  197. compass_api_sdk/models/v1_morpho_vaultsop.py +6 -16
  198. compass_api_sdk/models/v1_pendle_marketop.py +8 -8
  199. compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
  200. compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
  201. compass_api_sdk/models/v1_sky_positionop.py +5 -6
  202. compass_api_sdk/models/v1_token_balanceop.py +12 -25
  203. compass_api_sdk/models/{v1_generic_supported_tokensop.py → v1_token_listop.py} +6 -6
  204. compass_api_sdk/models/v1_token_priceop.py +8 -9
  205. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -6
  206. compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
  207. compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
  208. compass_api_sdk/models/v1_uniswap_pool_priceop.py +12 -168
  209. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +20 -176
  210. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +20 -176
  211. compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
  212. compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
  213. compass_api_sdk/models/v2_cctp_mintop.py +47 -0
  214. compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
  215. compass_api_sdk/models/v2_earn_pendle_marketsop.py +105 -0
  216. compass_api_sdk/models/v2_earn_positionsop.py +31 -0
  217. compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
  218. compass_api_sdk/models/v2bundlerequest.py +33 -0
  219. compass_api_sdk/models/v2bundleresponse.py +67 -0
  220. compass_api_sdk/models/v2useroperation.py +37 -0
  221. compass_api_sdk/models/vault.py +14 -14
  222. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  223. compass_api_sdk/models/vaultgetvaultresponse.py +5 -5
  224. compass_api_sdk/models/vaultinfo.py +129 -0
  225. compass_api_sdk/models/vaultsresponse.py +30 -0
  226. compass_api_sdk/models/vaultvenue.py +27 -0
  227. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  228. compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
  229. compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
  230. compass_api_sdk/models/withdrawalevent.py +61 -0
  231. compass_api_sdk/models/wrapethrequest.py +6 -1
  232. compass_api_sdk/morpho.py +126 -78
  233. compass_api_sdk/pendle.py +68 -44
  234. compass_api_sdk/sdk.py +18 -11
  235. compass_api_sdk/sky.py +62 -38
  236. compass_api_sdk/smart_account.py +10 -2
  237. compass_api_sdk/swap.py +22 -22
  238. compass_api_sdk/{token_sdk.py → token.py} +511 -103
  239. compass_api_sdk/transaction_bundler.py +46 -16
  240. compass_api_sdk/types/basemodel.py +41 -3
  241. compass_api_sdk/uniswap_v3.py +152 -114
  242. compass_api_sdk/universal.py +44 -606
  243. compass_api_sdk/utils/__init__.py +0 -3
  244. compass_api_sdk/utils/annotations.py +32 -8
  245. compass_api_sdk/utils/enums.py +60 -0
  246. compass_api_sdk/utils/forms.py +21 -10
  247. compass_api_sdk/utils/queryparams.py +14 -2
  248. compass_api_sdk/utils/requestbodies.py +3 -3
  249. compass_api_sdk/utils/retries.py +69 -5
  250. compass_api_sdk/utils/serializers.py +0 -20
  251. compass_api_sdk/utils/unmarshal_json_response.py +15 -1
  252. compass_api_sdk/wildcat.py +208 -0
  253. compass_api_sdk-2.2.1rc3.dist-info/METADATA +624 -0
  254. compass_api_sdk-2.2.1rc3.dist-info/RECORD +356 -0
  255. {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.2.1rc3.dist-info}/WHEEL +1 -1
  256. compass_api_sdk/models/aerodromeposition.py +0 -70
  257. compass_api_sdk/models/token_enum.py +0 -81
  258. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  259. compass_api_sdk/models/tokeninfo.py +0 -17
  260. compass_api_sdk/models/v1_token_addressop.py +0 -109
  261. compass_api_sdk/models/vaultposition.py +0 -24
  262. compass_api_sdk-1.1.1.dist-info/METADATA +0 -592
  263. compass_api_sdk-1.1.1.dist-info/RECORD +0 -275
@@ -0,0 +1,30 @@
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 TokenConfigTypedDict(TypedDict):
9
+ address: str
10
+ r"""Deployed address of the token"""
11
+ decimals: int
12
+ r"""Token decimals"""
13
+ name: str
14
+ r"""Name of the token"""
15
+ symbol: str
16
+ r"""Token symbol"""
17
+
18
+
19
+ class TokenConfig(BaseModel):
20
+ address: str
21
+ r"""Deployed address of the token"""
22
+
23
+ decimals: int
24
+ r"""Token decimals"""
25
+
26
+ name: str
27
+ r"""Name of the token"""
28
+
29
+ symbol: str
30
+ r"""Token symbol"""
@@ -0,0 +1,21 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .tokenconfig import TokenConfig, TokenConfigTypedDict
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing import List
7
+ from typing_extensions import TypedDict
8
+
9
+
10
+ class TokenListResponseTypedDict(TypedDict):
11
+ r"""Response model for token list."""
12
+
13
+ tokens: List[TokenConfigTypedDict]
14
+ r"""List of known tokens"""
15
+
16
+
17
+ class TokenListResponse(BaseModel):
18
+ r"""Response model for token list."""
19
+
20
+ tokens: List[TokenConfig]
21
+ r"""List of known tokens"""
@@ -0,0 +1,27 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chainmarketinfo import ChainMarketInfo, ChainMarketInfoTypedDict
5
+ from .maxsupplyapyinfo import MaxSupplyApyInfo, MaxSupplyApyInfoTypedDict
6
+ from compass_api_sdk.types import BaseModel
7
+ from typing import Dict
8
+ from typing_extensions import TypedDict
9
+
10
+
11
+ class TokenMarketDataTypedDict(TypedDict):
12
+ r"""Market data for a single token across all chains."""
13
+
14
+ chains: Dict[str, ChainMarketInfoTypedDict]
15
+ r"""Market data per chain. Keys are chain names (ethereum, base, arbitrum)."""
16
+ max_supply_apy: MaxSupplyApyInfoTypedDict
17
+ r"""Information about the chain with the highest supply APY for a token."""
18
+
19
+
20
+ class TokenMarketData(BaseModel):
21
+ r"""Market data for a single token across all chains."""
22
+
23
+ chains: Dict[str, ChainMarketInfo]
24
+ r"""Market data per chain. Keys are chain names (ethereum, base, arbitrum)."""
25
+
26
+ max_supply_apy: MaxSupplyApyInfo
27
+ r"""Information about the chain with the highest supply APY for a token."""
@@ -0,0 +1,20 @@
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 TokenPermissionsTypedDict(TypedDict):
9
+ token: str
10
+ r"""ERC-20 token address"""
11
+ amount: int
12
+ r"""Maximum amount allowed to transfer"""
13
+
14
+
15
+ class TokenPermissions(BaseModel):
16
+ token: str
17
+ r"""ERC-20 token address"""
18
+
19
+ amount: int
20
+ r"""Maximum amount allowed to transfer"""
@@ -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
@@ -10,18 +9,6 @@ from typing import Literal, Optional, Union
10
9
  from typing_extensions import Annotated, TypeAliasType, TypedDict
11
10
 
12
11
 
13
- TokenTransferParamsTokenTypedDict = TypeAliasType(
14
- "TokenTransferParamsTokenTypedDict", Union[TokenEnum, str]
15
- )
16
- r"""The symbol or address of the token to transfer."""
17
-
18
-
19
- TokenTransferParamsToken = TypeAliasType(
20
- "TokenTransferParamsToken", Union[TokenEnum, str]
21
- )
22
- r"""The symbol or address of the token to transfer."""
23
-
24
-
25
12
  TokenTransferParamsAmountTypedDict = TypeAliasType(
26
13
  "TokenTransferParamsAmountTypedDict", Union[float, str]
27
14
  )
@@ -39,7 +26,7 @@ class TokenTransferParamsTypedDict(TypedDict):
39
26
 
40
27
  to: str
41
28
  r"""The recipient of the tokens."""
42
- token: TokenTransferParamsTokenTypedDict
29
+ token: str
43
30
  r"""The symbol or address of the token to transfer."""
44
31
  amount: TokenTransferParamsAmountTypedDict
45
32
  r"""Amount of token to transfer"""
@@ -52,7 +39,7 @@ class TokenTransferParams(BaseModel):
52
39
  to: str
53
40
  r"""The recipient of the tokens."""
54
41
 
55
- token: TokenTransferParamsToken
42
+ token: str
56
43
  r"""The symbol or address of the token to transfer."""
57
44
 
58
45
  amount: TokenTransferParamsAmount
@@ -1,26 +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
12
-
13
-
14
- TokenTransferRequestTokenTypedDict = TypeAliasType(
15
- "TokenTransferRequestTokenTypedDict", Union[TokenEnum, str]
16
- )
17
- r"""The symbol or address of the token to transfer."""
18
-
19
-
20
- TokenTransferRequestToken = TypeAliasType(
21
- "TokenTransferRequestToken", Union[TokenEnum, str]
22
- )
23
- r"""The symbol or address of the token to transfer."""
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
24
11
 
25
12
 
26
13
  TokenTransferRequestAmountTypedDict = TypeAliasType(
@@ -46,7 +33,7 @@ class TokenTransferRequestTypedDict(TypedDict):
46
33
 
47
34
  to: str
48
35
  r"""The recipient of the tokens."""
49
- token: TokenTransferRequestTokenTypedDict
36
+ token: str
50
37
  r"""The symbol or address of the token to transfer."""
51
38
  amount: TokenTransferRequestAmountTypedDict
52
39
  r"""Amount of token to transfer"""
@@ -54,6 +41,8 @@ class TokenTransferRequestTypedDict(TypedDict):
54
41
  sender: str
55
42
  r"""The address of the transaction sender."""
56
43
  action_type: Literal["TOKEN_TRANSFER"]
44
+ estimate_gas: NotRequired[bool]
45
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
57
46
 
58
47
 
59
48
  class TokenTransferRequest(BaseModel):
@@ -62,7 +51,7 @@ class TokenTransferRequest(BaseModel):
62
51
  to: str
63
52
  r"""The recipient of the tokens."""
64
53
 
65
- token: TokenTransferRequestToken
54
+ token: str
66
55
  r"""The symbol or address of the token to transfer."""
67
56
 
68
57
  amount: TokenTransferRequestAmount
@@ -80,3 +69,6 @@ class TokenTransferRequest(BaseModel):
80
69
  ],
81
70
  pydantic.Field(alias="action_type"),
82
71
  ] = "TOKEN_TRANSFER"
72
+
73
+ estimate_gas: Optional[bool] = None
74
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .feeenum import FeeEnum
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import BaseModel
7
6
  from compass_api_sdk.utils import validate_const
8
7
  import pydantic
@@ -11,30 +10,6 @@ from typing import Literal, Optional, Union
11
10
  from typing_extensions import Annotated, TypeAliasType, TypedDict
12
11
 
13
12
 
14
- UniswapBuyExactlyParamsTokenInTypedDict = TypeAliasType(
15
- "UniswapBuyExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
16
- )
17
- r"""The symbol or address of the token to swap from."""
18
-
19
-
20
- UniswapBuyExactlyParamsTokenIn = TypeAliasType(
21
- "UniswapBuyExactlyParamsTokenIn", Union[TokenEnum, str]
22
- )
23
- r"""The symbol or address of the token to swap from."""
24
-
25
-
26
- UniswapBuyExactlyParamsTokenOutTypedDict = TypeAliasType(
27
- "UniswapBuyExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
28
- )
29
- r"""The symbol or address of the token to swap to."""
30
-
31
-
32
- UniswapBuyExactlyParamsTokenOut = TypeAliasType(
33
- "UniswapBuyExactlyParamsTokenOut", Union[TokenEnum, str]
34
- )
35
- r"""The symbol or address of the token to swap to."""
36
-
37
-
38
13
  UniswapBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
39
14
  "UniswapBuyExactlyParamsAmountOutTypedDict", Union[float, str]
40
15
  )
@@ -48,10 +23,10 @@ r"""The amount of 'token_out' to buy."""
48
23
 
49
24
 
50
25
  class UniswapBuyExactlyParamsTypedDict(TypedDict):
51
- token_in: UniswapBuyExactlyParamsTokenInTypedDict
52
- r"""The symbol or address of the token to swap from."""
53
- token_out: UniswapBuyExactlyParamsTokenOutTypedDict
54
- r"""The symbol or address of the token to swap to."""
26
+ token_in: str
27
+ r"""The symbol or address of the token to swap from.."""
28
+ token_out: str
29
+ r"""The symbol or address of the token to swap to.."""
55
30
  fee: FeeEnum
56
31
  r"""The transaction fee of a Uniswap pool in bips.
57
32
 
@@ -65,11 +40,11 @@ class UniswapBuyExactlyParamsTypedDict(TypedDict):
65
40
 
66
41
 
67
42
  class UniswapBuyExactlyParams(BaseModel):
68
- token_in: UniswapBuyExactlyParamsTokenIn
69
- r"""The symbol or address of the token to swap from."""
43
+ token_in: str
44
+ r"""The symbol or address of the token to swap from.."""
70
45
 
71
- token_out: UniswapBuyExactlyParamsTokenOut
72
- r"""The symbol or address of the token to swap to."""
46
+ token_out: str
47
+ r"""The symbol or address of the token to swap to.."""
73
48
 
74
49
  fee: FeeEnum
75
50
  r"""The transaction fee of a Uniswap pool in bips.
@@ -2,38 +2,13 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .feeenum import FeeEnum
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import BaseModel
7
6
  from compass_api_sdk.utils import validate_const
8
7
  from enum import Enum
9
8
  import pydantic
10
9
  from pydantic.functional_validators import AfterValidator
11
10
  from typing import Literal, Optional, Union
12
- from typing_extensions import Annotated, TypeAliasType, TypedDict
13
-
14
-
15
- UniswapBuyExactlyRequestTokenInTypedDict = TypeAliasType(
16
- "UniswapBuyExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
17
- )
18
- r"""The symbol or address of the token to swap from."""
19
-
20
-
21
- UniswapBuyExactlyRequestTokenIn = TypeAliasType(
22
- "UniswapBuyExactlyRequestTokenIn", Union[TokenEnum, str]
23
- )
24
- r"""The symbol or address of the token to swap from."""
25
-
26
-
27
- UniswapBuyExactlyRequestTokenOutTypedDict = TypeAliasType(
28
- "UniswapBuyExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
29
- )
30
- r"""The symbol or address of the token to swap to."""
31
-
32
-
33
- UniswapBuyExactlyRequestTokenOut = TypeAliasType(
34
- "UniswapBuyExactlyRequestTokenOut", Union[TokenEnum, str]
35
- )
36
- r"""The symbol or address of the token to swap to."""
11
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
37
12
 
38
13
 
39
14
  UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
@@ -57,10 +32,10 @@ class UniswapBuyExactlyRequestChain(str, Enum):
57
32
  class UniswapBuyExactlyRequestTypedDict(TypedDict):
58
33
  r"""Request model for buying an exact amount of tokens."""
59
34
 
60
- token_in: UniswapBuyExactlyRequestTokenInTypedDict
61
- r"""The symbol or address of the token to swap from."""
62
- token_out: UniswapBuyExactlyRequestTokenOutTypedDict
63
- r"""The symbol or address of the token to swap to."""
35
+ token_in: str
36
+ r"""The symbol or address of the token to swap from.."""
37
+ token_out: str
38
+ r"""The symbol or address of the token to swap to.."""
64
39
  fee: FeeEnum
65
40
  r"""The transaction fee of a Uniswap pool in bips.
66
41
 
@@ -74,16 +49,18 @@ class UniswapBuyExactlyRequestTypedDict(TypedDict):
74
49
  sender: str
75
50
  r"""The address of the transaction sender."""
76
51
  action_type: Literal["UNISWAP_BUY_EXACTLY"]
52
+ estimate_gas: NotRequired[bool]
53
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
77
54
 
78
55
 
79
56
  class UniswapBuyExactlyRequest(BaseModel):
80
57
  r"""Request model for buying an exact amount of tokens."""
81
58
 
82
- token_in: UniswapBuyExactlyRequestTokenIn
83
- r"""The symbol or address of the token to swap from."""
59
+ token_in: str
60
+ r"""The symbol or address of the token to swap from.."""
84
61
 
85
- token_out: UniswapBuyExactlyRequestTokenOut
86
- r"""The symbol or address of the token to swap to."""
62
+ token_out: str
63
+ r"""The symbol or address of the token to swap to.."""
87
64
 
88
65
  fee: FeeEnum
89
66
  r"""The transaction fee of a Uniswap pool in bips.
@@ -109,3 +86,6 @@ class UniswapBuyExactlyRequest(BaseModel):
109
86
  ],
110
87
  pydantic.Field(alias="action_type"),
111
88
  ] = "UNISWAP_BUY_EXACTLY"
89
+
90
+ estimate_gas: Optional[bool] = None
91
+ 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
  UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
@@ -81,6 +81,8 @@ class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
81
81
  sender: str
82
82
  r"""The address of the transaction sender."""
83
83
  action_type: Literal["UNISWAP_ADD_LIQUIDITY"]
84
+ estimate_gas: NotRequired[bool]
85
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
84
86
 
85
87
 
86
88
  class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
@@ -113,3 +115,6 @@ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
113
115
  ],
114
116
  pydantic.Field(alias="action_type"),
115
117
  ] = "UNISWAP_ADD_LIQUIDITY"
118
+
119
+ estimate_gas: Optional[bool] = None
120
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .feeenum import FeeEnum
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -67,18 +66,10 @@ r"""The minimum amount of the second token to deposit"""
67
66
 
68
67
 
69
68
  class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
70
- token0: TokenEnum
71
- r"""A class representing the token.
72
-
73
- This class is used to represent the token in the system. Notice individual
74
- endpoints' documentation where per chain tokens are presented.
75
- """
76
- token1: TokenEnum
77
- r"""A class representing the token.
78
-
79
- This class is used to represent the token in the system. Notice individual
80
- endpoints' documentation where per chain tokens are presented.
81
- """
69
+ token0: str
70
+ r"""The symbol or address of the first token in the pair."""
71
+ token1: str
72
+ r"""The symbol or address of the second token in the pair."""
82
73
  fee: FeeEnum
83
74
  r"""The transaction fee of a Uniswap pool in bips.
84
75
 
@@ -102,19 +93,11 @@ class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
102
93
 
103
94
 
104
95
  class UniswapMintLiquidityProvisionParams(BaseModel):
105
- token0: TokenEnum
106
- r"""A class representing the token.
96
+ token0: str
97
+ r"""The symbol or address of the first token in the pair."""
107
98
 
108
- This class is used to represent the token in the system. Notice individual
109
- endpoints' documentation where per chain tokens are presented.
110
- """
111
-
112
- token1: TokenEnum
113
- r"""A class representing the token.
114
-
115
- This class is used to represent the token in the system. Notice individual
116
- endpoints' documentation where per chain tokens are presented.
117
- """
99
+ token1: str
100
+ r"""The symbol or address of the second token in the pair."""
118
101
 
119
102
  fee: FeeEnum
120
103
  r"""The transaction fee of a Uniswap pool in bips.
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .feeenum import FeeEnum
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -76,18 +75,10 @@ class UniswapMintLiquidityProvisionRequestChain(str, Enum):
76
75
  class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
77
76
  r"""Request model for minting a new liquidity position."""
78
77
 
79
- token0: 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
- """
85
- token1: TokenEnum
86
- r"""A class representing the token.
87
-
88
- This class is used to represent the token in the system. Notice individual
89
- endpoints' documentation where per chain tokens are presented.
90
- """
78
+ token0: str
79
+ r"""The symbol or address of the first token in the pair."""
80
+ token1: str
81
+ r"""The symbol or address of the second token in the pair."""
91
82
  fee: FeeEnum
92
83
  r"""The transaction fee of a Uniswap pool in bips.
93
84
 
@@ -111,24 +102,18 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
111
102
  action_type: Literal["UNISWAP_MINT_LIQUIDITY_PROVISION"]
112
103
  recipient: NotRequired[Nullable[str]]
113
104
  r"""The address that will receive the LP tokens"""
105
+ estimate_gas: NotRequired[bool]
106
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
114
107
 
115
108
 
116
109
  class UniswapMintLiquidityProvisionRequest(BaseModel):
117
110
  r"""Request model for minting a new liquidity position."""
118
111
 
119
- token0: TokenEnum
120
- r"""A class representing the token.
112
+ token0: str
113
+ r"""The symbol or address of the first token in the pair."""
121
114
 
122
- This class is used to represent the token in the system. Notice individual
123
- endpoints' documentation where per chain tokens are presented.
124
- """
125
-
126
- token1: TokenEnum
127
- r"""A class representing the token.
128
-
129
- This class is used to represent the token in the system. Notice individual
130
- endpoints' documentation where per chain tokens are presented.
131
- """
115
+ token1: str
116
+ r"""The symbol or address of the second token in the pair."""
132
117
 
133
118
  fee: FeeEnum
134
119
  r"""The transaction fee of a Uniswap pool in bips.
@@ -170,9 +155,12 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
170
155
  recipient: OptionalNullable[str] = UNSET
171
156
  r"""The address that will receive the LP tokens"""
172
157
 
158
+ estimate_gas: Optional[bool] = None
159
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
160
+
173
161
  @model_serializer(mode="wrap")
174
162
  def serialize_model(self, handler):
175
- optional_fields = ["action_type", "recipient"]
163
+ optional_fields = ["action_type", "recipient", "estimate_gas"]
176
164
  nullable_fields = ["recipient"]
177
165
  null_default_fields = []
178
166
 
@@ -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 UniswapPoolPriceResponseTypedDict(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 instantanteous amount of how many token0 you need to buy 1 token1. In any swap this will not change during the trade; use the quote endpoint to get a better idea of how much you will pay!"""
24
15
  tick: int
@@ -26,19 +17,11 @@ class UniswapPoolPriceResponseTypedDict(TypedDict):
26
17
 
27
18
 
28
19
  class UniswapPoolPriceResponse(BaseModel):
29
- token_in: TokenEnum
30
- r"""A class representing the token.
20
+ token_in: str
21
+ r"""The first token in the pool"""
31
22
 
32
- This class is used to represent the token in the system. Notice individual
33
- endpoints' documentation where per chain tokens are presented.
34
- """
35
-
36
- token_out: TokenEnum
37
- r"""A class representing the token.
38
-
39
- This class is used to represent the token in the system. Notice individual
40
- endpoints' documentation where per chain tokens are presented.
41
- """
23
+ token_out: str
24
+ r"""The second token in the pool"""
42
25
 
43
26
  price: str
44
27
  r"""The price of the pool. This is expressed as an instantanteous amount of how many token0 you need to buy 1 token1. In any swap this will not change during the trade; use the quote endpoint to get a better idea of how much you will pay!"""
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .feeenum import FeeEnum
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import BaseModel
7
6
  from compass_api_sdk.utils import validate_const
8
7
  import pydantic
@@ -11,30 +10,6 @@ from typing import Literal, Optional, Union
11
10
  from typing_extensions import Annotated, TypeAliasType, TypedDict
12
11
 
13
12
 
14
- UniswapSellExactlyParamsTokenInTypedDict = TypeAliasType(
15
- "UniswapSellExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
16
- )
17
- r"""The symbol or address of the token to sell.."""
18
-
19
-
20
- UniswapSellExactlyParamsTokenIn = TypeAliasType(
21
- "UniswapSellExactlyParamsTokenIn", Union[TokenEnum, str]
22
- )
23
- r"""The symbol or address of the token to sell.."""
24
-
25
-
26
- UniswapSellExactlyParamsTokenOutTypedDict = TypeAliasType(
27
- "UniswapSellExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
28
- )
29
- r"""The symbol or address of the token to buy.."""
30
-
31
-
32
- UniswapSellExactlyParamsTokenOut = TypeAliasType(
33
- "UniswapSellExactlyParamsTokenOut", Union[TokenEnum, str]
34
- )
35
- r"""The symbol or address of the token to buy.."""
36
-
37
-
38
13
  UniswapSellExactlyParamsAmountInTypedDict = TypeAliasType(
39
14
  "UniswapSellExactlyParamsAmountInTypedDict", Union[float, str]
40
15
  )
@@ -50,9 +25,9 @@ r"""The amount of the `token_in` to sell"""
50
25
  class UniswapSellExactlyParamsTypedDict(TypedDict):
51
26
  r"""Parameters model for selling exactly an amount of tokens."""
52
27
 
53
- token_in: UniswapSellExactlyParamsTokenInTypedDict
28
+ token_in: str
54
29
  r"""The symbol or address of the token to sell.."""
55
- token_out: UniswapSellExactlyParamsTokenOutTypedDict
30
+ token_out: str
56
31
  r"""The symbol or address of the token to buy.."""
57
32
  fee: FeeEnum
58
33
  r"""The transaction fee of a Uniswap pool in bips.
@@ -69,10 +44,10 @@ class UniswapSellExactlyParamsTypedDict(TypedDict):
69
44
  class UniswapSellExactlyParams(BaseModel):
70
45
  r"""Parameters model for selling exactly an amount of tokens."""
71
46
 
72
- token_in: UniswapSellExactlyParamsTokenIn
47
+ token_in: str
73
48
  r"""The symbol or address of the token to sell.."""
74
49
 
75
- token_out: UniswapSellExactlyParamsTokenOut
50
+ token_out: str
76
51
  r"""The symbol or address of the token to buy.."""
77
52
 
78
53
  fee: FeeEnum