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
8a0356f1
Unverified
Commit
8a0356f1
authored
Aug 03, 2023
by
OptimismBot
Committed by
GitHub
Aug 03, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6592 from ethereum-optimism/clabby/ctb/block-oracle-deploy
feat(ctb): Deploy `BlockOracle`
parents
374f9aa6
a7285e38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Deploy.s.sol
packages/contracts-bedrock/scripts/Deploy.s.sol
+11
-1
No files found.
packages/contracts-bedrock/scripts/Deploy.s.sol
View file @
8a0356f1
...
@@ -83,6 +83,7 @@ contract Deploy is Deployer {
...
@@ -83,6 +83,7 @@ contract Deploy is Deployer {
deployL1StandardBridge();
deployL1StandardBridge();
deployL1ERC721Bridge();
deployL1ERC721Bridge();
deployDisputeGameFactory();
deployDisputeGameFactory();
deployBlockOracle();
deployPreimageOracle();
deployPreimageOracle();
deployMips();
deployMips();
...
@@ -365,6 +366,15 @@ contract Deploy is Deployer {
...
@@ -365,6 +366,15 @@ contract Deploy is Deployer {
return address(factory);
return address(factory);
}
}
/// @notice Deploy the BlockOracle
function deployBlockOracle() onlyDevnet broadcast() public returns (address) {
BlockOracle oracle = new BlockOracle();
save("BlockOracle", address(oracle));
console.log("BlockOracle deployed at %s", address(oracle));
return address(oracle);
}
/// @notice Deploy the PreimageOracle
/// @notice Deploy the PreimageOracle
function deployPreimageOracle() onlyDevnet broadcast() public returns (address) {
function deployPreimageOracle() onlyDevnet broadcast() public returns (address) {
PreimageOracle preimageOracle = new PreimageOracle();
PreimageOracle preimageOracle = new PreimageOracle();
...
@@ -721,7 +731,7 @@ contract Deploy is Deployer {
...
@@ -721,7 +731,7 @@ contract Deploy is Deployer {
_gameDuration: Duration.wrap(uint64(cfg.faultGameMaxDuration())),
_gameDuration: Duration.wrap(uint64(cfg.faultGameMaxDuration())),
_vm: faultVm,
_vm: faultVm,
_l2oo: L2OutputOracle(mustGetAddress("L2OutputOracleProxy")),
_l2oo: L2OutputOracle(mustGetAddress("L2OutputOracleProxy")),
_blockOracle:
new BlockOracle(
)
_blockOracle:
BlockOracle(mustGetAddress("BlockOracle")
)
}));
}));
console.log("DisputeGameFactory: set `FaultDisputeGame` implementation");
console.log("DisputeGameFactory: set `FaultDisputeGame` implementation");
}
}
...
...
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