compass_api_sdk 1.1.1rc0__py3-none-any.whl → 1.1.3__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (106) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +68 -44
  3. compass_api_sdk/aerodrome_slipstream.py +62 -32
  4. compass_api_sdk/erc_4626_vaults.py +12 -0
  5. compass_api_sdk/ethena.py +18 -0
  6. compass_api_sdk/models/__init__.py +0 -254
  7. compass_api_sdk/models/aaveborrowparams.py +4 -13
  8. compass_api_sdk/models/aaveborrowrequest.py +10 -14
  9. compass_api_sdk/models/aavelooprequest.py +18 -26
  10. compass_api_sdk/models/aaverepayparams.py +4 -13
  11. compass_api_sdk/models/aaverepayrequest.py +10 -14
  12. compass_api_sdk/models/aavesupplyparams.py +4 -13
  13. compass_api_sdk/models/aavesupplyrequest.py +10 -14
  14. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  15. compass_api_sdk/models/aavewithdrawrequest.py +10 -14
  16. compass_api_sdk/models/aerodromeposition.py +4 -25
  17. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  18. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
  19. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
  20. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  21. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
  22. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  23. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  24. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
  25. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
  26. compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
  27. compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
  28. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  29. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  30. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  31. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  32. compass_api_sdk/models/morphodepositrequest.py +6 -1
  33. compass_api_sdk/models/morphorepayrequest.py +11 -1
  34. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  35. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  36. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  37. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  38. compass_api_sdk/models/odosswapparams.py +4 -25
  39. compass_api_sdk/models/odosswaprequest.py +10 -28
  40. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  41. compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
  42. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  43. compass_api_sdk/models/pendletradeptparams.py +2 -15
  44. compass_api_sdk/models/pendletradeptrequest.py +8 -16
  45. compass_api_sdk/models/pendletradeytparams.py +2 -15
  46. compass_api_sdk/models/pendletradeytrequest.py +8 -16
  47. compass_api_sdk/models/reserve.py +6 -15
  48. compass_api_sdk/models/setallowanceparams.py +2 -15
  49. compass_api_sdk/models/setallowancerequest.py +8 -16
  50. compass_api_sdk/models/skybuyrequest.py +6 -1
  51. compass_api_sdk/models/skydepositrequest.py +6 -1
  52. compass_api_sdk/models/skysellrequest.py +7 -2
  53. compass_api_sdk/models/skywithdrawrequest.py +6 -1
  54. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  55. compass_api_sdk/models/tokentransferparams.py +2 -15
  56. compass_api_sdk/models/tokentransferrequest.py +8 -16
  57. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  58. compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
  59. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  60. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  61. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
  62. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  63. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  64. compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
  65. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  66. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  67. compass_api_sdk/models/unsignedtransaction.py +34 -3
  68. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  69. compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
  70. compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
  71. compass_api_sdk/models/v1_aave_rateop.py +5 -83
  72. compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
  73. compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
  74. compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
  75. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
  76. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
  77. compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
  78. compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
  79. compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
  80. compass_api_sdk/models/v1_sky_positionop.py +4 -5
  81. compass_api_sdk/models/v1_token_balanceop.py +10 -23
  82. compass_api_sdk/models/v1_token_priceop.py +7 -8
  83. compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
  84. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
  85. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
  86. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  87. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  88. compass_api_sdk/models/wrapethrequest.py +6 -1
  89. compass_api_sdk/morpho.py +48 -24
  90. compass_api_sdk/pendle.py +30 -20
  91. compass_api_sdk/sdk.py +3 -3
  92. compass_api_sdk/sky.py +38 -16
  93. compass_api_sdk/smart_account.py +6 -0
  94. compass_api_sdk/swap.py +10 -12
  95. compass_api_sdk/{token_sdk.py → token.py} +19 -197
  96. compass_api_sdk/transaction_bundler.py +20 -8
  97. compass_api_sdk/uniswap_v3.py +74 -68
  98. compass_api_sdk/universal.py +24 -188
  99. {compass_api_sdk-1.1.1rc0.dist-info → compass_api_sdk-1.1.3.dist-info}/METADATA +5 -7
  100. {compass_api_sdk-1.1.1rc0.dist-info → compass_api_sdk-1.1.3.dist-info}/RECORD +101 -106
  101. compass_api_sdk/models/token_enum.py +0 -81
  102. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  103. compass_api_sdk/models/tokeninfo.py +0 -17
  104. compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
  105. compass_api_sdk/models/v1_token_addressop.py +0 -109
  106. {compass_api_sdk-1.1.1rc0.dist-info → compass_api_sdk-1.1.3.dist-info}/WHEEL +0 -0
