Conversation
🦋 Changeset detectedLatest commit: 694cf42 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@smartcontracts is there some hardhat native way that I could be doing things? It cannot build because its trying to import something that doesn't exist until after the contracts compile, it seems like there is a way to get the artifacts dynamically with |
db1574a to
2bd4973
Compare
|
|
7760d27 to
3eebe5b
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1102 +/- ##
========================================
Coverage 86.02% 86.02%
========================================
Files 48 48
Lines 1932 1932
Branches 306 306
========================================
Hits 1662 1662
Misses 270 270 Continue to review full report at Codecov.
|
|
|
||
| const addr = await signer.getAddress() | ||
| console.log(`Using signer ${addr}`) | ||
| const owner = await GasPriceOracle.callStatic.owner() |
There was a problem hiding this comment.
Hmmm do we use this in prod? A little sus if the owner of the GPO is just a private key sitting on a machine somewhere...
There was a problem hiding this comment.
See the comment in the PR message above: This shouldn't be used in production but is useful for testnet/local deployments.
3eebe5b to
694cf42
Compare
This task allows a user to update the L2 gas price using hardhat. An example of doing so would be: ```bash $ export CONTRACTS_DEPLOYER_KEY=0x.. $ CONTRACTS_RPC_URL=https://kovan.optimism.io npx hardhat set-l2-gasprice \ --l2-gas-price 1 ``` This hardcodes the predeploy address of the `OVM_GasPriceOracle` smart contract and the Owner must be used to do the updating, otherwise the transaction will revert.
Description
Adds a simple task for updating the L2 Gas Price. This shouldn't be used in production but is useful for testnet/local deployments. It checks that the correct key was passed through and then will set the L2 gas price in the
OVM_GasPriceOracle.This contract is owned so only a single key can update the gas price currently
Additional context
Is automated in #1103