compass_api_sdk 0.8.2__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.2.dist-info → compass_api_sdk-0.9.0.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.8.2.dist-info → compass_api_sdk-0.9.0.dist-info}/RECORD +79 -79
- {compass_api_sdk-0.8.2.dist-info → compass_api_sdk-0.9.0.dist-info}/WHEEL +0 -0
|
@@ -10,9 +10,8 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
UNSET,
|
|
11
11
|
UNSET_SENTINEL,
|
|
12
12
|
)
|
|
13
|
-
import
|
|
14
|
-
from
|
|
15
|
-
from typing import Any, Dict, Union
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from typing import Union
|
|
16
15
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
17
16
|
|
|
18
17
|
|
|
@@ -44,11 +43,6 @@ class AaveSupplyRequestTypedDict(TypedDict):
|
|
|
44
43
|
|
|
45
44
|
|
|
46
45
|
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
|
-
|
|
52
46
|
token: TokenEnum
|
|
53
47
|
r"""A class representing the token.
|
|
54
48
|
|
|
@@ -68,14 +62,6 @@ class AaveSupplyRequest(BaseModel):
|
|
|
68
62
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
69
63
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
70
64
|
|
|
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
|
-
|
|
79
65
|
@model_serializer(mode="wrap")
|
|
80
66
|
def serialize_model(self, handler):
|
|
81
67
|
optional_fields = ["on_behalf_of"]
|
|
@@ -104,7 +90,4 @@ class AaveSupplyRequest(BaseModel):
|
|
|
104
90
|
):
|
|
105
91
|
m[k] = val
|
|
106
92
|
|
|
107
|
-
for k, v in serialized.items():
|
|
108
|
-
m[k] = v
|
|
109
|
-
|
|
110
93
|
return m
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
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
|
|
|
@@ -33,11 +31,6 @@ class AaveWithdrawParamsTypedDict(TypedDict):
|
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
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
|
-
|
|
41
34
|
token: TokenEnum
|
|
42
35
|
r"""A class representing the token.
|
|
43
36
|
|
|
@@ -50,11 +43,3 @@ class AaveWithdrawParams(BaseModel):
|
|
|
50
43
|
|
|
51
44
|
recipient: str
|
|
52
45
|
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,9 +4,7 @@ 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
|
-
import
|
|
8
|
-
from pydantic import ConfigDict
|
|
9
|
-
from typing import Any, Dict, Union
|
|
7
|
+
from typing import Union
|
|
10
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
11
9
|
|
|
12
10
|
|
|
@@ -40,11 +38,6 @@ class AaveWithdrawRequestTypedDict(TypedDict):
|
|
|
40
38
|
|
|
41
39
|
|
|
42
40
|
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
|
-
|
|
48
41
|
token: TokenEnum
|
|
49
42
|
r"""A class representing the token.
|
|
50
43
|
|
|
@@ -63,11 +56,3 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
63
56
|
|
|
64
57
|
sender: str
|
|
65
58
|
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,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
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
|
|
|
@@ -59,11 +57,6 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
|
59
57
|
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
60
58
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
61
59
|
|
|
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
|
-
|
|
67
60
|
token_in: TokenEnum
|
|
68
61
|
r"""A class representing the token.
|
|
69
62
|
|
|
@@ -86,11 +79,3 @@ class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
|
86
79
|
|
|
87
80
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximum
|
|
88
81
|
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,9 +4,7 @@ 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
|
-
import
|
|
8
|
-
from pydantic import ConfigDict
|
|
9
|
-
from typing import Any, Dict, Union
|
|
7
|
+
from typing import Union
|
|
10
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
11
9
|
|
|
12
10
|
|
|
@@ -64,11 +62,6 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
|
64
62
|
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
65
63
|
r"""Request model for buying exactly an amount of tokens."""
|
|
66
64
|
|
|
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
|
-
|
|
72
65
|
token_in: TokenEnum
|
|
73
66
|
r"""A class representing the token.
|
|
74
67
|
|
|
@@ -97,11 +90,3 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
97
90
|
|
|
98
91
|
sender: str
|
|
99
92
|
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,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
|
|
|
@@ -96,11 +94,6 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
96
94
|
liquidity of an existing position.
|
|
97
95
|
"""
|
|
98
96
|
|
|
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
|
-
|
|
104
97
|
token_id: int
|
|
105
98
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
106
99
|
|
|
@@ -115,11 +108,3 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
115
108
|
|
|
116
109
|
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min
|
|
117
110
|
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,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
|
|
|
@@ -89,11 +87,6 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
89
87
|
|
|
90
88
|
|
|
91
89
|
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
|
-
|
|
97
90
|
token_id: int
|
|
98
91
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
99
92
|
|
|
@@ -114,11 +107,3 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
114
107
|
|
|
115
108
|
sender: str
|
|
116
109
|
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,9 +9,8 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET,
|
|
10
10
|
UNSET_SENTINEL,
|
|
11
11
|
)
|
|
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
|
|
|
@@ -107,11 +106,6 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
107
106
|
class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
108
107
|
r"""Parameters model for minting a new liquidity position."""
|
|
109
108
|
|
|
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
|
-
|
|
115
109
|
token0: TokenEnum
|
|
116
110
|
r"""A class representing the token.
|
|
117
111
|
|
|
@@ -150,14 +144,6 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
150
144
|
recipient: OptionalNullable[str] = UNSET
|
|
151
145
|
r"""The address that will receive the LP tokens"""
|
|
152
146
|
|
|
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
|
-
|
|
161
147
|
@model_serializer(mode="wrap")
|
|
162
148
|
def serialize_model(self, handler):
|
|
163
149
|
optional_fields = ["recipient"]
|
|
@@ -186,7 +172,4 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
186
172
|
):
|
|
187
173
|
m[k] = val
|
|
188
174
|
|
|
189
|
-
for k, v in serialized.items():
|
|
190
|
-
m[k] = v
|
|
191
|
-
|
|
192
175
|
return m
|
|
@@ -10,9 +10,8 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
UNSET,
|
|
11
11
|
UNSET_SENTINEL,
|
|
12
12
|
)
|
|
13
|
-
import
|
|
14
|
-
from
|
|
15
|
-
from typing import Any, Dict, Union
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from typing import Union
|
|
16
15
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
17
16
|
|
|
18
17
|
|
|
@@ -112,11 +111,6 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
112
111
|
class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
113
112
|
r"""Request model for minting a new liquidity position."""
|
|
114
113
|
|
|
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
|
-
|
|
120
114
|
token0: TokenEnum
|
|
121
115
|
r"""A class representing the token.
|
|
122
116
|
|
|
@@ -161,14 +155,6 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
161
155
|
recipient: OptionalNullable[str] = UNSET
|
|
162
156
|
r"""The address that will receive the LP tokens"""
|
|
163
157
|
|
|
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
|
-
|
|
172
158
|
@model_serializer(mode="wrap")
|
|
173
159
|
def serialize_model(self, handler):
|
|
174
160
|
optional_fields = ["recipient"]
|
|
@@ -197,7 +183,4 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
197
183
|
):
|
|
198
184
|
m[k] = val
|
|
199
185
|
|
|
200
|
-
for k, v in serialized.items():
|
|
201
|
-
m[k] = v
|
|
202
|
-
|
|
203
186
|
return m
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from pydantic import ConfigDict
|
|
8
|
-
from typing import Any, Dict, Optional, Union
|
|
6
|
+
from typing import Optional, Union
|
|
9
7
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
@@ -61,11 +59,6 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
|
|
|
61
59
|
class AerodromeSlipstreamSellExactlyParams(BaseModel):
|
|
62
60
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
63
61
|
|
|
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
|
-
|
|
69
62
|
token_in: TokenEnum
|
|
70
63
|
r"""A class representing the token.
|
|
71
64
|
|
|
@@ -90,11 +83,3 @@ class AerodromeSlipstreamSellExactlyParams(BaseModel):
|
|
|
90
83
|
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum
|
|
91
84
|
] = None
|
|
92
85
|
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,9 +4,7 @@ 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
|
-
import
|
|
8
|
-
from pydantic import ConfigDict
|
|
9
|
-
from typing import Any, Dict, Optional, Union
|
|
7
|
+
from typing import Optional, Union
|
|
10
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
11
9
|
|
|
12
10
|
|
|
@@ -66,11 +64,6 @@ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
|
|
|
66
64
|
class AerodromeSlipstreamSellExactlyRequest(BaseModel):
|
|
67
65
|
r"""Request model for selling exactly an amount of tokens."""
|
|
68
66
|
|
|
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
|
-
|
|
74
67
|
token_in: TokenEnum
|
|
75
68
|
r"""A class representing the token.
|
|
76
69
|
|
|
@@ -101,11 +94,3 @@ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
|
|
|
101
94
|
AerodromeSlipstreamSellExactlyRequestAmountOutMinimum
|
|
102
95
|
] = None
|
|
103
96
|
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,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
|
|
|
@@ -44,11 +42,6 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionParams(BaseModel):
|
|
|
44
42
|
First, we call decrease liquidity then collect the tokens owed to the user.
|
|
45
43
|
"""
|
|
46
44
|
|
|
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
|
-
|
|
52
45
|
token_id: int
|
|
53
46
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
54
47
|
|
|
@@ -56,11 +49,3 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionParams(BaseModel):
|
|
|
56
49
|
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal
|
|
57
50
|
)
|
|
58
51
|
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,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
|
|
|
@@ -37,11 +35,6 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
37
35
|
|
|
38
36
|
|
|
39
37
|
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
|
-
|
|
45
38
|
token_id: int
|
|
46
39
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
47
40
|
|
|
@@ -55,11 +48,3 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
|
|
|
55
48
|
|
|
56
49
|
sender: str
|
|
57
50
|
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,9 +4,7 @@ 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
|
-
import
|
|
8
|
-
from pydantic import ConfigDict
|
|
9
|
-
from typing import Any, Dict, Union
|
|
7
|
+
from typing import Union
|
|
10
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
11
9
|
|
|
12
10
|
|
|
@@ -66,11 +64,6 @@ class IncreaseAllowanceParamsTypedDict(TypedDict):
|
|
|
66
64
|
class IncreaseAllowanceParams(BaseModel):
|
|
67
65
|
r"""Parameters model for increasing token allowance for a contract."""
|
|
68
66
|
|
|
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
|
-
|
|
74
67
|
token: IncreaseAllowanceParamsToken
|
|
75
68
|
r"""The symbol or address of the token for which the allowance is increased.."""
|
|
76
69
|
|
|
@@ -79,11 +72,3 @@ class IncreaseAllowanceParams(BaseModel):
|
|
|
79
72
|
|
|
80
73
|
amount: IncreaseAllowanceParamsAmount
|
|
81
74
|
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,9 +5,7 @@ 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
|
-
import
|
|
9
|
-
from pydantic import ConfigDict
|
|
10
|
-
from typing import Any, Dict, Union
|
|
8
|
+
from typing import Union
|
|
11
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
12
10
|
|
|
13
11
|
|
|
@@ -71,11 +69,6 @@ class IncreaseAllowanceRequestTypedDict(TypedDict):
|
|
|
71
69
|
class IncreaseAllowanceRequest(BaseModel):
|
|
72
70
|
r"""Request model for increasing token allowance for a contract."""
|
|
73
71
|
|
|
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
|
-
|
|
79
72
|
token: IncreaseAllowanceRequestToken
|
|
80
73
|
r"""The symbol or address of the token for which the allowance is increased.."""
|
|
81
74
|
|
|
@@ -90,11 +83,3 @@ class IncreaseAllowanceRequest(BaseModel):
|
|
|
90
83
|
|
|
91
84
|
sender: str
|
|
92
85
|
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,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 MorphoBorrowParamsTypedDict(TypedDict):
|
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
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
|
-
|
|
44
38
|
amount: MorphoBorrowParamsAmount
|
|
45
39
|
r"""Amount of the token to borrow from the market."""
|
|
46
40
|
|
|
@@ -53,14 +47,6 @@ class MorphoBorrowParams(BaseModel):
|
|
|
53
47
|
receiver: OptionalNullable[str] = UNSET
|
|
54
48
|
r"""The address of the receiver of the tokens borrowed. Defaults to the transaction sender."""
|
|
55
49
|
|
|
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
|
-
|
|
64
50
|
@model_serializer(mode="wrap")
|
|
65
51
|
def serialize_model(self, handler):
|
|
66
52
|
optional_fields = ["on_behalf_of", "receiver"]
|
|
@@ -89,7 +75,4 @@ class MorphoBorrowParams(BaseModel):
|
|
|
89
75
|
):
|
|
90
76
|
m[k] = val
|
|
91
77
|
|
|
92
|
-
for k, v in serialized.items():
|
|
93
|
-
m[k] = v
|
|
94
|
-
|
|
95
78
|
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 MorphoBorrowRequestTypedDict(TypedDict):
|
|
|
47
46
|
|
|
48
47
|
|
|
49
48
|
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
|
-
|
|
55
49
|
amount: MorphoBorrowRequestAmount
|
|
56
50
|
r"""Amount of the token to borrow from the market."""
|
|
57
51
|
|
|
@@ -69,14 +63,6 @@ class MorphoBorrowRequest(BaseModel):
|
|
|
69
63
|
receiver: OptionalNullable[str] = UNSET
|
|
70
64
|
r"""The address of the receiver of the tokens borrowed. Defaults to the transaction 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 MorphoBorrowRequest(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
|