Giter VIP home page Giter VIP logo

weshare's Introduction

weShare

Concept

A minimal, frontend-only decentralized application (Dapp) running on the Ethereum blockchain

dev workflow

redeploy all smart contracts

./testrpc 1> testrpc.log
truffle migrate --reset
python -m SimpleHTTPServer

use the same addresses when restarting testrpc ./testrpc --accounts=3 --deterministic --mnemonic="doom and destruction" 1> testrpc.log & resulting in private keys:

Available Accounts
==================
(0) 0x425a9fc174c4d5ecbfd6798bd08884f0742a8b3d //Passenger
(1) 0x285e2ed5c93f237927840070ab4ff6da36999115 //Driver
(2) 0x0737152f6889103bf923b0d87bac0ee5cae901e4

Private Keys
==================
(0) be353e8dc9ae5e8e5e2b79ebfbf1aa030924faa69f8c49c8aac83e99d8f125f1
(1) fa058b06d8bf72c69594e84ed0832398f81140b7b12a97d12e0e7b72c5d457a5
(2) 7024a6710ce0fa9509ba2f25acec904cce7d8a609cbbc09ef2c4e801af57a750

HD Wallet
==================
Mnemonic:      doom and destruction
Base HD Path:  m/44'/60'/0'/0/{account_index}

Contracts

We build a Contract for every user. If two users match together, the contracts work like state machines whicht communicate together and push them into new states. Therefore in the end the passenger transfers an amount of money to the driver. So in the beginning a driver is looking for a passanger to participate his drive. Then you got two accepts, one for the driver one for the passenger. There's no error handling if one does not accept at the moment, but if both accept the two contracts begin to interact together. When they arrive they send an acknowledge, same like before if both acknowledge the transfer gets triggered.

weshare's People

Contributors

chaoos avatar benjaminaaron avatar

Watchers

James Cloos 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.