compass_api_sdk 0.2.1__py3-none-any.whl → 0.3.0__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-0.2.1.dist-info → compass_api_sdk-0.3.0.dist-info}/METADATA +33 -33
- compass_api_sdk-0.3.0.dist-info/RECORD +180 -0
- {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
- {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
- {compass_api_sdk → compassapisdk}/_version.py +3 -3
- {compass_api_sdk → compassapisdk}/aave_v3.py +27 -27
- {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +11 -11
- {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
- {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
- {compass_api_sdk → compassapisdk}/httpclient.py +7 -37
- {compass_api_sdk → compassapisdk}/models/aave_historical_transactionsop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +8 -12
- {compass_api_sdk → compassapisdk}/models/aave_rateop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_reserve_overviewop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aaveborrowparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavehistoricaltransactionsresponse.py +2 -2
- {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavelooprequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverateresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
- {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/borrow.py +2 -2
- {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +10 -12
- {compass_api_sdk → compassapisdk}/models/generic_ensop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/image.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceanyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/liquidationcall.py +2 -2
- {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +6 -2
- {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +6 -2
- {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +6 -2
- {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallexecuterequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
- {compass_api_sdk → compassapisdk}/models/redeemunderlying.py +1 -1
- {compass_api_sdk → compassapisdk}/models/repay.py +2 -2
- {compass_api_sdk → compassapisdk}/models/reserve.py +1 -1
- {compass_api_sdk → compassapisdk}/models/security.py +2 -2
- {compass_api_sdk → compassapisdk}/models/signedauthorization.py +1 -1
- {compass_api_sdk → compassapisdk}/models/sky_positionop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/skybuyrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skycheckpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/skydepositrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skysellrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skywithdrawrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/supply.py +2 -2
- {compass_api_sdk → compassapisdk}/models/swapborrowrate.py +2 -2
- {compass_api_sdk → compassapisdk}/models/token_addressop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/token_balanceop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransfererc20params.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +8 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/usageascollateral.py +2 -2
- {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
- {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/morpho.py +17 -17
- {compass_api_sdk → compassapisdk}/sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
- {compass_api_sdk → compassapisdk}/sky.py +5 -5
- {compass_api_sdk → compassapisdk}/token_sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/transaction_batching.py +3 -3
- {compass_api_sdk → compassapisdk}/uniswap_v3.py +29 -29
- {compass_api_sdk → compassapisdk}/universal.py +15 -15
- compass_api_sdk/_hooks/registration.py +0 -13
- compass_api_sdk-0.2.1.dist-info/RECORD +0 -181
- {compass_api_sdk-0.2.1.dist-info → compass_api_sdk-0.3.0.dist-info}/WHEEL +0 -0
- {compass_api_sdk → compassapisdk}/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
- {compass_api_sdk → compassapisdk}/models/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
- {compass_api_sdk → compassapisdk}/models/contractname.py +0 -0
- {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
- {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
- {compass_api_sdk → compassapisdk}/models/multicallactiontype.py +0 -0
- {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
- {compass_api_sdk → compassapisdk}/py.typed +0 -0
- {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
|
@@ -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 compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.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
|
|
@@ -137,34 +137,26 @@ class UniswapQuoteSellExactlyFeeEnum(str, Enum):
|
|
|
137
137
|
UniswapQuoteSellExactlyAmountInTypedDict = TypeAliasType(
|
|
138
138
|
"UniswapQuoteSellExactlyAmountInTypedDict", Union[float, str]
|
|
139
139
|
)
|
|
140
|
+
r"""The amount of the token to swap from"""
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
UniswapQuoteSellExactlyAmountIn = TypeAliasType(
|
|
143
144
|
"UniswapQuoteSellExactlyAmountIn", Union[float, str]
|
|
144
145
|
)
|
|
146
|
+
r"""The amount of the token to swap from"""
|
|
145
147
|
|
|
146
148
|
|
|
147
149
|
class UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
|
|
148
150
|
amount_in: UniswapQuoteSellExactlyAmountInTypedDict
|
|
151
|
+
r"""The amount of the token to swap from"""
|
|
149
152
|
chain: UniswapQuoteSellExactlyChain
|
|
150
153
|
r"""The chain to use."""
|
|
151
154
|
token_in: UniswapQuoteSellExactlyTokenInToken
|
|
152
|
-
r"""
|
|
153
|
-
|
|
154
|
-
This class is used to represent the token in the system. Notice individual
|
|
155
|
-
endpoints' documentation where per chain tokens are presented.
|
|
156
|
-
"""
|
|
155
|
+
r"""The symbol of the token to swap from."""
|
|
157
156
|
token_out: UniswapQuoteSellExactlyTokenOutToken
|
|
158
|
-
r"""
|
|
159
|
-
|
|
160
|
-
This class is used to represent the token in the system. Notice individual
|
|
161
|
-
endpoints' documentation where per chain tokens are presented.
|
|
162
|
-
"""
|
|
157
|
+
r"""The symbol of the token to swap to."""
|
|
163
158
|
fee: UniswapQuoteSellExactlyFeeEnum
|
|
164
|
-
r"""The
|
|
165
|
-
|
|
166
|
-
Uniswap supports 4 different fee levels.
|
|
167
|
-
"""
|
|
159
|
+
r"""The fee to pay for the swap"""
|
|
168
160
|
|
|
169
161
|
|
|
170
162
|
class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
@@ -172,6 +164,7 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
|
172
164
|
UniswapQuoteSellExactlyAmountIn,
|
|
173
165
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
174
166
|
]
|
|
167
|
+
r"""The amount of the token to swap from"""
|
|
175
168
|
|
|
176
169
|
chain: Annotated[
|
|
177
170
|
UniswapQuoteSellExactlyChain,
|
|
@@ -183,27 +176,16 @@ class UniswapQuoteSellExactlyRequest(BaseModel):
|
|
|
183
176
|
UniswapQuoteSellExactlyTokenInToken,
|
|
184
177
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
185
178
|
] = UniswapQuoteSellExactlyTokenInToken.USDC
|
|
186
|
-
r"""
|
|
187
|
-
|
|
188
|
-
This class is used to represent the token in the system. Notice individual
|
|
189
|
-
endpoints' documentation where per chain tokens are presented.
|
|
190
|
-
"""
|
|
179
|
+
r"""The symbol of the token to swap from."""
|
|
191
180
|
|
|
192
181
|
token_out: Annotated[
|
|
193
182
|
UniswapQuoteSellExactlyTokenOutToken,
|
|
194
183
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
195
184
|
] = UniswapQuoteSellExactlyTokenOutToken.USDT
|
|
196
|
-
r"""
|
|
197
|
-
|
|
198
|
-
This class is used to represent the token in the system. Notice individual
|
|
199
|
-
endpoints' documentation where per chain tokens are presented.
|
|
200
|
-
"""
|
|
185
|
+
r"""The symbol of the token to swap to."""
|
|
201
186
|
|
|
202
187
|
fee: Annotated[
|
|
203
188
|
UniswapQuoteSellExactlyFeeEnum,
|
|
204
189
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
205
190
|
] = UniswapQuoteSellExactlyFeeEnum.ZERO_DOT_01
|
|
206
|
-
r"""The
|
|
207
|
-
|
|
208
|
-
Uniswap supports 4 different fee levels.
|
|
209
|
-
"""
|
|
191
|
+
r"""The fee to pay for the swap"""
|
|
@@ -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 compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -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 compassapisdk.types import BaseModel
|
|
8
8
|
from typing import Optional, Union
|
|
9
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
10
10
|
|
|
@@ -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 compassapisdk.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 compassapisdk.types import BaseModel
|
|
9
9
|
from typing import Dict
|
|
10
10
|
from typing_extensions import TypedDict
|
|
11
11
|
|
|
@@ -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 compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -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 compassapisdk.types import BaseModel
|
|
8
8
|
from typing import Optional, Union
|
|
9
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
10
10
|
|
|
@@ -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 compassapisdk.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 compassapisdk.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 compassapisdk.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 compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
|
+
from compassapisdk.utils import validate_const
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal
|
|
@@ -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 compassapisdk.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 compassapisdk.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 compassapisdk.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 compassapisdk.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 compassapisdk import errors, models, utils
|
|
5
|
+
from compassapisdk._hooks import HookContext
|
|
6
|
+
from compassapisdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -29,7 +29,7 @@ class Morpho(BaseSDK):
|
|
|
29
29
|
exchange value increasing over time.
|
|
30
30
|
|
|
31
31
|
:param chain:
|
|
32
|
-
:param deposit_token:
|
|
32
|
+
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
33
33
|
:param retries: Override the default retry configuration for this method
|
|
34
34
|
:param server_url: Override the default server URL for this method
|
|
35
35
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -135,7 +135,7 @@ class Morpho(BaseSDK):
|
|
|
135
135
|
exchange value increasing over time.
|
|
136
136
|
|
|
137
137
|
:param chain:
|
|
138
|
-
:param deposit_token:
|
|
138
|
+
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
139
139
|
:param retries: Override the default retry configuration for this method
|
|
140
140
|
:param server_url: Override the default server URL for this method
|
|
141
141
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -238,8 +238,8 @@ class Morpho(BaseSDK):
|
|
|
238
238
|
Check how many shares you own and the equivalent token amount of a given
|
|
239
239
|
vault.
|
|
240
240
|
|
|
241
|
-
:param user_address:
|
|
242
|
-
:param vault_address:
|
|
241
|
+
:param user_address: The user address of the desired vault position.
|
|
242
|
+
:param vault_address: The vault address of the desired vault position.
|
|
243
243
|
:param chain:
|
|
244
244
|
:param retries: Override the default retry configuration for this method
|
|
245
245
|
:param server_url: Override the default server URL for this method
|
|
@@ -346,8 +346,8 @@ class Morpho(BaseSDK):
|
|
|
346
346
|
Check how many shares you own and the equivalent token amount of a given
|
|
347
347
|
vault.
|
|
348
348
|
|
|
349
|
-
:param user_address:
|
|
350
|
-
:param vault_address:
|
|
349
|
+
:param user_address: The user address of the desired vault position.
|
|
350
|
+
:param vault_address: The vault address of the desired vault position.
|
|
351
351
|
:param chain:
|
|
352
352
|
:param retries: Override the default retry configuration for this method
|
|
353
353
|
:param server_url: Override the default server URL for this method
|
|
@@ -457,8 +457,8 @@ class Morpho(BaseSDK):
|
|
|
457
457
|
can be used as collateral.
|
|
458
458
|
|
|
459
459
|
:param chain:
|
|
460
|
-
:param collateral_token:
|
|
461
|
-
:param loan_token:
|
|
460
|
+
:param collateral_token: Collateral token to identify the market.
|
|
461
|
+
:param loan_token: Loan token to identify the market.
|
|
462
462
|
:param retries: Override the default retry configuration for this method
|
|
463
463
|
:param server_url: Override the default server URL for this method
|
|
464
464
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -565,8 +565,8 @@ class Morpho(BaseSDK):
|
|
|
565
565
|
can be used as collateral.
|
|
566
566
|
|
|
567
567
|
:param chain:
|
|
568
|
-
:param collateral_token:
|
|
569
|
-
:param loan_token:
|
|
568
|
+
:param collateral_token: Collateral token to identify the market.
|
|
569
|
+
:param loan_token: Loan token to identify the market.
|
|
570
570
|
:param retries: Override the default retry configuration for this method
|
|
571
571
|
:param server_url: Override the default server URL for this method
|
|
572
572
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -670,8 +670,8 @@ class Morpho(BaseSDK):
|
|
|
670
670
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
671
671
|
market.
|
|
672
672
|
|
|
673
|
-
:param user_address:
|
|
674
|
-
:param unique_market_key:
|
|
673
|
+
:param user_address: The user address of the desired market position.
|
|
674
|
+
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
675
675
|
:param chain:
|
|
676
676
|
:param retries: Override the default retry configuration for this method
|
|
677
677
|
:param server_url: Override the default server URL for this method
|
|
@@ -778,8 +778,8 @@ class Morpho(BaseSDK):
|
|
|
778
778
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
779
779
|
market.
|
|
780
780
|
|
|
781
|
-
:param user_address:
|
|
782
|
-
:param unique_market_key:
|
|
781
|
+
:param user_address: The user address of the desired market position.
|
|
782
|
+
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
783
783
|
:param chain:
|
|
784
784
|
:param retries: Override the default retry configuration for this method
|
|
785
785
|
:param server_url: Override the default server URL for this method
|
|
@@ -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 compassapisdk import models, utils
|
|
9
|
+
from compassapisdk._hooks import SDKHooks
|
|
10
|
+
from compassapisdk.aave_v3 import AaveV3
|
|
11
|
+
from compassapisdk.aerodrome_slipstream import AerodromeSlipstream
|
|
12
|
+
from compassapisdk.morpho import Morpho
|
|
13
|
+
from compassapisdk.sky import Sky
|
|
14
|
+
from compassapisdk.token_sdk import TokenSDK
|
|
15
|
+
from compassapisdk.transaction_batching import TransactionBatching
|
|
16
|
+
from compassapisdk.types import OptionalNullable, UNSET
|
|
17
|
+
from compassapisdk.uniswap_v3 import UniswapV3
|
|
18
|
+
from compassapisdk.universal import Universal
|
|
19
19
|
import httpx
|
|
20
20
|
from typing import Any, Callable, Dict, Optional, Union, cast
|
|
21
21
|
import weakref
|
|
@@ -9,8 +9,8 @@ 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 compassapisdk import models
|
|
13
|
+
from compassapisdk.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
|
|
@@ -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 compassapisdk import errors, models, utils
|
|
5
|
+
from compassapisdk._hooks import HookContext
|
|
6
|
+
from compassapisdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ class Sky(BaseSDK):
|
|
|
21
21
|
|
|
22
22
|
Check the USDS overall position.
|
|
23
23
|
|
|
24
|
-
:param user_address:
|
|
24
|
+
:param user_address: The user address of the desired position.
|
|
25
25
|
:param retries: Override the default retry configuration for this method
|
|
26
26
|
:param server_url: Override the default server URL for this method
|
|
27
27
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -118,7 +118,7 @@ class Sky(BaseSDK):
|
|
|
118
118
|
|
|
119
119
|
Check the USDS overall position.
|
|
120
120
|
|
|
121
|
-
:param user_address:
|
|
121
|
+
:param user_address: The user address of the desired position.
|
|
122
122
|
:param retries: Override the default retry configuration for this method
|
|
123
123
|
:param server_url: Override the default server URL for this method
|
|
124
124
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -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 compassapisdk import errors, models, utils
|
|
5
|
+
from compassapisdk._hooks import HookContext
|
|
6
|
+
from compassapisdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ class TokenSDK(BaseSDK):
|
|
|
23
23
|
This endpoint retrieves the address for a token supported by us.
|
|
24
24
|
|
|
25
25
|
:param chain: The chain to use.
|
|
26
|
-
:param token:
|
|
26
|
+
:param token: The token symbol to get the address for..
|
|
27
27
|
:param retries: Override the default retry configuration for this method
|
|
28
28
|
:param server_url: Override the default server URL for this method
|
|
29
29
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -123,7 +123,7 @@ class TokenSDK(BaseSDK):
|
|
|
123
123
|
This endpoint retrieves the address for a token supported by us.
|
|
124
124
|
|
|
125
125
|
:param chain: The chain to use.
|
|
126
|
-
:param token:
|
|
126
|
+
:param token: The token symbol to get the address for..
|
|
127
127
|
:param retries: Override the default retry configuration for this method
|
|
128
128
|
:param server_url: Override the default server URL for this method
|
|
129
129
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -227,7 +227,7 @@ class TokenSDK(BaseSDK):
|
|
|
227
227
|
with the update frequency of the oracle.
|
|
228
228
|
|
|
229
229
|
:param chain: The chain to use.
|
|
230
|
-
:param token:
|
|
230
|
+
:param token: The symbol of the token for which to get the price.
|
|
231
231
|
:param retries: Override the default retry configuration for this method
|
|
232
232
|
:param server_url: Override the default server URL for this method
|
|
233
233
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -331,7 +331,7 @@ class TokenSDK(BaseSDK):
|
|
|
331
331
|
with the update frequency of the oracle.
|
|
332
332
|
|
|
333
333
|
:param chain: The chain to use.
|
|
334
|
-
:param token:
|
|
334
|
+
:param token: The symbol of the token for which to get the price.
|
|
335
335
|
:param retries: Override the default retry configuration for this method
|
|
336
336
|
:param server_url: Override the default server URL for this method
|
|
337
337
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -432,8 +432,8 @@ class TokenSDK(BaseSDK):
|
|
|
432
432
|
Returns the balance of a specific ERC20 token for a given user address.
|
|
433
433
|
|
|
434
434
|
:param chain: The chain to use.
|
|
435
|
-
:param user:
|
|
436
|
-
:param token:
|
|
435
|
+
:param user: The user to get the ERC20 balance of.
|
|
436
|
+
:param token: The symbol of the token for which the balance is checked..
|
|
437
437
|
:param retries: Override the default retry configuration for this method
|
|
438
438
|
:param server_url: Override the default server URL for this method
|
|
439
439
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -535,8 +535,8 @@ class TokenSDK(BaseSDK):
|
|
|
535
535
|
Returns the balance of a specific ERC20 token for a given user address.
|
|
536
536
|
|
|
537
537
|
:param chain: The chain to use.
|
|
538
|
-
:param user:
|
|
539
|
-
:param token:
|
|
538
|
+
:param user: The user to get the ERC20 balance of.
|
|
539
|
+
:param token: The symbol of the token for which the balance is checked..
|
|
540
540
|
:param retries: Override the default retry configuration for this method
|
|
541
541
|
:param server_url: Override the default server URL for this method
|
|
542
542
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -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 compassapisdk import errors, models, utils
|
|
5
|
+
from compassapisdk._hooks import HookContext
|
|
6
|
+
from compassapisdk.types import OptionalNullable, UNSET
|
|
7
7
|
from typing import Any, List, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|