{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://capp.local/schemas/capp.solana-activity-page.v1.schema.json",
  "title": "capp.solana-activity-page.v1",
  "type": "object",
  "required": [
    "protocol",
    "network",
    "genesisHash",
    "address",
    "entries",
    "observedAt",
    "nextBefore",
    "historyComplete",
    "scope",
    "subscription"
  ],
  "properties": {
    "protocol": {
      "const": "capp.solana-activity-page.v1"
    },
    "network": {
      "enum": [
        "devnet",
        "mainnet-beta"
      ]
    },
    "genesisHash": {
      "type": "string",
      "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
    },
    "address": {
      "type": "string",
      "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
    },
    "entries": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "object",
        "required": [
          "signature",
          "slot",
          "blockTime",
          "confirmationStatus",
          "failed",
          "memo"
        ],
        "properties": {
          "signature": {
            "type": "string",
            "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,88}$"
          },
          "slot": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "blockTime": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationStatus": {
            "enum": [
              "confirmed",
              "finalized"
            ]
          },
          "failed": {
            "type": "boolean"
          },
          "memo": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 512
          }
        },
        "additionalProperties": false
      }
    },
    "observedAt": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "nextBefore": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,88}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "historyComplete": {
      "const": false
    },
    "scope": {
      "const": "address"
    },
    "subscription": {
      "const": false
    }
  },
  "additionalProperties": false
}
