compass_api_sdk 1.1.2__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.2.dist-info → compass_api_sdk-1.1.3.dist-info}/METADATA +5 -7
  100. {compass_api_sdk-1.1.2.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.2.dist-info → compass_api_sdk-1.1.3.dist-info}/WHEEL +0 -0
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -29,12 +28,8 @@ r"""The amount of the asset to borrow"""
29
28
 
30
29
 
31
30
  class AaveBorrowParamsTypedDict(TypedDict):
32
- token: TokenEnum
33
- r"""A class representing the token.
34
-
35
- This class is used to represent the token in the system. Notice individual
36
- endpoints' documentation where per chain tokens are presented.
37
- """
31
+ token: str
32
+ r"""The symbol or address of the underlying asset to borrow.."""
38
33
  amount: AaveBorrowParamsAmountTypedDict
39
34
  r"""The amount of the asset to borrow"""
40
35
  interest_rate_mode: InterestRateMode
@@ -48,12 +43,8 @@ class AaveBorrowParamsTypedDict(TypedDict):
48
43
 
49
44
 
50
45
  class AaveBorrowParams(BaseModel):
51
- token: TokenEnum
52
- r"""A class representing the token.
53
-
54
- This class is used to represent the token in the system. Notice individual
55
- endpoints' documentation where per chain tokens are presented.
56
- """
46
+ token: str
47
+ r"""The symbol or address of the underlying asset to borrow.."""
57
48
 
58
49
  amount: AaveBorrowParamsAmount
59
50
  r"""The amount of the asset to borrow"""
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -36,12 +35,8 @@ class AaveBorrowRequestChain(str, Enum):
36
35
 
37
36
 
38
37
  class AaveBorrowRequestTypedDict(TypedDict):
39
- token: TokenEnum
40
- r"""A class representing the token.
41
-
42
- This class is used to represent the token in the system. Notice individual
43
- endpoints' documentation where per chain tokens are presented.
44
- """
38
+ token: str
39
+ r"""The symbol or address of the underlying asset to borrow.."""
45
40
  amount: AaveBorrowRequestAmountTypedDict
46
41
  r"""The amount of the asset to borrow"""
47
42
  interest_rate_mode: InterestRateMode
@@ -55,15 +50,13 @@ class AaveBorrowRequestTypedDict(TypedDict):
55
50
  action_type: Literal["AAVE_BORROW"]
56
51
  on_behalf_of: NotRequired[Nullable[str]]
57
52
  r"""The address on behalf of whom the supply is made"""
53
+ estimate_gas: NotRequired[bool]
54
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
58
55
 
59
56
 
60
57
  class AaveBorrowRequest(BaseModel):
61
- token: TokenEnum
62
- r"""A class representing the token.
63
-
64
- This class is used to represent the token in the system. Notice individual
65
- endpoints' documentation where per chain tokens are presented.
66
- """
58
+ token: str
59
+ r"""The symbol or address of the underlying asset to borrow.."""
67
60
 
68
61
  amount: AaveBorrowRequestAmount
69
62
  r"""The amount of the asset to borrow"""
@@ -90,9 +83,12 @@ class AaveBorrowRequest(BaseModel):
90
83
  on_behalf_of: OptionalNullable[str] = UNSET
91
84
  r"""The address on behalf of whom the supply is made"""
