compass_api_sdk 0.8.3__py3-none-any.whl → 0.9.0__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 +1 -25
- compass_api_sdk/aerodrome_slipstream.py +1 -31
- compass_api_sdk/models/aaveborrowparams.py +2 -19
- compass_api_sdk/models/aaveborrowrequest.py +2 -19
- compass_api_sdk/models/aaverepayparams.py +2 -19
- compass_api_sdk/models/aaverepayrequest.py +2 -19
- compass_api_sdk/models/aavesupplyparams.py +2 -19
- compass_api_sdk/models/aavesupplyrequest.py +2 -19
- compass_api_sdk/models/aavewithdrawparams.py +1 -16
- compass_api_sdk/models/aavewithdrawrequest.py +1 -16
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +1 -16
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +1 -16
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -16
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -16
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +2 -19
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +2 -19
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +1 -16
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +1 -16
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -16
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -16
- compass_api_sdk/models/increaseallowanceparams.py +1 -16
- compass_api_sdk/models/increaseallowancerequest.py +1 -16
- compass_api_sdk/models/morphoborrowparams.py +2 -19
- compass_api_sdk/models/morphoborrowrequest.py +2 -19
- compass_api_sdk/models/morphodepositparams.py +2 -19
- compass_api_sdk/models/morphodepositrequest.py +2 -19
- compass_api_sdk/models/morphorepayparams.py +2 -19
- compass_api_sdk/models/morphorepayrequest.py +2 -19
- compass_api_sdk/models/morphosetvaultallowanceparams.py +1 -16
- compass_api_sdk/models/morphosetvaultallowancerequest.py +1 -16
- compass_api_sdk/models/morphosupplycollateralparams.py +2 -19
- compass_api_sdk/models/morphosupplycollateralrequest.py +2 -19
- compass_api_sdk/models/morphowithdrawcollateralparams.py +2 -19
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +2 -19
- compass_api_sdk/models/morphowithdrawparams.py +2 -19
- compass_api_sdk/models/morphowithdrawrequest.py +2 -19
- compass_api_sdk/models/pendlebuyptparams.py +1 -16
- compass_api_sdk/models/pendlebuyptrequest.py +1 -16
- compass_api_sdk/models/pendlebuyytparams.py +1 -16
- compass_api_sdk/models/pendlebuyytrequest.py +1 -16
- compass_api_sdk/models/pendlesellptparams.py +1 -16
- compass_api_sdk/models/pendlesellptrequest.py +1 -16
- compass_api_sdk/models/pendlesellytparams.py +1 -16
- compass_api_sdk/models/pendlesellytrequest.py +1 -16
- compass_api_sdk/models/skybuyparams.py +1 -16
- compass_api_sdk/models/skybuyrequest.py +1 -15
- compass_api_sdk/models/skydepositparams.py +2 -19
- compass_api_sdk/models/skydepositrequest.py +2 -18
- compass_api_sdk/models/skysellparams.py +1 -16
- compass_api_sdk/models/skysellrequest.py +1 -15
- compass_api_sdk/models/skywithdrawparams.py +2 -19
- compass_api_sdk/models/skywithdrawrequest.py +2 -18
- compass_api_sdk/models/tokentransfererc20params.py +1 -16
- compass_api_sdk/models/tokentransferrequest.py +1 -16
- compass_api_sdk/models/uniswapbuyexactlyparams.py +1 -16
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +1 -16
- compass_api_sdk/models/uniswapincreaseliquidityprovisionparams.py +1 -16
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +1 -16
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +2 -19
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +2 -19
- compass_api_sdk/models/uniswapsellexactlyparams.py +1 -16
- compass_api_sdk/models/uniswapsellexactlyrequest.py +1 -16
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionparams.py +1 -16
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +1 -16
- compass_api_sdk/models/unwrapwethparams.py +1 -16
- compass_api_sdk/models/unwrapwethrequest.py +1 -16
- compass_api_sdk/models/useroperation.py +1 -16
- compass_api_sdk/models/wrapethparams.py +1 -16
- compass_api_sdk/models/wrapethrequest.py +1 -16
- compass_api_sdk/morpho.py +1 -43
- compass_api_sdk/pendle.py +1 -25
- compass_api_sdk/sky.py +1 -25
- compass_api_sdk/token_sdk.py +1 -7
- compass_api_sdk/uniswap_v3.py +1 -31
- compass_api_sdk/universal.py +1 -19
- {compass_api_sdk-0.8.3.dist-info → compass_api_sdk-0.9.0.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.8.3.dist-info → compass_api_sdk-0.9.0.dist-info}/RECORD +79 -79
- {compass_api_sdk-0.8.3.dist-info → compass_api_sdk-0.9.0.dist-info}/WHEEL +0 -0
|
@@ -8,9 +8,8 @@ from compass_api_sdk.types import (
|
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
import
|
|
12
|
-
from
|
|
13
|
-
from typing import Any, Dict, Union
|
|
11
|
+
from pydantic import model_serializer
|
|
12
|
+
from typing import Union
|
|
14
13
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
14
|
|
|
16
15
|
|
|
@@ -36,11 +35,6 @@ class MorphoDepositParamsTypedDict(TypedDict):
|
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
class MorphoDepositParams(BaseModel):
|
|
39
|
-
model_config = ConfigDict(
|
|
40
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
41
|
-
)
|
|
42
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
43
|
-
|
|
44
38
|
vault_address: str
|
|
45
39
|
r"""The vault address you are depositing to."""
|
|
46
40
|
|
|
@@ -50,14 +44,6 @@ class MorphoDepositParams(BaseModel):
|
|
|
50
44
|
receiver: OptionalNullable[str] = UNSET
|
|
51
45
|
r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
52
46
|
|
|
53
|
-
@property
|
|
54
|
-
def additional_properties(self):
|
|
55
|
-
return self.__pydantic_extra__
|
|
56
|
-
|
|
57
|
-
@additional_properties.setter
|
|
58
|
-
def additional_properties(self, value):
|
|
59
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
60
|
-
|
|
61
47
|
@model_serializer(mode="wrap")
|
|
62
48
|
def serialize_model(self, handler):
|
|
63
49
|
optional_fields = ["receiver"]
|
|
@@ -86,7 +72,4 @@ class MorphoDepositParams(BaseModel):
|
|
|
86
72
|
):
|
|
87
73
|
m[k] = val
|
|
88
74
|
|
|
89
|
-
for k, v in serialized.items():
|
|
90
|
-
m[k] = v
|
|
91
|
-
|
|
92
75
|
return m
|
|
@@ -9,9 +9,8 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
11
|
from enum import Enum
|
|
12
|
-
import
|
|
13
|
-
from
|
|
14
|
-
from typing import Any, Dict, Union
|
|
12
|
+
from pydantic import model_serializer
|
|
13
|
+
from typing import Union
|
|
15
14
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
@@ -45,11 +44,6 @@ class MorphoDepositRequestTypedDict(TypedDict):
|
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
class MorphoDepositRequest(BaseModel):
|
|
48
|
-
model_config = ConfigDict(
|
|
49
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
50
|
-
)
|
|
51
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
52
|
-
|
|
53
47
|
vault_address: str
|
|
54
48
|
r"""The vault address you are depositing to."""
|
|
55
49
|
|
|
@@ -64,14 +58,6 @@ class MorphoDepositRequest(BaseModel):
|
|
|
64
58
|
receiver: OptionalNullable[str] = UNSET
|
|
65
59
|
r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
66
60
|
|
|
67
|
-
@property
|
|
68
|
-
def additional_properties(self):
|
|
69
|
-
return self.__pydantic_extra__
|
|
70
|
-
|
|
71
|
-
@additional_properties.setter
|
|
72
|
-
def additional_properties(self, value):
|
|
73
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
74
|
-
|
|
75
61
|
@model_serializer(mode="wrap")
|
|
76
62
|
def serialize_model(self, handler):
|
|
77
63
|
optional_fields = ["receiver"]
|
|
@@ -100,7 +86,4 @@ class MorphoDepositRequest(BaseModel):
|
|
|
100
86
|
):
|
|
101
87
|
m[k] = val
|
|
102
88
|
|
|
103
|
-
for k, v in serialized.items():
|
|
104
|
-
m[k] = v
|
|
105
|
-
|
|
106
89
|
return m
|
|
@@ -8,9 +8,8 @@ from compass_api_sdk.types import (
|
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
import
|
|
12
|
-
from
|
|
13
|
-
from typing import Any, Dict
|
|
11
|
+
from pydantic import model_serializer
|
|
12
|
+
from typing import Any
|
|
14
13
|
from typing_extensions import NotRequired, TypedDict
|
|
15
14
|
|
|
16
15
|
|
|
@@ -26,11 +25,6 @@ class MorphoRepayParamsTypedDict(TypedDict):
|
|
|
26
25
|
|
|
27
26
|
|
|
28
27
|
class MorphoRepayParams(BaseModel):
|
|
29
|
-
model_config = ConfigDict(
|
|
30
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
31
|
-
)
|
|
32
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
33
|
-
|
|
34
28
|
amount: Any
|
|
35
29
|
r"""Amount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet."""
|
|
36
30
|
|
|
@@ -43,14 +37,6 @@ class MorphoRepayParams(BaseModel):
|
|
|
43
37
|
callback_data: OptionalNullable[bytes] = UNSET
|
|
44
38
|
r"""An optional field for callback byte data that will be triggered upon successful repaying of debt."""
|
|
45
39
|
|
|
46
|
-
@property
|
|
47
|
-
def additional_properties(self):
|
|
48
|
-
return self.__pydantic_extra__
|
|
49
|
-
|
|
50
|
-
@additional_properties.setter
|
|
51
|
-
def additional_properties(self, value):
|
|
52
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
53
|
-
|
|
54
40
|
@model_serializer(mode="wrap")
|
|
55
41
|
def serialize_model(self, handler):
|
|
56
42
|
optional_fields = ["on_behalf_of", "callback_data"]
|
|
@@ -79,7 +65,4 @@ class MorphoRepayParams(BaseModel):
|
|
|
79
65
|
):
|
|
80
66
|
m[k] = val
|
|
81
67
|
|
|
82
|
-
for k, v in serialized.items():
|
|
83
|
-
m[k] = v
|
|
84
|
-
|
|
85
68
|
return m
|
|
@@ -9,9 +9,8 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
11
|
from enum import Enum
|
|
12
|
-
import
|
|
13
|
-
from
|
|
14
|
-
from typing import Any, Dict
|
|
12
|
+
from pydantic import model_serializer
|
|
13
|
+
from typing import Any
|
|
15
14
|
from typing_extensions import NotRequired, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
@@ -35,11 +34,6 @@ class MorphoRepayRequestTypedDict(TypedDict):
|
|
|
35
34
|
|
|
36
35
|
|
|
37
36
|
class MorphoRepayRequest(BaseModel):
|
|
38
|
-
model_config = ConfigDict(
|
|
39
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
40
|
-
)
|
|
41
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
42
|
-
|
|
43
37
|
amount: Any
|
|
44
38
|
r"""Amount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet."""
|
|
45
39
|
|
|
@@ -57,14 +51,6 @@ class MorphoRepayRequest(BaseModel):
|
|
|
57
51
|
callback_data: OptionalNullable[bytes] = UNSET
|
|
58
52
|
r"""An optional field for callback byte data that will be triggered upon successful repaying of debt."""
|
|
59
53
|
|
|
60
|
-
@property
|
|
61
|
-
def additional_properties(self):
|
|
62
|
-
return self.__pydantic_extra__
|
|
63
|
-
|
|
64
|
-
@additional_properties.setter
|
|
65
|
-
def additional_properties(self, value):
|
|
66
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
67
|
-
|
|
68
54
|
@model_serializer(mode="wrap")
|
|
69
55
|
def serialize_model(self, handler):
|
|
70
56
|
optional_fields = ["on_behalf_of", "callback_data"]
|
|
@@ -93,7 +79,4 @@ class MorphoRepayRequest(BaseModel):
|
|
|
93
79
|
):
|
|
94
80
|
m[k] = val
|
|
95
81
|
|
|
96
|
-
for k, v in serialized.items():
|
|
97
|
-
m[k] = v
|
|
98
|
-
|
|
99
82
|
return m
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
-
import
|
|
6
|
-
from pydantic import ConfigDict
|
|
7
|
-
from typing import Any, Dict, Union
|
|
5
|
+
from typing import Union
|
|
8
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
7
|
|
|
10
8
|
|
|
@@ -28,21 +26,8 @@ class MorphoSetVaultAllowanceParamsTypedDict(TypedDict):
|
|
|
28
26
|
|
|
29
27
|
|
|
30
28
|
class MorphoSetVaultAllowanceParams(BaseModel):
|
|
31
|
-
model_config = ConfigDict(
|
|
32
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
33
|
-
)
|
|
34
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
35
|
-
|
|
36
29
|
vault_address: str
|
|
37
30
|
r"""The vault address you are increasing the allowance for."""
|
|
38
31
|
|
|
39
32
|
amount: MorphoSetVaultAllowanceParamsAmount
|
|
40
33
|
r"""The amount of tokens to increase the allowance by."""
|
|
41
|
-
|
|
42
|
-
@property
|
|
43
|
-
def additional_properties(self):
|
|
44
|
-
return self.__pydantic_extra__
|
|
45
|
-
|
|
46
|
-
@additional_properties.setter
|
|
47
|
-
def additional_properties(self, value):
|
|
48
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
5
|
from enum import Enum
|
|
6
|
-
import
|
|
7
|
-
from pydantic import ConfigDict
|
|
8
|
-
from typing import Any, Dict, Union
|
|
6
|
+
from typing import Union
|
|
9
7
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
@@ -37,11 +35,6 @@ class MorphoSetVaultAllowanceRequestTypedDict(TypedDict):
|
|
|
37
35
|
|
|
38
36
|
|
|
39
37
|
class MorphoSetVaultAllowanceRequest(BaseModel):
|
|
40
|
-
model_config = ConfigDict(
|
|
41
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
42
|
-
)
|
|
43
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
44
|
-
|
|
45
38
|
vault_address: str
|
|
46
39
|
r"""The vault address you are increasing the allowance for."""
|
|
47
40
|
|
|
@@ -52,11 +45,3 @@ class MorphoSetVaultAllowanceRequest(BaseModel):
|
|
|
52
45
|
|
|
53
46
|
sender: str
|
|
54
47
|
r"""The address of the transaction sender."""
|
|
55
|
-
|
|
56
|
-
@property
|
|
57
|
-
def additional_properties(self):
|
|
58
|
-
return self.__pydantic_extra__
|
|
59
|
-
|
|
60
|
-
@additional_properties.setter
|
|
61
|
-
def additional_properties(self, value):
|
|
62
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -8,9 +8,8 @@ from compass_api_sdk.types import (
|
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
import
|
|
12
|
-
from
|
|
13
|
-
from typing import Any, Dict, Union
|
|
11
|
+
from pydantic import model_serializer
|
|
12
|
+
from typing import Union
|
|
14
13
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
14
|
|
|
16
15
|
|
|
@@ -38,11 +37,6 @@ class MorphoSupplyCollateralParamsTypedDict(TypedDict):
|
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
class MorphoSupplyCollateralParams(BaseModel):
|
|
41
|
-
model_config = ConfigDict(
|
|
42
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
43
|
-
)
|
|
44
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
45
|
-
|
|
46
40
|
amount: MorphoSupplyCollateralParamsAmount
|
|
47
41
|
r"""Amount of the token to supply to the market as collateral."""
|
|
48
42
|
|
|
@@ -55,14 +49,6 @@ class MorphoSupplyCollateralParams(BaseModel):
|
|
|
55
49
|
callback_data: OptionalNullable[bytes] = UNSET
|
|
56
50
|
r"""An optional field for callback byte data that will be triggered upon successful supplying of collateral."""
|
|
57
51
|
|
|
58
|
-
@property
|
|
59
|
-
def additional_properties(self):
|
|
60
|
-
return self.__pydantic_extra__
|
|
61
|
-
|
|
62
|
-
@additional_properties.setter
|
|
63
|
-
def additional_properties(self, value):
|
|
64
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
65
|
-
|
|
66
52
|
@model_serializer(mode="wrap")
|
|
67
53
|
def serialize_model(self, handler):
|
|
68
54
|
optional_fields = ["on_behalf_of", "callback_data"]
|
|
@@ -91,7 +77,4 @@ class MorphoSupplyCollateralParams(BaseModel):
|
|
|
91
77
|
):
|
|
92
78
|
m[k] = val
|
|
93
79
|
|
|
94
|
-
for k, v in serialized.items():
|
|
95
|
-
m[k] = v
|
|
96
|
-
|
|
97
80
|
return m
|
|
@@ -9,9 +9,8 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
11
|
from enum import Enum
|
|
12
|
-
import
|
|
13
|
-
from
|
|
14
|
-
from typing import Any, Dict, Union
|
|
12
|
+
from pydantic import model_serializer
|
|
13
|
+
from typing import Union
|
|
15
14
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
@@ -47,11 +46,6 @@ class MorphoSupplyCollateralRequestTypedDict(TypedDict):
|
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
class MorphoSupplyCollateralRequest(BaseModel):
|
|
50
|
-
model_config = ConfigDict(
|
|
51
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
52
|
-
)
|
|
53
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
54
|
-
|
|
55
49
|
amount: MorphoSupplyCollateralRequestAmount
|
|
56
50
|
r"""Amount of the token to supply to the market as collateral."""
|
|
57
51
|
|
|
@@ -69,14 +63,6 @@ class MorphoSupplyCollateralRequest(BaseModel):
|
|
|
69
63
|
callback_data: OptionalNullable[bytes] = UNSET
|
|
70
64
|
r"""An optional field for callback byte data that will be triggered upon successful supplying of collateral."""
|
|
71
65
|
|
|
72
|
-
@property
|
|
73
|
-
def additional_properties(self):
|
|
74
|
-
return self.__pydantic_extra__
|
|
75
|
-
|
|
76
|
-
@additional_properties.setter
|
|
77
|
-
def additional_properties(self, value):
|
|
78
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
79
|
-
|
|
80
66
|
@model_serializer(mode="wrap")
|
|
81
67
|
def serialize_model(self, handler):
|
|
82
68
|
optional_fields = ["on_behalf_of", "callback_data"]
|
|
@@ -105,7 +91,4 @@ class MorphoSupplyCollateralRequest(BaseModel):
|
|
|
105
91
|
):
|
|
106
92
|
m[k] = val
|
|
107
93
|
|
|
108
|
-
for k, v in serialized.items():
|
|
109
|
-
m[k] = v
|
|
110
|
-
|
|
111
94
|
return m
|
|
@@ -8,9 +8,8 @@ from compass_api_sdk.types import (
|
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
import
|
|
12
|
-
from
|
|
13
|
-
from typing import Any, Dict, Union
|
|
11
|
+
from pydantic import model_serializer
|
|
12
|
+
from typing import Union
|
|
14
13
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
14
|
|
|
16
15
|
|
|
@@ -38,11 +37,6 @@ class MorphoWithdrawCollateralParamsTypedDict(TypedDict):
|
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
class MorphoWithdrawCollateralParams(BaseModel):
|
|
41
|
-
model_config = ConfigDict(
|
|
42
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
43
|
-
)
|
|
44
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
45
|
-
|
|
46
40
|
amount: MorphoWithdrawCollateralParamsAmount
|
|
47
41
|
r"""Amount of the token to supply to the market as collateral."""
|
|
48
42
|
|
|
@@ -55,14 +49,6 @@ class MorphoWithdrawCollateralParams(BaseModel):
|
|
|
55
49
|
receiver: OptionalNullable[str] = UNSET
|
|
56
50
|
r"""The address where the withdrawn collateral will be received. Defaults to sender."""
|
|
57
51
|
|
|
58
|
-
@property
|
|
59
|
-
def additional_properties(self):
|
|
60
|
-
return self.__pydantic_extra__
|
|
61
|
-
|
|
62
|
-
@additional_properties.setter
|
|
63
|
-
def additional_properties(self, value):
|
|
64
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
65
|
-
|
|
66
52
|
@model_serializer(mode="wrap")
|
|
67
53
|
def serialize_model(self, handler):
|
|
68
54
|
optional_fields = ["on_behalf_of", "receiver"]
|
|
@@ -91,7 +77,4 @@ class MorphoWithdrawCollateralParams(BaseModel):
|
|
|
91
77
|
):
|
|
92
78
|
m[k] = val
|
|
93
79
|
|
|
94
|
-
for k, v in serialized.items():
|
|
95
|
-
m[k] = v
|
|
96
|
-
|
|
97
80
|
return m
|
|
@@ -9,9 +9,8 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
11
|
from enum import Enum
|
|
12
|
-
import
|
|
13
|
-
from
|
|
14
|
-
from typing import Any, Dict, Union
|
|
12
|
+
from pydantic import model_serializer
|
|
13
|
+
from typing import Union
|
|
15
14
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
@@ -47,11 +46,6 @@ class MorphoWithdrawCollateralRequestTypedDict(TypedDict):
|
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
class MorphoWithdrawCollateralRequest(BaseModel):
|
|
50
|
-
model_config = ConfigDict(
|
|
51
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
52
|
-
)
|
|
53
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
54
|
-
|
|
55
49
|
amount: MorphoWithdrawCollateralRequestAmount
|
|
56
50
|
r"""Amount of the token to supply to the market as collateral."""
|
|
57
51
|
|
|
@@ -69,14 +63,6 @@ class MorphoWithdrawCollateralRequest(BaseModel):
|
|
|
69
63
|
receiver: OptionalNullable[str] = UNSET
|
|
70
64
|
r"""The address where the withdrawn collateral will be received. Defaults to sender."""
|
|
71
65
|
|
|
72
|
-
@property
|
|
73
|
-
def additional_properties(self):
|
|
74
|
-
return self.__pydantic_extra__
|
|
75
|
-
|
|
76
|
-
@additional_properties.setter
|
|
77
|
-
def additional_properties(self, value):
|
|
78
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
79
|
-
|
|
80
66
|
@model_serializer(mode="wrap")
|
|
81
67
|
def serialize_model(self, handler):
|
|
82
68
|
optional_fields = ["on_behalf_of", "receiver"]
|
|
@@ -105,7 +91,4 @@ class MorphoWithdrawCollateralRequest(BaseModel):
|
|
|
105
91
|
):
|
|
106
92
|
m[k] = val
|
|
107
93
|
|
|
108
|
-
for k, v in serialized.items():
|
|
109
|
-
m[k] = v
|
|
110
|
-
|
|
111
94
|
return m
|
|
@@ -8,9 +8,8 @@ from compass_api_sdk.types import (
|
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
import
|
|
12
|
-
from
|
|
13
|
-
from typing import Any, Dict
|
|
11
|
+
from pydantic import model_serializer
|
|
12
|
+
from typing import Any
|
|
14
13
|
from typing_extensions import NotRequired, TypedDict
|
|
15
14
|
|
|
16
15
|
|
|
@@ -24,11 +23,6 @@ class MorphoWithdrawParamsTypedDict(TypedDict):
|
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
class MorphoWithdrawParams(BaseModel):
|
|
27
|
-
model_config = ConfigDict(
|
|
28
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
29
|
-
)
|
|
30
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
31
|
-
|
|
32
26
|
vault_address: str
|
|
33
27
|
r"""The vault address you are withdrawing from."""
|
|
34
28
|
|
|
@@ -38,14 +32,6 @@ class MorphoWithdrawParams(BaseModel):
|
|
|
38
32
|
receiver: OptionalNullable[str] = UNSET
|
|
39
33
|
r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
|
|
40
34
|
|
|
41
|
-
@property
|
|
42
|
-
def additional_properties(self):
|
|
43
|
-
return self.__pydantic_extra__
|
|
44
|
-
|
|
45
|
-
@additional_properties.setter
|
|
46
|
-
def additional_properties(self, value):
|
|
47
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
48
|
-
|
|
49
35
|
@model_serializer(mode="wrap")
|
|
50
36
|
def serialize_model(self, handler):
|
|
51
37
|
optional_fields = ["receiver"]
|
|
@@ -74,7 +60,4 @@ class MorphoWithdrawParams(BaseModel):
|
|
|
74
60
|
):
|
|
75
61
|
m[k] = val
|
|
76
62
|
|
|
77
|
-
for k, v in serialized.items():
|
|
78
|
-
m[k] = v
|
|
79
|
-
|
|
80
63
|
return m
|
|
@@ -9,9 +9,8 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
11
|
from enum import Enum
|
|
12
|
-
import
|
|
13
|
-
from
|
|
14
|
-
from typing import Any, Dict
|
|
12
|
+
from pydantic import model_serializer
|
|
13
|
+
from typing import Any
|
|
15
14
|
from typing_extensions import NotRequired, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
@@ -33,11 +32,6 @@ class MorphoWithdrawRequestTypedDict(TypedDict):
|
|
|
33
32
|
|
|
34
33
|
|
|
35
34
|
class MorphoWithdrawRequest(BaseModel):
|
|
36
|
-
model_config = ConfigDict(
|
|
37
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
38
|
-
)
|
|
39
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
40
|
-
|
|
41
35
|
vault_address: str
|
|
42
36
|
r"""The vault address you are withdrawing from."""
|
|
43
37
|
|
|
@@ -52,14 +46,6 @@ class MorphoWithdrawRequest(BaseModel):
|
|
|
52
46
|
receiver: OptionalNullable[str] = UNSET
|
|
53
47
|
r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
|
|
54
48
|
|
|
55
|
-
@property
|
|
56
|
-
def additional_properties(self):
|
|
57
|
-
return self.__pydantic_extra__
|
|
58
|
-
|
|
59
|
-
@additional_properties.setter
|
|
60
|
-
def additional_properties(self, value):
|
|
61
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
62
|
-
|
|
63
49
|
@model_serializer(mode="wrap")
|
|
64
50
|
def serialize_model(self, handler):
|
|
65
51
|
optional_fields = ["receiver"]
|
|
@@ -88,7 +74,4 @@ class MorphoWithdrawRequest(BaseModel):
|
|
|
88
74
|
):
|
|
89
75
|
m[k] = val
|
|
90
76
|
|
|
91
|
-
for k, v in serialized.items():
|
|
92
|
-
m[k] = v
|
|
93
|
-
|
|
94
77
|
return m
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
-
import
|
|
6
|
-
from pydantic import ConfigDict
|
|
7
|
-
from typing import Any, Dict, Union
|
|
5
|
+
from typing import Union
|
|
8
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
7
|
|
|
10
8
|
|
|
@@ -26,21 +24,8 @@ class PendleBuyPtParamsTypedDict(TypedDict):
|
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
class PendleBuyPtParams(BaseModel):
|
|
29
|
-
model_config = ConfigDict(
|
|
30
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
31
|
-
)
|
|
32
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
33
|
-
|
|
34
27
|
market_address: str
|
|
35
28
|
r"""The address of the market identifying which Principal Token (PT) you would like to buy."""
|
|
36
29
|
|
|
37
30
|
amount: PendleBuyPtParamsAmount
|
|
38
31
|
r"""The amount of market's Underlying Token you would like to sell for market's Principal Token (PT)."""
|
|
39
|
-
|
|
40
|
-
@property
|
|
41
|
-
def additional_properties(self):
|
|
42
|
-
return self.__pydantic_extra__
|
|
43
|
-
|
|
44
|
-
@additional_properties.setter
|
|
45
|
-
def additional_properties(self, value):
|
|
46
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from pydantic import ConfigDict
|
|
8
|
-
from typing import Any, Dict, Union
|
|
6
|
+
from typing import Union
|
|
9
7
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
@@ -31,11 +29,6 @@ class PendleBuyPtRequestTypedDict(TypedDict):
|
|
|
31
29
|
|
|
32
30
|
|
|
33
31
|
class PendleBuyPtRequest(BaseModel):
|
|
34
|
-
model_config = ConfigDict(
|
|
35
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
36
|
-
)
|
|
37
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
38
|
-
|
|
39
32
|
market_address: str
|
|
40
33
|
r"""The address of the market identifying which Principal Token (PT) you would like to buy."""
|
|
41
34
|
|
|
@@ -47,11 +40,3 @@ class PendleBuyPtRequest(BaseModel):
|
|
|
47
40
|
|
|
48
41
|
sender: str
|
|
49
42
|
r"""The address of the transaction sender."""
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def additional_properties(self):
|
|
53
|
-
return self.__pydantic_extra__
|
|
54
|
-
|
|
55
|
-
@additional_properties.setter
|
|
56
|
-
def additional_properties(self, value):
|
|
57
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
-
import
|
|
6
|
-
from pydantic import ConfigDict
|
|
7
|
-
from typing import Any, Dict, Union
|
|
5
|
+
from typing import Union
|
|
8
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
7
|
|
|
10
8
|
|
|
@@ -26,21 +24,8 @@ class PendleBuyYtParamsTypedDict(TypedDict):
|
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
class PendleBuyYtParams(BaseModel):
|
|
29
|
-
model_config = ConfigDict(
|
|
30
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
31
|
-
)
|
|
32
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
33
|
-
|
|
34
27
|
market_address: str
|
|
35
28
|
r"""The address of the market identifying which Yield Token (YT) you would like to buy."""
|
|
36
29
|
|
|
37
30
|
amount: PendleBuyYtParamsAmount
|
|
38
31
|
r"""The amount of market's Underlying Token you would like to sell for market's Yield Token (YT)."""
|
|
39
|
-
|
|
40
|
-
@property
|
|
41
|
-
def additional_properties(self):
|
|
42
|
-
return self.__pydantic_extra__
|
|
43
|
-
|
|
44
|
-
@additional_properties.setter
|
|
45
|
-
def additional_properties(self, value):
|
|
46
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from pydantic import ConfigDict
|
|
8
|
-
from typing import Any, Dict, Union
|
|
6
|
+
from typing import Union
|
|
9
7
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
@@ -31,11 +29,6 @@ class PendleBuyYtRequestTypedDict(TypedDict):
|
|
|
31
29
|
|
|
32
30
|
|
|
33
31
|
class PendleBuyYtRequest(BaseModel):
|
|
34
|
-
model_config = ConfigDict(
|
|
35
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
36
|
-
)
|
|
37
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
38
|
-
|
|
39
32
|
market_address: str
|
|
40
33
|
r"""The address of the market identifying which Yield Token (YT) you would like to buy."""
|
|
41
34
|
|
|
@@ -47,11 +40,3 @@ class PendleBuyYtRequest(BaseModel):
|
|
|
47
40
|
|
|
48
41
|
sender: str
|
|
49
42
|
r"""The address of the transaction sender."""
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def additional_properties(self):
|
|
53
|
-
return self.__pydantic_extra__
|
|
54
|
-
|
|
55
|
-
@additional_properties.setter
|
|
56
|
-
def additional_properties(self, value):
|
|
57
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|