This is the smart contract backend of Trustbytes, a project created for the ETHGlobalOnline hackathon.
This contract contains the logic to write data to a tableland contract and verify PolygonID credentials.
This a a quick guide on how to get working on the smart contracts locally.
- installing external libraries
forge install- compiling
forge buildThis is a list of the most frequently needed commands.
Delete the build artifacts and cache directories:
$ forge cleanCompile the contracts:
$ forge buildGet a test coverage report:
$ forge coverageDeploy to Anvil:
$ anvil
$ forge script script/DeployAuditorRegistry.s.sol --broadcast --fork-url http://localhost:8545Format the contracts:
$ forge fmtGet a gas report:
$ forge test --gas-reportRun the tests:
$ forge test