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
@@ -1,21 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_config_chain_chain import CompassAPIBackendConfigChainChain
5
- from compass_api_sdk.types import BaseModel
6
- from typing import List
7
- from typing_extensions import TypedDict
8
-
9
-
10
- class CompassAPIBackendModelsGenericReadResponseChainsSupportedChainInfoTypedDict(
11
- TypedDict
12
- ):
13
- r"""Response model for a chain."""
14
-
15
- chains: List[CompassAPIBackendConfigChainChain]
16
-
17
-
18
- class CompassAPIBackendModelsGenericReadResponseChainsSupportedChainInfo(BaseModel):
19
- r"""Response model for a chain."""
20
-
21
- chains: List[CompassAPIBackendConfigChainChain]
@@ -1,139 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- from enum import Enum
8
- import pydantic
9
- from pydantic.functional_validators import AfterValidator
10
- from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
12
-
13
-
14
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestTokenTypedDict = TypeAliasType(
15
- "CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestTokenTypedDict",
16
- Union[TokenEnum, str],
17
- )
18
- r"""The symbol or address of the token for which the allowance is set.."""
19
-
20
-
21
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestToken = TypeAliasType(
22
- "CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestToken",
23
- Union[TokenEnum, str],
24
- )
25
- r"""The symbol or address of the token for which the allowance is set.."""
26
-
27
-
28
- class CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractEnum(
29
- str, Enum
30
- ):
31
- AAVE_V3_POOL = "AaveV3Pool"
32
- AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
33
- AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
34
- AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
35
- "AerodromeSlipstreamNonfungiblePositionManager"
36
- )
37
- UNISWAP_V3_ROUTER = "UniswapV3Router"
38
- UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
39
- MORPHO = "Morpho"
40
- SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
41
- SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
42
- SKY_USDS_VAULT = "SkyUsdsVault"
43
- PENDLE_ROUTER = "PendleRouter"
44
- ODOS_ROUTER = "OdosRouter"
45
-
46
-
47
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractUnionTypedDict = TypeAliasType(
48
- "CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractUnionTypedDict",
49
- Union[
50
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractEnum,
51
- str,
52
- ],
53
- )
54
- r"""The name or address of the contract to set spending allowance for."""
55
-
56
-
57
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractUnion = TypeAliasType(
58
- "CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractUnion",
59
- Union[
60
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractEnum,
61
- str,
62
- ],
63
- )
64
- r"""The name or address of the contract to set spending allowance for."""
65
-
66
-
67
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestAmountTypedDict = TypeAliasType(
68
- "CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestAmountTypedDict",
69
- Union[float, str],
70
- )
71
- r"""The amount to set the allowance to."""
72
-
73
-
74
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestAmount = TypeAliasType(
75
- "CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestAmount",
76
- Union[float, str],
77
- )
78
- r"""The amount to set the allowance to."""
79
-
80
-
81
- class CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestChain(
82
- str, Enum
83
- ):
84
- ARBITRUM = "arbitrum"
85
- BASE = "base"
86
- ETHEREUM = "ethereum"
87
-
88
-
89
- class CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestTypedDict(
90
- TypedDict
91
- ):
92
- r"""Request model for increasing token allowance for a contract."""
93
-
94
- token: CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestTokenTypedDict
95
- r"""The symbol or address of the token for which the allowance is set.."""
96
- contract: CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractUnionTypedDict
97
- r"""The name or address of the contract to set spending allowance for."""
98
- amount: CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestAmountTypedDict
99
- r"""The amount to set the allowance to."""
100
- chain: (
101
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestChain
102
- )
103
- sender: str
104
- r"""The address of the transaction sender."""
105
- action_type: Literal["SET_ALLOWANCE"]
106
-
107
-
108
- class CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequest(
109
- BaseModel
110
- ):
111
- r"""Request model for increasing token allowance for a contract."""
112
-
113
- token: (
114
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestToken
115
- )
116
- r"""The symbol or address of the token for which the allowance is set.."""
117
-
118
- contract: CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestContractUnion
119
- r"""The name or address of the contract to set spending allowance for."""
120
-
121
- amount: (
122
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestAmount
123
- )
124
- r"""The amount to set the allowance to."""
125
-
126
- chain: (
127
- CompassAPIBackendModelsGenericTransactRequestAllowanceSetAllowanceRequestChain
128
- )
129
-
130
- sender: str
131
- r"""The address of the transaction sender."""
132
-
133
- ACTION_TYPE: Annotated[
134
- Annotated[
135
- Optional[Literal["SET_ALLOWANCE"]],
136
- AfterValidator(validate_const("SET_ALLOWANCE")),
137
- ],
138
- pydantic.Field(alias="action_type"),
139
- ] = "SET_ALLOWANCE"
@@ -1,48 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_models_morpho_read_response_check_user_position_marketposition import (
5
- CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMarketPosition,
6
- CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMarketPositionTypedDict,
7
- )
8
- from .compass_api_backend_models_morpho_read_response_check_user_position_vaultposition import (
9
- CompassAPIBackendModelsMorphoReadResponseCheckUserPositionVaultPosition,
10
- CompassAPIBackendModelsMorphoReadResponseCheckUserPositionVaultPositionTypedDict,
11
- )
12
- from .userstate import UserState, UserStateTypedDict
13
- from compass_api_sdk.types import BaseModel
14
- import pydantic
15
- from typing import List
16
- from typing_extensions import Annotated, TypedDict
17
-
18
-
19
- class CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMorphoCheckUserPositionResponseTypedDict(
20
- TypedDict
21
- ):
22
- state: UserStateTypedDict
23
- vault_positions: List[
24
- CompassAPIBackendModelsMorphoReadResponseCheckUserPositionVaultPositionTypedDict
25
- ]
26
- r"""A list of the user's vault positions."""
27
- market_positions: List[
28
- CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMarketPositionTypedDict
29
- ]
30
- r"""A list of the user's market positions."""
31
-
32
-
33
- class CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMorphoCheckUserPositionResponse(
34
- BaseModel
35
- ):
36
- state: UserState
37
-
38
- vault_positions: Annotated[
39
- List[CompassAPIBackendModelsMorphoReadResponseCheckUserPositionVaultPosition],
40
- pydantic.Field(alias="vaultPositions"),
41
- ]
42
- r"""A list of the user's vault positions."""
43
-
44
- market_positions: Annotated[
45
- List[CompassAPIBackendModelsMorphoReadResponseCheckUserPositionMarketPosition],
46
- pydantic.Field(alias="marketPositions"),
47
- ]
48
- r"""A list of the user's market positions."""
@@ -1,26 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_models_morpho_read_response_get_markets_morphomarket import (
5
- CompassAPIBackendModelsMorphoReadResponseGetMarketsMorphoMarket,
6
- CompassAPIBackendModelsMorphoReadResponseGetMarketsMorphoMarketTypedDict,
7
- )
8
- from compass_api_sdk.types import BaseModel
9
- from typing import List
10
- from typing_extensions import TypedDict
11
-
12
-
13
- class CompassAPIBackendModelsMorphoReadResponseGetMarketsMorphoGetMarketsResponseTypedDict(
14
- TypedDict
15
- ):
16
- markets: List[
17
- CompassAPIBackendModelsMorphoReadResponseGetMarketsMorphoMarketTypedDict
18
- ]
19
- r"""A list of markets matching the query."""
20
-
21
-
22
- class CompassAPIBackendModelsMorphoReadResponseGetMarketsMorphoGetMarketsResponse(
23
- BaseModel
24
- ):
25
- markets: List[CompassAPIBackendModelsMorphoReadResponseGetMarketsMorphoMarket]
26
- r"""A list of markets matching the query."""
@@ -1,24 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_models_morpho_read_response_get_vaults_morphovault import (
5
- CompassAPIBackendModelsMorphoReadResponseGetVaultsMorphoVault,
6
- CompassAPIBackendModelsMorphoReadResponseGetVaultsMorphoVaultTypedDict,
7
- )
8
- from compass_api_sdk.types import BaseModel
9
- from typing import List
10
- from typing_extensions import TypedDict
11
-
12
-
13
- class CompassAPIBackendModelsMorphoReadResponseGetVaultsMorphoGetVaultsResponseTypedDict(
14
- TypedDict
15
- ):
16
- vaults: List[CompassAPIBackendModelsMorphoReadResponseGetVaultsMorphoVaultTypedDict]
17
- r"""A list of vaults matching the query."""
18
-
19
-
20
- class CompassAPIBackendModelsMorphoReadResponseGetVaultsMorphoGetVaultsResponse(
21
- BaseModel
22
- ):
23
- vaults: List[CompassAPIBackendModelsMorphoReadResponseGetVaultsMorphoVault]
24
- r"""A list of vaults matching the query."""
@@ -1,24 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_models_pendle_read_response_markets_pendlemarket import (
5
- CompassAPIBackendModelsPendleReadResponseMarketsPendleMarket,
6
- CompassAPIBackendModelsPendleReadResponseMarketsPendleMarketTypedDict,
7
- )
8
- from compass_api_sdk.types import BaseModel
9
- from typing import List
10
- from typing_extensions import TypedDict
11
-
12
-
13
- class CompassAPIBackendModelsPendleReadResponseMarketsPendleListMarketsResponseTypedDict(
14
- TypedDict
15
- ):
16
- markets: List[CompassAPIBackendModelsPendleReadResponseMarketsPendleMarketTypedDict]
17
- r"""A list of active markets on the inputted chain."""
18
-
19
-
20
- class CompassAPIBackendModelsPendleReadResponseMarketsPendleListMarketsResponse(
21
- BaseModel
22
- ):
23
- markets: List[CompassAPIBackendModelsPendleReadResponseMarketsPendleMarket]
24
- r"""A list of active markets on the inputted chain."""
@@ -1,24 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_models_pendle_read_response_positions_position import (
5
- CompassAPIBackendModelsPendleReadResponsePositionsPosition,
6
- CompassAPIBackendModelsPendleReadResponsePositionsPositionTypedDict,
7
- )
8
- from compass_api_sdk.types import BaseModel
9
- from typing import List
10
- from typing_extensions import TypedDict
11
-
12
-
13
- class CompassAPIBackendModelsPendleReadResponsePositionsPendleListUserPositionsResponseTypedDict(
14
- TypedDict
15
- ):
16
- positions: List[CompassAPIBackendModelsPendleReadResponsePositionsPositionTypedDict]
17
- r"""A list of the user's positions on the given chain."""
18
-
19
-
20
- class CompassAPIBackendModelsPendleReadResponsePositionsPendleListUserPositionsResponse(
21
- BaseModel
22
- ):
23
- positions: List[CompassAPIBackendModelsPendleReadResponsePositionsPosition]
24
- r"""A list of the user's positions on the given chain."""
@@ -1,49 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .compass_api_backend_models_multicall_transact_request_multicall_execution_request_useroperation import (
5
- CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperation,
6
- CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperationTypedDict,
7
- )
8
- from compass_api_sdk.types import BaseModel
9
- from enum import Enum
10
- from typing import List
11
- from typing_extensions import TypedDict
12
-
13
-
14
- class CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestChain(
15
- str, Enum
16
- ):
17
- ARBITRUM = "arbitrum"
18
- BASE = "base"
19
- ETHEREUM = "ethereum"
20
-
21
-
22
- class CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestTypedDict(
23
- TypedDict
24
- ):
25
- r"""Request model for batching user operations."""
26
-
27
- chain: CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestChain
28
- sender: str
29
- r"""The address of the transaction sender."""
30
- operations: List[
31
- CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperationTypedDict
32
- ]
33
- r"""List of possible user operations"""
34
-
35
-
36
- class CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequest(
37
- BaseModel
38
- ):
39
- r"""Request model for batching user operations."""
40
-
41
- chain: CompassAPIBackendModelsSmartAccountTransactRequestUserOperationsBatchedUserOperationsRequestChain
42
-
43
- sender: str
44
- r"""The address of the transaction sender."""
45
-
46
- operations: List[
47
- CompassAPIBackendModelsMulticallTransactRequestMulticallExecutionRequestUserOperation
48
- ]
49
- r"""List of possible user operations"""
@@ -1,108 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- from enum import Enum
8
- import pydantic
9
- from pydantic.functional_validators import AfterValidator
10
- from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
12
-
13
-
14
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenInTypedDict = (
15
- TypeAliasType(
16
- "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenInTypedDict",
17
- Union[TokenEnum, str],
18
- )
19
- )
20
- r"""The symbol or address of the token that is to be sold."""
21
-
22
-
23
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenIn = TypeAliasType(
24
- "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenIn",
25
- Union[TokenEnum, str],
26
- )
27
- r"""The symbol or address of the token that is to be sold."""
28
-
29
-
30
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOutTypedDict = TypeAliasType(
31
- "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOutTypedDict",
32
- Union[TokenEnum, str],
33
- )
34
- r"""The symbol or address of the token that is to be bought."""
35
-
36
-
37
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOut = TypeAliasType(
38
- "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOut",
39
- Union[TokenEnum, str],
40
- )
41
- r"""The symbol or address of the token that is to be bought."""
42
-
43
-
44
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmountTypedDict = (
45
- TypeAliasType(
46
- "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmountTypedDict",
47
- Union[float, str],
48
- )
49
- )
50
- r"""The amount of token_in to be sold."""
51
-
52
-
53
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmount = TypeAliasType(
54
- "CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmount",
55
- Union[float, str],
56
- )
57
- r"""The amount of token_in to be sold."""
58
-
59
-
60
- class CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestChain(str, Enum):
61
- ARBITRUM = "arbitrum"
62
- BASE = "base"
63
- ETHEREUM = "ethereum"
64
-
65
-
66
- class CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTypedDict(TypedDict):
67
- token_in: (
68
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenInTypedDict
69
- )
70
- r"""The symbol or address of the token that is to be sold."""
71
- token_out: (
72
- CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOutTypedDict
73
- )
74
- r"""The symbol or address of the token that is to be bought."""
75
- amount: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmountTypedDict
76
- r"""The amount of token_in to be sold."""
77
- max_slippage_percent: float
78
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
79
- chain: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestChain
80
- sender: str
81
- r"""The address of the transaction sender."""
82
- action_type: Literal["ODOS_SWAP"]
83
-
84
-
85
- class CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequest(BaseModel):
86
- token_in: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenIn
87
- r"""The symbol or address of the token that is to be sold."""
88
-
89
- token_out: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestTokenOut
90
- r"""The symbol or address of the token that is to be bought."""
91
-
92
- amount: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestAmount
93
- r"""The amount of token_in to be sold."""
94
-
95
- max_slippage_percent: float
96
- r"""The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed."""
97
-
98
- chain: CompassAPIBackendModelsSwapTransactRequestOdosOdosSwapRequestChain
99
-
100
- sender: str
101
- r"""The address of the transaction sender."""
102
-
103
- ACTION_TYPE: Annotated[
104
- Annotated[
105
- Optional[Literal["ODOS_SWAP"]], AfterValidator(validate_const("ODOS_SWAP"))
106
- ],
107
- pydantic.Field(alias="action_type"),
108
- ] = "ODOS_SWAP"
@@ -1,98 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
6
- from compass_api_sdk.utils import validate_const
7
- from enum import Enum
8
- import pydantic
9
- from pydantic.functional_validators import AfterValidator
10
- from typing import Literal, Optional, Union
11
- from typing_extensions import Annotated, TypeAliasType, TypedDict
12
-
13
-
14
- CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmountTypedDict = TypeAliasType(
15
- "CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmountTypedDict",
16
- Union[float, str],
17
- )
18
- r"""Amount of token to transfer"""
19
-
20
-
21
- CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmount = (
22
- TypeAliasType(
23
- "CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmount",
24
- Union[float, str],
25
- )
26
- )
27
- r"""Amount of token to transfer"""
28
-
29
-
30
- CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTokenTypedDict = TypeAliasType(
31
- "CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTokenTypedDict",
32
- Union[TokenEnum, str],
33
- )
34
- r"""The symbol of the token to transfer.."""
35
-
36
-
37
- CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestToken = (
38
- TypeAliasType(
39
- "CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestToken",
40
- Union[TokenEnum, str],
41
- )
42
- )
43
- r"""The symbol of the token to transfer.."""
44
-
45
-
46
- class CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestChain(
47
- str, Enum
48
- ):
49
- ARBITRUM = "arbitrum"
50
- BASE = "base"
51
- ETHEREUM = "ethereum"
52
-
53
-
54
- class CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTypedDict(
55
- TypedDict
56
- ):
57
- r"""Request model for transferring ETH or ERC20 tokens."""
58
-
59
- amount: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmountTypedDict
60
- r"""Amount of token to transfer"""
61
- token: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestTokenTypedDict
62
- r"""The symbol of the token to transfer.."""
63
- to: str
64
- r"""The recipient of the tokens."""
65
- chain: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestChain
66
- sender: str
67
- r"""The address of the transaction sender."""
68
- action_type: Literal["TOKEN_TRANSFER"]
69
-
70
-
71
- class CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequest(
72
- BaseModel
73
- ):
74
- r"""Request model for transferring ETH or ERC20 tokens."""
75
-
76
- amount: (
77
- CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestAmount
78
- )
79
- r"""Amount of token to transfer"""
80
-
81
- token: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestToken
82
- r"""The symbol of the token to transfer.."""
83
-
84
- to: str
85
- r"""The recipient of the tokens."""
86
-
87
- chain: CompassAPIBackendModelsTokenTransactRequestTransferTokenTransferRequestChain
88
-
89
- sender: str
90
- r"""The address of the transaction sender."""
91
-
92
- ACTION_TYPE: Annotated[
93
- Annotated[
94
- Optional[Literal["TOKEN_TRANSFER"]],
95
- AfterValidator(validate_const("TOKEN_TRANSFER")),
96
- ],
97
- pydantic.Field(alias="action_type"),
98
- ] = "TOKEN_TRANSFER"