Skip to content

jabezas/honeypot

Repository files navigation

Honeypot

Installation

Ensure your development environment is ready. Follow these instructions to check. We recommend node v10.19 (v12.14 didn't work w/ create-eth-app).

Clone this repository and run yarn. Also cd into frontend and run yarn.

Development

This project uses buidler. See available commands by running npx buidler.

Local development

  1. Create a local Ethereum network:

yarn start:node

  1. Deploy contracts to the local network:

yarn deploy:local

  1. Start the frontend app:

yarn start:app

  1. In your browser, connect MetaMask to your local Ethereum network:
  • Select http://127.0.0.1:8545 from the MetaMask network dropdown

  • Import an account generated by Buidler EVM (in step 1) using the private key (output from the terminal)

Testing

Run yarn test to run the test suite.