solidity-code-contracts icon indicating copy to clipboard operation
solidity-code-contracts copied to clipboard

This repo contains the smart contracts covering basic concepts of Solidity.

Solidity Code Contracts

This repo contains the code snippets covering basic concepts of the Solidity smart contract programming language.

Ethereum GitHub last commit GitHub top language


Table of Content
  • First Contract
  • Value Types in Solidity
  • Introduction to Function
  • Variables
  • Global Variables
  • State Mutability Functions
  • Constant and Immutable Variables
  • Conditional Statements
  • Loops
  • Error Handling
  • Function Modifiers
  • Constructor
  • Capture Function Outputs
  • Arrays
  • Mapping
  • Iterable Mapping
  • Structures
  • Enums
  • Data Location - storage, memory, calldata
  • Events
  • Single Inheritance
  • Multi-Level Inheritance
  • Hierarchical Inheritance
  • Call Parent Constructor
  • Visibility Specifiers
  • Call Parent Functions
  • Using this in Solidity
  • Payable
  • Special Functions - fallback and receive
  • Sending Ether
  • Call Functions from Another Contract
  • Abstract Contract
  • Interfaces
  • DelegateCall
  • Create Contracts using new keyword
  • Solidity Library
  • ABI Functions
  • Mathematical and Cryptographical Functions
  • Self Destruct

Donations ✅

BTC: bc1qvl0hfh474kqskjhg9n2junzlsvdlq7mdu53qdx
ETH: 0x67012D3d4352F57B9C4966b104212d81dc590599
SOL: 693pB8EHihjYteuZZ3wogeQ4fgXdwgPudgmjuubQvidc