Please enable JavaScript.
Coggle requires JavaScript to display documents.
SOLIDITY - Coggle Diagram
SOLIDITY
-
DATA STRUCTURES
unsigned integers: uint, uint8, uint16, uint32...
-
ARRAYS
-
Dynamic
-
push merthod
people.push(Person(16, "Vitalik"));
-
FUNCTIONS
-
function eatHamburgers(string memory _name, uint _amount) public returns (string memory) {
}
-
Modifiers
-
pure
-
function _multiply(uint a, uint b) private pure returns (uint) {
return a * b;
}
-
OPERATORS
Modulus / remainder: x % y (for example, 13 % 5 is 3, because if you divide 5 into 13, 3 is the remainder)
-
-
-
-
-
-
EVENTS
Declaration
event IntegersAdded(uint x, uint y, uint result);
Trigger
emit IntegersAdded(_x, _y, result);
Listener (JavaScript)
YourContract.IntegersAdded(function(error, result) { }
-