Samyoul / Blockchain-North-East-Solidity-For-Beginners

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blockchain-North-East-Solidity-For-Beginners

https://docs.google.com/presentation/d/1tZCOUgVF_1sgipIbyFr8JYp6vIibzg3VZ4SM9p_1tqA/edit?usp=sharing

Things We’ll Cover

  • Things you need to know
  • Dependencies
  • Link to code repository
  • Benefits of Ethereum Smart Contracts
  • Setup Development Environment
  • Building The Smart Contract
  • Building the Interface
  • Summary

Things You Need To Know

  • Basic programming
    • Variables
    • Classes
    • Functions and methods
  • HTML
  • CSS
  • JavaScript
  • IDEs

Dependencies and Tools

Link to Code Repository

https://github.com/Samyoul/Blockchain-North-East-Solidity-For-Beginners

Applications of Ethereum Smart Contracts

Applications

  • Finance
  • Education
  • Recruitment
  • Medicine
  • Gambling

Setting Up the Development Environment

  • Launch Remix
  • Launch Ganache

Building The Smart Contract

  • Define the pragma
  • Create the contract “BlockchainNorthEast”
  • Set variables
    • organisers (mapping(address => bool))
    • attendees (mapping(address => bool))
    • attendeeCount (uint128)
  • Getters
    • getAttendeeCount view
    • isAttendee view
    • isOrganiser view
  • Setters -addAttendee - (as long as they are not in the list) -removedAttendee - (as long as they are in the list) -Modifiers -onlyByAttendee(address _address) -Demonstrate Remix test functionality

Building the Interface

Summary

  • Uses and benefits of Ethereum Smart Contracts
  • Basic Development Tools, Remix and Ganache
  • Building a contract
    • Pragma
    • Variables
    • Getters
    • Setters
    • Modifiers
  • Building a UI
    • Web3.js
    • Connecting to a node
    • Define Ethereum address, contract ABI, contract address
    • Interacting with the contract object with methods

About


Languages

Language:HTML 88.7%Language:Solidity 11.3%