compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3rc1__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.2.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/METADATA +5 -7
  100. {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc1.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.2.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/WHEEL +0 -0
@@ -195,180 +195,6 @@ class Universal(BaseSDK):
195
195
 
196
196
  raise errors.APIError("Unexpected response received", http_res)
197
197
 
198
- def generic_supported_tokens(
199
- self,
200
- *,
201
- chain: models.V1GenericSupportedTokensChain = models.V1GenericSupportedTokensChain.ARBITRUM,
202
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
203
- server_url: Optional[str] = None,
204
- timeout_ms: Optional[int] = None,
205
- http_headers: Optional[Mapping[str, str]] = None,
206
- ) -> models.TokenInfo:
207
- r"""List Supported Tokens
208
-
209
- Get the list of supported tokens on a chain by the Compass API.
210
-
211
- :param chain:
212
- :param retries: Override the default retry configuration for this method
213
- :param server_url: Override the default server URL for this method
214
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
215
- :param http_headers: Additional headers to set or replace on requests.
216
- """
217
- base_url = None
218
- url_variables = None
219
- if timeout_ms is None:
220
- timeout_ms = self.sdk_configuration.timeout_ms
221
-
222
- if server_url is not None:
223
- base_url = server_url
224
- else:
225
- base_url = self._get_url(base_url, url_variables)
226
-
227
- request = models.V1GenericSupportedTokensRequest(
228
- chain=chain,
229
- )
230
-
231
- req = self._build_request(
232
- method="GET",
233
- path="/v1/generic/supported_tokens",
234
- base_url=base_url,
235
- url_variables=url_variables,
236
- request=request,
237
- request_body_required=False,
238
- request_has_path_params=False,
239
- request_has_query_params=True,
240
- user_agent_header="user-agent",
241
- accept_header_value="application/json",
242
- http_headers=http_headers,
243
- security=self.sdk_configuration.security,
244
- timeout_ms=timeout_ms,
245
- )
246
-
247
- if retries == UNSET:
248
- if self.sdk_configuration.retry_config is not UNSET:
249
- retries = self.sdk_configuration.retry_config
250
-
251
- retry_config = None
252
- if isinstance(retries, utils.RetryConfig):
253
- retry_config = (retries, ["429", "500", "502", "503", "504"])
254
-
255
- http_res = self.do_request(
256
- hook_ctx=HookContext(
257
- config=self.sdk_configuration,
258
- base_url=base_url or "",
259
- operation_id="v1_generic_supported_tokens",
260
- oauth2_scopes=[],
261
- security_source=self.sdk_configuration.security,
262
- ),
263
- request=req,
264
- error_status_codes=["422", "4XX", "5XX"],
265
- retry_config=retry_config,
266
- )
267
-
268
- response_data: Any = None
269
- if utils.match_response(http_res, "200", "application/json"):
270
- return unmarshal_json_response(models.TokenInfo, http_res)
271
- if utils.match_response(http_res, "422", "application/json"):
272
- response_data = unmarshal_json_response(
273
- errors.HTTPValidationErrorData, http_res
274
- )
275
- raise errors.HTTPValidationError(response_data, http_res)
276
- if utils.match_response(http_res, "4XX", "*"):
277
- http_res_text = utils.stream_to_text(http_res)
278
- raise errors.APIError("API error occurred", http_res, http_res_text)
279
- if utils.match_response(http_res, "5XX", "*"):
280
- http_res_text = utils.stream_to_text(http_res)
281
- raise errors.APIError("API error occurred", http_res, http_res_text)
282
-
283
- raise errors.APIError("Unexpected response received", http_res)
284
-
285
- async def generic_supported_tokens_async(
286
- self,
287
- *,
288
- chain: models.V1GenericSupportedTokensChain = models.V1GenericSupportedTokensChain.ARBITRUM,
289
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
290
- server_url: Optional[str] = None,
291
- timeout_ms: Optional[int] = None,
292
- http_headers: Optional[Mapping[str, str]] = None,
293
- ) -> models.TokenInfo:
294
- r"""List Supported Tokens
295
-
296
- Get the list of supported tokens on a chain by the Compass API.
297
-
298
- :param chain:
299
- :param retries: Override the default retry configuration for this method
300
- :param server_url: Override the default server URL for this method
301
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
302
- :param http_headers: Additional headers to set or replace on requests.
303
- """
304
- base_url = None
305
- url_variables = None
306
- if timeout_ms is None:
307
- timeout_ms = self.sdk_configuration.timeout_ms
308
-
309
- if server_url is not None:
310
- base_url = server_url
311
- else:
312
- base_url = self._get_url(base_url, url_variables)
313
-
314
- request = models.V1GenericSupportedTokensRequest(
315
- chain=chain,
316
- )
317
-
318
- req = self._build_request_async(
319
- method="GET",
320
- path="/v1/generic/supported_tokens",
321
- base_url=base_url,
322
- url_variables=url_variables,
323
- request=request,
324
- request_body_required=False,
325
- request_has_path_params=False,
326
- request_has_query_params=True,
327
- user_agent_header="user-agent",
328
- accept_header_value="application/json",
329
- http_headers=http_headers,
330
- security=self.sdk_configuration.security,
331
- timeout_ms=timeout_ms,
332
- )
333
-
334
- if retries == UNSET:
335
- if self.sdk_configuration.retry_config is not UNSET:
336
- retries = self.sdk_configuration.retry_config
337
-
338
- retry_config = None
339
- if isinstance(retries, utils.RetryConfig):
340
- retry_config = (retries, ["429", "500", "502", "503", "504"])
341
-
342
- http_res = await self.do_request_async(
343
- hook_ctx=HookContext(
344
- config=self.sdk_configuration,
345
- base_url=base_url or "",
346
- operation_id="v1_generic_supported_tokens",
347
- oauth2_scopes=[],
348
- security_source=self.sdk_configuration.security,
349
- ),
350
- request=req,
351
- error_status_codes=["422", "4XX", "5XX"],
352
- retry_config=retry_config,
353
- )
354
-
355
- response_data: Any = None
356
- if utils.match_response(http_res, "200", "application/json"):
357
- return unmarshal_json_response(models.TokenInfo, http_res)
358
- if utils.match_response(http_res, "422", "application/json"):
359
- response_data = unmarshal_json_response(
360
- errors.HTTPValidationErrorData, http_res
361
- )
362
- raise errors.HTTPValidationError(response_data, http_res)
363
- if utils.match_response(http_res, "4XX", "*"):
364
- http_res_text = await utils.stream_to_text_async(http_res)
365
- raise errors.APIError("API error occurred", http_res, http_res_text)
366
- if utils.match_response(http_res, "5XX", "*"):
367
- http_res_text = await utils.stream_to_text_async(http_res)
368
- raise errors.APIError("API error occurred", http_res, http_res_text)
369
-
370
- raise errors.APIError("Unexpected response received", http_res)
371
-
372
198
  def generic_supported_chains(
373
199
  self,
374
200
  *,
@@ -547,9 +373,7 @@ class Universal(BaseSDK):
547
373
  self,
548
374
  *,
549
375
  chain: models.V1GenericAllowanceChain = models.V1GenericAllowanceChain.ARBITRUM,
550
- token: Union[
551
- models.V1GenericAllowanceToken, models.V1GenericAllowanceTokenTypedDict
552
- ],
376
+ token: str = "USDC",
553
377
  contract: Union[
554
378
  models.V1GenericAllowanceContractUnion,
555
379
  models.V1GenericAllowanceContractUnionTypedDict,
@@ -571,7 +395,7 @@ class Universal(BaseSDK):
571
395
  the user's tokens securely and efficiently.
572
396
 
573
397
  :param chain:
574
- :param token: The symbol or address of the token for which the allowance is checked..
398
+ :param token: The symbol or address of the token for which the allowance is checked.
575
399
  :param contract: The name or address of the contract to check allowance for.
576
400
  :param user: The user to get the ERC20 allowance of.
577
401
  :param retries: Override the default retry configuration for this method
@@ -654,9 +478,7 @@ class Universal(BaseSDK):
654
478
  self,
655
479
  *,
656
480
  chain: models.V1GenericAllowanceChain = models.V1GenericAllowanceChain.ARBITRUM,
657
- token: Union[
658
- models.V1GenericAllowanceToken, models.V1GenericAllowanceTokenTypedDict
659
- ],
481
+ token: str = "USDC",
660
482
  contract: Union[
661
483
  models.V1GenericAllowanceContractUnion,
662
484
  models.V1GenericAllowanceContractUnionTypedDict,
@@ -678,7 +500,7 @@ class Universal(BaseSDK):
678
500
  the user's tokens securely and efficiently.
679
501
 
680
502
  :param chain:
681
- :param token: The symbol or address of the token for which the allowance is checked..
503
+ :param token: The symbol or address of the token for which the allowance is checked.
682
504
  :param contract: The name or address of the contract to check allowance for.
683
505
  :param user: The user to get the ERC20 allowance of.
684
506
  :param retries: Override the default retry configuration for this method
@@ -951,6 +773,7 @@ class Universal(BaseSDK):
951
773
  ],
952
774
  chain: models.WrapEthRequestChain,
953
775
  sender: str,
776
+ estimate_gas: Optional[bool] = True,
954
777
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
955
778
  server_url: Optional[str] = None,
956
779
  timeout_ms: Optional[int] = None,
@@ -964,6 +787,7 @@ class Universal(BaseSDK):
964
787
  :param amount: The amount of ETH to wrap.
965
788
  :param chain:
966
789
  :param sender: The address of the transaction sender.
790
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
967
791
  :param retries: Override the default retry configuration for this method
968
792
  :param server_url: Override the default server URL for this method
969
793
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -983,6 +807,7 @@ class Universal(BaseSDK):
983
807
  amount=amount,
984
808
  chain=chain,
985
809
  sender=sender,
810
+ estimate_gas=estimate_gas,
986
811
  )
987
812
 
988
813
  req = self._build_request(
@@ -1050,6 +875,7 @@ class Universal(BaseSDK):
1050
875
  ],
1051
876
  chain: models.WrapEthRequestChain,
1052
877
  sender: str,
878
+ estimate_gas: Optional[bool] = True,
1053
879
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1054
880
  server_url: Optional[str] = None,
1055
881
  timeout_ms: Optional[int] = None,
@@ -1063,6 +889,7 @@ class Universal(BaseSDK):
1063
889
  :param amount: The amount of ETH to wrap.
1064
890
  :param chain:
1065
891
  :param sender: The address of the transaction sender.
892
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1066
893
  :param retries: Override the default retry configuration for this method
1067
894
  :param server_url: Override the default server URL for this method
1068
895
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1082,6 +909,7 @@ class Universal(BaseSDK):
1082
909
  amount=amount,
1083
910
  chain=chain,
1084
911
  sender=sender,
912
+ estimate_gas=estimate_gas,
1085
913
  )
1086
914
 
1087
915
  req = self._build_request_async(
@@ -1149,6 +977,7 @@ class Universal(BaseSDK):
1149
977
  ],
1150
978
  chain: models.UnwrapWethRequestChain,
1151
979
  sender: str,
980
+ estimate_gas: Optional[bool] = True,
1152
981
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1153
982
  server_url: Optional[str] = None,
1154
983
  timeout_ms: Optional[int] = None,
@@ -1162,6 +991,7 @@ class Universal(BaseSDK):
1162
991
  :param amount: The amount of WETH to unwrap.
1163
992
  :param chain:
1164
993
  :param sender: The address of the transaction sender.
994
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1165
995
  :param retries: Override the default retry configuration for this method
1166
996
  :param server_url: Override the default server URL for this method
1167
997
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1181,6 +1011,7 @@ class Universal(BaseSDK):
1181
1011
  amount=amount,
1182
1012
  chain=chain,
1183
1013
  sender=sender,
1014
+ estimate_gas=estimate_gas,
1184
1015
  )
