compass_api_sdk 1.1.3rc0__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 (60) hide show
  1. compass_api_sdk/_version.py +2 -2
  2. compass_api_sdk/aave_v3.py +24 -0
  3. compass_api_sdk/aerodrome_slipstream.py +30 -0
  4. compass_api_sdk/erc_4626_vaults.py +12 -0
  5. compass_api_sdk/ethena.py +18 -0
  6. compass_api_sdk/models/aaveborrowrequest.py +6 -1
  7. compass_api_sdk/models/aavelooprequest.py +10 -1
  8. compass_api_sdk/models/aaverepayrequest.py +6 -1
  9. compass_api_sdk/models/aavesupplyrequest.py +6 -1
  10. compass_api_sdk/models/aavewithdrawrequest.py +6 -1
  11. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +6 -1
  12. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
  13. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +6 -1
  14. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +5 -0
  15. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
  16. compass_api_sdk/models/batcheduseroperationsrequest.py +7 -2
  17. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  18. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  19. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  20. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  21. compass_api_sdk/models/morphodepositrequest.py +6 -1
  22. compass_api_sdk/models/morphorepayrequest.py +11 -1
  23. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  24. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  25. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  26. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  27. compass_api_sdk/models/odosswaprequest.py +6 -1
  28. compass_api_sdk/models/pendlemanageliquidityrequest.py +6 -1
  29. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  30. compass_api_sdk/models/pendletradeptrequest.py +6 -1
  31. compass_api_sdk/models/pendletradeytrequest.py +6 -1
  32. compass_api_sdk/models/setallowancerequest.py +6 -1
  33. compass_api_sdk/models/skybuyrequest.py +6 -1
  34. compass_api_sdk/models/skydepositrequest.py +6 -1
  35. compass_api_sdk/models/skysellrequest.py +6 -1
  36. compass_api_sdk/models/skywithdrawrequest.py +6 -1
  37. compass_api_sdk/models/tokentransferrequest.py +6 -1
  38. compass_api_sdk/models/uniswapbuyexactlyrequest.py +6 -1
  39. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  40. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +6 -1
  41. compass_api_sdk/models/uniswapsellexactlyrequest.py +6 -1
  42. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  43. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  44. compass_api_sdk/models/unsignedtransaction.py +34 -3
  45. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  46. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  47. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  48. compass_api_sdk/models/wrapethrequest.py +6 -1
  49. compass_api_sdk/morpho.py +36 -0
  50. compass_api_sdk/pendle.py +24 -0
  51. compass_api_sdk/sky.py +24 -0
  52. compass_api_sdk/smart_account.py +6 -0
  53. compass_api_sdk/swap.py +6 -0
  54. compass_api_sdk/token.py +6 -0
  55. compass_api_sdk/transaction_bundler.py +12 -0
  56. compass_api_sdk/uniswap_v3.py +30 -0
  57. compass_api_sdk/universal.py +18 -0
  58. {compass_api_sdk-1.1.3rc0.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/METADATA +1 -1
  59. {compass_api_sdk-1.1.3rc0.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/RECORD +60 -60
  60. {compass_api_sdk-1.1.3rc0.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/WHEEL +0 -0
@@ -17,6 +17,7 @@ class SmartAccount(BaseSDK):
17
17
  operations: Union[
18
18
  List[models.UserOperation], List[models.UserOperationTypedDict]
19
19
  ],
20
+ estimate_gas: Optional[bool] = True,
20
21
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
21
22
  server_url: Optional[str] = None,
22
23
  timeout_ms: Optional[int] = None,
@@ -29,6 +30,7 @@ class SmartAccount(BaseSDK):
29
30
  :param chain:
30
31
  :param sender: The address of the transaction sender.
31
32
  :param operations: List of possible user operations
33
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
32
34
  :param retries: Override the default retry configuration for this method
33
35
  :param server_url: Override the default server URL for this method
34
36
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -47,6 +49,7 @@ class SmartAccount(BaseSDK):
47
49
  request = models.BatchedUserOperationsRequest(
48
50
  chain=chain,
49
51
  sender=sender,
52
+ estimate_gas=estimate_gas,
50
53
  operations=utils.get_pydantic_model(operations, List[models.UserOperation]),
51
54
  )
52
55
 
@@ -117,6 +120,7 @@ class SmartAccount(BaseSDK):
117
120
  operations: Union[
118
121
  List[models.UserOperation], List[models.UserOperationTypedDict]
119
122
  ],
123
+ estimate_gas: Optional[bool] = True,
120
124
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
121
125
  server_url: Optional[str] = None,
122
126
  timeout_ms: Optional[int] = None,
@@ -129,6 +133,7 @@ class SmartAccount(BaseSDK):
129
133
  :param chain:
130
134
  :param sender: The address of the transaction sender.
131
135
  :param operations: List of possible user operations
136
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
132
137
  :param retries: Override the default retry configuration for this method
133
138
  :param server_url: Override the default server URL for this method
134
139
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -147,6 +152,7 @@ class SmartAccount(BaseSDK):
147
152
  request = models.BatchedUserOperationsRequest(
148
153
  chain=chain,
149
154
  sender=sender,
155
+ estimate_gas=estimate_gas,
150
156
  operations=utils.get_pydantic_model(operations, List[models.UserOperation]),
151
157
  )
152
158
 
compass_api_sdk/swap.py CHANGED
@@ -20,6 +20,7 @@ class Swap(BaseSDK):
20
20
  max_slippage_percent: float,
21
21
  chain: models.OdosSwapRequestChain,
22
22
  sender: str,
23
+ estimate_gas: Optional[bool] = True,
23
24
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
24
25
  server_url: Optional[str] = None,
25
26
  timeout_ms: Optional[int] = None,
@@ -43,6 +44,7 @@ class Swap(BaseSDK):
43
44
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
44
45
  :param chain:
45
46
  :param sender: The address of the transaction sender.
47
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
46
48
  :param retries: Override the default retry configuration for this method
47
49
  :param server_url: Override the default server URL for this method
48
50
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -65,6 +67,7 @@ class Swap(BaseSDK):
65
67
  max_slippage_percent=max_slippage_percent,
66
68
  chain=chain,
67
69
  sender=sender,
70
+ estimate_gas=estimate_gas,
68
71
  )
69
72
 
70
73
  req = self._build_request(
@@ -135,6 +138,7 @@ class Swap(BaseSDK):
135
138
  max_slippage_percent: float,
136
139
  chain: models.OdosSwapRequestChain,
137
140
  sender: str,
141
+ estimate_gas: Optional[bool] = True,
138
142
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
139
143
  server_url: Optional[str] = None,
140
144
  timeout_ms: Optional[int] = None,
@@ -158,6 +162,7 @@ class Swap(BaseSDK):
158
162
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
159
163
  :param chain:
160
164
  :param sender: The address of the transaction sender.
165
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
161
166
  :param retries: Override the default retry configuration for this method
162
167
  :param server_url: Override the default server URL for this method
163
168
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -180,6 +185,7 @@ class Swap(BaseSDK):
180
185
  max_slippage_percent=max_slippage_percent,
181
186
  chain=chain,
182
187
  sender=sender,
188
+ estimate_gas=estimate_gas,
183
189
  )
184
190
 
185
191
  req = self._build_request_async(
compass_api_sdk/token.py CHANGED
@@ -400,6 +400,7 @@ class Token(BaseSDK):
400
400
  ],
401
401
  chain: models.TokenTransferRequestChain,
402
402
  sender: str,
403
+ estimate_gas: Optional[bool] = True,
403
404
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
404
405
  server_url: Optional[str] = None,
405
406
  timeout_ms: Optional[int] = None,
@@ -414,6 +415,7 @@ class Token(BaseSDK):
414
415
  :param amount: Amount of token to transfer
415
416
  :param chain:
416
417
  :param sender: The address of the transaction sender.
418
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
417
419
  :param retries: Override the default retry configuration for this method
418
420
  :param server_url: Override the default server URL for this method
419
421
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -435,6 +437,7 @@ class Token(BaseSDK):
435
437
  amount=amount,
436
438
  chain=chain,
437
439
  sender=sender,
440
+ estimate_gas=estimate_gas,
438
441
  )
439
442
 
440
443
  req = self._build_request(
@@ -505,6 +508,7 @@ class Token(BaseSDK):
505
508
  ],
506
509
  chain: models.TokenTransferRequestChain,
507
510
  sender: str,
511
+ estimate_gas: Optional[bool] = True,
508
512
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
509
513
  server_url: Optional[str] = None,
510
514
  timeout_ms: Optional[int] = None,
@@ -519,6 +523,7 @@ class Token(BaseSDK):
519
523
  :param amount: Amount of token to transfer
520
524
  :param chain:
521
525
  :param sender: The address of the transaction sender.
526
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
522
527
  :param retries: Override the default retry configuration for this method
523
528
  :param server_url: Override the default server URL for this method
524
529
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -540,6 +545,7 @@ class Token(BaseSDK):
540
545
  amount=amount,
541
546
  chain=chain,
542
547
  sender=sender,
548
+ estimate_gas=estimate_gas,
543
549
  )
