-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance gas price handling with L2 support and field renaming - Added support for L2 gas prices and renamed gas price fields for clarity. - Updated core components to distinguish between L1 and L2 gas prices: - adapters/core2p2p/block.go: Handle L2 gas prices, renamed fields. - adapters/p2p2core/block.go: AdaptBlockHeader updated for L2. - adapters/p2p2core/receipt.go: Included L2 gas prices in adaptExecutionResources. - adapters/sn2core/sn2core.go: Updated AdaptBlock and adaptGasConsumed. - core/block.go: Renamed fields, updated hash functions. - Updated core data structures: - core/block.go: Introduced L1GasPriceETH, L2GasPriceETH, L1GasPriceSTRK, L2GasPriceSTRK. - core/receipt.go: Added L2GasPrice field to GasConsumed struct. - core/transaction.go: Added L2GasPrice field to DataAvailability struct. - Updated RPC components: - rpc/block.go: AdaptBlockHeader updated with L2 gas prices. - rpc/estimate_fee.go: New FeeEstimate struct, EstimateFeeV0_7 function for compatibility. - Updated tests: - adapters/sn2core/sn2core_test.go: Added assertions for L2 gas prices. - clients/feeder/feeder_test.go: Reflected gas price field changes. - rpc/block_test.go, rpc/estimate_fee_test.go: Added L2 gas-related test cases. - rpc/events_test.go: Updated expected JSON responses.
- Loading branch information
1 parent
e3acc28
commit b45cae5
Showing
43 changed files
with
1,056 additions
and
718 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
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
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.