compass_api_sdk 0.9.21__py3-none-any.whl → 0.9.22__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/models/__init__.py +89 -80
- 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 +17 -26
- 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.22.dist-info}/METADATA +6 -2
- {compass_api_sdk-0.9.21.dist-info → compass_api_sdk-0.9.22.dist-info}/RECORD +15 -14
- 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.22.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.22"
|
|
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.22 2.632.2 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -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",
|
|
@@ -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"
|
|
@@ -25,17 +25,9 @@ from .aerodromeslipstreamwithdrawliquidityprovisionparams import (
|
|
|
25
25
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
26
26
|
AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
|
|
27
27
|
)
|
|
28
|
-
from .increaseallowanceparams import (
|
|
29
|
-
IncreaseAllowanceParams,
|
|
30
|
-
IncreaseAllowanceParamsTypedDict,
|
|
31
|
-
)
|
|
32
28
|
from .morphoborrowparams import MorphoBorrowParams, MorphoBorrowParamsTypedDict
|
|
33
29
|
from .morphodepositparams import MorphoDepositParams, MorphoDepositParamsTypedDict
|
|
34
30
|
from .morphorepayparams import MorphoRepayParams, MorphoRepayParamsTypedDict
|
|
35
|
-
from .morphosetvaultallowanceparams import (
|
|
36
|
-
MorphoSetVaultAllowanceParams,
|
|
37
|
-
MorphoSetVaultAllowanceParamsTypedDict,
|
|
38
|
-
)
|
|
39
31
|
from .morphosupplycollateralparams import (
|
|
40
32
|
MorphoSupplyCollateralParams,
|
|
41
33
|
MorphoSupplyCollateralParamsTypedDict,
|
|
@@ -61,6 +53,7 @@ from .pendleremoveliquidityparams import (
|
|
|
61
53
|
)
|
|
62
54
|
from .pendlesellptparams import PendleSellPtParams, PendleSellPtParamsTypedDict
|
|
63
55
|
from .pendlesellytparams import PendleSellYtParams, PendleSellYtParamsTypedDict
|
|
56
|
+
from .setallowanceparams import SetAllowanceParams, SetAllowanceParamsTypedDict
|
|
64
57
|
from .skybuyparams import SkyBuyParams, SkyBuyParamsTypedDict
|
|
65
58
|
from .skydepositparams import SkyDepositParams, SkyDepositParamsTypedDict
|
|
66
59
|
from .skysellparams import SkySellParams, SkySellParamsTypedDict
|
|
@@ -101,42 +94,41 @@ from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
|
101
94
|
BodyTypedDict = TypeAliasType(
|
|
102
95
|
"BodyTypedDict",
|
|
103
96
|
Union[
|
|
97
|
+
PendleRedeemYieldParamsTypedDict,
|
|
104
98
|
WrapEthParamsTypedDict,
|
|
105
99
|
UnwrapWethParamsTypedDict,
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
SkyDepositParamsTypedDict,
|
|
101
|
+
SkyBuyParamsTypedDict,
|
|
108
102
|
UniswapWithdrawLiquidityProvisionParamsTypedDict,
|
|
109
103
|
SkyWithdrawParamsTypedDict,
|
|
110
104
|
SkySellParamsTypedDict,
|
|
111
|
-
SkyDepositParamsTypedDict,
|
|
112
|
-
SkyBuyParamsTypedDict,
|
|
113
105
|
AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
PendleRemoveLiquidityParamsTypedDict,
|
|
107
|
+
SetAllowanceParamsTypedDict,
|
|
108
|
+
PendleBuyYtParamsTypedDict,
|
|
116
109
|
AaveSupplyParamsTypedDict,
|
|
117
|
-
AaveWithdrawParamsTypedDict,
|
|
118
|
-
TokenTransferErc20ParamsTypedDict,
|
|
119
110
|
MorphoWithdrawParamsTypedDict,
|
|
120
|
-
|
|
111
|
+
TokenTransferErc20ParamsTypedDict,
|
|
121
112
|
PendleAddLiquidityParamsTypedDict,
|
|
122
113
|
PendleBuyPtParamsTypedDict,
|
|
123
|
-
|
|
114
|
+
MorphoDepositParamsTypedDict,
|
|
124
115
|
PendleSellPtParamsTypedDict,
|
|
125
|
-
|
|
126
|
-
|
|
116
|
+
PendleSellYtParamsTypedDict,
|
|
117
|
+
AaveWithdrawParamsTypedDict,
|
|
127
118
|
MorphoWithdrawCollateralParamsTypedDict,
|
|
128
|
-
AaveBorrowParamsTypedDict,
|
|
129
119
|
MorphoSupplyCollateralParamsTypedDict,
|
|
130
|
-
AaveRepayParamsTypedDict,
|
|
131
120
|
MorphoBorrowParamsTypedDict,
|
|
121
|
+
AaveBorrowParamsTypedDict,
|
|
122
|
+
MorphoRepayParamsTypedDict,
|
|
123
|
+
AaveRepayParamsTypedDict,
|
|
132
124
|
AerodromeSlipstreamSellExactlyParamsTypedDict,
|
|
133
|
-
AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
|
|
134
125
|
AerodromeSlipstreamBuyExactlyParamsTypedDict,
|
|
126
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
|
|
135
127
|
UniswapIncreaseLiquidityProvisionParamsTypedDict,
|
|
136
128
|
UniswapBuyExactlyParamsTypedDict,
|
|
137
129
|
UniswapSellExactlyParamsTypedDict,
|
|
138
|
-
AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
|
|
139
130
|
UniswapMintLiquidityProvisionParamsTypedDict,
|
|
131
|
+
AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
|
|
140
132
|
],
|
|
141
133
|
)
|
|
142
134
|
|
|
@@ -166,11 +158,9 @@ Body = Annotated[
|
|
|
166
158
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
167
159
|
Tag("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"),
|
|
168
160
|
],
|
|
169
|
-
Annotated[IncreaseAllowanceParams, Tag("ALLOWANCE_INCREASE")],
|
|
170
161
|
Annotated[MorphoBorrowParams, Tag("MORPHO_BORROW")],
|
|
171
162
|
Annotated[MorphoDepositParams, Tag("MORPHO_DEPOSIT")],
|
|
172
163
|
Annotated[MorphoRepayParams, Tag("MORPHO_REPAY")],
|
|
173
|
-
Annotated[MorphoSetVaultAllowanceParams, Tag("MORPHO_SET_VAULT_ALLOWANCE")],
|
|
174
164
|
Annotated[MorphoSupplyCollateralParams, Tag("MORPHO_SUPPLY_COLLATERAL")],
|
|
175
165
|
Annotated[MorphoWithdrawParams, Tag("MORPHO_WITHDRAW")],
|
|
176
166
|
Annotated[MorphoWithdrawCollateralParams, Tag("MORPHO_WITHDRAW_COLLATERAL")],
|
|
@@ -181,6 +171,7 @@ Body = Annotated[
|
|
|
181
171
|
Annotated[PendleRemoveLiquidityParams, Tag("PENDLE_REMOVE_LIQUIDITY")],
|
|
182
172
|
Annotated[PendleSellPtParams, Tag("PENDLE_SELL_PT")],
|
|
183
173
|
Annotated[PendleSellYtParams, Tag("PENDLE_SELL_YT")],
|
|
174
|
+
Annotated[SetAllowanceParams, Tag("SET_ALLOWANCE")],
|
|
184
175
|
Annotated[SkyBuyParams, Tag("SKY_BUY")],
|
|
185
176
|
Annotated[SkyDepositParams, Tag("SKY_DEPOSIT")],
|
|
186
177
|
Annotated[SkySellParams, Tag("SKY_SELL")],
|