Solidity-100-Examples

所属分类:区块链开发
开发工具:Solidity
文件大小:26KB
下载次数:0
上传日期:2022-03-13 07:18:38
上 传 者sh-1993
说明:  Solidity-100示例,Solidity智能合约编程示例的完整列表
(Solidity-100-Examples,A complete list of examples for Solidity Smart Contract programming)

文件列表:
Advanced (0, 2022-03-13)
Advanced\create2.sol (2295, 2022-03-13)
Advanced\multisigwallet.sol (5024, 2022-03-13)
Advanced\tokenswap.sol (2413, 2022-03-13)
Basic (0, 2022-03-13)
Basic\Array.sol (866, 2022-03-13)
Basic\Call.sol (1544, 2022-03-13)
Basic\Constant.sol (811, 2022-03-13)
Basic\Constructor.sol (1089, 2022-03-13)
Basic\DataLocation.sol (1223, 2022-03-13)
Basic\Enum.sol (1397, 2022-03-13)
Basic\EnumDeclaration.sol (175, 2022-03-13)
Basic\ErrorHandling.sol (3102, 2022-03-13)
Basic\Event.sol (654, 2022-03-13)
Basic\Functions.sol (1489, 2022-03-13)
Basic\Hash.sol (1651, 2022-03-13)
Basic\If.sol (687, 2022-03-13)
Basic\Immutable.sol (991, 2022-03-13)
Basic\Interface.sol (1112, 2022-03-13)
Basic\Library.sol (1523, 2022-03-13)
Basic\Mapping.sol (847, 2022-03-13)
Basic\Modifier.sol (831, 2022-03-13)
Basic\Payable.sol (1640, 2022-03-13)
Basic\SendEther.sol (1312, 2022-03-13)
Basic\SendEther2.sol (1673, 2022-03-13)
Basic\String.sol (957, 2022-03-13)
Basic\Struct.sol (1225, 2022-03-13)
Basic\StructDeclaration.sol (129, 2022-03-13)
Basic\TryCatch.sol (1788, 2022-03-13)
Basic\Variable.sol (1399, 2022-03-13)
Basic\Visibility.sol (3142, 2022-03-13)
Basic\wallet.sol (739, 2022-03-13)
Security (0, 2022-03-13)
Security\Overflow.sol (2470, 2022-03-13)
Security\ReEntrancy.sol (1827, 2022-03-13)
Security\SelfDestruction.sol (2853, 2022-03-13)

# Solidity Smart Contract with 100 Examples Welcome to the repository for Solidity Smart Contract with 100 Examples! This repo aims to provide a complete list of practical solidity smart contract examples for new blockchain developers to quickly get hands-on experience on solidity programming. The content of the repo will constantly be updated. please **star** it if you find it helps. # Table of Content ## 1. Basic Syntax - [Solidity **variables**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Variable.sol) - [Using **Array** data type](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Array.sol) - [Declare **Enum** and use it in contract](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Enum.sol) - [Example of using **Mapping**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Mapping.sol) - [**Constant**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Constant.sol) vs [**immutable**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Immutable.sol) - [Example of **hash** function](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Hash.sol) - [Contract constructor](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Variable.sol) - [**If else** in control flow](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/If.sol) - [Function **modifier**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Modifier.sol) - [Function **visibility**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Visibility.sol) - [Different ways to write function **returns**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Functions.sol) - [Define your own data **struct**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Struct.sol) - [When to use **revert**, **require** or **assert**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/ErrorHandling.sol) - [How to use **try catch**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/TryCatch.sol) - [Use **interface** in contract](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/Interface.sol) - [Implement a **wallet** contract for fund deposit](https://github.com/codeforests/Solidity-100-Examples/blob/master/Basic/wallet.sol) - To be continued ## 2. Advanced - [Perform **token swap** from one token to another](https://github.com/codeforests/Solidity-100-Examples/blob/master/Advanced/tokenswap.sol) - [Implement a **multisign wallet contract** to approve transaction before execution](https://github.com/codeforests/Solidity-100-Examples/blob/master/Advanced/multisigwallet.sol) - [Using **create2** to deploy contract with same address to multiple blockchain](https://github.com/codeforests/Solidity-100-Examples/blob/master/Advanced/create2.sol) - To be continued ## 3. Security - [**Re-entrancy** attack](https://github.com/codeforests/Solidity-100-Examples/blob/master/Security/ReEntrancy.sol) - [Arithmetic **overflow & underflow**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Security/Overflow.sol) - [Attacking contract using **selfdestruct**](https://github.com/codeforests/Solidity-100-Examples/blob/master/Security/SelfDestruction.sol) - To be continued contact me [@twitter](https://twitter.com/_0xken) if you have any feedback. Thanks

近期下载者

相关文件


收藏者