Skip to content

Commit

Permalink
pnpm test
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jul 3, 2024
1 parent 9fdd6b9 commit 7bec257
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/protocol/contracts/L1/ITaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ interface ITaikoL1 {
/// @param _pause True if paused.
function pauseProving(bool _pause) external;

/// @notice Deposits Taiko token to be used as bonds.
/// @param _amount The amount of Taiko token to deposit.
function depositBond(uint256 _amount) external;

/// @notice Withdraws Taiko token.
/// @param _amount The amount of Taiko token to withdraw.
function withdrawBond(uint256 _amount) external;

/// @notice Gets the configuration of the TaikoL1 contract.
/// @return Config struct containing configuration parameters.
function getConfig() external pure returns (TaikoData.Config memory);
Expand Down
10 changes: 10 additions & 0 deletions packages/protocol/contracts/team/proving/ProverSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ contract ProverSet is EssentialContract, IERC1271 {
ITaikoL1(taikoL1()).proveBlock(_blockId, _input);
}

/// @notice Deposits Taiko token to TaikoL1 contract.
function depositBond(uint256 _amount) external onlyAuthorized nonReentrant {
ITaikoL1(taikoL1()).depositBond(_amount);
}

/// @notice Withdraws Taiko token from TaikoL1 contract.
function withdrawBond(uint256 _amount) external onlyAuthorized nonReentrant {
ITaikoL1(taikoL1()).withdrawBond(_amount);
}

/// @notice Delegates token voting right to a delegatee.
/// @param _delegatee The delegatee to receive the voting right.
function delegate(address _delegatee) external onlyAuthorized nonReentrant {
Expand Down

0 comments on commit 7bec257

Please sign in to comment.