compass_api_sdk 0.9.52__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 (99) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +70 -124
  3. compass_api_sdk/aerodrome_slipstream.py +86 -88
  4. compass_api_sdk/erc_4626_vaults.py +18 -42
  5. compass_api_sdk/models/__init__.py +908 -962
  6. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_borrow_aaveborrowrequest.py → aaveborrowrequest.py} +10 -18
  7. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +65 -0
  8. compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_aave_loop_request_aavelooprequest.py → aavelooprequest.py} +5 -11
  9. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_repay_aaverepayrequest.py → aaverepayrequest.py} +10 -18
  10. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_supply_aavesupplyrequest.py → aavesupplyrequest.py} +10 -18
  11. compass_api_sdk/models/{compass_api_backend_models_aave_transact_request_withdraw_aavewithdrawrequest.py → aavewithdrawrequest.py} +11 -19
  12. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_read_response_positions_aerodromelppositionsresponse.py → aerodromelppositionsresponse.py} +2 -6
  13. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_swap_buy_exactly_aerodromeslipstreambuyexactlyrequest.py → aerodromeslipstreambuyexactlyrequest.py} +17 -27
  14. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +125 -0
  15. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_mint_aerodromeslipstreammintliquidityprovisionrequest.py → aerodromeslipstreammintliquidityprovisionrequest.py} +33 -39
  16. compass_api_sdk/models/{compass_api_backend_models_aerodrome_slipstream_transact_request_swap_sell_exactly_aerodromeslipstreamsellexactlyrequest.py → aerodromeslipstreamsellexactlyrequest.py} +17 -27
  17. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +66 -0
  18. compass_api_sdk/models/batcheduseroperationsrequest.py +36 -0
  19. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_borrow.py → borrow.py} +2 -4
  20. compass_api_sdk/models/{compass_api_backend_config_chain_chain.py → chain.py} +1 -1
  21. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_liquidationcall.py → liquidationcall.py} +2 -6
  22. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketposition.py → marketposition.py} +2 -6
  23. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_borrow_morphoborrowrequest.py → morphoborrowrequest.py} +11 -19
  24. compass_api_sdk/models/morphocheckuserpositionresponse.py +32 -0
  25. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_deposit_morphodepositrequest.py → morphodepositrequest.py} +11 -23
  26. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_morphogetmarketresponse.py → morphogetmarketresponse.py} +2 -6
  27. compass_api_sdk/models/morphogetmarketsresponse.py +17 -0
  28. compass_api_sdk/models/morphogetvaultsresponse.py +17 -0
  29. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_morphomarket.py → morphomarket.py} +2 -4
  30. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_repay_morphorepayrequest.py → morphorepayrequest.py} +5 -9
  31. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_supply_collateral_morphosupplycollateralrequest.py → morphosupplycollateralrequest.py} +11 -19
  32. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_morphovault.py → morphovault.py} +2 -2
  33. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_withdraw_collateral_morphowithdrawcollateralrequest.py → morphowithdrawcollateralrequest.py} +11 -19
  34. compass_api_sdk/models/{compass_api_backend_models_morpho_transact_request_withdraw_morphowithdrawrequest.py → morphowithdrawrequest.py} +5 -15
  35. compass_api_sdk/models/{compass_api_backend_models_multicall_read_request_get_authorization_multicallauthorizationrequest.py → multicallauthorizationrequest.py} +5 -11
  36. compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_multicall_execution_request_multicallexecuterequest.py → multicallexecuterequest.py} +8 -21
  37. compass_api_sdk/models/odosswaprequest.py +90 -0
  38. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_openposition.py → openposition.py} +2 -4
  39. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_pendlegetmarketresponse.py → pendlegetmarketresponse.py} +2 -4
  40. compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
  41. compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
  42. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_markets_pendlemarket.py → pendlemarket.py} +2 -2
  43. compass_api_sdk/models/{compass_api_backend_models_pendle_transact_request_redeem_yield_pendleredeemyieldrequest.py → pendleredeemyieldrequest.py} +5 -11
  44. compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_portfolio.py → portfolio.py} +2 -2
  45. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_position.py → position.py} +7 -18
  46. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_redeemunderlying.py → redeemunderlying.py} +2 -6
  47. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_repay.py → repay.py} +2 -4
  48. compass_api_sdk/models/setallowancerequest.py +112 -0
  49. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_buy_skybuyrequest.py → skybuyrequest.py} +13 -18
  50. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_deposit_skydepositrequest.py → skydepositrequest.py} +10 -22
  51. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_sell_skysellrequest.py → skysellrequest.py} +13 -21
  52. compass_api_sdk/models/{compass_api_backend_models_sky_transact_request_withdraw_skywithdrawrequest.py → skywithdrawrequest.py} +5 -13
  53. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_supply.py → supply.py} +2 -4
  54. compass_api_sdk/models/supportedchaininfo.py +19 -0
  55. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_swapborrowrate.py → swapborrowrate.py} +2 -6
  56. compass_api_sdk/models/tokentransferrequest.py +82 -0
  57. compass_api_sdk/models/uniswapbuyexactlyrequest.py +111 -0
  58. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +115 -0
  59. compass_api_sdk/models/{compass_api_backend_models_uniswap_transact_liquidity_provision_request_mint_uniswapmintliquidityprovisionrequest.py → uniswapmintliquidityprovisionrequest.py} +29 -43
  60. compass_api_sdk/models/uniswapsellexactlyrequest.py +111 -0
  61. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +67 -0
  62. compass_api_sdk/models/{compass_api_backend_models_generic_transact_request_unwrap_weth_unwrapwethrequest.py → unwrapwethrequest.py} +10 -22
  63. compass_api_sdk/models/{compass_api_backend_models_aave_read_response_historical_transactions_usageascollateral.py → usageascollateral.py} +2 -6
  64. compass_api_sdk/models/{compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation.py → useroperation.py} +2 -6
  65. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vault.py → vault.py} +2 -4
  66. compass_api_sdk/models/{compass_api_backend_models_vaults_transact_request_deposit_vaultdepositrequest.py → vaultdepositrequest.py} +11 -19
  67. compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_vaultgetvaultresponse.py → vaultgetvaultresponse.py} +2 -4
  68. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultposition.py → vaultposition.py} +5 -12
  69. compass_api_sdk/models/{compass_api_backend_models_vaults_transact_request_withdraw_vaultwithdrawrequest.py → vaultwithdrawrequest.py} +5 -11
  70. compass_api_sdk/models/{compass_api_backend_models_generic_transact_request_wrap_eth_wrapethrequest.py → wrapethrequest.py} +10 -20
  71. compass_api_sdk/morpho.py +82 -170
  72. compass_api_sdk/pendle.py +18 -56
  73. compass_api_sdk/sky.py +56 -106
  74. compass_api_sdk/smart_account.py +10 -38
  75. compass_api_sdk/swap.py +12 -26
  76. compass_api_sdk/token_sdk.py +12 -22
  77. compass_api_sdk/transaction_bundler.py +22 -70
  78. compass_api_sdk/uniswap_v3.py +90 -106
  79. compass_api_sdk/universal.py +44 -92
  80. {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.0.dist-info}/METADATA +1 -1
  81. {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.0.dist-info}/RECORD +82 -82
  82. compass_api_sdk/models/compass_api_backend_models_aave_read_response_historical_transactions_aavehistoricaltransactionsresponse.py +0 -115
  83. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_increase_aerodromeslipstreamincreaseliquidityprovisionrequest.py +0 -125
  84. compass_api_sdk/models/compass_api_backend_models_aerodrome_slipstream_transact_request_liquidity_provision_withdraw_aerodromeslipstreamwithdrawliquidityprovisionrequest.py +0 -68
  85. compass_api_sdk/models/compass_api_backend_models_generic_read_response_chains_supportedchaininfo.py +0 -21
  86. compass_api_sdk/models/compass_api_backend_models_generic_transact_request_allowance_setallowancerequest.py +0 -139
  87. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_check_user_position_morphocheckuserpositionresponse.py +0 -48
  88. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_morphogetmarketsresponse.py +0 -26
  89. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_morphogetvaultsresponse.py +0 -24
  90. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_markets_pendlelistmarketsresponse.py +0 -24
  91. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_pendlelistuserpositionsresponse.py +0 -24
  92. compass_api_sdk/models/compass_api_backend_models_smart_account_transact_request_user_operations_batcheduseroperationsrequest.py +0 -49
  93. compass_api_sdk/models/compass_api_backend_models_swap_transact_request_odos_odosswaprequest.py +0 -108
  94. compass_api_sdk/models/compass_api_backend_models_token_transact_request_transfer_tokentransferrequest.py +0 -98
  95. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_increase_uniswapincreaseliquidityprovisionrequest.py +0 -129
  96. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_liquidity_provision_request_withdraw_uniswapwithdrawliquidityprovisionrequest.py +0 -68
  97. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_buy_exactly_uniswapbuyexactlyrequest.py +0 -123
  98. compass_api_sdk/models/compass_api_backend_models_uniswap_transact_swap_request_sell_exactly_uniswapsellexactlyrequest.py +0 -123
  99. {compass_api_sdk-0.9.52.dist-info → compass_api_sdk-1.0.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,111 @@
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 compass_api_sdk.types import BaseModel
7
+ from compass_api_sdk.utils import validate_const
8
+ from enum import Enum
9
+ import pydantic
10
+ from pydantic.functional_validators import AfterValidator
11
+ from typing import Literal, Optional, Union
12
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
13
+
14
+
15
+ UniswapBuyExactlyRequestTokenInTypedDict = TypeAliasType(
16
+ "UniswapBuyExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
17
+ )
18
+ r"""The symbol or address of the token to swap from."""
19
+
20
+
21
+ UniswapBuyExactlyRequestTokenIn = TypeAliasType(
22
+ "UniswapBuyExactlyRequestTokenIn", Union[TokenEnum, str]
23
+ )
24
+ r"""The symbol or address of the token to swap from."""
25
+
26
+
27
+ UniswapBuyExactlyRequestTokenOutTypedDict = TypeAliasType(
28
+ "UniswapBuyExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
29
+ )
30
+ r"""The symbol or address of the token to swap to."""
31
+
32
+
33
+ UniswapBuyExactlyRequestTokenOut = TypeAliasType(
34
+ "UniswapBuyExactlyRequestTokenOut", Union[TokenEnum, str]
35
+ )
36
+ r"""The symbol or address of the token to swap to."""
37
+
38
+
39
+ UniswapBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
40
+ "UniswapBuyExactlyRequestAmountOutTypedDict", Union[float, str]
41
+ )
42
+ r"""The amount of 'token_out' to buy."""
43
+
44
+
45
+ UniswapBuyExactlyRequestAmountOut = TypeAliasType(
46
+ "UniswapBuyExactlyRequestAmountOut", Union[float, str]
47
+ )
48
+ r"""The amount of 'token_out' to buy."""
49
+
50
+
51
+ class UniswapBuyExactlyRequestChain(str, Enum):
52
+ ARBITRUM = "arbitrum"
53
+ BASE = "base"
54
+ ETHEREUM = "ethereum"
55
+
56
+
57
+ class UniswapBuyExactlyRequestTypedDict(TypedDict):
58
+ r"""Request model for buying an exact amount of tokens."""
59
+
60
+ token_in: UniswapBuyExactlyRequestTokenInTypedDict
61
+ r"""The symbol or address of the token to swap from."""
62
+ token_out: UniswapBuyExactlyRequestTokenOutTypedDict
63
+ r"""The symbol or address of the token to swap to."""
64
+ fee: FeeEnum
65
+ r"""The transaction fee of a Uniswap pool in bips.
66
+
67
+ Uniswap supports 4 different fee levels.
68
+ """
69
+ amount_out: UniswapBuyExactlyRequestAmountOutTypedDict
70
+ r"""The amount of 'token_out' to buy."""
71
+ max_slippage_percent: float
72
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
73
+ chain: UniswapBuyExactlyRequestChain
74
+ sender: str
75
+ r"""The address of the transaction sender."""
76
+ action_type: Literal["UNISWAP_BUY_EXACTLY"]
77
+
78
+
79
+ class UniswapBuyExactlyRequest(BaseModel):
80
+ r"""Request model for buying an exact amount of tokens."""
81
+
82
+ token_in: UniswapBuyExactlyRequestTokenIn
83
+ r"""The symbol or address of the token to swap from."""
84
+
85
+ token_out: UniswapBuyExactlyRequestTokenOut
86
+ r"""The symbol or address of the token to swap to."""
87
+
88
+ fee: FeeEnum
89
+ r"""The transaction fee of a Uniswap pool in bips.
90
+
91
+ Uniswap supports 4 different fee levels.
92
+ """
93
+
94
+ amount_out: UniswapBuyExactlyRequestAmountOut
95
+ r"""The amount of 'token_out' to buy."""
96
+
97
+ max_slippage_percent: float
98
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
99
+
100
+ chain: UniswapBuyExactlyRequestChain
101
+
102
+ sender: str
103
+ r"""The address of the transaction sender."""
104
+
105
+ ACTION_TYPE: Annotated[
106
+ Annotated[
107
+ Optional[Literal["UNISWAP_BUY_EXACTLY"]],
108
+ AfterValidator(validate_const("UNISWAP_BUY_EXACTLY")),
109
+ ],
110
+ pydantic.Field(alias="action_type"),
111
+ ] = "UNISWAP_BUY_EXACTLY"
@@ -0,0 +1,115 @@
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 compass_api_sdk.utils import validate_const
6
+ from enum import Enum
7
+ import pydantic
8
+ from pydantic.functional_validators import AfterValidator
9
+ from typing import Literal, Optional, Union
10
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
11
+
12
+
13
+ UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
14
+ "UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict", Union[float, str]
15
+ )
16
+ r"""The desired amount of the first token to deposit"""
17
+
18
+
19
+ UniswapIncreaseLiquidityProvisionRequestAmount0Desired = TypeAliasType(
20
+ "UniswapIncreaseLiquidityProvisionRequestAmount0Desired", Union[float, str]
21
+ )
22
+ r"""The desired amount of the first token to deposit"""
23
+
24
+
25
+ UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
26
+ "UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict", Union[float, str]
27
+ )
28
+ r"""The desired amount of the second token to deposit"""
29
+
30
+
31
+ UniswapIncreaseLiquidityProvisionRequestAmount1Desired = TypeAliasType(
32
+ "UniswapIncreaseLiquidityProvisionRequestAmount1Desired", Union[float, str]
33
+ )
34
+ r"""The desired amount of the second token to deposit"""
35
+
36
+
37
+ UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
38
+ "UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict", Union[float, str]
39
+ )
40
+ r"""The minimum amount of the first token to deposit"""
41
+
42
+
43
+ UniswapIncreaseLiquidityProvisionRequestAmount0Min = TypeAliasType(
44
+ "UniswapIncreaseLiquidityProvisionRequestAmount0Min", Union[float, str]
45
+ )
46
+ r"""The minimum amount of the first token to deposit"""
47
+
48
+
49
+ UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
50
+ "UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict", Union[float, str]
51
+ )
52
+ r"""The minimum amount of the second token to deposit"""
53
+
54
+
55
+ UniswapIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
56
+ "UniswapIncreaseLiquidityProvisionRequestAmount1Min", Union[float, str]
57
+ )
58
+ r"""The minimum amount of the second token to deposit"""
59
+
60
+
61
+ class UniswapIncreaseLiquidityProvisionRequestChain(str, Enum):
62
+ ARBITRUM = "arbitrum"
63
+ BASE = "base"
64
+ ETHEREUM = "ethereum"
65
+
66
+
67
+ class UniswapIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
68
+ r"""Request model for increasing liquidity provision in Uniswap V3."""
69
+
70
+ token_id: int
71
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
72
+ amount0_desired: UniswapIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict
73
+ r"""The desired amount of the first token to deposit"""
74
+ amount1_desired: UniswapIncreaseLiquidityProvisionRequestAmount1DesiredTypedDict
75
+ r"""The desired amount of the second token to deposit"""
76
+ amount0_min: UniswapIncreaseLiquidityProvisionRequestAmount0MinTypedDict
77
+ r"""The minimum amount of the first token to deposit"""
78
+ amount1_min: UniswapIncreaseLiquidityProvisionRequestAmount1MinTypedDict
79
+ r"""The minimum amount of the second token to deposit"""
80
+ chain: UniswapIncreaseLiquidityProvisionRequestChain
81
+ sender: str
82
+ r"""The address of the transaction sender."""
83
+ action_type: Literal["UNISWAP_ADD_LIQUIDITY"]
84
+
85
+
86
+ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
87
+ r"""Request model for increasing liquidity provision in Uniswap V3."""
88
+
89
+ token_id: int
90
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
91
+
92
+ amount0_desired: UniswapIncreaseLiquidityProvisionRequestAmount0Desired
93
+ r"""The desired amount of the first token to deposit"""
94
+
95
+ amount1_desired: UniswapIncreaseLiquidityProvisionRequestAmount1Desired
96
+ r"""The desired amount of the second token to deposit"""
97
+
98
+ amount0_min: UniswapIncreaseLiquidityProvisionRequestAmount0Min
99
+ r"""The minimum amount of the first token to deposit"""
100
+
101
+ amount1_min: UniswapIncreaseLiquidityProvisionRequestAmount1Min
102
+ r"""The minimum amount of the second token to deposit"""
103
+
104
+ chain: UniswapIncreaseLiquidityProvisionRequestChain
105
+
106
+ sender: str
107
+ r"""The address of the transaction sender."""
108
+
109
+ ACTION_TYPE: Annotated[
110
+ Annotated[
111
+ Optional[Literal["UNISWAP_ADD_LIQUIDITY"]],
112
+ AfterValidator(validate_const("UNISWAP_ADD_LIQUIDITY")),
113
+ ],
114
+ pydantic.Field(alias="action_type"),
115
+ ] = "UNISWAP_ADD_LIQUIDITY"
@@ -19,73 +19,61 @@ from typing import Literal, Optional, Union
19
19
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
20
20
 