544
550
 
545
551
  req = self._build_request_async(
@@ -215,6 +215,7 @@ class TransactionBundler(BaseSDK):
215
215
  chain: models.MulticallExecuteRequestChain,
216
216
  sender: str,
217
217
  actions: Union[List[models.UserOperation], List[models.UserOperationTypedDict]],
218
+ estimate_gas: Optional[bool] = True,
218
219
  signed_authorization: OptionalNullable[
219
220
  Union[models.SignedAuthorization, models.SignedAuthorizationTypedDict]
220
221
  ] = UNSET,
@@ -236,6 +237,7 @@ class TransactionBundler(BaseSDK):
236
237
  :param chain:
237
238
  :param sender: The address of the transaction sender.
238
239
  :param actions: List of possible actions for multicall
240
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
239
241
  :param signed_authorization: EIP-7702 authorization
240
242
  :param retries: Override the default retry configuration for this method
241
243
  :param server_url: Override the default server URL for this method
@@ -255,6 +257,7 @@ class TransactionBundler(BaseSDK):
255
257
  request = models.MulticallExecuteRequest(
256
258
  chain=chain,
257
259
  sender=sender,
260
+ estimate_gas=estimate_gas,
258
261
  signed_authorization=utils.get_pydantic_model(
259
262
  signed_authorization, OptionalNullable[models.SignedAuthorization]
260
263
  ),
@@ -324,6 +327,7 @@ class TransactionBundler(BaseSDK):
324
327
  chain: models.MulticallExecuteRequestChain,
325
328
  sender: str,
326
329
  actions: Union[List[models.UserOperation], List[models.UserOperationTypedDict]],
330
+ estimate_gas: Optional[bool] = True,
327
331
  signed_authorization: OptionalNullable[
328
332
  Union[models.SignedAuthorization, models.SignedAuthorizationTypedDict]
329
333
  ] = UNSET,
@@ -345,6 +349,7 @@ class TransactionBundler(BaseSDK):
345
349
  :param chain:
346
350
  :param sender: The address of the transaction sender.
347
351
  :param actions: List of possible actions for multicall
352
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
348
353
  :param signed_authorization: EIP-7702 authorization
349
354
  :param retries: Override the default retry configuration for this method
350
355
  :param server_url: Override the default server URL for this method
@@ -364,6 +369,7 @@ class TransactionBundler(BaseSDK):
364
369
  request = models.MulticallExecuteRequest(
365
370
  chain=chain,
366
371
  sender=sender,
372
+ estimate_gas=estimate_gas,
367
373
  signed_authorization=utils.get_pydantic_model(
368
374
  signed_authorization, OptionalNullable[models.SignedAuthorization]
369
375
  ),
@@ -442,6 +448,7 @@ class TransactionBundler(BaseSDK):
442
448
  models.MaxSlippagePercent, models.MaxSlippagePercentTypedDict
443
449
  ],
444
450
  loan_to_value: Union[models.LoanToValue, models.LoanToValueTypedDict],
451
+ estimate_gas: Optional[bool] = True,
445
452
  signed_authorization: OptionalNullable[
446
453
  Union[models.SignedAuthorization, models.SignedAuthorizationTypedDict]
447
454
  ] = UNSET,
@@ -473,6 +480,7 @@ class TransactionBundler(BaseSDK):
473
480
  :param multiplier: Leverage multiplier. Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`
474
481
  :param max_slippage_percent: Maximum allowed slippage for token swaps in percentage
475
482
  :param loan_to_value: Loan To Value percentage of the loop
483
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
476
484
  :param signed_authorization: EIP-7702 authorization. Required when `is_account_abstraction` is False.
477
485
  :param is_account_abstraction: Whether to use account abstraction for the transaction.
478
486
  :param retries: Override the default retry configuration for this method
@@ -493,6 +501,7 @@ class TransactionBundler(BaseSDK):
493
501
  request = models.AaveLoopRequest(
494
502
  chain=chain,
495
503
  sender=sender,
504
+ estimate_gas=estimate_gas,
496
505
  signed_authorization=utils.get_pydantic_model(
497
506
  signed_authorization, OptionalNullable[models.SignedAuthorization]
498
507
  ),
@@ -579,6 +588,7 @@ class TransactionBundler(BaseSDK):
579
588
  models.MaxSlippagePercent, models.MaxSlippagePercentTypedDict
580
589
  ],
581
590
  loan_to_value: Union[models.LoanToValue, models.LoanToValueTypedDict],
591
+ estimate_gas: Optional[bool] = True,
582
592
  signed_authorization: OptionalNullable[
583
593
  Union[models.SignedAuthorization, models.SignedAuthorizationTypedDict]
584
594
  ] = UNSET,
@@ -610,6 +620,7 @@ class TransactionBundler(BaseSDK):
610
620
  :param multiplier: Leverage multiplier. Total loop collateral will be calculated as `multiplier` x `initial_collateral_amount`
611
621
  :param max_slippage_percent: Maximum allowed slippage for token swaps in percentage
612
622
  :param loan_to_value: Loan To Value percentage of the loop
623
+ :param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
613
624
  :param signed_authorization: EIP-7702 authorization. Required when `is_account_abstraction` is False.
614
625
  :param is_account_abstraction: Whether to use account abstraction for the transaction.
615
626
  :param retries: Override the default retry configuration for this method
@@ -630,6 +641,7 @@ class TransactionBundler(BaseSDK):
630
641
  request = models.AaveLoopRequest(
631
642
  chain=chain,
632
643
  sender=sender,
644
+ estimate_gas=estimate_gas,
633
645
  signed_authorization=utils.get_pydantic_model(
634
646
  signed_authorization, OptionalNullable[models.SignedAuthorization]
635
647
  ),
@@ -1036,6 +1036,7 @@ class UniswapV3(BaseSDK):
1036
1036
  max_slippage_percent: float,
1037
1037
  chain: models.UniswapBuyExactlyRequestChain,
1038
1038
  sender: str,
1039
+ estimate_gas: Optional[bool] = True,
1039
1040
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1040
1041
  server_url: Optional[str] = None,
1041
1042
  timeout_ms: Optional[int] = None,
@@ -1066,6 +1067,7 @@ class UniswapV3(BaseSDK):
1066
1067
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1067
1068
  :param chain:
1068
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.
1069
1071
  :param retries: Override the default retry configuration for this method
1070
1072
  :param server_url: Override the default server URL for this method
1071
1073
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1089,6 +1091,7 @@ class UniswapV3(BaseSDK):
1089
1091
  max_slippage_percent=max_slippage_percent,
1090
1092
  chain=chain,
1091
1093
  sender=sender,
1094
+ estimate_gas=estimate_gas,
1092
1095
  )
1093
1096
 
1094
1097
  req = self._build_request(
@@ -1163,6 +1166,7 @@ class UniswapV3(BaseSDK):
1163
1166
  max_slippage_percent: float,
1164
1167
  chain: models.UniswapBuyExactlyRequestChain,
1165
1168
  sender: str,
1169
+ estimate_gas: Optional[bool] = True,
1166
1170
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1167
1171
  server_url: Optional[str] = None,
1168
1172
  timeout_ms: Optional[int] = None,
@@ -1193,6 +1197,7 @@ class UniswapV3(BaseSDK):
1193
1197
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1194
1198
  :param chain:
1195
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.
1196
1201
  :param retries: Override the default retry configuration for this method
1197
1202
  :param server_url: Override the default server URL for this method
1198
1203
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1216,6 +1221,7 @@ class UniswapV3(BaseSDK):
1216
1221
  max_slippage_percent=max_slippage_percent,
1217
1222
  chain=chain,
1218
1223
  sender=sender,
1224
+ estimate_gas=estimate_gas,
1219
1225
  )
1220
1226
 
1221
1227
  req = self._build_request_async(
@@ -1290,6 +1296,7 @@ class UniswapV3(BaseSDK):
1290
1296
  max_slippage_percent: float,
1291
1297
  chain: models.UniswapSellExactlyRequestChain,
1292
1298
  sender: str,
1299
+ estimate_gas: Optional[bool] = True,
1293
1300
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1294
1301
  server_url: Optional[str] = None,
1295
1302
  timeout_ms: Optional[int] = None,
@@ -1320,6 +1327,7 @@ class UniswapV3(BaseSDK):
1320
1327
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1321
1328
  :param chain:
1322
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.
1323
1331
  :param retries: Override the default retry configuration for this method
1324
1332
  :param server_url: Override the default server URL for this method
1325
1333
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1343,6 +1351,7 @@ class UniswapV3(BaseSDK):
1343
1351
  max_slippage_percent=max_slippage_percent,
1344
1352
  chain=chain,
1345
1353
  sender=sender,
1354
+ estimate_gas=estimate_gas,
1346
1355
  )
1347
1356
 
1348
1357
  req = self._build_request(
@@ -1417,6 +1426,7 @@ class UniswapV3(BaseSDK):
1417
1426
  max_slippage_percent: float,
1418
1427
  chain: models.UniswapSellExactlyRequestChain,
1419
1428
  sender: str,
1429
+ estimate_gas: Optional[bool] = True,
1420
1430
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1421
1431
  server_url: Optional[str] = None,
1422
1432
  timeout_ms: Optional[int] = None,
@@ -1447,6 +1457,7 @@ class UniswapV3(BaseSDK):
1447
1457
  :param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
1448
1458
  :param chain:
1449
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.
1450
1461
  :param retries: Override the default retry configuration for this method
1451
1462
  :param server_url: Override the default server URL for this method
1452
1463
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1470,6 +1481,7 @@ class UniswapV3(BaseSDK):
1470
1481
  max_slippage_percent=max_slippage_percent,
1471
1482
  chain=chain,
1472
1483
  sender=sender,
1484
+ estimate_gas=estimate_gas,
1473
1485
  )
1474
1486
 
1475
1487
  req = self._build_request_async(
@@ -1558,6 +1570,7 @@ class UniswapV3(BaseSDK):
1558
1570
  chain: models.UniswapMintLiquidityProvisionRequestChain,
1559
1571
  sender: str,
1560
1572
  recipient: OptionalNullable[str] = UNSET,
1573
+ estimate_gas: Optional[bool] = True,
1561
1574
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1562
1575
  server_url: Optional[str] = None,
1563
1576
  timeout_ms: Optional[int] = None,
@@ -1595,6 +1608,7 @@ class UniswapV3(BaseSDK):
1595
1608
  :param chain:
1596
1609
  :param sender: The address of the transaction sender.
1597
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.
1598
1612
  :param retries: Override the default retry configuration for this method
1599
1613
  :param server_url: Override the default server URL for this method
1600
1614
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1623,6 +1637,7 @@ class UniswapV3(BaseSDK):
1623
1637
  recipient=recipient,
1624
1638
  chain=chain,
1625
1639
  sender=sender,
1640
+ estimate_gas=estimate_gas,
1626
1641
  )
1627
1642
 
1628
1643
  req = self._build_request(
@@ -1713,6 +1728,7 @@ class UniswapV3(BaseSDK):
1713
1728
  chain: models.UniswapMintLiquidityProvisionRequestChain,
1714
1729
  sender: str,
1715
1730
  recipient: OptionalNullable[str] = UNSET,
1731
+ estimate_gas: Optional[bool] = True,
1716
1732
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1717
1733
  server_url: Optional[str] = None,
1718
1734
  timeout_ms: Optional[int] = None,
@@ -1750,6 +1766,7 @@ class UniswapV3(BaseSDK):
1750
1766
  :param chain:
1751
1767
  :param sender: The address of the transaction sender.
1752
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.
1753
1770
  :param retries: Override the default retry configuration for this method
1754
1771
  :param server_url: Override the default server URL for this method
1755
1772
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1778,6 +1795,7 @@ class UniswapV3(BaseSDK):
1778
1795
  recipient=recipient,
1779
1796
  chain=chain,
1780
1797
  sender=sender,
1798
+ estimate_gas=estimate_gas,
1781
1799
  )
1782
1800
 
1783
1801
  req = self._build_request_async(
@@ -1863,6 +1881,7 @@ class UniswapV3(BaseSDK):
1863
1881
  ],
1864
1882
  chain: models.UniswapIncreaseLiquidityProvisionRequestChain,
1865
1883
  sender: str,
1884
+ estimate_gas: Optional[bool] = True,
1866
1885
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1867
1886
  server_url: Optional[str] = None,
1868
1887
  timeout_ms: Optional[int] = None,
@@ -1895,6 +1914,7 @@ class UniswapV3(BaseSDK):
1895
1914
  :param amount1_min: The minimum amount of the second token to deposit
1896
1915
  :param chain:
1897
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.
1898
1918
  :param retries: Override the default retry configuration for this method
1899
1919
  :param server_url: Override the default server URL for this method
1900
1920
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1918,6 +1938,7 @@ class UniswapV3(BaseSDK):
1918
1938
  amount1_min=amount1_min,
1919
1939
  chain=chain,
1920
1940
  sender=sender,
1941
+ estimate_gas=estimate_gas,
1921
1942
  )
1922
1943
 
1923
1944
  req = self._build_request(
@@ -2003,6 +2024,7 @@ class UniswapV3(BaseSDK):
2003
2024
  ],
2004
2025
  chain: models.UniswapIncreaseLiquidityProvisionRequestChain,
2005
2026
  sender: str,
2027
+ estimate_gas: Optional[bool] = True,
2006
2028
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2007
2029
  server_url: Optional[str] = None,
2008
2030
  timeout_ms: Optional[int] = None,
@@ -2035,6 +2057,7 @@ class UniswapV3(BaseSDK):
2035
2057
  :param amount1_min: The minimum amount of the second token to deposit
2036
2058
  :param chain:
2037
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.
2038
2061
  :param retries: Override the default retry configuration for this method
2039
2062
  :param server_url: Override the default server URL for this method
2040
2063
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2058,6 +2081,7 @@ class UniswapV3(BaseSDK):
2058
2081
  amount1_min=amount1_min,
2059
2082
  chain=chain,
2060
2083
  sender=sender,
2084
+ estimate_gas=estimate_gas,
2061
2085
  )
2062
2086
 
2063
2087
  req = self._build_request_async(
@@ -2131,6 +2155,7 @@ class UniswapV3(BaseSDK):
2131
2155
  ],
2132
2156
  chain: models.UniswapWithdrawLiquidityProvisionRequestChain,
2133
2157
  sender: str,
2158
+ estimate_gas: Optional[bool] = True,
2134
2159
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2135
2160
  server_url: Optional[str] = None,
2136
2161
  timeout_ms: Optional[int] = None,
@@ -2161,6 +2186,7 @@ class UniswapV3(BaseSDK):
2161
2186
  :param percentage_for_withdrawal: How much liquidity to take out in percentage.
2162
2187
  :param chain:
2163
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.
2164
2190
  :param retries: Override the default retry configuration for this method
2165
2191
  :param server_url: Override the default server URL for this method
2166
2192
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2181,6 +2207,7 @@ class UniswapV3(BaseSDK):
2181
2207
  percentage_for_withdrawal=percentage_for_withdrawal,
2182
2208
  chain=chain,
2183
2209
  sender=sender,
2210
+ estimate_gas=estimate_gas,
2184
2211
  )
2185
2212
 
2186
2213
  req = self._build_request(
@@ -2254,6 +2281,7 @@ class UniswapV3(BaseSDK):
2254
2281
  ],
2255
2282
  chain: models.UniswapWithdrawLiquidityProvisionRequestChain,
2256
2283
  sender: str,
2284
+ estimate_gas: Optional[bool] = True,
2257
2285
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
2258
2286
  server_url: Optional[str] = None,
2259
2287
  timeout_ms: Optional[int] = None,
@@ -2284,6 +2312,7 @@ class UniswapV3(BaseSDK):
2284
2312
  :param percentage_for_withdrawal: How much liquidity to take out in percentage.
2285
2313
  :param chain:
2286
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.
2287
2316
  :param retries: Override the default retry configuration for this method
2288
2317
  :param server_url: Override the default server URL for this method
2289
2318
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -2304,6 +2333,7 @@ class UniswapV3(BaseSDK):
2304
2333
  percentage_for_withdrawal=percentage_for_withdrawal,
2305
2334
  chain=chain,
2306
2335
  sender=sender,
2336
+ estimate_gas=estimate_gas,
2307
2337
  )
2308
2338
 
2309
2339
  req = self._build_request_async(
@@ -773,6 +773,7 @@ class Universal(BaseSDK):
773
773
  ],
774
774
  chain: models.WrapEthRequestChain,
775
775
  sender: str,
776
+ estimate_gas: Optional[bool] = True,
776
777
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
777
778
  server_url: Optional[str] = None,
778
779
  timeout_ms: Optional[int] = None,
@@ -786,6 +787,7 @@ class Universal(BaseSDK):
786
787
  :param amount: The amount of ETH to wrap.
787
788
  :param chain:
788
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.
789
791
  :param retries: Override the default retry configuration for this method
790
792
  :param server_url: Override the default server URL for this method
791
793
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -805,6 +807,7 @@ class Universal(BaseSDK):
805
807
  amount=amount,
806
808
  chain=chain,
807
809
  sender=sender,
810
+ estimate_gas=estimate_gas,
808
811
  )
809
812
 
810
813
  req = self._build_request(
@@ -872,6 +875,7 @@ class Universal(BaseSDK):
872
875
  ],
873
876
  chain: models.WrapEthRequestChain,
874
877
  sender: str,
878
+ estimate_gas: Optional[bool] = True,
875
879
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
876
880
  server_url: Optional[str] = None,
877
881
  timeout_ms: Optional[int] = None,
@@ -885,6 +889,7 @@ class Universal(BaseSDK):
885
889
  :param amount: The amount of ETH to wrap.
886
890
  :param chain:
887
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.
888
893
  :param retries: Override the default retry configuration for this method
889
894
  :param server_url: Override the default server URL for this method
890
895
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -904,6 +909,7 @@ class Universal(BaseSDK):
904
909
  amount=amount,
905
910
  chain=chain,
906
911
  sender=sender,
912
+ estimate_gas=estimate_gas,
907
913
  )
908
914
 
909
915
  req = self._build_request_async(
@@ -971,6 +977,7 @@ class Universal(BaseSDK):
971
977
  ],
972
978
  chain: models.UnwrapWethRequestChain,
973
979
  sender: str,
980
+ estimate_gas: Optional[bool] = True,
974
981
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
975
982
  server_url: Optional[str] = None,
976
983
  timeout_ms: Optional[int] = None,
@@ -984,6 +991,7 @@ class Universal(BaseSDK):
984
991
  :param amount: The amount of WETH to unwrap.
985
992
  :param chain:
986
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.
987
995
  :param retries: Override the default retry configuration for this method
988
996
  :param server_url: Override the default server URL for this method
989
997
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1003,6 +1011,7 @@ class Universal(BaseSDK):
1003
1011
  amount=amount,
1004
1012
  chain=chain,
1005
1013
  sender=sender,
1014
+ estimate_gas=estimate_gas,
1006
1015
  )
1007
1016
 
1008
1017
  req = self._build_request(
@@ -1070,6 +1079,7 @@ class Universal(BaseSDK):
1070
1079
  ],
1071
1080
  chain: models.UnwrapWethRequestChain,
1072
1081
  sender: str,
1082
+ estimate_gas: Optional[bool] = True,
1073
1083
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1074
1084
  server_url: Optional[str] = None,
1075
1085
  timeout_ms: Optional[int] = None,
@@ -1083,6 +1093,7 @@ class Universal(BaseSDK):
1083
1093
  :param amount: The amount of WETH to unwrap.
1084
1094
  :param chain:
1085
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.
1086
1097
  :param retries: Override the default retry configuration for this method
1087
1098
  :param server_url: Override the default server URL for this method
1088
1099
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1102,6 +1113,7 @@ class Universal(BaseSDK):
1102
1113
  amount=amount,
1103
1114
  chain=chain,
1104
1115
  sender=sender,
1116
+ estimate_gas=estimate_gas,
1105
1117
  )
1106
1118
 
1107
1119
  req = self._build_request_async(
@@ -1174,6 +1186,7 @@ class Universal(BaseSDK):
1174
1186
  ],
1175
1187
  chain: models.SetAllowanceRequestChain,
1176
1188
  sender: str,
1189
+ estimate_gas: Optional[bool] = True,
1177
1190
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1178
1191
  server_url: Optional[str] = None,
1179
1192
  timeout_ms: Optional[int] = None,
@@ -1195,6 +1208,7 @@ class Universal(BaseSDK):
1195
1208
  :param amount: The amount to set the allowance to.
1196
1209
  :param chain:
1197
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.
1198
1212
  :param retries: Override the default retry configuration for this method
1199
1213
  :param server_url: Override the default server URL for this method
1200
1214
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1216,6 +1230,7 @@ class Universal(BaseSDK):
1216
1230
  amount=amount,
1217
1231
  chain=chain,
1218
1232
  sender=sender,
1233
+ estimate_gas=estimate_gas,
1219
1234
  )
1220
1235
 
1221
1236
  req = self._build_request(
@@ -1288,6 +1303,7 @@ class Universal(BaseSDK):
1288
1303
  ],
1289
1304
  chain: models.SetAllowanceRequestChain,
1290
1305
  sender: str,
1306
+ estimate_gas: Optional[bool] = True,
1291
1307
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1292
1308
  server_url: Optional[str] = None,
1293
1309
  timeout_ms: Optional[int] = None,
@@ -1309,6 +1325,7 @@ class Universal(BaseSDK):
1309
1325
  :param amount: The amount to set the allowance to.
1310
1326
  :param chain:
1311
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.
1312
1329
  :param retries: Override the default retry configuration for this method
1313
1330
  :param server_url: Override the default server URL for this method
1314
1331
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1330,6 +1347,7 @@ class Universal(BaseSDK):
1330
1347
  amount=amount,
1331
1348
  chain=chain,
1332
1349
  sender=sender,
1350
+ estimate_gas=estimate_gas,
1333
1351
  )
1334
1352
 
1335
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.3rc0
3
+ Version: 1.1.3rc1
4
4
  Summary: Compass API SDK.
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9.2