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
@@ -1,26 +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
- 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.."""
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
24
11
 
25
12
 
26
13
  class SetAllowanceRequestContractEnum(str, Enum):
@@ -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: SetAllowanceRequestTokenTypedDict
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."""
@@ -85,12 +72,14 @@ class SetAllowanceRequestTypedDict(TypedDict):
85
72
  sender: str
86
73
  r"""The address of the transaction sender."""
87
74
  action_type: Literal["SET_ALLOWANCE"]
75
+ estimate_gas: NotRequired[bool]
76
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
88
77
 
89
78
 
90
79
  class SetAllowanceRequest(BaseModel):
91
80
  r"""Request model for increasing token allowance for a contract."""
92
81
 
93
- token: SetAllowanceRequestToken
82
+ token: str
94
83
  r"""The symbol or address of the token for which the allowance is set.."""
95
84
 
96
85
  contract: SetAllowanceRequestContractUnion
@@ -111,3 +100,6 @@ class SetAllowanceRequest(BaseModel):
111
100
  ],
112
101
  pydantic.Field(alias="action_type"),
113
102
  ] = "SET_ALLOWANCE"
103
+
104
+ estimate_gas: Optional[bool] = True
105
+ 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, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
11
11
 
12
12
 
13
13
  class SkyBuyRequestTokenIn(str, Enum):
@@ -40,6 +40,8 @@ class SkyBuyRequestTypedDict(TypedDict):
40
40
  sender: str
41
41
  r"""The address of the transaction sender."""
42
42
  action_type: Literal["SKY_BUY"]
43
+ estimate_gas: NotRequired[bool]
44
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
43
45
 
44
46
 
45
47
  class SkyBuyRequest(BaseModel):
@@ -60,3 +62,6 @@ class SkyBuyRequest(BaseModel):
60
62
  ],
61
63
  pydantic.Field(alias="action_type"),
62
64
  ] = "SKY_BUY"
65
+
66
+ estimate_gas: Optional[bool] = True
67
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -40,6 +40,8 @@ class SkyDepositRequestTypedDict(TypedDict):
40
40
  receiver: NotRequired[Nullable[str]]
41
41
  r"""The address which will receive the sUSDS. Defaults to the sender."""
42
42
  chain: NotRequired[SkyDepositRequestChain]
43
+ estimate_gas: NotRequired[bool]
44
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
43
45
 
44
46
 
45
47
  class SkyDepositRequest(BaseModel):
@@ -62,9 +64,12 @@ class SkyDepositRequest(BaseModel):
62
64
 
63
65
  chain: Optional[SkyDepositRequestChain] = SkyDepositRequestChain.ETHEREUM
64
66
 
67
+ estimate_gas: Optional[bool] = True
68
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
69
+
65
70
  @model_serializer(mode="wrap")
66
71
  def serialize_model(self, handler):
67
- optional_fields = ["action_type", "receiver", "chain"]
72
+ optional_fields = ["action_type", "receiver", "chain", "estimate_gas"]
68
73
  nullable_fields = ["receiver"]
69
74
  null_default_fields = []
70
75
 
@@ -36,10 +36,12 @@ 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
+ estimate_gas: NotRequired[bool]
44
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
43
45
 
44
46
 
45
47
  class SkySellRequest(BaseModel):
@@ -49,6 +51,8 @@ class SkySellRequest(BaseModel):
49
51
  amount: SkySellRequestAmount
50
52
  r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
51
53
 
54
+ chain: SkySellRequestChain
55
+
52
56
  sender: str
53
57
  r"""The address of the transaction sender."""
54
58
 
@@ -59,4 +63,5 @@ class SkySellRequest(BaseModel):
59
63
  pydantic.Field(alias="action_type"),
60
64
  ] = "SKY_SELL"
61
65
 
62
- chain: Optional[SkySellRequestChain] = SkySellRequestChain.ETHEREUM
66
+ estimate_gas: Optional[bool] = True
67
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -30,6 +30,8 @@ class SkyWithdrawRequestTypedDict(TypedDict):
30
30
  receiver: NotRequired[Nullable[str]]