92
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."""
88
+
93
89
  @model_serializer(mode="wrap")
94
90
  def serialize_model(self, handler):
95
- optional_fields = ["action_type", "on_behalf_of"]
91
+ optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
96
92
  nullable_fields = ["on_behalf_of"]
97
93
  null_default_fields = []
98
94
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -64,18 +63,10 @@ class AaveLoopRequestTypedDict(TypedDict):
64
63
  chain: AaveLoopRequestChain
65
64
  sender: str
66
65
  r"""The address of the transaction sender."""
67
- collateral_token: TokenEnum
68
- r"""A class representing the token.
69
-
70
- This class is used to represent the token in the system. Notice individual
71
- endpoints' documentation where per chain tokens are presented.
72
- """
73
- borrow_token: TokenEnum
74
- r"""A class representing the token.
75
-
76
- This class is used to represent the token in the system. Notice individual
77
- endpoints' documentation where per chain tokens are presented.
78
- """
66
+ collateral_token: str
67
+ r"""Symbol or address of token to supply to Aave.."""
68
+ borrow_token: str
69
+ r"""Symbol or address of token to borrow from Aave.."""
79
70
  initial_collateral_amount: InitialCollateralAmountTypedDict
80
71
  r"""Amount of collateral token to supply to Aave"""
81
72
  multiplier: MultiplierTypedDict
@@ -84,6 +75,8 @@ class AaveLoopRequestTypedDict(TypedDict):
84
75
  r"""Maximum allowed slippage for token swaps in percentage"""
85
76
  loan_to_value: LoanToValueTypedDict
86
77
  r"""Loan To Value percentage of the loop"""
78
+ estimate_gas: NotRequired[bool]
79
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
87
80
  signed_authorization: NotRequired[Nullable[SignedAuthorizationTypedDict]]
88
81
  r"""EIP-7702 authorization. Required when `is_account_abstraction` is False."""
89
82
  is_account_abstraction: NotRequired[bool]
@@ -98,19 +91,11 @@ class AaveLoopRequest(BaseModel):
98
91
  sender: str
99
92
  r"""The address of the transaction sender."""
100
93
 
101
- collateral_token: TokenEnum
102
- r"""A class representing the token.
94
+ collateral_token: str
95
+ r"""Symbol or address of token to supply to Aave.."""
103
96
 
104
- This class is used to represent the token in the system. Notice individual
105
- endpoints' documentation where per chain tokens are presented.
106
- """
107
-
108
- borrow_token: TokenEnum
109
- r"""A class representing the token.
110
-
111
- This class is used to represent the token in the system. Notice individual
112
- endpoints' documentation where per chain tokens are presented.
113
- """
97
+ borrow_token: str
98
+ r"""Symbol or address of token to borrow from Aave.."""
114
99
 
115
100
  initial_collateral_amount: InitialCollateralAmount
116
101
  r"""Amount of collateral token to supply to Aave"""
@@ -124,6 +109,9 @@ class AaveLoopRequest(BaseModel):
124
109
  loan_to_value: LoanToValue
125
110
  r"""Loan To Value percentage of the loop"""
126
111
 
112
+ estimate_gas: Optional[bool] = True
113
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
114
+
127
115
  signed_authorization: OptionalNullable[SignedAuthorization] = UNSET
128
116
  r"""EIP-7702 authorization. Required when `is_account_abstraction` is False."""
129
117
 
@@ -132,7 +120,11 @@ class AaveLoopRequest(BaseModel):
132
120
 
133
121
  @model_serializer(mode="wrap")
134
122
  def serialize_model(self, handler):
135
- optional_fields = ["signed_authorization", "is_account_abstraction"]
123
+ optional_fields = [
124
+ "estimate_gas",
125
+ "signed_authorization",
126
+ "is_account_abstraction",
127
+ ]
136
128
  nullable_fields = ["signed_authorization"]
137
129
  null_default_fields = []
138
130
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -29,12 +28,8 @@ r"""The amount of the asset to repay"""
29
28
 
30
29
 
31
30
  class AaveRepayParamsTypedDict(TypedDict):
32
- token: TokenEnum
33
- r"""A class representing the token.
34
-
35
- This class is used to represent the token in the system. Notice individual
36
- endpoints' documentation where per chain tokens are presented.
37
- """
31
+ token: str
32
+ r"""The symbol of the underlying asset to repay.."""
38
33
  amount: AaveRepayParamsAmountTypedDict
39
34
  r"""The amount of the asset to repay"""
40
35
  interest_rate_mode: InterestRateMode
@@ -48,12 +43,8 @@ class AaveRepayParamsTypedDict(TypedDict):
48
43
 
49
44
 
50
45
  class AaveRepayParams(BaseModel):
51
- token: TokenEnum
52
- r"""A class representing the token.
53
-
54
- This class is used to represent the token in the system. Notice individual
55
- endpoints' documentation where per chain tokens are presented.
56
- """
46
+ token: str
47
+ r"""The symbol of the underlying asset to repay.."""
57
48
 
58
49
  amount: AaveRepayParamsAmount
59
50
  r"""The amount of the asset to repay"""
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
- from .token_enum import TokenEnum
6
5
  from compass_api_sdk.types import (
7
6
  BaseModel,
8
7
  Nullable,
@@ -36,12 +35,8 @@ class AaveRepayRequestChain(str, Enum):
36
35
 
37
36
 
38
37
  class AaveRepayRequestTypedDict(TypedDict):
39
- token: TokenEnum
40
- r"""A class representing the token.
41
-
42
- This class is used to represent the token in the system. Notice individual
43
- endpoints' documentation where per chain tokens are presented.
44
- """
38
+ token: str
39
+ r"""The symbol of the underlying asset to repay.."""
45
40
  amount: AaveRepayRequestAmountTypedDict
46
41
  r"""The amount of the asset to repay"""
47
42
  interest_rate_mode: InterestRateMode
@@ -55,15 +50,13 @@ class AaveRepayRequestTypedDict(TypedDict):
55
50
  action_type: Literal["AAVE_REPAY"]
56
51
  on_behalf_of: NotRequired[Nullable[str]]
57
52
  r"""The address on behalf of whom the supply is made"""
53
+ estimate_gas: NotRequired[bool]
54
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
58
55
 
59
56
 
60
57
  class AaveRepayRequest(BaseModel):
61
- token: TokenEnum
62
- r"""A class representing the token.
63
-
64
- This class is used to represent the token in the system. Notice individual
65
- endpoints' documentation where per chain tokens are presented.
66
- """
58
+ token: str
59
+ r"""The symbol of the underlying asset to repay.."""
67
60
 
68
61
  amount: AaveRepayRequestAmount
69
62
  r"""The amount of the asset to repay"""
@@ -90,9 +83,12 @@ class AaveRepayRequest(BaseModel):
90
83
  on_behalf_of: OptionalNullable[str] = UNSET
91
84
  r"""The address on behalf of whom the supply is made"""
92
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."""
88
+
93
89
  @model_serializer(mode="wrap")
