Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
633ff747
Unverified
Commit
633ff747
authored
Dec 06, 2022
by
Mark Tyneway
Committed by
GitHub
Dec 06, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4263 from ethereum-optimism/fix/delete-dead-code-gpo
contracts-bedrock: delete dead code
parents
374c3ab0
f5d5cf5c
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
422 deletions
+11
-422
gaspriceoracle.go
op-bindings/bindings/gaspriceoracle.go
+1
-403
GasPriceOracle.sol
packages/contracts-bedrock/contracts/L2/GasPriceOracle.sol
+10
-19
No files found.
op-bindings/bindings/gaspriceoracle.go
View file @
633ff747
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/contracts/L2/GasPriceOracle.sol
View file @
633ff747
...
@@ -10,10 +10,16 @@ import { L1Block } from "../L2/L1Block.sol";
...
@@ -10,10 +10,16 @@ import { L1Block } from "../L2/L1Block.sol";
* @custom:predeploy 0x420000000000000000000000000000000000000F
* @custom:predeploy 0x420000000000000000000000000000000000000F
* @title GasPriceOracle
* @title GasPriceOracle
* @notice This contract maintains the variables responsible for computing the L1 portion of the
* @notice This contract maintains the variables responsible for computing the L1 portion of the
* total fee charged on L2. The values stored in the contract are looked up as part of the
* total fee charged on L2. Before Bedrock, this contract held variables in state that were
* L2 state transition function and used to compute the total fee paid by the user. The
* read during the state transition function to compute the L1 portion of the transaction
* contract exposes an API that is useful for knowing how large the L1 portion of their
* fee. After Bedrock, this contract now simply proxies the L1Block contract, which has
* transaction fee will be.
* the values used to compute the L1 portion of the fee in its state.
*
* The contract exposes an API that is useful for knowing how large the L1 portion of the
* transaction fee will be. The following events were deprecated with Bedrock:
* - event OverheadUpdated(uint256 overhead);
* - event ScalarUpdated(uint256 scalar);
* - event DecimalsUpdated(uint256 decimals);
*/
*/
contract GasPriceOracle is Semver {
contract GasPriceOracle is Semver {
/**
/**
...
@@ -56,21 +62,6 @@ contract GasPriceOracle is Semver {
...
@@ -56,21 +62,6 @@ contract GasPriceOracle is Semver {
*/
*/
uint256 public constant decimals = 6;
uint256 public constant decimals = 6;
/**
* @notice Emitted when the overhead value is updated.
*/
event OverheadUpdated(uint256 overhead);
/**
* @notice Emitted when the scalar value is updated.
*/
event ScalarUpdated(uint256 scalar);
/**
* @notice Emitted when the decimals value is updated.
*/
event DecimalsUpdated(uint256 decimals);
/**
/**
* @custom:semver 0.0.1
* @custom:semver 0.0.1
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment