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
@@ -12,10 +12,10 @@ class UniswapV3(BaseSDK):
12
12
  def uniswap_quote_buy_exactly(
13
13
  self,
14
14
  *,
15
- chain: models.V1UniswapQuoteBuyExactlyChain = models.V1UniswapQuoteBuyExactlyChain.ARBITRUM,
16
- token_in: models.V1UniswapQuoteBuyExactlyTokenInToken = models.V1UniswapQuoteBuyExactlyTokenInToken.USDC,
17
- token_out: models.V1UniswapQuoteBuyExactlyTokenOutToken = models.V1UniswapQuoteBuyExactlyTokenOutToken.USDT,
18
- fee: models.V1UniswapQuoteBuyExactlyFeeEnum = models.V1UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01,
15
+ chain: models.V1UniswapQuoteBuyExactlyChain,
16
+ token_in: str,
17
+ token_out: str,
18
+ fee: models.V1UniswapQuoteBuyExactlyFeeEnum,
19
19
  amount_out: Union[
20
20
  models.V1UniswapQuoteBuyExactlyAmountOut,
21
21
  models.V1UniswapQuoteBuyExactlyAmountOutTypedDict,
@@ -34,8 +34,8 @@ class UniswapV3(BaseSDK):
34
34
  into account the current pool state and the specified fee tier.
35
35
 
36
36
  :param chain:
37
- :param token_in: The symbol of the token to swap from.
38
- :param token_out: The symbol of the token to swap to.
37
+ :param token_in: The symbol or address of the token to swap from.
38
+ :param token_out: The symbol or address of the token to swap to.
39
39
  :param fee: The fee to pay for the swap
40
40
  :param amount_out: The amount of the token to swap to
41
41
  :param retries: Override the default retry configuration for this method
@@ -74,6 +74,7 @@ class UniswapV3(BaseSDK):
74
74
  accept_header_value="application/json",
75
75
  http_headers=http_headers,
76
76
  security=self.sdk_configuration.security,
77
+ allow_empty_value=None,
77
78
  timeout_ms=timeout_ms,
78
79
  )
79
80
 
@@ -90,7 +91,7 @@ class UniswapV3(BaseSDK):
90
91
  config=self.sdk_configuration,
91
92
  base_url=base_url or "",
92
93
  operation_id="v1_uniswap_quote_buy_exactly",
93
- oauth2_scopes=[],
94
+ oauth2_scopes=None,
94
95
  security_source=self.sdk_configuration.security,
95
96
  ),
96
97
  request=req,
@@ -118,10 +119,10 @@ class UniswapV3(BaseSDK):
118
119
  async def uniswap_quote_buy_exactly_async(
119
120
  self,
120
121
  *,
121
- chain: models.V1UniswapQuoteBuyExactlyChain = models.V1UniswapQuoteBuyExactlyChain.ARBITRUM,
122
- token_in: models.V1UniswapQuoteBuyExactlyTokenInToken = models.V1UniswapQuoteBuyExactlyTokenInToken.USDC,
123
- token_out: models.V1UniswapQuoteBuyExactlyTokenOutToken = models.V1UniswapQuoteBuyExactlyTokenOutToken.USDT,
124
- fee: models.V1UniswapQuoteBuyExactlyFeeEnum = models.V1UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01,
122
+ chain: models.V1UniswapQuoteBuyExactlyChain,
123
+ token_in: str,
124
+ token_out: str,
125
+ fee: models.V1UniswapQuoteBuyExactlyFeeEnum,
125
126
  amount_out: Union[
126
127
  models.V1UniswapQuoteBuyExactlyAmountOut,
127
128
  models.V1UniswapQuoteBuyExactlyAmountOutTypedDict,
@@ -140,8 +141,8 @@ class UniswapV3(BaseSDK):
140
141
  into account the current pool state and the specified fee tier.
141
142
 
142
143
  :param chain:
143
- :param token_in: The symbol of the token to swap from.
144
- :param token_out: The symbol of the token to swap to.
144
+ :param token_in: The symbol or address of the token to swap from.
145
+ :param token_out: The symbol or address of the token to swap to.
145
146
  :param fee: The fee to pay for the swap
146
147
  :param amount_out: The amount of the token to swap to
147
148
  :param retries: Override the default retry configuration for this method
@@ -180,6 +181,7 @@ class UniswapV3(BaseSDK):
180
181
  accept_header_value="application/json",
181
182
  http_headers=http_headers,
182
183
  security=self.sdk_configuration.security,
184
+ allow_empty_value=None,
183
185
  timeout_ms=timeout_ms,
184
186
  )
185
187
 
@@ -196,7 +198,7 @@ class UniswapV3(BaseSDK):
196
198
  config=self.sdk_configuration,
197
199
  base_url=base_url or "",
198
200
  operation_id="v1_uniswap_quote_buy_exactly",
199
- oauth2_scopes=[],
201
+ oauth2_scopes=None,
200
202
  security_source=self.sdk_configuration.security,
201
203
  ),
202
204
  request=req,
