πŸ“Templates and Version Control

  1. Cloning Technology and Delegate Call Mechanism

ComBoox extensively adopts cloning technology of smart contracts, i.e. using the data structures, functions and algorithms defined in the template contract to compute the variables of cloned contracts via delegate call mechanism. Comparing with copy contracts, this technology can greatly reduce the bytecode size and gas fees consumption of deploying contracts.

In addition, contract templates also adopts a lot of delegate call mechanism, i.e. leaving the definitions of data objects, methods and algorithms thereof in public libraries, which further reduced the size of the template contracts, as well as their deploying cost.

  1. Documents Mapping of Reg Center

Another important function of Reg Center is to register and manage the template contracts and their clones, for which Reg Center adopts two mappings. Users can query a document’s type, version, author, creator and creation date by its contract address, or, query a document’s address by its sequence number.

  1. Types of Template Contracts

Currently, there are totally 26 template contracts registered in Reg Center. When creating a new book-entry system for a company, or creating a new Shareholders Agreement or Investment Agreement, actually is deploying one or more clone contracts based on the templates.

No.TypeNo.Type

1

Register Of Constitution Keeper ("ROC Keeper")

11

Register of Constitution ("ROC")

2

Register Of Directors Keeper ("ROD Keeper")

12

Register of Directors ("ROD")

3

Bord Meeting Minutes ("BMM Keeper")

13

Meeting Minutes ("MM")

4

Register Of Members Keeper ("ROM Keeper")

14

Register of Members ("ROM")

5

General Meeting Minutes Keeper ("GMM Keeper")

15

Register of Agreements ("ROA")

6

Register Of Agreements Keeper

("ROA Keeper")

16

Register of Options ("ROO")

7

Register Of Options Keeper ("ROO Keeper")

17

Register of Pledges ("ROP")

8

Register Of Pledges Keeper ("ROP Keeper")

18

Register of Shares ("ROS")

9

Shareholders Agreement Keeper ("SHA Keeper")

19

List of Orders ("LOO")

10

List Of Orders Keeper ("LOO Keeper")

20

General Keeper ("GK")

21

Investment Agreement ("IA")

22

Shareholders Agreement ("SHA")

23

Anti-Dilution ("AD")

24

Lock-Up ("LU")

25

(Drag / Tag) Alongs ("DA / TA")

26

(Put / Call) Options ("OP")

27

List Of Projects ("LOP")

In ComBoox, the design model for setting corporate governance rules is very flexible. Changing the definition of a specific β€œrule” and its parsing function, the attributes’ composition of the rule will be changed; changing an API’s algorithm of a Bookkeeper, the conditions, procedures and consequences of a legal behavior will be revised. And, all these changing methods on the corporate governing rules and terms, can be implemented by means of developing and incorporating new contract templates into the system.

Any developer can develop contract templates. These templates can be incorporated into the system upon approval and will become new foundations for cloning contracts. When users call to clone contracts, Reg Center will deduct a certain amount of CBP from the caller's account and pay to the template author's account as license fees. The rate of such license fee, together with its promotion policies, can be set and adjusted by the template’s author at full discretion.

For detailed arrangements concerning the copyright and license fee, as well as CBP tokens and the economic model of the system, please see the relevant sections of this paper.

Source Code

Last updated