VARIABLES
Global variables
-
msgEvery transaction is a signed message. In this object comes the data of said message (sender, value, etc.) -
txvalues related to the current transaction -
blockvalues related to the current block
Local variables
- They are those that occur during execution. In the EVM it is the part corresponding to volatile memory
State variables
- They are variables that are stored in the ROM portion of the EVM. It's persistent memory
DATA TYPES
Integers
-
uintnonnegative (8 - 256 bits) -
int8 - (256 bits)
Boolean
truefalse
Address
-
addressThis type of data represents addresses of ETH (20 bytes) - contains methods like
.transferor.balance
String
-
string
Bytes
bytes

Top comments (0)