21
21
 
22
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
23
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict",
24
- Union[float, str],
22
+ UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
23
+ "UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict", Union[float, str]
25
24
  )
26
25
  r"""The desired amount of the first token to deposit"""
27
26
 
28
27
 
29
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Desired = TypeAliasType(
30
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Desired",
31
- Union[float, str],
28
+ UniswapMintLiquidityProvisionRequestAmount0Desired = TypeAliasType(
29
+ "UniswapMintLiquidityProvisionRequestAmount0Desired", Union[float, str]
32
30
  )
33
31
  r"""The desired amount of the first token to deposit"""
34
32
 
35
33
 
36
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
37
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict",
38
- Union[float, str],
34
+ UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
35
+ "UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict", Union[float, str]
39
36
  )
40
37
  r"""The desired amount of the second token to deposit"""
41
38
 
42
39
 
43
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Desired = TypeAliasType(
44
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Desired",
45
- Union[float, str],
40
+ UniswapMintLiquidityProvisionRequestAmount1Desired = TypeAliasType(
41
+ "UniswapMintLiquidityProvisionRequestAmount1Desired", Union[float, str]
46
42
  )
47
43
  r"""The desired amount of the second token to deposit"""
48
44
 
49
45
 
50
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
51
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0MinTypedDict",
52
- Union[float, str],
46
+ UniswapMintLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
47
+ "UniswapMintLiquidityProvisionRequestAmount0MinTypedDict", Union[float, str]
53
48
  )
