{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quant/json-schema/quant-deployed-contract-schema.json",
  "title": "DeployedContract",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quant-contracts-api-openapi.yml#/components/schemas/DeployedContract",
  "type": "object",
  "required": [
    "deployerId",
    "address",
    "name",
    "type",
    "visibility",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "deployerId": {
      "type": "string"
    },
    "address": {
      "$ref": "#/$defs/EvmAddress"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/ContractVisibility"
    },
    "whitelistedContractIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ContractVisibility": {
      "type": "string",
      "enum": [
        "PUBLIC",
        "PERMISSIONED",
        "PRIVATE"
      ]
    },
    "EvmAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    }
  }
}