Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 382 Bytes

Solitity-conventions.md

File metadata and controls

13 lines (10 loc) · 382 Bytes

A. Errors (with args -> without args)

B. Contract

  1. Constant variables
  2. Type declarations (structs, enums)
  3. State variables (public -> private / bytes -> uint -> address -> bool)
  4. Events
  5. Modifiers
  6. Constructor
  7. Functions: Sort by order of function required (not visibility)
  • receive(), fallback(), external, external view, external pure, public, internal, private