Skip to content

onelandworld/wyvern-v3

 
 

Repository files navigation

Wyvern v3.1

Project Wyvern Logo

https://img.shields.io/github/license/wyvernprotocol/wyvern-v3.svg Build Status Coverage Status

This is version 3.1 of the Wyvern decentralized exchange protocol, designed to maximize the ease of positive-utility-sum multiparty transactions on a distributed ledger.

Check out documentation here.

Deployed contract addresses can be found in config.json.

Development

Setup

Install dependencies with Yarn:

yarn

Testing

Run testrpc (ganache-cli) to provide a simulated EVM:

yarn testrpc

In a separate terminal, run the testuite:

yarn test [./test/xxx.js]

or,

yarn run truffle test [--debug] [./test/xxx.js]

To debug a trasaction, run:

yarn run truffle debug [transaction hash]

Linting

Lint all Solidity files with:

yarn lint

Static Analysis

Run static analysis tooling with:

yarn analyze

Deployment

Edit truffle.js according to your deployment plans, then run:

yarn --frozen-lockfile
yarn run truffle deploy --network [mainnet/rinkeby/mumbai/...]

Etherscan Verify

yarn run truffle run verify Migrations@[address] --network [network] --debug
yarn run truffle run verify WyvernAtomicizer@[address] --network [network] --debug
yarn run truffle run verify WyvernRegistry@[address] --network [network] --debug
yarn run truffle run verify WyvernExchange@[address] --network [network] --debug
yarn run truffle run verify WyvernStatic@[address] --network [network] --debug
yarn run truffle run verify StaticMarket@[address] --network [network] --debug

About

Wyvern Protocol v3.1, Ethereum implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.2%
  • Solidity 38.0%
  • Shell 0.8%