Solidity – Style Guide
This topic is about Solidity - Style Guide. Style Guide helps to maintain code layout consistent and make code more readable. Following are the best practices following while writing contracts…
This topic is about Solidity - Style Guide. Style Guide helps to maintain code layout consistent and make code more readable. Following are the best practices following while writing contracts…
This topic is about Solidity - Special Variables. Special variables are globally available variables and provides information about the blockchain. Following is the list of special variables − Sr.No.Special Variable…
This topic is about Solidity - Ether Units. In solidity we can use wei, finney, szabo or ether as a suffix to a literal to be used to convert various…
This topic is about Solidity - Conversions. Solidity allows implicit as well as explicit conversion. Solidity compiler allows implicit conversion between two data types provided no implicit conversion is possible…
This topic is about Solidity - Mapping. Mapping is a reference type as arrays and structs. Following is the syntax to declare a mapping type. mapping(_KeyType => _ValueType) Where _KeyType −…
This topic is about Solidity - Structs. Struct types are used to represent a record. Suppose you want to keep track of your books in a library. You might want…
This topic is about Solidity - Enums. Enums restrict a variable to have one of only a few predefined values. The values in this enumerated list are called enums. With…
This topic is about Solidity - Arrays. Array is a data structure, which stores a fixed-size sequential collection of elements of the same type. An array is used to store…
This topic is about Solidity - Strings. Solidity supports String literal using both double quote (") and single quote ('). It provides string as a data type to declare a…
this topic is about Solidity - if...else if... statement. The if...else if... statement is an advanced form of if...else that allows Solidity to make a correct decision out of several conditions. Syntax The syntax…