compass_api_sdk 1.1.1rc0__py3-none-any.whl → 1.1.3__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.

Files changed (106) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +68 -44
  3. compass_api_sdk/aerodrome_slipstream.py +62 -32
  4. compass_api_sdk/erc_4626_vaults.py +12 -0
  5. compass_api_sdk/ethena.py +18 -0
  6. compass_api_sdk/models/__init__.py +0 -254
  7. compass_api_sdk/models/aaveborrowparams.py +4 -13
  8. compass_api_sdk/models/aaveborrowrequest.py +10 -14
  9. compass_api_sdk/models/aavelooprequest.py +18 -26
  10. compass_api_sdk/models/aaverepayparams.py +4 -13
  11. compass_api_sdk/models/aaverepayrequest.py +10 -14
  12. compass_api_sdk/models/aavesupplyparams.py +4 -13
  13. compass_api_sdk/models/aavesupplyrequest.py +10 -14
  14. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  15. compass_api_sdk/models/aavewithdrawrequest.py +10 -14
  16. compass_api_sdk/models/aerodromeposition.py +4 -25
  17. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  18. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
  19. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
  20. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  21. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
  22. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  23. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  24. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
  25. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
  26. compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
  27. compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
  28. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  29. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  30. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  31. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  32. compass_api_sdk/models/morphodepositrequest.py +6 -1
  33. compass_api_sdk/models/morphorepayrequest.py +11 -1
  34. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  35. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  36. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  37. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  38. compass_api_sdk/models/odosswapparams.py +4 -25
  39. compass_api_sdk/models/odosswaprequest.py +10 -28
  40. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  41. compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
  42. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  43. compass_api_sdk/models/pendletradeptparams.py +2 -15
  44. compass_api_sdk/models/pendletradeptrequest.py +8 -16
  45. compass_api_sdk/models/pendletradeytparams.py +2 -15
  46. compass_api_sdk/models/pendletradeytrequest.py +8 -16
  47. compass_api_sdk/models/reserve.py +6 -15
  48. compass_api_sdk/models/setallowanceparams.py +2 -15
  49. compass_api_sdk/models/setallowancerequest.py +8 -16
  50. compass_api_sdk/models/skybuyrequest.py +6 -1
  51. compass_api_sdk/models/skydepositrequest.py +6 -1
  52. compass_api_sdk/models/skysellrequest.py +7 -2
  53. compass_api_sdk/models/skywithdrawrequest.py +6 -1
  54. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  55. compass_api_sdk/models/tokentransferparams.py +2 -15
  56. compass_api_sdk/models/tokentransferrequest.py +8 -16
  57. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  58. compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
  59. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  60. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  61. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
  62. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  63. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  64. compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
  65. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  66. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  67. compass_api_sdk/models/unsignedtransaction.py +34 -3
  68. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  69. compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
  70. compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
  71. compass_api_sdk/models/v1_aave_rateop.py +5 -83
  72. compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
  73. compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
  74. compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
  75. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
  76. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
  77. compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
  78. compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
  79. compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
  80. compass_api_sdk/models/v1_sky_positionop.py +4 -5
  81. compass_api_sdk/models/v1_token_balanceop.py +10 -23
  82. compass_api_sdk/models/v1_token_priceop.py +7 -8
  83. compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
  84. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
  85. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
  86. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  87. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  88. compass_api_sdk/models/wrapethrequest.py +6 -1
  89. compass_api_sdk/morpho.py +48 -24
  90. compass_api_sdk/pendle.py +30 -20
  91. compass_api_sdk/sdk.py +3 -3
  92. compass_api_sdk/sky.py +38 -16
  93. compass_api_sdk/smart_account.py +6 -0
  94. compass_api_sdk/swap.py +10 -12
  95. compass_api_sdk/{token_sdk.py → token.py} +19 -197
  96. compass_api_sdk/transaction_bundler.py +20 -8
  97. compass_api_sdk/uniswap_v3.py +74 -68
  98. compass_api_sdk/universal.py +24 -188
  99. {compass_api_sdk-1.1.1rc0.dist-info → compass_api_sdk-1.1.3.dist-info}/METADATA +5 -7
  100. {compass_api_sdk-1.1.1rc0.dist-info → compass_api_sdk-1.1.3.dist-info}/RECORD +101 -106
  101. compass_api_sdk/models/token_enum.py +0 -81
  102. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  103. compass_api_sdk/models/tokeninfo.py +0 -17
  104. compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
  105. compass_api_sdk/models/v1_token_addressop.py +0 -109
  106. {compass_api_sdk-1.1.1rc0.dist-info → compass_api_sdk-1.1.3.dist-info}/WHEEL +0 -0
