hermez-node/coordinator/batch.go
coordinator/batch.goRaw
1package coordinator
2
3import (
4 "github.com/ethereum/go-ethereum/core/types"
5 "github.com/hermeznetwork/hermez-node/common"
6 "github.com/hermeznetwork/hermez-node/eth"
7)
8
9// Proof TBD this type will be received from the proof server
10type Proof struct {
11}
12
13// TxStatus is used to mark the status of an ethereum transaction
14type TxStatus string
15
16const (
17 // TxStatusPending marks the Tx as Pending
18 TxStatusPending TxStatus = "pending"
19 // TxStatusSent marks the Tx as Sent
20 TxStatusSent TxStatus = "sent"
21)
22
23// BatchInfo contans the Batch information
24type BatchInfo struct {
25 BatchNum common.BatchNum
26 ServerProof ServerProofInterface
27 ZKInputs *common.ZKInputs
28 Proof *Proof
29 L1UserTxsExtra []common.L1Tx
30 L1OperatorTxs []common.L1Tx
31 L2Txs []common.PoolL2Tx
32 ForgeBatchArgs *eth.RollupForgeBatchArgs
33 // FeesInfo
34 TxStatus TxStatus
35 EthTx *types.Transaction
36}