@@ -224,10 +226,10 @@ class UniswapV3(BaseSDK):
224
226
  def uniswap_quote_sell_exactly(
225
227
  self,
226
228
  *,
227
- chain: models.V1UniswapQuoteSellExactlyChain = models.V1UniswapQuoteSellExactlyChain.ARBITRUM,
228
- token_in: models.V1UniswapQuoteSellExactlyTokenInToken = models.V1UniswapQuoteSellExactlyTokenInToken.USDC,
229
- token_out: models.V1UniswapQuoteSellExactlyTokenOutToken = models.V1UniswapQuoteSellExactlyTokenOutToken.USDT,
230
- fee: models.V1UniswapQuoteSellExactlyFeeEnum = models.V1UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01,
229
+ chain: models.V1UniswapQuoteSellExactlyChain,
230
+ token_in: str,
231
+ token_out: str,
232
+ fee: models.V1UniswapQuoteSellExactlyFeeEnum,
231
233
  amount_in: Union[
232
234
  models.V1UniswapQuoteSellExactlyAmountIn,
233
235
  models.V1UniswapQuoteSellExactlyAmountInTypedDict,
@@ -246,8 +248,8 @@ class UniswapV3(BaseSDK):
246
248
  into account the current pool state and the specified fee tier.
247
249
 
248
250
  :param chain:
249
- :param token_in: The symbol of the token to swap from.
250
- :param token_out: The symbol of the token to swap to.
251
+ :param token_in: The symbol or address of the token to swap from.
252
+ :param token_out: The symbol or address of the token to swap to.
251
253
  :param fee: The fee to pay for the swap
252
254
  :param amount_in: The amount of the token to swap from
253
255
  :param retries: Override the default retry configuration for this method
@@ -286,6 +288,7 @@ class UniswapV3(BaseSDK):
286
288
  accept_header_value="application/json",
287
289
  http_headers=http_headers,
288
290
  security=self.sdk_configuration.security,
291
+ allow_empty_value=None,
289
292
  timeout_ms=timeout_ms,
290
293
  )
291
294
 
@@ -302,7 +305,7 @@ class UniswapV3(BaseSDK):
302
305
  config=self.sdk_configuration,
303
306
  base_url=base_url or "",
304
307
  operation_id="v1_uniswap_quote_sell_exactly",
305
- oauth2_scopes=[],
308
+ oauth2_scopes=None,
306
309
  security_source=self.sdk_configuration.security,
307
310
  ),
308
311
  request=req,
@@ -332,10 +335,10 @@ class UniswapV3(BaseSDK):
332
335
  async def uniswap_quote_sell_exactly_async(
333
336
  self,
334
337
  *,
335
- chain: models.V1UniswapQuoteSellExactlyChain = models.V1UniswapQuoteSellExactlyChain.ARBITRUM,
336
- token_in: models.V1UniswapQuoteSellExactlyTokenInToken = models.V1UniswapQuoteSellExactlyTokenInToken.USDC,
337
- token_out: models.V1UniswapQuoteSellExactlyTokenOutToken = models.V1UniswapQuoteSellExactlyTokenOutToken.USDT,
338
- fee: models.V1UniswapQuoteSellExactlyFeeEnum = models.V1UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01,
338
+ chain: models.V1UniswapQuoteSellExactlyChain,
339
+ token_in: str,
340
+ token_out: str,
341
+ fee: models.V1UniswapQuoteSellExactlyFeeEnum,
339
342
  amount_in: Union[
340
343
  models.V1UniswapQuoteSellExactlyAmountIn,
341
344
  models.V1UniswapQuoteSellExactlyAmountInTypedDict,
@@ -354,8 +357,8 @@ class UniswapV3(BaseSDK):
354
357
  into account the current pool state and the specified fee tier.
355
358
 
356
359
  :param chain:
357
- :param token_in: The symbol of the token to swap from.
358
- :param token_out: The symbol of the token to swap to.
360
+ :param token_in: The symbol or address of the token to swap from.
361
+ :param token_out: The symbol or address of the token to swap to.
359
362
  :param fee: The fee to pay for the swap
360
363
  :param amount_in: The amount of the token to swap from
361
364
  :param retries: Override the default retry configuration for this method
@@ -394,6 +397,7 @@ class UniswapV3(BaseSDK):
394
397
  accept_header_value="application/json",
395
398
  http_headers=http_headers,
396
399
  security=self.sdk_configuration.security,
400
+ allow_empty_value=None,
397
401
  timeout_ms=timeout_ms,
398
402
  )
399
403
 
@@ -410,7 +414,7 @@ class UniswapV3(BaseSDK):
410
414
  config=self.sdk_configuration,
411
415
  base_url=base_url or "",
412
416
  operation_id="v1_uniswap_quote_sell_exactly",
413
- oauth2_scopes=[],
417
+ oauth2_scopes=None,
414
418
  security_source=self.sdk_configuration.security,
415
419
  ),
416
420
  request=req,
@@ -440,10 +444,10 @@ class UniswapV3(BaseSDK):
440
444
  def uniswap_pool_price(
441
445
  self,
442
446
  *,
443
- chain: models.V1UniswapPoolPriceChain = models.V1UniswapPoolPriceChain.ARBITRUM,
444
- token_in: models.V1UniswapPoolPriceTokenInToken = models.V1UniswapPoolPriceTokenInToken.USDC,
445
- token_out: models.V1UniswapPoolPriceTokenOutToken = models.V1UniswapPoolPriceTokenOutToken.USDT,
446
- fee: models.V1UniswapPoolPriceFeeEnum = models.V1UniswapPoolPriceFeeEnum.ZERO_DOT_01,
447
+ chain: models.V1UniswapPoolPriceChain,
448
+ token_in: str,
449
+ token_out: str,
450
+ fee: models.V1UniswapPoolPriceFeeEnum,
447
451
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
448
452
  server_url: Optional[str] = None,
449
453
  timeout_ms: Optional[int] = None,
@@ -456,8 +460,8 @@ class UniswapV3(BaseSDK):
456
460
  The price is calculated based on the current pool state and the specified fee tier.
457
461
 
458
462
  :param chain:
459
- :param token_in: The symbol of a token in the pool
460
- :param token_out: The symbol of a token in the pool
463
+ :param token_in: The symbol or address of a token in the pool
464
+ :param token_out: The symbol or address of a token in the pool
461
465
  :param fee: The fee of the pool
462
466
  :param retries: Override the default retry configuration for this method
463
467
  :param server_url: Override the default server URL for this method
@@ -494,6 +498,7 @@ class UniswapV3(BaseSDK):
494
498
  accept_header_value="application/json",
495
499
  http_headers=http_headers,
496
500
  security=self.sdk_configuration.security,
501
+ allow_empty_value=None,
497
502
  timeout_ms=timeout_ms,
498
503
  )
