🔧 🚧 Testing Provable's Delegated Math Example.
This repo is to demonstrate how you would set up a Provable smart-contract development environment using Truffle & the Ethereum-Bridge to do most of the heavy lifting for you. Head on over to the
1) Fire up your favourite console & clone this repo somewhere:
❍ git clone https://github.com/provable-things/ethereum-examples.git
2) Enter this directory & install dependencies:
❍ cd ethereum-examples/solidity/truffle-examples/delegated-math && npm install
3) Launch Truffle:
❍ npx truffle develop
4) Open a new console in the same directory & spool up the ethereum-bridge:
❍ npx ethereum-bridge -a 9 -H 127.0.0.1 -p 9545 --dev
5) Once the bridge is ready & listening, go back to the first console with Truffle running & set the tests going!
❍ truffle(develop)> test
📷 Passing Tests:
Contract: Delegated Math Example Tests ✓ Should retrieve a result from an offchain computation (80350ms) ✓ Should have calculated the offchain computation correctly 2 passing (1m)
❍ If you have any issues, head on over to our Gitter channel to get timely support!