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
  • Functions and Usages
  • Members and Attributes
  • Ballots
  • Case
  • Query API
  • Source Code
  1. Technical Brochure
  2. Key Objects
  3. Motion and MotionsRepo

Ballot and BallotsBox

PreviousDelegateMapNextDeal and DealsRepo

Last updated 1 year ago

Functions and Usages

is a public library used by the system to track and record the voting process and the voting results on specific motions.

Members and Attributes

The main members of the ballots box include the ballots and ballots box objects, as well as the ballot mapping which adopts the structure of "user number -> ballot" and the ballots box mapping which adopts the structure of "Attitude Number -> ballots box".

Ballots

Attribute List of Ballot

Attribute
Commercial and Legal Meaning

acct

User number of voters.

attitude

Voting attitude. 1- Support, 2-Against, 3-Abstain.

head

The number of users delegated.

weight

The voting weight value delegated.

sigDate

voting date.

blocknumber

The block number of voting.

sigHash

Signature hash value (for the CID index number of the scanned copy of the written ballot uploaded to the IPFS network).

principals

The array of delegate user numbers of the voter.

Case

Case is a query mapping formed by filtering and summarizing the ballot mapping by voting attitudes, where No. 0 case is a aggregated mapping of all voting attitudes.

Attribute List on Case

Attribute
Commercial and Legal Meaning

sumOfHead

The aggregated number of delegate users.

sumOfWeight

The aggregated number of voting weights.

voters

The array of user numbers of the voters.

principals

The array of delegate user numbers of the voter.

Box

Query API

The query API well describes the function and usage of the ballots box in the whole system, as shown in the table below.

API
Commercial and Legal Meaning

isVoted

Query whether the user with a specific number has voted on a specific numbered motion.

isVotedFor

Query whether the vote of a user with a specific number on a specific numbered motion is a specific attitude

getCaseOfAttitude

Get voting case of specific attitudes. No. 0 is a aggregated data of all votes.

getBallot

Get ballot objects of specific users.

Source Code

πŸ“š
🌻
πŸ—³οΈ
πŸ—³οΈ
BallotsBox
BallotsBox
Ballot structure
Case structure
Box structure