Methods
Methods
The operations that can be performed on the Organization
contract are listed below.
Read Operations
Pass a Component address in this function for it to retrieve its key.
Pass a key in this function for it to retrieve the array of the Component addresses corresponding to the key's history.
Pass multiple keys in this function for it to retrieve, for each key, the array of the addresses of the Components corresponding to the key's history.
Pass a Component key in this function for it to retrieve the Component's address.
Pass multiple Component keys in this function for it to retrieve, for each key, its address.
Pass a Component address in this function for it to retrieve whether the address corresponds to an active Component (true) or an inactive one (false).
Pass a key in this function for it to retrieve whether the key corresponds to an active Component (true) or an inactive one (false).
Write Operations
Pass a component
struct to add it to a Organization. If the key passed in the struct is already attached to a Component, that Component will be replaced with the new one.
The output function returns the address of the new Component.
Pass multiple component
structs to add them to a Organization. If a key passed in a struct is already attached to a Component, that Component will be replaced with the new one.
The output function returns the addresses of the new Components.
This function allows an authorized Component to ask an Organization to call another contract (address location
), passing specific parameters (payload
). If the contract sends the Organization some tokens etc., a restReceiver
can be specified to receive them. The Organization
uses a call
function to perform the interaction with the smart contract (location).
Last updated