{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/an01/schemas/anchor-evidence.schema.json",
  "title": "AN01-F01 anchor-evidence",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact_version",
    "adapter_profile",
    "anchor_intent_commitment",
    "deployment_binding_commitment",
    "checkpoint_commitment",
    "sequence",
    "chain_id",
    "contract_address",
    "transaction_hash",
    "transaction_index",
    "block_number",
    "block_hash",
    "log_index",
    "event",
    "finality_policy_id",
    "finalized_view_reference"
  ],
  "properties": {
    "artifact_version": {
      "const": "an01-f01"
    },
    "adapter_profile": {
      "const": "xcim-as01-evm-amoy-milestone-01"
    },
    "anchor_intent_commitment": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hash"
    },
    "deployment_binding_commitment": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hash"
    },
    "checkpoint_commitment": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hash"
    },
    "sequence": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/positive"
    },
    "chain_id": {
      "const": 80002
    },
    "contract_address": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/address"
    },
    "transaction_hash": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hex32"
    },
    "transaction_index": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/safe"
    },
    "block_number": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/positive"
    },
    "block_hash": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hex32"
    },
    "log_index": {
      "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/safe"
    },
    "event": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "topics",
        "data"
      ],
      "properties": {
        "topics": {
          "type": "array",
          "minItems": 4,
          "maxItems": 4,
          "items": {
            "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hex32"
          }
        },
        "data": {
          "type": "string",
          "pattern": "^0x[0-9a-f]{256}$",
          "minLength": 258,
          "maxLength": 258
        }
      }
    },
    "finality_policy_id": {
      "const": "amoy-milestone-receiver-node-01"
    },
    "finalized_view_reference": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "block_number",
        "block_hash"
      ],
      "properties": {
        "block_number": {
          "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/positive"
        },
        "block_hash": {
          "$ref": "https://xcim.invalid/ietf/an01/schemas/common.schema.json#/$defs/hex32"
        }
      }
    }
  }
}
