Skip to content

autumn84/protocol2

 
 

Repository files navigation

Loopring Protocol Smart Contracts

Build Status

Compile

If you are using Windows:

npm install --global --production windows-build-tools

Then run the following commands from project's root directory:

npm install
npm run compile

Run Unit Tests

  • run npm run ganache from project's root directory in terminal.
  • run npm run test from project's root directory in another terminal window.
  • run single test: npm run test -- transpiled/test/xxx.js
  • print info logs in tests: npm run test -- -i
  • print more detailed debug logs in tests: npm run test -- -x

Run Unit Tests inside Docker

If you prefer to use docker, you can install docker first, then run the following:

npm run docker

If you do not have node/npm installed but still wish to use docker, you can run the commands manually:

docker-compose up --build --abort-on-container-exit
docker-compose logs -f test

The logs command is optional but will give you an easy to read output of the tests without the output from testrpc mixed in (though the combination of both is good for debugging and is why they're not being silenced.)

Deployment

  • deploy on testnet(rinkeby or ropsten)
    • fill the mnemonic phases of your account in truffle.js
    • get some ethers from rinkeby/ropsten faucet.
    • run npm run migrate -- --network rinkeby or npm run migrate -- --network ropsten

More

About

Loopring protocol smart contract version2

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 97.4%
  • JavaScript 2.5%
  • Shell 0.1%