55
55
// EcotoneL1AttributesSelector is the selector indicating Ecotone style L1 gas attributes.
56
56
// keccak256("setL1BlockValuesEcotone()")[:4]
57
57
EcotoneL1AttributesSelector = [4 ]byte {0x44 , 0x0a , 0x5e , 0x20 }
58
- // IsthmusL1AttributesSelector is the selector indicating Isthmus style L1 gas attributes.
59
- // keccak256("setL1BlockValuesIsthmus ()")[:4]
60
- IsthmusL1AttributesSelector = [4 ]byte {0x09 , 0x89 , 0x99 , 0xbe }
58
+ // JovianL1AttributesSelector is the selector indicating Jovian style L1 gas attributes.
59
+ // keccak256("setL1BlockValuesJovian ()")[:4]
60
+ JovianL1AttributesSelector = [4 ]byte {0x3d , 0xb6 , 0xbe , 0x2b }
61
61
// InteropL1AttributesSelector is the selector indicating Interop style L1 gas attributes.
62
62
// keccak256("setL1BlockValuesInterop()")[:4]
63
63
InteropL1AttributesSelector = [4 ]byte {0x76 , 0x0e , 0xe0 , 0x4d }
@@ -273,7 +273,7 @@ func extractL1GasParams(config *params.ChainConfig, time uint64, data []byte) (g
273
273
var err error
274
274
var signature [4 ]byte
275
275
copy (signature [:], data )
276
- // Note: for Ecotone + Isthmus , the new L1Block method selector is used in the block after
276
+ // Note: for Ecotone + Jovian , the new L1Block method selector is used in the block after
277
277
// activation, so we use the selector for the switch block rather than the fork time.
278
278
switch signature {
279
279
case BedrockL1AttributesSelector :
@@ -283,17 +283,17 @@ func extractL1GasParams(config *params.ChainConfig, time uint64, data []byte) (g
283
283
return gasParams {}, fmt .Errorf ("setL1BlockValuesEcotone called before Ecotone active" )
284
284
}
285
285
p , err = extractL1GasParamsPostEcotone (data )
286
- case IsthmusL1AttributesSelector :
287
- if ! config .IsIsthmus (time ) {
288
- return gasParams {}, fmt .Errorf ("setL1BlockValuesIsthmus called before Isthmus active" )
286
+ case JovianL1AttributesSelector :
287
+ if ! config .IsJovian (time ) {
288
+ return gasParams {}, fmt .Errorf ("setL1BlockValuesJovian called before Jovian active" )
289
289
}
290
- p , err = extractL1GasParamsPostIsthmus (data )
290
+ p , err = extractL1GasParamsPostJovian (data )
291
291
case InteropL1AttributesSelector :
292
292
if ! config .IsInterop (time ) {
293
293
return gasParams {}, fmt .Errorf ("setL1BlockValuesInterop called before Interop active" )
294
294
}
295
- // Interop uses the same tx calldata size/format as Isthmus
296
- p , err = extractL1GasParamsPostIsthmus (data )
295
+ // Interop uses the same tx calldata size/format as Jovian
296
+ p , err = extractL1GasParamsPostJovian (data )
297
297
default :
298
298
return gasParams {}, fmt .Errorf ("unknown L1Block function signature: 0x%s" , common .Bytes2Hex (signature [:]))
299
299
}
@@ -345,19 +345,19 @@ func extractL1GasParamsPostEcotone(data []byte) (gasParams, error) {
345
345
if len (data ) != 164 {
346
346
return gasParams {}, fmt .Errorf ("expected 164 L1 info bytes, got %d" , len (data ))
347
347
}
348
- return extractL1GasParamsPostEcotoneIsthmus (data )
348
+ return extractL1GasParamsPostEcotoneJovian (data )
349
349
}
350
350
351
- // extractL1GasParamsPostIsthmus extracts the gas parameters necessary to compute gas from L1 attribute
352
- // info calldata after the Isthmus upgrade, but not for the very first Isthmus block.
353
- func extractL1GasParamsPostIsthmus (data []byte ) (gasParams , error ) {
351
+ // extractL1GasParamsPostJovian extracts the gas parameters necessary to compute gas from L1 attribute
352
+ // info calldata after the Jovian upgrade, but not for the very first Jovian block.
353
+ func extractL1GasParamsPostJovian (data []byte ) (gasParams , error ) {
354
354
if len (data ) != 180 {
355
355
return gasParams {}, fmt .Errorf ("expected 180 L1 info bytes, got %d" , len (data ))
356
356
}
357
- return extractL1GasParamsPostEcotoneIsthmus (data )
357
+ return extractL1GasParamsPostEcotoneJovian (data )
358
358
}
359
359
360
- func extractL1GasParamsPostEcotoneIsthmus (data []byte ) (gasParams , error ) {
360
+ func extractL1GasParamsPostEcotoneJovian (data []byte ) (gasParams , error ) {
361
361
// data layout assumed for Ecotone:
362
362
// offset type varname
363
363
// 0 <selector>
@@ -370,7 +370,7 @@ func extractL1GasParamsPostEcotoneIsthmus(data []byte) (gasParams, error) {
370
370
// 68 uint256 _blobBaseFee,
371
371
// 100 bytes32 _hash,
372
372
// 132 bytes32 _batcherHash,
373
- // Isthmus adds two more uint64s, which are ignored by this function:
373
+ // Jovian adds two more uint64s, which are ignored by this function:
374
374
// 164 uint64 _depositNonce
375
375
// 172 uint64 _configUpdateNonce
376
376
l1BaseFee := new (big.Int ).SetBytes (data [36 :68 ])
0 commit comments