Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreamjet31/uptime-verification-oraclize
Uptime Verification System
https://github.com/dreamjet31/uptime-verification-oraclize
ethereum-bridge ethereum-dapp oraclize provable provable-things solidity truffle
Last synced: 4 days ago
JSON representation
Uptime Verification System
- Host: GitHub
- URL: https://github.com/dreamjet31/uptime-verification-oraclize
- Owner: dreamjet31
- License: mit
- Created: 2023-08-22T10:04:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-22T10:07:29.000Z (over 1 year ago)
- Last Synced: 2024-06-04T00:09:56.217Z (7 months ago)
- Topics: ethereum-bridge, ethereum-dapp, oraclize, provable, provable-things, solidity, truffle
- Language: Solidity
- Homepage:
- Size: 356 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This repo is to demonstrate how an Oraclize smart-contract is used in managing an ISP and its customers account by debiting the ISP account anytime there is a breach in contract in the offtime value gotten from the API using Truffle & the Ethereum-Bridge to do most of the heavy lifting for you. Head on over to the `./test` folder to examine the javascript files that thoroughly test the smart-contract, which latter you will find in `./contracts`.
## :page_with_curl: _Instructions_
**1)** Fire up your favourite console & clone this repo somewhere:
__`❍ git clone https://github.com/flurryunicorn/Uptime-Verification-Oraclize.git`__
**2)** Enter this directory & install dependencies:
__`❍ cd Uptime-Verification-Oraclize && npm install`__
**3)** Install npx if not already installed:
__`❍ sudo npm install -g npx `__
**4)** Launch Truffle:
__`❍ npx truffle develop`__
**5)** 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 `__
**6)** Once the bridge is ready & listening, go back to the first console with Truffle running & compile the contract code
__`❍ truffle(develop)> compile`__
**7)** Migrate the contract to the network:
__`❍ truffle(develop)> migrate `__
**8)** Set the tests going!
__`❍ truffle(develop)> test`__
**9)** Open a _new_ console in the same directory & Start up the ÐApp:
__`❍ npm run dev `__
## :camera: Passing Tests:
![The passing tests](uptime-verification-test.png)
## :globe_with_meridians: ÐApp Homepage:
![ÐApp Homepage](homepage.jpg)
__*Happy developing!*__