499
504
 
@@ -510,7 +515,7 @@ class UniswapV3(BaseSDK):
510
515
  config=self.sdk_configuration,
511
516
  base_url=base_url or "",
512
517
  operation_id="v1_uniswap_pool_price",
513
- oauth2_scopes=[],
518
+ oauth2_scopes=None,
514
519
  security_source=self.sdk_configuration.security,
515
520
  ),
516
521
  request=req,
@@ -538,10 +543,10 @@ class UniswapV3(BaseSDK):
538
543
  async def uniswap_pool_price_async(
539
544
  self,
540
545
  *,
541
- chain: models.V1UniswapPoolPriceChain = models.V1UniswapPoolPriceChain.ARBITRUM,
542
- token_in: models.V1UniswapPoolPriceTokenInToken = models.V1UniswapPoolPriceTokenInToken.USDC,
543
- token_out: models.V1UniswapPoolPriceTokenOutToken = models.V1UniswapPoolPriceTokenOutToken.USDT,
544
- fee: models.V1UniswapPoolPriceFeeEnum = models.V1UniswapPoolPriceFeeEnum.ZERO_DOT_01,
546
+ chain: models.V1UniswapPoolPriceChain,
547
+ token_in: str,
548
+ token_out: str,
549
+ fee: models.V1UniswapPoolPriceFeeEnum,
545
550
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
546
551
  server_url: Optional[str] = None,
547
552
  timeout_ms: Optional[int] = None,
@@ -554,8 +559,8 @@ class UniswapV3(BaseSDK):
554
559
  The price is calculated based on the current pool state and the specified fee tier.
555
560
 
556
561
  :param chain:
557
- :param token_in: The symbol of a token in the pool
558
- :param token_out: The symbol of a token in the pool
562
+ :param token_in: The symbol or address of a token in the pool
563
+ :param token_out: The symbol or address of a token in the pool
559
564
  :param fee: The fee of the pool
560
565
  :param retries: Override the default retry configuration for this method
561
566
  :param server_url: Override the default server URL for this method
@@ -592,6 +597,7 @@ class UniswapV3(BaseSDK):
592
597
  accept_header_value="application/json",
593
598
  http_headers=http_headers,
594
599
  security=self.sdk_configuration.security,
600
+ allow_empty_value=None,
595
601
  timeout_ms=timeout_ms,
596
602
  )
597
603
 
@@ -608,7 +614,7 @@ class UniswapV3(BaseSDK):
608
614
  config=self.sdk_configuration,
609
615
  base_url=base_url or "",
610
616
  operation_id="v1_uniswap_pool_price",
611
- oauth2_scopes=[],
617
+ oauth2_scopes=None,
612
618
  security_source=self.sdk_configuration.security,
613
619
  ),
614
620
  request=req,
@@ -636,8 +642,8 @@ class UniswapV3(BaseSDK):
636
642
  def uniswap_liquidity_provision_in_range(
637
643
  self,
638
644
  *,
639
- chain: models.V1UniswapLiquidityProvisionInRangeChain = models.V1UniswapLiquidityProvisionInRangeChain.ARBITRUM,
640
- token_id: int = 4318185,
645
+ chain: models.V1UniswapLiquidityProvisionInRangeChain,
646
+ token_id: int,
641
647
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
642
648
  server_url: Optional[str] = None,
643
649
  timeout_ms: Optional[int] = None,
@@ -689,6 +695,7 @@ class UniswapV3(BaseSDK):
689
695
  accept_header_value="application/json",
690
696
  http_headers=http_headers,
691
697
  security=self.sdk_configuration.security,
698
+ allow_empty_value=None,
692
699
  timeout_ms=timeout_ms,
693
700
  )
694
701
 
@@ -705,7 +712,7 @@ class UniswapV3(BaseSDK):
705
712
  config=self.sdk_configuration,
706
713
  base_url=base_url or "",
707
714
  operation_id="v1_uniswap_liquidity_provision_in_range",
708
- oauth2_scopes=[],
715
+ oauth2_scopes=None,
709
716
  security_source=self.sdk_configuration.security,
710
717
  ),
711
718
  request=req,
@@ -733,8 +740,8 @@ class UniswapV3(BaseSDK):
733
740
  async def uniswap_liquidity_provision_in_range_async(
734
741
  self,
735
742
  *,
736
- chain: models.V1UniswapLiquidityProvisionInRangeChain = models.V1UniswapLiquidityProvisionInRangeChain.ARBITRUM,
737
- token_id: int = 4318185,
743
+ chain: models.V1UniswapLiquidityProvisionInRangeChain,
744
+ token_id: int,
738
745
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
739
746
  server_url: Optional[str] = None,
740
747
  timeout_ms: Optional[int] = None,
@@ -786,6 +793,7 @@ class UniswapV3(BaseSDK):
786
793
  accept_header_value="application/json",
787
794
  http_headers=http_headers,
788
795
  security=self.sdk_configuration.security,
796
+ allow_empty_value=None,
789
797
  timeout_ms=timeout_ms,
790
798
  )
791
799
 
@@ -802,7 +810,7 @@ class UniswapV3(BaseSDK):
802
810
  config=self.sdk_configuration,
803
811
  base_url=base_url or "",
804
812
  operation_id="v1_uniswap_liquidity_provision_in_range",
805
- oauth2_scopes=[],
813
+ oauth2_scopes=None,
806
814
  security_source=self.sdk_configuration.security,
807
815
  ),
808
816
  request=req,
