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
|
@@ -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 PendleSellPtParamsTypedDict(TypedDict):
|
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
class PendleSellPtParams(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 sell."""
|
|
36
29
|
|
|
37
30
|
amount: PendleSellPtParamsAmount
|
|
38
31
|
r"""The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token."""
|
|
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
|
|
|
@@ -33,11 +31,6 @@ class PendleSellPtRequestTypedDict(TypedDict):
|
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
class PendleSellPtRequest(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
|
market_address: str
|
|
42
35
|
r"""The address of the market identifying which Principal Token (PT) you would like to sell."""
|
|
43
36
|
|
|
@@ -49,11 +42,3 @@ class PendleSellPtRequest(BaseModel):
|
|
|
49
42
|
|
|
50
43
|
sender: str
|
|
51
44
|
r"""The address of the transaction sender."""
|
|
52
|
-
|
|
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]
|
|
@@ -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 PendleSellYtParamsTypedDict(TypedDict):
|
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
class PendleSellYtParams(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 sell."""
|
|
36
29
|
|
|
37
30
|
amount: PendleSellYtParamsAmount
|
|
38
31
|
r"""The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token."""
|
|
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
|
|
|
@@ -33,11 +31,6 @@ class PendleSellYtRequestTypedDict(TypedDict):
|
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
class PendleSellYtRequest(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
|
market_address: str
|
|
42
35
|
r"""The address of the market identifying which Yield Token (YT) you would like to sell."""
|
|
43
36
|
|
|
@@ -49,11 +42,3 @@ class PendleSellYtRequest(BaseModel):
|
|
|
49
42
|
|
|
50
43
|
sender: str
|
|
51
44
|
r"""The address of the transaction sender."""
|
|
52
|
-
|
|
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]
|
|
@@ -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
|
|
|
@@ -34,21 +32,8 @@ class SkyBuyParamsTypedDict(TypedDict):
|
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
class SkyBuyParams(BaseModel):
|
|
37
|
-
model_config = ConfigDict(
|
|
38
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
39
|
-
)
|
|
40
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
41
|
-
|
|
42
35
|
token_in: SkyBuyParamsTokenIn
|
|
43
36
|
r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
|
|
44
37
|
|
|
45
38
|
amount: SkyBuyParamsAmount
|
|
46
39
|
r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
|
|
47
|
-
|
|
48
|
-
@property
|
|
49
|
-
def additional_properties(self):
|
|
50
|
-
return self.__pydantic_extra__
|
|
51
|
-
|
|
52
|
-
@additional_properties.setter
|
|
53
|
-
def additional_properties(self, value):
|
|
54
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -5,9 +5,8 @@ from compass_api_sdk.types import BaseModel
|
|
|
5
5
|
from compass_api_sdk.utils import validate_const
|
|
6
6
|
from enum import Enum
|
|
7
7
|
import pydantic
|
|
8
|
-
from pydantic import ConfigDict
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
|
-
from typing import
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
@@ -39,11 +38,6 @@ class SkyBuyRequestTypedDict(TypedDict):
|
|
|
39
38
|
|
|
40
39
|
|
|
41
40
|
class SkyBuyRequest(BaseModel):
|
|
42
|
-
model_config = ConfigDict(
|
|
43
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
44
|
-
)
|
|
45
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
46
|
-
|
|
47
41
|
token_in: SkyBuyRequestTokenIn
|
|
48
42
|
r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
|
|
49
43
|
|
|
@@ -60,11 +54,3 @@ class SkyBuyRequest(BaseModel):
|
|
|
60
54
|
],
|
|
61
55
|
pydantic.Field(alias="chain"),
|
|
62
56
|
] = "ethereum:mainnet"
|
|
63
|
-
|
|
64
|
-
@property
|
|
65
|
-
def additional_properties(self):
|
|
66
|
-
return self.__pydantic_extra__
|
|
67
|
-
|
|
68
|
-
@additional_properties.setter
|
|
69
|
-
def additional_properties(self, value):
|
|
70
|
-
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
|
|
|
@@ -32,25 +31,12 @@ class SkyDepositParamsTypedDict(TypedDict):
|
|
|
32
31
|
|
|
33
32
|
|
|
34
33
|
class SkyDepositParams(BaseModel):
|
|
35
|
-
model_config = ConfigDict(
|
|
36
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
37
|
-
)
|
|
38
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
39
|
-
|
|
40
34
|
amount: SkyDepositParamsAmount
|
|
41
35
|
r"""The amount of USDS you would like to deposit for sUSDS to earn yield."""
|
|
42
36
|
|
|
43
37
|
receiver: OptionalNullable[str] = UNSET
|
|
44
38
|
r"""The address which will receive the sUSDS. Defaults to the sender."""
|
|
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 = ["receiver"]
|
|
@@ -79,7 +65,4 @@ class SkyDepositParams(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
|
|
@@ -10,9 +10,9 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
)
|
|
11
11
|
from compass_api_sdk.utils import validate_const
|
|
12
12
|
import pydantic
|
|
13
|
-
from pydantic import
|
|
13
|
+
from pydantic import model_serializer
|
|
14
14
|
from pydantic.functional_validators import AfterValidator
|
|
15
|
-
from typing import
|
|
15
|
+
from typing import Literal, Optional, Union
|
|
16
16
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
17
|
|
|
18
18
|
|
|
@@ -37,11 +37,6 @@ class SkyDepositRequestTypedDict(TypedDict):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class SkyDepositRequest(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
40
|
amount: SkyDepositRequestAmount
|
|
46
41
|
r"""The amount of USDS you would like to deposit for sUSDS to earn yield."""
|
|
47
42
|
|
|
@@ -59,14 +54,6 @@ class SkyDepositRequest(BaseModel):
|
|
|
59
54
|
pydantic.Field(alias="chain"),
|
|
60
55
|
] = "ethereum:mainnet"
|
|
61
56
|
|
|
62
|
-
@property
|
|
63
|
-
def additional_properties(self):
|
|
64
|
-
return self.__pydantic_extra__
|
|
65
|
-
|
|
66
|
-
@additional_properties.setter
|
|
67
|
-
def additional_properties(self, value):
|
|
68
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
69
|
-
|
|
70
57
|
@model_serializer(mode="wrap")
|
|
71
58
|
def serialize_model(self, handler):
|
|
72
59
|
optional_fields = ["receiver", "chain"]
|
|
@@ -95,7 +82,4 @@ class SkyDepositRequest(BaseModel):
|
|
|
95
82
|
):
|
|
96
83
|
m[k] = val
|
|
97
84
|
|
|
98
|
-
for k, v in serialized.items():
|
|
99
|
-
m[k] = v
|
|
100
|
-
|
|
101
85
|
return m
|
|
@@ -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
|
|
|
@@ -34,21 +32,8 @@ class SkySellParamsTypedDict(TypedDict):
|
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
class SkySellParams(BaseModel):
|
|
37
|
-
model_config = ConfigDict(
|
|
38
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
39
|
-
)
|
|
40
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
41
|
-
|
|
42
35
|
token_out: SkySellParamsTokenOut
|
|
43
36
|
r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
|
|
44
37
|
|
|
45
38
|
amount: SkySellParamsAmount
|
|
46
39
|
r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
|
|
47
|
-
|
|
48
|
-
@property
|
|
49
|
-
def additional_properties(self):
|
|
50
|
-
return self.__pydantic_extra__
|
|
51
|
-
|
|
52
|
-
@additional_properties.setter
|
|
53
|
-
def additional_properties(self, value):
|
|
54
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -5,9 +5,8 @@ from compass_api_sdk.types import BaseModel
|
|
|
5
5
|
from compass_api_sdk.utils import validate_const
|
|
6
6
|
from enum import Enum
|
|
7
7
|
import pydantic
|
|
8
|
-
from pydantic import ConfigDict
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
|
-
from typing import
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
@@ -39,11 +38,6 @@ class SkySellRequestTypedDict(TypedDict):
|
|
|
39
38
|
|
|
40
39
|
|
|
41
40
|
class SkySellRequest(BaseModel):
|
|
42
|
-
model_config = ConfigDict(
|
|
43
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
44
|
-
)
|
|
45
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
46
|
-
|
|
47
41
|
token_out: SkySellRequestTokenOut
|
|
48
42
|
r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
|
|
49
43
|
|
|
@@ -60,11 +54,3 @@ class SkySellRequest(BaseModel):
|
|
|
60
54
|
],
|
|
61
55
|
pydantic.Field(alias="chain"),
|
|
62
56
|
] = "ethereum:mainnet"
|
|
63
|
-
|
|
64
|
-
@property
|
|
65
|
-
def additional_properties(self):
|
|
66
|
-
return self.__pydantic_extra__
|
|
67
|
-
|
|
68
|
-
@additional_properties.setter
|
|
69
|
-
def additional_properties(self, value):
|
|
70
|
-
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
|
|
11
|
+
from pydantic import model_serializer
|
|
12
|
+
from typing import Any
|
|
14
13
|
from typing_extensions import NotRequired, TypedDict
|
|
15
14
|
|
|
16
15
|
|
|
@@ -22,25 +21,12 @@ class SkyWithdrawParamsTypedDict(TypedDict):
|
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
class SkyWithdrawParams(BaseModel):
|
|
25
|
-
model_config = ConfigDict(
|
|
26
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
27
|
-
)
|
|
28
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
29
|
-
|
|
30
24
|
amount: Any
|
|
31
25
|
r"""The amount of USDS you would like to withdraw. If set to 'ALL', your total deposited USDS amount will be withdrawn."""
|
|
32
26
|
|
|
33
27
|
receiver: OptionalNullable[str] = UNSET
|
|
34
28
|
r"""The address which will receive the withdrawn USDS. Defaults to the sender."""
|
|
35
29
|
|
|
36
|
-
@property
|
|
37
|
-
def additional_properties(self):
|
|
38
|
-
return self.__pydantic_extra__
|
|
39
|
-
|
|
40
|
-
@additional_properties.setter
|
|
41
|
-
def additional_properties(self, value):
|
|
42
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
43
|
-
|
|
44
30
|
@model_serializer(mode="wrap")
|
|
45
31
|
def serialize_model(self, handler):
|
|
46
32
|
optional_fields = ["receiver"]
|
|
@@ -69,7 +55,4 @@ class SkyWithdrawParams(BaseModel):
|
|
|
69
55
|
):
|
|
70
56
|
m[k] = val
|
|
71
57
|
|
|
72
|
-
for k, v in serialized.items():
|
|
73
|
-
m[k] = v
|
|
74
|
-
|
|
75
58
|
return m
|
|
@@ -10,9 +10,9 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
)
|
|
11
11
|
from compass_api_sdk.utils import validate_const
|
|
12
12
|
import pydantic
|
|
13
|
-
from pydantic import
|
|
13
|
+
from pydantic import model_serializer
|
|
14
14
|
from pydantic.functional_validators import AfterValidator
|
|
15
|
-
from typing import Any,
|
|
15
|
+
from typing import Any, Literal, Optional
|
|
16
16
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,11 +27,6 @@ class SkyWithdrawRequestTypedDict(TypedDict):
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
class SkyWithdrawRequest(BaseModel):
|
|
30
|
-
model_config = ConfigDict(
|
|
31
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
32
|
-
)
|
|
33
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
34
|
-
|
|
35
30
|
amount: Any
|
|
36
31
|
r"""The amount of USDS you would like to withdraw. If set to 'ALL', your total deposited USDS amount will be withdrawn."""
|
|
37
32
|
|
|
@@ -49,14 +44,6 @@ class SkyWithdrawRequest(BaseModel):
|
|
|
49
44
|
pydantic.Field(alias="chain"),
|
|
50
45
|
] = "ethereum:mainnet"
|
|
51
46
|
|
|
52
|
-
@property
|
|
53
|
-
def additional_properties(self):
|
|
54
|
-
return self.__pydantic_extra__
|
|
55
|
-
|
|
56
|
-
@additional_properties.setter
|
|
57
|
-
def additional_properties(self, value):
|
|
58
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
59
|
-
|
|
60
47
|
@model_serializer(mode="wrap")
|
|
61
48
|
def serialize_model(self, handler):
|
|
62
49
|
optional_fields = ["receiver", "chain"]
|
|
@@ -85,7 +72,4 @@ class SkyWithdrawRequest(BaseModel):
|
|
|
85
72
|
):
|
|
86
73
|
m[k] = val
|
|
87
74
|
|
|
88
|
-
for k, v in serialized.items():
|
|
89
|
-
m[k] = v
|
|
90
|
-
|
|
91
75
|
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
|
|
|
@@ -39,11 +37,6 @@ class TokenTransferErc20ParamsTypedDict(TypedDict):
|
|
|
39
37
|
class TokenTransferErc20Params(BaseModel):
|
|
40
38
|
r"""Parameters model for transferring ERC20 tokens."""
|
|
41
39
|
|
|
42
|
-
model_config = ConfigDict(
|
|
43
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
44
|
-
)
|
|
45
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
46
|
-
|
|
47
40
|
amount: TokenTransferErc20ParamsAmount
|
|
48
41
|
r"""Amount of token to transfer"""
|
|
49
42
|
|
|
@@ -56,11 +49,3 @@ class TokenTransferErc20Params(BaseModel):
|
|
|
56
49
|
|
|
57
50
|
to: str
|
|
58
51
|
r"""The recipient of the tokens."""
|
|
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]
|
|
@@ -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
|
|
|
@@ -52,11 +50,6 @@ class TokenTransferRequestTypedDict(TypedDict):
|
|
|
52
50
|
class TokenTransferRequest(BaseModel):
|
|
53
51
|
r"""Request model for transferring ETH or ERC20 tokens."""
|
|
54
52
|
|
|
55
|
-
model_config = ConfigDict(
|
|
56
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
57
|
-
)
|
|
58
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
59
|
-
|
|
60
53
|
amount: TokenTransferRequestAmount
|
|
61
54
|
r"""Amount of token to transfer"""
|
|
62
55
|
|
|
@@ -71,11 +64,3 @@ class TokenTransferRequest(BaseModel):
|
|
|
71
64
|
|
|
72
65
|
sender: str
|
|
73
66
|
r"""The address of the transaction sender."""
|
|
74
|
-
|
|
75
|
-
@property
|
|
76
|
-
def additional_properties(self):
|
|
77
|
-
return self.__pydantic_extra__
|
|
78
|
-
|
|
79
|
-
@additional_properties.setter
|
|
80
|
-
def additional_properties(self, value):
|
|
81
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
@@ -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
|
|
|
@@ -49,11 +47,6 @@ class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
|
49
47
|
|
|
50
48
|
|
|
51
49
|
class UniswapBuyExactlyParams(BaseModel):
|
|
52
|
-
model_config = ConfigDict(
|
|
53
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
54
|
-
)
|
|
55
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
56
|
-
|
|
57
50
|
token_in: TokenEnum
|
|
58
51
|
r"""A class representing the token.
|
|
59
52
|
|
|
@@ -82,11 +75,3 @@ class UniswapBuyExactlyParams(BaseModel):
|
|
|
82
75
|
|
|
83
76
|
wrap_eth: Optional[bool] = False
|
|
84
77
|
r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
def additional_properties(self):
|
|
88
|
-
return self.__pydantic_extra__
|
|
89
|
-
|
|
90
|
-
@additional_properties.setter
|
|
91
|
-
def additional_properties(self, value):
|
|
92
|
-
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 UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
|
58
56
|
class UniswapBuyExactlyRequest(BaseModel):
|
|
59
57
|
r"""Request model for buying an exact 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 UniswapBuyExactlyRequest(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
|
|
|
@@ -70,11 +68,6 @@ class UniswapIncreaseLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
70
68
|
|
|
71
69
|
|
|
72
70
|
class UniswapIncreaseLiquidityProvisionParams(BaseModel):
|
|
73
|
-
model_config = ConfigDict(
|
|
74
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
75
|
-
)
|
|
76
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
77
|
-
|
|
78
71
|
token_id: int
|
|
79
72
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
80
73
|
|
|
@@ -89,11 +82,3 @@ class UniswapIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
89
82
|
|
|
90
83
|
amount1_min: UniswapIncreaseLiquidityProvisionParamsAmount1Min
|
|
91
84
|
r"""The minimum amount of the second token to deposit"""
|
|
92
|
-
|
|
93
|
-
@property
|
|
94
|
-
def additional_properties(self):
|
|
95
|
-
return self.__pydantic_extra__
|
|
96
|
-
|
|
97
|
-
@additional_properties.setter
|
|
98
|
-
def additional_properties(self, value):
|
|
99
|
-
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
|
|
|
@@ -79,11 +77,6 @@ class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
79
77
|
class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
|
|
80
78
|
r"""Request model for increasing liquidity provision in Uniswap V3."""
|
|
81
79
|
|
|
82
|
-
model_config = ConfigDict(
|
|
83
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
84
|
-
)
|
|
85
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
86
|
-
|
|
87
80
|
token_id: int
|
|
88
81
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
89
82
|
|
|
@@ -104,11 +97,3 @@ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
104
97
|
|
|
105
98
|
sender: str
|
|
106
99
|
r"""The address of the transaction sender."""
|
|
107
|
-
|
|
108
|
-
@property
|
|
109
|
-
def additional_properties(self):
|
|
110
|
-
return self.__pydantic_extra__
|
|
111
|
-
|
|
112
|
-
@additional_properties.setter
|
|
113
|
-
def additional_properties(self, value):
|
|
114
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|