Odak modu

Smart Contract Development with Solidity

Types

Types 

Code from video: https://solidity-by-example.org/primitives/ 

You can also access the Turkish video content prepared by İTÜ Blockchain here: https://www.youtube.com/watch?v=qE6-H1NBraw&list=PLby2HXktGwN4Cof_6a8YwlMrboX8-hs73&index=2 

Types

Solidity is a statically typed language, which means that the type of each variable (state and local) needs to be specified. Solidity provides several elementary types which can be combined to form complex types.

The concept of “undefined” or “null” values does not exist in Solidity, but newly declared variables always have a default value dependent on its type.

Value Types

bool: The possible values are constants true and false.

Integers: Signed and unsigned integers of various sizes. Keywords uint8 to uint256 in steps of 8 (unsigned of 8 up to 256 bits) and int8 to int256. uint and int are aliases for uint256 and int256, respectively.

int: It is the variable we use for numbers.

uint: It is the variable we use for numbers.The difference from int is that negative numbers are not included.

address: It is the variable where we keep the wallet addresses. Fixed size 20 bytes

bytes32: It is a variable that holds string values as hexadecimal.

You can find detailed further information from Solidity Official documentation (in English): https://docs.soliditylang.org/en/v0.8.15/types.html#value-types  

You can find detailed further information from İTÜ Blockchain documentation (in Turkish): https://github.com/itublockchain/web3-bootcamp/blob/master/1x0_Variables/README.md

Background Pattern
Birlikte öğrenelim

Sektörde en çok aranan yazılım becerilerini kazan

Yapay zeka desteği, birebir mentörlük saatleri, canlı dersler ve senin için özel hazırlanmış içeriklerle eksiklerini tamamla, düzenli geri bildirimler al ve öğrenme sürecini en verimli hale getir.

Yunus Emre Kabakcı

Patika+ mezunu

Patika+ Fullstack Web Development Bootcamp mezunumuz Yunus Emre,

3 ay içinde Katar’dan aldığı teklif ile, global bir şirket olan Pavo Group’da işe başladı!


“İçerik zenginliği, mentor desteği, ileriye dönük bir network sağlaması ve dünyada en çok tercih edilen frameworkler üzerinden bir eğitim veriyor olması Patika+’ı tercih etmemin temel sebepleri oldu!“

Test

Yorumlar

Yorum yapabilmek için derse kayıt olmalısın!