@@ -34,6 +34,8 @@ class MorphoWithdrawRequestTypedDict(TypedDict):
34
34
  action_type: Literal["MORPHO_WITHDRAW"]
35
35
  receiver: NotRequired[Nullable[str]]
36
36
  r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
37
+ estimate_gas: NotRequired[bool]
38
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
37
39
 
38
40
 
39
41
  class MorphoWithdrawRequest(BaseModel):
@@ -59,9 +61,12 @@ class MorphoWithdrawRequest(BaseModel):
59
61
  receiver: OptionalNullable[str] = UNSET
60
62
  r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
61
63
 
64
+ estimate_gas: Optional[bool] = True
65
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
66
+
62
67
  @model_serializer(mode="wrap")
63
68
  def serialize_model(self, handler):
64
- optional_fields = ["action_type", "receiver"]
69
+ optional_fields = ["action_type", "receiver", "estimate_gas"]
65
70
  nullable_fields = ["receiver"]
66
71
  null_default_fields = []
67
72
 
@@ -12,7 +12,7 @@ from compass_api_sdk.types import (
12
12
  )
13
13
  from enum import Enum
14
14
  from pydantic import model_serializer
15
- from typing import List
15
+ from typing import List, Optional
16
16
  from typing_extensions import NotRequired, TypedDict
17
17
 
18
18
 
@@ -30,6 +30,8 @@ class MulticallExecuteRequestTypedDict(TypedDict):
30
30
  r"""The address of the transaction sender."""
31
31
  actions: List[UserOperationTypedDict]
32
32
  r"""List of possible actions for multicall"""
33
+ estimate_gas: NotRequired[bool]
34
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
33
35
  signed_authorization: NotRequired[Nullable[SignedAuthorizationTypedDict]]
34
36
  r"""EIP-7702 authorization"""
35
37
 
@@ -45,12 +47,15 @@ class MulticallExecuteRequest(BaseModel):
45
47
  actions: List[UserOperation]
46
48
  r"""List of possible actions for multicall"""
47
49
 
50
+ estimate_gas: Optional[bool] = True
51
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
52
+
48
53
  signed_authorization: OptionalNullable[SignedAuthorization] = UNSET
49
54
  r"""EIP-7702 authorization"""
50
55
 
51
56
  @model_serializer(mode="wrap")
52
57
  def serialize_model(self, handler):
53
- optional_fields = ["signed_authorization"]
58
+ optional_fields = ["estimate_gas", "signed_authorization"]
54
59
  nullable_fields = ["signed_authorization"]
55
60
  null_default_fields = []
56
61
 
@@ -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,26 +9,6 @@ from typing import Literal, Optional, Union
10
9
  from typing_extensions import Annotated, TypeAliasType, TypedDict
11
10
 
12
11
 
13
- OdosSwapParamsTokenInTypedDict = TypeAliasType(
14
- "OdosSwapParamsTokenInTypedDict", Union[TokenEnum, str]
15
- )
16
- r"""The symbol or address of the token that is to be sold."""
17
-
18
-
19
- OdosSwapParamsTokenIn = TypeAliasType("OdosSwapParamsTokenIn", Union[TokenEnum, str])
20
- r"""The symbol or address of the token that is to be sold."""
21
-
22
-
23
- OdosSwapParamsTokenOutTypedDict = TypeAliasType(
24
- "OdosSwapParamsTokenOutTypedDict", Union[TokenEnum, str]
25
- )
26
- r"""The symbol or address of the token that is to be bought."""
27
-
28
-
29
- OdosSwapParamsTokenOut = TypeAliasType("OdosSwapParamsTokenOut", Union[TokenEnum, str])
30
- r"""The symbol or address of the token that is to be bought."""
31
-
32
-
33
12
  OdosSwapParamsAmountTypedDict = TypeAliasType(
34
13
  "OdosSwapParamsAmountTypedDict", Union[float, str]
35
14
  )
@@ -41,9 +20,9 @@ r"""The amount of token_in to be sold."""
41
20
 
42
21
 
43
22
  class OdosSwapParamsTypedDict(TypedDict):
44
- token_in: OdosSwapParamsTokenInTypedDict
23
+ token_in: str
45
24
  r"""The symbol or address of the token that is to be sold."""
