compass_api_sdk 0.8.1__py3-none-any.whl → 0.8.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +2 -2
- compass_api_sdk/aave_v3.py +25 -1
- compass_api_sdk/aerodrome_slipstream.py +31 -1
- compass_api_sdk/models/aaveborrowparams.py +19 -2
- compass_api_sdk/models/aaveborrowrequest.py +19 -2
- compass_api_sdk/models/aaverepayparams.py +19 -2
- compass_api_sdk/models/aaverepayrequest.py +19 -2
- compass_api_sdk/models/aavesupplyparams.py +19 -2
- compass_api_sdk/models/aavesupplyrequest.py +19 -2
- compass_api_sdk/models/aavewithdrawparams.py +16 -1
- compass_api_sdk/models/aavewithdrawrequest.py +16 -1
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +16 -1
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +16 -1
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +16 -1
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +16 -1
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +19 -2
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +19 -2
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +16 -1
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +16 -1
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +16 -1
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +16 -1
- compass_api_sdk/models/increaseallowanceparams.py +16 -1
- compass_api_sdk/models/increaseallowancerequest.py +16 -1
- compass_api_sdk/models/morphoborrowparams.py +19 -2
- compass_api_sdk/models/morphoborrowrequest.py +19 -2
- compass_api_sdk/models/morphodepositparams.py +19 -2
- compass_api_sdk/models/morphodepositrequest.py +19 -2
- compass_api_sdk/models/morphorepayparams.py +19 -2
- compass_api_sdk/models/morphorepayrequest.py +19 -2
- compass_api_sdk/models/morphosetvaultallowanceparams.py +16 -1
- compass_api_sdk/models/morphosetvaultallowancerequest.py +16 -1
- compass_api_sdk/models/morphosupplycollateralparams.py +19 -2
- compass_api_sdk/models/morphosupplycollateralrequest.py +19 -2
- compass_api_sdk/models/morphowithdrawcollateralparams.py +19 -2
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +19 -2
- compass_api_sdk/models/morphowithdrawparams.py +19 -2
- compass_api_sdk/models/morphowithdrawrequest.py +19 -2
- compass_api_sdk/models/pendlebuyptparams.py +16 -1
- compass_api_sdk/models/pendlebuyptrequest.py +16 -1
- compass_api_sdk/models/pendlebuyytparams.py +16 -1
- compass_api_sdk/models/pendlebuyytrequest.py +16 -1
- compass_api_sdk/models/pendlesellptparams.py +16 -1
- compass_api_sdk/models/pendlesellptrequest.py +16 -1
- compass_api_sdk/models/pendlesellytparams.py +16 -1
- compass_api_sdk/models/pendlesellytrequest.py +16 -1
- compass_api_sdk/models/skybuyparams.py +16 -1
- compass_api_sdk/models/skybuyrequest.py +15 -1
- compass_api_sdk/models/skydepositparams.py +19 -2
- compass_api_sdk/models/skydepositrequest.py +18 -2
- compass_api_sdk/models/skysellparams.py +16 -1
- compass_api_sdk/models/skysellrequest.py +15 -1
- compass_api_sdk/models/skywithdrawparams.py +19 -2
- compass_api_sdk/models/skywithdrawrequest.py +18 -2
- compass_api_sdk/models/tokentransfererc20params.py +16 -1
- compass_api_sdk/models/tokentransferrequest.py +16 -1
- compass_api_sdk/models/uniswapbuyexactlyparams.py +16 -1
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +16 -1
- compass_api_sdk/models/uniswapincreaseliquidityprovisionparams.py +16 -1
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +16 -1
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +19 -2
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +19 -2
- compass_api_sdk/models/uniswapsellexactlyparams.py +16 -1
- compass_api_sdk/models/uniswapsellexactlyrequest.py +16 -1
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionparams.py +16 -1
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +16 -1
- compass_api_sdk/models/unwrapwethparams.py +16 -1
- compass_api_sdk/models/unwrapwethrequest.py +16 -1
- compass_api_sdk/models/wrapethparams.py +16 -1
- compass_api_sdk/models/wrapethrequest.py +16 -1
- compass_api_sdk/morpho.py +43 -1
- compass_api_sdk/pendle.py +25 -1
- compass_api_sdk/sky.py +25 -1
- compass_api_sdk/token_sdk.py +7 -1
- compass_api_sdk/uniswap_v3.py +31 -1
- compass_api_sdk/universal.py +19 -1
- {compass_api_sdk-0.8.1.dist-info → compass_api_sdk-0.8.2.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.8.1.dist-info → compass_api_sdk-0.8.2.dist-info}/RECORD +78 -78
- {compass_api_sdk-0.8.1.dist-info → compass_api_sdk-0.8.2.dist-info}/WHEEL +0 -0
|
@@ -10,8 +10,9 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
UNSET,
|
|
11
11
|
UNSET_SENTINEL,
|
|
12
12
|
)
|
|
13
|
-
|
|
14
|
-
from
|
|
13
|
+
import pydantic
|
|
14
|
+
from pydantic import ConfigDict, model_serializer
|
|
15
|
+
from typing import Any, Dict, Union
|
|
15
16
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
16
17
|
|
|
17
18
|
|
|
@@ -43,6 +44,11 @@ class AaveSupplyRequestTypedDict(TypedDict):
|
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
class AaveSupplyRequest(BaseModel):
|
|
47
|
+
model_config = ConfigDict(
|
|
48
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
49
|
+
)
|
|
50
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
51
|
+
|
|
46
52
|
token: TokenEnum
|
|
47
53
|
r"""A class representing the token.
|
|
48
54
|
|
|
@@ -62,6 +68,14 @@ class AaveSupplyRequest(BaseModel):
|
|
|
62
68
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
63
69
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
64
70
|
|
|
71
|
+
@property
|
|
72
|
+
def additional_properties(self):
|
|
73
|
+
return self.__pydantic_extra__
|
|
74
|
+
|
|
75
|
+
@additional_properties.setter
|
|
76
|
+
def additional_properties(self, value):
|
|
77
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
78
|
+
|
|
65
79
|
@model_serializer(mode="wrap")
|
|
66
80
|
def serialize_model(self, handler):
|
|
67
81
|
optional_fields = ["on_behalf_of"]
|
|
@@ -90,4 +104,7 @@ class AaveSupplyRequest(BaseModel):
|
|
|
90
104
|
):
|
|
91
105
|
m[k] = val
|
|
92
106
|
|
|
107
|
+
for k, v in serialized.items():
|
|
108
|
+
m[k] = v
|
|
109
|
+
|
|
93
110
|
return m
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic import ConfigDict
|
|
8
|
+
from typing import Any, Dict, Union
|
|
7
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
8
10
|
|
|
9
11
|
|
|
@@ -31,6 +33,11 @@ class AaveWithdrawParamsTypedDict(TypedDict):
|
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
class AaveWithdrawParams(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
|
+
|
|
34
41
|
token: TokenEnum
|
|
35
42
|
r"""A class representing the token.
|
|
36
43
|
|
|
@@ -43,3 +50,11 @@ class AaveWithdrawParams(BaseModel):
|
|
|
43
50
|
|
|
44
51
|
recipient: str
|
|
45
52
|
r"""The address of the recipient of the withdrawn funds."""
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_properties(self):
|
|
56
|
+
return self.__pydantic_extra__
|
|
57
|
+
|
|
58
|
+
@additional_properties.setter
|
|
59
|
+
def additional_properties(self, value):
|
|
60
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -4,7 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
6
|
from compass_api_sdk.types import BaseModel
|
|
7
|
-
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic import ConfigDict
|
|
9
|
+
from typing import Any, Dict, Union
|
|
8
10
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
11
|
|
|
10
12
|
|
|
@@ -38,6 +40,11 @@ class AaveWithdrawRequestTypedDict(TypedDict):
|
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
class AaveWithdrawRequest(BaseModel):
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
45
|
+
)
|
|
46
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
47
|
+
|
|
41
48
|
token: TokenEnum
|
|
42
49
|
r"""A class representing the token.
|
|
43
50
|
|
|
@@ -56,3 +63,11 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
56
63
|
|
|
57
64
|
sender: str
|
|
58
65
|
r"""The address of the transaction sender."""
|
|
66
|
+
|
|
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]
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic import ConfigDict
|
|
8
|
+
from typing import Any, Dict, Union
|
|
7
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
8
10
|
|
|
9
11
|
|
|
@@ -57,6 +59,11 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
|
57
59
|
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
58
60
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
59
61
|
|
|
62
|
+
model_config = ConfigDict(
|
|
63
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
64
|
+
)
|
|
65
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
66
|
+
|
|
60
67
|
token_in: TokenEnum
|
|
61
68
|
r"""A class representing the token.
|
|
62
69
|
|
|
@@ -79,3 +86,11 @@ class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
|
79
86
|
|
|
80
87
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximum
|
|
81
88
|
r"""The maximum amount of the token to swap from"""
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def additional_properties(self):
|
|
92
|
+
return self.__pydantic_extra__
|
|
93
|
+
|
|
94
|
+
@additional_properties.setter
|
|
95
|
+
def additional_properties(self, value):
|
|
96
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -4,7 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
6
|
from compass_api_sdk.types import BaseModel
|
|
7
|
-
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic import ConfigDict
|
|
9
|
+
from typing import Any, Dict, Union
|
|
8
10
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
11
|
|
|
10
12
|
|
|
@@ -62,6 +64,11 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
|
62
64
|
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
63
65
|
r"""Request model for buying exactly an amount of tokens."""
|
|
64
66
|
|
|
67
|
+
model_config = ConfigDict(
|
|
68
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
69
|
+
)
|
|
70
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
71
|
+
|
|
65
72
|
token_in: TokenEnum
|
|
66
73
|
r"""A class representing the token.
|
|
67
74
|
|
|
@@ -90,3 +97,11 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
90
97
|
|
|
91
98
|
sender: str
|
|
92
99
|
r"""The address of the transaction sender."""
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def additional_properties(self):
|
|
103
|
+
return self.__pydantic_extra__
|
|
104
|
+
|
|
105
|
+
@additional_properties.setter
|
|
106
|
+
def additional_properties(self, value):
|
|
107
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
-
|
|
5
|
+
import pydantic
|
|
6
|
+
from pydantic import ConfigDict
|
|
7
|
+
from typing import Any, Dict, Union
|
|
6
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
9
|
|
|
8
10
|
|
|
@@ -94,6 +96,11 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
94
96
|
liquidity of an existing position.
|
|
95
97
|
"""
|
|
96
98
|
|
|
99
|
+
model_config = ConfigDict(
|
|
100
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
101
|
+
)
|
|
102
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
103
|
+
|
|
97
104
|
token_id: int
|
|
98
105
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
99
106
|
|
|
@@ -108,3 +115,11 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
108
115
|
|
|
109
116
|
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min
|
|
110
117
|
r"""The minimum amount of the second token to deposit"""
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def additional_properties(self):
|
|
121
|
+
return self.__pydantic_extra__
|
|
122
|
+
|
|
123
|
+
@additional_properties.setter
|
|
124
|
+
def additional_properties(self, value):
|
|
125
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic import ConfigDict
|
|
8
|
+
from typing import Any, Dict, Union
|
|
7
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
8
10
|
|
|
9
11
|
|
|
@@ -87,6 +89,11 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
87
89
|
|
|
88
90
|
|
|
89
91
|
class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
92
|
+
model_config = ConfigDict(
|
|
93
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
94
|
+
)
|
|
95
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
96
|
+
|
|
90
97
|
token_id: int
|
|
91
98
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
92
99
|
|
|
@@ -107,3 +114,11 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
107
114
|
|
|
108
115
|
sender: str
|
|
109
116
|
r"""The address of the transaction sender."""
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def additional_properties(self):
|
|
120
|
+
return self.__pydantic_extra__
|
|
121
|
+
|
|
122
|
+
@additional_properties.setter
|
|
123
|
+
def additional_properties(self, value):
|
|
124
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -9,8 +9,9 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET,
|
|
10
10
|
UNSET_SENTINEL,
|
|
11
11
|
)
|
|
12
|
-
|
|
13
|
-
from
|
|
12
|
+
import pydantic
|
|
13
|
+
from pydantic import ConfigDict, model_serializer
|
|
14
|
+
from typing import Any, Dict, Union
|
|
14
15
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
16
|
|
|
16
17
|
|
|
@@ -106,6 +107,11 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
106
107
|
class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
107
108
|
r"""Parameters model for minting a new liquidity position."""
|
|
108
109
|
|
|
110
|
+
model_config = ConfigDict(
|
|
111
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
112
|
+
)
|
|
113
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
114
|
+
|
|
109
115
|
token0: TokenEnum
|
|
110
116
|
r"""A class representing the token.
|
|
111
117
|
|
|
@@ -144,6 +150,14 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
144
150
|
recipient: OptionalNullable[str] = UNSET
|
|
145
151
|
r"""The address that will receive the LP tokens"""
|
|
146
152
|
|
|
153
|
+
@property
|
|
154
|
+
def additional_properties(self):
|
|
155
|
+
return self.__pydantic_extra__
|
|
156
|
+
|
|
157
|
+
@additional_properties.setter
|
|
158
|
+
def additional_properties(self, value):
|
|
159
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
160
|
+
|
|
147
161
|
@model_serializer(mode="wrap")
|
|
148
162
|
def serialize_model(self, handler):
|
|
149
163
|
optional_fields = ["recipient"]
|
|
@@ -172,4 +186,7 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
172
186
|
):
|
|
173
187
|
m[k] = val
|
|
174
188
|
|
|
189
|
+
for k, v in serialized.items():
|
|
190
|
+
m[k] = v
|
|
191
|
+
|
|
175
192
|
return m
|
|
@@ -10,8 +10,9 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
UNSET,
|
|
11
11
|
UNSET_SENTINEL,
|
|
12
12
|
)
|
|
13
|
-
|
|
14
|
-
from
|
|
13
|
+
import pydantic
|
|
14
|
+
from pydantic import ConfigDict, model_serializer
|
|
15
|
+
from typing import Any, Dict, Union
|
|
15
16
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
16
17
|
|
|
17
18
|
|
|
@@ -111,6 +112,11 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
111
112
|
class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
112
113
|
r"""Request model for minting a new liquidity position."""
|
|
113
114
|
|
|
115
|
+
model_config = ConfigDict(
|
|
116
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
117
|
+
)
|
|
118
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
119
|
+
|
|
114
120
|
token0: TokenEnum
|
|
115
121
|
r"""A class representing the token.
|
|
116
122
|
|
|
@@ -155,6 +161,14 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
155
161
|
recipient: OptionalNullable[str] = UNSET
|
|
156
162
|
r"""The address that will receive the LP tokens"""
|
|
157
163
|
|
|
164
|
+
@property
|
|
165
|
+
def additional_properties(self):
|
|
166
|
+
return self.__pydantic_extra__
|
|
167
|
+
|
|
168
|
+
@additional_properties.setter
|
|
169
|
+
def additional_properties(self, value):
|
|
170
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
171
|
+
|
|
158
172
|
@model_serializer(mode="wrap")
|
|
159
173
|
def serialize_model(self, handler):
|
|
160
174
|
optional_fields = ["recipient"]
|
|
@@ -183,4 +197,7 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
183
197
|
):
|
|
184
198
|
m[k] = val
|
|
185
199
|
|
|
200
|
+
for k, v in serialized.items():
|
|
201
|
+
m[k] = v
|
|
202
|
+
|
|
186
203
|
return m
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic import ConfigDict
|
|
8
|
+
from typing import Any, Dict, Optional, Union
|
|
7
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
8
10
|
|
|
9
11
|
|
|
@@ -59,6 +61,11 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
|
|
|
59
61
|
class AerodromeSlipstreamSellExactlyParams(BaseModel):
|
|
60
62
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
61
63
|
|
|
64
|
+
model_config = ConfigDict(
|
|
65
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
66
|
+
)
|
|
67
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
68
|
+
|
|
62
69
|
token_in: TokenEnum
|
|
63
70
|
r"""A class representing the token.
|
|
64
71
|
|
|
@@ -83,3 +90,11 @@ class AerodromeSlipstreamSellExactlyParams(BaseModel):
|
|
|
83
90
|
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum
|
|
84
91
|
] = None
|
|
85
92
|
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def additional_properties(self):
|
|
96
|
+
return self.__pydantic_extra__
|
|
97
|
+
|
|
98
|
+
@additional_properties.setter
|
|
99
|
+
def additional_properties(self, value):
|
|
100
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -4,7 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
6
|
from compass_api_sdk.types import BaseModel
|
|
7
|
-
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic import ConfigDict
|
|
9
|
+
from typing import Any, Dict, Optional, Union
|
|
8
10
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
11
|
|
|
10
12
|
|
|
@@ -64,6 +66,11 @@ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
|
|
|
64
66
|
class AerodromeSlipstreamSellExactlyRequest(BaseModel):
|
|
65
67
|
r"""Request model for selling exactly an amount of tokens."""
|
|
66
68
|
|
|
69
|
+
model_config = ConfigDict(
|
|
70
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
71
|
+
)
|
|
72
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
73
|
+
|
|
67
74
|
token_in: TokenEnum
|
|
68
75
|
r"""A class representing the token.
|
|
69
76
|
|
|
@@ -94,3 +101,11 @@ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
|
|
|
94
101
|
AerodromeSlipstreamSellExactlyRequestAmountOutMinimum
|
|
95
102
|
] = None
|
|
96
103
|
r"""The minimum amount of the token to swap to, defaults to 0"""
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def additional_properties(self):
|
|
107
|
+
return self.__pydantic_extra__
|
|
108
|
+
|
|
109
|
+
@additional_properties.setter
|
|
110
|
+
def additional_properties(self, value):
|
|
111
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
-
|
|
5
|
+
import pydantic
|
|
6
|
+
from pydantic import ConfigDict
|
|
7
|
+
from typing import Any, Dict, Union
|
|
6
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
9
|
|
|
8
10
|
|
|
@@ -42,6 +44,11 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionParams(BaseModel):
|
|
|
42
44
|
First, we call decrease liquidity then collect the tokens owed to the user.
|
|
43
45
|
"""
|
|
44
46
|
|
|
47
|
+
model_config = ConfigDict(
|
|
48
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
49
|
+
)
|
|
50
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
51
|
+
|
|
45
52
|
token_id: int
|
|
46
53
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
47
54
|
|
|
@@ -49,3 +56,11 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionParams(BaseModel):
|
|
|
49
56
|
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal
|
|
50
57
|
)
|
|
51
58
|
r"""How much liquidity to take out in percentage."""
|
|
59
|
+
|
|
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]
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic import ConfigDict
|
|
8
|
+
from typing import Any, Dict, Union
|
|
7
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
8
10
|
|
|
9
11
|
|
|
@@ -35,6 +37,11 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(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
|
+
|
|
38
45
|
token_id: int
|
|
39
46
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
40
47
|
|
|
@@ -48,3 +55,11 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
|
|
|
48
55
|
|
|
49
56
|
sender: str
|
|
50
57
|
r"""The address of the transaction sender."""
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def additional_properties(self):
|
|
61
|
+
return self.__pydantic_extra__
|
|
62
|
+
|
|
63
|
+
@additional_properties.setter
|
|
64
|
+
def additional_properties(self, value):
|
|
65
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -4,7 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
6
|
from enum import Enum
|
|
7
|
-
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic import ConfigDict
|
|
9
|
+
from typing import Any, Dict, Union
|
|
8
10
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
11
|
|
|
10
12
|
|
|
@@ -64,6 +66,11 @@ class IncreaseAllowanceParamsTypedDict(TypedDict):
|
|
|
64
66
|
class IncreaseAllowanceParams(BaseModel):
|
|
65
67
|
r"""Parameters model for increasing token allowance for a contract."""
|
|
66
68
|
|
|
69
|
+
model_config = ConfigDict(
|
|
70
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
71
|
+
)
|
|
72
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
73
|
+
|
|
67
74
|
token: IncreaseAllowanceParamsToken
|
|
68
75
|
r"""The symbol or address of the token for which the allowance is increased.."""
|
|
69
76
|
|
|
@@ -72,3 +79,11 @@ class IncreaseAllowanceParams(BaseModel):
|
|
|
72
79
|
|
|
73
80
|
amount: IncreaseAllowanceParamsAmount
|
|
74
81
|
r"""The amount to increase the allowance to."""
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def additional_properties(self):
|
|
85
|
+
return self.__pydantic_extra__
|
|
86
|
+
|
|
87
|
+
@additional_properties.setter
|
|
88
|
+
def additional_properties(self, value):
|
|
89
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -5,7 +5,9 @@ from .chain import Chain
|
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
6
|
from compass_api_sdk.types import BaseModel
|
|
7
7
|
from enum import Enum
|
|
8
|
-
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic import ConfigDict
|
|
10
|
+
from typing import Any, Dict, Union
|
|
9
11
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
12
|
|
|
11
13
|
|
|
@@ -69,6 +71,11 @@ class IncreaseAllowanceRequestTypedDict(TypedDict):
|
|
|
69
71
|
class IncreaseAllowanceRequest(BaseModel):
|
|
70
72
|
r"""Request model for increasing token allowance for a contract."""
|
|
71
73
|
|
|
74
|
+
model_config = ConfigDict(
|
|
75
|
+
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
76
|
+
)
|
|
77
|
+
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
78
|
+
|
|
72
79
|
token: IncreaseAllowanceRequestToken
|
|
73
80
|
r"""The symbol or address of the token for which the allowance is increased.."""
|
|
74
81
|
|
|
@@ -83,3 +90,11 @@ class IncreaseAllowanceRequest(BaseModel):
|
|
|
83
90
|
|
|
84
91
|
sender: str
|
|
85
92
|
r"""The address of the transaction sender."""
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def additional_properties(self):
|
|
96
|
+
return self.__pydantic_extra__
|
|
97
|
+
|
|
98
|
+
@additional_properties.setter
|
|
99
|
+
def additional_properties(self, value):
|
|
100
|
+
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -8,8 +8,9 @@ from compass_api_sdk.types import (
|
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
|
|
12
|
-
from
|
|
11
|
+
import pydantic
|
|
12
|
+
from pydantic import ConfigDict, model_serializer
|
|
13
|
+
from typing import Any, Dict, Union
|
|
13
14
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
14
15
|
|
|
15
16
|
|
|
@@ -35,6 +36,11 @@ class MorphoBorrowParamsTypedDict(TypedDict):
|
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
class MorphoBorrowParams(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
|
+
|
|
38
44
|
amount: MorphoBorrowParamsAmount
|
|
39
45
|
r"""Amount of the token to borrow from the market."""
|
|
40
46
|
|
|
@@ -47,6 +53,14 @@ class MorphoBorrowParams(BaseModel):
|
|
|
47
53
|
receiver: OptionalNullable[str] = UNSET
|
|
48
54
|
r"""The address of the receiver of the tokens borrowed. Defaults to the transaction sender."""
|
|
49
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]
|
|
63
|
+
|
|
50
64
|
@model_serializer(mode="wrap")
|
|
51
65
|
def serialize_model(self, handler):
|
|
52
66
|
optional_fields = ["on_behalf_of", "receiver"]
|
|
@@ -75,4 +89,7 @@ class MorphoBorrowParams(BaseModel):
|
|
|
75
89
|
):
|
|
76
90
|
m[k] = val
|
|
77
91
|
|
|
92
|
+
for k, v in serialized.items():
|
|
93
|
+
m[k] = v
|
|
94
|
+
|
|
78
95
|
return m
|
|
@@ -9,8 +9,9 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
11
|
from enum import Enum
|
|
12
|
-
|
|
13
|
-
from
|
|
12
|
+
import pydantic
|
|
13
|
+
from pydantic import ConfigDict, model_serializer
|
|
14
|
+
from typing import Any, Dict, Union
|
|
14
15
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
16
|
|
|
16
17
|
|
|
@@ -46,6 +47,11 @@ class MorphoBorrowRequestTypedDict(TypedDict):
|
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
class MorphoBorrowRequest(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
|
+
|
|
49
55
|
amount: MorphoBorrowRequestAmount
|
|
50
56
|
r"""Amount of the token to borrow from the market."""
|
|
51
57
|
|
|
@@ -63,6 +69,14 @@ class MorphoBorrowRequest(BaseModel):
|
|
|
63
69
|
receiver: OptionalNullable[str] = UNSET
|
|
64
70
|
r"""The address of the receiver of the tokens borrowed. Defaults to the transaction sender."""
|
|
65
71
|
|
|
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
|
+
|
|
66
80
|
@model_serializer(mode="wrap")
|
|
67
81
|
def serialize_model(self, handler):
|
|
68
82
|
optional_fields = ["on_behalf_of", "receiver"]
|
|
@@ -91,4 +105,7 @@ class MorphoBorrowRequest(BaseModel):
|
|
|
91
105
|
):
|
|
92
106
|
m[k] = val
|
|
93
107
|
|
|
108
|
+
for k, v in serialized.items():
|
|
109
|
+
m[k] = v
|
|
110
|
+
|
|
94
111
|
return m
|