@@ -830,8 +838,8 @@ class UniswapV3(BaseSDK):
830
838
  def uniswap_liquidity_provision_positions(
831
839
  self,
832
840
  *,
833
- chain: models.V1UniswapLiquidityProvisionPositionsChain = models.V1UniswapLiquidityProvisionPositionsChain.ARBITRUM,
834
- user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
841
+ chain: models.V1UniswapLiquidityProvisionPositionsChain,
842
+ user: Optional[str] = None,
835
843
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
836
844
  server_url: Optional[str] = None,
837
845
  timeout_ms: Optional[int] = None,
@@ -882,6 +890,7 @@ class UniswapV3(BaseSDK):
882
890
  accept_header_value="application/json",
883
891
  http_headers=http_headers,
884
892
  security=self.sdk_configuration.security,
893
+ allow_empty_value=None,
885
894
  timeout_ms=timeout_ms,
886
895
  )
887
896
 
@@ -898,7 +907,7 @@ class UniswapV3(BaseSDK):
898
907
  config=self.sdk_configuration,
899
908
  base_url=base_url or "",
900
909
  operation_id="v1_uniswap_liquidity_provision_positions",
901
- oauth2_scopes=[],
910
+ oauth2_scopes=None,
902
911
  security_source=self.sdk_configuration.security,
903
912
  ),
904
913
  request=req,
@@ -928,8 +937,8 @@ class UniswapV3(BaseSDK):
928
937
  async def uniswap_liquidity_provision_positions_async(
929
938
  self,
930
939
  *,
931
- chain: models.V1UniswapLiquidityProvisionPositionsChain = models.V1UniswapLiquidityProvisionPositionsChain.ARBITRUM,
932
- user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
940
+ chain: models.V1UniswapLiquidityProvisionPositionsChain,
941
+ user: Optional[str] = None,
933
942
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
934
943
  server_url: Optional[str] = None,
935
944
  timeout_ms: Optional[int] = None,
@@ -980,6 +989,7 @@ class UniswapV3(BaseSDK):
980
989
  accept_header_value="application/json",
981
990
  http_headers=http_headers,
982
991
  security=self.sdk_configuration.security,
992
+ allow_empty_value=None,
983
993
  timeout_ms=timeout_ms,
984
994
  )
985
995
 
@@ -996,7 +1006,7 @@ class UniswapV3(BaseSDK):
996
1006
  config=self.sdk_configuration,
997
1007
  base_url=base_url or "",
998
1008
  operation_id="v1_uniswap_liquidity_provision_positions",
999
- oauth2_scopes=[],
1009
+ oauth2_scopes=None,
1000
1010
  security_source=self.sdk_configuration.security,
1001
1011
  ),
1002
1012
  request=req,
@@ -1026,14 +1036,8 @@ class UniswapV3(BaseSDK):
1026
1036
  def uniswap_swap_buy_exactly(
1027
1037
  self,
1028
1038
  *,
1029
- token_in: Union[
1030
- models.UniswapBuyExactlyRequestTokenIn,
1031
- models.UniswapBuyExactlyRequestTokenInTypedDict,
1032
- ],
1033
- token_out: Union[
1034
- models.UniswapBuyExactlyRequestTokenOut,
1035
- models.UniswapBuyExactlyRequestTokenOutTypedDict,
1036
- ],
1039
+ token_in: str,
1040
+ token_out: str,
1037
1041
  fee: models.FeeEnum,
1038
1042
  amount_out: Union[
1039
1043
  models.UniswapBuyExactlyRequestAmountOut,
@@ -1042,6 +1046,7 @@ class UniswapV3(BaseSDK):
1042
1046
  max_slippage_percent: float,
1043
1047
  chain: models.UniswapBuyExactlyRequestChain,
1044
1048
  sender: str,
1049
+ estimate_gas: Optional[bool] = None,
1045
1050
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1046
1051
  server_url: Optional[str] = None,
1047
1052
  timeout_ms: Optional[int] = None,
@@ -1065,13 +1070,16 @@ class UniswapV3(BaseSDK):
1065
1070
  </Info>
1066
1071
 
1067
1072
 
1068
- :param token_in: The symbol or address of the token to swap from.
1069
- :param token_out: The symbol or address of the token to swap to.
1070
- :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1073
+ :param token_in: The symbol or address of the token to swap from..
1074
+ :param token_out: The symbol or address of the token to swap to..
1075
+ :param fee: The transaction fee of a Uniswap pool in bips.
1076
+
1077
+ Uniswap supports 4 different fee levels.
1071
1078
  :param amount_out: The amount of 'token_out' to buy.
1072
1079
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1073
1080
  :param chain:
1074
1081
  :param sender: The address of the transaction sender.
1082
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1075
1083
  :param retries: Override the default retry configuration for this method
1076
1084
  :param server_url: Override the default server URL for this method
1077
1085
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1095,6 +1103,7 @@ class UniswapV3(BaseSDK):
1095
1103
  max_slippage_percent=max_slippage_percent,
1096
1104
  chain=chain,
1097
1105
  sender=sender,
1106
+ estimate_gas=estimate_gas,
1098
1107
  )
1099
1108
 
1100
1109
  req = self._build_request(
@@ -1113,6 +1122,7 @@ class UniswapV3(BaseSDK):
1113
1122
  get_serialized_body=lambda: utils.serialize_request_body(
1114
1123
  request, False, False, "json", models.UniswapBuyExactlyRequest
1115
1124
  ),
1125
+ allow_empty_value=None,
1116
1126
  timeout_ms=timeout_ms,
1117
1127
  )
1118
1128
 
@@ -1129,7 +1139,7 @@ class UniswapV3(BaseSDK):
1129
1139
  config=self.sdk_configuration,
1130
1140
  base_url=base_url or "",
1131
1141
  operation_id="v1_uniswap_swap_buy_exactly",
1132
- oauth2_scopes=[],
1142
+ oauth2_scopes=None,
1133
1143
  security_source=self.sdk_configuration.security,
1134
1144
  ),
1135
1145
  request=req,
