This repository contains the core lottery contracts of Candy Store.
- Install Truffle and Ganache CLI globally.
npm install -g truffle@beta
npm install -g ganache-cli
- Install required packages.
npm install
- 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]
truffle migrate --network=[network]
truffle run verify [Contract_Name] --network=[network]