compass_api_sdk 0.9.51__py3-none-any.whl → 1.0.0__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 (133) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +198 -198
  3. compass_api_sdk/aerodrome_slipstream.py +108 -108
  4. compass_api_sdk/erc_4626_vaults.py +44 -44
  5. compass_api_sdk/errors/__init__.py +3 -2
  6. compass_api_sdk/models/__init__.py +900 -746
  7. compass_api_sdk/models/aaveborrowrequest.py +9 -5
  8. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +5 -5
  9. compass_api_sdk/models/aavelooprequest.py +59 -11
  10. compass_api_sdk/models/aaverepayrequest.py +9 -5
  11. compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
  12. compass_api_sdk/models/aavesupplyrequest.py +9 -5
  13. compass_api_sdk/models/aavewithdrawrequest.py +9 -5
  14. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +7 -5
  15. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +7 -5
  16. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +7 -5
  17. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +7 -5
  18. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +7 -5
  19. compass_api_sdk/models/batcheduseroperationsrequest.py +9 -5
  20. compass_api_sdk/models/chain.py +3 -3
  21. compass_api_sdk/models/details.py +44 -7
  22. compass_api_sdk/models/morphoborrowrequest.py +3 -2
  23. compass_api_sdk/models/morphodepositrequest.py +3 -2
  24. compass_api_sdk/models/morphorepayrequest.py +3 -2
  25. compass_api_sdk/models/morphosupplycollateralrequest.py +3 -2
  26. compass_api_sdk/models/morphowithdrawcollateralrequest.py +3 -2
  27. compass_api_sdk/models/morphowithdrawrequest.py +3 -2
  28. compass_api_sdk/models/movement10percent.py +65 -10
  29. compass_api_sdk/models/multicallauthorizationrequest.py +9 -5
  30. compass_api_sdk/models/multicallexecuterequest.py +53 -10
  31. compass_api_sdk/models/odosswaprequest.py +9 -5
  32. compass_api_sdk/models/pendlemanageliquidityparams.py +81 -0
  33. compass_api_sdk/models/pendlemanageliquidityrequest.py +95 -0
  34. compass_api_sdk/models/pendleredeemyieldrequest.py +9 -5
  35. compass_api_sdk/models/pendletradeptparams.py +81 -0
  36. compass_api_sdk/models/pendletradeptrequest.py +95 -0
  37. compass_api_sdk/models/pendletradeytparams.py +81 -0
  38. compass_api_sdk/models/pendletradeytrequest.py +95 -0
  39. compass_api_sdk/models/pendletxresponse.py +45 -0
  40. compass_api_sdk/models/setallowancerequest.py +8 -5
  41. compass_api_sdk/models/skybuyrequest.py +7 -9
  42. compass_api_sdk/models/skydepositrequest.py +7 -8
  43. compass_api_sdk/models/skysellrequest.py +7 -9
  44. compass_api_sdk/models/skywithdrawrequest.py +7 -8
  45. compass_api_sdk/models/token_enum.py +17 -0
  46. compass_api_sdk/models/tokentransferparams.py +67 -0
  47. compass_api_sdk/models/tokentransferrequest.py +9 -5
  48. compass_api_sdk/models/transactionresponse.py +40 -0
  49. compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -24
  50. compass_api_sdk/models/uniswapbuyexactlyrequest.py +28 -29
  51. compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +45 -0
  52. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +9 -5
  53. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +9 -5
  54. compass_api_sdk/models/uniswapsellexactlyparams.py +43 -40
  55. compass_api_sdk/models/uniswapsellexactlyrequest.py +52 -45
  56. compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +45 -0
  57. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +9 -5
  58. compass_api_sdk/models/unwrapwethrequest.py +9 -5
  59. compass_api_sdk/models/useroperation.py +34 -40
  60. compass_api_sdk/models/{aave_aave_supported_tokensop.py → v1_aave_aave_supported_tokensop.py} +9 -13
  61. compass_api_sdk/models/{aave_avg_rateop.py → v1_aave_avg_rateop.py} +32 -19
  62. compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +9 -13
  63. compass_api_sdk/models/{aave_liquidity_changeop.py → v1_aave_liquidity_changeop.py} +30 -17
  64. compass_api_sdk/models/{aave_rateop.py → v1_aave_rateop.py} +32 -19
  65. compass_api_sdk/models/{aave_reserve_overviewop.py → v1_aave_reserve_overviewop.py} +32 -19
  66. compass_api_sdk/models/{aave_std_rateop.py → v1_aave_std_rateop.py} +32 -19
  67. compass_api_sdk/models/{aave_token_priceop.py → v1_aave_token_priceop.py} +32 -19
  68. compass_api_sdk/models/{aave_user_position_per_tokenop.py → v1_aave_user_position_per_tokenop.py} +32 -19
  69. compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +9 -13
  70. compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_aerodrome_slipstream_liquidity_provision_positionsop.py} +7 -13
  71. compass_api_sdk/models/{aerodrome_slipstream_pool_priceop.py → v1_aerodrome_slipstream_pool_priceop.py} +53 -25
  72. compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +24 -25
  73. compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +7 -13
  74. compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +9 -13
  75. compass_api_sdk/models/{generic_supported_chainsop.py → v1_generic_supported_chainsop.py} +2 -2
  76. compass_api_sdk/models/v1_generic_supported_tokensop.py +24 -0
  77. compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +9 -8
  78. compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +9 -8
  79. compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +9 -8
  80. compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +9 -8
  81. compass_api_sdk/models/{morpho_vaultop.py → v1_morpho_vaultop.py} +9 -13
  82. compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +9 -8
  83. compass_api_sdk/models/{pendle_marketop.py → v1_pendle_marketop.py} +9 -13
  84. compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
  85. compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
  86. compass_api_sdk/models/{sky_positionop.py → v1_sky_positionop.py} +14 -15
  87. compass_api_sdk/models/{token_addressop.py → v1_token_addressop.py} +30 -17
  88. compass_api_sdk/models/{token_balanceop.py → v1_token_balanceop.py} +14 -18
  89. compass_api_sdk/models/{token_priceop.py → v1_token_priceop.py} +14 -18
  90. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +24 -0
  91. compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +9 -13
  92. compass_api_sdk/models/{aerodrome_slipstream_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +9 -13
  93. compass_api_sdk/models/{uniswap_pool_priceop.py → v1_uniswap_pool_priceop.py} +59 -29
  94. compass_api_sdk/models/{uniswap_quote_buy_exactlyop.py → v1_uniswap_quote_buy_exactlyop.py} +65 -35
  95. compass_api_sdk/models/{uniswap_quote_sell_exactlyop.py → v1_uniswap_quote_sell_exactlyop.py} +65 -35
  96. compass_api_sdk/models/{vaults_vaultop.py → v1_vaults_vaultop.py} +9 -13
  97. compass_api_sdk/models/vaultdepositparams.py +85 -0
  98. compass_api_sdk/models/vaultdepositrequest.py +9 -5
  99. compass_api_sdk/models/vaultwithdrawparams.py +75 -0
  100. compass_api_sdk/models/vaultwithdrawrequest.py +9 -5
  101. compass_api_sdk/models/wrapethrequest.py +9 -5
  102. compass_api_sdk/morpho.py +140 -140
  103. compass_api_sdk/pendle.py +254 -1066
  104. compass_api_sdk/sky.py +98 -56
  105. compass_api_sdk/smart_account.py +10 -10
  106. compass_api_sdk/swap.py +16 -16
  107. compass_api_sdk/token_sdk.py +56 -56
  108. compass_api_sdk/transaction_bundler.py +64 -62
  109. compass_api_sdk/uniswap_v3.py +222 -214
  110. compass_api_sdk/universal.py +104 -292
  111. compass_api_sdk/utils/__init__.py +3 -2
  112. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/METADATA +83 -88
  113. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/RECORD +114 -117
  114. compass_api_sdk/models/generic_supported_tokensop.py +0 -28
  115. compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
  116. compass_api_sdk/models/image.py +0 -15
  117. compass_api_sdk/models/pendle_marketsop.py +0 -28
  118. compass_api_sdk/models/pendle_quoteop.py +0 -128
  119. compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
  120. compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
  121. compass_api_sdk/models/pendlebuyptparams.py +0 -48
  122. compass_api_sdk/models/pendlebuyptrequest.py +0 -59
  123. compass_api_sdk/models/pendlebuyytparams.py +0 -48
  124. compass_api_sdk/models/pendlebuyytrequest.py +0 -59
  125. compass_api_sdk/models/pendlegetquoteresponse.py +0 -15
  126. compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
  127. compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
  128. compass_api_sdk/models/pendlesellptparams.py +0 -48
  129. compass_api_sdk/models/pendlesellptrequest.py +0 -61
  130. compass_api_sdk/models/pendlesellytparams.py +0 -48
  131. compass_api_sdk/models/pendlesellytrequest.py +0 -61
  132. compass_api_sdk/models/txresponse.py +0 -27
  133. {compass_api_sdk-0.9.51.dist-info → compass_api_sdk-1.0.0.dist-info}/WHEEL +0 -0
@@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Union
9
9
 
10
10
 
11
11
  class Universal(BaseSDK):
12
- def portfolio(
12
+ def generic_portfolio(
13
13
  self,
14
14
  *,
15
- chain: models.GenericPortfolioChain = models.GenericPortfolioChain.ARBITRUM_MAINNET,
15
+ chain: models.V1GenericPortfolioChain = models.V1GenericPortfolioChain.ARBITRUM,
16
16
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
17
17
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
18
18
  server_url: Optional[str] = None,
@@ -26,7 +26,7 @@ class Universal(BaseSDK):
26
26
  This includes the total value of the portfolio in USD and a breakdown of token
27
27
  balances, including their respective values and quantities.
28
28
 
29
- :param chain: The chain to use.
29
+ :param chain:
30
30
  :param user: The user to get portfolio for.
31
31
  :param retries: Override the default retry configuration for this method
32
32
  :param server_url: Override the default server URL for this method
@@ -43,14 +43,14 @@ class Universal(BaseSDK):
43
43
  else:
44
44
  base_url = self._get_url(base_url, url_variables)
45
45
 
46
- request = models.GenericPortfolioRequest(
46
+ request = models.V1GenericPortfolioRequest(
47
47
  chain=chain,
48
48
  user=user,
49
49
  )
50
50
 
51
51
  req = self._build_request(
52
52
  method="GET",
53
- path="/v0/generic/portfolio/get",
53
+ path="/v1/generic/portfolio",
54
54
  base_url=base_url,
55
55
  url_variables=url_variables,
56
56
  request=request,
@@ -76,7 +76,7 @@ class Universal(BaseSDK):
76
76
  hook_ctx=HookContext(
77
77
  config=self.sdk_configuration,
78
78
  base_url=base_url or "",
79
- operation_id="generic_portfolio",
79
+ operation_id="v1_generic_portfolio",
80
80
  oauth2_scopes=[],
81
81
  security_source=self.sdk_configuration.security,
82
82
  ),
@@ -102,10 +102,10 @@ class Universal(BaseSDK):
102
102
 
103
103
  raise errors.APIError("Unexpected response received", http_res)
104
104
 
105
- async def portfolio_async(
105
+ async def generic_portfolio_async(
106
106
  self,
107
107
  *,
108
- chain: models.GenericPortfolioChain = models.GenericPortfolioChain.ARBITRUM_MAINNET,
108
+ chain: models.V1GenericPortfolioChain = models.V1GenericPortfolioChain.ARBITRUM,
109
109
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
110
110
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
111
111
  server_url: Optional[str] = None,
@@ -119,7 +119,7 @@ class Universal(BaseSDK):
119
119
  This includes the total value of the portfolio in USD and a breakdown of token
120
120
  balances, including their respective values and quantities.
121
121
 
122
- :param chain: The chain to use.
122
+ :param chain:
123
123
  :param user: The user to get portfolio for.
124
124
  :param retries: Override the default retry configuration for this method
125
125
  :param server_url: Override the default server URL for this method
@@ -136,14 +136,14 @@ class Universal(BaseSDK):
136
136
  else:
137
137
  base_url = self._get_url(base_url, url_variables)
138
138
 
139
- request = models.GenericPortfolioRequest(
139
+ request = models.V1GenericPortfolioRequest(
140
140
  chain=chain,
141
141
  user=user,
142
142
  )
143
143
 
144
144
  req = self._build_request_async(
145
145
  method="GET",
146
- path="/v0/generic/portfolio/get",
146
+ path="/v1/generic/portfolio",
147
147
  base_url=base_url,
148
148
  url_variables=url_variables,
149
149
  request=request,
@@ -169,7 +169,7 @@ class Universal(BaseSDK):
169
169
  hook_ctx=HookContext(
170
170
  config=self.sdk_configuration,
171
171
  base_url=base_url or "",
172
- operation_id="generic_portfolio",
172
+ operation_id="v1_generic_portfolio",
173
173
  oauth2_scopes=[],
174
174
  security_source=self.sdk_configuration.security,
175
175
  ),
@@ -195,198 +195,10 @@ class Universal(BaseSDK):
195
195
 
196
196
  raise errors.APIError("Unexpected response received", http_res)
197
197
 
198
- def visualize_portfolio(
198
+ def generic_supported_tokens(
199
199
  self,
200
200
  *,
201
- chain: models.GenericVisualizePortfolioChain = models.GenericVisualizePortfolioChain.ARBITRUM_MAINNET,
202
- user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
203
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
204
- server_url: Optional[str] = None,
205
- timeout_ms: Optional[int] = None,
206
- http_headers: Optional[Mapping[str, str]] = None,
207
- ) -> models.Image:
208
- r"""Visualize User Portfolio
209
-
210
- Generate a visual representation of the token portfolio for a wallet address.
211
-
212
- The response is an SVG image of a pie chart depicting the relative distribution of
213
- tokens held, colored and labeled with token symbols, percentages and token values in
214
- USD.
215
-
216
- :param chain: The chain to use.
217
- :param user: The user to get portfolio for.
218
- :param retries: Override the default retry configuration for this method
219
- :param server_url: Override the default server URL for this method
220
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
221
- :param http_headers: Additional headers to set or replace on requests.
222
- """
223
- base_url = None
224
- url_variables = None
225
- if timeout_ms is None:
226
- timeout_ms = self.sdk_configuration.timeout_ms
227
-
228
- if server_url is not None:
229
- base_url = server_url
230
- else:
231
- base_url = self._get_url(base_url, url_variables)
232
-
233
- request = models.GenericVisualizePortfolioRequest(
234
- chain=chain,
235
- user=user,
236
- )
237
-
238
- req = self._build_request(
239
- method="GET",
240
- path="/v0/generic/visualize_portfolio/get",
241
- base_url=base_url,
242
- url_variables=url_variables,
243
- request=request,
244
- request_body_required=False,
245
- request_has_path_params=False,
246
- request_has_query_params=True,
247
- user_agent_header="user-agent",
248
- accept_header_value="application/json",
249
- http_headers=http_headers,
250
- security=self.sdk_configuration.security,
251
- timeout_ms=timeout_ms,
252
- )
253
-
254
- if retries == UNSET:
255
- if self.sdk_configuration.retry_config is not UNSET:
256
- retries = self.sdk_configuration.retry_config
257
-
258
- retry_config = None
259
- if isinstance(retries, utils.RetryConfig):
260
- retry_config = (retries, ["429", "500", "502", "503", "504"])
261
-
262
- http_res = self.do_request(
263
- hook_ctx=HookContext(
264
- config=self.sdk_configuration,
265
- base_url=base_url or "",
266
- operation_id="generic_visualize_portfolio",
267
- oauth2_scopes=[],
268
- security_source=self.sdk_configuration.security,
269
- ),
270
- request=req,
271
- error_status_codes=["422", "4XX", "5XX"],
272
- retry_config=retry_config,
273
- )
274
-
275
- response_data: Any = None
276
- if utils.match_response(http_res, "200", "application/json"):
277
- return unmarshal_json_response(models.Image, http_res)
278
- if utils.match_response(http_res, "422", "application/json"):
279
- response_data = unmarshal_json_response(
280
- errors.HTTPValidationErrorData, http_res
281
- )
282
- raise errors.HTTPValidationError(response_data, http_res)
283
- if utils.match_response(http_res, "4XX", "*"):
284
- http_res_text = utils.stream_to_text(http_res)
285
- raise errors.APIError("API error occurred", http_res, http_res_text)
286
- if utils.match_response(http_res, "5XX", "*"):
287
- http_res_text = utils.stream_to_text(http_res)
288
- raise errors.APIError("API error occurred", http_res, http_res_text)
289
-
290
- raise errors.APIError("Unexpected response received", http_res)
291
-
292
- async def visualize_portfolio_async(
293
- self,
294
- *,
295
- chain: models.GenericVisualizePortfolioChain = models.GenericVisualizePortfolioChain.ARBITRUM_MAINNET,
296
- user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
297
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
298
- server_url: Optional[str] = None,
299
- timeout_ms: Optional[int] = None,
300
- http_headers: Optional[Mapping[str, str]] = None,
301
- ) -> models.Image:
302
- r"""Visualize User Portfolio
303
-
304
- Generate a visual representation of the token portfolio for a wallet address.
305
-
306
- The response is an SVG image of a pie chart depicting the relative distribution of
307
- tokens held, colored and labeled with token symbols, percentages and token values in
308
- USD.
309
-
310
- :param chain: The chain to use.
311
- :param user: The user to get portfolio for.
312
- :param retries: Override the default retry configuration for this method
313
- :param server_url: Override the default server URL for this method
314
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
315
- :param http_headers: Additional headers to set or replace on requests.
316
- """
317
- base_url = None
318
- url_variables = None
319
- if timeout_ms is None:
320
- timeout_ms = self.sdk_configuration.timeout_ms
321
-
322
- if server_url is not None:
323
- base_url = server_url
324
- else:
325
- base_url = self._get_url(base_url, url_variables)
326
-
327
- request = models.GenericVisualizePortfolioRequest(
328
- chain=chain,
329
- user=user,
330
- )
331
-
332
- req = self._build_request_async(
333
- method="GET",
334
- path="/v0/generic/visualize_portfolio/get",
335
- base_url=base_url,
336
- url_variables=url_variables,
337
- request=request,
338
- request_body_required=False,
339
- request_has_path_params=False,
340
- request_has_query_params=True,
341
- user_agent_header="user-agent",
342
- accept_header_value="application/json",
343
- http_headers=http_headers,
344
- security=self.sdk_configuration.security,
345
- timeout_ms=timeout_ms,
346
- )
347
-
348
- if retries == UNSET:
349
- if self.sdk_configuration.retry_config is not UNSET:
350
- retries = self.sdk_configuration.retry_config
351
-
352
- retry_config = None
353
- if isinstance(retries, utils.RetryConfig):
354
- retry_config = (retries, ["429", "500", "502", "503", "504"])
355
-
356
- http_res = await self.do_request_async(
357
- hook_ctx=HookContext(
358
- config=self.sdk_configuration,
359
- base_url=base_url or "",
360
- operation_id="generic_visualize_portfolio",
361
- oauth2_scopes=[],
362
- security_source=self.sdk_configuration.security,
363
- ),
364
- request=req,
365
- error_status_codes=["422", "4XX", "5XX"],
366
- retry_config=retry_config,
367
- )
368
-
369
- response_data: Any = None
370
- if utils.match_response(http_res, "200", "application/json"):
371
- return unmarshal_json_response(models.Image, http_res)
372
- if utils.match_response(http_res, "422", "application/json"):
373
- response_data = unmarshal_json_response(
374
- errors.HTTPValidationErrorData, http_res
375
- )
376
- raise errors.HTTPValidationError(response_data, http_res)
377
- if utils.match_response(http_res, "4XX", "*"):
378
- http_res_text = await utils.stream_to_text_async(http_res)
379
- raise errors.APIError("API error occurred", http_res, http_res_text)
380
- if utils.match_response(http_res, "5XX", "*"):
381
- http_res_text = await utils.stream_to_text_async(http_res)
382
- raise errors.APIError("API error occurred", http_res, http_res_text)
383
-
384
- raise errors.APIError("Unexpected response received", http_res)
385
-
386
- def supported_tokens(
387
- self,
388
- *,
389
- chain: models.GenericSupportedTokensChain = models.GenericSupportedTokensChain.ARBITRUM_MAINNET,
201
+ chain: models.V1GenericSupportedTokensChain = models.V1GenericSupportedTokensChain.ARBITRUM,
390
202
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
391
203
  server_url: Optional[str] = None,
392
204
  timeout_ms: Optional[int] = None,
@@ -396,7 +208,7 @@ class Universal(BaseSDK):
396
208
 
397
209
  Get the list of supported tokens on a chain by the Compass API.
398
210
 
399
- :param chain: The chain to use.
211
+ :param chain:
400
212
  :param retries: Override the default retry configuration for this method
401
213
  :param server_url: Override the default server URL for this method
402
214
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -412,13 +224,13 @@ class Universal(BaseSDK):
412
224
  else:
413
225
  base_url = self._get_url(base_url, url_variables)
414
226
 
415
- request = models.GenericSupportedTokensRequest(
227
+ request = models.V1GenericSupportedTokensRequest(
416
228
  chain=chain,
417
229
  )
418
230
 
419
231
  req = self._build_request(
420
232
  method="GET",
421
- path="/v0/generic/supported_tokens/get",
233
+ path="/v1/generic/supported_tokens",
422
234
  base_url=base_url,
423
235
  url_variables=url_variables,
424
236
  request=request,
@@ -444,7 +256,7 @@ class Universal(BaseSDK):
444
256
  hook_ctx=HookContext(
445
257
  config=self.sdk_configuration,
446
258
  base_url=base_url or "",
447
- operation_id="generic_supported_tokens",
259
+ operation_id="v1_generic_supported_tokens",
448
260
  oauth2_scopes=[],
449
261
  security_source=self.sdk_configuration.security,
450
262
  ),
@@ -470,10 +282,10 @@ class Universal(BaseSDK):
470
282
 
471
283
  raise errors.APIError("Unexpected response received", http_res)
472
284
 
473
- async def supported_tokens_async(
285
+ async def generic_supported_tokens_async(
474
286
  self,
475
287
  *,
476
- chain: models.GenericSupportedTokensChain = models.GenericSupportedTokensChain.ARBITRUM_MAINNET,
288
+ chain: models.V1GenericSupportedTokensChain = models.V1GenericSupportedTokensChain.ARBITRUM,
477
289
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
478
290
  server_url: Optional[str] = None,
479
291
  timeout_ms: Optional[int] = None,
@@ -483,7 +295,7 @@ class Universal(BaseSDK):
483
295
 
484
296
  Get the list of supported tokens on a chain by the Compass API.
485
297
 
486
- :param chain: The chain to use.
298
+ :param chain:
487
299
  :param retries: Override the default retry configuration for this method
488
300
  :param server_url: Override the default server URL for this method
489
301
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -499,13 +311,13 @@ class Universal(BaseSDK):
499
311
  else:
500
312
  base_url = self._get_url(base_url, url_variables)
501
313
 
502
- request = models.GenericSupportedTokensRequest(
314
+ request = models.V1GenericSupportedTokensRequest(
503
315
  chain=chain,
504
316
  )
505
317
 
506
318
  req = self._build_request_async(
507
319
  method="GET",
508
- path="/v0/generic/supported_tokens/get",
320
+ path="/v1/generic/supported_tokens",
509
321
  base_url=base_url,
510
322
  url_variables=url_variables,
511
323
  request=request,
@@ -531,7 +343,7 @@ class Universal(BaseSDK):
531
343
  hook_ctx=HookContext(
532
344
  config=self.sdk_configuration,
533
345
  base_url=base_url or "",
534
- operation_id="generic_supported_tokens",
346
+ operation_id="v1_generic_supported_tokens",
535
347
  oauth2_scopes=[],
536
348
  security_source=self.sdk_configuration.security,
537
349
  ),
@@ -557,7 +369,7 @@ class Universal(BaseSDK):
557
369
 
558
370
  raise errors.APIError("Unexpected response received", http_res)
559
371
 
560
- def supported_chains(
372
+ def generic_supported_chains(
561
373
  self,
562
374
  *,
563
375
  protocol: OptionalNullable[models.Protocol] = UNSET,
@@ -586,13 +398,13 @@ class Universal(BaseSDK):
586
398
  else:
587
399
  base_url = self._get_url(base_url, url_variables)
588
400
 
589
- request = models.GenericSupportedChainsRequest(
401
+ request = models.V1GenericSupportedChainsRequest(
590
402
  protocol=protocol,
591
403
  )
592
404
 
593
405
  req = self._build_request(
594
406
  method="GET",
595
- path="/v0/generic/supported_chains/get",
407
+ path="/v1/generic/supported_chains",
596
408
  base_url=base_url,
597
409
  url_variables=url_variables,
598
410
  request=request,
@@ -618,7 +430,7 @@ class Universal(BaseSDK):
618
430
  hook_ctx=HookContext(
619
431
  config=self.sdk_configuration,
620
432
  base_url=base_url or "",
621
- operation_id="generic_supported_chains",
433
+ operation_id="v1_generic_supported_chains",
622
434
  oauth2_scopes=[],
623
435
  security_source=self.sdk_configuration.security,
624
436
  ),
@@ -644,7 +456,7 @@ class Universal(BaseSDK):
644
456
 
645
457
  raise errors.APIError("Unexpected response received", http_res)
646
458
 
647
- async def supported_chains_async(
459
+ async def generic_supported_chains_async(
648
460
  self,
649
461
  *,
650
462
  protocol: OptionalNullable[models.Protocol] = UNSET,
@@ -673,13 +485,13 @@ class Universal(BaseSDK):
673
485
  else:
674
486
  base_url = self._get_url(base_url, url_variables)
675
487
 
676
- request = models.GenericSupportedChainsRequest(
488
+ request = models.V1GenericSupportedChainsRequest(
677
489
  protocol=protocol,
678
490
  )
679
491
 
680
492
  req = self._build_request_async(
681
493
  method="GET",
682
- path="/v0/generic/supported_chains/get",
494
+ path="/v1/generic/supported_chains",
683
495
  base_url=base_url,
684
496
  url_variables=url_variables,
685
497
  request=request,
@@ -705,7 +517,7 @@ class Universal(BaseSDK):
705
517
  hook_ctx=HookContext(
706
518
  config=self.sdk_configuration,
707
519
  base_url=base_url or "",
708
- operation_id="generic_supported_chains",
520
+ operation_id="v1_generic_supported_chains",
709
521
  oauth2_scopes=[],
710
522
  security_source=self.sdk_configuration.security,
711
523
  ),
@@ -731,16 +543,16 @@ class Universal(BaseSDK):
731
543
 
732
544
  raise errors.APIError("Unexpected response received", http_res)
733
545
 
734
- def allowance(
546
+ def generic_allowance(
735
547
  self,
736
548
  *,
737
- chain: models.GenericAllowanceChain = models.GenericAllowanceChain.ARBITRUM_MAINNET,
549
+ chain: models.V1GenericAllowanceChain = models.V1GenericAllowanceChain.ARBITRUM,
738
550
  token: Union[
739
- models.GenericAllowanceToken, models.GenericAllowanceTokenTypedDict
551
+ models.V1GenericAllowanceToken, models.V1GenericAllowanceTokenTypedDict
740
552
  ],
741
553
  contract: Union[
742
- models.GenericAllowanceContractUnion,
743
- models.GenericAllowanceContractUnionTypedDict,
554
+ models.V1GenericAllowanceContractUnion,
555
+ models.V1GenericAllowanceContractUnionTypedDict,
744
556
  ],
745
557
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
746
558
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -758,7 +570,7 @@ class Universal(BaseSDK):
758
570
  these protocols, ensuring that the protocol has the necessary permissions to manage
759
571
  the user's tokens securely and efficiently.
760
572
 
761
- :param chain: The chain to use.
573
+ :param chain:
762
574
  :param token: The symbol or address of the token for which the allowance is checked..
763
575
  :param contract: The name or address of the contract to check allowance for.
764
576
  :param user: The user to get the ERC20 allowance of.
@@ -777,7 +589,7 @@ class Universal(BaseSDK):
777
589
  else:
778
590
  base_url = self._get_url(base_url, url_variables)
779
591
 
780
- request = models.GenericAllowanceRequest(
592
+ request = models.V1GenericAllowanceRequest(
781
593
  chain=chain,
782
594
  user=user,
783
595
  token=token,
@@ -786,7 +598,7 @@ class Universal(BaseSDK):
786
598
 
787
599
  req = self._build_request(
788
600
  method="GET",
789
- path="/v0/generic/allowance/get",
601
+ path="/v1/generic/allowance",
790
602
  base_url=base_url,
791
603
  url_variables=url_variables,
792
604
  request=request,
@@ -812,7 +624,7 @@ class Universal(BaseSDK):
812
624
  hook_ctx=HookContext(
813
625
  config=self.sdk_configuration,
814
626
  base_url=base_url or "",
815
- operation_id="generic_allowance",
627
+ operation_id="v1_generic_allowance",
816
628
  oauth2_scopes=[],
817
629
  security_source=self.sdk_configuration.security,
818
630
  ),
@@ -838,16 +650,16 @@ class Universal(BaseSDK):
838
650
 
839
651
  raise errors.APIError("Unexpected response received", http_res)
840
652
 
841
- async def allowance_async(
653
+ async def generic_allowance_async(
842
654
  self,
843
655
  *,
844
- chain: models.GenericAllowanceChain = models.GenericAllowanceChain.ARBITRUM_MAINNET,
656
+ chain: models.V1GenericAllowanceChain = models.V1GenericAllowanceChain.ARBITRUM,
845
657
  token: Union[
846
- models.GenericAllowanceToken, models.GenericAllowanceTokenTypedDict
658
+ models.V1GenericAllowanceToken, models.V1GenericAllowanceTokenTypedDict
847
659
  ],
848
660
  contract: Union[
849
- models.GenericAllowanceContractUnion,
850
- models.GenericAllowanceContractUnionTypedDict,
661
+ models.V1GenericAllowanceContractUnion,
662
+ models.V1GenericAllowanceContractUnionTypedDict,
851
663
  ],
852
664
  user: Optional[str] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
853
665
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -865,7 +677,7 @@ class Universal(BaseSDK):
865
677
  these protocols, ensuring that the protocol has the necessary permissions to manage
866
678
  the user's tokens securely and efficiently.
867
679
 
868
- :param chain: The chain to use.
680
+ :param chain:
869
681
  :param token: The symbol or address of the token for which the allowance is checked..
870
682
  :param contract: The name or address of the contract to check allowance for.
871
683
  :param user: The user to get the ERC20 allowance of.
@@ -884,7 +696,7 @@ class Universal(BaseSDK):
884
696
  else:
885
697
  base_url = self._get_url(base_url, url_variables)
886
698
 
887
- request = models.GenericAllowanceRequest(
699
+ request = models.V1GenericAllowanceRequest(
888
700
  chain=chain,
889
701
  user=user,
890
702
  token=token,
@@ -893,7 +705,7 @@ class Universal(BaseSDK):
893
705
 
894
706
  req = self._build_request_async(
895
707
  method="GET",
896
- path="/v0/generic/allowance/get",
708
+ path="/v1/generic/allowance",
897
709
  base_url=base_url,
898
710
  url_variables=url_variables,
899
711
  request=request,
@@ -919,7 +731,7 @@ class Universal(BaseSDK):
919
731
  hook_ctx=HookContext(
920
732
  config=self.sdk_configuration,
921
733
  base_url=base_url or "",
922
- operation_id="generic_allowance",
734
+ operation_id="v1_generic_allowance",
923
735
  oauth2_scopes=[],
924
736
  security_source=self.sdk_configuration.security,
925
737
  ),
@@ -945,10 +757,10 @@ class Universal(BaseSDK):
945
757
 
946
758
  raise errors.APIError("Unexpected response received", http_res)
947
759
 
948
- def ens(
760
+ def generic_ens(
949
761
  self,
950
762
  *,
951
- chain: models.GenericEnsChain = models.GenericEnsChain.ETHEREUM_MAINNET,
763
+ chain: models.V1GenericEnsChain = models.V1GenericEnsChain.ETHEREUM,
952
764
  ens_name: Optional[str] = "vitalik.eth",
953
765
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
954
766
  server_url: Optional[str] = None,
@@ -962,7 +774,7 @@ class Universal(BaseSDK):
962
774
  E.g. `vitalik.eth`. This endpoint can be used to
963
775
  query the actual ethereum wallet address behind the ENS name.
964
776
 
965
- :param chain: The chain to use.
777
+ :param chain:
966
778
  :param ens_name: The ENS name to resolve.
967
779
  :param retries: Override the default retry configuration for this method
968
780
  :param server_url: Override the default server URL for this method
@@ -979,14 +791,14 @@ class Universal(BaseSDK):
979
791
  else:
980
792
  base_url = self._get_url(base_url, url_variables)
981
793
 
982
- request = models.GenericEnsRequest(
794
+ request = models.V1GenericEnsRequest(
983
795
  chain=chain,
984
796
  ens_name=ens_name,
985
797
  )
986
798
 
987
799
  req = self._build_request(
988
800
  method="GET",
989
- path="/v0/generic/ens/get",
801
+ path="/v1/generic/ens",
990
802
  base_url=base_url,
991
803
  url_variables=url_variables,
992
804
  request=request,
@@ -1012,7 +824,7 @@ class Universal(BaseSDK):
1012
824
  hook_ctx=HookContext(
1013
825
  config=self.sdk_configuration,
1014
826
  base_url=base_url or "",
1015
- operation_id="generic_ens",
827
+ operation_id="v1_generic_ens",
1016
828
  oauth2_scopes=[],
1017
829
  security_source=self.sdk_configuration.security,
1018
830
  ),
@@ -1038,10 +850,10 @@ class Universal(BaseSDK):
1038
850
 
1039
851
  raise errors.APIError("Unexpected response received", http_res)
1040
852
 
1041
- async def ens_async(
853
+ async def generic_ens_async(
1042
854
  self,
1043
855
  *,
1044
- chain: models.GenericEnsChain = models.GenericEnsChain.ETHEREUM_MAINNET,
856
+ chain: models.V1GenericEnsChain = models.V1GenericEnsChain.ETHEREUM,
1045
857
  ens_name: Optional[str] = "vitalik.eth",
1046
858
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1047
859
  server_url: Optional[str] = None,
@@ -1055,7 +867,7 @@ class Universal(BaseSDK):
1055
867
  E.g. `vitalik.eth`. This endpoint can be used to
1056
868
  query the actual ethereum wallet address behind the ENS name.
1057
869
 
1058
- :param chain: The chain to use.
870
+ :param chain:
1059
871
  :param ens_name: The ENS name to resolve.
1060
872
  :param retries: Override the default retry configuration for this method
1061
873
  :param server_url: Override the default server URL for this method
@@ -1072,14 +884,14 @@ class Universal(BaseSDK):
1072
884
  else:
1073
885
  base_url = self._get_url(base_url, url_variables)
1074
886
 
1075
- request = models.GenericEnsRequest(
887
+ request = models.V1GenericEnsRequest(
1076
888
  chain=chain,
1077
889
  ens_name=ens_name,
1078
890
  )
1079
891
 
1080
892
  req = self._build_request_async(
1081
893
  method="GET",
1082
- path="/v0/generic/ens/get",
894
+ path="/v1/generic/ens",
1083
895
  base_url=base_url,
1084
896
  url_variables=url_variables,
1085
897
  request=request,
@@ -1105,7 +917,7 @@ class Universal(BaseSDK):
1105
917
  hook_ctx=HookContext(
1106
918
  config=self.sdk_configuration,
1107
919
  base_url=base_url or "",
1108
- operation_id="generic_ens",
920
+ operation_id="v1_generic_ens",
1109
921
  oauth2_scopes=[],
1110
922
  security_source=self.sdk_configuration.security,
1111
923
  ),
@@ -1131,26 +943,26 @@ class Universal(BaseSDK):
1131
943
 
1132
944
  raise errors.APIError("Unexpected response received", http_res)
1133
945
 
1134
- def wrap_eth(
946
+ def generic_wrap_eth(
1135
947
  self,
1136
948
  *,
1137
949
  amount: Union[
1138
950
  models.WrapEthRequestAmount, models.WrapEthRequestAmountTypedDict
1139
951
  ],
1140
- chain: models.Chain,
952
+ chain: models.WrapEthRequestChain,
1141
953
  sender: str,
1142
954
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1143
955
  server_url: Optional[str] = None,
1144
956
  timeout_ms: Optional[int] = None,
1145
957
  http_headers: Optional[Mapping[str, str]] = None,
1146
- ) -> models.TxResponse:
958
+ ) -> models.TransactionResponse:
1147
959
  r"""Wrap ETH
1148
960
 
1149
961
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
1150
962
  it to be traded on DeFi protocols.
1151
963
 
1152
964
  :param amount: The amount of ETH to wrap.
1153
- :param chain: The chain to use.
965
+ :param chain:
1154
966
  :param sender: The address of the transaction sender.
1155
967
  :param retries: Override the default retry configuration for this method
1156
968
  :param server_url: Override the default server URL for this method
@@ -1175,7 +987,7 @@ class Universal(BaseSDK):
1175
987
 
1176
988
  req = self._build_request(
1177
989
  method="POST",
1178
- path="/v0/generic/wrap_eth",
990
+ path="/v1/generic/wrap_eth",
1179
991
  base_url=base_url,
1180
992
  url_variables=url_variables,
1181
993
  request=request,
@@ -1204,7 +1016,7 @@ class Universal(BaseSDK):
1204
1016
  hook_ctx=HookContext(
1205
1017
  config=self.sdk_configuration,
1206
1018
  base_url=base_url or "",
1207
- operation_id="generic_wrap_eth",
1019
+ operation_id="v1_generic_wrap_eth",
1208
1020
  oauth2_scopes=[],
1209
1021
  security_source=self.sdk_configuration.security,
1210
1022
  ),
@@ -1215,7 +1027,7 @@ class Universal(BaseSDK):
1215
1027
 
1216
1028
  response_data: Any = None
1217
1029
  if utils.match_response(http_res, "200", "application/json"):
1218
- return unmarshal_json_response(models.TxResponse, http_res)
1030
+ return unmarshal_json_response(models.TransactionResponse, http_res)
1219
1031
  if utils.match_response(http_res, "422", "application/json"):
1220
1032
  response_data = unmarshal_json_response(
1221
1033
  errors.HTTPValidationErrorData, http_res
@@ -1230,26 +1042,26 @@ class Universal(BaseSDK):
1230
1042
 
1231
1043
  raise errors.APIError("Unexpected response received", http_res)
1232
1044
 
1233
- async def wrap_eth_async(
1045
+ async def generic_wrap_eth_async(
1234
1046
  self,
1235
1047
  *,
1236
1048
  amount: Union[
1237
1049
  models.WrapEthRequestAmount, models.WrapEthRequestAmountTypedDict
1238
1050
  ],
1239
- chain: models.Chain,
1051
+ chain: models.WrapEthRequestChain,
1240
1052
  sender: str,
1241
1053
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1242
1054
  server_url: Optional[str] = None,
1243
1055
  timeout_ms: Optional[int] = None,
1244
1056
  http_headers: Optional[Mapping[str, str]] = None,
1245
- ) -> models.TxResponse:
1057
+ ) -> models.TransactionResponse:
1246
1058
  r"""Wrap ETH
1247
1059
 
1248
1060
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
1249
1061
  it to be traded on DeFi protocols.
1250
1062
 
1251
1063
  :param amount: The amount of ETH to wrap.
1252
- :param chain: The chain to use.
1064
+ :param chain:
1253
1065
  :param sender: The address of the transaction sender.
1254
1066
  :param retries: Override the default retry configuration for this method
1255
1067
  :param server_url: Override the default server URL for this method
@@ -1274,7 +1086,7 @@ class Universal(BaseSDK):
1274
1086
 
1275
1087
  req = self._build_request_async(
1276
1088
  method="POST",
1277
- path="/v0/generic/wrap_eth",
1089
+ path="/v1/generic/wrap_eth",
1278
1090
  base_url=base_url,
1279
1091
  url_variables=url_variables,
1280
1092
  request=request,
@@ -1303,7 +1115,7 @@ class Universal(BaseSDK):
1303
1115
  hook_ctx=HookContext(
1304
1116
  config=self.sdk_configuration,
1305
1117
  base_url=base_url or "",
1306
- operation_id="generic_wrap_eth",
1118
+ operation_id="v1_generic_wrap_eth",
1307
1119
  oauth2_scopes=[],
1308
1120
  security_source=self.sdk_configuration.security,
1309
1121
  ),
@@ -1314,7 +1126,7 @@ class Universal(BaseSDK):
1314
1126
 
1315
1127
  response_data: Any = None
1316
1128
  if utils.match_response(http_res, "200", "application/json"):
1317
- return unmarshal_json_response(models.TxResponse, http_res)
1129
+ return unmarshal_json_response(models.TransactionResponse, http_res)
1318
1130
  if utils.match_response(http_res, "422", "application/json"):
1319
1131
  response_data = unmarshal_json_response(
1320
1132
  errors.HTTPValidationErrorData, http_res
@@ -1329,26 +1141,26 @@ class Universal(BaseSDK):
1329
1141
 
1330
1142
  raise errors.APIError("Unexpected response received", http_res)
1331
1143
 
1332
- def unwrap_weth(
1144
+ def generic_unwrap_weth(
1333
1145
  self,
1334
1146
  *,
1335
1147
  amount: Union[
1336
1148
  models.UnwrapWethRequestAmount, models.UnwrapWethRequestAmountTypedDict
1337
1149
  ],
1338
- chain: models.Chain,
1150
+ chain: models.UnwrapWethRequestChain,
1339
1151
  sender: str,
1340
1152
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1341
1153
  server_url: Optional[str] = None,
1342
1154
  timeout_ms: Optional[int] = None,
1343
1155
  http_headers: Optional[Mapping[str, str]] = None,
1344
- ) -> models.TxResponse:
1156
+ ) -> models.TransactionResponse:
1345
1157
  r"""Unwrap WETH
1346
1158
 
1347
1159
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
1348
1160
  can be used for gas and other native purposes.
1349
1161
 
1350
1162
  :param amount: The amount of WETH to unwrap.
1351
- :param chain: The chain to use.
1163
+ :param chain:
1352
1164
  :param sender: The address of the transaction sender.
1353
1165
  :param retries: Override the default retry configuration for this method
1354
1166
  :param server_url: Override the default server URL for this method
@@ -1373,7 +1185,7 @@ class Universal(BaseSDK):
1373
1185
 
1374
1186
  req = self._build_request(
1375
1187
  method="POST",
1376
- path="/v0/generic/unwrap_weth",
1188
+ path="/v1/generic/unwrap_weth",
1377
1189
  base_url=base_url,
1378
1190
  url_variables=url_variables,
1379
1191
  request=request,
@@ -1402,7 +1214,7 @@ class Universal(BaseSDK):
1402
1214
  hook_ctx=HookContext(
1403
1215
  config=self.sdk_configuration,
1404
1216
  base_url=base_url or "",
1405
- operation_id="generic_unwrap_weth",
1217
+ operation_id="v1_generic_unwrap_weth",
1406
1218
  oauth2_scopes=[],
1407
1219
  security_source=self.sdk_configuration.security,
1408
1220
  ),
@@ -1413,7 +1225,7 @@ class Universal(BaseSDK):
1413
1225
 
1414
1226
  response_data: Any = None
1415
1227
  if utils.match_response(http_res, "200", "application/json"):
1416
- return unmarshal_json_response(models.TxResponse, http_res)
1228
+ return unmarshal_json_response(models.TransactionResponse, http_res)
1417
1229
  if utils.match_response(http_res, "422", "application/json"):
1418
1230
  response_data = unmarshal_json_response(
1419
1231
  errors.HTTPValidationErrorData, http_res
@@ -1428,26 +1240,26 @@ class Universal(BaseSDK):
1428
1240
 
1429
1241
  raise errors.APIError("Unexpected response received", http_res)
1430
1242
 
1431
- async def unwrap_weth_async(
1243
+ async def generic_unwrap_weth_async(
1432
1244
  self,
1433
1245
  *,
1434
1246
  amount: Union[
1435
1247
  models.UnwrapWethRequestAmount, models.UnwrapWethRequestAmountTypedDict
1436
1248
  ],
1437
- chain: models.Chain,
1249
+ chain: models.UnwrapWethRequestChain,
1438
1250
  sender: str,
1439
1251
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1440
1252
  server_url: Optional[str] = None,
1441
1253
  timeout_ms: Optional[int] = None,
1442
1254
  http_headers: Optional[Mapping[str, str]] = None,
1443
- ) -> models.TxResponse:
1255
+ ) -> models.TransactionResponse:
1444
1256
  r"""Unwrap WETH
1445
1257
 
1446
1258
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
1447
1259
  can be used for gas and other native purposes.
1448
1260
 
1449
1261
  :param amount: The amount of WETH to unwrap.
1450
- :param chain: The chain to use.
1262
+ :param chain:
1451
1263
  :param sender: The address of the transaction sender.
1452
1264
  :param retries: Override the default retry configuration for this method
1453
1265
  :param server_url: Override the default server URL for this method
@@ -1472,7 +1284,7 @@ class Universal(BaseSDK):
1472
1284
 
1473
1285
  req = self._build_request_async(
1474
1286
  method="POST",
1475
- path="/v0/generic/unwrap_weth",
1287
+ path="/v1/generic/unwrap_weth",
1476
1288
  base_url=base_url,
1477
1289
  url_variables=url_variables,
1478
1290
  request=request,
@@ -1501,7 +1313,7 @@ class Universal(BaseSDK):
1501
1313
  hook_ctx=HookContext(
1502
1314
  config=self.sdk_configuration,
1503
1315
  base_url=base_url or "",
1504
- operation_id="generic_unwrap_weth",
1316
+ operation_id="v1_generic_unwrap_weth",
1505
1317
  oauth2_scopes=[],
1506
1318
  security_source=self.sdk_configuration.security,
1507
1319
  ),
@@ -1512,7 +1324,7 @@ class Universal(BaseSDK):
1512
1324
 
1513
1325
  response_data: Any = None
1514
1326
  if utils.match_response(http_res, "200", "application/json"):
1515
- return unmarshal_json_response(models.TxResponse, http_res)
1327
+ return unmarshal_json_response(models.TransactionResponse, http_res)
1516
1328
  if utils.match_response(http_res, "422", "application/json"):
1517
1329
  response_data = unmarshal_json_response(
1518
1330
  errors.HTTPValidationErrorData, http_res
@@ -1527,7 +1339,7 @@ class Universal(BaseSDK):
1527
1339
 
1528
1340
  raise errors.APIError("Unexpected response received", http_res)
1529
1341
 
1530
- def allowance_set(
1342
+ def generic_allowance_set(
1531
1343
  self,
1532
1344
  *,
1533
1345
  token: Union[
@@ -1540,13 +1352,13 @@ class Universal(BaseSDK):
1540
1352
  amount: Union[
1541
1353
  models.SetAllowanceRequestAmount, models.SetAllowanceRequestAmountTypedDict
1542
1354
  ],
1543
- chain: models.Chain,
1355
+ chain: models.SetAllowanceRequestChain,
1544
1356
  sender: str,
1545
1357
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1546
1358
  server_url: Optional[str] = None,
1547
1359
  timeout_ms: Optional[int] = None,
1548
1360
  http_headers: Optional[Mapping[str, str]] = None,
1549
- ) -> models.TxResponse:
1361
+ ) -> models.TransactionResponse:
1550
1362
  r"""Set Allowance
1551
1363
 
1552
1364
  This endpoint allows users to modify the token allowance on any ERC-20 token for
@@ -1561,7 +1373,7 @@ class Universal(BaseSDK):
1561
1373
  :param token: The symbol or address of the token for which the allowance is set..
1562
1374
  :param contract: The name or address of the contract to set spending allowance for.
1563
1375
  :param amount: The amount to set the allowance to.
1564
- :param chain: The chain to use.
1376
+ :param chain:
1565
1377
  :param sender: The address of the transaction sender.
1566
1378
  :param retries: Override the default retry configuration for this method
1567
1379
  :param server_url: Override the default server URL for this method
@@ -1588,7 +1400,7 @@ class Universal(BaseSDK):
1588
1400
 
1589
1401
  req = self._build_request(
1590
1402
  method="POST",
1591
- path="/v0/generic/allowance/set",
1403
+ path="/v1/generic/allowance/set",
1592
1404
  base_url=base_url,
1593
1405
  url_variables=url_variables,
1594
1406
  request=request,
@@ -1617,7 +1429,7 @@ class Universal(BaseSDK):
1617
1429
  hook_ctx=HookContext(
1618
1430
  config=self.sdk_configuration,
1619
1431
  base_url=base_url or "",
1620
- operation_id="generic_allowance_set",
1432
+ operation_id="v1_generic_allowance_set",
1621
1433
  oauth2_scopes=[],
1622
1434
  security_source=self.sdk_configuration.security,
1623
1435
  ),
@@ -1628,7 +1440,7 @@ class Universal(BaseSDK):
1628
1440
 
1629
1441
  response_data: Any = None
1630
1442
  if utils.match_response(http_res, "200", "application/json"):
1631
- return unmarshal_json_response(models.TxResponse, http_res)
1443
+ return unmarshal_json_response(models.TransactionResponse, http_res)
1632
1444
  if utils.match_response(http_res, "422", "application/json"):
1633
1445
  response_data = unmarshal_json_response(
1634
1446
  errors.HTTPValidationErrorData, http_res
@@ -1643,7 +1455,7 @@ class Universal(BaseSDK):
1643
1455
 
1644
1456
  raise errors.APIError("Unexpected response received", http_res)
1645
1457
 
1646
- async def allowance_set_async(
1458
+ async def generic_allowance_set_async(
1647
1459
  self,
1648
1460
  *,
1649
1461
  token: Union[
@@ -1656,13 +1468,13 @@ class Universal(BaseSDK):
1656
1468
  amount: Union[
1657
1469
  models.SetAllowanceRequestAmount, models.SetAllowanceRequestAmountTypedDict
1658
1470
  ],
1659
- chain: models.Chain,
1471
+ chain: models.SetAllowanceRequestChain,
1660
1472
  sender: str,
1661
1473
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1662
1474
  server_url: Optional[str] = None,
1663
1475
  timeout_ms: Optional[int] = None,
1664
1476
  http_headers: Optional[Mapping[str, str]] = None,
1665
- ) -> models.TxResponse:
1477
+ ) -> models.TransactionResponse:
1666
1478
  r"""Set Allowance
1667
1479
 
1668
1480
  This endpoint allows users to modify the token allowance on any ERC-20 token for
@@ -1677,7 +1489,7 @@ class Universal(BaseSDK):
1677
1489
  :param token: The symbol or address of the token for which the allowance is set..
1678
1490
  :param contract: The name or address of the contract to set spending allowance for.
1679
1491
  :param amount: The amount to set the allowance to.
1680
- :param chain: The chain to use.
1492
+ :param chain:
1681
1493
  :param sender: The address of the transaction sender.
1682
1494
  :param retries: Override the default retry configuration for this method
1683
1495
  :param server_url: Override the default server URL for this method
@@ -1704,7 +1516,7 @@ class Universal(BaseSDK):
1704
1516
 
1705
1517
  req = self._build_request_async(
1706
1518
  method="POST",
1707
- path="/v0/generic/allowance/set",
1519
+ path="/v1/generic/allowance/set",
1708
1520
  base_url=base_url,
1709
1521
  url_variables=url_variables,
1710
1522
  request=request,
@@ -1733,7 +1545,7 @@ class Universal(BaseSDK):
1733
1545
  hook_ctx=HookContext(
1734
1546
  config=self.sdk_configuration,
1735
1547
  base_url=base_url or "",
1736
- operation_id="generic_allowance_set",
1548
+ operation_id="v1_generic_allowance_set",
1737
1549
  oauth2_scopes=[],
1738
1550
  security_source=self.sdk_configuration.security,
1739
1551
  ),
@@ -1744,7 +1556,7 @@ class Universal(BaseSDK):
1744
1556
 
1745
1557
  response_data: Any = None
1746
1558
  if utils.match_response(http_res, "200", "application/json"):
1747
- return unmarshal_json_response(models.TxResponse, http_res)
1559
+ return unmarshal_json_response(models.TransactionResponse, http_res)
1748
1560
  if utils.match_response(http_res, "422", "application/json"):
1749
1561
  response_data = unmarshal_json_response(
1750
1562
  errors.HTTPValidationErrorData, http_res