Appearance
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) publicUpserts (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
| Name | Type | Description |
|---|---|---|
| _stage | string | The name of the stage |
| _startTime | uint256 | The start time for the stage (in Unix timestamp) |
| _endTime | uint256 | The end time for the stage (in Unix timestamp) |
revertStageTiming
solidity
function revertStageTiming(string _stage) public viewReverts 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
| Name | Type | Description |
|---|---|---|
| _stage | string | The name of the stage to revert |
removeStageTiming
solidity
function removeStageTiming(string _stage) publicRemoves 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
| Name | Type | Description |
|---|---|---|
| _stage | string | The 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
| Name | Type | Description |
|---|---|---|
| stages | string[] | Array of stage names with non-zero timings |
| startTimes | uint256[] | Array of start times corresponding to the stages |
| endTimes | uint256[] | 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
| Name | Type | Description |
|---|---|---|
| stages | string[] | Array of active stage names |
| startTimes | uint256[] | Array of start times corresponding to the active stages |
| endTimes | uint256[] | Array of end times corresponding to the active stages |