Dylanの博客

记录生活,记录成长

0%

Week1.2_Remix and Simple Storage

Week1.2_Remix and Simple Storage

⌨️ (01:31:00) Lesson 1: Welcome to Remix! Simple Storage

💻 Code: https://github.com/PatrickAlphaC/simple_storage

Everything in this section can be read about in the Solidity Documentation

Basic Solidity

  • Versioning : Change the version of solidity

  • Compiling

  • Contract Declaration

  • Types & Declaring Variables

    • uint256, int256, bool, string, address, bytes32
  • Default Initializations

  • Comments

  • Functions

  • Deploying a Contract

  • Calling a public state-changing Function

  • Visibility

  • Scope

  • View & Pure Functions: View and Pure are non-state changing functions

  • Structs

  • Memory:Data will only be stored during the execution of the function

    Storage:Data will persist even after the execution of the function

    Mappings: A dictionary like data structure with I value per key

  • Arrays - Dynamic & Fixed sized: Strings are actually an object:An array of bytes

  • Compiler Errors and Warnings

  • SPDX License

  • Recap

Deploying to a “Live” network

  • A testnet or mainnet
  • Find a faucet here
  • Connecting Metamask
  • Interacting with Deployed Contracts
  • The EVM