A Smart Framework for Smart Contracts - The Five Types Model

in #ethereum7 years ago

A Smart Framework for Smart Contracts

Solitidy is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed to target the Ethereum Virtual Machine (EVM).

The Five Types Model

The design used here is the 'Five Types Model' publicised by Eris Industries.

Five Types Model Smart Contract

Here the approach taken is completely different. Categorise the contracts into following categories:

  • Database Contracts
  • Controller Contracts
  • Contracts Managing Contracts
  • Utility Contracts
  • Application Logic Contracts

We have 2 database contracts which allow their respective controllers to write, update and get data.

  • PermssionDB
  • BankDB.

We have 2 controller contracts which interact with the storage (one or more than one) and can be advanced (do batch read/write)

  • PermissionController
  • BankController

The controller with fund manager function as application logic contracts

Check the source code of this model on the Github link

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 62007.73
ETH 2389.39
USDT 1.00
SBD 2.49