If you have great ideas,
Let's talk!

blog

30天Web3入门(4)

web3

📅 DAY 4 (Oct 27 - Monday): REAL CODE ANALYSIS (5-6 hours)

Morning Session (2-3 hours)

WATCH: Patrick Collins Solidity Course (First 4 Hours at 2x Speed)

  • Link: https://www.youtube.com/watch?v=umepbfKp5rI
  • Time: 2 hours (watching at 2x speed, but PAUSE when confused)
  • Focus Sections:
    • Introduction & Setup (watch at 2x, you don’t need local setup yet)
    • Blockchain Basics (skim, you know this from Days 1-2)
    • Remix IDE walkthrough (IMPORTANT - pause and follow along)
    • First Smart Contract (PAUSE - actually code along)
    • Storage Factory (PAUSE - code along)
    • Fund Me project intro (understand the concept)

What to Focus On:

  • How to use Remix (browser-based Solidity IDE)
  • Deploying contracts to JavaScript VM (local test environment)
  • Calling functions and seeing results
  • Reading transaction details
  • Understanding constructor functions
  • Contract-to-contract interactions

Pro Tip: Don’t try to memorize syntax. Focus on CONCEPTS. Syntax you can always Google.

Afternoon Session (2.5-3 hours)

DO: Read 5 Real Contracts on Etherscan

This is where it gets REAL. You’ll read actual production code handling millions of dollars.

Contract #1: Simple ERC-20 Token

Don’t understand everything! Focus on:

  • Can you identify state variables?
  • Can you find the transfer logic?
  • What checks does it do before transferring?

Contract #2: Uniswap V2 Pair

Key Insight: Notice how much MATH is in here. DeFi = financial engineering in code.


Contract #3: Simple Multisig Wallet

Key Insight: See how smart contracts can encode governance rules.


Contract #4: NFT Contract (ERC-721)

Key Insight: NFTs are just tokens with unique IDs. The “image” isn’t stored on-chain - just a link to it.


Contract #5: Simple Oracle (Chainlink Example)

Key Insight: This is how smart contracts get external data. They can’t fetch it themselves - they PULL from oracle contracts.


Evening Synthesis (30-45 min)

WRITE THIS OUT: Smart Contract Mental Model

Answer these in your own words:

  1. What IS a smart contract? (Hint: It’s not just “code on blockchain” - what makes it SMART?)
  2. Give 3 examples of what smart contracts CAN do well (Financial logic, transparent rules, composability…)
  3. Give 3 examples of what smart contracts CANNOT do (Access APIs, generate randomness, execute on schedule…)
  4. What is the biggest risk of smart contracts? (Hint: Immutability + bugs = ?)
  5. Why do people say “code is law” in Web3?