46
- token_out: OdosSwapParamsTokenOutTypedDict
25
+ token_out: str
47
26
  r"""The symbol or address of the token that is to be bought."""
48
27
  amount: OdosSwapParamsAmountTypedDict
49
28
  r"""The amount of token_in to be sold."""
@@ -53,10 +32,10 @@ class OdosSwapParamsTypedDict(TypedDict):
53
32
 
54
33
 
55
34
  class OdosSwapParams(BaseModel):
56
- token_in: OdosSwapParamsTokenIn
35
+ token_in: str
57
36
  r"""The symbol or address of the token that is to be sold."""
58
37
 
59
- token_out: OdosSwapParamsTokenOut
38
+ token_out: str
60
39
  r"""The symbol or address of the token that is to be bought."""
61
40
 
62
41
  amount: OdosSwapParamsAmount
@@ -1,36 +1,13 @@
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
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
12
-
13
-
14
- OdosSwapRequestTokenInTypedDict = TypeAliasType(
15
- "OdosSwapRequestTokenInTypedDict", Union[TokenEnum, str]
16
- )
17
- r"""The symbol or address of the token that is to be sold."""
18
-
19
-
20
- OdosSwapRequestTokenIn = TypeAliasType("OdosSwapRequestTokenIn", Union[TokenEnum, str])
21
- r"""The symbol or address of the token that is to be sold."""
22
-
23
-
24
- OdosSwapRequestTokenOutTypedDict = TypeAliasType(
25
- "OdosSwapRequestTokenOutTypedDict", Union[TokenEnum, str]
26
- )
27
- r"""The symbol or address of the token that is to be bought."""
28
-
29
-
30
- OdosSwapRequestTokenOut = TypeAliasType(
31
- "OdosSwapRequestTokenOut", Union[TokenEnum, str]
32
- )
33
- r"""The symbol or address of the token that is to be bought."""
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
34
11
 
35
12
 
36
13
  OdosSwapRequestAmountTypedDict = TypeAliasType(
@@ -50,9 +27,9 @@ class OdosSwapRequestChain(str, Enum):
50
27
 
51
28
 
52
29
  class OdosSwapRequestTypedDict(TypedDict):
53
- token_in: OdosSwapRequestTokenInTypedDict
30
+ token_in: str
54
31
  r"""The symbol or address of the token that is to be sold."""
55
- token_out: OdosSwapRequestTokenOutTypedDict
32
+ token_out: str
56
33
  r"""The symbol or address of the token that is to be bought."""
57
34
  amount: OdosSwapRequestAmountTypedDict
58
35
  r"""The amount of token_in to be sold."""
@@ -62,13 +39,15 @@ class OdosSwapRequestTypedDict(TypedDict):
62
39
  sender: str
63
40
  r"""The address of the transaction sender."""
64
41
  action_type: Literal["ODOS_SWAP"]
42
+ estimate_gas: NotRequired[bool]
43
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
65
44
 
66
45
 
67
46
  class OdosSwapRequest(BaseModel):
68
- token_in: OdosSwapRequestTokenIn
47
+ token_in: str
69
48
  r"""The symbol or address of the token that is to be sold."""
70
49
 
71
- token_out: OdosSwapRequestTokenOut
50
+ token_out: str
72
51
  r"""The symbol or address of the token that is to be bought."""
73
52
 
74
53
  amount: OdosSwapRequestAmount
@@ -88,3 +67,6 @@ class OdosSwapRequest(BaseModel):
88
67
  ],
89
68
  pydantic.Field(alias="action_type"),
90
69
  ] = "ODOS_SWAP"
70
+
71
+ estimate_gas: Optional[bool] = True
72
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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
@@ -18,18 +17,6 @@ class PendleManageLiquidityParamsAction(str, Enum):
18
17
  WITHDRAW = "WITHDRAW"
19
18
 
20
19
 
21
- PendleManageLiquidityParamsTokenTypedDict = TypeAliasType(
22
- "PendleManageLiquidityParamsTokenTypedDict", Union[TokenEnum, str]
23
- )
24
- r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
25
-
26
-
27
- PendleManageLiquidityParamsToken = TypeAliasType(
28
- "PendleManageLiquidityParamsToken", Union[TokenEnum, str]
29
- )
30
- r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
31
-
32
-
33
20
  PendleManageLiquidityParamsAmountInTypedDict = TypeAliasType(
34
21
  "PendleManageLiquidityParamsAmountInTypedDict", Union[float, str]
35
22
  )
