Giter Club home page Giter Club logo

contracts's Introduction

WiBX

Build Status Coverage Status

WiBX is an Ethereum and Hyperledger Fabric DAPP. The first utility token with mass usability in the exchange of products and services. The best in the NFC (Near Field Communication) wich is a mobile proximity payments transfer method model. The most flexible in his assignments.

How it works technically

WiBX is a generic crypto-currency, designed for retailers to receive payment and retain their customers. In order to do this, WiBX needs to provide a solid and fast platform for immediate and reliable transactions.

All tokens are issued in the Ethereum network through the smart contract WibxToken and are tracked within the private network Hyperledger Fabric, through the chaincode org.wiboo.wibxp.financial, which is, the Hyperledger Fabric performing a fast network, processing the information well faster than Ethereum mainnet.

This implies having a module called BCH (Blockchain Handler) that acts on both networks, tracing one blockchain to another and vice versa.

How will BCH (Blockchain Handler) manage these transactions?

There are two types of addresses:

  • Personal address: Your normal Ethereum address. You can manipulate your WiBX tokens in a free way without the slightest interference from the BCH module.

  • Custody address: This type of wallet is used totally restricted for the internal operations of the WiBOO mall platform and will not allow any type of creation or external manipulation; these tokens will be administered by the BCH in full. Those tokens could be extracted to a personal address, however it will be possible just via the WiBOO marketplace.

Useful WiBX Network Addresses

  • 0x4261cDfEA93118677c04f880380d9b86b79C9b6a: The BCH system coordinator.
  • 0x194d1bA9EDb4Bd849CA844870C05AC5cFB632b14: Tax collection account.
  • 0x02F61ee95e2E7497Bfe4FAfE797ad97A4e8eFe33: WibxToken contract owner account.

How to Install

Ethereum smart contract

Inside the wibx directory, contains a Truffle Framework project. So you can do all Truffle operations.

Installation of local dependencies:

$ yarn

Deployment

Configure your network node inside the truffle.js configuration file and run the migration:

$ yarn migrate

Testing

You need to keep your Ganache (it is possible, instead to use Ganache CLI if you like) node up and running on port 8545. It is recommended to have 100+ ETH in the first account to run all the test cases smoothly.

$ yarn test

Or you can run it automatically:

$ yarn build:test

Coverage

To get coverage statistics, just run the coverage script:

$ yarn build:coverage

Solidity version: v0.5.0+commit.1d4f565a.

Hyperledger Fabric Chaincode

Inside the wibx-private directory, contains a generator-hyperledger-composer project.

To deploy it, make sure that you have the Hyperledger Composer installed and running in your computer. The CLI tools are needed as well.

There is a script that do the deployment job for you.

$ sh publish-blockchain.sh

License

WiBX contracts are released under the Apache 2.0 License.

contracts's People

Contributors

edizonbasseto avatar faelperetta avatar gabrielbiga avatar luizcoura avatar mateusgabriel3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.