Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 595 Bytes

README.md

File metadata and controls

42 lines (33 loc) · 595 Bytes

A Simple Dice Resulting Oracle Example

Setting up

npm install -g [email protected]
npm install -g [email protected]
npm install

Running the Oracle

Start Test RPC

testrpc 

Compile and deploy the Oracle Contract

truffle compile && truffle migrate --force

Running your Oracle

node oracle.js

Running your client

node client.js

Testing

  • Enter truffle CLI - N.B. you do NOT need testrpc running to do this with truffle 4+
truffle develop
  • Run the tests
truffle(develop)> test