compass_api_sdk 0.3.1__py3-none-any.whl → 0.3.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: compass_api_sdk
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Compass API Python SDK
5
5
  Author: royalnine
6
6
  Requires-Python: >=3.9.2
@@ -2,7 +2,7 @@ compassapisdk/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
2
2
  compassapisdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
3
3
  compassapisdk/_hooks/sdkhooks.py,sha256=kiWg7ywp9SXriA5uvAnxmFLFcDREJjDWtccd7Fo6LJI,2501
4
4
  compassapisdk/_hooks/types.py,sha256=vkJdvFkHgRiCPz2IDtGma15FzU2YxIlrqxk1zWUDJTM,2816
5
- compassapisdk/_version.py,sha256=zU2VL1u4Wen2iAYe4IZQFCrbIe2zntP_h79QE1Yv1Js,472
5
+ compassapisdk/_version.py,sha256=gFNU4uumnOHZMGSQ_ZDS0k_mNCai9hi-f3vsU1RL54Q,472
6
6
  compassapisdk/aave_v3.py,sha256=xxPi6z_3ZahRtNI6rKWU-uH1YMZk1Xdu0tAqOTBtCYw,106740
7
7
  compassapisdk/aerodrome_slipstream.py,sha256=0Vw7syYZGOl8rXOD6pjiZx0PIsZRDkMk6_BxQp1jG5I,82959
8
8
  compassapisdk/basesdk.py,sha256=jeaXGkGBhWBQ288Xjctv30WbB5pxBCYgb42Ezyj6GgU,12130
@@ -10,7 +10,7 @@ compassapisdk/errors/__init__.py,sha256=f8nyj2IhW5h_xtEeg6cfKgByLkqowLv0Fxm0hUof
10
10
  compassapisdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
11
11
  compassapisdk/errors/httpvalidationerror.py,sha256=04VFnAPBDed4UQh3ar7i7PoqLXppLpv57B8Uv8SPRs0,665
12
12
  compassapisdk/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
13
- compassapisdk/models/__init__.py,sha256=I7a0PurKVgZ_qd0ufkhIqnvaFoGxp0Ay3OpRuxMrbgU,45426
13
+ compassapisdk/models/__init__.py,sha256=khOnM61xQtP9DcwqrAMFtOpxQrPyo2xK3r8tcsZOHHE,48568
14
14
  compassapisdk/models/aave_historical_transactionsop.py,sha256=pDjCayatpXSc7HzT0xirwowecGTFCUoNMoR0VC8n_m8,1785
15
15
  compassapisdk/models/aave_liquidity_changeop.py,sha256=GMvgWl55yL_VCfOCHTQ4gPIasFEsEYXl5UrJzcMJtSM,2781
16
16
  compassapisdk/models/aave_rateop.py,sha256=mST4ddicQ1D_mblAuh2TSeJOnLYyD7gKAy8yZaMUXio,2149
@@ -74,21 +74,28 @@ compassapisdk/models/morpho_market_positionop.py,sha256=bFghClP1DFOSEDJmZnckgyO4
74
74
  compassapisdk/models/morpho_marketsop.py,sha256=LAnYB3ldgzb6dyWvOgunsg6nW7eEMoINJOSLmLaDNgs,2220
75
75
  compassapisdk/models/morpho_vault_positionop.py,sha256=uehOEzaBJp-ri_bp22iCxibtN5VbR1bhxdRQelmTWx4,1344
76
76
  compassapisdk/models/morpho_vaultsop.py,sha256=bCmOgvNiAr285Rsy-FRlSC0spCFwhvPueIuLYHxDlqA,1975
77
+ compassapisdk/models/morphoborrowparams.py,sha256=tenD2px4OH67j1UrgHes6WVDmYpNvlbwt54HVsQqYjU,2718
77
78
  compassapisdk/models/morphoborrowrequest.py,sha256=zf3pXasnoDbHGMtdvXrTEyYzwFjLEqeCWaE1jBA56gc,3081
78
79
  compassapisdk/models/morphocheckmarketpositionresponse.py,sha256=21qC_C_-_zRkBcv4xV-EfFXZF5d1iifGyTaEVCa2iyU,1663
79
80
  compassapisdk/models/morphocheckvaultpositionresponse.py,sha256=Zk57Ll0bKyTQXshY5wQzC_X87e3UmZKWBCOcgP_iL7U,602
81
+ compassapisdk/models/morphodepositparams.py,sha256=vX_nNqHwRXPvcN_o4oWsnGM97BJOBuI8T_swkIWZ33E,2436
80
82
  compassapisdk/models/morphodepositrequest.py,sha256=Pd-6t7KtSZpJeKyoahCzE-kBnG7dWYsOYZcjkavCf98,2796
81
83
  compassapisdk/models/morphogetmarketsresponse.py,sha256=cTtoT2bBYKEvGUOXB74aDZmB02hxjj2KT8kMH_rwI7Q,546
82
84
  compassapisdk/models/morphogetvaultsresponse.py,sha256=nnJSeaj14T6hM5neAj77xkrEW_PlxxSv71nPB_TGzQY,535
83
85
  compassapisdk/models/morphomarket.py,sha256=8Ac1cKCHs09p0YQ1fw_-0WqvkQEJROEijqSToQvXZLU,2571
86
+ compassapisdk/models/morphorepayparams.py,sha256=GDro1qDq3hjl0fUNOsiV_20-C8MSqCAd37w2y981YnY,2608
84
87
  compassapisdk/models/morphorepayrequest.py,sha256=x_spwoVZoxwycpgIkLWRZ6YipTAAAZL3ramzjawsv9w,2956
88
+ compassapisdk/models/morphosetvaultallowanceparams.py,sha256=3Wu9zaUuNwvk7S2lAJ_IkBRCTrvPQGJOA30a1ke_0hs,1119
85
89
  compassapisdk/models/morphosetvaultallowancerequest.py,sha256=GK4Vtfy6bEuWf8fYfYyxN6Bg6PB-EZEQqYxMetaGRg4,1509
90
+ compassapisdk/models/morphosupplycollateralparams.py,sha256=ZUP17KFW3wD1UUjw5nOnzbrzUFkSfFl0MKB1K3XYDN0,2928
86
91
  compassapisdk/models/morphosupplycollateralrequest.py,sha256=u6chm-qyyZynxtzCjsqRQ6h0Lwkid2QhMxpxi7UfUnI,3315
87
92
  compassapisdk/models/morphovault.py,sha256=fNQC_pO_AYr9xqWPpwXuNIA8u4QoyQyc8Jrw_iI11P8,1335
93
+ compassapisdk/models/morphowithdrawcollateralparams.py,sha256=a-yGt3fHyIc4By0CORtCr3ZKYtiAOWtTNRoVEr0DzMI,2850
88
94
  compassapisdk/models/morphowithdrawcollateralrequest.py,sha256=qaTJdsESJo0bh_7RsApsvR4gUdBBhuzdzu8JH6b-iNs,3243
95
+ compassapisdk/models/morphowithdrawparams.py,sha256=JGVAMbJaj-yblpMUUky5yNijD2PRoJuyoTDT3sjTN5M,2054
89
96
  compassapisdk/models/morphowithdrawrequest.py,sha256=mUwpIwrSqNdz4VscpwXP3JNNUScig4txUvb0qGNi44I,2411
