{
  "$schema": "https://farmslot.io/schemas/recipe-v1.schema.json",
  "title": "Assets release token address import",
  "description": "Imports a token by address on a selected non-current network and proves the token persists in the list.",
  "paramsSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "network": { "type": "string", "default": "Polygon" },
      "chain_id": { "type": "integer", "minimum": 1, "default": 137 },
      "address": { "type": "string", "default": "0xc2132D05D31c914a87C6611C10748AaCbC5327aE" },
      "symbol": { "type": "string", "default": "USDT" },
      "decimals": { "type": "integer", "minimum": 0, "default": 6 },
      "timeout_ms": { "type": "integer", "minimum": 1000, "default": 60000 }
    }
  },
  "workflow": {
    "entry": "open-wallet",
    "nodes": {
      "open-wallet": {
        "action": "ui.navigate",
        "page": "home",
        "intent": "Open the all-network asset list",
        "next": "import-token"
      },
      "import-token": {
        "action": "metamask.assets.import_custom_token",
        "network": "{{params.network}}",
        "chain_id": "{{params.chain_id}}",
        "address": "{{params.address}}",
        "expected_symbol": "{{params.symbol}}",
        "decimals": "{{params.decimals}}",
        "timeout_ms": "{{params.timeout_ms}}",
        "intent": "Import the token by address on the selected network and verify its metadata",
        "next": "capture-imported-token"
      },
      "capture-imported-token": {
        "action": "ui.screenshot",
        "path": "screenshots/assets-address-import.png",
        "label": "Address-imported token visible",
        "intent": "Preserve reviewer-visible address import evidence",
        "next": "done"
      },
      "done": { "action": "end", "status": "pass" }
    }
  }
}