@@ -1159,14 +1169,8 @@ class UniswapV3(BaseSDK):
1159
1169
  async def uniswap_swap_buy_exactly_async(
1160
1170
  self,
1161
1171
  *,
1162
- token_in: Union[
1163
- models.UniswapBuyExactlyRequestTokenIn,
1164
- models.UniswapBuyExactlyRequestTokenInTypedDict,
1165
- ],
1166
- token_out: Union[
1167
- models.UniswapBuyExactlyRequestTokenOut,
1168
- models.UniswapBuyExactlyRequestTokenOutTypedDict,
1169
- ],
1172
+ token_in: str,
1173
+ token_out: str,
1170
1174
  fee: models.FeeEnum,
1171
1175
  amount_out: Union[
1172
1176
  models.UniswapBuyExactlyRequestAmountOut,
@@ -1175,6 +1179,7 @@ class UniswapV3(BaseSDK):
1175
1179
  max_slippage_percent: float,
1176
1180
  chain: models.UniswapBuyExactlyRequestChain,
1177
1181
  sender: str,
1182
+ estimate_gas: Optional[bool] = None,
1178
1183
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1179
1184
  server_url: Optional[str] = None,
1180
1185
  timeout_ms: Optional[int] = None,
@@ -1198,13 +1203,16 @@ class UniswapV3(BaseSDK):
1198
1203
  </Info>
1199
1204
 
1200
1205
 
1201
- :param token_in: The symbol or address of the token to swap from.
1202
- :param token_out: The symbol or address of the token to swap to.
1203
- :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1206
+ :param token_in: The symbol or address of the token to swap from..
1207
+ :param token_out: The symbol or address of the token to swap to..
1208
+ :param fee: The transaction fee of a Uniswap pool in bips.
1209
+
1210
+ Uniswap supports 4 different fee levels.
1204
1211
  :param amount_out: The amount of 'token_out' to buy.
1205
1212
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1206
1213
  :param chain:
1207
1214
  :param sender: The address of the transaction sender.
1215
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1208
1216
  :param retries: Override the default retry configuration for this method
1209
1217
  :param server_url: Override the default server URL for this method
1210
1218
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1228,6 +1236,7 @@ class UniswapV3(BaseSDK):
1228
1236
  max_slippage_percent=max_slippage_percent,
1229
1237
  chain=chain,
1230
1238
  sender=sender,
1239
+ estimate_gas=estimate_gas,
1231
1240
  )
1232
1241
 
1233
1242
  req = self._build_request_async(
@@ -1246,6 +1255,7 @@ class UniswapV3(BaseSDK):
1246
1255
  get_serialized_body=lambda: utils.serialize_request_body(
1247
1256
  request, False, False, "json", models.UniswapBuyExactlyRequest
1248
1257
  ),
1258
+ allow_empty_value=None,
1249
1259
  timeout_ms=timeout_ms,
1250
1260
  )
1251
1261
 
@@ -1262,7 +1272,7 @@ class UniswapV3(BaseSDK):
1262
1272
  config=self.sdk_configuration,
1263
1273
  base_url=base_url or "",
1264
1274
  operation_id="v1_uniswap_swap_buy_exactly",
1265
- oauth2_scopes=[],
1275
+ oauth2_scopes=None,
1266
1276
  security_source=self.sdk_configuration.security,
1267
1277
  ),
1268
1278
  request=req,
@@ -1292,14 +1302,8 @@ class UniswapV3(BaseSDK):
1292
1302
  def uniswap_swap_sell_exactly(
1293
1303
  self,
1294
1304
  *,
1295
- token_in: Union[
1296
- models.UniswapSellExactlyRequestTokenIn,
1297
- models.UniswapSellExactlyRequestTokenInTypedDict,
1298
- ],
1299
- token_out: Union[
1300
- models.UniswapSellExactlyRequestTokenOut,
1301
- models.UniswapSellExactlyRequestTokenOutTypedDict,
1302
- ],
1305
+ token_in: str,
1306
+ token_out: str,
1303
1307
  fee: models.FeeEnum,
1304
1308
  amount_in: Union[
1305
1309
  models.UniswapSellExactlyRequestAmountIn,
@@ -1308,6 +1312,7 @@ class UniswapV3(BaseSDK):
1308
1312
  max_slippage_percent: float,
1309
1313
  chain: models.UniswapSellExactlyRequestChain,
1310
1314
  sender: str,
1315
+ estimate_gas: Optional[bool] = None,
1311
1316
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1312
1317
  server_url: Optional[str] = None,
1313
1318
  timeout_ms: Optional[int] = None,
@@ -1333,11 +1338,14 @@ class UniswapV3(BaseSDK):
1333
1338
 
1334
1339
  :param token_in: The symbol or address of the token to sell..
1335
1340
  :param token_out: The symbol or address of the token to buy..
1336
- :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1341
+ :param fee: The transaction fee of a Uniswap pool in bips.
1342
+
1343
+ Uniswap supports 4 different fee levels.
1337
1344
  :param amount_in: The amount of the `token_in` to sell
1338
1345
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1339
1346
  :param chain:
1340
1347
  :param sender: The address of the transaction sender.
1348
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1341
1349
  :param retries: Override the default retry configuration for this method
1342
1350
  :param server_url: Override the default server URL for this method
1343
1351
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1361,6 +1369,7 @@ class UniswapV3(BaseSDK):
1361
1369
  max_slippage_percent=max_slippage_percent,
1362
1370
  chain=chain,
1363
1371
  sender=sender,
1372
+ estimate_gas=estimate_gas,
1364
1373
  )
1365
1374
 
1366
1375
  req = self._build_request(
@@ -1379,6 +1388,7 @@ class UniswapV3(BaseSDK):
1379
1388
  get_serialized_body=lambda: utils.serialize_request_body(
1380
1389
  request, False, False, "json", models.UniswapSellExactlyRequest
1381
1390
  ),
1391
+ allow_empty_value=None,
1382
1392
  timeout_ms=timeout_ms,
1383
1393
  )
1384
1394
 
@@ -1395,7 +1405,7 @@ class UniswapV3(BaseSDK):
1395
1405
  config=self.sdk_configuration,
1396
1406
  base_url=base_url or "",
1397
1407
  operation_id="v1_uniswap_swap_sell_exactly",
1398
- oauth2_scopes=[],
1408
+ oauth2_scopes=None,
1399
1409
  security_source=self.sdk_configuration.security,
1400
1410
  ),
