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

Coding Standard

Ramesh Nair edited this page May 24, 2016 · 3 revisions

These guidelines apply to the Mist and Wallet Dapp codebases.

General

  • Use 4-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