Templates and Version Control
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.
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.
Types of Template Contracts
Currently, there are totally 34 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.
1
Register of Constitution Keeper
13
Meeting Minutes
25
Drag-Along & Tag-Along
2
Register of Directors Keeper
14
Register of Members
26
(Call / Put) Options
3
Board Meeting Minutes Keeper
15
Register of Agreements
27
List of Projects
4
Register of Members Keeper
16
Register of Options
28
Cashier
5
General Meeting Minutes Keeper
17
Register of Pledge
29
UsdLOO Keeper
6
Register of Agreements Keeper
18
Register of Shares
30
USD Keeper
7
Register of Options Keeper
19
List of Orders
31
UsdROM Keeper
8
Register of Pledge Keeper
20
General Keeper
32
UsdROA Keeper
9
Shareholders Agreement Keeper
21
Investment Agreement
33
UsdLOO Keeper
10
Lists of Orders Keeper
22
Shareholders Agreement
34
UsdROO Keeper
11
Register of Constitution
23
Anti-dilution
12
Register of Directors
24
Lock-up
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