@@ -70,16 +70,28 @@ type BundleTaskDetail struct {
7070
7171// ChunkInfo is for calculating pi_hash for chunk
7272type ChunkInfo struct {
73- ChainID uint64 `json:"chain_id"`
74- PrevStateRoot common.Hash `json:"prev_state_root"`
75- PostStateRoot common.Hash `json:"post_state_root"`
76- WithdrawRoot common.Hash `json:"withdraw_root"`
77- DataHash common.Hash `json:"data_hash"`
78- IsPadding bool `json:"is_padding"`
79- TxBytes []byte `json:"tx_bytes"`
80- TxBytesHash common.Hash `json:"tx_data_digest"`
81- PrevMsgQueueHash common.Hash `json:"prev_msg_queue_hash"`
82- PostMsgQueueHash common.Hash `json:"post_msg_queue_hash"`
73+ ChainID uint64 `json:"chain_id"`
74+ PrevStateRoot common.Hash `json:"prev_state_root"`
75+ PostStateRoot common.Hash `json:"post_state_root"`
76+ WithdrawRoot common.Hash `json:"withdraw_root"`
77+ DataHash common.Hash `json:"data_hash"`
78+ IsPadding bool `json:"is_padding"`
79+ TxBytes []byte `json:"tx_bytes"`
80+ TxBytesHash common.Hash `json:"tx_data_digest"`
81+ PrevMsgQueueHash common.Hash `json:"prev_msg_queue_hash"`
82+ PostMsgQueueHash common.Hash `json:"post_msg_queue_hash"`
83+ TxDataLength uint64 `json:"tx_data_length"`
84+ InitialBlockNumber uint64 `json:"initial_block_number"`
85+ BlockCtxs []BlockContextV2 `json:"block_ctxs"`
86+ }
87+
88+ // BlockContextV2 is the block context for euclid v2
89+ type BlockContextV2 struct {
90+ Timestamp uint64 `json:"timestamp"`
91+ BaseFee common.Hash `json:"base_fee"`
92+ GasLimit uint64 `json:"gas_limit"`
93+ NumTxs uint16 `json:"num_txs"`
94+ NumL1Msgs uint16 `json:"num_l1_msgs"`
8395}
8496
8597// SubCircuitRowUsage tracing info added in v0.11.0rc8
@@ -270,12 +282,14 @@ func (p *OpenVMChunkProof) Proof() []byte {
270282
271283// OpenVMBatchInfo is for calculating pi_hash for batch header
272284type OpenVMBatchInfo struct {
273- ParentBatchHash common.Hash `json:"parent_batch_hash"`
274- ParentStateRoot common.Hash `json:"parent_state_root"`
275- StateRoot common.Hash `json:"state_root"`
276- WithdrawRoot common.Hash `json:"withdraw_root"`
277- BatchHash common.Hash `json:"batch_hash"`
278- ChainID uint64 `json:"chain_id"`
285+ ParentBatchHash common.Hash `json:"parent_batch_hash"`
286+ ParentStateRoot common.Hash `json:"parent_state_root"`
287+ StateRoot common.Hash `json:"state_root"`
288+ WithdrawRoot common.Hash `json:"withdraw_root"`
289+ BatchHash common.Hash `json:"batch_hash"`
290+ ChainID uint64 `json:"chain_id"`
291+ PrevMsgQueueHash common.Hash `json:"prev_msg_queue_hash"`
292+ PostMsgQueueHash common.Hash `json:"post_msg_queue_hash"`
279293}
280294
281295// BatchProof includes the proof info that are required for batch verification and rollup.
@@ -335,6 +349,7 @@ type OpenVMBundleInfo struct {
335349 NumBatches uint32 `json:"num_batches"`
336350 PrevBatchHash common.Hash `json:"prev_batch_hash"`
337351 BatchHash common.Hash `json:"batch_hash"`
352+ MsgQueueHash common.Hash `json:"msg_queue_hash"`
338353}
339354
340355// OpenVMBundleProof includes the proof info that are required for verification of a bundle of batch proofs.
0 commit comments