54
49
  r"""The minimum amount of the first token to deposit"""
55
50
 
56
51
 
57
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Min = TypeAliasType(
58
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Min",
59
- Union[float, str],
52
+ UniswapMintLiquidityProvisionRequestAmount0Min = TypeAliasType(
53
+ "UniswapMintLiquidityProvisionRequestAmount0Min", Union[float, str]
60
54
  )
61
55
  r"""The minimum amount of the first token to deposit"""
62
56
 
63
57
 
64
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
65
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1MinTypedDict",
66
- Union[float, str],
58
+ UniswapMintLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
59
+ "UniswapMintLiquidityProvisionRequestAmount1MinTypedDict", Union[float, str]
67
60
  )
68
61
  r"""The minimum amount of the second token to deposit"""
69
62
 
70
63
 
71
- CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
72
- "CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Min",
73
- Union[float, str],
64
+ UniswapMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
65
+ "UniswapMintLiquidityProvisionRequestAmount1Min", Union[float, str]
74
66
  )
75
67
  r"""The minimum amount of the second token to deposit"""
76
68
 
77
69
 
78
- class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestChain(
79
- str, Enum
80
- ):
70
+ class UniswapMintLiquidityProvisionRequestChain(str, Enum):
81
71
  ARBITRUM = "arbitrum"
