compass_api_sdk 0.2.1__py3-none-any.whl → 0.3.1__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.
- {compass_api_sdk-0.2.1.dist-info → compass_api_sdk-0.3.1.dist-info}/METADATA +33 -33
- compass_api_sdk-0.3.1.dist-info/RECORD +180 -0
- {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
- {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
- {compass_api_sdk → compassapisdk}/_version.py +3 -3
- {compass_api_sdk → compassapisdk}/aave_v3.py +27 -27
- {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +11 -11
- {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
- {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
- {compass_api_sdk → compassapisdk}/httpclient.py +7 -37
- {compass_api_sdk → compassapisdk}/models/aave_historical_transactionsop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +8 -12
- {compass_api_sdk → compassapisdk}/models/aave_rateop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_reserve_overviewop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
- {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aaveborrowparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavehistoricaltransactionsresponse.py +2 -2
- {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavelooprequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverateresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
- {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/borrow.py +2 -2
- {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +10 -12
- {compass_api_sdk → compassapisdk}/models/generic_ensop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/image.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceanyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowanceparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/liquidationcall.py +2 -2
- {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +20 -23
- {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +9 -6
- {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +14 -19
- {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallauthorizationresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/multicallexecuterequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
- {compass_api_sdk → compassapisdk}/models/redeemunderlying.py +1 -1
- {compass_api_sdk → compassapisdk}/models/repay.py +2 -2
- {compass_api_sdk → compassapisdk}/models/reserve.py +1 -1
- {compass_api_sdk → compassapisdk}/models/security.py +2 -2
- {compass_api_sdk → compassapisdk}/models/signedauthorization.py +1 -1
- {compass_api_sdk → compassapisdk}/models/sky_positionop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/skybuyrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skycheckpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/skydepositrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skysellrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/skywithdrawrequest.py +2 -2
- {compass_api_sdk → compassapisdk}/models/supply.py +2 -2
- {compass_api_sdk → compassapisdk}/models/swapborrowrate.py +2 -2
- {compass_api_sdk → compassapisdk}/models/token_addressop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/token_balanceop.py +8 -2
- {compass_api_sdk → compassapisdk}/models/token_priceop.py +4 -12
- {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransfererc20params.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +8 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/usageascollateral.py +2 -2
- {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
- {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethparams.py +1 -1
- {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/morpho.py +31 -47
- {compass_api_sdk → compassapisdk}/sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
- {compass_api_sdk → compassapisdk}/sky.py +5 -5
- {compass_api_sdk → compassapisdk}/token_sdk.py +11 -11
- {compass_api_sdk → compassapisdk}/transaction_batching.py +3 -3
- {compass_api_sdk → compassapisdk}/uniswap_v3.py +29 -29
- {compass_api_sdk → compassapisdk}/universal.py +15 -15
- compass_api_sdk/_hooks/registration.py +0 -13
- compass_api_sdk-0.2.1.dist-info/RECORD +0 -181
- {compass_api_sdk-0.2.1.dist-info → compass_api_sdk-0.3.1.dist-info}/WHEEL +0 -0
- {compass_api_sdk → compassapisdk}/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
- {compass_api_sdk → compassapisdk}/models/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
- {compass_api_sdk → compassapisdk}/models/contractname.py +0 -0
- {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
- {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
- {compass_api_sdk → compassapisdk}/models/multicallactiontype.py +0 -0
- {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
- {compass_api_sdk → compassapisdk}/py.typed +0 -0
- {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
from typing import Optional, Union
|
|
7
7
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Optional, Union
|
|
8
8
|
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
9
9
|
|
{compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py
RENAMED
|
@@ -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
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
from typing import Union
|
|
6
6
|
from typing_extensions import TypeAliasType, TypedDict
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
|
+
from compassapisdk.utils import validate_const
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
9
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -70,6 +70,8 @@ class GenericAllowanceToken(str, Enum):
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
class GenericAllowanceContractName(str, Enum):
|
|
73
|
+
r"""The name of the contract to check allowance for."""
|
|
74
|
+
|
|
73
75
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
74
76
|
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
75
77
|
AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
|
|
@@ -88,13 +90,11 @@ class GenericAllowanceRequestTypedDict(TypedDict):
|
|
|
88
90
|
chain: GenericAllowanceChain
|
|
89
91
|
r"""The chain to use."""
|
|
90
92
|
user: NotRequired[str]
|
|
93
|
+
r"""The user to get the ERC20 allowance of."""
|
|
91
94
|
token: GenericAllowanceToken
|
|
92
|
-
r"""
|
|
93
|
-
|
|
94
|
-
This class is used to represent the token in the system. Notice individual
|
|
95
|
-
endpoints' documentation where per chain tokens are presented.
|
|
96
|
-
"""
|
|
95
|
+
r"""The symbol of the token for which the allowance is checked.."""
|
|
97
96
|
contract_name: GenericAllowanceContractName
|
|
97
|
+
r"""The name of the contract to check allowance for."""
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
class GenericAllowanceRequest(BaseModel):
|
|
@@ -108,18 +108,16 @@ class GenericAllowanceRequest(BaseModel):
|
|
|
108
108
|
Optional[str],
|
|
109
109
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
110
110
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
111
|
+
r"""The user to get the ERC20 allowance of."""
|
|
111
112
|
|
|
112
113
|
token: Annotated[
|
|
113
114
|
GenericAllowanceToken,
|
|
114
115
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
115
116
|
] = GenericAllowanceToken.USDC
|
|
116
|
-
r"""
|
|
117
|
-
|
|
118
|
-
This class is used to represent the token in the system. Notice individual
|
|
119
|
-
endpoints' documentation where per chain tokens are presented.
|
|
120
|
-
"""
|
|
117
|
+
r"""The symbol of the token for which the allowance is checked.."""
|
|
121
118
|
|
|
122
119
|
contract_name: Annotated[
|
|
123
120
|
GenericAllowanceContractName,
|
|
124
121
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
125
122
|
] = GenericAllowanceContractName.AAVE_V3_POOL
|
|
123
|
+
r"""The name of the contract to check allowance for."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -20,6 +20,7 @@ class GenericEnsRequestTypedDict(TypedDict):
|
|
|
20
20
|
chain: GenericEnsChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
ens_name: NotRequired[str]
|
|
23
|
+
r"""The ENS name to resolve."""
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
class GenericEnsRequest(BaseModel):
|
|
@@ -33,3 +34,4 @@ class GenericEnsRequest(BaseModel):
|
|
|
33
34
|
Optional[str],
|
|
34
35
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
36
|
] = "vitalik.eth"
|
|
37
|
+
r"""The ENS name to resolve."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -20,6 +20,7 @@ class GenericPortfolioRequestTypedDict(TypedDict):
|
|
|
20
20
|
chain: GenericPortfolioChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
|
+
r"""The user to get portfolio for."""
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
class GenericPortfolioRequest(BaseModel):
|
|
@@ -33,3 +34,4 @@ class GenericPortfolioRequest(BaseModel):
|
|
|
33
34
|
Optional[str],
|
|
34
35
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
36
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
37
|
+
r"""The user to get portfolio for."""
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -20,6 +20,7 @@ class GenericVisualizePortfolioRequestTypedDict(TypedDict):
|
|
|
20
20
|
chain: GenericVisualizePortfolioChain
|
|
21
21
|
r"""The chain to use."""
|
|
22
22
|
user: NotRequired[str]
|
|
23
|
+
r"""The user to get portfolio for."""
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
class GenericVisualizePortfolioRequest(BaseModel):
|
|
@@ -33,3 +34,4 @@ class GenericVisualizePortfolioRequest(BaseModel):
|
|
|
33
34
|
Optional[str],
|
|
34
35
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
36
|
] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
|
|
37
|
+
r"""The user to get portfolio for."""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .contractname import ContractName
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .token_enum import TokenEnum
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Union
|
|
9
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .reserve import Reserve, ReserveTypedDict
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
|
+
from compassapisdk.utils import validate_const
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal
|
|
@@ -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
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class MorphoMarketPositionChain(str, Enum):
|
|
@@ -14,21 +13,25 @@ class MorphoMarketPositionChain(str, Enum):
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
class MorphoMarketPositionRequestTypedDict(TypedDict):
|
|
17
|
-
chain:
|
|
16
|
+
chain: MorphoMarketPositionChain
|
|
18
17
|
user_address: str
|
|
18
|
+
r"""The user address of the desired market position."""
|
|
19
19
|
unique_market_key: str
|
|
20
|
+
r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
class MorphoMarketPositionRequest(BaseModel):
|
|
23
24
|
chain: Annotated[
|
|
24
|
-
|
|
25
|
+
MorphoMarketPositionChain,
|
|
25
26
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
26
27
|
] = MorphoMarketPositionChain.ETHEREUM_MAINNET
|
|
27
28
|
|
|
28
29
|
user_address: Annotated[
|
|
29
30
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
30
31
|
] = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B"
|
|
32
|
+
r"""The user address of the desired market position."""
|
|
31
33
|
|
|
32
34
|
unique_market_key: Annotated[
|
|
33
35
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
36
|
] = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4"
|
|
37
|
+
r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
|
|
6
|
-
Nullable,
|
|
7
|
-
OptionalNullable,
|
|
8
|
-
UNSET,
|
|
9
|
-
UNSET_SENTINEL,
|
|
10
|
-
)
|
|
11
|
-
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
4
|
+
from compassapisdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
6
|
from enum import Enum
|
|
13
7
|
from pydantic import model_serializer
|
|
14
|
-
from
|
|
15
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
16
9
|
|
|
17
10
|
|
|
18
11
|
class MorphoMarketsChain(str, Enum):
|
|
@@ -21,30 +14,34 @@ class MorphoMarketsChain(str, Enum):
|
|
|
21
14
|
|
|
22
15
|
|
|
23
16
|
class MorphoMarketsRequestTypedDict(TypedDict):
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
loan_token:
|
|
17
|
+
collateral_token: Nullable[str]
|
|
18
|
+
r"""Collateral token to identify the market."""
|
|
19
|
+
loan_token: Nullable[str]
|
|
20
|
+
r"""Loan token to identify the market."""
|
|
21
|
+
chain: MorphoMarketsChain
|
|
27
22
|
|
|
28
23
|
|
|
29
24
|
class MorphoMarketsRequest(BaseModel):
|
|
30
|
-
chain: Annotated[
|
|
31
|
-
Optional[MorphoMarketsChain],
|
|
32
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
33
|
-
] = MorphoMarketsChain.ETHEREUM_MAINNET
|
|
34
|
-
|
|
35
25
|
collateral_token: Annotated[
|
|
36
|
-
|
|
26
|
+
Nullable[str],
|
|
37
27
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
38
|
-
]
|
|
28
|
+
]
|
|
29
|
+
r"""Collateral token to identify the market."""
|
|
39
30
|
|
|
40
31
|
loan_token: Annotated[
|
|
41
|
-
|
|
32
|
+
Nullable[str],
|
|
42
33
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
43
|
-
]
|
|
34
|
+
]
|
|
35
|
+
r"""Loan token to identify the market."""
|
|
36
|
+
|
|
37
|
+
chain: Annotated[
|
|
38
|
+
MorphoMarketsChain,
|
|
39
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
+
] = MorphoMarketsChain.ETHEREUM_MAINNET
|
|
44
41
|
|
|
45
42
|
@model_serializer(mode="wrap")
|
|
46
43
|
def serialize_model(self, handler):
|
|
47
|
-
optional_fields = [
|
|
44
|
+
optional_fields = []
|
|
48
45
|
nullable_fields = ["collateral_token", "loan_token"]
|
|
49
46
|
null_default_fields = []
|
|
50
47
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class MorphoVaultPositionChain(str, Enum):
|
|
@@ -14,21 +13,25 @@ class MorphoVaultPositionChain(str, Enum):
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
class MorphoVaultPositionRequestTypedDict(TypedDict):
|
|
17
|
-
chain:
|
|
16
|
+
chain: MorphoVaultPositionChain
|
|
18
17
|
user_address: str
|
|
18
|
+
r"""The user address of the desired vault position."""
|
|
19
19
|
vault_address: str
|
|
20
|
+
r"""The vault address of the desired vault position."""
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
class MorphoVaultPositionRequest(BaseModel):
|
|
23
24
|
chain: Annotated[
|
|
24
|
-
|
|
25
|
+
MorphoVaultPositionChain,
|
|
25
26
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
26
27
|
] = MorphoVaultPositionChain.ETHEREUM_MAINNET
|
|
27
28
|
|
|
28
29
|
user_address: Annotated[
|
|
29
30
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
30
31
|
] = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B"
|
|
32
|
+
r"""The user address of the desired vault position."""
|
|
31
33
|
|
|
32
34
|
vault_address: Annotated[
|
|
33
35
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
36
|
] = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa"
|
|
37
|
+
r"""The vault address of the desired vault position."""
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
|
|
6
|
-
Nullable,
|
|
7
|
-
OptionalNullable,
|
|
8
|
-
UNSET,
|
|
9
|
-
UNSET_SENTINEL,
|
|
10
|
-
)
|
|
11
|
-
from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
4
|
+
from compassapisdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
6
|
from enum import Enum
|
|
13
7
|
from pydantic import model_serializer
|
|
14
|
-
from
|
|
15
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
16
9
|
|
|
17
10
|
|
|
18
11
|
class MorphoVaultsChain(str, Enum):
|
|
@@ -21,24 +14,26 @@ class MorphoVaultsChain(str, Enum):
|
|
|
21
14
|
|
|
22
15
|
|
|
23
16
|
class MorphoVaultsRequestTypedDict(TypedDict):
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
deposit_token: Nullable[str]
|
|
18
|
+
r"""Token address that will filter vaults by this deposit token."""
|
|
19
|
+
chain: MorphoVaultsChain
|
|
26
20
|
|
|
27
21
|
|
|
28
22
|
class MorphoVaultsRequest(BaseModel):
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
deposit_token: Annotated[
|
|
24
|
+
Nullable[str],
|
|
31
25
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
-
]
|
|
26
|
+
]
|
|
27
|
+
r"""Token address that will filter vaults by this deposit token."""
|
|
33
28
|
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
chain: Annotated[
|
|
30
|
+
MorphoVaultsChain,
|
|
36
31
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
37
|
-
] =
|
|
32
|
+
] = MorphoVaultsChain.ETHEREUM_MAINNET
|
|
38
33
|
|
|
39
34
|
@model_serializer(mode="wrap")
|
|
40
35
|
def serialize_model(self, handler):
|
|
41
|
-
optional_fields = [
|
|
36
|
+
optional_fields = []
|
|
42
37
|
nullable_fields = ["deposit_token"]
|
|
43
38
|
null_default_fields = []
|
|
44
39
|
|
|
@@ -7,7 +7,7 @@ from .compass_api_backend_models_morpho_read_response_get_markets_asset import (
|
|
|
7
7
|
)
|
|
8
8
|
from .marketstate import MarketState, MarketStateTypedDict
|
|
9
9
|
from .weeklyapys import WeeklyApys, WeeklyApysTypedDict
|
|
10
|
-
from
|
|
10
|
+
from compassapisdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
11
11
|
import pydantic
|
|
12
12
|
from pydantic import model_serializer
|
|
13
13
|
from typing_extensions import Annotated, TypedDict
|