github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/etherman/types/sequence.go (about)

     1  package types
     2  
     3  import (
     4  	"reflect"
     5  
     6  	"github.com/ethereum/go-ethereum/common"
     7  )
     8  
     9  // Sequence represents an operation sent to the PoE smart contract to be
    10  // processed.
    11  type Sequence struct {
    12  	GlobalExitRoot, StateRoot, LocalExitRoot common.Hash //
    13  	AccInputHash                             common.Hash // 1024
    14  	Timestamp                                int64       //64
    15  	BatchL2Data                              []byte
    16  	IsSequenceTooBig                         bool   // 8
    17  	BatchNumber                              uint64 // 64
    18  	ForcedBatchTimestamp                     int64  // 64
    19  }
    20  
    21  // IsEmpty checks is sequence struct is empty
    22  func (s Sequence) IsEmpty() bool {
    23  	return reflect.DeepEqual(s, Sequence{})
    24  }