compass_api_sdk 1.1.1__py3-none-any.whl → 2.2.1rc3__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.
Files changed (263) hide show
  1. compass_api_sdk/_hooks/sdkhooks.py +4 -4
  2. compass_api_sdk/_hooks/types.py +1 -2
  3. compass_api_sdk/_version.py +3 -3
  4. compass_api_sdk/aave_v3.py +386 -114
  5. compass_api_sdk/aerodrome_slipstream.py +104 -54
  6. compass_api_sdk/basesdk.py +6 -0
  7. compass_api_sdk/bridge.py +536 -0
  8. compass_api_sdk/earn.py +2026 -0
  9. compass_api_sdk/erc_4626_vaults.py +28 -10
  10. compass_api_sdk/errors/__init__.py +8 -0
  11. compass_api_sdk/errors/apierror.py +1 -1
  12. compass_api_sdk/errors/compassapierror.py +1 -1
  13. compass_api_sdk/errors/httpvalidationerror.py +1 -1
  14. compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
  15. compass_api_sdk/errors/no_response_error.py +1 -1
  16. compass_api_sdk/errors/responsevalidationerror.py +1 -1
  17. compass_api_sdk/ethena.py +36 -10
  18. compass_api_sdk/gas_sponsorship.py +458 -0
  19. compass_api_sdk/httpclient.py +0 -1
  20. compass_api_sdk/models/__init__.py +820 -392
  21. compass_api_sdk/models/aaveborrowparams.py +4 -13
  22. compass_api_sdk/models/aaveborrowrequest.py +10 -14
  23. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +3 -3
  24. compass_api_sdk/models/aavelooprequest.py +32 -28
  25. compass_api_sdk/models/aaveposition.py +104 -0
  26. compass_api_sdk/models/aaverepayparams.py +4 -13
  27. compass_api_sdk/models/aaverepayrequest.py +10 -14
  28. compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
  29. compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
  30. compass_api_sdk/models/aavesupplyparams.py +4 -13
  31. compass_api_sdk/models/aavesupplyrequest.py +10 -14
  32. compass_api_sdk/models/aavevenue.py +27 -0
  33. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  34. compass_api_sdk/models/aavewithdrawrequest.py +10 -14
  35. compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
  36. compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
  37. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  38. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
  39. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
  40. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  41. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
  42. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  43. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  44. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
  45. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
  46. compass_api_sdk/models/approvetransferrequest.py +32 -0
  47. compass_api_sdk/models/approvetransferresponse.py +52 -0
  48. compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
  49. compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
  50. compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
  51. compass_api_sdk/models/chainmarketinfo.py +29 -0
  52. compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
  53. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
  54. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
  55. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
  56. compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
  57. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
  58. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
  59. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
  60. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
  61. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
  62. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
  63. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
  64. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py} +4 -2
  65. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_userposition.py → compass_api_backend_v1_models_pendle_read_response_market_userposition.py} +2 -2
  66. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
  67. compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_userposition.py → compass_api_backend_v1_models_vaults_read_response_vault_userposition.py} +2 -2
  68. compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
  69. compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +103 -0
  70. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
  71. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
  72. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
  73. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
  74. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
  75. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
  76. compass_api_sdk/models/createaccountrequest.py +40 -0
  77. compass_api_sdk/models/createaccountresponse.py +56 -0
  78. compass_api_sdk/models/depositevent.py +61 -0
  79. compass_api_sdk/models/depositforburnrequest.py +77 -0
  80. compass_api_sdk/models/depositforburnresponse.py +100 -0
  81. compass_api_sdk/models/earnmanageparams.py +76 -0
  82. compass_api_sdk/models/earnmanagerequest.py +132 -0
  83. compass_api_sdk/models/earnmanageresponse.py +52 -0
  84. compass_api_sdk/models/earnpositionsresponse.py +48 -0
  85. compass_api_sdk/models/earnswapparams.py +74 -0
  86. compass_api_sdk/models/earnswaprequest.py +90 -0
  87. compass_api_sdk/models/earnswapresponse.py +55 -0
  88. compass_api_sdk/models/earntransferrequest.py +104 -0
  89. compass_api_sdk/models/earntransferresponse.py +71 -0
  90. compass_api_sdk/models/eip712domainfield.py +20 -0
  91. compass_api_sdk/models/eip712field.py +20 -0
  92. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  93. compass_api_sdk/models/ethenagetvaultresponse.py +5 -5
  94. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  95. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  96. compass_api_sdk/models/fee.py +43 -0
  97. compass_api_sdk/models/listaavemarketsresponse.py +21 -0
  98. compass_api_sdk/models/marketposition.py +5 -5
  99. compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
  100. compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
  101. compass_api_sdk/models/mintpreparependingresponse.py +65 -0
  102. compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
  103. compass_api_sdk/models/mintpreparerequest.py +25 -0
  104. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  105. compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
  106. compass_api_sdk/models/morphodepositrequest.py +6 -1
  107. compass_api_sdk/models/morphogetmarketresponse.py +72 -31
  108. compass_api_sdk/models/morphomarket.py +26 -20
  109. compass_api_sdk/models/morphorepayrequest.py +11 -1
  110. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  111. compass_api_sdk/models/morphovault.py +10 -10
  112. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  113. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  114. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  115. compass_api_sdk/models/odosswapparams.py +9 -30
  116. compass_api_sdk/models/odosswaprequest.py +15 -33
  117. compass_api_sdk/models/oneinchswapparams.py +59 -0
  118. compass_api_sdk/models/openposition.py +7 -7
  119. compass_api_sdk/models/operationtype.py +11 -0
  120. compass_api_sdk/models/pendledepositevent.py +49 -0
  121. compass_api_sdk/models/pendlegetmarketresponse.py +5 -5
  122. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  123. compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
  124. compass_api_sdk/models/pendlemarketinfo.py +138 -0
  125. compass_api_sdk/models/pendlemarketsresponse.py +30 -0
  126. compass_api_sdk/models/pendleptposition.py +111 -0
  127. compass_api_sdk/models/pendleptvenue.py +78 -0
  128. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  129. compass_api_sdk/models/pendletradeptparams.py +2 -15
  130. compass_api_sdk/models/pendletradeptrequest.py +8 -16
  131. compass_api_sdk/models/pendletradeytparams.py +2 -15
  132. compass_api_sdk/models/pendletradeytrequest.py +8 -16
  133. compass_api_sdk/models/pendlewithdrawalevent.py +54 -0
  134. compass_api_sdk/models/permit2typeddata_input.py +46 -0
  135. compass_api_sdk/models/permit2typeddata_output.py +46 -0
  136. compass_api_sdk/models/permitfield.py +20 -0
  137. compass_api_sdk/models/permitmessage.py +39 -0
  138. compass_api_sdk/models/permittransferfrommessage.py +29 -0
  139. compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
  140. compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
  141. compass_api_sdk/models/portfolio.py +5 -5
  142. compass_api_sdk/models/positionpnl.py +52 -0
  143. compass_api_sdk/models/reserve.py +6 -15
  144. compass_api_sdk/models/safetransactionparams.py +78 -0
  145. compass_api_sdk/models/safetransactionresponse.py +28 -0
  146. compass_api_sdk/models/safetxfield.py +20 -0
  147. compass_api_sdk/models/safetxmessage.py +66 -0
  148. compass_api_sdk/models/setallowanceparams.py +3 -16
  149. compass_api_sdk/models/setallowancerequest.py +9 -17
  150. compass_api_sdk/models/skybuyrequest.py +6 -1
  151. compass_api_sdk/models/skydepositrequest.py +7 -2
  152. compass_api_sdk/models/skysellrequest.py +7 -2
  153. compass_api_sdk/models/skywithdrawrequest.py +7 -2
  154. compass_api_sdk/models/sponsorgasrequest.py +71 -0
  155. compass_api_sdk/models/sponsorgasresponse.py +14 -0
  156. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  157. compass_api_sdk/models/tokenconfig.py +30 -0
  158. compass_api_sdk/models/tokenlistresponse.py +21 -0
  159. compass_api_sdk/models/tokenmarketdata.py +27 -0
  160. compass_api_sdk/models/tokenpermissions.py +20 -0
  161. compass_api_sdk/models/tokentransferparams.py +2 -15
  162. compass_api_sdk/models/tokentransferrequest.py +8 -16
  163. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  164. compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
  165. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  166. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  167. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
  168. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  169. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  170. compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
  171. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  172. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  173. compass_api_sdk/models/unsignedtransaction.py +34 -3
  174. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  175. compass_api_sdk/models/useroperation.py +33 -24
  176. compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
  177. compass_api_sdk/models/v1_aave_avg_rateop.py +15 -93
  178. compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
  179. compass_api_sdk/models/v1_aave_liquidity_changeop.py +8 -86
  180. compass_api_sdk/models/v1_aave_rateop.py +8 -86
  181. compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -86
  182. compass_api_sdk/models/v1_aave_std_rateop.py +15 -93
  183. compass_api_sdk/models/v1_aave_token_priceop.py +8 -86
  184. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +14 -92
  185. compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
  186. compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +48 -3
  187. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +12 -168
  188. compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
  189. compass_api_sdk/models/v1_generic_allowanceop.py +12 -26
  190. compass_api_sdk/models/v1_generic_ensop.py +2 -2
  191. compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
  192. compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
  193. compass_api_sdk/models/v1_morpho_marketop.py +2 -2
  194. compass_api_sdk/models/v1_morpho_marketsop.py +10 -30
  195. compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
  196. compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
  197. compass_api_sdk/models/v1_morpho_vaultsop.py +6 -16
  198. compass_api_sdk/models/v1_pendle_marketop.py +8 -8
  199. compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
  200. compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
  201. compass_api_sdk/models/v1_sky_positionop.py +5 -6
  202. compass_api_sdk/models/v1_token_balanceop.py +12 -25
  203. compass_api_sdk/models/{v1_generic_supported_tokensop.py → v1_token_listop.py} +6 -6
  204. compass_api_sdk/models/v1_token_priceop.py +8 -9
  205. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -6
  206. compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
  207. compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
  208. compass_api_sdk/models/v1_uniswap_pool_priceop.py +12 -168
  209. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +20 -176
  210. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +20 -176
  211. compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
  212. compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
  213. compass_api_sdk/models/v2_cctp_mintop.py +47 -0
  214. compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
  215. compass_api_sdk/models/v2_earn_pendle_marketsop.py +105 -0
  216. compass_api_sdk/models/v2_earn_positionsop.py +31 -0
  217. compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
  218. compass_api_sdk/models/v2bundlerequest.py +33 -0
  219. compass_api_sdk/models/v2bundleresponse.py +67 -0
  220. compass_api_sdk/models/v2useroperation.py +37 -0
  221. compass_api_sdk/models/vault.py +14 -14
  222. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  223. compass_api_sdk/models/vaultgetvaultresponse.py +5 -5
  224. compass_api_sdk/models/vaultinfo.py +129 -0
  225. compass_api_sdk/models/vaultsresponse.py +30 -0
  226. compass_api_sdk/models/vaultvenue.py +27 -0
  227. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  228. compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
  229. compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
  230. compass_api_sdk/models/withdrawalevent.py +61 -0
  231. compass_api_sdk/models/wrapethrequest.py +6 -1
  232. compass_api_sdk/morpho.py +126 -78
  233. compass_api_sdk/pendle.py +68 -44
  234. compass_api_sdk/sdk.py +18 -11
  235. compass_api_sdk/sky.py +62 -38
  236. compass_api_sdk/smart_account.py +10 -2
  237. compass_api_sdk/swap.py +22 -22
  238. compass_api_sdk/{token_sdk.py → token.py} +511 -103
  239. compass_api_sdk/transaction_bundler.py +46 -16
  240. compass_api_sdk/types/basemodel.py +41 -3
  241. compass_api_sdk/uniswap_v3.py +152 -114
  242. compass_api_sdk/universal.py +44 -606
  243. compass_api_sdk/utils/__init__.py +0 -3
  244. compass_api_sdk/utils/annotations.py +32 -8
  245. compass_api_sdk/utils/enums.py +60 -0
  246. compass_api_sdk/utils/forms.py +21 -10
  247. compass_api_sdk/utils/queryparams.py +14 -2
  248. compass_api_sdk/utils/requestbodies.py +3 -3
  249. compass_api_sdk/utils/retries.py +69 -5
  250. compass_api_sdk/utils/serializers.py +0 -20
  251. compass_api_sdk/utils/unmarshal_json_response.py +15 -1
  252. compass_api_sdk/wildcat.py +208 -0
  253. compass_api_sdk-2.2.1rc3.dist-info/METADATA +624 -0
  254. compass_api_sdk-2.2.1rc3.dist-info/RECORD +356 -0
  255. {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.2.1rc3.dist-info}/WHEEL +1 -1
  256. compass_api_sdk/models/aerodromeposition.py +0 -70
  257. compass_api_sdk/models/token_enum.py +0 -81
  258. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  259. compass_api_sdk/models/tokeninfo.py +0 -17
  260. compass_api_sdk/models/v1_token_addressop.py +0 -109
  261. compass_api_sdk/models/vaultposition.py +0 -24
  262. compass_api_sdk-1.1.1.dist-info/METADATA +0 -592
  263. compass_api_sdk-1.1.1.dist-info/RECORD +0 -275
