Ethereum Smart Contracts with Solidity: Data & Control Structures in Solidity
Blockchain
| Intermediate
- 11 Videos | 1h 10m 3s
- Includes Assessment
- Earns a Badge
Building applications with real use cases nearly always involves the use of complex data structures such as maps, or structs and control structures such as if-else statements and loops in your Blockchain solutions. In this 11-video course, participants will explore the use of mapping and struct data structures in the Solidity language, as well as covering the looping operations with for, while, and do-while loops. Learn to build a smart contract which can be used to conduct a poll. The demos in this course will help you gain a very broad understanding of the Solidity language, and know how to use complex data structures, access modifiers, require clauses, as well as control structures, to build an application representing a real-life use case. The concluding exercise tests your ability to identify the rules you must follow to access transaction data from a smart contract and initialize a new instance of a struct (SampleStruct), setting two different methods which are supported.
WHAT YOU WILL LEARN
-
outline the key concepts covered in this coursedemonstrate how to build a smart contract to conduct a poll using Solidity data structures and functionsuse the deployed voting smart contract to cast votes for the available optionsaccess properties related to the next block to be added to the blockchain and the current transaction from within a smart contractstore and access key and value pairs using Solidity's mapping data structureuse a mapping data structure in the voting app to record whether a voter has previously cast their ballot
-
use a struct to store and access composite data within one objectcreate and use a mapping instance to store instances of structs as valuesrecognize the syntax of if statements and for loopsdistinguish between while and do while loopsrecognize how to use mappings and structs in the Solidity language
IN THIS COURSE
-
1.Course Overview2m 15sUP NEXT
-
2.Building a Voting App with Solidity5m 48s
-
3.Interacting with the Voting App6m 21s
-
4.Block and Transaction Properties7m 15s
-
5.Introducing the Mapping Data Structure7m 26s
-
6.Enhancing the Voting App8m 25s
-
7.Using Structs with Composite Data7m 10s
-
8.Complex Data in Mapping Instances9m 30s
-
9.Control Structures: If Statements and For Loops5m 39s
-
10.Control Structures: While and Do while Loops4m 49s
-
11.Exercise: Data and Control Structures in Solidity5m 26s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.