Skip to content

_getPreparedSetupId ​

Function · src/framework/plugin/setup/PluginSetupProcessorHelpers.sol

Explained in: Install a plugin into a live DAO, The PluginSetupProcessor (PSP), Update a plugin

solidity
function _getPreparedSetupId(
    PluginSetupRef memory _pluginSetupRef,
    bytes32 _permissionsHash,
    bytes32 _helpersHash,
    bytes memory _data,
    PreparationType _preparationType
) pure returns (bytes32)

Returns an ID for prepared setup obtained from hashing characterizing elements.

security-contact: sirt@aragon.org

ParameterTypeDescription
_pluginSetupRefPluginSetupRefThe reference of the plugin setup containing plugin setup repo and version tag.
_permissionsHashbytes32The hash of the permission operations requested by the setup.
_helpersHashbytes32The hash of the helper contract addresses.
_databytesThe bytes-encoded initialize data for the upgrade that is returned by prepareUpdate.
_preparationTypePreparationTypeThe type of preparation the plugin is currently undergoing. Without this, it is possible to call applyUpdate even after applyInstallation is called.