Skip to content

Instantly share code, notes, and snippets.

@CJ42
Created June 23, 2019 20:31
Show Gist options
  • Save CJ42/1a6a54c73341eee74deed2efba3fa273 to your computer and use it in GitHub Desktop.
Save CJ42/1a6a54c73341eee74deed2efba3fa273 to your computer and use it in GitHub Desktop.
JSON Dev-Doc Napstec Solidity
{
"author" : "Jean Cavallera",
"details" : "All function calls are currently implemented without side effects",
"methods" :
{
"calculateHypothenuse(uint256,uint256)" :
{
"details" : "Not working as it returns integers and not float",
"params" :
{
"_a" : "Side 1",
"_b" : "Side 2"
},
"return" : "uint the hypothenuse length"
},
"createTriangle(uint256,uint256)" :
{
"author" : "Jean Cavallera",
"details" : "This function modifies the state of the variable `my_triangle` and use `calculateHypothenuse()` function",
"params" :
{
"_a" : "Side 1",
"_b" : "Side 2"
},
"return" : "string return to user a custom success message"
}
},
"title" : "A Geometry triangle simulator"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment