Skip to content

jamesmorgan/ethereum-dice-oracle-example

Repository files navigation

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

Releases

No releases published

Packages

No packages published