82
72
  BASE = "base"
83
73
  ETHEREUM = "ethereum"
84
74
 
85
75
 
86
- class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestTypedDict(
87
- TypedDict
88
- ):
76
+ class UniswapMintLiquidityProvisionRequestTypedDict(TypedDict):
89
77
  r"""Request model for minting a new liquidity position."""
90
78
 
91
79
  token0: TokenEnum
@@ -109,15 +97,15 @@ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswap
109
97
  r"""The lower tick of the range to mint the position in"""
110
98
  tick_upper: int
111
99
  r"""The upper tick of the range to mint the position in"""
112
- amount0_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict
100
+ amount0_desired: UniswapMintLiquidityProvisionRequestAmount0DesiredTypedDict
113
101
  r"""The desired amount of the first token to deposit"""
114
- amount1_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict
102
+ amount1_desired: UniswapMintLiquidityProvisionRequestAmount1DesiredTypedDict
115
103
  r"""The desired amount of the second token to deposit"""
116
- amount0_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0MinTypedDict
104
+ amount0_min: UniswapMintLiquidityProvisionRequestAmount0MinTypedDict
117
105
  r"""The minimum amount of the first token to deposit"""
118
- amount1_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1MinTypedDict
106
+ amount1_min: UniswapMintLiquidityProvisionRequestAmount1MinTypedDict
119
107
  r"""The minimum amount of the second token to deposit"""