@@ -13,8 +13,8 @@ class UniswapV3(BaseSDK):
13
13
  self,
14
14
  *,
15
15
  chain: models.V1UniswapQuoteBuyExactlyChain = models.V1UniswapQuoteBuyExactlyChain.ARBITRUM,
16
- token_in: models.V1UniswapQuoteBuyExactlyTokenInToken = models.V1UniswapQuoteBuyExactlyTokenInToken.USDC,
17
- token_out: models.V1UniswapQuoteBuyExactlyTokenOutToken = models.V1UniswapQuoteBuyExactlyTokenOutToken.USDT,
16
+ token_in: str = "USDC",
17
+ token_out: str = "USDT",
18
18
  fee: models.V1UniswapQuoteBuyExactlyFeeEnum = models.V1UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01,
19
19
  amount_out: Union[
20
20
  models.V1UniswapQuoteBuyExactlyAmountOut,
@@ -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
@@ -119,8 +119,8 @@ class UniswapV3(BaseSDK):
119
119
  self,
120
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,
122
+ token_in: str = "USDC",
123
+ token_out: str = "USDT",
124
124
  fee: models.V1UniswapQuoteBuyExactlyFeeEnum = models.V1UniswapQuoteBuyExactlyFeeEnum.ZERO_DOT_01,
125
125
  amount_out: Union[
126
126
  models.V1UniswapQuoteBuyExactlyAmountOut,
@@ -140,8 +140,8 @@ class UniswapV3(BaseSDK):
140
140
  into account the current pool state and the specified fee tier.
141
141
 
142
142
  :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.
143
+ :param token_in: The symbol or address of the token to swap from.
144
+ :param token_out: The symbol or address of the token to swap to.
145
145
  :param fee: The fee to pay for the swap
146
146
  :param amount_out: The amount of the token to swap to
147
147
  :param retries: Override the default retry configuration for this method
@@ -225,8 +225,8 @@ class UniswapV3(BaseSDK):
225
225
  self,
226
226
  *,
227
227
  chain: models.V1UniswapQuoteSellExactlyChain = models.V1UniswapQuoteSellExactlyChain.ARBITRUM,
228
- token_in: models.V1UniswapQuoteSellExactlyTokenInToken = models.V1UniswapQuoteSellExactlyTokenInToken.USDC,
229
- token_out: models.V1UniswapQuoteSellExactlyTokenOutToken = models.V1UniswapQuoteSellExactlyTokenOutToken.USDT,
228
+ token_in: str = "USDC",
229
+ token_out: str = "USDT",
230
230
  fee: models.V1UniswapQuoteSellExactlyFeeEnum = models.V1UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01,
231
231
  amount_in: Union[
232
232
  models.V1UniswapQuoteSellExactlyAmountIn,
@@ -246,8 +246,8 @@ class UniswapV3(BaseSDK):
246
246
  into account the current pool state and the specified fee tier.
247
247
 
248
248
  :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.
249
+ :param token_in: The symbol or address of the token to swap from.
250
+ :param token_out: The symbol or address of the token to swap to.
251
251
  :param fee: The fee to pay for the swap
252
252
  :param amount_in: The amount of the token to swap from
253
253
  :param retries: Override the default retry configuration for this method
@@ -333,8 +333,8 @@ class UniswapV3(BaseSDK):
333
333
  self,
334
334
  *,
335
335
  chain: models.V1UniswapQuoteSellExactlyChain = models.V1UniswapQuoteSellExactlyChain.ARBITRUM,
336
- token_in: models.V1UniswapQuoteSellExactlyTokenInToken = models.V1UniswapQuoteSellExactlyTokenInToken.USDC,
337
- token_out: models.V1UniswapQuoteSellExactlyTokenOutToken = models.V1UniswapQuoteSellExactlyTokenOutToken.USDT,
336
+ token_in: str = "USDC",
337
+ token_out: str = "USDT",
338
338
  fee: models.V1UniswapQuoteSellExactlyFeeEnum = models.V1UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01,
339
339
  amount_in: Union[
340
340
  models.V1UniswapQuoteSellExactlyAmountIn,
@@ -354,8 +354,8 @@ class UniswapV3(BaseSDK):
354
354
  into account the current pool state and the specified fee tier.
355
355
 
356
356
  :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.
357
+ :param token_in: The symbol or address of the token to swap from.
358
+ :param token_out: The symbol or address of the token to swap to.
359
359
  :param fee: The fee to pay for the swap
360
360
  :param amount_in: The amount of the token to swap from
361
361
  :param retries: Override the default retry configuration for this method
@@ -441,8 +441,8 @@ class UniswapV3(BaseSDK):
441
441
  self,
442
442
  *,
443
443
  chain: models.V1UniswapPoolPriceChain = models.V1UniswapPoolPriceChain.ARBITRUM,
444
- token_in: models.V1UniswapPoolPriceTokenInToken = models.V1UniswapPoolPriceTokenInToken.USDC,
445
- token_out: models.V1UniswapPoolPriceTokenOutToken = models.V1UniswapPoolPriceTokenOutToken.USDT,
444
+ token_in: str = "USDC",
445
+ token_out: str = "USDT",
446
446
  fee: models.V1UniswapPoolPriceFeeEnum = models.V1UniswapPoolPriceFeeEnum.ZERO_DOT_01,
447
447
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
448
448
  server_url: Optional[str] = None,
@@ -456,8 +456,8 @@ class UniswapV3(BaseSDK):
456
456
  The price is calculated based on the current pool state and the specified fee tier.
457
457
 
458
458
  :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
459
+ :param token_in: The symbol or address of a token in the pool
460
+ :param token_out: The symbol or address of a token in the pool
461
461
  :param fee: The fee of the pool
462
462
  :param retries: Override the default retry configuration for this method
463
463
  :param server_url: Override the default server URL for this method
@@ -539,8 +539,8 @@ class UniswapV3(BaseSDK):
539
539
  self,
540
540
  *,
541
541
  chain: models.V1UniswapPoolPriceChain = models.V1UniswapPoolPriceChain.ARBITRUM,
542
- token_in: models.V1UniswapPoolPriceTokenInToken = models.V1UniswapPoolPriceTokenInToken.USDC,
543
- token_out: models.V1UniswapPoolPriceTokenOutToken = models.V1UniswapPoolPriceTokenOutToken.USDT,
542
+ token_in: str = "USDC",
543
+ token_out: str = "USDT",
544
544
  fee: models.V1UniswapPoolPriceFeeEnum = models.V1UniswapPoolPriceFeeEnum.ZERO_DOT_01,
545
545
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
546
546
  server_url: Optional[str] = None,
@@ -554,8 +554,8 @@ class UniswapV3(BaseSDK):
554
554
  The price is calculated based on the current pool state and the specified fee tier.
555
555
 
556
556
  :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
557
+ :param token_in: The symbol or address of a token in the pool
558
+ :param token_out: The symbol or address of a token in the pool
559
559
  :param fee: The fee of the pool
560
560
  :param retries: Override the default retry configuration for this method
561
561
  :param server_url: Override the default server URL for this method
@@ -1026,14 +1026,8 @@ class UniswapV3(BaseSDK):
1026
1026
  def uniswap_swap_buy_exactly(
1027
1027
  self,
1028
1028
  *,
1029
- token_in: Union[
1030
- models.UniswapBuyExactlyRequestTokenIn,
1031
- models.UniswapBuyExactlyRequestTokenInTypedDict,
1032
- ],
1033
- token_out: Union[
1034
- models.UniswapBuyExactlyRequestTokenOut,
1035
- models.UniswapBuyExactlyRequestTokenOutTypedDict,
1036
- ],
1029
+ token_in: str,
1030
+ token_out: str,
1037
1031
  fee: models.FeeEnum,
1038
1032
  amount_out: Union[
1039
1033
  models.UniswapBuyExactlyRequestAmountOut,
@@ -1042,6 +1036,7 @@ class UniswapV3(BaseSDK):
1042
1036
  max_slippage_percent: float,
1043
1037
  chain: models.UniswapBuyExactlyRequestChain,
1044
1038
  sender: str,
1039
+ estimate_gas: Optional[bool] = True,
1045
1040
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1046
1041
  server_url: Optional[str] = None,
1047
1042
  timeout_ms: Optional[int] = None,
@@ -1065,13 +1060,14 @@ class UniswapV3(BaseSDK):
1065
1060
  </Info>
1066
1061
 
1067
1062
 
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.
1063
+ :param token_in: The symbol or address of the token to swap from..
1064
+ :param token_out: The symbol or address of the token to swap to..
1070
1065
  :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1071
1066
  :param amount_out: The amount of 'token_out' to buy.
1072
1067
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1073
1068
  :param chain:
1074
1069
  :param sender: The address of the transaction sender.
1070
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1075
1071
  :param retries: Override the default retry configuration for this method
1076
1072
  :param server_url: Override the default server URL for this method
1077
1073
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1095,6 +1091,7 @@ class UniswapV3(BaseSDK):
1095
1091
  max_slippage_percent=max_slippage_percent,
1096
1092
  chain=chain,
1097
1093
  sender=sender,
1094
+ estimate_gas=estimate_gas,
1098
1095
  )
1099
1096
 
1100
1097
  req = self._build_request(
@@ -1159,14 +1156,8 @@ class UniswapV3(BaseSDK):
1159
1156
  async def uniswap_swap_buy_exactly_async(
1160
1157
  self,
1161
1158
  *,
1162
- token_in: Union[
1163
- models.UniswapBuyExactlyRequestTokenIn,
1164
- models.UniswapBuyExactlyRequestTokenInTypedDict,
1165
- ],
1166
- token_out: Union[
1167
- models.UniswapBuyExactlyRequestTokenOut,
1168
- models.UniswapBuyExactlyRequestTokenOutTypedDict,
1169
- ],
1159
+ token_in: str,
1160
+ token_out: str,
1170
1161
  fee: models.FeeEnum,
1171
1162
  amount_out: Union[
1172
1163
  models.UniswapBuyExactlyRequestAmountOut,
@@ -1175,6 +1166,7 @@ class UniswapV3(BaseSDK):
1175
1166
  max_slippage_percent: float,
1176
1167
  chain: models.UniswapBuyExactlyRequestChain,
1177
1168
  sender: str,
1169
+ estimate_gas: Optional[bool] = True,
1178
1170
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1179
1171
  server_url: Optional[str] = None,
1180
1172
  timeout_ms: Optional[int] = None,
@@ -1198,13 +1190,14 @@ class UniswapV3(BaseSDK):
1198
1190
  </Info>
1199
1191
 
1200
1192
 
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.
1193
+ :param token_in: The symbol or address of the token to swap from..
1194
+ :param token_out: The symbol or address of the token to swap to..
1203
1195
  :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1204
1196
  :param amount_out: The amount of 'token_out' to buy.
1205
1197
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1206
1198
  :param chain:
1207
1199
  :param sender: The address of the transaction sender.
1200
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1208
1201
  :param retries: Override the default retry configuration for this method
1209
1202
  :param server_url: Override the default server URL for this method
1210
1203
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1228,6 +1221,7 @@ class UniswapV3(BaseSDK):
1228
1221
  max_slippage_percent=max_slippage_percent,
1229
1222
  chain=chain,
1230
1223
  sender=sender,
1224
+ estimate_gas=estimate_gas,
1231
1225
  )
1232
1226
 
1233
1227
  req = self._build_request_async(
@@ -1292,14 +1286,8 @@ class UniswapV3(BaseSDK):
1292
1286
  def uniswap_swap_sell_exactly(
1293
1287
  self,
1294
1288
  *,
1295
- token_in: Union[
1296
- models.UniswapSellExactlyRequestTokenIn,
1297
- models.UniswapSellExactlyRequestTokenInTypedDict,
1298
- ],
1299
- token_out: Union[
1300
- models.UniswapSellExactlyRequestTokenOut,
1301
- models.UniswapSellExactlyRequestTokenOutTypedDict,
1302
- ],
1289
+ token_in: str,
1290
+ token_out: str,
1303
1291
  fee: models.FeeEnum,
1304
1292
  amount_in: Union[
1305
1293
  models.UniswapSellExactlyRequestAmountIn,
@@ -1308,6 +1296,7 @@ class UniswapV3(BaseSDK):
1308
1296
  max_slippage_percent: float,
1309
1297
  chain: models.UniswapSellExactlyRequestChain,
1310
1298
  sender: str,
1299
+ estimate_gas: Optional[bool] = True,
1311
1300
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1312
1301
  server_url: Optional[str] = None,
1313
1302
  timeout_ms: Optional[int] = None,
@@ -1338,6 +1327,7 @@ class UniswapV3(BaseSDK):
1338
1327
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1339
1328
  :param chain:
1340
1329
  :param sender: The address of the transaction sender.
1330
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1341
1331
  :param retries: Override the default retry configuration for this method
1342
1332
  :param server_url: Override the default server URL for this method
1343
1333
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1361,6 +1351,7 @@ class UniswapV3(BaseSDK):
1361
1351
  max_slippage_percent=max_slippage_percent,
1362
1352
  chain=chain,
1363
1353
  sender=sender,
1354
+ estimate_gas=estimate_gas,
1364
1355
  )
1365
1356
 
1366
1357
  req = self._build_request(
@@ -1425,14 +1416,8 @@ class UniswapV3(BaseSDK):
1425
1416
  async def uniswap_swap_sell_exactly_async(
1426
1417
  self,
1427
1418
  *,
1428
- token_in: Union[
1429
- models.UniswapSellExactlyRequestTokenIn,
1430
- models.UniswapSellExactlyRequestTokenInTypedDict,
1431
- ],
1432
- token_out: Union[
1433
- models.UniswapSellExactlyRequestTokenOut,
1434
- models.UniswapSellExactlyRequestTokenOutTypedDict,
1435
- ],
1419
+ token_in: str,
1420
+ token_out: str,
1436
1421
  fee: models.FeeEnum,
1437
1422
  amount_in: Union[
1438
1423
  models.UniswapSellExactlyRequestAmountIn,
@@ -1441,6 +1426,7 @@ class UniswapV3(BaseSDK):
1441
1426
  max_slippage_percent: float,
1442
1427
  chain: models.UniswapSellExactlyRequestChain,
1443
1428
  sender: str,
1429
+ estimate_gas: Optional[bool] = True,
1444
1430
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1445
1431
  server_url: Optional[str] = None,
1446
1432
  timeout_ms: Optional[int] = None,
@@ -1471,6 +1457,7 @@ class UniswapV3(BaseSDK):
1471
1457
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1472
1458
  :param chain:
1473
1459
  :param sender: The address of the transaction sender.
1460
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1474
1461
  :param retries: Override the default retry configuration for this method
1475
1462
  :param server_url: Override the default server URL for this method
1476
1463
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1494,6 +1481,7 @@ class UniswapV3(BaseSDK):
1494
1481
  max_slippage_percent=max_slippage_percent,
1495
1482
  chain=chain,
1496
1483
  sender=sender,
1484
+ estimate_gas=estimate_gas,
1497
1485
  )
1498
1486
 
1499
1487
  req = self._build_request_async(
@@ -1558,8 +1546,8 @@ class UniswapV3(BaseSDK):
1558
1546
  def uniswap_liquidity_provision_mint(
1559
1547
  self,
1560
1548
  *,
1561
- token0: models.TokenEnum,
1562
- token1: models.TokenEnum,
1549
+ token0: str,
1550
+ token1: str,
1563
1551
  fee: models.FeeEnum,
1564
1552
  tick_lower: int,
1565
1553
  tick_upper: int,
@@ -1582,6 +1570,7 @@ class UniswapV3(BaseSDK):
1582
1570
  chain: models.UniswapMintLiquidityProvisionRequestChain,
1583
1571
  sender: str,
1584
1572
  recipient: OptionalNullable[str] = UNSET,
1573
+ estimate_gas: Optional[bool] = True,
1585
1574
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1586
1575
  server_url: Optional[str] = None,
1587
1576
  timeout_ms: Optional[int] = None,
@@ -1607,8 +1596,8 @@ class UniswapV3(BaseSDK):
1607
1596
  </Info>
1608
1597
 
1609
1598
 
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.
1599
+ :param token0: The symbol or address of the first token in the pair.
1600
+ :param token1: The symbol or address of the second token in the pair.
1612
1601
  :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1613
1602
  :param tick_lower: The lower tick of the range to mint the position in
1614
1603
  :param tick_upper: The upper tick of the range to mint the position in
@@ -1619,6 +1608,7 @@ class UniswapV3(BaseSDK):
1619
1608
  :param chain:
1620
1609
  :param sender: The address of the transaction sender.
1621
1610
  :param recipient: The address that will receive the LP tokens
1611
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1622
1612
  :param retries: Override the default retry configuration for this method
1623
1613
  :param server_url: Override the default server URL for this method
1624
1614
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1647,6 +1637,7 @@ class UniswapV3(BaseSDK):
1647
1637
  recipient=recipient,
1648
1638
  chain=chain,
1649
1639
  sender=sender,
1640
+ estimate_gas=estimate_gas,
1650
1641
  )
1651
1642
 
1652
1643
  req = self._build_request(
@@ -1713,8 +1704,8 @@ class UniswapV3(BaseSDK):
1713
1704
  async def uniswap_liquidity_provision_mint_async(
1714
1705
  self,
1715
1706
  *,
1716
- token0: models.TokenEnum,
1717
- token1: models.TokenEnum,
1707
+ token0: str,
1708
+ token1: str,
1718
1709
  fee: models.FeeEnum,
1719
1710
  tick_lower: int,
1720
1711
  tick_upper: int,
@@ -1737,6 +1728,7 @@ class UniswapV3(BaseSDK):
1737
1728
  chain: models.UniswapMintLiquidityProvisionRequestChain,
1738
1729
  sender: str,
1739
1730
  recipient: OptionalNullable[str] = UNSET,
1731
+ estimate_gas: Optional[bool] = True,
1740
1732
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1741
1733
  server_url: Optional[str] = None,
1742
1734
  timeout_ms: Optional[int] = None,
@@ -1762,8 +1754,8 @@ class UniswapV3(BaseSDK):
1762
1754
  </Info>
1763
1755
 
1764
1756
 
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.
1757
+ :param token0: The symbol or address of the first token in the pair.
1758
+ :param token1: The symbol or address of the second token in the pair.
1767
1759
  :param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
1768
1760
  :param tick_lower: The lower tick of the range to mint the position in
1769
1761
  :param tick_upper: The upper tick of the range to mint the position in
@@ -1774,6 +1766,7 @@ class UniswapV3(BaseSDK):
1774
1766
  :param chain:
1775
1767
  :param sender: The address of the transaction sender.
1776
1768
  :param recipient: The address that will receive the LP tokens
1769
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1777
1770
  :param retries: Override the default retry configuration for this method
1778
1771
  :param server_url: Override the default server URL for this method
1779
1772
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1802,6 +1795,7 @@ class UniswapV3(BaseSDK):
1802
1795
  recipient=recipient,
1803
1796
  chain=chain,
1804
1797
  sender=sender,
1798
+ estimate_gas=estimate_gas,
1805
1799
  )
1806
1800
 
1807
1801
  req = self._build_request_async(
@@ -1887,6 +1881,7 @@ class UniswapV3(BaseSDK):
1887
1881
  ],
1888
1882
  chain: models.UniswapIncreaseLiquidityProvisionRequestChain,
1889
1883
  sender: str,
1884
+ estimate_gas: Optional[bool] = True,
1890
1885
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1891
1886
  server_url: Optional[str] = None,
1892
1887
  timeout_ms: Optional[int] = None,
@@ -1919,6 +1914,7 @@ class UniswapV3(BaseSDK):
1919
1914
  :param amount1_min: The minimum amount of the second token to deposit
1920
1915
  :param chain:
1921
1916
  :param sender: The address of the transaction sender.
1917
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1922
1918
  :param retries: Override the default retry configuration for this method
1923
1919
  :param server_url: Override the default server URL for this method
1924
1920
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1942,6 +1938,7 @@ class UniswapV3(BaseSDK):
1942
1938
  amount1_min=amount1_min,
1943
1939
  chain=chain,
1944
1940
  sender=sender,
1941
+ estimate_gas=estimate_gas,
1945
1942
  )
1946
1943
 
1947
1944
  req = self._build_request(
@@ -2027,6 +2024,7 @@ class UniswapV3(BaseSDK):
2027
2024
  ],
2028
2025
  chain: models.UniswapIncreaseLiquidityProvisionRequestChain,
2029
2026
  sender: str,
2027
+ estimate_gas: Optional[bool] = True,
2030
2028
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2031
2029
  server_url: Optional[str] = None,
2032
2030
  timeout_ms: Optional[int] = None,
@@ -2059,6 +2057,7 @@ class UniswapV3(BaseSDK):
2059
2057
  :param amount1_min: The minimum amount of the second token to deposit
2060
2058
  :param chain:
2061
2059
  :param sender: The address of the transaction sender.
2060
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
2062
2061
  :param retries: Override the default retry configuration for this method
2063
2062
  :param server_url: Override the default server URL for this method
2064
2063
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2082,6 +2081,7 @@ class UniswapV3(BaseSDK):
2082
2081
  amount1_min=amount1_min,
2083
2082
  chain=chain,
2084
2083
  sender=sender,
2084
+ estimate_gas=estimate_gas,
2085
2085
  )
2086
2086
 
2087
2087
  req = self._build_request_async(
@@ -2155,6 +2155,7 @@ class UniswapV3(BaseSDK):
2155
2155
  ],
2156
2156
  chain: models.UniswapWithdrawLiquidityProvisionRequestChain,
2157
2157
  sender: str,
2158
+ estimate_gas: Optional[bool] = True,
2158
2159
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2159
2160
  server_url: Optional[str] = None,
2160
2161
  timeout_ms: Optional[int] = None,
@@ -2185,6 +2186,7 @@ class UniswapV3(BaseSDK):
2185
2186
  :param percentage_for_withdrawal: How much liquidity to take out in percentage.
2186
2187
  :param chain:
2187
2188
  :param sender: The address of the transaction sender.
2189
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
2188
2190
  :param retries: Override the default retry configuration for this method
2189
2191
  :param server_url: Override the default server URL for this method
2190
2192
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2205,6 +2207,7 @@ class UniswapV3(BaseSDK):
2205
2207
  percentage_for_withdrawal=percentage_for_withdrawal,
2206
2208
  chain=chain,
2207
2209
  sender=sender,
2210
+ estimate_gas=estimate_gas,
2208
2211
  )
2209
2212
 
2210
2213
  req = self._build_request(
@@ -2278,6 +2281,7 @@ class UniswapV3(BaseSDK):
2278
2281
  ],
2279
2282
  chain: models.UniswapWithdrawLiquidityProvisionRequestChain,
2280
2283
  sender: str,
2284
+ estimate_gas: Optional[bool] = True,
2281
2285
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2282
2286
  server_url: Optional[str] = None,
2283
2287
  timeout_ms: Optional[int] = None,
@@ -2308,6 +2312,7 @@ class UniswapV3(BaseSDK):
2308
2312
  :param percentage_for_withdrawal: How much liquidity to take out in percentage.
2309
2313
  :param chain:
2310
2314
  :param sender: The address of the transaction sender.
2315
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
2311
2316
  :param retries: Override the default retry configuration for this method
2312
2317
  :param server_url: Override the default server URL for this method
2313
2318
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2328,6 +2333,7 @@ class UniswapV3(BaseSDK):
2328
2333
  percentage_for_withdrawal=percentage_for_withdrawal,
2329
2334
  chain=chain,
2330
2335
  sender=sender,
2336
+ estimate_gas=estimate_gas,
2331
2337
  )
2332
2338
 
2333
2339
  req = self._build_request_async(