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: about 2 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 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:06:56.000Z (over 3 years ago)
- Last Synced: 2025-03-29T02:09:29.876Z (about 1 year 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 ethereumjs-testrpc@v6.0.x
npm install -g truffle@v4.0.x
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
```