@@ -47,7 +34,7 @@ class PendleManageLiquidityParamsTypedDict(TypedDict):
47
34
  r"""The address identifying which Pendle Market you would like to add liquidity to."""
48
35
  action: PendleManageLiquidityParamsAction
49
36
  r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
50
- token: PendleManageLiquidityParamsTokenTypedDict
37
+ token: str
51
38
  r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
52
39
  amount_in: PendleManageLiquidityParamsAmountInTypedDict
53
40
  r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
@@ -63,7 +50,7 @@ class PendleManageLiquidityParams(BaseModel):
63
50
  action: PendleManageLiquidityParamsAction
64
51
  r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
65
52
 
66
- token: PendleManageLiquidityParamsToken
53
+ token: str
67
54
  r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
68
55
 
69
56
  amount_in: PendleManageLiquidityParamsAmountIn
@@ -1,14 +1,13 @@
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
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
11
 
13
12
 
14
13
  class PendleManageLiquidityRequestAction(str, Enum):
@@ -18,18 +17,6 @@ class PendleManageLiquidityRequestAction(str, Enum):
18
17
  WITHDRAW = "WITHDRAW"
19
18
 
20
19
 
21
- PendleManageLiquidityRequestTokenTypedDict = TypeAliasType(
22
- "PendleManageLiquidityRequestTokenTypedDict", Union[TokenEnum, str]
23
- )
24
- r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
25
-
26
-
27
- PendleManageLiquidityRequestToken = TypeAliasType(
28
- "PendleManageLiquidityRequestToken", Union[TokenEnum, str]
29
- )
30
- r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
31
-
32
-
33
20
  PendleManageLiquidityRequestAmountInTypedDict = TypeAliasType(
34
21
  "PendleManageLiquidityRequestAmountInTypedDict", Union[float, str]
35
22
  )
@@ -53,7 +40,7 @@ class PendleManageLiquidityRequestTypedDict(TypedDict):
53
40
  r"""The address identifying which Pendle Market you would like to add liquidity to."""
54
41
  action: PendleManageLiquidityRequestAction
55
42
  r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
56
- token: PendleManageLiquidityRequestTokenTypedDict
43
+ token: str
57
44
  r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
58
45
  amount_in: PendleManageLiquidityRequestAmountInTypedDict
59
46
  r"""For `action` set to `SUPPLY`, this is the amount in of `token` to add as liquidity in exchange for Liquidity Provider (LP) tokens. For `action` set to `WITHDRAW`, this is the amount in of LP tokens to redeem for `token`."""
@@ -63,6 +50,8 @@ class PendleManageLiquidityRequestTypedDict(TypedDict):
63
50
  sender: str
64
51
  r"""The address of the transaction sender."""
65
52
  action_type: Literal["PENDLE_MANAGE_LIQUIDITY"]
53
+ estimate_gas: NotRequired[bool]
54
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
66
55
 
67
56
 
68
57
  class PendleManageLiquidityRequest(BaseModel):
@@ -72,7 +61,7 @@ class PendleManageLiquidityRequest(BaseModel):
72
61
  action: PendleManageLiquidityRequestAction
73
62
  r"""Specifies the direction of the liquidity operation for the Pendle market. Valid values are `SUPPLY` (to add liquidity) or `WITHDRAW` (to remove liquidity)."""
74
63
 
75
- token: PendleManageLiquidityRequestToken
64
+ token: str
76
65
  r"""The symbol or address of the token to manage liquidity with. For `action` set to `SUPPLY`, this is the token to add as liquidity. For `action` set to `WITHDRAW`, this is the token to remove from liquidity."""
77
66
 
78
67
  amount_in: PendleManageLiquidityRequestAmountIn
@@ -93,3 +82,6 @@ class PendleManageLiquidityRequest(BaseModel):
93
82
  ],
94
83
  pydantic.Field(alias="action_type"),
95
84
  ] = "PENDLE_MANAGE_LIQUIDITY"
85
+
86
+ estimate_gas: Optional[bool] = True
87
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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
10
- from typing_extensions import Annotated, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypedDict
11
11
 
12
12
 
13
13
  class PendleRedeemYieldRequestChain(str, Enum):
@@ -23,6 +23,8 @@ class PendleRedeemYieldRequestTypedDict(TypedDict):
23
23
  sender: str
24
24
  r"""The address of the transaction sender."""
25
25
  action_type: Literal["PENDLE_REDEEM_YIELD"]
