/contracts

Primary LanguageJavaScript

Candy Store Lottery Contracts

This repository contains the core lottery contracts of Candy Store.

Installation

  1. Install Truffle and Ganache CLI globally.
npm  install -g  truffle@beta
npm  install -g  ganache-cli
  1. Install required packages.
npm install
  1. Create a .env file in the root directory and use the below format for .env file.
infura_key = [Infura key] //For deploying
mnemonic_key = [Mnemonic Key] // Also called as seed key
etherscan_key = [Etherscan API dev Key]

Commands:

Migrate:

truffle migrate --network=[network]

To Verify Contracts on Etherscan:

truffle run verify [Contract_Name] --network=[network]