compass_api_sdk 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +8 -0
- compass_api_sdk/ethena.py +864 -0
- compass_api_sdk/models/__init__.py +140 -28
- compass_api_sdk/models/bundlertransactionresponse.py +17 -0
- compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py +8 -4
- compass_api_sdk/models/cooldownposition.py +35 -0
- compass_api_sdk/models/ethenadepositparams.py +82 -0
- compass_api_sdk/models/ethenadepositrequest.py +95 -0
- compass_api_sdk/models/ethenagetvaultresponse.py +109 -0
- compass_api_sdk/models/ethenarequesttowithdrawparams.py +28 -0
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +41 -0
- compass_api_sdk/models/ethenarequesttowithdrawtransactionresponse.py +37 -0
- compass_api_sdk/models/ethenaunstakeparams.py +65 -0
- compass_api_sdk/models/ethenaunstakerequest.py +78 -0
- compass_api_sdk/models/odostransactionresponse.py +37 -0
- compass_api_sdk/models/pendletxresponse.py +2 -11
- compass_api_sdk/models/setallowanceparams.py +1 -0
- compass_api_sdk/models/setallowancerequest.py +1 -0
- compass_api_sdk/models/token_enum.py +31 -25
- compass_api_sdk/models/tokentransferparams.py +21 -21
- compass_api_sdk/models/tokentransferrequest.py +21 -21
- compass_api_sdk/models/transactionresponse.py +2 -11
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_asset.py → underlyingtoken.py} +2 -2
- compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +2 -10
- compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +2 -10
- compass_api_sdk/models/unsignedmulticalltransaction.py +12 -12
- compass_api_sdk/models/unsignedtransaction.py +12 -12
- compass_api_sdk/models/useroperation.py +29 -23
- compass_api_sdk/models/useroperationresponse.py +2 -2
- compass_api_sdk/models/v1_aave_avg_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +31 -25
- compass_api_sdk/models/v1_aave_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +31 -25
- compass_api_sdk/models/v1_aave_std_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_token_priceop.py +31 -25
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +31 -25
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +62 -50
- compass_api_sdk/models/v1_ethena_vaultop.py +75 -0
- compass_api_sdk/models/v1_generic_allowanceop.py +1 -0
- compass_api_sdk/models/v1_sky_positionop.py +2 -2
- compass_api_sdk/models/v1_token_addressop.py +31 -25
- compass_api_sdk/models/v1_token_priceop.py +4 -16
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -3
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +62 -50
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +62 -50
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +62 -50
- compass_api_sdk/models/vaultgetvaultresponse.py +3 -6
- compass_api_sdk/sdk.py +3 -0
- compass_api_sdk/sky.py +2 -2
- compass_api_sdk/swap.py +4 -4
- compass_api_sdk/token_sdk.py +20 -20
- compass_api_sdk/transaction_bundler.py +4 -4
- {compass_api_sdk-1.0.0.dist-info → compass_api_sdk-1.0.2.dist-info}/METADATA +150 -135
- {compass_api_sdk-1.0.0.dist-info → compass_api_sdk-1.0.2.dist-info}/RECORD +56 -44
- compass_api_sdk/models/tokentransfererc20params.py +0 -63
- {compass_api_sdk-1.0.0.dist-info → compass_api_sdk-1.0.2.dist-info}/WHEEL +0 -0
|
@@ -228,6 +228,10 @@ if TYPE_CHECKING:
|
|
|
228
228
|
BatchedUserOperationsResponseTypedDict,
|
|
229
229
|
)
|
|
230
230
|
from .borrow import Borrow, BorrowTypedDict, Borrowratemode
|
|
231
|
+
from .bundlertransactionresponse import (
|
|
232
|
+
BundlerTransactionResponse,
|
|
233
|
+
BundlerTransactionResponseTypedDict,
|
|
234
|
+
)
|
|
231
235
|
from .chain import Chain
|
|
232
236
|
from .chaininfo import ChainInfo, ChainInfoTypedDict
|
|
233
237
|
from .compass_api_backend_models_generic_read_response_portfolio_tokenbalance import (
|
|
@@ -286,17 +290,57 @@ if TYPE_CHECKING:
|
|
|
286
290
|
CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance,
|
|
287
291
|
CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict,
|
|
288
292
|
)
|
|
289
|
-
from .compass_api_backend_models_vaults_read_response_vault_asset import (
|
|
290
|
-
CompassAPIBackendModelsVaultsReadResponseVaultAsset,
|
|
291
|
-
CompassAPIBackendModelsVaultsReadResponseVaultAssetTypedDict,
|
|
292
|
-
)
|
|
293
293
|
from .compass_api_backend_models_vaults_read_response_vault_userposition import (
|
|
294
294
|
CompassAPIBackendModelsVaultsReadResponseVaultUserPosition,
|
|
295
295
|
CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict,
|
|
296
296
|
)
|
|
297
|
+
from .cooldownposition import (
|
|
298
|
+
CooldownEnd,
|
|
299
|
+
CooldownEndTypedDict,
|
|
300
|
+
CooldownPosition,
|
|
301
|
+
CooldownPositionTypedDict,
|
|
302
|
+
)
|
|
297
303
|
from .details import Details, DetailsTypedDict
|
|
298
304
|
from .ensnameinforesponse import EnsNameInfoResponse, EnsNameInfoResponseTypedDict
|
|
299
305
|
from .erc20data import Erc20Data, Erc20DataTypedDict
|
|
306
|
+
from .ethenadepositparams import (
|
|
307
|
+
EthenaDepositParams,
|
|
308
|
+
EthenaDepositParamsAmount,
|
|
309
|
+
EthenaDepositParamsAmountTypedDict,
|
|
310
|
+
EthenaDepositParamsTypedDict,
|
|
311
|
+
)
|
|
312
|
+
from .ethenadepositrequest import (
|
|
313
|
+
EthenaDepositRequest,
|
|
314
|
+
EthenaDepositRequestAmount,
|
|
315
|
+
EthenaDepositRequestAmountTypedDict,
|
|
316
|
+
EthenaDepositRequestChain,
|
|
317
|
+
EthenaDepositRequestTypedDict,
|
|
318
|
+
)
|
|
319
|
+
from .ethenagetvaultresponse import (
|
|
320
|
+
EthenaGetVaultResponse,
|
|
321
|
+
EthenaGetVaultResponseTypedDict,
|
|
322
|
+
)
|
|
323
|
+
from .ethenarequesttowithdrawparams import (
|
|
324
|
+
EthenaRequestToWithdrawParams,
|
|
325
|
+
EthenaRequestToWithdrawParamsTypedDict,
|
|
326
|
+
)
|
|
327
|
+
from .ethenarequesttowithdrawrequest import (
|
|
328
|
+
EthenaRequestToWithdrawRequest,
|
|
329
|
+
EthenaRequestToWithdrawRequestChain,
|
|
330
|
+
EthenaRequestToWithdrawRequestTypedDict,
|
|
331
|
+
)
|
|
332
|
+
from .ethenarequesttowithdrawtransactionresponse import (
|
|
333
|
+
EthenaRequestToWithdrawTransactionResponse,
|
|
334
|
+
EthenaRequestToWithdrawTransactionResponseTransaction,
|
|
335
|
+
EthenaRequestToWithdrawTransactionResponseTransactionTypedDict,
|
|
336
|
+
EthenaRequestToWithdrawTransactionResponseTypedDict,
|
|
337
|
+
)
|
|
338
|
+
from .ethenaunstakeparams import EthenaUnstakeParams, EthenaUnstakeParamsTypedDict
|
|
339
|
+
from .ethenaunstakerequest import (
|
|
340
|
+
EthenaUnstakeRequest,
|
|
341
|
+
EthenaUnstakeRequestChain,
|
|
342
|
+
EthenaUnstakeRequestTypedDict,
|
|
343
|
+
)
|
|
300
344
|
from .feeenum import FeeEnum
|
|
301
345
|
from .interestratemode import InterestRateMode
|
|
302
346
|
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
@@ -429,6 +473,12 @@ if TYPE_CHECKING:
|
|
|
429
473
|
OdosSwapRequestTokenOutTypedDict,
|
|
430
474
|
OdosSwapRequestTypedDict,
|
|
431
475
|
)
|
|
476
|
+
from .odostransactionresponse import (
|
|
477
|
+
OdosTransactionResponse,
|
|
478
|
+
OdosTransactionResponseTransaction,
|
|
479
|
+
OdosTransactionResponseTransactionTypedDict,
|
|
480
|
+
OdosTransactionResponseTypedDict,
|
|
481
|
+
)
|
|
432
482
|
from .openposition import OpenPosition, OpenPositionTypedDict
|
|
433
483
|
from .pendlegetmarketresponse import (
|
|
434
484
|
PendleGetMarketResponse,
|
|
@@ -623,12 +673,6 @@ if TYPE_CHECKING:
|
|
|
623
673
|
)
|
|
624
674
|
from .tokeninfo import TokenInfo, TokenInfoTypedDict
|
|
625
675
|
from .tokenpriceresponse import TokenPriceResponse, TokenPriceResponseTypedDict
|
|
626
|
-
from .tokentransfererc20params import (
|
|
627
|
-
TokenTransferErc20Params,
|
|
628
|
-
TokenTransferErc20ParamsAmount,
|
|
629
|
-
TokenTransferErc20ParamsAmountTypedDict,
|
|
630
|
-
TokenTransferErc20ParamsTypedDict,
|
|
631
|
-
)
|
|
632
676
|
from .tokentransferparams import (
|
|
633
677
|
TokenTransferParams,
|
|
634
678
|
TokenTransferParamsAmount,
|
|
@@ -652,6 +696,7 @@ if TYPE_CHECKING:
|
|
|
652
696
|
TransactionResponseTransactionTypedDict,
|
|
653
697
|
TransactionResponseTypedDict,
|
|
654
698
|
)
|
|
699
|
+
from .underlyingtoken import UnderlyingToken, UnderlyingTokenTypedDict
|
|
655
700
|
from .uniswapbuyexactlyparams import (
|
|
656
701
|
UniswapBuyExactlyParams,
|
|
657
702
|
UniswapBuyExactlyParamsAmountOut,
|
|
@@ -892,6 +937,11 @@ if TYPE_CHECKING:
|
|
|
892
937
|
V1AerodromeSlipstreamPoolPriceTokenInToken,
|
|
893
938
|
V1AerodromeSlipstreamPoolPriceTokenOutToken,
|
|
894
939
|
)
|
|
940
|
+
from .v1_ethena_vaultop import (
|
|
941
|
+
V1EthenaVaultChain,
|
|
942
|
+
V1EthenaVaultRequest,
|
|
943
|
+
V1EthenaVaultRequestTypedDict,
|
|
944
|
+
)
|
|
895
945
|
from .v1_generic_allowanceop import (
|
|
896
946
|
V1GenericAllowanceChain,
|
|
897
947
|
V1GenericAllowanceContractEnum,
|
|
@@ -994,8 +1044,6 @@ if TYPE_CHECKING:
|
|
|
994
1044
|
V1TokenPriceChain,
|
|
995
1045
|
V1TokenPriceRequest,
|
|
996
1046
|
V1TokenPriceRequestTypedDict,
|
|
997
|
-
V1TokenPriceToken,
|
|
998
|
-
V1TokenPriceTokenTypedDict,
|
|
999
1047
|
)
|
|
1000
1048
|
from .v1_transaction_bundler_aave_loopop import (
|
|
1001
1049
|
ResponseV1TransactionBundlerAaveLoop,
|
|
@@ -1252,6 +1300,8 @@ __all__ = [
|
|
|
1252
1300
|
"Borrow",
|
|
1253
1301
|
"BorrowTypedDict",
|
|
1254
1302
|
"Borrowratemode",
|
|
1303
|
+
"BundlerTransactionResponse",
|
|
1304
|
+
"BundlerTransactionResponseTypedDict",
|
|
1255
1305
|
"Chain",
|
|
1256
1306
|
"ChainInfo",
|
|
1257
1307
|
"ChainInfoTypedDict",
|
|
@@ -1285,10 +1335,12 @@ __all__ = [
|
|
|
1285
1335
|
"CompassAPIBackendModelsPendleReadResponseMarketUserPositionTypedDict",
|
|
1286
1336
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance",
|
|
1287
1337
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict",
|
|
1288
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAsset",
|
|
1289
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAssetTypedDict",
|
|
1290
1338
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPosition",
|
|
1291
1339
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict",
|
|
1340
|
+
"CooldownEnd",
|
|
1341
|
+
"CooldownEndTypedDict",
|
|
1342
|
+
"CooldownPosition",
|
|
1343
|
+
"CooldownPositionTypedDict",
|
|
1292
1344
|
"DepositToken",
|
|
1293
1345
|
"DepositTokenTypedDict",
|
|
1294
1346
|
"Details",
|
|
@@ -1297,6 +1349,31 @@ __all__ = [
|
|
|
1297
1349
|
"EnsNameInfoResponseTypedDict",
|
|
1298
1350
|
"Erc20Data",
|
|
1299
1351
|
"Erc20DataTypedDict",
|
|
1352
|
+
"EthenaDepositParams",
|
|
1353
|
+
"EthenaDepositParamsAmount",
|
|
1354
|
+
"EthenaDepositParamsAmountTypedDict",
|
|
1355
|
+
"EthenaDepositParamsTypedDict",
|
|
1356
|
+
"EthenaDepositRequest",
|
|
1357
|
+
"EthenaDepositRequestAmount",
|
|
1358
|
+
"EthenaDepositRequestAmountTypedDict",
|
|
1359
|
+
"EthenaDepositRequestChain",
|
|
1360
|
+
"EthenaDepositRequestTypedDict",
|
|
1361
|
+
"EthenaGetVaultResponse",
|
|
1362
|
+
"EthenaGetVaultResponseTypedDict",
|
|
1363
|
+
"EthenaRequestToWithdrawParams",
|
|
1364
|
+
"EthenaRequestToWithdrawParamsTypedDict",
|
|
1365
|
+
"EthenaRequestToWithdrawRequest",
|
|
1366
|
+
"EthenaRequestToWithdrawRequestChain",
|
|
1367
|
+
"EthenaRequestToWithdrawRequestTypedDict",
|
|
1368
|
+
"EthenaRequestToWithdrawTransactionResponse",
|
|
1369
|
+
"EthenaRequestToWithdrawTransactionResponseTransaction",
|
|
1370
|
+
"EthenaRequestToWithdrawTransactionResponseTransactionTypedDict",
|
|
1371
|
+
"EthenaRequestToWithdrawTransactionResponseTypedDict",
|
|
1372
|
+
"EthenaUnstakeParams",
|
|
1373
|
+
"EthenaUnstakeParamsTypedDict",
|
|
1374
|
+
"EthenaUnstakeRequest",
|
|
1375
|
+
"EthenaUnstakeRequestChain",
|
|
1376
|
+
"EthenaUnstakeRequestTypedDict",
|
|
1300
1377
|
"FeeEnum",
|
|
1301
1378
|
"InitialCollateralAmount",
|
|
1302
1379
|
"InitialCollateralAmountTypedDict",
|
|
@@ -1408,6 +1485,10 @@ __all__ = [
|
|
|
1408
1485
|
"OdosSwapRequestTokenOut",
|
|
1409
1486
|
"OdosSwapRequestTokenOutTypedDict",
|
|
1410
1487
|
"OdosSwapRequestTypedDict",
|
|
1488
|
+
"OdosTransactionResponse",
|
|
1489
|
+
"OdosTransactionResponseTransaction",
|
|
1490
|
+
"OdosTransactionResponseTransactionTypedDict",
|
|
1491
|
+
"OdosTransactionResponseTypedDict",
|
|
1411
1492
|
"OpenPosition",
|
|
1412
1493
|
"OpenPositionTypedDict",
|
|
1413
1494
|
"PendleGetMarketResponse",
|
|
@@ -1569,10 +1650,6 @@ __all__ = [
|
|
|
1569
1650
|
"TokenPriceResponseTypedDict",
|
|
1570
1651
|
"TokenSymbol",
|
|
1571
1652
|
"TokenSymbolTypedDict",
|
|
1572
|
-
"TokenTransferErc20Params",
|
|
1573
|
-
"TokenTransferErc20ParamsAmount",
|
|
1574
|
-
"TokenTransferErc20ParamsAmountTypedDict",
|
|
1575
|
-
"TokenTransferErc20ParamsTypedDict",
|
|
1576
1653
|
"TokenTransferParams",
|
|
1577
1654
|
"TokenTransferParamsAmount",
|
|
1578
1655
|
"TokenTransferParamsAmountTypedDict",
|
|
@@ -1590,6 +1667,8 @@ __all__ = [
|
|
|
1590
1667
|
"TransactionResponseTransaction",
|
|
1591
1668
|
"TransactionResponseTransactionTypedDict",
|
|
1592
1669
|
"TransactionResponseTypedDict",
|
|
1670
|
+
"UnderlyingToken",
|
|
1671
|
+
"UnderlyingTokenTypedDict",
|
|
1593
1672
|
"UniswapBuyExactlyParams",
|
|
1594
1673
|
"UniswapBuyExactlyParamsAmountOut",
|
|
1595
1674
|
"UniswapBuyExactlyParamsAmountOutTypedDict",
|
|
@@ -1761,6 +1840,9 @@ __all__ = [
|
|
|
1761
1840
|
"V1AerodromeSlipstreamPoolPriceRequestTypedDict",
|
|
1762
1841
|
"V1AerodromeSlipstreamPoolPriceTokenInToken",
|
|
1763
1842
|
"V1AerodromeSlipstreamPoolPriceTokenOutToken",
|
|
1843
|
+
"V1EthenaVaultChain",
|
|
1844
|
+
"V1EthenaVaultRequest",
|
|
1845
|
+
"V1EthenaVaultRequestTypedDict",
|
|
1764
1846
|
"V1GenericAllowanceChain",
|
|
1765
1847
|
"V1GenericAllowanceContractEnum",
|
|
1766
1848
|
"V1GenericAllowanceContractUnion",
|
|
@@ -1822,8 +1904,6 @@ __all__ = [
|
|
|
1822
1904
|
"V1TokenPriceChain",
|
|
1823
1905
|
"V1TokenPriceRequest",
|
|
1824
1906
|
"V1TokenPriceRequestTypedDict",
|
|
1825
|
-
"V1TokenPriceToken",
|
|
1826
|
-
"V1TokenPriceTokenTypedDict",
|
|
1827
1907
|
"V1UniswapLiquidityProvisionInRangeChain",
|
|
1828
1908
|
"V1UniswapLiquidityProvisionInRangeRequest",
|
|
1829
1909
|
"V1UniswapLiquidityProvisionInRangeRequestTypedDict",
|
|
@@ -2059,6 +2139,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2059
2139
|
"Borrow": ".borrow",
|
|
2060
2140
|
"BorrowTypedDict": ".borrow",
|
|
2061
2141
|
"Borrowratemode": ".borrow",
|
|
2142
|
+
"BundlerTransactionResponse": ".bundlertransactionresponse",
|
|
2143
|
+
"BundlerTransactionResponseTypedDict": ".bundlertransactionresponse",
|
|
2062
2144
|
"Chain": ".chain",
|
|
2063
2145
|
"ChainInfo": ".chaininfo",
|
|
2064
2146
|
"ChainInfoTypedDict": ".chaininfo",
|
|
@@ -2090,16 +2172,43 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2090
2172
|
"CompassAPIBackendModelsPendleReadResponseMarketUserPositionTypedDict": ".compass_api_backend_models_pendle_read_response_market_userposition",
|
|
2091
2173
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance": ".compass_api_backend_models_pendle_read_response_positions_tokenbalance",
|
|
2092
2174
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict": ".compass_api_backend_models_pendle_read_response_positions_tokenbalance",
|
|
2093
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAsset": ".compass_api_backend_models_vaults_read_response_vault_asset",
|
|
2094
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAssetTypedDict": ".compass_api_backend_models_vaults_read_response_vault_asset",
|
|
2095
2175
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPosition": ".compass_api_backend_models_vaults_read_response_vault_userposition",
|
|
2096
2176
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict": ".compass_api_backend_models_vaults_read_response_vault_userposition",
|
|
2177
|
+
"CooldownEnd": ".cooldownposition",
|
|
2178
|
+
"CooldownEndTypedDict": ".cooldownposition",
|
|
2179
|
+
"CooldownPosition": ".cooldownposition",
|
|
2180
|
+
"CooldownPositionTypedDict": ".cooldownposition",
|
|
2097
2181
|
"Details": ".details",
|
|
2098
2182
|
"DetailsTypedDict": ".details",
|
|
2099
2183
|
"EnsNameInfoResponse": ".ensnameinforesponse",
|
|
2100
2184
|
"EnsNameInfoResponseTypedDict": ".ensnameinforesponse",
|
|
2101
2185
|
"Erc20Data": ".erc20data",
|
|
2102
2186
|
"Erc20DataTypedDict": ".erc20data",
|
|
2187
|
+
"EthenaDepositParams": ".ethenadepositparams",
|
|
2188
|
+
"EthenaDepositParamsAmount": ".ethenadepositparams",
|
|
2189
|
+
"EthenaDepositParamsAmountTypedDict": ".ethenadepositparams",
|
|
2190
|
+
"EthenaDepositParamsTypedDict": ".ethenadepositparams",
|
|
2191
|
+
"EthenaDepositRequest": ".ethenadepositrequest",
|
|
2192
|
+
"EthenaDepositRequestAmount": ".ethenadepositrequest",
|
|
2193
|
+
"EthenaDepositRequestAmountTypedDict": ".ethenadepositrequest",
|
|
2194
|
+
"EthenaDepositRequestChain": ".ethenadepositrequest",
|
|
2195
|
+
"EthenaDepositRequestTypedDict": ".ethenadepositrequest",
|
|
2196
|
+
"EthenaGetVaultResponse": ".ethenagetvaultresponse",
|
|
2197
|
+
"EthenaGetVaultResponseTypedDict": ".ethenagetvaultresponse",
|
|
2198
|
+
"EthenaRequestToWithdrawParams": ".ethenarequesttowithdrawparams",
|
|
2199
|
+
"EthenaRequestToWithdrawParamsTypedDict": ".ethenarequesttowithdrawparams",
|
|
2200
|
+
"EthenaRequestToWithdrawRequest": ".ethenarequesttowithdrawrequest",
|
|
2201
|
+
"EthenaRequestToWithdrawRequestChain": ".ethenarequesttowithdrawrequest",
|
|
2202
|
+
"EthenaRequestToWithdrawRequestTypedDict": ".ethenarequesttowithdrawrequest",
|
|
2203
|
+
"EthenaRequestToWithdrawTransactionResponse": ".ethenarequesttowithdrawtransactionresponse",
|
|
2204
|
+
"EthenaRequestToWithdrawTransactionResponseTransaction": ".ethenarequesttowithdrawtransactionresponse",
|
|
2205
|
+
"EthenaRequestToWithdrawTransactionResponseTransactionTypedDict": ".ethenarequesttowithdrawtransactionresponse",
|
|
2206
|
+
"EthenaRequestToWithdrawTransactionResponseTypedDict": ".ethenarequesttowithdrawtransactionresponse",
|
|
2207
|
+
"EthenaUnstakeParams": ".ethenaunstakeparams",
|
|
2208
|
+
"EthenaUnstakeParamsTypedDict": ".ethenaunstakeparams",
|
|
2209
|
+
"EthenaUnstakeRequest": ".ethenaunstakerequest",
|
|
2210
|
+
"EthenaUnstakeRequestChain": ".ethenaunstakerequest",
|
|
2211
|
+
"EthenaUnstakeRequestTypedDict": ".ethenaunstakerequest",
|
|
2103
2212
|
"FeeEnum": ".feeenum",
|
|
2104
2213
|
"InterestRateMode": ".interestratemode",
|
|
2105
2214
|
"LiquidationCall": ".liquidationcall",
|
|
@@ -2199,6 +2308,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2199
2308
|
"OdosSwapRequestTokenOut": ".odosswaprequest",
|
|
2200
2309
|
"OdosSwapRequestTokenOutTypedDict": ".odosswaprequest",
|
|
2201
2310
|
"OdosSwapRequestTypedDict": ".odosswaprequest",
|
|
2311
|
+
"OdosTransactionResponse": ".odostransactionresponse",
|
|
2312
|
+
"OdosTransactionResponseTransaction": ".odostransactionresponse",
|
|
2313
|
+
"OdosTransactionResponseTransactionTypedDict": ".odostransactionresponse",
|
|
2314
|
+
"OdosTransactionResponseTypedDict": ".odostransactionresponse",
|
|
2202
2315
|
"OpenPosition": ".openposition",
|
|
2203
2316
|
"OpenPositionTypedDict": ".openposition",
|
|
2204
2317
|
"PendleGetMarketResponse": ".pendlegetmarketresponse",
|
|
@@ -2358,10 +2471,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2358
2471
|
"TokenInfoTypedDict": ".tokeninfo",
|
|
2359
2472
|
"TokenPriceResponse": ".tokenpriceresponse",
|
|
2360
2473
|
"TokenPriceResponseTypedDict": ".tokenpriceresponse",
|
|
2361
|
-
"TokenTransferErc20Params": ".tokentransfererc20params",
|
|
2362
|
-
"TokenTransferErc20ParamsAmount": ".tokentransfererc20params",
|
|
2363
|
-
"TokenTransferErc20ParamsAmountTypedDict": ".tokentransfererc20params",
|
|
2364
|
-
"TokenTransferErc20ParamsTypedDict": ".tokentransfererc20params",
|
|
2365
2474
|
"TokenTransferParams": ".tokentransferparams",
|
|
2366
2475
|
"TokenTransferParamsAmount": ".tokentransferparams",
|
|
2367
2476
|
"TokenTransferParamsAmountTypedDict": ".tokentransferparams",
|
|
@@ -2379,6 +2488,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2379
2488
|
"TransactionResponseTransaction": ".transactionresponse",
|
|
2380
2489
|
"TransactionResponseTransactionTypedDict": ".transactionresponse",
|
|
2381
2490
|
"TransactionResponseTypedDict": ".transactionresponse",
|
|
2491
|
+
"UnderlyingToken": ".underlyingtoken",
|
|
2492
|
+
"UnderlyingTokenTypedDict": ".underlyingtoken",
|
|
2382
2493
|
"UniswapBuyExactlyParams": ".uniswapbuyexactlyparams",
|
|
2383
2494
|
"UniswapBuyExactlyParamsAmountOut": ".uniswapbuyexactlyparams",
|
|
2384
2495
|
"UniswapBuyExactlyParamsAmountOutTypedDict": ".uniswapbuyexactlyparams",
|
|
@@ -2552,6 +2663,9 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2552
2663
|
"V1AerodromeSlipstreamPoolPriceRequestTypedDict": ".v1_aerodrome_slipstream_pool_priceop",
|
|
2553
2664
|
"V1AerodromeSlipstreamPoolPriceTokenInToken": ".v1_aerodrome_slipstream_pool_priceop",
|
|
2554
2665
|
"V1AerodromeSlipstreamPoolPriceTokenOutToken": ".v1_aerodrome_slipstream_pool_priceop",
|
|
2666
|
+
"V1EthenaVaultChain": ".v1_ethena_vaultop",
|
|
2667
|
+
"V1EthenaVaultRequest": ".v1_ethena_vaultop",
|
|
2668
|
+
"V1EthenaVaultRequestTypedDict": ".v1_ethena_vaultop",
|
|
2555
2669
|
"V1GenericAllowanceChain": ".v1_generic_allowanceop",
|
|
2556
2670
|
"V1GenericAllowanceContractEnum": ".v1_generic_allowanceop",
|
|
2557
2671
|
"V1GenericAllowanceContractUnion": ".v1_generic_allowanceop",
|
|
@@ -2619,8 +2733,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2619
2733
|
"V1TokenPriceChain": ".v1_token_priceop",
|
|
2620
2734
|
"V1TokenPriceRequest": ".v1_token_priceop",
|
|
2621
2735
|
"V1TokenPriceRequestTypedDict": ".v1_token_priceop",
|
|
2622
|
-
"V1TokenPriceToken": ".v1_token_priceop",
|
|
2623
|
-
"V1TokenPriceTokenTypedDict": ".v1_token_priceop",
|
|
2624
2736
|
"ResponseV1TransactionBundlerAaveLoop": ".v1_transaction_bundler_aave_loopop",
|
|
2625
2737
|
"ResponseV1TransactionBundlerAaveLoopTypedDict": ".v1_transaction_bundler_aave_loopop",
|
|
2626
2738
|
"V1UniswapLiquidityProvisionInRangeChain": ".v1_uniswap_liquidity_provision_in_rangeop",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedmulticalltransaction import (
|
|
5
|
+
UnsignedMulticallTransaction,
|
|
6
|
+
UnsignedMulticallTransactionTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from compass_api_sdk.types import BaseModel
|
|
9
|
+
from typing_extensions import TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BundlerTransactionResponseTypedDict(TypedDict):
|
|
13
|
+
transaction: UnsignedMulticallTransactionTypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class BundlerTransactionResponse(BaseModel):
|
|
17
|
+
transaction: UnsignedMulticallTransaction
|
compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py
CHANGED
|
@@ -6,11 +6,15 @@ from typing_extensions import TypedDict
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict(TypedDict):
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
amount_of_shares: str
|
|
10
|
+
r"""The number of vault share tokens representing the user’s proportional ownership of the assets in the vault."""
|
|
11
|
+
amount_in_underlying_token: str
|
|
12
|
+
r"""The equivalent value of the user’s vault shares, denominated in the vault’s underlying asset (deposit token)."""
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
class CompassAPIBackendModelsVaultsReadResponseVaultUserPosition(BaseModel):
|
|
14
|
-
|
|
16
|
+
amount_of_shares: str
|
|
17
|
+
r"""The number of vault share tokens representing the user’s proportional ownership of the assets in the vault."""
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
amount_in_underlying_token: str
|
|
20
|
+
r"""The equivalent value of the user’s vault shares, denominated in the vault’s underlying asset (deposit token)."""
|
|
@@ -0,0 +1,35 @@
|
|
|
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 datetime import datetime
|
|
6
|
+
from typing import Union
|
|
7
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
CooldownEndTypedDict = TypeAliasType("CooldownEndTypedDict", Union[datetime, bool])
|
|
11
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
CooldownEnd = TypeAliasType("CooldownEnd", Union[datetime, bool])
|
|
15
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CooldownPositionTypedDict(TypedDict):
|
|
19
|
+
amount_in_underlying_asset: str
|
|
20
|
+
r"""The amount of USDe currently in a cooldown period."""
|
|
21
|
+
cooldown_end: CooldownEndTypedDict
|
|
22
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
23
|
+
can_be_withdrawn: bool
|
|
24
|
+
r"""Whether the USDe in cooldown can be withdrawn at this moment."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class CooldownPosition(BaseModel):
|
|
28
|
+
amount_in_underlying_asset: str
|
|
29
|
+
r"""The amount of USDe currently in a cooldown period."""
|
|
30
|
+
|
|
31
|
+
cooldown_end: CooldownEnd
|
|
32
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
33
|
+
|
|
34
|
+
can_be_withdrawn: bool
|
|
35
|
+
r"""Whether the USDe in cooldown can be withdrawn at this moment."""
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
|
+
BaseModel,
|
|
6
|
+
Nullable,
|
|
7
|
+
OptionalNullable,
|
|
8
|
+
UNSET,
|
|
9
|
+
UNSET_SENTINEL,
|
|
10
|
+
)
|
|
11
|
+
from compass_api_sdk.utils import validate_const
|
|
12
|
+
import pydantic
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from pydantic.functional_validators import AfterValidator
|
|
15
|
+
from typing import Literal, Optional, Union
|
|
16
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
EthenaDepositParamsAmountTypedDict = TypeAliasType(
|
|
20
|
+
"EthenaDepositParamsAmountTypedDict", Union[float, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
EthenaDepositParamsAmount = TypeAliasType(
|
|
26
|
+
"EthenaDepositParamsAmount", Union[float, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class EthenaDepositParamsTypedDict(TypedDict):
|
|
32
|
+
amount: EthenaDepositParamsAmountTypedDict
|
|
33
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
34
|
+
action_type: Literal["ETHENA_DEPOSIT"]
|
|
35
|
+
receiver: NotRequired[Nullable[str]]
|
|
36
|
+
r"""The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class EthenaDepositParams(BaseModel):
|
|
40
|
+
amount: EthenaDepositParamsAmount
|
|
41
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
42
|
+
|
|
43
|
+
ACTION_TYPE: Annotated[
|
|
44
|
+
Annotated[
|
|
45
|
+
Optional[Literal["ETHENA_DEPOSIT"]],
|
|
46
|
+
AfterValidator(validate_const("ETHENA_DEPOSIT")),
|
|
47
|
+
],
|
|
48
|
+
pydantic.Field(alias="action_type"),
|
|
49
|
+
] = "ETHENA_DEPOSIT"
|
|
50
|
+
|
|
51
|
+
receiver: OptionalNullable[str] = UNSET
|
|
52
|
+
r"""The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
53
|
+
|
|
54
|
+
@model_serializer(mode="wrap")
|
|
55
|
+
def serialize_model(self, handler):
|
|
56
|
+
optional_fields = ["action_type", "receiver"]
|
|
57
|
+
nullable_fields = ["receiver"]
|
|
58
|
+
null_default_fields = []
|
|
59
|
+
|
|
60
|
+
serialized = handler(self)
|
|
61
|
+
|
|
62
|
+
m = {}
|
|
63
|
+
|
|
64
|
+
for n, f in type(self).model_fields.items():
|
|
65
|
+
k = f.alias or n
|
|
66
|
+
val = serialized.get(k)
|
|
67
|
+
serialized.pop(k, None)
|
|
68
|
+
|
|
69
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
70
|
+
is_set = (
|
|
71
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
72
|
+
or k in null_default_fields
|
|
73
|
+
) # pylint: disable=no-member
|
|
74
|
+
|
|
75
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
76
|
+
m[k] = val
|
|
77
|
+
elif val != UNSET_SENTINEL and (
|
|
78
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
79
|
+
):
|
|
80
|
+
m[k] = val
|
|
81
|
+
|
|
82
|
+
return m
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
|
+
BaseModel,
|
|
6
|
+
Nullable,
|
|
7
|
+
OptionalNullable,
|
|
8
|
+
UNSET,
|
|
9
|
+
UNSET_SENTINEL,
|
|
10
|
+
)
|
|
11
|
+
from compass_api_sdk.utils import validate_const
|
|
12
|
+
from enum import Enum
|
|
13
|
+
import pydantic
|
|
14
|
+
from pydantic import model_serializer
|
|
15
|
+
from pydantic.functional_validators import AfterValidator
|
|
16
|
+
from typing import Literal, Optional, Union
|
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
EthenaDepositRequestAmountTypedDict = TypeAliasType(
|
|
21
|
+
"EthenaDepositRequestAmountTypedDict", Union[float, str]
|
|
22
|
+
)
|
|
23
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
EthenaDepositRequestAmount = TypeAliasType(
|
|
27
|
+
"EthenaDepositRequestAmount", Union[float, str]
|
|
28
|
+
)
|
|
29
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class EthenaDepositRequestChain(str, Enum):
|
|
33
|
+
ETHEREUM = "ethereum"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class EthenaDepositRequestTypedDict(TypedDict):
|
|
37
|
+
amount: EthenaDepositRequestAmountTypedDict
|
|
38
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
39
|
+
chain: EthenaDepositRequestChain
|
|
40
|
+
sender: str
|
|
41
|
+
r"""The address of the transaction sender."""
|
|
42
|
+
action_type: Literal["ETHENA_DEPOSIT"]
|
|
43
|
+
receiver: NotRequired[Nullable[str]]
|
|
44
|
+
r"""The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class EthenaDepositRequest(BaseModel):
|
|
48
|
+
amount: EthenaDepositRequestAmount
|
|
49
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
50
|
+
|
|
51
|
+
chain: EthenaDepositRequestChain
|
|
52
|
+
|
|
53
|
+
sender: str
|
|
54
|
+
r"""The address of the transaction sender."""
|
|
55
|
+
|
|
56
|
+
ACTION_TYPE: Annotated[
|
|
57
|
+
Annotated[
|
|
58
|
+
Optional[Literal["ETHENA_DEPOSIT"]],
|
|
59
|
+
AfterValidator(validate_const("ETHENA_DEPOSIT")),
|
|
60
|
+
],
|
|
61
|
+
pydantic.Field(alias="action_type"),
|
|
62
|
+
] = "ETHENA_DEPOSIT"
|
|
63
|
+
|
|
64
|
+
receiver: OptionalNullable[str] = UNSET
|
|
65
|
+
r"""The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
66
|
+
|
|
67
|
+
@model_serializer(mode="wrap")
|
|
68
|
+
def serialize_model(self, handler):
|
|
69
|
+
optional_fields = ["action_type", "receiver"]
|
|
70
|
+
nullable_fields = ["receiver"]
|
|
71
|
+
null_default_fields = []
|
|
72
|
+
|
|
73
|
+
serialized = handler(self)
|
|
74
|
+
|
|
75
|
+
m = {}
|
|
76
|
+
|
|
77
|
+
for n, f in type(self).model_fields.items():
|
|
78
|
+
k = f.alias or n
|
|
79
|
+
val = serialized.get(k)
|
|
80
|
+
serialized.pop(k, None)
|
|
81
|
+
|
|
82
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
83
|
+
is_set = (
|
|
84
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
85
|
+
or k in null_default_fields
|
|
86
|
+
) # pylint: disable=no-member
|
|
87
|
+
|
|
88
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
89
|
+
m[k] = val
|
|
90
|
+
elif val != UNSET_SENTINEL and (
|
|
91
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
92
|
+
):
|
|
93
|
+
m[k] = val
|
|
94
|
+
|
|
95
|
+
return m
|