Skip to content

ConfigurableRentalPeriodExtension

ConfigurableRentalPeriodExtension

_RENTAL_PERIOD_SLOT

bytes32 _RENTAL_PERIOD_SLOT

Warper rental period. It contains both - the min and max values (uint32) - in a concatenated form.

_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

_ConfigurableRentalPeriodExtension_init

function _ConfigurableRentalPeriodExtension_init() internal

Extension initializer.

supportsInterface

function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)

__setMinRentalPeriod

function __setMinRentalPeriod(uint32 minRentalPeriod) external virtual

Sets warper min rental period.

Name Type Description
minRentalPeriod uint32 New min rental period value.

__setMaxRentalPeriod

function __setMaxRentalPeriod(uint32 maxRentalPeriod) external virtual

Sets warper max rental period.

Name Type Description
maxRentalPeriod uint32 New max rental period value.

__minRentalPeriod

function __minRentalPeriod() external view virtual returns (uint32)

Returns warper minimal rental period.

Name Type Description
[0] uint32 Time is seconds.

__maxRentalPeriod

function __maxRentalPeriod() external view virtual returns (uint32)

Returns warper maximal rental period.

Name Type Description
[0] uint32 Time is seconds.

__rentalPeriodRange

function __rentalPeriodRange() external view returns (uint32 minRentalPeriod, uint32 maxRentalPeriod)

Returns warper rental period range.

Name Type Description
minRentalPeriod uint32 The minimal amount of time the warper can be rented for.
maxRentalPeriod uint32 The maximal amount of time the warper can be rented for.

_setRentalPeriods

function _setRentalPeriods(uint32 minRentalPeriod, uint32 maxRentalPeriod) internal

Stores warper rental period.

_rentalPeriods

function _rentalPeriods() internal view returns (uint32 minRentalPeriod, uint32 maxRentalPeriod)

Returns warper rental periods.