Skip to content

Solidity API

PropsAccessSchedule

Manages access schedules for different stages in the Props system

Inherits from PropsBaseFacet, PropsAccessScheduleInternal, and implements IPropsAccessSchedule

upsertStageTimings

solidity
function upsertStageTimings(string _stage, uint256 _startTime, uint256 _endTime) public

Upserts (inserts or updates) the timing for a specific stage

Only callable by accounts with ACCESS_SCHEDULE_MANAGER_ROLE or the diamond owner Emits a StageTimingChanged event

Parameters

NameTypeDescription
_stagestringThe name of the stage
_startTimeuint256The start time for the stage (in Unix timestamp)
_endTimeuint256The end time for the stage (in Unix timestamp)

revertStageTiming

solidity
function revertStageTiming(string _stage) public view

Reverts the timing for a specific stage

_This function is marked as view, suggesting it doesn't modify state Implementation details are in the internal revertStageTiming function

Parameters

NameTypeDescription
_stagestringThe name of the stage to revert

removeStageTiming

solidity
function removeStageTiming(string _stage) public

Removes the timing for a specific stage by setting start and end times to 0

Only callable by accounts with ACCESS_SCHEDULE_MANAGER_ROLE or the diamond owner Emits a StageTimingChanged event with start and end times set to 0

Parameters

NameTypeDescription
_stagestringThe name of the stage to remove

getAllNonZeroStageTimings

solidity
function getAllNonZeroStageTimings() public view returns (string[] stages, uint256[] startTimes, uint256[] endTimes)

Retrieves all non-zero stage timings

_Implementation details are in the internal getAllNonZeroStageTimings function

Return Values

NameTypeDescription
stagesstring[]Array of stage names with non-zero timings
startTimesuint256[]Array of start times corresponding to the stages
endTimesuint256[]Array of end times corresponding to the stages

getActiveStageTimings

solidity
function getActiveStageTimings() public view returns (string[] stages, uint256[] startTimes, uint256[] endTimes)

Retrieves all currently active stage timings

_Implementation details are in the internal getActiveStageTimings function

Return Values

NameTypeDescription
stagesstring[]Array of active stage names
startTimesuint256[]Array of start times corresponding to the active stages
endTimesuint256[]Array of end times corresponding to the active stages