120
- chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestChain
108
+ chain: UniswapMintLiquidityProvisionRequestChain
121
109
  sender: str
122
110
  r"""The address of the transaction sender."""
123
111
  action_type: Literal["UNISWAP_MINT_LIQUIDITY_PROVISION"]
@@ -125,9 +113,7 @@ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswap
125
113
  r"""The address that will receive the LP tokens"""
126
114
 
127
115
 
128
- class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequest(
129
- BaseModel
130
- ):
116
+ class UniswapMintLiquidityProvisionRequest(BaseModel):
131
117
  r"""Request model for minting a new liquidity position."""
132
118
 
133
119
  token0: TokenEnum
@@ -156,19 +142,19 @@ class CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswap
156
142
  tick_upper: int
157
143
  r"""The upper tick of the range to mint the position in"""
158
144
 
159
- amount0_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Desired
145
+ amount0_desired: UniswapMintLiquidityProvisionRequestAmount0Desired
160
146
  r"""The desired amount of the first token to deposit"""
161
147
 
162
- amount1_desired: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Desired
148
+ amount1_desired: UniswapMintLiquidityProvisionRequestAmount1Desired
163
149
  r"""The desired amount of the second token to deposit"""
164
150
 
165
- amount0_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount0Min
151
+ amount0_min: UniswapMintLiquidityProvisionRequestAmount0Min
166
152
  r"""The minimum amount of the first token to deposit"""
