fere-sdk 0.4.0.dev29__tar.gz → 0.4.0.dev31__tar.gz
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.
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/.gitignore +3 -0
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/PKG-INFO +1 -1
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/pyproject.toml +1 -1
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/src/fere_sdk/client.py +1 -2
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/src/fere_sdk/low_level.py +1 -3
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/src/fere_sdk/models.py +0 -3
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/README.md +0 -0
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/src/fere_sdk/__init__.py +0 -0
- {fere_sdk-0.4.0.dev29 → fere_sdk-0.4.0.dev31}/src/fere_sdk/auth.py +0 -0
|
@@ -232,8 +232,7 @@ class FereClient:
|
|
|
232
232
|
"""Pre-check tokens for honeypot / scam / rug-pull flags.
|
|
233
233
|
|
|
234
234
|
Pass a list of TokenToCheck or plain dicts with token_address
|
|
235
|
-
and chain_id.
|
|
236
|
-
to proceed, call ``swap(..., bypass_security_check=True)``.
|
|
235
|
+
and chain_id.
|
|
237
236
|
"""
|
|
238
237
|
normalized: list[TokenToCheck] = []
|
|
239
238
|
for t in tokens:
|
|
@@ -320,9 +320,7 @@ class FereAPI:
|
|
|
320
320
|
"""POST /v1/security/check.
|
|
321
321
|
|
|
322
322
|
Pre-check whether output tokens have been flagged by Honeypot.is
|
|
323
|
-
(EVM) or RugCheck.xyz (Solana) before submitting a swap.
|
|
324
|
-
token is flagged and the user still wants to proceed, pass
|
|
325
|
-
bypass_security_check=true on the swap request.
|
|
323
|
+
(EVM) or RugCheck.xyz (Solana) before submitting a swap.
|
|
326
324
|
"""
|
|
327
325
|
data = await self._authed_post(
|
|
328
326
|
"/v1/security/check",
|
|
@@ -82,7 +82,6 @@ class SwapRequest:
|
|
|
82
82
|
stop_loss: dict | None = None
|
|
83
83
|
take_profit: dict | None = None
|
|
84
84
|
cancel_conditional_orders: bool | None = None
|
|
85
|
-
bypass_security_check: bool | None = None
|
|
86
85
|
|
|
87
86
|
def to_dict(self) -> dict:
|
|
88
87
|
d: dict = {
|
|
@@ -100,8 +99,6 @@ class SwapRequest:
|
|
|
100
99
|
d["take_profit"] = self.take_profit
|
|
101
100
|
if self.cancel_conditional_orders is not None:
|
|
102
101
|
d["cancel_conditional_orders"] = self.cancel_conditional_orders
|
|
103
|
-
if self.bypass_security_check is not None:
|
|
104
|
-
d["bypass_security_check"] = self.bypass_security_check
|
|
105
102
|
return d
|
|
106
103
|
|
|
107
104
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|