Code Monkey home page Code Monkey logo

dmbrb's Introduction

DMBRB

What is this?

DMBRB stands for Decentralized Market for Buying and Renting Books.

Why this project was created?

The purpose of this project is to demonstrate the possibility of upgrading the smart-contracts written using Solidity language. For this purpose are used the pattern that separates functionality of the program into three types of smart-contracts:

  • Storage - contains the data
  • Controller - executes bussiness logic of the program
  • Proxy - contain the addresses of the actual version of controller (and maybe storage) contracts

What tools did I use?

The following tools I did used:

  • Java 9 (v9.0.1)
  • Gradle (v4.3.1)
  • Atom and/or Remix IDE
  • Solc (solidity compiler, v0.4.19+commit.c4cbbb05.Linux.g++)
  • Truffle (v4.0.3)
  • Web3j (v3.2.0)
  • Testrpc (v4.1.3)

What was upgraded?

First of all, storage contracts were fully rewritten. The idea about storage was taken from ChronoBank project. Now all data stored in Storage, but organized in "crates". Access to the data is regulated by AccessManager.

Such as all data organized in "crates", the crates-contracts were created for it's managing.

Proxy contract already keeping not only the address of controller but also the addresses of "crates" and Storage contract.

How to test?

You should have Java, Gradle, Git and Testrpc. After installation, you need to clone this repository:

git clone https://github.com/finr1r/DMBRB.git

And run the tests:

gradle test

dmbrb's People

Contributors

dmytrokohut avatar

Watchers

James Cloos avatar

Forkers

xiaovc

dmbrb's Issues

Tests

Such as contracts are written it is possible now to write tests.

Solidity smart-contracts

The main part of the program is a smart-contracts wrote using Solidity language.
There are several patterns of smart-contract writing which will be used and some libraries.

Upgrading

The next stage is the upgrading of smart-contracts and tests.
For more efficiency, it is probably a good idea to change some code in Solidity for assembly code which consumes less gas than high-level Solidity.
After smart-contracts will be changed it is necessary to change the tests as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.