compass_api_sdk 1.1.1__py3-none-any.whl → 2.0.21rc1__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.
- compass_api_sdk/_hooks/sdkhooks.py +4 -4
- compass_api_sdk/_hooks/types.py +1 -2
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +386 -114
- compass_api_sdk/aerodrome_slipstream.py +104 -54
- compass_api_sdk/basesdk.py +6 -0
- compass_api_sdk/bridge.py +536 -0
- compass_api_sdk/earn.py +1780 -0
- compass_api_sdk/erc_4626_vaults.py +28 -10
- compass_api_sdk/errors/__init__.py +8 -0
- compass_api_sdk/errors/apierror.py +1 -1
- compass_api_sdk/errors/compassapierror.py +1 -1
- compass_api_sdk/errors/httpvalidationerror.py +1 -1
- compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
- compass_api_sdk/errors/no_response_error.py +1 -1
- compass_api_sdk/errors/responsevalidationerror.py +1 -1
- compass_api_sdk/ethena.py +36 -10
- compass_api_sdk/gas_sponsorship.py +446 -0
- compass_api_sdk/httpclient.py +0 -1
- compass_api_sdk/models/__init__.py +764 -392
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +10 -14
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +3 -3
- compass_api_sdk/models/aavelooprequest.py +32 -28
- compass_api_sdk/models/aaveposition.py +49 -0
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +10 -14
- compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
- compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +10 -14
- compass_api_sdk/models/aavevenue.py +27 -0
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +10 -14
- compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
- compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
- 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/approvetransferrequest.py +32 -0
- compass_api_sdk/models/approvetransferresponse.py +52 -0
- compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
- compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
- compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
- compass_api_sdk/models/chainmarketinfo.py +29 -0
- compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
- compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py} +4 -2
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_userposition.py → compass_api_backend_v1_models_pendle_read_response_market_userposition.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_userposition.py → compass_api_backend_v1_models_vaults_read_response_vault_userposition.py} +2 -2
- compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
- compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +49 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
- compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
- compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
- compass_api_sdk/models/createaccountrequest.py +40 -0
- compass_api_sdk/models/createaccountresponse.py +56 -0
- compass_api_sdk/models/depositforburnrequest.py +77 -0
- compass_api_sdk/models/depositforburnresponse.py +100 -0
- compass_api_sdk/models/earnmanageparams.py +74 -0
- compass_api_sdk/models/earnmanagerequest.py +130 -0
- compass_api_sdk/models/earnmanageresponse.py +52 -0
- compass_api_sdk/models/earnpositionsresponse.py +39 -0
- compass_api_sdk/models/earnswapparams.py +74 -0
- compass_api_sdk/models/earnswaprequest.py +90 -0
- compass_api_sdk/models/earnswapresponse.py +55 -0
- compass_api_sdk/models/earntransferrequest.py +104 -0
- compass_api_sdk/models/earntransferresponse.py +71 -0
- compass_api_sdk/models/eip712domainfield.py +20 -0
- compass_api_sdk/models/eip712field.py +20 -0
- compass_api_sdk/models/ethenadepositrequest.py +6 -1
- compass_api_sdk/models/ethenagetvaultresponse.py +5 -5
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
- compass_api_sdk/models/ethenaunstakerequest.py +6 -1
- compass_api_sdk/models/fee.py +42 -0
- compass_api_sdk/models/listaavemarketsresponse.py +21 -0
- compass_api_sdk/models/marketposition.py +5 -5
- compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
- compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
- compass_api_sdk/models/mintpreparependingresponse.py +65 -0
- compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
- compass_api_sdk/models/mintpreparerequest.py +25 -0
- compass_api_sdk/models/morphoborrowrequest.py +6 -1
- compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
- compass_api_sdk/models/morphodepositrequest.py +6 -1
- compass_api_sdk/models/morphogetmarketresponse.py +72 -31
- compass_api_sdk/models/morphomarket.py +26 -20
- compass_api_sdk/models/morphorepayrequest.py +11 -1
- compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
- compass_api_sdk/models/morphovault.py +10 -10
- 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 +9 -30
- compass_api_sdk/models/odosswaprequest.py +15 -33
- compass_api_sdk/models/oneinchswapparams.py +59 -0
- compass_api_sdk/models/openposition.py +7 -7
- compass_api_sdk/models/operationtype.py +11 -0
- compass_api_sdk/models/pendlegetmarketresponse.py +5 -5
- 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/permit2typeddata_input.py +46 -0
- compass_api_sdk/models/permit2typeddata_output.py +46 -0
- compass_api_sdk/models/permitfield.py +20 -0
- compass_api_sdk/models/permitmessage.py +39 -0
- compass_api_sdk/models/permittransferfrommessage.py +29 -0
- compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
- compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
- compass_api_sdk/models/portfolio.py +5 -5
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/safetransactionparams.py +78 -0
- compass_api_sdk/models/safetransactionresponse.py +28 -0
- compass_api_sdk/models/safetxfield.py +20 -0
- compass_api_sdk/models/safetxmessage.py +66 -0
- compass_api_sdk/models/setallowanceparams.py +3 -16
- compass_api_sdk/models/setallowancerequest.py +9 -17
- compass_api_sdk/models/skybuyrequest.py +6 -1
- compass_api_sdk/models/skydepositrequest.py +7 -2
- compass_api_sdk/models/skysellrequest.py +7 -2
- compass_api_sdk/models/skywithdrawrequest.py +7 -2
- compass_api_sdk/models/sponsorgasrequest.py +71 -0
- compass_api_sdk/models/sponsorgasresponse.py +14 -0
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokenconfig.py +30 -0
- compass_api_sdk/models/tokenlistresponse.py +21 -0
- compass_api_sdk/models/tokenmarketdata.py +27 -0
- compass_api_sdk/models/tokenpermissions.py +20 -0
- 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/useroperation.py +33 -24
- compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
- compass_api_sdk/models/v1_aave_avg_rateop.py +15 -93
- compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +8 -86
- compass_api_sdk/models/v1_aave_rateop.py +8 -86
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -86
- compass_api_sdk/models/v1_aave_std_rateop.py +15 -93
- compass_api_sdk/models/v1_aave_token_priceop.py +8 -86
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +14 -92
- compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
- compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +48 -3
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +12 -168
- compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
- compass_api_sdk/models/v1_generic_allowanceop.py +12 -26
- compass_api_sdk/models/v1_generic_ensop.py +2 -2
- compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
- compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
- compass_api_sdk/models/v1_morpho_marketop.py +2 -2
- compass_api_sdk/models/v1_morpho_marketsop.py +10 -30
- compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
- compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
- compass_api_sdk/models/v1_morpho_vaultsop.py +6 -16
- compass_api_sdk/models/v1_pendle_marketop.py +8 -8
- compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
- compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
- compass_api_sdk/models/v1_sky_positionop.py +5 -6
- compass_api_sdk/models/v1_token_balanceop.py +12 -25
- compass_api_sdk/models/{v1_generic_supported_tokensop.py → v1_token_listop.py} +6 -6
- compass_api_sdk/models/v1_token_priceop.py +8 -9
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -6
- compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
- compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +12 -168
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +20 -176
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +20 -176
- compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
- compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
- compass_api_sdk/models/v2_cctp_mintop.py +47 -0
- compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
- compass_api_sdk/models/v2_earn_positionsop.py +56 -0
- compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
- compass_api_sdk/models/v2bundlerequest.py +33 -0
- compass_api_sdk/models/v2bundleresponse.py +67 -0
- compass_api_sdk/models/v2useroperation.py +37 -0
- compass_api_sdk/models/vault.py +14 -14
- compass_api_sdk/models/vaultdepositrequest.py +6 -1
- compass_api_sdk/models/vaultgetvaultresponse.py +5 -5
- compass_api_sdk/models/vaultinfo.py +129 -0
- compass_api_sdk/models/vaultsresponse.py +30 -0
- compass_api_sdk/models/vaultvenue.py +27 -0
- compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
- compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
- compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
- compass_api_sdk/models/wrapethrequest.py +6 -1
- compass_api_sdk/morpho.py +126 -78
- compass_api_sdk/pendle.py +68 -44
- compass_api_sdk/sdk.py +18 -11
- compass_api_sdk/sky.py +62 -38
- compass_api_sdk/smart_account.py +10 -2
- compass_api_sdk/swap.py +22 -22
- compass_api_sdk/{token_sdk.py → token.py} +511 -103
- compass_api_sdk/transaction_bundler.py +46 -16
- compass_api_sdk/uniswap_v3.py +152 -114
- compass_api_sdk/universal.py +44 -606
- compass_api_sdk/utils/annotations.py +32 -8
- compass_api_sdk/utils/forms.py +21 -10
- compass_api_sdk/utils/queryparams.py +14 -2
- compass_api_sdk/utils/retries.py +69 -5
- compass_api_sdk/utils/unmarshal_json_response.py +15 -1
- compass_api_sdk/wildcat.py +208 -0
- compass_api_sdk-2.0.21rc1.dist-info/METADATA +623 -0
- compass_api_sdk-2.0.21rc1.dist-info/RECORD +346 -0
- {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.0.21rc1.dist-info}/WHEEL +1 -1
- compass_api_sdk/models/aerodromeposition.py +0 -70
- 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_token_addressop.py +0 -109
- compass_api_sdk/models/vaultposition.py +0 -24
- compass_api_sdk-1.1.1.dist-info/METADATA +0 -592
- compass_api_sdk-1.1.1.dist-info/RECORD +0 -275
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
from .compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance import (
|
|
5
|
+
CompassAPIBackendV1ModelsPendleReadResponsePositionsTokenBalance,
|
|
6
|
+
CompassAPIBackendV1ModelsPendleReadResponsePositionsTokenBalanceTypedDict,
|
|
7
7
|
)
|
|
8
8
|
from .lpbalance import LpBalance, LpBalanceTypedDict
|
|
9
9
|
from compass_api_sdk.types import BaseModel
|
|
@@ -13,16 +13,16 @@ from typing_extensions import Annotated, TypedDict
|
|
|
13
13
|
|
|
14
14
|
class OpenPositionTypedDict(TypedDict):
|
|
15
15
|
market_id: str
|
|
16
|
-
pt:
|
|
17
|
-
yt:
|
|
16
|
+
pt: CompassAPIBackendV1ModelsPendleReadResponsePositionsTokenBalanceTypedDict
|
|
17
|
+
yt: CompassAPIBackendV1ModelsPendleReadResponsePositionsTokenBalanceTypedDict
|
|
18
18
|
lp: LpBalanceTypedDict
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class OpenPosition(BaseModel):
|
|
22
22
|
market_id: Annotated[str, pydantic.Field(alias="marketId")]
|
|
23
23
|
|
|
24
|
-
pt:
|
|
24
|
+
pt: CompassAPIBackendV1ModelsPendleReadResponsePositionsTokenBalance
|
|
25
25
|
|
|
26
|
-
yt:
|
|
26
|
+
yt: CompassAPIBackendV1ModelsPendleReadResponsePositionsTokenBalance
|
|
27
27
|
|
|
28
28
|
lp: LpBalance
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
from .compass_api_backend_v1_models_pendle_read_response_market_userposition import (
|
|
5
|
+
CompassAPIBackendV1ModelsPendleReadResponseMarketUserPosition,
|
|
6
|
+
CompassAPIBackendV1ModelsPendleReadResponseMarketUserPositionTypedDict,
|
|
7
7
|
)
|
|
8
8
|
from .markettokens import MarketTokens, MarketTokensTypedDict
|
|
9
9
|
from compass_api_sdk.types import (
|
|
@@ -27,7 +27,7 @@ class PendleGetMarketResponseTypedDict(TypedDict):
|
|
|
27
27
|
r"""The maturity date of the market. ISO 8601 format. UTC timezone."""
|
|
28
28
|
tokens: MarketTokensTypedDict
|
|
29
29
|
user_position: NotRequired[
|
|
30
|
-
Nullable[
|
|
30
|
+
Nullable[CompassAPIBackendV1ModelsPendleReadResponseMarketUserPositionTypedDict]
|
|
31
31
|
]
|
|
32
32
|
r"""The user's position in the market."""
|
|
33
33
|
|
|
@@ -45,7 +45,7 @@ class PendleGetMarketResponse(BaseModel):
|
|
|
45
45
|
tokens: MarketTokens
|
|
46
46
|
|
|
47
47
|
user_position: OptionalNullable[
|
|
48
|
-
|
|
48
|
+
CompassAPIBackendV1ModelsPendleReadResponseMarketUserPosition
|
|
49
49
|
] = UNSET
|
|
50
50
|
r"""The user's position in the market."""
|
|
51
51
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
@@ -18,18 +17,6 @@ class PendleManageLiquidityParamsAction(str, Enum):
|
|
|
18
17
|
WITHDRAW = "WITHDRAW"
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
PendleManageLiquidityParamsTokenTypedDict = TypeAliasType(
|
|
22
|
-
"PendleManageLiquidityParamsTokenTypedDict", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PendleManageLiquidityParamsToken = TypeAliasType(
|
|
28
|
-
"PendleManageLiquidityParamsToken", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
31
|
-
|
|
32
|
-
|
|
33
20
|
PendleManageLiquidityParamsAmountInTypedDict = TypeAliasType(
|
|
34
21
|
"PendleManageLiquidityParamsAmountInTypedDict", Union[float, str]
|
|
35
22
|
)
|
|
@@ -47,7 +34,7 @@ class PendleManageLiquidityParamsTypedDict(TypedDict):
|
|
|
47
34
|
r"""The address identifying which Pendle Market you would like to add liquidity to."""
|
|
48
35
|
action: PendleManageLiquidityParamsAction
|
|
49
36
|
r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
|
|
50
|
-
token:
|
|
37
|
+
token: str
|
|
51
38
|
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
52
39
|
amount_in: PendleManageLiquidityParamsAmountInTypedDict
|
|
53
40
|
r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
|
|
@@ -63,7 +50,7 @@ class PendleManageLiquidityParams(BaseModel):
|
|
|
63
50
|
action: PendleManageLiquidityParamsAction
|
|
64
51
|
r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
|
|
65
52
|
|
|
66
|
-
token:
|
|
53
|
+
token: str
|
|
67
54
|
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
68
55
|
|
|
69
56
|
amount_in: PendleManageLiquidityParamsAmountIn
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class PendleManageLiquidityRequestAction(str, Enum):
|
|
@@ -18,18 +17,6 @@ class PendleManageLiquidityRequestAction(str, Enum):
|
|
|
18
17
|
WITHDRAW = "WITHDRAW"
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
PendleManageLiquidityRequestTokenTypedDict = TypeAliasType(
|
|
22
|
-
"PendleManageLiquidityRequestTokenTypedDict", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PendleManageLiquidityRequestToken = TypeAliasType(
|
|
28
|
-
"PendleManageLiquidityRequestToken", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
31
|
-
|
|
32
|
-
|
|
33
20
|
PendleManageLiquidityRequestAmountInTypedDict = TypeAliasType(
|
|
34
21
|
"PendleManageLiquidityRequestAmountInTypedDict", Union[float, str]
|
|
35
22
|
)
|
|
@@ -53,7 +40,7 @@ class PendleManageLiquidityRequestTypedDict(TypedDict):
|
|
|
53
40
|
r"""The address identifying which Pendle Market you would like to add liquidity to."""
|
|
54
41
|
action: PendleManageLiquidityRequestAction
|
|
55
42
|
r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
|
|
56
|
-
token:
|
|
43
|
+
token: str
|
|
57
44
|
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
58
45
|
amount_in: PendleManageLiquidityRequestAmountInTypedDict
|
|
59
46
|
r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
|
|
@@ -63,6 +50,8 @@ class PendleManageLiquidityRequestTypedDict(TypedDict):
|
|
|
63
50
|
sender: str
|
|
64
51
|
r"""The address of the transaction sender."""
|
|
65
52
|
action_type: Literal["PENDLE_MANAGE_LIQUIDITY"]
|
|
53
|
+
estimate_gas: NotRequired[bool]
|
|
54
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
66
55
|
|
|
67
56
|
|
|
68
57
|
class PendleManageLiquidityRequest(BaseModel):
|
|
@@ -72,7 +61,7 @@ class PendleManageLiquidityRequest(BaseModel):
|
|
|
72
61
|
action: PendleManageLiquidityRequestAction
|
|
73
62
|
r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
|
|
74
63
|
|
|
75
|
-
token:
|
|
64
|
+
token: str
|
|
76
65
|
r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
|
|
77
66
|
|
|
78
67
|
amount_in: PendleManageLiquidityRequestAmountIn
|
|
@@ -93,3 +82,6 @@ class PendleManageLiquidityRequest(BaseModel):
|
|
|
93
82
|
],
|
|
94
83
|
pydantic.Field(alias="action_type"),
|
|
95
84
|
] = "PENDLE_MANAGE_LIQUIDITY"
|
|
85
|
+
|
|
86
|
+
estimate_gas: Optional[bool] = None
|
|
87
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -7,7 +7,7 @@ from enum import Enum
|
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal, Optional
|
|
10
|
-
from typing_extensions import Annotated, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class PendleRedeemYieldRequestChain(str, Enum):
|
|
@@ -23,6 +23,8 @@ class PendleRedeemYieldRequestTypedDict(TypedDict):
|
|
|
23
23
|
sender: str
|
|
24
24
|
r"""The address of the transaction sender."""
|
|
25
25
|
action_type: Literal["PENDLE_REDEEM_YIELD"]
|
|
26
|
+
estimate_gas: NotRequired[bool]
|
|
27
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
class PendleRedeemYieldRequest(BaseModel):
|
|
@@ -41,3 +43,6 @@ class PendleRedeemYieldRequest(BaseModel):
|
|
|
41
43
|
],
|
|
42
44
|
pydantic.Field(alias="action_type"),
|
|
43
45
|
] = "PENDLE_REDEEM_YIELD"
|
|
46
|
+
|
|
47
|
+
estimate_gas: Optional[bool] = None
|
|
48
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
@@ -18,18 +17,6 @@ class PendleTradePtParamsAction(str, Enum):
|
|
|
18
17
|
SELL = "SELL"
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
PendleTradePtParamsTokenTypedDict = TypeAliasType(
|
|
22
|
-
"PendleTradePtParamsTokenTypedDict", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PendleTradePtParamsToken = TypeAliasType(
|
|
28
|
-
"PendleTradePtParamsToken", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
31
|
-
|
|
32
|
-
|
|
33
20
|
PendleTradePtParamsAmountInTypedDict = TypeAliasType(
|
|
34
21
|
"PendleTradePtParamsAmountInTypedDict", Union[float, str]
|
|
35
22
|
)
|
|
@@ -47,7 +34,7 @@ class PendleTradePtParamsTypedDict(TypedDict):
|
|
|
47
34
|
r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
|
|
48
35
|
action: PendleTradePtParamsAction
|
|
49
36
|
r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
|
|
50
|
-
token:
|
|
37
|
+
token: str
|
|
51
38
|
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
52
39
|
amount_in: PendleTradePtParamsAmountInTypedDict
|
|
53
40
|
r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
|
|
@@ -63,7 +50,7 @@ class PendleTradePtParams(BaseModel):
|
|
|
63
50
|
action: PendleTradePtParamsAction
|
|
64
51
|
r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
|
|
65
52
|
|
|
66
|
-
token:
|
|
53
|
+
token: str
|
|
67
54
|
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
68
55
|
|
|
69
56
|
amount_in: PendleTradePtParamsAmountIn
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class PendleTradePtRequestAction(str, Enum):
|
|
@@ -18,18 +17,6 @@ class PendleTradePtRequestAction(str, Enum):
|
|
|
18
17
|
SELL = "SELL"
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
PendleTradePtRequestTokenTypedDict = TypeAliasType(
|
|
22
|
-
"PendleTradePtRequestTokenTypedDict", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PendleTradePtRequestToken = TypeAliasType(
|
|
28
|
-
"PendleTradePtRequestToken", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
31
|
-
|
|
32
|
-
|
|
33
20
|
PendleTradePtRequestAmountInTypedDict = TypeAliasType(
|
|
34
21
|
"PendleTradePtRequestAmountInTypedDict", Union[float, str]
|
|
35
22
|
)
|
|
@@ -53,7 +40,7 @@ class PendleTradePtRequestTypedDict(TypedDict):
|
|
|
53
40
|
r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
|
|
54
41
|
action: PendleTradePtRequestAction
|
|
55
42
|
r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
|
|
56
|
-
token:
|
|
43
|
+
token: str
|
|
57
44
|
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
58
45
|
amount_in: PendleTradePtRequestAmountInTypedDict
|
|
59
46
|
r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
|
|
@@ -63,6 +50,8 @@ class PendleTradePtRequestTypedDict(TypedDict):
|
|
|
63
50
|
sender: str
|
|
64
51
|
r"""The address of the transaction sender."""
|
|
65
52
|
action_type: Literal["PENDLE_TRADE_PT"]
|
|
53
|
+
estimate_gas: NotRequired[bool]
|
|
54
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
66
55
|
|
|
67
56
|
|
|
68
57
|
class PendleTradePtRequest(BaseModel):
|
|
@@ -72,7 +61,7 @@ class PendleTradePtRequest(BaseModel):
|
|
|
72
61
|
action: PendleTradePtRequestAction
|
|
73
62
|
r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
|
|
74
63
|
|
|
75
|
-
token:
|
|
64
|
+
token: str
|
|
76
65
|
r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
|
|
77
66
|
|
|
78
67
|
amount_in: PendleTradePtRequestAmountIn
|
|
@@ -93,3 +82,6 @@ class PendleTradePtRequest(BaseModel):
|
|
|
93
82
|
],
|
|
94
83
|
pydantic.Field(alias="action_type"),
|
|
95
84
|
] = "PENDLE_TRADE_PT"
|
|
85
|
+
|
|
86
|
+
estimate_gas: Optional[bool] = None
|
|
87
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
@@ -18,18 +17,6 @@ class PendleTradeYtParamsAction(str, Enum):
|
|
|
18
17
|
SELL = "SELL"
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
PendleTradeYtParamsTokenTypedDict = TypeAliasType(
|
|
22
|
-
"PendleTradeYtParamsTokenTypedDict", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PendleTradeYtParamsToken = TypeAliasType(
|
|
28
|
-
"PendleTradeYtParamsToken", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
31
|
-
|
|
32
|
-
|
|
33
20
|
PendleTradeYtParamsAmountInTypedDict = TypeAliasType(
|
|
34
21
|
"PendleTradeYtParamsAmountInTypedDict", Union[float, str]
|
|
35
22
|
)
|
|
@@ -47,7 +34,7 @@ class PendleTradeYtParamsTypedDict(TypedDict):
|
|
|
47
34
|
r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
|
|
48
35
|
action: PendleTradeYtParamsAction
|
|
49
36
|
r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
|
|
50
|
-
token:
|
|
37
|
+
token: str
|
|
51
38
|
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
52
39
|
amount_in: PendleTradeYtParamsAmountInTypedDict
|
|
53
40
|
r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
|
|
@@ -63,7 +50,7 @@ class PendleTradeYtParams(BaseModel):
|
|
|
63
50
|
action: PendleTradeYtParamsAction
|
|
64
51
|
r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
|
|
65
52
|
|
|
66
|
-
token:
|
|
53
|
+
token: str
|
|
67
54
|
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
68
55
|
|
|
69
56
|
amount_in: PendleTradeYtParamsAmountIn
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class PendleTradeYtRequestAction(str, Enum):
|
|
@@ -18,18 +17,6 @@ class PendleTradeYtRequestAction(str, Enum):
|
|
|
18
17
|
SELL = "SELL"
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
PendleTradeYtRequestTokenTypedDict = TypeAliasType(
|
|
22
|
-
"PendleTradeYtRequestTokenTypedDict", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PendleTradeYtRequestToken = TypeAliasType(
|
|
28
|
-
"PendleTradeYtRequestToken", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
31
|
-
|
|
32
|
-
|
|
33
20
|
PendleTradeYtRequestAmountInTypedDict = TypeAliasType(
|
|
34
21
|
"PendleTradeYtRequestAmountInTypedDict", Union[float, str]
|
|
35
22
|
)
|
|
@@ -53,7 +40,7 @@ class PendleTradeYtRequestTypedDict(TypedDict):
|
|
|
53
40
|
r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
|
|
54
41
|
action: PendleTradeYtRequestAction
|
|
55
42
|
r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
|
|
56
|
-
token:
|
|
43
|
+
token: str
|
|
57
44
|
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
58
45
|
amount_in: PendleTradeYtRequestAmountInTypedDict
|
|
59
46
|
r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
|
|
@@ -63,6 +50,8 @@ class PendleTradeYtRequestTypedDict(TypedDict):
|
|
|
63
50
|
sender: str
|
|
64
51
|
r"""The address of the transaction sender."""
|
|
65
52
|
action_type: Literal["PENDLE_TRADE_YT"]
|
|
53
|
+
estimate_gas: NotRequired[bool]
|
|
54
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
66
55
|
|
|
67
56
|
|
|
68
57
|
class PendleTradeYtRequest(BaseModel):
|
|
@@ -72,7 +61,7 @@ class PendleTradeYtRequest(BaseModel):
|
|
|
72
61
|
action: PendleTradeYtRequestAction
|
|
73
62
|
r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
|
|
74
63
|
|
|
75
|
-
token:
|
|
64
|
+
token: str
|
|
76
65
|
r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
|
|
77
66
|
|
|
78
67
|
amount_in: PendleTradeYtRequestAmountIn
|
|
@@ -93,3 +82,6 @@ class PendleTradeYtRequest(BaseModel):
|
|
|
93
82
|
],
|
|
94
83
|
pydantic.Field(alias="action_type"),
|
|
95
84
|
] = "PENDLE_TRADE_YT"
|
|
85
|
+
|
|
86
|
+
estimate_gas: Optional[bool] = None
|
|
87
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .permittransferfrommessage import (
|
|
13
|
+
PermitTransferFromMessage,
|
|
14
|
+
PermitTransferFromMessageTypedDict,
|
|
15
|
+
)
|
|
16
|
+
from compass_api_sdk.types import BaseModel
|
|
17
|
+
from compass_api_sdk.utils import validate_const
|
|
18
|
+
import pydantic
|
|
19
|
+
from pydantic.functional_validators import AfterValidator
|
|
20
|
+
from typing import Literal, Optional
|
|
21
|
+
from typing_extensions import Annotated, TypedDict
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Permit2TypedDataInputTypedDict(TypedDict):
|
|
25
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict
|
|
26
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict
|
|
27
|
+
message: PermitTransferFromMessageTypedDict
|
|
28
|
+
primary_type: Literal["PermitTransferFrom"]
|
|
29
|
+
r"""Root type for signing"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class Permit2TypedDataInput(BaseModel):
|
|
33
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
|
|
34
|
+
|
|
35
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
|
|
36
|
+
|
|
37
|
+
message: PermitTransferFromMessage
|
|
38
|
+
|
|
39
|
+
PRIMARY_TYPE: Annotated[
|
|
40
|
+
Annotated[
|
|
41
|
+
Optional[Literal["PermitTransferFrom"]],
|
|
42
|
+
AfterValidator(validate_const("PermitTransferFrom")),
|
|
43
|
+
],
|
|
44
|
+
pydantic.Field(alias="primaryType"),
|
|
45
|
+
] = "PermitTransferFrom"
|
|
46
|
+
r"""Root type for signing"""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .permittransferfrommessage import (
|
|
13
|
+
PermitTransferFromMessage,
|
|
14
|
+
PermitTransferFromMessageTypedDict,
|
|
15
|
+
)
|
|
16
|
+
from compass_api_sdk.types import BaseModel
|
|
17
|
+
from compass_api_sdk.utils import validate_const
|
|
18
|
+
import pydantic
|
|
19
|
+
from pydantic.functional_validators import AfterValidator
|
|
20
|
+
from typing import Literal, Optional
|
|
21
|
+
from typing_extensions import Annotated, TypedDict
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Permit2TypedDataOutputTypedDict(TypedDict):
|
|
25
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict
|
|
26
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict
|
|
27
|
+
message: PermitTransferFromMessageTypedDict
|
|
28
|
+
primary_type: Literal["PermitTransferFrom"]
|
|
29
|
+
r"""Root type for signing"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class Permit2TypedDataOutput(BaseModel):
|
|
33
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
|
|
34
|
+
|
|
35
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
|
|
36
|
+
|
|
37
|
+
message: PermitTransferFromMessage
|
|
38
|
+
|
|
39
|
+
PRIMARY_TYPE: Annotated[
|
|
40
|
+
Annotated[
|
|
41
|
+
Optional[Literal["PermitTransferFrom"]],
|
|
42
|
+
AfterValidator(validate_const("PermitTransferFrom")),
|
|
43
|
+
],
|
|
44
|
+
pydantic.Field(alias="primaryType"),
|
|
45
|
+
] = "PermitTransferFrom"
|
|
46
|
+
r"""Root type for signing"""
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PermitFieldTypedDict(TypedDict):
|
|
9
|
+
r"""A field in the Permit type definition."""
|
|
10
|
+
|
|
11
|
+
name: str
|
|
12
|
+
type: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class PermitField(BaseModel):
|
|
16
|
+
r"""A field in the Permit type definition."""
|
|
17
|
+
|
|
18
|
+
name: str
|
|
19
|
+
|
|
20
|
+
type: str
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PermitMessageTypedDict(TypedDict):
|
|
9
|
+
r"""The message data for an ERC-20 Permit."""
|
|
10
|
+
|
|
11
|
+
owner: str
|
|
12
|
+
r"""Token owner address"""
|
|
13
|
+
spender: str
|
|
14
|
+
r"""Address authorized to spend tokens"""
|
|
15
|
+
value: str
|
|
16
|
+
r"""Amount to approve (as string)"""
|
|
17
|
+
nonce: str
|
|
18
|
+
r"""Current permit nonce for the owner"""
|
|
19
|
+
deadline: str
|
|
20
|
+
r"""Permit expiry timestamp"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class PermitMessage(BaseModel):
|
|
24
|
+
r"""The message data for an ERC-20 Permit."""
|
|
25
|
+
|
|
26
|
+
owner: str
|
|
27
|
+
r"""Token owner address"""
|
|
28
|
+
|
|
29
|
+
spender: str
|
|
30
|
+
r"""Address authorized to spend tokens"""
|
|
31
|
+
|
|
32
|
+
value: str
|
|
33
|
+
r"""Amount to approve (as string)"""
|
|
34
|
+
|
|
35
|
+
nonce: str
|
|
36
|
+
r"""Current permit nonce for the owner"""
|
|
37
|
+
|
|
38
|
+
deadline: str
|
|
39
|
+
r"""Permit expiry timestamp"""
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .tokenpermissions import TokenPermissions, TokenPermissionsTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PermitTransferFromMessageTypedDict(TypedDict):
|
|
10
|
+
permitted: TokenPermissionsTypedDict
|
|
11
|
+
spender: str
|
|
12
|
+
r"""Address allowed to transfer (caller of permitTransferFrom)"""
|
|
13
|
+
nonce: int
|
|
14
|
+
r"""Unique nonce to prevent replay"""
|
|
15
|
+
deadline: int
|
|
16
|
+
r"""Unix timestamp after which signature expires"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class PermitTransferFromMessage(BaseModel):
|
|
20
|
+
permitted: TokenPermissions
|
|
21
|
+
|
|
22
|
+
spender: str
|
|
23
|
+
r"""Address allowed to transfer (caller of permitTransferFrom)"""
|
|
24
|
+
|
|
25
|
+
nonce: int
|
|
26
|
+
r"""Unique nonce to prevent replay"""
|
|
27
|
+
|
|
28
|
+
deadline: int
|
|
29
|
+
r"""Unix timestamp after which signature expires"""
|