Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 335 Bytes

Layout.md

File metadata and controls

20 lines (19 loc) · 335 Bytes

Layout of Contract:

  1. version
  2. imports
  3. errors
  4. interfaces, libraries, contracts
  5. Type declarations
  6. State variables
  7. Events
  8. Modifiers
  9. Functions

Layout of Functions:

  1. constructor
  2. receive function (if exists)
  3. fallback function (if exists)
  4. external
  5. public
  6. internal
  7. private
  8. view & pure functions