snt-voting/README.md

34 lines
1.8 KiB
Markdown
Raw Normal View History

2018-05-14 20:58:30 -03:00
# status.im contracts
Usage:
```
npm install -g embark
2018-09-13 11:11:40 -04:00
git clone https://github.com/status-im/snt-voting.git
2018-05-14 20:58:30 -03:00
cd contracts
npm install
embark simulator
```
2018-09-13 11:11:40 -04:00
While running `embark simulator` open another terminal and enter `embark run` in the project directory to start the dapp
2018-09-16 20:13:23 +01:00
To test the voting dapp on a local enviroment, for ease of use open localhost:8000 in google chrome incognito mode to use embark's local test wallet. To test the application you may mint test tokens by clicking on the hidden test menu button in the header to access a menu where you can mint test tokens.
![Test menu button](https://user-images.githubusercontent.com/7915365/45599938-6f911680-b9ec-11e8-85cd-e7d06156254f.png)
![Mint Test SNT](https://user-images.githubusercontent.com/7915365/45599951-c39bfb00-b9ec-11e8-8236-a466e8ebb591.png)
2018-05-14 20:58:30 -03:00
2018-09-12 08:23:45 -04:00
## Deployment Details
| Contract | Ropsten Address | Mainnet Address |
| -------------------------|------------------------------------------- | ------------------------------------------ |
| polls/PollManager | 0x456E047eDEa0a91a66C3DC7aCc0B1424d80cf8a6 | 0x0e222932911b9a558104b4b4b2f330398561436f |
| token/MiniMeToken (SNT) | 0xc55cf4b03948d7ebc8b9e8bad92643703811d162 | 0x744d70fdbe2ba4cf95131626614a1763df805b9e |
| token/MiniMeTokenFactory | 0xa1c957C0210397D2d0296341627B74411756d476 | 0xa1c957C0210397D2d0296341627B74411756d476 |
## Details
2018-05-14 20:58:30 -03:00
| Contract | Deploy | Test | UI |
| -------------------------------------- | ------ | ---- | --- |
| token/TestToken | Yes | Yes | Yes |
| token/ERC20Token | No | Yes | Yes |
| deploy/Instance | No | No | No |
2018-09-13 11:11:40 -04:00
| deploy/Factory | No | No | No |