@@ -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] = None
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] = None
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] = None
87
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -0,0 +1,54 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class PendleWithdrawalEventTypedDict(TypedDict):
9
+ r"""Pendle PT withdrawal event with cost basis at time of withdrawal."""
10
+
11
+ block_number: int
12
+ r"""Block number when withdrawal occurred"""
13
+ transaction_hash: str
14
+ r"""Transaction hash of the withdrawal"""
15
+ input_amount: str
16
+ r"""PT tokens sold/redeemed"""
17
+ input_symbol: str
18
+ r"""Symbol (PT)"""
19
+ output_amount: str
20
+ r"""Amount received (SY or token)"""
21
+ output_symbol: str
22
+ r"""Symbol of token received"""
23
+ realized_pnl: str
24
+ r"""Profit/loss: output value - cost basis consumed"""
25
+ cost_per_unit: str
26
+ r"""Cost basis per PT at withdrawal (SY received per PT sold)"""
27
+
28
+
29
+ class PendleWithdrawalEvent(BaseModel):
30
+ r"""Pendle PT withdrawal event with cost basis at time of withdrawal."""
31
+
32
+ block_number: int
33
+ r"""Block number when withdrawal occurred"""
34
+
35
+ transaction_hash: str
36
+ r"""Transaction hash of the withdrawal"""
37
+
38
+ input_amount: str
39
+ r"""PT tokens sold/redeemed"""
40
+
41
+ input_symbol: str
42
+ r"""Symbol (PT)"""
43
+
44
+ output_amount: str
45
+ r"""Amount received (SY or token)"""
46
+
47
+ output_symbol: str
48
+ r"""Symbol of token received"""
49
+
50
+ realized_pnl: str
51
+ r"""Profit/loss: output value - cost basis consumed"""
52
+
53
+ cost_per_unit: str
54
+ r"""Cost basis per PT at withdrawal (SY received per PT sold)"""
@@ -0,0 +1,46 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain import (
5
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain,
6
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict,
7
+ )
8
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types import (
9
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types,
10
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict,
11
+ )
12
+ from .permittransferfrommessage import (
13
+ PermitTransferFromMessage,
14
+ PermitTransferFromMessageTypedDict,
15
+ )
16
+ from compass_api_sdk.types import BaseModel
17
+ from compass_api_sdk.utils import validate_const
18
+ import pydantic
19
+ from pydantic.functional_validators import AfterValidator
20
+ from typing import Literal, Optional
21
+ from typing_extensions import Annotated, TypedDict
22
+
23
+
24
+ class Permit2TypedDataInputTypedDict(TypedDict):
25
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict
26
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict
27
+ message: PermitTransferFromMessageTypedDict
28
+ primary_type: Literal["PermitTransferFrom"]
29
+ r"""Root type for signing"""
30
+
31
+
32
+ class Permit2TypedDataInput(BaseModel):
33
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
34
+
35
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
36
+
37
+ message: PermitTransferFromMessage
38
+
39
+ PRIMARY_TYPE: Annotated[
40
+ Annotated[
41
+ Optional[Literal["PermitTransferFrom"]],
42
+ AfterValidator(validate_const("PermitTransferFrom")),
43
+ ],
44
+ pydantic.Field(alias="primaryType"),
45
+ ] = "PermitTransferFrom"
46
+ r"""Root type for signing"""
@@ -0,0 +1,46 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain import (
5
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain,
6
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict,
7
+ )
8
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types import (
9
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types,
10
+ CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict,
11
+ )
12
+ from .permittransferfrommessage import (
13
+ PermitTransferFromMessage,
14
+ PermitTransferFromMessageTypedDict,
15
+ )
16
+ from compass_api_sdk.types import BaseModel
17
+ from compass_api_sdk.utils import validate_const
18
+ import pydantic
19
+ from pydantic.functional_validators import AfterValidator
20
+ from typing import Literal, Optional
21
+ from typing_extensions import Annotated, TypedDict
22
+
23
+
24
+ class Permit2TypedDataOutputTypedDict(TypedDict):
25
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict
26
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict
27
+ message: PermitTransferFromMessageTypedDict
28
+ primary_type: Literal["PermitTransferFrom"]
29
+ r"""Root type for signing"""
30
+
31
+
32
+ class Permit2TypedDataOutput(BaseModel):
33
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
34
+
35
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
36
+
37
+ message: PermitTransferFromMessage
38
+
39
+ PRIMARY_TYPE: Annotated[
40
+ Annotated[
41
+ Optional[Literal["PermitTransferFrom"]],
42
+ AfterValidator(validate_const("PermitTransferFrom")),
43
+ ],
44
+ pydantic.Field(alias="primaryType"),
45
+ ] = "PermitTransferFrom"
46
+ r"""Root type for signing"""
@@ -0,0 +1,20 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class PermitFieldTypedDict(TypedDict):
9
+ r"""A field in the Permit type definition."""
10
+
11
+ name: str
12
+ type: str
13
+
14
+
15
+ class PermitField(BaseModel):
16
+ r"""A field in the Permit type definition."""
17
+
18
+ name: str
19
+
20
+ type: str
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class PermitMessageTypedDict(TypedDict):
9
+ r"""The message data for an ERC-20 Permit."""
10
+
11
+ owner: str
12
+ r"""Token owner address"""
13
+ spender: str
14
+ r"""Address authorized to spend tokens"""
15
+ value: str
16
+ r"""Amount to approve (as string)"""
17
+ nonce: str
18
+ r"""Current permit nonce for the owner"""
19
+ deadline: str
20
+ r"""Permit expiry timestamp"""
21
+
22
+
23
+ class PermitMessage(BaseModel):
24
+ r"""The message data for an ERC-20 Permit."""
25
+
26
+ owner: str
27
+ r"""Token owner address"""
28
+
29
+ spender: str
30
+ r"""Address authorized to spend tokens"""
31
+
32
+ value: str
33
+ r"""Amount to approve (as string)"""
34
+
35
+ nonce: str
36
+ r"""Current permit nonce for the owner"""
37
+
38
+ deadline: str
39
+ r"""Permit expiry timestamp"""
@@ -0,0 +1,29 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .tokenpermissions import TokenPermissions, TokenPermissionsTypedDict
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing_extensions import TypedDict
7
+
8
+
9
+ class PermitTransferFromMessageTypedDict(TypedDict):
10
+ permitted: TokenPermissionsTypedDict
11
+ spender: str
12
+ r"""Address allowed to transfer (caller of permitTransferFrom)"""
13
+ nonce: int
14
+ r"""Unique nonce to prevent replay"""
15
+ deadline: int
16
+ r"""Unix timestamp after which signature expires"""
17
+
18
+
19
+ class PermitTransferFromMessage(BaseModel):
20
+ permitted: TokenPermissions
21
+
22
+ spender: str
23
+ r"""Address allowed to transfer (caller of permitTransferFrom)"""
24
+
25
+ nonce: int
26
+ r"""Unique nonce to prevent replay"""
27
+
28
+ deadline: int
29
+ r"""Unix timestamp after which signature expires"""
@@ -0,0 +1,50 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain import (
5
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain,
6
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict,
7
+ )
8
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types import (
9
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types,
10
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict,
11
+ )
12
+ from .permitmessage import PermitMessage, PermitMessageTypedDict
13
+ from compass_api_sdk.types import BaseModel
14
+ from compass_api_sdk.utils import validate_const
15
+ import pydantic
16
+ from pydantic.functional_validators import AfterValidator
17
+ from typing import Literal
18
+ from typing_extensions import Annotated, TypedDict
19
+
20
+
21
+ class PermitTypedDataResponseInputTypedDict(TypedDict):
22
+ r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
23
+
24
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict
25
+ r"""The EIP-712 domain separator for ERC-20 Permit."""
26
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict
27
+ r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
28
+ message: PermitMessageTypedDict
29
+ r"""The message data for an ERC-20 Permit."""
30
+ primary_type: Literal["Permit"]
31
+ r"""Primary type for the structured data"""
32
+
33
+
34
+ class PermitTypedDataResponseInput(BaseModel):
35
+ r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
36
+
37
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain
38
+ r"""The EIP-712 domain separator for ERC-20 Permit."""
39
+
40
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types
41
+ r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
42
+
43
+ message: PermitMessage
44
+ r"""The message data for an ERC-20 Permit."""
45
+
46
+ PRIMARY_TYPE: Annotated[
47
+ Annotated[Literal["Permit"], AfterValidator(validate_const("Permit"))],
48
+ pydantic.Field(alias="primaryType"),
49
+ ] = "Permit"
50
+ r"""Primary type for the structured data"""
@@ -0,0 +1,50 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain import (
5
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain,
6
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict,
7
+ )
8
+ from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types import (
9
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types,
10
+ CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict,
11
+ )
12
+ from .permitmessage import PermitMessage, PermitMessageTypedDict
13
+ from compass_api_sdk.types import BaseModel
14
+ from compass_api_sdk.utils import validate_const
15
+ import pydantic
16
+ from pydantic.functional_validators import AfterValidator
17
+ from typing import Literal
18
+ from typing_extensions import Annotated, TypedDict
19
+
20
+
21
+ class PermitTypedDataResponseOutputTypedDict(TypedDict):
22
+ r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
23
+
24
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict
25
+ r"""The EIP-712 domain separator for ERC-20 Permit."""
26
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict
27
+ r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
28
+ message: PermitMessageTypedDict
29
+ r"""The message data for an ERC-20 Permit."""
30
+ primary_type: Literal["Permit"]
31
+ r"""Primary type for the structured data"""
32
+
33
+
34
+ class PermitTypedDataResponseOutput(BaseModel):
35
+ r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
36
+
37
+ domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain
38
+ r"""The EIP-712 domain separator for ERC-20 Permit."""
39
+
40
+ types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types
41
+ r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
42
+
43
+ message: PermitMessage
44
+ r"""The message data for an ERC-20 Permit."""
45
+
46
+ PRIMARY_TYPE: Annotated[
47
+ Annotated[Literal["Permit"], AfterValidator(validate_const("Permit"))],
48
+ pydantic.Field(alias="primaryType"),
49
+ ] = "Permit"
50
+ r"""Primary type for the structured data"""
@@ -1,9 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .compass_api_backend_models_generic_read_response_portfolio_tokenbalance import (
5
- CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance,
6
- CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict,
4
+ from .compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance import (
5
+ CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalance,
6
+ CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalanceTypedDict,
7
7
  )
8
8
  from compass_api_sdk.types import BaseModel
9
9
  from typing import List
@@ -14,7 +14,7 @@ class PortfolioTypedDict(TypedDict):
14
14
  total_value_in_usd: str
15
15
  r"""Total value of the portfolio in USD"""
16
16
  token_balances: List[
17
- CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalanceTypedDict
17
+ CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalanceTypedDict
18
18
  ]
19
19
  r"""List of token balances in the portfolio"""
20
20
 
@@ -24,6 +24,6 @@ class Portfolio(BaseModel):
24
24
  r"""Total value of the portfolio in USD"""
25
25
 
26
26
  token_balances: List[
27
- CompassAPIBackendModelsGenericReadResponsePortfolioTokenBalance
27
+ CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalance
28
28
  ]
29
29
  r"""List of token balances in the portfolio"""