Giter Site home page Giter Site logo

dapp.js's Introduction

dapp.js

EXPERIMENTAL VERSION - Don't use on production

dapp.js is a JavaScript library & framework that provides a single, common abstraction interface of smart-contracts. Framework makes easy to build applications on top of Ethereum decentralized applications (DApps).

Features

Usage

Use NPM to install library:

npm install opencrypto-io/dapp.js

Include it:

const DApp = require('dapp.js')

Example:

const DApp = require('dapp.js')
const client = new DApp.client()

const service = await client.service('price-feed')
const value = await service.get('0x729D19f657BD0614b4985Cf1D82531c67569197B')
console.log('Current ETH/USD price:', value)

Or you can use promises:

client.service('price-feed').then(service => {
  service.get('0x729D19f657BD0614b4985Cf1D82531c67569197B')
    .then(value => console.log('Current ETH/USD price:', value))
})

Core Services

Id Name Status
eth Ethereum core functions in progress
ens Ethereum Name System (ENS) in progress
erc20 ERC-20 Tokens in progress
ds-value DSValue (DAppHub) in progress
dai Dai Stablecoin System in progress
price-feed Price Feed (MakerDAO) in progress
medianizer Medianizer (MakerDAO) planned
weth WETH Token planned
oasis OasisDEX (decentralized exchange) planned
0x 0x Protocol planned

Command-line interface (CLI)

npm i -g opencrypto-io/dapp.js     # Install CLI via NPM
dapp-cli -l                        # List available services
dapp-cli -h                        # Show help
dapp-cli ens lookup apt-get.eth    # Use 'ens' module for ENS lookup
dapp-cli ./your_service [..]       # Use your own service

Please follow dapp.js-cli for more informations.

Authors

License

MIT

dapp.js's People

Contributors

burningtree avatar

Stargazers

Evan Kozierachi avatar

Watchers

 avatar James Cloos avatar Evan Kozierachi 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.