Smart contracts are programs that run on a blockchain, and once deployed they are hard or impossible to change. A bug can be permanent and expensive, which is why smart contract development puts far more weight on testing and security than most software work. This course teaches Solidity for EVM-compatible chains using Foundry, with security habits built in from the first module. It is a technical course only and does not offer investment advice.

What you'll learn

  • The EVM execution model: accounts, storage, memory, calldata and gas
  • Solidity syntax: types, functions, visibility, modifiers, errors and events
  • Setting up a project with Foundry, and how it compares with Hardhat
  • Unit tests, fuzz tests and invariant tests for contracts
  • Token standards: ERC-20 and ERC-721, using audited OpenZeppelin implementations
  • Access control, pausing and safe ownership patterns
  • Common vulnerabilities: reentrancy, access control bugs, oracle manipulation and unchecked external calls
  • Upgradeable contracts with proxies, and the risks they introduce
  • Gas optimisation that does not compromise readability or safety
  • Deploying to test networks, verifying source code and calling contracts from a front end with viem or ethers.js

Who it's for

  • Developers who understand blockchain basics and want to write contracts
  • Back-end and full-stack developers asked to build or review Web3 features
  • Security-minded developers interested in smart contract auditing

Prerequisites

  • Solid programming experience, ideally in JavaScript or TypeScript
  • Blockchain concepts such as transactions, gas and wallets (see Blockchain and Web3 Fundamentals)

Outcomes

By the end of this course you will be able to:

  1. Write and test Solidity contracts with Foundry, including fuzz tests.
  2. Build ERC-20 and ERC-721 contracts on top of audited libraries.
  3. Recognise and prevent the most common smart contract vulnerabilities.
  4. Deploy, verify and interact with a contract on a test network.

Course outline

ModuleTopic
1The EVM and how contracts execute
2Solidity basics: types and functions
3Foundry project setup and tooling
4Storage, events and errors
5Testing: unit, fuzz and invariant tests
6Token standards with OpenZeppelin
7Access control and ownership
8Security: common vulnerabilities
9Upgradeability and proxies
10Gas optimisation
11Deployment, verification and front-end integration
12Project: a tested, documented contract on a test network

FAQ

Will this make me a smart contract auditor?

No. It gives you a solid security foundation, but professional auditing takes much more practice. Any contract that holds real value should be independently audited.

Do I need to spend cryptocurrency?

No. Everything runs on local chains or public test networks with free test tokens.

Is this investment advice?

No. The course teaches software development only and does not recommend any token, project or investment.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.