compass_api_sdk 0.9.20__py3-none-any.whl → 0.9.22__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.

@@ -1,86 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- from enum import Enum
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
12
-
13
-
14
- IncreaseAllowanceParamsTokenTypedDict = TypeAliasType(
15
- "IncreaseAllowanceParamsTokenTypedDict", Union[TokenEnum, str]
16
- )
17
- r"""The symbol or address of the token for which the allowance is increased.."""
18
-
19
-
20
- IncreaseAllowanceParamsToken = TypeAliasType(
21
- "IncreaseAllowanceParamsToken", Union[TokenEnum, str]
22
- )
23
- r"""The symbol or address of the token for which the allowance is increased.."""
24
-
25
-
26
- class IncreaseAllowanceParamsContractName(str, Enum):
27
- r"""The name of the contract to increase allowance for."""
28
-
29
- AAVE_V3_POOL = "AaveV3Pool"
30
- AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
31
- AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
32
- AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
33
- "AerodromeSlipstreamNonfungiblePositionManager"
34
- )
35
- UNISWAP_V3_ROUTER = "UniswapV3Router"
36
- UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
37
- MORPHO = "Morpho"
38
- SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
39
- SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
40
- SKY_USDS_VAULT = "SkyUsdsVault"
41
- PENDLE_ROUTER = "PendleRouter"
42
-
43
-
44
- IncreaseAllowanceParamsAmountTypedDict = TypeAliasType(
45
- "IncreaseAllowanceParamsAmountTypedDict", Union[float, str]
46
- )
47
- r"""The amount to increase the allowance to."""
48
-
49
-
50
- IncreaseAllowanceParamsAmount = TypeAliasType(
51
- "IncreaseAllowanceParamsAmount", Union[float, str]
52
- )
53
- r"""The amount to increase the allowance to."""
54
-
55
-
56
- class IncreaseAllowanceParamsTypedDict(TypedDict):
57
- r"""Parameters model for increasing token allowance for a contract."""
58
-
59
- token: IncreaseAllowanceParamsTokenTypedDict
60
- r"""The symbol or address of the token for which the allowance is increased.."""
61
- contract_name: IncreaseAllowanceParamsContractName
62
- r"""The name of the contract to increase allowance for."""
63
- amount: IncreaseAllowanceParamsAmountTypedDict
64
- r"""The amount to increase the allowance to."""
65
- action_type: Literal["ALLOWANCE_INCREASE"]
66
-
67
-
68
- class IncreaseAllowanceParams(BaseModel):
69
- r"""Parameters model for increasing token allowance for a contract."""
70
-
71
- token: IncreaseAllowanceParamsToken
72
- r"""The symbol or address of the token for which the allowance is increased.."""
73
-
74
- contract_name: IncreaseAllowanceParamsContractName
75
- r"""The name of the contract to increase allowance for."""
76
-
77
- amount: IncreaseAllowanceParamsAmount
78
- r"""The amount to increase the allowance to."""
79
-
80
- ACTION_TYPE: Annotated[
81
- Annotated[
82
- Optional[Literal["ALLOWANCE_INCREASE"]],
83
- AfterValidator(validate_const("ALLOWANCE_INCREASE")),
84
- ],
85
- pydantic.Field(alias="action_type"),
86
- ] = "ALLOWANCE_INCREASE"
@@ -1,97 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .chain import Chain
5
- from .token_enum import TokenEnum
6
- from compass_api_sdk.types import BaseModel
7
- from compass_api_sdk.utils import validate_const
8
- from enum import Enum
9
- import pydantic
10
- from pydantic.functional_validators import AfterValidator
11
- from typing import Literal, Optional, Union
12
- from typing_extensions import Annotated, TypeAliasType, TypedDict
13
-
14
-
15
- IncreaseAllowanceRequestTokenTypedDict = TypeAliasType(
16
- "IncreaseAllowanceRequestTokenTypedDict", Union[TokenEnum, str]
17
- )
18
- r"""The symbol or address of the token for which the allowance is increased.."""
19
-
20
-
21
- IncreaseAllowanceRequestToken = TypeAliasType(
22
- "IncreaseAllowanceRequestToken", Union[TokenEnum, str]
23
- )
24
- r"""The symbol or address of the token for which the allowance is increased.."""
25
-
26
-
27
- class IncreaseAllowanceRequestContractName(str, Enum):
28
- r"""The name of the contract to increase allowance for."""
29
-
30
- AAVE_V3_POOL = "AaveV3Pool"
31
- AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
32
- AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
33
- AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
34
- "AerodromeSlipstreamNonfungiblePositionManager"
35
- )
36
- UNISWAP_V3_ROUTER = "UniswapV3Router"
37
- UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
38
- MORPHO = "Morpho"
39
- SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
40
- SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
41
- SKY_USDS_VAULT = "SkyUsdsVault"
42
- PENDLE_ROUTER = "PendleRouter"
43
-
44
-
45
- IncreaseAllowanceRequestAmountTypedDict = TypeAliasType(
46
- "IncreaseAllowanceRequestAmountTypedDict", Union[float, str]
47
- )
48
- r"""The amount to increase the allowance to."""
49
-
50
-
51
- IncreaseAllowanceRequestAmount = TypeAliasType(
52
- "IncreaseAllowanceRequestAmount", Union[float, str]
53
- )
54
- r"""The amount to increase the allowance to."""
55
-
56
-
57
- class IncreaseAllowanceRequestTypedDict(TypedDict):
58
- r"""Request model for increasing token allowance for a contract."""
59
-
60
- token: IncreaseAllowanceRequestTokenTypedDict
61
- r"""The symbol or address of the token for which the allowance is increased.."""
62
- contract_name: IncreaseAllowanceRequestContractName
63
- r"""The name of the contract to increase allowance for."""
64
- amount: IncreaseAllowanceRequestAmountTypedDict
65
- r"""The amount to increase the allowance to."""
66
- chain: Chain
67
- r"""The chain to use."""
68
- sender: str
69
- r"""The address of the transaction sender."""
70
- action_type: Literal["ALLOWANCE_INCREASE"]
71
-
72
-
73
- class IncreaseAllowanceRequest(BaseModel):
74
- r"""Request model for increasing token allowance for a contract."""
75
-
76
- token: IncreaseAllowanceRequestToken
77
- r"""The symbol or address of the token for which the allowance is increased.."""
78
-
79
- contract_name: IncreaseAllowanceRequestContractName
80
- r"""The name of the contract to increase allowance for."""
81
-
82
- amount: IncreaseAllowanceRequestAmount
83
- r"""The amount to increase the allowance to."""
84
-
85
- chain: Chain
86
- r"""The chain to use."""
87
-
88
- sender: str
89
- r"""The address of the transaction sender."""
90
-
91
- ACTION_TYPE: Annotated[
92
- Annotated[
93
- Optional[Literal["ALLOWANCE_INCREASE"]],
94
- AfterValidator(validate_const("ALLOWANCE_INCREASE")),
95
- ],
96
- pydantic.Field(alias="action_type"),
97
- ] = "ALLOWANCE_INCREASE"
@@ -1,45 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
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
10
-
11
-
12
- MorphoSetVaultAllowanceParamsAmountTypedDict = TypeAliasType(
13
- "MorphoSetVaultAllowanceParamsAmountTypedDict", Union[float, str]
14
- )
15
- r"""The amount of tokens to increase the allowance by."""
16
-
17
-
18
- MorphoSetVaultAllowanceParamsAmount = TypeAliasType(
19
- "MorphoSetVaultAllowanceParamsAmount", Union[float, str]
20
- )
21
- r"""The amount of tokens to increase the allowance by."""
22
-
23
-
24
- class MorphoSetVaultAllowanceParamsTypedDict(TypedDict):
25
- vault_address: str
26
- r"""The vault address you are increasing the allowance for."""
27
- amount: MorphoSetVaultAllowanceParamsAmountTypedDict
28
- r"""The amount of tokens to increase the allowance by."""
29
- action_type: Literal["MORPHO_SET_VAULT_ALLOWANCE"]
30
-
31
-
32
- class MorphoSetVaultAllowanceParams(BaseModel):
33
- vault_address: str
34
- r"""The vault address you are increasing the allowance for."""
35
-
36
- amount: MorphoSetVaultAllowanceParamsAmount
37
- r"""The amount of tokens to increase the allowance by."""
38
-
39
- ACTION_TYPE: Annotated[
40
- Annotated[
41
- Optional[Literal["MORPHO_SET_VAULT_ALLOWANCE"]],
42
- AfterValidator(validate_const("MORPHO_SET_VAULT_ALLOWANCE")),
43
- ],
44
- pydantic.Field(alias="action_type"),
45
- ] = "MORPHO_SET_VAULT_ALLOWANCE"
@@ -1,59 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import validate_const
6
- from enum import Enum
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
11
-
12
-
13
- MorphoSetVaultAllowanceRequestAmountTypedDict = TypeAliasType(
14
- "MorphoSetVaultAllowanceRequestAmountTypedDict", Union[float, str]
15
- )
16
- r"""The amount of tokens to increase the allowance by."""
17
-
18
-
19
- MorphoSetVaultAllowanceRequestAmount = TypeAliasType(
20
- "MorphoSetVaultAllowanceRequestAmount", Union[float, str]
21
- )
22
- r"""The amount of tokens to increase the allowance by."""
23
-
24
-
25
- class MorphoSetVaultAllowanceRequestChain(str, Enum):
26
- ETHEREUM_MAINNET = "ethereum:mainnet"
27
- BASE_MAINNET = "base:mainnet"
28
-
29
-
30
- class MorphoSetVaultAllowanceRequestTypedDict(TypedDict):
31
- vault_address: str
32
- r"""The vault address you are increasing the allowance for."""
33
- amount: MorphoSetVaultAllowanceRequestAmountTypedDict
34
- r"""The amount of tokens to increase the allowance by."""
35
- chain: MorphoSetVaultAllowanceRequestChain
36
- sender: str
37
- r"""The address of the transaction sender."""
38
- action_type: Literal["MORPHO_SET_VAULT_ALLOWANCE"]
39
-
40
-
41
- class MorphoSetVaultAllowanceRequest(BaseModel):
42
- vault_address: str
43
- r"""The vault address you are increasing the allowance for."""
44
-
45
- amount: MorphoSetVaultAllowanceRequestAmount
46
- r"""The amount of tokens to increase the allowance by."""
47
-
48
- chain: MorphoSetVaultAllowanceRequestChain
49
-
50
- sender: str
51
- r"""The address of the transaction sender."""
52
-
53
- ACTION_TYPE: Annotated[
54
- Annotated[
55
- Optional[Literal["MORPHO_SET_VAULT_ALLOWANCE"]],
56
- AfterValidator(validate_const("MORPHO_SET_VAULT_ALLOWANCE")),
57
- ],
58
- pydantic.Field(alias="action_type"),
59
- ] = "MORPHO_SET_VAULT_ALLOWANCE"