26
+ estimate_gas: NotRequired[bool]
27
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
26
28
 
27
29
 
28
30
  class PendleRedeemYieldRequest(BaseModel):
@@ -41,3 +43,6 @@ class PendleRedeemYieldRequest(BaseModel):
41
43
  ],
42
44
  pydantic.Field(alias="action_type"),
43
45
  ] = "PENDLE_REDEEM_YIELD"
46
+
47
+ estimate_gas: Optional[bool] = True
48
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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
@@ -18,18 +17,6 @@ class PendleTradePtParamsAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
21
- PendleTradePtParamsTokenTypedDict = TypeAliasType(
22
- "PendleTradePtParamsTokenTypedDict", Union[TokenEnum, str]
23
- )
24
- r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
25
-
26
-
27
- PendleTradePtParamsToken = TypeAliasType(
28
- "PendleTradePtParamsToken", Union[TokenEnum, str]
29
- )
30
- r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
31
-
32
-
33
20
  PendleTradePtParamsAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradePtParamsAmountInTypedDict", Union[float, str]
35
22
  )
@@ -47,7 +34,7 @@ class PendleTradePtParamsTypedDict(TypedDict):
47
34
  r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
48
35
  action: PendleTradePtParamsAction
49
36
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
50
- token: PendleTradePtParamsTokenTypedDict
37
+ token: str
51
38
  r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
52
39
  amount_in: PendleTradePtParamsAmountInTypedDict
53
40
  r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
@@ -63,7 +50,7 @@ class PendleTradePtParams(BaseModel):
63
50
  action: PendleTradePtParamsAction
64
51
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
65
52
 
66
- token: PendleTradePtParamsToken
53
+ token: str
67
54
  r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
68
55
 
69
56
  amount_in: PendleTradePtParamsAmountIn
@@ -1,14 +1,13 @@
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
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
11
 
13
12
 
14
13
  class PendleTradePtRequestAction(str, Enum):
@@ -18,18 +17,6 @@ class PendleTradePtRequestAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
21
- PendleTradePtRequestTokenTypedDict = TypeAliasType(
22
- "PendleTradePtRequestTokenTypedDict", Union[TokenEnum, str]
23
- )
24
- r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
25
-
26
-
27
- PendleTradePtRequestToken = TypeAliasType(
28
- "PendleTradePtRequestToken", Union[TokenEnum, str]
29
- )
30
- r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
31
-
32
-
33
20
  PendleTradePtRequestAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradePtRequestAmountInTypedDict", Union[float, str]
35
22
  )
@@ -53,7 +40,7 @@ class PendleTradePtRequestTypedDict(TypedDict):
53
40
  r"""The address of the market identifying which Principal Token (PT) you would like to trade."""
54
41
  action: PendleTradePtRequestAction
55
42
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
56
- token: PendleTradePtRequestTokenTypedDict
43
+ token: str
57
44
  r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
58
45
  amount_in: PendleTradePtRequestAmountInTypedDict
59
46
  r"""For `action` set to `BUY`, this is the amount in of `token` to buy PT with. For `action` set to `SELL`, this is the amount in of PT to sell for `token`."""
@@ -63,6 +50,8 @@ class PendleTradePtRequestTypedDict(TypedDict):
63
50
  sender: str
64
51
  r"""The address of the transaction sender."""
65
52
  action_type: Literal["PENDLE_TRADE_PT"]
53
+ estimate_gas: NotRequired[bool]
54
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
66
55
 
67
56
 
68
57
  class PendleTradePtRequest(BaseModel):
@@ -72,7 +61,7 @@ class PendleTradePtRequest(BaseModel):
72
61
  action: PendleTradePtRequestAction
73
62
  r"""Specifies the direction of the PT trade. Valid values are `BUY` (to buy PT) or `SELL` (to sell PT)."""
74
63
 
75
- token: PendleTradePtRequestToken
64
+ token: str
76
65
  r"""TThe symbol or address of the token to trade PT with. For `action` set to `BUY`, this is the token to buy PT with. For `action` set to `SELL`, this is the token to sell PT for."""
77
66
 
78
67
  amount_in: PendleTradePtRequestAmountIn
@@ -93,3 +82,6 @@ class PendleTradePtRequest(BaseModel):
93
82
  ],
94
83
  pydantic.Field(alias="action_type"),
95
84
  ] = "PENDLE_TRADE_PT"
