compass_api_sdk 0.1.7__py3-none-any.whl → 0.1.8__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/_hooks/registration.py +13 -0
- {compassapisdk → compass_api_sdk}/_hooks/sdkhooks.py +1 -1
- {compassapisdk → compass_api_sdk}/_hooks/types.py +1 -1
- {compassapisdk → compass_api_sdk}/_version.py +2 -2
- {compassapisdk → compass_api_sdk}/aave_v3.py +229 -3
- {compassapisdk → compass_api_sdk}/aerodrome_slipstream.py +3 -3
- {compassapisdk → compass_api_sdk}/basesdk.py +3 -3
- {compassapisdk → compass_api_sdk}/errors/httpvalidationerror.py +3 -3
- {compassapisdk → compass_api_sdk}/models/__init__.py +60 -24
- compass_api_sdk/models/aave_historical_transactionsop.py +49 -0
- {compassapisdk → compass_api_sdk}/models/aave_liquidity_changeop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aave_token_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aave_user_position_per_tokenop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aave_user_position_summaryop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aaveborrowparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaveborrowrequest.py +1 -1
- compass_api_sdk/models/aavehistoricaltransactionbase.py +113 -0
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +31 -0
- {compassapisdk → compass_api_sdk}/models/aaveliquiditychangeresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaverepayparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaverepayrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavesupplyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavesupplyrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavetokenpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavewithdrawparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aavewithdrawrequest.py +1 -1
- compass_api_sdk/models/action.py +14 -0
- {compassapisdk → compass_api_sdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aerodrome_slipstream_pool_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/aerodromeaddliquidityethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeaddliquidityparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromelppositionsresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeposition.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeremoveliquidityethrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeremoveliquidityrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeswapethfortokenparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeswaptokenforethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/aerodromeswaptokensparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/allowanceinforesponse.py +1 -1
- compass_api_sdk/models/borrow.py +33 -0
- {compassapisdk → compass_api_sdk}/models/chain.py +3 -0
- {compassapisdk → compass_api_sdk}/models/chaininfo.py +1 -1
- compass_api_sdk/models/collateralreserve.py +16 -0
- {compassapisdk → compass_api_sdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compassapisdk → compass_api_sdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- {compassapisdk → compass_api_sdk}/models/ensnameinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/generic_allowanceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_ensop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_portfolioop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_supported_tokensop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/generic_visualize_portfolioop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/image.py +1 -1
- {compassapisdk → compass_api_sdk}/models/increaseallowanceanyparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/increaseallowanceparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/increaseallowancerequest.py +1 -1
- compass_api_sdk/models/liquidationcall.py +37 -0
- {compassapisdk → compass_api_sdk}/models/marketstate.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morpho_market_positionop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morpho_marketsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morpho_vault_positionop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morpho_vaultsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/morphoborrowrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphodepositrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphogetmarketsresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphogetvaultsresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphomarket.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphorepayrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphosetvaultallowancerequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphosupplycollateralrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphovault.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphowithdrawcollateralrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/morphowithdrawrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallaction.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallauthorizationrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallauthorizationresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/multicallexecuterequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/portfolio.py +1 -1
- compass_api_sdk/models/principalreserve.py +16 -0
- compass_api_sdk/models/redeemunderlying.py +21 -0
- compass_api_sdk/models/repay.py +21 -0
- compass_api_sdk/models/reserve.py +16 -0
- {compassapisdk → compass_api_sdk}/models/security.py +2 -2
- {compassapisdk → compass_api_sdk}/models/signedauthorization.py +1 -1
- {compassapisdk → compass_api_sdk}/models/sky_positionop.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skybuyrequest.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skycheckpositionresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/skydepositrequest.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skysellrequest.py +2 -2
- {compassapisdk → compass_api_sdk}/models/skywithdrawrequest.py +2 -2
- compass_api_sdk/models/supply.py +21 -0
- compass_api_sdk/models/swapborrowrate.py +27 -0
- {compassapisdk → compass_api_sdk}/models/token_addressop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/token_balanceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/token_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/tokenaddressresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokenbalance.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokenbalanceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokeninfo.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokenpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokentransfererc20params.py +1 -1
- {compassapisdk → compass_api_sdk}/models/tokentransferrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswap_liquidity_provision_in_rangeop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_liquidity_provision_positionsop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_pool_priceop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_quote_buy_exactlyop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswap_quote_sell_exactlyop.py +5 -2
- {compassapisdk → compass_api_sdk}/models/uniswapbuyexactlyparams.py +5 -17
- {compassapisdk → compass_api_sdk}/models/uniswapbuyexactlyrequest.py +5 -17
- {compassapisdk → compass_api_sdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapcheckinrangeresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswaplppositionsinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswappoolpriceresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswappositionssolidityresponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapsellexactlyparams.py +11 -23
- {compassapisdk → compass_api_sdk}/models/uniswapsellexactlyrequest.py +12 -24
- {compassapisdk → compass_api_sdk}/models/uniswapsellquoteinforesponse.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unsignedmulticalltransaction.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unsignedtransaction.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unwrapwethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/unwrapwethrequest.py +1 -1
- compass_api_sdk/models/usageascollateral.py +21 -0
- {compassapisdk → compass_api_sdk}/models/validationerror.py +1 -1
- {compassapisdk → compass_api_sdk}/models/vaultstate.py +1 -1
- {compassapisdk → compass_api_sdk}/models/weeklyapys.py +1 -1
- {compassapisdk → compass_api_sdk}/models/wrapethparams.py +1 -1
- {compassapisdk → compass_api_sdk}/models/wrapethrequest.py +1 -1
- {compassapisdk → compass_api_sdk}/morpho.py +3 -3
- {compassapisdk → compass_api_sdk}/sdk.py +11 -11
- {compassapisdk → compass_api_sdk}/sdkconfiguration.py +4 -4
- {compassapisdk → compass_api_sdk}/sky.py +3 -3
- {compassapisdk → compass_api_sdk}/token_sdk.py +3 -3
- {compassapisdk → compass_api_sdk}/transaction_batching.py +3 -3
- {compassapisdk → compass_api_sdk}/uniswap_v3.py +25 -41
- {compassapisdk → compass_api_sdk}/universal.py +3 -3
- {compass_api_sdk-0.1.7.dist-info → compass_api_sdk-0.1.8.dist-info}/METADATA +35 -34
- compass_api_sdk-0.1.8.dist-info/RECORD +187 -0
- compass_api_sdk-0.1.7.dist-info/RECORD +0 -172
- {compassapisdk → compass_api_sdk}/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/_hooks/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/errors/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/errors/apierror.py +0 -0
- {compassapisdk → compass_api_sdk}/httpclient.py +0 -0
- {compassapisdk → compass_api_sdk}/models/contractname.py +0 -0
- {compassapisdk → compass_api_sdk}/models/feeenum.py +0 -0
- {compassapisdk → compass_api_sdk}/models/interestratemode.py +0 -0
- {compassapisdk → compass_api_sdk}/models/multicallactiontype.py +0 -0
- {compassapisdk → compass_api_sdk}/models/token_enum.py +0 -0
- {compassapisdk → compass_api_sdk}/py.typed +0 -0
- {compassapisdk → compass_api_sdk}/types/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/types/basemodel.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/__init__.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/annotations.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/datetimes.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/enums.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/eventstreaming.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/forms.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/headers.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/logger.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/metadata.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/queryparams.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/requestbodies.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/retries.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/security.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/serializers.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/url.py +0 -0
- {compassapisdk → compass_api_sdk}/utils/values.py +0 -0
- {compass_api_sdk-0.1.7.dist-info → compass_api_sdk-0.1.8.dist-info}/WHEEL +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
5
|
BaseModel,
|
|
6
6
|
Nullable,
|
|
7
7
|
OptionalNullable,
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
from
|
|
11
|
+
from compass_api_sdk.utils import validate_const
|
|
12
12
|
import pydantic
|
|
13
13
|
from pydantic import model_serializer
|
|
14
14
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import validate_const
|
|
6
6
|
from enum import Enum
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
5
|
BaseModel,
|
|
6
6
|
Nullable,
|
|
7
7
|
OptionalNullable,
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
from
|
|
11
|
+
from compass_api_sdk.utils import validate_const
|
|
12
12
|
import pydantic
|
|
13
13
|
from pydantic import model_serializer
|
|
14
14
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SupplyTypedDict(TypedDict):
|
|
11
|
+
amount: str
|
|
12
|
+
reserve: ReserveTypedDict
|
|
13
|
+
asset_price_usd: str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Supply(BaseModel):
|
|
17
|
+
amount: str
|
|
18
|
+
|
|
19
|
+
reserve: Reserve
|
|
20
|
+
|
|
21
|
+
asset_price_usd: Annotated[str, pydantic.Field(alias="assetPriceUSD")]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SwapBorrowRateTypedDict(TypedDict):
|
|
11
|
+
borrow_rate_mode_from: str
|
|
12
|
+
borrow_rate_mode_to: str
|
|
13
|
+
variable_borrow_rate: str
|
|
14
|
+
stable_borrow_rate: str
|
|
15
|
+
reserve: ReserveTypedDict
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SwapBorrowRate(BaseModel):
|
|
19
|
+
borrow_rate_mode_from: Annotated[str, pydantic.Field(alias="borrowRateModeFrom")]
|
|
20
|
+
|
|
21
|
+
borrow_rate_mode_to: Annotated[str, pydantic.Field(alias="borrowRateModeTo")]
|
|
22
|
+
|
|
23
|
+
variable_borrow_rate: Annotated[str, pydantic.Field(alias="variableBorrowRate")]
|
|
24
|
+
|
|
25
|
+
stable_borrow_rate: Annotated[str, pydantic.Field(alias="stableBorrowRate")]
|
|
26
|
+
|
|
27
|
+
reserve: Reserve
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -13,6 +13,9 @@ class TokenAddressChain(str, Enum):
|
|
|
13
13
|
BASE_MAINNET = "base:mainnet"
|
|
14
14
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
15
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
17
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
18
|
+
BASE_LOCAL = "base:local"
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
class TokenAddressToken(str, Enum):
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Union
|
|
9
9
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
@@ -15,6 +15,9 @@ class TokenBalanceChain(str, Enum):
|
|
|
15
15
|
BASE_MAINNET = "base:mainnet"
|
|
16
16
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
17
17
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
18
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
19
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
20
|
+
BASE_LOCAL = "base:local"
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
TokenBalanceTokenTypedDict = TypeAliasType(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -13,6 +13,9 @@ class TokenPriceChain(str, Enum):
|
|
|
13
13
|
BASE_MAINNET = "base:mainnet"
|
|
14
14
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
15
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
17
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
18
|
+
BASE_LOCAL = "base:local"
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
class TokenPriceToken(str, Enum):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -13,6 +13,9 @@ class UniswapLiquidityProvisionInRangeChain(str, Enum):
|
|
|
13
13
|
BASE_MAINNET = "base:mainnet"
|
|
14
14
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
15
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
17
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
18
|
+
BASE_LOCAL = "base:local"
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
class UniswapLiquidityProvisionInRangeRequestTypedDict(TypedDict):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -14,6 +14,9 @@ class UniswapLiquidityProvisionPositionsChain(str, Enum):
|
|
|
14
14
|
BASE_MAINNET = "base:mainnet"
|
|
15
15
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
18
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
19
|
+
BASE_LOCAL = "base:local"
|
|
17
20
|
|
|
18
21
|
|
|
19
22
|
class UniswapLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -13,6 +13,9 @@ class UniswapPoolPriceChain(str, Enum):
|
|
|
13
13
|
BASE_MAINNET = "base:mainnet"
|
|
14
14
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
15
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
17
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
18
|
+
BASE_LOCAL = "base:local"
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
class UniswapPoolPriceTokenInToken(str, Enum):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
@@ -14,6 +14,9 @@ class UniswapQuoteBuyExactlyChain(str, Enum):
|
|
|
14
14
|
BASE_MAINNET = "base:mainnet"
|
|
15
15
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
18
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
19
|
+
BASE_LOCAL = "base:local"
|
|
17
20
|
|
|
18
21
|
|
|
19
22
|
class UniswapQuoteBuyExactlyTokenInToken(str, Enum):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
@@ -14,6 +14,9 @@ class UniswapQuoteSellExactlyChain(str, Enum):
|
|
|
14
14
|
BASE_MAINNET = "base:mainnet"
|
|
15
15
|
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
16
|
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
|
+
ETHEREUM_LOCAL = "ethereum:local"
|
|
18
|
+
ARBITRUM_LOCAL = "arbitrum:local"
|
|
19
|
+
BASE_LOCAL = "base:local"
|
|
17
20
|
|
|
18
21
|
|
|
19
22
|
class UniswapQuoteSellExactlyTokenInToken(str, Enum):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -20,18 +20,6 @@ UniswapBuyExactlyParamsAmountOut = TypeAliasType(
|
|
|
20
20
|
r"""The amount of the token to swap to"""
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
UniswapBuyExactlyParamsAmountInMaximumTypedDict = TypeAliasType(
|
|
24
|
-
"UniswapBuyExactlyParamsAmountInMaximumTypedDict", Union[float, str]
|
|
25
|
-
)
|
|
26
|
-
r"""The maximum amount of the token to swap from"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
UniswapBuyExactlyParamsAmountInMaximum = TypeAliasType(
|
|
30
|
-
"UniswapBuyExactlyParamsAmountInMaximum", Union[float, str]
|
|
31
|
-
)
|
|
32
|
-
r"""The maximum amount of the token to swap from"""
|
|
33
|
-
|
|
34
|
-
|
|
35
23
|
class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
36
24
|
token_in: TokenEnum
|
|
37
25
|
r"""A class representing the token.
|
|
@@ -52,8 +40,8 @@ class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
|
52
40
|
"""
|
|
53
41
|
amount_out: UniswapBuyExactlyParamsAmountOutTypedDict
|
|
54
42
|
r"""The amount of the token to swap to"""
|
|
55
|
-
|
|
56
|
-
r"""The maximum
|
|
43
|
+
max_slippage_percent: float
|
|
44
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
57
45
|
wrap_eth: NotRequired[bool]
|
|
58
46
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
59
47
|
|
|
@@ -82,8 +70,8 @@ class UniswapBuyExactlyParams(BaseModel):
|
|
|
82
70
|
amount_out: UniswapBuyExactlyParamsAmountOut
|
|
83
71
|
r"""The amount of the token to swap to"""
|
|
84
72
|
|
|
85
|
-
|
|
86
|
-
r"""The maximum
|
|
73
|
+
max_slippage_percent: float
|
|
74
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
87
75
|
|
|
88
76
|
wrap_eth: Optional[bool] = False
|
|
89
77
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .feeenum import FeeEnum
|
|
6
6
|
from .token_enum import TokenEnum
|
|
7
|
-
from
|
|
7
|
+
from compass_api_sdk.types import BaseModel
|
|
8
8
|
from typing import Optional, Union
|
|
9
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
10
10
|
|
|
@@ -21,18 +21,6 @@ UniswapBuyExactlyRequestAmountOut = TypeAliasType(
|
|
|
21
21
|
r"""The amount of the token to swap to"""
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
UniswapBuyExactlyRequestAmountInMaximumTypedDict = TypeAliasType(
|
|
25
|
-
"UniswapBuyExactlyRequestAmountInMaximumTypedDict", Union[float, str]
|
|
26
|
-
)
|
|
27
|
-
r"""The maximum amount of the token to swap from"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
UniswapBuyExactlyRequestAmountInMaximum = TypeAliasType(
|
|
31
|
-
"UniswapBuyExactlyRequestAmountInMaximum", Union[float, str]
|
|
32
|
-
)
|
|
33
|
-
r"""The maximum amount of the token to swap from"""
|
|
34
|
-
|
|
35
|
-
|
|
36
24
|
class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
37
25
|
r"""Request model for buying exactly an amount of tokens."""
|
|
38
26
|
|
|
@@ -55,8 +43,8 @@ class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
|
55
43
|
"""
|
|
56
44
|
amount_out: UniswapBuyExactlyRequestAmountOutTypedDict
|
|
57
45
|
r"""The amount of the token to swap to"""
|
|
58
|
-
|
|
59
|
-
r"""The maximum
|
|
46
|
+
max_slippage_percent: float
|
|
47
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
60
48
|
chain: Chain
|
|
61
49
|
r"""The chain to use."""
|
|
62
50
|
sender: str
|
|
@@ -91,8 +79,8 @@ class UniswapBuyExactlyRequest(BaseModel):
|
|
|
91
79
|
amount_out: UniswapBuyExactlyRequestAmountOut
|
|
92
80
|
r"""The amount of the token to swap to"""
|
|
93
81
|
|
|
94
|
-
|
|
95
|
-
r"""The maximum
|
|
82
|
+
max_slippage_percent: float
|
|
83
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
96
84
|
|
|
97
85
|
chain: Chain
|
|
98
86
|
r"""The chain to use."""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ from .uniswappositionssolidityresponse import (
|
|
|
5
5
|
UniswapPositionsSolidityResponse,
|
|
6
6
|
UniswapPositionsSolidityResponseTypedDict,
|
|
7
7
|
)
|
|
8
|
-
from
|
|
8
|
+
from compass_api_sdk.types import BaseModel
|
|
9
9
|
from typing import Dict
|
|
10
10
|
from typing_extensions import TypedDict
|
|
11
11
|
|
|
@@ -3,35 +3,23 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
"
|
|
11
|
+
UniswapSellExactlyParamsAmountTypedDict = TypeAliasType(
|
|
12
|
+
"UniswapSellExactlyParamsAmountTypedDict", Union[float, str]
|
|
13
13
|
)
|
|
14
14
|
r"""The amount of the token to swap from"""
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
"
|
|
17
|
+
UniswapSellExactlyParamsAmount = TypeAliasType(
|
|
18
|
+
"UniswapSellExactlyParamsAmount", Union[float, str]
|
|
19
19
|
)
|
|
20
20
|
r"""The amount of the token to swap from"""
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
UniswapSellExactlyParamsAmountOutMinimumTypedDict = TypeAliasType(
|
|
24
|
-
"UniswapSellExactlyParamsAmountOutMinimumTypedDict", Union[float, str]
|
|
25
|
-
)
|
|
26
|
-
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
UniswapSellExactlyParamsAmountOutMinimum = TypeAliasType(
|
|
30
|
-
"UniswapSellExactlyParamsAmountOutMinimum", Union[float, str]
|
|
31
|
-
)
|
|
32
|
-
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
33
|
-
|
|
34
|
-
|
|
35
23
|
class UniswapSellExactlyParamsTypedDict(TypedDict):
|
|
36
24
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
37
25
|
|
|
@@ -52,10 +40,10 @@ class UniswapSellExactlyParamsTypedDict(TypedDict):
|
|
|
52
40
|
|
|
53
41
|
Uniswap supports 4 different fee levels.
|
|
54
42
|
"""
|
|
55
|
-
|
|
43
|
+
amount: UniswapSellExactlyParamsAmountTypedDict
|
|
56
44
|
r"""The amount of the token to swap from"""
|
|
57
|
-
|
|
58
|
-
r"""The
|
|
45
|
+
max_slippage_percent: float
|
|
46
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
59
47
|
wrap_eth: NotRequired[bool]
|
|
60
48
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
61
49
|
|
|
@@ -83,11 +71,11 @@ class UniswapSellExactlyParams(BaseModel):
|
|
|
83
71
|
Uniswap supports 4 different fee levels.
|
|
84
72
|
"""
|
|
85
73
|
|
|
86
|
-
|
|
74
|
+
amount: UniswapSellExactlyParamsAmount
|
|
87
75
|
r"""The amount of the token to swap from"""
|
|
88
76
|
|
|
89
|
-
|
|
90
|
-
r"""The
|
|
77
|
+
max_slippage_percent: float
|
|
78
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
91
79
|
|
|
92
80
|
wrap_eth: Optional[bool] = False
|
|
93
81
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|