Skip to main content

IPluginRegistry

Git Source

Functions

updatePlugin

This function is restricted to the owner of the contract.

Updates the allowed status of a plugin.

Emits no events.

function updatePlugin(address plugin, bool allowed) external;

Parameters

NameTypeDescription
pluginaddressThe address of the plugin to be updated.
allowedboolA boolean value indicating whether the plugin should be allowed (true) or disallowed (false).

isPluginAllowed

Checks if a plugin is allowed.

This function is a view function and does not alter state.

function isPluginAllowed(
address plugin
) external view returns (bool);

Parameters

NameTypeDescription
pluginaddressThe address of the plugin to check.

Returns

NameTypeDescription
<none>boolA boolean value indicating whether the plugin is allowed (true) or disallowed (false).