compass_api_sdk 0.6.1__py3-none-any.whl → 0.7.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 (42) hide show
  1. compass_api_sdk/_hooks/types.py +7 -0
  2. compass_api_sdk/_version.py +3 -3
  3. compass_api_sdk/aave_v3.py +26 -0
  4. compass_api_sdk/aerodrome_slipstream.py +14 -0
  5. compass_api_sdk/basesdk.py +12 -20
  6. compass_api_sdk/models/__init__.py +106 -22
  7. compass_api_sdk/models/{tokenbalance.py → compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py} +4 -2
  8. compass_api_sdk/models/compass_api_backend_models_pendle_read_response_positions_tokenbalance.py +18 -0
  9. compass_api_sdk/models/details.py +39 -0
  10. compass_api_sdk/models/increaseallowanceparams.py +20 -16
  11. compass_api_sdk/models/increaseallowancerequest.py +20 -16
  12. compass_api_sdk/models/lpbalance.py +20 -0
  13. compass_api_sdk/models/movement10percent.py +23 -0
  14. compass_api_sdk/models/multicallactiontype.py +0 -1
  15. compass_api_sdk/models/openposition.py +28 -0
  16. compass_api_sdk/models/pendle_marketop.py +1 -8
  17. compass_api_sdk/models/pendle_marketsop.py +73 -0
  18. compass_api_sdk/models/pendle_positionop.py +1 -1
  19. compass_api_sdk/models/pendle_positionsop.py +80 -0
  20. compass_api_sdk/models/pendlelistmarketsresponse.py +17 -0
  21. compass_api_sdk/models/pendlelistuserpositionsresponse.py +17 -0
  22. compass_api_sdk/models/pendlemarket.py +46 -0
  23. compass_api_sdk/models/portfolio.py +10 -3
  24. compass_api_sdk/models/position.py +41 -0
  25. compass_api_sdk/models/syposition.py +17 -0
  26. compass_api_sdk/models/useroperation.py +20 -26
  27. compass_api_sdk/models/yieldrange.py +16 -0
  28. compass_api_sdk/morpho.py +28 -0
  29. compass_api_sdk/pendle.py +422 -10
  30. compass_api_sdk/sdk.py +3 -3
  31. compass_api_sdk/sdkconfiguration.py +0 -7
  32. compass_api_sdk/sky.py +10 -0
  33. compass_api_sdk/smart_account.py +2 -0
  34. compass_api_sdk/token_sdk.py +8 -0
  35. compass_api_sdk/transaction_batching.py +6 -0
  36. compass_api_sdk/uniswap_v3.py +20 -0
  37. compass_api_sdk/universal.py +30 -8
  38. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.7.0.dist-info}/METADATA +5 -2
  39. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.7.0.dist-info}/RECORD +40 -29
  40. compass_api_sdk/models/contractname.py +0 -41
  41. compass_api_sdk/models/increaseallowanceanyparams.py +0 -58
  42. {compass_api_sdk-0.6.1.dist-info → compass_api_sdk-0.7.0.dist-info}/WHEEL +0 -0
@@ -1,41 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from enum import Enum
5
-
6
-
7
- class ContractName(str, Enum):
8
- r"""Select the protocol.
9
-
10
- E.g. for increasing ERC-20 allowance.
11
- """
12
-
13
- AAVE_V3_POOL = "AaveV3Pool"
14
- AAVE_V3_ORACLE = "AaveV3Oracle"
15
- AAVE_V3_PROTOCOL_DATA_PROVIDER = "AaveV3ProtocolDataProvider"
16
- AERODROME_BASIC_FACTORY = "AerodromeBasicFactory"
17
- AERODROME_SLIPSTREAM_FACTORY = "AerodromeSlipstreamFactory"
18
- AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
19
- AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
20
- AERODROME_BASIC_POOL = "AerodromeBasicPool"
21
- AERODROME_SLIPSTREAM_POOL = "AerodromeSlipstreamPool"
22
- AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
23
- "AerodromeSlipstreamNonfungiblePositionManager"
24
- )
25
- UNISWAP_V3_POOL = "UniswapV3Pool"
26
- UNISWAP_V3_ROUTER = "UniswapV3Router"
27
- UNISWAP_V3_FACTORY = "UniswapV3Factory"
28
- UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
29
- UNISWAP_V3_QUOTER = "UniswapV3Quoter"
30
- CHAINLINK_EAC_AGGREGATOR_PROXY = "ChainlinkEACAggregatorProxy"
31
- MORPHO = "Morpho"
32
- MORPHO_VAULT = "MorphoVault"
33
- MORPHO_ORACLE = "MorphoOracle"
34
- SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
35
- SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
36
- SKY_USDS_VAULT = "SkyUsdsVault"
37
- PENDLE_ROUTER = "PendleRouter"
38
- PENDLE_MARKET = "PendleMarket"
39
- PENDLE_SY = "PendleSy"
40
- PENDLE_YT = "PendleYt"
41
- MULTICALL = "Multicall"
@@ -1,58 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .contractname import ContractName
5
- from .token_enum import TokenEnum
6
- from compass_api_sdk.types import BaseModel
7
- from typing import Union
8
- from typing_extensions import TypeAliasType, TypedDict
9
-
10
-
11
- IncreaseAllowanceAnyParamsAmountTypedDict = TypeAliasType(
12
- "IncreaseAllowanceAnyParamsAmountTypedDict", Union[float, str]
13
- )
14
- r"""The amount of tokens to increase the allowance by."""
15
-
16
-
17
- IncreaseAllowanceAnyParamsAmount = TypeAliasType(
18
- "IncreaseAllowanceAnyParamsAmount", Union[float, str]
19
- )
20
- r"""The amount of tokens to increase the allowance by."""
21
-
22
-
23
- class IncreaseAllowanceAnyParamsTypedDict(TypedDict):
24
- r"""Parameters model for increasing allowance for any arbitrary ERC20 address."""
25
-
26
- token: TokenEnum
27
- r"""A class representing the token.
28
-
29
- This class is used to represent the token in the system. Notice individual
30
- endpoints' documentation where per chain tokens are presented.
31
- """
32
- contract_name: ContractName
33
- r"""Select the protocol.
34
-
35
- E.g. for increasing ERC-20 allowance.
36
- """
37
- amount: IncreaseAllowanceAnyParamsAmountTypedDict
38
- r"""The amount of tokens to increase the allowance by."""
39
-
40
-
41
- class IncreaseAllowanceAnyParams(BaseModel):
42
- r"""Parameters model for increasing allowance for any arbitrary ERC20 address."""
43
-
44
- token: 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
-
51
- contract_name: ContractName
52
- r"""Select the protocol.
53
-
54
- E.g. for increasing ERC-20 allowance.
55
- """
56
-
57
- amount: IncreaseAllowanceAnyParamsAmount
58
- r"""The amount of tokens to increase the allowance by."""