ComBoox - White Paper
  • πŸ‘‹Welcome to ComBoox!
  • πŸ›οΈSystem Overview
    • ⌨️Overview
      • βš οΈβ€œPain Points” of Corporate Governance
      • πŸ’‘Blockchain Solution
      • πŸ’°Tokenization and Company Evaluation
      • ✨Features and Advantages
    • πŸ–₯️Computational Control Model
    • πŸ—οΈSystem Architecture
    • 🚷Identification and Access Control
    • πŸ“Templates and Version Control
    • πŸ’°CBP and Economic Model
    • πŸ’ΈFinancial Records
    • ☝️Key Legal Issues
    • πŸ₯‡Software License
  • πŸ•ΉοΈOperation Guide
    • πŸ›£οΈGet Start !
    • βœ’οΈDraft SHA
    • πŸ—³οΈPut Director On Board
    • πŸ—žοΈInvest And Trade Shares
  • πŸ“šTechnical Brochure
    • 🌻Key Objects
      • πŸ—žοΈShare and SharesRepo
      • πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§Member and MembersRepo
      • πŸ’ΊPosition and OfficersRepo
      • πŸ—³οΈMotion and MotionsRepo
        • ✍️DelegateMap
        • πŸ—³οΈBallot and BallotsBox
      • πŸ›οΈDeal and DealsRepo
        • πŸ”„Swap and SwapsRepo
      • πŸ“ˆOrder and OrdersRepo
      • πŸ“‘Pledge and PledgesRepo
      • βš–οΈOption and OptionsRepo
      • πŸ“Rule and RulesParser
      • 🍡Anti-Dilution
      • πŸ”Lock Up
      • 🚜Drag / Tag Along
      • πŸ›ΈPut / Call Options
    • πŸ› οΈStructure and Components
      • ⏱️Checkpoints
      • 🏁TopChain
      • πŸ₯‡GoldChain
      • πŸ”€EnumerableSet
      • πŸ”„Condition and ConsRepo
      • πŸ”HashLock and LockersRepo
      • πŸ–‹οΈSignature and Sigpage
      • πŸ“‚File and FilesRepo
      • πŸ—„οΈDoc and DocsRepo
    • πŸ‘¨β€πŸš€Identity and Verification
      • 😜Role and RolesRepo
      • 🚷Access Control Contract
      • 🦸User and UsersRepo
    • πŸ„β€β™€οΈBehaviors and Process
      • 🀝Share Transaction
Powered by GitBook
On this page
  • Function and Usage
  • Members and Attributes
  • Modifier API
  • Query API
  • Source Code
  1. Technical Brochure
  2. Identity and Verification

Access Control Contract

PreviousRole and RolesRepoNextUser and UsersRepo

Last updated 1 year ago

Function and Usage

Access control contract is a component smart contract for writing operation access control at the smart contract's level, and all smart contracts in the system inherit its members, attributes and methods. Based on the roles repo, the access control contract adds three special roles, namely, direct bookkeeper, register center and general bookkeeper, which provide identity verification and access control tools through a series of modifier interfaces to control specific writing operation functions at the contract level.

Specifically, the register contract directly applies access control contract modifiers that require a specific number of sub-bookkeeper to access specific writing instructions functions; while all writing instructions functions of sub-bookkeeper require that only the direct bookkeeper can access, and their direct bookkeepers are configured as general bookkeepers. This control method allows the system to strictly limit the routing of writing instructions within the system, ensuring that the commercial and legal arrangement can be strictly realized.

Members and Attributes

Members and Meaning of Access Control Contracts

Members
Commercial and Legal Meaning

_ATTORNEYS

Attorney Role group Name (bytes32).

_dk

Direct bookkeeper account address.

_rc

Register Contract API.

_gk

General bookkeeper contract API.

Modifier API

Modifier
Commercial and Legal Meaning

onlyOwner

Only the owner defined in the roles repo can access.

onlyDK

Only the direct bookkeeper defined in the Roles Repo can access.

onlyGC

Only General Counsel (i.e. bookkeeper of the Attorney Role Group as defined in the roles repo) can access.

onlyKeeper

Only bookkeeper (Direct bookkeeper and Sub-bookkeeper registered in the general bookkeeper contract) can access.

onlyAttorney

Only members of the Attorney Role Group defined in the Roles Repo can access.

attorneyOrKeeper

Only attorneys or bookkeepers can access.

Query API

getOwner

Query the owner's account address.

getDK

Query the account address of the direct bookkeeper.

isFinalized

Query whether the state of contract is "finalized".

getRoleAdmin

Query the bookkeeper account address with a specific role.

hasRole

Query the account address with a specific role.

Source Code

|

πŸ“š
πŸ‘¨β€πŸš€
🚷
😜Role and RolesRepo
Ownable
AccessControl