Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.48 KB

README.md

File metadata and controls

70 lines (43 loc) · 1.48 KB

metalabel-contracts

Smart contracts for the Metalabel protocol.

Links

Audits

All audit reports are available in the ./audits directory.

Development

Install dependencies:

yarn

Compile all artifacts and generate typechain types:

yarn build

Run unit tests:

yarn test

Run unit tests showing gas usage by function and deploy costs:

REPORT_GAS=1 yarn test

Run unit tests and report coverage:

yarn test:coverage

Deployment

Copy .env.example to .env and override the default values before deploying.

Deploy a contract:

yarn deploy --network goerli --contract MyContract

This will output the deployed contract address in the console and update the ./tasks/deployments.json file.

NOTE: The contract will automatically be verified on etherscan

Verification

The deploy task will automatically verify contracts generally.

This can occasionally fail. If it does, verify manually:

yarn verify --network goerli $CONTRACT_ADDRESS

Verification may fail if run too quickly after contract deployment.