This repository contains contracts for Face Protocol. They are developed using Solidity and Hardhat
-
Make sure that you have Node.js and Yarn installed
-
Install dependencies:
yarn
-
Before the first time you build the project, you should temporarily comment line
import "./tasks";
inhardhat.config.ts
(that is because Typescript autogenerated files are not present yet) -
Now run compilation:
npx hardhat compile
-
Now you can uncomment line from point 3.
-
Copy
example.env
file and rename it to.env
-
Fill the variables with correct values
-
You can test contracts by running:
npx hardhat test
To deploy contracts run:
npx hardhat --network [your network name] deploy
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 |
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