The ULTIMATE Guide to the Polygon CDK | Build A ZK-EVM Layer 2 Blockchain
ฝัง
- เผยแพร่เมื่อ 14 ก.ค. 2024
- Learn how to build your own layer 2 ZK-EVM blockchain from scratch using the Polygon CDK and the Polygon Kurtosis Package. In this video, we cover essential concepts required for understanding layer 2 chains and build our own ZK powered layer 2 blockchain with the Polygon CDK on Ethereum's Sepolia testnet.
📚 Essential Resources 📚
· Polygon CDK Kurtosis Package: dub.sh/polygon-kurtosis
· Alchemy RPC: dub.sh/alchemy
📚 Helpful Resources 📚
· L2Beat: dub.sh/l2beat
· Polygon CDK Docs: dub.sh/polygon-cdk-docs
· Kurtosis Docs: dub.sh/kurtosis-docs
📜 Scripts 📜
```
polycli wallet inspect --mnemonic "$seed" --addresses 9 | \
jq -r '.Addresses[] | [.ETHAddress, .HexPrivateKey] | @tsv' | \
awk 'BEGIN{split("sequencer,aggregator,claimtxmanager,timelock,admin,loadtest,agglayer,dac,proofsigner",roles,",")} {print "zkevm_l2_" roles[NR] "_address: \"" $1 "\""; print "zkevm_l2_" roles[NR] "_private_key: \"0x" $2 "\"
"}'
```
⌚Timestamps ⌚
0:00 Introduction
1:17 Concepts: What is a Layer 2 blockchain?
4:37 Concepts: Layer 2 Architecture
13:47 Concepts: Data availability
16:12 Concepts: ZK Rollups
19:57 Concepts: ZK Validiums
23:31 Concepts: Rollups vs. Validiums
25:19 Concepts: Layer 2 Transaction Lifecycle
33:40 Concepts: What is the Polygon CDK?
36:61 Polygon CDK Kurtosis Package Introduction
38:39 Setting up your development environment
49:38 Exploring the codebase
57:57 Getting testnet funds
1:03:02 Deploying the L2 on Sepolia
1:41:17 Testing the L2 chain
2:01:00 Outro
Follow me on Twitter: / jarrodwattsdev
Join my Discord Server: / discord - วิทยาศาสตร์และเทคโนโลยี
Mining 25ETH is a huge issue. The way shown in the video lets me mine 2.5ETH/day. Any fast mining way or can we reduce the distribution from 25 to 2.5 eth ?
Ahh, damn, I didn’t realise there was a cap, thanks for letting me know. Few options you can do:
1/ Yes you can reduce the distribution by a lot, you can try 2.5 ETH
2/ Try holesky testnet, easier to get testnet funds there. (Can combine with #1 too)
3/ The default behaviour is to deploy a local L1 for you to use. So you don’t have to use an existing L1 testnet at all, I just think it’s cooler to use a testnet and a good way to showcase customization.
@@JarrodWatts Great!! Will changing l1_funding_amount: 5ether to l1_funding_amount: 0.5ether in params.yml do, or do I have to change another file to reduce distribution to 2.5 ETH?
@@JarrodWatts Will change l1_funding_amount: 5ether to l1_funding_amount: 0.5ether in params.yml solve the issue, or do I need to make a change somewhere else too?
I was waiting for this video for such a long time. Many Thnaks.
This is so great and premium content for free ❤️😭
Thanks!!!!
Perfect ...
Legend
Thank you very much ser for this video
Thank you
Интересно ИИ смог бы создать layer 2 уровень с помощью polygon SDK?
Hi Jarrod, always enjoy your videos and thank you for making this one!
I followed every single step on your video using Mac but failed to deploy after I ran
kurtosis run --enclave 'cdk-v1' --args-file params.yml --image-download always .
I received a completely different error and it's very long. Here are the last 2 lines.
Caused by: An error occurred creating an API container from image 'kurtosistech/core:0.89.0'
Caused by: An error occurred while getting the reverse proxy enclave network IP address for enclave 'd149d8f360fe425c8c45e7c98b279eb5', This is a bug in Kurtosis
Do you think you can shed some lights on how to fix this? Really appreciate your reply!
We are all having trouble installing it on mac, the tutorial should have been for mac Os users