Giter Club home page Giter Club logo

dolomite.js's Introduction

Dolomite JS

Javascript library for interacting with the Dolomite Exchange API and Slate API

Install

npm install dolomite --save

Getting Started

// import packages
import exchange from 'dolomite/exchange';
import slate from 'dolomite/slate';

// configure them with your API keys
exchange.configure({ apiKey: 'EXCHANGE_API_KEY' });
slate.configure({ apiKey: 'SLATE_API_KEY' });

// make requests to the API
exchange.markets.getAll().then(markets => console.log(markets));
slate.wallets.getHoldings('0x0000000000000000000000000000000000000000')
  .then(holdings => console.log(holdings));

Development

Clone the repository and install npm, then install the dependencies

npm install

Start the Development Server which will automatically build your code for ES5 compliance and put it into the lib_dev directory

npm start

Run tests. Running npm start in a separate tab along with the tests is highly reccomended as this allows for live reloading

npm test

NOTE: if npm start or npm test are giving you trouble, you may have to globally install gulp with npm install -g gulp

Read more about developing services for the Dolomite Exchange Service in our Development Docs

Release

Increment the version in package.json and then run

npm run release

This will place the updated ES5 compliant code into the lib directory, which is the directory used by npm

dolomite.js's People

Contributors

zrubenst avatar aknuck 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.