compass_api_sdk 0.2.0__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.0.dist-info → compass_api_sdk-0.3.0.dist-info}/METADATA +34 -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/__init__.py +46 -25
- {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
- compassapisdk/models/aavehistoricaltransactionsresponse.py +65 -0
- {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
- compassapisdk/models/aavelooprequest.py +87 -0
- {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
- compassapisdk/models/borrow.py +67 -0
- {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
- compassapisdk/models/liquidationcall.py +64 -0
- {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +11 -11
- {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +11 -11
- {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +11 -11
- {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +22 -18
- {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +9 -6
- {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 +9 -6
- {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 +9 -6
- {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +9 -6
- {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
- compassapisdk/models/redeemunderlying.py +48 -0
- compassapisdk/models/repay.py +52 -0
- compassapisdk/models/reserve.py +77 -0
- {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
- compassapisdk/models/supply.py +54 -0
- compassapisdk/models/swapborrowrate.py +56 -0
- {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 +7 -7
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +7 -7
- {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
- compassapisdk/models/usageascollateral.py +53 -0
- {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 +79 -63
- {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 +287 -3
- {compass_api_sdk → compassapisdk}/uniswap_v3.py +39 -39
- {compass_api_sdk → compassapisdk}/universal.py +15 -15
- compass_api_sdk/_hooks/registration.py +0 -13
- compass_api_sdk/models/aavehistoricaltransactionbase.py +0 -113
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -31
- compass_api_sdk/models/action.py +0 -14
- compass_api_sdk/models/borrow.py +0 -33
- compass_api_sdk/models/collateralreserve.py +0 -16
- compass_api_sdk/models/liquidationcall.py +0 -37
- compass_api_sdk/models/principalreserve.py +0 -16
- compass_api_sdk/models/redeemunderlying.py +0 -21
- compass_api_sdk/models/repay.py +0 -21
- compass_api_sdk/models/reserve.py +0 -16
- compass_api_sdk/models/supply.py +0 -21
- compass_api_sdk/models/swapborrowrate.py +0 -27
- compass_api_sdk/models/usageascollateral.py +0 -21
- compass_api_sdk-0.2.0.dist-info/RECORD +0 -184
- {compass_api_sdk-0.2.0.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/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,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
|
|
|
@@ -11,8 +11,10 @@ class Morpho(BaseSDK):
|
|
|
11
11
|
def vaults(
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
|
-
chain:
|
|
15
|
-
|
|
14
|
+
chain: Optional[
|
|
15
|
+
models.MorphoVaultsChain
|
|
16
|
+
] = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
17
|
+
deposit_token: OptionalNullable[str] = UNSET,
|
|
16
18
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
17
19
|
server_url: Optional[str] = None,
|
|
18
20
|
timeout_ms: Optional[int] = None,
|
|
@@ -26,8 +28,8 @@ class Morpho(BaseSDK):
|
|
|
26
28
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
27
29
|
exchange value increasing over time.
|
|
28
30
|
|
|
29
|
-
:param chain:
|
|
30
|
-
:param deposit_token:
|
|
31
|
+
:param chain:
|
|
32
|
+
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
31
33
|
:param retries: Override the default retry configuration for this method
|
|
32
34
|
:param server_url: Override the default server URL for this method
|
|
33
35
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -115,8 +117,10 @@ class Morpho(BaseSDK):
|
|
|
115
117
|
async def vaults_async(
|
|
116
118
|
self,
|
|
117
119
|
*,
|
|
118
|
-
chain:
|
|
119
|
-
|
|
120
|
+
chain: Optional[
|
|
121
|
+
models.MorphoVaultsChain
|
|
122
|
+
] = models.MorphoVaultsChain.ETHEREUM_MAINNET,
|
|
123
|
+
deposit_token: OptionalNullable[str] = UNSET,
|
|
120
124
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
121
125
|
server_url: Optional[str] = None,
|
|
122
126
|
timeout_ms: Optional[int] = None,
|
|
@@ -130,8 +134,8 @@ class Morpho(BaseSDK):
|
|
|
130
134
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
131
135
|
exchange value increasing over time.
|
|
132
136
|
|
|
133
|
-
:param chain:
|
|
134
|
-
:param deposit_token:
|
|
137
|
+
:param chain:
|
|
138
|
+
:param deposit_token: Token address that will filter vaults by this deposit token.
|
|
135
139
|
:param retries: Override the default retry configuration for this method
|
|
136
140
|
:param server_url: Override the default server URL for this method
|
|
137
141
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -219,9 +223,11 @@ class Morpho(BaseSDK):
|
|
|
219
223
|
def vault_position(
|
|
220
224
|
self,
|
|
221
225
|
*,
|
|
222
|
-
chain: models.MorphoVaultPositionChain = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
223
226
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
224
227
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
228
|
+
chain: Optional[
|
|
229
|
+
models.MorphoVaultPositionChain
|
|
230
|
+
] = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
225
231
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
226
232
|
server_url: Optional[str] = None,
|
|
227
233
|
timeout_ms: Optional[int] = None,
|
|
@@ -232,9 +238,9 @@ class Morpho(BaseSDK):
|
|
|
232
238
|
Check how many shares you own and the equivalent token amount of a given
|
|
233
239
|
vault.
|
|
234
240
|
|
|
235
|
-
:param
|
|
236
|
-
:param
|
|
237
|
-
:param
|
|
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
|
+
:param chain:
|
|
238
244
|
:param retries: Override the default retry configuration for this method
|
|
239
245
|
:param server_url: Override the default server URL for this method
|
|
240
246
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -325,9 +331,11 @@ class Morpho(BaseSDK):
|
|
|
325
331
|
async def vault_position_async(
|
|
326
332
|
self,
|
|
327
333
|
*,
|
|
328
|
-
chain: models.MorphoVaultPositionChain = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
329
334
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
330
335
|
vault_address: str = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa",
|
|
336
|
+
chain: Optional[
|
|
337
|
+
models.MorphoVaultPositionChain
|
|
338
|
+
] = models.MorphoVaultPositionChain.ETHEREUM_MAINNET,
|
|
331
339
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
332
340
|
server_url: Optional[str] = None,
|
|
333
341
|
timeout_ms: Optional[int] = None,
|
|
@@ -338,9 +346,9 @@ class Morpho(BaseSDK):
|
|
|
338
346
|
Check how many shares you own and the equivalent token amount of a given
|
|
339
347
|
vault.
|
|
340
348
|
|
|
341
|
-
:param
|
|
342
|
-
:param
|
|
343
|
-
:param
|
|
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
|
+
:param chain:
|
|
344
352
|
:param retries: Override the default retry configuration for this method
|
|
345
353
|
:param server_url: Override the default server URL for this method
|
|
346
354
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -431,7 +439,9 @@ class Morpho(BaseSDK):
|
|
|
431
439
|
def markets(
|
|
432
440
|
self,
|
|
433
441
|
*,
|
|
434
|
-
chain:
|
|
442
|
+
chain: Optional[
|
|
443
|
+
models.MorphoMarketsChain
|
|
444
|
+
] = models.MorphoMarketsChain.ETHEREUM_MAINNET,
|
|
435
445
|
collateral_token: OptionalNullable[str] = UNSET,
|
|
436
446
|
loan_token: OptionalNullable[str] = UNSET,
|
|
437
447
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -446,9 +456,9 @@ class Morpho(BaseSDK):
|
|
|
446
456
|
Each market has one unique token that can be borrowed against one unique token that
|
|
447
457
|
can be used as collateral.
|
|
448
458
|
|
|
449
|
-
:param chain:
|
|
450
|
-
:param collateral_token:
|
|
451
|
-
:param loan_token:
|
|
459
|
+
:param chain:
|
|
460
|
+
:param collateral_token: Collateral token to identify the market.
|
|
461
|
+
:param loan_token: Loan token to identify the market.
|
|
452
462
|
:param retries: Override the default retry configuration for this method
|
|
453
463
|
:param server_url: Override the default server URL for this method
|
|
454
464
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -537,7 +547,9 @@ class Morpho(BaseSDK):
|
|
|
537
547
|
async def markets_async(
|
|
538
548
|
self,
|
|
539
549
|
*,
|
|
540
|
-
chain:
|
|
550
|
+
chain: Optional[
|
|
551
|
+
models.MorphoMarketsChain
|
|
552
|
+
] = models.MorphoMarketsChain.ETHEREUM_MAINNET,
|
|
541
553
|
collateral_token: OptionalNullable[str] = UNSET,
|
|
542
554
|
loan_token: OptionalNullable[str] = UNSET,
|
|
543
555
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -552,9 +564,9 @@ class Morpho(BaseSDK):
|
|
|
552
564
|
Each market has one unique token that can be borrowed against one unique token that
|
|
553
565
|
can be used as collateral.
|
|
554
566
|
|
|
555
|
-
:param chain:
|
|
556
|
-
:param collateral_token:
|
|
557
|
-
:param loan_token:
|
|
567
|
+
:param chain:
|
|
568
|
+
:param collateral_token: Collateral token to identify the market.
|
|
569
|
+
:param loan_token: Loan token to identify the market.
|
|
558
570
|
:param retries: Override the default retry configuration for this method
|
|
559
571
|
:param server_url: Override the default server URL for this method
|
|
560
572
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -643,9 +655,11 @@ class Morpho(BaseSDK):
|
|
|
643
655
|
def market_position(
|
|
644
656
|
self,
|
|
645
657
|
*,
|
|
646
|
-
chain: models.MorphoMarketPositionChain = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
647
658
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
648
659
|
unique_market_key: str = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
660
|
+
chain: Optional[
|
|
661
|
+
models.MorphoMarketPositionChain
|
|
662
|
+
] = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
649
663
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
650
664
|
server_url: Optional[str] = None,
|
|
651
665
|
timeout_ms: Optional[int] = None,
|
|
@@ -656,9 +670,9 @@ class Morpho(BaseSDK):
|
|
|
656
670
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
657
671
|
market.
|
|
658
672
|
|
|
659
|
-
:param
|
|
660
|
-
:param
|
|
661
|
-
:param
|
|
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
|
+
:param chain:
|
|
662
676
|
:param retries: Override the default retry configuration for this method
|
|
663
677
|
:param server_url: Override the default server URL for this method
|
|
664
678
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -749,9 +763,11 @@ class Morpho(BaseSDK):
|
|
|
749
763
|
async def market_position_async(
|
|
750
764
|
self,
|
|
751
765
|
*,
|
|
752
|
-
chain: models.MorphoMarketPositionChain = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
753
766
|
user_address: str = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
|
|
754
767
|
unique_market_key: str = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4",
|
|
768
|
+
chain: Optional[
|
|
769
|
+
models.MorphoMarketPositionChain
|
|
770
|
+
] = models.MorphoMarketPositionChain.ETHEREUM_MAINNET,
|
|
755
771
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
756
772
|
server_url: Optional[str] = None,
|
|
757
773
|
timeout_ms: Optional[int] = None,
|
|
@@ -762,9 +778,9 @@ class Morpho(BaseSDK):
|
|
|
762
778
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
763
779
|
market.
|
|
764
780
|
|
|
765
|
-
:param
|
|
766
|
-
:param
|
|
767
|
-
:param
|
|
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
|
+
:param chain:
|
|
768
784
|
:param retries: Override the default retry configuration for this method
|
|
769
785
|
:param server_url: Override the default server URL for this method
|
|
770
786
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -860,7 +876,7 @@ class Morpho(BaseSDK):
|
|
|
860
876
|
models.MorphoSetVaultAllowanceRequestAmount,
|
|
861
877
|
models.MorphoSetVaultAllowanceRequestAmountTypedDict,
|
|
862
878
|
],
|
|
863
|
-
chain: models.
|
|
879
|
+
chain: models.MorphoSetVaultAllowanceRequestChain,
|
|
864
880
|
sender: str,
|
|
865
881
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
866
882
|
server_url: Optional[str] = None,
|
|
@@ -877,7 +893,7 @@ class Morpho(BaseSDK):
|
|
|
877
893
|
|
|
878
894
|
:param vault_address: The vault address you are increasing the allowance for.
|
|
879
895
|
:param amount: The amount of tokens to increase the allowance by.
|
|
880
|
-
:param chain:
|
|
896
|
+
:param chain:
|
|
881
897
|
:param sender: The address of the transaction sender.
|
|
882
898
|
:param retries: Override the default retry configuration for this method
|
|
883
899
|
:param server_url: Override the default server URL for this method
|
|
@@ -976,7 +992,7 @@ class Morpho(BaseSDK):
|
|
|
976
992
|
models.MorphoSetVaultAllowanceRequestAmount,
|
|
977
993
|
models.MorphoSetVaultAllowanceRequestAmountTypedDict,
|
|
978
994
|
],
|
|
979
|
-
chain: models.
|
|
995
|
+
chain: models.MorphoSetVaultAllowanceRequestChain,
|
|
980
996
|
sender: str,
|
|
981
997
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
982
998
|
server_url: Optional[str] = None,
|
|
@@ -993,7 +1009,7 @@ class Morpho(BaseSDK):
|
|
|
993
1009
|
|
|
994
1010
|
:param vault_address: The vault address you are increasing the allowance for.
|
|
995
1011
|
:param amount: The amount of tokens to increase the allowance by.
|
|
996
|
-
:param chain:
|
|
1012
|
+
:param chain:
|
|
997
1013
|
:param sender: The address of the transaction sender.
|
|
998
1014
|
:param retries: Override the default retry configuration for this method
|
|
999
1015
|
:param server_url: Override the default server URL for this method
|
|
@@ -1092,7 +1108,7 @@ class Morpho(BaseSDK):
|
|
|
1092
1108
|
models.MorphoDepositRequestAmount,
|
|
1093
1109
|
models.MorphoDepositRequestAmountTypedDict,
|
|
1094
1110
|
],
|
|
1095
|
-
chain: models.
|
|
1111
|
+
chain: models.MorphoDepositRequestChain,
|
|
1096
1112
|
sender: str,
|
|
1097
1113
|
receiver: OptionalNullable[str] = UNSET,
|
|
1098
1114
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1116,7 +1132,7 @@ class Morpho(BaseSDK):
|
|
|
1116
1132
|
|
|
1117
1133
|
:param vault_address: The vault address you are depositing to.
|
|
1118
1134
|
:param amount: The amount of tokens to deposit into the vault.
|
|
1119
|
-
:param chain:
|
|
1135
|
+
:param chain:
|
|
1120
1136
|
:param sender: The address of the transaction sender.
|
|
1121
1137
|
:param receiver: The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
1122
1138
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1217,7 +1233,7 @@ class Morpho(BaseSDK):
|
|
|
1217
1233
|
models.MorphoDepositRequestAmount,
|
|
1218
1234
|
models.MorphoDepositRequestAmountTypedDict,
|
|
1219
1235
|
],
|
|
1220
|
-
chain: models.
|
|
1236
|
+
chain: models.MorphoDepositRequestChain,
|
|
1221
1237
|
sender: str,
|
|
1222
1238
|
receiver: OptionalNullable[str] = UNSET,
|
|
1223
1239
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1241,7 +1257,7 @@ class Morpho(BaseSDK):
|
|
|
1241
1257
|
|
|
1242
1258
|
:param vault_address: The vault address you are depositing to.
|
|
1243
1259
|
:param amount: The amount of tokens to deposit into the vault.
|
|
1244
|
-
:param chain:
|
|
1260
|
+
:param chain:
|
|
1245
1261
|
:param sender: The address of the transaction sender.
|
|
1246
1262
|
:param receiver: The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
1247
1263
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1339,7 +1355,7 @@ class Morpho(BaseSDK):
|
|
|
1339
1355
|
*,
|
|
1340
1356
|
vault_address: str,
|
|
1341
1357
|
amount: Any,
|
|
1342
|
-
chain: models.
|
|
1358
|
+
chain: models.MorphoWithdrawRequestChain,
|
|
1343
1359
|
sender: str,
|
|
1344
1360
|
receiver: OptionalNullable[str] = UNSET,
|
|
1345
1361
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1363,7 +1379,7 @@ class Morpho(BaseSDK):
|
|
|
1363
1379
|
|
|
1364
1380
|
:param vault_address: The vault address you are withdrawing from.
|
|
1365
1381
|
:param amount: The amount of tokens to withdraw from the vault. If set to 'ALL', your total deposited token amount will be withdrawn.
|
|
1366
|
-
:param chain:
|
|
1382
|
+
:param chain:
|
|
1367
1383
|
:param sender: The address of the transaction sender.
|
|
1368
1384
|
:param receiver: The address which will receive the tokens withdrawn. Defaults to the sender.
|
|
1369
1385
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1461,7 +1477,7 @@ class Morpho(BaseSDK):
|
|
|
1461
1477
|
*,
|
|
1462
1478
|
vault_address: str,
|
|
1463
1479
|
amount: Any,
|
|
1464
|
-
chain: models.
|
|
1480
|
+
chain: models.MorphoWithdrawRequestChain,
|
|
1465
1481
|
sender: str,
|
|
1466
1482
|
receiver: OptionalNullable[str] = UNSET,
|
|
1467
1483
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1485,7 +1501,7 @@ class Morpho(BaseSDK):
|
|
|
1485
1501
|
|
|
1486
1502
|
:param vault_address: The vault address you are withdrawing from.
|
|
1487
1503
|
:param amount: The amount of tokens to withdraw from the vault. If set to 'ALL', your total deposited token amount will be withdrawn.
|
|
1488
|
-
:param chain:
|
|
1504
|
+
:param chain:
|
|
1489
1505
|
:param sender: The address of the transaction sender.
|
|
1490
1506
|
:param receiver: The address which will receive the tokens withdrawn. Defaults to the sender.
|
|
1491
1507
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1586,7 +1602,7 @@ class Morpho(BaseSDK):
|
|
|
1586
1602
|
models.MorphoSupplyCollateralRequestAmountTypedDict,
|
|
1587
1603
|
],
|
|
1588
1604
|
unique_market_key: str,
|
|
1589
|
-
chain: models.
|
|
1605
|
+
chain: models.MorphoSupplyCollateralRequestChain,
|
|
1590
1606
|
sender: str,
|
|
1591
1607
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1592
1608
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
@@ -1606,7 +1622,7 @@ class Morpho(BaseSDK):
|
|
|
1606
1622
|
|
|
1607
1623
|
:param amount: Amount of the token to supply to the market as collateral.
|
|
1608
1624
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1609
|
-
:param chain:
|
|
1625
|
+
:param chain:
|
|
1610
1626
|
:param sender: The address of the transaction sender.
|
|
1611
1627
|
:param on_behalf_of: The address on behalf of whom the supplied collateral is made. Defaults to sender.
|
|
1612
1628
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful supplying of collateral.
|
|
@@ -1709,7 +1725,7 @@ class Morpho(BaseSDK):
|
|
|
1709
1725
|
models.MorphoSupplyCollateralRequestAmountTypedDict,
|
|
1710
1726
|
],
|
|
1711
1727
|
unique_market_key: str,
|
|
1712
|
-
chain: models.
|
|
1728
|
+
chain: models.MorphoSupplyCollateralRequestChain,
|
|
1713
1729
|
sender: str,
|
|
1714
1730
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1715
1731
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
@@ -1729,7 +1745,7 @@ class Morpho(BaseSDK):
|
|
|
1729
1745
|
|
|
1730
1746
|
:param amount: Amount of the token to supply to the market as collateral.
|
|
1731
1747
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1732
|
-
:param chain:
|
|
1748
|
+
:param chain:
|
|
1733
1749
|
:param sender: The address of the transaction sender.
|
|
1734
1750
|
:param on_behalf_of: The address on behalf of whom the supplied collateral is made. Defaults to sender.
|
|
1735
1751
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful supplying of collateral.
|
|
@@ -1832,7 +1848,7 @@ class Morpho(BaseSDK):
|
|
|
1832
1848
|
models.MorphoWithdrawCollateralRequestAmountTypedDict,
|
|
1833
1849
|
],
|
|
1834
1850
|
unique_market_key: str,
|
|
1835
|
-
chain: models.
|
|
1851
|
+
chain: models.MorphoWithdrawCollateralRequestChain,
|
|
1836
1852
|
sender: str,
|
|
1837
1853
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1838
1854
|
receiver: OptionalNullable[str] = UNSET,
|
|
@@ -1852,7 +1868,7 @@ class Morpho(BaseSDK):
|
|
|
1852
1868
|
|
|
1853
1869
|
:param amount: Amount of the token to supply to the market as collateral.
|
|
1854
1870
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1855
|
-
:param chain:
|
|
1871
|
+
:param chain:
|
|
1856
1872
|
:param sender: The address of the transaction sender.
|
|
1857
1873
|
:param on_behalf_of: The address on behalf of whom the withdraw is made. Defaults to sender.
|
|
1858
1874
|
:param receiver: The address where the withdrawn collateral will be received. Defaults to sender.
|
|
@@ -1955,7 +1971,7 @@ class Morpho(BaseSDK):
|
|
|
1955
1971
|
models.MorphoWithdrawCollateralRequestAmountTypedDict,
|
|
1956
1972
|
],
|
|
1957
1973
|
unique_market_key: str,
|
|
1958
|
-
chain: models.
|
|
1974
|
+
chain: models.MorphoWithdrawCollateralRequestChain,
|
|
1959
1975
|
sender: str,
|
|
1960
1976
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1961
1977
|
receiver: OptionalNullable[str] = UNSET,
|
|
@@ -1975,7 +1991,7 @@ class Morpho(BaseSDK):
|
|
|
1975
1991
|
|
|
1976
1992
|
:param amount: Amount of the token to supply to the market as collateral.
|
|
1977
1993
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
1978
|
-
:param chain:
|
|
1994
|
+
:param chain:
|
|
1979
1995
|
:param sender: The address of the transaction sender.
|
|
1980
1996
|
:param on_behalf_of: The address on behalf of whom the withdraw is made. Defaults to sender.
|
|
1981
1997
|
:param receiver: The address where the withdrawn collateral will be received. Defaults to sender.
|
|
@@ -2077,7 +2093,7 @@ class Morpho(BaseSDK):
|
|
|
2077
2093
|
models.MorphoBorrowRequestAmount, models.MorphoBorrowRequestAmountTypedDict
|
|
2078
2094
|
],
|
|
2079
2095
|
unique_market_key: str,
|
|
2080
|
-
chain: models.
|
|
2096
|
+
chain: models.MorphoBorrowRequestChain,
|
|
2081
2097
|
sender: str,
|
|
2082
2098
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2083
2099
|
receiver: OptionalNullable[str] = UNSET,
|
|
@@ -2100,7 +2116,7 @@ class Morpho(BaseSDK):
|
|
|
2100
2116
|
|
|
2101
2117
|
:param amount: Amount of the token to borrow from the market.
|
|
2102
2118
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
2103
|
-
:param chain:
|
|
2119
|
+
:param chain:
|
|
2104
2120
|
:param sender: The address of the transaction sender.
|
|
2105
2121
|
:param on_behalf_of: The address where the collateral is borrowed against. Defaults to sender.
|
|
2106
2122
|
:param receiver: The address of the receiver of the tokens borrowed. Defaults to the transaction sender.
|
|
@@ -2202,7 +2218,7 @@ class Morpho(BaseSDK):
|
|
|
2202
2218
|
models.MorphoBorrowRequestAmount, models.MorphoBorrowRequestAmountTypedDict
|
|
2203
2219
|
],
|
|
2204
2220
|
unique_market_key: str,
|
|
2205
|
-
chain: models.
|
|
2221
|
+
chain: models.MorphoBorrowRequestChain,
|
|
2206
2222
|
sender: str,
|
|
2207
2223
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2208
2224
|
receiver: OptionalNullable[str] = UNSET,
|
|
@@ -2225,7 +2241,7 @@ class Morpho(BaseSDK):
|
|
|
2225
2241
|
|
|
2226
2242
|
:param amount: Amount of the token to borrow from the market.
|
|
2227
2243
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
2228
|
-
:param chain:
|
|
2244
|
+
:param chain:
|
|
2229
2245
|
:param sender: The address of the transaction sender.
|
|
2230
2246
|
:param on_behalf_of: The address where the collateral is borrowed against. Defaults to sender.
|
|
2231
2247
|
:param receiver: The address of the receiver of the tokens borrowed. Defaults to the transaction sender.
|
|
@@ -2325,7 +2341,7 @@ class Morpho(BaseSDK):
|
|
|
2325
2341
|
*,
|
|
2326
2342
|
amount: Any,
|
|
2327
2343
|
unique_market_key: str,
|
|
2328
|
-
chain: models.
|
|
2344
|
+
chain: models.MorphoRepayRequestChain,
|
|
2329
2345
|
sender: str,
|
|
2330
2346
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2331
2347
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
@@ -2345,7 +2361,7 @@ class Morpho(BaseSDK):
|
|
|
2345
2361
|
|
|
2346
2362
|
:param amount: Amount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet.
|
|
2347
2363
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
2348
|
-
:param chain:
|
|
2364
|
+
:param chain:
|
|
2349
2365
|
:param sender: The address of the transaction sender.
|
|
2350
2366
|
:param on_behalf_of: The address on behalf of whom the repayment is made. Defaults to sender.
|
|
2351
2367
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful repaying of debt.
|
|
@@ -2445,7 +2461,7 @@ class Morpho(BaseSDK):
|
|
|
2445
2461
|
*,
|
|
2446
2462
|
amount: Any,
|
|
2447
2463
|
unique_market_key: str,
|
|
2448
|
-
chain: models.
|
|
2464
|
+
chain: models.MorphoRepayRequestChain,
|
|
2449
2465
|
sender: str,
|
|
2450
2466
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2451
2467
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
@@ -2465,7 +2481,7 @@ class Morpho(BaseSDK):
|
|
|
2465
2481
|
|
|
2466
2482
|
:param amount: Amount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet.
|
|
2467
2483
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
2468
|
-
:param chain:
|
|
2484
|
+
:param chain:
|
|
2469
2485
|
:param sender: The address of the transaction sender.
|
|
2470
2486
|
:param on_behalf_of: The address on behalf of whom the repayment is made. Defaults to sender.
|
|
2471
2487
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful repaying of debt.
|
|
@@ -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
|