poa-dapps-voting/README.md

67 lines
1.8 KiB
Markdown
Raw Normal View History

2017-07-06 04:07:09 -07:00
# Oracles network Governance Dapp
2017-07-06 04:07:09 -07:00
## Supported browsers
2017-07-06 04:07:09 -07:00
* Google Chrome v 59.0.3071.115+
2017-08-15 06:53:54 -07:00
## MetaMask plugin setup
2017-07-06 04:07:09 -07:00
2017-08-15 06:53:54 -07:00
* Connect to Oracles network in MetaMask plugin (See [Connect to Oracles network via MetaMask](https://github.com/oraclesorg/oracles-wiki/blob/master/MetaMask-connect.md#connect-to-oracles-network-via-metamask))
2017-07-06 04:07:09 -07:00
2017-08-15 06:53:54 -07:00
* Import your voting key to MetaMask Plugin (See [Governance section from wiki](https://github.com/oraclesorg/oracles-wiki/blob/master/governance.md)).
2017-07-06 04:07:09 -07:00
## Governance Dapp lifecycle
2017-08-15 06:53:54 -07:00
Check [Governance Dapp section from wiki](https://github.com/oraclesorg/oracles-wiki/blob/master/governance.md)
## Ballots page
You'll see the page with the list of all ballots. Here you can switch to see only your **UNANSWERED** or **EXPIRED** ballots.
**Search** by ballots' data is available too.
Single ballot page is opened by clicking **VOTE NOW** button.
2017-07-05 15:57:52 -07:00
![](./docs/ballots.png)
## Single ballot page
Here you can vote for or against notary. If total number of votes > 3, notary will be added or deleted from the network depending on votes majority after voting will be finished.
2017-07-05 15:57:52 -07:00
![](./docs/ballot.png)
## New ballot page
Click **NEW BALLOT** button from any page to create a new ballot.
2017-07-05 15:57:52 -07:00
![](./docs/new_ballot_1.png)
2017-07-05 15:57:52 -07:00
![](./docs/new_ballot_2.png)
2017-07-06 04:07:09 -07:00
## Settings page
You can return to this page from any page by clicking **Settings** button. You can choose your voting key here.
![](./docs/settings.png)
## Configuration file
It is configured with [Oracles network contract](https://github.com/oraclesorg/oracles-contract)
Path: `./assets/javascripts/config.json`
```
{
"environment": "live",
"Ethereum": {
"live": {
"contractAddress": "Oracles_contract_address"
}
}
}
2017-06-15 10:47:27 -07:00
```
## Building from source
1) `npm install`
2) `npm run sass`
3) `npm run coffee`
2017-07-06 04:07:09 -07:00
4) `npm start`