• Mark Tyneway's avatar
    contracts: add set-l2-gasprice task · 694cf429
    Mark Tyneway authored
    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.
    694cf429
Name
Last commit
Last update
..
bin Loading commit data...
contracts Loading commit data...
deploy Loading commit data...
deployments Loading commit data...
scripts Loading commit data...
src Loading commit data...
tasks Loading commit data...
test Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.lintstagedrc.yml Loading commit data...
.prettierrc.js Loading commit data...
.solcover.js Loading commit data...
CHANGELOG.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
codechecks.yml Loading commit data...
hardhat.config.ts Loading commit data...
package.json Loading commit data...
slither.config.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...