compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3rc0__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 +3 -3
- compass_api_sdk/aave_v3.py +44 -44
- compass_api_sdk/aerodrome_slipstream.py +32 -32
- compass_api_sdk/models/__init__.py +0 -254
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +4 -13
- compass_api_sdk/models/aavelooprequest.py +8 -25
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +4 -13
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +4 -13
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +4 -13
- compass_api_sdk/models/aerodromeposition.py +4 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +8 -25
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +8 -25
- compass_api_sdk/models/batcheduseroperationsrequest.py +8 -2
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
- compass_api_sdk/models/odosswapparams.py +4 -25
- compass_api_sdk/models/odosswaprequest.py +4 -27
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +2 -15
- compass_api_sdk/models/pendletradeptparams.py +2 -15
- compass_api_sdk/models/pendletradeptrequest.py +2 -15
- compass_api_sdk/models/pendletradeytparams.py +2 -15
- compass_api_sdk/models/pendletradeytrequest.py +2 -15
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/setallowanceparams.py +2 -15
- compass_api_sdk/models/setallowancerequest.py +2 -15
- compass_api_sdk/models/skysellrequest.py +4 -4
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokentransferparams.py +2 -15
- compass_api_sdk/models/tokentransferrequest.py +2 -15
- compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +8 -33
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +8 -25
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
- compass_api_sdk/models/uniswapsellexactlyrequest.py +4 -29
- compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
- compass_api_sdk/models/v1_aave_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
- compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
- compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
- compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
- compass_api_sdk/models/v1_sky_positionop.py +4 -5
- compass_api_sdk/models/v1_token_balanceop.py +10 -23
- compass_api_sdk/models/v1_token_priceop.py +7 -8
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
- compass_api_sdk/morpho.py +12 -24
- compass_api_sdk/pendle.py +6 -20
- compass_api_sdk/sdk.py +3 -3
- compass_api_sdk/sky.py +14 -16
- compass_api_sdk/swap.py +4 -12
- compass_api_sdk/{token_sdk.py → token.py} +13 -197
- compass_api_sdk/transaction_bundler.py +8 -8
- compass_api_sdk/uniswap_v3.py +44 -68
- compass_api_sdk/universal.py +6 -188
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/RECORD +74 -79
- compass_api_sdk/models/token_enum.py +0 -81
- compass_api_sdk/models/tokenaddressresponse.py +0 -15
- compass_api_sdk/models/tokeninfo.py +0 -17
- compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
- compass_api_sdk/models/v1_token_addressop.py +0 -109
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3rc0.dist-info}/WHEEL +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import (
|
|
6
5
|
BaseModel,
|
|
7
6
|
Nullable,
|
|
@@ -15,14 +14,10 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
class ReserveTypedDict(TypedDict):
|
|
18
|
-
symbol:
|
|
19
|
-
r"""
|
|
20
|
-
|
|
21
|
-
This class is used to represent the token in the system. Notice individual
|
|
22
|
-
endpoints' documentation where per chain tokens are presented.
|
|
23
|
-
"""
|
|
17
|
+
symbol: str
|
|
18
|
+
r"""Symbol of token."""
|
|
24
19
|
name: str
|
|
25
|
-
r"""Name of
|
|
20
|
+
r"""Name of token"""
|
|
26
21
|
underlying_asset: str
|
|
27
22
|
r"""Checksum address of Token."""
|
|
28
23
|
decimals: NotRequired[Nullable[int]]
|
|
@@ -30,15 +25,11 @@ class ReserveTypedDict(TypedDict):
|
|
|
30
25
|
|
|
31
26
|
|
|
32
27
|
class Reserve(BaseModel):
|
|
33
|
-
symbol:
|
|
34
|
-
r"""
|
|
35
|
-
|
|
36
|
-
This class is used to represent the token in the system. Notice individual
|
|
37
|
-
endpoints' documentation where per chain tokens are presented.
|
|
38
|
-
"""
|
|
28
|
+
symbol: str
|
|
29
|
+
r"""Symbol of token."""
|
|
39
30
|
|
|
40
31
|
name: str
|
|
41
|
-
r"""Name of
|
|
32
|
+
r"""Name of token"""
|
|
42
33
|
|
|
43
34
|
underlying_asset: Annotated[str, pydantic.Field(alias="underlyingAsset")]
|
|
44
35
|
r"""Checksum address of Token."""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
@@ -11,18 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
SetAllowanceParamsTokenTypedDict = TypeAliasType(
|
|
15
|
-
"SetAllowanceParamsTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token for which the allowance is set.."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
SetAllowanceParamsToken = TypeAliasType(
|
|
21
|
-
"SetAllowanceParamsToken", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token for which the allowance is set.."""
|
|
24
|
-
|
|
25
|
-
|
|
26
13
|
class SetAllowanceParamsContractEnum(str, Enum):
|
|
27
14
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
28
15
|
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
@@ -67,7 +54,7 @@ r"""The amount to set the allowance to."""
|
|
|
67
54
|
class SetAllowanceParamsTypedDict(TypedDict):
|
|
68
55
|
r"""Parameters model for setting the token allowance for a given contract."""
|
|
69
56
|
|
|
70
|
-
token:
|
|
57
|
+
token: str
|
|
71
58
|
r"""The symbol or address of the token for which the allowance is set.."""
|
|
72
59
|
contract: SetAllowanceParamsContractUnionTypedDict
|
|
73
60
|
r"""The name or address of the contract to set spending allowance for."""
|
|
@@ -79,7 +66,7 @@ class SetAllowanceParamsTypedDict(TypedDict):
|
|
|
79
66
|
class SetAllowanceParams(BaseModel):
|
|
80
67
|
r"""Parameters model for setting the token allowance for a given contract."""
|
|
81
68
|
|
|
82
|
-
token:
|
|
69
|
+
token: str
|
|
83
70
|
r"""The symbol or address of the token for which the allowance is set.."""
|
|
84
71
|
|
|
85
72
|
contract: SetAllowanceParamsContractUnion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
@@ -11,18 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
SetAllowanceRequestTokenTypedDict = TypeAliasType(
|
|
15
|
-
"SetAllowanceRequestTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token for which the allowance is set.."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
SetAllowanceRequestToken = TypeAliasType(
|
|
21
|
-
"SetAllowanceRequestToken", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token for which the allowance is set.."""
|
|
24
|
-
|
|
25
|
-
|
|
26
13
|
class SetAllowanceRequestContractEnum(str, Enum):
|
|
27
14
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
28
15
|
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
@@ -75,7 +62,7 @@ class SetAllowanceRequestChain(str, Enum):
|
|
|
75
62
|
class SetAllowanceRequestTypedDict(TypedDict):
|
|
76
63
|
r"""Request model for increasing token allowance for a contract."""
|
|
77
64
|
|
|
78
|
-
token:
|
|
65
|
+
token: str
|
|
79
66
|
r"""The symbol or address of the token for which the allowance is set.."""
|
|
80
67
|
contract: SetAllowanceRequestContractUnionTypedDict
|
|
81
68
|
r"""The name or address of the contract to set spending allowance for."""
|
|
@@ -90,7 +77,7 @@ class SetAllowanceRequestTypedDict(TypedDict):
|
|
|
90
77
|
class SetAllowanceRequest(BaseModel):
|
|
91
78
|
r"""Request model for increasing token allowance for a contract."""
|
|
92
79
|
|
|
93
|
-
token:
|
|
80
|
+
token: str
|
|
94
81
|
r"""The symbol or address of the token for which the allowance is set.."""
|
|
95
82
|
|
|
96
83
|
contract: SetAllowanceRequestContractUnion
|
|
@@ -7,7 +7,7 @@ from enum import Enum
|
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal, Optional, Union
|
|
10
|
-
from typing_extensions import Annotated,
|
|
10
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class SkySellRequestTokenOut(str, Enum):
|
|
@@ -36,10 +36,10 @@ class SkySellRequestTypedDict(TypedDict):
|
|
|
36
36
|
r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
|
|
37
37
|
amount: SkySellRequestAmountTypedDict
|
|
38
38
|
r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
|
|
39
|
+
chain: SkySellRequestChain
|
|
39
40
|
sender: str
|
|
40
41
|
r"""The address of the transaction sender."""
|
|
41
42
|
action_type: Literal["SKY_SELL"]
|
|
42
|
-
chain: NotRequired[SkySellRequestChain]
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
class SkySellRequest(BaseModel):
|
|
@@ -49,6 +49,8 @@ class SkySellRequest(BaseModel):
|
|
|
49
49
|
amount: SkySellRequestAmount
|
|
50
50
|
r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
|
|
51
51
|
|
|
52
|
+
chain: SkySellRequestChain
|
|
53
|
+
|
|
52
54
|
sender: str
|
|
53
55
|
r"""The address of the transaction sender."""
|
|
54
56
|
|
|
@@ -58,5 +60,3 @@ class SkySellRequest(BaseModel):
|
|
|
58
60
|
],
|
|
59
61
|
pydantic.Field(alias="action_type"),
|
|
60
62
|
] = "SKY_SELL"
|
|
61
|
-
|
|
62
|
-
chain: Optional[SkySellRequestChain] = SkySellRequestChain.ETHEREUM
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
|
-
from
|
|
7
|
-
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
TokenSymbolTypedDict = TypeAliasType("TokenSymbolTypedDict", Union[TokenEnum, str])
|
|
11
|
-
r"""Symbol of the token."""
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
TokenSymbol = TypeAliasType("TokenSymbol", Union[TokenEnum, str])
|
|
15
|
-
r"""Symbol of the token."""
|
|
5
|
+
from typing_extensions import TypedDict
|
|
16
6
|
|
|
17
7
|
|
|
18
8
|
class TokenBalanceResponseTypedDict(TypedDict):
|
|
@@ -22,8 +12,8 @@ class TokenBalanceResponseTypedDict(TypedDict):
|
|
|
22
12
|
r"""Amount of tokens a particular address holds"""
|
|
23
13
|
decimals: int
|
|
24
14
|
r"""Number of decimals of the token"""
|
|
25
|
-
token_symbol:
|
|
26
|
-
r"""Symbol of the token
|
|
15
|
+
token_symbol: str
|
|
16
|
+
r"""Symbol of the token"""
|
|
27
17
|
token_address: str
|
|
28
18
|
r"""Address of the token"""
|
|
29
19
|
|
|
@@ -37,8 +27,8 @@ class TokenBalanceResponse(BaseModel):
|
|
|
37
27
|
decimals: int
|
|
38
28
|
r"""Number of decimals of the token"""
|
|
39
29
|
|
|
40
|
-
token_symbol:
|
|
41
|
-
r"""Symbol of the token
|
|
30
|
+
token_symbol: str
|
|
31
|
+
r"""Symbol of the token"""
|
|
42
32
|
|
|
43
33
|
token_address: str
|
|
44
34
|
r"""Address of the token"""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
import pydantic
|
|
@@ -10,18 +9,6 @@ from typing import Literal, Optional, Union
|
|
|
10
9
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
TokenTransferParamsTokenTypedDict = TypeAliasType(
|
|
14
|
-
"TokenTransferParamsTokenTypedDict", Union[TokenEnum, str]
|
|
15
|
-
)
|
|
16
|
-
r"""The symbol or address of the token to transfer."""
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
TokenTransferParamsToken = TypeAliasType(
|
|
20
|
-
"TokenTransferParamsToken", Union[TokenEnum, str]
|
|
21
|
-
)
|
|
22
|
-
r"""The symbol or address of the token to transfer."""
|
|
23
|
-
|
|
24
|
-
|
|
25
12
|
TokenTransferParamsAmountTypedDict = TypeAliasType(
|
|
26
13
|
"TokenTransferParamsAmountTypedDict", Union[float, str]
|
|
27
14
|
)
|
|
@@ -39,7 +26,7 @@ class TokenTransferParamsTypedDict(TypedDict):
|
|
|
39
26
|
|
|
40
27
|
to: str
|
|
41
28
|
r"""The recipient of the tokens."""
|
|
42
|
-
token:
|
|
29
|
+
token: str
|
|
43
30
|
r"""The symbol or address of the token to transfer."""
|
|
44
31
|
amount: TokenTransferParamsAmountTypedDict
|
|
45
32
|
r"""Amount of token to transfer"""
|
|
@@ -52,7 +39,7 @@ class TokenTransferParams(BaseModel):
|
|
|
52
39
|
to: str
|
|
53
40
|
r"""The recipient of the tokens."""
|
|
54
41
|
|
|
55
|
-
token:
|
|
42
|
+
token: str
|
|
56
43
|
r"""The symbol or address of the token to transfer."""
|
|
57
44
|
|
|
58
45
|
amount: TokenTransferParamsAmount
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
from enum import Enum
|
|
@@ -11,18 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
TokenTransferRequestTokenTypedDict = TypeAliasType(
|
|
15
|
-
"TokenTransferRequestTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token to transfer."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
TokenTransferRequestToken = TypeAliasType(
|
|
21
|
-
"TokenTransferRequestToken", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token to transfer."""
|
|
24
|
-
|
|
25
|
-
|
|
26
13
|
TokenTransferRequestAmountTypedDict = TypeAliasType(
|
|
27
14
|
"TokenTransferRequestAmountTypedDict", Union[float, str]
|
|
28
15
|
)
|
|
@@ -46,7 +33,7 @@ class TokenTransferRequestTypedDict(TypedDict):
|
|
|
46
33
|
|
|
47
34
|
to: str
|
|
48
35
|
r"""The recipient of the tokens."""
|
|
49
|
-
token:
|
|
36
|
+
token: str
|
|
50
37
|
r"""The symbol or address of the token to transfer."""
|
|
51
38
|
amount: TokenTransferRequestAmountTypedDict
|
|
52
39
|
r"""Amount of token to transfer"""
|
|
@@ -62,7 +49,7 @@ class TokenTransferRequest(BaseModel):
|
|
|
62
49
|
to: str
|
|
63
50
|
r"""The recipient of the tokens."""
|
|
64
51
|
|
|
65
|
-
token:
|
|
52
|
+
token: str
|
|
66
53
|
r"""The symbol or address of the token to transfer."""
|
|
67
54
|
|
|
68
55
|
amount: TokenTransferRequestAmount
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
8
7
|
import pydantic
|
|
@@ -11,30 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
UniswapBuyExactlyParamsTokenInTypedDict = TypeAliasType(
|
|
15
|
-
"UniswapBuyExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token to swap from."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
UniswapBuyExactlyParamsTokenIn = TypeAliasType(
|
|
21
|
-
"UniswapBuyExactlyParamsTokenIn", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token to swap from."""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
UniswapBuyExactlyParamsTokenOutTypedDict = TypeAliasType(
|
|
27
|
-
"UniswapBuyExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
|
|
28
|
-
)
|
|
29
|
-
r"""The symbol or address of the token to swap to."""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
UniswapBuyExactlyParamsTokenOut = TypeAliasType(
|
|
33
|
-
"UniswapBuyExactlyParamsTokenOut", Union[TokenEnum, str]
|
|
34
|
-
)
|
|
35
|
-
r"""The symbol or address of the token to swap to."""
|
|
36
|
-
|
|
37
|
-
|
|
38
13
|
UniswapBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
|
|
39
14
|
"UniswapBuyExactlyParamsAmountOutTypedDict", Union[float, str]
|
|
40
15
|
)
|
|
@@ -48,10 +23,10 @@ r"""The amount of 'token_out' to buy."""
|
|
|
48
23
|
|
|
49
24
|
|
|
50
25
|
class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
51
|
-
token_in:
|
|
52
|
-
r"""The symbol or address of the token to swap from
|
|
53
|
-
token_out:
|
|
54
|
-
r"""The symbol or address of the token to swap to
|
|
26
|
+
token_in: str
|
|
27
|
+
r"""The symbol or address of the token to swap from.."""
|
|
28
|
+
token_out: str
|
|
29
|
+
r"""The symbol or address of the token to swap to.."""
|
|
55
30
|
fee: FeeEnum
|
|
56
31
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
57
32
|
|
|
@@ -65,11 +40,11 @@ class UniswapBuyExactlyParamsTypedDict(TypedDict):
|
|
|
65
40
|
|
|
66
41
|
|
|
67
42
|
class UniswapBuyExactlyParams(BaseModel):
|
|
68
|
-
token_in:
|
|
69
|
-
r"""The symbol or address of the token to swap from
|
|
43
|
+
token_in: str
|
|
44
|
+
r"""The symbol or address of the token to swap from.."""
|
|
70
45
|
|
|
71
|
-
token_out:
|
|
72
|
-
r"""The symbol or address of the token to swap to
|
|
46
|
+
token_out: str
|
|
47
|
+
r"""The symbol or address of the token to swap to.."""
|
|
73
48
|
|
|
74
49
|
fee: FeeEnum
|
|
75
50
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
8
7
|
from enum import Enum
|
|
@@ -12,30 +11,6 @@ from typing import Literal, Optional, Union
|
|
|
12
11
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
UniswapBuyExactlyRequestTokenInTypedDict = TypeAliasType(
|
|
16
|
-
"UniswapBuyExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
|
|
17
|
-
)
|
|
18
|
-
r"""The symbol or address of the token to swap from."""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
UniswapBuyExactlyRequestTokenIn = TypeAliasType(
|
|
22
|
-
"UniswapBuyExactlyRequestTokenIn", Union[TokenEnum, str]
|
|
23
|
-
)
|
|
24
|
-
r"""The symbol or address of the token to swap from."""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
UniswapBuyExactlyRequestTokenOutTypedDict = TypeAliasType(
|
|
28
|
-
"UniswapBuyExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The symbol or address of the token to swap to."""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
UniswapBuyExactlyRequestTokenOut = TypeAliasType(
|
|
34
|
-
"UniswapBuyExactlyRequestTokenOut", Union[TokenEnum, str]
|
|
35
|
-
)
|
|
36
|
-
r"""The symbol or address of the token to swap to."""
|
|
37
|
-
|
|
38
|
-
|
|
39
14
|
UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
40
15
|
"UniswapBuyExactlyRequestAmountOutTypedDict", Union[float, str]
|
|
41
16
|
)
|
|
@@ -57,10 +32,10 @@ class UniswapBuyExactlyRequestChain(str, Enum):
|
|
|
57
32
|
class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
58
33
|
r"""Request model for buying an exact amount of tokens."""
|
|
59
34
|
|
|
60
|
-
token_in:
|
|
61
|
-
r"""The symbol or address of the token to swap from
|
|
62
|
-
token_out:
|
|
63
|
-
r"""The symbol or address of the token to swap to
|
|
35
|
+
token_in: str
|
|
36
|
+
r"""The symbol or address of the token to swap from.."""
|
|
37
|
+
token_out: str
|
|
38
|
+
r"""The symbol or address of the token to swap to.."""
|
|
64
39
|
fee: FeeEnum
|
|
65
40
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
66
41
|
|
|
@@ -79,11 +54,11 @@ class UniswapBuyExactlyRequestTypedDict(TypedDict):
|
|
|
79
54
|
class UniswapBuyExactlyRequest(BaseModel):
|
|
80
55
|
r"""Request model for buying an exact amount of tokens."""
|
|
81
56
|
|
|
82
|
-
token_in:
|
|
83
|
-
r"""The symbol or address of the token to swap from
|
|
57
|
+
token_in: str
|
|
58
|
+
r"""The symbol or address of the token to swap from.."""
|
|
84
59
|
|
|
85
|
-
token_out:
|
|
86
|
-
r"""The symbol or address of the token to swap to
|
|
60
|
+
token_out: str
|
|
61
|
+
r"""The symbol or address of the token to swap to.."""
|
|
87
62
|
|
|
88
63
|
fee: FeeEnum
|
|
89
64
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -67,18 +66,10 @@ r"""The minimum amount of the second token to deposit"""
|
|
|
67
66
|
|
|
68
67
|
|
|
69
68
|
class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
70
|
-
token0:
|
|
71
|
-
r"""
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
endpoints' documentation where per chain tokens are presented.
|
|
75
|
-
"""
|
|
76
|
-
token1: TokenEnum
|
|
77
|
-
r"""A class representing the token.
|
|
78
|
-
|
|
79
|
-
This class is used to represent the token in the system. Notice individual
|
|
80
|
-
endpoints' documentation where per chain tokens are presented.
|
|
81
|
-
"""
|
|
69
|
+
token0: str
|
|
70
|
+
r"""The symbol or address of the first token in the pair."""
|
|
71
|
+
token1: str
|
|
72
|
+
r"""The symbol or address of the second token in the pair."""
|
|
82
73
|
fee: FeeEnum
|
|
83
74
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
84
75
|
|
|
@@ -102,19 +93,11 @@ class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
|
|
|
102
93
|
|
|
103
94
|
|
|
104
95
|
class UniswapMintLiquidityProvisionParams(BaseModel):
|
|
105
|
-
token0:
|
|
106
|
-
r"""
|
|
96
|
+
token0: str
|
|
97
|
+
r"""The symbol or address of the first token in the pair."""
|
|
107
98
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"""
|
|
111
|
-
|
|
112
|
-
token1: TokenEnum
|
|
113
|
-
r"""A class representing the token.
|
|
114
|
-
|
|
115
|
-
This class is used to represent the token in the system. Notice individual
|
|
116
|
-
endpoints' documentation where per chain tokens are presented.
|
|
117
|
-
"""
|
|
99
|
+
token1: str
|
|
100
|
+
r"""The symbol or address of the second token in the pair."""
|
|
118
101
|
|
|
119
102
|
fee: FeeEnum
|
|
120
103
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import (
|
|
7
6
|
BaseModel,
|
|
8
7
|
Nullable,
|
|
@@ -76,18 +75,10 @@ class UniswapMintLiquidityProvisionRequestChain(str, Enum):
|
|
|
76
75
|
class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
77
76
|
r"""Request model for minting a new liquidity position."""
|
|
78
77
|
|
|
79
|
-
token0:
|
|
80
|
-
r"""
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
endpoints' documentation where per chain tokens are presented.
|
|
84
|
-
"""
|
|
85
|
-
token1: TokenEnum
|
|
86
|
-
r"""A class representing the token.
|
|
87
|
-
|
|
88
|
-
This class is used to represent the token in the system. Notice individual
|
|
89
|
-
endpoints' documentation where per chain tokens are presented.
|
|
90
|
-
"""
|
|
78
|
+
token0: str
|
|
79
|
+
r"""The symbol or address of the first token in the pair."""
|
|
80
|
+
token1: str
|
|
81
|
+
r"""The symbol or address of the second token in the pair."""
|
|
91
82
|
fee: FeeEnum
|
|
92
83
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
93
84
|
|
|
@@ -116,19 +107,11 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
|
|
|
116
107
|
class UniswapMintLiquidityProvisionRequest(BaseModel):
|
|
117
108
|
r"""Request model for minting a new liquidity position."""
|
|
118
109
|
|
|
119
|
-
token0:
|
|
120
|
-
r"""
|
|
110
|
+
token0: str
|
|
111
|
+
r"""The symbol or address of the first token in the pair."""
|
|
121
112
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"""
|
|
125
|
-
|
|
126
|
-
token1: TokenEnum
|
|
127
|
-
r"""A class representing the token.
|
|
128
|
-
|
|
129
|
-
This class is used to represent the token in the system. Notice individual
|
|
130
|
-
endpoints' documentation where per chain tokens are presented.
|
|
131
|
-
"""
|
|
113
|
+
token1: str
|
|
114
|
+
r"""The symbol or address of the second token in the pair."""
|
|
132
115
|
|
|
133
116
|
fee: FeeEnum
|
|
134
117
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from typing_extensions import TypedDict
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
class UniswapPoolPriceResponseTypedDict(TypedDict):
|
|
10
|
-
token_in:
|
|
11
|
-
r"""
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
endpoints' documentation where per chain tokens are presented.
|
|
15
|
-
"""
|
|
16
|
-
token_out: TokenEnum
|
|
17
|
-
r"""A class representing the token.
|
|
18
|
-
|
|
19
|
-
This class is used to represent the token in the system. Notice individual
|
|
20
|
-
endpoints' documentation where per chain tokens are presented.
|
|
21
|
-
"""
|
|
9
|
+
token_in: str
|
|
10
|
+
r"""The first token in the pool"""
|
|
11
|
+
token_out: str
|
|
12
|
+
r"""The second token in the pool"""
|
|
22
13
|
price: str
|
|
23
14
|
r"""The price of the pool. This is expressed as an instantanteous amount of how many token0 you need to buy 1 token1. In any swap this will not change during the trade; use the quote endpoint to get a better idea of how much you will pay!"""
|
|
24
15
|
tick: int
|
|
@@ -26,19 +17,11 @@ class UniswapPoolPriceResponseTypedDict(TypedDict):
|
|
|
26
17
|
|
|
27
18
|
|
|
28
19
|
class UniswapPoolPriceResponse(BaseModel):
|
|
29
|
-
token_in:
|
|
30
|
-
r"""
|
|
20
|
+
token_in: str
|
|
21
|
+
r"""The first token in the pool"""
|
|
31
22
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
token_out: TokenEnum
|
|
37
|
-
r"""A class representing the token.
|
|
38
|
-
|
|
39
|
-
This class is used to represent the token in the system. Notice individual
|
|
40
|
-
endpoints' documentation where per chain tokens are presented.
|
|
41
|
-
"""
|
|
23
|
+
token_out: str
|
|
24
|
+
r"""The second token in the pool"""
|
|
42
25
|
|
|
43
26
|
price: str
|
|
44
27
|
r"""The price of the pool. This is expressed as an instantanteous amount of how many token0 you need to buy 1 token1. In any swap this will not change during the trade; use the quote endpoint to get a better idea of how much you will pay!"""
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .feeenum import FeeEnum
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
5
|
from compass_api_sdk.types import BaseModel
|
|
7
6
|
from compass_api_sdk.utils import validate_const
|
|
8
7
|
import pydantic
|
|
@@ -11,30 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
UniswapSellExactlyParamsTokenInTypedDict = TypeAliasType(
|
|
15
|
-
"UniswapSellExactlyParamsTokenInTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token to sell.."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
UniswapSellExactlyParamsTokenIn = TypeAliasType(
|
|
21
|
-
"UniswapSellExactlyParamsTokenIn", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token to sell.."""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
UniswapSellExactlyParamsTokenOutTypedDict = TypeAliasType(
|
|
27
|
-
"UniswapSellExactlyParamsTokenOutTypedDict", Union[TokenEnum, str]
|
|
28
|
-
)
|
|
29
|
-
r"""The symbol or address of the token to buy.."""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
UniswapSellExactlyParamsTokenOut = TypeAliasType(
|
|
33
|
-
"UniswapSellExactlyParamsTokenOut", Union[TokenEnum, str]
|
|
34
|
-
)
|
|
35
|
-
r"""The symbol or address of the token to buy.."""
|
|
36
|
-
|
|
37
|
-
|
|
38
13
|
UniswapSellExactlyParamsAmountInTypedDict = TypeAliasType(
|
|
39
14
|
"UniswapSellExactlyParamsAmountInTypedDict", Union[float, str]
|
|
40
15
|
)
|
|
@@ -50,9 +25,9 @@ r"""The amount of the `token_in` to sell"""
|
|
|
50
25
|
class UniswapSellExactlyParamsTypedDict(TypedDict):
|
|
51
26
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
52
27
|
|
|
53
|
-
token_in:
|
|
28
|
+
token_in: str
|
|
54
29
|
r"""The symbol or address of the token to sell.."""
|
|
55
|
-
token_out:
|
|
30
|
+
token_out: str
|
|
56
31
|
r"""The symbol or address of the token to buy.."""
|
|
57
32
|
fee: FeeEnum
|
|
58
33
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
@@ -69,10 +44,10 @@ class UniswapSellExactlyParamsTypedDict(TypedDict):
|
|
|
69
44
|
class UniswapSellExactlyParams(BaseModel):
|
|
70
45
|
r"""Parameters model for selling exactly an amount of tokens."""
|
|
71
46
|
|
|
72
|
-
token_in:
|
|
47
|
+
token_in: str
|
|
73
48
|
r"""The symbol or address of the token to sell.."""
|
|
74
49
|
|
|
75
|
-
token_out:
|
|
50
|
+
token_out: str
|
|
76
51
|
r"""The symbol or address of the token to buy.."""
|
|
77
52
|
|
|
78
53
|
fee: FeeEnum
|