full-blockchain-solidity-course-py README

The project's README from github.com/smartcontractkit/full-blockchain-solidity-course-py. As one markdown file: README.md.

Big Update: New Sepolia Faucet Located Here. \Kovan, Ropsten, and Rinkeby have been deprecated. Goerli Still works but we highly recommend Sepolia as its proof of stake based.

You'll need to verify via Twitter to get ETH & LINK. You can find Backup Faucets here.

Additionally, lesson 7 uses Chainlink VRF v1 instead of v2, you can find the docs for Chainlink VRFv1 here.

YouTube Video


Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial


Welcome to the repository for the Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition FreeCodeCamp course!

Table of Contents

Resources For This Course

Questions

Windows Support

Hiccups/Issues from the Video

Lesson 0: Welcome To Blockchain

What is a Blockchain?

Making Your First Transaction

How Do Blockchains Work?

Consensus

The Future

Miscellaneous

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

Remix

Basic Solidity

Deploying to a "Live" network

Lesson 2: Storage Factory

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

Inheritance, Factory Pattern, and Interacting with External Contracts

Lesson 3: Fund Me

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

Payable, msg.sender, msg.value, Units of Measure

Importing from NPM and Advanced Solidity

Lesson 4: Web3.py Simple Storage

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

Installing VSCode, Python, and Web3

Our First Python Script with Web3.py - Deploying a Contract

Interacting with Our Contract in Python & Web3.py

Lesson 5: Brownie Simple Storage

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

Brownie Introduction

Installing Brownie

Brownie Simple Storage Project

Testing Basics

[Brownie console]

Lesson 6: Brownie Fund Me

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

Introduction

Dependencies, Deploying, and Networks

Funding and Withdrawing Python Scripts

Testing across networks

Git

Compatibility with Ganache UI

E           ValueError: Execution reverted during call: 'VM Exception while processing transaction: revert'. This transaction will likely revert. If you wish to broadcast, include `allow_revert:True` as a transaction parameter.

More information here.

Lesson 7: [Smar

full-blockchain-solidity-course-py (smartcontractkit/full-blockchain-solidity-course-py)

Searching Database…

这是什么?这是由 Chainlink 组织与 FreeCodeCamp 联合制作的免费 Solidity、区块链和智能合约课程(Python 版),从入门到进阶——这个仓库保存了 YouTube 课程的课程笔记、代码和资料。
这里是看视频课程,还是要克隆代码来运行什么?课程是在 YouTube 上观看的视频。这个仓库是它的配套资料:按课次整理的大纲和代码链接,还记录了跟着视频学习时可能遇到的一些已知问题。
完全的新手应该从哪里开始?先在 YouTube 上观看第 0 课,然后在 Remix 浏览器 IDE 里配合 MetaMask 完成第 1 课的简单存储合约——在第 4 课开始的环境搭建之前,不需要在本地安装任何东西。
后面几节课需要在电脑上安装什么?从第 4 课开始:VSCode、Python 和 Web3.py;从第 5 课开始用 Brownie 框架(pipx install eth-brownie);还需要 Node.js 来运行本地 Ganache 链。Windows 用户在 README 开头有专门的安装指南链接。
课程内容现在还适用吗,有没有明显过时的地方?有些内容已经过时了:Ropsten、Kovan 和 Rinkeby 测试网已经停用(现在推荐用 Sepolia),课程里的水龙头需要 Twitter 验证,而且第 7 课用的还是 Chainlink VRF v1,而不是 v2。
我需要预先懂 Solidity 或 Python 吗?不需要——课程从区块链到底是什么讲起(第 0 课),第 1 课就开始在浏览器里教 Solidity 基础,Python 工具直到第 4 课配合 Web3.py 才出现。
学完这些课我实际能做出什么?一共十三课:区块链基础、在 Remix 里写 Solidity、继承和工厂模式、带 Chainlink 价格预言机的 Fund Me 合约、原生 Web3.py 脚本、Brownie 项目(简单存储、fund me、智能合约彩票)、ERC20 代币标准、用 Aave 玩 DeFi、用 IPFS 元数据做 NFT、合约升级,还有一个附加的全栈 DeFi 质押收益 dapp。
跟着课程学习要花多少钱?课程本身免费,练习都在测试网上进行:ETH 和 LINK 从水龙头领取,比如推荐的 Sepolia 水龙头,它只需要一次 Twitter 验证——不用花真钱。
Brownie 是什么?为什么这门课有一半都用它?Brownie 是一个 Python 智能合约框架,从第 5 课开始使用:brownie init 用来创建项目,brownie compile 用来编译合约,部署脚本以 main() 为入口,测试采用 pytest 风格,而且它默认会启动一条本地 Ganache 链。
为什么说这是 Python 版?所有链下的工作都用 Python 完成:合约的部署、调用和测试都是通过 Web3.py 脚本和 Brownie 项目,而不是 JavaScript 那一套——Node.js 只是用来运行本地 Ganache 链。
Size
0.2 MB
Stars
11.2K
Updated
CommitApr 10
Age
5y
Commits · 90 Days