Interface for managing polymath feature switches (IFeatureRegistry.sol)

View Source: contracts/interfaces/IFeatureRegistry.solโ€‹

โ†˜ Derived Contracts: FeatureRegistryโ€‹

IFeatureRegistry

Events

event ChangeFeatureStatus(string _nameKey, bool _newStatus);

Functions

setFeatureStatus

โคฟ Overridden Implementation(s): FeatureRegistry.setFeatureStatusโ€‹

change a feature status

function setFeatureStatus(string _nameKey, bool _newStatus) external nonpayable

Arguments

Name

Type

Description

_nameKey

string

is the key for the feature status mapping

_newStatus

bool

is the new feature status

getFeatureStatus

โคฟ Overridden Implementation(s): FeatureRegistry.getFeatureStatusโ€‹

Get the status of a feature

function getFeatureStatus(string _nameKey) external view
returns(hasFeature bool)

Returns

bool

Arguments

Name

Type

Description

_nameKey

string

is the key for the feature status mapping