Skip to content
The consensus computer driven database framework
JavaScript Solidity Other
Branch: master
Clone or download
Latest commit 81bce49 Jun 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci fix readme pics Jun 20, 2019
.github/ISSUE_TEMPLATE Edit contributing link at gitcoin issue template Jun 1, 2018
client disable transferOwnership menu item when db fee > 0 Jan 28, 2019
contracts
docs fix images Jun 20, 2019
img fix images Jun 20, 2019
migrations Small refactoring, deleted event- debugger from contract Jan 28, 2019
test Updated interfaces, refactoring of whitespaces, added new data index … Jan 25, 2019
.gitattributes Merged branch 954_basic_tests_for_registry May 6, 2018
.gitignore Updated interfaces, refactoring of whitespaces, added new data index … Jan 25, 2019
.soliumignore Huge refactoring, added interfaces, fixed tokens ID enumeration, crea… Oct 1, 2018
.soliumrc.json Updated interfaces, refactoring of whitespaces, added new data index … Jan 25, 2019
CHANGELOG.md Circle CI: Update Changelog Mar 1, 2019
CONTRIBUTING.md Updated docs Oct 10, 2018
LICENSE Improve license Jan 6, 2019
README.md fix readme pics Jun 20, 2019
infura_deploy_sample.json Added tests for chaingear and database, cleaned client for now Dec 5, 2018
openzeppelin-solidity Fixed tests for chaingear Dec 4, 2018
package.json Updated fee splitting logic with tests, refactoring, added events, up… Jan 24, 2019
script.sh change docker image Jun 20, 2019
truffle.js Small refactoring, deleted event- debugger from contract Jan 28, 2019

README.md

chaingear

The consensus computer driven database framework

Current state: 0.1 Euler Chaingear's release for EVM with paper.

Ethereum Token ERC721

Try EVM's Chaingear rigth now!

Chaingear Dapp (Mainnet, Kovan, Rinkeby) accessible directly from IPFS: QmQmQKkPFqLS4iNiicvAqx6aJtRpYookK8iEZjojcfEqib

Note: Best option to use CYB web3 browser with .chaingear dapp, all contracts code verified with Etherscan.

Whitepaper

Chaingear - The consensus computer driven database framework

Principles of Chaingear

Chaingear is a set of smart contracts which operating in consensus computer with following principles:

  1. Databases creates by user createDatabase call for Chaingear witch mints database-linked NFT token for user and deploys database with support of CRUD+TF operations. Token controls adminship of database.
  2. Admin initializes database with given table/tables data schema.
  3. Database admin may set user permissions for entry creation and fee for adding.
  4. Each entry in database linked to NFT token (primary key) which grants a set of rights for token-entry operation as UPDATE/DELETE and TRANSFER/FUND.
  5. Chaingear for given platform acts as Consensus Computer Driven Database as a Service
  6. Application specific business logic should be available to operate on top of database/databases.

Chaingear on EVM, 0.1 Euler PoC

Chaingear

  • Chaingear is database of database which allow deploy new databases from there and creates an associated token for adminship.
  • Chaingear allow deploys different types of databases with defined functionality with connects with databases builders.
  • Database Builder is a fabric of databases of given type.
  • Databases may have their unique code base as an extension to the basic database.
  • Database-token may be transferred, sold/traded alongside with their right adminship.
  • Chaingear have fees for database creation.
  • Chaingear have benefitiaries which may claim collected fees proportional to their shares.

Database

  • A database is a smart contract which defines NFT tokens linked to entries. User creates database with given name and token symbol for entries.
  • After deploy database admin initializes database with data schema table/tables and this allows them or/and other users to create a systematic collection of data, where rights to operations with entry defined by entry-token ownership.
  • Entries data lives in Schema contract.
  • Each entry may be publicly funded, an entry-token owner may claim collected funds.
  • Database admin may set policy for entry creation: {OnlyAdmin, Whitelist, AllUsers} and fee for the entry-token creation and next claim fees.
  • Also admin may set multiple database's beneficiaries which may claim collected fees proportional to their shares.

Chaingear UI (web3 DApp for EVM's Chaingear)

  1. Web3/Metamask/Truffle/IPFS based
  2. Full Chaingear control interface
  3. Full custom Database control interface
  4. Schema smart-contract code generation on client
  5. Database ABI saves in IPFS

Contracts Overview

Configuring and deploying

General Chaingear/Database pipeline

general_pipeline

web3 Application

General

chaingear-general database-token

Database

database-admin entry-token

Database Deploy and Schema designer

database schema-gen

Join Us On Telegram

If you're interested in using or developing Chaingear, come join us on Telegram

Gitcoin Tasks

Built With

Prerequisites:

Authors

Originally created by cyber•Congress

License

Cyber License

You can’t perform that action at this time.