Skip to content
Matt Swezey edited this page Jan 16, 2019 · 28 revisions

🚧 Setup required per your environment 👷‍♂️

Table of contents

PrivateKeyGeneration

  1. Navigate to Vanity ETH to quickly create a testnet Ethereum key pair value.
  2. Scroll to the bottom, click generate
  3. Click to show and access the private key value
  4. Copy both the public address and private key into the .secrets.json file
    "fundAccountEthAddress": "YOUR_ETHEREUM_ADDRESS",
    "fundAccountPrivateKey": "YOUR_PRIVATE_KEY"

Now either grab some ropsten test ether at the facuet or send yourself some from another account.

Note: it is heavily recommended to NOT use this account for mainnet ether as the private key is stored unencrypted in a text file! For development purposes only!

Infura

  1. Navigate to Infura to create a new account or login with your existing account.
  2. If you're not already, navigate to your Dashboard
  3. Create a new project (near the top mid of the webpage) and name it Hopr
  4. Save your Project ID (aka API Key) this used in the .secrets.json file under the infuraApiKey key:string pair
    "infuraApiKey": "INFURA_PRODUCT_ID",
  1. Whitelist the contract address specified in the README page

Linux

Mac

Windows

The following Windows setup goes faster when one utilizes Chocolatey (a Windows Package Manager).

Required software packages:

  • Git
  • Node (using NVM to install and manage node versions)
  • Windows Build Tools
  • Visual Studio Code (recommended or your IDE of choice)
  • solc (Solidity Compiler)

Instructions:

  1. Install: Chocolatey
  2. Install solc
  3. Install VS Code

Open up PowerShell or cmd:

  1. Run: choco install git.install
  2. Run: choco install nvm
  3. Run: nvm install 11.3
  4. Run: nvm use 11.3

Verify node is working via: node --version.

Note: You may have to restart cmd/Powershell or refresh your environment (refreshenv) in between the steps above.

Prepping Node 11.X

  1. Run: npm install --global windows-build-tools
  2. Run: npm install --global yarn

At this point, yarn install should run successfully.

Follow the rest of the steps located in the README to run Hopr

Clone this wiki locally