Tips and Tricks to Deploy L1 Smart Contracts on Optimism
summary
Builds a working Synthetics dApp on Optimism (see Quentin.oh) by reusing existing Solidity code compiled with an OVM transpiler (Solc fork), connecting L1 escrow + bridge to an L2 sequencer and relayer, and handling deposits/mints and withdrawals with a one-week withdrawal delay. Tests include unit tests, L1 integration, L2 integration (Optimism Docker sequencer/geth fork) and full cross-layer deposit/withdraw flows. Notes: contract-size bloat from transpiler, L2 sees L1 block timestamps, and gas encoding yields values like gas price 0.015.
AI-written summary · about
chapters (13)
- 0:00Intro
- 0:39WHERE ARE WE?
- 1:30WHY DOES SYNTHETIX NEED ANOTHER LAYER?
- 2:45SO WHY OPTIMISM?
- 3:48OPTIMISM IN A NUTSHELL
- 5:17EXTENDING SYNTHETIX ACROSS LAYER 2
- 6:31MESSAGING: DEPOSITS
- 7:36MESSAGING: WITHDRAWALS
- 8:57POLYMORPHIC APPROACH
- 10:42GOTCHAS
- 11:37DEPLOYMENT
- 13:32TESTING: UNIT
- 13:56TESTING: INTEGRATION
related talks
01h 03mBeginners Track Welcome & Speedrun Ethereum Introduction
29mSynthesis-Powered Optimization of Smart Contracts via Data Type Refactoring
25mCommSec D2 - Smart Contract (In)Security
01h 43mIntroduction to Trust-Minimized Services
51mBlockchain and smart contracts (...)
19mTop 5 Tricks for Smart Contract Productivity
38mThe Duality of Smart Contracts and Electronic Rights
42mLive coding session: Program an NFT smart contract in 30min w/ SmartPy
