Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gnosis.pm/dex-js

Package Overview
Dependencies
Maintainers
9
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/dex-js

Gnosis Protocol JS integration: utils, contracts and other goodies

  • 0.14.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
263
decreased by-6.07%
Maintainers
9
Weekly downloads
 
Created
Source

npm version   Build Status   Coverage Status

Develop:   Build Status   Coverage Status

Gnosis Protocol JS

Gnosis Protocol JS it's library, with typescript 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

FAQs

Package last updated on 15 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc