Skip to content

Commit

Permalink
refactor: remove unused bond manager functions
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts committed Nov 10, 2021
1 parent d723495 commit 69b90db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 76 deletions.
57 changes: 9 additions & 48 deletions packages/contracts/contracts/L1/verification/BondManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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;
}
}
28 changes: 0 additions & 28 deletions packages/contracts/contracts/L1/verification/IBondManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 69b90db

Please sign in to comment.