packagedbimport("math/big""github.com/ethereum/go-ethereum/common")// StateBatch is the state batch containing merkle root of the withdrawals// periodically written to L1.typeStateBatchstruct{Index*big.IntRootcommon.HashSize*big.IntPrevTotal*big.IntExtraData[]byteBlockHashcommon.Hash}// StateBatchJSON contains StateBatch data suitable for JSON serialization.typeStateBatchJSONstruct{Indexuint64`json:"index"`Rootstring`json:"root"`Sizeuint64`json:"size"`PrevTotaluint64`json:"prevTotal"`ExtraData[]byte`json:"extraData"`BlockHashstring`json:"blockHash"`BlockNumberuint64`json:"blockNumber"`BlockTimestampuint64`json:"blockTimestamp"`}