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
  • Share
  • Share Class
  • Shares repo
  • Query API
  • Source Code
  1. Technical Brochure
  2. Key Objects

Share and SharesRepo

PreviousKey ObjectsNextMember and MembersRepo

Last updated 1 year ago

Function and Usage

is the most crucial public library in the system, which is utilized to track the creation, update, transfer and cancellation of shares.

Members and Attributes

The share library consists of two objects: shares and share class, as well as a "number->object" mapping table composed of these two key objects.

Share

The share consists of two main attributes, Head and Body. Head mainly records the unchangeable attributes since created, e.g., share number, share class, etc.; Body mainly records the attributes that may change dynamically during the share transaction, e.g., the par value of a share, the paid-in contribution, and clean paid-in contribution.

Attribute List of Shares

Attribute
Commercial and Legal Meaning

class

The share class, which can be used to distinguish different financing rounds, different shareholders’ equity, and possibly different voting weights.

seqOfShare

Share Sequence Number.

preSeq

Sequence number of underlying shares. Practically, underlying shares will be canceled and the identical shares will be issued to the buyer during a share transaction, and the sequence number of the transferred shares will be recorded in preSeq of newly-created shares.

issueDate

The date of new share issuance or the delivery date of share transactions.

shareholder

The user number of shareholder.

priceOfPaid

The unit price of the paid-in contribution, which reflects the paid-in share amount in a share transaction, and reflects the premium of the paid-in share amount of the company in a capital increase transaction.

priceOfPar

The unit price of the subscribed contribution, which reflects the unpaid subscribed contribution in a share transaction, and reflects the premium of subscribed and unpaid shares of the company.

votingWeight

Voting weight is a percentage. Each subscribed share represents 100 times the total of voting rights. For example, "100" means per dollar of subscribed shares represent one vote; "1800" means per dollar of subscribed shares represent 18 vote.

payInDeadline

The deadline of paid-in subscribed contribution. It is a 48-bit timestamp with millisecond precision.

par

The subscribed share amount, which may remain some subscribed but unpaid contribution.

paid

paid-in share amount is the total amount actually paid.

cleanPaid

Clean paid-in contribution, which is the amount without any encumbrances such as pledge and assignments.

state

The state of share.

para

Pre-set attributes.

Share Class

Share Class is a list of share numbers summarized in the share mapping by share class and the aggregated information for the contribution amount in that share class.

Shares repo

Shares repo consists of two mappings, one is a share mapping for "share number -> share object" and a class mapping for "share class number -> share class object".

Query API

The query API well reflects the function and usage of the shares repo in the overall system, as shown in the table below.

API
Function and Usage

counterOfShares

Get the current value of the share number counter.

counterOfClasses

Get the current value of the share class number counter.

isShare

Verify the existence of a specific share number.

getShare

Get the share object for the specific number.

getQtyOfShares

Get the total number of current share objects.

getSeqListOfShares

Get the list of shares sequence numbers.

getSharesList

Get a list of all shares objects.

getQtyOfSharesInClass

Get the total number of shares in a specific share class.

getSeqListOfClass

Get a list of share numbers for a specific share class.

getInfoOfClass

Get aggregated information for a specific share class.

getSharesOfClass

Get a list of all share objects for a specific share class.

Source Code

πŸ“š
🌻
πŸ—žοΈ
SharesRepo
SharesRepo
Share Object Structure
Share Class Object Structure
Shares repo structure