compass_api_sdk 0.8.3__py3-none-any.whl → 0.9.1__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/__init__.py +0 -3
- compass_api_sdk/models/aaveborrowparams.py +15 -20
- compass_api_sdk/models/aaveborrowrequest.py +15 -20
- compass_api_sdk/models/aaverepayparams.py +15 -20
- compass_api_sdk/models/aaverepayrequest.py +15 -20
- compass_api_sdk/models/aavesupplyparams.py +15 -20
- compass_api_sdk/models/aavesupplyrequest.py +15 -20
- compass_api_sdk/models/aavewithdrawparams.py +12 -15
- compass_api_sdk/models/aavewithdrawrequest.py +12 -15
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +12 -15
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +12 -15
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +14 -15
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +14 -15
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +17 -20
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +17 -20
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +13 -16
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -16
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +14 -15
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +14 -15
- compass_api_sdk/models/increaseallowanceparams.py +12 -15
- compass_api_sdk/models/increaseallowancerequest.py +12 -15
- compass_api_sdk/models/morphoborrowparams.py +15 -20
- compass_api_sdk/models/morphoborrowrequest.py +15 -20
- compass_api_sdk/models/morphodepositparams.py +15 -20
- compass_api_sdk/models/morphodepositrequest.py +15 -20
- compass_api_sdk/models/morphorepayparams.py +15 -20
- compass_api_sdk/models/morphorepayrequest.py +15 -20
- compass_api_sdk/models/morphosetvaultallowanceparams.py +12 -15
- compass_api_sdk/models/morphosetvaultallowancerequest.py +12 -15
- compass_api_sdk/models/morphosupplycollateralparams.py +15 -20
- compass_api_sdk/models/morphosupplycollateralrequest.py +15 -20
- compass_api_sdk/models/morphowithdrawcollateralparams.py +15 -20
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +15 -20
- compass_api_sdk/models/morphowithdrawparams.py +15 -20
- compass_api_sdk/models/morphowithdrawrequest.py +15 -20
- compass_api_sdk/models/pendlebuyptparams.py +12 -15
- compass_api_sdk/models/pendlebuyptrequest.py +12 -15
- compass_api_sdk/models/pendlebuyytparams.py +12 -15
- compass_api_sdk/models/pendlebuyytrequest.py +12 -15
- compass_api_sdk/models/pendlesellptparams.py +12 -15
- compass_api_sdk/models/pendlesellptrequest.py +12 -15
- compass_api_sdk/models/pendlesellytparams.py +12 -15
- compass_api_sdk/models/pendlesellytrequest.py +12 -15
- compass_api_sdk/models/skybuyparams.py +11 -15
- compass_api_sdk/models/skybuyrequest.py +9 -15
- compass_api_sdk/models/skydepositparams.py +15 -20
- compass_api_sdk/models/skydepositrequest.py +12 -19
- compass_api_sdk/models/skysellparams.py +11 -15
- compass_api_sdk/models/skysellrequest.py +9 -15
- compass_api_sdk/models/skywithdrawparams.py +15 -20
- compass_api_sdk/models/skywithdrawrequest.py +12 -19
- compass_api_sdk/models/tokentransfererc20params.py +12 -15
- compass_api_sdk/models/tokentransferrequest.py +12 -15
- compass_api_sdk/models/uniswapbuyexactlyparams.py +13 -16
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +13 -16
- compass_api_sdk/models/uniswapincreaseliquidityprovisionparams.py +12 -15
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +12 -15
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +15 -20
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +15 -20
- compass_api_sdk/models/uniswapsellexactlyparams.py +13 -16
- compass_api_sdk/models/uniswapsellexactlyrequest.py +13 -16
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionparams.py +12 -15
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +12 -15
- compass_api_sdk/models/unwrapwethparams.py +12 -15
- compass_api_sdk/models/unwrapwethrequest.py +12 -15
- compass_api_sdk/models/useroperation.py +73 -72
- compass_api_sdk/models/wrapethparams.py +11 -15
- compass_api_sdk/models/wrapethrequest.py +11 -15
- 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.1.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.8.3.dist-info → compass_api_sdk-0.9.1.dist-info}/RECORD +80 -81
- compass_api_sdk/models/multicallactiontype.py +0 -40
- {compass_api_sdk-0.8.3.dist-info → compass_api_sdk-0.9.1.dist-info}/WHEEL +0 -0
|
@@ -11,10 +11,12 @@ from compass_api_sdk.types import (
|
|
|
11
11
|
UNSET,
|
|
12
12
|
UNSET_SENTINEL,
|
|
13
13
|
)
|
|
14
|
+
from compass_api_sdk.utils import validate_const
|
|
14
15
|
import pydantic
|
|
15
|
-
from pydantic import
|
|
16
|
-
from
|
|
17
|
-
from
|
|
16
|
+
from pydantic import model_serializer
|
|
17
|
+
from pydantic.functional_validators import AfterValidator
|
|
18
|
+
from typing import Literal, Optional, Union
|
|
19
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
AaveRepayRequestAmountTypedDict = TypeAliasType(
|
|
@@ -45,16 +47,12 @@ class AaveRepayRequestTypedDict(TypedDict):
|
|
|
45
47
|
r"""The chain to use."""
|
|
46
48
|
sender: str
|
|
47
49
|
r"""The address of the transaction sender."""
|
|
50
|
+
action_type: Literal["AAVE_REPAY"]
|
|
48
51
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
49
52
|
r"""The address on behalf of whom the supply is made"""
|
|
50
53
|
|
|
51
54
|
|
|
52
55
|
class AaveRepayRequest(BaseModel):
|
|
53
|
-
model_config = ConfigDict(
|
|
54
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
55
|
-
)
|
|
56
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
57
|
-
|
|
58
56
|
token: TokenEnum
|
|
59
57
|
r"""A class representing the token.
|
|
60
58
|
|
|
@@ -77,20 +75,20 @@ class AaveRepayRequest(BaseModel):
|
|
|
77
75
|
sender: str
|
|
78
76
|
r"""The address of the transaction sender."""
|
|
79
77
|
|
|
78
|
+
ACTION_TYPE: Annotated[
|
|
79
|
+
Annotated[
|
|
80
|
+
Optional[Literal["AAVE_REPAY"]],
|
|
81
|
+
AfterValidator(validate_const("AAVE_REPAY")),
|
|
82
|
+
],
|
|
83
|
+
pydantic.Field(alias="action_type"),
|
|
84
|
+
] = "AAVE_REPAY"
|
|
85
|
+
|
|
80
86
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
81
87
|
r"""The address on behalf of whom the supply is made"""
|
|
82
88
|
|
|
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]
|
|
90
|
-
|
|
91
89
|
@model_serializer(mode="wrap")
|
|
92
90
|
def serialize_model(self, handler):
|
|
93
|
-
optional_fields = ["on_behalf_of"]
|
|
91
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
94
92
|
nullable_fields = ["on_behalf_of"]
|
|
95
93
|
null_default_fields = []
|
|
96
94
|
|
|
@@ -116,7 +114,4 @@ class AaveRepayRequest(BaseModel):
|
|
|
116
114
|
):
|
|
117
115
|
m[k] = val
|
|
118
116
|
|
|
119
|
-
for k, v in serialized.items():
|
|
120
|
-
m[k] = v
|
|
121
|
-
|
|
122
117
|
return m
|
|
@@ -9,10 +9,12 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET,
|
|
10
10
|
UNSET_SENTINEL,
|
|
11
11
|
)
|
|
12
|
+
from compass_api_sdk.utils import validate_const
|
|
12
13
|
import pydantic
|
|
13
|
-
from pydantic import
|
|
14
|
-
from
|
|
15
|
-
from
|
|
14
|
+
from pydantic import model_serializer
|
|
15
|
+
from pydantic.functional_validators import AfterValidator
|
|
16
|
+
from typing import Literal, Optional, Union
|
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
AaveSupplyParamsAmountTypedDict = TypeAliasType(
|
|
@@ -34,16 +36,12 @@ class AaveSupplyParamsTypedDict(TypedDict):
|
|
|
34
36
|
"""
|
|
35
37
|
amount: AaveSupplyParamsAmountTypedDict
|
|
36
38
|
r"""The amount of the asset to supply"""
|
|
39
|
+
action_type: Literal["AAVE_SUPPLY"]
|
|
37
40
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
38
41
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
39
42
|
|
|
40
43
|
|
|
41
44
|
class AaveSupplyParams(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
45
|
token: TokenEnum
|
|
48
46
|
r"""A class representing the token.
|
|
49
47
|
|
|
@@ -54,20 +52,20 @@ class AaveSupplyParams(BaseModel):
|
|
|
54
52
|
amount: AaveSupplyParamsAmount
|
|
55
53
|
r"""The amount of the asset to supply"""
|
|
56
54
|
|
|
55
|
+
ACTION_TYPE: Annotated[
|
|
56
|
+
Annotated[
|
|
57
|
+
Optional[Literal["AAVE_SUPPLY"]],
|
|
58
|
+
AfterValidator(validate_const("AAVE_SUPPLY")),
|
|
59
|
+
],
|
|
60
|
+
pydantic.Field(alias="action_type"),
|
|
61
|
+
] = "AAVE_SUPPLY"
|
|
62
|
+
|
|
57
63
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
58
64
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
59
65
|
|
|
60
|
-
@property
|
|
61
|
-
def additional_properties(self):
|
|
62
|
-
return self.__pydantic_extra__
|
|
63
|
-
|
|
64
|
-
@additional_properties.setter
|
|
65
|
-
def additional_properties(self, value):
|
|
66
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
67
|
-
|
|
68
66
|
@model_serializer(mode="wrap")
|
|
69
67
|
def serialize_model(self, handler):
|
|
70
|
-
optional_fields = ["on_behalf_of"]
|
|
68
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
71
69
|
nullable_fields = ["on_behalf_of"]
|
|
72
70
|
null_default_fields = []
|
|
73
71
|
|
|
@@ -93,7 +91,4 @@ class AaveSupplyParams(BaseModel):
|
|
|
93
91
|
):
|
|
94
92
|
m[k] = val
|
|
95
93
|
|
|
96
|
-
for k, v in serialized.items():
|
|
97
|
-
m[k] = v
|
|
98
|
-
|
|
99
94
|
return m
|
|
@@ -10,10 +10,12 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
UNSET,
|
|
11
11
|
UNSET_SENTINEL,
|
|
12
12
|
)
|
|
13
|
+
from compass_api_sdk.utils import validate_const
|
|
13
14
|
import pydantic
|
|
14
|
-
from pydantic import
|
|
15
|
-
from
|
|
16
|
-
from
|
|
15
|
+
from pydantic import model_serializer
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal, Optional, Union
|
|
18
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
AaveSupplyRequestAmountTypedDict = TypeAliasType(
|
|
@@ -39,16 +41,12 @@ class AaveSupplyRequestTypedDict(TypedDict):
|
|
|
39
41
|
r"""The chain to use."""
|
|
40
42
|
sender: str
|
|
41
43
|
r"""The address of the transaction sender."""
|
|
44
|
+
action_type: Literal["AAVE_SUPPLY"]
|
|
42
45
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
43
46
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
44
47
|
|
|
45
48
|
|
|
46
49
|
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
50
|
token: TokenEnum
|
|
53
51
|
r"""A class representing the token.
|
|
54
52
|
|
|
@@ -65,20 +63,20 @@ class AaveSupplyRequest(BaseModel):
|
|
|
65
63
|
sender: str
|
|
66
64
|
r"""The address of the transaction sender."""
|
|
67
65
|
|
|
66
|
+
ACTION_TYPE: Annotated[
|
|
67
|
+
Annotated[
|
|
68
|
+
Optional[Literal["AAVE_SUPPLY"]],
|
|
69
|
+
AfterValidator(validate_const("AAVE_SUPPLY")),
|
|
70
|
+
],
|
|
71
|
+
pydantic.Field(alias="action_type"),
|
|
72
|
+
] = "AAVE_SUPPLY"
|
|
73
|
+
|
|
68
74
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
69
75
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
70
76
|
|
|
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
77
|
@model_serializer(mode="wrap")
|
|
80
78
|
def serialize_model(self, handler):
|
|
81
|
-
optional_fields = ["on_behalf_of"]
|
|
79
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
82
80
|
nullable_fields = ["on_behalf_of"]
|
|
83
81
|
null_default_fields = []
|
|
84
82
|
|
|
@@ -104,7 +102,4 @@ class AaveSupplyRequest(BaseModel):
|
|
|
104
102
|
):
|
|
105
103
|
m[k] = val
|
|
106
104
|
|
|
107
|
-
for k, v in serialized.items():
|
|
108
|
-
m[k] = v
|
|
109
|
-
|
|
110
105
|
return m
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
6
7
|
import pydantic
|
|
7
|
-
from pydantic import
|
|
8
|
-
from typing import
|
|
9
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
AaveWithdrawParamsAmountTypedDict = TypeAliasType(
|
|
@@ -30,14 +31,10 @@ class AaveWithdrawParamsTypedDict(TypedDict):
|
|
|
30
31
|
r"""The amount of the asset to withdraw"""
|
|
31
32
|
recipient: str
|
|
32
33
|
r"""The address of the recipient of the withdrawn funds."""
|
|
34
|
+
action_type: Literal["AAVE_WITHDRAW"]
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
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
38
|
token: TokenEnum
|
|
42
39
|
r"""A class representing the token.
|
|
43
40
|
|
|
@@ -51,10 +48,10 @@ class AaveWithdrawParams(BaseModel):
|
|
|
51
48
|
recipient: str
|
|
52
49
|
r"""The address of the recipient of the withdrawn funds."""
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
ACTION_TYPE: Annotated[
|
|
52
|
+
Annotated[
|
|
53
|
+
Optional[Literal["AAVE_WITHDRAW"]],
|
|
54
|
+
AfterValidator(validate_const("AAVE_WITHDRAW")),
|
|
55
|
+
],
|
|
56
|
+
pydantic.Field(alias="action_type"),
|
|
57
|
+
] = "AAVE_WITHDRAW"
|
|
@@ -4,10 +4,11 @@ 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
|
+
from compass_api_sdk.utils import validate_const
|
|
7
8
|
import pydantic
|
|
8
|
-
from pydantic import
|
|
9
|
-
from typing import
|
|
10
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
|
+
from typing import Literal, Optional, Union
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
AaveWithdrawRequestAmountTypedDict = TypeAliasType(
|
|
@@ -37,14 +38,10 @@ class AaveWithdrawRequestTypedDict(TypedDict):
|
|
|
37
38
|
r"""The chain to use."""
|
|
38
39
|
sender: str
|
|
39
40
|
r"""The address of the transaction sender."""
|
|
41
|
+
action_type: Literal["AAVE_WITHDRAW"]
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
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
45
|
token: TokenEnum
|
|
49
46
|
r"""A class representing the token.
|
|
50
47
|
|
|
@@ -64,10 +61,10 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
64
61
|
sender: str
|
|
65
62
|
r"""The address of the transaction sender."""
|
|
66
63
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
ACTION_TYPE: Annotated[
|
|
65
|
+
Annotated[
|
|
66
|
+
Optional[Literal["AAVE_WITHDRAW"]],
|
|
67
|
+
AfterValidator(validate_const("AAVE_WITHDRAW")),
|
|
68
|
+
],
|
|
69
|
+
pydantic.Field(alias="action_type"),
|
|
70
|
+
] = "AAVE_WITHDRAW"
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
6
7
|
import pydantic
|
|
7
|
-
from pydantic import
|
|
8
|
-
from typing import
|
|
9
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
|
|
@@ -54,16 +55,12 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
|
54
55
|
r"""The amount of the token to swap to"""
|
|
55
56
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict
|
|
56
57
|
r"""The maximum amount of the token to swap from"""
|
|
58
|
+
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
57
59
|
|
|
58
60
|
|
|
59
61
|
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
60
62
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
61
63
|
|
|
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
64
|
token_in: TokenEnum
|
|
68
65
|
r"""A class representing the token.
|
|
69
66
|
|
|
@@ -87,10 +84,10 @@ class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
|
87
84
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximum
|
|
88
85
|
r"""The maximum amount of the token to swap from"""
|
|
89
86
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
ACTION_TYPE: Annotated[
|
|
88
|
+
Annotated[
|
|
89
|
+
Optional[Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]],
|
|
90
|
+
AfterValidator(validate_const("AERODROME_SLIPSTREAM_BUY_EXACTLY")),
|
|
91
|
+
],
|
|
92
|
+
pydantic.Field(alias="action_type"),
|
|
93
|
+
] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
@@ -4,10 +4,11 @@ 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
|
+
from compass_api_sdk.utils import validate_const
|
|
7
8
|
import pydantic
|
|
8
|
-
from pydantic import
|
|
9
|
-
from typing import
|
|
10
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
|
+
from typing import Literal, Optional, Union
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
@@ -59,16 +60,12 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
|
59
60
|
r"""The chain to use."""
|
|
60
61
|
sender: str
|
|
61
62
|
r"""The address of the transaction sender."""
|
|
63
|
+
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
62
64
|
|
|
63
65
|
|
|
64
66
|
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
65
67
|
r"""Request model for buying exactly an amount of tokens."""
|
|
66
68
|
|
|
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
69
|
token_in: TokenEnum
|
|
73
70
|
r"""A class representing the token.
|
|
74
71
|
|
|
@@ -98,10 +95,10 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
98
95
|
sender: str
|
|
99
96
|
r"""The address of the transaction sender."""
|
|
100
97
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
ACTION_TYPE: Annotated[
|
|
99
|
+
Annotated[
|
|
100
|
+
Optional[Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]],
|
|
101
|
+
AfterValidator(validate_const("AERODROME_SLIPSTREAM_BUY_EXACTLY")),
|
|
102
|
+
],
|
|
103
|
+
pydantic.Field(alias="action_type"),
|
|
104
|
+
] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from compass_api_sdk.utils import validate_const
|
|
5
6
|
import pydantic
|
|
6
|
-
from pydantic import
|
|
7
|
-
from typing import
|
|
8
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
7
|
+
from pydantic.functional_validators import AfterValidator
|
|
8
|
+
from typing import Literal, Optional, Union
|
|
9
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict = (
|
|
@@ -87,6 +88,7 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
87
88
|
r"""The minimum amount of the first token to deposit"""
|
|
88
89
|
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1MinTypedDict
|
|
89
90
|
r"""The minimum amount of the second token to deposit"""
|
|
91
|
+
action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
|
|
90
92
|
|
|
91
93
|
|
|
92
94
|
class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
@@ -96,11 +98,6 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
96
98
|
liquidity of an existing position.
|
|
97
99
|
"""
|
|
98
100
|
|
|
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
101
|
token_id: int
|
|
105
102
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
106
103
|
|
|
@@ -116,10 +113,12 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
116
113
|
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min
|
|
117
114
|
r"""The minimum amount of the second token to deposit"""
|
|
118
115
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
116
|
+
ACTION_TYPE: Annotated[
|
|
117
|
+
Annotated[
|
|
118
|
+
Optional[Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]],
|
|
119
|
+
AfterValidator(
|
|
120
|
+
validate_const("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
121
|
+
),
|
|
122
|
+
],
|
|
123
|
+
pydantic.Field(alias="action_type"),
|
|
124
|
+
] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
6
7
|
import pydantic
|
|
7
|
-
from pydantic import
|
|
8
|
-
from typing import
|
|
9
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
|
|
@@ -86,14 +87,10 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
86
87
|
r"""The chain to use."""
|
|
87
88
|
sender: str
|
|
88
89
|
r"""The address of the transaction sender."""
|
|
90
|
+
action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
|
|
89
91
|
|
|
90
92
|
|
|
91
93
|
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
94
|
token_id: int
|
|
98
95
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
99
96
|
|
|
@@ -115,10 +112,12 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
115
112
|
sender: str
|
|
116
113
|
r"""The address of the transaction sender."""
|
|
117
114
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
115
|
+
ACTION_TYPE: Annotated[
|
|
116
|
+
Annotated[
|
|
117
|
+
Optional[Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]],
|
|
118
|
+
AfterValidator(
|
|
119
|
+
validate_const("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
120
|
+
),
|
|
121
|
+
],
|
|
122
|
+
pydantic.Field(alias="action_type"),
|
|
123
|
+
] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
|
|
@@ -9,10 +9,12 @@ from compass_api_sdk.types import (
|
|
|
9
9
|
UNSET,
|
|
10
10
|
UNSET_SENTINEL,
|
|
11
11
|
)
|
|
12
|
+
from compass_api_sdk.utils import validate_const
|
|
12
13
|
import pydantic
|
|
13
|
-
from pydantic import
|
|
14
|
-
from
|
|
15
|
-
from
|
|
14
|
+
from pydantic import model_serializer
|
|
15
|
+
from pydantic.functional_validators import AfterValidator
|
|
16
|
+
from typing import Literal, Optional, Union
|
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
AerodromeSlipstreamMintLiquidityProvisionParamsAmount0DesiredTypedDict = TypeAliasType(
|
|
@@ -100,6 +102,7 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
100
102
|
r"""The minimum amount of the first token to deposit"""
|
|
101
103
|
amount1_min: AerodromeSlipstreamMintLiquidityProvisionParamsAmount1MinTypedDict
|
|
102
104
|
r"""The minimum amount of the second token to deposit"""
|
|
105
|
+
action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
|
|
103
106
|
recipient: NotRequired[Nullable[str]]
|
|
104
107
|
r"""The address that will receive the LP tokens"""
|
|
105
108
|
|
|
@@ -107,11 +110,6 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
107
110
|
class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
108
111
|
r"""Parameters model for minting a new liquidity position."""
|
|
109
112
|
|
|
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
113
|
token0: TokenEnum
|
|
116
114
|
r"""A class representing the token.
|
|
117
115
|
|
|
@@ -147,20 +145,22 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
147
145
|
amount1_min: AerodromeSlipstreamMintLiquidityProvisionParamsAmount1Min
|
|
148
146
|
r"""The minimum amount of the second token to deposit"""
|
|
149
147
|
|
|
148
|
+
ACTION_TYPE: Annotated[
|
|
149
|
+
Annotated[
|
|
150
|
+
Optional[Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]],
|
|
151
|
+
AfterValidator(
|
|
152
|
+
validate_const("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION")
|
|
153
|
+
),
|
|
154
|
+
],
|
|
155
|
+
pydantic.Field(alias="action_type"),
|
|
156
|
+
] = "AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"
|
|
157
|
+
|
|
150
158
|
recipient: OptionalNullable[str] = UNSET
|
|
151
159
|
r"""The address that will receive the LP tokens"""
|
|
152
160
|
|
|
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
161
|
@model_serializer(mode="wrap")
|
|
162
162
|
def serialize_model(self, handler):
|
|
163
|
-
optional_fields = ["recipient"]
|
|
163
|
+
optional_fields = ["action_type", "recipient"]
|
|
164
164
|
nullable_fields = ["recipient"]
|
|
165
165
|
null_default_fields = []
|
|
166
166
|
|
|
@@ -186,7 +186,4 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
186
186
|
):
|
|
187
187
|
m[k] = val
|
|
188
188
|
|
|
189
|
-
for k, v in serialized.items():
|
|
190
|
-
m[k] = v
|
|
191
|
-
|
|
192
189
|
return m
|
|
@@ -10,10 +10,12 @@ from compass_api_sdk.types import (
|
|
|
10
10
|
UNSET,
|
|
11
11
|
UNSET_SENTINEL,
|
|
12
12
|
)
|
|
13
|
+
from compass_api_sdk.utils import validate_const
|
|
13
14
|
import pydantic
|
|
14
|
-
from pydantic import
|
|
15
|
-
from
|
|
16
|
-
from
|
|
15
|
+
from pydantic import model_serializer
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal, Optional, Union
|
|
18
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
AerodromeSlipstreamMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
|
|
@@ -105,6 +107,7 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
105
107
|
r"""The chain to use."""
|
|
106
108
|
sender: str
|
|
107
109
|
r"""The address of the transaction sender."""
|
|
110
|
+
action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
|
|
108
111
|
recipient: NotRequired[Nullable[str]]
|
|
109
112
|
r"""The address that will receive the LP tokens"""
|
|
110
113
|
|
|
@@ -112,11 +115,6 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
112
115
|
class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
113
116
|
r"""Request model for minting a new liquidity position."""
|
|
114
117
|
|
|
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
118
|
token0: TokenEnum
|
|
121
119
|
r"""A class representing the token.
|
|
122
120
|
|
|
@@ -158,20 +156,22 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
158
156
|
sender: str
|
|
159
157
|
r"""The address of the transaction sender."""
|
|
160
158
|
|
|
159
|
+
ACTION_TYPE: Annotated[
|
|
160
|
+
Annotated[
|
|
161
|
+
Optional[Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]],
|
|
162
|
+
AfterValidator(
|
|
163
|
+
validate_const("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION")
|
|
164
|
+
),
|
|
165
|
+
],
|
|
166
|
+
pydantic.Field(alias="action_type"),
|
|
167
|
+
] = "AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"
|
|
168
|
+
|
|
161
169
|
recipient: OptionalNullable[str] = UNSET
|
|
162
170
|
r"""The address that will receive the LP tokens"""
|
|
163
171
|
|
|
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
172
|
@model_serializer(mode="wrap")
|
|
173
173
|
def serialize_model(self, handler):
|
|
174
|
-
optional_fields = ["recipient"]
|
|
174
|
+
optional_fields = ["action_type", "recipient"]
|
|
175
175
|
nullable_fields = ["recipient"]
|
|
176
176
|
null_default_fields = []
|
|
177
177
|
|
|
@@ -197,7 +197,4 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
197
197
|
):
|
|
198
198
|
m[k] = val
|
|
199
199
|
|
|
200
|
-
for k, v in serialized.items():
|
|
201
|
-
m[k] = v
|
|
202
|
-
|
|
203
200
|
return m
|