func AssertHasAnyRole
ActionAssertHasAnyRole panics if the caller does not have any of the specified roles. Also panics if any of the roles do not exist.
AssertHasAnyRole panics if the caller does not have any of the specified roles. Also panics if any of the roles do not exist.
AssertIsAdmin panics if the caller is not admin. Used for admin-only functions.
AssertIsAdminOrGovernance panics if the caller is not admin or governance. Used for functions that require elevated privileges.
AssertIsAuthorized panics if the caller does not have the specified role. Also panics if the role does not exist.
AssertIsEmission panics if the caller is not emission. Used for emission-only functions.
AssertIsGovStaker panics if the caller is not governance staker. Used for governance staking functions.
AssertIsGovXGNS panics if the caller is not xGNS governance. Used for xGNS governance functions.
AssertIsGovernance panics if the caller is not governance. Used for governance-only functions.
AssertIsLaunchpad panics if the caller is not launchpad. Used for launchpad-only functions.
AssertIsPool panics if the caller is not pool. Used for pool-only functions.
AssertIsPosition panics if the caller is not position. Used for position-only functions.
AssertIsProtocolFee panics if the caller is not protocol fee. Used for protocol fee management functions.
AssertIsRouter panics if the caller is not router. Used for router-only functions.
AssertIsStaker panics if the caller is not staker. Used for staker-only functions.
AssertIsUser panics if the caller is not a user realm. Used to ensure calls come from user accounts, not other contracts.
AssertIsValidAddress panics if the provided address is invalid.
GetRoleAddresses returns a copy of all role addresses.
IsAuthorized checks if caller has the specified role.
Parameters:
Returns true if authorized, false otherwise.
RemoveRole removes a role from the system.
Parameters:
Only callable by RBAC contract.
SetRoleAddress sets or updates a role's address. Creates the role if it doesn't exist, updates it if it does.
Parameters:
Only callable by RBAC contract.