31
31
  r"""The address which will receive the withdrawn USDS. Defaults to the sender."""
32
32
  chain: NotRequired[SkyWithdrawRequestChain]
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
 
34
36
 
35
37
  class SkyWithdrawRequest(BaseModel):
@@ -52,9 +54,12 @@ class SkyWithdrawRequest(BaseModel):
52
54
 
53
55
  chain: Optional[SkyWithdrawRequestChain] = SkyWithdrawRequestChain.ETHEREUM
54
56
 
57
+ estimate_gas: Optional[bool] = True
58
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
59
+
55
60
  @model_serializer(mode="wrap")
56
61
  def serialize_model(self, handler):
57
- optional_fields = ["action_type", "receiver", "chain"]
62
+ optional_fields = ["action_type", "receiver", "chain", "estimate_gas"]
58
63
  nullable_fields = ["receiver"]
59
64
  null_default_fields = []
60
65
 
@@ -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 typing import Union
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: TokenSymbolTypedDict
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: TokenSymbol
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: TokenTransferParamsTokenTypedDict
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: TokenTransferParamsToken
42
+ token: str
56
43
  r"""The symbol or address of the token to transfer."""
57
44
 
58
45
  amount: TokenTransferParamsAmount
@@ -1,26 +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
- 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."""
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
24
11
 
25
12
 
26
13
  TokenTransferRequestAmountTypedDict = TypeAliasType(
@@ -46,7 +33,7 @@ class TokenTransferRequestTypedDict(TypedDict):
46
33
 
47
34
  to: str
48
35
  r"""The recipient of the tokens."""
49
- token: TokenTransferRequestTokenTypedDict
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"""
@@ -54,6 +41,8 @@ class TokenTransferRequestTypedDict(TypedDict):
54
41
  sender: str
55
42
  r"""The address of the transaction sender."""
56
43
  action_type: Literal["TOKEN_TRANSFER"]
44
+ estimate_gas: NotRequired[bool]
45
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
57
46
 
58
47
 
59
48
  class TokenTransferRequest(BaseModel):
@@ -62,7 +51,7 @@ class TokenTransferRequest(BaseModel):
62
51
  to: str
63
52
  r"""The recipient of the tokens."""
64
53
 
65
- token: TokenTransferRequestToken
54
+ token: str
66
55
  r"""The symbol or address of the token to transfer."""
67
56
 
68
57
  amount: TokenTransferRequestAmount
@@ -80,3 +69,6 @@ class TokenTransferRequest(BaseModel):
80
69
  ],
81
70
  pydantic.Field(alias="action_type"),
82
71
  ] = "TOKEN_TRANSFER"
72
+
73
+ estimate_gas: Optional[bool] = True
74
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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: UniswapBuyExactlyParamsTokenInTypedDict
52
- r"""The symbol or address of the token to swap from."""
53
- token_out: UniswapBuyExactlyParamsTokenOutTypedDict
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: UniswapBuyExactlyParamsTokenIn
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: UniswapBuyExactlyParamsTokenOut
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,38 +2,13 @@
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
9
8
  import pydantic
10
9
  from pydantic.functional_validators import AfterValidator
11
10
  from typing import Literal, Optional, Union
