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:
- Write and test Solidity contracts with Foundry, including fuzz tests.
- Build ERC-20 and ERC-721 contracts on top of audited libraries.
- Recognise and prevent the most common smart contract vulnerabilities.
- Deploy, verify and interact with a contract on a test network.
Course outline
| Module | Topic |
|---|---|
| 1 | The EVM and how contracts execute |
| 2 | Solidity basics: types and functions |
| 3 | Foundry project setup and tooling |
| 4 | Storage, events and errors |
| 5 | Testing: unit, fuzz and invariant tests |
| 6 | Token standards with OpenZeppelin |
| 7 | Access control and ownership |
| 8 | Security: common vulnerabilities |
| 9 | Upgradeability and proxies |
| 10 | Gas optimisation |
| 11 | Deployment, verification and front-end integration |
| 12 | Project: 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.