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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: vibe-cli
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: VIBE Airforce CLI — Web3 trading and data at your fingertips
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vibe-cli"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "VIBE Airforce CLI — Web3 trading and data at your fingertips"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,3 +1,3 @@
1
1
  """VIBE Airforce CLI — Web3 trading and data at your fingertips."""
2
2
 
3
- __version__ = "0.2.1"
3
+ __version__ = "0.2.2"
@@ -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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: vibe-cli
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: VIBE Airforce CLI — Web3 trading and data at your fingertips
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
File without changes
File without changes
File without changes
File without changes
File without changes