Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deployment config for fee oracle contract #936

Merged
merged 19 commits into from
Jun 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add an L2 deploy script for gas oracle contract
  • Loading branch information
karlfloersch committed May 22, 2021
commit 0d6d2e23d1db0a6d041037c4959a39139a641d60
24 changes: 24 additions & 0 deletions packages/contracts/deploy-l2/000-OVM_GasPriceOracle.deploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'

/* Imports: Internal */
import { getContractDefinition } from '../src'

const deployFn: DeployFunction = async (hre: any) => {
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

const gasPriceOracle = getContractDefinition('OVM_GasPriceOracle', true)

await deploy('OVM_GasPriceOracle', {
contract: gasPriceOracle,
from: deployer,
args: [(hre as any).deployConfig.ovmSequencerAddress],
log: true,
});
}

deployFn.tags = ['OVM_GasPriceOracle']

export default deployFn