Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Tags for Solidity in code documentation

Mr. Is edited this page Jun 11, 2017 · 5 revisions

name: Tags for Solidity in Code Documentation category:

At the moment pursuant to ./Solidity,-Docs-and-ABI the following tags are available to use after /// to provide in-code documentation.

Title

/// @title Some title here.

Author

/// @author Homer Simpson

Notice

/// @notice Send `(valueInmGAV / 1000).fixed(0,3)` GAV from the account of /// `message.caller.address()`, to an account accessible only by `to.address()`.

Developer Documentation

/// @dev This is the developer documentation.

Docs for parameters

/// @param valueInmGav The docs for the second param.```


Which in json would result in something like this:

{ "source": "...", "author": "Gav Wood", "description": "Some description of this contract.", "language": "Solidity", "languageVersion": 1, "methods": { "send": { "notice": "Send (valueInmGAV / 1000).fixed(0,3) GAV from the account of message.caller.address(), to an account accessible only by to.address()." }, "title": "Send some GAV.", "details": "..." "balance": { "notice": "(balanceInmGAV / 1000).fixed(0,3) GAV is the total funds available to who.address()." } }, "invariants": [ { "title": "...", "details": "Markdown description of the first invariant." } { "notice": "The sum total amount of GAV in the system is 1 million." } ], "construction": [ { "notice": "Endows message.caller.address() with 1m GAV." } "details": "Creates the contract with..." ] }

Clone this wiki locally