1401
1411
  request=req,
@@ -1425,14 +1435,8 @@ class UniswapV3(BaseSDK):
1425
1435
  async def uniswap_swap_sell_exactly_async(
1426
1436
  self,
1427
1437
  *,
1428
- token_in: Union[
1429
- models.UniswapSellExactlyRequestTokenIn,
1430
- models.UniswapSellExactlyRequestTokenInTypedDict,
1431
- ],
1432
- token_out: Union[
1433
- models.UniswapSellExactlyRequestTokenOut,
1434
- models.UniswapSellExactlyRequestTokenOutTypedDict,
1435
- ],
1438
+ token_in: str,
1439
+ token_out: str,
1436
1440
  fee: models.FeeEnum,
1437
1441
  amount_in: Union[
1438
1442
  models.UniswapSellExactlyRequestAmountIn,
@@ -1441,6 +1445,7 @@ class UniswapV3(BaseSDK):
1441
1445
  max_slippage_percent: float,
1442
1446
  chain: models.UniswapSellExactlyRequestChain,
1443
1447
  sender: str,
1448
+ estimate_gas: Optional[bool] = None,
1444
1449
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1445
1450
  server_url: Optional[str] = None,
1446
1451
  timeout_ms: Optional[int] = None,
@@ -1466,11 +1471,14 @@ class UniswapV3(BaseSDK):
1466
1471
 
1467
1472
  :param token_in: The symbol or address of the token to sell..
1468
1473
  :param token_out: The symbol or address of the token to buy..
1469
- :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1474
+ :param fee: The transaction fee of a Uniswap pool in bips.
1475
+
1476
+ Uniswap supports 4 different fee levels.
1470
1477
  :param amount_in: The amount of the `token_in` to sell
1471
1478
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1472
1479
  :param chain:
1473
1480
  :param sender: The address of the transaction sender.
1481
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1474
1482
  :param retries: Override the default retry configuration for this method
1475
1483
  :param server_url: Override the default server URL for this method
1476
1484
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1494,6 +1502,7 @@ class UniswapV3(BaseSDK):
1494
1502
  max_slippage_percent=max_slippage_percent,
1495
1503
  chain=chain,
1496
1504
  sender=sender,
1505
+ estimate_gas=estimate_gas,
1497
1506
  )
1498
1507
 
1499
1508
  req = self._build_request_async(
@@ -1512,6 +1521,7 @@ class UniswapV3(BaseSDK):
1512
1521
  get_serialized_body=lambda: utils.serialize_request_body(
1513
1522
  request, False, False, "json", models.UniswapSellExactlyRequest
1514
1523
  ),
1524
+ allow_empty_value=None,
1515
1525
  timeout_ms=timeout_ms,
1516
1526
  )
1517
1527
 
@@ -1528,7 +1538,7 @@ class UniswapV3(BaseSDK):
1528
1538
  config=self.sdk_configuration,
1529
1539
  base_url=base_url or "",
1530
1540
  operation_id="v1_uniswap_swap_sell_exactly",
1531
- oauth2_scopes=[],
1541
+ oauth2_scopes=None,
1532
1542
  security_source=self.sdk_configuration.security,
1533
1543
  ),
1534
1544
  request=req,
@@ -1558,8 +1568,8 @@ class UniswapV3(BaseSDK):
1558
1568
  def uniswap_liquidity_provision_mint(
1559
1569
  self,
1560
1570
  *,
1561
- token0: models.TokenEnum,
1562
- token1: models.TokenEnum,
1571
+ token0: str,
1572
+ token1: str,
1563
1573
  fee: models.FeeEnum,
1564
1574
  tick_lower: int,
1565
1575
  tick_upper: int,
@@ -1582,6 +1592,7 @@ class UniswapV3(BaseSDK):
1582
1592
  chain: models.UniswapMintLiquidityProvisionRequestChain,
1583
1593
  sender: str,
1584
1594
  recipient: OptionalNullable[str] = UNSET,
1595
+ estimate_gas: Optional[bool] = None,
1585
1596
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1586
1597
  server_url: Optional[str] = None,
1587
1598
  timeout_ms: Optional[int] = None,
@@ -1607,9 +1618,11 @@ class UniswapV3(BaseSDK):
1607
1618
  </Info>
1608
1619
 
1609
1620
 
1610
- :param token0: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
1611
- :param token1: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
1612
- :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1621
+ :param token0: The symbol or address of the first token in the pair.
1622
+ :param token1: The symbol or address of the second token in the pair.
1623
+ :param fee: The transaction fee of a Uniswap pool in bips.
1624
+
1625
+ Uniswap supports 4 different fee levels.
1613
1626
  :param tick_lower: The lower tick of the range to mint the position in
1614
1627
  :param tick_upper: The upper tick of the range to mint the position in
1615
1628
  :param amount0_desired: The desired amount of the first token to deposit
@@ -1619,6 +1632,7 @@ class UniswapV3(BaseSDK):
1619
1632
  :param chain:
1620
1633
  :param sender: The address of the transaction sender.
1621
1634
  :param recipient: The address that will receive the LP tokens
1635
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1622
1636
  :param retries: Override the default retry configuration for this method
1623
1637
  :param server_url: Override the default server URL for this method
1624
1638
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1647,6 +1661,7 @@ class UniswapV3(BaseSDK):
1647
1661
  recipient=recipient,
1648
1662
  chain=chain,
1649
1663
  sender=sender,
1664
+ estimate_gas=estimate_gas,
1650
1665
  )
1651
1666
 
1652
1667
  req = self._build_request(
@@ -1669,6 +1684,7 @@ class UniswapV3(BaseSDK):
1669
1684
  "json",
1670
1685
  models.UniswapMintLiquidityProvisionRequest,
1671
1686
  ),
