@@ -12,27 +12,27 @@ pub use tx::{ArchivedTransactionTrace, TransactionTrace, TxL1Msg, TypedTransacti
12
12
) ]
13
13
#[ archive( check_bytes) ]
14
14
#[ archive_attr( derive( Debug , Hash , PartialEq , Eq ) ) ]
15
- struct BlockHeader {
15
+ pub struct BlockHeader {
16
16
/// block number
17
- number : U256 ,
17
+ pub number : U256 ,
18
18
/// block hash
19
- hash : B256 ,
19
+ pub hash : B256 ,
20
20
/// timestamp
21
- timestamp : U256 ,
21
+ pub timestamp : U256 ,
22
22
/// gas limit
23
23
#[ serde( rename = "gasLimit" ) ]
24
- gas_limit : U256 ,
24
+ pub gas_limit : U256 ,
25
25
/// gas used
26
26
#[ serde( rename = "gasUsed" ) ]
27
- gas_used : U256 ,
27
+ pub gas_used : U256 ,
28
28
/// base fee per gas
29
29
#[ serde( rename = "baseFeePerGas" ) ]
30
- base_fee_per_gas : Option < U256 > ,
30
+ pub base_fee_per_gas : Option < U256 > ,
31
31
/// difficulty
32
- difficulty : U256 ,
32
+ pub difficulty : U256 ,
33
33
/// mix hash
34
34
#[ serde( rename = "mixHash" ) ]
35
- mix_hash : Option < B256 > ,
35
+ pub mix_hash : Option < B256 > ,
36
36
}
37
37
38
38
/// Coinbase
@@ -41,9 +41,9 @@ struct BlockHeader {
41
41
) ]
42
42
#[ archive( check_bytes) ]
43
43
#[ archive_attr( derive( Debug , Hash , PartialEq , Eq ) ) ]
44
- struct Coinbase {
44
+ pub struct Coinbase {
45
45
/// address of coinbase
46
- address : Address ,
46
+ pub address : Address ,
47
47
}
48
48
49
49
/// Bytecode trace
@@ -52,9 +52,9 @@ struct Coinbase {
52
52
) ]
53
53
#[ archive( check_bytes) ]
54
54
#[ archive_attr( derive( Debug , Hash , PartialEq , Eq ) ) ]
55
- struct BytecodeTrace {
55
+ pub struct BytecodeTrace {
56
56
/// bytecode
57
- code : Bytes ,
57
+ pub code : Bytes ,
58
58
}
59
59
60
60
/// storage trace
@@ -73,17 +73,17 @@ struct BytecodeTrace {
73
73
) ]
74
74
#[ archive( check_bytes) ]
75
75
#[ archive_attr( derive( Debug , Hash , PartialEq , Eq ) ) ]
76
- struct StorageTrace {
76
+ pub struct StorageTrace {
77
77
/// root before
78
78
#[ serde( rename = "rootBefore" ) ]
79
- root_before : B256 ,
79
+ pub root_before : B256 ,
80
80
/// root after
81
81
#[ serde( rename = "rootAfter" ) ]
82
- root_after : B256 ,
82
+ pub root_after : B256 ,
83
83
/// proofs
84
84
#[ serde( rename = "flattenProofs" ) ]
85
85
#[ serde_as( as = "Map<_, _>" ) ]
86
- flatten_proofs : Vec < ( B256 , Bytes ) > ,
86
+ pub flatten_proofs : Vec < ( B256 , Bytes ) > ,
87
87
}
88
88
89
89
/// Block trace format
@@ -97,23 +97,23 @@ struct StorageTrace {
97
97
pub struct BlockTrace {
98
98
/// chain id
99
99
#[ serde( rename = "chainID" , default ) ]
100
- chain_id : u64 ,
100
+ pub chain_id : u64 ,
101
101
/// coinbase
102
- coinbase : Coinbase ,
102
+ pub coinbase : Coinbase ,
103
103
/// block
104
- header : BlockHeader ,
104
+ pub header : BlockHeader ,
105
105
/// txs
106
- transactions : Vec < TransactionTrace > ,
106
+ pub transactions : Vec < TransactionTrace > ,
107
107
/// bytecodes
108
- codes : Vec < BytecodeTrace > ,
108
+ pub codes : Vec < BytecodeTrace > ,
109
109
/// storage trace BEFORE execution
110
110
#[ serde( rename = "storageTrace" ) ]
111
- storage_trace : StorageTrace ,
111
+ pub storage_trace : StorageTrace ,
112
112
/// l1 tx queue
113
113
#[ serde( rename = "startL1QueueIndex" , default ) ]
114
- start_l1_queue_index : u64 ,
114
+ pub start_l1_queue_index : u64 ,
115
115
/// Withdraw root
116
- withdraw_trie_root : B256 ,
116
+ pub withdraw_trie_root : B256 ,
117
117
}
118
118
119
119
impl Block for BlockTrace {
0 commit comments