vibe-cli 0.2.1__tar.gz → 0.2.2__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.
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/PKG-INFO +1 -1
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/pyproject.toml +1 -1
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/__init__.py +1 -1
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/client.py +8 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/main.py +37 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli.egg-info/PKG-INFO +1 -1
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/README.md +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/setup.cfg +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/auth.py +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/config.py +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/operations.py +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli/output.py +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli.egg-info/SOURCES.txt +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli.egg-info/dependency_links.txt +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli.egg-info/entry_points.txt +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli.egg-info/requires.txt +0 -0
- {vibe_cli-0.2.1 → vibe_cli-0.2.2}/vibe_cli.egg-info/top_level.txt +0 -0
|
@@ -124,6 +124,14 @@ class VibeClient:
|
|
|
124
124
|
body = {"action": action, "token": token, "amount": amount, "protocol": protocol, **kwargs}
|
|
125
125
|
return self.request_sync("POST", "/vibe-tools/defi/deposit", body)
|
|
126
126
|
|
|
127
|
+
def evm_defi_quote(self, network: str, token_in: str, token_out: str, amount_in: str) -> dict:
|
|
128
|
+
body = {"network": network, "token_in": token_in, "token_out": token_out, "amount_in": amount_in}
|
|
129
|
+
return self.request_sync("POST", "/vibe-tools/evm/defi/quote", body)
|
|
130
|
+
|
|
131
|
+
def evm_defi_deposit(self, network: str, token_in: str, token_out: str, amount_in: str, slippage: str = "100") -> dict:
|
|
132
|
+
body = {"network": network, "token_in": token_in, "token_out": token_out, "amount_in": amount_in, "slippage": slippage}
|
|
133
|
+
return self.request_sync("POST", "/vibe-tools/evm/defi/deposit", body)
|
|
134
|
+
|
|
127
135
|
def bags_launch_token(self, name: str, symbol: str, description: str, image_url: str, **kwargs) -> dict:
|
|
128
136
|
body = {"name": name, "symbol": symbol, "description": description, "image_url": image_url, **kwargs}
|
|
129
137
|
return self.request_sync("POST", "/vibe-tools/bags/launch-token", body)
|
|
@@ -269,6 +269,43 @@ def defi_deposit(
|
|
|
269
269
|
execute_operation("POST /vibe-tools/defi/deposit", params, output, field)
|
|
270
270
|
|
|
271
271
|
|
|
272
|
+
# --- EVM DeFi (Enso Finance) ---
|
|
273
|
+
|
|
274
|
+
@app.command(name="evm-defi-quote")
|
|
275
|
+
def evm_defi_quote(
|
|
276
|
+
network: str = typer.Option("base", "--network", "-n", help="EVM network: base, ethereum, arbitrum, optimism, polygon"),
|
|
277
|
+
token_in: str = typer.Option(..., "--token-in", help="Input token address (or 'eth' for native)"),
|
|
278
|
+
token_out: str = typer.Option(..., "--token-out", help="Output vault/token address"),
|
|
279
|
+
amount_in: str = typer.Option(..., "--amount", help="Amount in human-readable units (e.g. '0.1')"),
|
|
280
|
+
output: str = typer.Option("table", "-o", "--output", help="Output format: table, json, raw"),
|
|
281
|
+
field: Optional[str] = typer.Option(None, "-f", "--field", help="Extract nested field"),
|
|
282
|
+
):
|
|
283
|
+
"""Get EVM DeFi quote via Enso (Base, Ethereum, Arbitrum, etc.)."""
|
|
284
|
+
client = VibeClient()
|
|
285
|
+
response = client.evm_defi_quote(network=network, token_in=token_in, token_out=token_out, amount_in=amount_in)
|
|
286
|
+
if "error" in response:
|
|
287
|
+
print_error(response["error"])
|
|
288
|
+
format_output(response.get("data", response), output, field)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
@app.command(name="evm-defi-deposit")
|
|
292
|
+
def evm_defi_deposit(
|
|
293
|
+
network: str = typer.Option("base", "--network", "-n", help="EVM network: base, ethereum, arbitrum, optimism, polygon"),
|
|
294
|
+
token_in: str = typer.Option(..., "--token-in", help="Input token address (or 'eth' for native)"),
|
|
295
|
+
token_out: str = typer.Option(..., "--token-out", help="Vault/pool address to deposit into"),
|
|
296
|
+
amount_in: str = typer.Option(..., "--amount", help="Amount in human-readable units (e.g. '0.1')"),
|
|
297
|
+
slippage: str = typer.Option("100", "--slippage", help="Slippage tolerance in basis points"),
|
|
298
|
+
output: str = typer.Option("table", "-o", "--output", help="Output format: table, json, raw"),
|
|
299
|
+
field: Optional[str] = typer.Option(None, "-f", "--field", help="Extract nested field"),
|
|
300
|
+
):
|
|
301
|
+
"""Execute EVM DeFi deposit via Enso (returns unsigned transaction)."""
|
|
302
|
+
client = VibeClient()
|
|
303
|
+
response = client.evm_defi_deposit(network=network, token_in=token_in, token_out=token_out, amount_in=amount_in, slippage=slippage)
|
|
304
|
+
if "error" in response:
|
|
305
|
+
print_error(response["error"])
|
|
306
|
+
format_output(response.get("data", response), output, field)
|
|
307
|
+
|
|
308
|
+
|
|
272
309
|
# --- bags.fm ---
|
|
273
310
|
|
|
274
311
|
@app.command(name="bags-launch-token")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|