-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mock bond manager to deploy config (#87)
- Loading branch information
1 parent
f24339f
commit 5a57bb0
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
...ages/contracts/contracts/optimistic-ethereum/mockOVM/verification/mockOVM_BondManager.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.7.0; | ||
|
||
/* Interface Imports */ | ||
import { iOVM_BondManager } from "../../iOVM/verification/iOVM_BondManager.sol"; | ||
|
||
/** | ||
* @title mockOVM_BondManager | ||
*/ | ||
contract mockOVM_BondManager is iOVM_BondManager { | ||
function recordGasSpent( | ||
bytes32 _preStateRoot, | ||
address _who, | ||
uint256 _gasSpent | ||
) | ||
override | ||
public | ||
{} | ||
|
||
function finalize( | ||
bytes32 _preStateRoot, | ||
address _publisher, | ||
uint256 _timestamp | ||
) | ||
override | ||
public | ||
{} | ||
|
||
function deposit() | ||
override | ||
public | ||
{} | ||
|
||
function startWithdrawal() | ||
override | ||
public | ||
{} | ||
|
||
function finalizeWithdrawal() | ||
override | ||
public | ||
{} | ||
|
||
function claim( | ||
bytes32 _preStateRoot | ||
) | ||
override | ||
public | ||
{} | ||
|
||
function isCollateralized( | ||
address _who | ||
) | ||
override | ||
public | ||
view | ||
returns ( | ||
bool | ||
) | ||
{ | ||
return true; | ||
} | ||
|
||
function getGasSpent( | ||
bytes32 _preStateRoot, | ||
address _who | ||
) | ||
override | ||
public | ||
view | ||
returns ( | ||
uint256 | ||
) | ||
{ | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters