compass_api_sdk 0.4.0__py3-none-any.whl → 0.4.1__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 +16 -16
- compass_api_sdk/aerodrome_slipstream.py +20 -20
- compass_api_sdk/models/__init__.py +6 -3
- compass_api_sdk/models/batcheduseroperationsresponse.py +3 -3
- compass_api_sdk/models/txresponse.py +18 -0
- compass_api_sdk/models/{batcheduseroperation.py → useroperationresponse.py} +4 -4
- compass_api_sdk/morpho.py +28 -28
- compass_api_sdk/sky.py +16 -16
- compass_api_sdk/token_sdk.py +4 -4
- compass_api_sdk/uniswap_v3.py +20 -20
- compass_api_sdk/universal.py +12 -12
- {compass_api_sdk-0.4.0.dist-info → compass_api_sdk-0.4.1.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.4.0.dist-info → compass_api_sdk-0.4.1.dist-info}/RECORD +15 -14
- {compass_api_sdk-0.4.0.dist-info → compass_api_sdk-0.4.1.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.4.
|
|
6
|
+
__version__: str = "0.4.1"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.605.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.4.
|
|
8
|
+
__gen_version__: str = "2.605.6"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.4.1 2.605.6 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
compass_api_sdk/aave_v3.py
CHANGED
|
@@ -1994,7 +1994,7 @@ class AaveV3(BaseSDK):
|
|
|
1994
1994
|
server_url: Optional[str] = None,
|
|
1995
1995
|
timeout_ms: Optional[int] = None,
|
|
1996
1996
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1997
|
-
) -> models.
|
|
1997
|
+
) -> models.TxResponse:
|
|
1998
1998
|
r"""Supply/Lend
|
|
1999
1999
|
|
|
2000
2000
|
By supplying assets, users can earn interest on their deposits.
|
|
@@ -2076,7 +2076,7 @@ class AaveV3(BaseSDK):
|
|
|
2076
2076
|
|
|
2077
2077
|
response_data: Any = None
|
|
2078
2078
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2079
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2079
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2080
2080
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2081
2081
|
response_data = utils.unmarshal_json(
|
|
2082
2082
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2116,7 +2116,7 @@ class AaveV3(BaseSDK):
|
|
|
2116
2116
|
server_url: Optional[str] = None,
|
|
2117
2117
|
timeout_ms: Optional[int] = None,
|
|
2118
2118
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2119
|
-
) -> models.
|
|
2119
|
+
) -> models.TxResponse:
|
|
2120
2120
|
r"""Supply/Lend
|
|
2121
2121
|
|
|
2122
2122
|
By supplying assets, users can earn interest on their deposits.
|
|
@@ -2198,7 +2198,7 @@ class AaveV3(BaseSDK):
|
|
|
2198
2198
|
|
|
2199
2199
|
response_data: Any = None
|
|
2200
2200
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2201
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2201
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2202
2202
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2203
2203
|
response_data = utils.unmarshal_json(
|
|
2204
2204
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2239,7 +2239,7 @@ class AaveV3(BaseSDK):
|
|
|
2239
2239
|
server_url: Optional[str] = None,
|
|
2240
2240
|
timeout_ms: Optional[int] = None,
|
|
2241
2241
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2242
|
-
) -> models.
|
|
2242
|
+
) -> models.TxResponse:
|
|
2243
2243
|
r"""Borrow
|
|
2244
2244
|
|
|
2245
2245
|
You will pay interest for your borrows.
|
|
@@ -2318,7 +2318,7 @@ class AaveV3(BaseSDK):
|
|
|
2318
2318
|
|
|
2319
2319
|
response_data: Any = None
|
|
2320
2320
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2321
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2321
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2322
2322
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2323
2323
|
response_data = utils.unmarshal_json(
|
|
2324
2324
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2359,7 +2359,7 @@ class AaveV3(BaseSDK):
|
|
|
2359
2359
|
server_url: Optional[str] = None,
|
|
2360
2360
|
timeout_ms: Optional[int] = None,
|
|
2361
2361
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2362
|
-
) -> models.
|
|
2362
|
+
) -> models.TxResponse:
|
|
2363
2363
|
r"""Borrow
|
|
2364
2364
|
|
|
2365
2365
|
You will pay interest for your borrows.
|
|
@@ -2438,7 +2438,7 @@ class AaveV3(BaseSDK):
|
|
|
2438
2438
|
|
|
2439
2439
|
response_data: Any = None
|
|
2440
2440
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2441
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2441
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2442
2442
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2443
2443
|
response_data = utils.unmarshal_json(
|
|
2444
2444
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2479,7 +2479,7 @@ class AaveV3(BaseSDK):
|
|
|
2479
2479
|
server_url: Optional[str] = None,
|
|
2480
2480
|
timeout_ms: Optional[int] = None,
|
|
2481
2481
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2482
|
-
) -> models.
|
|
2482
|
+
) -> models.TxResponse:
|
|
2483
2483
|
r"""Repay loans
|
|
2484
2484
|
|
|
2485
2485
|
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
@@ -2562,7 +2562,7 @@ class AaveV3(BaseSDK):
|
|
|
2562
2562
|
|
|
2563
2563
|
response_data: Any = None
|
|
2564
2564
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2565
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2565
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2566
2566
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2567
2567
|
response_data = utils.unmarshal_json(
|
|
2568
2568
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2603,7 +2603,7 @@ class AaveV3(BaseSDK):
|
|
|
2603
2603
|
server_url: Optional[str] = None,
|
|
2604
2604
|
timeout_ms: Optional[int] = None,
|
|
2605
2605
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2606
|
-
) -> models.
|
|
2606
|
+
) -> models.TxResponse:
|
|
2607
2607
|
r"""Repay loans
|
|
2608
2608
|
|
|
2609
2609
|
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
@@ -2686,7 +2686,7 @@ class AaveV3(BaseSDK):
|
|
|
2686
2686
|
|
|
2687
2687
|
response_data: Any = None
|
|
2688
2688
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2689
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2689
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2690
2690
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2691
2691
|
response_data = utils.unmarshal_json(
|
|
2692
2692
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2726,7 +2726,7 @@ class AaveV3(BaseSDK):
|
|
|
2726
2726
|
server_url: Optional[str] = None,
|
|
2727
2727
|
timeout_ms: Optional[int] = None,
|
|
2728
2728
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2729
|
-
) -> models.
|
|
2729
|
+
) -> models.TxResponse:
|
|
2730
2730
|
r"""Unstake
|
|
2731
2731
|
|
|
2732
2732
|
This endpoint facilitates the withdrawal of collateral from the Aave protocol.
|
|
@@ -2808,7 +2808,7 @@ class AaveV3(BaseSDK):
|
|
|
2808
2808
|
|
|
2809
2809
|
response_data: Any = None
|
|
2810
2810
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2811
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2811
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2812
2812
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2813
2813
|
response_data = utils.unmarshal_json(
|
|
2814
2814
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2848,7 +2848,7 @@ class AaveV3(BaseSDK):
|
|
|
2848
2848
|
server_url: Optional[str] = None,
|
|
2849
2849
|
timeout_ms: Optional[int] = None,
|
|
2850
2850
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2851
|
-
) -> models.
|
|
2851
|
+
) -> models.TxResponse:
|
|
2852
2852
|
r"""Unstake
|
|
2853
2853
|
|
|
2854
2854
|
This endpoint facilitates the withdrawal of collateral from the Aave protocol.
|
|
@@ -2930,7 +2930,7 @@ class AaveV3(BaseSDK):
|
|
|
2930
2930
|
|
|
2931
2931
|
response_data: Any = None
|
|
2932
2932
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2933
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2933
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2934
2934
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2935
2935
|
response_data = utils.unmarshal_json(
|
|
2936
2936
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -476,7 +476,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
476
476
|
server_url: Optional[str] = None,
|
|
477
477
|
timeout_ms: Optional[int] = None,
|
|
478
478
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
479
|
-
) -> models.
|
|
479
|
+
) -> models.TxResponse:
|
|
480
480
|
r"""Swap - from specified amount
|
|
481
481
|
|
|
482
482
|
This endpoint allows users to trade a specific amount of one token into another
|
|
@@ -566,7 +566,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
566
566
|
|
|
567
567
|
response_data: Any = None
|
|
568
568
|
if utils.match_response(http_res, "200", "application/json"):
|
|
569
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
569
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
570
570
|
if utils.match_response(http_res, "422", "application/json"):
|
|
571
571
|
response_data = utils.unmarshal_json(
|
|
572
572
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -614,7 +614,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
614
614
|
server_url: Optional[str] = None,
|
|
615
615
|
timeout_ms: Optional[int] = None,
|
|
616
616
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
617
|
-
) -> models.
|
|
617
|
+
) -> models.TxResponse:
|
|
618
618
|
r"""Swap - from specified amount
|
|
619
619
|
|
|
620
620
|
This endpoint allows users to trade a specific amount of one token into another
|
|
@@ -704,7 +704,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
704
704
|
|
|
705
705
|
response_data: Any = None
|
|
706
706
|
if utils.match_response(http_res, "200", "application/json"):
|
|
707
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
707
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
708
708
|
if utils.match_response(http_res, "422", "application/json"):
|
|
709
709
|
response_data = utils.unmarshal_json(
|
|
710
710
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -750,7 +750,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
750
750
|
server_url: Optional[str] = None,
|
|
751
751
|
timeout_ms: Optional[int] = None,
|
|
752
752
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
753
|
-
) -> models.
|
|
753
|
+
) -> models.TxResponse:
|
|
754
754
|
r"""Swap - into specified amount
|
|
755
755
|
|
|
756
756
|
This endpoint facilitates the trading of tokens by allowing users to specify the
|
|
@@ -841,7 +841,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
841
841
|
|
|
842
842
|
response_data: Any = None
|
|
843
843
|
if utils.match_response(http_res, "200", "application/json"):
|
|
844
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
844
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
845
845
|
if utils.match_response(http_res, "422", "application/json"):
|
|
846
846
|
response_data = utils.unmarshal_json(
|
|
847
847
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -887,7 +887,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
887
887
|
server_url: Optional[str] = None,
|
|
888
888
|
timeout_ms: Optional[int] = None,
|
|
889
889
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
890
|
-
) -> models.
|
|
890
|
+
) -> models.TxResponse:
|
|
891
891
|
r"""Swap - into specified amount
|
|
892
892
|
|
|
893
893
|
This endpoint facilitates the trading of tokens by allowing users to specify the
|
|
@@ -978,7 +978,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
978
978
|
|
|
979
979
|
response_data: Any = None
|
|
980
980
|
if utils.match_response(http_res, "200", "application/json"):
|
|
981
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
981
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
982
982
|
if utils.match_response(http_res, "422", "application/json"):
|
|
983
983
|
response_data = utils.unmarshal_json(
|
|
984
984
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1035,7 +1035,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1035
1035
|
server_url: Optional[str] = None,
|
|
1036
1036
|
timeout_ms: Optional[int] = None,
|
|
1037
1037
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1038
|
-
) -> models.
|
|
1038
|
+
) -> models.TxResponse:
|
|
1039
1039
|
r"""Open a new LP position
|
|
1040
1040
|
|
|
1041
1041
|
Initiate a new Liquidity Provider (LP) position by minting tokens.
|
|
@@ -1135,7 +1135,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1135
1135
|
|
|
1136
1136
|
response_data: Any = None
|
|
1137
1137
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1138
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1138
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1139
1139
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1140
1140
|
response_data = utils.unmarshal_json(
|
|
1141
1141
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1192,7 +1192,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1192
1192
|
server_url: Optional[str] = None,
|
|
1193
1193
|
timeout_ms: Optional[int] = None,
|
|
1194
1194
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1195
|
-
) -> models.
|
|
1195
|
+
) -> models.TxResponse:
|
|
1196
1196
|
r"""Open a new LP position
|
|
1197
1197
|
|
|
1198
1198
|
Initiate a new Liquidity Provider (LP) position by minting tokens.
|
|
@@ -1292,7 +1292,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1292
1292
|
|
|
1293
1293
|
response_data: Any = None
|
|
1294
1294
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1295
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1295
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1296
1296
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1297
1297
|
response_data = utils.unmarshal_json(
|
|
1298
1298
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1344,7 +1344,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1344
1344
|
server_url: Optional[str] = None,
|
|
1345
1345
|
timeout_ms: Optional[int] = None,
|
|
1346
1346
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1347
|
-
) -> models.
|
|
1347
|
+
) -> models.TxResponse:
|
|
1348
1348
|
r"""Increase an LP position
|
|
1349
1349
|
|
|
1350
1350
|
Increase the liquidity of an existing Liquidity Provider (LP) position.
|
|
@@ -1436,7 +1436,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1436
1436
|
|
|
1437
1437
|
response_data: Any = None
|
|
1438
1438
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1439
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1439
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1440
1440
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1441
1441
|
response_data = utils.unmarshal_json(
|
|
1442
1442
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1488,7 +1488,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1488
1488
|
server_url: Optional[str] = None,
|
|
1489
1489
|
timeout_ms: Optional[int] = None,
|
|
1490
1490
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1491
|
-
) -> models.
|
|
1491
|
+
) -> models.TxResponse:
|
|
1492
1492
|
r"""Increase an LP position
|
|
1493
1493
|
|
|
1494
1494
|
Increase the liquidity of an existing Liquidity Provider (LP) position.
|
|
@@ -1580,7 +1580,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1580
1580
|
|
|
1581
1581
|
response_data: Any = None
|
|
1582
1582
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1583
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1583
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1584
1584
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1585
1585
|
response_data = utils.unmarshal_json(
|
|
1586
1586
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1620,7 +1620,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1620
1620
|
server_url: Optional[str] = None,
|
|
1621
1621
|
timeout_ms: Optional[int] = None,
|
|
1622
1622
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1623
|
-
) -> models.
|
|
1623
|
+
) -> models.TxResponse:
|
|
1624
1624
|
r"""Withdraw an LP position
|
|
1625
1625
|
|
|
1626
1626
|
Withdraw an existing Liquidity Provider (LP) position.
|
|
@@ -1706,7 +1706,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1706
1706
|
|
|
1707
1707
|
response_data: Any = None
|
|
1708
1708
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1709
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1709
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1710
1710
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1711
1711
|
response_data = utils.unmarshal_json(
|
|
1712
1712
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1746,7 +1746,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1746
1746
|
server_url: Optional[str] = None,
|
|
1747
1747
|
timeout_ms: Optional[int] = None,
|
|
1748
1748
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1749
|
-
) -> models.
|
|
1749
|
+
) -> models.TxResponse:
|
|
1750
1750
|
r"""Withdraw an LP position
|
|
1751
1751
|
|
|
1752
1752
|
Withdraw an existing Liquidity Provider (LP) position.
|
|
@@ -1832,7 +1832,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1832
1832
|
|
|
1833
1833
|
response_data: Any = None
|
|
1834
1834
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1835
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1835
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1836
1836
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1837
1837
|
response_data = utils.unmarshal_json(
|
|
1838
1838
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -249,7 +249,6 @@ from .aerodromeslipstreamwithdrawliquidityprovisionrequest import (
|
|
|
249
249
|
AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict,
|
|
250
250
|
)
|
|
251
251
|
from .allowanceinforesponse import AllowanceInfoResponse, AllowanceInfoResponseTypedDict
|
|
252
|
-
from .batcheduseroperation import BatchedUserOperation, BatchedUserOperationTypedDict
|
|
253
252
|
from .batcheduseroperationsrequest import (
|
|
254
253
|
BatchedUserOperationsRequest,
|
|
255
254
|
BatchedUserOperationsRequestTypedDict,
|
|
@@ -632,6 +631,7 @@ from .tokentransferrequest import (
|
|
|
632
631
|
TokenTransferRequestTokenTypedDict,
|
|
633
632
|
TokenTransferRequestTypedDict,
|
|
634
633
|
)
|
|
634
|
+
from .txresponse import TxResponse, TxResponseTypedDict
|
|
635
635
|
from .uniswap_liquidity_provision_in_rangeop import (
|
|
636
636
|
UniswapLiquidityProvisionInRangeChain,
|
|
637
637
|
UniswapLiquidityProvisionInRangeRequest,
|
|
@@ -797,6 +797,7 @@ from .unwrapwethrequest import (
|
|
|
797
797
|
)
|
|
798
798
|
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
799
799
|
from .useroperation import Body, BodyTypedDict, UserOperation, UserOperationTypedDict
|
|
800
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
800
801
|
from .userstate import UserState, UserStateTypedDict
|
|
801
802
|
from .validationerror import (
|
|
802
803
|
Loc,
|
|
@@ -996,8 +997,6 @@ __all__ = [
|
|
|
996
997
|
"AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict",
|
|
997
998
|
"AllowanceInfoResponse",
|
|
998
999
|
"AllowanceInfoResponseTypedDict",
|
|
999
|
-
"BatchedUserOperation",
|
|
1000
|
-
"BatchedUserOperationTypedDict",
|
|
1001
1000
|
"BatchedUserOperationsRequest",
|
|
1002
1001
|
"BatchedUserOperationsRequestTypedDict",
|
|
1003
1002
|
"BatchedUserOperationsResponse",
|
|
@@ -1285,6 +1284,8 @@ __all__ = [
|
|
|
1285
1284
|
"TokenTransferRequestTypedDict",
|
|
1286
1285
|
"Transaction",
|
|
1287
1286
|
"TransactionTypedDict",
|
|
1287
|
+
"TxResponse",
|
|
1288
|
+
"TxResponseTypedDict",
|
|
1288
1289
|
"UniswapBuyExactlyParams",
|
|
1289
1290
|
"UniswapBuyExactlyParamsAmount",
|
|
1290
1291
|
"UniswapBuyExactlyParamsAmountTypedDict",
|
|
@@ -1404,6 +1405,8 @@ __all__ = [
|
|
|
1404
1405
|
"UsageAsCollateral",
|
|
1405
1406
|
"UsageAsCollateralTypedDict",
|
|
1406
1407
|
"UserOperation",
|
|
1408
|
+
"UserOperationResponse",
|
|
1409
|
+
"UserOperationResponseTypedDict",
|
|
1407
1410
|
"UserOperationTypedDict",
|
|
1408
1411
|
"UserState",
|
|
1409
1412
|
"UserStateTypedDict",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
6
|
from typing import List
|
|
7
7
|
from typing_extensions import TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class BatchedUserOperationsResponseTypedDict(TypedDict):
|
|
11
|
-
operations: List[
|
|
11
|
+
operations: List[UserOperationResponseTypedDict]
|
|
12
12
|
r"""List of user operations to be batched and executed by the smart account."""
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class BatchedUserOperationsResponse(BaseModel):
|
|
16
|
-
operations: List[
|
|
16
|
+
operations: List[UserOperationResponse]
|
|
17
17
|
r"""List of user operations to be batched and executed by the smart account."""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
5
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
6
|
+
from typing import Union
|
|
7
|
+
from typing_extensions import TypeAliasType
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
TxResponseTypedDict = TypeAliasType(
|
|
11
|
+
"TxResponseTypedDict",
|
|
12
|
+
Union[UserOperationResponseTypedDict, UnsignedTransactionTypedDict],
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
TxResponse = TypeAliasType(
|
|
17
|
+
"TxResponse", Union[UserOperationResponse, UnsignedTransaction]
|
|
18
|
+
)
|
|
@@ -5,20 +5,20 @@ from compass_api_sdk.types import BaseModel
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class UserOperationResponseTypedDict(TypedDict):
|
|
9
9
|
to: str
|
|
10
10
|
r"""The target contract address for the operation"""
|
|
11
|
-
|
|
11
|
+
data: str
|
|
12
12
|
r"""The calldata for the operation"""
|
|
13
13
|
value: int
|
|
14
14
|
r"""The ETH value to send with the operation"""
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class UserOperationResponse(BaseModel):
|
|
18
18
|
to: str
|
|
19
19
|
r"""The target contract address for the operation"""
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
data: str
|
|
22
22
|
r"""The calldata for the operation"""
|
|
23
23
|
|
|
24
24
|
value: int
|
compass_api_sdk/morpho.py
CHANGED
|
@@ -1470,7 +1470,7 @@ class Morpho(BaseSDK):
|
|
|
1470
1470
|
server_url: Optional[str] = None,
|
|
1471
1471
|
timeout_ms: Optional[int] = None,
|
|
1472
1472
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1473
|
-
) -> models.
|
|
1473
|
+
) -> models.TxResponse:
|
|
1474
1474
|
r"""Set Allowance for Vault
|
|
1475
1475
|
|
|
1476
1476
|
Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
|
|
@@ -1546,7 +1546,7 @@ class Morpho(BaseSDK):
|
|
|
1546
1546
|
|
|
1547
1547
|
response_data: Any = None
|
|
1548
1548
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1549
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1549
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1550
1550
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1551
1551
|
response_data = utils.unmarshal_json(
|
|
1552
1552
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1586,7 +1586,7 @@ class Morpho(BaseSDK):
|
|
|
1586
1586
|
server_url: Optional[str] = None,
|
|
1587
1587
|
timeout_ms: Optional[int] = None,
|
|
1588
1588
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1589
|
-
) -> models.
|
|
1589
|
+
) -> models.TxResponse:
|
|
1590
1590
|
r"""Set Allowance for Vault
|
|
1591
1591
|
|
|
1592
1592
|
Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
|
|
@@ -1662,7 +1662,7 @@ class Morpho(BaseSDK):
|
|
|
1662
1662
|
|
|
1663
1663
|
response_data: Any = None
|
|
1664
1664
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1665
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1665
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1666
1666
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1667
1667
|
response_data = utils.unmarshal_json(
|
|
1668
1668
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1703,7 +1703,7 @@ class Morpho(BaseSDK):
|
|
|
1703
1703
|
server_url: Optional[str] = None,
|
|
1704
1704
|
timeout_ms: Optional[int] = None,
|
|
1705
1705
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1706
|
-
) -> models.
|
|
1706
|
+
) -> models.TxResponse:
|
|
1707
1707
|
r"""Deposit to Vault
|
|
1708
1708
|
|
|
1709
1709
|
Deposit tokens into a Morpho Vault to earn passive yield from interest paid by
|
|
@@ -1787,7 +1787,7 @@ class Morpho(BaseSDK):
|
|
|
1787
1787
|
|
|
1788
1788
|
response_data: Any = None
|
|
1789
1789
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1790
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1790
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1791
1791
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1792
1792
|
response_data = utils.unmarshal_json(
|
|
1793
1793
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1828,7 +1828,7 @@ class Morpho(BaseSDK):
|
|
|
1828
1828
|
server_url: Optional[str] = None,
|
|
1829
1829
|
timeout_ms: Optional[int] = None,
|
|
1830
1830
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1831
|
-
) -> models.
|
|
1831
|
+
) -> models.TxResponse:
|
|
1832
1832
|
r"""Deposit to Vault
|
|
1833
1833
|
|
|
1834
1834
|
Deposit tokens into a Morpho Vault to earn passive yield from interest paid by
|
|
@@ -1912,7 +1912,7 @@ class Morpho(BaseSDK):
|
|
|
1912
1912
|
|
|
1913
1913
|
response_data: Any = None
|
|
1914
1914
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1915
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1915
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1916
1916
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1917
1917
|
response_data = utils.unmarshal_json(
|
|
1918
1918
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1950,7 +1950,7 @@ class Morpho(BaseSDK):
|
|
|
1950
1950
|
server_url: Optional[str] = None,
|
|
1951
1951
|
timeout_ms: Optional[int] = None,
|
|
1952
1952
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1953
|
-
) -> models.
|
|
1953
|
+
) -> models.TxResponse:
|
|
1954
1954
|
r"""Withdraw from Vault
|
|
1955
1955
|
|
|
1956
1956
|
Withdraw deposited tokens from a Morpho Vault.
|
|
@@ -2034,7 +2034,7 @@ class Morpho(BaseSDK):
|
|
|
2034
2034
|
|
|
2035
2035
|
response_data: Any = None
|
|
2036
2036
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2037
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2037
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2038
2038
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2039
2039
|
response_data = utils.unmarshal_json(
|
|
2040
2040
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2072,7 +2072,7 @@ class Morpho(BaseSDK):
|
|
|
2072
2072
|
server_url: Optional[str] = None,
|
|
2073
2073
|
timeout_ms: Optional[int] = None,
|
|
2074
2074
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2075
|
-
) -> models.
|
|
2075
|
+
) -> models.TxResponse:
|
|
2076
2076
|
r"""Withdraw from Vault
|
|
2077
2077
|
|
|
2078
2078
|
Withdraw deposited tokens from a Morpho Vault.
|
|
@@ -2156,7 +2156,7 @@ class Morpho(BaseSDK):
|
|
|
2156
2156
|
|
|
2157
2157
|
response_data: Any = None
|
|
2158
2158
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2159
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2159
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2160
2160
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2161
2161
|
response_data = utils.unmarshal_json(
|
|
2162
2162
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2198,7 +2198,7 @@ class Morpho(BaseSDK):
|
|
|
2198
2198
|
server_url: Optional[str] = None,
|
|
2199
2199
|
timeout_ms: Optional[int] = None,
|
|
2200
2200
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2201
|
-
) -> models.
|
|
2201
|
+
) -> models.TxResponse:
|
|
2202
2202
|
r"""Supply Collateral to Market
|
|
2203
2203
|
|
|
2204
2204
|
Supply collateral to a Morpho Market in order to borrow against it.
|
|
@@ -2279,7 +2279,7 @@ class Morpho(BaseSDK):
|
|
|
2279
2279
|
|
|
2280
2280
|
response_data: Any = None
|
|
2281
2281
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2282
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2282
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2283
2283
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2284
2284
|
response_data = utils.unmarshal_json(
|
|
2285
2285
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2321,7 +2321,7 @@ class Morpho(BaseSDK):
|
|
|
2321
2321
|
server_url: Optional[str] = None,
|
|
2322
2322
|
timeout_ms: Optional[int] = None,
|
|
2323
2323
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2324
|
-
) -> models.
|
|
2324
|
+
) -> models.TxResponse:
|
|
2325
2325
|
r"""Supply Collateral to Market
|
|
2326
2326
|
|
|
2327
2327
|
Supply collateral to a Morpho Market in order to borrow against it.
|
|
@@ -2402,7 +2402,7 @@ class Morpho(BaseSDK):
|
|
|
2402
2402
|
|
|
2403
2403
|
response_data: Any = None
|
|
2404
2404
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2405
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2405
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2406
2406
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2407
2407
|
response_data = utils.unmarshal_json(
|
|
2408
2408
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2444,7 +2444,7 @@ class Morpho(BaseSDK):
|
|
|
2444
2444
|
server_url: Optional[str] = None,
|
|
2445
2445
|
timeout_ms: Optional[int] = None,
|
|
2446
2446
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2447
|
-
) -> models.
|
|
2447
|
+
) -> models.TxResponse:
|
|
2448
2448
|
r"""Withdraw Collateral from Market
|
|
2449
2449
|
|
|
2450
2450
|
Withdraw collateral that has been supplied to a Morpho Market.
|
|
@@ -2525,7 +2525,7 @@ class Morpho(BaseSDK):
|
|
|
2525
2525
|
|
|
2526
2526
|
response_data: Any = None
|
|
2527
2527
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2528
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2528
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2529
2529
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2530
2530
|
response_data = utils.unmarshal_json(
|
|
2531
2531
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2567,7 +2567,7 @@ class Morpho(BaseSDK):
|
|
|
2567
2567
|
server_url: Optional[str] = None,
|
|
2568
2568
|
timeout_ms: Optional[int] = None,
|
|
2569
2569
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2570
|
-
) -> models.
|
|
2570
|
+
) -> models.TxResponse:
|
|
2571
2571
|
r"""Withdraw Collateral from Market
|
|
2572
2572
|
|
|
2573
2573
|
Withdraw collateral that has been supplied to a Morpho Market.
|
|
@@ -2648,7 +2648,7 @@ class Morpho(BaseSDK):
|
|
|
2648
2648
|
|
|
2649
2649
|
response_data: Any = None
|
|
2650
2650
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2651
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2651
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2652
2652
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2653
2653
|
response_data = utils.unmarshal_json(
|
|
2654
2654
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2689,7 +2689,7 @@ class Morpho(BaseSDK):
|
|
|
2689
2689
|
server_url: Optional[str] = None,
|
|
2690
2690
|
timeout_ms: Optional[int] = None,
|
|
2691
2691
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2692
|
-
) -> models.
|
|
2692
|
+
) -> models.TxResponse:
|
|
2693
2693
|
r"""Borrow from Market
|
|
2694
2694
|
|
|
2695
2695
|
Borrow tokens from a Morpho Market against supplied collateral.
|
|
@@ -2773,7 +2773,7 @@ class Morpho(BaseSDK):
|
|
|
2773
2773
|
|
|
2774
2774
|
response_data: Any = None
|
|
2775
2775
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2776
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2776
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2777
2777
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2778
2778
|
response_data = utils.unmarshal_json(
|
|
2779
2779
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2814,7 +2814,7 @@ class Morpho(BaseSDK):
|
|
|
2814
2814
|
server_url: Optional[str] = None,
|
|
2815
2815
|
timeout_ms: Optional[int] = None,
|
|
2816
2816
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2817
|
-
) -> models.
|
|
2817
|
+
) -> models.TxResponse:
|
|
2818
2818
|
r"""Borrow from Market
|
|
2819
2819
|
|
|
2820
2820
|
Borrow tokens from a Morpho Market against supplied collateral.
|
|
@@ -2898,7 +2898,7 @@ class Morpho(BaseSDK):
|
|
|
2898
2898
|
|
|
2899
2899
|
response_data: Any = None
|
|
2900
2900
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2901
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2901
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2902
2902
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2903
2903
|
response_data = utils.unmarshal_json(
|
|
2904
2904
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2937,7 +2937,7 @@ class Morpho(BaseSDK):
|
|
|
2937
2937
|
server_url: Optional[str] = None,
|
|
2938
2938
|
timeout_ms: Optional[int] = None,
|
|
2939
2939
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2940
|
-
) -> models.
|
|
2940
|
+
) -> models.TxResponse:
|
|
2941
2941
|
r"""Repay to Market
|
|
2942
2942
|
|
|
2943
2943
|
Repay borrowed tokens to a market in order to reduce or eliminate debt.
|
|
@@ -3018,7 +3018,7 @@ class Morpho(BaseSDK):
|
|
|
3018
3018
|
|
|
3019
3019
|
response_data: Any = None
|
|
3020
3020
|
if utils.match_response(http_res, "200", "application/json"):
|
|
3021
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
3021
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
3022
3022
|
if utils.match_response(http_res, "422", "application/json"):
|
|
3023
3023
|
response_data = utils.unmarshal_json(
|
|
3024
3024
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -3057,7 +3057,7 @@ class Morpho(BaseSDK):
|
|
|
3057
3057
|
server_url: Optional[str] = None,
|
|
3058
3058
|
timeout_ms: Optional[int] = None,
|
|
3059
3059
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
3060
|
-
) -> models.
|
|
3060
|
+
) -> models.TxResponse:
|
|
3061
3061
|
r"""Repay to Market
|
|
3062
3062
|
|
|
3063
3063
|
Repay borrowed tokens to a market in order to reduce or eliminate debt.
|
|
@@ -3138,7 +3138,7 @@ class Morpho(BaseSDK):
|
|
|
3138
3138
|
|
|
3139
3139
|
response_data: Any = None
|
|
3140
3140
|
if utils.match_response(http_res, "200", "application/json"):
|
|
3141
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
3141
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
3142
3142
|
if utils.match_response(http_res, "422", "application/json"):
|
|
3143
3143
|
response_data = utils.unmarshal_json(
|
|
3144
3144
|
http_res.text, errors.HTTPValidationErrorData
|
compass_api_sdk/sky.py
CHANGED
|
@@ -212,7 +212,7 @@ class Sky(BaseSDK):
|
|
|
212
212
|
server_url: Optional[str] = None,
|
|
213
213
|
timeout_ms: Optional[int] = None,
|
|
214
214
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
215
|
-
) -> models.
|
|
215
|
+
) -> models.TxResponse:
|
|
216
216
|
r"""Buy USDS
|
|
217
217
|
|
|
218
218
|
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
@@ -288,7 +288,7 @@ class Sky(BaseSDK):
|
|
|
288
288
|
|
|
289
289
|
response_data: Any = None
|
|
290
290
|
if utils.match_response(http_res, "200", "application/json"):
|
|
291
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
291
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
292
292
|
if utils.match_response(http_res, "422", "application/json"):
|
|
293
293
|
response_data = utils.unmarshal_json(
|
|
294
294
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -324,7 +324,7 @@ class Sky(BaseSDK):
|
|
|
324
324
|
server_url: Optional[str] = None,
|
|
325
325
|
timeout_ms: Optional[int] = None,
|
|
326
326
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
327
|
-
) -> models.
|
|
327
|
+
) -> models.TxResponse:
|
|
328
328
|
r"""Buy USDS
|
|
329
329
|
|
|
330
330
|
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
@@ -400,7 +400,7 @@ class Sky(BaseSDK):
|
|
|
400
400
|
|
|
401
401
|
response_data: Any = None
|
|
402
402
|
if utils.match_response(http_res, "200", "application/json"):
|
|
403
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
403
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
404
404
|
if utils.match_response(http_res, "422", "application/json"):
|
|
405
405
|
response_data = utils.unmarshal_json(
|
|
406
406
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -438,7 +438,7 @@ class Sky(BaseSDK):
|
|
|
438
438
|
server_url: Optional[str] = None,
|
|
439
439
|
timeout_ms: Optional[int] = None,
|
|
440
440
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
441
|
-
) -> models.
|
|
441
|
+
) -> models.TxResponse:
|
|
442
442
|
r"""Sell USDS
|
|
443
443
|
|
|
444
444
|
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
@@ -514,7 +514,7 @@ class Sky(BaseSDK):
|
|
|
514
514
|
|
|
515
515
|
response_data: Any = None
|
|
516
516
|
if utils.match_response(http_res, "200", "application/json"):
|
|
517
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
517
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
518
518
|
if utils.match_response(http_res, "422", "application/json"):
|
|
519
519
|
response_data = utils.unmarshal_json(
|
|
520
520
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -552,7 +552,7 @@ class Sky(BaseSDK):
|
|
|
552
552
|
server_url: Optional[str] = None,
|
|
553
553
|
timeout_ms: Optional[int] = None,
|
|
554
554
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
555
|
-
) -> models.
|
|
555
|
+
) -> models.TxResponse:
|
|
556
556
|
r"""Sell USDS
|
|
557
557
|
|
|
558
558
|
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
@@ -628,7 +628,7 @@ class Sky(BaseSDK):
|
|
|
628
628
|
|
|
629
629
|
response_data: Any = None
|
|
630
630
|
if utils.match_response(http_res, "200", "application/json"):
|
|
631
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
631
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
632
632
|
if utils.match_response(http_res, "422", "application/json"):
|
|
633
633
|
response_data = utils.unmarshal_json(
|
|
634
634
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -666,7 +666,7 @@ class Sky(BaseSDK):
|
|
|
666
666
|
server_url: Optional[str] = None,
|
|
667
667
|
timeout_ms: Optional[int] = None,
|
|
668
668
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
669
|
-
) -> models.
|
|
669
|
+
) -> models.TxResponse:
|
|
670
670
|
r"""Deposit USDS
|
|
671
671
|
|
|
672
672
|
Deposit USDS for sUSDS to earn yield.
|
|
@@ -738,7 +738,7 @@ class Sky(BaseSDK):
|
|
|
738
738
|
|
|
739
739
|
response_data: Any = None
|
|
740
740
|
if utils.match_response(http_res, "200", "application/json"):
|
|
741
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
741
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
742
742
|
if utils.match_response(http_res, "422", "application/json"):
|
|
743
743
|
response_data = utils.unmarshal_json(
|
|
744
744
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -776,7 +776,7 @@ class Sky(BaseSDK):
|
|
|
776
776
|
server_url: Optional[str] = None,
|
|
777
777
|
timeout_ms: Optional[int] = None,
|
|
778
778
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
779
|
-
) -> models.
|
|
779
|
+
) -> models.TxResponse:
|
|
780
780
|
r"""Deposit USDS
|
|
781
781
|
|
|
782
782
|
Deposit USDS for sUSDS to earn yield.
|
|
@@ -848,7 +848,7 @@ class Sky(BaseSDK):
|
|
|
848
848
|
|
|
849
849
|
response_data: Any = None
|
|
850
850
|
if utils.match_response(http_res, "200", "application/json"):
|
|
851
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
851
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
852
852
|
if utils.match_response(http_res, "422", "application/json"):
|
|
853
853
|
response_data = utils.unmarshal_json(
|
|
854
854
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -884,7 +884,7 @@ class Sky(BaseSDK):
|
|
|
884
884
|
server_url: Optional[str] = None,
|
|
885
885
|
timeout_ms: Optional[int] = None,
|
|
886
886
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
887
|
-
) -> models.
|
|
887
|
+
) -> models.TxResponse:
|
|
888
888
|
r"""Withdraw USDS
|
|
889
889
|
|
|
890
890
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
@@ -954,7 +954,7 @@ class Sky(BaseSDK):
|
|
|
954
954
|
|
|
955
955
|
response_data: Any = None
|
|
956
956
|
if utils.match_response(http_res, "200", "application/json"):
|
|
957
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
957
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
958
958
|
if utils.match_response(http_res, "422", "application/json"):
|
|
959
959
|
response_data = utils.unmarshal_json(
|
|
960
960
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -990,7 +990,7 @@ class Sky(BaseSDK):
|
|
|
990
990
|
server_url: Optional[str] = None,
|
|
991
991
|
timeout_ms: Optional[int] = None,
|
|
992
992
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
993
|
-
) -> models.
|
|
993
|
+
) -> models.TxResponse:
|
|
994
994
|
r"""Withdraw USDS
|
|
995
995
|
|
|
996
996
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
@@ -1060,7 +1060,7 @@ class Sky(BaseSDK):
|
|
|
1060
1060
|
|
|
1061
1061
|
response_data: Any = None
|
|
1062
1062
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1063
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1063
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1064
1064
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1065
1065
|
response_data = utils.unmarshal_json(
|
|
1066
1066
|
http_res.text, errors.HTTPValidationErrorData
|
compass_api_sdk/token_sdk.py
CHANGED
|
@@ -639,7 +639,7 @@ class TokenSDK(BaseSDK):
|
|
|
639
639
|
server_url: Optional[str] = None,
|
|
640
640
|
timeout_ms: Optional[int] = None,
|
|
641
641
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
642
|
-
) -> models.
|
|
642
|
+
) -> models.TxResponse:
|
|
643
643
|
r"""Transfer ETH or ERC20 Tokens.
|
|
644
644
|
|
|
645
645
|
Sends native ETH or ERC20 tokens from the sender's address to another address.
|
|
@@ -713,7 +713,7 @@ class TokenSDK(BaseSDK):
|
|
|
713
713
|
|
|
714
714
|
response_data: Any = None
|
|
715
715
|
if utils.match_response(http_res, "200", "application/json"):
|
|
716
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
716
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
717
717
|
if utils.match_response(http_res, "422", "application/json"):
|
|
718
718
|
response_data = utils.unmarshal_json(
|
|
719
719
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -756,7 +756,7 @@ class TokenSDK(BaseSDK):
|
|
|
756
756
|
server_url: Optional[str] = None,
|
|
757
757
|
timeout_ms: Optional[int] = None,
|
|
758
758
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
759
|
-
) -> models.
|
|
759
|
+
) -> models.TxResponse:
|
|
760
760
|
r"""Transfer ETH or ERC20 Tokens.
|
|
761
761
|
|
|
762
762
|
Sends native ETH or ERC20 tokens from the sender's address to another address.
|
|
@@ -830,7 +830,7 @@ class TokenSDK(BaseSDK):
|
|
|
830
830
|
|
|
831
831
|
response_data: Any = None
|
|
832
832
|
if utils.match_response(http_res, "200", "application/json"):
|
|
833
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
833
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
834
834
|
if utils.match_response(http_res, "422", "application/json"):
|
|
835
835
|
response_data = utils.unmarshal_json(
|
|
836
836
|
http_res.text, errors.HTTPValidationErrorData
|
compass_api_sdk/uniswap_v3.py
CHANGED
|
@@ -1148,7 +1148,7 @@ class UniswapV3(BaseSDK):
|
|
|
1148
1148
|
server_url: Optional[str] = None,
|
|
1149
1149
|
timeout_ms: Optional[int] = None,
|
|
1150
1150
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1151
|
-
) -> models.
|
|
1151
|
+
) -> models.TxResponse:
|
|
1152
1152
|
r"""Buy exact amount
|
|
1153
1153
|
|
|
1154
1154
|
This endpoint allows users to trade a variable amount of one token to receive an
|
|
@@ -1234,7 +1234,7 @@ class UniswapV3(BaseSDK):
|
|
|
1234
1234
|
|
|
1235
1235
|
response_data: Any = None
|
|
1236
1236
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1237
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1237
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1238
1238
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1239
1239
|
response_data = utils.unmarshal_json(
|
|
1240
1240
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1278,7 +1278,7 @@ class UniswapV3(BaseSDK):
|
|
|
1278
1278
|
server_url: Optional[str] = None,
|
|
1279
1279
|
timeout_ms: Optional[int] = None,
|
|
1280
1280
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1281
|
-
) -> models.
|
|
1281
|
+
) -> models.TxResponse:
|
|
1282
1282
|
r"""Buy exact amount
|
|
1283
1283
|
|
|
1284
1284
|
This endpoint allows users to trade a variable amount of one token to receive an
|
|
@@ -1364,7 +1364,7 @@ class UniswapV3(BaseSDK):
|
|
|
1364
1364
|
|
|
1365
1365
|
response_data: Any = None
|
|
1366
1366
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1367
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1367
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1368
1368
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1369
1369
|
response_data = utils.unmarshal_json(
|
|
1370
1370
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1408,7 +1408,7 @@ class UniswapV3(BaseSDK):
|
|
|
1408
1408
|
server_url: Optional[str] = None,
|
|
1409
1409
|
timeout_ms: Optional[int] = None,
|
|
1410
1410
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1411
|
-
) -> models.
|
|
1411
|
+
) -> models.TxResponse:
|
|
1412
1412
|
r"""Sell exact amount
|
|
1413
1413
|
|
|
1414
1414
|
This endpoint allows users to trade a specific amount of one token into another
|
|
@@ -1494,7 +1494,7 @@ class UniswapV3(BaseSDK):
|
|
|
1494
1494
|
|
|
1495
1495
|
response_data: Any = None
|
|
1496
1496
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1497
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1497
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1498
1498
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1499
1499
|
response_data = utils.unmarshal_json(
|
|
1500
1500
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1538,7 +1538,7 @@ class UniswapV3(BaseSDK):
|
|
|
1538
1538
|
server_url: Optional[str] = None,
|
|
1539
1539
|
timeout_ms: Optional[int] = None,
|
|
1540
1540
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1541
|
-
) -> models.
|
|
1541
|
+
) -> models.TxResponse:
|
|
1542
1542
|
r"""Sell exact amount
|
|
1543
1543
|
|
|
1544
1544
|
This endpoint allows users to trade a specific amount of one token into another
|
|
@@ -1624,7 +1624,7 @@ class UniswapV3(BaseSDK):
|
|
|
1624
1624
|
|
|
1625
1625
|
response_data: Any = None
|
|
1626
1626
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1627
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1627
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1628
1628
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1629
1629
|
response_data = utils.unmarshal_json(
|
|
1630
1630
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1676,7 +1676,7 @@ class UniswapV3(BaseSDK):
|
|
|
1676
1676
|
server_url: Optional[str] = None,
|
|
1677
1677
|
timeout_ms: Optional[int] = None,
|
|
1678
1678
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1679
|
-
) -> models.
|
|
1679
|
+
) -> models.TxResponse:
|
|
1680
1680
|
r"""Increase an LP position
|
|
1681
1681
|
|
|
1682
1682
|
This endpoint allows users to increase their existing Liquidity Provider (LP)
|
|
@@ -1766,7 +1766,7 @@ class UniswapV3(BaseSDK):
|
|
|
1766
1766
|
|
|
1767
1767
|
response_data: Any = None
|
|
1768
1768
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1769
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1769
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1770
1770
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1771
1771
|
response_data = utils.unmarshal_json(
|
|
1772
1772
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1818,7 +1818,7 @@ class UniswapV3(BaseSDK):
|
|
|
1818
1818
|
server_url: Optional[str] = None,
|
|
1819
1819
|
timeout_ms: Optional[int] = None,
|
|
1820
1820
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1821
|
-
) -> models.
|
|
1821
|
+
) -> models.TxResponse:
|
|
1822
1822
|
r"""Increase an LP position
|
|
1823
1823
|
|
|
1824
1824
|
This endpoint allows users to increase their existing Liquidity Provider (LP)
|
|
@@ -1908,7 +1908,7 @@ class UniswapV3(BaseSDK):
|
|
|
1908
1908
|
|
|
1909
1909
|
response_data: Any = None
|
|
1910
1910
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1911
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1911
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1912
1912
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1913
1913
|
response_data = utils.unmarshal_json(
|
|
1914
1914
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1965,7 +1965,7 @@ class UniswapV3(BaseSDK):
|
|
|
1965
1965
|
server_url: Optional[str] = None,
|
|
1966
1966
|
timeout_ms: Optional[int] = None,
|
|
1967
1967
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1968
|
-
) -> models.
|
|
1968
|
+
) -> models.TxResponse:
|
|
1969
1969
|
r"""Open a new LP position
|
|
1970
1970
|
|
|
1971
1971
|
This endpoint allows users to open a new Liquidity Provider (LP) position on the
|
|
@@ -2065,7 +2065,7 @@ class UniswapV3(BaseSDK):
|
|
|
2065
2065
|
|
|
2066
2066
|
response_data: Any = None
|
|
2067
2067
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2068
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2068
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2069
2069
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2070
2070
|
response_data = utils.unmarshal_json(
|
|
2071
2071
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2122,7 +2122,7 @@ class UniswapV3(BaseSDK):
|
|
|
2122
2122
|
server_url: Optional[str] = None,
|
|
2123
2123
|
timeout_ms: Optional[int] = None,
|
|
2124
2124
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2125
|
-
) -> models.
|
|
2125
|
+
) -> models.TxResponse:
|
|
2126
2126
|
r"""Open a new LP position
|
|
2127
2127
|
|
|
2128
2128
|
This endpoint allows users to open a new Liquidity Provider (LP) position on the
|
|
@@ -2222,7 +2222,7 @@ class UniswapV3(BaseSDK):
|
|
|
2222
2222
|
|
|
2223
2223
|
response_data: Any = None
|
|
2224
2224
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2225
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2225
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2226
2226
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2227
2227
|
response_data = utils.unmarshal_json(
|
|
2228
2228
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2262,7 +2262,7 @@ class UniswapV3(BaseSDK):
|
|
|
2262
2262
|
server_url: Optional[str] = None,
|
|
2263
2263
|
timeout_ms: Optional[int] = None,
|
|
2264
2264
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2265
|
-
) -> models.
|
|
2265
|
+
) -> models.TxResponse:
|
|
2266
2266
|
r"""Withdraw an LP position
|
|
2267
2267
|
|
|
2268
2268
|
This endpoint allows users to withdraw their Liquidity Provider (LP) positions
|
|
@@ -2347,7 +2347,7 @@ class UniswapV3(BaseSDK):
|
|
|
2347
2347
|
|
|
2348
2348
|
response_data: Any = None
|
|
2349
2349
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2350
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2350
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2351
2351
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2352
2352
|
response_data = utils.unmarshal_json(
|
|
2353
2353
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2387,7 +2387,7 @@ class UniswapV3(BaseSDK):
|
|
|
2387
2387
|
server_url: Optional[str] = None,
|
|
2388
2388
|
timeout_ms: Optional[int] = None,
|
|
2389
2389
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2390
|
-
) -> models.
|
|
2390
|
+
) -> models.TxResponse:
|
|
2391
2391
|
r"""Withdraw an LP position
|
|
2392
2392
|
|
|
2393
2393
|
This endpoint allows users to withdraw their Liquidity Provider (LP) positions
|
|
@@ -2472,7 +2472,7 @@ class UniswapV3(BaseSDK):
|
|
|
2472
2472
|
|
|
2473
2473
|
response_data: Any = None
|
|
2474
2474
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2475
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2475
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2476
2476
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2477
2477
|
response_data = utils.unmarshal_json(
|
|
2478
2478
|
http_res.text, errors.HTTPValidationErrorData
|
compass_api_sdk/universal.py
CHANGED
|
@@ -1058,7 +1058,7 @@ class Universal(BaseSDK):
|
|
|
1058
1058
|
server_url: Optional[str] = None,
|
|
1059
1059
|
timeout_ms: Optional[int] = None,
|
|
1060
1060
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1061
|
-
) -> models.
|
|
1061
|
+
) -> models.TxResponse:
|
|
1062
1062
|
r"""Wrap ETH
|
|
1063
1063
|
|
|
1064
1064
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
@@ -1129,7 +1129,7 @@ class Universal(BaseSDK):
|
|
|
1129
1129
|
|
|
1130
1130
|
response_data: Any = None
|
|
1131
1131
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1132
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1132
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1133
1133
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1134
1134
|
response_data = utils.unmarshal_json(
|
|
1135
1135
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1167,7 +1167,7 @@ class Universal(BaseSDK):
|
|
|
1167
1167
|
server_url: Optional[str] = None,
|
|
1168
1168
|
timeout_ms: Optional[int] = None,
|
|
1169
1169
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1170
|
-
) -> models.
|
|
1170
|
+
) -> models.TxResponse:
|
|
1171
1171
|
r"""Wrap ETH
|
|
1172
1172
|
|
|
1173
1173
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
@@ -1238,7 +1238,7 @@ class Universal(BaseSDK):
|
|
|
1238
1238
|
|
|
1239
1239
|
response_data: Any = None
|
|
1240
1240
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1241
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1241
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1242
1242
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1243
1243
|
response_data = utils.unmarshal_json(
|
|
1244
1244
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1276,7 +1276,7 @@ class Universal(BaseSDK):
|
|
|
1276
1276
|
server_url: Optional[str] = None,
|
|
1277
1277
|
timeout_ms: Optional[int] = None,
|
|
1278
1278
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1279
|
-
) -> models.
|
|
1279
|
+
) -> models.TxResponse:
|
|
1280
1280
|
r"""Unwrap WETH
|
|
1281
1281
|
|
|
1282
1282
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
@@ -1347,7 +1347,7 @@ class Universal(BaseSDK):
|
|
|
1347
1347
|
|
|
1348
1348
|
response_data: Any = None
|
|
1349
1349
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1350
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1350
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1351
1351
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1352
1352
|
response_data = utils.unmarshal_json(
|
|
1353
1353
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1385,7 +1385,7 @@ class Universal(BaseSDK):
|
|
|
1385
1385
|
server_url: Optional[str] = None,
|
|
1386
1386
|
timeout_ms: Optional[int] = None,
|
|
1387
1387
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1388
|
-
) -> models.
|
|
1388
|
+
) -> models.TxResponse:
|
|
1389
1389
|
r"""Unwrap WETH
|
|
1390
1390
|
|
|
1391
1391
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
@@ -1456,7 +1456,7 @@ class Universal(BaseSDK):
|
|
|
1456
1456
|
|
|
1457
1457
|
response_data: Any = None
|
|
1458
1458
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1459
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1459
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1460
1460
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1461
1461
|
response_data = utils.unmarshal_json(
|
|
1462
1462
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1497,7 +1497,7 @@ class Universal(BaseSDK):
|
|
|
1497
1497
|
server_url: Optional[str] = None,
|
|
1498
1498
|
timeout_ms: Optional[int] = None,
|
|
1499
1499
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1500
|
-
) -> models.
|
|
1500
|
+
) -> models.TxResponse:
|
|
1501
1501
|
r"""Set Allowance - Protocol
|
|
1502
1502
|
|
|
1503
1503
|
This endpoint allows users to modify the token allowance for a specific protocol.
|
|
@@ -1577,7 +1577,7 @@ class Universal(BaseSDK):
|
|
|
1577
1577
|
|
|
1578
1578
|
response_data: Any = None
|
|
1579
1579
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1580
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1580
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1581
1581
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1582
1582
|
response_data = utils.unmarshal_json(
|
|
1583
1583
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1618,7 +1618,7 @@ class Universal(BaseSDK):
|
|
|
1618
1618
|
server_url: Optional[str] = None,
|
|
1619
1619
|
timeout_ms: Optional[int] = None,
|
|
1620
1620
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1621
|
-
) -> models.
|
|
1621
|
+
) -> models.TxResponse:
|
|
1622
1622
|
r"""Set Allowance - Protocol
|
|
1623
1623
|
|
|
1624
1624
|
This endpoint allows users to modify the token allowance for a specific protocol.
|
|
@@ -1698,7 +1698,7 @@ class Universal(BaseSDK):
|
|
|
1698
1698
|
|
|
1699
1699
|
response_data: Any = None
|
|
1700
1700
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1701
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1701
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1702
1702
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1703
1703
|
response_data = utils.unmarshal_json(
|
|
1704
1704
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2,15 +2,15 @@ compass_api_sdk/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,4
|
|
|
2
2
|
compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
|
|
3
3
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
4
4
|
compass_api_sdk/_hooks/types.py,sha256=VC7TZz0BiM721MghXneEovG3UkaktRkt1OhMY3iLmZM,2818
|
|
5
|
-
compass_api_sdk/_version.py,sha256=
|
|
6
|
-
compass_api_sdk/aave_v3.py,sha256=
|
|
7
|
-
compass_api_sdk/aerodrome_slipstream.py,sha256=
|
|
5
|
+
compass_api_sdk/_version.py,sha256=HCvQR3PQYuJi99-NkOhCFka9AXNl2ksEKFkV6gx5Ps8,472
|
|
6
|
+
compass_api_sdk/aave_v3.py,sha256=tR5fm96hPluvzDSIgcuB_C8W4gQZsyBR5k9MQjdtoQQ,123098
|
|
7
|
+
compass_api_sdk/aerodrome_slipstream.py,sha256=w_Q84q8iIDthqX0myByQ1SE5-B2iZPqZvcNVzSLYBZ0,82785
|
|
8
8
|
compass_api_sdk/basesdk.py,sha256=29RfgnfgQq_cRx8OHdQEdJuJ2DrgRZlzGIPC-_6-2bM,12136
|
|
9
9
|
compass_api_sdk/errors/__init__.py,sha256=f8nyj2IhW5h_xtEeg6cfKgByLkqowLv0Fxm0hUofQPs,257
|
|
10
10
|
compass_api_sdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
11
11
|
compass_api_sdk/errors/httpvalidationerror.py,sha256=KBdpK3fYQoeMB-3m9dLKiMYimFN7B9VLma6YqMKX5k0,671
|
|
12
12
|
compass_api_sdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
13
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
13
|
+
compass_api_sdk/models/__init__.py,sha256=pbq16iLvMEADGtOaHm6Er8m0nd9WqIrH-Lfp-kPePzA,55930
|
|
14
14
|
compass_api_sdk/models/aave_avg_rateop.py,sha256=PEdn3yManrwWI6SCD8nrgAFp4KJoXn4nwo56exPhRPA,2392
|
|
15
15
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=7Ghmin3AWvh2knbC-M0CZ0chL8q3fJU-GeDgXeoY0s4,1789
|
|
16
16
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=o9G4dD2foyhbunziTv_177Qr2AK37KTIQsQfvPxo5Fs,2785
|
|
@@ -54,9 +54,8 @@ compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py,sha256=PO94biGAB
|
|
|
54
54
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py,sha256=DQKPJCyd66mFq6irFqMh7wvAQyF_HniRxoASPmmsvcQ,2265
|
|
55
55
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py,sha256=DXbQqFH6qRyrnqQ61y8O7regkqgu_kqY0yY1AamZXTs,1738
|
|
56
56
|
compass_api_sdk/models/allowanceinforesponse.py,sha256=OIvJVxMrRNBay8DIeqlwGBFQ1fbaGVWlaGsOZpo40fY,1393
|
|
57
|
-
compass_api_sdk/models/batcheduseroperation.py,sha256=vk_u6LEt3etlfE2oY8zz43YLvqM6ydLKpL8dkLJ7oIE,679
|
|
58
57
|
compass_api_sdk/models/batcheduseroperationsrequest.py,sha256=ga49DkHKZ9RnuaRDqad4wCKZxeMo0GAg2PrxVV94GJ4,1292
|
|
59
|
-
compass_api_sdk/models/batcheduseroperationsresponse.py,sha256=
|
|
58
|
+
compass_api_sdk/models/batcheduseroperationsresponse.py,sha256=RB_xJG3Itpm5DIbPjAt5_mX02hbMklqsWyao7shRiiI,679
|
|
60
59
|
compass_api_sdk/models/borrow.py,sha256=YQxBejrFjAvfjrYC7kmQRsQL2q6bb6MZxLzFuVHZEFg,2140
|
|
61
60
|
compass_api_sdk/models/chain.py,sha256=TzxP0Ujy0L-o3__gggsKeJIWMaflQTNnNSEaXBnSlGU,304
|
|
62
61
|
compass_api_sdk/models/chaininfo.py,sha256=XUUk-Nfz8-S9uOD4d9QVm_gsRIEXyIgeBGCS3dcFTmc,1406
|
|
@@ -155,6 +154,7 @@ compass_api_sdk/models/tokeninfo.py,sha256=XJxb3m5dS8sRBGCpHS128VemtSU4q09EXOEwa
|
|
|
155
154
|
compass_api_sdk/models/tokenpriceresponse.py,sha256=L6dly2O1aO-_PifQ346-19qK_9RAQ_tYJufJN_yUbM4,383
|
|
156
155
|
compass_api_sdk/models/tokentransfererc20params.py,sha256=rE2S8Bo6q3xFz51Vgp4BPyvm27u-Y0f4a2oRT1WUvSA,1500
|
|
157
156
|
compass_api_sdk/models/tokentransferrequest.py,sha256=-H9OsIcHbdynmrsKrMgMytauHtF2e2uHv6DgHBh83g0,1788
|
|
157
|
+
compass_api_sdk/models/txresponse.py,sha256=mNVjhbBSpmw_mkG7uyWldkA6F7g4UMLpKoNrHhhRjgY,590
|
|
158
158
|
compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py,sha256=mkg0Eg50xQCiQ00Nq_Rw-KPZ0iwb56YsQZ05k-loAnw,1245
|
|
159
159
|
compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py,sha256=-HW4PPi8j1KEypBbuoqLoH89djhW8zDvUTACdklYoqg,1283
|
|
160
160
|
compass_api_sdk/models/uniswap_pool_priceop.py,sha256=JTBQcsaeJSN_tELQW6iMBztsww84x8ORdJaQmLIRb5c,4115
|
|
@@ -182,6 +182,7 @@ compass_api_sdk/models/unwrapwethparams.py,sha256=nBbf-Z2z8-yYPWuNqpESpxRsssJ1PP
|
|
|
182
182
|
compass_api_sdk/models/unwrapwethrequest.py,sha256=LaeHJHs6YZ24HLfUunvybNsLJ9uiQ-v_meEk_VyQo4Y,1137
|
|
183
183
|
compass_api_sdk/models/usageascollateral.py,sha256=hHBgh83BO9WA6u-9xzTvBlPOLoiYV1N21G6vDeo_b30,1561
|
|
184
184
|
compass_api_sdk/models/useroperation.py,sha256=6pdlhqMjceZds-wOH2Umo_ZvHQqVfCzzDg6mfdwzHoA,6294
|
|
185
|
+
compass_api_sdk/models/useroperationresponse.py,sha256=z0o0N-EC30XlrkFiR3vLO_EXbpXojUCJlWQxuOir5VM,671
|
|
185
186
|
compass_api_sdk/models/userstate.py,sha256=xK6ZrhqogPE32JH7J4i1_oK7KxYkmebJU-jfcBp8FOo,1003
|
|
186
187
|
compass_api_sdk/models/validationerror.py,sha256=01WnpU7Tgin0B_poO97_hl6b5CNJ_9VGzpcmoeJs4GU,532
|
|
187
188
|
compass_api_sdk/models/vault.py,sha256=ttepBiKO4o7-C97oALWOYAcN7ALDXmBFBcbQV_nfwO4,1849
|
|
@@ -189,18 +190,18 @@ compass_api_sdk/models/vaultposition.py,sha256=o_Nyjc7GB5lLi11yCO6cp8nZpIvJcZzGB
|
|
|
189
190
|
compass_api_sdk/models/weeklyapys.py,sha256=AaGjDD4NeGsZQBwdRW1G09Pmx17pLPe2oUA9M21jQgY,675
|
|
190
191
|
compass_api_sdk/models/wrapethparams.py,sha256=eMIOqxDM3hCwMJiJsMdnO6ZsMXg1K-_E3S5OIi8XGEI,824
|
|
191
192
|
compass_api_sdk/models/wrapethrequest.py,sha256=aJBhcooob-etvReQEjNdC8HOUQ7oUNkOPYr6A4a3BFE,1077
|
|
192
|
-
compass_api_sdk/morpho.py,sha256=
|
|
193
|
+
compass_api_sdk/morpho.py,sha256=pZ5sDQOT_dsseXwq0_O-im46wgMYI4Z4NDaDvd5MCg4,131872
|
|
193
194
|
compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
194
195
|
compass_api_sdk/sdk.py,sha256=ISOCKopTD8hEDFh1rVgqC-ZBgHPRg71QrK5QxgvXQr0,6251
|
|
195
196
|
compass_api_sdk/sdkconfiguration.py,sha256=K-B67o2xftk7Rh5z59xBL0TcCn_XhX0Yh_JePPegvvU,1764
|
|
196
|
-
compass_api_sdk/sky.py,sha256=
|
|
197
|
+
compass_api_sdk/sky.py,sha256=u-1LwuQPGsYGq4MgzhP0KkkKt4RD9ggkHvARaPPZVI0,43495
|
|
197
198
|
compass_api_sdk/smart_account.py,sha256=qMBOBYPQr_3UUx1t6VAAGBCtKm2s9UHxgh2UnUsJmHA,9356
|
|
198
|
-
compass_api_sdk/token_sdk.py,sha256=
|
|
199
|
+
compass_api_sdk/token_sdk.py,sha256=9q8cDq30Oy7L5Xg_kYibr4HQVsVNaG9olaxqeS35kuw,34226
|
|
199
200
|
compass_api_sdk/transaction_batching.py,sha256=TClHaSuMgvLrJ83mMQo1dgrJwEl11UT_zhPFvRft_mY,31315
|
|
200
201
|
compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
201
202
|
compass_api_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
202
|
-
compass_api_sdk/uniswap_v3.py,sha256=
|
|
203
|
-
compass_api_sdk/universal.py,sha256=
|
|
203
|
+
compass_api_sdk/uniswap_v3.py,sha256=9-xThTW3SPCm8Ql9m9fMPaivoxXeByWJ_bo3FKK4Exk,108147
|
|
204
|
+
compass_api_sdk/universal.py,sha256=3pnCI8gjQVmnyBuwAkEFz4eHMbxWJg_O_yGb8dPzjNA,70069
|
|
204
205
|
compass_api_sdk/utils/__init__.py,sha256=srwCxQa-o7LVSIbziUI2u9_LMEEvJNBU0I14OEQUOpA,2441
|
|
205
206
|
compass_api_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
206
207
|
compass_api_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
|
@@ -217,6 +218,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
|
|
|
217
218
|
compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
218
219
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
219
220
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
220
|
-
compass_api_sdk-0.4.
|
|
221
|
-
compass_api_sdk-0.4.
|
|
222
|
-
compass_api_sdk-0.4.
|
|
221
|
+
compass_api_sdk-0.4.1.dist-info/METADATA,sha256=Lo5XG5hQP4x4asdkhMbJE9o-S_GQ3utvhUxkWsJ2tNs,25294
|
|
222
|
+
compass_api_sdk-0.4.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
223
|
+
compass_api_sdk-0.4.1.dist-info/RECORD,,
|
|
File without changes
|