Smart Raise

Smart Raise

  • Docs
  • API
  • User Guide (de)

›RBAC

DISCOVERY

  • Discovery

PAYOUT

  • PayoutApproval
  • Refundable

PROJECT

  • Content
  • PhaseSaver
  • Phases
  • ProjectInfo
  • ProjectStatus
  • StateMachine

RBAC

  • Auditor
  • RBAC
  • RbacSmartRaise
  • Roles

SUPPORTERS

  • FundingStatus
  • Payinable
  • Supportable
  • SupportableStatistics

UNCATEGORIZED

  • Smartraise

Roles

library Roles

Library for managing addresses assigned to a Role. See RBAC.sol for example usage.

Source: rbac/Roles.sol
Author: Francisco Giordano (@frangio)

Index

  • add
  • check
  • has
  • remove

Reference

Functions

  • add

    function add(Role role, address addr) internal

    Give an address access to this role.

    Parameters:
    role - Role
    addr - address
  • check

    function check(Role role, address addr) internal view

    Check if an address has this role // reverts.

    Parameters:
    role - Role
    addr - address
  • has

    function has(Role role, address addr) internal view returns (bool)

    Check if an address has this role.

    Parameters:
    role - Role
    addr - address
    Returns:
    bool
  • remove

    function remove(Role role, address addr) internal

    Remove an address' access to this role.

    Parameters:
    role - Role
    addr - address
← RbacSmartRaiseFundingStatus →
Copyright © 2019 Zoltan Vandor