Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.89 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.89 KB

Face Protocol Contracts

This repository contains contracts for Face Protocol. They are developed using Solidity and Hardhat

Quick start

  1. Make sure that you have Node.js and Yarn installed

  2. Install dependencies:

yarn
  1. Before the first time you build the project, you should temporarily comment line import "./tasks"; in hardhat.config.ts (that is because Typescript autogenerated files are not present yet)

  2. Now run compilation:

npx hardhat compile
  1. Now you can uncomment line from point 3.

  2. Copy example.env file and rename it to .env

  3. Fill the variables with correct values

  4. You can test contracts by running:

npx hardhat test

How to deploy

To deploy contracts run:

npx hardhat --network [your network name] deploy

Deployments

Contracts are currently deployed to Optimism Goerli, Base Goerli, Zora Goerli and Mode Sepolia testnets. Addresses are below:

Network Community Factory Community Implementation
Optimism 0x7E51bd255C405CB65855aC25dd578EC922501211 0x5D3EE2a6943B7e07120ac33dd5849074181be044
Base 0x963a68D8a57E8E863Cd4E6411B7321988280465f 0x8176E84744FaFD7f3a9b497339563D8F55829ffb
Zora 0x963a68D8a57E8E863Cd4E6411B7321988280465f 0x8176E84744FaFD7f3a9b497339563D8F55829ffb
Mode 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 0x5FbDB2315678afecb367f032d93F642f64180aa3

Subgraphs

Protocol has subgraphs implementation indexing contracts data. Subgraphs are currently deployed for Optimism Goerli and Base Goerli.

Optimism GraphQL URL: https://api.studio.thegraph.com/query/51138/community-optimism-goerli/version/latest

Base GraphQL URL: https://api.studio.thegraph.com/query/51138/community-base-testnet/version/latest