GithubHelp home page GithubHelp logo

openship's Introduction

OpenShip

OpenShip is a smart contract for tracking the shipment of physical goods, allowing for peer-to-peer shipment networks. The contract Shippable.sol is located here

Inspiration

Moving physical things around the world is a fundamental activity that humans do. The complexity and risk of allowing random people deliver packages has typically restricted most commercial deliveries to be done by large organizations. Perhaps with the right incentives it can be possible to allow anyone to be paid for moving goods.

Imagine a universal routing protocol for physical packets.

What it does

This repository is a small website that demos how the smart contract works. A seller can elect to ship a product after a buyer agrees to buy the object and pay a shipping fee. The seller then "sells" the contract to a shipper, who has a time reward for shipping the item, but must offer a deposit while delivering the object. The contract enforces the time deadline by allowing the buyer to force the shipper to forfeit the deposit after the time limit is reached. This allows the seller to wait longer than they contracted to, or to allow an outside arbitrator to decide how the deposit is distributed.

Accomplishments that we're proud of

Coming up with a "Mechanism Design" that actually seemed reasonable at incentivising shippers to ship products in time. It also potentially provides an audit trail for later arbitration and insurance claims.

Installation

OpenShip requires Node.js v4+ to run, and specifically uses truffle for interacting with ethereum.

Install the dependencies and devDependencies and start the server.

$ git clone https://github.com/Rooke/openship
$ cd openship
$ npm install -d
$ node start run

Verify the deployment by navigating to your server address in your preferred browser.

127.0.0.1:3000

OpenShip requires a local ethereum node to run with an open RPC interface. It is recommended that you use ethereumjs-testrpc, mostly because we're not even sure the contract works properly.

$ npm install -g ethereumjs-testrpc
$ testrpc

This software was created for the 2017 EthWaterloo Hackathon

openship's People

Contributors

cadotte avatar larsnolden avatar oasisvali avatar rooke 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.