Skip to Content
Ethereum Cookbook
book

Ethereum Cookbook

by Manoj P R
August 2018
Intermediate to advanced
404 pages
11h 19m
English
Packt Publishing
Content preview from Ethereum Cookbook

How to do it...

  1. First, install doxity in your system using npm. You can either do it globally or locally, based on your requirements:
// Global installationnpm install -g @digix/doxity// Local installation for a projectnpm install @digix/doxity
  1. Once you have installed doxity, you can use it to generate documentation based on the comments provided for each function.

  2. It is recommended to follow the general comment pattern (natspec) for all functions, which explains each function's definition. 

  3. Consider the following function as an example of proper commenting:
/** * @dev Technical explanation * @param <param1_name> Description of param1 * @param <param2_name> Description of param2 */function functionName(...params...) {    ...}
  1. Since ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Ethereum Dapps

Building Ethereum Dapps

Roberto Infante
Ethereum For Dummies

Ethereum For Dummies

Michael G. Solomon

Publisher Resources

ISBN: 9781789133998Supplemental Content