-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(protocol): fix bug in
adjustExcess
and improve L2 basefee calcu…
…lation (#17896) Co-authored-by: dantaik <[email protected]>
- Loading branch information
Showing
13 changed files
with
221 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,15 @@ pragma solidity 0.8.24; | |
/// protocol. | ||
/// @custom:security-contact [email protected] | ||
library TaikoData { | ||
/// @dev Struct that represneds L2 basefee configurations | ||
struct BaseFeeConfig { | ||
uint8 adjustmentQuotient; | ||
uint8 sharingPctg; | ||
uint32 gasIssuancePerSecond; | ||
uint64 minGasExcess; | ||
uint32 maxGasIssuancePerBlock; | ||
} | ||
|
||
/// @dev Struct holding Taiko configuration parameters. See {TaikoConfig}. | ||
struct Config { | ||
// --------------------------------------------------------------------- | ||
|
@@ -39,9 +48,7 @@ library TaikoData { | |
// --------------------------------------------------------------------- | ||
// Group 5: Previous configs in TaikoL2 | ||
// --------------------------------------------------------------------- | ||
uint8 basefeeAdjustmentQuotient; | ||
uint8 basefeeSharingPctg; | ||
uint32 gasIssuancePerSecond; | ||
BaseFeeConfig baseFeeConfig; | ||
// --------------------------------------------------------------------- | ||
// Group 6: Others | ||
// --------------------------------------------------------------------- | ||
|
@@ -123,8 +130,7 @@ library TaikoData { | |
uint32 blobTxListOffset; | ||
uint32 blobTxListLength; | ||
uint8 blobIndex; | ||
uint8 basefeeAdjustmentQuotient; | ||
uint32 gasIssuancePerSecond; | ||
BaseFeeConfig baseFeeConfig; | ||
} | ||
|
||
/// @dev Struct representing transition to be proven. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.