Create 2 Patterns
summary
Create2 is presented as the primitive that enables counterfactual wallets and address-encoded metadata by using a factory, salt and init code so addresses are deterministic; actual builds include lazy wallets (send assets before deploy), Uniswap-style deterministic pools, an L2 token-address oracle, a withdraw-via-deploy UX hack, and a proof-of-concept c2c NFT bridge repo that works but pushes complexity to withdrawals. Notes: resurrecting via self-destruct is possible but fragile, duplicate salts fail, and deposits boil down to the minimal transfer+mint pattern.
AI-written summary · about
chapters (9)
- 0:00Introduction to patterns
- 0:50Understanding create2
- 2:29Technical implementation
- 3:24Counterfactual patterns
- 5:22Lazy wallet creation
- 7:34Encoding data in addresses
- 9:16Advanced composition flows
- 12:18Counterfactual NFT bridging
- 17:25Q&A and concluding thoughts
related talks
01h 03mBeginners Track Welcome & Speedrun Ethereum Introduction
26mDeploying a Stablecoin
54mMy Little Token (Part 1)
44mAn Overview of Building
25mCommSec D2 - Smart Contract (In)Security
30mWallets and Platforms - Could the Game be Changing?
01h 38mBuilding a DeFi App: Code along
16mTips and Tricks to Deploy L1 Smart Contracts on Optimism
