@@ -44,6 +44,8 @@ const (
4444
4545// ChunkTaskDetail is a type containing ChunkTask detail for chunk task.
4646type ChunkTaskDetail struct {
47+ // use one of the string of EuclidFork / EuclidV2Fork
48+ ForkName string `json:"fork_name"`
4749 BlockHashes []common.Hash `json:"block_hashes"`
4850 PrevMsgQueueHash common.Hash `json:"prev_msg_queue_hash"`
4951}
@@ -93,6 +95,8 @@ func (e *Byte48) UnmarshalJSON(input []byte) error {
9395
9496// BatchTaskDetail is a type containing BatchTask detail.
9597type BatchTaskDetail struct {
98+ // use one of the string of EuclidFork / EuclidV2Fork
99+ ForkName string `json:"fork_name"`
96100 ChunkInfos []* ChunkInfo `json:"chunk_infos"`
97101 ChunkProofs []ChunkProof `json:"chunk_proofs"`
98102 BatchHeader interface {} `json:"batch_header"`
@@ -104,7 +108,10 @@ type BatchTaskDetail struct {
104108
105109// BundleTaskDetail consists of all the information required to describe the task to generate a proof for a bundle of batches.
106110type BundleTaskDetail struct {
111+ // use one of the string of EuclidFork / EuclidV2Fork
112+ ForkName string `json:"fork_name"`
107113 BatchProofs []BatchProof `json:"batch_proofs"`
114+ // TODO: add `bundle_info` field for sanity check
108115}
109116
110117// ChunkInfo is for calculating pi_hash for chunk
0 commit comments