Contracts
Documentation
The contracts are self-explanatory & can be found in the backend folder.
Deployed Addresses
Contracts deployed on optimism mainnet are being used in frontend.
You can also interact with the contracts deployed on optimism kovan and polygon mumbai using etherscan interface for testing.
- Optimism Mainnet - 0x3eB42604b82972477D36C8D4e4B026F37AeA70C1
- Optimism Kovan - 0x3c5bbd585e82948472ac8eb470BAC64F74067293
- Polygon Mumbai - 0x3adF99a751732dd83E3C91f7Cd42e4180EE39101
File Structure
contracts
Contains the contracts written in solidity.
scripts
Contains a deploy.ts
script to deploy the contract
test
Contains basic tests (using ethers and chai) for the Identity
contract to make sure things don't mess up on mainnet.
Setting up locally
Clone the repo
Go to backend directory
Install dependencies
That's all, you're good to go! You can start editing the contracts.
Running tests
Run the tests to make sure your changes haven't messed up other functionality.
Deploying contract
Once you are ready to deploy the contract.
Setup your .env from this example
Run the deploy command
And boom , it's deployed. The deployed address will logged to your console.
Edit this file on GitHub