-
Notifications
You must be signed in to change notification settings - Fork 14
Tags for Solidity in code documentation
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..."
]
}
- Ðapp Developer Resources
- JavaScript API
- JSON RPC API
- Solidity
- Solidity Features
- Useful Ðapp Patterns
- Standardized Contract APIs
- Ðapp using Meteor
- Ethereum development tutorial
- Mix Tutorial
- Mix Features
- Serpent
- LLL
- Mutan
- Morden Testnet
- Chain Spec Format
- Inter-exchange Client Address Protocol
- URL Hint Protocol
- NatSpec Determination
- Network Status
- Raspberry Pi
- Exchange Integration
- Mining
- Licensing
- Consortium Chain Development
- RLP Encoding
- RLPx Node Discovery Protocol
- ÐΞVp2p Wire Protocol
- ÐΞVp2p Whitepaper (WiP)
- Web3 Secret Storage
- Patricia Tree
- Wire protocol
- Light client protocol
- Subtleties
- Solidity, Docs & ABI
- NatSpec Format
- Contract ABI
- Bad Block Reporting
- Bad Chain Canary
- Extra Data
- Brain Wallet