{
  "$schema": "https://farmslot.io/schemas/recipe-v1.schema.json",
  "title": "MetaMask core Perps smoke",
  "description": "Non-mutating Perps domain smoke for the headless core adapter: instantiates the Perps controller and reads live positions, orders, and account state.",
  "workflow": {
    "entry": "status",
    "nodes": {
      "status": {
        "action": "app.status",
        "next": "read-positions",
        "intent": "Resolve the core checkout and report headless compatibility mode"
      },
      "read-positions": {
        "action": "metamask.perps.read_positions",
        "mode": "all",
        "next": "read-orders",
        "intent": "Read live Perps positions from the headless controller"
      },
      "read-orders": {
        "action": "metamask.perps.read_orders",
        "mode": "all",
        "next": "read-account",
        "intent": "Read live Perps open orders from the headless controller"
      },
      "read-account": {
        "action": "metamask.perps.read_account",
        "next": "done",
        "intent": "Read live Perps account state from the headless controller"
      },
      "done": {
        "action": "end",
        "status": "pass"
      }
    }
  }
}
