LimitedSetup¶
Description¶
This contract allows certain functions within inheriting contracts to only operate during a specific limited setup period. After this period elapses, any functions with the onlyDuringSetup
modifier no longer operate.
Source: LimitedSetup.sol
Architecture¶
Inheritance Graph¶
Variables¶
setupExpiryTime
¶
The timestamp at which functions which have the onlyDuringSetup
modifier will cease operating. This is determined by the setupDuration
parameter passed into the contract constructor.
Type: uint
Functions¶
constructor
¶
Sets setupExpiryTime
to the current timestamp plus setupDuration
seconds.
Details
Signature
constructor(uint setupDuration) public
Modifiers¶
onlyDuringSetup
¶
Reverts the transaction if the current timestamp is not before setupExpiryTime
.