Appearance
Solidity API
IPropsAccessSchedule
Interface for managing access schedules for different stages in a minting process
This interface provides functions to manage and query stage timings
StageTimingChanged
solidity
event StageTimingChanged(string stage, uint256 startTime, uint256 endTime)Event emitted when a stage timing is changed
Parameters
| Name | Type | Description |
|---|---|---|
| stage | string | The name of the stage that was modified |
| startTime | uint256 | The new start time for the stage (in Unix timestamp) |
| endTime | uint256 | The new end time for the stage (in Unix timestamp) |
upsertStageTimings
solidity
function upsertStageTimings(string _stage, uint256 _startTime, uint256 _endTime) externalUpserts (inserts or updates) the timing for a specific stage
If the stage doesn't exist, it will be created. If it exists, its timing will be updated.
Parameters
| Name | Type | Description |
|---|---|---|
| _stage | string | The name of the stage to upsert |
| _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) external viewReverts the timing for a specific stage
This function should revert the stage timing to a previous state or remove it
Parameters
| Name | Type | Description |
|---|---|---|
| _stage | string | The name of the stage to revert |
removeStageTiming
solidity
function removeStageTiming(string _stage) externalRemoves the timing for a specific stage by setting start and end times to 0
This effectively disables the stage without removing it from storage
Parameters
| Name | Type | Description |
|---|---|---|
| _stage | string | The name of the stage to remove |
getAllNonZeroStageTimings
solidity
function getAllNonZeroStageTimings() external view returns (string[] stages, uint256[] startTimes, uint256[] endTimes)Retrieves all non-zero stage timings
This function returns all stages that have been set and not removed
Return Values
| Name | Type | Description |
|---|---|---|
| stages | string[] | Array of stage names |
| startTimes | uint256[] | Array of start times corresponding to the stages (in Unix timestamp) |
| endTimes | uint256[] | Array of end times corresponding to the stages (in Unix timestamp) |
getActiveStageTimings
solidity
function getActiveStageTimings() external view returns (string[] stages, uint256[] startTimes, uint256[] endTimes)Retrieves all currently active stage timings
An active stage is one where the current time is between its start and end time
Return Values
| Name | Type | Description |
|---|---|---|
| stages | string[] | Array of active stage names |
| startTimes | uint256[] | Array of start times corresponding to the active stages (in Unix timestamp) |
| endTimes | uint256[] | Array of end times corresponding to the active stages (in Unix timestamp) |