Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -1032,15 +1032,15 @@ contract OPContractsManagerV2_Deploy_Test is OPContractsManagerV2_TestInit {
deployConfig.disputeGameConfigs.push(
IOPContractsManagerUtils.DisputeGameConfig({
enabled: true,
initBond: 0.08 ether, // Standard init bond
initBond: DEFAULT_DISPUTE_GAME_INIT_BOND, // Standard init bond
gameType: GameTypes.CANNON,
gameArgs: abi.encode(IOPContractsManagerUtils.FaultDisputeGameConfig({ absolutePrestate: cannonPrestate }))
})
);
deployConfig.disputeGameConfigs.push(
IOPContractsManagerUtils.DisputeGameConfig({
enabled: true,
initBond: 0.08 ether, // Standard init bond
initBond: DEFAULT_DISPUTE_GAME_INIT_BOND, // Standard init bond
gameType: GameTypes.PERMISSIONED_CANNON,
gameArgs: abi.encode(
IOPContractsManagerUtils.PermissionedDisputeGameConfig({
Expand All @@ -1054,7 +1054,7 @@ contract OPContractsManagerV2_Deploy_Test is OPContractsManagerV2_TestInit {
deployConfig.disputeGameConfigs.push(
IOPContractsManagerUtils.DisputeGameConfig({
enabled: true,
initBond: 0.08 ether, // Standard init bond
initBond: DEFAULT_DISPUTE_GAME_INIT_BOND, // Standard init bond
gameType: GameTypes.CANNON_KONA,
gameArgs: abi.encode(
IOPContractsManagerUtils.FaultDisputeGameConfig({ absolutePrestate: cannonKonaPrestate })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ abstract contract DisputeGameFactory_TestInit is CommonTest {
} else {
disputeGameFactory.setImplementation(_gameType, IDisputeGame(_gameImpl));
}
disputeGameFactory.setInitBond(_gameType, 0.08 ether);
disputeGameFactory.setInitBond(_gameType, DEFAULT_DISPUTE_GAME_INIT_BOND);
vm.stopPrank();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ contract FaultDisputeGame_GetRequiredBond_Test is FaultDisputeGame_TestInit {
uint256 bond = gameProxy.getRequiredBond(pos);

// Reasonable approximation for a max depth of 8.
uint256 expected = 0.08 ether;
uint256 expected = DEFAULT_DISPUTE_GAME_INIT_BOND;
for (uint64 j = 0; j < i; j++) {
expected = expected * 22876;
expected = expected / 10000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ contract SuperFaultDisputeGame_GetRequiredBond_Test is SuperFaultDisputeGame_Tes
uint256 bond = gameProxy.getRequiredBond(pos);

// Reasonable approximation for a max depth of 8.
uint256 expected = 0.08 ether;
uint256 expected = DEFAULT_DISPUTE_GAME_INIT_BOND;
for (uint64 j = 0; j < i; j++) {
expected = expected * 22876;
expected = expected / 10000;
Expand Down
3 changes: 3 additions & 0 deletions packages/contracts-bedrock/test/setup/CommonTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ abstract contract CommonTest is Test, Setup, Events {

bytes32 constant nonZeroHash = keccak256(abi.encode("NON_ZERO"));

/// @notice The default initial bond value for dispute games.
uint256 constant DEFAULT_DISPUTE_GAME_INIT_BOND = 0.08 ether;

FFIInterface constant ffi = FFIInterface(address(uint160(uint256(keccak256(abi.encode("optimism.ffi"))))));

bool useAltDAOverride;
Expand Down