1687
+ allow_empty_value=None,
1672
1688
  timeout_ms=timeout_ms,
1673
1689
  )
1674
1690
 
@@ -1685,7 +1701,7 @@ class UniswapV3(BaseSDK):
1685
1701
  config=self.sdk_configuration,
1686
1702
  base_url=base_url or "",
1687
1703
  operation_id="v1_uniswap_liquidity_provision_mint",
1688
- oauth2_scopes=[],
1704
+ oauth2_scopes=None,
1689
1705
  security_source=self.sdk_configuration.security,
1690
1706
  ),
1691
1707
  request=req,
@@ -1713,8 +1729,8 @@ class UniswapV3(BaseSDK):
1713
1729
  async def uniswap_liquidity_provision_mint_async(
1714
1730
  self,
1715
1731
  *,
1716
- token0: models.TokenEnum,
1717
- token1: models.TokenEnum,
1732
+ token0: str,
1733
+ token1: str,
1718
1734
  fee: models.FeeEnum,
1719
1735
  tick_lower: int,
1720
1736
  tick_upper: int,
@@ -1737,6 +1753,7 @@ class UniswapV3(BaseSDK):
1737
1753
  chain: models.UniswapMintLiquidityProvisionRequestChain,
1738
1754
  sender: str,
1739
1755
  recipient: OptionalNullable[str] = UNSET,
1756
+ estimate_gas: Optional[bool] = None,
1740
1757
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1741
1758
  server_url: Optional[str] = None,
1742
1759
  timeout_ms: Optional[int] = None,
@@ -1762,9 +1779,11 @@ class UniswapV3(BaseSDK):
1762
1779
  </Info>
1763
1780
 
1764
1781
 
1765
- :param token0: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
1766
- :param token1: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
1767
- :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1782
+ :param token0: The symbol or address of the first token in the pair.
1783
+ :param token1: The symbol or address of the second token in the pair.
1784
+ :param fee: The transaction fee of a Uniswap pool in bips.
1785
+
1786
+ Uniswap supports 4 different fee levels.
1768
1787
  :param tick_lower: The lower tick of the range to mint the position in
1769
1788
  :param tick_upper: The upper tick of the range to mint the position in
1770
1789
  :param amount0_desired: The desired amount of the first token to deposit
@@ -1774,6 +1793,7 @@ class UniswapV3(BaseSDK):
1774
1793
  :param chain:
1775
1794
  :param sender: The address of the transaction sender.
1776
1795
  :param recipient: The address that will receive the LP tokens
1796
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1777
1797
  :param retries: Override the default retry configuration for this method
1778
1798
  :param server_url: Override the default server URL for this method
1779
1799
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1802,6 +1822,7 @@ class UniswapV3(BaseSDK):
1802
1822
  recipient=recipient,
1803
1823
  chain=chain,
1804
1824
  sender=sender,
1825
+ estimate_gas=estimate_gas,
1805
1826
  )
1806
1827
 
1807
1828
  req = self._build_request_async(
@@ -1824,6 +1845,7 @@ class UniswapV3(BaseSDK):
1824
1845
  "json",
1825
1846
  models.UniswapMintLiquidityProvisionRequest,
1826
1847
  ),
1848
+ allow_empty_value=None,
1827
1849
  timeout_ms=timeout_ms,
1828
1850
  )
1829
1851
 
@@ -1840,7 +1862,7 @@ class UniswapV3(BaseSDK):
1840
1862
  config=self.sdk_configuration,
1841
1863
  base_url=base_url or "",
1842
1864
  operation_id="v1_uniswap_liquidity_provision_mint",
1843
- oauth2_scopes=[],
1865
+ oauth2_scopes=None,
1844
1866
  security_source=self.sdk_configuration.security,
1845
1867
  ),
1846
1868
  request=req,
@@ -1887,6 +1909,7 @@ class UniswapV3(BaseSDK):
1887
1909
  ],
1888
1910
  chain: models.UniswapIncreaseLiquidityProvisionRequestChain,
1889
1911
  sender: str,
1912
+ estimate_gas: Optional[bool] = None,
1890
1913
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1891
1914
  server_url: Optional[str] = None,
1892
1915
  timeout_ms: Optional[int] = None,
@@ -1919,6 +1942,7 @@ class UniswapV3(BaseSDK):
1919
1942
  :param amount1_min: The minimum amount of the second token to deposit
1920
1943
  :param chain:
1921
1944
  :param sender: The address of the transaction sender.
1945
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1922
1946
  :param retries: Override the default retry configuration for this method
1923
1947
  :param server_url: Override the default server URL for this method
1924
1948
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1942,6 +1966,7 @@ class UniswapV3(BaseSDK):
1942
1966
  amount1_min=amount1_min,
1943
1967
  chain=chain,
1944
1968
  sender=sender,
1969
+ estimate_gas=estimate_gas,
1945
1970
  )
1946
1971
 
1947
1972
  req = self._build_request(
@@ -1964,6 +1989,7 @@ class UniswapV3(BaseSDK):
1964
1989
  "json",
1965
1990
  models.UniswapIncreaseLiquidityProvisionRequest,
1966
1991
  ),
1992
+ allow_empty_value=None,
1967
1993
  timeout_ms=timeout_ms,
1968
1994
  )
1969
1995
 
@@ -1980,7 +2006,7 @@ class UniswapV3(BaseSDK):
1980
2006
  config=self.sdk_configuration,
1981
2007
  base_url=base_url or "",
1982
2008
  operation_id="v1_uniswap_liquidity_provision_increase",
1983
- oauth2_scopes=[],
2009
+ oauth2_scopes=None,
1984
2010
  security_source=self.sdk_configuration.security,
1985
2011
  ),
1986
2012
  request=req,
@@ -2027,6 +2053,7 @@ class UniswapV3(BaseSDK):
2027
2053
  ],
