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.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +68 -44
- compass_api_sdk/aerodrome_slipstream.py +62 -32
- compass_api_sdk/erc_4626_vaults.py +12 -0
- compass_api_sdk/ethena.py +18 -0
- compass_api_sdk/models/__init__.py +0 -254
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +10 -14
- compass_api_sdk/models/aavelooprequest.py +18 -26
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +10 -14
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +10 -14
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +10 -14
- compass_api_sdk/models/aerodromeposition.py +4 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
- compass_api_sdk/models/ethenadepositrequest.py +6 -1
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
- compass_api_sdk/models/ethenaunstakerequest.py +6 -1
- compass_api_sdk/models/morphoborrowrequest.py +6 -1
- compass_api_sdk/models/morphodepositrequest.py +6 -1
- compass_api_sdk/models/morphorepayrequest.py +11 -1
- compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
- compass_api_sdk/models/morphowithdrawrequest.py +6 -1
- compass_api_sdk/models/multicallexecuterequest.py +7 -2
- compass_api_sdk/models/odosswapparams.py +4 -25
- compass_api_sdk/models/odosswaprequest.py +10 -28
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
- compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
- compass_api_sdk/models/pendletradeptparams.py +2 -15
- compass_api_sdk/models/pendletradeptrequest.py +8 -16
- compass_api_sdk/models/pendletradeytparams.py +2 -15
- compass_api_sdk/models/pendletradeytrequest.py +8 -16
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/setallowanceparams.py +2 -15
- compass_api_sdk/models/setallowancerequest.py +8 -16
- compass_api_sdk/models/skybuyrequest.py +6 -1
- compass_api_sdk/models/skydepositrequest.py +6 -1
- compass_api_sdk/models/skysellrequest.py +7 -2
- compass_api_sdk/models/skywithdrawrequest.py +6 -1
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokentransferparams.py +2 -15
- compass_api_sdk/models/tokentransferrequest.py +8 -16
- compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
- compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
- compass_api_sdk/models/unsignedtransaction.py +34 -3
- compass_api_sdk/models/unwrapwethrequest.py +6 -1
- compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
- compass_api_sdk/models/v1_aave_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
- compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
- compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
- compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
- compass_api_sdk/models/v1_sky_positionop.py +4 -5
- compass_api_sdk/models/v1_token_balanceop.py +10 -23
- compass_api_sdk/models/v1_token_priceop.py +7 -8
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
- compass_api_sdk/models/vaultdepositrequest.py +6 -1
- compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
- compass_api_sdk/models/wrapethrequest.py +6 -1
- compass_api_sdk/morpho.py +48 -24
- compass_api_sdk/pendle.py +30 -20
- compass_api_sdk/sdk.py +3 -3
- compass_api_sdk/sky.py +38 -16
- compass_api_sdk/smart_account.py +6 -0
- compass_api_sdk/swap.py +10 -12
- compass_api_sdk/{token_sdk.py → token.py} +19 -197
- compass_api_sdk/transaction_bundler.py +20 -8
- compass_api_sdk/uniswap_v3.py +74 -68
- compass_api_sdk/universal.py +24 -188
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/RECORD +101 -106
- compass_api_sdk/models/token_enum.py +0 -81
- compass_api_sdk/models/tokenaddressresponse.py +0 -15
- compass_api_sdk/models/tokeninfo.py +0 -17
- compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
- compass_api_sdk/models/v1_token_addressop.py +0 -109
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc1.dist-info}/WHEEL +0 -0
|
@@ -213,8 +213,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
213
213
|
self,
|
|
214
214
|
*,
|
|
215
215
|
chain: models.V1AerodromeSlipstreamPoolPriceChain = models.V1AerodromeSlipstreamPoolPriceChain.BASE,
|
|
216
|
-
token_in:
|
|
217
|
-
token_out:
|
|
216
|
+
token_in: str = "USDC",
|
|
217
|
+
token_out: str = "WETH",
|
|
218
218
|
tick_spacing: Optional[int] = 100,
|
|
219
219
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
220
220
|
server_url: Optional[str] = None,
|
|
@@ -231,8 +231,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
231
231
|
the quote endpoint.
|
|
232
232
|
|
|
233
233
|
:param chain:
|
|
234
|
-
:param token_in: The symbol of a token in the pool.
|
|
235
|
-
:param token_out: The symbol of a token in the pool.
|
|
234
|
+
:param token_in: The symbol or address of a token in the pool.
|
|
235
|
+
:param token_out: The symbol or address of a token in the pool.
|
|
236
236
|
:param tick_spacing: The tick spacing of the pool
|
|
237
237
|
:param retries: Override the default retry configuration for this method
|
|
238
238
|
:param server_url: Override the default server URL for this method
|
|
@@ -316,8 +316,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
316
316
|
self,
|
|
317
317
|
*,
|
|
318
318
|
chain: models.V1AerodromeSlipstreamPoolPriceChain = models.V1AerodromeSlipstreamPoolPriceChain.BASE,
|
|
319
|
-
token_in:
|
|
320
|
-
token_out:
|
|
319
|
+
token_in: str = "USDC",
|
|
320
|
+
token_out: str = "WETH",
|
|
321
321
|
tick_spacing: Optional[int] = 100,
|
|
322
322
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
323
323
|
server_url: Optional[str] = None,
|
|
@@ -334,8 +334,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
334
334
|
the quote endpoint.
|
|
335
335
|
|
|
336
336
|
:param chain:
|
|
337
|
-
:param token_in: The symbol of a token in the pool.
|
|
338
|
-
:param token_out: The symbol of a token in the pool.
|
|
337
|
+
:param token_in: The symbol or address of a token in the pool.
|
|
338
|
+
:param token_out: The symbol or address of a token in the pool.
|
|
339
339
|
:param tick_spacing: The tick spacing of the pool
|
|
340
340
|
:param retries: Override the default retry configuration for this method
|
|
341
341
|
:param server_url: Override the default server URL for this method
|
|
@@ -418,8 +418,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
418
418
|
def aerodrome_slipstream_swap_sell_exactly(
|
|
419
419
|
self,
|
|
420
420
|
*,
|
|
421
|
-
token_in:
|
|
422
|
-
token_out:
|
|
421
|
+
token_in: str,
|
|
422
|
+
token_out: str,
|
|
423
423
|
tick_spacing: int,
|
|
424
424
|
amount_in: Union[
|
|
425
425
|
models.AerodromeSlipstreamSellExactlyRequestAmountIn,
|
|
@@ -433,6 +433,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
433
433
|
models.AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict,
|
|
434
434
|
]
|
|
435
435
|
] = None,
|
|
436
|
+
estimate_gas: Optional[bool] = True,
|
|
436
437
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
437
438
|
server_url: Optional[str] = None,
|
|
438
439
|
timeout_ms: Optional[int] = None,
|
|
@@ -458,13 +459,14 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
458
459
|
</Info>
|
|
459
460
|
|
|
460
461
|
|
|
461
|
-
:param token_in:
|
|
462
|
-
:param token_out:
|
|
462
|
+
:param token_in: The symbol or address of the token to swap from.
|
|
463
|
+
:param token_out: The symbol or address of the token to swap to.
|
|
463
464
|
:param tick_spacing: The tick spacing of the pool
|
|
464
465
|
:param amount_in: The amount of the token to swap from
|
|
465
466
|
:param chain:
|
|
466
467
|
:param sender: The address of the transaction sender.
|
|
467
468
|
:param amount_out_minimum: The minimum amount of the token to swap to, defaults to 0
|
|
469
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
468
470
|
:param retries: Override the default retry configuration for this method
|
|
469
471
|
:param server_url: Override the default server URL for this method
|
|
470
472
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -488,6 +490,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
488
490
|
amount_out_minimum=amount_out_minimum,
|
|
489
491
|
chain=chain,
|
|
490
492
|
sender=sender,
|
|
493
|
+
estimate_gas=estimate_gas,
|
|
491
494
|
)
|
|
492
495
|
|
|
493
496
|
req = self._build_request(
|
|
@@ -554,8 +557,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
554
557
|
async def aerodrome_slipstream_swap_sell_exactly_async(
|
|
555
558
|
self,
|
|
556
559
|
*,
|
|
557
|
-
token_in:
|
|
558
|
-
token_out:
|
|
560
|
+
token_in: str,
|
|
561
|
+
token_out: str,
|
|
559
562
|
tick_spacing: int,
|
|
560
563
|
amount_in: Union[
|
|
561
564
|
models.AerodromeSlipstreamSellExactlyRequestAmountIn,
|
|
@@ -569,6 +572,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
569
572
|
models.AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict,
|
|
570
573
|
]
|
|
571
574
|
] = None,
|
|
575
|
+
estimate_gas: Optional[bool] = True,
|
|
572
576
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
573
577
|
server_url: Optional[str] = None,
|
|
574
578
|
timeout_ms: Optional[int] = None,
|
|
@@ -594,13 +598,14 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
594
598
|
</Info>
|
|
595
599
|
|
|
596
600
|
|
|
597
|
-
:param token_in:
|
|
598
|
-
:param token_out:
|
|
601
|
+
:param token_in: The symbol or address of the token to swap from.
|
|
602
|
+
:param token_out: The symbol or address of the token to swap to.
|
|
599
603
|
:param tick_spacing: The tick spacing of the pool
|
|
600
604
|
:param amount_in: The amount of the token to swap from
|
|
601
605
|
:param chain:
|
|
602
606
|
:param sender: The address of the transaction sender.
|
|
603
607
|
:param amount_out_minimum: The minimum amount of the token to swap to, defaults to 0
|
|
608
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
604
609
|
:param retries: Override the default retry configuration for this method
|
|
605
610
|
:param server_url: Override the default server URL for this method
|
|
606
611
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -624,6 +629,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
624
629
|
amount_out_minimum=amount_out_minimum,
|
|
625
630
|
chain=chain,
|
|
626
631
|
sender=sender,
|
|
632
|
+
estimate_gas=estimate_gas,
|
|
627
633
|
)
|
|
628
634
|
|
|
629
635
|
req = self._build_request_async(
|
|
@@ -690,8 +696,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
690
696
|
def aerodrome_slipstream_swap_buy_exactly(
|
|
691
697
|
self,
|
|
692
698
|
*,
|
|
693
|
-
token_in:
|
|
694
|
-
token_out:
|
|
699
|
+
token_in: str,
|
|
700
|
+
token_out: str,
|
|
695
701
|
tick_spacing: int,
|
|
696
702
|
amount_out: Union[
|
|
697
703
|
models.AerodromeSlipstreamBuyExactlyRequestAmountOut,
|
|
@@ -703,6 +709,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
703
709
|
],
|
|
704
710
|
chain: models.AerodromeSlipstreamBuyExactlyRequestChain,
|
|
705
711
|
sender: str,
|
|
712
|
+
estimate_gas: Optional[bool] = True,
|
|
706
713
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
707
714
|
server_url: Optional[str] = None,
|
|
708
715
|
timeout_ms: Optional[int] = None,
|
|
@@ -729,13 +736,14 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
729
736
|
</Info>
|
|
730
737
|
|
|
731
738
|
|
|
732
|
-
:param token_in:
|
|
733
|
-
:param token_out:
|
|
739
|
+
:param token_in: The symbol of the token to swap from.
|
|
740
|
+
:param token_out: The symbol of the token to swap to.
|
|
734
741
|
:param tick_spacing: The tick spacing of the pool
|
|
735
742
|
:param amount_out: The amount of the token to swap to
|
|
736
743
|
:param amount_in_maximum: The maximum amount of the token to swap from
|
|
737
744
|
:param chain:
|
|
738
745
|
:param sender: The address of the transaction sender.
|
|
746
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
739
747
|
:param retries: Override the default retry configuration for this method
|
|
740
748
|
:param server_url: Override the default server URL for this method
|
|
741
749
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -759,6 +767,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
759
767
|
amount_in_maximum=amount_in_maximum,
|
|
760
768
|
chain=chain,
|
|
761
769
|
sender=sender,
|
|
770
|
+
estimate_gas=estimate_gas,
|
|
762
771
|
)
|
|
763
772
|
|
|
764
773
|
req = self._build_request(
|
|
@@ -825,8 +834,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
825
834
|
async def aerodrome_slipstream_swap_buy_exactly_async(
|
|
826
835
|
self,
|
|
827
836
|
*,
|
|
828
|
-
token_in:
|
|
829
|
-
token_out:
|
|
837
|
+
token_in: str,
|
|
838
|
+
token_out: str,
|
|
830
839
|
tick_spacing: int,
|
|
831
840
|
amount_out: Union[
|
|
832
841
|
models.AerodromeSlipstreamBuyExactlyRequestAmountOut,
|
|
@@ -838,6 +847,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
838
847
|
],
|
|
839
848
|
chain: models.AerodromeSlipstreamBuyExactlyRequestChain,
|
|
840
849
|
sender: str,
|
|
850
|
+
estimate_gas: Optional[bool] = True,
|
|
841
851
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
842
852
|
server_url: Optional[str] = None,
|
|
843
853
|
timeout_ms: Optional[int] = None,
|
|
@@ -864,13 +874,14 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
864
874
|
</Info>
|
|
865
875
|
|
|
866
876
|
|
|
867
|
-
:param token_in:
|
|
868
|
-
:param token_out:
|
|
877
|
+
:param token_in: The symbol of the token to swap from.
|
|
878
|
+
:param token_out: The symbol of the token to swap to.
|
|
869
879
|
:param tick_spacing: The tick spacing of the pool
|
|
870
880
|
:param amount_out: The amount of the token to swap to
|
|
871
881
|
:param amount_in_maximum: The maximum amount of the token to swap from
|
|
872
882
|
:param chain:
|
|
873
883
|
:param sender: The address of the transaction sender.
|
|
884
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
874
885
|
:param retries: Override the default retry configuration for this method
|
|
875
886
|
:param server_url: Override the default server URL for this method
|
|
876
887
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -894,6 +905,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
894
905
|
amount_in_maximum=amount_in_maximum,
|
|
895
906
|
chain=chain,
|
|
896
907
|
sender=sender,
|
|
908
|
+
estimate_gas=estimate_gas,
|
|
897
909
|
)
|
|
898
910
|
|
|
899
911
|
req = self._build_request_async(
|
|
@@ -960,8 +972,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
960
972
|
def aerodrome_slipstream_liquidity_provision_mint(
|
|
961
973
|
self,
|
|
962
974
|
*,
|
|
963
|
-
token0:
|
|
964
|
-
token1:
|
|
975
|
+
token0: str,
|
|
976
|
+
token1: str,
|
|
965
977
|
tick_spacing: int,
|
|
966
978
|
tick_lower: int,
|
|
967
979
|
tick_upper: int,
|
|
@@ -984,6 +996,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
984
996
|
chain: models.AerodromeSlipstreamMintLiquidityProvisionRequestChain,
|
|
985
997
|
sender: str,
|
|
986
998
|
recipient: OptionalNullable[str] = UNSET,
|
|
999
|
+
estimate_gas: Optional[bool] = True,
|
|
987
1000
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
988
1001
|
server_url: Optional[str] = None,
|
|
989
1002
|
timeout_ms: Optional[int] = None,
|
|
@@ -1009,8 +1022,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1009
1022
|
</Info>
|
|
1010
1023
|
|
|
1011
1024
|
|
|
1012
|
-
:param token0:
|
|
1013
|
-
:param token1:
|
|
1025
|
+
:param token0: The symbol or address of the first token in the pair.
|
|
1026
|
+
:param token1: The symbol or address of the second token in the pair.
|
|
1014
1027
|
:param tick_spacing: The tick spacing of the pool
|
|
1015
1028
|
:param tick_lower: The lower tick of the range to mint the position in
|
|
1016
1029
|
:param tick_upper: The upper tick of the range to mint the position in
|
|
@@ -1021,6 +1034,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1021
1034
|
:param chain:
|
|
1022
1035
|
:param sender: The address of the transaction sender.
|
|
1023
1036
|
:param recipient: The address that will receive the LP tokens
|
|
1037
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1024
1038
|
:param retries: Override the default retry configuration for this method
|
|
1025
1039
|
:param server_url: Override the default server URL for this method
|
|
1026
1040
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1049,6 +1063,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1049
1063
|
recipient=recipient,
|
|
1050
1064
|
chain=chain,
|
|
1051
1065
|
sender=sender,
|
|
1066
|
+
estimate_gas=estimate_gas,
|
|
1052
1067
|
)
|
|
1053
1068
|
|
|
1054
1069
|
req = self._build_request(
|
|
@@ -1115,8 +1130,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1115
1130
|
async def aerodrome_slipstream_liquidity_provision_mint_async(
|
|
1116
1131
|
self,
|
|
1117
1132
|
*,
|
|
1118
|
-
token0:
|
|
1119
|
-
token1:
|
|
1133
|
+
token0: str,
|
|
1134
|
+
token1: str,
|
|
1120
1135
|
tick_spacing: int,
|
|
1121
1136
|
tick_lower: int,
|
|
1122
1137
|
tick_upper: int,
|
|
@@ -1139,6 +1154,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1139
1154
|
chain: models.AerodromeSlipstreamMintLiquidityProvisionRequestChain,
|
|
1140
1155
|
sender: str,
|
|
1141
1156
|
recipient: OptionalNullable[str] = UNSET,
|
|
1157
|
+
estimate_gas: Optional[bool] = True,
|
|
1142
1158
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1143
1159
|
server_url: Optional[str] = None,
|
|
1144
1160
|
timeout_ms: Optional[int] = None,
|
|
@@ -1164,8 +1180,8 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1164
1180
|
</Info>
|
|
1165
1181
|
|
|
1166
1182
|
|
|
1167
|
-
:param token0:
|
|
1168
|
-
:param token1:
|
|
1183
|
+
:param token0: The symbol or address of the first token in the pair.
|
|
1184
|
+
:param token1: The symbol or address of the second token in the pair.
|
|
1169
1185
|
:param tick_spacing: The tick spacing of the pool
|
|
1170
1186
|
:param tick_lower: The lower tick of the range to mint the position in
|
|
1171
1187
|
:param tick_upper: The upper tick of the range to mint the position in
|
|
@@ -1176,6 +1192,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1176
1192
|
:param chain:
|
|
1177
1193
|
:param sender: The address of the transaction sender.
|
|
1178
1194
|
:param recipient: The address that will receive the LP tokens
|
|
1195
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1179
1196
|
:param retries: Override the default retry configuration for this method
|
|
1180
1197
|
:param server_url: Override the default server URL for this method
|
|
1181
1198
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1204,6 +1221,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1204
1221
|
recipient=recipient,
|
|
1205
1222
|
chain=chain,
|
|
1206
1223
|
sender=sender,
|
|
1224
|
+
estimate_gas=estimate_gas,
|
|
1207
1225
|
)
|
|
1208
1226
|
|
|
1209
1227
|
req = self._build_request_async(
|
|
@@ -1289,6 +1307,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1289
1307
|
],
|
|
1290
1308
|
chain: models.AerodromeSlipstreamIncreaseLiquidityProvisionRequestChain,
|
|
1291
1309
|
sender: str,
|
|
1310
|
+
estimate_gas: Optional[bool] = True,
|
|
1292
1311
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1293
1312
|
server_url: Optional[str] = None,
|
|
1294
1313
|
timeout_ms: Optional[int] = None,
|
|
@@ -1323,6 +1342,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1323
1342
|
:param amount1_min: The minimum amount of the second token to deposit
|
|
1324
1343
|
:param chain:
|
|
1325
1344
|
:param sender: The address of the transaction sender.
|
|
1345
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1326
1346
|
:param retries: Override the default retry configuration for this method
|
|
1327
1347
|
:param server_url: Override the default server URL for this method
|
|
1328
1348
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1346,6 +1366,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1346
1366
|
amount1_min=amount1_min,
|
|
1347
1367
|
chain=chain,
|
|
1348
1368
|
sender=sender,
|
|
1369
|
+
estimate_gas=estimate_gas,
|
|
1349
1370
|
)
|
|
1350
1371
|
|
|
1351
1372
|
req = self._build_request(
|
|
@@ -1431,6 +1452,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1431
1452
|
],
|
|
1432
1453
|
chain: models.AerodromeSlipstreamIncreaseLiquidityProvisionRequestChain,
|
|
1433
1454
|
sender: str,
|
|
1455
|
+
estimate_gas: Optional[bool] = True,
|
|
1434
1456
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1435
1457
|
server_url: Optional[str] = None,
|
|
1436
1458
|
timeout_ms: Optional[int] = None,
|
|
@@ -1465,6 +1487,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1465
1487
|
:param amount1_min: The minimum amount of the second token to deposit
|
|
1466
1488
|
:param chain:
|
|
1467
1489
|
:param sender: The address of the transaction sender.
|
|
1490
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1468
1491
|
:param retries: Override the default retry configuration for this method
|
|
1469
1492
|
:param server_url: Override the default server URL for this method
|
|
1470
1493
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1488,6 +1511,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1488
1511
|
amount1_min=amount1_min,
|
|
1489
1512
|
chain=chain,
|
|
1490
1513
|
sender=sender,
|
|
1514
|
+
estimate_gas=estimate_gas,
|
|
1491
1515
|
)
|
|
1492
1516
|
|
|
1493
1517
|
req = self._build_request_async(
|
|
@@ -1561,6 +1585,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1561
1585
|
],
|
|
1562
1586
|
chain: models.AerodromeSlipstreamWithdrawLiquidityProvisionRequestChain,
|
|
1563
1587
|
sender: str,
|
|
1588
|
+
estimate_gas: Optional[bool] = True,
|
|
1564
1589
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1565
1590
|
server_url: Optional[str] = None,
|
|
1566
1591
|
timeout_ms: Optional[int] = None,
|
|
@@ -1592,6 +1617,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1592
1617
|
:param percentage_for_withdrawal: How much liquidity to take out in percentage.
|
|
1593
1618
|
:param chain:
|
|
1594
1619
|
:param sender: The address of the transaction sender.
|
|
1620
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1595
1621
|
:param retries: Override the default retry configuration for this method
|
|
1596
1622
|
:param server_url: Override the default server URL for this method
|
|
1597
1623
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1612,6 +1638,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1612
1638
|
percentage_for_withdrawal=percentage_for_withdrawal,
|
|
1613
1639
|
chain=chain,
|
|
1614
1640
|
sender=sender,
|
|
1641
|
+
estimate_gas=estimate_gas,
|
|
1615
1642
|
)
|
|
1616
1643
|
|
|
1617
1644
|
req = self._build_request(
|
|
@@ -1685,6 +1712,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1685
1712
|
],
|
|
1686
1713
|
chain: models.AerodromeSlipstreamWithdrawLiquidityProvisionRequestChain,
|
|
1687
1714
|
sender: str,
|
|
1715
|
+
estimate_gas: Optional[bool] = True,
|
|
1688
1716
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1689
1717
|
server_url: Optional[str] = None,
|
|
1690
1718
|
timeout_ms: Optional[int] = None,
|
|
@@ -1716,6 +1744,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1716
1744
|
:param percentage_for_withdrawal: How much liquidity to take out in percentage.
|
|
1717
1745
|
:param chain:
|
|
1718
1746
|
:param sender: The address of the transaction sender.
|
|
1747
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1719
1748
|
:param retries: Override the default retry configuration for this method
|
|
1720
1749
|
:param server_url: Override the default server URL for this method
|
|
1721
1750
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1736,6 +1765,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1736
1765
|
percentage_for_withdrawal=percentage_for_withdrawal,
|
|
1737
1766
|
chain=chain,
|
|
1738
1767
|
sender=sender,
|
|
1768
|
+
estimate_gas=estimate_gas,
|
|
1739
1769
|
)
|
|
1740
1770
|
|
|
1741
1771
|
req = self._build_request_async(
|
|
@@ -215,6 +215,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
215
215
|
chain: models.VaultDepositRequestChain,
|
|
216
216
|
sender: str,
|
|
217
217
|
receiver: OptionalNullable[str] = UNSET,
|
|
218
|
+
estimate_gas: Optional[bool] = True,
|
|
218
219
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
219
220
|
server_url: Optional[str] = None,
|
|
220
221
|
timeout_ms: Optional[int] = None,
|
|
@@ -239,6 +240,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
239
240
|
:param chain:
|
|
240
241
|
:param sender: The address of the transaction sender.
|
|
241
242
|
:param receiver: The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
243
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
242
244
|
:param retries: Override the default retry configuration for this method
|
|
243
245
|
:param server_url: Override the default server URL for this method
|
|
244
246
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -260,6 +262,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
260
262
|
receiver=receiver,
|
|
261
263
|
chain=chain,
|
|
262
264
|
sender=sender,
|
|
265
|
+
estimate_gas=estimate_gas,
|
|
263
266
|
)
|
|
264
267
|
|
|
265
268
|
req = self._build_request(
|
|
@@ -329,6 +332,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
329
332
|
chain: models.VaultDepositRequestChain,
|
|
330
333
|
sender: str,
|
|
331
334
|
receiver: OptionalNullable[str] = UNSET,
|
|
335
|
+
estimate_gas: Optional[bool] = True,
|
|
332
336
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
333
337
|
server_url: Optional[str] = None,
|
|
334
338
|
timeout_ms: Optional[int] = None,
|
|
@@ -353,6 +357,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
353
357
|
:param chain:
|
|
354
358
|
:param sender: The address of the transaction sender.
|
|
355
359
|
:param receiver: The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
360
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
356
361
|
:param retries: Override the default retry configuration for this method
|
|
357
362
|
:param server_url: Override the default server URL for this method
|
|
358
363
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -374,6 +379,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
374
379
|
receiver=receiver,
|
|
375
380
|
chain=chain,
|
|
376
381
|
sender=sender,
|
|
382
|
+
estimate_gas=estimate_gas,
|
|
377
383
|
)
|
|
378
384
|
|
|
379
385
|
req = self._build_request_async(
|
|
@@ -441,6 +447,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
441
447
|
chain: models.VaultWithdrawRequestChain,
|
|
442
448
|
sender: str,
|
|
443
449
|
receiver: OptionalNullable[str] = UNSET,
|
|
450
|
+
estimate_gas: Optional[bool] = True,
|
|
444
451
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
445
452
|
server_url: Optional[str] = None,
|
|
446
453
|
timeout_ms: Optional[int] = None,
|
|
@@ -459,6 +466,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
459
466
|
:param chain:
|
|
460
467
|
:param sender: The address of the transaction sender.
|
|
461
468
|
:param receiver: The address which will receive the tokens withdrawn. Defaults to the sender.
|
|
469
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
462
470
|
:param retries: Override the default retry configuration for this method
|
|
463
471
|
:param server_url: Override the default server URL for this method
|
|
464
472
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -480,6 +488,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
480
488
|
receiver=receiver,
|
|
481
489
|
chain=chain,
|
|
482
490
|
sender=sender,
|
|
491
|
+
estimate_gas=estimate_gas,
|
|
483
492
|
)
|
|
484
493
|
|
|
485
494
|
req = self._build_request(
|
|
@@ -547,6 +556,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
547
556
|
chain: models.VaultWithdrawRequestChain,
|
|
548
557
|
sender: str,
|
|
549
558
|
receiver: OptionalNullable[str] = UNSET,
|
|
559
|
+
estimate_gas: Optional[bool] = True,
|
|
550
560
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
551
561
|
server_url: Optional[str] = None,
|
|
552
562
|
timeout_ms: Optional[int] = None,
|
|
@@ -565,6 +575,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
565
575
|
:param chain:
|
|
566
576
|
:param sender: The address of the transaction sender.
|
|
567
577
|
:param receiver: The address which will receive the tokens withdrawn. Defaults to the sender.
|
|
578
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
568
579
|
:param retries: Override the default retry configuration for this method
|
|
569
580
|
:param server_url: Override the default server URL for this method
|
|
570
581
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -586,6 +597,7 @@ class ERC4626Vaults(BaseSDK):
|
|
|
586
597
|
receiver=receiver,
|
|
587
598
|
chain=chain,
|
|
588
599
|
sender=sender,
|
|
600
|
+
estimate_gas=estimate_gas,
|
|
589
601
|
)
|
|
590
602
|
|
|
591
603
|
req = self._build_request_async(
|
compass_api_sdk/ethena.py
CHANGED
|
@@ -213,6 +213,7 @@ class Ethena(BaseSDK):
|
|
|
213
213
|
chain: models.EthenaDepositRequestChain,
|
|
214
214
|
sender: str,
|
|
215
215
|
receiver: OptionalNullable[str] = UNSET,
|
|
216
|
+
estimate_gas: Optional[bool] = True,
|
|
216
217
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
217
218
|
server_url: Optional[str] = None,
|
|
218
219
|
timeout_ms: Optional[int] = None,
|
|
@@ -236,6 +237,7 @@ class Ethena(BaseSDK):
|
|
|
236
237
|
:param chain:
|
|
237
238
|
:param sender: The address of the transaction sender.
|
|
238
239
|
:param receiver: The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
240
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
239
241
|
:param retries: Override the default retry configuration for this method
|
|
240
242
|
:param server_url: Override the default server URL for this method
|
|
241
243
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -256,6 +258,7 @@ class Ethena(BaseSDK):
|
|
|
256
258
|
receiver=receiver,
|
|
257
259
|
chain=chain,
|
|
258
260
|
sender=sender,
|
|
261
|
+
estimate_gas=estimate_gas,
|
|
259
262
|
)
|
|
260
263
|
|
|
261
264
|
req = self._build_request(
|
|
@@ -325,6 +328,7 @@ class Ethena(BaseSDK):
|
|
|
325
328
|
chain: models.EthenaDepositRequestChain,
|
|
326
329
|
sender: str,
|
|
327
330
|
receiver: OptionalNullable[str] = UNSET,
|
|
331
|
+
estimate_gas: Optional[bool] = True,
|
|
328
332
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
329
333
|
server_url: Optional[str] = None,
|
|
330
334
|
timeout_ms: Optional[int] = None,
|
|
@@ -348,6 +352,7 @@ class Ethena(BaseSDK):
|
|
|
348
352
|
:param chain:
|
|
349
353
|
:param sender: The address of the transaction sender.
|
|
350
354
|
:param receiver: The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
355
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
351
356
|
:param retries: Override the default retry configuration for this method
|
|
352
357
|
:param server_url: Override the default server URL for this method
|
|
353
358
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -368,6 +373,7 @@ class Ethena(BaseSDK):
|
|
|
368
373
|
receiver=receiver,
|
|
369
374
|
chain=chain,
|
|
370
375
|
sender=sender,
|
|
376
|
+
estimate_gas=estimate_gas,
|
|
371
377
|
)
|
|
372
378
|
|
|
373
379
|
req = self._build_request_async(
|
|
@@ -433,6 +439,7 @@ class Ethena(BaseSDK):
|
|
|
433
439
|
amount: Any,
|
|
434
440
|
chain: models.EthenaRequestToWithdrawRequestChain,
|
|
435
441
|
sender: str,
|
|
442
|
+
estimate_gas: Optional[bool] = True,
|
|
436
443
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
437
444
|
server_url: Optional[str] = None,
|
|
438
445
|
timeout_ms: Optional[int] = None,
|
|
@@ -456,6 +463,7 @@ class Ethena(BaseSDK):
|
|
|
456
463
|
:param amount: The amount of USDe to request to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be requested to be withdrawn.
|
|
457
464
|
:param chain:
|
|
458
465
|
:param sender: The address of the transaction sender.
|
|
466
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
459
467
|
:param retries: Override the default retry configuration for this method
|
|
460
468
|
:param server_url: Override the default server URL for this method
|
|
461
469
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -475,6 +483,7 @@ class Ethena(BaseSDK):
|
|
|
475
483
|
amount=amount,
|
|
476
484
|
chain=chain,
|
|
477
485
|
sender=sender,
|
|
486
|
+
estimate_gas=estimate_gas,
|
|
478
487
|
)
|
|
479
488
|
|
|
480
489
|
req = self._build_request(
|
|
@@ -542,6 +551,7 @@ class Ethena(BaseSDK):
|
|
|
542
551
|
amount: Any,
|
|
543
552
|
chain: models.EthenaRequestToWithdrawRequestChain,
|
|
544
553
|
sender: str,
|
|
554
|
+
estimate_gas: Optional[bool] = True,
|
|
545
555
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
546
556
|
server_url: Optional[str] = None,
|
|
547
557
|
timeout_ms: Optional[int] = None,
|
|
@@ -565,6 +575,7 @@ class Ethena(BaseSDK):
|
|
|
565
575
|
:param amount: The amount of USDe to request to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be requested to be withdrawn.
|
|
566
576
|
:param chain:
|
|
567
577
|
:param sender: The address of the transaction sender.
|
|
578
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
568
579
|
:param retries: Override the default retry configuration for this method
|
|
569
580
|
:param server_url: Override the default server URL for this method
|
|
570
581
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -584,6 +595,7 @@ class Ethena(BaseSDK):
|
|
|
584
595
|
amount=amount,
|
|
585
596
|
chain=chain,
|
|
586
597
|
sender=sender,
|
|
598
|
+
estimate_gas=estimate_gas,
|
|
587
599
|
)
|
|
588
600
|
|
|
589
601
|
req = self._build_request_async(
|
|
@@ -651,6 +663,7 @@ class Ethena(BaseSDK):
|
|
|
651
663
|
chain: models.EthenaUnstakeRequestChain,
|
|
652
664
|
sender: str,
|
|
653
665
|
receiver: OptionalNullable[str] = UNSET,
|
|
666
|
+
estimate_gas: Optional[bool] = True,
|
|
654
667
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
655
668
|
server_url: Optional[str] = None,
|
|
656
669
|
timeout_ms: Optional[int] = None,
|
|
@@ -676,6 +689,7 @@ class Ethena(BaseSDK):
|
|
|
676
689
|
:param chain:
|
|
677
690
|
:param sender: The address of the transaction sender.
|
|
678
691
|
:param receiver: The address which will receive the unstaked USDe. Defaults to the sender.
|
|
692
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
679
693
|
:param retries: Override the default retry configuration for this method
|
|
680
694
|
:param server_url: Override the default server URL for this method
|
|
681
695
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -695,6 +709,7 @@ class Ethena(BaseSDK):
|
|
|
695
709
|
receiver=receiver,
|
|
696
710
|
chain=chain,
|
|
697
711
|
sender=sender,
|
|
712
|
+
estimate_gas=estimate_gas,
|
|
698
713
|
)
|
|
699
714
|
|
|
700
715
|
req = self._build_request(
|
|
@@ -760,6 +775,7 @@ class Ethena(BaseSDK):
|
|
|
760
775
|
chain: models.EthenaUnstakeRequestChain,
|
|
761
776
|
sender: str,
|
|
762
777
|
receiver: OptionalNullable[str] = UNSET,
|
|
778
|
+
estimate_gas: Optional[bool] = True,
|
|
763
779
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
764
780
|
server_url: Optional[str] = None,
|
|
765
781
|
timeout_ms: Optional[int] = None,
|
|
@@ -785,6 +801,7 @@ class Ethena(BaseSDK):
|
|
|
785
801
|
:param chain:
|
|
786
802
|
:param sender: The address of the transaction sender.
|
|
787
803
|
:param receiver: The address which will receive the unstaked USDe. Defaults to the sender.
|
|
804
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
788
805
|
:param retries: Override the default retry configuration for this method
|
|
789
806
|
:param server_url: Override the default server URL for this method
|
|
790
807
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -804,6 +821,7 @@ class Ethena(BaseSDK):
|
|
|
804
821
|
receiver=receiver,
|
|
805
822
|
chain=chain,
|
|
806
823
|
sender=sender,
|
|
824
|
+
estimate_gas=estimate_gas,
|
|
807
825
|
)
|
|
808
826
|
|
|
809
827
|
req = self._build_request_async(
|