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
8829be92
Unverified
Commit
8829be92
authored
Mar 19, 2024
by
clabby
Committed by
GitHub
Mar 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FPACOPS edits (#9903)
parent
f3d0102a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
sepolia-devnet-0.json
...ges/contracts-bedrock/deploy-config/sepolia-devnet-0.json
+1
-1
FPACOPS.s.sol
packages/contracts-bedrock/scripts/fpac/FPACOPS.s.sol
+17
-1
No files found.
packages/contracts-bedrock/deploy-config/sepolia-devnet-0.json
View file @
8829be92
...
...
@@ -68,7 +68,7 @@
"eip1559Denominator"
:
250
,
"eip1559DenominatorCanyon"
:
250
,
"systemConfigStartBlock"
:
4071248
,
"faultGameAbsolutePrestate"
:
"0x03
8942ec840131a63c49fa514a3f0577ae401fd5584d56ad50cdf5a8b41d453
8"
,
"faultGameAbsolutePrestate"
:
"0x03
1e3b504740d0b1264e8cf72b6dde0d497184cfb3f98e451c6be8b33bd3f80
8"
,
"faultGameMaxDepth"
:
73
,
"faultGameMaxDuration"
:
604800
,
"faultGameGenesisBlock"
:
0
,
...
...
packages/contracts-bedrock/scripts/fpac/FPACOPS.s.sol
View file @
8829be92
...
...
@@ -3,7 +3,8 @@ pragma solidity 0.8.15;
import { Proxy } from "src/universal/Proxy.sol";
import { IDisputeGame } from "src/dispute/interfaces/IDisputeGame.sol";
import { AnchorStateRegistry } from "src/dispute/AnchorStateRegistry.sol";
import { AnchorStateRegistry, IAnchorStateRegistry } from "src/dispute/AnchorStateRegistry.sol";
import { IDelayedWETH } from "src/dispute/interfaces/IDelayedWETH.sol";
import { StdAssertions } from "forge-std/StdAssertions.sol";
import "src/libraries/DisputeTypes.sol";
import "scripts/Deploy.s.sol";
...
...
@@ -50,6 +51,7 @@ contract FPACOPS is Deploy, StdAssertions {
// of the DisputeGameFactoryProxy to the ProxyAdmin.
transferDGFOwnershipFinal({ _proxyAdmin: _proxyAdmin, _systemOwnerSafe: _systemOwnerSafe });
transferWethOwnershipFinal({ _proxyAdmin: _proxyAdmin, _systemOwnerSafe: _systemOwnerSafe });
transferAnchorStateOwnershipFinal({ _proxyAdmin: _proxyAdmin });
// Run post-deployment assertions.
postDeployAssertions({ _proxyAdmin: _proxyAdmin, _systemOwnerSafe: _systemOwnerSafe });
...
...
@@ -70,6 +72,11 @@ contract FPACOPS is Deploy, StdAssertions {
Proxy(payable(dgfProxy)).upgradeToAndCall(
mustGetAddress("DisputeGameFactory"), abi.encodeCall(DisputeGameFactory.initialize, msg.sender)
);
// Set the initialization bonds for the FaultDisputeGame and PermissionedDisputeGame.
DisputeGameFactory dgf = DisputeGameFactory(dgfProxy);
dgf.setInitBond(GameTypes.CANNON, 0.08 ether);
dgf.setInitBond(GameTypes.PERMISSIONED_CANNON, 0.08 ether);
}
function initializeDelayedWETHProxy() internal broadcast {
...
...
@@ -134,6 +141,15 @@ contract FPACOPS is Deploy, StdAssertions {
prox.changeAdmin(_proxyAdmin);
}
/// @notice Transfers admin rights of the `AnchorStateRegistryProxy` to the `ProxyAdmin`.
function transferAnchorStateOwnershipFinal(address _proxyAdmin) internal broadcast {
AnchorStateRegistry asr = AnchorStateRegistry(mustGetAddress("AnchorStateRegistryProxy"));
// Transfer the admin rights of the AnchorStateRegistryProxy to the ProxyAdmin.
Proxy prox = Proxy(payable(address(asr)));
prox.changeAdmin(_proxyAdmin);
}
/// @notice Checks that the deployed system is configured correctly.
function postDeployAssertions(address _proxyAdmin, address _systemOwnerSafe) internal {
Types.ContractSet memory contracts = _proxiesUnstrict();
...
...
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