compass_api_sdk 0.9.0__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/models/__init__.py +0 -3
- compass_api_sdk/models/aaveborrowparams.py +15 -3
- compass_api_sdk/models/aaveborrowrequest.py +15 -3
- compass_api_sdk/models/aaverepayparams.py +15 -3
- compass_api_sdk/models/aaverepayrequest.py +15 -3
- compass_api_sdk/models/aavesupplyparams.py +15 -3
- compass_api_sdk/models/aavesupplyrequest.py +15 -3
- compass_api_sdk/models/aavewithdrawparams.py +14 -2
- compass_api_sdk/models/aavewithdrawrequest.py +14 -2
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +14 -2
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -2
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +16 -2
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +16 -2
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +17 -3
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +17 -3
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +14 -2
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +14 -2
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +16 -2
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +16 -2
- compass_api_sdk/models/increaseallowanceparams.py +14 -2
- compass_api_sdk/models/increaseallowancerequest.py +14 -2
- compass_api_sdk/models/morphoborrowparams.py +15 -3
- compass_api_sdk/models/morphoborrowrequest.py +15 -3
- compass_api_sdk/models/morphodepositparams.py +15 -3
- compass_api_sdk/models/morphodepositrequest.py +15 -3
- compass_api_sdk/models/morphorepayparams.py +15 -3
- compass_api_sdk/models/morphorepayrequest.py +15 -3
- compass_api_sdk/models/morphosetvaultallowanceparams.py +14 -2
- compass_api_sdk/models/morphosetvaultallowancerequest.py +14 -2
- compass_api_sdk/models/morphosupplycollateralparams.py +15 -3
- compass_api_sdk/models/morphosupplycollateralrequest.py +15 -3
- compass_api_sdk/models/morphowithdrawcollateralparams.py +15 -3
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +15 -3
- compass_api_sdk/models/morphowithdrawparams.py +15 -3
- compass_api_sdk/models/morphowithdrawrequest.py +15 -3
- compass_api_sdk/models/pendlebuyptparams.py +14 -2
- compass_api_sdk/models/pendlebuyptrequest.py +14 -2
- compass_api_sdk/models/pendlebuyytparams.py +14 -2
- compass_api_sdk/models/pendlebuyytrequest.py +14 -2
- compass_api_sdk/models/pendlesellptparams.py +14 -2
- compass_api_sdk/models/pendlesellptrequest.py +14 -2
- compass_api_sdk/models/pendlesellytparams.py +14 -2
- compass_api_sdk/models/pendlesellytrequest.py +14 -2
- compass_api_sdk/models/skybuyparams.py +13 -2
- compass_api_sdk/models/skybuyrequest.py +8 -0
- compass_api_sdk/models/skydepositparams.py +15 -3
- compass_api_sdk/models/skydepositrequest.py +10 -1
- compass_api_sdk/models/skysellparams.py +13 -2
- compass_api_sdk/models/skysellrequest.py +8 -0
- compass_api_sdk/models/skywithdrawparams.py +15 -3
- compass_api_sdk/models/skywithdrawrequest.py +10 -1
- compass_api_sdk/models/tokentransfererc20params.py +14 -2
- compass_api_sdk/models/tokentransferrequest.py +14 -2
- compass_api_sdk/models/uniswapbuyexactlyparams.py +14 -2
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -2
- compass_api_sdk/models/uniswapincreaseliquidityprovisionparams.py +14 -2
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +14 -2
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +15 -3
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +15 -3
- compass_api_sdk/models/uniswapsellexactlyparams.py +14 -2
- compass_api_sdk/models/uniswapsellexactlyrequest.py +14 -2
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionparams.py +14 -2
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +14 -2
- compass_api_sdk/models/unwrapwethparams.py +14 -2
- compass_api_sdk/models/unwrapwethrequest.py +14 -2
- compass_api_sdk/models/useroperation.py +72 -56
- compass_api_sdk/models/wrapethparams.py +13 -2
- compass_api_sdk/models/wrapethrequest.py +13 -2
- {compass_api_sdk-0.9.0.dist-info → compass_api_sdk-0.9.1.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.9.0.dist-info → compass_api_sdk-0.9.1.dist-info}/RECORD +72 -73
- compass_api_sdk/models/multicallactiontype.py +0 -40
- {compass_api_sdk-0.9.0.dist-info → compass_api_sdk-0.9.1.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.9.
|
|
6
|
+
__version__: str = "0.9.1"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
8
|
__gen_version__: str = "2.616.1"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.9.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.9.1 2.616.1 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -531,7 +531,6 @@ if TYPE_CHECKING:
|
|
|
531
531
|
MorphoWithdrawRequestTypedDict,
|
|
532
532
|
)
|
|
533
533
|
from .movement10percent import Movement10Percent, Movement10PercentTypedDict
|
|
534
|
-
from .multicallactiontype import MulticallActionType
|
|
535
534
|
from .multicallauthorizationrequest import (
|
|
536
535
|
MulticallAuthorizationRequest,
|
|
537
536
|
MulticallAuthorizationRequestTypedDict,
|
|
@@ -1311,7 +1310,6 @@ __all__ = [
|
|
|
1311
1310
|
"MorphoWithdrawRequestTypedDict",
|
|
1312
1311
|
"Movement10Percent",
|
|
1313
1312
|
"Movement10PercentTypedDict",
|
|
1314
|
-
"MulticallActionType",
|
|
1315
1313
|
"MulticallAuthorizationRequest",
|
|
1316
1314
|
"MulticallAuthorizationRequestTypedDict",
|
|
1317
1315
|
"MulticallAuthorizationResponse",
|
|
@@ -1986,7 +1984,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
1986
1984
|
"MorphoWithdrawRequestTypedDict": ".morphowithdrawrequest",
|
|
1987
1985
|
"Movement10Percent": ".movement10percent",
|
|
1988
1986
|
"Movement10PercentTypedDict": ".movement10percent",
|
|
1989
|
-
"MulticallActionType": ".multicallactiontype",
|
|
1990
1987
|
"MulticallAuthorizationRequest": ".multicallauthorizationrequest",
|
|
1991
1988
|
"MulticallAuthorizationRequestTypedDict": ".multicallauthorizationrequest",
|
|
1992
1989
|
"MulticallAuthorizationResponse": ".multicallauthorizationresponse",
|
|
@@ -10,9 +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
|
|
14
|
+
import pydantic
|
|
13
15
|
from pydantic import model_serializer
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal, Optional, Union
|
|
18
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
AaveBorrowParamsAmountTypedDict = TypeAliasType(
|
|
@@ -39,6 +42,7 @@ class AaveBorrowParamsTypedDict(TypedDict):
|
|
|
39
42
|
|
|
40
43
|
A stable (but typically higher rate), or a variable rate.
|
|
41
44
|
"""
|
|
45
|
+
action_type: Literal["AAVE_BORROW"]
|
|
42
46
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
43
47
|
r"""The address on behalf of whom the supply is made"""
|
|
44
48
|
|
|
@@ -60,12 +64,20 @@ class AaveBorrowParams(BaseModel):
|
|
|
60
64
|
A stable (but typically higher rate), or a variable rate.
|
|
61
65
|
"""
|
|
62
66
|
|
|
67
|
+
ACTION_TYPE: Annotated[
|
|
68
|
+
Annotated[
|
|
69
|
+
Optional[Literal["AAVE_BORROW"]],
|
|
70
|
+
AfterValidator(validate_const("AAVE_BORROW")),
|
|
71
|
+
],
|
|
72
|
+
pydantic.Field(alias="action_type"),
|
|
73
|
+
] = "AAVE_BORROW"
|
|
74
|
+
|
|
63
75
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
64
76
|
r"""The address on behalf of whom the supply is made"""
|
|
65
77
|
|
|
66
78
|
@model_serializer(mode="wrap")
|
|
67
79
|
def serialize_model(self, handler):
|
|
68
|
-
optional_fields = ["on_behalf_of"]
|
|
80
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
69
81
|
nullable_fields = ["on_behalf_of"]
|
|
70
82
|
null_default_fields = []
|
|
71
83
|
|
|
@@ -11,9 +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
|
|
15
|
+
import pydantic
|
|
14
16
|
from pydantic import model_serializer
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
+
from pydantic.functional_validators import AfterValidator
|
|
18
|
+
from typing import Literal, Optional, Union
|
|
19
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
20
|
|
|
18
21
|
|
|
19
22
|
AaveBorrowRequestAmountTypedDict = TypeAliasType(
|
|
@@ -44,6 +47,7 @@ class AaveBorrowRequestTypedDict(TypedDict):
|
|
|
44
47
|
r"""The chain to use."""
|
|
45
48
|
sender: str
|
|
46
49
|
r"""The address of the transaction sender."""
|
|
50
|
+
action_type: Literal["AAVE_BORROW"]
|
|
47
51
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
48
52
|
r"""The address on behalf of whom the supply is made"""
|
|
49
53
|
|
|
@@ -71,12 +75,20 @@ class AaveBorrowRequest(BaseModel):
|
|
|
71
75
|
sender: str
|
|
72
76
|
r"""The address of the transaction sender."""
|
|
73
77
|
|
|
78
|
+
ACTION_TYPE: Annotated[
|
|
79
|
+
Annotated[
|
|
80
|
+
Optional[Literal["AAVE_BORROW"]],
|
|
81
|
+
AfterValidator(validate_const("AAVE_BORROW")),
|
|
82
|
+
],
|
|
83
|
+
pydantic.Field(alias="action_type"),
|
|
84
|
+
] = "AAVE_BORROW"
|
|
85
|
+
|
|
74
86
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
75
87
|
r"""The address on behalf of whom the supply is made"""
|
|
76
88
|
|
|
77
89
|
@model_serializer(mode="wrap")
|
|
78
90
|
def serialize_model(self, handler):
|
|
79
|
-
optional_fields = ["on_behalf_of"]
|
|
91
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
80
92
|
nullable_fields = ["on_behalf_of"]
|
|
81
93
|
null_default_fields = []
|
|
82
94
|
|
|
@@ -10,9 +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
|
|
14
|
+
import pydantic
|
|
13
15
|
from pydantic import model_serializer
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal, Optional, Union
|
|
18
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
AaveRepayParamsAmountTypedDict = TypeAliasType(
|
|
@@ -39,6 +42,7 @@ class AaveRepayParamsTypedDict(TypedDict):
|
|
|
39
42
|
|
|
40
43
|
A stable (but typically higher rate), or a variable rate.
|
|
41
44
|
"""
|
|
45
|
+
action_type: Literal["AAVE_REPAY"]
|
|
42
46
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
43
47
|
r"""The address on behalf of whom the supply is made"""
|
|
44
48
|
|
|
@@ -60,12 +64,20 @@ class AaveRepayParams(BaseModel):
|
|
|
60
64
|
A stable (but typically higher rate), or a variable rate.
|
|
61
65
|
"""
|
|
62
66
|
|
|
67
|
+
ACTION_TYPE: Annotated[
|
|
68
|
+
Annotated[
|
|
69
|
+
Optional[Literal["AAVE_REPAY"]],
|
|
70
|
+
AfterValidator(validate_const("AAVE_REPAY")),
|
|
71
|
+
],
|
|
72
|
+
pydantic.Field(alias="action_type"),
|
|
73
|
+
] = "AAVE_REPAY"
|
|
74
|
+
|
|
63
75
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
64
76
|
r"""The address on behalf of whom the supply is made"""
|
|
65
77
|
|
|
66
78
|
@model_serializer(mode="wrap")
|
|
67
79
|
def serialize_model(self, handler):
|
|
68
|
-
optional_fields = ["on_behalf_of"]
|
|
80
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
69
81
|
nullable_fields = ["on_behalf_of"]
|
|
70
82
|
null_default_fields = []
|
|
71
83
|
|
|
@@ -11,9 +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
|
|
15
|
+
import pydantic
|
|
14
16
|
from pydantic import model_serializer
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
+
from pydantic.functional_validators import AfterValidator
|
|
18
|
+
from typing import Literal, Optional, Union
|
|
19
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
20
|
|
|
18
21
|
|
|
19
22
|
AaveRepayRequestAmountTypedDict = TypeAliasType(
|
|
@@ -44,6 +47,7 @@ class AaveRepayRequestTypedDict(TypedDict):
|
|
|
44
47
|
r"""The chain to use."""
|
|
45
48
|
sender: str
|
|
46
49
|
r"""The address of the transaction sender."""
|
|
50
|
+
action_type: Literal["AAVE_REPAY"]
|
|
47
51
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
48
52
|
r"""The address on behalf of whom the supply is made"""
|
|
49
53
|
|
|
@@ -71,12 +75,20 @@ class AaveRepayRequest(BaseModel):
|
|
|
71
75
|
sender: str
|
|
72
76
|
r"""The address of the transaction sender."""
|
|
73
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
|
+
|
|
74
86
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
75
87
|
r"""The address on behalf of whom the supply is made"""
|
|
76
88
|
|
|
77
89
|
@model_serializer(mode="wrap")
|
|
78
90
|
def serialize_model(self, handler):
|
|
79
|
-
optional_fields = ["on_behalf_of"]
|
|
91
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
80
92
|
nullable_fields = ["on_behalf_of"]
|
|
81
93
|
null_default_fields = []
|
|
82
94
|
|
|
@@ -9,9 +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
|
|
13
|
+
import pydantic
|
|
12
14
|
from pydantic import model_serializer
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
+
from pydantic.functional_validators import AfterValidator
|
|
16
|
+
from typing import Literal, Optional, Union
|
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
AaveSupplyParamsAmountTypedDict = TypeAliasType(
|
|
@@ -33,6 +36,7 @@ class AaveSupplyParamsTypedDict(TypedDict):
|
|
|
33
36
|
"""
|
|
34
37
|
amount: AaveSupplyParamsAmountTypedDict
|
|
35
38
|
r"""The amount of the asset to supply"""
|
|
39
|
+
action_type: Literal["AAVE_SUPPLY"]
|
|
36
40
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
37
41
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
38
42
|
|
|
@@ -48,12 +52,20 @@ class AaveSupplyParams(BaseModel):
|
|
|
48
52
|
amount: AaveSupplyParamsAmount
|
|
49
53
|
r"""The amount of the asset to supply"""
|
|
50
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
|
+
|
|
51
63
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
52
64
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
53
65
|
|
|
54
66
|
@model_serializer(mode="wrap")
|
|
55
67
|
def serialize_model(self, handler):
|
|
56
|
-
optional_fields = ["on_behalf_of"]
|
|
68
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
57
69
|
nullable_fields = ["on_behalf_of"]
|
|
58
70
|
null_default_fields = []
|
|
59
71
|
|
|
@@ -10,9 +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
|
|
14
|
+
import pydantic
|
|
13
15
|
from pydantic import model_serializer
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal, Optional, Union
|
|
18
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
AaveSupplyRequestAmountTypedDict = TypeAliasType(
|
|
@@ -38,6 +41,7 @@ class AaveSupplyRequestTypedDict(TypedDict):
|
|
|
38
41
|
r"""The chain to use."""
|
|
39
42
|
sender: str
|
|
40
43
|
r"""The address of the transaction sender."""
|
|
44
|
+
action_type: Literal["AAVE_SUPPLY"]
|
|
41
45
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
42
46
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
43
47
|
|
|
@@ -59,12 +63,20 @@ class AaveSupplyRequest(BaseModel):
|
|
|
59
63
|
sender: str
|
|
60
64
|
r"""The address of the transaction sender."""
|
|
61
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
|
+
|
|
62
74
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
63
75
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
64
76
|
|
|
65
77
|
@model_serializer(mode="wrap")
|
|
66
78
|
def serialize_model(self, handler):
|
|
67
|
-
optional_fields = ["on_behalf_of"]
|
|
79
|
+
optional_fields = ["action_type", "on_behalf_of"]
|
|
68
80
|
nullable_fields = ["on_behalf_of"]
|
|
69
81
|
null_default_fields = []
|
|
70
82
|
|
|
@@ -3,8 +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
|
|
7
|
-
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
AaveWithdrawParamsAmountTypedDict = TypeAliasType(
|
|
@@ -28,6 +31,7 @@ class AaveWithdrawParamsTypedDict(TypedDict):
|
|
|
28
31
|
r"""The amount of the asset to withdraw"""
|
|
29
32
|
recipient: str
|
|
30
33
|
r"""The address of the recipient of the withdrawn funds."""
|
|
34
|
+
action_type: Literal["AAVE_WITHDRAW"]
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
class AaveWithdrawParams(BaseModel):
|
|
@@ -43,3 +47,11 @@ class AaveWithdrawParams(BaseModel):
|
|
|
43
47
|
|
|
44
48
|
recipient: str
|
|
45
49
|
r"""The address of the recipient of the withdrawn funds."""
|
|
50
|
+
|
|
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,8 +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
|
|
8
|
-
|
|
7
|
+
from compass_api_sdk.utils import validate_const
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
|
+
from typing import Literal, Optional, Union
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
AaveWithdrawRequestAmountTypedDict = TypeAliasType(
|
|
@@ -35,6 +38,7 @@ class AaveWithdrawRequestTypedDict(TypedDict):
|
|
|
35
38
|
r"""The chain to use."""
|
|
36
39
|
sender: str
|
|
37
40
|
r"""The address of the transaction sender."""
|
|
41
|
+
action_type: Literal["AAVE_WITHDRAW"]
|
|
38
42
|
|
|
39
43
|
|
|
40
44
|
class AaveWithdrawRequest(BaseModel):
|
|
@@ -56,3 +60,11 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
56
60
|
|
|
57
61
|
sender: str
|
|
58
62
|
r"""The address of the transaction sender."""
|
|
63
|
+
|
|
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,8 +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
|
|
7
|
-
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
|
|
@@ -52,6 +55,7 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
|
52
55
|
r"""The amount of the token to swap to"""
|
|
53
56
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict
|
|
54
57
|
r"""The maximum amount of the token to swap from"""
|
|
58
|
+
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
55
59
|
|
|
56
60
|
|
|
57
61
|
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
@@ -79,3 +83,11 @@ class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
|
79
83
|
|
|
80
84
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximum
|
|
81
85
|
r"""The maximum amount of the token to swap from"""
|
|
86
|
+
|
|
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,8 +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
|
|
8
|
-
|
|
7
|
+
from compass_api_sdk.utils import validate_const
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
|
+
from typing import Literal, Optional, Union
|
|
11
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
@@ -57,6 +60,7 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
|
57
60
|
r"""The chain to use."""
|
|
58
61
|
sender: str
|
|
59
62
|
r"""The address of the transaction sender."""
|
|
63
|
+
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
@@ -90,3 +94,11 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
90
94
|
|
|
91
95
|
sender: str
|
|
92
96
|
r"""The address of the transaction sender."""
|
|
97
|
+
|
|
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,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from compass_api_sdk.types import BaseModel
|
|
5
|
-
from
|
|
6
|
-
|
|
5
|
+
from compass_api_sdk.utils import validate_const
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic.functional_validators import AfterValidator
|
|
8
|
+
from typing import Literal, Optional, Union
|
|
9
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict = (
|
|
@@ -85,6 +88,7 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
85
88
|
r"""The minimum amount of the first token to deposit"""
|
|
86
89
|
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1MinTypedDict
|
|
87
90
|
r"""The minimum amount of the second token to deposit"""
|
|
91
|
+
action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
|
|
88
92
|
|
|
89
93
|
|
|
90
94
|
class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
@@ -108,3 +112,13 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
|
108
112
|
|
|
109
113
|
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min
|
|
110
114
|
r"""The minimum amount of the second token to deposit"""
|
|
115
|
+
|
|
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,8 +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
|
|
7
|
-
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
|
|
@@ -84,6 +87,7 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
84
87
|
r"""The chain to use."""
|
|
85
88
|
sender: str
|
|
86
89
|
r"""The address of the transaction sender."""
|
|
90
|
+
action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
|
|
87
91
|
|
|
88
92
|
|
|
89
93
|
class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
@@ -107,3 +111,13 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
|
|
|
107
111
|
|
|
108
112
|
sender: str
|
|
109
113
|
r"""The address of the transaction sender."""
|
|
114
|
+
|
|
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,9 +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
|
|
13
|
+
import pydantic
|
|
12
14
|
from pydantic import model_serializer
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
+
from pydantic.functional_validators import AfterValidator
|
|
16
|
+
from typing import Literal, Optional, Union
|
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
AerodromeSlipstreamMintLiquidityProvisionParamsAmount0DesiredTypedDict = TypeAliasType(
|
|
@@ -99,6 +102,7 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
99
102
|
r"""The minimum amount of the first token to deposit"""
|
|
100
103
|
amount1_min: AerodromeSlipstreamMintLiquidityProvisionParamsAmount1MinTypedDict
|
|
101
104
|
r"""The minimum amount of the second token to deposit"""
|
|
105
|
+
action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
|
|
102
106
|
recipient: NotRequired[Nullable[str]]
|
|
103
107
|
r"""The address that will receive the LP tokens"""
|
|
104
108
|
|
|
@@ -141,12 +145,22 @@ class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
|
|
|
141
145
|
amount1_min: AerodromeSlipstreamMintLiquidityProvisionParamsAmount1Min
|
|
142
146
|
r"""The minimum amount of the second token to deposit"""
|
|
143
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
|
+
|
|
144
158
|
recipient: OptionalNullable[str] = UNSET
|
|
145
159
|
r"""The address that will receive the LP tokens"""
|
|
146
160
|
|
|
147
161
|
@model_serializer(mode="wrap")
|
|
148
162
|
def serialize_model(self, handler):
|
|
149
|
-
optional_fields = ["recipient"]
|
|
163
|
+
optional_fields = ["action_type", "recipient"]
|
|
150
164
|
nullable_fields = ["recipient"]
|
|
151
165
|
null_default_fields = []
|
|
152
166
|
|
|
@@ -10,9 +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
|
|
14
|
+
import pydantic
|
|
13
15
|
from pydantic import model_serializer
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal, Optional, Union
|
|
18
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
AerodromeSlipstreamMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
|
|
@@ -104,6 +107,7 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
104
107
|
r"""The chain to use."""
|
|
105
108
|
sender: str
|
|
106
109
|
r"""The address of the transaction sender."""
|
|
110
|
+
action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
|
|
107
111
|
recipient: NotRequired[Nullable[str]]
|
|
108
112
|
r"""The address that will receive the LP tokens"""
|
|
109
113
|
|
|
@@ -152,12 +156,22 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
|
|
|
152
156
|
sender: str
|
|
153
157
|
r"""The address of the transaction sender."""
|
|
154
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
|
+
|
|
155
169
|
recipient: OptionalNullable[str] = UNSET
|
|
156
170
|
r"""The address that will receive the LP tokens"""
|
|
157
171
|
|
|
158
172
|
@model_serializer(mode="wrap")
|
|
159
173
|
def serialize_model(self, handler):
|
|
160
|
-
optional_fields = ["recipient"]
|
|
174
|
+
optional_fields = ["action_type", "recipient"]
|
|
161
175
|
nullable_fields = ["recipient"]
|
|
162
176
|
null_default_fields = []
|
|
163
177
|
|
|
@@ -3,8 +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
|
|
7
|
-
|
|
6
|
+
from compass_api_sdk.utils import validate_const
|
|
7
|
+
import pydantic
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional, Union
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
AerodromeSlipstreamSellExactlyParamsAmountInTypedDict = TypeAliasType(
|
|
@@ -50,6 +53,7 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
|
|
|
50
53
|
r"""The tick spacing of the pool"""
|
|
51
54
|
amount_in: AerodromeSlipstreamSellExactlyParamsAmountInTypedDict
|
|
52
55
|
r"""The amount of the token to swap from"""
|
|
56
|
+
action_type: Literal["AERODROME_SLIPSTREAM_SELL_EXACTLY"]
|
|
53
57
|
amount_out_minimum: NotRequired[
|
|
54
58
|
AerodromeSlipstreamSellExactlyParamsAmountOutMinimumTypedDict
|
|
55
59
|
]
|
|
@@ -79,6 +83,14 @@ class AerodromeSlipstreamSellExactlyParams(BaseModel):
|
|
|
79
83
|
amount_in: AerodromeSlipstreamSellExactlyParamsAmountIn
|
|
80
84
|
r"""The amount of the token to swap from"""
|
|
81
85
|
|
|
86
|
+
ACTION_TYPE: Annotated[
|
|
87
|
+
Annotated[
|
|
88
|
+
Optional[Literal["AERODROME_SLIPSTREAM_SELL_EXACTLY"]],
|
|
89
|
+
AfterValidator(validate_const("AERODROME_SLIPSTREAM_SELL_EXACTLY")),
|
|
90
|
+
],
|
|
91
|
+
pydantic.Field(alias="action_type"),
|
|
92
|
+
] = "AERODROME_SLIPSTREAM_SELL_EXACTLY"
|
|
93
|
+
|
|
82
94
|
amount_out_minimum: Optional[
|
|
83
95
|
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum
|
|
84
96
|
] = None
|