Ethereum Smart Contracts with Solidity: Data & Control Structures in Solidity

Blockchain    |    Intermediate
  • 11 videos | 1h 10m 3s
  • Includes Assessment
  • Earns a Badge
Rating 4.3 of 3 users Rating 4.3 of 3 users (3)
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 course
    Demonstrate how to build a smart contract to conduct a poll using solidity data structures and functions
    Use the deployed voting smart contract to cast votes for the available options
    Access properties related to the next block to be added to the blockchain and the current transaction from within a smart contract
    Store and access key and value pairs using solidity's mapping data structure
    Use 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 object
    Create and use a mapping instance to store instances of structs as values
    Recognize the syntax of if statements and for loops
    Distinguish between while and do while loops
    Recognize how to use mappings and structs in the solidity language

IN THIS COURSE

  • 2m 15s
  • 5m 48s
    In this video, you will learn how to build a smart contract to conduct a poll using Solidity data structures and functions. FREE ACCESS
  • Locked
    3.  Interacting with the Voting App
    6m 21s
    In this video, find out how to use the deployed voting smart contract to cast votes for the available options. FREE ACCESS
  • Locked
    4.  Block and Transaction Properties
    7m 15s
    In this video, find out how to access properties related to the next block to be added to the blockchain and the current transaction from within a smart contract. FREE ACCESS
  • Locked
    5.  Introducing the Mapping Data Structure
    7m 26s
    Find out how to store and access key and value pairs using Solidity's mapping data structure. FREE ACCESS
  • Locked
    6.  Enhancing the Voting App
    8m 25s
    In this video, find out how to use a mapping data structure in the voting app to record whether a voter has previously cast their ballot. FREE ACCESS
  • Locked
    7.  Using Structs with Composite Data
    7m 10s
    In this video, you will use a struct to store and access composite data within one object. FREE ACCESS
  • Locked
    8.  Complex Data in Mapping Instances
    9m 30s
    Find out how to create and use a mapping instance to store instances of structs as values. FREE ACCESS
  • Locked
    9.  Control Structures: If Statements and For Loops
    5m 39s
    Upon completion of this video, you will be able to recognize the syntax of if statements and for loops. FREE ACCESS
  • Locked
    10.  Control Structures: While and Do while Loops
    4m 49s
    In this video, you will learn how to distinguish between while and do-while loops. FREE ACCESS
  • Locked
    11.  Exercise: Data and Control Structures in Solidity
    5m 26s
    After completing this video, you will be able to recognize how to use mappings and structs in Solidity. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 6 users Rating 4.5 of 6 users (6)
Rating 4.4 of 17 users Rating 4.4 of 17 users (17)
Rating 4.3 of 4 users Rating 4.3 of 4 users (4)