{
  "type": "object",
  "title": "TransactionEventSmartContractLog",
  "description": "Only present in `smart_contract` and `contract_call` tx types.",
  "allOf": [
    {
      "$ref": "./abstract-transaction-event.schema.json"
    },
    {
      "type": "object",
      "required": ["event_type", "tx_id", "contract_log"],
      "additionalProperties": false,
      "properties": {
        "event_type": {
          "type": "string",
          "enum": ["smart_contract_log"]
        },
        "tx_id": {
          "type": "string"
        },
        "contract_log": {
          "type": "object",
          "additionalProperties": false,
          "required": ["contract_id", "topic", "value"],
          "properties": {
            "contract_id": {
              "type": "string"
            },
            "topic": {
              "type": "string"
            },
            "value": {
              "type": "object",
              "additionalProperties": false,
              "required": ["hex", "repr"],
              "properties": {
                "hex": {
                  "type": "string"
                },
                "repr": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  ]
}
