compass_api_sdk 0.9.21__py3-none-any.whl → 0.9.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +2 -2
- compass_api_sdk/aave_v3.py +12 -12
- compass_api_sdk/models/__init__.py +89 -80
- compass_api_sdk/models/aave_historical_transactionsop.py +2 -2
- compass_api_sdk/models/aave_user_position_per_tokenop.py +2 -2
- compass_api_sdk/models/aave_user_position_summaryop.py +2 -2
- compass_api_sdk/models/generic_allowanceop.py +21 -11
- compass_api_sdk/models/setallowanceparams.py +95 -0
- compass_api_sdk/models/setallowancerequest.py +108 -0
- compass_api_sdk/models/useroperation.py +19 -25
- compass_api_sdk/models/vaultdepositrequest.py +98 -0
- compass_api_sdk/models/vaultwithdrawrequest.py +86 -0
- compass_api_sdk/morpho.py +0 -234
- compass_api_sdk/sdk.py +3 -0
- compass_api_sdk/universal.py +36 -28
- compass_api_sdk/vaults_erc_4626_.py +477 -0
- {compass_api_sdk-0.9.21.dist-info → compass_api_sdk-0.9.23.dist-info}/METADATA +6 -2
- {compass_api_sdk-0.9.21.dist-info → compass_api_sdk-0.9.23.dist-info}/RECORD +19 -18
- compass_api_sdk/models/increaseallowanceparams.py +0 -86
- compass_api_sdk/models/increaseallowancerequest.py +0 -97
- compass_api_sdk/models/morphosetvaultallowanceparams.py +0 -45
- compass_api_sdk/models/morphosetvaultallowancerequest.py +0 -59
- {compass_api_sdk-0.9.21.dist-info → compass_api_sdk-0.9.23.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.23"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
8
|
__gen_version__: str = "2.632.2"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.9.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.9.23 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
|
@@ -1357,8 +1357,8 @@ class AaveV3(BaseSDK):
|
|
|
1357
1357
|
def user_position_summary(
|
|
1358
1358
|
self,
|
|
1359
1359
|
*,
|
|
1360
|
-
chain: models.AaveUserPositionSummaryChain = models.AaveUserPositionSummaryChain.
|
|
1361
|
-
user: str = "
|
|
1360
|
+
chain: models.AaveUserPositionSummaryChain = models.AaveUserPositionSummaryChain.BASE_MAINNET,
|
|
1361
|
+
user: str = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07",
|
|
1362
1362
|
block: OptionalNullable[int] = UNSET,
|
|
1363
1363
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1364
1364
|
server_url: Optional[str] = None,
|
|
@@ -1470,8 +1470,8 @@ class AaveV3(BaseSDK):
|
|
|
1470
1470
|
async def user_position_summary_async(
|
|
1471
1471
|
self,
|
|
1472
1472
|
*,
|
|
1473
|
-
chain: models.AaveUserPositionSummaryChain = models.AaveUserPositionSummaryChain.
|
|
1474
|
-
user: str = "
|
|
1473
|
+
chain: models.AaveUserPositionSummaryChain = models.AaveUserPositionSummaryChain.BASE_MAINNET,
|
|
1474
|
+
user: str = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07",
|
|
1475
1475
|
block: OptionalNullable[int] = UNSET,
|
|
1476
1476
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1477
1477
|
server_url: Optional[str] = None,
|
|
@@ -1583,8 +1583,8 @@ class AaveV3(BaseSDK):
|
|
|
1583
1583
|
def user_position_per_token(
|
|
1584
1584
|
self,
|
|
1585
1585
|
*,
|
|
1586
|
-
chain: models.AaveUserPositionPerTokenChain = models.AaveUserPositionPerTokenChain.
|
|
1587
|
-
user: str = "
|
|
1586
|
+
chain: models.AaveUserPositionPerTokenChain = models.AaveUserPositionPerTokenChain.BASE_MAINNET,
|
|
1587
|
+
user: str = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07",
|
|
1588
1588
|
token: models.AaveUserPositionPerTokenToken = models.AaveUserPositionPerTokenToken.USDC,
|
|
1589
1589
|
block: OptionalNullable[int] = UNSET,
|
|
1590
1590
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1700,8 +1700,8 @@ class AaveV3(BaseSDK):
|
|
|
1700
1700
|
async def user_position_per_token_async(
|
|
1701
1701
|
self,
|
|
1702
1702
|
*,
|
|
1703
|
-
chain: models.AaveUserPositionPerTokenChain = models.AaveUserPositionPerTokenChain.
|
|
1704
|
-
user: str = "
|
|
1703
|
+
chain: models.AaveUserPositionPerTokenChain = models.AaveUserPositionPerTokenChain.BASE_MAINNET,
|
|
1704
|
+
user: str = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07",
|
|
1705
1705
|
token: models.AaveUserPositionPerTokenToken = models.AaveUserPositionPerTokenToken.USDC,
|
|
1706
1706
|
block: OptionalNullable[int] = UNSET,
|
|
1707
1707
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1817,8 +1817,8 @@ class AaveV3(BaseSDK):
|
|
|
1817
1817
|
def historical_transactions(
|
|
1818
1818
|
self,
|
|
1819
1819
|
*,
|
|
1820
|
-
chain: models.AaveHistoricalTransactionsChain = models.AaveHistoricalTransactionsChain.
|
|
1821
|
-
user_address: str = "
|
|
1820
|
+
chain: models.AaveHistoricalTransactionsChain = models.AaveHistoricalTransactionsChain.BASE_MAINNET,
|
|
1821
|
+
user_address: str = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07",
|
|
1822
1822
|
offset: Optional[int] = 0,
|
|
1823
1823
|
limit: Optional[int] = 100,
|
|
1824
1824
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -1931,8 +1931,8 @@ class AaveV3(BaseSDK):
|
|
|
1931
1931
|
async def historical_transactions_async(
|
|
1932
1932
|
self,
|
|
1933
1933
|
*,
|
|
1934
|
-
chain: models.AaveHistoricalTransactionsChain = models.AaveHistoricalTransactionsChain.
|
|
1935
|
-
user_address: str = "
|
|
1934
|
+
chain: models.AaveHistoricalTransactionsChain = models.AaveHistoricalTransactionsChain.BASE_MAINNET,
|
|
1935
|
+
user_address: str = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07",
|
|
1936
1936
|
offset: Optional[int] = 0,
|
|
1937
1937
|
limit: Optional[int] = 100,
|
|
1938
1938
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -340,7 +340,9 @@ if TYPE_CHECKING:
|
|
|
340
340
|
from .feeenum import FeeEnum
|
|
341
341
|
from .generic_allowanceop import (
|
|
342
342
|
GenericAllowanceChain,
|
|
343
|
-
|
|
343
|
+
GenericAllowanceContractEnum,
|
|
344
|
+
GenericAllowanceContractUnion,
|
|
345
|
+
GenericAllowanceContractUnionTypedDict,
|
|
344
346
|
GenericAllowanceRequest,
|
|
345
347
|
GenericAllowanceRequestTypedDict,
|
|
346
348
|
GenericAllowanceToken,
|
|
@@ -367,24 +369,6 @@ if TYPE_CHECKING:
|
|
|
367
369
|
GenericVisualizePortfolioRequestTypedDict,
|
|
368
370
|
)
|
|
369
371
|
from .image import Image, ImageTypedDict
|
|
370
|
-
from .increaseallowanceparams import (
|
|
371
|
-
IncreaseAllowanceParams,
|
|
372
|
-
IncreaseAllowanceParamsAmount,
|
|
373
|
-
IncreaseAllowanceParamsAmountTypedDict,
|
|
374
|
-
IncreaseAllowanceParamsContractName,
|
|
375
|
-
IncreaseAllowanceParamsToken,
|
|
376
|
-
IncreaseAllowanceParamsTokenTypedDict,
|
|
377
|
-
IncreaseAllowanceParamsTypedDict,
|
|
378
|
-
)
|
|
379
|
-
from .increaseallowancerequest import (
|
|
380
|
-
IncreaseAllowanceRequest,
|
|
381
|
-
IncreaseAllowanceRequestAmount,
|
|
382
|
-
IncreaseAllowanceRequestAmountTypedDict,
|
|
383
|
-
IncreaseAllowanceRequestContractName,
|
|
384
|
-
IncreaseAllowanceRequestToken,
|
|
385
|
-
IncreaseAllowanceRequestTokenTypedDict,
|
|
386
|
-
IncreaseAllowanceRequestTypedDict,
|
|
387
|
-
)
|
|
388
372
|
from .interestratemode import InterestRateMode
|
|
389
373
|
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
390
374
|
from .liquidity import Liquidity, LiquidityTypedDict
|
|
@@ -488,19 +472,6 @@ if TYPE_CHECKING:
|
|
|
488
472
|
MorphoRepayRequestChain,
|
|
489
473
|
MorphoRepayRequestTypedDict,
|
|
490
474
|
)
|
|
491
|
-
from .morphosetvaultallowanceparams import (
|
|
492
|
-
MorphoSetVaultAllowanceParams,
|
|
493
|
-
MorphoSetVaultAllowanceParamsAmount,
|
|
494
|
-
MorphoSetVaultAllowanceParamsAmountTypedDict,
|
|
495
|
-
MorphoSetVaultAllowanceParamsTypedDict,
|
|
496
|
-
)
|
|
497
|
-
from .morphosetvaultallowancerequest import (
|
|
498
|
-
MorphoSetVaultAllowanceRequest,
|
|
499
|
-
MorphoSetVaultAllowanceRequestAmount,
|
|
500
|
-
MorphoSetVaultAllowanceRequestAmountTypedDict,
|
|
501
|
-
MorphoSetVaultAllowanceRequestChain,
|
|
502
|
-
MorphoSetVaultAllowanceRequestTypedDict,
|
|
503
|
-
)
|
|
504
475
|
from .morphosupplycollateralparams import (
|
|
505
476
|
MorphoSupplyCollateralParams,
|
|
506
477
|
MorphoSupplyCollateralParamsAmount,
|
|
@@ -674,6 +645,28 @@ if TYPE_CHECKING:
|
|
|
674
645
|
from .repay import Repay, RepayTypedDict
|
|
675
646
|
from .reserve import Reserve, ReserveTypedDict
|
|
676
647
|
from .security import Security, SecurityTypedDict
|
|
648
|
+
from .setallowanceparams import (
|
|
649
|
+
SetAllowanceParams,
|
|
650
|
+
SetAllowanceParamsAmount,
|
|
651
|
+
SetAllowanceParamsAmountTypedDict,
|
|
652
|
+
SetAllowanceParamsContractEnum,
|
|
653
|
+
SetAllowanceParamsContractUnion,
|
|
654
|
+
SetAllowanceParamsContractUnionTypedDict,
|
|
655
|
+
SetAllowanceParamsToken,
|
|
656
|
+
SetAllowanceParamsTokenTypedDict,
|
|
657
|
+
SetAllowanceParamsTypedDict,
|
|
658
|
+
)
|
|
659
|
+
from .setallowancerequest import (
|
|
660
|
+
SetAllowanceRequest,
|
|
661
|
+
SetAllowanceRequestAmount,
|
|
662
|
+
SetAllowanceRequestAmountTypedDict,
|
|
663
|
+
SetAllowanceRequestContractEnum,
|
|
664
|
+
SetAllowanceRequestContractUnion,
|
|
665
|
+
SetAllowanceRequestContractUnionTypedDict,
|
|
666
|
+
SetAllowanceRequestToken,
|
|
667
|
+
SetAllowanceRequestTokenTypedDict,
|
|
668
|
+
SetAllowanceRequestTypedDict,
|
|
669
|
+
)
|
|
677
670
|
from .signedauthorization import (
|
|
678
671
|
R,
|
|
679
672
|
RTypedDict,
|
|
@@ -961,7 +954,17 @@ if TYPE_CHECKING:
|
|
|
961
954
|
ValidationErrorTypedDict,
|
|
962
955
|
)
|
|
963
956
|
from .vault import Vault, VaultTypedDict
|
|
957
|
+
from .vaultdepositrequest import (
|
|
958
|
+
VaultDepositRequest,
|
|
959
|
+
VaultDepositRequestAmount,
|
|
960
|
+
VaultDepositRequestAmountTypedDict,
|
|
961
|
+
VaultDepositRequestTypedDict,
|
|
962
|
+
)
|
|
964
963
|
from .vaultposition import VaultPosition, VaultPositionTypedDict
|
|
964
|
+
from .vaultwithdrawrequest import (
|
|
965
|
+
VaultWithdrawRequest,
|
|
966
|
+
VaultWithdrawRequestTypedDict,
|
|
967
|
+
)
|
|
965
968
|
from .weeklyapys import WeeklyApys, WeeklyApysTypedDict
|
|
966
969
|
from .wrapethparams import (
|
|
967
970
|
WrapEthParams,
|
|
@@ -1204,7 +1207,9 @@ __all__ = [
|
|
|
1204
1207
|
"Erc20DataTypedDict",
|
|
1205
1208
|
"FeeEnum",
|
|
1206
1209
|
"GenericAllowanceChain",
|
|
1207
|
-
"
|
|
1210
|
+
"GenericAllowanceContractEnum",
|
|
1211
|
+
"GenericAllowanceContractUnion",
|
|
1212
|
+
"GenericAllowanceContractUnionTypedDict",
|
|
1208
1213
|
"GenericAllowanceRequest",
|
|
1209
1214
|
"GenericAllowanceRequestTypedDict",
|
|
1210
1215
|
"GenericAllowanceToken",
|
|
@@ -1223,20 +1228,6 @@ __all__ = [
|
|
|
1223
1228
|
"GenericVisualizePortfolioRequestTypedDict",
|
|
1224
1229
|
"Image",
|
|
1225
1230
|
"ImageTypedDict",
|
|
1226
|
-
"IncreaseAllowanceParams",
|
|
1227
|
-
"IncreaseAllowanceParamsAmount",
|
|
1228
|
-
"IncreaseAllowanceParamsAmountTypedDict",
|
|
1229
|
-
"IncreaseAllowanceParamsContractName",
|
|
1230
|
-
"IncreaseAllowanceParamsToken",
|
|
1231
|
-
"IncreaseAllowanceParamsTokenTypedDict",
|
|
1232
|
-
"IncreaseAllowanceParamsTypedDict",
|
|
1233
|
-
"IncreaseAllowanceRequest",
|
|
1234
|
-
"IncreaseAllowanceRequestAmount",
|
|
1235
|
-
"IncreaseAllowanceRequestAmountTypedDict",
|
|
1236
|
-
"IncreaseAllowanceRequestContractName",
|
|
1237
|
-
"IncreaseAllowanceRequestToken",
|
|
1238
|
-
"IncreaseAllowanceRequestTokenTypedDict",
|
|
1239
|
-
"IncreaseAllowanceRequestTypedDict",
|
|
1240
1231
|
"InitialCollateralAmount",
|
|
1241
1232
|
"InitialCollateralAmountTypedDict",
|
|
1242
1233
|
"InterestRateMode",
|
|
@@ -1306,15 +1297,6 @@ __all__ = [
|
|
|
1306
1297
|
"MorphoRepayRequest",
|
|
1307
1298
|
"MorphoRepayRequestChain",
|
|
1308
1299
|
"MorphoRepayRequestTypedDict",
|
|
1309
|
-
"MorphoSetVaultAllowanceParams",
|
|
1310
|
-
"MorphoSetVaultAllowanceParamsAmount",
|
|
1311
|
-
"MorphoSetVaultAllowanceParamsAmountTypedDict",
|
|
1312
|
-
"MorphoSetVaultAllowanceParamsTypedDict",
|
|
1313
|
-
"MorphoSetVaultAllowanceRequest",
|
|
1314
|
-
"MorphoSetVaultAllowanceRequestAmount",
|
|
1315
|
-
"MorphoSetVaultAllowanceRequestAmountTypedDict",
|
|
1316
|
-
"MorphoSetVaultAllowanceRequestChain",
|
|
1317
|
-
"MorphoSetVaultAllowanceRequestTypedDict",
|
|
1318
1300
|
"MorphoSupplyCollateralParams",
|
|
1319
1301
|
"MorphoSupplyCollateralParamsAmount",
|
|
1320
1302
|
"MorphoSupplyCollateralParamsAmountTypedDict",
|
|
@@ -1454,6 +1436,24 @@ __all__ = [
|
|
|
1454
1436
|
"STypedDict",
|
|
1455
1437
|
"Security",
|
|
1456
1438
|
"SecurityTypedDict",
|
|
1439
|
+
"SetAllowanceParams",
|
|
1440
|
+
"SetAllowanceParamsAmount",
|
|
1441
|
+
"SetAllowanceParamsAmountTypedDict",
|
|
1442
|
+
"SetAllowanceParamsContractEnum",
|
|
1443
|
+
"SetAllowanceParamsContractUnion",
|
|
1444
|
+
"SetAllowanceParamsContractUnionTypedDict",
|
|
1445
|
+
"SetAllowanceParamsToken",
|
|
1446
|
+
"SetAllowanceParamsTokenTypedDict",
|
|
1447
|
+
"SetAllowanceParamsTypedDict",
|
|
1448
|
+
"SetAllowanceRequest",
|
|
1449
|
+
"SetAllowanceRequestAmount",
|
|
1450
|
+
"SetAllowanceRequestAmountTypedDict",
|
|
1451
|
+
"SetAllowanceRequestContractEnum",
|
|
1452
|
+
"SetAllowanceRequestContractUnion",
|
|
1453
|
+
"SetAllowanceRequestContractUnionTypedDict",
|
|
1454
|
+
"SetAllowanceRequestToken",
|
|
1455
|
+
"SetAllowanceRequestTokenTypedDict",
|
|
1456
|
+
"SetAllowanceRequestTypedDict",
|
|
1457
1457
|
"SignedAuthorization",
|
|
1458
1458
|
"SignedAuthorizationTypedDict",
|
|
1459
1459
|
"SkyBuyParams",
|
|
@@ -1663,9 +1663,15 @@ __all__ = [
|
|
|
1663
1663
|
"ValidationError",
|
|
1664
1664
|
"ValidationErrorTypedDict",
|
|
1665
1665
|
"Vault",
|
|
1666
|
+
"VaultDepositRequest",
|
|
1667
|
+
"VaultDepositRequestAmount",
|
|
1668
|
+
"VaultDepositRequestAmountTypedDict",
|
|
1669
|
+
"VaultDepositRequestTypedDict",
|
|
1666
1670
|
"VaultPosition",
|
|
1667
1671
|
"VaultPositionTypedDict",
|
|
1668
1672
|
"VaultTypedDict",
|
|
1673
|
+
"VaultWithdrawRequest",
|
|
1674
|
+
"VaultWithdrawRequestTypedDict",
|
|
1669
1675
|
"WeeklyApys",
|
|
1670
1676
|
"WeeklyApysTypedDict",
|
|
1671
1677
|
"WrapEthParams",
|
|
@@ -1915,7 +1921,9 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1915
1921
|
"Erc20DataTypedDict": ".erc20data",
|
|
1916
1922
|
"FeeEnum": ".feeenum",
|
|
1917
1923
|
"GenericAllowanceChain": ".generic_allowanceop",
|
|
1918
|
-
"
|
|
1924
|
+
"GenericAllowanceContractEnum": ".generic_allowanceop",
|
|
1925
|
+
"GenericAllowanceContractUnion": ".generic_allowanceop",
|
|
1926
|
+
"GenericAllowanceContractUnionTypedDict": ".generic_allowanceop",
|
|
1919
1927
|
"GenericAllowanceRequest": ".generic_allowanceop",
|
|
1920
1928
|
"GenericAllowanceRequestTypedDict": ".generic_allowanceop",
|
|
1921
1929
|
"GenericAllowanceToken": ".generic_allowanceop",
|
|
@@ -1934,20 +1942,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1934
1942
|
"GenericVisualizePortfolioRequestTypedDict": ".generic_visualize_portfolioop",
|
|
1935
1943
|
"Image": ".image",
|
|
1936
1944
|
"ImageTypedDict": ".image",
|
|
1937
|
-
"IncreaseAllowanceParams": ".increaseallowanceparams",
|
|
1938
|
-
"IncreaseAllowanceParamsAmount": ".increaseallowanceparams",
|
|
1939
|
-
"IncreaseAllowanceParamsAmountTypedDict": ".increaseallowanceparams",
|
|
1940
|
-
"IncreaseAllowanceParamsContractName": ".increaseallowanceparams",
|
|
1941
|
-
"IncreaseAllowanceParamsToken": ".increaseallowanceparams",
|
|
1942
|
-
"IncreaseAllowanceParamsTokenTypedDict": ".increaseallowanceparams",
|
|
1943
|
-
"IncreaseAllowanceParamsTypedDict": ".increaseallowanceparams",
|
|
1944
|
-
"IncreaseAllowanceRequest": ".increaseallowancerequest",
|
|
1945
|
-
"IncreaseAllowanceRequestAmount": ".increaseallowancerequest",
|
|
1946
|
-
"IncreaseAllowanceRequestAmountTypedDict": ".increaseallowancerequest",
|
|
1947
|
-
"IncreaseAllowanceRequestContractName": ".increaseallowancerequest",
|
|
1948
|
-
"IncreaseAllowanceRequestToken": ".increaseallowancerequest",
|
|
1949
|
-
"IncreaseAllowanceRequestTokenTypedDict": ".increaseallowancerequest",
|
|
1950
|
-
"IncreaseAllowanceRequestTypedDict": ".increaseallowancerequest",
|
|
1951
1945
|
"InterestRateMode": ".interestratemode",
|
|
1952
1946
|
"LiquidationCall": ".liquidationcall",
|
|
1953
1947
|
"LiquidationCallTypedDict": ".liquidationcall",
|
|
@@ -2021,15 +2015,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2021
2015
|
"MorphoRepayRequest": ".morphorepayrequest",
|
|
2022
2016
|
"MorphoRepayRequestChain": ".morphorepayrequest",
|
|
2023
2017
|
"MorphoRepayRequestTypedDict": ".morphorepayrequest",
|
|
2024
|
-
"MorphoSetVaultAllowanceParams": ".morphosetvaultallowanceparams",
|
|
2025
|
-
"MorphoSetVaultAllowanceParamsAmount": ".morphosetvaultallowanceparams",
|
|
2026
|
-
"MorphoSetVaultAllowanceParamsAmountTypedDict": ".morphosetvaultallowanceparams",
|
|
2027
|
-
"MorphoSetVaultAllowanceParamsTypedDict": ".morphosetvaultallowanceparams",
|
|
2028
|
-
"MorphoSetVaultAllowanceRequest": ".morphosetvaultallowancerequest",
|
|
2029
|
-
"MorphoSetVaultAllowanceRequestAmount": ".morphosetvaultallowancerequest",
|
|
2030
|
-
"MorphoSetVaultAllowanceRequestAmountTypedDict": ".morphosetvaultallowancerequest",
|
|
2031
|
-
"MorphoSetVaultAllowanceRequestChain": ".morphosetvaultallowancerequest",
|
|
2032
|
-
"MorphoSetVaultAllowanceRequestTypedDict": ".morphosetvaultallowancerequest",
|
|
2033
2018
|
"MorphoSupplyCollateralParams": ".morphosupplycollateralparams",
|
|
2034
2019
|
"MorphoSupplyCollateralParamsAmount": ".morphosupplycollateralparams",
|
|
2035
2020
|
"MorphoSupplyCollateralParamsAmountTypedDict": ".morphosupplycollateralparams",
|
|
@@ -2151,6 +2136,24 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2151
2136
|
"ReserveTypedDict": ".reserve",
|
|
2152
2137
|
"Security": ".security",
|
|
2153
2138
|
"SecurityTypedDict": ".security",
|
|
2139
|
+
"SetAllowanceParams": ".setallowanceparams",
|
|
2140
|
+
"SetAllowanceParamsAmount": ".setallowanceparams",
|
|
2141
|
+
"SetAllowanceParamsAmountTypedDict": ".setallowanceparams",
|
|
2142
|
+
"SetAllowanceParamsContractEnum": ".setallowanceparams",
|
|
2143
|
+
"SetAllowanceParamsContractUnion": ".setallowanceparams",
|
|
2144
|
+
"SetAllowanceParamsContractUnionTypedDict": ".setallowanceparams",
|
|
2145
|
+
"SetAllowanceParamsToken": ".setallowanceparams",
|
|
2146
|
+
"SetAllowanceParamsTokenTypedDict": ".setallowanceparams",
|
|
2147
|
+
"SetAllowanceParamsTypedDict": ".setallowanceparams",
|
|
2148
|
+
"SetAllowanceRequest": ".setallowancerequest",
|
|
2149
|
+
"SetAllowanceRequestAmount": ".setallowancerequest",
|
|
2150
|
+
"SetAllowanceRequestAmountTypedDict": ".setallowancerequest",
|
|
2151
|
+
"SetAllowanceRequestContractEnum": ".setallowancerequest",
|
|
2152
|
+
"SetAllowanceRequestContractUnion": ".setallowancerequest",
|
|
2153
|
+
"SetAllowanceRequestContractUnionTypedDict": ".setallowancerequest",
|
|
2154
|
+
"SetAllowanceRequestToken": ".setallowancerequest",
|
|
2155
|
+
"SetAllowanceRequestTokenTypedDict": ".setallowancerequest",
|
|
2156
|
+
"SetAllowanceRequestTypedDict": ".setallowancerequest",
|
|
2154
2157
|
"R": ".signedauthorization",
|
|
2155
2158
|
"RTypedDict": ".signedauthorization",
|
|
2156
2159
|
"S": ".signedauthorization",
|
|
@@ -2367,8 +2370,14 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2367
2370
|
"ValidationErrorTypedDict": ".validationerror",
|
|
2368
2371
|
"Vault": ".vault",
|
|
2369
2372
|
"VaultTypedDict": ".vault",
|
|
2373
|
+
"VaultDepositRequest": ".vaultdepositrequest",
|
|
2374
|
+
"VaultDepositRequestAmount": ".vaultdepositrequest",
|
|
2375
|
+
"VaultDepositRequestAmountTypedDict": ".vaultdepositrequest",
|
|
2376
|
+
"VaultDepositRequestTypedDict": ".vaultdepositrequest",
|
|
2370
2377
|
"VaultPosition": ".vaultposition",
|
|
2371
2378
|
"VaultPositionTypedDict": ".vaultposition",
|
|
2379
|
+
"VaultWithdrawRequest": ".vaultwithdrawrequest",
|
|
2380
|
+
"VaultWithdrawRequestTypedDict": ".vaultwithdrawrequest",
|
|
2372
2381
|
"WeeklyApys": ".weeklyapys",
|
|
2373
2382
|
"WeeklyApysTypedDict": ".weeklyapys",
|
|
2374
2383
|
"WrapEthParams": ".wrapethparams",
|
|
@@ -43,10 +43,10 @@ class AaveHistoricalTransactionsRequest(BaseModel):
|
|
|
43
43
|
chain: Annotated[
|
|
44
44
|
AaveHistoricalTransactionsChain,
|
|
45
45
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
46
|
-
] = AaveHistoricalTransactionsChain.
|
|
46
|
+
] = AaveHistoricalTransactionsChain.BASE_MAINNET
|
|
47
47
|
r"""The chain to use."""
|
|
48
48
|
|
|
49
49
|
user_address: Annotated[
|
|
50
50
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
51
|
-
] = "
|
|
51
|
+
] = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07"
|
|
52
52
|
r"""The address of the user to get historical transactions for."""
|
|
@@ -90,7 +90,7 @@ class AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
90
90
|
chain: Annotated[
|
|
91
91
|
AaveUserPositionPerTokenChain,
|
|
92
92
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
93
|
-
] = AaveUserPositionPerTokenChain.
|
|
93
|
+
] = AaveUserPositionPerTokenChain.BASE_MAINNET
|
|
94
94
|
r"""The chain to use."""
|
|
95
95
|
|
|
96
96
|
block: Annotated[
|
|
@@ -101,7 +101,7 @@ class AaveUserPositionPerTokenRequest(BaseModel):
|
|
|
101
101
|
|
|
102
102
|
user: Annotated[
|
|
103
103
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
104
|
-
] = "
|
|
104
|
+
] = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07"
|
|
105
105
|
r"""The user to fetch the token-specific position of."""
|
|
106
106
|
|
|
107
107
|
token: Annotated[
|
|
@@ -35,7 +35,7 @@ class AaveUserPositionSummaryRequest(BaseModel):
|
|
|
35
35
|
chain: Annotated[
|
|
36
36
|
AaveUserPositionSummaryChain,
|
|
37
37
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
38
|
-
] = AaveUserPositionSummaryChain.
|
|
38
|
+
] = AaveUserPositionSummaryChain.BASE_MAINNET
|
|
39
39
|
r"""The chain to use."""
|
|
40
40
|
|
|
41
41
|
block: Annotated[
|
|
@@ -46,7 +46,7 @@ class AaveUserPositionSummaryRequest(BaseModel):
|
|
|
46
46
|
|
|
47
47
|
user: Annotated[
|
|
48
48
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
49
|
-
] = "
|
|
49
|
+
] = "0x8BCA3bEF173bdf9246fAb92479c554D167f3aC07"
|
|
50
50
|
r"""The user to get position summary for."""
|
|
51
51
|
|
|
52
52
|
@model_serializer(mode="wrap")
|
|
@@ -27,9 +27,7 @@ GenericAllowanceToken = TypeAliasType("GenericAllowanceToken", Union[TokenEnum,
|
|
|
27
27
|
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
31
|
-
r"""The name of the contract to check allowance for."""
|
|
32
|
-
|
|
30
|
+
class GenericAllowanceContractEnum(str, Enum):
|
|
33
31
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
34
32
|
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
35
33
|
AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
|
|
@@ -45,15 +43,27 @@ class GenericAllowanceContractName(str, Enum):
|
|
|
45
43
|
PENDLE_ROUTER = "PendleRouter"
|
|
46
44
|
|
|
47
45
|
|
|
46
|
+
GenericAllowanceContractUnionTypedDict = TypeAliasType(
|
|
47
|
+
"GenericAllowanceContractUnionTypedDict", Union[GenericAllowanceContractEnum, str]
|
|
48
|
+
)
|
|
49
|
+
r"""The name or address of the contract to check allowance for."""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
GenericAllowanceContractUnion = TypeAliasType(
|
|
53
|
+
"GenericAllowanceContractUnion", Union[GenericAllowanceContractEnum, str]
|
|
54
|
+
)
|
|
55
|
+
r"""The name or address of the contract to check allowance for."""
|
|
56
|
+
|
|
57
|
+
|
|
48
58
|
class GenericAllowanceRequestTypedDict(TypedDict):
|
|
49
59
|
token: GenericAllowanceTokenTypedDict
|
|
50
60
|
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
61
|
+
contract: GenericAllowanceContractUnionTypedDict
|
|
62
|
+
r"""The name or address of the contract to check allowance for."""
|
|
51
63
|
chain: GenericAllowanceChain
|
|
52
64
|
r"""The chain to use."""
|
|
53
65
|
user: NotRequired[str]
|
|
54
66
|
r"""The user to get the ERC20 allowance of."""
|
|
55
|
-
contract_name: GenericAllowanceContractName
|
|
56
|
-
r"""The name of the contract to check allowance for."""
|
|
57
67
|
|
|
58
68
|
|
|
59
69
|
class GenericAllowanceRequest(BaseModel):
|
|
@@ -63,6 +73,12 @@ class GenericAllowanceRequest(BaseModel):
|
|
|
63
73
|
]
|
|
64
74
|
r"""The symbol or address of the token for which the allowance is checked.."""
|
|
65
75
|
|
|
76
|
+
contract: Annotated[
|
|
77
|
+
GenericAllowanceContractUnion,
|
|
78
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
79
|
+
]
|
|
80
|
+
r"""The name or address of the contract to check allowance for."""
|
|
81
|
+
|
|
66
82
|
chain: Annotated[
|
|
67
83
|
GenericAllowanceChain,
|
|
68
84
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
@@ -74,9 +90,3 @@ class GenericAllowanceRequest(BaseModel):
|
|
|
74
90
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
75
91
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
76
92
|
r"""The user to get the ERC20 allowance of."""
|
|
77
|
-
|
|
78
|
-
contract_name: Annotated[
|
|
79
|
-
GenericAllowanceContractName,
|
|
80
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
81
|
-
] = GenericAllowanceContractName.AAVE_V3_POOL
|
|
82
|
-
r"""The name of the contract to check allowance for."""
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .token_enum import TokenEnum
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
7
|
+
from enum import Enum
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
|
+
from typing import Literal, Optional, Union
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
SetAllowanceParamsTokenTypedDict = TypeAliasType(
|
|
15
|
+
"SetAllowanceParamsTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
+
)
|
|
17
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
SetAllowanceParamsToken = TypeAliasType(
|
|
21
|
+
"SetAllowanceParamsToken", Union[TokenEnum, str]
|
|
22
|
+
)
|
|
23
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class SetAllowanceParamsContractEnum(str, Enum):
|
|
27
|
+
AAVE_V3_POOL = "AaveV3Pool"
|
|
28
|
+
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
29
|
+
AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
|
|
30
|
+
AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
|
|
31
|
+
"AerodromeSlipstreamNonfungiblePositionManager"
|
|
32
|
+
)
|
|
33
|
+
UNISWAP_V3_ROUTER = "UniswapV3Router"
|
|
34
|
+
UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
|
|
35
|
+
MORPHO = "Morpho"
|
|
36
|
+
SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
|
|
37
|
+
SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
|
|
38
|
+
SKY_USDS_VAULT = "SkyUsdsVault"
|
|
39
|
+
PENDLE_ROUTER = "PendleRouter"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
SetAllowanceParamsContractUnionTypedDict = TypeAliasType(
|
|
43
|
+
"SetAllowanceParamsContractUnionTypedDict",
|
|
44
|
+
Union[SetAllowanceParamsContractEnum, str],
|
|
45
|
+
)
|
|
46
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
SetAllowanceParamsContractUnion = TypeAliasType(
|
|
50
|
+
"SetAllowanceParamsContractUnion", Union[SetAllowanceParamsContractEnum, str]
|
|
51
|
+
)
|
|
52
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
SetAllowanceParamsAmountTypedDict = TypeAliasType(
|
|
56
|
+
"SetAllowanceParamsAmountTypedDict", Union[float, str]
|
|
57
|
+
)
|
|
58
|
+
r"""The amount to set the allowance to."""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
SetAllowanceParamsAmount = TypeAliasType("SetAllowanceParamsAmount", Union[float, str])
|
|
62
|
+
r"""The amount to set the allowance to."""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class SetAllowanceParamsTypedDict(TypedDict):
|
|
66
|
+
r"""Parameters model for setting the token allowance for a given contract."""
|
|
67
|
+
|
|
68
|
+
token: SetAllowanceParamsTokenTypedDict
|
|
69
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
70
|
+
contract: SetAllowanceParamsContractUnionTypedDict
|
|
71
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
72
|
+
amount: SetAllowanceParamsAmountTypedDict
|
|
73
|
+
r"""The amount to set the allowance to."""
|
|
74
|
+
action_type: Literal["SET_ALLOWANCE"]
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class SetAllowanceParams(BaseModel):
|
|
78
|
+
r"""Parameters model for setting the token allowance for a given contract."""
|
|
79
|
+
|
|
80
|
+
token: SetAllowanceParamsToken
|
|
81
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
82
|
+
|
|
83
|
+
contract: SetAllowanceParamsContractUnion
|
|
84
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
85
|
+
|
|
86
|
+
amount: SetAllowanceParamsAmount
|
|
87
|
+
r"""The amount to set the allowance to."""
|
|
88
|
+
|
|
89
|
+
ACTION_TYPE: Annotated[
|
|
90
|
+
Annotated[
|
|
91
|
+
Optional[Literal["SET_ALLOWANCE"]],
|
|
92
|
+
AfterValidator(validate_const("SET_ALLOWANCE")),
|
|
93
|
+
],
|
|
94
|
+
pydantic.Field(alias="action_type"),
|
|
95
|
+
] = "SET_ALLOWANCE"
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .chain import Chain
|
|
5
|
+
from .token_enum import TokenEnum
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
|
+
from compass_api_sdk.utils import validate_const
|
|
8
|
+
from enum import Enum
|
|
9
|
+
import pydantic
|
|
10
|
+
from pydantic.functional_validators import AfterValidator
|
|
11
|
+
from typing import Literal, Optional, Union
|
|
12
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
SetAllowanceRequestTokenTypedDict = TypeAliasType(
|
|
16
|
+
"SetAllowanceRequestTokenTypedDict", Union[TokenEnum, str]
|
|
17
|
+
)
|
|
18
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
SetAllowanceRequestToken = TypeAliasType(
|
|
22
|
+
"SetAllowanceRequestToken", Union[TokenEnum, str]
|
|
23
|
+
)
|
|
24
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class SetAllowanceRequestContractEnum(str, Enum):
|
|
28
|
+
AAVE_V3_POOL = "AaveV3Pool"
|
|
29
|
+
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
30
|
+
AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
|
|
31
|
+
AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
|
|
32
|
+
"AerodromeSlipstreamNonfungiblePositionManager"
|
|
33
|
+
)
|
|
34
|
+
UNISWAP_V3_ROUTER = "UniswapV3Router"
|
|
35
|
+
UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
|
|
36
|
+
MORPHO = "Morpho"
|
|
37
|
+
SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
|
|
38
|
+
SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
|
|
39
|
+
SKY_USDS_VAULT = "SkyUsdsVault"
|
|
40
|
+
PENDLE_ROUTER = "PendleRouter"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
SetAllowanceRequestContractUnionTypedDict = TypeAliasType(
|
|
44
|
+
"SetAllowanceRequestContractUnionTypedDict",
|
|
45
|
+
Union[SetAllowanceRequestContractEnum, str],
|
|
46
|
+
)
|
|
47
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
SetAllowanceRequestContractUnion = TypeAliasType(
|
|
51
|
+
"SetAllowanceRequestContractUnion", Union[SetAllowanceRequestContractEnum, str]
|
|
52
|
+
)
|
|
53
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
SetAllowanceRequestAmountTypedDict = TypeAliasType(
|
|
57
|
+
"SetAllowanceRequestAmountTypedDict", Union[float, str]
|
|
58
|
+
)
|
|
59
|
+
r"""The amount to set the allowance to."""
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
SetAllowanceRequestAmount = TypeAliasType(
|
|
63
|
+
"SetAllowanceRequestAmount", Union[float, str]
|
|
64
|
+
)
|
|
65
|
+
r"""The amount to set the allowance to."""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class SetAllowanceRequestTypedDict(TypedDict):
|
|
69
|
+
r"""Request model for increasing token allowance for a contract."""
|
|
70
|
+
|
|
71
|
+
token: SetAllowanceRequestTokenTypedDict
|
|
72
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
73
|
+
contract: SetAllowanceRequestContractUnionTypedDict
|
|
74
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
75
|
+
amount: SetAllowanceRequestAmountTypedDict
|
|
76
|
+
r"""The amount to set the allowance to."""
|
|
77
|
+
chain: Chain
|
|
78
|
+
r"""The chain to use."""
|
|
79
|
+
sender: str
|
|
80
|
+
r"""The address of the transaction sender."""
|
|
81
|
+
action_type: Literal["SET_ALLOWANCE"]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class SetAllowanceRequest(BaseModel):
|
|
85
|
+
r"""Request model for increasing token allowance for a contract."""
|
|
86
|
+
|
|
87
|
+
token: SetAllowanceRequestToken
|
|
88
|
+
r"""The symbol or address of the token for which the allowance is set.."""
|
|
89
|
+
|
|
90
|
+
contract: SetAllowanceRequestContractUnion
|
|
91
|
+
r"""The name or address of the contract to set spending allowance for."""
|
|
92
|
+
|
|
93
|
+
amount: SetAllowanceRequestAmount
|
|
94
|
+
r"""The amount to set the allowance to."""
|
|
95
|
+
|
|
96
|
+
chain: Chain
|
|
97
|
+
r"""The chain to use."""
|
|
98
|
+
|
|
99
|
+
sender: str
|
|
100
|
+
r"""The address of the transaction sender."""
|
|
101
|
+
|
|
102
|
+
ACTION_TYPE: Annotated[
|
|
103
|
+
Annotated[
|
|
104
|
+
Optional[Literal["SET_ALLOWANCE"]],
|
|
105
|
+
AfterValidator(validate_const("SET_ALLOWANCE")),
|
|
106
|
+
],
|
|
107
|
+
pydantic.Field(alias="action_type"),
|
|
108
|
+
] = "SET_ALLOWANCE"
|