90
- compassapisdk/models/multicallaction.py,sha256=MSNlDPBjyloXQ5aI5p1d40gxTrhxSzo2ceTFUzprSno,4557
91
- compassapisdk/models/multicallactiontype.py,sha256=8vkak6f6uslIgD8DG8UnynCI9GhU69sIxk6Fm9pLT-4,1168
97
+ compassapisdk/models/multicallaction.py,sha256=7ua7H7bHa792w63bHRYUBylFI8RugnkmFCn9Oi-lSMI,6296
98
+ compassapisdk/models/multicallactiontype.py,sha256=zUoQJ_v_lyrIQWydn16iknjjX1J5oWdvm2PEdmyrPUA,1614
92
99
  compassapisdk/models/multicallauthorizationrequest.py,sha256=XjmDuVsZYRYOxJoEV_JaCF0UHzTL7nq-FtVHNnq9Xeg,1153
93
100
  compassapisdk/models/multicallauthorizationresponse.py,sha256=1dqpVqEn8w3SHOa7Cbcxxrg51SZIOh5eiEvOPAigeUk,912
94
101
  compassapisdk/models/multicallexecuterequest.py,sha256=mo64ndwPS_rqKef5AqfmJSvDUk00TXSokzm-Re6VsIQ,1103
@@ -99,10 +106,14 @@ compassapisdk/models/reserve.py,sha256=6rTm7QAPIqwwx0nbZ6tx6hdcDejzHkWtYbry8-uXN
99
106
  compassapisdk/models/security.py,sha256=lYtADQ6XmY_YcTSJ_JWdRMk-dUhKH-7d2Bw61iCmrOk,631
100
107
  compassapisdk/models/signedauthorization.py,sha256=3CxjKIUCYxkX8alcbrFUipz5R2mnTGpTUwyZeik3Fl4,1457
101
108
  compassapisdk/models/sky_positionop.py,sha256=OKkVpeNHJ_AKJgjhCnLwsfu0NXb60dUx509n-NDAphc,1122
102
- compassapisdk/models/skybuyrequest.py,sha256=cJdVuDeTXeXC_4wys9s3CDbflbWuzw2DJIXMtzTL4UQ,1784
109
+ compassapisdk/models/skybuyparams.py,sha256=5QnHpCTcddrJ0Z4DpsH9gO1tnAMAWXJzIp7nU0mubrY,1255
110
+ compassapisdk/models/skybuyrequest.py,sha256=UE-HK2drksKKL4Y1JM286YxqysmsgpHZ3GSuQjEBN50,1823
103
111
  compassapisdk/models/skycheckpositionresponse.py,sha256=m7K-48h8bzzfxhzojDzFCI9bWU4wjDjj_5fmjgMBzVI,566
112
+ compassapisdk/models/skydepositparams.py,sha256=qAARo5vNRFTOCkcDcYVIhO9srN4-unHiCJ8x7gP3ZZo,2183
104
113
  compassapisdk/models/skydepositrequest.py,sha256=BnAKDDcRwUAn5JrvLbvl9isJcphHXX3R-acIxBaL5o4,2757
105
- compassapisdk/models/skysellrequest.py,sha256=mmNfpAPVgYtiFDV842LwhuTp2yBnYc-AoojI7WMDvTE,1804
114
+ compassapisdk/models/skysellparams.py,sha256=6OTOjMR2CnmErxXCsxEVN5vA24So6mw6LYRV6HjmQSg,1278
115
+ compassapisdk/models/skysellrequest.py,sha256=G2ayQNpNT4OwPEl8KE5XdabDv59jtTWOrbbHEwdBC2Y,1846
116
+ compassapisdk/models/skywithdrawparams.py,sha256=D1g-TVQ0xg4J5jSxL4DddhwhXo1KpL9NdZX1cIc8ho0,1881
106
117
  compassapisdk/models/skywithdrawrequest.py,sha256=uB0gW6580RDGAS4Bz9tPkJXfqYCUcuJJWG_WnhF8a5s,2449
107
118
  compassapisdk/models/supply.py,sha256=VckGKt7UhsnQiIErtVSoUn9xWqF4HsrBvehUIZ5fs_k,1550
108
119
  compassapisdk/models/swapborrowrate.py,sha256=wg3ZDH6g3SSP5zwm_1ep3JaWMyY6JkM8h8V2S6dpWso,1740
@@ -152,7 +163,7 @@ compassapisdk/morpho.py,sha256=65XqM1CJw_AGGoy0bv8LiAQ8ZtePiERLSiGTLaxAr9Q,10768
152
163
  compassapisdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
153
164
  compassapisdk/sdk.py,sha256=Ep8fR0FgKCm3fJuhP-9AQTE7SINVZf90c1ZsgajwuGQ,6079
154
165
  compassapisdk/sdkconfiguration.py,sha256=pruE3w60JmjxI3yq2dw3lbxuY3_BPlFzDDBZZKULADs,1760
155
- compassapisdk/sky.py,sha256=63wu2nBjtiEnULAZAYdMZxvXnwFXNilWKl_BmLI6mVg,43635
166
+ compassapisdk/sky.py,sha256=pINtz6xw_2rO64_AePhgjyQzCfoL7kaRD4VzswXvsyo,43689
156
167
  compassapisdk/token_sdk.py,sha256=l4IugAow6anTtZnT2jVpNpUujLanf22Aj1ye_I_0NxM,34254
157
168
  compassapisdk/transaction_batching.py,sha256=mHjLuk8aUDhOe-eZ6hrMwuGBKaoaFZIFuxOrHZYzAOE,31365
158
169
  compassapisdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
@@ -175,6 +186,6 @@ compassapisdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFIdYB
175
186
  compassapisdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
176
187
  compassapisdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
177
188
  compassapisdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
178
- compass_api_sdk-0.3.1.dist-info/METADATA,sha256=S77DdPEYrMSLKx9VkNcPHMLysKK-A--0-RYhldZWWdY,24826
179
- compass_api_sdk-0.3.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
180
- compass_api_sdk-0.3.1.dist-info/RECORD,,
189
+ compass_api_sdk-0.3.2.dist-info/METADATA,sha256=lOguDGeJZHAgMptA0YKFbs9Qpets2AkDNYjMigyk0dQ,24826
190
+ compass_api_sdk-0.3.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
191
+ compass_api_sdk-0.3.2.dist-info/RECORD,,
compassapisdk/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "compass_api_sdk"
6
- __version__: str = "0.3.1"
6
+ __version__: str = "0.3.2"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
- __gen_version__: str = "2.603.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.3.1 2.603.1 0.0.1 compass_api_sdk"
8
+ __gen_version__: str = "2.604.2"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.2 2.604.2 0.0.1 compass_api_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -320,6 +320,12 @@ from .morpho_vaultsop import (
320
320
  MorphoVaultsRequest,
321
321
  MorphoVaultsRequestTypedDict,
322
322
  )
