// Batch is a struct that represents Hermez network batch
// Batch is a struct that represents Hermez network batch
typeBatchstruct{
typeBatchstruct{
BatchNumBatchNum
SlotNumSlotNum// Slot in which the batch is forged
EthTxHashethCommon.Hash
EthBlockNumuint64// Ethereum block in which the batch is forged
ExitRootHash
OldStateRootHash
NewStateRootHash
OldNumAccountsint
NewNumAccountsint
ToForgeL1TxsNumuint32// optional, Only when the batch forges L1 txs. Identifier that corresponds to the group of L1 txs forged in the current batch.
ToForgeL1TxsHashethCommon.Hash// optional, Only when the batch forges L1 txs. Frozen from pendingL1TxsHash (which are the group of L1UserTxs), to be forged in ToForgeL1TxsNum + 1.
ForgedL1TxsHashethCommon.Hash// optional, Only when the batch forges L1 txs. This will be the Hash of the group of L1 txs (L1UserTxs + L1CoordinatorTx) forged in the current batch.
CollectedFeesmap[TokenID]*big.Int
ForgerAddrethCommon.Address// TODO: Should this be retrieved via slot reference?
BatchNumBatchNum`meddler:"batch_num"`
EthBlockNumuint64`meddler:"eth_block_num"`// Ethereum block in which the batch is forged
ForgerAddrethCommon.Address`meddler:"forger_addr"`// TODO: Should this be retrieved via slot reference?
ForgeL1TxsNumuint32`meddler:"forge_l1_txs_num"`// optional, Only when the batch forges L1 txs. Identifier that corresponds to the group of L1 txs forged in the current batch.
SlotNumSlotNum`meddler:"slot_num"`// Slot in which the batch is forged