85
+
86
+ estimate_gas: Optional[bool] = True
87
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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
@@ -18,18 +17,6 @@ class PendleTradeYtParamsAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
21
- PendleTradeYtParamsTokenTypedDict = TypeAliasType(
22
- "PendleTradeYtParamsTokenTypedDict", Union[TokenEnum, str]
23
- )
24
- r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
25
-
26
-
27
- PendleTradeYtParamsToken = TypeAliasType(
28
- "PendleTradeYtParamsToken", Union[TokenEnum, str]
29
- )
30
- r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
31
-
32
-
33
20
  PendleTradeYtParamsAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradeYtParamsAmountInTypedDict", Union[float, str]
35
22
  )
@@ -47,7 +34,7 @@ class PendleTradeYtParamsTypedDict(TypedDict):
47
34
  r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
48
35
  action: PendleTradeYtParamsAction
49
36
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
50
- token: PendleTradeYtParamsTokenTypedDict
37
+ token: str
51
38
  r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
52
39
  amount_in: PendleTradeYtParamsAmountInTypedDict
53
40
  r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
@@ -63,7 +50,7 @@ class PendleTradeYtParams(BaseModel):
63
50
  action: PendleTradeYtParamsAction
64
51
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
65
52
 
66
- token: PendleTradeYtParamsToken
53
+ token: str
67
54
  r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
68
55
 
69
56
  amount_in: PendleTradeYtParamsAmountIn
@@ -1,14 +1,13 @@
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
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
11
 
13
12
 
14
13
  class PendleTradeYtRequestAction(str, Enum):
@@ -18,18 +17,6 @@ class PendleTradeYtRequestAction(str, Enum):
18
17
  SELL = "SELL"
19
18
 
20
19
 
21
- PendleTradeYtRequestTokenTypedDict = TypeAliasType(
22
- "PendleTradeYtRequestTokenTypedDict", Union[TokenEnum, str]
23
- )
24
- r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
25
-
26
-
27
- PendleTradeYtRequestToken = TypeAliasType(
28
- "PendleTradeYtRequestToken", Union[TokenEnum, str]
29
- )
30
- r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
31
-
32
-
33
20
  PendleTradeYtRequestAmountInTypedDict = TypeAliasType(
34
21
  "PendleTradeYtRequestAmountInTypedDict", Union[float, str]
35
22
  )
@@ -53,7 +40,7 @@ class PendleTradeYtRequestTypedDict(TypedDict):
53
40
  r"""The address of the market identifying which Yield Token (YT) you would like to trade."""
54
41
  action: PendleTradeYtRequestAction
55
42
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
56
- token: PendleTradeYtRequestTokenTypedDict
43
+ token: str
57
44
  r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
58
45
  amount_in: PendleTradeYtRequestAmountInTypedDict
59
46
  r"""For `action` set to `BUY`, this is the amount in of `token` to buy YT with. For `action` set to `SELL`, this is the amount in of YT to sell for `token`."""
@@ -63,6 +50,8 @@ class PendleTradeYtRequestTypedDict(TypedDict):
63
50
  sender: str
64
51
  r"""The address of the transaction sender."""
65
52
  action_type: Literal["PENDLE_TRADE_YT"]
53
+ estimate_gas: NotRequired[bool]
54
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
66
55
 
67
56
 
68
57
  class PendleTradeYtRequest(BaseModel):
@@ -72,7 +61,7 @@ class PendleTradeYtRequest(BaseModel):
72
61
  action: PendleTradeYtRequestAction
73
62
  r"""Specifies the direction of the YT trade. Valid values are `BUY` (to buy YT) or `SELL` (to sell YT)."""
74
63
 
75
- token: PendleTradeYtRequestToken
64
+ token: str
76
65
  r"""TThe symbol or address of the token to trade YT with. For `action` set to `BUY`, this is the token to buy YT with. For `action` set to `SELL`, this is the token to sell YT for."""
77
66
 
78
67
  amount_in: PendleTradeYtRequestAmountIn
@@ -93,3 +82,6 @@ class PendleTradeYtRequest(BaseModel):
93
82
  ],
94
83
  pydantic.Field(alias="action_type"),
95
84
  ] = "PENDLE_TRADE_YT"
85
+
86
+ estimate_gas: Optional[bool] = True
87
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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: TokenEnum
19
- r"""A class representing the token.
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 Token"""
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: TokenEnum
34
- r"""A class representing the token.
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 Token"""
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: SetAllowanceParamsTokenTypedDict
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: SetAllowanceParamsToken
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