summaryrefslogtreecommitdiffhomepage
path: root/solidity.html.markdown
diff options
context:
space:
mode:
authorNemil Dalal <nemild@gmail.com>2015-12-28 17:13:20 -0500
committerNemil Dalal <nemild@gmail.com>2015-12-28 17:13:20 -0500
commit8f9f9e53e825b346c49139769b8bbfd08d0bed4e (patch)
tree8f5fe1b41a866e58b0a36203a6e3f71a0eb300ff /solidity.html.markdown
parent6749790c8d08aa5aaa06fd0501fd6bdd012ee29b (diff)
Spacing
Diffstat (limited to 'solidity.html.markdown')
-rw-r--r--solidity.html.markdown8
1 files changed, 7 insertions, 1 deletions
diff --git a/solidity.html.markdown b/solidity.html.markdown
index a6620986..7de92fce 100644
--- a/solidity.html.markdown
+++ b/solidity.html.markdown
@@ -463,6 +463,7 @@ import "github.com/ethereum/dapp-bin/library/iterable_mapping.sol";
// Importing under active development
// Cannot currently be done at command line
+
// 8. OTHER KEYWORDS
// A. Throwing
@@ -529,6 +530,7 @@ reveal(100, "mySecret");
// F. State machines
// see example below for State enum and inState modifier
+
// *** EXAMPLE: A crowdfunding example (broadly similar to Kickstarter) ***
// ** START EXAMPLE **
@@ -661,6 +663,7 @@ contract CrowdFunder {
}
// ** END EXAMPLE **
+
// 10. OTHER NATIVE FUNCTIONS
// Currency units
@@ -686,7 +689,8 @@ sha3("ab", "cd");
ripemd160("abc");
sha256("def");
-11. LOW LEVEL FUNCTIONS
+
+// 11. LOW LEVEL FUNCTIONS
// call - low level, not often used, does not provide type safety
successBoolean = someContractAddress.call('function_name', 'arg1', 'arg2');
@@ -694,6 +698,7 @@ successBoolean = someContractAddress.call('function_name', 'arg1', 'arg2');
// provides library functionality
someContractAddress.callcode('function_name');
+
// 12. STYLE NOTES
// Based on Python's PEP8 style guide
@@ -703,6 +708,7 @@ someContractAddress.callcode('function_name');
// Can omit curly braces for one line statement (if, for, etc)
// else should be placed on own line
+
// 13. NATSPEC comments - used for documentation, commenting, and external UIs
// Contract natspec - always above contract definition
/// @title Contract title