2028
2054
  chain: models.UniswapIncreaseLiquidityProvisionRequestChain,
2029
2055
  sender: str,
2056
+ estimate_gas: Optional[bool] = None,
2030
2057
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2031
2058
  server_url: Optional[str] = None,
2032
2059
  timeout_ms: Optional[int] = None,
@@ -2059,6 +2086,7 @@ class UniswapV3(BaseSDK):
2059
2086
  :param amount1_min: The minimum amount of the second token to deposit
2060
2087
  :param chain:
2061
2088
  :param sender: The address of the transaction sender.
2089
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
2062
2090
  :param retries: Override the default retry configuration for this method
2063
2091
  :param server_url: Override the default server URL for this method
2064
2092
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2082,6 +2110,7 @@ class UniswapV3(BaseSDK):
2082
2110
  amount1_min=amount1_min,
2083
2111
  chain=chain,
2084
2112
  sender=sender,
2113
+ estimate_gas=estimate_gas,
2085
2114
  )
2086
2115
 
2087
2116
  req = self._build_request_async(
@@ -2104,6 +2133,7 @@ class UniswapV3(BaseSDK):
2104
2133
  "json",
2105
2134
  models.UniswapIncreaseLiquidityProvisionRequest,
2106
2135
  ),
2136
+ allow_empty_value=None,
2107
2137
  timeout_ms=timeout_ms,
2108
2138
  )
2109
2139
 
@@ -2120,7 +2150,7 @@ class UniswapV3(BaseSDK):
2120
2150
  config=self.sdk_configuration,
2121
2151
  base_url=base_url or "",
2122
2152
  operation_id="v1_uniswap_liquidity_provision_increase",
2123
- oauth2_scopes=[],
2153
+ oauth2_scopes=None,
2124
2154
  security_source=self.sdk_configuration.security,
2125
2155
  ),
2126
2156
  request=req,
@@ -2155,6 +2185,7 @@ class UniswapV3(BaseSDK):
2155
2185
  ],
2156
2186
  chain: models.UniswapWithdrawLiquidityProvisionRequestChain,
2157
2187
  sender: str,
2188
+ estimate_gas: Optional[bool] = None,
2158
2189
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2159
2190
  server_url: Optional[str] = None,
2160
2191
  timeout_ms: Optional[int] = None,
@@ -2185,6 +2216,7 @@ class UniswapV3(BaseSDK):
2185
2216
  :param percentage_for_withdrawal: How much liquidity to take out in percentage.
2186
2217
  :param chain:
2187
2218
  :param sender: The address of the transaction sender.
2219
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
2188
2220
  :param retries: Override the default retry configuration for this method
2189
2221
  :param server_url: Override the default server URL for this method
2190
2222
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2205,6 +2237,7 @@ class UniswapV3(BaseSDK):
2205
2237
  percentage_for_withdrawal=percentage_for_withdrawal,
2206
2238
  chain=chain,
2207
2239
  sender=sender,
2240
+ estimate_gas=estimate_gas,
2208
2241
  )
2209
2242
 
2210
2243
  req = self._build_request(
@@ -2227,6 +2260,7 @@ class UniswapV3(BaseSDK):
2227
2260
  "json",
2228
2261
  models.UniswapWithdrawLiquidityProvisionRequest,
2229
2262
  ),
2263
+ allow_empty_value=None,
2230
2264
  timeout_ms=timeout_ms,
2231
2265
  )
2232
2266
 
@@ -2243,7 +2277,7 @@ class UniswapV3(BaseSDK):
2243
2277
  config=self.sdk_configuration,
2244
2278
  base_url=base_url or "",
2245
2279
  operation_id="v1_uniswap_liquidity_provision_withdraw",
2246
- oauth2_scopes=[],
2280
+ oauth2_scopes=None,
2247
2281
  security_source=self.sdk_configuration.security,
2248
2282
  ),
2249
2283
  request=req,
@@ -2278,6 +2312,7 @@ class UniswapV3(BaseSDK):
2278
2312
  ],
2279
2313
  chain: models.UniswapWithdrawLiquidityProvisionRequestChain,
2280
2314
  sender: str,
2315
+ estimate_gas: Optional[bool] = None,
2281
2316
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2282
2317
  server_url: Optional[str] = None,
2283
2318
  timeout_ms: Optional[int] = None,
@@ -2308,6 +2343,7 @@ class UniswapV3(BaseSDK):
2308
2343
  :param percentage_for_withdrawal: How much liquidity to take out in percentage.
2309
2344
  :param chain:
2310
2345
  :param sender: The address of the transaction sender.
2346
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
2311
2347
  :param retries: Override the default retry configuration for this method
2312
2348
  :param server_url: Override the default server URL for this method
2313
2349
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2328,6 +2364,7 @@ class UniswapV3(BaseSDK):
2328
2364
  percentage_for_withdrawal=percentage_for_withdrawal,
2329
2365
  chain=chain,
2330
2366
  sender=sender,
2367
+ estimate_gas=estimate_gas,
2331
2368
  )
2332
2369
 
2333
2370
  req = self._build_request_async(
@@ -2350,6 +2387,7 @@ class UniswapV3(BaseSDK):
2350
2387
  "json",
2351
2388
  models.UniswapWithdrawLiquidityProvisionRequest,
2352
2389
  ),
2390
+ allow_empty_value=None,
2353
2391
  timeout_ms=timeout_ms,
2354
2392
  )
2355
2393
 
@@ -2366,7 +2404,7 @@ class UniswapV3(BaseSDK):
2366
2404
  config=self.sdk_configuration,
2367
2405
  base_url=base_url or "",
2368
2406
  operation_id="v1_uniswap_liquidity_provision_withdraw",
2369
- oauth2_scopes=[],
2407
+ oauth2_scopes=None,
2370
2408
  security_source=self.sdk_configuration.security,
2371
2409
  ),
2372
2410
  request=req,