Skip to main content

Periodic PCO Parameters

IPeriodicPCOParamsInternal

LicensePeriodSet

event LicensePeriodSet(uint256 licensePeriod)

FeeNumeratorSet

event FeeNumeratorSet(uint256 feeNumerator)

FeeDenominatorSet

event FeeDenominatorSet(uint256 feeDenominator)

IPeriodicPCOParamsReadable

licensePeriod

function licensePeriod() external view returns (uint256)

Get license period

feeNumerator

function feeNumerator() external view returns (uint256)

Get fee numerator

feeDenominator

function feeDenominator() external view returns (uint256)

Get fee denominator

IPeriodicPCOParamsWritable

setLicensePeriod

function setLicensePeriod(uint256 _licensePeriod) external

Set license period

setFeeNumerator

function setFeeNumerator(uint256 _feeNumerator) external

Set fee numerator

setFeeDenominator

function setFeeDenominator(uint256 _feeDenominator) external

Set fee denominator

PeriodicPCOParamsInternal

_initializeParams

function _initializeParams(uint256 licensePeriod, uint256 feeNumerator, uint256 feeDenominator) internal

Initialize parameters

_setPCOParameters

function _setPCOParameters(uint256 licensePeriod, uint256 feeNumerator, uint256 feeDenominator) internal

Set PCO parameters

_isInitialized

function _isInitialized() internal view returns (bool)

Check if initialized

_licensePeriod

function _licensePeriod() internal view returns (uint256)

Get license period

_setLicensePeriod

function _setLicensePeriod(uint256 licensePeriod) internal

Set license period

_feeNumerator

function _feeNumerator() internal view returns (uint256)

Get fee numerator

_setFeeNumerator

function _setFeeNumerator(uint256 feeNumerator) internal

Set fee numerator

_feeDenominator

function _feeDenominator() internal view returns (uint256)

Get fee denominator

_setFeeDenominator

function _setFeeDenominator(uint256 feeDenominator) internal

Set fee denominator

PeriodicPCOParamsStorage

Layout

struct Layout {
bool isInitialized;
uint256 licensePeriod;
uint256 feeNumerator;
uint256 feeDenominator;
}

layout

function layout() internal pure returns (struct PeriodicPCOParamsStorage.Layout l)

PeriodicPCOParamsFacet

Params store for periodic PCO

COMPONENT_ROLE

bytes32 COMPONENT_ROLE

initializePCOParams

function initializePCOParams(uint256 licensePeriod_, uint256 feeNumerator_, uint256 feeDenominator_) external

Initialize params

initializePCOParams

function initializePCOParams(address owner_, uint256 licensePeriod_, uint256 feeNumerator_, uint256 feeDenominator_) external

Initialize params with owner

setPCOParameters

function setPCOParameters(uint256 licensePeriod_, uint256 feeNumerator_, uint256 feeDenominator_) external

Set PCO parameters

licensePeriod

function licensePeriod() external view returns (uint256)

Get license period

setLicensePeriod

function setLicensePeriod(uint256 licensePeriod_) external

Set license period

feeNumerator

function feeNumerator() external view returns (uint256)

Get fee numerator

setFeeNumerator

function setFeeNumerator(uint256 feeNumerator_) external

Set fee numerator

feeDenominator

function feeDenominator() external view returns (uint256)

Get fee denominator

setFeeDenominator

function setFeeDenominator(uint256 feeDenominator_) external

Set fee denominator