compass_api_sdk 0.9.51__py3-none-any.whl → 1.0.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/_version.py +3 -3
- compass_api_sdk/aave_v3.py +198 -198
- compass_api_sdk/aerodrome_slipstream.py +108 -108
- compass_api_sdk/erc_4626_vaults.py +44 -44
- compass_api_sdk/errors/__init__.py +3 -2
- compass_api_sdk/models/__init__.py +900 -746
- compass_api_sdk/models/aaveborrowrequest.py +9 -5
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +5 -5
- compass_api_sdk/models/aavelooprequest.py +59 -11
- compass_api_sdk/models/aaverepayrequest.py +9 -5
- compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
- compass_api_sdk/models/aavesupplyrequest.py +9 -5
- compass_api_sdk/models/aavewithdrawrequest.py +9 -5
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +7 -5
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +7 -5
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +7 -5
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +7 -5
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +7 -5
- compass_api_sdk/models/batcheduseroperationsrequest.py +9 -5
- compass_api_sdk/models/chain.py +3 -3
- compass_api_sdk/models/details.py +44 -7
- compass_api_sdk/models/morphoborrowrequest.py +3 -2
- compass_api_sdk/models/morphodepositrequest.py +3 -2
- compass_api_sdk/models/morphorepayrequest.py +3 -2
- compass_api_sdk/models/morphosupplycollateralrequest.py +3 -2
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +3 -2
- compass_api_sdk/models/morphowithdrawrequest.py +3 -2
- compass_api_sdk/models/movement10percent.py +65 -10
- compass_api_sdk/models/multicallauthorizationrequest.py +9 -5
- compass_api_sdk/models/multicallexecuterequest.py +53 -10
- compass_api_sdk/models/odosswaprequest.py +9 -5
- compass_api_sdk/models/pendlemanageliquidityparams.py +81 -0
- compass_api_sdk/models/pendlemanageliquidityrequest.py +95 -0
- compass_api_sdk/models/pendleredeemyieldrequest.py +9 -5
- compass_api_sdk/models/pendletradeptparams.py +81 -0
- compass_api_sdk/models/pendletradeptrequest.py +95 -0
- compass_api_sdk/models/pendletradeytparams.py +81 -0
- compass_api_sdk/models/pendletradeytrequest.py +95 -0
- compass_api_sdk/models/pendletxresponse.py +45 -0
- compass_api_sdk/models/setallowancerequest.py +8 -5
- compass_api_sdk/models/skybuyrequest.py +7 -9
- compass_api_sdk/models/skydepositrequest.py +7 -8
- compass_api_sdk/models/skysellrequest.py +7 -9
- compass_api_sdk/models/skywithdrawrequest.py +7 -8
- compass_api_sdk/models/token_enum.py +17 -0
- compass_api_sdk/models/tokentransferparams.py +67 -0
- compass_api_sdk/models/tokentransferrequest.py +9 -5
- compass_api_sdk/models/transactionresponse.py +40 -0
- compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -24
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +28 -29
- compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +45 -0
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +9 -5
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +9 -5
- compass_api_sdk/models/uniswapsellexactlyparams.py +43 -40
- compass_api_sdk/models/uniswapsellexactlyrequest.py +52 -45
- compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +45 -0
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +9 -5
- compass_api_sdk/models/unwrapwethrequest.py +9 -5
- compass_api_sdk/models/useroperation.py +34 -40
- compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py} +9 -13
- compass_api_sdk/models/{aave_avg_rateop.py → v1_aave_avg_rateop.py} +32 -19
- compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +9 -13
- compass_api_sdk/models/{aave_liquidity_changeop.py → v1_aave_liquidity_changeop.py} +30 -17
- compass_api_sdk/models/{aave_rateop.py → v1_aave_rateop.py} +32 -19
- compass_api_sdk/models/{aave_reserve_overviewop.py → v1_aave_reserve_overviewop.py} +32 -19
- compass_api_sdk/models/{aave_std_rateop.py → v1_aave_std_rateop.py} +32 -19
- compass_api_sdk/models/{aave_token_priceop.py → v1_aave_token_priceop.py} +32 -19
- compass_api_sdk/models/{aave_user_position_per_tokenop.py → v1_aave_user_position_per_tokenop.py} +32 -19
- compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +9 -13
- compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_aerodrome_slipstream_liquidity_provision_positionsop.py} +7 -13
- compass_api_sdk/models/{aerodrome_slipstream_pool_priceop.py → v1_aerodrome_slipstream_pool_priceop.py} +53 -25
- compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +24 -25
- compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +7 -13
- compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +9 -13
- compass_api_sdk/models/{generic_supported_chainsop.py → v1_generic_supported_chainsop.py} +2 -2
- compass_api_sdk/models/v1_generic_supported_tokensop.py +24 -0
- compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +9 -8
- compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +9 -8
- compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +9 -8
- compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +9 -8
- compass_api_sdk/models/{morpho_vaultop.py → v1_morpho_vaultop.py} +9 -13
- compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +9 -8
- compass_api_sdk/models/{pendle_marketop.py → v1_pendle_marketop.py} +9 -13
- compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
- compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
- compass_api_sdk/models/{sky_positionop.py → v1_sky_positionop.py} +14 -15
- compass_api_sdk/models/{token_addressop.py → v1_token_addressop.py} +30 -17
- compass_api_sdk/models/{token_balanceop.py → v1_token_balanceop.py} +14 -18
- compass_api_sdk/models/{token_priceop.py → v1_token_priceop.py} +14 -18
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +24 -0
- compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +9 -13
- compass_api_sdk/models/{aerodrome_slipstream_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +9 -13
- compass_api_sdk/models/{uniswap_pool_priceop.py → v1_uniswap_pool_priceop.py} +59 -29
- compass_api_sdk/models/{uniswap_quote_buy_exactlyop.py → v1_uniswap_quote_buy_exactlyop.py} +65 -35
- compass_api_sdk/models/{uniswap_quote_sell_exactlyop.py → v1_uniswap_quote_sell_exactlyop.py} +65 -35
- compass_api_sdk/models/{vaults_vaultop.py → v1_vaults_vaultop.py} +9 -13
- compass_api_sdk/models/vaultdepositparams.py +85 -0
- compass_api_sdk/models/vaultdepositrequest.py +9 -5
- compass_api_sdk/models/vaultwithdrawparams.py +75 -0
- compass_api_sdk/models/vaultwithdrawrequest.py +9 -5
- compass_api_sdk/models/wrapethrequest.py +9 -5
- compass_api_sdk/morpho.py +140 -140
- compass_api_sdk/pendle.py +254 -1066
- compass_api_sdk/sky.py +98 -56
- compass_api_sdk/smart_account.py +10 -10
- compass_api_sdk/swap.py +16 -16
- compass_api_sdk/token_sdk.py +56 -56
- compass_api_sdk/transaction_bundler.py +64 -62
- compass_api_sdk/uniswap_v3.py +222 -214
- compass_api_sdk/universal.py +104 -292
- compass_api_sdk/utils/__init__.py +3 -2
- {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/METADATA +83 -88
- {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/RECORD +114 -117
- compass_api_sdk/models/generic_supported_tokensop.py +0 -28
- compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
- compass_api_sdk/models/image.py +0 -15
- compass_api_sdk/models/pendle_marketsop.py +0 -28
- compass_api_sdk/models/pendle_quoteop.py +0 -128
- compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
- compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
- compass_api_sdk/models/pendlebuyptparams.py +0 -48
- compass_api_sdk/models/pendlebuyptrequest.py +0 -59
- compass_api_sdk/models/pendlebuyytparams.py +0 -48
- compass_api_sdk/models/pendlebuyytrequest.py +0 -59
- compass_api_sdk/models/pendlegetquoteresponse.py +0 -15
- compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
- compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
- compass_api_sdk/models/pendlesellptparams.py +0 -48
- compass_api_sdk/models/pendlesellptrequest.py +0 -61
- compass_api_sdk/models/pendlesellytparams.py +0 -48
- compass_api_sdk/models/pendlesellytrequest.py +0 -61
- compass_api_sdk/models/txresponse.py +0 -27
- {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/WHEEL +0 -0
compass_api_sdk/aave_v3.py
CHANGED
|
@@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Union
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AaveV3(BaseSDK):
|
|
12
|
-
def
|
|
12
|
+
def aave_aave_supported_tokens(
|
|
13
13
|
self,
|
|
14
14
|
*,
|
|
15
|
-
chain: models.
|
|
15
|
+
chain: models.V1AaveAaveSupportedTokensChain = models.V1AaveAaveSupportedTokensChain.ARBITRUM,
|
|
16
16
|
block: OptionalNullable[int] = UNSET,
|
|
17
17
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
18
|
server_url: Optional[str] = None,
|
|
@@ -29,7 +29,7 @@ class AaveV3(BaseSDK):
|
|
|
29
29
|
- Whether the token is currently enabled for supplying (depositing).
|
|
30
30
|
- Whether it is enabled for borrowing.
|
|
31
31
|
|
|
32
|
-
:param chain:
|
|
32
|
+
:param chain:
|
|
33
33
|
:param block: Optional block number (defaults to latest).
|
|
34
34
|
:param retries: Override the default retry configuration for this method
|
|
35
35
|
:param server_url: Override the default server URL for this method
|
|
@@ -46,14 +46,14 @@ class AaveV3(BaseSDK):
|
|
|
46
46
|
else:
|
|
47
47
|
base_url = self._get_url(base_url, url_variables)
|
|
48
48
|
|
|
49
|
-
request = models.
|
|
49
|
+
request = models.V1AaveAaveSupportedTokensRequest(
|
|
50
50
|
chain=chain,
|
|
51
51
|
block=block,
|
|
52
52
|
)
|
|
53
53
|
|
|
54
54
|
req = self._build_request(
|
|
55
55
|
method="GET",
|
|
56
|
-
path="/
|
|
56
|
+
path="/v1/aave/aave_supported_tokens",
|
|
57
57
|
base_url=base_url,
|
|
58
58
|
url_variables=url_variables,
|
|
59
59
|
request=request,
|
|
@@ -79,7 +79,7 @@ class AaveV3(BaseSDK):
|
|
|
79
79
|
hook_ctx=HookContext(
|
|
80
80
|
config=self.sdk_configuration,
|
|
81
81
|
base_url=base_url or "",
|
|
82
|
-
operation_id="
|
|
82
|
+
operation_id="v1_aave_aave_supported_tokens",
|
|
83
83
|
oauth2_scopes=[],
|
|
84
84
|
security_source=self.sdk_configuration.security,
|
|
85
85
|
),
|
|
@@ -105,10 +105,10 @@ class AaveV3(BaseSDK):
|
|
|
105
105
|
|
|
106
106
|
raise errors.APIError("Unexpected response received", http_res)
|
|
107
107
|
|
|
108
|
-
async def
|
|
108
|
+
async def aave_aave_supported_tokens_async(
|
|
109
109
|
self,
|
|
110
110
|
*,
|
|
111
|
-
chain: models.
|
|
111
|
+
chain: models.V1AaveAaveSupportedTokensChain = models.V1AaveAaveSupportedTokensChain.ARBITRUM,
|
|
112
112
|
block: OptionalNullable[int] = UNSET,
|
|
113
113
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
114
114
|
server_url: Optional[str] = None,
|
|
@@ -125,7 +125,7 @@ class AaveV3(BaseSDK):
|
|
|
125
125
|
- Whether the token is currently enabled for supplying (depositing).
|
|
126
126
|
- Whether it is enabled for borrowing.
|
|
127
127
|
|
|
128
|
-
:param chain:
|
|
128
|
+
:param chain:
|
|
129
129
|
:param block: Optional block number (defaults to latest).
|
|
130
130
|
:param retries: Override the default retry configuration for this method
|
|
131
131
|
:param server_url: Override the default server URL for this method
|
|
@@ -142,14 +142,14 @@ class AaveV3(BaseSDK):
|
|
|
142
142
|
else:
|
|
143
143
|
base_url = self._get_url(base_url, url_variables)
|
|
144
144
|
|
|
145
|
-
request = models.
|
|
145
|
+
request = models.V1AaveAaveSupportedTokensRequest(
|
|
146
146
|
chain=chain,
|
|
147
147
|
block=block,
|
|
148
148
|
)
|
|
149
149
|
|
|
150
150
|
req = self._build_request_async(
|
|
151
151
|
method="GET",
|
|
152
|
-
path="/
|
|
152
|
+
path="/v1/aave/aave_supported_tokens",
|
|
153
153
|
base_url=base_url,
|
|
154
154
|
url_variables=url_variables,
|
|
155
155
|
request=request,
|
|
@@ -175,7 +175,7 @@ class AaveV3(BaseSDK):
|
|
|
175
175
|
hook_ctx=HookContext(
|
|
176
176
|
config=self.sdk_configuration,
|
|
177
177
|
base_url=base_url or "",
|
|
178
|
-
operation_id="
|
|
178
|
+
operation_id="v1_aave_aave_supported_tokens",
|
|
179
179
|
oauth2_scopes=[],
|
|
180
180
|
security_source=self.sdk_configuration.security,
|
|
181
181
|
),
|
|
@@ -201,11 +201,11 @@ class AaveV3(BaseSDK):
|
|
|
201
201
|
|
|
202
202
|
raise errors.APIError("Unexpected response received", http_res)
|
|
203
203
|
|
|
204
|
-
def
|
|
204
|
+
def aave_rate(
|
|
205
205
|
self,
|
|
206
206
|
*,
|
|
207
|
-
chain: models.
|
|
208
|
-
token: models.
|
|
207
|
+
chain: models.V1AaveRateChain = models.V1AaveRateChain.ARBITRUM,
|
|
208
|
+
token: models.V1AaveRateToken = models.V1AaveRateToken.USDC,
|
|
209
209
|
block: OptionalNullable[int] = UNSET,
|
|
210
210
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
211
211
|
server_url: Optional[str] = None,
|
|
@@ -229,7 +229,7 @@ class AaveV3(BaseSDK):
|
|
|
229
229
|
|
|
230
230
|
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
231
231
|
|
|
232
|
-
:param chain:
|
|
232
|
+
:param chain:
|
|
233
233
|
:param token: The symbol of the asset to fetch the users' position on..
|
|
234
234
|
:param block: Optional block number (defaults to latest).
|
|
235
235
|
:param retries: Override the default retry configuration for this method
|
|
@@ -247,7 +247,7 @@ class AaveV3(BaseSDK):
|
|
|
247
247
|
else:
|
|
248
248
|
base_url = self._get_url(base_url, url_variables)
|
|
249
249
|
|
|
250
|
-
request = models.
|
|
250
|
+
request = models.V1AaveRateRequest(
|
|
251
251
|
chain=chain,
|
|
252
252
|
block=block,
|
|
253
253
|
token=token,
|
|
@@ -255,7 +255,7 @@ class AaveV3(BaseSDK):
|
|
|
255
255
|
|
|
256
256
|
req = self._build_request(
|
|
257
257
|
method="GET",
|
|
258
|
-
path="/
|
|
258
|
+
path="/v1/aave/rate",
|
|
259
259
|
base_url=base_url,
|
|
260
260
|
url_variables=url_variables,
|
|
261
261
|
request=request,
|
|
@@ -281,7 +281,7 @@ class AaveV3(BaseSDK):
|
|
|
281
281
|
hook_ctx=HookContext(
|
|
282
282
|
config=self.sdk_configuration,
|
|
283
283
|
base_url=base_url or "",
|
|
284
|
-
operation_id="
|
|
284
|
+
operation_id="v1_aave_rate",
|
|
285
285
|
oauth2_scopes=[],
|
|
286
286
|
security_source=self.sdk_configuration.security,
|
|
287
287
|
),
|
|
@@ -307,11 +307,11 @@ class AaveV3(BaseSDK):
|
|
|
307
307
|
|
|
308
308
|
raise errors.APIError("Unexpected response received", http_res)
|
|
309
309
|
|
|
310
|
-
async def
|
|
310
|
+
async def aave_rate_async(
|
|
311
311
|
self,
|
|
312
312
|
*,
|
|
313
|
-
chain: models.
|
|
314
|
-
token: models.
|
|
313
|
+
chain: models.V1AaveRateChain = models.V1AaveRateChain.ARBITRUM,
|
|
314
|
+
token: models.V1AaveRateToken = models.V1AaveRateToken.USDC,
|
|
315
315
|
block: OptionalNullable[int] = UNSET,
|
|
316
316
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
317
317
|
server_url: Optional[str] = None,
|
|
@@ -335,7 +335,7 @@ class AaveV3(BaseSDK):
|
|
|
335
335
|
|
|
336
336
|
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.
|
|
337
337
|
|
|
338
|
-
:param chain:
|
|
338
|
+
:param chain:
|
|
339
339
|
:param token: The symbol of the asset to fetch the users' position on..
|
|
340
340
|
:param block: Optional block number (defaults to latest).
|
|
341
341
|
:param retries: Override the default retry configuration for this method
|
|
@@ -353,7 +353,7 @@ class AaveV3(BaseSDK):
|
|
|
353
353
|
else:
|
|
354
354
|
base_url = self._get_url(base_url, url_variables)
|
|
355
355
|
|
|
356
|
-
request = models.
|
|
356
|
+
request = models.V1AaveRateRequest(
|
|
357
357
|
chain=chain,
|
|
358
358
|
block=block,
|
|
359
359
|
token=token,
|
|
@@ -361,7 +361,7 @@ class AaveV3(BaseSDK):
|
|
|
361
361
|
|
|
362
362
|
req = self._build_request_async(
|
|
363
363
|
method="GET",
|
|
364
|
-
path="/
|
|
364
|
+
path="/v1/aave/rate",
|
|
365
365
|
base_url=base_url,
|
|
366
366
|
url_variables=url_variables,
|
|
367
367
|
request=request,
|
|
@@ -387,7 +387,7 @@ class AaveV3(BaseSDK):
|
|
|
387
387
|
hook_ctx=HookContext(
|
|
388
388
|
config=self.sdk_configuration,
|
|
389
389
|
base_url=base_url or "",
|
|
390
|
-
operation_id="
|
|
390
|
+
operation_id="v1_aave_rate",
|
|
391
391
|
oauth2_scopes=[],
|
|
392
392
|
security_source=self.sdk_configuration.security,
|
|
393
393
|
),
|
|
@@ -413,11 +413,11 @@ class AaveV3(BaseSDK):
|
|
|
413
413
|
|
|
414
414
|
raise errors.APIError("Unexpected response received", http_res)
|
|
415
415
|
|
|
416
|
-
def
|
|
416
|
+
def aave_avg_rate(
|
|
417
417
|
self,
|
|
418
418
|
*,
|
|
419
|
-
chain: models.
|
|
420
|
-
token: models.
|
|
419
|
+
chain: models.V1AaveAvgRateChain = models.V1AaveAvgRateChain.ETHEREUM,
|
|
420
|
+
token: models.V1AaveAvgRateToken = models.V1AaveAvgRateToken.USDC,
|
|
421
421
|
days: int = 2,
|
|
422
422
|
block: OptionalNullable[int] = UNSET,
|
|
423
423
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -429,7 +429,7 @@ class AaveV3(BaseSDK):
|
|
|
429
429
|
|
|
430
430
|
Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
431
431
|
|
|
432
|
-
:param chain:
|
|
432
|
+
:param chain:
|
|
433
433
|
:param token: The symbol of the token..
|
|
434
434
|
:param days: The number of days for which the average shall be calculated.
|
|
435
435
|
:param block: Optional block number (defaults to latest).
|
|
@@ -448,7 +448,7 @@ class AaveV3(BaseSDK):
|
|
|
448
448
|
else:
|
|
449
449
|
base_url = self._get_url(base_url, url_variables)
|
|
450
450
|
|
|
451
|
-
request = models.
|
|
451
|
+
request = models.V1AaveAvgRateRequest(
|
|
452
452
|
chain=chain,
|
|
453
453
|
block=block,
|
|
454
454
|
token=token,
|
|
@@ -457,7 +457,7 @@ class AaveV3(BaseSDK):
|
|
|
457
457
|
|
|
458
458
|
req = self._build_request(
|
|
459
459
|
method="GET",
|
|
460
|
-
path="/
|
|
460
|
+
path="/v1/aave/avg_rate",
|
|
461
461
|
base_url=base_url,
|
|
462
462
|
url_variables=url_variables,
|
|
463
463
|
request=request,
|
|
@@ -483,7 +483,7 @@ class AaveV3(BaseSDK):
|
|
|
483
483
|
hook_ctx=HookContext(
|
|
484
484
|
config=self.sdk_configuration,
|
|
485
485
|
base_url=base_url or "",
|
|
486
|
-
operation_id="
|
|
486
|
+
operation_id="v1_aave_avg_rate",
|
|
487
487
|
oauth2_scopes=[],
|
|
488
488
|
security_source=self.sdk_configuration.security,
|
|
489
489
|
),
|
|
@@ -509,11 +509,11 @@ class AaveV3(BaseSDK):
|
|
|
509
509
|
|
|
510
510
|
raise errors.APIError("Unexpected response received", http_res)
|
|
511
511
|
|
|
512
|
-
async def
|
|
512
|
+
async def aave_avg_rate_async(
|
|
513
513
|
self,
|
|
514
514
|
*,
|
|
515
|
-
chain: models.
|
|
516
|
-
token: models.
|
|
515
|
+
chain: models.V1AaveAvgRateChain = models.V1AaveAvgRateChain.ETHEREUM,
|
|
516
|
+
token: models.V1AaveAvgRateToken = models.V1AaveAvgRateToken.USDC,
|
|
517
517
|
days: int = 2,
|
|
518
518
|
block: OptionalNullable[int] = UNSET,
|
|
519
519
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -525,7 +525,7 @@ class AaveV3(BaseSDK):
|
|
|
525
525
|
|
|
526
526
|
Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
527
527
|
|
|
528
|
-
:param chain:
|
|
528
|
+
:param chain:
|
|
529
529
|
:param token: The symbol of the token..
|
|
530
530
|
:param days: The number of days for which the average shall be calculated.
|
|
531
531
|
:param block: Optional block number (defaults to latest).
|
|
@@ -544,7 +544,7 @@ class AaveV3(BaseSDK):
|
|
|
544
544
|
else:
|
|
545
545
|
base_url = self._get_url(base_url, url_variables)
|
|
546
546
|
|
|
547
|
-
request = models.
|
|
547
|
+
request = models.V1AaveAvgRateRequest(
|
|
548
548
|
chain=chain,
|
|
549
549
|
block=block,
|
|
550
550
|
token=token,
|
|
@@ -553,7 +553,7 @@ class AaveV3(BaseSDK):
|
|
|
553
553
|
|
|
554
554
|
req = self._build_request_async(
|
|
555
555
|
method="GET",
|
|
556
|
-
path="/
|
|
556
|
+
path="/v1/aave/avg_rate",
|
|
557
557
|
base_url=base_url,
|
|
558
558
|
url_variables=url_variables,
|
|
559
559
|
request=request,
|
|
@@ -579,7 +579,7 @@ class AaveV3(BaseSDK):
|
|
|
579
579
|
hook_ctx=HookContext(
|
|
580
580
|
config=self.sdk_configuration,
|
|
581
581
|
base_url=base_url or "",
|
|
582
|
-
operation_id="
|
|
582
|
+
operation_id="v1_aave_avg_rate",
|
|
583
583
|
oauth2_scopes=[],
|
|
584
584
|
security_source=self.sdk_configuration.security,
|
|
585
585
|
),
|
|
@@ -605,11 +605,11 @@ class AaveV3(BaseSDK):
|
|
|
605
605
|
|
|
606
606
|
raise errors.APIError("Unexpected response received", http_res)
|
|
607
607
|
|
|
608
|
-
def
|
|
608
|
+
def aave_std_rate(
|
|
609
609
|
self,
|
|
610
610
|
*,
|
|
611
|
-
chain: models.
|
|
612
|
-
token: models.
|
|
611
|
+
chain: models.V1AaveStdRateChain = models.V1AaveStdRateChain.ETHEREUM,
|
|
612
|
+
token: models.V1AaveStdRateToken = models.V1AaveStdRateToken.USDC,
|
|
613
613
|
days: int = 7,
|
|
614
614
|
block: OptionalNullable[int] = UNSET,
|
|
615
615
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -622,7 +622,7 @@ class AaveV3(BaseSDK):
|
|
|
622
622
|
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
623
623
|
reserves, illustrating market volatility.
|
|
624
624
|
|
|
625
|
-
:param chain:
|
|
625
|
+
:param chain:
|
|
626
626
|
:param token: The symbol of the tokenn..
|
|
627
627
|
:param days: The number of days for which the standard deviation shall be calculated.
|
|
628
628
|
:param block: Optional block number (defaults to latest).
|
|
@@ -641,7 +641,7 @@ class AaveV3(BaseSDK):
|
|
|
641
641
|
else:
|
|
642
642
|
base_url = self._get_url(base_url, url_variables)
|
|
643
643
|
|
|
644
|
-
request = models.
|
|
644
|
+
request = models.V1AaveStdRateRequest(
|
|
645
645
|
chain=chain,
|
|
646
646
|
block=block,
|
|
647
647
|
token=token,
|
|
@@ -650,7 +650,7 @@ class AaveV3(BaseSDK):
|
|
|
650
650
|
|
|
651
651
|
req = self._build_request(
|
|
652
652
|
method="GET",
|
|
653
|
-
path="/
|
|
653
|
+
path="/v1/aave/std_rate",
|
|
654
654
|
base_url=base_url,
|
|
655
655
|
url_variables=url_variables,
|
|
656
656
|
request=request,
|
|
@@ -676,7 +676,7 @@ class AaveV3(BaseSDK):
|
|
|
676
676
|
hook_ctx=HookContext(
|
|
677
677
|
config=self.sdk_configuration,
|
|
678
678
|
base_url=base_url or "",
|
|
679
|
-
operation_id="
|
|
679
|
+
operation_id="v1_aave_std_rate",
|
|
680
680
|
oauth2_scopes=[],
|
|
681
681
|
security_source=self.sdk_configuration.security,
|
|
682
682
|
),
|
|
@@ -702,11 +702,11 @@ class AaveV3(BaseSDK):
|
|
|
702
702
|
|
|
703
703
|
raise errors.APIError("Unexpected response received", http_res)
|
|
704
704
|
|
|
705
|
-
async def
|
|
705
|
+
async def aave_std_rate_async(
|
|
706
706
|
self,
|
|
707
707
|
*,
|
|
708
|
-
chain: models.
|
|
709
|
-
token: models.
|
|
708
|
+
chain: models.V1AaveStdRateChain = models.V1AaveStdRateChain.ETHEREUM,
|
|
709
|
+
token: models.V1AaveStdRateToken = models.V1AaveStdRateToken.USDC,
|
|
710
710
|
days: int = 7,
|
|
711
711
|
block: OptionalNullable[int] = UNSET,
|
|
712
712
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -719,7 +719,7 @@ class AaveV3(BaseSDK):
|
|
|
719
719
|
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
720
720
|
reserves, illustrating market volatility.
|
|
721
721
|
|
|
722
|
-
:param chain:
|
|
722
|
+
:param chain:
|
|
723
723
|
:param token: The symbol of the tokenn..
|
|
724
724
|
:param days: The number of days for which the standard deviation shall be calculated.
|
|
725
725
|
:param block: Optional block number (defaults to latest).
|
|
@@ -738,7 +738,7 @@ class AaveV3(BaseSDK):
|
|
|
738
738
|
else:
|
|
739
739
|
base_url = self._get_url(base_url, url_variables)
|
|
740
740
|
|
|
741
|
-
request = models.
|
|
741
|
+
request = models.V1AaveStdRateRequest(
|
|
742
742
|
chain=chain,
|
|
743
743
|
block=block,
|
|
744
744
|
token=token,
|
|
@@ -747,7 +747,7 @@ class AaveV3(BaseSDK):
|
|
|
747
747
|
|
|
748
748
|
req = self._build_request_async(
|
|
749
749
|
method="GET",
|
|
750
|
-
path="/
|
|
750
|
+
path="/v1/aave/std_rate",
|
|
751
751
|
base_url=base_url,
|
|
752
752
|
url_variables=url_variables,
|
|
753
753
|
request=request,
|
|
@@ -773,7 +773,7 @@ class AaveV3(BaseSDK):
|
|
|
773
773
|
hook_ctx=HookContext(
|
|
774
774
|
config=self.sdk_configuration,
|
|
775
775
|
base_url=base_url or "",
|
|
776
|
-
operation_id="
|
|
776
|
+
operation_id="v1_aave_std_rate",
|
|
777
777
|
oauth2_scopes=[],
|
|
778
778
|
security_source=self.sdk_configuration.security,
|
|
779
779
|
),
|
|
@@ -799,11 +799,11 @@ class AaveV3(BaseSDK):
|
|
|
799
799
|
|
|
800
800
|
raise errors.APIError("Unexpected response received", http_res)
|
|
801
801
|
|
|
802
|
-
def
|
|
802
|
+
def aave_reserve_overview(
|
|
803
803
|
self,
|
|
804
804
|
*,
|
|
805
|
-
chain: models.
|
|
806
|
-
token: models.
|
|
805
|
+
chain: models.V1AaveReserveOverviewChain = models.V1AaveReserveOverviewChain.ARBITRUM,
|
|
806
|
+
token: models.V1AaveReserveOverviewToken = models.V1AaveReserveOverviewToken.USDC,
|
|
807
807
|
block: OptionalNullable[int] = UNSET,
|
|
808
808
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
809
809
|
server_url: Optional[str] = None,
|
|
@@ -819,7 +819,7 @@ class AaveV3(BaseSDK):
|
|
|
819
819
|
|
|
820
820
|
See below for more info:
|
|
821
821
|
|
|
822
|
-
:param chain:
|
|
822
|
+
:param chain:
|
|
823
823
|
:param token: The symbol of the asset..
|
|
824
824
|
:param block: Optional block number (defaults to latest).
|
|
825
825
|
:param retries: Override the default retry configuration for this method
|
|
@@ -837,7 +837,7 @@ class AaveV3(BaseSDK):
|
|
|
837
837
|
else:
|
|
838
838
|
base_url = self._get_url(base_url, url_variables)
|
|
839
839
|
|
|
840
|
-
request = models.
|
|
840
|
+
request = models.V1AaveReserveOverviewRequest(
|
|
841
841
|
chain=chain,
|
|
842
842
|
block=block,
|
|
843
843
|
token=token,
|
|
@@ -845,7 +845,7 @@ class AaveV3(BaseSDK):
|
|
|
845
845
|
|
|
846
846
|
req = self._build_request(
|
|
847
847
|
method="GET",
|
|
848
|
-
path="/
|
|
848
|
+
path="/v1/aave/reserve_overview",
|
|
849
849
|
base_url=base_url,
|
|
850
850
|
url_variables=url_variables,
|
|
851
851
|
request=request,
|
|
@@ -871,7 +871,7 @@ class AaveV3(BaseSDK):
|
|
|
871
871
|
hook_ctx=HookContext(
|
|
872
872
|
config=self.sdk_configuration,
|
|
873
873
|
base_url=base_url or "",
|
|
874
|
-
operation_id="
|
|
874
|
+
operation_id="v1_aave_reserve_overview",
|
|
875
875
|
oauth2_scopes=[],
|
|
876
876
|
security_source=self.sdk_configuration.security,
|
|
877
877
|
),
|
|
@@ -897,11 +897,11 @@ class AaveV3(BaseSDK):
|
|
|
897
897
|
|
|
898
898
|
raise errors.APIError("Unexpected response received", http_res)
|
|
899
899
|
|
|
900
|
-
async def
|
|
900
|
+
async def aave_reserve_overview_async(
|
|
901
901
|
self,
|
|
902
902
|
*,
|
|
903
|
-
chain: models.
|
|
904
|
-
token: models.
|
|
903
|
+
chain: models.V1AaveReserveOverviewChain = models.V1AaveReserveOverviewChain.ARBITRUM,
|
|
904
|
+
token: models.V1AaveReserveOverviewToken = models.V1AaveReserveOverviewToken.USDC,
|
|
905
905
|
block: OptionalNullable[int] = UNSET,
|
|
906
906
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
907
907
|
server_url: Optional[str] = None,
|
|
@@ -917,7 +917,7 @@ class AaveV3(BaseSDK):
|
|
|
917
917
|
|
|
918
918
|
See below for more info:
|
|
919
919
|
|
|
920
|
-
:param chain:
|
|
920
|
+
:param chain:
|
|
921
921
|
:param token: The symbol of the asset..
|
|
922
922
|
:param block: Optional block number (defaults to latest).
|
|
923
923
|
:param retries: Override the default retry configuration for this method
|
|
@@ -935,7 +935,7 @@ class AaveV3(BaseSDK):
|
|
|
935
935
|
else:
|
|
936
936
|
base_url = self._get_url(base_url, url_variables)
|
|
937
937
|
|
|
938
|
-
request = models.
|
|
938
|
+
request = models.V1AaveReserveOverviewRequest(
|
|
939
939
|
chain=chain,
|
|
940
940
|
block=block,
|
|
941
941
|
token=token,
|
|
@@ -943,7 +943,7 @@ class AaveV3(BaseSDK):
|
|
|
943
943
|
|
|
944
944
|
req = self._build_request_async(
|
|
945
945
|
method="GET",
|
|
946
|
-
path="/
|
|
946
|
+
path="/v1/aave/reserve_overview",
|
|
947
947
|
base_url=base_url,
|
|
948
948
|
url_variables=url_variables,
|
|
949
949
|
request=request,
|
|
@@ -969,7 +969,7 @@ class AaveV3(BaseSDK):
|
|
|
969
969
|
hook_ctx=HookContext(
|
|
970
970
|
config=self.sdk_configuration,
|
|
971
971
|
base_url=base_url or "",
|
|
972
|
-
operation_id="
|
|
972
|
+
operation_id="v1_aave_reserve_overview",
|
|
973
973
|
oauth2_scopes=[],
|
|
974
974
|
security_source=self.sdk_configuration.security,
|
|
975
975
|
),
|
|
@@ -995,11 +995,11 @@ class AaveV3(BaseSDK):
|
|
|
995
995
|
|
|
996
996
|
raise errors.APIError("Unexpected response received", http_res)
|
|
997
997
|
|
|
998
|
-
def
|
|
998
|
+
def aave_token_price(
|
|
999
999
|
self,
|
|
1000
1000
|
*,
|
|
1001
|
-
chain: models.
|
|
1002
|
-
token: models.
|
|
1001
|
+
chain: models.V1AaveTokenPriceChain = models.V1AaveTokenPriceChain.ARBITRUM,
|
|
1002
|
+
token: models.V1AaveTokenPriceToken = models.V1AaveTokenPriceToken.USDC,
|
|
1003
1003
|
block: OptionalNullable[int] = UNSET,
|
|
1004
1004
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1005
1005
|
server_url: Optional[str] = None,
|
|
@@ -1017,7 +1017,7 @@ class AaveV3(BaseSDK):
|
|
|
1017
1017
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
1018
1018
|
Aave.
|
|
1019
1019
|
|
|
1020
|
-
:param chain:
|
|
1020
|
+
:param chain:
|
|
1021
1021
|
:param token: The symbol of the asset whose price you want..
|
|
1022
1022
|
:param block: Optional block number (defaults to latest).
|
|
1023
1023
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1035,7 +1035,7 @@ class AaveV3(BaseSDK):
|
|
|
1035
1035
|
else:
|
|
1036
1036
|
base_url = self._get_url(base_url, url_variables)
|
|
1037
1037
|
|
|
1038
|
-
request = models.
|
|
1038
|
+
request = models.V1AaveTokenPriceRequest(
|
|
1039
1039
|
chain=chain,
|
|
1040
1040
|
block=block,
|
|
1041
1041
|
token=token,
|
|
@@ -1043,7 +1043,7 @@ class AaveV3(BaseSDK):
|
|
|
1043
1043
|
|
|
1044
1044
|
req = self._build_request(
|
|
1045
1045
|
method="GET",
|
|
1046
|
-
path="/
|
|
1046
|
+
path="/v1/aave/token_price",
|
|
1047
1047
|
base_url=base_url,
|
|
1048
1048
|
url_variables=url_variables,
|
|
1049
1049
|
request=request,
|
|
@@ -1069,7 +1069,7 @@ class AaveV3(BaseSDK):
|
|
|
1069
1069
|
hook_ctx=HookContext(
|
|
1070
1070
|
config=self.sdk_configuration,
|
|
1071
1071
|
base_url=base_url or "",
|
|
1072
|
-
operation_id="
|
|
1072
|
+
operation_id="v1_aave_token_price",
|
|
1073
1073
|
oauth2_scopes=[],
|
|
1074
1074
|
security_source=self.sdk_configuration.security,
|
|
1075
1075
|
),
|
|
@@ -1095,11 +1095,11 @@ class AaveV3(BaseSDK):
|
|
|
1095
1095
|
|
|
1096
1096
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1097
1097
|
|
|
1098
|
-
async def
|
|
1098
|
+
async def aave_token_price_async(
|
|
1099
1099
|
self,
|
|
1100
1100
|
*,
|
|
1101
|
-
chain: models.
|
|
1102
|
-
token: models.
|
|
1101
|
+
chain: models.V1AaveTokenPriceChain = models.V1AaveTokenPriceChain.ARBITRUM,
|
|
1102
|
+
token: models.V1AaveTokenPriceToken = models.V1AaveTokenPriceToken.USDC,
|
|
1103
1103
|
block: OptionalNullable[int] = UNSET,
|
|
1104
1104
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1105
1105
|
server_url: Optional[str] = None,
|
|
@@ -1117,7 +1117,7 @@ class AaveV3(BaseSDK):
|
|
|
1117
1117
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
1118
1118
|
Aave.
|
|
1119
1119
|
|
|
1120
|
-
:param chain:
|
|
1120
|
+
:param chain:
|
|
1121
1121
|
:param token: The symbol of the asset whose price you want..
|
|
1122
1122
|
:param block: Optional block number (defaults to latest).
|
|
1123
1123
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1135,7 +1135,7 @@ class AaveV3(BaseSDK):
|
|
|
1135
1135
|
else:
|
|
1136
1136
|
base_url = self._get_url(base_url, url_variables)
|
|
1137
1137
|
|
|
1138
|
-
request = models.
|
|
1138
|
+
request = models.V1AaveTokenPriceRequest(
|
|
1139
1139
|
chain=chain,
|
|
1140
1140
|
block=block,
|
|
1141
1141
|
token=token,
|
|
@@ -1143,7 +1143,7 @@ class AaveV3(BaseSDK):
|
|
|
1143
1143
|
|
|
1144
1144
|
req = self._build_request_async(
|
|
1145
1145
|
method="GET",
|
|
1146
|
-
path="/
|
|
1146
|
+
path="/v1/aave/token_price",
|
|
1147
1147
|
base_url=base_url,
|
|
1148
1148
|
url_variables=url_variables,
|
|
1149
1149
|
request=request,
|
|
@@ -1169,7 +1169,7 @@ class AaveV3(BaseSDK):
|
|
|
1169
1169
|
hook_ctx=HookContext(
|
|
1170
1170
|
config=self.sdk_configuration,
|
|
1171
1171
|
base_url=base_url or "",
|
|
1172
|
-
operation_id="
|
|
1172
|
+
operation_id="v1_aave_token_price",
|
|
1173
1173
|
oauth2_scopes=[],
|
|
1174
1174
|
security_source=self.sdk_configuration.security,
|
|
1175
1175
|
),
|
|
@@ -1195,11 +1195,11 @@ class AaveV3(BaseSDK):
|
|
|
1195
1195
|
|
|
1196
1196
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1197
1197
|
|
|
1198
|
-
def
|
|
1198
|
+
def aave_liquidity_change(
|
|
1199
1199
|
self,
|
|
1200
1200
|
*,
|
|
1201
|
-
chain: models.
|
|
1202
|
-
token: models.
|
|
1201
|
+
chain: models.V1AaveLiquidityChangeChain = models.V1AaveLiquidityChangeChain.ARBITRUM,
|
|
1202
|
+
token: models.V1AaveLiquidityChangeToken = models.V1AaveLiquidityChangeToken.USDC,
|
|
1203
1203
|
start_block: int = 0,
|
|
1204
1204
|
end_block: int = 319407231,
|
|
1205
1205
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1221,7 +1221,7 @@ class AaveV3(BaseSDK):
|
|
|
1221
1221
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
1222
1222
|
true if the liquidity index is negative.
|
|
1223
1223
|
|
|
1224
|
-
:param chain:
|
|
1224
|
+
:param chain:
|
|
1225
1225
|
:param token: The symbol of the asset to get liquidity change for..
|
|
1226
1226
|
:param start_block: The start block to calculate liquidity change from.
|
|
1227
1227
|
:param end_block: The end block to calculate liquidity change to.
|
|
@@ -1240,7 +1240,7 @@ class AaveV3(BaseSDK):
|
|
|
1240
1240
|
else:
|
|
1241
1241
|
base_url = self._get_url(base_url, url_variables)
|
|
1242
1242
|
|
|
1243
|
-
request = models.
|
|
1243
|
+
request = models.V1AaveLiquidityChangeRequest(
|
|
1244
1244
|
chain=chain,
|
|
1245
1245
|
token=token,
|
|
1246
1246
|
start_block=start_block,
|
|
@@ -1249,7 +1249,7 @@ class AaveV3(BaseSDK):
|
|
|
1249
1249
|
|
|
1250
1250
|
req = self._build_request(
|
|
1251
1251
|
method="GET",
|
|
1252
|
-
path="/
|
|
1252
|
+
path="/v1/aave/liquidity/change",
|
|
1253
1253
|
base_url=base_url,
|
|
1254
1254
|
url_variables=url_variables,
|
|
1255
1255
|
request=request,
|
|
@@ -1275,7 +1275,7 @@ class AaveV3(BaseSDK):
|
|
|
1275
1275
|
hook_ctx=HookContext(
|
|
1276
1276
|
config=self.sdk_configuration,
|
|
1277
1277
|
base_url=base_url or "",
|
|
1278
|
-
operation_id="
|
|
1278
|
+
operation_id="v1_aave_liquidity_change",
|
|
1279
1279
|
oauth2_scopes=[],
|
|
1280
1280
|
security_source=self.sdk_configuration.security,
|
|
1281
1281
|
),
|
|
@@ -1301,11 +1301,11 @@ class AaveV3(BaseSDK):
|
|
|
1301
1301
|
|
|
1302
1302
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1303
1303
|
|
|
1304
|
-
async def
|
|
1304
|
+
async def aave_liquidity_change_async(
|
|
1305
1305
|
self,
|
|
1306
1306
|
*,
|
|
1307
|
-
chain: models.
|
|
1308
|
-
token: models.
|
|
1307
|
+
chain: models.V1AaveLiquidityChangeChain = models.V1AaveLiquidityChangeChain.ARBITRUM,
|
|
1308
|
+
token: models.V1AaveLiquidityChangeToken = models.V1AaveLiquidityChangeToken.USDC,
|
|
1309
1309
|
start_block: int = 0,
|
|
1310
1310
|
end_block: int = 319407231,
|
|
1311
1311
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1327,7 +1327,7 @@ class AaveV3(BaseSDK):
|
|
|
1327
1327
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
1328
1328
|
true if the liquidity index is negative.
|
|
1329
1329
|
|
|
1330
|
-
:param chain:
|
|
1330
|
+
:param chain:
|
|
1331
1331
|
:param token: The symbol of the asset to get liquidity change for..
|
|
1332
1332
|
:param start_block: The start block to calculate liquidity change from.
|
|
1333
1333
|
:param end_block: The end block to calculate liquidity change to.
|
|
@@ -1346,7 +1346,7 @@ class AaveV3(BaseSDK):
|
|
|
1346
1346
|
else:
|
|
1347
1347
|
base_url = self._get_url(base_url, url_variables)
|
|
1348
1348
|
|
|
1349
|
-
request = models.
|
|
1349
|
+
request = models.V1AaveLiquidityChangeRequest(
|
|
1350
1350
|
chain=chain,
|
|
1351
1351
|
token=token,
|
|
1352
1352
|
start_block=start_block,
|
|
@@ -1355,7 +1355,7 @@ class AaveV3(BaseSDK):
|
|
|
1355
1355
|
|
|
1356
1356
|
req = self._build_request_async(
|
|
1357
1357
|
method="GET",
|
|
1358
|
-
path="/
|
|
1358
|
+
path="/v1/aave/liquidity/change",
|
|
1359
1359
|
base_url=base_url,
|
|
1360
1360
|
url_variables=url_variables,
|
|
1361
1361
|
request=request,
|
|
@@ -1381,7 +1381,7 @@ class AaveV3(BaseSDK):
|
|
|
1381
1381
|
hook_ctx=HookContext(
|
|
1382
1382
|
config=self.sdk_configuration,
|
|
1383
1383
|
base_url=base_url or "",
|
|
1384
|
-
operation_id="
|
|
1384
|
+
operation_id="v1_aave_liquidity_change",
|
|
1385
1385
|
oauth2_scopes=[],
|
|
1386
1386
|
security_source=self.sdk_configuration.security,
|
|
1387
1387
|
),
|
|
@@ -1407,10 +1407,10 @@ class AaveV3(BaseSDK):
|
|
|
1407
1407
|
|
|
1408
1408
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1409
1409
|
|
|
1410
|
-
def
|
|
1410
|
+
def aave_user_position_summary(
|
|
1411
1411
|
self,
|
|
1412
1412
|
*,
|
|
1413
|
-
chain: models.
|
|
1413
|
+
chain: models.V1AaveUserPositionSummaryChain = models.V1AaveUserPositionSummaryChain.BASE,
|
|
1414
1414
|
user: str = "0x3254f3b1918637ba924e3F18968Cb74219974b63",
|
|
1415
1415
|
block: OptionalNullable[int] = UNSET,
|
|
1416
1416
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1429,7 +1429,7 @@ class AaveV3(BaseSDK):
|
|
|
1429
1429
|
calculated by aggregating data across all open positions held by the user, offering
|
|
1430
1430
|
a holistic view of their financial standing within the AAVE ecosystem.
|
|
1431
1431
|
|
|
1432
|
-
:param chain:
|
|
1432
|
+
:param chain:
|
|
1433
1433
|
:param user: The user to get position summary for.
|
|
1434
1434
|
:param block: Optional block number (defaults to latest).
|
|
1435
1435
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1447,7 +1447,7 @@ class AaveV3(BaseSDK):
|
|
|
1447
1447
|
else:
|
|
1448
1448
|
base_url = self._get_url(base_url, url_variables)
|
|
1449
1449
|
|
|
1450
|
-
request = models.
|
|
1450
|
+
request = models.V1AaveUserPositionSummaryRequest(
|
|
1451
1451
|
chain=chain,
|
|
1452
1452
|
block=block,
|
|
1453
1453
|
user=user,
|
|
@@ -1455,7 +1455,7 @@ class AaveV3(BaseSDK):
|
|
|
1455
1455
|
|
|
1456
1456
|
req = self._build_request(
|
|
1457
1457
|
method="GET",
|
|
1458
|
-
path="/
|
|
1458
|
+
path="/v1/aave/user_position_summary",
|
|
1459
1459
|
base_url=base_url,
|
|
1460
1460
|
url_variables=url_variables,
|
|
1461
1461
|
request=request,
|
|
@@ -1481,7 +1481,7 @@ class AaveV3(BaseSDK):
|
|
|
1481
1481
|
hook_ctx=HookContext(
|
|
1482
1482
|
config=self.sdk_configuration,
|
|
1483
1483
|
base_url=base_url or "",
|
|
1484
|
-
operation_id="
|
|
1484
|
+
operation_id="v1_aave_user_position_summary",
|
|
1485
1485
|
oauth2_scopes=[],
|
|
1486
1486
|
security_source=self.sdk_configuration.security,
|
|
1487
1487
|
),
|
|
@@ -1509,10 +1509,10 @@ class AaveV3(BaseSDK):
|
|
|
1509
1509
|
|
|
1510
1510
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1511
1511
|
|
|
1512
|
-
async def
|
|
1512
|
+
async def aave_user_position_summary_async(
|
|
1513
1513
|
self,
|
|
1514
1514
|
*,
|
|
1515
|
-
chain: models.
|
|
1515
|
+
chain: models.V1AaveUserPositionSummaryChain = models.V1AaveUserPositionSummaryChain.BASE,
|
|
1516
1516
|
user: str = "0x3254f3b1918637ba924e3F18968Cb74219974b63",
|
|
1517
1517
|
block: OptionalNullable[int] = UNSET,
|
|
1518
1518
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1531,7 +1531,7 @@ class AaveV3(BaseSDK):
|
|
|
1531
1531
|
calculated by aggregating data across all open positions held by the user, offering
|
|
1532
1532
|
a holistic view of their financial standing within the AAVE ecosystem.
|
|
1533
1533
|
|
|
1534
|
-
:param chain:
|
|
1534
|
+
:param chain:
|
|
1535
1535
|
:param user: The user to get position summary for.
|
|
1536
1536
|
:param block: Optional block number (defaults to latest).
|
|
1537
1537
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1549,7 +1549,7 @@ class AaveV3(BaseSDK):
|
|
|
1549
1549
|
else:
|
|
1550
1550
|
base_url = self._get_url(base_url, url_variables)
|
|
1551
1551
|
|
|
1552
|
-
request = models.
|
|
1552
|
+
request = models.V1AaveUserPositionSummaryRequest(
|
|
1553
1553
|
chain=chain,
|
|
1554
1554
|
block=block,
|
|
1555
1555
|
user=user,
|
|
@@ -1557,7 +1557,7 @@ class AaveV3(BaseSDK):
|
|
|
1557
1557
|
|
|
1558
1558
|
req = self._build_request_async(
|
|
1559
1559
|
method="GET",
|
|
1560
|
-
path="/
|
|
1560
|
+
path="/v1/aave/user_position_summary",
|
|
1561
1561
|
base_url=base_url,
|
|
1562
1562
|
url_variables=url_variables,
|
|
1563
1563
|
request=request,
|
|
@@ -1583,7 +1583,7 @@ class AaveV3(BaseSDK):
|
|
|
1583
1583
|
hook_ctx=HookContext(
|
|
1584
1584
|
config=self.sdk_configuration,
|
|
1585
1585
|
base_url=base_url or "",
|
|
1586
|
-
operation_id="
|
|
1586
|
+
operation_id="v1_aave_user_position_summary",
|
|
1587
1587
|
oauth2_scopes=[],
|
|
1588
1588
|
security_source=self.sdk_configuration.security,
|
|
1589
1589
|
),
|
|
@@ -1611,12 +1611,12 @@ class AaveV3(BaseSDK):
|
|
|
1611
1611
|
|
|
1612
1612
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1613
1613
|
|
|
1614
|
-
def
|
|
1614
|
+
def aave_user_position_per_token(
|
|
1615
1615
|
self,
|
|
1616
1616
|
*,
|
|
1617
|
-
chain: models.
|
|
1617
|
+
chain: models.V1AaveUserPositionPerTokenChain = models.V1AaveUserPositionPerTokenChain.BASE,
|
|
1618
1618
|
user: str = "0x3254f3b1918637ba924e3F18968Cb74219974b63",
|
|
1619
|
-
token: models.
|
|
1619
|
+
token: models.V1AaveUserPositionPerTokenToken = models.V1AaveUserPositionPerTokenToken.USDC,
|
|
1620
1620
|
block: OptionalNullable[int] = UNSET,
|
|
1621
1621
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1622
1622
|
server_url: Optional[str] = None,
|
|
@@ -1635,7 +1635,7 @@ class AaveV3(BaseSDK):
|
|
|
1635
1635
|
positions held by the user for the specified token, offering a detailed view of
|
|
1636
1636
|
their financial standing within the AAVE ecosystem.
|
|
1637
1637
|
|
|
1638
|
-
:param chain:
|
|
1638
|
+
:param chain:
|
|
1639
1639
|
:param user: The user to fetch the token-specific position of.
|
|
1640
1640
|
:param token: The symbol of the asset to fetch the user's position on..
|
|
1641
1641
|
:param block: Optional block number (defaults to latest).
|
|
@@ -1654,7 +1654,7 @@ class AaveV3(BaseSDK):
|
|
|
1654
1654
|
else:
|
|
1655
1655
|
base_url = self._get_url(base_url, url_variables)
|
|
1656
1656
|
|
|
1657
|
-
request = models.
|
|
1657
|
+
request = models.V1AaveUserPositionPerTokenRequest(
|
|
1658
1658
|
chain=chain,
|
|
1659
1659
|
block=block,
|
|
1660
1660
|
user=user,
|
|
@@ -1663,7 +1663,7 @@ class AaveV3(BaseSDK):
|
|
|
1663
1663
|
|
|
1664
1664
|
req = self._build_request(
|
|
1665
1665
|
method="GET",
|
|
1666
|
-
path="/
|
|
1666
|
+
path="/v1/aave/user_position_per_token",
|
|
1667
1667
|
base_url=base_url,
|
|
1668
1668
|
url_variables=url_variables,
|
|
1669
1669
|
request=request,
|
|
@@ -1689,7 +1689,7 @@ class AaveV3(BaseSDK):
|
|
|
1689
1689
|
hook_ctx=HookContext(
|
|
1690
1690
|
config=self.sdk_configuration,
|
|
1691
1691
|
base_url=base_url or "",
|
|
1692
|
-
operation_id="
|
|
1692
|
+
operation_id="v1_aave_user_position_per_token",
|
|
1693
1693
|
oauth2_scopes=[],
|
|
1694
1694
|
security_source=self.sdk_configuration.security,
|
|
1695
1695
|
),
|
|
@@ -1717,12 +1717,12 @@ class AaveV3(BaseSDK):
|
|
|
1717
1717
|
|
|
1718
1718
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1719
1719
|
|
|
1720
|
-
async def
|
|
1720
|
+
async def aave_user_position_per_token_async(
|
|
1721
1721
|
self,
|
|
1722
1722
|
*,
|
|
1723
|
-
chain: models.
|
|
1723
|
+
chain: models.V1AaveUserPositionPerTokenChain = models.V1AaveUserPositionPerTokenChain.BASE,
|
|
1724
1724
|
user: str = "0x3254f3b1918637ba924e3F18968Cb74219974b63",
|
|
1725
|
-
token: models.
|
|
1725
|
+
token: models.V1AaveUserPositionPerTokenToken = models.V1AaveUserPositionPerTokenToken.USDC,
|
|
1726
1726
|
block: OptionalNullable[int] = UNSET,
|
|
1727
1727
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1728
1728
|
server_url: Optional[str] = None,
|
|
@@ -1741,7 +1741,7 @@ class AaveV3(BaseSDK):
|
|
|
1741
1741
|
positions held by the user for the specified token, offering a detailed view of
|
|
1742
1742
|
their financial standing within the AAVE ecosystem.
|
|
1743
1743
|
|
|
1744
|
-
:param chain:
|
|
1744
|
+
:param chain:
|
|
1745
1745
|
:param user: The user to fetch the token-specific position of.
|
|
1746
1746
|
:param token: The symbol of the asset to fetch the user's position on..
|
|
1747
1747
|
:param block: Optional block number (defaults to latest).
|
|
@@ -1760,7 +1760,7 @@ class AaveV3(BaseSDK):
|
|
|
1760
1760
|
else:
|
|
1761
1761
|
base_url = self._get_url(base_url, url_variables)
|
|
1762
1762
|
|
|
1763
|
-
request = models.
|
|
1763
|
+
request = models.V1AaveUserPositionPerTokenRequest(
|
|
1764
1764
|
chain=chain,
|
|
1765
1765
|
block=block,
|
|
1766
1766
|
user=user,
|
|
@@ -1769,7 +1769,7 @@ class AaveV3(BaseSDK):
|
|
|
1769
1769
|
|
|
1770
1770
|
req = self._build_request_async(
|
|
1771
1771
|
method="GET",
|
|
1772
|
-
path="/
|
|
1772
|
+
path="/v1/aave/user_position_per_token",
|
|
1773
1773
|
base_url=base_url,
|
|
1774
1774
|
url_variables=url_variables,
|
|
1775
1775
|
request=request,
|
|
@@ -1795,7 +1795,7 @@ class AaveV3(BaseSDK):
|
|
|
1795
1795
|
hook_ctx=HookContext(
|
|
1796
1796
|
config=self.sdk_configuration,
|
|
1797
1797
|
base_url=base_url or "",
|
|
1798
|
-
operation_id="
|
|
1798
|
+
operation_id="v1_aave_user_position_per_token",
|
|
1799
1799
|
oauth2_scopes=[],
|
|
1800
1800
|
security_source=self.sdk_configuration.security,
|
|
1801
1801
|
),
|
|
@@ -1823,10 +1823,10 @@ class AaveV3(BaseSDK):
|
|
|
1823
1823
|
|
|
1824
1824
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1825
1825
|
|
|
1826
|
-
def
|
|
1826
|
+
def aave_historical_transactions(
|
|
1827
1827
|
self,
|
|
1828
1828
|
*,
|
|
1829
|
-
chain: models.
|
|
1829
|
+
chain: models.V1AaveHistoricalTransactionsChain = models.V1AaveHistoricalTransactionsChain.BASE,
|
|
1830
1830
|
user_address: str = "0x3254f3b1918637ba924e3F18968Cb74219974b63",
|
|
1831
1831
|
offset: Optional[int] = 0,
|
|
1832
1832
|
limit: Optional[int] = 100,
|
|
@@ -1844,7 +1844,7 @@ class AaveV3(BaseSDK):
|
|
|
1844
1844
|
and transaction type. This provides a comprehensive view of the user's historical
|
|
1845
1845
|
activity within the AAVE protocol.
|
|
1846
1846
|
|
|
1847
|
-
:param chain:
|
|
1847
|
+
:param chain:
|
|
1848
1848
|
:param user_address: The address of the user to get historical transactions for.
|
|
1849
1849
|
:param offset: The offset of the first item to return.
|
|
1850
1850
|
:param limit: The number of items to return.
|
|
@@ -1863,7 +1863,7 @@ class AaveV3(BaseSDK):
|
|
|
1863
1863
|
else:
|
|
1864
1864
|
base_url = self._get_url(base_url, url_variables)
|
|
1865
1865
|
|
|
1866
|
-
request = models.
|
|
1866
|
+
request = models.V1AaveHistoricalTransactionsRequest(
|
|
1867
1867
|
offset=offset,
|
|
1868
1868
|
limit=limit,
|
|
1869
1869
|
chain=chain,
|
|
@@ -1872,7 +1872,7 @@ class AaveV3(BaseSDK):
|
|
|
1872
1872
|
|
|
1873
1873
|
req = self._build_request(
|
|
1874
1874
|
method="GET",
|
|
1875
|
-
path="/
|
|
1875
|
+
path="/v1/aave/historical_transactions",
|
|
1876
1876
|
base_url=base_url,
|
|
1877
1877
|
url_variables=url_variables,
|
|
1878
1878
|
request=request,
|
|
@@ -1898,7 +1898,7 @@ class AaveV3(BaseSDK):
|
|
|
1898
1898
|
hook_ctx=HookContext(
|
|
1899
1899
|
config=self.sdk_configuration,
|
|
1900
1900
|
base_url=base_url or "",
|
|
1901
|
-
operation_id="
|
|
1901
|
+
operation_id="v1_aave_historical_transactions",
|
|
1902
1902
|
oauth2_scopes=[],
|
|
1903
1903
|
security_source=self.sdk_configuration.security,
|
|
1904
1904
|
),
|
|
@@ -1926,10 +1926,10 @@ class AaveV3(BaseSDK):
|
|
|
1926
1926
|
|
|
1927
1927
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1928
1928
|
|
|
1929
|
-
async def
|
|
1929
|
+
async def aave_historical_transactions_async(
|
|
1930
1930
|
self,
|
|
1931
1931
|
*,
|
|
1932
|
-
chain: models.
|
|
1932
|
+
chain: models.V1AaveHistoricalTransactionsChain = models.V1AaveHistoricalTransactionsChain.BASE,
|
|
1933
1933
|
user_address: str = "0x3254f3b1918637ba924e3F18968Cb74219974b63",
|
|
1934
1934
|
offset: Optional[int] = 0,
|
|
1935
1935
|
limit: Optional[int] = 100,
|
|
@@ -1947,7 +1947,7 @@ class AaveV3(BaseSDK):
|
|
|
1947
1947
|
and transaction type. This provides a comprehensive view of the user's historical
|
|
1948
1948
|
activity within the AAVE protocol.
|
|
1949
1949
|
|
|
1950
|
-
:param chain:
|
|
1950
|
+
:param chain:
|
|
1951
1951
|
:param user_address: The address of the user to get historical transactions for.
|
|
1952
1952
|
:param offset: The offset of the first item to return.
|
|
1953
1953
|
:param limit: The number of items to return.
|
|
@@ -1966,7 +1966,7 @@ class AaveV3(BaseSDK):
|
|
|
1966
1966
|
else:
|
|
1967
1967
|
base_url = self._get_url(base_url, url_variables)
|
|
1968
1968
|
|
|
1969
|
-
request = models.
|
|
1969
|
+
request = models.V1AaveHistoricalTransactionsRequest(
|
|
1970
1970
|
offset=offset,
|
|
1971
1971
|
limit=limit,
|
|
1972
1972
|
chain=chain,
|
|
@@ -1975,7 +1975,7 @@ class AaveV3(BaseSDK):
|
|
|
1975
1975
|
|
|
1976
1976
|
req = self._build_request_async(
|
|
1977
1977
|
method="GET",
|
|
1978
|
-
path="/
|
|
1978
|
+
path="/v1/aave/historical_transactions",
|
|
1979
1979
|
base_url=base_url,
|
|
1980
1980
|
url_variables=url_variables,
|
|
1981
1981
|
request=request,
|
|
@@ -2001,7 +2001,7 @@ class AaveV3(BaseSDK):
|
|
|
2001
2001
|
hook_ctx=HookContext(
|
|
2002
2002
|
config=self.sdk_configuration,
|
|
2003
2003
|
base_url=base_url or "",
|
|
2004
|
-
operation_id="
|
|
2004
|
+
operation_id="v1_aave_historical_transactions",
|
|
2005
2005
|
oauth2_scopes=[],
|
|
2006
2006
|
security_source=self.sdk_configuration.security,
|
|
2007
2007
|
),
|
|
@@ -2029,21 +2029,21 @@ class AaveV3(BaseSDK):
|
|
|
2029
2029
|
|
|
2030
2030
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2031
2031
|
|
|
2032
|
-
def
|
|
2032
|
+
def aave_supply(
|
|
2033
2033
|
self,
|
|
2034
2034
|
*,
|
|
2035
2035
|
token: models.TokenEnum,
|
|
2036
2036
|
amount: Union[
|
|
2037
2037
|
models.AaveSupplyRequestAmount, models.AaveSupplyRequestAmountTypedDict
|
|
2038
2038
|
],
|
|
2039
|
-
chain: models.
|
|
2039
|
+
chain: models.AaveSupplyRequestChain,
|
|
2040
2040
|
sender: str,
|
|
2041
2041
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2042
2042
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2043
2043
|
server_url: Optional[str] = None,
|
|
2044
2044
|
timeout_ms: Optional[int] = None,
|
|
2045
2045
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2046
|
-
) -> models.
|
|
2046
|
+
) -> models.TransactionResponse:
|
|
2047
2047
|
r"""Supply/Lend
|
|
2048
2048
|
|
|
2049
2049
|
By supplying assets, users can earn interest on their deposits.
|
|
@@ -2058,7 +2058,7 @@ class AaveV3(BaseSDK):
|
|
|
2058
2058
|
<Info>
|
|
2059
2059
|
**Required Allowances**
|
|
2060
2060
|
|
|
2061
|
-
In order to make this transaction, token allowances need to be set
|
|
2061
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2062
2062
|
|
|
2063
2063
|
- `AaveV3Pool`
|
|
2064
2064
|
</Info>
|
|
@@ -2066,7 +2066,7 @@ class AaveV3(BaseSDK):
|
|
|
2066
2066
|
|
|
2067
2067
|
:param token: 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.
|
|
2068
2068
|
:param amount: The amount of the asset to supply
|
|
2069
|
-
:param chain:
|
|
2069
|
+
:param chain:
|
|
2070
2070
|
:param sender: The address of the transaction sender.
|
|
2071
2071
|
:param on_behalf_of: The address on behalf of whom the supply is made. Defaults to the transaction sender.
|
|
2072
2072
|
:param retries: Override the default retry configuration for this method
|
|
@@ -2094,7 +2094,7 @@ class AaveV3(BaseSDK):
|
|
|
2094
2094
|
|
|
2095
2095
|
req = self._build_request(
|
|
2096
2096
|
method="POST",
|
|
2097
|
-
path="/
|
|
2097
|
+
path="/v1/aave/supply",
|
|
2098
2098
|
base_url=base_url,
|
|
2099
2099
|
url_variables=url_variables,
|
|
2100
2100
|
request=request,
|
|
@@ -2123,7 +2123,7 @@ class AaveV3(BaseSDK):
|
|
|
2123
2123
|
hook_ctx=HookContext(
|
|
2124
2124
|
config=self.sdk_configuration,
|
|
2125
2125
|
base_url=base_url or "",
|
|
2126
|
-
operation_id="
|
|
2126
|
+
operation_id="v1_aave_supply",
|
|
2127
2127
|
oauth2_scopes=[],
|
|
2128
2128
|
security_source=self.sdk_configuration.security,
|
|
2129
2129
|
),
|
|
@@ -2134,7 +2134,7 @@ class AaveV3(BaseSDK):
|
|
|
2134
2134
|
|
|
2135
2135
|
response_data: Any = None
|
|
2136
2136
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2137
|
-
return unmarshal_json_response(models.
|
|
2137
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2138
2138
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2139
2139
|
response_data = unmarshal_json_response(
|
|
2140
2140
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2149,21 +2149,21 @@ class AaveV3(BaseSDK):
|
|
|
2149
2149
|
|
|
2150
2150
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2151
2151
|
|
|
2152
|
-
async def
|
|
2152
|
+
async def aave_supply_async(
|
|
2153
2153
|
self,
|
|
2154
2154
|
*,
|
|
2155
2155
|
token: models.TokenEnum,
|
|
2156
2156
|
amount: Union[
|
|
2157
2157
|
models.AaveSupplyRequestAmount, models.AaveSupplyRequestAmountTypedDict
|
|
2158
2158
|
],
|
|
2159
|
-
chain: models.
|
|
2159
|
+
chain: models.AaveSupplyRequestChain,
|
|
2160
2160
|
sender: str,
|
|
2161
2161
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2162
2162
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2163
2163
|
server_url: Optional[str] = None,
|
|
2164
2164
|
timeout_ms: Optional[int] = None,
|
|
2165
2165
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2166
|
-
) -> models.
|
|
2166
|
+
) -> models.TransactionResponse:
|
|
2167
2167
|
r"""Supply/Lend
|
|
2168
2168
|
|
|
2169
2169
|
By supplying assets, users can earn interest on their deposits.
|
|
@@ -2178,7 +2178,7 @@ class AaveV3(BaseSDK):
|
|
|
2178
2178
|
<Info>
|
|
2179
2179
|
**Required Allowances**
|
|
2180
2180
|
|
|
2181
|
-
In order to make this transaction, token allowances need to be set
|
|
2181
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2182
2182
|
|
|
2183
2183
|
- `AaveV3Pool`
|
|
2184
2184
|
</Info>
|
|
@@ -2186,7 +2186,7 @@ class AaveV3(BaseSDK):
|
|
|
2186
2186
|
|
|
2187
2187
|
:param token: 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.
|
|
2188
2188
|
:param amount: The amount of the asset to supply
|
|
2189
|
-
:param chain:
|
|
2189
|
+
:param chain:
|
|
2190
2190
|
:param sender: The address of the transaction sender.
|
|
2191
2191
|
:param on_behalf_of: The address on behalf of whom the supply is made. Defaults to the transaction sender.
|
|
2192
2192
|
:param retries: Override the default retry configuration for this method
|
|
@@ -2214,7 +2214,7 @@ class AaveV3(BaseSDK):
|
|
|
2214
2214
|
|
|
2215
2215
|
req = self._build_request_async(
|
|
2216
2216
|
method="POST",
|
|
2217
|
-
path="/
|
|
2217
|
+
path="/v1/aave/supply",
|
|
2218
2218
|
base_url=base_url,
|
|
2219
2219
|
url_variables=url_variables,
|
|
2220
2220
|
request=request,
|
|
@@ -2243,7 +2243,7 @@ class AaveV3(BaseSDK):
|
|
|
2243
2243
|
hook_ctx=HookContext(
|
|
2244
2244
|
config=self.sdk_configuration,
|
|
2245
2245
|
base_url=base_url or "",
|
|
2246
|
-
operation_id="
|
|
2246
|
+
operation_id="v1_aave_supply",
|
|
2247
2247
|
oauth2_scopes=[],
|
|
2248
2248
|
security_source=self.sdk_configuration.security,
|
|
2249
2249
|
),
|
|
@@ -2254,7 +2254,7 @@ class AaveV3(BaseSDK):
|
|
|
2254
2254
|
|
|
2255
2255
|
response_data: Any = None
|
|
2256
2256
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2257
|
-
return unmarshal_json_response(models.
|
|
2257
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2258
2258
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2259
2259
|
response_data = unmarshal_json_response(
|
|
2260
2260
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2269,7 +2269,7 @@ class AaveV3(BaseSDK):
|
|
|
2269
2269
|
|
|
2270
2270
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2271
2271
|
|
|
2272
|
-
def
|
|
2272
|
+
def aave_borrow(
|
|
2273
2273
|
self,
|
|
2274
2274
|
*,
|
|
2275
2275
|
token: models.TokenEnum,
|
|
@@ -2277,14 +2277,14 @@ class AaveV3(BaseSDK):
|
|
|
2277
2277
|
models.AaveBorrowRequestAmount, models.AaveBorrowRequestAmountTypedDict
|
|
2278
2278
|
],
|
|
2279
2279
|
interest_rate_mode: models.InterestRateMode,
|
|
2280
|
-
chain: models.
|
|
2280
|
+
chain: models.AaveBorrowRequestChain,
|
|
2281
2281
|
sender: str,
|
|
2282
2282
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2283
2283
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2284
2284
|
server_url: Optional[str] = None,
|
|
2285
2285
|
timeout_ms: Optional[int] = None,
|
|
2286
2286
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2287
|
-
) -> models.
|
|
2287
|
+
) -> models.TransactionResponse:
|
|
2288
2288
|
r"""Borrow
|
|
2289
2289
|
|
|
2290
2290
|
You will pay interest for your borrows.
|
|
@@ -2294,7 +2294,7 @@ class AaveV3(BaseSDK):
|
|
|
2294
2294
|
<Info>
|
|
2295
2295
|
**Required Allowances**
|
|
2296
2296
|
|
|
2297
|
-
In order to make this transaction, token allowances need to be set
|
|
2297
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2298
2298
|
|
|
2299
2299
|
- `AaveV3Pool`
|
|
2300
2300
|
</Info>
|
|
@@ -2303,7 +2303,7 @@ class AaveV3(BaseSDK):
|
|
|
2303
2303
|
:param token: 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.
|
|
2304
2304
|
:param amount: The amount of the asset to borrow
|
|
2305
2305
|
:param interest_rate_mode: On AAVE there are 2 different interest modes. A stable (but typically higher rate), or a variable rate.
|
|
2306
|
-
:param chain:
|
|
2306
|
+
:param chain:
|
|
2307
2307
|
:param sender: The address of the transaction sender.
|
|
2308
2308
|
:param on_behalf_of: The address on behalf of whom the supply is made
|
|
2309
2309
|
:param retries: Override the default retry configuration for this method
|
|
@@ -2332,7 +2332,7 @@ class AaveV3(BaseSDK):
|
|
|
2332
2332
|
|
|
2333
2333
|
req = self._build_request(
|
|
2334
2334
|
method="POST",
|
|
2335
|
-
path="/
|
|
2335
|
+
path="/v1/aave/borrow",
|
|
2336
2336
|
base_url=base_url,
|
|
2337
2337
|
url_variables=url_variables,
|
|
2338
2338
|
request=request,
|
|
@@ -2361,7 +2361,7 @@ class AaveV3(BaseSDK):
|
|
|
2361
2361
|
hook_ctx=HookContext(
|
|
2362
2362
|
config=self.sdk_configuration,
|
|
2363
2363
|
base_url=base_url or "",
|
|
2364
|
-
operation_id="
|
|
2364
|
+
operation_id="v1_aave_borrow",
|
|
2365
2365
|
oauth2_scopes=[],
|
|
2366
2366
|
security_source=self.sdk_configuration.security,
|
|
2367
2367
|
),
|
|
@@ -2372,7 +2372,7 @@ class AaveV3(BaseSDK):
|
|
|
2372
2372
|
|
|
2373
2373
|
response_data: Any = None
|
|
2374
2374
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2375
|
-
return unmarshal_json_response(models.
|
|
2375
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2376
2376
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2377
2377
|
response_data = unmarshal_json_response(
|
|
2378
2378
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2387,7 +2387,7 @@ class AaveV3(BaseSDK):
|
|
|
2387
2387
|
|
|
2388
2388
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2389
2389
|
|
|
2390
|
-
async def
|
|
2390
|
+
async def aave_borrow_async(
|
|
2391
2391
|
self,
|
|
2392
2392
|
*,
|
|
2393
2393
|
token: models.TokenEnum,
|
|
@@ -2395,14 +2395,14 @@ class AaveV3(BaseSDK):
|
|
|
2395
2395
|
models.AaveBorrowRequestAmount, models.AaveBorrowRequestAmountTypedDict
|
|
2396
2396
|
],
|
|
2397
2397
|
interest_rate_mode: models.InterestRateMode,
|
|
2398
|
-
chain: models.
|
|
2398
|
+
chain: models.AaveBorrowRequestChain,
|
|
2399
2399
|
sender: str,
|
|
2400
2400
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2401
2401
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2402
2402
|
server_url: Optional[str] = None,
|
|
2403
2403
|
timeout_ms: Optional[int] = None,
|
|
2404
2404
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2405
|
-
) -> models.
|
|
2405
|
+
) -> models.TransactionResponse:
|
|
2406
2406
|
r"""Borrow
|
|
2407
2407
|
|
|
2408
2408
|
You will pay interest for your borrows.
|
|
@@ -2412,7 +2412,7 @@ class AaveV3(BaseSDK):
|
|
|
2412
2412
|
<Info>
|
|
2413
2413
|
**Required Allowances**
|
|
2414
2414
|
|
|
2415
|
-
In order to make this transaction, token allowances need to be set
|
|
2415
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2416
2416
|
|
|
2417
2417
|
- `AaveV3Pool`
|
|
2418
2418
|
</Info>
|
|
@@ -2421,7 +2421,7 @@ class AaveV3(BaseSDK):
|
|
|
2421
2421
|
:param token: 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.
|
|
2422
2422
|
:param amount: The amount of the asset to borrow
|
|
2423
2423
|
:param interest_rate_mode: On AAVE there are 2 different interest modes. A stable (but typically higher rate), or a variable rate.
|
|
2424
|
-
:param chain:
|
|
2424
|
+
:param chain:
|
|
2425
2425
|
:param sender: The address of the transaction sender.
|
|
2426
2426
|
:param on_behalf_of: The address on behalf of whom the supply is made
|
|
2427
2427
|
:param retries: Override the default retry configuration for this method
|
|
@@ -2450,7 +2450,7 @@ class AaveV3(BaseSDK):
|
|
|
2450
2450
|
|
|
2451
2451
|
req = self._build_request_async(
|
|
2452
2452
|
method="POST",
|
|
2453
|
-
path="/
|
|
2453
|
+
path="/v1/aave/borrow",
|
|
2454
2454
|
base_url=base_url,
|
|
2455
2455
|
url_variables=url_variables,
|
|
2456
2456
|
request=request,
|
|
@@ -2479,7 +2479,7 @@ class AaveV3(BaseSDK):
|
|
|
2479
2479
|
hook_ctx=HookContext(
|
|
2480
2480
|
config=self.sdk_configuration,
|
|
2481
2481
|
base_url=base_url or "",
|
|
2482
|
-
operation_id="
|
|
2482
|
+
operation_id="v1_aave_borrow",
|
|
2483
2483
|
oauth2_scopes=[],
|
|
2484
2484
|
security_source=self.sdk_configuration.security,
|
|
2485
2485
|
),
|
|
@@ -2490,7 +2490,7 @@ class AaveV3(BaseSDK):
|
|
|
2490
2490
|
|
|
2491
2491
|
response_data: Any = None
|
|
2492
2492
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2493
|
-
return unmarshal_json_response(models.
|
|
2493
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2494
2494
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2495
2495
|
response_data = unmarshal_json_response(
|
|
2496
2496
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2505,7 +2505,7 @@ class AaveV3(BaseSDK):
|
|
|
2505
2505
|
|
|
2506
2506
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2507
2507
|
|
|
2508
|
-
def
|
|
2508
|
+
def aave_repay(
|
|
2509
2509
|
self,
|
|
2510
2510
|
*,
|
|
2511
2511
|
token: models.TokenEnum,
|
|
@@ -2513,14 +2513,14 @@ class AaveV3(BaseSDK):
|
|
|
2513
2513
|
models.AaveRepayRequestAmount, models.AaveRepayRequestAmountTypedDict
|
|
2514
2514
|
],
|
|
2515
2515
|
interest_rate_mode: models.InterestRateMode,
|
|
2516
|
-
chain: models.
|
|
2516
|
+
chain: models.AaveRepayRequestChain,
|
|
2517
2517
|
sender: str,
|
|
2518
2518
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2519
2519
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2520
2520
|
server_url: Optional[str] = None,
|
|
2521
2521
|
timeout_ms: Optional[int] = None,
|
|
2522
2522
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2523
|
-
) -> models.
|
|
2523
|
+
) -> models.TransactionResponse:
|
|
2524
2524
|
r"""Repay Loans
|
|
2525
2525
|
|
|
2526
2526
|
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
@@ -2534,7 +2534,7 @@ class AaveV3(BaseSDK):
|
|
|
2534
2534
|
<Info>
|
|
2535
2535
|
**Required Allowances**
|
|
2536
2536
|
|
|
2537
|
-
In order to make this transaction, token allowances need to be set
|
|
2537
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2538
2538
|
|
|
2539
2539
|
- `AaveV3Pool`
|
|
2540
2540
|
</Info>
|
|
@@ -2543,7 +2543,7 @@ class AaveV3(BaseSDK):
|
|
|
2543
2543
|
:param token: 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.
|
|
2544
2544
|
:param amount: The amount of the asset to repay
|
|
2545
2545
|
:param interest_rate_mode: On AAVE there are 2 different interest modes. A stable (but typically higher rate), or a variable rate.
|
|
2546
|
-
:param chain:
|
|
2546
|
+
:param chain:
|
|
2547
2547
|
:param sender: The address of the transaction sender.
|
|
2548
2548
|
:param on_behalf_of: The address on behalf of whom the supply is made
|
|
2549
2549
|
:param retries: Override the default retry configuration for this method
|
|
@@ -2572,7 +2572,7 @@ class AaveV3(BaseSDK):
|
|
|
2572
2572
|
|
|
2573
2573
|
req = self._build_request(
|
|
2574
2574
|
method="POST",
|
|
2575
|
-
path="/
|
|
2575
|
+
path="/v1/aave/repay",
|
|
2576
2576
|
base_url=base_url,
|
|
2577
2577
|
url_variables=url_variables,
|
|
2578
2578
|
request=request,
|
|
@@ -2601,7 +2601,7 @@ class AaveV3(BaseSDK):
|
|
|
2601
2601
|
hook_ctx=HookContext(
|
|
2602
2602
|
config=self.sdk_configuration,
|
|
2603
2603
|
base_url=base_url or "",
|
|
2604
|
-
operation_id="
|
|
2604
|
+
operation_id="v1_aave_repay",
|
|
2605
2605
|
oauth2_scopes=[],
|
|
2606
2606
|
security_source=self.sdk_configuration.security,
|
|
2607
2607
|
),
|
|
@@ -2612,7 +2612,7 @@ class AaveV3(BaseSDK):
|
|
|
2612
2612
|
|
|
2613
2613
|
response_data: Any = None
|
|
2614
2614
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2615
|
-
return unmarshal_json_response(models.
|
|
2615
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2616
2616
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2617
2617
|
response_data = unmarshal_json_response(
|
|
2618
2618
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2627,7 +2627,7 @@ class AaveV3(BaseSDK):
|
|
|
2627
2627
|
|
|
2628
2628
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2629
2629
|
|
|
2630
|
-
async def
|
|
2630
|
+
async def aave_repay_async(
|
|
2631
2631
|
self,
|
|
2632
2632
|
*,
|
|
2633
2633
|
token: models.TokenEnum,
|
|
@@ -2635,14 +2635,14 @@ class AaveV3(BaseSDK):
|
|
|
2635
2635
|
models.AaveRepayRequestAmount, models.AaveRepayRequestAmountTypedDict
|
|
2636
2636
|
],
|
|
2637
2637
|
interest_rate_mode: models.InterestRateMode,
|
|
2638
|
-
chain: models.
|
|
2638
|
+
chain: models.AaveRepayRequestChain,
|
|
2639
2639
|
sender: str,
|
|
2640
2640
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2641
2641
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2642
2642
|
server_url: Optional[str] = None,
|
|
2643
2643
|
timeout_ms: Optional[int] = None,
|
|
2644
2644
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2645
|
-
) -> models.
|
|
2645
|
+
) -> models.TransactionResponse:
|
|
2646
2646
|
r"""Repay Loans
|
|
2647
2647
|
|
|
2648
2648
|
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
@@ -2656,7 +2656,7 @@ class AaveV3(BaseSDK):
|
|
|
2656
2656
|
<Info>
|
|
2657
2657
|
**Required Allowances**
|
|
2658
2658
|
|
|
2659
|
-
In order to make this transaction, token allowances need to be set
|
|
2659
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2660
2660
|
|
|
2661
2661
|
- `AaveV3Pool`
|
|
2662
2662
|
</Info>
|
|
@@ -2665,7 +2665,7 @@ class AaveV3(BaseSDK):
|
|
|
2665
2665
|
:param token: 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.
|
|
2666
2666
|
:param amount: The amount of the asset to repay
|
|
2667
2667
|
:param interest_rate_mode: On AAVE there are 2 different interest modes. A stable (but typically higher rate), or a variable rate.
|
|
2668
|
-
:param chain:
|
|
2668
|
+
:param chain:
|
|
2669
2669
|
:param sender: The address of the transaction sender.
|
|
2670
2670
|
:param on_behalf_of: The address on behalf of whom the supply is made
|
|
2671
2671
|
:param retries: Override the default retry configuration for this method
|
|
@@ -2694,7 +2694,7 @@ class AaveV3(BaseSDK):
|
|
|
2694
2694
|
|
|
2695
2695
|
req = self._build_request_async(
|
|
2696
2696
|
method="POST",
|
|
2697
|
-
path="/
|
|
2697
|
+
path="/v1/aave/repay",
|
|
2698
2698
|
base_url=base_url,
|
|
2699
2699
|
url_variables=url_variables,
|
|
2700
2700
|
request=request,
|
|
@@ -2723,7 +2723,7 @@ class AaveV3(BaseSDK):
|
|
|
2723
2723
|
hook_ctx=HookContext(
|
|
2724
2724
|
config=self.sdk_configuration,
|
|
2725
2725
|
base_url=base_url or "",
|
|
2726
|
-
operation_id="
|
|
2726
|
+
operation_id="v1_aave_repay",
|
|
2727
2727
|
oauth2_scopes=[],
|
|
2728
2728
|
security_source=self.sdk_configuration.security,
|
|
2729
2729
|
),
|
|
@@ -2734,7 +2734,7 @@ class AaveV3(BaseSDK):
|
|
|
2734
2734
|
|
|
2735
2735
|
response_data: Any = None
|
|
2736
2736
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2737
|
-
return unmarshal_json_response(models.
|
|
2737
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2738
2738
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2739
2739
|
response_data = unmarshal_json_response(
|
|
2740
2740
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2749,7 +2749,7 @@ class AaveV3(BaseSDK):
|
|
|
2749
2749
|
|
|
2750
2750
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2751
2751
|
|
|
2752
|
-
def
|
|
2752
|
+
def aave_withdraw(
|
|
2753
2753
|
self,
|
|
2754
2754
|
*,
|
|
2755
2755
|
token: models.TokenEnum,
|
|
@@ -2757,13 +2757,13 @@ class AaveV3(BaseSDK):
|
|
|
2757
2757
|
models.AaveWithdrawRequestAmount, models.AaveWithdrawRequestAmountTypedDict
|
|
2758
2758
|
],
|
|
2759
2759
|
recipient: str,
|
|
2760
|
-
chain: models.
|
|
2760
|
+
chain: models.AaveWithdrawRequestChain,
|
|
2761
2761
|
sender: str,
|
|
2762
2762
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2763
2763
|
server_url: Optional[str] = None,
|
|
2764
2764
|
timeout_ms: Optional[int] = None,
|
|
2765
2765
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2766
|
-
) -> models.
|
|
2766
|
+
) -> models.TransactionResponse:
|
|
2767
2767
|
r"""Unstake
|
|
2768
2768
|
|
|
2769
2769
|
This endpoint facilitates the withdrawal of collateral from the Aave protocol.
|
|
@@ -2778,7 +2778,7 @@ class AaveV3(BaseSDK):
|
|
|
2778
2778
|
<Info>
|
|
2779
2779
|
**Required Allowances**
|
|
2780
2780
|
|
|
2781
|
-
In order to make this transaction, token allowances need to be set
|
|
2781
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2782
2782
|
|
|
2783
2783
|
- `AaveV3Pool`
|
|
2784
2784
|
</Info>
|
|
@@ -2787,7 +2787,7 @@ class AaveV3(BaseSDK):
|
|
|
2787
2787
|
:param token: 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.
|
|
2788
2788
|
:param amount: The amount of the asset to withdraw
|
|
2789
2789
|
:param recipient: The address of the recipient of the withdrawn funds.
|
|
2790
|
-
:param chain:
|
|
2790
|
+
:param chain:
|
|
2791
2791
|
:param sender: The address of the transaction sender.
|
|
2792
2792
|
:param retries: Override the default retry configuration for this method
|
|
2793
2793
|
:param server_url: Override the default server URL for this method
|
|
@@ -2814,7 +2814,7 @@ class AaveV3(BaseSDK):
|
|
|
2814
2814
|
|
|
2815
2815
|
req = self._build_request(
|
|
2816
2816
|
method="POST",
|
|
2817
|
-
path="/
|
|
2817
|
+
path="/v1/aave/withdraw",
|
|
2818
2818
|
base_url=base_url,
|
|
2819
2819
|
url_variables=url_variables,
|
|
2820
2820
|
request=request,
|
|
@@ -2843,7 +2843,7 @@ class AaveV3(BaseSDK):
|
|
|
2843
2843
|
hook_ctx=HookContext(
|
|
2844
2844
|
config=self.sdk_configuration,
|
|
2845
2845
|
base_url=base_url or "",
|
|
2846
|
-
operation_id="
|
|
2846
|
+
operation_id="v1_aave_withdraw",
|
|
2847
2847
|
oauth2_scopes=[],
|
|
2848
2848
|
security_source=self.sdk_configuration.security,
|
|
2849
2849
|
),
|
|
@@ -2854,7 +2854,7 @@ class AaveV3(BaseSDK):
|
|
|
2854
2854
|
|
|
2855
2855
|
response_data: Any = None
|
|
2856
2856
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2857
|
-
return unmarshal_json_response(models.
|
|
2857
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2858
2858
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2859
2859
|
response_data = unmarshal_json_response(
|
|
2860
2860
|
errors.HTTPValidationErrorData, http_res
|
|
@@ -2869,7 +2869,7 @@ class AaveV3(BaseSDK):
|
|
|
2869
2869
|
|
|
2870
2870
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2871
2871
|
|
|
2872
|
-
async def
|
|
2872
|
+
async def aave_withdraw_async(
|
|
2873
2873
|
self,
|
|
2874
2874
|
*,
|
|
2875
2875
|
token: models.TokenEnum,
|
|
@@ -2877,13 +2877,13 @@ class AaveV3(BaseSDK):
|
|
|
2877
2877
|
models.AaveWithdrawRequestAmount, models.AaveWithdrawRequestAmountTypedDict
|
|
2878
2878
|
],
|
|
2879
2879
|
recipient: str,
|
|
2880
|
-
chain: models.
|
|
2880
|
+
chain: models.AaveWithdrawRequestChain,
|
|
2881
2881
|
sender: str,
|
|
2882
2882
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2883
2883
|
server_url: Optional[str] = None,
|
|
2884
2884
|
timeout_ms: Optional[int] = None,
|
|
2885
2885
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2886
|
-
) -> models.
|
|
2886
|
+
) -> models.TransactionResponse:
|
|
2887
2887
|
r"""Unstake
|
|
2888
2888
|
|
|
2889
2889
|
This endpoint facilitates the withdrawal of collateral from the Aave protocol.
|
|
@@ -2898,7 +2898,7 @@ class AaveV3(BaseSDK):
|
|
|
2898
2898
|
<Info>
|
|
2899
2899
|
**Required Allowances**
|
|
2900
2900
|
|
|
2901
|
-
In order to make this transaction, token allowances need to be set
|
|
2901
|
+
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
2902
2902
|
|
|
2903
2903
|
- `AaveV3Pool`
|
|
2904
2904
|
</Info>
|
|
@@ -2907,7 +2907,7 @@ class AaveV3(BaseSDK):
|
|
|
2907
2907
|
:param token: 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.
|
|
2908
2908
|
:param amount: The amount of the asset to withdraw
|
|
2909
2909
|
:param recipient: The address of the recipient of the withdrawn funds.
|
|
2910
|
-
:param chain:
|
|
2910
|
+
:param chain:
|
|
2911
2911
|
:param sender: The address of the transaction sender.
|
|
2912
2912
|
:param retries: Override the default retry configuration for this method
|
|
2913
2913
|
:param server_url: Override the default server URL for this method
|
|
@@ -2934,7 +2934,7 @@ class AaveV3(BaseSDK):
|
|
|
2934
2934
|
|
|
2935
2935
|
req = self._build_request_async(
|
|
2936
2936
|
method="POST",
|
|
2937
|
-
path="/
|
|
2937
|
+
path="/v1/aave/withdraw",
|
|
2938
2938
|
base_url=base_url,
|
|
2939
2939
|
url_variables=url_variables,
|
|
2940
2940
|
request=request,
|
|
@@ -2963,7 +2963,7 @@ class AaveV3(BaseSDK):
|
|
|
2963
2963
|
hook_ctx=HookContext(
|
|
2964
2964
|
config=self.sdk_configuration,
|
|
2965
2965
|
base_url=base_url or "",
|
|
2966
|
-
operation_id="
|
|
2966
|
+
operation_id="v1_aave_withdraw",
|
|
2967
2967
|
oauth2_scopes=[],
|
|
2968
2968
|
security_source=self.sdk_configuration.security,
|
|
2969
2969
|
),
|
|
@@ -2974,7 +2974,7 @@ class AaveV3(BaseSDK):
|
|
|
2974
2974
|
|
|
2975
2975
|
response_data: Any = None
|
|
2976
2976
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2977
|
-
return unmarshal_json_response(models.
|
|
2977
|
+
return unmarshal_json_response(models.TransactionResponse, http_res)
|
|
2978
2978
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2979
2979
|
response_data = unmarshal_json_response(
|
|
2980
2980
|
errors.HTTPValidationErrorData, http_res
|