-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reporter module * use legacy dec for tips and commision rates * re-add max commision rate check * chore: mv legacy_dec.go to types/legacy_dec.go * minor refactor for clarity * checkpoint to pull main * use LgeacyDec for withdraws * remove old BigUint to LegacyDec fcns * linting * add test * linting * separate blobstream testnet child contract --------- Co-authored-by: danflo27 <[email protected]> Co-authored-by: akrem <[email protected]> (cherry picked from commit e800173) Co-authored-by: tkernell <[email protected]>
- Loading branch information
1 parent
49238bb
commit 36db34f
Showing
3 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import "../bridge/BlobstreamO.sol"; | ||
|
||
contract BlobstreamOTestnet is BlobstreamO { | ||
constructor(address _guardian) BlobstreamO(_guardian) {} | ||
|
||
/// @notice This function is called by the guardian to reset the validator set | ||
/// on testnet. Not to be used on mainnet. | ||
/// @param _powerThreshold Amount of voting power needed to approve operations. | ||
/// @param _validatorTimestamp The timestamp of the block where validator set is updated. | ||
/// @param _validatorSetCheckpoint The hash of the validator set. | ||
function guardianResetValidatorSetTestnet( | ||
uint256 _powerThreshold, | ||
uint256 _validatorTimestamp, | ||
bytes32 _validatorSetCheckpoint | ||
) external { | ||
if (msg.sender != guardian) { | ||
revert NotGuardian(); | ||
} | ||
powerThreshold = _powerThreshold; | ||
validatorTimestamp = _validatorTimestamp; | ||
lastValidatorSetCheckpoint = _validatorSetCheckpoint; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters