Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
69b90dbe
Unverified
Commit
69b90dbe
authored
Sep 28, 2021
by
Kelvin Fichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove unused bond manager functions
parent
d7234959
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
76 deletions
+9
-76
BondManager.sol
packages/contracts/contracts/L1/verification/BondManager.sol
+9
-48
IBondManager.sol
...ages/contracts/contracts/L1/verification/IBondManager.sol
+0
-28
No files found.
packages/contracts/contracts/L1/verification/BondManager.sol
View file @
69b90dbe
...
@@ -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;
}
}
}
packages/contracts/contracts/L1/verification/IBondManager.sol
View file @
69b90dbe
...
@@ -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);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment