Commit 5a57bb0b authored by Kelvin Fichter's avatar Kelvin Fichter Committed by GitHub

Added mock bond manager to deploy config (#87)

parent f24339f9
// 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;
}
}
......@@ -155,5 +155,8 @@ export const makeContractDeployConfig = async (
mockOVM_ECDSAContractAccount: {
factory: getContractFactory('mockOVM_ECDSAContractAccount'),
},
OVM_BondManager: {
factory: getContractFactory('mockOVM_BondManager'),
},
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment