Coder Social home page Coder Social logo

dex-js-1's Introduction

npm version   Build Status   Coverage Status

Develop:   Build Status   Coverage Status

Gnosis Protocol JS

Gnosis Protocol JS it's library, with typescrupt support for Gnosis Protocol.

Gnosis Protocol introduces a new, fully decentralized exchange mechanism for ERC20 tokens with the following properties:

  • Batch auctions
  • Multidimensional order books with ring trades
  • Uniform clearing prices in every batch

This library provides:

  • Typescrypt version of the contracts of Gnosis Protocol
  • Some handy utils and constants

Usage

# Using yarn
yarn add @gnosis.pm/dex-js --save

#Alternatively
npm install @gnosis.pm/dex-js --save

Import the contract:

import { BatchExchangeContract } from ' @gnosis.pm/dex-js'

// Instanciate the smart contract
const web3 = new Web3()
const batchExchangeContract = new BatchExchangeContract({ web3 })

// Alternativelly provide the address
const batchExchangeContract = new BatchExchangeContract({ web3, address: '0x89593E017D4A88c60347257DAfB95384a422da09' })

Issues

If you find any issue, or you want to request a feature use https://github.com/gnosis/dex-js/issues

Pull requests are welcomed and are the best way to suggest new features.

Collaborate

Build

# Install dependencies
yarn install

# Build
yarn build

# Build and watch (useful when using "npm link")
yarn build:watch

Run test

# Install dependencies
yarn install

# Run
yarn test

dex-js-1's People

Contributors

dependabot-preview[bot] avatar anxolin avatar velenir avatar alfetopito avatar bh2smith avatar kaythxbye avatar w3stside avatar josojo avatar

Stargazers

Crypto Wolf  avatar

Watchers

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