12
- from typing_extensions import Annotated, TypeAliasType, TypedDict
13
-
14
-
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."""
11
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
37
12
 
38
13
 
39
14
  UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
@@ -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: UniswapBuyExactlyRequestTokenInTypedDict
61
- r"""The symbol or address of the token to swap from."""
62
- token_out: UniswapBuyExactlyRequestTokenOutTypedDict
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
 
@@ -74,16 +49,18 @@ class UniswapBuyExactlyRequestTypedDict(TypedDict):
74
49
  sender: str
75
50
  r"""The address of the transaction sender."""
76
51
  action_type: Literal["UNISWAP_BUY_EXACTLY"]
52
+ estimate_gas: NotRequired[bool]
53
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
77
54
 
78
55
 
79
56
  class UniswapBuyExactlyRequest(BaseModel):
80
57
  r"""Request model for buying an exact amount of tokens."""
81
58
 
82
- token_in: UniswapBuyExactlyRequestTokenIn
83
- r"""The symbol or address of the token to swap from."""
59
+ token_in: str
60
+ r"""The symbol or address of the token to swap from.."""
84
61
 
85
- token_out: UniswapBuyExactlyRequestTokenOut
86
- r"""The symbol or address of the token to swap to."""
62
+ token_out: str
63
+ r"""The symbol or address of the token to swap to.."""
87
64
 
88
65
  fee: FeeEnum
89
66
  r"""The transaction fee of a Uniswap pool in bips.
@@ -109,3 +86,6 @@ class UniswapBuyExactlyRequest(BaseModel):
109
86
  ],
110
87
  pydantic.Field(alias="action_type"),
111
88
  ] = "UNISWAP_BUY_EXACTLY"
89
+
90
+ estimate_gas: Optional[bool] = True
91
+ 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, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
11
11
 
12
12
 
13
13
  UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
@@ -81,6 +81,8 @@ class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
81
81
  sender: str
82
82
  r"""The address of the transaction sender."""
83
83
  action_type: Literal["UNISWAP_ADD_LIQUIDITY"]
84
+ estimate_gas: NotRequired[bool]
85
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
84
86
 
85
87
 
86
88
  class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
@@ -113,3 +115,6 @@ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
113
115
  ],
114
116
  pydantic.Field(alias="action_type"),
115
117
  ] = "UNISWAP_ADD_LIQUIDITY"
118
+
119
+ estimate_gas: Optional[bool] = True
120
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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: TokenEnum
71
- r"""A class representing the token.
72
-
73
- This class is used to represent the token in the system. Notice individual
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: TokenEnum
106
- r"""A class representing the token.
96
+ token0: str
97
+ r"""The symbol or address of the first token in the pair."""
107
98
 
108
- This class is used to represent the token in the system. Notice individual
109
- endpoints' documentation where per chain tokens are presented.
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: TokenEnum
80
- r"""A class representing the token.
81
-
82
- This class is used to represent the token in the system. Notice individual
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
 
@@ -111,24 +102,18 @@ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
111
102
  action_type: Literal["UNISWAP_MINT_LIQUIDITY_PROVISION"]
112
103
  recipient: NotRequired[Nullable[str]]
113
104
  r"""The address that will receive the LP tokens"""
105
+ estimate_gas: NotRequired[bool]
106
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
114
107
 
115
108
 
116
109
  class UniswapMintLiquidityProvisionRequest(BaseModel):
117
110
  r"""Request model for minting a new liquidity position."""
118
111
 
119
- token0: TokenEnum
120
- r"""A class representing the token.
112
+ token0: str
113
+ r"""The symbol or address of the first token in the pair."""
121
114
 
122
- This class is used to represent the token in the system. Notice individual
123
- endpoints' documentation where per chain tokens are presented.
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
- """
115
+ token1: str
116
+ r"""The symbol or address of the second token in the pair."""
132
117
 
133
118
  fee: FeeEnum
134
119
  r"""The transaction fee of a Uniswap pool in bips.
@@ -170,9 +155,12 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
170
155
  recipient: OptionalNullable[str] = UNSET
171
156
  r"""The address that will receive the LP tokens"""
172
157
 
158
+ estimate_gas: Optional[bool] = True
159
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
160
+
173
161
  @model_serializer(mode="wrap")
174
162
  def serialize_model(self, handler):
175
- optional_fields = ["action_type", "recipient"]
163
+ optional_fields = ["action_type", "recipient", "estimate_gas"]
176
164
  nullable_fields = ["recipient"]
177
165
  null_default_fields = []
178
166