compass_api_sdk 0.1.0__py3-none-any.whl → 0.1.2__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 (172) hide show
  1. {compass_api_sdk-0.1.0.dist-info → compass_api_sdk-0.1.2.dist-info}/METADATA +40 -39
  2. compass_api_sdk-0.1.2.dist-info/RECORD +165 -0
  3. {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
  4. {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
  5. {compass_api_sdk → compassapisdk}/_version.py +2 -2
  6. {compass_api_sdk → compassapisdk}/aave_v3.py +9 -9
  7. {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +3 -3
  8. {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
  9. {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
  10. {compass_api_sdk → compassapisdk}/models/__init__.py +431 -47
  11. {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +2 -2
  12. {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +2 -2
  13. {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +5 -7
  14. {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +5 -7
  15. compassapisdk/models/aaveborrowparams.py +94 -0
  16. {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
  17. {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
  18. compassapisdk/models/aaverepayparams.py +94 -0
  19. {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
  20. compassapisdk/models/aavesupplyparams.py +82 -0
  21. {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
  22. {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
  23. {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
  24. {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
  25. compassapisdk/models/aavewithdrawparams.py +45 -0
  26. {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
  27. {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +2 -2
  28. {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +2 -2
  29. compassapisdk/models/aerodromeaddliquidityethparams.py +153 -0
  30. compassapisdk/models/aerodromeaddliquidityparams.py +160 -0
  31. {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
  32. {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
  33. compassapisdk/models/aerodromeremoveliquidityethrequest.py +139 -0
  34. compassapisdk/models/aerodromeremoveliquidityrequest.py +152 -0
  35. compassapisdk/models/aerodromeslipstreambuyexactlyparams.py +81 -0
  36. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
  37. compassapisdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +110 -0
  38. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
  39. compassapisdk/models/aerodromeslipstreammintliquidityprovisionparams.py +175 -0
  40. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
  41. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
  42. compassapisdk/models/aerodromeslipstreamsellexactlyparams.py +85 -0
  43. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
  44. compassapisdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +51 -0
  45. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
  46. compassapisdk/models/aerodromeswapethfortokenparams.py +110 -0
  47. compassapisdk/models/aerodromeswaptokenforethparams.py +110 -0
  48. compassapisdk/models/aerodromeswaptokensparams.py +135 -0
  49. {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
  50. {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
  51. {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
  52. {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
  53. compassapisdk/models/contractname.py +34 -0
  54. {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
  55. {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +2 -2
  56. {compass_api_sdk → compassapisdk}/models/generic_ensop.py +2 -2
  57. {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +2 -2
  58. {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
  59. {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +2 -2
  60. {compass_api_sdk → compassapisdk}/models/image.py +1 -1
  61. compassapisdk/models/increaseallowanceanyparams.py +62 -0
  62. compassapisdk/models/increaseallowanceparams.py +66 -0
  63. {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +4 -4
  64. {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
  65. {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +2 -2
  66. {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +2 -2
  67. {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +2 -2
  68. {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +2 -2
  69. {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +1 -1
  70. {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
  71. {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
  72. {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +1 -1
  73. {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
  74. {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
  75. {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
  76. {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +1 -1
  77. {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +1 -1
  78. {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +1 -1
  79. {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
  80. {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +1 -1
  81. {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +1 -1
  82. compassapisdk/models/multicallaction.py +170 -0
  83. compassapisdk/models/multicallactiontype.py +33 -0
  84. compassapisdk/models/multicallauthorizationrequest.py +35 -0
  85. compassapisdk/models/multicallauthorizationresponse.py +31 -0
  86. compassapisdk/models/multicallexecuterequest.py +36 -0
  87. {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
  88. {compass_api_sdk → compassapisdk}/models/security.py +2 -2
  89. compassapisdk/models/signedauthorization.py +42 -0
  90. {compass_api_sdk → compassapisdk}/models/token_addressop.py +2 -2
  91. {compass_api_sdk → compassapisdk}/models/token_balanceop.py +2 -2
  92. {compass_api_sdk → compassapisdk}/models/token_priceop.py +2 -2
  93. {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
  94. {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
  95. {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
  96. {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
  97. {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
  98. compass_api_sdk/models/transfererc20request.py → compassapisdk/models/tokentransfererc20params.py +11 -22
  99. {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
  100. {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +2 -2
  101. {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +2 -2
  102. {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +2 -2
  103. {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +2 -2
  104. {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +2 -2
  105. compassapisdk/models/uniswapbuyexactlyparams.py +89 -0
  106. {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +1 -1
  107. {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
  108. {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
  109. compassapisdk/models/uniswapincreaseliquidityprovisionparams.py +84 -0
  110. {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
  111. {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
  112. compassapisdk/models/uniswapmintliquidityprovisionparams.py +170 -0
  113. {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
  114. {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
  115. {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
  116. compassapisdk/models/uniswapsellexactlyparams.py +93 -0
  117. {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
  118. {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
  119. compassapisdk/models/uniswapwithdrawliquidityprovisionparams.py +50 -0
  120. {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
  121. compassapisdk/models/unsignedmulticalltransaction.py +67 -0
  122. {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
  123. compassapisdk/models/unwrapwethparams.py +30 -0
  124. {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
  125. {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
  126. {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
  127. {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
  128. compassapisdk/models/wrapethparams.py +30 -0
  129. {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
  130. {compass_api_sdk → compassapisdk}/morpho.py +3 -3
  131. {compass_api_sdk → compassapisdk}/sdk.py +12 -9
  132. {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
  133. {compass_api_sdk → compassapisdk}/token_sdk.py +3 -3
  134. compassapisdk/transaction_batching.py +473 -0
  135. {compass_api_sdk → compassapisdk}/uniswap_v3.py +3 -3
  136. {compass_api_sdk → compassapisdk}/universal.py +144 -1012
  137. compass_api_sdk/_hooks/registration.py +0 -13
  138. compass_api_sdk/models/balanceinforesponse.py +0 -43
  139. compass_api_sdk/models/generic_balanceop.py +0 -104
  140. compass_api_sdk/models/generic_price_usdop.py +0 -97
  141. compass_api_sdk/models/priceresponse.py +0 -15
  142. compass_api_sdk/models/transferethrequest.py +0 -46
  143. compass_api_sdk-0.1.0.dist-info/RECORD +0 -137
  144. {compass_api_sdk-0.1.0.dist-info → compass_api_sdk-0.1.2.dist-info}/WHEEL +0 -0
  145. {compass_api_sdk → compassapisdk}/__init__.py +0 -0
  146. {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
  147. {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
  148. {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
  149. {compass_api_sdk → compassapisdk}/httpclient.py +0 -0
  150. {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
  151. {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
  152. {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
  153. {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
  154. {compass_api_sdk → compassapisdk}/py.typed +0 -0
  155. {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
  156. {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
  157. {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
  158. {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
  159. {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
  160. {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
  161. {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
  162. {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
  163. {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
  164. {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
  165. {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
  166. {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
  167. {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
  168. {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
  169. {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
  170. {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
  171. {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
  172. {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
@@ -0,0 +1,89 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .feeenum import FeeEnum
5
+ from .token_enum import TokenEnum
6
+ from compassapisdk.types import BaseModel
7
+ from typing import Optional, Union
8
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
9
+
10
+
11
+ UniswapBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
12
+ "UniswapBuyExactlyParamsAmountOutTypedDict", Union[float, str]
13
+ )
14
+ r"""The amount of the token to swap to"""
15
+
16
+
17
+ UniswapBuyExactlyParamsAmountOut = TypeAliasType(
18
+ "UniswapBuyExactlyParamsAmountOut", Union[float, str]
19
+ )
20
+ r"""The amount of the token to swap to"""
21
+
22
+
23
+ UniswapBuyExactlyParamsAmountInMaximumTypedDict = TypeAliasType(
24
+ "UniswapBuyExactlyParamsAmountInMaximumTypedDict", Union[float, str]
25
+ )
26
+ r"""The maximum amount of the token to swap from"""
27
+
28
+
29
+ UniswapBuyExactlyParamsAmountInMaximum = TypeAliasType(
30
+ "UniswapBuyExactlyParamsAmountInMaximum", Union[float, str]
31
+ )
32
+ r"""The maximum amount of the token to swap from"""
33
+
34
+
35
+ class UniswapBuyExactlyParamsTypedDict(TypedDict):
36
+ token_in: TokenEnum
37
+ r"""A class representing the token.
38
+
39
+ This class is used to represent the token in the system. Notice individual
40
+ endpoints' documentation where per chain tokens are presented.
41
+ """
42
+ token_out: TokenEnum
43
+ r"""A class representing the token.
44
+
45
+ This class is used to represent the token in the system. Notice individual
46
+ endpoints' documentation where per chain tokens are presented.
47
+ """
48
+ fee: FeeEnum
49
+ r"""The transaction fee of a Uniswap pool in bips.
50
+
51
+ Uniswap supports 4 different fee levels.
52
+ """
53
+ amount_out: UniswapBuyExactlyParamsAmountOutTypedDict
54
+ r"""The amount of the token to swap to"""
55
+ amount_in_maximum: UniswapBuyExactlyParamsAmountInMaximumTypedDict
56
+ r"""The maximum amount of the token to swap from"""
57
+ wrap_eth: NotRequired[bool]
58
+ r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
59
+
60
+
61
+ class UniswapBuyExactlyParams(BaseModel):
62
+ token_in: TokenEnum
63
+ r"""A class representing the token.
64
+
65
+ This class is used to represent the token in the system. Notice individual
66
+ endpoints' documentation where per chain tokens are presented.
67
+ """
68
+
69
+ token_out: TokenEnum
70
+ r"""A class representing the token.
71
+
72
+ This class is used to represent the token in the system. Notice individual
73
+ endpoints' documentation where per chain tokens are presented.
74
+ """
75
+
76
+ fee: FeeEnum
77
+ r"""The transaction fee of a Uniswap pool in bips.
78
+
79
+ Uniswap supports 4 different fee levels.
80
+ """
81
+
82
+ amount_out: UniswapBuyExactlyParamsAmountOut
83
+ r"""The amount of the token to swap to"""
84
+
85
+ amount_in_maximum: UniswapBuyExactlyParamsAmountInMaximum
86
+ r"""The maximum amount of the token to swap from"""
87
+
88
+ wrap_eth: Optional[bool] = False
89
+ r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .feeenum import FeeEnum
6
6
  from .token_enum import TokenEnum
7
- from compass_api_sdk.types import BaseModel
7
+ from compassapisdk.types import BaseModel
8
8
  from typing import Optional, Union
9
9
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
10
10
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -0,0 +1,84 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import BaseModel
5
+ from typing import Union
6
+ from typing_extensions import TypeAliasType, TypedDict
7
+
8
+
9
+ UniswapIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict = TypeAliasType(
10
+ "UniswapIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict", Union[float, str]
11
+ )
12
+ r"""The desired amount of the first token to deposit"""
13
+
14
+
15
+ UniswapIncreaseLiquidityProvisionParamsAmount0Desired = TypeAliasType(
16
+ "UniswapIncreaseLiquidityProvisionParamsAmount0Desired", Union[float, str]
17
+ )
18
+ r"""The desired amount of the first token to deposit"""
19
+
20
+
21
+ UniswapIncreaseLiquidityProvisionParamsAmount1DesiredTypedDict = TypeAliasType(
22
+ "UniswapIncreaseLiquidityProvisionParamsAmount1DesiredTypedDict", Union[float, str]
23
+ )
24
+ r"""The desired amount of the second token to deposit"""
25
+
26
+
27
+ UniswapIncreaseLiquidityProvisionParamsAmount1Desired = TypeAliasType(
28
+ "UniswapIncreaseLiquidityProvisionParamsAmount1Desired", Union[float, str]
29
+ )
30
+ r"""The desired amount of the second token to deposit"""
31
+
32
+
33
+ UniswapIncreaseLiquidityProvisionParamsAmount0MinTypedDict = TypeAliasType(
34
+ "UniswapIncreaseLiquidityProvisionParamsAmount0MinTypedDict", Union[float, str]
35
+ )
36
+ r"""The minimum amount of the first token to deposit"""
37
+
38
+
39
+ UniswapIncreaseLiquidityProvisionParamsAmount0Min = TypeAliasType(
40
+ "UniswapIncreaseLiquidityProvisionParamsAmount0Min", Union[float, str]
41
+ )
42
+ r"""The minimum amount of the first token to deposit"""
43
+
44
+
45
+ UniswapIncreaseLiquidityProvisionParamsAmount1MinTypedDict = TypeAliasType(
46
+ "UniswapIncreaseLiquidityProvisionParamsAmount1MinTypedDict", Union[float, str]
47
+ )
48
+ r"""The minimum amount of the second token to deposit"""
49
+
50
+
51
+ UniswapIncreaseLiquidityProvisionParamsAmount1Min = TypeAliasType(
52
+ "UniswapIncreaseLiquidityProvisionParamsAmount1Min", Union[float, str]
53
+ )
54
+ r"""The minimum amount of the second token to deposit"""
55
+
56
+
57
+ class UniswapIncreaseLiquidityProvisionParamsTypedDict(TypedDict):
58
+ token_id: int
59
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
60
+ amount0_desired: UniswapIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict
61
+ r"""The desired amount of the first token to deposit"""
62
+ amount1_desired: UniswapIncreaseLiquidityProvisionParamsAmount1DesiredTypedDict
63
+ r"""The desired amount of the second token to deposit"""
64
+ amount0_min: UniswapIncreaseLiquidityProvisionParamsAmount0MinTypedDict
65
+ r"""The minimum amount of the first token to deposit"""
66
+ amount1_min: UniswapIncreaseLiquidityProvisionParamsAmount1MinTypedDict
67
+ r"""The minimum amount of the second token to deposit"""
68
+
69
+
70
+ class UniswapIncreaseLiquidityProvisionParams(BaseModel):
71
+ token_id: int
72
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
73
+
74
+ amount0_desired: UniswapIncreaseLiquidityProvisionParamsAmount0Desired
75
+ r"""The desired amount of the first token to deposit"""
76
+
77
+ amount1_desired: UniswapIncreaseLiquidityProvisionParamsAmount1Desired
78
+ r"""The desired amount of the second token to deposit"""
79
+
80
+ amount0_min: UniswapIncreaseLiquidityProvisionParamsAmount0Min
81
+ r"""The minimum amount of the first token to deposit"""
82
+
83
+ amount1_min: UniswapIncreaseLiquidityProvisionParamsAmount1Min
84
+ r"""The minimum amount of the second token to deposit"""
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -5,7 +5,7 @@ from .uniswappositionssolidityresponse import (
5
5
  UniswapPositionsSolidityResponse,
6
6
  UniswapPositionsSolidityResponseTypedDict,
7
7
  )
8
- from compass_api_sdk.types import BaseModel
8
+ from compassapisdk.types import BaseModel
9
9
  from typing import Dict
10
10
  from typing_extensions import TypedDict
11
11
 
@@ -0,0 +1,170 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .feeenum import FeeEnum
5
+ from .token_enum import TokenEnum
6
+ from compassapisdk.types import (
7
+ BaseModel,
8
+ Nullable,
9
+ OptionalNullable,
10
+ UNSET,
11
+ UNSET_SENTINEL,
12
+ )
13
+ from pydantic import model_serializer
14
+ from typing import Union
15
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
16
+
17
+
18
+ UniswapMintLiquidityProvisionParamsAmount0DesiredTypedDict = TypeAliasType(
19
+ "UniswapMintLiquidityProvisionParamsAmount0DesiredTypedDict", Union[float, str]
20
+ )
21
+ r"""The desired amount of the first token to deposit"""
22
+
23
+
24
+ UniswapMintLiquidityProvisionParamsAmount0Desired = TypeAliasType(
25
+ "UniswapMintLiquidityProvisionParamsAmount0Desired", Union[float, str]
26
+ )
27
+ r"""The desired amount of the first token to deposit"""
28
+
29
+
30
+ UniswapMintLiquidityProvisionParamsAmount1DesiredTypedDict = TypeAliasType(
31
+ "UniswapMintLiquidityProvisionParamsAmount1DesiredTypedDict", Union[float, str]
32
+ )
33
+ r"""The desired amount of the second token to deposit"""
34
+
35
+
36
+ UniswapMintLiquidityProvisionParamsAmount1Desired = TypeAliasType(
37
+ "UniswapMintLiquidityProvisionParamsAmount1Desired", Union[float, str]
38
+ )
39
+ r"""The desired amount of the second token to deposit"""
40
+
41
+
42
+ UniswapMintLiquidityProvisionParamsAmount0MinTypedDict = TypeAliasType(
43
+ "UniswapMintLiquidityProvisionParamsAmount0MinTypedDict", Union[float, str]
44
+ )
45
+ r"""The minimum amount of the first token to deposit"""
46
+
47
+
48
+ UniswapMintLiquidityProvisionParamsAmount0Min = TypeAliasType(
49
+ "UniswapMintLiquidityProvisionParamsAmount0Min", Union[float, str]
50
+ )
51
+ r"""The minimum amount of the first token to deposit"""
52
+
53
+
54
+ UniswapMintLiquidityProvisionParamsAmount1MinTypedDict = TypeAliasType(
55
+ "UniswapMintLiquidityProvisionParamsAmount1MinTypedDict", Union[float, str]
56
+ )
57
+ r"""The minimum amount of the second token to deposit"""
58
+
59
+
60
+ UniswapMintLiquidityProvisionParamsAmount1Min = TypeAliasType(
61
+ "UniswapMintLiquidityProvisionParamsAmount1Min", Union[float, str]
62
+ )
63
+ r"""The minimum amount of the second token to deposit"""
64
+
65
+
66
+ class UniswapMintLiquidityProvisionParamsTypedDict(TypedDict):
67
+ token0: TokenEnum
68
+ r"""A class representing the token.
69
+
70
+ This class is used to represent the token in the system. Notice individual
71
+ endpoints' documentation where per chain tokens are presented.
72
+ """
73
+ token1: TokenEnum
74
+ r"""A class representing the token.
75
+
76
+ This class is used to represent the token in the system. Notice individual
77
+ endpoints' documentation where per chain tokens are presented.
78
+ """
79
+ fee: FeeEnum
80
+ r"""The transaction fee of a Uniswap pool in bips.
81
+
82
+ Uniswap supports 4 different fee levels.
83
+ """
84
+ tick_lower: int
85
+ r"""The lower tick of the range to mint the position in"""
86
+ tick_upper: int
87
+ r"""The upper tick of the range to mint the position in"""
88
+ amount0_desired: UniswapMintLiquidityProvisionParamsAmount0DesiredTypedDict
89
+ r"""The desired amount of the first token to deposit"""
90
+ amount1_desired: UniswapMintLiquidityProvisionParamsAmount1DesiredTypedDict
91
+ r"""The desired amount of the second token to deposit"""
92
+ amount0_min: UniswapMintLiquidityProvisionParamsAmount0MinTypedDict
93
+ r"""The minimum amount of the first token to deposit"""
94
+ amount1_min: UniswapMintLiquidityProvisionParamsAmount1MinTypedDict
95
+ r"""The minimum amount of the second token to deposit"""
96
+ recipient: NotRequired[Nullable[str]]
97
+ r"""The address that will receive the LP tokens"""
98
+
99
+
100
+ class UniswapMintLiquidityProvisionParams(BaseModel):
101
+ token0: TokenEnum
102
+ r"""A class representing the token.
103
+
104
+ This class is used to represent the token in the system. Notice individual
105
+ endpoints' documentation where per chain tokens are presented.
106
+ """
107
+
108
+ token1: TokenEnum
109
+ r"""A class representing the token.
110
+
111
+ This class is used to represent the token in the system. Notice individual
112
+ endpoints' documentation where per chain tokens are presented.
113
+ """
114
+
115
+ fee: FeeEnum
116
+ r"""The transaction fee of a Uniswap pool in bips.
117
+
118
+ Uniswap supports 4 different fee levels.
119
+ """
120
+
121
+ tick_lower: int
122
+ r"""The lower tick of the range to mint the position in"""
123
+
124
+ tick_upper: int
125
+ r"""The upper tick of the range to mint the position in"""
126
+
127
+ amount0_desired: UniswapMintLiquidityProvisionParamsAmount0Desired
128
+ r"""The desired amount of the first token to deposit"""
129
+
130
+ amount1_desired: UniswapMintLiquidityProvisionParamsAmount1Desired
131
+ r"""The desired amount of the second token to deposit"""
132
+
133
+ amount0_min: UniswapMintLiquidityProvisionParamsAmount0Min
134
+ r"""The minimum amount of the first token to deposit"""
135
+
136
+ amount1_min: UniswapMintLiquidityProvisionParamsAmount1Min
137
+ r"""The minimum amount of the second token to deposit"""
138
+
139
+ recipient: OptionalNullable[str] = UNSET
140
+ r"""The address that will receive the LP tokens"""
141
+
142
+ @model_serializer(mode="wrap")
143
+ def serialize_model(self, handler):
144
+ optional_fields = ["recipient"]
145
+ nullable_fields = ["recipient"]
146
+ null_default_fields = []
147
+
148
+ serialized = handler(self)
149
+
150
+ m = {}
151
+
152
+ for n, f in type(self).model_fields.items():
153
+ k = f.alias or n
154
+ val = serialized.get(k)
155
+ serialized.pop(k, None)
156
+
157
+ optional_nullable = k in optional_fields and k in nullable_fields
158
+ is_set = (
159
+ self.__pydantic_fields_set__.intersection({n})
160
+ or k in null_default_fields
161
+ ) # pylint: disable=no-member
162
+
163
+ if val is not None and val != UNSET_SENTINEL:
164
+ m[k] = val
165
+ elif val != UNSET_SENTINEL and (
166
+ not k in optional_fields or (optional_nullable and is_set)
167
+ ):
168
+ m[k] = val
169
+
170
+ return m
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .feeenum import FeeEnum
6
6
  from .token_enum import TokenEnum
7
- from compass_api_sdk.types import (
7
+ from compassapisdk.types import (
8
8
  BaseModel,
9
9
  Nullable,
10
10
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing_extensions import TypedDict
7
7
 
8
8
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -0,0 +1,93 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .feeenum import FeeEnum
5
+ from .token_enum import TokenEnum
6
+ from compassapisdk.types import BaseModel
7
+ from typing import Optional, Union
8
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
9
+
10
+
11
+ UniswapSellExactlyParamsAmountInTypedDict = TypeAliasType(
12
+ "UniswapSellExactlyParamsAmountInTypedDict", Union[float, str]
13
+ )
14
+ r"""The amount of the token to swap from"""
15
+
16
+
17
+ UniswapSellExactlyParamsAmountIn = TypeAliasType(
18
+ "UniswapSellExactlyParamsAmountIn", Union[float, str]
19
+ )
20
+ r"""The amount of the token to swap from"""
21
+
22
+
23
+ UniswapSellExactlyParamsAmountOutMinimumTypedDict = TypeAliasType(
24
+ "UniswapSellExactlyParamsAmountOutMinimumTypedDict", Union[float, str]
25
+ )
26
+ r"""The minimum amount of the token to swap to, defaults to 0"""
27
+
28
+
29
+ UniswapSellExactlyParamsAmountOutMinimum = TypeAliasType(
30
+ "UniswapSellExactlyParamsAmountOutMinimum", Union[float, str]
31
+ )
32
+ r"""The minimum amount of the token to swap to, defaults to 0"""
33
+
34
+
35
+ class UniswapSellExactlyParamsTypedDict(TypedDict):
36
+ r"""Parameters model for selling exactly an amount of tokens."""
37
+
38
+ token_in: TokenEnum
39
+ r"""A class representing the token.
40
+
41
+ This class is used to represent the token in the system. Notice individual
42
+ endpoints' documentation where per chain tokens are presented.
43
+ """
44
+ token_out: TokenEnum
45
+ r"""A class representing the token.
46
+
47
+ This class is used to represent the token in the system. Notice individual
48
+ endpoints' documentation where per chain tokens are presented.
49
+ """
50
+ fee: FeeEnum
51
+ r"""The transaction fee of a Uniswap pool in bips.
52
+
53
+ Uniswap supports 4 different fee levels.
54
+ """
55
+ amount_in: UniswapSellExactlyParamsAmountInTypedDict
56
+ r"""The amount of the token to swap from"""
57
+ amount_out_minimum: NotRequired[UniswapSellExactlyParamsAmountOutMinimumTypedDict]
58
+ r"""The minimum amount of the token to swap to, defaults to 0"""
59
+ wrap_eth: NotRequired[bool]
60
+ r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
61
+
62
+
63
+ class UniswapSellExactlyParams(BaseModel):
64
+ r"""Parameters model for selling exactly an amount of tokens."""
65
+
66
+ token_in: TokenEnum
67
+ r"""A class representing the token.
68
+
69
+ This class is used to represent the token in the system. Notice individual
70
+ endpoints' documentation where per chain tokens are presented.
71
+ """
72
+
73
+ token_out: TokenEnum
74
+ r"""A class representing the token.
75
+
76
+ This class is used to represent the token in the system. Notice individual
77
+ endpoints' documentation where per chain tokens are presented.
78
+ """
79
+
80
+ fee: FeeEnum
81
+ r"""The transaction fee of a Uniswap pool in bips.
82
+
83
+ Uniswap supports 4 different fee levels.
84
+ """
85
+
86
+ amount_in: UniswapSellExactlyParamsAmountIn
87
+ r"""The amount of the token to swap from"""
88
+
89
+ amount_out_minimum: Optional[UniswapSellExactlyParamsAmountOutMinimum] = None
90
+ r"""The minimum amount of the token to swap to, defaults to 0"""
91
+
92
+ wrap_eth: Optional[bool] = False
93
+ r"""Whether to wrap ETH to WETH, only use when swapping WETH into something"""
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .feeenum import FeeEnum
6
6
  from .token_enum import TokenEnum
7
- from compass_api_sdk.types import BaseModel
7
+ from compassapisdk.types import BaseModel
8
8
  from typing import Optional, Union
9
9
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
10
10
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -0,0 +1,50 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import BaseModel
5
+ from typing import Union
6
+ from typing_extensions import TypeAliasType, TypedDict
7
+
8
+
9
+ UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawalTypedDict = TypeAliasType(
10
+ "UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawalTypedDict",
11
+ Union[float, str],
12
+ )
13
+ r"""How much liquidity to take out in percentage."""
14
+
15
+
16
+ UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawal = TypeAliasType(
17
+ "UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawal", Union[float, str]
18
+ )
19
+ r"""How much liquidity to take out in percentage."""
20
+
21
+
22
+ class UniswapWithdrawLiquidityProvisionParamsTypedDict(TypedDict):
23
+ r"""Endpoint parameters for liquidity provision withdrawal on uniswap v3.
24
+
25
+ This action is performed in a multicall on the NonfungiblePosition Manager: https://github.com/Uniswap/v3-periphery/blob/0682387198a24c7cd63566a2c58398533860a5d1/contracts/base/Multicall.sol#L11-L27
26
+ First, we call decrease liquidity then collect the tokens owed to the user.
27
+ """
28
+
29
+ token_id: int
30
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
31
+ percentage_for_withdrawal: (
32
+ UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawalTypedDict
33
+ )
34
+ r"""How much liquidity to take out in percentage."""
35
+
36
+
37
+ class UniswapWithdrawLiquidityProvisionParams(BaseModel):
38
+ r"""Endpoint parameters for liquidity provision withdrawal on uniswap v3.
39
+
40
+ This action is performed in a multicall on the NonfungiblePosition Manager: https://github.com/Uniswap/v3-periphery/blob/0682387198a24c7cd63566a2c58398533860a5d1/contracts/base/Multicall.sol#L11-L27
41
+ First, we call decrease liquidity then collect the tokens owed to the user.
42
+ """
43
+
44
+ token_id: int
45
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
46
+
47
+ percentage_for_withdrawal: (
48
+ UniswapWithdrawLiquidityProvisionParamsPercentageForWithdrawal
49
+ )
50
+ r"""How much liquidity to take out in percentage."""
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -0,0 +1,67 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .signedauthorization import SignedAuthorization, SignedAuthorizationTypedDict
5
+ from compassapisdk.types import BaseModel
6
+ import pydantic
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class UnsignedMulticallTransactionTypedDict(TypedDict):
12
+ chain_id: int
13
+ r"""The chain id of the transaction"""
14
+ data: str
15
+ r"""The data of the transaction"""
16
+ from_: str
17
+ r"""The sender of the transaction"""
18
+ gas: int
19
+ r"""The gas of the transaction"""
20
+ to: str
21
+ r"""The recipient of the transaction"""
22
+ value: int
23
+ r"""The value of the transaction"""
24
+ nonce: int
25
+ r"""The nonce of the address"""
26
+ max_fee_per_gas: int
27
+ r"""The max fee per gas of the transaction"""
28
+ max_priority_fee_per_gas: int
29
+ r"""The max priority fee per gas of the transaction"""
30
+ authorization_list: NotRequired[List[SignedAuthorizationTypedDict]]
31
+ r"""EIP-7702 authorization"""
32
+
33
+
34
+ class UnsignedMulticallTransaction(BaseModel):
35
+ chain_id: Annotated[int, pydantic.Field(alias="chainId")]
36
+ r"""The chain id of the transaction"""
37
+
38
+ data: str
39
+ r"""The data of the transaction"""
40
+
41
+ from_: Annotated[str, pydantic.Field(alias="from")]
42
+ r"""The sender of the transaction"""
43
+
44
+ gas: int
45
+ r"""The gas of the transaction"""
46
+
47
+ to: str
48
+ r"""The recipient of the transaction"""
49
+
50
+ value: int
51
+ r"""The value of the transaction"""
52
+
53
+ nonce: int
54
+ r"""The nonce of the address"""
55
+
56
+ max_fee_per_gas: Annotated[int, pydantic.Field(alias="maxFeePerGas")]
57
+ r"""The max fee per gas of the transaction"""
58
+
59
+ max_priority_fee_per_gas: Annotated[
60
+ int, pydantic.Field(alias="maxPriorityFeePerGas")
61
+ ]
62
+ r"""The max priority fee per gas of the transaction"""
63
+
64
+ authorization_list: Annotated[
65
+ Optional[List[SignedAuthorization]], pydantic.Field(alias="authorizationList")
66
+ ] = None
67
+ r"""EIP-7702 authorization"""
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  import pydantic
6
6
  from typing_extensions import Annotated, TypedDict
7
7