Skip to content

Instantly share code, notes, and snippets.

View lucas-manuel's full-sized avatar

Lucas Manuel lucas-manuel

View GitHub Profile
@lucas-manuel
lucas-manuel / style-guide.md
Created June 11, 2022 14:05
Solidity Style Guide

Top of File

All files should have a license and pragma defined in the top two lines of the file:

// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;

Contract Imports

  1. All imports must be explicit, importing only what is necessary from each file.
coverage_report:
name: Generate coverage report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly