Build omnichain tokens and more in 5 mins with LayerZero
summary
Live demo shows a complete OFT deployment end-to-end in under five minutes: scaffold with npx create-lzo-app, configure Hardhat for Base and Arbitrum, edit LayerZero config, deploy ERC20-compatible OFT contracts and run npx hardhat lz deploy. Wiring the mesh submits 12 wiring transactions (six per chain), mints 10 demo tokens, then sends 1 token cross-chain; mechanics are burn/mint debit-credit, LayerZero push-based messaging with encoded bytes, OFT adapter for wrapping existing tokens, and LZ read examples for correlating send/receive.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 0:10Workshop Overview & Objectives
- 0:37Project Setup with LayerZero CLI
- 1:14Installing Dependencies & Boilerplate
- 2:05Initializing & Configuring Networks
- 2:43Setting Up LayerZero Endpoints
- 3:27Editing LayerZero Config & Pathways
- 4:15Minting & OFT Contract Details
- 5:04Deploying OFT Contracts
- 5:53Wiring Contracts for Cross-Chain Messaging
- 6:22Sending Tokens Across Chains
- 7:14On-Chain Transaction Analysis
- 7:36OFT Contract Architecture & Logic
- 9:41Message Encoding & Decoding
- 10:08LayerZero Push-Based Messaging Explained
- 11:12Deep Dive: Send Function & Message Codec
- 13:22Message Structure & Decoding
- 14:52How OFT Handles Cross-Chain Transfers
- 15:25LayerZero Documentation & Examples
- 15:50Q&A: Correlating Transactions with LZ Read
- 17:28Advanced LZ Read Use Cases
- 18:49Wrapping Existing Tokens with OFT Adapter
- 19:56Cross-Chain Function Calls Example
- 21:10Closing Remarks & Further Questions
related talks
18mLayerZero Workshop
27mOmnichain Vaults Inside LayerZero's ERC4626 OVault Standard
29mSend Tokens and Call Anything Cross Chain
20mTransfer Layer: Scalability and Cross Chain Bridges
42mBuilding Full-Stack dApps
30mGetting Started with the Polygon LxLy Bridge
01h 38mBuilding a DeFi App: Code along
36mDon’t Chain Yourself to One Network