167
153
 
168
- amount1_min: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestAmount1Min
154
+ amount1_min: UniswapMintLiquidityProvisionRequestAmount1Min
169
155
  r"""The minimum amount of the second token to deposit"""
170
156
 
171
- chain: CompassAPIBackendModelsUniswapTransactLiquidityProvisionRequestMintUniswapMintLiquidityProvisionRequestChain
157
+ chain: UniswapMintLiquidityProvisionRequestChain
172
158
 
173
159
  sender: str
174
160
  r"""The address of the transaction sender."""
@@ -0,0 +1,111 @@
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 compass_api_sdk.types import BaseModel
7
+ from compass_api_sdk.utils import validate_const
8
+ from enum import Enum
9
+ import pydantic
10
+ from pydantic.functional_validators import AfterValidator
11
+ from typing import Literal, Optional, Union
12
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
13
+
14
+
15
+ UniswapSellExactlyRequestTokenInTypedDict = TypeAliasType(
16
+ "UniswapSellExactlyRequestTokenInTypedDict", Union[TokenEnum, str]
17
+ )
18
+ r"""The symbol or address of the token to sell.."""
19
+
20
+
21
+ UniswapSellExactlyRequestTokenIn = TypeAliasType(
22
+ "UniswapSellExactlyRequestTokenIn", Union[TokenEnum, str]
23
+ )
24
+ r"""The symbol or address of the token to sell.."""
25
+
26
+
27
+ UniswapSellExactlyRequestTokenOutTypedDict = TypeAliasType(
28
+ "UniswapSellExactlyRequestTokenOutTypedDict", Union[TokenEnum, str]
29
+ )
30
+ r"""The symbol or address of the token to buy.."""
31
+
32
+
33
+ UniswapSellExactlyRequestTokenOut = TypeAliasType(
34
+ "UniswapSellExactlyRequestTokenOut", Union[TokenEnum, str]
35
+ )
36
+ r"""The symbol or address of the token to buy.."""
37
+
38
+
39
+ UniswapSellExactlyRequestAmountInTypedDict = TypeAliasType(
40
+ "UniswapSellExactlyRequestAmountInTypedDict", Union[float, str]
41
+ )
42
+ r"""The amount of the `token_in` to sell"""
43
+
44
+
45
+ UniswapSellExactlyRequestAmountIn = TypeAliasType(
46
+ "UniswapSellExactlyRequestAmountIn", Union[float, str]
47
+ )
48
+ r"""The amount of the `token_in` to sell"""
49
+
50
+
51
+ class UniswapSellExactlyRequestChain(str, Enum):
52
+ ARBITRUM = "arbitrum"
53
+ BASE = "base"
54
+ ETHEREUM = "ethereum"
55
+
56
+
57
+ class UniswapSellExactlyRequestTypedDict(TypedDict):
58
+ r"""Request model for selling exactly an amount of tokens."""
59
+
60
+ token_in: UniswapSellExactlyRequestTokenInTypedDict
61
+ r"""The symbol or address of the token to sell.."""
62
+ token_out: UniswapSellExactlyRequestTokenOutTypedDict
63
+ r"""The symbol or address of the token to buy.."""
64
+ fee: FeeEnum
65
+ r"""The transaction fee of a Uniswap pool in bips.
66
+
67
+ Uniswap supports 4 different fee levels.
68
+ """
69
+ amount_in: UniswapSellExactlyRequestAmountInTypedDict
70
+ r"""The amount of the `token_in` to sell"""
71
+ max_slippage_percent: float
72
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
73
+ chain: UniswapSellExactlyRequestChain
74
+ sender: str
75
+ r"""The address of the transaction sender."""
76
+ action_type: Literal["UNISWAP_SELL_EXACTLY"]
77
+
78
+
79
+ class UniswapSellExactlyRequest(BaseModel):
80
+ r"""Request model for selling exactly an amount of tokens."""
81
+
82
+ token_in: UniswapSellExactlyRequestTokenIn
83
+ r"""The symbol or address of the token to sell.."""
84
+
85
+ token_out: UniswapSellExactlyRequestTokenOut
86
+ r"""The symbol or address of the token to buy.."""
87
+
88
+ fee: FeeEnum
89
+ r"""The transaction fee of a Uniswap pool in bips.
90
+
91
+ Uniswap supports 4 different fee levels.
92
+ """
93
+
94
+ amount_in: UniswapSellExactlyRequestAmountIn
95
+ r"""The amount of the `token_in` to sell"""
96
+
97
+ max_slippage_percent: float
98
+ r"""The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed."""
99
+
100
+ chain: UniswapSellExactlyRequestChain
101
+
102
+ sender: str
103
+ r"""The address of the transaction sender."""
104
+
105
+ ACTION_TYPE: Annotated[
106
+ Annotated[
107
+ Optional[Literal["UNISWAP_SELL_EXACTLY"]],
108
+ AfterValidator(validate_const("UNISWAP_SELL_EXACTLY")),
109
+ ],
110
+ pydantic.Field(alias="action_type"),
111
+ ] = "UNISWAP_SELL_EXACTLY"
@@ -0,0 +1,67 @@
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 compass_api_sdk.utils import validate_const
6
+ from enum import Enum
7
+ import pydantic
8
+ from pydantic.functional_validators import AfterValidator
9
+ from typing import Literal, Optional, Union
10
+ from typing_extensions import Annotated, TypeAliasType, TypedDict
11
+
12
+
13
+ UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict = (
14
+ TypeAliasType(
15
+ "UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
16
+ Union[float, str],
17
+ )
18
+ )
19
+ r"""How much liquidity to take out in percentage."""
20
+
21
+
22
+ UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal = TypeAliasType(
23
+ "UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal", Union[float, str]
24
+ )
25
+ r"""How much liquidity to take out in percentage."""
26
+
27
+
28
+ class UniswapWithdrawLiquidityProvisionRequestChain(str, Enum):
29
+ ARBITRUM = "arbitrum"
30
+ BASE = "base"
31
+ ETHEREUM = "ethereum"
32
+
33
+
34
+ class UniswapWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
35
+ token_id: int
36
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
37
+ percentage_for_withdrawal: (
38
+ UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict
39
+ )
40
+ r"""How much liquidity to take out in percentage."""
41
+ chain: UniswapWithdrawLiquidityProvisionRequestChain
42
+ sender: str
43
+ r"""The address of the transaction sender."""
44
+ action_type: Literal["UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"]
45
+
46
+
47
+ class UniswapWithdrawLiquidityProvisionRequest(BaseModel):
48
+ token_id: int
49
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
50
+
51
+ percentage_for_withdrawal: (
52
+ UniswapWithdrawLiquidityProvisionRequestPercentageForWithdrawal
53
+ )
54
+ r"""How much liquidity to take out in percentage."""
55
+
56
+ chain: UniswapWithdrawLiquidityProvisionRequestChain
57
+
58
+ sender: str
59
+ r"""The address of the transaction sender."""
60
+
61
+ ACTION_TYPE: Annotated[
62
+ Annotated[
63
+ Optional[Literal["UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"]],
64
+ AfterValidator(validate_const("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")),
65
+ ],
66
+ pydantic.Field(alias="action_type"),
67
+ ] = "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"
@@ -10,52 +10,40 @@ from typing import Literal, Optional, Union
10
10
  from typing_extensions import Annotated, TypeAliasType, TypedDict