94
90
  def serialize_model(self, handler):
95
- optional_fields = ["action_type", "on_behalf_of"]
91
+ optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
96
92
  nullable_fields = ["on_behalf_of"]
97
93
  null_default_fields = []
98
94
 
@@ -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,
@@ -28,12 +27,8 @@ r"""The amount of the asset to supply"""
28
27
 
29
28
 
30
29
  class AaveSupplyParamsTypedDict(TypedDict):
31
- token: TokenEnum
32
- r"""A class representing the token.
33
-
34
- This class is used to represent the token in the system. Notice individual
35
- endpoints' documentation where per chain tokens are presented.
36
- """
30
+ token: str
31
+ r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
37
32
  amount: AaveSupplyParamsAmountTypedDict
38
33
  r"""The amount of the asset to supply"""
39
34
  action_type: Literal["AAVE_SUPPLY"]
@@ -42,12 +37,8 @@ class AaveSupplyParamsTypedDict(TypedDict):
42
37
 
43
38
 
44
39
  class AaveSupplyParams(BaseModel):
45
- token: TokenEnum
46
- r"""A class representing the token.
47
-
48
- This class is used to represent the token in the system. Notice individual
49
- endpoints' documentation where per chain tokens are presented.
50
- """
40
+ token: str
41
+ r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
51
42
 
52
43
  amount: AaveSupplyParamsAmount
53
44
  r"""The amount of the asset to supply"""
@@ -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,
@@ -35,12 +34,8 @@ class AaveSupplyRequestChain(str, Enum):
35
34
 
36
35
 
37
36
  class AaveSupplyRequestTypedDict(TypedDict):
38
- token: TokenEnum
39
- r"""A class representing the token.
40
-
41
- This class is used to represent the token in the system. Notice individual
42
- endpoints' documentation where per chain tokens are presented.
43
- """
37
+ token: str
38
+ r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
44
39
  amount: AaveSupplyRequestAmountTypedDict
45
40
  r"""The amount of the asset to supply"""
46
41
  chain: AaveSupplyRequestChain
@@ -49,15 +44,13 @@ class AaveSupplyRequestTypedDict(TypedDict):
49
44
  action_type: Literal["AAVE_SUPPLY"]
50
45
  on_behalf_of: NotRequired[Nullable[str]]
51
46
  r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
47
+ estimate_gas: NotRequired[bool]
48
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
52
49
 
53
50
 
54
51
  class AaveSupplyRequest(BaseModel):
55
- token: TokenEnum
56
- r"""A class representing the token.
57
-
58
- This class is used to represent the token in the system. Notice individual
59
- endpoints' documentation where per chain tokens are presented.
60
- """
52
+ token: str
53
+ r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
61
54
 
