Provides modifiers allowing contracts administered by the EndaomentAdmin contract to properly restrict method calls based on a given role. Also provides a utility function for validating string input arguments.
onlyAdmin checks that the caller is the EndaomentAdmin
adminContractAddress: is the supplied EndaomentAdmin contract address
onlyAdminOrRole checks that the caller is either the Admin or the provided role.
adminContractAddress: supplied EndaomentAdmin address
role: The role to require unless the caller is the owner. Permitted
roles are ADMIN (6), ACCOUNTANT (2), REVIEWER (3), FUND_FACTORY (4) and ORG_FACTORY(5).
Checks that the caller is either a provided address, admin, or role.
allowedAddress: An exempt address provided that shall be allowed to proceed.
adminContractAddress: The EndaomentAdmin contract address.
role: The desired IEndaomentAdmin.Role to check against. Permitted
roles are ADMIN (6), ACCOUNTANT (2), REVIEWER (3), FUND_FACTORY (4), and ORG_FACTORY(5).
Returns true if two strings are equal, false otherwise
s1: First string to compare
s2: Second string to compare