ConfigurableAvailabilityPeriodExtension
ConfigurableAvailabilityPeriodExtension
_AVAILABILITY_PERIOD_SLOT
bytes32 _AVAILABILITY_PERIOD_SLOT
Warper availability period.
_MAX_PERIOD_MASK
uint256 _MAX_PERIOD_MASK
_MIN_PERIOD_MASK
uint256 _MIN_PERIOD_MASK
_MAX_PERIOD_BITSHIFT
uint256 _MAX_PERIOD_BITSHIFT
_MIN_PERIOD_BITSHIFT
uint256 _MIN_PERIOD_BITSHIFT
_ConfigurableAvailabilityPeriodExtension_init
function _ConfigurableAvailabilityPeriodExtension_init() internal
Extension initializer.
__setAvailabilityPeriodStart
function __setAvailabilityPeriodStart(uint32 availabilityPeriodStart) external virtual
Sets warper availability period starting time.
Name | Type | Description |
---|---|---|
availabilityPeriodStart | uint32 | Unix timestamp after which the warper is rentable. |
__setAvailabilityPeriodEnd
function __setAvailabilityPeriodEnd(uint32 availabilityPeriodEnd) external virtual
Sets warper availability period ending time.
Name | Type | Description |
---|---|---|
availabilityPeriodEnd | uint32 | Unix timestamp after which the warper is NOT rentable. |
__availabilityPeriodStart
function __availabilityPeriodStart() external view virtual returns (uint32)
Returns warper availability period starting time.
Name | Type | Description |
---|---|---|
[0] | uint32 | Unix timestamp after which the warper is rentable. |
__availabilityPeriodEnd
function __availabilityPeriodEnd() external view virtual returns (uint32)
Returns warper availability period ending time.
Name | Type | Description |
---|---|---|
[0] | uint32 | Unix timestamp after which the warper is NOT rentable. |
__availabilityPeriodRange
function __availabilityPeriodRange() external view virtual returns (uint32 availabilityPeriodStart, uint32 availabilityPeriodEnd)
Returns warper availability period.
Name | Type | Description |
---|---|---|
availabilityPeriodStart | uint32 | Unix timestamp after which the warper is rentable. |
availabilityPeriodEnd | uint32 | Unix timestamp after which the warper is NOT rentable. |
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)
_setAvailabilityPeriods
function _setAvailabilityPeriods(uint32 availabilityPeriodStart, uint32 availabilityPeriodEnd) internal
Stores warper availability period.
_availabilityPeriods
function _availabilityPeriods() internal view returns (uint32 availabilityPeriodStart, uint32 availabilityPeriodEnd)
Returns warper availability period.