{
  "$schema": "https://farmslot.io/schemas/recipe-v1.schema.json",
  "title": "Assets release token details",
  "description": "Opens the first visible asset and proves its live chart and market cap render through visible product UI.",
  "paramsSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "symbol": { "type": "string", "default": "ETH" },
      "timeout_ms": { "type": "integer", "minimum": 1000, "default": 45000 }
    }
  },
  "workflow": {
    "entry": "open-wallet",
    "nodes": {
      "open-wallet": {
        "action": "ui.navigate",
        "page": "home",
        "timeout_ms": "{{params.timeout_ms}}",
        "intent": "Open the all-network asset list",
        "next": "open-first-asset"
      },
      "open-first-asset": {
        "action": "metamask.assets.open_details",
        "symbol": "{{params.symbol}}",
        "timeout_ms": "{{params.timeout_ms}}",
        "intent": "Open the requested visible funded asset",
        "next": "assert-details"
      },
      "assert-details": {
        "action": "metamask.assets.read_details",
        "expected_symbol": "{{params.symbol}}",
        "require_chart": true,
        "require_market_cap": true,
        "timeout_ms": "{{params.timeout_ms}}",
        "intent": "Prove live asset price history and market data render without malformed values",
        "next": "capture-details"
      },
      "capture-details": {
        "action": "ui.screenshot",
        "path": "screenshots/assets-token-details.png",
        "label": "Assets release token details",
        "intent": "Preserve reviewer-visible token details evidence",
        "next": "done"
      },
      "done": { "action": "end", "status": "pass" }
    }
  }
}
