2018-12-20 22:24:37 +00:00
|
|
|
[![Build Status](https://travis-ci.org/status-im/status-teller-network.svg?branch=master)](https://travis-ci.org/status-im/status-teller-network)
|
|
|
|
|
|
|
|
# status-teller-network
|
2019-04-02 14:31:20 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
- `yarn install`
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
1. `embark run` (optional `--nodashboard`)
|
|
|
|
2. `yarn start` (starts create-react-app pipeline)
|
2019-04-08 18:01:47 +00:00
|
|
|
|
2019-06-03 19:24:17 +00:00
|
|
|
## Running Tabookey Gas Relayer (no docker. For docker, see their README)
|
|
|
|
|
|
|
|
1. Clone v3.0.0 of tabookey-gasless
|
|
|
|
```
|
|
|
|
git clone https://github.com/tabookey/tabookey-gasless
|
|
|
|
cd tabookey-gasless
|
|
|
|
git checkout 2316c7422d50ac0242f8442f6dc98d0c85512c13
|
|
|
|
npm install
|
|
|
|
npm test
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Run the server. (Embark must be running, and it should have deployed the RelayHub contract)
|
|
|
|
```
|
|
|
|
./build/server/bin/RelayHttpServer -RelayHubAddress RELAY_HUB_CONTRACT_ADDRESS_HERE -Workdir ./build/server --EthereumNodeUrl http://localhost:8555
|
|
|
|
```
|
|
|
|
Replace the RelayHub contract address for the correct address.
|
2019-06-06 12:55:58 +00:00
|
|
|
|
2019-06-03 19:24:17 +00:00
|
|
|
3. Browse http://localhost:8090/getaddr. Copy the address
|
2019-06-06 12:55:58 +00:00
|
|
|
|
2019-06-03 19:24:17 +00:00
|
|
|
4. Stake ether for that address. You can execute this in the embark console:
|
|
|
|
```
|
|
|
|
RelayHub.methods.stake(RELAYER_ADDRESS_GOES_HERE, 30).send({value: web3.utils.toWei("1", "ether"), gas:800000})
|
|
|
|
```
|
2019-06-06 12:55:58 +00:00
|
|
|
|
|
|
|
5. Send some ether to the relayer
|
2019-06-03 19:24:17 +00:00
|
|
|
```
|
|
|
|
web3.eth.sendTransaction({from: web3.eth.defaultAccount, to: RELAYER_ADDRESS_GOES_HERE, value: web3.utils.toWei("3", "ether")})
|
|
|
|
```
|
2019-06-06 12:55:58 +00:00
|
|
|
|
|
|
|
6. Relayer should register itself now that there's a stake. Otherwise restart the server
|
2019-06-03 19:24:17 +00:00
|
|
|
|
2019-04-08 18:01:47 +00:00
|
|
|
## Deploying
|
|
|
|
|
|
|
|
1. `embark build testnet`
|
|
|
|
2. `yarn run build`
|
|
|
|
|
|
|
|
* [StoryBook](https://status-im.github.io/status-teller-network/storybook/)
|
|
|
|
* [Teller Network Dapp (Rinkeby)](https://status-im.github.io/status-teller-network/build/)
|