11
11
 
12
12
 
13
- CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestAmountTypedDict = TypeAliasType(
14
- "CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestAmountTypedDict",
15
- Union[float, str],
13
+ UnwrapWethRequestAmountTypedDict = TypeAliasType(
14
+ "UnwrapWethRequestAmountTypedDict", Union[float, str]
16
15
  )
17
16
  r"""The amount of WETH to unwrap."""
18
17
 
19
18
 
20
- CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestAmount = TypeAliasType(
21
- "CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestAmount",
22
- Union[float, str],
23
- )
19
+ UnwrapWethRequestAmount = TypeAliasType("UnwrapWethRequestAmount", Union[float, str])
24
20
  r"""The amount of WETH to unwrap."""
25
21
 
26
22
 
27
- class CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestChain(
28
- str, Enum
29
- ):
23
+ class UnwrapWethRequestChain(str, Enum):
30
24
  ARBITRUM = "arbitrum"
31
25
  BASE = "base"
32
26
  ETHEREUM = "ethereum"
33
27
 
34
28
 
35
- class CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestTypedDict(
36
- TypedDict
37
- ):
29
+ class UnwrapWethRequestTypedDict(TypedDict):
38
30
  r"""Request model for unwrapping WETH back to native ETH."""
39
31
 
40
- amount: CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestAmountTypedDict
32
+ amount: UnwrapWethRequestAmountTypedDict
41
33
  r"""The amount of WETH to unwrap."""
42
- chain: CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestChain
34
+ chain: UnwrapWethRequestChain
43
35
  sender: str
44
36
  r"""The address of the transaction sender."""
45
37
  action_type: Literal["UNWRAP_WETH"]
46
38
 
47
39
 
48
- class CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequest(
49
- BaseModel
50
- ):
40
+ class UnwrapWethRequest(BaseModel):
51
41
  r"""Request model for unwrapping WETH back to native ETH."""
52
42
 
53
- amount: (
54
- CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestAmount
55
- )
43
+ amount: UnwrapWethRequestAmount
56
44
  r"""The amount of WETH to unwrap."""
57
45
 
58
- chain: CompassAPIBackendModelsGenericTransactRequestUnwrapWethUnwrapWethRequestChain
46
+ chain: UnwrapWethRequestChain
59
47
 
60
48
  sender: str
61
49
  r"""The address of the transaction sender."""
@@ -10,9 +10,7 @@ from typing import Literal
10
10
  from typing_extensions import Annotated, TypedDict
11
11
 
12
12
 
13
- class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateralTypedDict(
14
- TypedDict
15
- ):
13
+ class UsageAsCollateralTypedDict(TypedDict):
16
14
  id: str
17
15
  r"""The id of a historical transaction on aave"""
18
16
  timestamp: int
@@ -27,9 +25,7 @@ class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollat
27
25
  r"""The type of transaction"""
28
26
 
29
27
 
30
- class CompassAPIBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral(
31
- BaseModel
32
- ):
28
+ class UsageAsCollateral(BaseModel):
33
29
  id: str
34
30
  r"""The id of a historical transaction on aave"""
35
31
 
@@ -196,13 +196,9 @@ Body = Annotated[
196
196
  ]
197
197
 
198
198
 
199
- class CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperationTypedDict(
200
- TypedDict
201
- ):
199
+ class UserOperationTypedDict(TypedDict):
202
200
  body: BodyTypedDict
203
201
 
204
202
 
205
- class CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperation(
206
- BaseModel
207
- ):
203
+ class UserOperation(BaseModel):
208
204
  body: Body