Skip to content

TrustBytes/EthGlobalOnlineBackend

Repository files navigation

Trustbytes Backend

About The Project

This is the smart contract backend of Trustbytes, a project created for the ETHGlobalOnline hackathon.

AuditorRegistry.sol

This contract contains the logic to write data to a tableland contract and verify PolygonID credentials.

Getting Started

This a a quick guide on how to get working on the smart contracts locally.

Prerequisites

Installing and compiling

  • installing external libraries
forge install
  • compiling
forge build

Usage

This is a list of the most frequently needed commands.

Clean

Delete the build artifacts and cache directories:

$ forge clean

Compile

Compile the contracts:

$ forge build

Coverage

Get a test coverage report:

$ forge coverage

Deploy

Deploy to Anvil:

$ anvil
$ forge script script/DeployAuditorRegistry.s.sol --broadcast --fork-url http://localhost:8545

Format

Format the contracts:

$ forge fmt

Gas Usage

Get a gas report:

$ forge test --gas-report

Test

Run the tests:

$ forge test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published