compass_api_sdk 0.4.0__py3-none-any.whl → 0.4.2__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 +68 -30
- 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.2.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.4.0.dist-info → compass_api_sdk-0.4.2.dist-info}/RECORD +15 -14
- {compass_api_sdk-0.4.0.dist-info → compass_api_sdk-0.4.2.dist-info}/WHEEL +0 -0
compass_api_sdk/morpho.py
CHANGED
|
@@ -20,7 +20,7 @@ class Morpho(BaseSDK):
|
|
|
20
20
|
) -> models.MorphoGetVaultsResponse:
|
|
21
21
|
r"""Get Vaults
|
|
22
22
|
|
|
23
|
-
Query a list of
|
|
23
|
+
Query a list of vaults you can deposit into.
|
|
24
24
|
|
|
25
25
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
26
26
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
@@ -124,7 +124,7 @@ class Morpho(BaseSDK):
|
|
|
124
124
|
) -> models.MorphoGetVaultsResponse:
|
|
125
125
|
r"""Get Vaults
|
|
126
126
|
|
|
127
|
-
Query a list of
|
|
127
|
+
Query a list of vaults you can deposit into.
|
|
128
128
|
|
|
129
129
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
130
130
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
@@ -230,6 +230,13 @@ class Morpho(BaseSDK):
|
|
|
230
230
|
|
|
231
231
|
Get data & metrics for a specific Morpho vault.
|
|
232
232
|
|
|
233
|
+
Including:
|
|
234
|
+
- Current, daily, weekly, monthly, yearly APY
|
|
235
|
+
- Underlying asset data
|
|
236
|
+
- Total liquidity
|
|
237
|
+
- Pertinent metadata
|
|
238
|
+
- Whitelist status
|
|
239
|
+
|
|
233
240
|
:param chain:
|
|
234
241
|
:param vault_address: The vault address of the desired vault data & metrics.
|
|
235
242
|
:param retries: Override the default retry configuration for this method
|
|
@@ -330,6 +337,13 @@ class Morpho(BaseSDK):
|
|
|
330
337
|
|
|
331
338
|
Get data & metrics for a specific Morpho vault.
|
|
332
339
|
|
|
340
|
+
Including:
|
|
341
|
+
- Current, daily, weekly, monthly, yearly APY
|
|
342
|
+
- Underlying asset data
|
|
343
|
+
- Total liquidity
|
|
344
|
+
- Pertinent metadata
|
|
345
|
+
- Whitelist status
|
|
346
|
+
|
|
333
347
|
:param chain:
|
|
334
348
|
:param vault_address: The vault address of the desired vault data & metrics.
|
|
335
349
|
:param retries: Override the default retry configuration for this method
|
|
@@ -854,6 +868,15 @@ class Morpho(BaseSDK):
|
|
|
854
868
|
|
|
855
869
|
Get data & metrics for a specific Morpho market.
|
|
856
870
|
|
|
871
|
+
Including:
|
|
872
|
+
- Current, daily, weekly, monthly, yearly APY
|
|
873
|
+
- Collateral & loan asset data
|
|
874
|
+
- Liquidation loan-to-value ratio
|
|
875
|
+
- Collateral, borrow & liquidity value
|
|
876
|
+
- Utilization ratio
|
|
877
|
+
- Pertinent metadata
|
|
878
|
+
- Whitelist status
|
|
879
|
+
|
|
857
880
|
:param chain:
|
|
858
881
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
859
882
|
:param retries: Override the default retry configuration for this method
|
|
@@ -954,6 +977,15 @@ class Morpho(BaseSDK):
|
|
|
954
977
|
|
|
955
978
|
Get data & metrics for a specific Morpho market.
|
|
956
979
|
|
|
980
|
+
Including:
|
|
981
|
+
- Current, daily, weekly, monthly, yearly APY
|
|
982
|
+
- Collateral & loan asset data
|
|
983
|
+
- Liquidation loan-to-value ratio
|
|
984
|
+
- Collateral, borrow & liquidity value
|
|
985
|
+
- Utilization ratio
|
|
986
|
+
- Pertinent metadata
|
|
987
|
+
- Whitelist status
|
|
988
|
+
|
|
957
989
|
:param chain:
|
|
958
990
|
:param unique_market_key: The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
|
|
959
991
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1266,6 +1298,9 @@ class Morpho(BaseSDK):
|
|
|
1266
1298
|
|
|
1267
1299
|
Check user's overall position across the entire Morpho ecosystem.
|
|
1268
1300
|
|
|
1301
|
+
Inlcuding all vault and market position metrics and relavant metadata of said vaults
|
|
1302
|
+
and markets.
|
|
1303
|
+
|
|
1269
1304
|
:param chain:
|
|
1270
1305
|
:param user_address: The user wallet address of the desired user position.
|
|
1271
1306
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1368,6 +1403,9 @@ class Morpho(BaseSDK):
|
|
|
1368
1403
|
|
|
1369
1404
|
Check user's overall position across the entire Morpho ecosystem.
|
|
1370
1405
|
|
|
1406
|
+
Inlcuding all vault and market position metrics and relavant metadata of said vaults
|
|
1407
|
+
and markets.
|
|
1408
|
+
|
|
1371
1409
|
:param chain:
|
|
1372
1410
|
:param user_address: The user wallet address of the desired user position.
|
|
1373
1411
|
:param retries: Override the default retry configuration for this method
|
|
@@ -1470,7 +1508,7 @@ class Morpho(BaseSDK):
|
|
|
1470
1508
|
server_url: Optional[str] = None,
|
|
1471
1509
|
timeout_ms: Optional[int] = None,
|
|
1472
1510
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1473
|
-
) -> models.
|
|
1511
|
+
) -> models.TxResponse:
|
|
1474
1512
|
r"""Set Allowance for Vault
|
|
1475
1513
|
|
|
1476
1514
|
Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
|
|
@@ -1546,7 +1584,7 @@ class Morpho(BaseSDK):
|
|
|
1546
1584
|
|
|
1547
1585
|
response_data: Any = None
|
|
1548
1586
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1549
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1587
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1550
1588
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1551
1589
|
response_data = utils.unmarshal_json(
|
|
1552
1590
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1586,7 +1624,7 @@ class Morpho(BaseSDK):
|
|
|
1586
1624
|
server_url: Optional[str] = None,
|
|
1587
1625
|
timeout_ms: Optional[int] = None,
|
|
1588
1626
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1589
|
-
) -> models.
|
|
1627
|
+
) -> models.TxResponse:
|
|
1590
1628
|
r"""Set Allowance for Vault
|
|
1591
1629
|
|
|
1592
1630
|
Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
|
|
@@ -1662,7 +1700,7 @@ class Morpho(BaseSDK):
|
|
|
1662
1700
|
|
|
1663
1701
|
response_data: Any = None
|
|
1664
1702
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1665
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1703
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1666
1704
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1667
1705
|
response_data = utils.unmarshal_json(
|
|
1668
1706
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1703,7 +1741,7 @@ class Morpho(BaseSDK):
|
|
|
1703
1741
|
server_url: Optional[str] = None,
|
|
1704
1742
|
timeout_ms: Optional[int] = None,
|
|
1705
1743
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1706
|
-
) -> models.
|
|
1744
|
+
) -> models.TxResponse:
|
|
1707
1745
|
r"""Deposit to Vault
|
|
1708
1746
|
|
|
1709
1747
|
Deposit tokens into a Morpho Vault to earn passive yield from interest paid by
|
|
@@ -1787,7 +1825,7 @@ class Morpho(BaseSDK):
|
|
|
1787
1825
|
|
|
1788
1826
|
response_data: Any = None
|
|
1789
1827
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1790
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1828
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1791
1829
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1792
1830
|
response_data = utils.unmarshal_json(
|
|
1793
1831
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1828,7 +1866,7 @@ class Morpho(BaseSDK):
|
|
|
1828
1866
|
server_url: Optional[str] = None,
|
|
1829
1867
|
timeout_ms: Optional[int] = None,
|
|
1830
1868
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1831
|
-
) -> models.
|
|
1869
|
+
) -> models.TxResponse:
|
|
1832
1870
|
r"""Deposit to Vault
|
|
1833
1871
|
|
|
1834
1872
|
Deposit tokens into a Morpho Vault to earn passive yield from interest paid by
|
|
@@ -1912,7 +1950,7 @@ class Morpho(BaseSDK):
|
|
|
1912
1950
|
|
|
1913
1951
|
response_data: Any = None
|
|
1914
1952
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1915
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
1953
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
1916
1954
|
if utils.match_response(http_res, "422", "application/json"):
|
|
1917
1955
|
response_data = utils.unmarshal_json(
|
|
1918
1956
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -1950,7 +1988,7 @@ class Morpho(BaseSDK):
|
|
|
1950
1988
|
server_url: Optional[str] = None,
|
|
1951
1989
|
timeout_ms: Optional[int] = None,
|
|
1952
1990
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1953
|
-
) -> models.
|
|
1991
|
+
) -> models.TxResponse:
|
|
1954
1992
|
r"""Withdraw from Vault
|
|
1955
1993
|
|
|
1956
1994
|
Withdraw deposited tokens from a Morpho Vault.
|
|
@@ -2034,7 +2072,7 @@ class Morpho(BaseSDK):
|
|
|
2034
2072
|
|
|
2035
2073
|
response_data: Any = None
|
|
2036
2074
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2037
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2075
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2038
2076
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2039
2077
|
response_data = utils.unmarshal_json(
|
|
2040
2078
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2072,7 +2110,7 @@ class Morpho(BaseSDK):
|
|
|
2072
2110
|
server_url: Optional[str] = None,
|
|
2073
2111
|
timeout_ms: Optional[int] = None,
|
|
2074
2112
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2075
|
-
) -> models.
|
|
2113
|
+
) -> models.TxResponse:
|
|
2076
2114
|
r"""Withdraw from Vault
|
|
2077
2115
|
|
|
2078
2116
|
Withdraw deposited tokens from a Morpho Vault.
|
|
@@ -2156,7 +2194,7 @@ class Morpho(BaseSDK):
|
|
|
2156
2194
|
|
|
2157
2195
|
response_data: Any = None
|
|
2158
2196
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2159
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2197
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2160
2198
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2161
2199
|
response_data = utils.unmarshal_json(
|
|
2162
2200
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2198,7 +2236,7 @@ class Morpho(BaseSDK):
|
|
|
2198
2236
|
server_url: Optional[str] = None,
|
|
2199
2237
|
timeout_ms: Optional[int] = None,
|
|
2200
2238
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2201
|
-
) -> models.
|
|
2239
|
+
) -> models.TxResponse:
|
|
2202
2240
|
r"""Supply Collateral to Market
|
|
2203
2241
|
|
|
2204
2242
|
Supply collateral to a Morpho Market in order to borrow against it.
|
|
@@ -2279,7 +2317,7 @@ class Morpho(BaseSDK):
|
|
|
2279
2317
|
|
|
2280
2318
|
response_data: Any = None
|
|
2281
2319
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2282
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2320
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2283
2321
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2284
2322
|
response_data = utils.unmarshal_json(
|
|
2285
2323
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2321,7 +2359,7 @@ class Morpho(BaseSDK):
|
|
|
2321
2359
|
server_url: Optional[str] = None,
|
|
2322
2360
|
timeout_ms: Optional[int] = None,
|
|
2323
2361
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2324
|
-
) -> models.
|
|
2362
|
+
) -> models.TxResponse:
|
|
2325
2363
|
r"""Supply Collateral to Market
|
|
2326
2364
|
|
|
2327
2365
|
Supply collateral to a Morpho Market in order to borrow against it.
|
|
@@ -2402,7 +2440,7 @@ class Morpho(BaseSDK):
|
|
|
2402
2440
|
|
|
2403
2441
|
response_data: Any = None
|
|
2404
2442
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2405
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2443
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2406
2444
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2407
2445
|
response_data = utils.unmarshal_json(
|
|
2408
2446
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2444,7 +2482,7 @@ class Morpho(BaseSDK):
|
|
|
2444
2482
|
server_url: Optional[str] = None,
|
|
2445
2483
|
timeout_ms: Optional[int] = None,
|
|
2446
2484
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2447
|
-
) -> models.
|
|
2485
|
+
) -> models.TxResponse:
|
|
2448
2486
|
r"""Withdraw Collateral from Market
|
|
2449
2487
|
|
|
2450
2488
|
Withdraw collateral that has been supplied to a Morpho Market.
|
|
@@ -2525,7 +2563,7 @@ class Morpho(BaseSDK):
|
|
|
2525
2563
|
|
|
2526
2564
|
response_data: Any = None
|
|
2527
2565
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2528
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2566
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2529
2567
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2530
2568
|
response_data = utils.unmarshal_json(
|
|
2531
2569
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2567,7 +2605,7 @@ class Morpho(BaseSDK):
|
|
|
2567
2605
|
server_url: Optional[str] = None,
|
|
2568
2606
|
timeout_ms: Optional[int] = None,
|
|
2569
2607
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2570
|
-
) -> models.
|
|
2608
|
+
) -> models.TxResponse:
|
|
2571
2609
|
r"""Withdraw Collateral from Market
|
|
2572
2610
|
|
|
2573
2611
|
Withdraw collateral that has been supplied to a Morpho Market.
|
|
@@ -2648,7 +2686,7 @@ class Morpho(BaseSDK):
|
|
|
2648
2686
|
|
|
2649
2687
|
response_data: Any = None
|
|
2650
2688
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2651
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2689
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2652
2690
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2653
2691
|
response_data = utils.unmarshal_json(
|
|
2654
2692
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2689,7 +2727,7 @@ class Morpho(BaseSDK):
|
|
|
2689
2727
|
server_url: Optional[str] = None,
|
|
2690
2728
|
timeout_ms: Optional[int] = None,
|
|
2691
2729
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2692
|
-
) -> models.
|
|
2730
|
+
) -> models.TxResponse:
|
|
2693
2731
|
r"""Borrow from Market
|
|
2694
2732
|
|
|
2695
2733
|
Borrow tokens from a Morpho Market against supplied collateral.
|
|
@@ -2773,7 +2811,7 @@ class Morpho(BaseSDK):
|
|
|
2773
2811
|
|
|
2774
2812
|
response_data: Any = None
|
|
2775
2813
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2776
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2814
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2777
2815
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2778
2816
|
response_data = utils.unmarshal_json(
|
|
2779
2817
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2814,7 +2852,7 @@ class Morpho(BaseSDK):
|
|
|
2814
2852
|
server_url: Optional[str] = None,
|
|
2815
2853
|
timeout_ms: Optional[int] = None,
|
|
2816
2854
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2817
|
-
) -> models.
|
|
2855
|
+
) -> models.TxResponse:
|
|
2818
2856
|
r"""Borrow from Market
|
|
2819
2857
|
|
|
2820
2858
|
Borrow tokens from a Morpho Market against supplied collateral.
|
|
@@ -2898,7 +2936,7 @@ class Morpho(BaseSDK):
|
|
|
2898
2936
|
|
|
2899
2937
|
response_data: Any = None
|
|
2900
2938
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2901
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
2939
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
2902
2940
|
if utils.match_response(http_res, "422", "application/json"):
|
|
2903
2941
|
response_data = utils.unmarshal_json(
|
|
2904
2942
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -2937,7 +2975,7 @@ class Morpho(BaseSDK):
|
|
|
2937
2975
|
server_url: Optional[str] = None,
|
|
2938
2976
|
timeout_ms: Optional[int] = None,
|
|
2939
2977
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2940
|
-
) -> models.
|
|
2978
|
+
) -> models.TxResponse:
|
|
2941
2979
|
r"""Repay to Market
|
|
2942
2980
|
|
|
2943
2981
|
Repay borrowed tokens to a market in order to reduce or eliminate debt.
|
|
@@ -3018,7 +3056,7 @@ class Morpho(BaseSDK):
|
|
|
3018
3056
|
|
|
3019
3057
|
response_data: Any = None
|
|
3020
3058
|
if utils.match_response(http_res, "200", "application/json"):
|
|
3021
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
3059
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
3022
3060
|
if utils.match_response(http_res, "422", "application/json"):
|
|
3023
3061
|
response_data = utils.unmarshal_json(
|
|
3024
3062
|
http_res.text, errors.HTTPValidationErrorData
|
|
@@ -3057,7 +3095,7 @@ class Morpho(BaseSDK):
|
|
|
3057
3095
|
server_url: Optional[str] = None,
|
|
3058
3096
|
timeout_ms: Optional[int] = None,
|
|
3059
3097
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
3060
|
-
) -> models.
|
|
3098
|
+
) -> models.TxResponse:
|
|
3061
3099
|
r"""Repay to Market
|
|
3062
3100
|
|
|
3063
3101
|
Repay borrowed tokens to a market in order to reduce or eliminate debt.
|
|
@@ -3138,7 +3176,7 @@ class Morpho(BaseSDK):
|
|
|
3138
3176
|
|
|
3139
3177
|
response_data: Any = None
|
|
3140
3178
|
if utils.match_response(http_res, "200", "application/json"):
|
|
3141
|
-
return utils.unmarshal_json(http_res.text, models.
|
|
3179
|
+
return utils.unmarshal_json(http_res.text, models.TxResponse)
|
|
3142
3180
|
if utils.match_response(http_res, "422", "application/json"):
|
|
3143
3181
|
response_data = utils.unmarshal_json(
|
|
3144
3182
|
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
|