GeneralDepartment
Inherits: Department
Author: Daniel Yamagata & Naveen Ailawadi
A simple department which solely inherits the base functionality
Functions
constructor
init
Standardized init function that all departments must inherit
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the treasury |
|
| The initial signers of the department's multisig |
|
| The initial threshold of the department's multisig |
|
| The address of the guard contract, which should be deployed atomically with the department |
|
| The address of the department's parent |
|
| Any additional parameters that the department needs to initialize |
__GeneralDepartment_init
Sets the 'departmentName' and calls the department's internal init function. The 'name' of the contract will be the concatenation of the company name, the department name, and " Department". For example, if the company name is "Foo" and 'departmentName' is "Bar", the contract name will be "Foo Bar Department".
coreId
Returns the coreId of the implementation as a bytes32
The core ID is the keccak256 hash of the contract name followed by a version under the following syntax: "mezzanine.coreId.ContractName.vX" For example, the core ID of the 2nd version of the Treasury would be the following: keccak256(abi.encodePacked("mezzanine.coreId.Treasury.v2"))
version
Returns the version of the implementation as a uint256
Last updated