Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Coding Standard

Ryan Ghods edited this page Apr 30, 2018 · 3 revisions

These guidelines apply to the Mist and Wallet Dapp codebases.

General

  • Use 2-space indentation within all source code files. Use spaces instead of tabs.
  • Please document all methods and classes in the JSDoc format. At minimum each method must use the @method, @param and @return decorators.

IPC

  • IPC event names should be prefixed appropriately:
    • IPC events sent from the backend to the UI frontend should be prefixed with uiAction, e.g. uiAction_syncStatus.
    • IPC events sent from the UI frontend to the backend should be prefixed according to the category they fall in, e.g. ipcProvider-write.
Clone this wiki locally