1185
1016
 
1186
1017
  req = self._build_request(
@@ -1248,6 +1079,7 @@ class Universal(BaseSDK):
1248
1079
  ],
1249
1080
  chain: models.UnwrapWethRequestChain,
1250
1081
  sender: str,
1082
+ estimate_gas: Optional[bool] = True,
1251
1083
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1252
1084
  server_url: Optional[str] = None,
1253
1085
  timeout_ms: Optional[int] = None,
@@ -1261,6 +1093,7 @@ class Universal(BaseSDK):
1261
1093
  :param amount: The amount of WETH to unwrap.
1262
1094
  :param chain:
1263
1095
  :param sender: The address of the transaction sender.
1096
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1264
1097
  :param retries: Override the default retry configuration for this method
1265
1098
  :param server_url: Override the default server URL for this method
1266
1099
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1280,6 +1113,7 @@ class Universal(BaseSDK):
1280
1113
  amount=amount,
1281
1114
  chain=chain,
1282
1115
  sender=sender,
1116
+ estimate_gas=estimate_gas,
1283
1117
  )
1284
1118
 
1285
1119
  req = self._build_request_async(
@@ -1342,9 +1176,7 @@ class Universal(BaseSDK):
1342
1176
  def generic_allowance_set(
1343
1177
  self,
1344
1178
  *,
1345
- token: Union[
1346
- models.SetAllowanceRequestToken, models.SetAllowanceRequestTokenTypedDict
1347
- ],
1179
+ token: str,
1348
1180
  contract: Union[
1349
1181
  models.SetAllowanceRequestContractUnion,
1350
1182
  models.SetAllowanceRequestContractUnionTypedDict,
@@ -1354,6 +1186,7 @@ class Universal(BaseSDK):
1354
1186
  ],
1355
1187
  chain: models.SetAllowanceRequestChain,
1356
1188
  sender: str,
1189
+ estimate_gas: Optional[bool] = True,
1357
1190
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1358
1191
  server_url: Optional[str] = None,
1359
1192
  timeout_ms: Optional[int] = None,
@@ -1375,6 +1208,7 @@ class Universal(BaseSDK):
1375
1208
  :param amount: The amount to set the allowance to.
1376
1209
  :param chain:
1377
1210
  :param sender: The address of the transaction sender.
1211
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1378
1212
  :param retries: Override the default retry configuration for this method
1379
1213
  :param server_url: Override the default server URL for this method
1380
1214
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1396,6 +1230,7 @@ class Universal(BaseSDK):
1396
1230
  amount=amount,
1397
1231
  chain=chain,
1398
1232
  sender=sender,
1233
+ estimate_gas=estimate_gas,
1399
1234
  )
1400
1235
 
1401
1236
  req = self._build_request(
@@ -1458,9 +1293,7 @@ class Universal(BaseSDK):
1458
1293
  async def generic_allowance_set_async(
1459
1294
  self,
1460
1295
  *,
1461
- token: Union[
1462
- models.SetAllowanceRequestToken, models.SetAllowanceRequestTokenTypedDict
1463
- ],
1296
+ token: str,
1464
1297
  contract: Union[
1465
1298
  models.SetAllowanceRequestContractUnion,
1466
1299
  models.SetAllowanceRequestContractUnionTypedDict,
@@ -1470,6 +1303,7 @@ class Universal(BaseSDK):
1470
1303
  ],
1471
1304
  chain: models.SetAllowanceRequestChain,
1472
1305
  sender: str,
1306
+ estimate_gas: Optional[bool] = True,
1473
1307
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1474
1308
  server_url: Optional[str] = None,
1475
1309
  timeout_ms: Optional[int] = None,
@@ -1491,6 +1325,7 @@ class Universal(BaseSDK):
1491
1325
  :param amount: The amount to set the allowance to.
1492
1326
  :param chain:
1493
1327
  :param sender: The address of the transaction sender.
1328
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
1494
1329
  :param retries: Override the default retry configuration for this method
1495
1330
  :param server_url: Override the default server URL for this method
1496
1331
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1512,6 +1347,7 @@ class Universal(BaseSDK):
1512
1347
  amount=amount,
1513
1348
  chain=chain,
1514
1349
  sender=sender,
1350
+ estimate_gas=estimate_gas,
1515
1351
  )
1516
1352
 
1517
1353
  req = self._build_request_async(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compass_api_sdk
3
- Version: 1.1.2
3
+ Version: 1.1.3rc1
4
4
  Summary: Compass API SDK.
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9.2
@@ -282,12 +282,11 @@ with CompassAPI(
282
282
 
283
283
  * [swap_odos](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/swap/README.md#swap_odos) - Odos Swap
284
284
 
285
- ### [token](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/tokensdk/README.md)
285
+ ### [token](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/token/README.md)
286
286
 
287
- * [token_address](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/tokensdk/README.md#token_address) - Token Address
288
- * [token_price](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/tokensdk/README.md#token_price) - Token Price
289
- * [token_balance](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/tokensdk/README.md#token_balance) - Token Balance
290
- * [token_transfer](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/tokensdk/README.md#token_transfer) - Transfer Tokens
287
+ * [token_price](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/token/README.md#token_price) - Token Price
288
+ * [token_balance](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/token/README.md#token_balance) - Token Balance
289
+ * [token_transfer](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/token/README.md#token_transfer) - Transfer Tokens
291
290
 
292
291
  ### [transaction_bundler](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/transactionbundler/README.md)
293
292
 
@@ -311,7 +310,6 @@ with CompassAPI(
311
310
  ### [universal](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/universal/README.md)
312
311
 
313
312
  * [generic_portfolio](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/universal/README.md#generic_portfolio) - List User Portfolio
314
- * [generic_supported_tokens](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/universal/README.md#generic_supported_tokens) - List Supported Tokens
315
313
  * [generic_supported_chains](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/universal/README.md#generic_supported_chains) - List Supported Chains
316
314
  * [generic_allowance](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/universal/README.md#generic_allowance) - Get Allowance
317
315
  * [generic_ens](https://github.com/CompassLabs/mono/blob/master/python-sdk/docs/sdks/universal/README.md#generic_ens) - Resolve ENS