compass_api_sdk 0.9.19__py3-none-any.whl → 0.9.21__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 +18 -18
- compass_api_sdk/aerodrome_slipstream.py +14 -14
- compass_api_sdk/models/batcheduseroperationsrequest.py +5 -0
- compass_api_sdk/sdk.py +5 -5
- compass_api_sdk/smart_account.py +6 -0
- compass_api_sdk/token_sdk.py +2 -2
- compass_api_sdk/{transaction_batching.py → transaction_bundler.py} +23 -23
- compass_api_sdk/uniswap_v3.py +8 -8
- compass_api_sdk/universal.py +8 -8
- {compass_api_sdk-0.9.19.dist-info → compass_api_sdk-0.9.21.dist-info}/METADATA +30 -30
- {compass_api_sdk-0.9.19.dist-info → compass_api_sdk-0.9.21.dist-info}/RECORD +13 -13
- {compass_api_sdk-0.9.19.dist-info → compass_api_sdk-0.9.21.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.9.
|
|
6
|
+
__version__: str = "0.9.21"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.9.
|
|
8
|
+
__gen_version__: str = "2.632.2"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.9.21 2.632.2 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
|
@@ -254,7 +254,7 @@ class AaveV3(BaseSDK):
|
|
|
254
254
|
timeout_ms: Optional[int] = None,
|
|
255
255
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
256
256
|
) -> models.AaveAvgRateResponse:
|
|
257
|
-
r"""Interest Rates:
|
|
257
|
+
r"""Interest Rates: Time Average
|
|
258
258
|
|
|
259
259
|
Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
260
260
|
|
|
@@ -361,7 +361,7 @@ class AaveV3(BaseSDK):
|
|
|
361
361
|
timeout_ms: Optional[int] = None,
|
|
362
362
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
363
363
|
) -> models.AaveAvgRateResponse:
|
|
364
|
-
r"""Interest Rates:
|
|
364
|
+
r"""Interest Rates: Time Average
|
|
365
365
|
|
|
366
366
|
Provides time-weighted averages of deposit and borrow rates for Aave reserves.
|
|
367
367
|
|
|
@@ -468,7 +468,7 @@ class AaveV3(BaseSDK):
|
|
|
468
468
|
timeout_ms: Optional[int] = None,
|
|
469
469
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
470
470
|
) -> models.AaveSTDRateResponse:
|
|
471
|
-
r"""Interest Rates:
|
|
471
|
+
r"""Interest Rates: Standard Deviation
|
|
472
472
|
|
|
473
473
|
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
474
474
|
reserves, illustrating market volatility.
|
|
@@ -576,7 +576,7 @@ class AaveV3(BaseSDK):
|
|
|
576
576
|
timeout_ms: Optional[int] = None,
|
|
577
577
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
578
578
|
) -> models.AaveSTDRateResponse:
|
|
579
|
-
r"""Interest Rates:
|
|
579
|
+
r"""Interest Rates: Standard Deviation
|
|
580
580
|
|
|
581
581
|
Returns the historical standard deviation of lending and borrowing rates for Aave
|
|
582
582
|
reserves, illustrating market volatility.
|
|
@@ -683,7 +683,7 @@ class AaveV3(BaseSDK):
|
|
|
683
683
|
timeout_ms: Optional[int] = None,
|
|
684
684
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
685
685
|
) -> models.AaveReserveOverviewResponse:
|
|
686
|
-
r"""Reserve
|
|
686
|
+
r"""Reserve Overview
|
|
687
687
|
|
|
688
688
|
Returns key metrics for Aave Reserves:
|
|
689
689
|
- Total Supplied (TVL) in USD
|
|
@@ -794,7 +794,7 @@ class AaveV3(BaseSDK):
|
|
|
794
794
|
timeout_ms: Optional[int] = None,
|
|
795
795
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
796
796
|
) -> models.AaveReserveOverviewResponse:
|
|
797
|
-
r"""Reserve
|
|
797
|
+
r"""Reserve Overview
|
|
798
798
|
|
|
799
799
|
Returns key metrics for Aave Reserves:
|
|
800
800
|
- Total Supplied (TVL) in USD
|
|
@@ -905,7 +905,7 @@ class AaveV3(BaseSDK):
|
|
|
905
905
|
timeout_ms: Optional[int] = None,
|
|
906
906
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
907
907
|
) -> models.AaveTokenPriceResponse:
|
|
908
|
-
r"""Token
|
|
908
|
+
r"""Token Prices
|
|
909
909
|
|
|
910
910
|
This endpoint retrieves the current price of a specified token in USD as
|
|
911
911
|
determined by the Aave protocol.
|
|
@@ -1016,7 +1016,7 @@ class AaveV3(BaseSDK):
|
|
|
1016
1016
|
timeout_ms: Optional[int] = None,
|
|
1017
1017
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1018
1018
|
) -> models.AaveTokenPriceResponse:
|
|
1019
|
-
r"""Token
|
|
1019
|
+
r"""Token Prices
|
|
1020
1020
|
|
|
1021
1021
|
This endpoint retrieves the current price of a specified token in USD as
|
|
1022
1022
|
determined by the Aave protocol.
|
|
@@ -1128,7 +1128,7 @@ class AaveV3(BaseSDK):
|
|
|
1128
1128
|
timeout_ms: Optional[int] = None,
|
|
1129
1129
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1130
1130
|
) -> models.AaveLiquidityChangeResponse:
|
|
1131
|
-
r"""Liquidity
|
|
1131
|
+
r"""Liquidity Index
|
|
1132
1132
|
|
|
1133
1133
|
This endpoint retrieves the change in the reserve liquidity index between two
|
|
1134
1134
|
provided blocks.
|
|
@@ -1247,7 +1247,7 @@ class AaveV3(BaseSDK):
|
|
|
1247
1247
|
timeout_ms: Optional[int] = None,
|
|
1248
1248
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1249
1249
|
) -> models.AaveLiquidityChangeResponse:
|
|
1250
|
-
r"""Liquidity
|
|
1250
|
+
r"""Liquidity Index
|
|
1251
1251
|
|
|
1252
1252
|
This endpoint retrieves the change in the reserve liquidity index between two
|
|
1253
1253
|
provided blocks.
|
|
@@ -1365,7 +1365,7 @@ class AaveV3(BaseSDK):
|
|
|
1365
1365
|
timeout_ms: Optional[int] = None,
|
|
1366
1366
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1367
1367
|
) -> models.AaveUserPositionSummaryResponse:
|
|
1368
|
-
r"""Positions -
|
|
1368
|
+
r"""Positions - Total
|
|
1369
1369
|
|
|
1370
1370
|
This endpoint retrieves a comprehensive summary of a user's position on the AAVE
|
|
1371
1371
|
platform.
|
|
@@ -1478,7 +1478,7 @@ class AaveV3(BaseSDK):
|
|
|
1478
1478
|
timeout_ms: Optional[int] = None,
|
|
1479
1479
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1480
1480
|
) -> models.AaveUserPositionSummaryResponse:
|
|
1481
|
-
r"""Positions -
|
|
1481
|
+
r"""Positions - Total
|
|
1482
1482
|
|
|
1483
1483
|
This endpoint retrieves a comprehensive summary of a user's position on the AAVE
|
|
1484
1484
|
platform.
|
|
@@ -1592,7 +1592,7 @@ class AaveV3(BaseSDK):
|
|
|
1592
1592
|
timeout_ms: Optional[int] = None,
|
|
1593
1593
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1594
1594
|
) -> models.AaveUserPositionPerTokenResponse:
|
|
1595
|
-
r"""Positions - per
|
|
1595
|
+
r"""Positions - per Token
|
|
1596
1596
|
|
|
1597
1597
|
This endpoint retrieves the user's position for a specific token on the AAVE
|
|
1598
1598
|
platform.
|
|
@@ -1709,7 +1709,7 @@ class AaveV3(BaseSDK):
|
|
|
1709
1709
|
timeout_ms: Optional[int] = None,
|
|
1710
1710
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1711
1711
|
) -> models.AaveUserPositionPerTokenResponse:
|
|
1712
|
-
r"""Positions - per
|
|
1712
|
+
r"""Positions - per Token
|
|
1713
1713
|
|
|
1714
1714
|
This endpoint retrieves the user's position for a specific token on the AAVE
|
|
1715
1715
|
platform.
|
|
@@ -1826,7 +1826,7 @@ class AaveV3(BaseSDK):
|
|
|
1826
1826
|
timeout_ms: Optional[int] = None,
|
|
1827
1827
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1828
1828
|
) -> models.AaveHistoricalTransactionsResponse:
|
|
1829
|
-
r"""Historical
|
|
1829
|
+
r"""Historical Transactions
|
|
1830
1830
|
|
|
1831
1831
|
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
1832
1832
|
|
|
@@ -1940,7 +1940,7 @@ class AaveV3(BaseSDK):
|
|
|
1940
1940
|
timeout_ms: Optional[int] = None,
|
|
1941
1941
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1942
1942
|
) -> models.AaveHistoricalTransactionsResponse:
|
|
1943
|
-
r"""Historical
|
|
1943
|
+
r"""Historical Transactions
|
|
1944
1944
|
|
|
1945
1945
|
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
1946
1946
|
|
|
@@ -2546,7 +2546,7 @@ class AaveV3(BaseSDK):
|
|
|
2546
2546
|
timeout_ms: Optional[int] = None,
|
|
2547
2547
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2548
2548
|
) -> models.TxResponse:
|
|
2549
|
-
r"""Repay
|
|
2549
|
+
r"""Repay Loans
|
|
2550
2550
|
|
|
2551
2551
|
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
2552
2552
|
tokens on the Aave platform.
|
|
@@ -2671,7 +2671,7 @@ class AaveV3(BaseSDK):
|
|
|
2671
2671
|
timeout_ms: Optional[int] = None,
|
|
2672
2672
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2673
2673
|
) -> models.TxResponse:
|
|
2674
|
-
r"""Repay
|
|
2674
|
+
r"""Repay Loans
|
|
2675
2675
|
|
|
2676
2676
|
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
2677
2677
|
tokens on the Aave platform.
|
|
@@ -18,7 +18,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
18
18
|
timeout_ms: Optional[int] = None,
|
|
19
19
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
20
|
) -> models.AerodromeLPPositionsResponse:
|
|
21
|
-
r"""List LP
|
|
21
|
+
r"""List LP Positions
|
|
22
22
|
|
|
23
23
|
Retrieve the total number of Liquidity Provider (LP) positions associated with a
|
|
24
24
|
specific sender.
|
|
@@ -129,7 +129,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
129
129
|
timeout_ms: Optional[int] = None,
|
|
130
130
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
131
131
|
) -> models.AerodromeLPPositionsResponse:
|
|
132
|
-
r"""List LP
|
|
132
|
+
r"""List LP Positions
|
|
133
133
|
|
|
134
134
|
Retrieve the total number of Liquidity Provider (LP) positions associated with a
|
|
135
135
|
specific sender.
|
|
@@ -242,7 +242,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
242
242
|
timeout_ms: Optional[int] = None,
|
|
243
243
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
244
244
|
) -> models.AerodromeSlipstreamPoolPriceResponse:
|
|
245
|
-
r"""Pool
|
|
245
|
+
r"""Pool Price
|
|
246
246
|
|
|
247
247
|
This endpoint retrieves the current price of a pool, indicating how many token0
|
|
248
248
|
you can purchase for 1 token1.
|
|
@@ -356,7 +356,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
356
356
|
timeout_ms: Optional[int] = None,
|
|
357
357
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
358
358
|
) -> models.AerodromeSlipstreamPoolPriceResponse:
|
|
359
|
-
r"""Pool
|
|
359
|
+
r"""Pool Price
|
|
360
360
|
|
|
361
361
|
This endpoint retrieves the current price of a pool, indicating how many token0
|
|
362
362
|
you can purchase for 1 token1.
|
|
@@ -481,7 +481,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
481
481
|
timeout_ms: Optional[int] = None,
|
|
482
482
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
483
483
|
) -> models.TxResponse:
|
|
484
|
-
r"""Swap - from
|
|
484
|
+
r"""Swap - from Specified Amount
|
|
485
485
|
|
|
486
486
|
This endpoint allows users to trade a specific amount of one token into another
|
|
487
487
|
token using the Aerodrome Slipstream protocol.
|
|
@@ -620,7 +620,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
620
620
|
timeout_ms: Optional[int] = None,
|
|
621
621
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
622
622
|
) -> models.TxResponse:
|
|
623
|
-
r"""Swap - from
|
|
623
|
+
r"""Swap - from Specified Amount
|
|
624
624
|
|
|
625
625
|
This endpoint allows users to trade a specific amount of one token into another
|
|
626
626
|
token using the Aerodrome Slipstream protocol.
|
|
@@ -757,7 +757,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
757
757
|
timeout_ms: Optional[int] = None,
|
|
758
758
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
759
759
|
) -> models.TxResponse:
|
|
760
|
-
r"""Swap - into
|
|
760
|
+
r"""Swap - into Specified Amount
|
|
761
761
|
|
|
762
762
|
This endpoint facilitates the trading of tokens by allowing users to specify the
|
|
763
763
|
exact amount of the output token they wish to receive.
|
|
@@ -895,7 +895,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
895
895
|
timeout_ms: Optional[int] = None,
|
|
896
896
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
897
897
|
) -> models.TxResponse:
|
|
898
|
-
r"""Swap - into
|
|
898
|
+
r"""Swap - into Specified Amount
|
|
899
899
|
|
|
900
900
|
This endpoint facilitates the trading of tokens by allowing users to specify the
|
|
901
901
|
exact amount of the output token they wish to receive.
|
|
@@ -1044,7 +1044,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1044
1044
|
timeout_ms: Optional[int] = None,
|
|
1045
1045
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1046
1046
|
) -> models.TxResponse:
|
|
1047
|
-
r"""Open a
|
|
1047
|
+
r"""Open a New LP Position
|
|
1048
1048
|
|
|
1049
1049
|
Initiate a new Liquidity Provider (LP) position by minting tokens.
|
|
1050
1050
|
|
|
@@ -1202,7 +1202,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1202
1202
|
timeout_ms: Optional[int] = None,
|
|
1203
1203
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1204
1204
|
) -> models.TxResponse:
|
|
1205
|
-
r"""Open a
|
|
1205
|
+
r"""Open a New LP Position
|
|
1206
1206
|
|
|
1207
1207
|
Initiate a new Liquidity Provider (LP) position by minting tokens.
|
|
1208
1208
|
|
|
@@ -1355,7 +1355,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1355
1355
|
timeout_ms: Optional[int] = None,
|
|
1356
1356
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1357
1357
|
) -> models.TxResponse:
|
|
1358
|
-
r"""Increase an LP
|
|
1358
|
+
r"""Increase an LP Position
|
|
1359
1359
|
|
|
1360
1360
|
Increase the liquidity of an existing Liquidity Provider (LP) position.
|
|
1361
1361
|
|
|
@@ -1500,7 +1500,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1500
1500
|
timeout_ms: Optional[int] = None,
|
|
1501
1501
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1502
1502
|
) -> models.TxResponse:
|
|
1503
|
-
r"""Increase an LP
|
|
1503
|
+
r"""Increase an LP Position
|
|
1504
1504
|
|
|
1505
1505
|
Increase the liquidity of an existing Liquidity Provider (LP) position.
|
|
1506
1506
|
|
|
@@ -1633,7 +1633,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1633
1633
|
timeout_ms: Optional[int] = None,
|
|
1634
1634
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1635
1635
|
) -> models.TxResponse:
|
|
1636
|
-
r"""Withdraw an LP
|
|
1636
|
+
r"""Withdraw an LP Position
|
|
1637
1637
|
|
|
1638
1638
|
Withdraw an existing Liquidity Provider (LP) position.
|
|
1639
1639
|
|
|
@@ -1760,7 +1760,7 @@ class AerodromeSlipstream(BaseSDK):
|
|
|
1760
1760
|
timeout_ms: Optional[int] = None,
|
|
1761
1761
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1762
1762
|
) -> models.TxResponse:
|
|
1763
|
-
r"""Withdraw an LP
|
|
1763
|
+
r"""Withdraw an LP Position
|
|
1764
1764
|
|
|
1765
1765
|
Withdraw an existing Liquidity Provider (LP) position.
|
|
1766
1766
|
|
|
@@ -13,6 +13,8 @@ class BatchedUserOperationsRequestTypedDict(TypedDict):
|
|
|
13
13
|
|
|
14
14
|
chain: Chain
|
|
15
15
|
r"""The chain to use."""
|
|
16
|
+
sender: str
|
|
17
|
+
r"""The address of the transaction sender."""
|
|
16
18
|
operations: List[UserOperationTypedDict]
|
|
17
19
|
r"""List of possible user operations"""
|
|
18
20
|
|
|
@@ -23,5 +25,8 @@ class BatchedUserOperationsRequest(BaseModel):
|
|
|
23
25
|
chain: Chain
|
|
24
26
|
r"""The chain to use."""
|
|
25
27
|
|
|
28
|
+
sender: str
|
|
29
|
+
r"""The address of the transaction sender."""
|
|
30
|
+
|
|
26
31
|
operations: List[UserOperation]
|
|
27
32
|
r"""List of possible user operations"""
|
compass_api_sdk/sdk.py
CHANGED
|
@@ -21,7 +21,7 @@ if TYPE_CHECKING:
|
|
|
21
21
|
from compass_api_sdk.sky import Sky
|
|
22
22
|
from compass_api_sdk.smart_account import SmartAccount
|
|
23
23
|
from compass_api_sdk.token_sdk import TokenSDK
|
|
24
|
-
from compass_api_sdk.
|
|
24
|
+
from compass_api_sdk.transaction_bundler import TransactionBundler
|
|
25
25
|
from compass_api_sdk.uniswap_v3 import UniswapV3
|
|
26
26
|
from compass_api_sdk.universal import Universal
|
|
27
27
|
|
|
@@ -37,7 +37,7 @@ class CompassAPI(BaseSDK):
|
|
|
37
37
|
uniswap_v3: "UniswapV3"
|
|
38
38
|
universal: "Universal"
|
|
39
39
|
pendle: "Pendle"
|
|
40
|
-
|
|
40
|
+
transaction_bundler: "TransactionBundler"
|
|
41
41
|
smart_account: "SmartAccount"
|
|
42
42
|
_sub_sdk_map = {
|
|
43
43
|
"aave_v3": ("compass_api_sdk.aave_v3", "AaveV3"),
|
|
@@ -51,9 +51,9 @@ class CompassAPI(BaseSDK):
|
|
|
51
51
|
"uniswap_v3": ("compass_api_sdk.uniswap_v3", "UniswapV3"),
|
|
52
52
|
"universal": ("compass_api_sdk.universal", "Universal"),
|
|
53
53
|
"pendle": ("compass_api_sdk.pendle", "Pendle"),
|
|
54
|
-
"
|
|
55
|
-
"compass_api_sdk.
|
|
56
|
-
"
|
|
54
|
+
"transaction_bundler": (
|
|
55
|
+
"compass_api_sdk.transaction_bundler",
|
|
56
|
+
"TransactionBundler",
|
|
57
57
|
),
|
|
58
58
|
"smart_account": ("compass_api_sdk.smart_account", "SmartAccount"),
|
|
59
59
|
}
|
compass_api_sdk/smart_account.py
CHANGED
|
@@ -12,6 +12,7 @@ class SmartAccount(BaseSDK):
|
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
14
|
chain: models.Chain,
|
|
15
|
+
sender: str,
|
|
15
16
|
operations: Union[
|
|
16
17
|
List[models.UserOperation], List[models.UserOperationTypedDict]
|
|
17
18
|
],
|
|
@@ -25,6 +26,7 @@ class SmartAccount(BaseSDK):
|
|
|
25
26
|
Generate a list of user operations for smart account batching.
|
|
26
27
|
|
|
27
28
|
:param chain: The chain to use.
|
|
29
|
+
:param sender: The address of the transaction sender.
|
|
28
30
|
:param operations: List of possible user operations
|
|
29
31
|
:param retries: Override the default retry configuration for this method
|
|
30
32
|
:param server_url: Override the default server URL for this method
|
|
@@ -43,6 +45,7 @@ class SmartAccount(BaseSDK):
|
|
|
43
45
|
|
|
44
46
|
request = models.BatchedUserOperationsRequest(
|
|
45
47
|
chain=chain,
|
|
48
|
+
sender=sender,
|
|
46
49
|
operations=utils.get_pydantic_model(operations, List[models.UserOperation]),
|
|
47
50
|
)
|
|
48
51
|
|
|
@@ -120,6 +123,7 @@ class SmartAccount(BaseSDK):
|
|
|
120
123
|
self,
|
|
121
124
|
*,
|
|
122
125
|
chain: models.Chain,
|
|
126
|
+
sender: str,
|
|
123
127
|
operations: Union[
|
|
124
128
|
List[models.UserOperation], List[models.UserOperationTypedDict]
|
|
125
129
|
],
|
|
@@ -133,6 +137,7 @@ class SmartAccount(BaseSDK):
|
|
|
133
137
|
Generate a list of user operations for smart account batching.
|
|
134
138
|
|
|
135
139
|
:param chain: The chain to use.
|
|
140
|
+
:param sender: The address of the transaction sender.
|
|
136
141
|
:param operations: List of possible user operations
|
|
137
142
|
:param retries: Override the default retry configuration for this method
|
|
138
143
|
:param server_url: Override the default server URL for this method
|
|
@@ -151,6 +156,7 @@ class SmartAccount(BaseSDK):
|
|
|
151
156
|
|
|
152
157
|
request = models.BatchedUserOperationsRequest(
|
|
153
158
|
chain=chain,
|
|
159
|
+
sender=sender,
|
|
154
160
|
operations=utils.get_pydantic_model(operations, List[models.UserOperation]),
|
|
155
161
|
)
|
|
156
162
|
|
compass_api_sdk/token_sdk.py
CHANGED
|
@@ -646,7 +646,7 @@ class TokenSDK(BaseSDK):
|
|
|
646
646
|
timeout_ms: Optional[int] = None,
|
|
647
647
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
648
648
|
) -> models.TxResponse:
|
|
649
|
-
r"""Transfer ETH or ERC20 Tokens
|
|
649
|
+
r"""Transfer ETH or ERC20 Tokens
|
|
650
650
|
|
|
651
651
|
Sends native ETH or ERC20 tokens from the sender's address to another address.
|
|
652
652
|
|
|
@@ -764,7 +764,7 @@ class TokenSDK(BaseSDK):
|
|
|
764
764
|
timeout_ms: Optional[int] = None,
|
|
765
765
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
766
766
|
) -> models.TxResponse:
|
|
767
|
-
r"""Transfer ETH or ERC20 Tokens
|
|
767
|
+
r"""Transfer ETH or ERC20 Tokens
|
|
768
768
|
|
|
769
769
|
Sends native ETH or ERC20 tokens from the sender's address to another address.
|
|
770
770
|
|
|
@@ -7,8 +7,8 @@ from compass_api_sdk.types import OptionalNullable, UNSET
|
|
|
7
7
|
from typing import Any, List, Mapping, Optional, Union
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
11
|
-
def
|
|
10
|
+
class TransactionBundler(BaseSDK):
|
|
11
|
+
def bundler_authorization(
|
|
12
12
|
self,
|
|
13
13
|
*,
|
|
14
14
|
chain: models.Chain,
|
|
@@ -18,7 +18,7 @@ class TransactionBatching(BaseSDK):
|
|
|
18
18
|
timeout_ms: Optional[int] = None,
|
|
19
19
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
20
|
) -> models.MulticallAuthorizationResponse:
|
|
21
|
-
r"""Enable
|
|
21
|
+
r"""Enable Transaction Bundling
|
|
22
22
|
|
|
23
23
|
Get authorization for bundling transactions.
|
|
24
24
|
|
|
@@ -51,7 +51,7 @@ class TransactionBatching(BaseSDK):
|
|
|
51
51
|
|
|
52
52
|
req = self._build_request(
|
|
53
53
|
method="POST",
|
|
54
|
-
path="/v0/
|
|
54
|
+
path="/v0/transaction_bundler/authorization",
|
|
55
55
|
base_url=base_url,
|
|
56
56
|
url_variables=url_variables,
|
|
57
57
|
request=request,
|
|
@@ -80,7 +80,7 @@ class TransactionBatching(BaseSDK):
|
|
|
80
80
|
hook_ctx=HookContext(
|
|
81
81
|
config=self.sdk_configuration,
|
|
82
82
|
base_url=base_url or "",
|
|
83
|
-
operation_id="
|
|
83
|
+
operation_id="transaction_bundler_authorization",
|
|
84
84
|
oauth2_scopes=[],
|
|
85
85
|
security_source=self.sdk_configuration.security,
|
|
86
86
|
),
|
|
@@ -119,7 +119,7 @@ class TransactionBatching(BaseSDK):
|
|
|
119
119
|
http_res,
|
|
120
120
|
)
|
|
121
121
|
|
|
122
|
-
async def
|
|
122
|
+
async def bundler_authorization_async(
|
|
123
123
|
self,
|
|
124
124
|
*,
|
|
125
125
|
chain: models.Chain,
|
|
@@ -129,7 +129,7 @@ class TransactionBatching(BaseSDK):
|
|
|
129
129
|
timeout_ms: Optional[int] = None,
|
|
130
130
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
131
131
|
) -> models.MulticallAuthorizationResponse:
|
|
132
|
-
r"""Enable
|
|
132
|
+
r"""Enable Transaction Bundling
|
|
133
133
|
|
|
134
134
|
Get authorization for bundling transactions.
|
|
135
135
|
|
|
@@ -162,7 +162,7 @@ class TransactionBatching(BaseSDK):
|
|
|
162
162
|
|
|
163
163
|
req = self._build_request_async(
|
|
164
164
|
method="POST",
|
|
165
|
-
path="/v0/
|
|
165
|
+
path="/v0/transaction_bundler/authorization",
|
|
166
166
|
base_url=base_url,
|
|
167
167
|
url_variables=url_variables,
|
|
168
168
|
request=request,
|
|
@@ -191,7 +191,7 @@ class TransactionBatching(BaseSDK):
|
|
|
191
191
|
hook_ctx=HookContext(
|
|
192
192
|
config=self.sdk_configuration,
|
|
193
193
|
base_url=base_url or "",
|
|
194
|
-
operation_id="
|
|
194
|
+
operation_id="transaction_bundler_authorization",
|
|
195
195
|
oauth2_scopes=[],
|
|
196
196
|
security_source=self.sdk_configuration.security,
|
|
197
197
|
),
|
|
@@ -230,7 +230,7 @@ class TransactionBatching(BaseSDK):
|
|
|
230
230
|
http_res,
|
|
231
231
|
)
|
|
232
232
|
|
|
233
|
-
def
|
|
233
|
+
def bundler_execute(
|
|
234
234
|
self,
|
|
235
235
|
*,
|
|
236
236
|
chain: models.Chain,
|
|
@@ -284,7 +284,7 @@ class TransactionBatching(BaseSDK):
|
|
|
284
284
|
|
|
285
285
|
req = self._build_request(
|
|
286
286
|
method="POST",
|
|
287
|
-
path="/v0/
|
|
287
|
+
path="/v0/transaction_bundler/execute",
|
|
288
288
|
base_url=base_url,
|
|
289
289
|
url_variables=url_variables,
|
|
290
290
|
request=request,
|
|
@@ -313,7 +313,7 @@ class TransactionBatching(BaseSDK):
|
|
|
313
313
|
hook_ctx=HookContext(
|
|
314
314
|
config=self.sdk_configuration,
|
|
315
315
|
base_url=base_url or "",
|
|
316
|
-
operation_id="
|
|
316
|
+
operation_id="transaction_bundler_execute",
|
|
317
317
|
oauth2_scopes=[],
|
|
318
318
|
security_source=self.sdk_configuration.security,
|
|
319
319
|
),
|
|
@@ -352,7 +352,7 @@ class TransactionBatching(BaseSDK):
|
|
|
352
352
|
http_res,
|
|
353
353
|
)
|
|
354
354
|
|
|
355
|
-
async def
|
|
355
|
+
async def bundler_execute_async(
|
|
356
356
|
self,
|
|
357
357
|
*,
|
|
358
358
|
chain: models.Chain,
|
|
@@ -406,7 +406,7 @@ class TransactionBatching(BaseSDK):
|
|
|
406
406
|
|
|
407
407
|
req = self._build_request_async(
|
|
408
408
|
method="POST",
|
|
409
|
-
path="/v0/
|
|
409
|
+
path="/v0/transaction_bundler/execute",
|
|
410
410
|
base_url=base_url,
|
|
411
411
|
url_variables=url_variables,
|
|
412
412
|
request=request,
|
|
@@ -435,7 +435,7 @@ class TransactionBatching(BaseSDK):
|
|
|
435
435
|
hook_ctx=HookContext(
|
|
436
436
|
config=self.sdk_configuration,
|
|
437
437
|
base_url=base_url or "",
|
|
438
|
-
operation_id="
|
|
438
|
+
operation_id="transaction_bundler_execute",
|
|
439
439
|
oauth2_scopes=[],
|
|
440
440
|
security_source=self.sdk_configuration.security,
|
|
441
441
|
),
|
|
@@ -474,7 +474,7 @@ class TransactionBatching(BaseSDK):
|
|
|
474
474
|
http_res,
|
|
475
475
|
)
|
|
476
476
|
|
|
477
|
-
def
|
|
477
|
+
def bundler_aave_loop(
|
|
478
478
|
self,
|
|
479
479
|
*,
|
|
480
480
|
chain: models.Chain,
|
|
@@ -497,7 +497,7 @@ class TransactionBatching(BaseSDK):
|
|
|
497
497
|
timeout_ms: Optional[int] = None,
|
|
498
498
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
499
499
|
) -> models.UnsignedMulticallTransaction:
|
|
500
|
-
r"""AAVE
|
|
500
|
+
r"""AAVE Leverage Long/Short
|
|
501
501
|
|
|
502
502
|
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
503
503
|
operations.
|
|
@@ -551,7 +551,7 @@ class TransactionBatching(BaseSDK):
|
|
|
551
551
|
|
|
552
552
|
req = self._build_request(
|
|
553
553
|
method="POST",
|
|
554
|
-
path="/v0/
|
|
554
|
+
path="/v0/transaction_bundler/aave/loop",
|
|
555
555
|
base_url=base_url,
|
|
556
556
|
url_variables=url_variables,
|
|
557
557
|
request=request,
|
|
@@ -580,7 +580,7 @@ class TransactionBatching(BaseSDK):
|
|
|
580
580
|
hook_ctx=HookContext(
|
|
581
581
|
config=self.sdk_configuration,
|
|
582
582
|
base_url=base_url or "",
|
|
583
|
-
operation_id="
|
|
583
|
+
operation_id="transaction_bundler_aave_loop",
|
|
584
584
|
oauth2_scopes=[],
|
|
585
585
|
security_source=self.sdk_configuration.security,
|
|
586
586
|
),
|
|
@@ -619,7 +619,7 @@ class TransactionBatching(BaseSDK):
|
|
|
619
619
|
http_res,
|
|
620
620
|
)
|
|
621
621
|
|
|
622
|
-
async def
|
|
622
|
+
async def bundler_aave_loop_async(
|
|
623
623
|
self,
|
|
624
624
|
*,
|
|
625
625
|
chain: models.Chain,
|
|
@@ -642,7 +642,7 @@ class TransactionBatching(BaseSDK):
|
|
|
642
642
|
timeout_ms: Optional[int] = None,
|
|
643
643
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
644
644
|
) -> models.UnsignedMulticallTransaction:
|
|
645
|
-
r"""AAVE
|
|
645
|
+
r"""AAVE Leverage Long/Short
|
|
646
646
|
|
|
647
647
|
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
648
648
|
operations.
|
|
@@ -696,7 +696,7 @@ class TransactionBatching(BaseSDK):
|
|
|
696
696
|
|
|
697
697
|
req = self._build_request_async(
|
|
698
698
|
method="POST",
|
|
699
|
-
path="/v0/
|
|
699
|
+
path="/v0/transaction_bundler/aave/loop",
|
|
700
700
|
base_url=base_url,
|
|
701
701
|
url_variables=url_variables,
|
|
702
702
|
request=request,
|
|
@@ -725,7 +725,7 @@ class TransactionBatching(BaseSDK):
|
|
|
725
725
|
hook_ctx=HookContext(
|
|
726
726
|
config=self.sdk_configuration,
|
|
727
727
|
base_url=base_url or "",
|
|
728
|
-
operation_id="
|
|
728
|
+
operation_id="transaction_bundler_aave_loop",
|
|
729
729
|
oauth2_scopes=[],
|
|
730
730
|
security_source=self.sdk_configuration.security,
|
|
731
731
|
),
|
compass_api_sdk/uniswap_v3.py
CHANGED
|
@@ -24,7 +24,7 @@ class UniswapV3(BaseSDK):
|
|
|
24
24
|
timeout_ms: Optional[int] = None,
|
|
25
25
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
26
26
|
) -> models.UniswapBuyQuoteInfoResponse:
|
|
27
|
-
r"""Get
|
|
27
|
+
r"""Get Quote - to Specified Amount
|
|
28
28
|
|
|
29
29
|
This endpoint calculates the amount of input tokens required to purchase a
|
|
30
30
|
specified amount of output tokens from a Uniswap pool.
|
|
@@ -143,7 +143,7 @@ class UniswapV3(BaseSDK):
|
|
|
143
143
|
timeout_ms: Optional[int] = None,
|
|
144
144
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
145
145
|
) -> models.UniswapBuyQuoteInfoResponse:
|
|
146
|
-
r"""Get
|
|
146
|
+
r"""Get Quote - to Specified Amount
|
|
147
147
|
|
|
148
148
|
This endpoint calculates the amount of input tokens required to purchase a
|
|
149
149
|
specified amount of output tokens from a Uniswap pool.
|
|
@@ -262,7 +262,7 @@ class UniswapV3(BaseSDK):
|
|
|
262
262
|
timeout_ms: Optional[int] = None,
|
|
263
263
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
264
264
|
) -> models.UniswapSellQuoteInfoResponse:
|
|
265
|
-
r"""Get quote -
|
|
265
|
+
r"""Get quote - From Specified Amount
|
|
266
266
|
|
|
267
267
|
This endpoint calculates the amount of input tokens required to purchase a
|
|
268
268
|
specified amount of output tokens from a Uniswap pool.
|
|
@@ -381,7 +381,7 @@ class UniswapV3(BaseSDK):
|
|
|
381
381
|
timeout_ms: Optional[int] = None,
|
|
382
382
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
383
383
|
) -> models.UniswapSellQuoteInfoResponse:
|
|
384
|
-
r"""Get quote -
|
|
384
|
+
r"""Get quote - From Specified Amount
|
|
385
385
|
|
|
386
386
|
This endpoint calculates the amount of input tokens required to purchase a
|
|
387
387
|
specified amount of output tokens from a Uniswap pool.
|
|
@@ -496,7 +496,7 @@ class UniswapV3(BaseSDK):
|
|
|
496
496
|
timeout_ms: Optional[int] = None,
|
|
497
497
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
498
498
|
) -> models.UniswapPoolPriceResponse:
|
|
499
|
-
r"""Pool
|
|
499
|
+
r"""Pool Price
|
|
500
500
|
|
|
501
501
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
502
502
|
|
|
@@ -605,7 +605,7 @@ class UniswapV3(BaseSDK):
|
|
|
605
605
|
timeout_ms: Optional[int] = None,
|
|
606
606
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
607
607
|
) -> models.UniswapPoolPriceResponse:
|
|
608
|
-
r"""Pool
|
|
608
|
+
r"""Pool Price
|
|
609
609
|
|
|
610
610
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
611
611
|
|
|
@@ -712,7 +712,7 @@ class UniswapV3(BaseSDK):
|
|
|
712
712
|
timeout_ms: Optional[int] = None,
|
|
713
713
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
714
714
|
) -> models.UniswapCheckInRangeResponse:
|
|
715
|
-
r"""Check if LP is
|
|
715
|
+
r"""Check if LP is Active.
|
|
716
716
|
|
|
717
717
|
This endpoint allows users to check whether a specific liquidity provider ()
|
|
718
718
|
position is within the active tick range on the uniswap platform.
|
|
@@ -822,7 +822,7 @@ class UniswapV3(BaseSDK):
|
|
|
822
822
|
timeout_ms: Optional[int] = None,
|
|
823
823
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
824
824
|
) -> models.UniswapCheckInRangeResponse:
|
|
825
|
-
r"""Check if LP is
|
|
825
|
+
r"""Check if LP is Active.
|
|
826
826
|
|
|
827
827
|
This endpoint allows users to check whether a specific liquidity provider ()
|
|
828
828
|
position is within the active tick range on the uniswap platform.
|
compass_api_sdk/universal.py
CHANGED
|
@@ -18,7 +18,7 @@ class Universal(BaseSDK):
|
|
|
18
18
|
timeout_ms: Optional[int] = None,
|
|
19
19
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
20
|
) -> models.Portfolio:
|
|
21
|
-
r"""List
|
|
21
|
+
r"""List User Portfolio
|
|
22
22
|
|
|
23
23
|
Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
24
24
|
|
|
@@ -122,7 +122,7 @@ class Universal(BaseSDK):
|
|
|
122
122
|
timeout_ms: Optional[int] = None,
|
|
123
123
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
124
124
|
) -> models.Portfolio:
|
|
125
|
-
r"""List
|
|
125
|
+
r"""List User Portfolio
|
|
126
126
|
|
|
127
127
|
Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
128
128
|
|
|
@@ -226,7 +226,7 @@ class Universal(BaseSDK):
|
|
|
226
226
|
timeout_ms: Optional[int] = None,
|
|
227
227
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
228
228
|
) -> models.Image:
|
|
229
|
-
r"""Visualize
|
|
229
|
+
r"""Visualize User Portfolio
|
|
230
230
|
|
|
231
231
|
Generate a visual representation of the token portfolio for a wallet address.
|
|
232
232
|
|
|
@@ -331,7 +331,7 @@ class Universal(BaseSDK):
|
|
|
331
331
|
timeout_ms: Optional[int] = None,
|
|
332
332
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
333
333
|
) -> models.Image:
|
|
334
|
-
r"""Visualize
|
|
334
|
+
r"""Visualize User Portfolio
|
|
335
335
|
|
|
336
336
|
Generate a visual representation of the token portfolio for a wallet address.
|
|
337
337
|
|
|
@@ -435,7 +435,7 @@ class Universal(BaseSDK):
|
|
|
435
435
|
timeout_ms: Optional[int] = None,
|
|
436
436
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
437
437
|
) -> models.TokenInfo:
|
|
438
|
-
r"""List
|
|
438
|
+
r"""List Supported Tokens
|
|
439
439
|
|
|
440
440
|
Get the list of supported tokens on a chain by the Compass API.
|
|
441
441
|
|
|
@@ -533,7 +533,7 @@ class Universal(BaseSDK):
|
|
|
533
533
|
timeout_ms: Optional[int] = None,
|
|
534
534
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
535
535
|
) -> models.TokenInfo:
|
|
536
|
-
r"""List
|
|
536
|
+
r"""List Supported Tokens
|
|
537
537
|
|
|
538
538
|
Get the list of supported tokens on a chain by the Compass API.
|
|
539
539
|
|
|
@@ -636,7 +636,7 @@ class Universal(BaseSDK):
|
|
|
636
636
|
timeout_ms: Optional[int] = None,
|
|
637
637
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
638
638
|
) -> models.AllowanceInfoResponse:
|
|
639
|
-
r"""Get
|
|
639
|
+
r"""Get Allowance
|
|
640
640
|
|
|
641
641
|
In decentralized finance (DeFi) protocols such as Uniswap or AAVE, users must set
|
|
642
642
|
a token allowance to authorize the protocol to spend a specified amount of their
|
|
@@ -751,7 +751,7 @@ class Universal(BaseSDK):
|
|
|
751
751
|
timeout_ms: Optional[int] = None,
|
|
752
752
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
753
753
|
) -> models.AllowanceInfoResponse:
|
|
754
|
-
r"""Get
|
|
754
|
+
r"""Get Allowance
|
|
755
755
|
|
|
756
756
|
In decentralized finance (DeFi) protocols such as Uniswap or AAVE, users must set
|
|
757
757
|
a token allowance to authorize the protocol to spend a specified amount of their
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: compass_api_sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.21
|
|
4
4
|
Summary: Compass API SDK.
|
|
5
5
|
Author: royalnine
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -194,28 +194,28 @@ with CompassAPI(
|
|
|
194
194
|
### [aave_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md)
|
|
195
195
|
|
|
196
196
|
* [rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#rate) - Interest Rates
|
|
197
|
-
* [avg_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#avg_rate) - Interest Rates:
|
|
198
|
-
* [std_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#std_rate) - Interest Rates:
|
|
199
|
-
* [reserve_overview](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#reserve_overview) - Reserve
|
|
200
|
-
* [token_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#token_price) - Token
|
|
201
|
-
* [liquidity_change](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#liquidity_change) - Liquidity
|
|
202
|
-
* [user_position_summary](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#user_position_summary) - Positions -
|
|
203
|
-
* [user_position_per_token](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#user_position_per_token) - Positions - per
|
|
204
|
-
* [historical_transactions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#historical_transactions) - Historical
|
|
197
|
+
* [avg_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#avg_rate) - Interest Rates: Time Average
|
|
198
|
+
* [std_rate](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#std_rate) - Interest Rates: Standard Deviation
|
|
199
|
+
* [reserve_overview](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#reserve_overview) - Reserve Overview
|
|
200
|
+
* [token_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#token_price) - Token Prices
|
|
201
|
+
* [liquidity_change](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#liquidity_change) - Liquidity Index
|
|
202
|
+
* [user_position_summary](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#user_position_summary) - Positions - Total
|
|
203
|
+
* [user_position_per_token](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#user_position_per_token) - Positions - per Token
|
|
204
|
+
* [historical_transactions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#historical_transactions) - Historical Transactions
|
|
205
205
|
* [supply](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#supply) - Supply/Lend
|
|
206
206
|
* [borrow](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#borrow) - Borrow
|
|
207
|
-
* [repay](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#repay) - Repay
|
|
207
|
+
* [repay](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#repay) - Repay Loans
|
|
208
208
|
* [withdraw](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aavev3/README.md#withdraw) - Unstake
|
|
209
209
|
|
|
210
210
|
### [aerodrome_slipstream](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md)
|
|
211
211
|
|
|
212
|
-
* [slipstream_liquidity_provision_positions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_positions) - List LP
|
|
213
|
-
* [slipstream_pool_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_pool_price) - Pool
|
|
214
|
-
* [slipstream_swap_sell_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_swap_sell_exactly) - Swap - from
|
|
215
|
-
* [slipstream_swap_buy_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_swap_buy_exactly) - Swap - into
|
|
216
|
-
* [slipstream_liquidity_provision_mint](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_mint) - Open a
|
|
217
|
-
* [slipstream_liquidity_provision_increase](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_increase) - Increase an LP
|
|
218
|
-
* [slipstream_liquidity_provision_withdraw](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_withdraw) - Withdraw an LP
|
|
212
|
+
* [slipstream_liquidity_provision_positions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_positions) - List LP Positions
|
|
213
|
+
* [slipstream_pool_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_pool_price) - Pool Price
|
|
214
|
+
* [slipstream_swap_sell_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_swap_sell_exactly) - Swap - from Specified Amount
|
|
215
|
+
* [slipstream_swap_buy_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_swap_buy_exactly) - Swap - into Specified Amount
|
|
216
|
+
* [slipstream_liquidity_provision_mint](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_mint) - Open a New LP Position
|
|
217
|
+
* [slipstream_liquidity_provision_increase](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_increase) - Increase an LP Position
|
|
218
|
+
* [slipstream_liquidity_provision_withdraw](https://github.com/CompassLabs/mono/blob/master/docs/sdks/aerodromeslipstream/README.md#slipstream_liquidity_provision_withdraw) - Withdraw an LP Position
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
### [morpho](https://github.com/CompassLabs/mono/blob/master/docs/sdks/morpho/README.md)
|
|
@@ -266,20 +266,20 @@ with CompassAPI(
|
|
|
266
266
|
* [address](https://github.com/CompassLabs/mono/blob/master/docs/sdks/tokensdk/README.md#address) - Token Address
|
|
267
267
|
* [price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/tokensdk/README.md#price) - Token Price
|
|
268
268
|
* [balance](https://github.com/CompassLabs/mono/blob/master/docs/sdks/tokensdk/README.md#balance) - Token Balance
|
|
269
|
-
* [transfer](https://github.com/CompassLabs/mono/blob/master/docs/sdks/tokensdk/README.md#transfer) - Transfer ETH or ERC20 Tokens
|
|
269
|
+
* [transfer](https://github.com/CompassLabs/mono/blob/master/docs/sdks/tokensdk/README.md#transfer) - Transfer ETH or ERC20 Tokens
|
|
270
270
|
|
|
271
|
-
### [
|
|
271
|
+
### [transaction_bundler](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbundler/README.md)
|
|
272
272
|
|
|
273
|
-
* [
|
|
274
|
-
* [
|
|
275
|
-
* [
|
|
273
|
+
* [bundler_authorization](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbundler/README.md#bundler_authorization) - Enable Transaction Bundling
|
|
274
|
+
* [bundler_execute](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbundler/README.md#bundler_execute) - Construct Bundled Transaction
|
|
275
|
+
* [bundler_aave_loop](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbundler/README.md#bundler_aave_loop) - AAVE Leverage Long/Short
|
|
276
276
|
|
|
277
277
|
### [uniswap_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md)
|
|
278
278
|
|
|
279
|
-
* [quote_buy_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#quote_buy_exactly) - Get
|
|
280
|
-
* [quote_sell_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#quote_sell_exactly) - Get quote -
|
|
281
|
-
* [pool_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#pool_price) - Pool
|
|
282
|
-
* [liquidity_provision_in_range](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#liquidity_provision_in_range) - Check if LP is
|
|
279
|
+
* [quote_buy_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#quote_buy_exactly) - Get Quote - to Specified Amount
|
|
280
|
+
* [quote_sell_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#quote_sell_exactly) - Get quote - From Specified Amount
|
|
281
|
+
* [pool_price](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#pool_price) - Pool Price
|
|
282
|
+
* [liquidity_provision_in_range](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#liquidity_provision_in_range) - Check if LP is Active.
|
|
283
283
|
* [liquidity_provision_positions](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#liquidity_provision_positions) - List LP
|
|
284
284
|
* [swap_buy_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#swap_buy_exactly) - Buy exact amount
|
|
285
285
|
* [swap_sell_exactly](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md#swap_sell_exactly) - Sell exact amount
|
|
@@ -289,10 +289,10 @@ with CompassAPI(
|
|
|
289
289
|
|
|
290
290
|
### [universal](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md)
|
|
291
291
|
|
|
292
|
-
* [portfolio](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#portfolio) - List
|
|
293
|
-
* [visualize_portfolio](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#visualize_portfolio) - Visualize
|
|
294
|
-
* [supported_tokens](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#supported_tokens) - List
|
|
295
|
-
* [allowance](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#allowance) - Get
|
|
292
|
+
* [portfolio](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#portfolio) - List User Portfolio
|
|
293
|
+
* [visualize_portfolio](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#visualize_portfolio) - Visualize User Portfolio
|
|
294
|
+
* [supported_tokens](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#supported_tokens) - List Supported Tokens
|
|
295
|
+
* [allowance](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#allowance) - Get Allowance
|
|
296
296
|
* [ens](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#ens) - Resolve ENS
|
|
297
297
|
* [wrap_eth](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#wrap_eth) - Wrap ETH
|
|
298
298
|
* [unwrap_weth](https://github.com/CompassLabs/mono/blob/master/docs/sdks/universal/README.md#unwrap_weth) - Unwrap WETH
|
|
@@ -2,9 +2,9 @@ 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=4qXm6dEntJOC2QeOdTklcc53oFzTU3HBb1xGdZ-kBXY,3059
|
|
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=eIbMzwTOIxkjZGqXoS_J77Z70WXOKFpBHpuK3-5fyOU,474
|
|
6
|
+
compass_api_sdk/aave_v3.py,sha256=HqG_1Sb_Du30Kjrml1L--nI85cGYF27i5At-5YFMOyM,126400
|
|
7
|
+
compass_api_sdk/aerodrome_slipstream.py,sha256=xGt8wnAItW8w6kgnqfwDrsX24qw8TIhsD8fRhxta7Bs,83443
|
|
8
8
|
compass_api_sdk/basesdk.py,sha256=xDxC-X-LHCwtVy8SPM6nckSu1NmF8uKhHUUQd3X-syo,11810
|
|
9
9
|
compass_api_sdk/errors/__init__.py,sha256=V3vSSmUvxXtgwHL60IBI0MzLWll8h373LvT3el17p5Q,1289
|
|
10
10
|
compass_api_sdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
@@ -54,7 +54,7 @@ compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py,sha256=8fTTSQkqx
|
|
|
54
54
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py,sha256=7Oi6Z9Vb4VSAZsvj8j50f6wdcAhzTbwFY6schYwrayA,2871
|
|
55
55
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py,sha256=VbyHw3IAyF80M4qNEaSDnoiKOCKISO3Ecy814j1481Q,2344
|
|
56
56
|
compass_api_sdk/models/allowanceinforesponse.py,sha256=uFIiq6V_cnP6mmpItormvRkNspvD1lsRQ4nzSXguJeI,1021
|
|
57
|
-
compass_api_sdk/models/batcheduseroperationsrequest.py,sha256=
|
|
57
|
+
compass_api_sdk/models/batcheduseroperationsrequest.py,sha256=diV1jBsKWflKAXPQvzYH9ZAtWnL9aUV8O3g3K4DOj-M,920
|
|
58
58
|
compass_api_sdk/models/batcheduseroperationsresponse.py,sha256=RB_xJG3Itpm5DIbPjAt5_mX02hbMklqsWyao7shRiiI,679
|
|
59
59
|
compass_api_sdk/models/borrow.py,sha256=YQxBejrFjAvfjrYC7kmQRsQL2q6bb6MZxLzFuVHZEFg,2140
|
|
60
60
|
compass_api_sdk/models/chain.py,sha256=TzxP0Ujy0L-o3__gggsKeJIWMaflQTNnNSEaXBnSlGU,304
|
|
@@ -222,16 +222,16 @@ compass_api_sdk/models/yieldrange.py,sha256=WEpZR24JddnCS1_13y2P1CdD0lBi6dPktysC
|
|
|
222
222
|
compass_api_sdk/morpho.py,sha256=JtcZoP-M_V0fw2zCCbxejmPrgrXZOiLDZILW1W0J2oQ,134352
|
|
223
223
|
compass_api_sdk/pendle.py,sha256=CJSKzhNdsItMkYdzz9c2HLg455BYlePvk-TWC90qvxc,99652
|
|
224
224
|
compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
225
|
-
compass_api_sdk/sdk.py,sha256=
|
|
225
|
+
compass_api_sdk/sdk.py,sha256=hFQWDilcT8GjlX-J_CFUNDGDED8j0qPYId4b2FJyxVY,7685
|
|
226
226
|
compass_api_sdk/sdkconfiguration.py,sha256=5nec4ViMLCsNWBd3DyEv8zWqU5Z77YZfzwX69jkdSnM,1607
|
|
227
227
|
compass_api_sdk/sky.py,sha256=oZcj2VX26yc-nMTo5WIktz97mAjZT1J0K2IHvi_m3oM,43965
|
|
228
|
-
compass_api_sdk/smart_account.py,sha256
|
|
229
|
-
compass_api_sdk/token_sdk.py,sha256=
|
|
230
|
-
compass_api_sdk/
|
|
228
|
+
compass_api_sdk/smart_account.py,sha256=-uMbE_v4WvnqGGj2ZKsJrBBByV904qm37l5spUa2OxE,9370
|
|
229
|
+
compass_api_sdk/token_sdk.py,sha256=O_bHPJX-ZMMQnN3Dvw9DF5SSGV2g-52mDfDATymvGWI,34600
|
|
230
|
+
compass_api_sdk/transaction_bundler.py,sha256=e5pDqD6ZIw9wmxilgvqt8--evS7o9bCx1IiI-NvX5pI,32398
|
|
231
231
|
compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
232
232
|
compass_api_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
233
|
-
compass_api_sdk/uniswap_v3.py,sha256=
|
|
234
|
-
compass_api_sdk/universal.py,sha256=
|
|
233
|
+
compass_api_sdk/uniswap_v3.py,sha256=qRCWOkXbpHKWMHpgvXlioflGog4L5TIUWY5F456bpi4,109087
|
|
234
|
+
compass_api_sdk/universal.py,sha256=tPToudEvamNB9zjNP_JVrpJIZ8_tq2-J29mLnecxWe8,70923
|
|
235
235
|
compass_api_sdk/utils/__init__.py,sha256=811KKdkxMaWDfz2lMohUWqrR4JnIWxqeNQ1lRGQU4DM,5341
|
|
236
236
|
compass_api_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
237
237
|
compass_api_sdk/utils/datetimes.py,sha256=oppAA5e3V35pQov1-FNLKxAaNF1_XWi-bQtyjjql3H8,855
|
|
@@ -248,6 +248,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
|
|
|
248
248
|
compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
249
249
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
250
250
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
251
|
-
compass_api_sdk-0.9.
|
|
252
|
-
compass_api_sdk-0.9.
|
|
253
|
-
compass_api_sdk-0.9.
|
|
251
|
+
compass_api_sdk-0.9.21.dist-info/METADATA,sha256=6LxdDwVWmmXzgmtqKvTo3pqA247-vfZG3pcXKEDz__4,26680
|
|
252
|
+
compass_api_sdk-0.9.21.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
253
|
+
compass_api_sdk-0.9.21.dist-info/RECORD,,
|
|
File without changes
|