62
55
  amount: AaveSupplyRequestAmount
63
56
  r"""The amount of the asset to supply"""
@@ -78,9 +71,12 @@ class AaveSupplyRequest(BaseModel):
78
71
  on_behalf_of: OptionalNullable[str] = UNSET
79
72
  r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
80
73
 
74
+ estimate_gas: Optional[bool] = True
75
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
76
+
81
77
  @model_serializer(mode="wrap")
82
78
  def serialize_model(self, handler):
83
- optional_fields = ["action_type", "on_behalf_of"]
79
+ optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
84
80
  nullable_fields = ["on_behalf_of"]
85
81
  null_default_fields = []
86
82
 
@@ -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
@@ -21,12 +20,8 @@ r"""The amount of the asset to withdraw"""
21
20
 
22
21
 
23
22
  class AaveWithdrawParamsTypedDict(TypedDict):
24
- token: TokenEnum
25
- r"""A class representing the token.
26
-
27
- This class is used to represent the token in the system. Notice individual
28
- endpoints' documentation where per chain tokens are presented.
29
- """
23
+ token: str
24
+ r"""The symbol of the underlying asset to withdraw.."""
30
25
  amount: AaveWithdrawParamsAmountTypedDict
31
26
  r"""The amount of the asset to withdraw"""
32
27
  recipient: str
@@ -35,12 +30,8 @@ class AaveWithdrawParamsTypedDict(TypedDict):
35
30
 
36
31
 
37
32
  class AaveWithdrawParams(BaseModel):
38
- token: TokenEnum
39
- r"""A class representing the token.
40
-
41
- This class is used to represent the token in the system. Notice individual
42
- endpoints' documentation where per chain tokens are presented.
43
- """
33
+ token: str
34
+ r"""The symbol of the underlying asset to withdraw.."""
44
35
 
45
36
  amount: AaveWithdrawParamsAmount
46
37
  r"""The amount of the asset to withdraw"""
