Methods
The operations that can be performed on the subDAOManager contract are listed below.
Read Operations
Pass a subDAO address and retrieve its key.
Pass a subDAO key and retrieve the array of the addresses corresponding to its history.
Pass multiple subDAO keys and retrieve, for each key, the array of the addresses corresponding to its history.
Pass a subDAO key and retrieve its address.
Pass multiple subDAO keys and retrieve, for each key, its address.
Pass a subDAO address and retrieve if it corresponds to an existing subDAO (true) or not (false).
Pass a subDAO key and retrieve if it corresponds to an existing subDAO (true) or not (false).
Write Operations
Pass a SubDAOEntry
struct to link it to, replace it in or un-link it from the subDAOManager.
To link, the key
parameter must be a new one that does not correspond to any other subDAO already registered in the subDAO Manager, and the location
must be passed as the smart contract address of the new subDAO.
To un-link, the key
parameter must be the one that corresponds to the subDAO you want to un-link, and the location
address must be passed as address(0)
.
To replace, the key
parameter must be the one that corresponds to the subDAO you want to replace; the location
must be passed as the contract address of the new subDAO; and the newHost
must be passed as the new host address of the replaced subDAO.
The output function returns the address of the newly linked subDAO.
You can pass multiple SubDAOEntry
structs to link them to, replace them in or un-link them from the subDAO Manager.
The output function returns the addresses of the new linked subDAOs.
See above for how to pass the parameters.
This function allows an authorized Component to ask the SubDAO Manager to call a SubDAO (bytes32 key
), passing specific parameters (payload
). If the SubDAO sends the SubDAO Manager some tokens etc., a restReceiver
can be specified to receive them. The SubDAO Manager uses a call
function to perform the interaction with the SubDAO smart contract (key
).
Last updated