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 build
This is a list of the most frequently needed commands.
Delete the build artifacts and cache directories:
$ forge clean
Compile the contracts:
$ forge build
Get a test coverage report:
$ forge coverage
Deploy to Anvil:
$ anvil
$ forge script script/DeployAuditorRegistry.s.sol --broadcast --fork-url http://localhost:8545
Format the contracts:
$ forge fmt
Get a gas report:
$ forge test --gas-report
Run the tests:
$ forge test