This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 2022-08-26-emissions-mores-stuff
- Loading branch information
Showing
187 changed files
with
5,072 additions
and
816 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
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,34 @@ | ||
// SPDX-License-Identifier: CAL | ||
pragma solidity =0.8.15; | ||
|
||
import {Cooldown} from "../../cooldown/Cooldown.sol"; | ||
|
||
// import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; | ||
|
||
/// @title CooldownTest | ||
/// | ||
/// Wrapper around Cooldown for testing. | ||
contract CooldownTest is Cooldown { | ||
/// Sample value to implement cooldown on setter | ||
uint256 internal value; | ||
|
||
/// Initialzes the Cooldown Contract | ||
function initialize(uint256 cooldownDuration_) external { | ||
initializeCooldown(cooldownDuration_); | ||
} | ||
|
||
/// Get the current set cooldown duration | ||
function getCooldownDuration() external view returns (uint256) { | ||
return cooldownDuration; | ||
} | ||
|
||
/// Setter function to update the value onlyAfterCooldown | ||
function setValue(uint256 value_) external onlyAfterCooldown { | ||
value = value_; | ||
} | ||
|
||
/// Getter function to get the value | ||
function getValue() external view returns (uint256) { | ||
return value; | ||
} | ||
} |
Oops, something went wrong.