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
|
@@ -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
|
|
|
@@ -99,11 +98,6 @@ class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
99
98
|
|
|
100
99
|
|
|
101
100
|
class UniswapMintLiquidityProvisionParams(BaseModel):
|
|
102
|
-
model_config = ConfigDict(
|
|
103
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
104
|
-
)
|
|
105
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
106
|
-
|
|
107
101
|
token0: TokenEnum
|
|
108
102
|
r"""A class representing the token.
|
|
109
103
|
|
|
@@ -145,14 +139,6 @@ class UniswapMintLiquidityProvisionParams(BaseModel):
|
|
|
145
139
|
recipient: OptionalNullable[str] = UNSET
|
|
146
140
|
r"""The address that will receive the LP tokens"""
|
|
147
141
|
|
|
148
|
-
@property
|
|
149
|
-
def additional_properties(self):
|
|
150
|
-
return self.__pydantic_extra__
|
|
151
|
-
|
|
152
|
-
@additional_properties.setter
|
|
153
|
-
def additional_properties(self, value):
|
|
154
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
155
|
-
|
|
156
142
|
@model_serializer(mode="wrap")
|
|
157
143
|
def serialize_model(self, handler):
|
|
158
144
|
optional_fields = ["recipient"]
|
|
@@ -181,7 +167,4 @@ class UniswapMintLiquidityProvisionParams(BaseModel):
|
|
|
181
167
|
):
|
|
182
168
|
m[k] = val
|
|
183
169
|
|
|
184
|
-
for k, v in serialized.items():
|
|
185
|
-
m[k] = v
|
|
186
|
-
|
|
187
170
|
return m
|
|
@@ -11,9 +11,8 @@ from compass_api_sdk.types import (
|
|
|
11
11
|
UNSET,
|
|
12
12
|
UNSET_SENTINEL,
|
|
13
13
|
)
|
|
14
|
-
import
|
|
15
|
-
from
|
|
16
|
-
from typing import Any, Dict, Union
|
|
14
|
+
from pydantic import model_serializer
|
|
15
|
+
from typing import Union
|
|
17
16
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
18
17
|
|
|
19
18
|
|
|
@@ -108,11 +107,6 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
108
107
|
class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
109
108
|
r"""Request model for minting a new liquidity position."""
|
|
110
109
|
|
|
111
|
-
model_config = ConfigDict(
|
|
112
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
113
|
-
)
|
|
114
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
115
|
-
|
|
116
110
|
token0: TokenEnum
|
|
117
111
|
r"""A class representing the token.
|
|
118
112
|
|
|
@@ -160,14 +154,6 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
|
160
154
|
recipient: OptionalNullable[str] = UNSET
|
|
161
155
|
r"""The address that will receive the LP tokens"""
|
|
162
156
|
|
|
163
|
-
@property
|
|
164
|
-
def additional_properties(self):
|
|
165
|
-
return self.__pydantic_extra__
|
|
166
|
-
|
|
167
|
-
@additional_properties.setter
|
|
168
|
-
def additional_properties(self, value):
|
|
169
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
170
|
-
|
|
171
157
|
@model_serializer(mode="wrap")
|
|
172
158
|
def serialize_model(self, handler):
|
|
173
159
|
optional_fields = ["recipient"]
|
|
@@ -196,7 +182,4 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
|
196
182
|
):
|
|
197
183
|
m[k] = val
|
|
198
184
|
|
|
199
|
-
for k, v in serialized.items():
|
|
200
|
-
m[k] = v
|
|
201
|
-
|
|
202
185
|
return m
|
|
@@ -4,9 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .feeenum import FeeEnum
|
|
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
|
|
|
@@ -53,11 +51,6 @@ class UniswapSellExactlyParamsTypedDict(TypedDict):
|
|
|
53
51
|
class UniswapSellExactlyParams(BaseModel):
|
|
54
52
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
55
53
|
|
|
56
|
-
model_config = ConfigDict(
|
|
57
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
58
|
-
)
|
|
59
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
60
|
-
|
|
61
54
|
token_in: TokenEnum
|
|
62
55
|
r"""A class representing the token.
|
|
63
56
|
|
|
@@ -86,11 +79,3 @@ class UniswapSellExactlyParams(BaseModel):
|
|
|
86
79
|
|
|
87
80
|
wrap_eth: Optional[bool] = False
|
|
88
81
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
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]
|
|
@@ -5,9 +5,7 @@ from .chain import Chain
|
|
|
5
5
|
from .feeenum import FeeEnum
|
|
6
6
|
from .token_enum import TokenEnum
|
|
7
7
|
from compass_api_sdk.types import BaseModel
|
|
8
|
-
import
|
|
9
|
-
from pydantic import ConfigDict
|
|
10
|
-
from typing import Any, Dict, Optional, Union
|
|
8
|
+
from typing import Optional, Union
|
|
11
9
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
12
10
|
|
|
13
11
|
|
|
@@ -58,11 +56,6 @@ class UniswapSellExactlyRequestTypedDict(TypedDict):
|
|
|
58
56
|
class UniswapSellExactlyRequest(BaseModel):
|
|
59
57
|
r"""Request model for selling exactly an amount of tokens."""
|
|
60
58
|
|
|
61
|
-
model_config = ConfigDict(
|
|
62
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
63
|
-
)
|
|
64
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
65
|
-
|
|
66
59
|
token_in: TokenEnum
|
|
67
60
|
r"""A class representing the token.
|
|
68
61
|
|
|
@@ -97,11 +90,3 @@ class UniswapSellExactlyRequest(BaseModel):
|
|
|
97
90
|
|
|
98
91
|
wrap_eth: Optional[bool] = False
|
|
99
92
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
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
|
|
|
@@ -43,11 +41,6 @@ class UniswapWithdrawLiquidityProvisionParams(BaseModel):
|
|
|
43
41
|
First, we call decrease liquidity then collect the tokens owed to the user.
|
|
44
42
|
"""
|
|
45
43
|
|
|
46
|
-
model_config = ConfigDict(
|
|
47
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
48
|
-
)
|
|
49
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
50
|
-
|
|
51
44
|
token_id: int
|
|
52
45
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
53
46
|
|
|
@@ -55,11 +48,3 @@ class UniswapWithdrawLiquidityProvisionParams(BaseModel):
|
|
|
55
48
|
UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawal
|
|
56
49
|
)
|
|
57
50
|
r"""How much liquidity to take out in percentage."""
|
|
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]
|
|
@@ -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
|
|
|
@@ -38,11 +36,6 @@ class UniswapWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
38
36
|
|
|
39
37
|
|
|
40
38
|
class UniswapWithdrawLiquidityProvisionRequest(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
39
|
token_id: int
|
|
47
40
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
48
41
|
|
|
@@ -56,11 +49,3 @@ class UniswapWithdrawLiquidityProvisionRequest(BaseModel):
|
|
|
56
49
|
|
|
57
50
|
sender: str
|
|
58
51
|
r"""The address of the transaction sender."""
|
|
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]
|
|
@@ -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,18 +26,5 @@ class UnwrapWethParamsTypedDict(TypedDict):
|
|
|
28
26
|
class UnwrapWethParams(BaseModel):
|
|
29
27
|
r"""Parameters model for unwrapping WETH back to native ETH."""
|
|
30
28
|
|
|
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
|
amount: UnwrapWethParamsAmount
|
|
37
30
|
r"""The amount of WETH to unwrap."""
|
|
38
|
-
|
|
39
|
-
@property
|
|
40
|
-
def additional_properties(self):
|
|
41
|
-
return self.__pydantic_extra__
|
|
42
|
-
|
|
43
|
-
@additional_properties.setter
|
|
44
|
-
def additional_properties(self, value):
|
|
45
|
-
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
|
|
|
@@ -33,11 +31,6 @@ class UnwrapWethRequestTypedDict(TypedDict):
|
|
|
33
31
|
class UnwrapWethRequest(BaseModel):
|
|
34
32
|
r"""Request model for unwrapping WETH back to native ETH."""
|
|
35
33
|
|
|
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
|
amount: UnwrapWethRequestAmount
|
|
42
35
|
r"""The amount of WETH to unwrap."""
|
|
43
36
|
|
|
@@ -46,11 +39,3 @@ class UnwrapWethRequest(BaseModel):
|
|
|
46
39
|
|
|
47
40
|
sender: str
|
|
48
41
|
r"""The address of the transaction sender."""
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
def additional_properties(self):
|
|
52
|
-
return self.__pydantic_extra__
|
|
53
|
-
|
|
54
|
-
@additional_properties.setter
|
|
55
|
-
def additional_properties(self, value):
|
|
56
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -81,9 +81,7 @@ from .uniswapwithdrawliquidityprovisionparams import (
|
|
|
81
81
|
from .unwrapwethparams import UnwrapWethParams, UnwrapWethParamsTypedDict
|
|
82
82
|
from .wrapethparams import WrapEthParams, WrapEthParamsTypedDict
|
|
83
83
|
from compass_api_sdk.types import BaseModel
|
|
84
|
-
import
|
|
85
|
-
from pydantic import ConfigDict
|
|
86
|
-
from typing import Any, Dict, Union
|
|
84
|
+
from typing import Union
|
|
87
85
|
from typing_extensions import TypeAliasType, TypedDict
|
|
88
86
|
|
|
89
87
|
|
|
@@ -173,19 +171,6 @@ class UserOperationTypedDict(TypedDict):
|
|
|
173
171
|
|
|
174
172
|
|
|
175
173
|
class UserOperation(BaseModel):
|
|
176
|
-
model_config = ConfigDict(
|
|
177
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
178
|
-
)
|
|
179
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
180
|
-
|
|
181
174
|
action_type: MulticallActionType
|
|
182
175
|
|
|
183
176
|
body: Body
|
|
184
|
-
|
|
185
|
-
@property
|
|
186
|
-
def additional_properties(self):
|
|
187
|
-
return self.__pydantic_extra__
|
|
188
|
-
|
|
189
|
-
@additional_properties.setter
|
|
190
|
-
def additional_properties(self, value):
|
|
191
|
-
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
|
|
|
@@ -28,18 +26,5 @@ class WrapEthParamsTypedDict(TypedDict):
|
|
|
28
26
|
class WrapEthParams(BaseModel):
|
|
29
27
|
r"""Parameters model for wrapping ETH into WETH."""
|
|
30
28
|
|
|
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
|
amount: WrapEthParamsAmount
|
|
37
30
|
r"""The amount of ETH to wrap."""
|
|
38
|
-
|
|
39
|
-
@property
|
|
40
|
-
def additional_properties(self):
|
|
41
|
-
return self.__pydantic_extra__
|
|
42
|
-
|
|
43
|
-
@additional_properties.setter
|
|
44
|
-
def additional_properties(self, value):
|
|
45
|
-
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
|
|
|
@@ -33,11 +31,6 @@ class WrapEthRequestTypedDict(TypedDict):
|
|
|
33
31
|
class WrapEthRequest(BaseModel):
|
|
34
32
|
r"""Request model for wrapping ETH into WETH."""
|
|
35
33
|
|
|
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
|
amount: WrapEthRequestAmount
|
|
42
35
|
r"""The amount of ETH to wrap."""
|
|
43
36
|
|
|
@@ -46,11 +39,3 @@ class WrapEthRequest(BaseModel):
|
|
|
46
39
|
|
|
47
40
|
sender: str
|
|
48
41
|
r"""The address of the transaction sender."""
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
def additional_properties(self):
|
|
52
|
-
return self.__pydantic_extra__
|
|
53
|
-
|
|
54
|
-
@additional_properties.setter
|
|
55
|
-
def additional_properties(self, value):
|
|
56
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|