@@ -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
  AaveWithdrawRequestAmountTypedDict = TypeAliasType(
@@ -30,12 +29,8 @@ class AaveWithdrawRequestChain(str, Enum):
30
29
 
31
30
 
32
31
  class AaveWithdrawRequestTypedDict(TypedDict):
33
- token: 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
- """
32
+ token: str
33
+ r"""The symbol of the underlying asset to withdraw.."""
39
34
  amount: AaveWithdrawRequestAmountTypedDict
40
35
  r"""The amount of the asset to withdraw"""
41
36
  recipient: str
@@ -44,15 +39,13 @@ class AaveWithdrawRequestTypedDict(TypedDict):
44
39
  sender: str
45
40
  r"""The address of the transaction sender."""
46
41
  action_type: Literal["AAVE_WITHDRAW"]
42
+ estimate_gas: NotRequired[bool]
43
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
47
44
 
48
45
 
49
46
  class AaveWithdrawRequest(BaseModel):
50
- token: TokenEnum
51
- r"""A class representing the token.
52
-
53
- This class is used to represent the token in the system. Notice individual
54
- endpoints' documentation where per chain tokens are presented.
55
- """
47
+ token: str
48
+ r"""The symbol of the underlying asset to withdraw.."""
56
49
 
57
50
  amount: AaveWithdrawRequestAmount
58
51
  r"""The amount of the asset to withdraw"""
@@ -72,3 +65,6 @@ class AaveWithdrawRequest(BaseModel):
72
65
  ],
73
66
  pydantic.Field(alias="action_type"),
74
67
  ] = "AAVE_WITHDRAW"
68
+
69
+ estimate_gas: Optional[bool] = True
70
+ 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 typing_extensions import TypedDict
7
6
 
@@ -9,18 +8,8 @@ from typing_extensions import TypedDict
9
8
  class AerodromePositionTypedDict(TypedDict):
10
9
  nonce: int
11
10
  operator: str
12
- token0: TokenEnum
13
- r"""A class representing the token.
14
-
15
- This class is used to represent the token in the system. Notice individual
16
- endpoints' documentation where per chain tokens are presented.
17
- """
18
- token1: 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
- """
11
+ token0: str
12
+ token1: str
24
13
  tick_spacing: int
25
14
  tick_lower: int
26
15
  tick_upper: int
@@ -37,19 +26,9 @@ class AerodromePosition(BaseModel):
37
26
 
38
27
  operator: str
39
28
 
40
- token0: TokenEnum
41
- r"""A class representing the token.
29
+ token0: str
42
30
 
43
- This class is used to represent the token in the system. Notice individual
44
- endpoints' documentation where per chain tokens are presented.
45
- """
46
-
47
- token1: TokenEnum
48
- r"""A class representing the token.
49
-
50
- This class is used to represent the token in the system. Notice individual
51
- endpoints' documentation where per chain tokens are presented.
52
- """
31
+ token1: str
53
32
 
54
33
  tick_spacing: int
55
34
 
@@ -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
@@ -37,18 +36,10 @@ r"""The maximum amount of the token to swap from"""
37
36
  class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
38
37
  r"""Parameters model for buying exactly an amount of tokens."""
39
38
 
40
- token_in: TokenEnum
41
- r"""A class representing the token.
42
-
43
- This class is used to represent the token in the system. Notice individual
44
- endpoints' documentation where per chain tokens are presented.
45
- """
46
- token_out: TokenEnum
47
- r"""A class representing the token.
48
-
49
- This class is used to represent the token in the system. Notice individual
50
- endpoints' documentation where per chain tokens are presented.
51
- """
39
+ token_in: str
40
+ r"""The symbol of the token to swap from."""
41
+ token_out: str
42
+ r"""The symbol of the token to swap to."""
52
43
  tick_spacing: int
53
44
  r"""The tick spacing of the pool"""
54
45
  amount_out: AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict
@@ -61,19 +52,11 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
61
52
  class AerodromeSlipstreamBuyExactlyParams(BaseModel):
62
53
  r"""Parameters model for buying exactly an amount of tokens."""
63
54
 
64
- token_in: TokenEnum
65
- r"""A class representing the token.
66
-
67
- This class is used to represent the token in the system. Notice individual
68
- endpoints' documentation where per chain tokens are presented.
69
- """
70
-
71
- token_out: TokenEnum
72
- r"""A class representing the token.
55
+ token_in: str
56
+ r"""The symbol of the token to swap from."""
73
57
 
74
- This class is used to represent the token in the system. Notice individual
75
- endpoints' documentation where per chain tokens are presented.
76
- """
58
+ token_out: str
59
+ r"""The symbol of the token to swap to."""
77
60
 
78
61
  tick_spacing: int
79
62
  r"""The tick spacing of the pool"""
@@ -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
  AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
@@ -42,18 +41,10 @@ class AerodromeSlipstreamBuyExactlyRequestChain(str, Enum):
42
41
  class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
43
42
  r"""Request model for buying exactly an amount of tokens."""
44
43
 
45
- token_in: TokenEnum
46
- r"""A class representing the token.
47
-
48
- This class is used to represent the token in the system. Notice individual
49
- endpoints' documentation where per chain tokens are presented.
50
- """
51
- token_out: TokenEnum
52
- r"""A class representing the token.
53
-
54
- This class is used to represent the token in the system. Notice individual
55
- endpoints' documentation where per chain tokens are presented.
56
- """
44
+ token_in: str
45
+ r"""The symbol of the token to swap from."""
46
+ token_out: str
47
+ r"""The symbol of the token to swap to."""
57
48
  tick_spacing: int
58
49
  r"""The tick spacing of the pool"""
59
50
  amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict
@@ -64,24 +55,18 @@ class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
64
55
  sender: str
65
56
  r"""The address of the transaction sender."""
66
57
  action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
58
+ estimate_gas: NotRequired[bool]
59
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
67
60
 
68
61
 
69
62
  class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
70
63
  r"""Request model for buying exactly an amount of tokens."""
71
64
 
72
- token_in: TokenEnum
73
- r"""A class representing the token.
74
-
75
- This class is used to represent the token in the system. Notice individual
76
- endpoints' documentation where per chain tokens are presented.
77
- """
65
+ token_in: str
66
+ r"""The symbol of the token to swap from."""
78
67
 
79
- token_out: 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
- """
68
+ token_out: str
69
+ r"""The symbol of the token to swap to."""
85
70
 
86
71
  tick_spacing: int
87
72
  r"""The tick spacing of the pool"""
@@ -104,3 +89,6 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
104
89
  ],
105
90
  pydantic.Field(alias="action_type"),
106
91
  ] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
92
+
93
+ estimate_gas: Optional[bool] = True
94
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""