ProtocolTokenCommon
Inherits: AppAdministratorOnly, IApplicationEvents, IZeroAddressError, IOwnershipErrors, IIntegrationEvents
Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett
This contract contains common variables and functions for all Protocol Tokens
State Variables
newAppManagerAddress
appManagerAddress
handlerAddress
appManager
Functions
proposeAppManagerAddress
This function proposes a new appManagerAddress that is put in storage to be confirmed in a separate process
Parameters
Name | Type | Description |
---|---|---|
_newAppManagerAddress | address | the new address being proposed |
confirmAppManagerAddress
This function confirms a new appManagerAddress that was put in storage. It can only be confirmed by the proposed address
getAppManagerAddress
Function to get the appManagerAddress
AppAdministratorOnly modifier uses appManagerAddress. Only Addresses asigned as AppAdministrator can call function.
getHandlerAddress
This function returns the handler address
Returns
Name | Type | Description |
---|---|---|
<none> | address | handlerAddress |
connectHandlerToToken
This function does not check for zero address. Zero address is a valid address for this function’s purpose.
Function to connect Token to previously deployed Handler contract
Parameters
Name | Type | Description |
---|---|---|
_deployedHandlerAddress | address | address of the currently deployed Handler Address |