{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://capp.local/schemas/capp.solana-edge.receipt.v1.schema.json",
  "title": "capp.solana-edge.receipt.v1",
  "type": "object",
  "required": [
    "protocol",
    "simulated",
    "provider",
    "operationId",
    "attemptId",
    "network",
    "asset",
    "recipient",
    "amountLamports",
    "intentDigest",
    "messageDigest",
    "txDigest",
    "signature",
    "finality",
    "evidence",
    "createdAt",
    "receiptDigest"
  ],
  "properties": {
    "protocol": {
      "const": "capp.solana-edge.receipt.v1"
    },
    "simulated": {
      "const": true
    },
    "provider": {
      "const": "arena-demo-v1"
    },
    "operationId": {
      "type": "string",
      "pattern": "^solop_[a-f0-9]{32}$"
    },
    "attemptId": {
      "type": "string",
      "pattern": "^attempt_[a-f0-9]{24}$"
    },
    "network": {
      "const": "demo"
    },
    "asset": {
      "const": "SOL"
    },
    "recipient": {
      "type": "string",
      "minLength": 32,
      "maxLength": 64
    },
    "amountLamports": {
      "type": "integer",
      "minimum": 1
    },
    "intentDigest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "messageDigest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "txDigest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "signature": {
      "type": "string",
      "pattern": "^demo_[a-f0-9]{64}$"
    },
    "finality": {
      "const": "simulated-finalised"
    },
    "evidence": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "createdAt": {
      "type": "number",
      "minimum": 0
    },
    "receiptDigest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "componentEvidence": {
      "type": "object"
    }
  },
  "additionalProperties": false
}
