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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .batchedsafeoperationsresponse_input import (
|
|
5
|
+
BatchedSafeOperationsResponseInput,
|
|
6
|
+
BatchedSafeOperationsResponseInputTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .chain import Chain
|
|
9
|
+
from .permit2typeddata_input import (
|
|
10
|
+
Permit2TypedDataInput,
|
|
11
|
+
Permit2TypedDataInputTypedDict,
|
|
12
|
+
)
|
|
13
|
+
from .permittypeddataresponse_input import (
|
|
14
|
+
PermitTypedDataResponseInput,
|
|
15
|
+
PermitTypedDataResponseInputTypedDict,
|
|
16
|
+
)
|
|
17
|
+
from compass_api_sdk.types import BaseModel
|
|
18
|
+
from typing import Union
|
|
19
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
SponsorGasRequestEip712TypedDict = TypeAliasType(
|
|
23
|
+
"SponsorGasRequestEip712TypedDict",
|
|
24
|
+
Union[
|
|
25
|
+
BatchedSafeOperationsResponseInputTypedDict,
|
|
26
|
+
PermitTypedDataResponseInputTypedDict,
|
|
27
|
+
Permit2TypedDataInputTypedDict,
|
|
28
|
+
],
|
|
29
|
+
)
|
|
30
|
+
r"""The EIP-712 typed data that was signed."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
SponsorGasRequestEip712 = TypeAliasType(
|
|
34
|
+
"SponsorGasRequestEip712",
|
|
35
|
+
Union[
|
|
36
|
+
BatchedSafeOperationsResponseInput,
|
|
37
|
+
PermitTypedDataResponseInput,
|
|
38
|
+
Permit2TypedDataInput,
|
|
39
|
+
],
|
|
40
|
+
)
|
|
41
|
+
r"""The EIP-712 typed data that was signed."""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SponsorGasRequestTypedDict(TypedDict):
|
|
45
|
+
owner: str
|
|
46
|
+
r"""The owner of the smart account's address."""
|
|
47
|
+
chain: Chain
|
|
48
|
+
r"""The chain to use."""
|
|
49
|
+
eip_712: SponsorGasRequestEip712TypedDict
|
|
50
|
+
r"""The EIP-712 typed data that was signed."""
|
|
51
|
+
signature: str
|
|
52
|
+
r"""The EIP-712 signed typed data signature."""
|
|
53
|
+
sender: str
|
|
54
|
+
r"""The address of the wallet which will send the transaction."""
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class SponsorGasRequest(BaseModel):
|
|
58
|
+
owner: str
|
|
59
|
+
r"""The owner of the smart account's address."""
|
|
60
|
+
|
|
61
|
+
chain: Chain
|
|
62
|
+
r"""The chain to use."""
|
|
63
|
+
|
|
64
|
+
eip_712: SponsorGasRequestEip712
|
|
65
|
+
r"""The EIP-712 typed data that was signed."""
|
|
66
|
+
|
|
67
|
+
signature: str
|
|
68
|
+
r"""The EIP-712 signed typed data signature."""
|
|
69
|
+
|
|
70
|
+
sender: str
|
|
71
|
+
r"""The address of the wallet which will send the transaction."""
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SponsorGasResponseTypedDict(TypedDict):
|
|
10
|
+
transaction: UnsignedTransactionTypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SponsorGasResponse(BaseModel):
|
|
14
|
+
transaction: UnsignedTransaction
|
|
@@ -1,18 +1,8 @@
|
|
|
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
|
-
from
|
|
7
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
TokenSymbolTypedDict = TypeAliasType("TokenSymbolTypedDict", Union[TokenEnum, str])
|
|
11
|
-
r"""Symbol of the token."""
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
TokenSymbol = TypeAliasType("TokenSymbol", Union[TokenEnum, str])
|
|
15
|
-
r"""Symbol of the token."""
|
|
5
|
+
from typing_extensions import TypedDict
|
|
16
6
|
|
|
17
7
|
|
|
18
8
|
class TokenBalanceResponseTypedDict(TypedDict):
|
|
@@ -22,8 +12,8 @@ class TokenBalanceResponseTypedDict(TypedDict):
|
|
|
22
12
|
r"""Amount of tokens a particular address holds"""
|
|
23
13
|
decimals: int
|
|
24
14
|
r"""Number of decimals of the token"""
|
|
25
|
-
token_symbol:
|
|
26
|
-
r"""Symbol of the token
|
|
15
|
+
token_symbol: str
|
|
16
|
+
r"""Symbol of the token"""
|
|
27
17
|
token_address: str
|
|
28
18
|
r"""Address of the token"""
|
|
29
19
|
|
|
@@ -37,8 +27,8 @@ class TokenBalanceResponse(BaseModel):
|
|
|
37
27
|
decimals: int
|
|
38
28
|
r"""Number of decimals of the token"""
|
|
39
29
|
|
|
40
|
-
token_symbol:
|
|
41
|
-
r"""Symbol of the token
|
|
30
|
+
token_symbol: str
|
|
31
|
+
r"""Symbol of the token"""
|
|
42
32
|
|
|
43
33
|
token_address: str
|
|
44
34
|
r"""Address of the token"""
|
|
@@ -0,0 +1,30 @@
|
|
|
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 TokenConfigTypedDict(TypedDict):
|
|
9
|
+
address: str
|
|
10
|
+
r"""Deployed address of the token"""
|
|
11
|
+
decimals: int
|
|
12
|
+
r"""Token decimals"""
|
|
13
|
+
name: str
|
|
14
|
+
r"""Name of the token"""
|
|
15
|
+
symbol: str
|
|
16
|
+
r"""Token symbol"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class TokenConfig(BaseModel):
|
|
20
|
+
address: str
|
|
21
|
+
r"""Deployed address of the token"""
|
|
22
|
+
|
|
23
|
+
decimals: int
|
|
24
|
+
r"""Token decimals"""
|
|
25
|
+
|
|
26
|
+
name: str
|
|
27
|
+
r"""Name of the token"""
|
|
28
|
+
|
|
29
|
+
symbol: str
|
|
30
|
+
r"""Token symbol"""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .tokenconfig import TokenConfig, TokenConfigTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing import List
|
|
7
|
+
from typing_extensions import TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TokenListResponseTypedDict(TypedDict):
|
|
11
|
+
r"""Response model for token list."""
|
|
12
|
+
|
|
13
|
+
tokens: List[TokenConfigTypedDict]
|
|
14
|
+
r"""List of known tokens"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class TokenListResponse(BaseModel):
|
|
18
|
+
r"""Response model for token list."""
|
|
19
|
+
|
|
20
|
+
tokens: List[TokenConfig]
|
|
21
|
+
r"""List of known tokens"""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chainmarketinfo import ChainMarketInfo, ChainMarketInfoTypedDict
|
|
5
|
+
from .maxsupplyapyinfo import MaxSupplyApyInfo, MaxSupplyApyInfoTypedDict
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
|
+
from typing import Dict
|
|
8
|
+
from typing_extensions import TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TokenMarketDataTypedDict(TypedDict):
|
|
12
|
+
r"""Market data for a single token across all chains."""
|
|
13
|
+
|
|
14
|
+
chains: Dict[str, ChainMarketInfoTypedDict]
|
|
15
|
+
r"""Market data per chain. Keys are chain names (ethereum, base, arbitrum)."""
|
|
16
|
+
max_supply_apy: MaxSupplyApyInfoTypedDict
|
|
17
|
+
r"""Information about the chain with the highest supply APY for a token."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TokenMarketData(BaseModel):
|
|
21
|
+
r"""Market data for a single token across all chains."""
|
|
22
|
+
|
|
23
|
+
chains: Dict[str, ChainMarketInfo]
|
|
24
|
+
r"""Market data per chain. Keys are chain names (ethereum, base, arbitrum)."""
|
|
25
|
+
|
|
26
|
+
max_supply_apy: MaxSupplyApyInfo
|
|
27
|
+
r"""Information about the chain with the highest supply APY for a token."""
|
|
@@ -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 TokenPermissionsTypedDict(TypedDict):
|
|
9
|
+
token: str
|
|
10
|
+
r"""ERC-20 token address"""
|
|
11
|
+
amount: int
|
|
12
|
+
r"""Maximum amount allowed to transfer"""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class TokenPermissions(BaseModel):
|
|
16
|
+
token: str
|
|
17
|
+
r"""ERC-20 token address"""
|
|
18
|
+
|
|
19
|
+
amount: int
|
|
20
|
+
r"""Maximum amount allowed to transfer"""
|
|
@@ -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
|
import pydantic
|
|
@@ -10,18 +9,6 @@ from typing import Literal, Optional, Union
|
|
|
10
9
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
TokenTransferParamsTokenTypedDict = TypeAliasType(
|
|
14
|
-
"TokenTransferParamsTokenTypedDict", Union[TokenEnum, str]
|
|
15
|
-
)
|
|
16
|
-
r"""The symbol or address of the token to transfer."""
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
TokenTransferParamsToken = TypeAliasType(
|
|
20
|
-
"TokenTransferParamsToken", Union[TokenEnum, str]
|
|
21
|
-
)
|
|
22
|
-
r"""The symbol or address of the token to transfer."""
|
|
23
|
-
|
|
24
|
-
|
|
25
12
|
TokenTransferParamsAmountTypedDict = TypeAliasType(
|
|
26
13
|
"TokenTransferParamsAmountTypedDict", Union[float, str]
|
|
27
14
|
)
|
|
@@ -39,7 +26,7 @@ class TokenTransferParamsTypedDict(TypedDict):
|
|
|
39
26
|
|
|
40
27
|
to: str
|
|
41
28
|
r"""The recipient of the tokens."""
|
|
42
|
-
token:
|
|
29
|
+
token: str
|
|
43
30
|
r"""The symbol or address of the token to transfer."""
|
|
44
31
|
amount: TokenTransferParamsAmountTypedDict
|
|
45
32
|
r"""Amount of token to transfer"""
|
|
@@ -52,7 +39,7 @@ class TokenTransferParams(BaseModel):
|
|
|
52
39
|
to: str
|
|
53
40
|
r"""The recipient of the tokens."""
|
|
54
41
|
|
|
55
|
-
token:
|
|
42
|
+
token: str
|
|
56
43
|
r"""The symbol or address of the token to transfer."""
|
|
57
44
|
|
|
58
45
|
amount: TokenTransferParamsAmount
|
|
@@ -1,26 +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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
TokenTransferRequestTokenTypedDict = TypeAliasType(
|
|
15
|
-
"TokenTransferRequestTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token to transfer."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
TokenTransferRequestToken = TypeAliasType(
|
|
21
|
-
"TokenTransferRequestToken", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token to transfer."""
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
24
11
|
|
|
25
12
|
|
|
26
13
|
TokenTransferRequestAmountTypedDict = TypeAliasType(
|
|
@@ -46,7 +33,7 @@ class TokenTransferRequestTypedDict(TypedDict):
|
|
|
46
33
|
|
|
47
34
|
to: str
|
|
48
35
|
r"""The recipient of the tokens."""
|
|
49
|
-
token:
|
|
36
|
+
token: str
|
|
50
37
|
r"""The symbol or address of the token to transfer."""
|
|
51
38
|
amount: TokenTransferRequestAmountTypedDict
|
|
52
39
|
r"""Amount of token to transfer"""
|
|
@@ -54,6 +41,8 @@ class TokenTransferRequestTypedDict(TypedDict):
|
|
|
54
41
|
sender: str
|
|
55
42
|
r"""The address of the transaction sender."""
|
|
56
43
|
action_type: Literal["TOKEN_TRANSFER"]
|
|
44
|
+
estimate_gas: NotRequired[bool]
|
|
45
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
57
46
|
|
|
58
47
|
|
|
59
48
|
class TokenTransferRequest(BaseModel):
|
|
@@ -62,7 +51,7 @@ class TokenTransferRequest(BaseModel):
|
|
|
62
51
|
to: str
|
|
63
52
|
r"""The recipient of the tokens."""
|
|
64
53
|
|
|
65
|
-
token:
|
|
54
|
+
token: str
|
|
66
55
|
r"""The symbol or address of the token to transfer."""
|
|
67
56
|
|
|
68
57
|
amount: TokenTransferRequestAmount
|
|
@@ -80,3 +69,6 @@ class TokenTransferRequest(BaseModel):
|
|
|
80
69
|
],
|
|
81
70
|
pydantic.Field(alias="action_type"),
|
|
82
71
|
] = "TOKEN_TRANSFER"
|
|
72
|
+
|
|
73
|
+
estimate_gas: Optional[bool] = None
|
|
74
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
8
7
|
import pydantic
|
|
@@ -11,30 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
UniswapBuyExactlyParamsTokenInTypedDict = TypeAliasType(
|
|
15
|
-
"UniswapBuyExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token to swap from."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
UniswapBuyExactlyParamsTokenIn = TypeAliasType(
|
|
21
|
-
"UniswapBuyExactlyParamsTokenIn", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token to swap from."""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
UniswapBuyExactlyParamsTokenOutTypedDict = TypeAliasType(
|
|
27
|
-
"UniswapBuyExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
|
|
28
|
-
)
|
|
29
|
-
r"""The symbol or address of the token to swap to."""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
UniswapBuyExactlyParamsTokenOut = TypeAliasType(
|
|
33
|
-
"UniswapBuyExactlyParamsTokenOut", Union[TokenEnum, str]
|
|
34
|
-
)
|
|
35
|
-
r"""The symbol or address of the token to swap to."""
|
|
36
|
-
|
|
37
|
-
|
|
38
13
|
UniswapBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
|
|
39
14
|
"UniswapBuyExactlyParamsAmountOutTypedDict", Union[float, str]
|
|
40
15
|
)
|
|
@@ -48,10 +23,10 @@ r"""The amount of 'token_out' to buy."""
|
|
|
48
23
|
|
|
49
24
|
|
|
50
25
|
class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
51
|
-
token_in:
|
|
52
|
-
r"""The symbol or address of the token to swap from
|
|
53
|
-
token_out:
|
|
54
|
-
r"""The symbol or address of the token to swap to
|
|
26
|
+
token_in: str
|
|
27
|
+
r"""The symbol or address of the token to swap from.."""
|
|
28
|
+
token_out: str
|
|
29
|
+
r"""The symbol or address of the token to swap to.."""
|
|
55
30
|
fee: FeeEnum
|
|
56
31
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
57
32
|
|
|
@@ -65,11 +40,11 @@ class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
|
65
40
|
|
|
66
41
|
|
|
67
42
|
class UniswapBuyExactlyParams(BaseModel):
|
|
68
|
-
token_in:
|
|
69
|
-
r"""The symbol or address of the token to swap from
|
|
43
|
+
token_in: str
|
|
44
|
+
r"""The symbol or address of the token to swap from.."""
|
|
70
45
|
|
|
71
|
-
token_out:
|
|
72
|
-
r"""The symbol or address of the token to swap to
|
|
46
|
+
token_out: str
|
|
47
|
+
r"""The symbol or address of the token to swap to.."""
|
|
73
48
|
|
|
74
49
|
fee: FeeEnum
|
|
75
50
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -2,38 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
8
7
|
from enum import Enum
|
|
9
8
|
import pydantic
|
|
10
9
|
from pydantic.functional_validators import AfterValidator
|
|
11
10
|
from typing import Literal, Optional, Union
|
|
12
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
UniswapBuyExactlyRequestTokenInTypedDict = TypeAliasType(
|
|
16
|
-
"UniswapBuyExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
|
|
17
|
-
)
|
|
18
|
-
r"""The symbol or address of the token to swap from."""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
UniswapBuyExactlyRequestTokenIn = TypeAliasType(
|
|
22
|
-
"UniswapBuyExactlyRequestTokenIn", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""The symbol or address of the token to swap from."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
UniswapBuyExactlyRequestTokenOutTypedDict = TypeAliasType(
|
|
28
|
-
"UniswapBuyExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The symbol or address of the token to swap to."""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
UniswapBuyExactlyRequestTokenOut = TypeAliasType(
|
|
34
|
-
"UniswapBuyExactlyRequestTokenOut", Union[TokenEnum, str]
|
|
35
|
-
)
|
|
36
|
-
r"""The symbol or address of the token to swap to."""
|
|
11
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
37
12
|
|
|
38
13
|
|
|
39
14
|
UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
@@ -57,10 +32,10 @@ class UniswapBuyExactlyRequestChain(str, Enum):
|
|
|
57
32
|
class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
58
33
|
r"""Request model for buying an exact amount of tokens."""
|
|
59
34
|
|
|
60
|
-
token_in:
|
|
61
|
-
r"""The symbol or address of the token to swap from
|
|
62
|
-
token_out:
|
|
63
|
-
r"""The symbol or address of the token to swap to
|
|
35
|
+
token_in: str
|
|
36
|
+
r"""The symbol or address of the token to swap from.."""
|
|
37
|
+
token_out: str
|
|
38
|
+
r"""The symbol or address of the token to swap to.."""
|
|
64
39
|
fee: FeeEnum
|
|
65
40
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
66
41
|
|
|
@@ -74,16 +49,18 @@ class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
|
74
49
|
sender: str
|
|
75
50
|
r"""The address of the transaction sender."""
|
|
76
51
|
action_type: Literal["UNISWAP_BUY_EXACTLY"]
|
|
52
|
+
estimate_gas: NotRequired[bool]
|
|
53
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
77
54
|
|
|
78
55
|
|
|
79
56
|
class UniswapBuyExactlyRequest(BaseModel):
|
|
80
57
|
r"""Request model for buying an exact amount of tokens."""
|
|
81
58
|
|
|
82
|
-
token_in:
|
|
83
|
-
r"""The symbol or address of the token to swap from
|
|
59
|
+
token_in: str
|
|
60
|
+
r"""The symbol or address of the token to swap from.."""
|
|
84
61
|
|
|
85
|
-
token_out:
|
|
86
|
-
r"""The symbol or address of the token to swap to
|
|
62
|
+
token_out: str
|
|
63
|
+
r"""The symbol or address of the token to swap to.."""
|
|
87
64
|
|
|
88
65
|
fee: FeeEnum
|
|
89
66
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -109,3 +86,6 @@ class UniswapBuyExactlyRequest(BaseModel):
|
|
|
109
86
|
],
|
|
110
87
|
pydantic.Field(alias="action_type"),
|
|
111
88
|
] = "UNISWAP_BUY_EXACTLY"
|
|
89
|
+
|
|
90
|
+
estimate_gas: Optional[bool] = None
|
|
91
|
+
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, Union
|
|
10
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
|
|
@@ -81,6 +81,8 @@ class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
81
81
|
sender: str
|
|
82
82
|
r"""The address of the transaction sender."""
|
|
83
83
|
action_type: Literal["UNISWAP_ADD_LIQUIDITY"]
|
|
84
|
+
estimate_gas: NotRequired[bool]
|
|
85
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
|
|
@@ -113,3 +115,6 @@ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
113
115
|
],
|
|
114
116
|
pydantic.Field(alias="action_type"),
|
|
115
117
|
] = "UNISWAP_ADD_LIQUIDITY"
|
|
118
|
+
|
|
119
|
+
estimate_gas: Optional[bool] = None
|
|
120
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -67,18 +66,10 @@ r"""The minimum amount of the second token to deposit"""
|
|
|
67
66
|
|
|
68
67
|
|
|
69
68
|
class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
70
|
-
token0:
|
|
71
|
-
r"""
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
endpoints' documentation where per chain tokens are presented.
|
|
75
|
-
"""
|
|
76
|
-
token1: TokenEnum
|
|
77
|
-
r"""A class representing the token.
|
|
78
|
-
|
|
79
|
-
This class is used to represent the token in the system. Notice individual
|
|
80
|
-
endpoints' documentation where per chain tokens are presented.
|
|
81
|
-
"""
|
|
69
|
+
token0: str
|
|
70
|
+
r"""The symbol or address of the first token in the pair."""
|
|
71
|
+
token1: str
|
|
72
|
+
r"""The symbol or address of the second token in the pair."""
|
|
82
73
|
fee: FeeEnum
|
|
83
74
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
84
75
|
|
|
@@ -102,19 +93,11 @@ class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
102
93
|
|
|
103
94
|
|
|
104
95
|
class UniswapMintLiquidityProvisionParams(BaseModel):
|
|
105
|
-
token0:
|
|
106
|
-
r"""
|
|
96
|
+
token0: str
|
|
97
|
+
r"""The symbol or address of the first token in the pair."""
|
|
107
98
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"""
|
|
111
|
-
|
|
112
|
-
token1: TokenEnum
|
|
113
|
-
r"""A class representing the token.
|
|
114
|
-
|
|
115
|
-
This class is used to represent the token in the system. Notice individual
|
|
116
|
-
endpoints' documentation where per chain tokens are presented.
|
|
117
|
-
"""
|
|
99
|
+
token1: str
|
|
100
|
+
r"""The symbol or address of the second token in the pair."""
|
|
118
101
|
|
|
119
102
|
fee: FeeEnum
|
|
120
103
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -76,18 +75,10 @@ class UniswapMintLiquidityProvisionRequestChain(str, Enum):
|
|
|
76
75
|
class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
77
76
|
r"""Request model for minting a new liquidity position."""
|
|
78
77
|
|
|
79
|
-
token0:
|
|
80
|
-
r"""
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
endpoints' documentation where per chain tokens are presented.
|
|
84
|
-
"""
|
|
85
|
-
token1: TokenEnum
|
|
86
|
-
r"""A class representing the token.
|
|
87
|
-
|
|
88
|
-
This class is used to represent the token in the system. Notice individual
|
|
89
|
-
endpoints' documentation where per chain tokens are presented.
|
|
90
|
-
"""
|
|
78
|
+
token0: str
|
|
79
|
+
r"""The symbol or address of the first token in the pair."""
|
|
80
|
+
token1: str
|
|
81
|
+
r"""The symbol or address of the second token in the pair."""
|
|
91
82
|
fee: FeeEnum
|
|
92
83
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
93
84
|
|
|
@@ -111,24 +102,18 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
111
102
|
action_type: Literal["UNISWAP_MINT_LIQUIDITY_PROVISION"]
|
|
112
103
|
recipient: NotRequired[Nullable[str]]
|
|
113
104
|
r"""The address that will receive the LP tokens"""
|
|
105
|
+
estimate_gas: NotRequired[bool]
|
|
106
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
114
107
|
|
|
115
108
|
|
|
116
109
|
class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
117
110
|
r"""Request model for minting a new liquidity position."""
|
|
118
111
|
|
|
119
|
-
token0:
|
|
120
|
-
r"""
|
|
112
|
+
token0: str
|
|
113
|
+
r"""The symbol or address of the first token in the pair."""
|
|
121
114
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"""
|
|
125
|
-
|
|
126
|
-
token1: TokenEnum
|
|
127
|
-
r"""A class representing the token.
|
|
128
|
-
|
|
129
|
-
This class is used to represent the token in the system. Notice individual
|
|
130
|
-
endpoints' documentation where per chain tokens are presented.
|
|
131
|
-
"""
|
|
115
|
+
token1: str
|
|
116
|
+
r"""The symbol or address of the second token in the pair."""
|
|
132
117
|
|
|
133
118
|
fee: FeeEnum
|
|
134
119
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -170,9 +155,12 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
|
170
155
|
recipient: OptionalNullable[str] = UNSET
|
|
171
156
|
r"""The address that will receive the LP tokens"""
|
|
172
157
|
|
|
158
|
+
estimate_gas: Optional[bool] = None
|
|
159
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
160
|
+
|
|
173
161
|
@model_serializer(mode="wrap")
|
|
174
162
|
def serialize_model(self, handler):
|
|
175
|
-
optional_fields = ["action_type", "recipient"]
|
|
163
|
+
optional_fields = ["action_type", "recipient", "estimate_gas"]
|
|
176
164
|
nullable_fields = ["recipient"]
|
|
177
165
|
null_default_fields = []
|
|
178
166
|
|