https://github.com/devalpha18/ethereum-dice-oracle-example
Basic Ethereum & Solidity Oracle Example
https://github.com/devalpha18/ethereum-dice-oracle-example
dapp ethereum oracles solidity truffle
Last synced: 4 months ago
JSON representation
Basic Ethereum & Solidity Oracle Example
- Host: GitHub
- URL: https://github.com/devalpha18/ethereum-dice-oracle-example
- Owner: devalpha18
- Created: 2023-01-03T09:54:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:06:56.000Z (over 2 years ago)
- Last Synced: 2025-02-03T12:14:35.622Z (5 months ago)
- Topics: dapp, ethereum, oracles, solidity, truffle
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
testrpc
```#### Compile and deploy the Oracle Contract
```bash
truffle compile && truffle migrate --force
```### Running your Oracle
```bash
node oracle.js
```### Running your client
```bash
node client.js
```## Testing
* Enter truffle CLI - N.B. you do NOT need testrpc running to do this with truffle 4+
```bash
truffle develop
```* Run the tests
```bash
truffle(develop)> test
```