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
|
@@ -4,35 +4,23 @@ 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
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
"
|
|
12
|
+
UniswapSellExactlyRequestAmountTypedDict = TypeAliasType(
|
|
13
|
+
"UniswapSellExactlyRequestAmountTypedDict", Union[float, str]
|
|
14
14
|
)
|
|
15
15
|
r"""The amount of the token to swap from"""
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
"
|
|
18
|
+
UniswapSellExactlyRequestAmount = TypeAliasType(
|
|
19
|
+
"UniswapSellExactlyRequestAmount", Union[float, str]
|
|
20
20
|
)
|
|
21
21
|
r"""The amount of the token to swap from"""
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
UniswapSellExactlyRequestAmountOutMinimumTypedDict = TypeAliasType(
|
|
25
|
-
"UniswapSellExactlyRequestAmountOutMinimumTypedDict", Union[float, str]
|
|
26
|
-
)
|
|
27
|
-
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
UniswapSellExactlyRequestAmountOutMinimum = TypeAliasType(
|
|
31
|
-
"UniswapSellExactlyRequestAmountOutMinimum", Union[float, str]
|
|
32
|
-
)
|
|
33
|
-
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
34
|
-
|
|
35
|
-
|
|
36
24
|
class UniswapSellExactlyRequestTypedDict(TypedDict):
|
|
37
25
|
r"""Request model for selling exactly an amount of tokens."""
|
|
38
26
|
|
|
@@ -53,14 +41,14 @@ class UniswapSellExactlyRequestTypedDict(TypedDict):
|
|
|
53
41
|
|
|
54
42
|
Uniswap supports 4 different fee levels.
|
|
55
43
|
"""
|
|
56
|
-
|
|
44
|
+
amount: UniswapSellExactlyRequestAmountTypedDict
|
|
57
45
|
r"""The amount of the token to swap from"""
|
|
46
|
+
max_slippage_percent: float
|
|
47
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
58
48
|
chain: Chain
|
|
59
49
|
r"""The chain to use."""
|
|
60
50
|
sender: str
|
|
61
51
|
r"""The address of the transaction sender."""
|
|
62
|
-
amount_out_minimum: NotRequired[UniswapSellExactlyRequestAmountOutMinimumTypedDict]
|
|
63
|
-
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
64
52
|
wrap_eth: NotRequired[bool]
|
|
65
53
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
66
54
|
|
|
@@ -88,17 +76,17 @@ class UniswapSellExactlyRequest(BaseModel):
|
|
|
88
76
|
Uniswap supports 4 different fee levels.
|
|
89
77
|
"""
|
|
90
78
|
|
|
91
|
-
|
|
79
|
+
amount: UniswapSellExactlyRequestAmount
|
|
92
80
|
r"""The amount of the token to swap from"""
|
|
93
81
|
|
|
82
|
+
max_slippage_percent: float
|
|
83
|
+
r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
|
|
84
|
+
|
|
94
85
|
chain: Chain
|
|
95
86
|
r"""The chain to use."""
|
|
96
87
|
|
|
97
88
|
sender: str
|
|
98
89
|
r"""The address of the transaction sender."""
|
|
99
90
|
|
|
100
|
-
amount_out_minimum: Optional[UniswapSellExactlyRequestAmountOutMinimum] = None
|
|
101
|
-
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
102
|
-
|
|
103
91
|
wrap_eth: Optional[bool] = False
|
|
104
92
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
@@ -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
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
|
|
5
|
-
from
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
6
|
import pydantic
|
|
7
7
|
from typing import List, Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -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
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -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
|
|
|
@@ -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 UsageAsCollateralTypedDict(TypedDict):
|
|
11
|
+
from_state: str
|
|
12
|
+
to_state: str
|
|
13
|
+
reserve: ReserveTypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class UsageAsCollateral(BaseModel):
|
|
17
|
+
from_state: Annotated[str, pydantic.Field(alias="fromState")]
|
|
18
|
+
|
|
19
|
+
to_state: Annotated[str, pydantic.Field(alias="toState")]
|
|
20
|
+
|
|
21
|
+
reserve: Reserve
|
|
@@ -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 List, Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -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
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -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
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import Nullable, OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -5,17 +5,17 @@ from .httpclient import AsyncHttpClient, ClientOwner, HttpClient, close_clients
|
|
|
5
5
|
from .sdkconfiguration import SDKConfiguration
|
|
6
6
|
from .utils.logger import Logger, get_default_logger
|
|
7
7
|
from .utils.retries import RetryConfig
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
from
|
|
8
|
+
from compass_api_sdk import models, utils
|
|
9
|
+
from compass_api_sdk._hooks import SDKHooks
|
|
10
|
+
from compass_api_sdk.aave_v3 import AaveV3
|
|
11
|
+
from compass_api_sdk.aerodrome_slipstream import AerodromeSlipstream
|
|
12
|
+
from compass_api_sdk.morpho import Morpho
|
|
13
|
+
from compass_api_sdk.sky import Sky
|
|
14
|
+
from compass_api_sdk.token_sdk import TokenSDK
|
|
15
|
+
from compass_api_sdk.transaction_batching import TransactionBatching
|
|
16
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
17
|
+
from compass_api_sdk.uniswap_v3 import UniswapV3
|
|
18
|
+
from compass_api_sdk.universal import Universal
|
|
19
19
|
import httpx
|
|
20
20
|
from typing import Any, Callable, Dict, Optional, Union, cast
|
|
21
21
|
import weakref
|
|
@@ -9,16 +9,16 @@ from ._version import (
|
|
|
9
9
|
)
|
|
10
10
|
from .httpclient import AsyncHttpClient, HttpClient
|
|
11
11
|
from .utils import Logger, RetryConfig, remove_suffix
|
|
12
|
-
from
|
|
13
|
-
from
|
|
12
|
+
from compass_api_sdk import models
|
|
13
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
14
14
|
from dataclasses import dataclass
|
|
15
15
|
from pydantic import Field
|
|
16
16
|
from typing import Callable, Dict, Optional, Tuple, Union
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
SERVERS = [
|
|
20
|
-
"
|
|
21
|
-
#
|
|
20
|
+
"http://0.0.0.0:80",
|
|
21
|
+
# Development server
|
|
22
22
|
]
|
|
23
23
|
"""Contains the list of servers available to the SDK"""
|
|
24
24
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, List, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1140,10 +1140,7 @@ class UniswapV3(BaseSDK):
|
|
|
1140
1140
|
models.UniswapBuyExactlyRequestAmountOut,
|
|
1141
1141
|
models.UniswapBuyExactlyRequestAmountOutTypedDict,
|
|
1142
1142
|
],
|
|
1143
|
-
|
|
1144
|
-
models.UniswapBuyExactlyRequestAmountInMaximum,
|
|
1145
|
-
models.UniswapBuyExactlyRequestAmountInMaximumTypedDict,
|
|
1146
|
-
],
|
|
1143
|
+
max_slippage_percent: float,
|
|
1147
1144
|
chain: models.Chain,
|
|
1148
1145
|
sender: str,
|
|
1149
1146
|
wrap_eth: Optional[bool] = False,
|
|
@@ -1166,7 +1163,7 @@ class UniswapV3(BaseSDK):
|
|
|
1166
1163
|
:param token_out: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1167
1164
|
:param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
|
|
1168
1165
|
:param amount_out: The amount of the token to swap to
|
|
1169
|
-
:param
|
|
1166
|
+
:param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
1170
1167
|
:param chain: The chain to use.
|
|
1171
1168
|
:param sender: The address of the transaction sender.
|
|
1172
1169
|
:param wrap_eth: Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
@@ -1190,7 +1187,7 @@ class UniswapV3(BaseSDK):
|
|
|
1190
1187
|
token_out=token_out,
|
|
1191
1188
|
fee=fee,
|
|
1192
1189
|
amount_out=amount_out,
|
|
1193
|
-
|
|
1190
|
+
max_slippage_percent=max_slippage_percent,
|
|
1194
1191
|
wrap_eth=wrap_eth,
|
|
1195
1192
|
chain=chain,
|
|
1196
1193
|
sender=sender,
|
|
@@ -1273,10 +1270,7 @@ class UniswapV3(BaseSDK):
|
|
|
1273
1270
|
models.UniswapBuyExactlyRequestAmountOut,
|
|
1274
1271
|
models.UniswapBuyExactlyRequestAmountOutTypedDict,
|
|
1275
1272
|
],
|
|
1276
|
-
|
|
1277
|
-
models.UniswapBuyExactlyRequestAmountInMaximum,
|
|
1278
|
-
models.UniswapBuyExactlyRequestAmountInMaximumTypedDict,
|
|
1279
|
-
],
|
|
1273
|
+
max_slippage_percent: float,
|
|
1280
1274
|
chain: models.Chain,
|
|
1281
1275
|
sender: str,
|
|
1282
1276
|
wrap_eth: Optional[bool] = False,
|
|
@@ -1299,7 +1293,7 @@ class UniswapV3(BaseSDK):
|
|
|
1299
1293
|
:param token_out: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1300
1294
|
:param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
|
|
1301
1295
|
:param amount_out: The amount of the token to swap to
|
|
1302
|
-
:param
|
|
1296
|
+
:param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
1303
1297
|
:param chain: The chain to use.
|
|
1304
1298
|
:param sender: The address of the transaction sender.
|
|
1305
1299
|
:param wrap_eth: Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
@@ -1323,7 +1317,7 @@ class UniswapV3(BaseSDK):
|
|
|
1323
1317
|
token_out=token_out,
|
|
1324
1318
|
fee=fee,
|
|
1325
1319
|
amount_out=amount_out,
|
|
1326
|
-
|
|
1320
|
+
max_slippage_percent=max_slippage_percent,
|
|
1327
1321
|
wrap_eth=wrap_eth,
|
|
1328
1322
|
chain=chain,
|
|
1329
1323
|
sender=sender,
|
|
@@ -1402,18 +1396,13 @@ class UniswapV3(BaseSDK):
|
|
|
1402
1396
|
token_in: models.TokenEnum,
|
|
1403
1397
|
token_out: models.TokenEnum,
|
|
1404
1398
|
fee: models.FeeEnum,
|
|
1405
|
-
|
|
1406
|
-
models.
|
|
1407
|
-
models.
|
|
1399
|
+
amount: Union[
|
|
1400
|
+
models.UniswapSellExactlyRequestAmount,
|
|
1401
|
+
models.UniswapSellExactlyRequestAmountTypedDict,
|
|
1408
1402
|
],
|
|
1403
|
+
max_slippage_percent: float,
|
|
1409
1404
|
chain: models.Chain,
|
|
1410
1405
|
sender: str,
|
|
1411
|
-
amount_out_minimum: Optional[
|
|
1412
|
-
Union[
|
|
1413
|
-
models.UniswapSellExactlyRequestAmountOutMinimum,
|
|
1414
|
-
models.UniswapSellExactlyRequestAmountOutMinimumTypedDict,
|
|
1415
|
-
]
|
|
1416
|
-
] = None,
|
|
1417
1406
|
wrap_eth: Optional[bool] = False,
|
|
1418
1407
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1419
1408
|
server_url: Optional[str] = None,
|
|
@@ -1433,10 +1422,10 @@ class UniswapV3(BaseSDK):
|
|
|
1433
1422
|
:param token_in: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1434
1423
|
:param token_out: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1435
1424
|
:param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
|
|
1436
|
-
:param
|
|
1425
|
+
:param amount: The amount of the token to swap from
|
|
1426
|
+
:param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
1437
1427
|
:param chain: The chain to use.
|
|
1438
1428
|
:param sender: The address of the transaction sender.
|
|
1439
|
-
:param amount_out_minimum: The minimum amount of the token to swap to, defaults to 0
|
|
1440
1429
|
:param wrap_eth: Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
1441
1430
|
:param retries: Override the default retry configuration for this method
|
|
1442
1431
|
:param server_url: Override the default server URL for this method
|
|
@@ -1457,8 +1446,8 @@ class UniswapV3(BaseSDK):
|
|
|
1457
1446
|
token_in=token_in,
|
|
1458
1447
|
token_out=token_out,
|
|
1459
1448
|
fee=fee,
|
|
1460
|
-
|
|
1461
|
-
|
|
1449
|
+
amount=amount,
|
|
1450
|
+
max_slippage_percent=max_slippage_percent,
|
|
1462
1451
|
wrap_eth=wrap_eth,
|
|
1463
1452
|
chain=chain,
|
|
1464
1453
|
sender=sender,
|
|
@@ -1537,18 +1526,13 @@ class UniswapV3(BaseSDK):
|
|
|
1537
1526
|
token_in: models.TokenEnum,
|
|
1538
1527
|
token_out: models.TokenEnum,
|
|
1539
1528
|
fee: models.FeeEnum,
|
|
1540
|
-
|
|
1541
|
-
models.
|
|
1542
|
-
models.
|
|
1529
|
+
amount: Union[
|
|
1530
|
+
models.UniswapSellExactlyRequestAmount,
|
|
1531
|
+
models.UniswapSellExactlyRequestAmountTypedDict,
|
|
1543
1532
|
],
|
|
1533
|
+
max_slippage_percent: float,
|
|
1544
1534
|
chain: models.Chain,
|
|
1545
1535
|
sender: str,
|
|
1546
|
-
amount_out_minimum: Optional[
|
|
1547
|
-
Union[
|
|
1548
|
-
models.UniswapSellExactlyRequestAmountOutMinimum,
|
|
1549
|
-
models.UniswapSellExactlyRequestAmountOutMinimumTypedDict,
|
|
1550
|
-
]
|
|
1551
|
-
] = None,
|
|
1552
1536
|
wrap_eth: Optional[bool] = False,
|
|
1553
1537
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1554
1538
|
server_url: Optional[str] = None,
|
|
@@ -1568,10 +1552,10 @@ class UniswapV3(BaseSDK):
|
|
|
1568
1552
|
:param token_in: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1569
1553
|
:param token_out: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1570
1554
|
:param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
|
|
1571
|
-
:param
|
|
1555
|
+
:param amount: The amount of the token to swap from
|
|
1556
|
+
:param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
1572
1557
|
:param chain: The chain to use.
|
|
1573
1558
|
:param sender: The address of the transaction sender.
|
|
1574
|
-
:param amount_out_minimum: The minimum amount of the token to swap to, defaults to 0
|
|
1575
1559
|
:param wrap_eth: Whether to wrap ETH to WETH, only use when swapping WETH into something
|
|
1576
1560
|
:param retries: Override the default retry configuration for this method
|
|
1577
1561
|
:param server_url: Override the default server URL for this method
|
|
@@ -1592,8 +1576,8 @@ class UniswapV3(BaseSDK):
|
|
|
1592
1576
|
token_in=token_in,
|
|
1593
1577
|
token_out=token_out,
|
|
1594
1578
|
fee=fee,
|
|
1595
|
-
|
|
1596
|
-
|
|
1579
|
+
amount=amount,
|
|
1580
|
+
max_slippage_percent=max_slippage_percent,
|
|
1597
1581
|
wrap_eth=wrap_eth,
|
|
1598
1582
|
chain=chain,
|
|
1599
1583
|
sender=sender,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from compass_api_sdk import errors, models, utils
|
|
5
|
+
from compass_api_sdk._hooks import HookContext
|
|
6
|
+
from compass_api_sdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|