Skip to main content

AddresslistVotingSetup

Description

The setup contract of the AddresslistVoting plugin.

Implementation

public function constructor

The contract constructor, that deploys the AddresslistVoting plugin logic contract.

constructor() public

external function prepareInstallation

Prepares the installation of a plugin.

function prepareInstallation(address _dao, bytes _data) external returns (address plugin, struct IPluginSetup.PreparedSetupData preparedSetupData)
InputTypeDescription
_daoaddressThe address of the installing DAO.
_databytesThe bytes-encoded data containing the input parameters for the installation as specified in the plugin's build metadata JSON file.
Output
pluginaddressThe address of the Plugin contract being prepared for installation.
preparedSetupDatastruct IPluginSetup.PreparedSetupDataThe deployed plugin's relevant data which consists of helpers and permissions.

external function prepareUninstallation

Prepares the uninstallation of a plugin.

function prepareUninstallation(address _dao, struct IPluginSetup.SetupPayload _payload) external view returns (struct PermissionLib.MultiTargetPermission[] permissions)
InputTypeDescription
_daoaddressThe address of the uninstalling DAO.
_payloadstruct IPluginSetup.SetupPayloadThe relevant data necessary for the prepareUninstallation. See above.
Output
permissionsstruct PermissionLib.MultiTargetPermission[]The array of multi-targeted permission operations to be applied by the PluginSetupProcessor to the uninstalling DAO.

external function implementation

Returns the plugin implementation address.

function implementation() external view returns (address)
OutputTypeDescription
0addressThe address of the plugin implementation contract.

The implementation can be instantiated via the new keyword, cloned via the minimal clones pattern (see ERC-1167), or proxied via the UUPS pattern (see ERC-1822).

© 2024