compass_api_sdk 0.1.12__py3-none-any.whl → 0.1.14__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 +2 -2
- compass_api_sdk/aave_v3.py +226 -0
- compass_api_sdk/models/__init__.py +13 -122
- compass_api_sdk/models/aave_rateop.py +97 -0
- compass_api_sdk/models/aaverateresponse.py +40 -0
- compass_api_sdk/models/multicallaction.py +14 -56
- compass_api_sdk/models/multicallactiontype.py +0 -7
- compass_api_sdk/sky.py +24 -8
- {compass_api_sdk-0.1.12.dist-info → compass_api_sdk-0.1.14.dist-info}/METADATA +10 -9
- {compass_api_sdk-0.1.12.dist-info → compass_api_sdk-0.1.14.dist-info}/RECORD +11 -16
- compass_api_sdk/models/aerodromeaddliquidityethparams.py +0 -153
- compass_api_sdk/models/aerodromeaddliquidityparams.py +0 -160
- compass_api_sdk/models/aerodromeremoveliquidityethrequest.py +0 -139
- compass_api_sdk/models/aerodromeremoveliquidityrequest.py +0 -152
- compass_api_sdk/models/aerodromeswapethfortokenparams.py +0 -110
- compass_api_sdk/models/aerodromeswaptokenforethparams.py +0 -110
- compass_api_sdk/models/aerodromeswaptokensparams.py +0 -135
- {compass_api_sdk-0.1.12.dist-info → compass_api_sdk-0.1.14.dist-info}/WHEEL +0 -0
|
@@ -9,13 +9,6 @@ class MulticallActionType(str, Enum):
|
|
|
9
9
|
AAVE_REPAY = "AAVE_REPAY"
|
|
10
10
|
AAVE_SUPPLY = "AAVE_SUPPLY"
|
|
11
11
|
AAVE_WITHDRAW = "AAVE_WITHDRAW"
|
|
12
|
-
AERODROME_BASIC_ADD_LIQUIDITY = "AERODROME_BASIC_ADD_LIQUIDITY"
|
|
13
|
-
AERODROME_BASIC_ADD_LIQUIDITY_ETH = "AERODROME_BASIC_ADD_LIQUIDITY_ETH"
|
|
14
|
-
AERODROME_BASIC_REMOVE_LIQUIDITY = "AERODROME_BASIC_REMOVE_LIQUIDITY"
|
|
15
|
-
AERODROME_BASIC_REMOVE_LIQUIDITY_ETH = "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH"
|
|
16
|
-
AERODROME_BASIC_SWAP_ETH_FOR_TOKEN = "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN"
|
|
17
|
-
AERODROME_BASIC_SWAP_TOKEN = "AERODROME_BASIC_SWAP_TOKEN"
|
|
18
|
-
AERODROME_BASIC_SWAP_TOKEN_FOR_ETH = "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH"
|
|
19
12
|
AERODROME_SLIPSTREAM_BUY_EXACTLY = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
20
13
|
AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY"
|
|
21
14
|
AERODROME_SLIPSTREAM_MINT_LIQUIDITY = "AERODROME_SLIPSTREAM_MINT_LIQUIDITY"
|
compass_api_sdk/sky.py
CHANGED
|
@@ -215,9 +215,13 @@ class Sky(BaseSDK):
|
|
|
215
215
|
) -> models.UnsignedTransaction:
|
|
216
216
|
r"""Buy USDS
|
|
217
217
|
|
|
218
|
-
Buy USDS with DAI or USDC on a 1:1 basis.
|
|
218
|
+
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
If buying with DAI, user will need to set an allowance on the DAI contract for the
|
|
221
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
222
|
+
|
|
223
|
+
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
224
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
221
225
|
|
|
222
226
|
:param token_in: The token you would like to swap 1:1 for USDS. Choose from DAI or USDC.
|
|
223
227
|
:param amount: The amount of USDS you would like to buy 1:1 with 'token_in'.
|
|
@@ -323,9 +327,13 @@ class Sky(BaseSDK):
|
|
|
323
327
|
) -> models.UnsignedTransaction:
|
|
324
328
|
r"""Buy USDS
|
|
325
329
|
|
|
326
|
-
Buy USDS with DAI or USDC on a 1:1 basis.
|
|
330
|
+
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
327
331
|
|
|
328
|
-
|
|
332
|
+
If buying with DAI, user will need to set an allowance on the DAI contract for the
|
|
333
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
334
|
+
|
|
335
|
+
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
336
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
329
337
|
|
|
330
338
|
:param token_in: The token you would like to swap 1:1 for USDS. Choose from DAI or USDC.
|
|
331
339
|
:param amount: The amount of USDS you would like to buy 1:1 with 'token_in'.
|
|
@@ -433,9 +441,13 @@ class Sky(BaseSDK):
|
|
|
433
441
|
) -> models.UnsignedTransaction:
|
|
434
442
|
r"""Sell USDS
|
|
435
443
|
|
|
436
|
-
Sell USDS for DAI or USDC on a 1:1 basis.
|
|
444
|
+
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
437
445
|
|
|
438
|
-
|
|
446
|
+
If swapping to DAI, user will need to set an allowance on the USDS contract for the
|
|
447
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
448
|
+
|
|
449
|
+
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
450
|
+
'SkyUsdcUsdsConverter' contract beforehand.
|
|
439
451
|
|
|
440
452
|
:param token_out: The token you would like to swap 1:1 with USDS. Choose from DAI or USDC.
|
|
441
453
|
:param amount: The amount of USDS you would like to sell 1:1 for 'token_out'.
|
|
@@ -543,9 +555,13 @@ class Sky(BaseSDK):
|
|
|
543
555
|
) -> models.UnsignedTransaction:
|
|
544
556
|
r"""Sell USDS
|
|
545
557
|
|
|
546
|
-
Sell USDS for DAI or USDC on a 1:1 basis.
|
|
558
|
+
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
547
559
|
|
|
548
|
-
|
|
560
|
+
If swapping to DAI, user will need to set an allowance on the USDS contract for the
|
|
561
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
562
|
+
|
|
563
|
+
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
564
|
+
'SkyUsdcUsdsConverter' contract beforehand.
|
|
549
565
|
|
|
550
566
|
:param token_out: The token you would like to swap 1:1 with USDS. Choose from DAI or USDC.
|
|
551
567
|
:param amount: The amount of USDS you would like to sell 1:1 for 'token_out'.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: compass_api_sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.14
|
|
4
4
|
Summary: Compass API Python SDK
|
|
5
5
|
Author: royalnine
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -135,7 +135,7 @@ with CompassAPISDK(
|
|
|
135
135
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
136
136
|
) as cas_client:
|
|
137
137
|
|
|
138
|
-
res = cas_client.aave_v3.
|
|
138
|
+
res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
|
|
139
139
|
|
|
140
140
|
# Handle response
|
|
141
141
|
print(res)
|
|
@@ -155,7 +155,7 @@ async def main():
|
|
|
155
155
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
156
156
|
) as cas_client:
|
|
157
157
|
|
|
158
|
-
res = await cas_client.aave_v3.
|
|
158
|
+
res = await cas_client.aave_v3.rate_async(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
|
|
159
159
|
|
|
160
160
|
# Handle response
|
|
161
161
|
print(res)
|
|
@@ -184,7 +184,7 @@ with CompassAPISDK(
|
|
|
184
184
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
185
185
|
) as cas_client:
|
|
186
186
|
|
|
187
|
-
res = cas_client.aave_v3.
|
|
187
|
+
res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
|
|
188
188
|
|
|
189
189
|
# Handle response
|
|
190
190
|
print(res)
|
|
@@ -200,6 +200,7 @@ with CompassAPISDK(
|
|
|
200
200
|
|
|
201
201
|
### [aave_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md)
|
|
202
202
|
|
|
203
|
+
* [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest rates
|
|
203
204
|
* [token_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#token_price) - Token prices
|
|
204
205
|
* [liquidity_change](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#liquidity_change) - Liquidity index
|
|
205
206
|
* [user_position_summary](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#user_position_summary) - Positions - total
|
|
@@ -297,7 +298,7 @@ with CompassAPISDK(
|
|
|
297
298
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
298
299
|
) as cas_client:
|
|
299
300
|
|
|
300
|
-
res = cas_client.aave_v3.
|
|
301
|
+
res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC,
|
|
301
302
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
|
302
303
|
|
|
303
304
|
# Handle response
|
|
@@ -316,7 +317,7 @@ with CompassAPISDK(
|
|
|
316
317
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
317
318
|
) as cas_client:
|
|
318
319
|
|
|
319
|
-
res = cas_client.aave_v3.
|
|
320
|
+
res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
|
|
320
321
|
|
|
321
322
|
# Handle response
|
|
322
323
|
print(res)
|
|
@@ -338,7 +339,7 @@ By default, an API error will raise a errors.APIError exception, which has the f
|
|
|
338
339
|
| `.raw_response` | *httpx.Response* | The raw HTTP response |
|
|
339
340
|
| `.body` | *str* | The response content |
|
|
340
341
|
|
|
341
|
-
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `
|
|
342
|
+
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `rate_async` method may raise the following exceptions:
|
|
342
343
|
|
|
343
344
|
| Error Type | Status Code | Content Type |
|
|
344
345
|
| -------------------------- | ----------- | ---------------- |
|
|
@@ -357,7 +358,7 @@ with CompassAPISDK(
|
|
|
357
358
|
res = None
|
|
358
359
|
try:
|
|
359
360
|
|
|
360
|
-
res = cas_client.aave_v3.
|
|
361
|
+
res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
|
|
361
362
|
|
|
362
363
|
# Handle response
|
|
363
364
|
print(res)
|
|
@@ -386,7 +387,7 @@ with CompassAPISDK(
|
|
|
386
387
|
api_key_auth="<YOUR_API_KEY_HERE>",
|
|
387
388
|
) as cas_client:
|
|
388
389
|
|
|
389
|
-
res = cas_client.aave_v3.
|
|
390
|
+
res = cas_client.aave_v3.rate(chain=models.AaveRateChain.ARBITRUM_MAINNET, token=models.AaveRateToken.USDC)
|
|
390
391
|
|
|
391
392
|
# Handle response
|
|
392
393
|
print(res)
|
|
@@ -3,17 +3,18 @@ compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpv
|
|
|
3
3
|
compass_api_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
5
5
|
compass_api_sdk/_hooks/types.py,sha256=VC7TZz0BiM721MghXneEovG3UkaktRkt1OhMY3iLmZM,2818
|
|
6
|
-
compass_api_sdk/_version.py,sha256=
|
|
7
|
-
compass_api_sdk/aave_v3.py,sha256=
|
|
6
|
+
compass_api_sdk/_version.py,sha256=4Y0qqGB6e8m9lT082f2B2TuYVFZ_gDLPlfX7oRpYPVE,476
|
|
7
|
+
compass_api_sdk/aave_v3.py,sha256=NvBRCg7v6ldYV5MAB3k541Bikh3xESC5-eVU8HJXZEE,98662
|
|
8
8
|
compass_api_sdk/aerodrome_slipstream.py,sha256=iZLOFguQiZD8eMNIxV_4h8JSr9P-V4gISxNCXisVYN8,83389
|
|
9
9
|
compass_api_sdk/basesdk.py,sha256=29RfgnfgQq_cRx8OHdQEdJuJ2DrgRZlzGIPC-_6-2bM,12136
|
|
10
10
|
compass_api_sdk/errors/__init__.py,sha256=f8nyj2IhW5h_xtEeg6cfKgByLkqowLv0Fxm0hUofQPs,257
|
|
11
11
|
compass_api_sdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
12
12
|
compass_api_sdk/errors/httpvalidationerror.py,sha256=KBdpK3fYQoeMB-3m9dLKiMYimFN7B9VLma6YqMKX5k0,671
|
|
13
13
|
compass_api_sdk/httpclient.py,sha256=xAUX3nxG-fwYAE9lfv9uaspYKMFRJf5NM79mV2HKb1I,5486
|
|
14
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
14
|
+
compass_api_sdk/models/__init__.py,sha256=hHG2wEN2flnCUQgMYy_UPvSiNtC-4BOm-8KiVA0Ui-w,44546
|
|
15
15
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=ruwlHogJUn6HGWtoRNwEmoA6kXdu8rbDrxzJo-e9UmA,1461
|
|
16
16
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=tR_nsySpTiXHxIreoDJ-Bk07wZgTLGLM05oWxsfpbrM,2801
|
|
17
|
+
compass_api_sdk/models/aave_rateop.py,sha256=kJgtnlxry6YRxLZvCNV4kKhHOT2Y5duKt-ADyh2NrNg,2405
|
|
17
18
|
compass_api_sdk/models/aave_token_priceop.py,sha256=RsaN0gHPtm8o5fdE_1T_ZZjvXADapfZR8YLjEGE_1VA,2465
|
|
18
19
|
compass_api_sdk/models/aave_user_position_per_tokenop.py,sha256=MF_eaxTQkK4sC7ONiVHOcb0PJJBnrAh1j1_XredC3aU,2735
|
|
19
20
|
compass_api_sdk/models/aave_user_position_summaryop.py,sha256=IreTBDQ92L3CVsTQD_Bc50yt6m5ZM2yuUEYMFhrFkJQ,1060
|
|
@@ -22,6 +23,7 @@ compass_api_sdk/models/aaveborrowrequest.py,sha256=pVu6tIgYojyv2mF0_adDX1LM2uvMa
|
|
|
22
23
|
compass_api_sdk/models/aavehistoricaltransactionbase.py,sha256=8v4lYDNvfZNJo5D2Ii4qLY0jTmOCUpRZaoEdVJMrcdM,3478
|
|
23
24
|
compass_api_sdk/models/aavehistoricaltransactionsresponse.py,sha256=UmZGngGfIm0WNWHOmPS9zFy5X6-AJmcyyvnhJEJ7VQk,811
|
|
24
25
|
compass_api_sdk/models/aaveliquiditychangeresponse.py,sha256=G_fjNFMMAViJVXUejTdqNDyNrv-BieQDDpT6iwtwCwg,811
|
|
26
|
+
compass_api_sdk/models/aaverateresponse.py,sha256=7Ra_FKYbGrm7ZqzNi8-1T0v2xDAGyZf6Iw5Juh1bXBI,1156
|
|
25
27
|
compass_api_sdk/models/aaverepayparams.py,sha256=ZQLgjGCZUK20dZ7UgrT3j4c6jn2Sq41M15riWbYh-ss,2858
|
|
26
28
|
compass_api_sdk/models/aaverepayrequest.py,sha256=ZIvYL0pamDkJDJjCRrLZ5Q6e2vQp-wptob9wGCAQS0g,3117
|
|
27
29
|
compass_api_sdk/models/aavesupplyparams.py,sha256=0ZntRNtspIaXs09S1ckA8jL3xKbBL-SApMZNkuE76Ks,2564
|
|
@@ -34,12 +36,8 @@ compass_api_sdk/models/aavewithdrawrequest.py,sha256=gl9qAknwFkrHB6HwecaZrjV4z92
|
|
|
34
36
|
compass_api_sdk/models/action.py,sha256=LxhxMxM1if4CGM_GJF-mGYwBnQOlkCaczSuGCp3oGTs,391
|
|
35
37
|
compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py,sha256=4at6KH--Cw5G6QasipHEuBBbNdPSaO4PCaVS22Krujw,1267
|
|
36
38
|
compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py,sha256=6n7rv1pcMve_3chQvgLT1vBKeimp-XPNK7-mCfv9Dwc,4578
|
|
37
|
-
compass_api_sdk/models/aerodromeaddliquidityethparams.py,sha256=1taXq92sPvxjDNRKQFXiFrrYcg7CKUnTH4s4nJc5Z04,5366
|
|
38
|
-
compass_api_sdk/models/aerodromeaddliquidityparams.py,sha256=XkLS-48fubuAl8-uWl1IyUlSeciMX1iw9qZ9Z8Q9Ccs,5621
|
|
39
39
|
compass_api_sdk/models/aerodromelppositionsresponse.py,sha256=FpFiz78711CsO1r3lLo-YaPldHL6UTVruNxhWlXkhOY,861
|
|
40
40
|
compass_api_sdk/models/aerodromeposition.py,sha256=I-SHEmis8d5lGu37mauJPomjQKJs4_lvgtCYER5Fn3o,1695
|
|
41
|
-
compass_api_sdk/models/aerodromeremoveliquidityethrequest.py,sha256=aMREQj87xMsZ7bF-bg9ifJS1AtQ8iiL4l6Jaw8jK9Ck,4977
|
|
42
|
-
compass_api_sdk/models/aerodromeremoveliquidityrequest.py,sha256=s8FfX_bhf3wYgr1xn891YPQZS4QwCh3i3OpKDrZs3W0,5330
|
|
43
41
|
compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py,sha256=ylpVCckGjwfTHQFG5msi6avuYcYN6XePLAQLLpoSZ3I,2815
|
|
44
42
|
compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py,sha256=fjIMtPl1bJ_RwzjkYoosKPvP_TtiCXrnfTG1DSi71Lo,3074
|
|
45
43
|
compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py,sha256=qOJLwV1Y270Lm9F0cwdD3_5QeTdiBBi6QyQ8y1_kV1Y,4221
|
|
@@ -51,9 +49,6 @@ compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py,sha256=_SXemwKeWh
|
|
|
51
49
|
compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py,sha256=PO94biGABjm6lkTQQk-Kx436fi89-zOncK7ekoanB2U,3231
|
|
52
50
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py,sha256=DQKPJCyd66mFq6irFqMh7wvAQyF_HniRxoASPmmsvcQ,2265
|
|
53
51
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py,sha256=DXbQqFH6qRyrnqQ61y8O7regkqgu_kqY0yY1AamZXTs,1738
|
|
54
|
-
compass_api_sdk/models/aerodromeswapethfortokenparams.py,sha256=9Bm5QT080bk92ubF6FQ52TeNuL6U4kgl0ZVl26tH5OE,4051
|
|
55
|
-
compass_api_sdk/models/aerodromeswaptokenforethparams.py,sha256=1VJmGnBNwiFf0Sf8HwIG-E9fOYj9HZualuzROrdeIlI,4053
|
|
56
|
-
compass_api_sdk/models/aerodromeswaptokensparams.py,sha256=6ZWbvh3DZ7L76nLR85KKXXjiGyETI6WOm3kGwxLXoMY,4454
|
|
57
52
|
compass_api_sdk/models/allowanceinforesponse.py,sha256=OIvJVxMrRNBay8DIeqlwGBFQ1fbaGVWlaGsOZpo40fY,1393
|
|
58
53
|
compass_api_sdk/models/borrow.py,sha256=Yq3HrMPlvcqKN41vdrJpDuW6AeZ9vkVfvLKbmvWM4NE,928
|
|
59
54
|
compass_api_sdk/models/chain.py,sha256=TzxP0Ujy0L-o3__gggsKeJIWMaflQTNnNSEaXBnSlGU,304
|
|
@@ -93,8 +88,8 @@ compass_api_sdk/models/morphosupplycollateralrequest.py,sha256=gfP9uKLTNquyWvPcK
|
|
|
93
88
|
compass_api_sdk/models/morphovault.py,sha256=hlBsWy_9G7dtwBooeSEVhz-OVTjyzl1SSqarqRq1ph8,1337
|
|
94
89
|
compass_api_sdk/models/morphowithdrawcollateralrequest.py,sha256=TVfxhB8eSgu8xeO3eL7XAiCB54gopvpZpb3dgNfVNXs,3111
|
|
95
90
|
compass_api_sdk/models/morphowithdrawrequest.py,sha256=PCrsA5Tg8zI8LiraHqniLvj6mhbvMZUCn6gKmUvj-pM,2309
|
|
96
|
-
compass_api_sdk/models/multicallaction.py,sha256=
|
|
97
|
-
compass_api_sdk/models/multicallactiontype.py,sha256=
|
|
91
|
+
compass_api_sdk/models/multicallaction.py,sha256=l3HyRN2OIiBWGSVexXZCdce8IOvdbwisUwydvoP3UeM,4559
|
|
92
|
+
compass_api_sdk/models/multicallactiontype.py,sha256=8vkak6f6uslIgD8DG8UnynCI9GhU69sIxk6Fm9pLT-4,1168
|
|
98
93
|
compass_api_sdk/models/multicallauthorizationrequest.py,sha256=h5-2acLlhV9assgIIHyVIgTak1IJathqa-viS-PkvMA,1155
|
|
99
94
|
compass_api_sdk/models/multicallauthorizationresponse.py,sha256=3jjdz9Mz-tKjhBzZbVaJW51no58HSqcxfHJwuZsgnhg,914
|
|
100
95
|
compass_api_sdk/models/multicallexecuterequest.py,sha256=ST9BeTeptLKi6UO7lWH4-mYiYuG7t5scF1CLnb4Sbd0,1105
|
|
@@ -159,7 +154,7 @@ compass_api_sdk/morpho.py,sha256=5bLWY1vW0CjcsOryDBsFwWwFyhdQ1wCPIWHQl9trjQU,107
|
|
|
159
154
|
compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
160
155
|
compass_api_sdk/sdk.py,sha256=ivTdGJ_eI9K0k5ZuJWPhhCiHwZ0vHB-VgyiILFTjEeA,6101
|
|
161
156
|
compass_api_sdk/sdkconfiguration.py,sha256=K-B67o2xftk7Rh5z59xBL0TcCn_XhX0Yh_JePPegvvU,1764
|
|
162
|
-
compass_api_sdk/sky.py,sha256=
|
|
157
|
+
compass_api_sdk/sky.py,sha256=rjtLEHGEFqd4bIkXAUmcut_JlsQqUjH1LDfZ63PqGk8,43557
|
|
163
158
|
compass_api_sdk/token_sdk.py,sha256=dRB0-HHsHma1Q9O6gKuBSaTGIVd9LBCqE5opq7F2RZE,34562
|
|
164
159
|
compass_api_sdk/transaction_batching.py,sha256=mXk4XrANAAXL8AV0Sh5Ct7yirEjPz67sniOI3yReLjc,19165
|
|
165
160
|
compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
@@ -182,6 +177,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
|
|
|
182
177
|
compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
183
178
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
184
179
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
185
|
-
compass_api_sdk-0.1.
|
|
186
|
-
compass_api_sdk-0.1.
|
|
187
|
-
compass_api_sdk-0.1.
|
|
180
|
+
compass_api_sdk-0.1.14.dist-info/METADATA,sha256=fUe0-TO6qrDe4C4QNCAj_2-jpwq45U4f3G_eEBxnHD0,24302
|
|
181
|
+
compass_api_sdk-0.1.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
182
|
+
compass_api_sdk-0.1.14.dist-info/RECORD,,
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
|
-
from compass_api_sdk.types import (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AmountTokenDesiredTypedDict = TypeAliasType(
|
|
18
|
-
"AmountTokenDesiredTypedDict", Union[float, str]
|
|
19
|
-
)
|
|
20
|
-
r"""The amount of token you want to provide"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AmountTokenDesired = TypeAliasType("AmountTokenDesired", Union[float, str])
|
|
24
|
-
r"""The amount of token you want to provide"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
AmountEthDesiredTypedDict = TypeAliasType(
|
|
28
|
-
"AmountEthDesiredTypedDict", Union[float, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The amount of WETH you want to provide"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
AmountEthDesired = TypeAliasType("AmountEthDesired", Union[float, str])
|
|
34
|
-
r"""The amount of WETH you want to provide"""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict = TypeAliasType(
|
|
38
|
-
"AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict", Union[float, str]
|
|
39
|
-
)
|
|
40
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin = TypeAliasType(
|
|
44
|
-
"AerodromeAddLiquidityEthParamsAmountTokenMin", Union[float, str]
|
|
45
|
-
)
|
|
46
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
AerodromeAddLiquidityEthParamsAmountEthMinTypedDict = TypeAliasType(
|
|
50
|
-
"AerodromeAddLiquidityEthParamsAmountEthMinTypedDict", Union[float, str]
|
|
51
|
-
)
|
|
52
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
AerodromeAddLiquidityEthParamsAmountEthMin = TypeAliasType(
|
|
56
|
-
"AerodromeAddLiquidityEthParamsAmountEthMin", Union[float, str]
|
|
57
|
-
)
|
|
58
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class AerodromeAddLiquidityEthParamsTypedDict(TypedDict):
|
|
62
|
-
r"""Endpoint parameters for adding ETH liquidity on Aerodrome Basic.
|
|
63
|
-
|
|
64
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool
|
|
65
|
-
with ETH as one of the tokens.
|
|
66
|
-
"""
|
|
67
|
-
|
|
68
|
-
token: TokenEnum
|
|
69
|
-
r"""A class representing the token.
|
|
70
|
-
|
|
71
|
-
This class is used to represent the token in the system. Notice individual
|
|
72
|
-
endpoints' documentation where per chain tokens are presented.
|
|
73
|
-
"""
|
|
74
|
-
stable: bool
|
|
75
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
76
|
-
amount_token_desired: AmountTokenDesiredTypedDict
|
|
77
|
-
r"""The amount of token you want to provide"""
|
|
78
|
-
amount_eth_desired: AmountEthDesiredTypedDict
|
|
79
|
-
r"""The amount of WETH you want to provide"""
|
|
80
|
-
amount_token_min: AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict
|
|
81
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
82
|
-
amount_eth_min: AerodromeAddLiquidityEthParamsAmountEthMinTypedDict
|
|
83
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
84
|
-
deadline: Nullable[int]
|
|
85
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
86
|
-
to: NotRequired[Nullable[str]]
|
|
87
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
class AerodromeAddLiquidityEthParams(BaseModel):
|
|
91
|
-
r"""Endpoint parameters for adding ETH liquidity on Aerodrome Basic.
|
|
92
|
-
|
|
93
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool
|
|
94
|
-
with ETH as one of the tokens.
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
token: TokenEnum
|
|
98
|
-
r"""A class representing the token.
|
|
99
|
-
|
|
100
|
-
This class is used to represent the token in the system. Notice individual
|
|
101
|
-
endpoints' documentation where per chain tokens are presented.
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
stable: bool
|
|
105
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
106
|
-
|
|
107
|
-
amount_token_desired: AmountTokenDesired
|
|
108
|
-
r"""The amount of token you want to provide"""
|
|
109
|
-
|
|
110
|
-
amount_eth_desired: AmountEthDesired
|
|
111
|
-
r"""The amount of WETH you want to provide"""
|
|
112
|
-
|
|
113
|
-
amount_token_min: AerodromeAddLiquidityEthParamsAmountTokenMin
|
|
114
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
115
|
-
|
|
116
|
-
amount_eth_min: AerodromeAddLiquidityEthParamsAmountEthMin
|
|
117
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
118
|
-
|
|
119
|
-
deadline: Nullable[int]
|
|
120
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
121
|
-
|
|
122
|
-
to: OptionalNullable[str] = UNSET
|
|
123
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
124
|
-
|
|
125
|
-
@model_serializer(mode="wrap")
|
|
126
|
-
def serialize_model(self, handler):
|
|
127
|
-
optional_fields = ["to"]
|
|
128
|
-
nullable_fields = ["to", "deadline"]
|
|
129
|
-
null_default_fields = []
|
|
130
|
-
|
|
131
|
-
serialized = handler(self)
|
|
132
|
-
|
|
133
|
-
m = {}
|
|
134
|
-
|
|
135
|
-
for n, f in type(self).model_fields.items():
|
|
136
|
-
k = f.alias or n
|
|
137
|
-
val = serialized.get(k)
|
|
138
|
-
serialized.pop(k, None)
|
|
139
|
-
|
|
140
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
141
|
-
is_set = (
|
|
142
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
143
|
-
or k in null_default_fields
|
|
144
|
-
) # pylint: disable=no-member
|
|
145
|
-
|
|
146
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
147
|
-
m[k] = val
|
|
148
|
-
elif val != UNSET_SENTINEL and (
|
|
149
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
150
|
-
):
|
|
151
|
-
m[k] = val
|
|
152
|
-
|
|
153
|
-
return m
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
|
-
from compass_api_sdk.types import (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AmountADesiredTypedDict = TypeAliasType("AmountADesiredTypedDict", Union[float, str])
|
|
18
|
-
r"""The amount of token A you want to provide"""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
AmountADesired = TypeAliasType("AmountADesired", Union[float, str])
|
|
22
|
-
r"""The amount of token A you want to provide"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
AmountBDesiredTypedDict = TypeAliasType("AmountBDesiredTypedDict", Union[float, str])
|
|
26
|
-
r"""The amount of token B you want to provide"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AmountBDesired = TypeAliasType("AmountBDesired", Union[float, str])
|
|
30
|
-
r"""The amount of token B you want to provide"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
AerodromeAddLiquidityParamsAmountAMinTypedDict = TypeAliasType(
|
|
34
|
-
"AerodromeAddLiquidityParamsAmountAMinTypedDict", Union[float, str]
|
|
35
|
-
)
|
|
36
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
AerodromeAddLiquidityParamsAmountAMin = TypeAliasType(
|
|
40
|
-
"AerodromeAddLiquidityParamsAmountAMin", Union[float, str]
|
|
41
|
-
)
|
|
42
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
AerodromeAddLiquidityParamsAmountBMinTypedDict = TypeAliasType(
|
|
46
|
-
"AerodromeAddLiquidityParamsAmountBMinTypedDict", Union[float, str]
|
|
47
|
-
)
|
|
48
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
AerodromeAddLiquidityParamsAmountBMin = TypeAliasType(
|
|
52
|
-
"AerodromeAddLiquidityParamsAmountBMin", Union[float, str]
|
|
53
|
-
)
|
|
54
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
class AerodromeAddLiquidityParamsTypedDict(TypedDict):
|
|
58
|
-
r"""Endpoint parameters for adding liquidity on Aerodrome Basic.
|
|
59
|
-
|
|
60
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool.
|
|
61
|
-
"""
|
|
62
|
-
|
|
63
|
-
token_a: TokenEnum
|
|
64
|
-
r"""A class representing the token.
|
|
65
|
-
|
|
66
|
-
This class is used to represent the token in the system. Notice individual
|
|
67
|
-
endpoints' documentation where per chain tokens are presented.
|
|
68
|
-
"""
|
|
69
|
-
token_b: TokenEnum
|
|
70
|
-
r"""A class representing the token.
|
|
71
|
-
|
|
72
|
-
This class is used to represent the token in the system. Notice individual
|
|
73
|
-
endpoints' documentation where per chain tokens are presented.
|
|
74
|
-
"""
|
|
75
|
-
stable: bool
|
|
76
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
77
|
-
amount_a_desired: AmountADesiredTypedDict
|
|
78
|
-
r"""The amount of token A you want to provide"""
|
|
79
|
-
amount_b_desired: AmountBDesiredTypedDict
|
|
80
|
-
r"""The amount of token B you want to provide"""
|
|
81
|
-
amount_a_min: AerodromeAddLiquidityParamsAmountAMinTypedDict
|
|
82
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
83
|
-
amount_b_min: AerodromeAddLiquidityParamsAmountBMinTypedDict
|
|
84
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
85
|
-
deadline: Nullable[int]
|
|
86
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
87
|
-
to: NotRequired[Nullable[str]]
|
|
88
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
class AerodromeAddLiquidityParams(BaseModel):
|
|
92
|
-
r"""Endpoint parameters for adding liquidity on Aerodrome Basic.
|
|
93
|
-
|
|
94
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool.
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
token_a: TokenEnum
|
|
98
|
-
r"""A class representing the token.
|
|
99
|
-
|
|
100
|
-
This class is used to represent the token in the system. Notice individual
|
|
101
|
-
endpoints' documentation where per chain tokens are presented.
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
token_b: TokenEnum
|
|
105
|
-
r"""A class representing the token.
|
|
106
|
-
|
|
107
|
-
This class is used to represent the token in the system. Notice individual
|
|
108
|
-
endpoints' documentation where per chain tokens are presented.
|
|
109
|
-
"""
|
|
110
|
-
|
|
111
|
-
stable: bool
|
|
112
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
113
|
-
|
|
114
|
-
amount_a_desired: AmountADesired
|
|
115
|
-
r"""The amount of token A you want to provide"""
|
|
116
|
-
|
|
117
|
-
amount_b_desired: AmountBDesired
|
|
118
|
-
r"""The amount of token B you want to provide"""
|
|
119
|
-
|
|
120
|
-
amount_a_min: AerodromeAddLiquidityParamsAmountAMin
|
|
121
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
122
|
-
|
|
123
|
-
amount_b_min: AerodromeAddLiquidityParamsAmountBMin
|
|
124
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
125
|
-
|
|
126
|
-
deadline: Nullable[int]
|
|
127
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
128
|
-
|
|
129
|
-
to: OptionalNullable[str] = UNSET
|
|
130
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
131
|
-
|
|
132
|
-
@model_serializer(mode="wrap")
|
|
133
|
-
def serialize_model(self, handler):
|
|
134
|
-
optional_fields = ["to"]
|
|
135
|
-
nullable_fields = ["to", "deadline"]
|
|
136
|
-
null_default_fields = []
|
|
137
|
-
|
|
138
|
-
serialized = handler(self)
|
|
139
|
-
|
|
140
|
-
m = {}
|
|
141
|
-
|
|
142
|
-
for n, f in type(self).model_fields.items():
|
|
143
|
-
k = f.alias or n
|
|
144
|
-
val = serialized.get(k)
|
|
145
|
-
serialized.pop(k, None)
|
|
146
|
-
|
|
147
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
148
|
-
is_set = (
|
|
149
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
150
|
-
or k in null_default_fields
|
|
151
|
-
) # pylint: disable=no-member
|
|
152
|
-
|
|
153
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
154
|
-
m[k] = val
|
|
155
|
-
elif val != UNSET_SENTINEL and (
|
|
156
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
157
|
-
):
|
|
158
|
-
m[k] = val
|
|
159
|
-
|
|
160
|
-
return m
|