Skip to content

francescocirulli/smart-contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitGate Smart Contracts - Hardhat Project

Contract Addresses

How to run this project

Initialize the project

foo@bar:~$ git clone https://github.com/Git-Gate/smart-contracts
foo@bar:~$ cd smart-contracts
foo@bar:~$ npm i

Set environment variables

Create the .env file and insert the following variables:

  • ALCHEMY_URL
  • PRIVATE_KEY

The Alchemy HTTP url can be retrieved from your app on https://alchemy.com

To export private key of your metamask wallet follow this guide: https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-export-an-account-s-private-key

Deploy contracts

To deploy the smart contracts on the local hardhat network run:

foo@bar:~$ npx hardhat run scripts/deploy.js --network hardhat

To deploy the smart contracts on the Mumbai Polygon network run (make sure you have some testnet MATIC on your wallet):

foo@bar:~$ npx hardhat run scripts/deploy.js --network mumbai

About

ETH Lisbon Hackathon project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 63.7%
  • JavaScript 36.3%