compass_api_sdk 0.2.0__py3-none-any.whl → 0.2.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/_version.py +2 -2
- compass_api_sdk/models/__init__.py +46 -25
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +45 -11
- compass_api_sdk/models/aavelooprequest.py +87 -0
- compass_api_sdk/models/borrow.py +46 -12
- compass_api_sdk/models/liquidationcall.py +45 -18
- compass_api_sdk/models/morpho_market_positionop.py +5 -9
- compass_api_sdk/models/morpho_marketsop.py +5 -9
- compass_api_sdk/models/morpho_vault_positionop.py +5 -9
- compass_api_sdk/models/morpho_vaultsop.py +19 -17
- compass_api_sdk/models/morphoborrowrequest.py +8 -5
- compass_api_sdk/models/morphodepositrequest.py +8 -5
- compass_api_sdk/models/morphorepayrequest.py +8 -5
- compass_api_sdk/models/morphosetvaultallowancerequest.py +8 -5
- compass_api_sdk/models/morphosupplycollateralrequest.py +8 -5
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +8 -5
- compass_api_sdk/models/morphowithdrawrequest.py +8 -5
- compass_api_sdk/models/redeemunderlying.py +31 -4
- compass_api_sdk/models/repay.py +35 -4
- compass_api_sdk/models/reserve.py +67 -6
- compass_api_sdk/models/supply.py +37 -4
- compass_api_sdk/models/swapborrowrate.py +37 -8
- compass_api_sdk/models/uniswapbuyexactlyparams.py +6 -6
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +6 -6
- compass_api_sdk/models/usageascollateral.py +36 -4
- compass_api_sdk/morpho.py +63 -47
- compass_api_sdk/transaction_batching.py +284 -0
- compass_api_sdk/uniswap_v3.py +10 -10
- {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.2.1.dist-info}/METADATA +2 -1
- {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.2.1.dist-info}/RECORD +31 -34
- compass_api_sdk/models/aavehistoricaltransactionbase.py +0 -113
- compass_api_sdk/models/action.py +0 -14
- compass_api_sdk/models/collateralreserve.py +0 -16
- compass_api_sdk/models/principalreserve.py +0 -16
- {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.2.1.dist-info}/WHEEL +0 -0
|
@@ -471,3 +471,287 @@ class TransactionBatching(BaseSDK):
|
|
|
471
471
|
http_res_text,
|
|
472
472
|
http_res,
|
|
473
473
|
)
|
|
474
|
+
|
|
475
|
+
def aave_loop(
|
|
476
|
+
self,
|
|
477
|
+
*,
|
|
478
|
+
chain: models.Chain,
|
|
479
|
+
sender: str,
|
|
480
|
+
signed_authorization: Union[
|
|
481
|
+
models.SignedAuthorization, models.SignedAuthorizationTypedDict
|
|
482
|
+
],
|
|
483
|
+
collateral_token: models.TokenEnum,
|
|
484
|
+
borrow_token: models.TokenEnum,
|
|
485
|
+
collateral_amount: Union[
|
|
486
|
+
models.CollateralAmount, models.CollateralAmountTypedDict
|
|
487
|
+
],
|
|
488
|
+
loop_count: int,
|
|
489
|
+
max_slippage_percent: float,
|
|
490
|
+
loan_to_value: float,
|
|
491
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
492
|
+
server_url: Optional[str] = None,
|
|
493
|
+
timeout_ms: Optional[int] = None,
|
|
494
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
495
|
+
) -> models.UnsignedMulticallTransaction:
|
|
496
|
+
r"""Execute Aave Loop Strategy
|
|
497
|
+
|
|
498
|
+
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
499
|
+
operations.
|
|
500
|
+
|
|
501
|
+
This endpoint creates a multicall transaction that performs a series of operations:
|
|
502
|
+
1. Approves and supplies initial token
|
|
503
|
+
2. For each loop:
|
|
504
|
+
- Borrows another token
|
|
505
|
+
- Swaps borrowed token back to supply token
|
|
506
|
+
- Supplies the swapped tokens
|
|
507
|
+
|
|
508
|
+
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
|
|
509
|
+
|
|
510
|
+
:param chain: The chain to use.
|
|
511
|
+
:param sender: The address of the transaction sender.
|
|
512
|
+
:param signed_authorization:
|
|
513
|
+
:param collateral_token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
514
|
+
:param borrow_token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
515
|
+
:param collateral_amount: Amount of collateral token to supply to Aave
|
|
516
|
+
:param loop_count: Number of times to perform the supply-borrow loop
|
|
517
|
+
:param max_slippage_percent: Maximum allowed slippage for token swaps in percentage
|
|
518
|
+
:param loan_to_value: Loan To Value percentage of the loop
|
|
519
|
+
:param retries: Override the default retry configuration for this method
|
|
520
|
+
:param server_url: Override the default server URL for this method
|
|
521
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
522
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
523
|
+
"""
|
|
524
|
+
base_url = None
|
|
525
|
+
url_variables = None
|
|
526
|
+
if timeout_ms is None:
|
|
527
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
528
|
+
|
|
529
|
+
if server_url is not None:
|
|
530
|
+
base_url = server_url
|
|
531
|
+
else:
|
|
532
|
+
base_url = self._get_url(base_url, url_variables)
|
|
533
|
+
|
|
534
|
+
request = models.AaveLoopRequest(
|
|
535
|
+
chain=chain,
|
|
536
|
+
sender=sender,
|
|
537
|
+
signed_authorization=utils.get_pydantic_model(
|
|
538
|
+
signed_authorization, models.SignedAuthorization
|
|
539
|
+
),
|
|
540
|
+
collateral_token=collateral_token,
|
|
541
|
+
borrow_token=borrow_token,
|
|
542
|
+
collateral_amount=collateral_amount,
|
|
543
|
+
loop_count=loop_count,
|
|
544
|
+
max_slippage_percent=max_slippage_percent,
|
|
545
|
+
loan_to_value=loan_to_value,
|
|
546
|
+
)
|
|
547
|
+
|
|
548
|
+
req = self._build_request(
|
|
549
|
+
method="POST",
|
|
550
|
+
path="/v0/multicall/aave/loop",
|
|
551
|
+
base_url=base_url,
|
|
552
|
+
url_variables=url_variables,
|
|
553
|
+
request=request,
|
|
554
|
+
request_body_required=True,
|
|
555
|
+
request_has_path_params=False,
|
|
556
|
+
request_has_query_params=True,
|
|
557
|
+
user_agent_header="user-agent",
|
|
558
|
+
accept_header_value="application/json",
|
|
559
|
+
http_headers=http_headers,
|
|
560
|
+
security=self.sdk_configuration.security,
|
|
561
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
562
|
+
request, False, False, "json", models.AaveLoopRequest
|
|
563
|
+
),
|
|
564
|
+
timeout_ms=timeout_ms,
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
if retries == UNSET:
|
|
568
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
569
|
+
retries = self.sdk_configuration.retry_config
|
|
570
|
+
|
|
571
|
+
retry_config = None
|
|
572
|
+
if isinstance(retries, utils.RetryConfig):
|
|
573
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
574
|
+
|
|
575
|
+
http_res = self.do_request(
|
|
576
|
+
hook_ctx=HookContext(
|
|
577
|
+
base_url=base_url or "",
|
|
578
|
+
operation_id="multicall_aave_loop",
|
|
579
|
+
oauth2_scopes=[],
|
|
580
|
+
security_source=self.sdk_configuration.security,
|
|
581
|
+
),
|
|
582
|
+
request=req,
|
|
583
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
584
|
+
retry_config=retry_config,
|
|
585
|
+
)
|
|
586
|
+
|
|
587
|
+
response_data: Any = None
|
|
588
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
589
|
+
return utils.unmarshal_json(
|
|
590
|
+
http_res.text, models.UnsignedMulticallTransaction
|
|
591
|
+
)
|
|
592
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
593
|
+
response_data = utils.unmarshal_json(
|
|
594
|
+
http_res.text, errors.HTTPValidationErrorData
|
|
595
|
+
)
|
|
596
|
+
raise errors.HTTPValidationError(data=response_data)
|
|
597
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
598
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
599
|
+
raise errors.APIError(
|
|
600
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
601
|
+
)
|
|
602
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
603
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
604
|
+
raise errors.APIError(
|
|
605
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
606
|
+
)
|
|
607
|
+
|
|
608
|
+
content_type = http_res.headers.get("Content-Type")
|
|
609
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
610
|
+
raise errors.APIError(
|
|
611
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
612
|
+
http_res.status_code,
|
|
613
|
+
http_res_text,
|
|
614
|
+
http_res,
|
|
615
|
+
)
|
|
616
|
+
|
|
617
|
+
async def aave_loop_async(
|
|
618
|
+
self,
|
|
619
|
+
*,
|
|
620
|
+
chain: models.Chain,
|
|
621
|
+
sender: str,
|
|
622
|
+
signed_authorization: Union[
|
|
623
|
+
models.SignedAuthorization, models.SignedAuthorizationTypedDict
|
|
624
|
+
],
|
|
625
|
+
collateral_token: models.TokenEnum,
|
|
626
|
+
borrow_token: models.TokenEnum,
|
|
627
|
+
collateral_amount: Union[
|
|
628
|
+
models.CollateralAmount, models.CollateralAmountTypedDict
|
|
629
|
+
],
|
|
630
|
+
loop_count: int,
|
|
631
|
+
max_slippage_percent: float,
|
|
632
|
+
loan_to_value: float,
|
|
633
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
634
|
+
server_url: Optional[str] = None,
|
|
635
|
+
timeout_ms: Optional[int] = None,
|
|
636
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
637
|
+
) -> models.UnsignedMulticallTransaction:
|
|
638
|
+
r"""Execute Aave Loop Strategy
|
|
639
|
+
|
|
640
|
+
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
641
|
+
operations.
|
|
642
|
+
|
|
643
|
+
This endpoint creates a multicall transaction that performs a series of operations:
|
|
644
|
+
1. Approves and supplies initial token
|
|
645
|
+
2. For each loop:
|
|
646
|
+
- Borrows another token
|
|
647
|
+
- Swaps borrowed token back to supply token
|
|
648
|
+
- Supplies the swapped tokens
|
|
649
|
+
|
|
650
|
+
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
|
|
651
|
+
|
|
652
|
+
:param chain: The chain to use.
|
|
653
|
+
:param sender: The address of the transaction sender.
|
|
654
|
+
:param signed_authorization:
|
|
655
|
+
:param collateral_token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
656
|
+
:param borrow_token: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
657
|
+
:param collateral_amount: Amount of collateral token to supply to Aave
|
|
658
|
+
:param loop_count: Number of times to perform the supply-borrow loop
|
|
659
|
+
:param max_slippage_percent: Maximum allowed slippage for token swaps in percentage
|
|
660
|
+
:param loan_to_value: Loan To Value percentage of the loop
|
|
661
|
+
:param retries: Override the default retry configuration for this method
|
|
662
|
+
:param server_url: Override the default server URL for this method
|
|
663
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
664
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
665
|
+
"""
|
|
666
|
+
base_url = None
|
|
667
|
+
url_variables = None
|
|
668
|
+
if timeout_ms is None:
|
|
669
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
670
|
+
|
|
671
|
+
if server_url is not None:
|
|
672
|
+
base_url = server_url
|
|
673
|
+
else:
|
|
674
|
+
base_url = self._get_url(base_url, url_variables)
|
|
675
|
+
|
|
676
|
+
request = models.AaveLoopRequest(
|
|
677
|
+
chain=chain,
|
|
678
|
+
sender=sender,
|
|
679
|
+
signed_authorization=utils.get_pydantic_model(
|
|
680
|
+
signed_authorization, models.SignedAuthorization
|
|
681
|
+
),
|
|
682
|
+
collateral_token=collateral_token,
|
|
683
|
+
borrow_token=borrow_token,
|
|
684
|
+
collateral_amount=collateral_amount,
|
|
685
|
+
loop_count=loop_count,
|
|
686
|
+
max_slippage_percent=max_slippage_percent,
|
|
687
|
+
loan_to_value=loan_to_value,
|
|
688
|
+
)
|
|
689
|
+
|
|
690
|
+
req = self._build_request_async(
|
|
691
|
+
method="POST",
|
|
692
|
+
path="/v0/multicall/aave/loop",
|
|
693
|
+
base_url=base_url,
|
|
694
|
+
url_variables=url_variables,
|
|
695
|
+
request=request,
|
|
696
|
+
request_body_required=True,
|
|
697
|
+
request_has_path_params=False,
|
|
698
|
+
request_has_query_params=True,
|
|
699
|
+
user_agent_header="user-agent",
|
|
700
|
+
accept_header_value="application/json",
|
|
701
|
+
http_headers=http_headers,
|
|
702
|
+
security=self.sdk_configuration.security,
|
|
703
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
704
|
+
request, False, False, "json", models.AaveLoopRequest
|
|
705
|
+
),
|
|
706
|
+
timeout_ms=timeout_ms,
|
|
707
|
+
)
|
|
708
|
+
|
|
709
|
+
if retries == UNSET:
|
|
710
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
711
|
+
retries = self.sdk_configuration.retry_config
|
|
712
|
+
|
|
713
|
+
retry_config = None
|
|
714
|
+
if isinstance(retries, utils.RetryConfig):
|
|
715
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
716
|
+
|
|
717
|
+
http_res = await self.do_request_async(
|
|
718
|
+
hook_ctx=HookContext(
|
|
719
|
+
base_url=base_url or "",
|
|
720
|
+
operation_id="multicall_aave_loop",
|
|
721
|
+
oauth2_scopes=[],
|
|
722
|
+
security_source=self.sdk_configuration.security,
|
|
723
|
+
),
|
|
724
|
+
request=req,
|
|
725
|
+
error_status_codes=["422", "4XX", "5XX"],
|
|
726
|
+
retry_config=retry_config,
|
|
727
|
+
)
|
|
728
|
+
|
|
729
|
+
response_data: Any = None
|
|
730
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
731
|
+
return utils.unmarshal_json(
|
|
732
|
+
http_res.text, models.UnsignedMulticallTransaction
|
|
733
|
+
)
|
|
734
|
+
if utils.match_response(http_res, "422", "application/json"):
|
|
735
|
+
response_data = utils.unmarshal_json(
|
|
736
|
+
http_res.text, errors.HTTPValidationErrorData
|
|
737
|
+
)
|
|
738
|
+
raise errors.HTTPValidationError(data=response_data)
|
|
739
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
740
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
741
|
+
raise errors.APIError(
|
|
742
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
743
|
+
)
|
|
744
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
745
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
746
|
+
raise errors.APIError(
|
|
747
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
748
|
+
)
|
|
749
|
+
|
|
750
|
+
content_type = http_res.headers.get("Content-Type")
|
|
751
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
752
|
+
raise errors.APIError(
|
|
753
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
754
|
+
http_res.status_code,
|
|
755
|
+
http_res_text,
|
|
756
|
+
http_res,
|
|
757
|
+
)
|
compass_api_sdk/uniswap_v3.py
CHANGED
|
@@ -1136,9 +1136,9 @@ class UniswapV3(BaseSDK):
|
|
|
1136
1136
|
token_in: models.TokenEnum,
|
|
1137
1137
|
token_out: models.TokenEnum,
|
|
1138
1138
|
fee: models.FeeEnum,
|
|
1139
|
-
|
|
1140
|
-
models.
|
|
1141
|
-
models.
|
|
1139
|
+
amount: Union[
|
|
1140
|
+
models.UniswapBuyExactlyRequestAmount,
|
|
1141
|
+
models.UniswapBuyExactlyRequestAmountTypedDict,
|
|
1142
1142
|
],
|
|
1143
1143
|
max_slippage_percent: float,
|
|
1144
1144
|
chain: models.Chain,
|
|
@@ -1162,7 +1162,7 @@ class UniswapV3(BaseSDK):
|
|
|
1162
1162
|
:param token_in: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1163
1163
|
:param token_out: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1164
1164
|
:param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
|
|
1165
|
-
:param
|
|
1165
|
+
:param amount: The amount of the token to swap to
|
|
1166
1166
|
:param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
1167
1167
|
:param chain: The chain to use.
|
|
1168
1168
|
:param sender: The address of the transaction sender.
|
|
@@ -1186,7 +1186,7 @@ class UniswapV3(BaseSDK):
|
|
|
1186
1186
|
token_in=token_in,
|
|
1187
1187
|
token_out=token_out,
|
|
1188
1188
|
fee=fee,
|
|
1189
|
-
|
|
1189
|
+
amount=amount,
|
|
1190
1190
|
max_slippage_percent=max_slippage_percent,
|
|
1191
1191
|
wrap_eth=wrap_eth,
|
|
1192
1192
|
chain=chain,
|
|
@@ -1266,9 +1266,9 @@ class UniswapV3(BaseSDK):
|
|
|
1266
1266
|
token_in: models.TokenEnum,
|
|
1267
1267
|
token_out: models.TokenEnum,
|
|
1268
1268
|
fee: models.FeeEnum,
|
|
1269
|
-
|
|
1270
|
-
models.
|
|
1271
|
-
models.
|
|
1269
|
+
amount: Union[
|
|
1270
|
+
models.UniswapBuyExactlyRequestAmount,
|
|
1271
|
+
models.UniswapBuyExactlyRequestAmountTypedDict,
|
|
1272
1272
|
],
|
|
1273
1273
|
max_slippage_percent: float,
|
|
1274
1274
|
chain: models.Chain,
|
|
@@ -1292,7 +1292,7 @@ class UniswapV3(BaseSDK):
|
|
|
1292
1292
|
:param token_in: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1293
1293
|
:param token_out: A class representing the token. This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.
|
|
1294
1294
|
:param fee: The transaction fee of a Uniswap pool in bips. Uniswap supports 4 different fee levels.
|
|
1295
|
-
:param
|
|
1295
|
+
:param amount: The amount of the token to swap to
|
|
1296
1296
|
:param max_slippage_percent: The maximum slippage allowed in percent. e.g. `1` means `1 %` slippage allowed.
|
|
1297
1297
|
:param chain: The chain to use.
|
|
1298
1298
|
:param sender: The address of the transaction sender.
|
|
@@ -1316,7 +1316,7 @@ class UniswapV3(BaseSDK):
|
|
|
1316
1316
|
token_in=token_in,
|
|
1317
1317
|
token_out=token_out,
|
|
1318
1318
|
fee=fee,
|
|
1319
|
-
|
|
1319
|
+
amount=amount,
|
|
1320
1320
|
max_slippage_percent=max_slippage_percent,
|
|
1321
1321
|
wrap_eth=wrap_eth,
|
|
1322
1322
|
chain=chain,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: compass_api_sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Compass API Python SDK
|
|
5
5
|
Author: royalnine
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -255,6 +255,7 @@ with CompassAPISDK(
|
|
|
255
255
|
|
|
256
256
|
* [authorization](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#authorization) - Get EIP-7702 Authorization
|
|
257
257
|
* [execute](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#execute) - Execute Tx Batching
|
|
258
|
+
* [aave_loop](https://github.com/CompassLabs/mono/blob/master/docs/sdks/transactionbatching/README.md#aave_loop) - Execute Aave Loop Strategy
|
|
258
259
|
|
|
259
260
|
### [uniswap_v3](https://github.com/CompassLabs/mono/blob/master/docs/sdks/uniswapv3/README.md)
|
|
260
261
|
|
|
@@ -3,7 +3,7 @@ compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpv
|
|
|
3
3
|
compass_api_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
5
5
|
compass_api_sdk/_hooks/types.py,sha256=VC7TZz0BiM721MghXneEovG3UkaktRkt1OhMY3iLmZM,2818
|
|
6
|
-
compass_api_sdk/_version.py,sha256=
|
|
6
|
+
compass_api_sdk/_version.py,sha256=N8dsYq8a1M4kYDWmFaLuBwtWpxbHlHO-77czuALryfk,472
|
|
7
7
|
compass_api_sdk/aave_v3.py,sha256=JoHxEHy1c9ofvvCzTxp6S7qNz51_eW9clpVfMQI1xSo,107332
|
|
8
8
|
compass_api_sdk/aerodrome_slipstream.py,sha256=iZLOFguQiZD8eMNIxV_4h8JSr9P-V4gISxNCXisVYN8,83389
|
|
9
9
|
compass_api_sdk/basesdk.py,sha256=29RfgnfgQq_cRx8OHdQEdJuJ2DrgRZlzGIPC-_6-2bM,12136
|
|
@@ -11,7 +11,7 @@ compass_api_sdk/errors/__init__.py,sha256=f8nyj2IhW5h_xtEeg6cfKgByLkqowLv0Fxm0hU
|
|
|
11
11
|
compass_api_sdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
12
12
|
compass_api_sdk/errors/httpvalidationerror.py,sha256=KBdpK3fYQoeMB-3m9dLKiMYimFN7B9VLma6YqMKX5k0,671
|
|
13
13
|
compass_api_sdk/httpclient.py,sha256=xAUX3nxG-fwYAE9lfv9uaspYKMFRJf5NM79mV2HKb1I,5486
|
|
14
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
14
|
+
compass_api_sdk/models/__init__.py,sha256=I7a0PurKVgZ_qd0ufkhIqnvaFoGxp0Ay3OpRuxMrbgU,45426
|
|
15
15
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=ruwlHogJUn6HGWtoRNwEmoA6kXdu8rbDrxzJo-e9UmA,1461
|
|
16
16
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=tR_nsySpTiXHxIreoDJ-Bk07wZgTLGLM05oWxsfpbrM,2801
|
|
17
17
|
compass_api_sdk/models/aave_rateop.py,sha256=kJgtnlxry6YRxLZvCNV4kKhHOT2Y5duKt-ADyh2NrNg,2405
|
|
@@ -21,9 +21,9 @@ compass_api_sdk/models/aave_user_position_per_tokenop.py,sha256=MF_eaxTQkK4sC7ON
|
|
|
21
21
|
compass_api_sdk/models/aave_user_position_summaryop.py,sha256=IreTBDQ92L3CVsTQD_Bc50yt6m5ZM2yuUEYMFhrFkJQ,1060
|
|
22
22
|
compass_api_sdk/models/aaveborrowparams.py,sha256=7zEf7JdDcnYaU6p6ShzOG25HgRJZoX_B5hQPPDVCu0I,2870
|
|
23
23
|
compass_api_sdk/models/aaveborrowrequest.py,sha256=pVu6tIgYojyv2mF0_adDX1LM2uvMaUI8j6It2oCV4Q0,3129
|
|
24
|
-
compass_api_sdk/models/
|
|
25
|
-
compass_api_sdk/models/aavehistoricaltransactionsresponse.py,sha256=UmZGngGfIm0WNWHOmPS9zFy5X6-AJmcyyvnhJEJ7VQk,811
|
|
24
|
+
compass_api_sdk/models/aavehistoricaltransactionsresponse.py,sha256=G9yw8V7UHQL9m8mJZgHSqhvdymo5mJbJoIKtbtRSzlg,2504
|
|
26
25
|
compass_api_sdk/models/aaveliquiditychangeresponse.py,sha256=G_fjNFMMAViJVXUejTdqNDyNrv-BieQDDpT6iwtwCwg,811
|
|
26
|
+
compass_api_sdk/models/aavelooprequest.py,sha256=OsW1Sv7WjhRvb4_TSSB5ofArK52vM6eIdMFBAzOM9V8,2801
|
|
27
27
|
compass_api_sdk/models/aaverateresponse.py,sha256=7Ra_FKYbGrm7ZqzNi8-1T0v2xDAGyZf6Iw5Juh1bXBI,1156
|
|
28
28
|
compass_api_sdk/models/aaverepayparams.py,sha256=ZQLgjGCZUK20dZ7UgrT3j4c6jn2Sq41M15riWbYh-ss,2858
|
|
29
29
|
compass_api_sdk/models/aaverepayrequest.py,sha256=ZIvYL0pamDkJDJjCRrLZ5Q6e2vQp-wptob9wGCAQS0g,3117
|
|
@@ -35,7 +35,6 @@ compass_api_sdk/models/aaveuserpositionpertokenresponse.py,sha256=XfFYVzO3Ep9wHD
|
|
|
35
35
|
compass_api_sdk/models/aaveuserpositionsummaryresponse.py,sha256=_m2f4XkNQnaftbJOwdCsacPByGNDlz83gg0oPjuUbKQ,1656
|
|
36
36
|
compass_api_sdk/models/aavewithdrawparams.py,sha256=vvkC67hmflh4I_sm5oj4JFcqhjJVo5mMX1a7dq4gTFs,1420
|
|
37
37
|
compass_api_sdk/models/aavewithdrawrequest.py,sha256=gl9qAknwFkrHB6HwecaZrjV4z92Kk4Uh1XZkQTMYH8o,1685
|
|
38
|
-
compass_api_sdk/models/action.py,sha256=LxhxMxM1if4CGM_GJF-mGYwBnQOlkCaczSuGCp3oGTs,391
|
|
39
38
|
compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py,sha256=4at6KH--Cw5G6QasipHEuBBbNdPSaO4PCaVS22Krujw,1267
|
|
40
39
|
compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py,sha256=6n7rv1pcMve_3chQvgLT1vBKeimp-XPNK7-mCfv9Dwc,4578
|
|
41
40
|
compass_api_sdk/models/aerodromelppositionsresponse.py,sha256=FpFiz78711CsO1r3lLo-YaPldHL6UTVruNxhWlXkhOY,861
|
|
@@ -52,10 +51,9 @@ compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py,sha256=PO94biGAB
|
|
|
52
51
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py,sha256=DQKPJCyd66mFq6irFqMh7wvAQyF_HniRxoASPmmsvcQ,2265
|
|
53
52
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py,sha256=DXbQqFH6qRyrnqQ61y8O7regkqgu_kqY0yY1AamZXTs,1738
|
|
54
53
|
compass_api_sdk/models/allowanceinforesponse.py,sha256=OIvJVxMrRNBay8DIeqlwGBFQ1fbaGVWlaGsOZpo40fY,1393
|
|
55
|
-
compass_api_sdk/models/borrow.py,sha256=
|
|
54
|
+
compass_api_sdk/models/borrow.py,sha256=YQxBejrFjAvfjrYC7kmQRsQL2q6bb6MZxLzFuVHZEFg,2140
|
|
56
55
|
compass_api_sdk/models/chain.py,sha256=TzxP0Ujy0L-o3__gggsKeJIWMaflQTNnNSEaXBnSlGU,304
|
|
57
56
|
compass_api_sdk/models/chaininfo.py,sha256=XUUk-Nfz8-S9uOD4d9QVm_gsRIEXyIgeBGCS3dcFTmc,1406
|
|
58
|
-
compass_api_sdk/models/collateralreserve.py,sha256=mWwKlKXQu5t4Ud6k7D3E-zEx5eeB_xJAhmhW_fWGHUs,346
|
|
59
57
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py,sha256=pMWAh-oYo4YBmeVpoh2XoPn8PmFWSrvRH0Gg7sPT8xQ,488
|
|
60
58
|
compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py,sha256=zlxZwigsUocOnYo2Q43JLDSiFL6w26r-jaqcy4Ds2NU,562
|
|
61
59
|
compass_api_sdk/models/contractname.py,sha256=DJHzH2A2fydQrhrQIg9JzrNY7r7BfH_qwZfV6bpbNe4,1395
|
|
@@ -71,35 +69,34 @@ compass_api_sdk/models/increaseallowanceanyparams.py,sha256=-gkNR5_GEuwSg97toDSX
|
|
|
71
69
|
compass_api_sdk/models/increaseallowanceparams.py,sha256=NSwwJkLSgBGbstNKB3xGIb5TiMMCFA3qKiFYn_HAAOE,2428
|
|
72
70
|
compass_api_sdk/models/increaseallowancerequest.py,sha256=TxqyUxnXrFmQfBYFcQBziYbUhjObB6gkpuqW6fHyeIE,2684
|
|
73
71
|
compass_api_sdk/models/interestratemode.py,sha256=OmOKBSJD0y9O9LuA0rajVkvxiEuU-xiQAuoiHYFmp5s,341
|
|
74
|
-
compass_api_sdk/models/liquidationcall.py,sha256
|
|
72
|
+
compass_api_sdk/models/liquidationcall.py,sha256=-HEwFMuiD2p8x04VQHlnYqlOdvhr0jXrZ6ksmxlffUw,2019
|
|
75
73
|
compass_api_sdk/models/marketstate.py,sha256=0fOSCqc8H0A4qGRBIOT7HtVG7XPVkgk9HRz6EfV-gCU,965
|
|
76
|
-
compass_api_sdk/models/morpho_market_positionop.py,sha256=
|
|
77
|
-
compass_api_sdk/models/morpho_marketsop.py,sha256=
|
|
78
|
-
compass_api_sdk/models/morpho_vault_positionop.py,sha256=
|
|
79
|
-
compass_api_sdk/models/morpho_vaultsop.py,sha256=
|
|
80
|
-
compass_api_sdk/models/morphoborrowrequest.py,sha256=
|
|
74
|
+
compass_api_sdk/models/morpho_market_positionop.py,sha256=OHO3bJyMc8JXRt0dbdL9VVytWEhqYtrWqjIQzsnOlTs,1212
|
|
75
|
+
compass_api_sdk/models/morpho_marketsop.py,sha256=dMpe1pTg6NmcCyhOaCrikevKQ3F-Xs4DjLRKnXHgbHg,2241
|
|
76
|
+
compass_api_sdk/models/morpho_vault_positionop.py,sha256=CY2qoaXO4WJ9_B_DlSkTuHcTy4RboA6hTEEYcd14MS8,1174
|
|
77
|
+
compass_api_sdk/models/morpho_vaultsop.py,sha256=foXoiAbJLq3_yGQt6k8c5uIMeO-eLbM9O5BG-_bjE54,2002
|
|
78
|
+
compass_api_sdk/models/morphoborrowrequest.py,sha256=K1BvgURcKQS-JHzymDoKtU-AH8UJVSYOFCR9FfzXzp0,3083
|
|
81
79
|
compass_api_sdk/models/morphocheckmarketpositionresponse.py,sha256=Dp_q2q0sDKFTnv1ETp6pp-7TaII8oeZ_hQWtGcGbfHA,1665
|
|
82
80
|
compass_api_sdk/models/morphocheckvaultpositionresponse.py,sha256=a4F-IH0I7A90tk-UYYqzU74LKk7s6nH9tDa-TM7xTyQ,604
|
|
83
|
-
compass_api_sdk/models/morphodepositrequest.py,sha256=
|
|
81
|
+
compass_api_sdk/models/morphodepositrequest.py,sha256=CP1x0F-_wkLxZqan2zsoKy2XptvPZAduxSrI9cWsseY,2798
|
|
84
82
|
compass_api_sdk/models/morphogetmarketsresponse.py,sha256=Tz4syoRzijBGd4eB8Ly0zg6ozwqfeUI4dyTex9Tkr0w,548
|
|
85
83
|
compass_api_sdk/models/morphogetvaultsresponse.py,sha256=b5LuGh9anPCWX8GJb6N0SQGoXRTNBWheSTewZD_jrrM,537
|
|
86
84
|
compass_api_sdk/models/morphomarket.py,sha256=mopmr634ZnV8seyE98rmmMqHOIqHy-h2e9xB1iWiZV4,2573
|
|
87
|
-
compass_api_sdk/models/morphorepayrequest.py,sha256=
|
|
88
|
-
compass_api_sdk/models/morphosetvaultallowancerequest.py,sha256=
|
|
89
|
-
compass_api_sdk/models/morphosupplycollateralrequest.py,sha256=
|
|
85
|
+
compass_api_sdk/models/morphorepayrequest.py,sha256=s-nvi4C0bAErOi3BtbH3LnQVmiEuq83qVeyBEcZMtOg,2958
|
|
86
|
+
compass_api_sdk/models/morphosetvaultallowancerequest.py,sha256=4Rn3U_N8fnYivJPByyNwR243mbn_0sK3b4lR-KoXnOk,1511
|
|
87
|
+
compass_api_sdk/models/morphosupplycollateralrequest.py,sha256=0uOaBvtVKeDbbX7MemRNybdXCzQRPOYpg7VZ7YSzA20,3317
|
|
90
88
|
compass_api_sdk/models/morphovault.py,sha256=hlBsWy_9G7dtwBooeSEVhz-OVTjyzl1SSqarqRq1ph8,1337
|
|
91
|
-
compass_api_sdk/models/morphowithdrawcollateralrequest.py,sha256=
|
|
92
|
-
compass_api_sdk/models/morphowithdrawrequest.py,sha256=
|
|
89
|
+
compass_api_sdk/models/morphowithdrawcollateralrequest.py,sha256=AXjtL47SbwhjoT2WtYy0V94sUAwRLDw-czAPg2ePidA,3245
|
|
90
|
+
compass_api_sdk/models/morphowithdrawrequest.py,sha256=hV8recUvGxYTTpWT3FyCLYefeWYIibIFtfIu_IAvtE4,2413
|
|
93
91
|
compass_api_sdk/models/multicallaction.py,sha256=l3HyRN2OIiBWGSVexXZCdce8IOvdbwisUwydvoP3UeM,4559
|
|
94
92
|
compass_api_sdk/models/multicallactiontype.py,sha256=8vkak6f6uslIgD8DG8UnynCI9GhU69sIxk6Fm9pLT-4,1168
|
|
95
93
|
compass_api_sdk/models/multicallauthorizationrequest.py,sha256=h5-2acLlhV9assgIIHyVIgTak1IJathqa-viS-PkvMA,1155
|
|
96
94
|
compass_api_sdk/models/multicallauthorizationresponse.py,sha256=3jjdz9Mz-tKjhBzZbVaJW51no58HSqcxfHJwuZsgnhg,914
|
|
97
95
|
compass_api_sdk/models/multicallexecuterequest.py,sha256=ST9BeTeptLKi6UO7lWH4-mYiYuG7t5scF1CLnb4Sbd0,1105
|
|
98
96
|
compass_api_sdk/models/portfolio.py,sha256=Ey2gbh7ZqSWIMmfLrflpZS7QzvCR8QMp5bHx6-BMEp4,687
|
|
99
|
-
compass_api_sdk/models/
|
|
100
|
-
compass_api_sdk/models/
|
|
101
|
-
compass_api_sdk/models/
|
|
102
|
-
compass_api_sdk/models/reserve.py,sha256=0ayYwOc7fvwNeZoWlJTWzQ9BQkERncVC1Wd1eKELVJU,326
|
|
97
|
+
compass_api_sdk/models/redeemunderlying.py,sha256=YK6I29RAeIgE4gfxyjgoUiktxqFAnJfvNv4qz1QvmTU,1282
|
|
98
|
+
compass_api_sdk/models/repay.py,sha256=dCDDG9BvJOnT-OgEs013t7l5xG0r-5M_BUxal4cfU0I,1482
|
|
99
|
+
compass_api_sdk/models/reserve.py,sha256=AScfYjYx6PYkgxF2zTr-BrzsGx8ZQl3SV27bZ_xGNro,2217
|
|
103
100
|
compass_api_sdk/models/security.py,sha256=BasQuckaYjsfuGyucbeYAKSDcEuhcvoNT8ZkUsi48Sk,635
|
|
104
101
|
compass_api_sdk/models/signedauthorization.py,sha256=UT7Zozfqm8DQ66RAdYPm44vEhBJUGf4SZtdvDzz1nc0,1459
|
|
105
102
|
compass_api_sdk/models/sky_positionop.py,sha256=nncJwlRVZLACGUwP2qWh07NTvmsE_6TcFBdG57dHJoQ,1020
|
|
@@ -108,8 +105,8 @@ compass_api_sdk/models/skycheckpositionresponse.py,sha256=7SBappsIXvdaNCwxbMb-wo
|
|
|
108
105
|
compass_api_sdk/models/skydepositrequest.py,sha256=P8GJ4yrCUerSpMxouOn26QviMmiJKUq2aCRD2UGIj4Y,2761
|
|
109
106
|
compass_api_sdk/models/skysellrequest.py,sha256=n00jeeVVGiYbuL3_fkZctWstIzhTWHmS-DaNwLy_aZI,1808
|
|
110
107
|
compass_api_sdk/models/skywithdrawrequest.py,sha256=yTmxcLNQFnXocXubBhHkNi9CSQL8o7ZQuOseNvt9oOA,2453
|
|
111
|
-
compass_api_sdk/models/supply.py,sha256=
|
|
112
|
-
compass_api_sdk/models/swapborrowrate.py,sha256=
|
|
108
|
+
compass_api_sdk/models/supply.py,sha256=uH7dvmTkDtSU9btasJNbdFmesF2AdJc-Yoxusz7rYf8,1554
|
|
109
|
+
compass_api_sdk/models/swapborrowrate.py,sha256=RhZtLKwlDEMiHLdkvD3_URREdcBBbaFk95NN2QZug5g,1744
|
|
113
110
|
compass_api_sdk/models/token_addressop.py,sha256=MtHBJ5qQvsqrFzRldlExImMqLGMgbdQyCKvZgl1HL00,2445
|
|
114
111
|
compass_api_sdk/models/token_balanceop.py,sha256=3XpBsA5uKnysAULwxl8bf3J2x7Ryhm8cvf9gfpBtKMk,1423
|
|
115
112
|
compass_api_sdk/models/token_enum.py,sha256=klu_nFSPn35oWFaduBEjRQm5WjkNOpZztRVj0FucuK4,1166
|
|
@@ -126,8 +123,8 @@ compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py,sha256=nJ3qe3v
|
|
|
126
123
|
compass_api_sdk/models/uniswap_pool_priceop.py,sha256=n_G0ws0sbdccAFSt5ks96kySFQT_q82SobEss7ES-2Y,4871
|
|
127
124
|
compass_api_sdk/models/uniswap_quote_buy_exactlyop.py,sha256=abGdO6h4PkfUlN2KF_t-jkgDitFmmtt-7iez_PDCgnY,5466
|
|
128
125
|
compass_api_sdk/models/uniswap_quote_sell_exactlyop.py,sha256=hEXFoobY7Zwe36VA118bUoLm0MlvjE3SN2L4mHHKr98,5482
|
|
129
|
-
compass_api_sdk/models/uniswapbuyexactlyparams.py,sha256=
|
|
130
|
-
compass_api_sdk/models/uniswapbuyexactlyrequest.py,sha256=
|
|
126
|
+
compass_api_sdk/models/uniswapbuyexactlyparams.py,sha256=mjEX5PCDnQWvs3pXknjlIAYs76kAFD4YB4b-ad2sYAM,2530
|
|
127
|
+
compass_api_sdk/models/uniswapbuyexactlyrequest.py,sha256=YdVrjNgdC-WZpaDdrPxxjnZGFo8oGHaImWCV2TgSZIk,2921
|
|
131
128
|
compass_api_sdk/models/uniswapbuyquoteinforesponse.py,sha256=9vhkblgXbV_2wrAMZXv2iswxl7TxzlUMrMNLTUvCeeI,734
|
|
132
129
|
compass_api_sdk/models/uniswapcheckinrangeresponse.py,sha256=UoDUtm0AjXLnuPfL1odBsmrh6Z19EniwUTlUKTe5N7w,581
|
|
133
130
|
compass_api_sdk/models/uniswapincreaseliquidityprovisionparams.py,sha256=loKiJj_6KQPz4cF_NK2amskD0fKhK5yF2rXo-rG0wlw,3373
|
|
@@ -146,22 +143,22 @@ compass_api_sdk/models/unsignedmulticalltransaction.py,sha256=Tc1-HidPiy8oY4A7qU
|
|
|
146
143
|
compass_api_sdk/models/unsignedtransaction.py,sha256=DHPEOKI-xgmu7tLiVxsv4JJp93krKMjNOqn0dBYkVbw,1623
|
|
147
144
|
compass_api_sdk/models/unwrapwethparams.py,sha256=nBbf-Z2z8-yYPWuNqpESpxRsssJ1PPu4jLRZ2iwBGfk,884
|
|
148
145
|
compass_api_sdk/models/unwrapwethrequest.py,sha256=LaeHJHs6YZ24HLfUunvybNsLJ9uiQ-v_meEk_VyQo4Y,1137
|
|
149
|
-
compass_api_sdk/models/usageascollateral.py,sha256=
|
|
146
|
+
compass_api_sdk/models/usageascollateral.py,sha256=hHBgh83BO9WA6u-9xzTvBlPOLoiYV1N21G6vDeo_b30,1561
|
|
150
147
|
compass_api_sdk/models/validationerror.py,sha256=01WnpU7Tgin0B_poO97_hl6b5CNJ_9VGzpcmoeJs4GU,532
|
|
151
148
|
compass_api_sdk/models/vaultstate.py,sha256=tQ_aXZR6a6e8erj12hloto7kY79IVSgzmHNCBU-Ps-g,696
|
|
152
149
|
compass_api_sdk/models/weeklyapys.py,sha256=AaGjDD4NeGsZQBwdRW1G09Pmx17pLPe2oUA9M21jQgY,675
|
|
153
150
|
compass_api_sdk/models/wrapethparams.py,sha256=eMIOqxDM3hCwMJiJsMdnO6ZsMXg1K-_E3S5OIi8XGEI,824
|
|
154
151
|
compass_api_sdk/models/wrapethrequest.py,sha256=aJBhcooob-etvReQEjNdC8HOUQ7oUNkOPYr6A4a3BFE,1077
|
|
155
|
-
compass_api_sdk/morpho.py,sha256=
|
|
152
|
+
compass_api_sdk/morpho.py,sha256=3pRwKrPZ0018BBTOU86zjXgHbmsUO0nAljRoOTlbnN0,107274
|
|
156
153
|
compass_api_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
157
154
|
compass_api_sdk/sdk.py,sha256=ivTdGJ_eI9K0k5ZuJWPhhCiHwZ0vHB-VgyiILFTjEeA,6101
|
|
158
155
|
compass_api_sdk/sdkconfiguration.py,sha256=K-B67o2xftk7Rh5z59xBL0TcCn_XhX0Yh_JePPegvvU,1764
|
|
159
156
|
compass_api_sdk/sky.py,sha256=rjtLEHGEFqd4bIkXAUmcut_JlsQqUjH1LDfZ63PqGk8,43557
|
|
160
157
|
compass_api_sdk/token_sdk.py,sha256=dRB0-HHsHma1Q9O6gKuBSaTGIVd9LBCqE5opq7F2RZE,34562
|
|
161
|
-
compass_api_sdk/transaction_batching.py,sha256=
|
|
158
|
+
compass_api_sdk/transaction_batching.py,sha256=5Zh0cg0P9-iLCxuXRgaS9dlAc1ZL5EpDQf8PFT-Kzt4,31371
|
|
162
159
|
compass_api_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
163
160
|
compass_api_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
164
|
-
compass_api_sdk/uniswap_v3.py,sha256=
|
|
161
|
+
compass_api_sdk/uniswap_v3.py,sha256=sknDJ_PniUa1dya_giaxFGwUvTMZTFwy-aNshHasuok,109985
|
|
165
162
|
compass_api_sdk/universal.py,sha256=FiylakhHQi0_yEatvNLO1tLywkdViQYAd8FF8Us6yh8,70047
|
|
166
163
|
compass_api_sdk/utils/__init__.py,sha256=srwCxQa-o7LVSIbziUI2u9_LMEEvJNBU0I14OEQUOpA,2441
|
|
167
164
|
compass_api_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
|
@@ -179,6 +176,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
|
|
|
179
176
|
compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
180
177
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
181
178
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
182
|
-
compass_api_sdk-0.2.
|
|
183
|
-
compass_api_sdk-0.2.
|
|
184
|
-
compass_api_sdk-0.2.
|
|
179
|
+
compass_api_sdk-0.2.1.dist-info/METADATA,sha256=pvaKpc0w7cldxuOfWiqyEBQhSWPdf-V8QOdGo1KW7rA,24778
|
|
180
|
+
compass_api_sdk-0.2.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
181
|
+
compass_api_sdk-0.2.1.dist-info/RECORD,,
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from .action import Action
|
|
5
|
-
from .borrow import Borrow, BorrowTypedDict
|
|
6
|
-
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
7
|
-
from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
|
|
8
|
-
from .repay import Repay, RepayTypedDict
|
|
9
|
-
from .supply import Supply, SupplyTypedDict
|
|
10
|
-
from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
|
|
11
|
-
from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
|
|
12
|
-
from compass_api_sdk.types import (
|
|
13
|
-
BaseModel,
|
|
14
|
-
Nullable,
|
|
15
|
-
OptionalNullable,
|
|
16
|
-
UNSET,
|
|
17
|
-
UNSET_SENTINEL,
|
|
18
|
-
)
|
|
19
|
-
import pydantic
|
|
20
|
-
from pydantic import model_serializer
|
|
21
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class AaveHistoricalTransactionBaseTypedDict(TypedDict):
|
|
25
|
-
id: str
|
|
26
|
-
timestamp: int
|
|
27
|
-
tx_hash: str
|
|
28
|
-
action: Action
|
|
29
|
-
supply: NotRequired[Nullable[SupplyTypedDict]]
|
|
30
|
-
redeem_underlying: NotRequired[Nullable[RedeemUnderlyingTypedDict]]
|
|
31
|
-
borrow: NotRequired[Nullable[BorrowTypedDict]]
|
|
32
|
-
usage_as_collateral: NotRequired[Nullable[UsageAsCollateralTypedDict]]
|
|
33
|
-
repay: NotRequired[Nullable[RepayTypedDict]]
|
|
34
|
-
swap_borrow_rate: NotRequired[Nullable[SwapBorrowRateTypedDict]]
|
|
35
|
-
liquidation_call: NotRequired[Nullable[LiquidationCallTypedDict]]
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class AaveHistoricalTransactionBase(BaseModel):
|
|
39
|
-
id: str
|
|
40
|
-
|
|
41
|
-
timestamp: int
|
|
42
|
-
|
|
43
|
-
tx_hash: Annotated[str, pydantic.Field(alias="txHash")]
|
|
44
|
-
|
|
45
|
-
action: Action
|
|
46
|
-
|
|
47
|
-
supply: OptionalNullable[Supply] = UNSET
|
|
48
|
-
|
|
49
|
-
redeem_underlying: Annotated[
|
|
50
|
-
OptionalNullable[RedeemUnderlying], pydantic.Field(alias="redeemUnderlying")
|
|
51
|
-
] = UNSET
|
|
52
|
-
|
|
53
|
-
borrow: OptionalNullable[Borrow] = UNSET
|
|
54
|
-
|
|
55
|
-
usage_as_collateral: Annotated[
|
|
56
|
-
OptionalNullable[UsageAsCollateral], pydantic.Field(alias="usageAsCollateral")
|
|
57
|
-
] = UNSET
|
|
58
|
-
|
|
59
|
-
repay: OptionalNullable[Repay] = UNSET
|
|
60
|
-
|
|
61
|
-
swap_borrow_rate: Annotated[
|
|
62
|
-
OptionalNullable[SwapBorrowRate], pydantic.Field(alias="swapBorrowRate")
|
|
63
|
-
] = UNSET
|
|
64
|
-
|
|
65
|
-
liquidation_call: Annotated[
|
|
66
|
-
OptionalNullable[LiquidationCall], pydantic.Field(alias="liquidationCall")
|
|
67
|
-
] = UNSET
|
|
68
|
-
|
|
69
|
-
@model_serializer(mode="wrap")
|
|
70
|
-
def serialize_model(self, handler):
|
|
71
|
-
optional_fields = [
|
|
72
|
-
"supply",
|
|
73
|
-
"redeemUnderlying",
|
|
74
|
-
"borrow",
|
|
75
|
-
"usageAsCollateral",
|
|
76
|
-
"repay",
|
|
77
|
-
"swapBorrowRate",
|
|
78
|
-
"liquidationCall",
|
|
79
|
-
]
|
|
80
|
-
nullable_fields = [
|
|
81
|
-
"supply",
|
|
82
|
-
"redeemUnderlying",
|
|
83
|
-
"borrow",
|
|
84
|
-
"usageAsCollateral",
|
|
85
|
-
"repay",
|
|
86
|
-
"swapBorrowRate",
|
|
87
|
-
"liquidationCall",
|
|
88
|
-
]
|
|
89
|
-
null_default_fields = []
|
|
90
|
-
|
|
91
|
-
serialized = handler(self)
|
|
92
|
-
|
|
93
|
-
m = {}
|
|
94
|
-
|
|
95
|
-
for n, f in type(self).model_fields.items():
|
|
96
|
-
k = f.alias or n
|
|
97
|
-
val = serialized.get(k)
|
|
98
|
-
serialized.pop(k, None)
|
|
99
|
-
|
|
100
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
101
|
-
is_set = (
|
|
102
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
103
|
-
or k in null_default_fields
|
|
104
|
-
) # pylint: disable=no-member
|
|
105
|
-
|
|
106
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
107
|
-
m[k] = val
|
|
108
|
-
elif val != UNSET_SENTINEL and (
|
|
109
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
110
|
-
):
|
|
111
|
-
m[k] = val
|
|
112
|
-
|
|
113
|
-
return m
|
compass_api_sdk/models/action.py
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from enum import Enum
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Action(str, Enum):
|
|
8
|
-
SUPPLY = "supply"
|
|
9
|
-
REDEEM_UNDERLYING = "redeemUnderlying"
|
|
10
|
-
BORROW = "borrow"
|
|
11
|
-
USAGE_AS_COLLATERAL = "usageAsCollateral"
|
|
12
|
-
REPAY = "repay"
|
|
13
|
-
SWAP_BORROW_RATE = "swapBorrowRate"
|
|
14
|
-
LIQUIDATION_CALL = "liquidationCall"
|