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