323
+ from .morphoborrowparams import (
324
+ MorphoBorrowParams,
325
+ MorphoBorrowParamsAmount,
326
+ MorphoBorrowParamsAmountTypedDict,
327
+ MorphoBorrowParamsTypedDict,
328
+ )
323
329
  from .morphoborrowrequest import (
324
330
  MorphoBorrowRequest,
325
331
  MorphoBorrowRequestAmount,
@@ -335,6 +341,12 @@ from .morphocheckvaultpositionresponse import (
335
341
  MorphoCheckVaultPositionResponse,
336
342
  MorphoCheckVaultPositionResponseTypedDict,
337
343
  )
344
+ from .morphodepositparams import (
345
+ MorphoDepositParams,
346
+ MorphoDepositParamsAmount,
347
+ MorphoDepositParamsAmountTypedDict,
348
+ MorphoDepositParamsTypedDict,
349
+ )
338
350
  from .morphodepositrequest import (
339
351
  MorphoDepositRequest,
340
352
  MorphoDepositRequestAmount,
@@ -351,11 +363,18 @@ from .morphogetvaultsresponse import (
351
363
  MorphoGetVaultsResponseTypedDict,
352
364
  )
353
365
  from .morphomarket import MorphoMarket, MorphoMarketTypedDict
366
+ from .morphorepayparams import MorphoRepayParams, MorphoRepayParamsTypedDict
354
367
  from .morphorepayrequest import (
355
368
  MorphoRepayRequest,
356
369
  MorphoRepayRequestChain,
357
370
  MorphoRepayRequestTypedDict,
358
371
  )
372
+ from .morphosetvaultallowanceparams import (
373
+ MorphoSetVaultAllowanceParams,
374
+ MorphoSetVaultAllowanceParamsAmount,
375
+ MorphoSetVaultAllowanceParamsAmountTypedDict,
376
+ MorphoSetVaultAllowanceParamsTypedDict,
377
+ )
359
378
  from .morphosetvaultallowancerequest import (
360
379
  MorphoSetVaultAllowanceRequest,
361
380
  MorphoSetVaultAllowanceRequestAmount,
@@ -363,6 +382,12 @@ from .morphosetvaultallowancerequest import (
363
382
  MorphoSetVaultAllowanceRequestChain,
364
383
  MorphoSetVaultAllowanceRequestTypedDict,
365
384
  )
385
+ from .morphosupplycollateralparams import (
386
+ MorphoSupplyCollateralParams,
387
+ MorphoSupplyCollateralParamsAmount,
388
+ MorphoSupplyCollateralParamsAmountTypedDict,
389
+ MorphoSupplyCollateralParamsTypedDict,
390
+ )
366
391
  from .morphosupplycollateralrequest import (
367
392
  MorphoSupplyCollateralRequest,
368
393
  MorphoSupplyCollateralRequestAmount,
@@ -371,6 +396,12 @@ from .morphosupplycollateralrequest import (
371
396
  MorphoSupplyCollateralRequestTypedDict,
372
397
  )
373
398
  from .morphovault import MorphoVault, MorphoVaultTypedDict
399
+ from .morphowithdrawcollateralparams import (
400
+ MorphoWithdrawCollateralParams,
401
+ MorphoWithdrawCollateralParamsAmount,
402
+ MorphoWithdrawCollateralParamsAmountTypedDict,
403
+ MorphoWithdrawCollateralParamsTypedDict,
404
+ )
374
405
  from .morphowithdrawcollateralrequest import (
375
406
  MorphoWithdrawCollateralRequest,
376
407
  MorphoWithdrawCollateralRequestAmount,
@@ -378,6 +409,7 @@ from .morphowithdrawcollateralrequest import (
378
409
  MorphoWithdrawCollateralRequestChain,
379
410
  MorphoWithdrawCollateralRequestTypedDict,
380
411
  )
412
+ from .morphowithdrawparams import MorphoWithdrawParams, MorphoWithdrawParamsTypedDict
381
413
  from .morphowithdrawrequest import (
382
414
  MorphoWithdrawRequest,
383
415
  MorphoWithdrawRequestChain,
@@ -416,30 +448,51 @@ from .signedauthorization import (
416
448
  SignedAuthorizationTypedDict,
417
449
  )
418
450
  from .sky_positionop import SkyPositionRequest, SkyPositionRequestTypedDict
451
+ from .skybuyparams import (
452
+ SkyBuyParams,
453
+ SkyBuyParamsAmount,
454
+ SkyBuyParamsAmountTypedDict,
455
+ SkyBuyParamsTokenIn,
456
+ SkyBuyParamsTypedDict,
457
+ )
419
458
  from .skybuyrequest import (
420
459
  SkyBuyRequest,
421
460
  SkyBuyRequestAmount,
422
461
  SkyBuyRequestAmountTypedDict,
462
+ SkyBuyRequestTokenIn,
423
463
  SkyBuyRequestTypedDict,
424
- TokenIn,
425
464
  )
426
465
  from .skycheckpositionresponse import (
427
466
  SkyCheckPositionResponse,
428
467
  SkyCheckPositionResponseTypedDict,
429
468
  )
469
+ from .skydepositparams import (
470
+ SkyDepositParams,
471
+ SkyDepositParamsAmount,
472
+ SkyDepositParamsAmountTypedDict,
473
+ SkyDepositParamsTypedDict,
474
+ )
430
475
  from .skydepositrequest import (
431
476
  SkyDepositRequest,
432
477
  SkyDepositRequestAmount,
433
478
  SkyDepositRequestAmountTypedDict,
434
479
  SkyDepositRequestTypedDict,
435
480
  )
481
+ from .skysellparams import (
482
+ SkySellParams,
483
+ SkySellParamsAmount,
484
+ SkySellParamsAmountTypedDict,
485
+ SkySellParamsTokenOut,
486
+ SkySellParamsTypedDict,
487
+ )
436
488
  from .skysellrequest import (
437
489
  SkySellRequest,
438
490
  SkySellRequestAmount,
439
491
  SkySellRequestAmountTypedDict,
492
+ SkySellRequestTokenOut,
440
493
  SkySellRequestTypedDict,
441
- TokenOut,
442
494
  )
495
+ from .skywithdrawparams import SkyWithdrawParams, SkyWithdrawParamsTypedDict
443
496
  from .skywithdrawrequest import SkyWithdrawRequest, SkyWithdrawRequestTypedDict
444
497
  from .supply import Supply, SupplyTypedDict
445
498
  from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
@@ -894,6 +947,10 @@ __all__ = [
894
947
  "LocTypedDict",
895
948
  "MarketState",
896
949
  "MarketStateTypedDict",
950
+ "MorphoBorrowParams",
951
+ "MorphoBorrowParamsAmount",
952
+ "MorphoBorrowParamsAmountTypedDict",
953
+ "MorphoBorrowParamsTypedDict",
897
954
  "MorphoBorrowRequest",
898
955
  "MorphoBorrowRequestAmount",
899
956
  "MorphoBorrowRequestAmountTypedDict",
@@ -903,6 +960,10 @@ __all__ = [
903
960
  "MorphoCheckMarketPositionResponseTypedDict",
904
961
  "MorphoCheckVaultPositionResponse",
905
962
  "MorphoCheckVaultPositionResponseTypedDict",
963
+ "MorphoDepositParams",
964
+ "MorphoDepositParamsAmount",
965
+ "MorphoDepositParamsAmountTypedDict",
966
+ "MorphoDepositParamsTypedDict",
906
967
  "MorphoDepositRequest",
907
968
  "MorphoDepositRequestAmount",
908
969
  "MorphoDepositRequestAmountTypedDict",
@@ -920,14 +981,24 @@ __all__ = [
920
981
  "MorphoMarketsChain",
921
982
  "MorphoMarketsRequest",
922
983
  "MorphoMarketsRequestTypedDict",
984
+ "MorphoRepayParams",
985
+ "MorphoRepayParamsTypedDict",
923
986
  "MorphoRepayRequest",
924
987
  "MorphoRepayRequestChain",
925
988
  "MorphoRepayRequestTypedDict",
989
+ "MorphoSetVaultAllowanceParams",
990
+ "MorphoSetVaultAllowanceParamsAmount",
991
+ "MorphoSetVaultAllowanceParamsAmountTypedDict",
992
+ "MorphoSetVaultAllowanceParamsTypedDict",
926
993
  "MorphoSetVaultAllowanceRequest",
927
994
  "MorphoSetVaultAllowanceRequestAmount",
928
995
  "MorphoSetVaultAllowanceRequestAmountTypedDict",
929
996
  "MorphoSetVaultAllowanceRequestChain",
930
997
  "MorphoSetVaultAllowanceRequestTypedDict",
998
+ "MorphoSupplyCollateralParams",
999
+ "MorphoSupplyCollateralParamsAmount",
1000
+ "MorphoSupplyCollateralParamsAmountTypedDict",
1001
+ "MorphoSupplyCollateralParamsTypedDict",
931
1002
  "MorphoSupplyCollateralRequest",
932
1003
  "MorphoSupplyCollateralRequestAmount",
933
1004
  "MorphoSupplyCollateralRequestAmountTypedDict",
@@ -941,11 +1012,17 @@ __all__ = [
941
1012
  "MorphoVaultsChain",
942
1013
  "MorphoVaultsRequest",
943
1014
  "MorphoVaultsRequestTypedDict",
1015
+ "MorphoWithdrawCollateralParams",
1016
+ "MorphoWithdrawCollateralParamsAmount",
1017
+ "MorphoWithdrawCollateralParamsAmountTypedDict",
1018
+ "MorphoWithdrawCollateralParamsTypedDict",
944
1019
  "MorphoWithdrawCollateralRequest",
945
1020
  "MorphoWithdrawCollateralRequestAmount",
946
1021
  "MorphoWithdrawCollateralRequestAmountTypedDict",
947
1022
  "MorphoWithdrawCollateralRequestChain",
948
1023
  "MorphoWithdrawCollateralRequestTypedDict",
1024
+ "MorphoWithdrawParams",
1025
+ "MorphoWithdrawParamsTypedDict",
949
1026
  "MorphoWithdrawRequest",
950
1027
  "MorphoWithdrawRequestChain",
951
1028
  "MorphoWithdrawRequestTypedDict",
@@ -974,22 +1051,40 @@ __all__ = [
974
1051
  "SecurityTypedDict",
975
1052
  "SignedAuthorization",
976
1053
  "SignedAuthorizationTypedDict",
1054
+ "SkyBuyParams",
1055
+ "SkyBuyParamsAmount",
1056
+ "SkyBuyParamsAmountTypedDict",
1057
+ "SkyBuyParamsTokenIn",
1058
+ "SkyBuyParamsTypedDict",
977
1059
  "SkyBuyRequest",
978
1060
  "SkyBuyRequestAmount",
979
1061
  "SkyBuyRequestAmountTypedDict",
1062
+ "SkyBuyRequestTokenIn",
980
1063
  "SkyBuyRequestTypedDict",
981
1064
  "SkyCheckPositionResponse",
982
1065
  "SkyCheckPositionResponseTypedDict",
1066
+ "SkyDepositParams",
1067
+ "SkyDepositParamsAmount",
1068
+ "SkyDepositParamsAmountTypedDict",
1069
+ "SkyDepositParamsTypedDict",
983
1070
  "SkyDepositRequest",
984
1071
  "SkyDepositRequestAmount",
985
1072
  "SkyDepositRequestAmountTypedDict",
986
1073
  "SkyDepositRequestTypedDict",
987
1074
  "SkyPositionRequest",
988
1075
  "SkyPositionRequestTypedDict",
1076
+ "SkySellParams",
1077
+ "SkySellParamsAmount",
1078
+ "SkySellParamsAmountTypedDict",
1079
+ "SkySellParamsTokenOut",
1080
+ "SkySellParamsTypedDict",
989
1081
  "SkySellRequest",
990
1082
  "SkySellRequestAmount",
991
1083
  "SkySellRequestAmountTypedDict",
1084
+ "SkySellRequestTokenOut",
992
1085
  "SkySellRequestTypedDict",
1086
+ "SkyWithdrawParams",
1087
+ "SkyWithdrawParamsTypedDict",
993
1088
  "SkyWithdrawRequest",
994
1089
  "SkyWithdrawRequestTypedDict",
995
1090
  "Supply",
@@ -1012,10 +1107,8 @@ __all__ = [
1012
1107
  "TokenBalanceTokenTypedDict",
1013
1108
  "TokenBalanceTypedDict",
1014
1109
  "TokenEnum",
1015
- "TokenIn",
1016
1110
  "TokenInfo",
1017
1111
  "TokenInfoTypedDict",
1018
- "TokenOut",
1019
1112
  "TokenPriceChain",
1020
1113
  "TokenPriceRequest",
1021
1114
  "TokenPriceRequestTypedDict",
@@ -0,0 +1,78 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Union
13
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
14
+
15
+
16
+ MorphoBorrowParamsAmountTypedDict = TypeAliasType(
17
+ "MorphoBorrowParamsAmountTypedDict", Union[float, str]
18
+ )
19
+ r"""Amount of the token to borrow from the market."""
20
+
21
+
22
+ MorphoBorrowParamsAmount = TypeAliasType("MorphoBorrowParamsAmount", Union[float, str])
23
+ r"""Amount of the token to borrow from the market."""
24
+
25
+
26
+ class MorphoBorrowParamsTypedDict(TypedDict):
27
+ amount: MorphoBorrowParamsAmountTypedDict
28
+ r"""Amount of the token to borrow from the market."""
29
+ unique_market_key: str
30
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
31
+ on_behalf_of: NotRequired[Nullable[str]]
32
+ r"""The address where the collateral is borrowed against. Defaults to sender."""
33
+ receiver: NotRequired[Nullable[str]]
34
+ r"""The address of the receiver of the tokens borrowed. Defaults to the transaction sender."""
35
+
36
+
37
+ class MorphoBorrowParams(BaseModel):
38
+ amount: MorphoBorrowParamsAmount
39
+ r"""Amount of the token to borrow from the market."""
40
+
41
+ unique_market_key: str
42
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
43
+
44
+ on_behalf_of: OptionalNullable[str] = UNSET
45
+ r"""The address where the collateral is borrowed against. Defaults to sender."""
46
+
47
+ receiver: OptionalNullable[str] = UNSET
48
+ r"""The address of the receiver of the tokens borrowed. Defaults to the transaction sender."""
49
+
50
+ @model_serializer(mode="wrap")
51
+ def serialize_model(self, handler):
52
+ optional_fields = ["on_behalf_of", "receiver"]
53
+ nullable_fields = ["on_behalf_of", "receiver"]
54
+ null_default_fields = []
55
+
56
+ serialized = handler(self)
57
+
58
+ m = {}
59
+
60
+ for n, f in type(self).model_fields.items():
61
+ k = f.alias or n
62
+ val = serialized.get(k)
63
+ serialized.pop(k, None)
64
+
65
+ optional_nullable = k in optional_fields and k in nullable_fields
66
+ is_set = (
67
+ self.__pydantic_fields_set__.intersection({n})
68
+ or k in null_default_fields
69
+ ) # pylint: disable=no-member
70
+
71
+ if val is not None and val != UNSET_SENTINEL:
72
+ m[k] = val
73
+ elif val != UNSET_SENTINEL and (
74
+ not k in optional_fields or (optional_nullable and is_set)
75
+ ):
76
+ m[k] = val
77
+
78
+ return m
@@ -0,0 +1,75 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Union
13
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
14
+
15
+
16
+ MorphoDepositParamsAmountTypedDict = TypeAliasType(
17
+ "MorphoDepositParamsAmountTypedDict", Union[float, str]
18
+ )
19
+ r"""The amount of tokens to deposit into the vault."""
20
+
21
+
22
+ MorphoDepositParamsAmount = TypeAliasType(
23
+ "MorphoDepositParamsAmount", Union[float, str]
24
+ )
25
+ r"""The amount of tokens to deposit into the vault."""
26
+
27
+
28
+ class MorphoDepositParamsTypedDict(TypedDict):
29
+ vault_address: str
30
+ r"""The vault address you are depositing to."""
31
+ amount: MorphoDepositParamsAmountTypedDict
32
+ r"""The amount of tokens to deposit into the vault."""
33
+ receiver: NotRequired[Nullable[str]]
34
+ r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
35
+
36
+
37
+ class MorphoDepositParams(BaseModel):
38
+ vault_address: str
39
+ r"""The vault address you are depositing to."""
40
+
41
+ amount: MorphoDepositParamsAmount
42
+ r"""The amount of tokens to deposit into the vault."""
43
+
44
+ receiver: OptionalNullable[str] = UNSET
45
+ r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
46
+
47
+ @model_serializer(mode="wrap")
48
+ def serialize_model(self, handler):
49
+ optional_fields = ["receiver"]
50
+ nullable_fields = ["receiver"]
51
+ null_default_fields = []
52
+
53
+ serialized = handler(self)
54
+
55
+ m = {}
56
+
57
+ for n, f in type(self).model_fields.items():
58
+ k = f.alias or n
59
+ val = serialized.get(k)
60
+ serialized.pop(k, None)
61
+
62
+ optional_nullable = k in optional_fields and k in nullable_fields
63
+ is_set = (
64
+ self.__pydantic_fields_set__.intersection({n})
65
+ or k in null_default_fields
66
+ ) # pylint: disable=no-member
67
+
68
+ if val is not None and val != UNSET_SENTINEL:
69
+ m[k] = val
70
+ elif val != UNSET_SENTINEL and (
71
+ not k in optional_fields or (optional_nullable and is_set)
72
+ ):
73
+ m[k] = val
74
+
75
+ return m
@@ -0,0 +1,68 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Any
13
+ from typing_extensions import NotRequired, TypedDict
14
+
15
+
16
+ class MorphoRepayParamsTypedDict(TypedDict):
17
+ amount: Any
18
+ r"""Amount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet."""
19
+ unique_market_key: str
20
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
21
+ on_behalf_of: NotRequired[Nullable[str]]
22
+ r"""The address on behalf of whom the repayment is made. Defaults to sender."""
23
+ callback_data: NotRequired[Nullable[bytes]]
24
+ r"""An optional field for callback byte data that will be triggered upon successful repaying of debt."""
25
+
26
+
27
+ class MorphoRepayParams(BaseModel):
28
+ amount: Any
29
+ r"""Amount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet."""
30
+
31
+ unique_market_key: str
32
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
33
+
34
+ on_behalf_of: OptionalNullable[str] = UNSET
35
+ r"""The address on behalf of whom the repayment is made. Defaults to sender."""
36
+
37
+ callback_data: OptionalNullable[bytes] = UNSET
38
+ r"""An optional field for callback byte data that will be triggered upon successful repaying of debt."""
39
+
40
+ @model_serializer(mode="wrap")
41
+ def serialize_model(self, handler):
42
+ optional_fields = ["on_behalf_of", "callback_data"]
43
+ nullable_fields = ["on_behalf_of", "callback_data"]
44
+ null_default_fields = []
45
+
46
+ serialized = handler(self)
47
+
48
+ m = {}
49
+
50
+ for n, f in type(self).model_fields.items():
51
+ k = f.alias or n
52
+ val = serialized.get(k)
53
+ serialized.pop(k, None)
54
+
55
+ optional_nullable = k in optional_fields and k in nullable_fields
56
+ is_set = (
57
+ self.__pydantic_fields_set__.intersection({n})
58
+ or k in null_default_fields
59
+ ) # pylint: disable=no-member
60
+
61
+ if val is not None and val != UNSET_SENTINEL:
62
+ m[k] = val
63
+ elif val != UNSET_SENTINEL and (
64
+ not k in optional_fields or (optional_nullable and is_set)
65
+ ):
66
+ m[k] = val
67
+
68
+ return m
@@ -0,0 +1,33 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import BaseModel
5
+ from typing import Union
6
+ from typing_extensions import TypeAliasType, TypedDict
7
+
8
+
9
+ MorphoSetVaultAllowanceParamsAmountTypedDict = TypeAliasType(
10
+ "MorphoSetVaultAllowanceParamsAmountTypedDict", Union[float, str]
11
+ )
12
+ r"""The amount of tokens to increase the allowance by."""
13
+
14
+
15
+ MorphoSetVaultAllowanceParamsAmount = TypeAliasType(
16
+ "MorphoSetVaultAllowanceParamsAmount", Union[float, str]
17
+ )
18
+ r"""The amount of tokens to increase the allowance by."""
19
+
20
+
21
+ class MorphoSetVaultAllowanceParamsTypedDict(TypedDict):
22
+ vault_address: str
23
+ r"""The vault address you are increasing the allowance for."""
24
+ amount: MorphoSetVaultAllowanceParamsAmountTypedDict
25
+ r"""The amount of tokens to increase the allowance by."""
26
+
27
+
28
+ class MorphoSetVaultAllowanceParams(BaseModel):
29
+ vault_address: str
30
+ r"""The vault address you are increasing the allowance for."""
31
+
32
+ amount: MorphoSetVaultAllowanceParamsAmount
33
+ r"""The amount of tokens to increase the allowance by."""
@@ -0,0 +1,80 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Union
13
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
14
+
15
+
16
+ MorphoSupplyCollateralParamsAmountTypedDict = TypeAliasType(
17
+ "MorphoSupplyCollateralParamsAmountTypedDict", Union[float, str]
18
+ )
19
+ r"""Amount of the token to supply to the market as collateral."""
20
+
21
+
22
+ MorphoSupplyCollateralParamsAmount = TypeAliasType(
23
+ "MorphoSupplyCollateralParamsAmount", Union[float, str]
24
+ )
25
+ r"""Amount of the token to supply to the market as collateral."""
26
+
27
+
28
+ class MorphoSupplyCollateralParamsTypedDict(TypedDict):
29
+ amount: MorphoSupplyCollateralParamsAmountTypedDict
30
+ r"""Amount of the token to supply to the market as collateral."""
31
+ unique_market_key: str
32
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
33
+ on_behalf_of: NotRequired[Nullable[str]]
34
+ r"""The address on behalf of whom the supplied collateral is made. Defaults to sender."""
35
+ callback_data: NotRequired[Nullable[bytes]]
36
+ r"""An optional field for callback byte data that will be triggered upon successful supplying of collateral."""
37
+
38
+
39
+ class MorphoSupplyCollateralParams(BaseModel):
40
+ amount: MorphoSupplyCollateralParamsAmount
41
+ r"""Amount of the token to supply to the market as collateral."""
42
+
43
+ unique_market_key: str
44
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
45
+
46
+ on_behalf_of: OptionalNullable[str] = UNSET
47
+ r"""The address on behalf of whom the supplied collateral is made. Defaults to sender."""
48
+
49
+ callback_data: OptionalNullable[bytes] = UNSET
50
+ r"""An optional field for callback byte data that will be triggered upon successful supplying of collateral."""
51
+
52
+ @model_serializer(mode="wrap")
53
+ def serialize_model(self, handler):
54
+ optional_fields = ["on_behalf_of", "callback_data"]
55
+ nullable_fields = ["on_behalf_of", "callback_data"]
56
+ null_default_fields = []
57
+
58
+ serialized = handler(self)
59
+
60
+ m = {}
61
+
62
+ for n, f in type(self).model_fields.items():
63
+ k = f.alias or n
64
+ val = serialized.get(k)
65
+ serialized.pop(k, None)
66
+
67
+ optional_nullable = k in optional_fields and k in nullable_fields
68
+ is_set = (
69
+ self.__pydantic_fields_set__.intersection({n})
70
+ or k in null_default_fields
71
+ ) # pylint: disable=no-member
72
+
73
+ if val is not None and val != UNSET_SENTINEL:
74
+ m[k] = val
75
+ elif val != UNSET_SENTINEL and (
76
+ not k in optional_fields or (optional_nullable and is_set)
77
+ ):
78
+ m[k] = val
79
+
80
+ return m
@@ -0,0 +1,80 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Union
13
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
14
+
15
+
16
+ MorphoWithdrawCollateralParamsAmountTypedDict = TypeAliasType(
17
+ "MorphoWithdrawCollateralParamsAmountTypedDict", Union[float, str]
18
+ )
19
+ r"""Amount of the token to supply to the market as collateral."""
20
+
21
+
22
+ MorphoWithdrawCollateralParamsAmount = TypeAliasType(
23
+ "MorphoWithdrawCollateralParamsAmount", Union[float, str]
24
+ )
25
+ r"""Amount of the token to supply to the market as collateral."""
26
+
27
+
28
+ class MorphoWithdrawCollateralParamsTypedDict(TypedDict):
29
+ amount: MorphoWithdrawCollateralParamsAmountTypedDict
30
+ r"""Amount of the token to supply to the market as collateral."""
31
+ unique_market_key: str
32
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
33
+ on_behalf_of: NotRequired[Nullable[str]]
34
+ r"""The address on behalf of whom the withdraw is made. Defaults to sender."""
35
+ receiver: NotRequired[Nullable[str]]
36
+ r"""The address where the withdrawn collateral will be received. Defaults to sender."""
37
+
38
+
39
+ class MorphoWithdrawCollateralParams(BaseModel):
40
+ amount: MorphoWithdrawCollateralParamsAmount
41
+ r"""Amount of the token to supply to the market as collateral."""
42
+
43
+ unique_market_key: str
44
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
45
+
46
+ on_behalf_of: OptionalNullable[str] = UNSET
47
+ r"""The address on behalf of whom the withdraw is made. Defaults to sender."""
48
+
49
+ receiver: OptionalNullable[str] = UNSET
50
+ r"""The address where the withdrawn collateral will be received. Defaults to sender."""
51
+
52
+ @model_serializer(mode="wrap")
53
+ def serialize_model(self, handler):
54
+ optional_fields = ["on_behalf_of", "receiver"]
55
+ nullable_fields = ["on_behalf_of", "receiver"]
56
+ null_default_fields = []
57
+
58
+ serialized = handler(self)
59
+
60
+ m = {}
61
+
62
+ for n, f in type(self).model_fields.items():
63
+ k = f.alias or n
64
+ val = serialized.get(k)
65
+ serialized.pop(k, None)
66
+
67
+ optional_nullable = k in optional_fields and k in nullable_fields
68
+ is_set = (
69
+ self.__pydantic_fields_set__.intersection({n})
70
+ or k in null_default_fields
71
+ ) # pylint: disable=no-member
72
+
73
+ if val is not None and val != UNSET_SENTINEL:
74
+ m[k] = val
75
+ elif val != UNSET_SENTINEL and (
76
+ not k in optional_fields or (optional_nullable and is_set)
77
+ ):
78
+ m[k] = val
79
+
80
+ return m
@@ -0,0 +1,63 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Any
13
+ from typing_extensions import NotRequired, TypedDict
14
+
15
+
16
+ class MorphoWithdrawParamsTypedDict(TypedDict):
17
+ vault_address: str
18
+ r"""The vault address you are withdrawing from."""
19
+ amount: Any
20
+ r"""The amount of tokens to withdraw from the vault. If set to 'ALL', your total deposited token amount will be withdrawn."""
21
+ receiver: NotRequired[Nullable[str]]
22
+ r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
23
+
24
+
25
+ class MorphoWithdrawParams(BaseModel):
26
+ vault_address: str
27
+ r"""The vault address you are withdrawing from."""
28
+
29
+ amount: Any
30
+ r"""The amount of tokens to withdraw from the vault. If set to 'ALL', your total deposited token amount will be withdrawn."""
31
+
32
+ receiver: OptionalNullable[str] = UNSET
33
+ r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
34
+
35
+ @model_serializer(mode="wrap")
36
+ def serialize_model(self, handler):
37
+ optional_fields = ["receiver"]
38
+ nullable_fields = ["receiver"]
39
+ null_default_fields = []
40
+
41
+ serialized = handler(self)
42
+
43
+ m = {}
44
+
45
+ for n, f in type(self).model_fields.items():
46
+ k = f.alias or n
47
+ val = serialized.get(k)
48
+ serialized.pop(k, None)
49
+
50
+ optional_nullable = k in optional_fields and k in nullable_fields
51
+ is_set = (
52
+ self.__pydantic_fields_set__.intersection({n})
53
+ or k in null_default_fields
54
+ ) # pylint: disable=no-member
55
+
56
+ if val is not None and val != UNSET_SENTINEL:
57
+ m[k] = val
58
+ elif val != UNSET_SENTINEL and (
59
+ not k in optional_fields or (optional_nullable and is_set)
60
+ ):
61
+ m[k] = val
62
+
63
+ return m
@@ -33,7 +33,27 @@ from .increaseallowanceparams import (
33
33
  IncreaseAllowanceParams,
34
34
  IncreaseAllowanceParamsTypedDict,
35
35
  )
36
+ from .morphoborrowparams import MorphoBorrowParams, MorphoBorrowParamsTypedDict
37
+ from .morphodepositparams import MorphoDepositParams, MorphoDepositParamsTypedDict
38
+ from .morphorepayparams import MorphoRepayParams, MorphoRepayParamsTypedDict
39
+ from .morphosetvaultallowanceparams import (
40
+ MorphoSetVaultAllowanceParams,
41
+ MorphoSetVaultAllowanceParamsTypedDict,
42
+ )
43
+ from .morphosupplycollateralparams import (
44
+ MorphoSupplyCollateralParams,
45
+ MorphoSupplyCollateralParamsTypedDict,
46
+ )
47
+ from .morphowithdrawcollateralparams import (
48
+ MorphoWithdrawCollateralParams,
49
+ MorphoWithdrawCollateralParamsTypedDict,
50
+ )
51
+ from .morphowithdrawparams import MorphoWithdrawParams, MorphoWithdrawParamsTypedDict
36
52
  from .multicallactiontype import MulticallActionType
53
+ from .skybuyparams import SkyBuyParams, SkyBuyParamsTypedDict
54
+ from .skydepositparams import SkyDepositParams, SkyDepositParamsTypedDict
55
+ from .skysellparams import SkySellParams, SkySellParamsTypedDict
56
+ from .skywithdrawparams import SkyWithdrawParams, SkyWithdrawParamsTypedDict
37
57
  from .tokentransfererc20params import (
38
58
  TokenTransferErc20Params,
39
59
  TokenTransferErc20ParamsTypedDict,
@@ -70,23 +90,34 @@ BodyTypedDict = TypeAliasType(
70
90
  Union[
71
91
  WrapEthParamsTypedDict,
72
92
  UnwrapWethParamsTypedDict,
73
- AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
93
+ MorphoSetVaultAllowanceParamsTypedDict,
74
94
  UniswapWithdrawLiquidityProvisionParamsTypedDict,
75
- TokenTransferErc20ParamsTypedDict,
95
+ AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
96
+ SkyWithdrawParamsTypedDict,
97
+ SkyDepositParamsTypedDict,
98
+ SkySellParamsTypedDict,
99
+ SkyBuyParamsTypedDict,
100
+ IncreaseAllowanceParamsTypedDict,
76
101
  IncreaseAllowanceAnyParamsTypedDict,
102
+ MorphoWithdrawParamsTypedDict,
103
+ MorphoDepositParamsTypedDict,
104
+ TokenTransferErc20ParamsTypedDict,
77
105
  AaveSupplyParamsTypedDict,
78
106
  AaveWithdrawParamsTypedDict,
79
- IncreaseAllowanceParamsTypedDict,
107
+ MorphoSupplyCollateralParamsTypedDict,
108
+ MorphoRepayParamsTypedDict,
80
109
  AaveRepayParamsTypedDict,
110
+ MorphoBorrowParamsTypedDict,
111
+ MorphoWithdrawCollateralParamsTypedDict,
81
112
  AaveBorrowParamsTypedDict,
82
- AerodromeSlipstreamBuyExactlyParamsTypedDict,
83
113
  AerodromeSlipstreamSellExactlyParamsTypedDict,
84
- AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
114
+ AerodromeSlipstreamBuyExactlyParamsTypedDict,
85
115
  UniswapIncreaseLiquidityProvisionParamsTypedDict,
116
+ AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
86
117
  UniswapBuyExactlyParamsTypedDict,
87
118
  UniswapSellExactlyParamsTypedDict,
88
- UniswapMintLiquidityProvisionParamsTypedDict,
89
119
  AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
120
+ UniswapMintLiquidityProvisionParamsTypedDict,
90
121
  ],
91
122
  )
92
123
 
@@ -96,23 +127,34 @@ Body = TypeAliasType(
96
127
  Union[
97
128
  WrapEthParams,
98
129
  UnwrapWethParams,
99
- AerodromeSlipstreamWithdrawLiquidityProvisionParams,
130
+ MorphoSetVaultAllowanceParams,
100
131
  UniswapWithdrawLiquidityProvisionParams,
101
- TokenTransferErc20Params,
132
+ AerodromeSlipstreamWithdrawLiquidityProvisionParams,
133
+ SkyWithdrawParams,
134
+ SkyDepositParams,
135
+ SkySellParams,
136
+ SkyBuyParams,
137
+ IncreaseAllowanceParams,
102
138
  IncreaseAllowanceAnyParams,
139
+ MorphoWithdrawParams,
140
+ MorphoDepositParams,
141
+ TokenTransferErc20Params,
103
142
  AaveSupplyParams,
104
143
  AaveWithdrawParams,
105
- IncreaseAllowanceParams,
144
+ MorphoSupplyCollateralParams,
145
+ MorphoRepayParams,
106
146
  AaveRepayParams,
147
+ MorphoBorrowParams,
148
+ MorphoWithdrawCollateralParams,
107
149
  AaveBorrowParams,
108
- AerodromeSlipstreamBuyExactlyParams,
109
150
  AerodromeSlipstreamSellExactlyParams,
110
- AerodromeSlipstreamIncreaseLiquidityProvisionParams,
151
+ AerodromeSlipstreamBuyExactlyParams,
111
152
  UniswapIncreaseLiquidityProvisionParams,
153
+ AerodromeSlipstreamIncreaseLiquidityProvisionParams,
112
154
  UniswapBuyExactlyParams,
113
155
  UniswapSellExactlyParams,
114
- UniswapMintLiquidityProvisionParams,
115
156
  AerodromeSlipstreamMintLiquidityProvisionParams,
157
+ UniswapMintLiquidityProvisionParams,
116
158
  ],
117
159
  )
118
160
 
@@ -16,6 +16,17 @@ class MulticallActionType(str, Enum):
16
16
  AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY = "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY"
17
17
  ALLOWANCE_INCREASE = "ALLOWANCE_INCREASE"
18
18
  ALLOWANCE_INCREASE_ANY = "ALLOWANCE_INCREASE_ANY"
19
+ MORPHO_BORROW = "MORPHO_BORROW"
20
+ MORPHO_DEPOSIT = "MORPHO_DEPOSIT"
21
+ MORPHO_REPAY = "MORPHO_REPAY"
22
+ MORPHO_SET_VAULT_ALLOWANCE = "MORPHO_SET_VAULT_ALLOWANCE"
23
+ MORPHO_SUPPLY_COLLATERAL = "MORPHO_SUPPLY_COLLATERAL"
24
+ MORPHO_WITHDRAW = "MORPHO_WITHDRAW"
25
+ MORPHO_WITHDRAW_COLLATERAL = "MORPHO_WITHDRAW_COLLATERAL"
26
+ SKY_BUY = "SKY_BUY"
27
+ SKY_DEPOSIT = "SKY_DEPOSIT"
28
+ SKY_SELL = "SKY_SELL"
29
+ SKY_WITHDRAW = "SKY_WITHDRAW"
19
30
  TRANSFER_ERC20 = "TRANSFER_ERC20"
20
31
  UNISWAP_ADD_LIQUIDITY = "UNISWAP_ADD_LIQUIDITY"
21
32
  UNISWAP_BUY_EXACTLY = "UNISWAP_BUY_EXACTLY"
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import BaseModel
5
+ from enum import Enum
6
+ from typing import Union
7
+ from typing_extensions import TypeAliasType, TypedDict
8
+
9
+
10
+ class SkyBuyParamsTokenIn(str, Enum):
11
+ r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
12
+
13
+ DAI = "DAI"
14
+ USDC = "USDC"
15
+
16
+
17
+ SkyBuyParamsAmountTypedDict = TypeAliasType(
18
+ "SkyBuyParamsAmountTypedDict", Union[float, str]
19
+ )
20
+ r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
21
+
22
+
23
+ SkyBuyParamsAmount = TypeAliasType("SkyBuyParamsAmount", Union[float, str])
24
+ r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
25
+
26
+
27
+ class SkyBuyParamsTypedDict(TypedDict):
28
+ token_in: SkyBuyParamsTokenIn
29
+ r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
30
+ amount: SkyBuyParamsAmountTypedDict
31
+ r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
32
+
33
+
34
+ class SkyBuyParams(BaseModel):
35
+ token_in: SkyBuyParamsTokenIn
36
+ r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
37
+
38
+ amount: SkyBuyParamsAmount
39
+ r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
@@ -10,7 +10,7 @@ from typing import Literal, Optional, Union
10
10
  from typing_extensions import Annotated, TypeAliasType, TypedDict
11
11
 
12
12
 
13
- class TokenIn(str, Enum):
13
+ class SkyBuyRequestTokenIn(str, Enum):
14
14
  r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
15
15
 
16
16
  DAI = "DAI"
@@ -28,7 +28,7 @@ r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
28
28
 
29
29
 
30
30
  class SkyBuyRequestTypedDict(TypedDict):
31
- token_in: TokenIn
31
+ token_in: SkyBuyRequestTokenIn
32
32
  r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
33
33
  amount: SkyBuyRequestAmountTypedDict
34
34
  r"""The amount of USDS you would like to buy 1:1 with 'token_in'."""
@@ -38,7 +38,7 @@ class SkyBuyRequestTypedDict(TypedDict):
38
38
 
39
39
 
40
40
  class SkyBuyRequest(BaseModel):
41
- token_in: TokenIn
41
+ token_in: SkyBuyRequestTokenIn
42
42
  r"""The token you would like to swap 1:1 for USDS. Choose from DAI or USDC."""
43
43
 
44
44
  amount: SkyBuyRequestAmount
@@ -0,0 +1,68 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Union
13
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
14
+
15
+
16
+ SkyDepositParamsAmountTypedDict = TypeAliasType(
17
+ "SkyDepositParamsAmountTypedDict", Union[float, str]
18
+ )
19
+ r"""The amount of USDS you would like to deposit for sUSDS to earn yield."""
20
+
21
+
22
+ SkyDepositParamsAmount = TypeAliasType("SkyDepositParamsAmount", Union[float, str])
23
+ r"""The amount of USDS you would like to deposit for sUSDS to earn yield."""
24
+
25
+
26
+ class SkyDepositParamsTypedDict(TypedDict):
27
+ amount: SkyDepositParamsAmountTypedDict
28
+ r"""The amount of USDS you would like to deposit for sUSDS to earn yield."""
29
+ receiver: NotRequired[Nullable[str]]
30
+ r"""The address which will receive the sUSDS. Defaults to the sender."""
31
+
32
+
33
+ class SkyDepositParams(BaseModel):
34
+ amount: SkyDepositParamsAmount
35
+ r"""The amount of USDS you would like to deposit for sUSDS to earn yield."""
36
+
37
+ receiver: OptionalNullable[str] = UNSET
38
+ r"""The address which will receive the sUSDS. Defaults to the sender."""
39
+
40
+ @model_serializer(mode="wrap")
41
+ def serialize_model(self, handler):
42
+ optional_fields = ["receiver"]
43
+ nullable_fields = ["receiver"]
44
+ null_default_fields = []
45
+
46
+ serialized = handler(self)
47
+
48
+ m = {}
49
+
50
+ for n, f in type(self).model_fields.items():
51
+ k = f.alias or n
52
+ val = serialized.get(k)
53
+ serialized.pop(k, None)
54
+
55
+ optional_nullable = k in optional_fields and k in nullable_fields
56
+ is_set = (
57
+ self.__pydantic_fields_set__.intersection({n})
58
+ or k in null_default_fields
59
+ ) # pylint: disable=no-member
60
+
61
+ if val is not None and val != UNSET_SENTINEL:
62
+ m[k] = val
63
+ elif val != UNSET_SENTINEL and (
64
+ not k in optional_fields or (optional_nullable and is_set)
65
+ ):
66
+ m[k] = val
67
+
68
+ return m
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import BaseModel
5
+ from enum import Enum
6
+ from typing import Union
7
+ from typing_extensions import TypeAliasType, TypedDict
8
+
9
+
10
+ class SkySellParamsTokenOut(str, Enum):
11
+ r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
12
+
13
+ DAI = "DAI"
14
+ USDC = "USDC"
15
+
16
+
17
+ SkySellParamsAmountTypedDict = TypeAliasType(
18
+ "SkySellParamsAmountTypedDict", Union[float, str]
19
+ )
20
+ r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
21
+
22
+
23
+ SkySellParamsAmount = TypeAliasType("SkySellParamsAmount", Union[float, str])
24
+ r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
25
+
26
+
27
+ class SkySellParamsTypedDict(TypedDict):
28
+ token_out: SkySellParamsTokenOut
29
+ r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
30
+ amount: SkySellParamsAmountTypedDict
31
+ r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
32
+
33
+
34
+ class SkySellParams(BaseModel):
35
+ token_out: SkySellParamsTokenOut
36
+ r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
37
+
38
+ amount: SkySellParamsAmount
39
+ r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
@@ -10,7 +10,7 @@ from typing import Literal, Optional, Union
10
10
  from typing_extensions import Annotated, TypeAliasType, TypedDict
11
11
 
12
12
 
13
- class TokenOut(str, Enum):
13
+ class SkySellRequestTokenOut(str, Enum):
14
14
  r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
15
15
 
16
16
  DAI = "DAI"
@@ -28,7 +28,7 @@ r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
28
28
 
29
29
 
30
30
  class SkySellRequestTypedDict(TypedDict):
31
- token_out: TokenOut
31
+ token_out: SkySellRequestTokenOut
32
32
  r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
33
33
  amount: SkySellRequestAmountTypedDict
34
34
  r"""The amount of USDS you would like to sell 1:1 for 'token_out'."""
@@ -38,7 +38,7 @@ class SkySellRequestTypedDict(TypedDict):
38
38
 
39
39
 
40
40
  class SkySellRequest(BaseModel):
41
- token_out: TokenOut
41
+ token_out: SkySellRequestTokenOut
42
42
  r"""The token you would like to swap 1:1 with USDS. Choose from DAI or USDC."""
43
43
 
44
44
  amount: SkySellRequestAmount
@@ -0,0 +1,58 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing import Any
13
+ from typing_extensions import NotRequired, TypedDict
14
+
15
+
16
+ class SkyWithdrawParamsTypedDict(TypedDict):
17
+ amount: Any
18
+ r"""The amount of USDS you would like to withdraw. If set to 'ALL', your total deposited USDS amount will be withdrawn."""
19
+ receiver: NotRequired[Nullable[str]]
20
+ r"""The address which will receive the withdrawn USDS. Defaults to the sender."""
21
+
22
+
23
+ class SkyWithdrawParams(BaseModel):
24
+ amount: Any
25
+ r"""The amount of USDS you would like to withdraw. If set to 'ALL', your total deposited USDS amount will be withdrawn."""
26
+
27
+ receiver: OptionalNullable[str] = UNSET
28
+ r"""The address which will receive the withdrawn USDS. Defaults to the sender."""
29
+
30
+ @model_serializer(mode="wrap")
31
+ def serialize_model(self, handler):
32
+ optional_fields = ["receiver"]
33
+ nullable_fields = ["receiver"]
34
+ null_default_fields = []
35
+
36
+ serialized = handler(self)
37
+
38
+ m = {}
39
+
40
+ for n, f in type(self).model_fields.items():
41
+ k = f.alias or n
42
+ val = serialized.get(k)
43
+ serialized.pop(k, None)
44
+
45
+ optional_nullable = k in optional_fields and k in nullable_fields
46
+ is_set = (
47
+ self.__pydantic_fields_set__.intersection({n})
48
+ or k in null_default_fields
49
+ ) # pylint: disable=no-member
50
+
51
+ if val is not None and val != UNSET_SENTINEL:
52
+ m[k] = val
53
+ elif val != UNSET_SENTINEL and (
54
+ not k in optional_fields or (optional_nullable and is_set)
55
+ ):
56
+ m[k] = val
57
+
58
+ return m
compassapisdk/sky.py CHANGED
@@ -205,7 +205,7 @@ class Sky(BaseSDK):
205
205
  def buy(
206
206
  self,
207
207
  *,
208
- token_in: models.TokenIn,
208
+ token_in: models.SkyBuyRequestTokenIn,
209
209
  amount: Union[models.SkyBuyRequestAmount, models.SkyBuyRequestAmountTypedDict],
210
210
  sender: str,
211
211
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -317,7 +317,7 @@ class Sky(BaseSDK):
317
317
  async def buy_async(
318
318
  self,
319
319
  *,
320
- token_in: models.TokenIn,
320
+ token_in: models.SkyBuyRequestTokenIn,
321
321
  amount: Union[models.SkyBuyRequestAmount, models.SkyBuyRequestAmountTypedDict],
322
322
  sender: str,
323
323
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -429,7 +429,7 @@ class Sky(BaseSDK):
429
429
  def sell(
430
430
  self,
431
431
  *,
432
- token_out: models.TokenOut,
432
+ token_out: models.SkySellRequestTokenOut,
433
433
  amount: Union[
434
434
  models.SkySellRequestAmount, models.SkySellRequestAmountTypedDict
435
435
  ],
@@ -543,7 +543,7 @@ class Sky(BaseSDK):
543
543
  async def sell_async(
544
544
  self,
545
545
  *,
546
- token_out: models.TokenOut,
546
+ token_out: models.SkySellRequestTokenOut,
547
547
  amount: Union[
548
548
  models.SkySellRequestAmount, models.SkySellRequestAmountTypedDict
549
549
  ],