@@ -109,6 +109,8 @@ pub struct StorageBlockHeader {
109109 pub n_transactions : usize ,
110110 /// The number of events in this block.
111111 pub n_events : usize ,
112+ /// SNIP-35: proposer's oracle-derived recommended fee. `None` for pre-V0_14_3 blocks.
113+ pub fee_proposal_fri : Option < GasPrice > ,
112114}
113115
114116type BlockHashToNumberTable < ' env > =
@@ -225,6 +227,7 @@ impl<Mode: TransactionKind> HeaderStorageReader for StorageTxn<'_, Mode> {
225227 timestamp : block_header. timestamp ,
226228 l1_da_mode : block_header. l1_da_mode ,
227229 starknet_version,
230+ fee_proposal_fri : block_header. fee_proposal_fri ,
228231 } ,
229232 state_diff_commitment : block_header. state_diff_commitment ,
230233 transaction_commitment : block_header. transaction_commitment ,
@@ -322,6 +325,7 @@ impl HeaderStorageWriter for StorageTxn<'_, RW> {
322325 state_diff_length : block_header. state_diff_length ,
323326 n_transactions : block_header. n_transactions ,
324327 n_events : block_header. n_events ,
328+ fee_proposal_fri : block_header. block_header_without_hash . fee_proposal_fri ,
325329 } ;
326330
327331 headers_table. append ( & self . txn , & block_number, & storage_block_header) ?;
@@ -429,6 +433,7 @@ impl HeaderStorageWriter for StorageTxn<'_, RW> {
429433 timestamp : reverted_header. timestamp ,
430434 l1_da_mode : reverted_header. l1_da_mode ,
431435 starknet_version,
436+ fee_proposal_fri : reverted_header. fee_proposal_fri ,
432437 } ,
433438 state_diff_commitment : reverted_header. state_diff_commitment ,
434439 transaction_commitment : reverted_header. transaction_commitment ,
0 commit comments