{
   "type":"record",
   "namespace":"com.covalenthq.brp.avro",
   "name":"ReplicationSegment",
   "fields":[
      {
         "name":"replicaEvent",
         "type":{
            "type":"array",
            "items":{
               "name":"replicaEvent",
               "type":"record",
               "fields":[
                  {
                     "name":"hash",
                     "type":"string"
                  },
                  {
                     "name":"data",
                     "type":{
                        "name":"data",
                        "type":"record",
                        "fields":[
                           {
                              "name":"Type",
                              "type":"string"
                           },
                           {
                              "name":"NetworkId",
                              "type":"int"
                           },
                           {
                              "name":"Hash",
                              "type":"string"
                           },
                           {
                              "name":"TotalDifficulty",
                              "type":{
                                 "type":"bytes",
                                 "logicalType":"decimal",
                                 "precision":1000
                              }
                           },
                           {
                              "name":"Header",
                              "type":{
                                 "name":"Header",
                                 "type":"record",
                                 "fields":[
                                    {
                                       "name":"parentHash",
                                       "type":"string"
                                    },
                                    {
                                       "name":"sha3Uncles",
                                       "type":"string"
                                    },
                                    {
                                       "name":"miner",
                                       "type":"string"
                                    },
                                    {
                                       "name":"stateRoot",
                                       "type":"string"
                                    },
                                    {
                                       "name":"transactionsRoot",
                                       "type":"string"
                                    },
                                    {
                                       "name":"receiptsRoot",
                                       "type":"string"
                                    },
                                    {
                                       "name":"logsBloom",
                                       "type":{
                                          "type":"array",
                                          "items":"int"
                                       }
                                    },
                                    {
                                       "name":"difficulty",
                                       "type":{
                                          "type":"bytes",
                                          "logicalType":"decimal",
                                          "precision":1000
                                       }
                                    },
                                    {
                                       "name":"number",
                                       "type":{
                                          "type":"bytes",
                                          "logicalType":"decimal",
                                          "precision":1000
                                       }
                                    },
                                    {
                                       "name":"gasLimit",
                                       "type":"int"
                                    },
                                    {
                                       "name":"gasUsed",
                                       "type":"int"
                                    },
                                    {
                                       "name":"timestamp",
                                       "type":"int"
                                    },
                                    {
                                       "name":"extraData",
                                       "type":"string"
                                    },
                                    {
                                       "name":"mixHash",
                                       "type":"string"
                                    },
                                    {
                                       "name":"nonce",
                                       "type":{
                                          "type":"array",
                                          "items":"long"
                                       }
                                    },
                                    {
                                       "name":"baseFeePerGas",
                                       "type":{
                                          "type":"bytes",
                                          "logicalType":"decimal",
                                          "precision":1000
                                       }
                                    },
                                    {
                                       "name":"withdrawalsRoot",
                                       "type":[
                                          "null",
                                          "string"
                                       ],
                                       "default":null
                                    },
                                    {
                                       "name":"blobGasUsed",
                                       "type":[
                                          "null",
                                          "int"
                                       ],
                                       "default":null
                                    },
                                    {
                                       "name":"excessBlobGas",
                                       "type":[
                                          "null",
                                          "int"
                                       ],
                                       "default":null
                                    },
                                    {
                                       "name":"parentBeaconBlockRoot",
                                       "type":[
                                          "null",
                                          "string"
                                       ],
                                       "default":null
                                    },
                                    {
                                       "name":"requestsHash",
                                       "type":[
                                          "null",
                                          "string"
                                       ],
                                       "default":null
                                    }
                                 ]
                              }
                           },
                           {
                              "name":"Transactions",
                              "type":{
                                 "type":"array",
                                 "items":{
                                    "name":"Transactions_record",
                                    "type":"record",
                                    "fields":[
                                       {
                                          "name":"type",
                                          "type":"int"
                                       },
                                       {
                                          "name":"accessList",
                                          "type":{
                                             "type":"array",
                                             "items":{
                                                "name":"accessList_record",
                                                "type":"record",
                                                "fields":[
                                                   {
                                                      "name":"address",
                                                      "type":"string"
                                                   },
                                                   {
                                                      "name":"storageKeys",
                                                      "type":{
                                                         "type":"array",
                                                         "items":"string"
                                                      }
                                                   }
                                                ]
                                             }
                                          }
                                       },
                                       {
                                          "name":"chainId",
                                          "type":{
                                             "type":"bytes",
                                             "logicalType":"decimal",
                                             "precision":1000
                                          }
                                       },
                                       {
                                          "name":"nonce",
                                          "type":"long"
                                       },
                                       {
                                          "name":"gasPrice",
                                          "type":{
                                             "type":"bytes",
                                             "logicalType":"decimal",
                                             "precision":1000
                                          }
                                       },
                                       {
                                          "name":"gasTipCap",
                                          "type":{
                                             "type":"bytes",
                                             "logicalType":"decimal",
                                             "precision":1000
                                          }
                                       },
                                       {
                                          "name":"gasFeeCap",
                                          "type":{
                                             "type":"bytes",
                                             "logicalType":"decimal",
                                             "precision":1000
                                          }
                                       },
                                       {
                                          "name":"gas",
                                          "type":"long"
                                       },
                                       {
                                          "name":"from",
                                          "type":[
                                             "null",
                                             "string"
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"to",
                                          "type":[
                                             "null",
                                             "string"
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"v",
                                          "type":[
                                             "null",
                                             {
                                                "type":"bytes",
                                                "logicalType":"decimal",
                                                "precision":1000
                                             }
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"r",
                                          "type":[
                                             "null",
                                             {
                                                "type":"bytes",
                                                "logicalType":"decimal",
                                                "precision":1000
                                             }
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"s",
                                          "type":[
                                             "null",
                                             {
                                                "type":"bytes",
                                                "logicalType":"decimal",
                                                "precision":1000
                                             }
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"value",
                                          "type":{
                                             "type":"bytes",
                                             "logicalType":"decimal",
                                             "precision":1000
                                          }
                                       },
                                       {
                                          "name":"input",
                                          "type":"string"
                                       },
                                       {
                                          "name":"blobFeeCap",
                                          "type":[
                                             "null",
                                             {
                                                "type":"bytes",
                                                "logicalType":"decimal",
                                                "precision":1000
                                             }
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"blobHashes",
                                          "type":[
                                             "null",
                                             {
                                                "type":"array",
                                                "items":"string"
                                             }
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"blobGas",
                                          "type":[
                                             "null",
                                             "int"
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"Data",
                                          "type":[
                                             "null",
                                             "string"
                                          ],
                                          "default":null
                                       },
                                       {
                                          "name":"AuthList",
                                          "type":[
                                             "null",
                                             {
                                                "type":"array",
                                                "items":{
                                                   "name":"AuthList_record",
                                                   "type":"record",
                                                   "fields":[
                                                      {
                                                         "name":"chainId",
                                                         "type":{
                                                            "type":"bytes",
                                                            "logicalType":"decimal",
                                                            "precision":1000
                                                         }
                                                      },
                                                      {
                                                         "name":"address",
                                                         "type":"string"
                                                      },
                                                      {
                                                         "name":"nonce",
                                                         "type":"long"
                                                      },
                                                      {
                                                         "name":"yParity",
                                                         "type":{
                                                            "type":"bytes",
                                                            "logicalType":"decimal",
                                                            "precision":1000
                                                         }
                                                      },
                                                      {
                                                         "name":"r",
                                                         "type":{
                                                            "type":"bytes",
                                                            "logicalType":"decimal",
                                                            "precision":1000
                                                         }
                                                      },
                                                      {
                                                         "name":"s",
                                                         "type":{
                                                            "type":"bytes",
                                                            "logicalType":"decimal",
                                                            "precision":1000
                                                         }
                                                      }
                                                   ]
                                                }
                                             }
                                          ],
                                          "default":null
                                       }
                                    ]
                                 }
                              }
                           },
                           {
                              "name":"uncles",
                              "type":[
                                 "null",
                                 {
                                    "type":"array",
                                    "items":"Header"
                                 }
                              ],
                              "default":null
                           },
                           {
                              "name":"Receipts",
                              "type":{
                                 "type":"array",
                                 "items":{
                                    "name":"Receipts_record",
                                    "type":"record",
                                    "fields":[
                                       {
                                          "name":"PostStateOrStatus",
                                          "type":"string"
                                       },
                                       {
                                          "name":"CumulativeGasUsed",
                                          "type":"int"
                                       },
                                       {
                                          "name":"TxHash",
                                          "type":"string"
                                       },
                                       {
                                          "name":"ContractAddress",
                                          "type":"string"
                                       },
                                       {
                                          "name":"Logs",
                                          "type":{
                                             "type":"array",
                                             "items":{
                                                "name":"Logs_record",
                                                "type":"record",
                                                "fields":[
                                                   {
                                                      "name":"address",
                                                      "type":"string"
                                                   },
                                                   {
                                                      "name":"topics",
                                                      "type":{
                                                         "type":"array",
                                                         "items":"string"
                                                      }
                                                   },
                                                   {
                                                      "name":"data",
                                                      "type":"string"
                                                   },
                                                   {
                                                      "name":"blockNumber",
                                                      "type":"long"
                                                   },
                                                   {
                                                      "name":"transactionHash",
                                                      "type":"string"
                                                   },
                                                   {
                                                      "name":"transactionIndex",
                                                      "type":"int"
                                                   },
                                                   {
                                                      "name":"blockHash",
                                                      "type":"string"
                                                   },
                                                   {
                                                      "name":"logIndex",
                                                      "type":"int"
                                                   },
                                                   {
                                                      "name":"removed",
                                                      "type":"boolean"
                                                   }
                                                ]
                                             }
                                          }
                                       },
                                       {
                                          "name":"GasUsed",
                                          "type":"int"
                                       }
                                    ]
                                 }
                              }
                           },
                           {
                              "name":"Senders",
                              "type":{
                                 "type":"array",
                                 "items":"string"
                              }
                           },
                           {
                              "name":"State",
                              "type":{
                                 "name":"State",
                                 "type":"record",
                                 "fields":[
                                    {
                                       "name":"AccountRead",
                                       "type":{
                                          "type":"array",
                                          "items":{
                                             "name":"AccountRead_record",
                                             "type":"record",
                                             "fields":[
                                                {
                                                   "name":"Address",
                                                   "type":"string"
                                                },
                                                {
                                                   "name":"Nonce",
                                                   "type":"long"
                                                },
                                                {
                                                   "name":"Balance",
                                                   "type":{
                                                      "type":"bytes",
                                                      "logicalType":"decimal",
                                                      "precision":1000
                                                   }
                                                },
                                                {
                                                   "name":"CodeHash",
                                                   "type":"string"
                                                }
                                             ]
                                          }
                                       }
                                    },
                                    {
                                       "name":"StorageRead",
                                       "type":{
                                          "type":"array",
                                          "items":{
                                             "name":"StorageRead_record",
                                             "type":"record",
                                             "fields":[
                                                {
                                                   "name":"Account",
                                                   "type":"string"
                                                },
                                                {
                                                   "name":"SlotKey",
                                                   "type":"string"
                                                },
                                                {
                                                   "name":"Value",
                                                   "type":"string"
                                                }
                                             ]
                                          }
                                       }
                                    },
                                    {
                                       "name":"CodeRead",
                                       "type":{
                                          "type":"array",
                                          "items":{
                                             "name":"CodeRead_record",
                                             "type":"record",
                                             "fields":[
                                                {
                                                   "name":"Hash",
                                                   "type":"string"
                                                },
                                                {
                                                   "name":"Code",
                                                   "type":"string"
                                                }
                                             ]
                                          }
                                       }
                                    },
                                    {
                                       "name":"BlockhashRead",
                                       "type":{
                                          "type":"array",
                                          "items":{
                                             "name":"BlockhashRead_record",
                                             "type":"record",
                                             "fields":[
                                                {
                                                   "name":"BlockNumber",
                                                   "type":"long"
                                                },
                                                {
                                                   "name":"BlockHash",
                                                   "type":"string"
                                                }
                                             ]
                                          }
                                       }
                                    }
                                 ]
                              }
                           },
                           {
                              "name":"Withdrawals",
                              "type":[
                                 "null",
                                 {
                                    "type":"array",
                                    "items":{
                                       "name":"Withdrawals_record",
                                       "type":"record",
                                       "fields":[
                                          {
                                             "name":"index",
                                             "type":"long"
                                          },
                                          {
                                             "name":"validatorIndex",
                                             "type":"long"
                                          },
                                          {
                                             "name":"address",
                                             "type":"string"
                                          },
                                          {
                                             "name":"amount",
                                             "type":"long"
                                          }
                                       ]
                                    }
                                 }
                              ],
                              "default":null
                           },
                           {
                              "name":"BlobTxSidecars",
                              "type":[
                                 "null",
                                 {
                                    "type":"array",
                                    "items":{
                                       "name":"BlobTxSidecars_record",
                                       "type":"record",
                                       "fields":[
                                          {
                                             "name":"Blobs",
                                             "type":{
                                                "type":"array",
                                                "items":"bytes"
                                             }
                                          },
                                          {
                                             "name":"Commitments",
                                             "type":{
                                                "type":"array",
                                                "items":"bytes"
                                             }
                                          },
                                          {
                                             "name":"Proofs",
                                             "type":{
                                                "type":"array",
                                                "items":"bytes"
                                             }
                                          }
                                       ]
                                    }
                                 }
                              ],
                              "default":null
                           }
                        ]
                     }
                  }
               ]
            }
         }
      },
      {
         "name":"startBlock",
         "type":"long"
      },
      {
         "name":"endBlock",
         "type":"long"
      },
      {
         "name":"elements",
         "type":"long"
      },
      {
         "name":"codecVersion",
         "type":"double",
         "default":0.38
      }
   ]
}