Commit 69b90dbe authored by Kelvin Fichter's avatar Kelvin Fichter

refactor: remove unused bond manager functions

parent d7234959
......@@ -16,47 +16,21 @@ import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolve
*/
contract BondManager is IBondManager, Lib_AddressResolver {
/**
* @param _libAddressManager Address of the Address Manager.
*/
constructor(
address _libAddressManager
)
Lib_AddressResolver(_libAddressManager)
{}
function recordGasSpent(
bytes32 _preStateRoot,
bytes32 _txHash,
address _who,
uint256 _gasSpent
)
public
{}
function finalize(
bytes32 _preStateRoot,
address _publisher,
uint256 _timestamp
)
public
{}
function deposit()
public
{}
function startWithdrawal()
public
{}
function finalizeWithdrawal()
public
{}
function claim(
address _who
)
public
{}
/**
* Checks whether a given address is properly collateralized and can perform actions within
* the system.
* @param _who Address to check.
* @return true if the address is properly collateralized, false otherwise.
*/
function isCollateralized(
address _who
)
......@@ -69,17 +43,4 @@ contract BondManager is IBondManager, Lib_AddressResolver {
// Only authenticate sequencer to submit state root batches.
return _who == resolve("OVM_Proposer");
}
function getGasSpent(
bytes32 _preStateRoot,
address _who
)
public
pure
returns (
uint256
)
{
return 0;
}
}
......@@ -10,35 +10,7 @@ interface IBondManager {
* Public Functions *
********************/
function recordGasSpent(
bytes32 _preStateRoot,
bytes32 _txHash,
address _who,
uint256 _gasSpent
) external;
function finalize(
bytes32 _preStateRoot,
address _publisher,
uint256 _timestamp
) external;
function deposit() external;
function startWithdrawal() external;
function finalizeWithdrawal() external;
function claim(
address _who
) external;
function isCollateralized(
address _who
) external view returns (bool);
function getGasSpent(
bytes32 _preStateRoot,
address _who
) external view returns (uint256);
}
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