Advanced Solidity: Understanding and Optimizing Gas Costs

th_kq69qGOfbKXmwENzt5AP31hCuOO9UyXw

曾经对智能合约中的 gas 成本感到惊讶吗?以太坊虚拟机确定性地计算这些成本,但除非你想梳理密集的黄皮书,否则理解如何有点模糊!本课程可帮助您了解最后一点 gas 的来源以及使交易变得异常昂贵的陷阱。

本课程面向希望从初级到高级中级的 Solidity 开发人员。假定了解 Solidity、OpenZeppelin 和 Remix。您应该知道如何部署和测试智能合约,并且理想情况下,您之前已经在主网上创建了一个代币(并且体验过它的成本有多高!)。

我是 ERC1155D 的作者,可以说是最有效的 NFT 合约。我在这里与您分享我的学习!

我一生中最愉快的几年是在哥伦比亚大学教授计算机科学,所以我很高兴能以虚拟方式重温那些年!

涵盖的主题包括

深入研究solidity编译器

深入了解以太坊虚拟机

如何理解solidity编译器的输出

如何追踪浪费的计算

了解 gas 成本规格

提高gas成本的技术

内存、交易数据、状态变化和计算成本如何影响交易成本

要避免的不良设计

Published 05/2022
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 45 lectures (2h 47m) | Size: 1.46 GB

Mastering the Ethereum Virtual Machine and the Solidity Compiler

What you’ll learn
Learn how the Ethereum Virtual Machine sets the gas price
Learn how to improve the gas price of existing code
Learn how to debug execution costs for smart contracts
Learn what designs to avoid that lead to high execution costs

Requirements
Basic understanding of solidity
Ideally, created an ERC-20 or ERC-721 token before

Description
Ever been surprised by the gas costs in a smart contract? The Ethereum Virtual Machine calculates these costs deterministically, but understanding how is a bit obscure unless you want to comb through the dense yellowpaper! This course helps you understand where every last bit of gas is coming from and the gotchas that can make transactions surprisingly expensive.

This course is for solidity developers looking to progress from beginner to advanced intermediate. Knowledge about Solidity, OpenZeppelin, and Remix is assumed. You should know how to deploy and test a smart contract, and ideally, you’ve created a token on the mainnet before (and experienced how expensive it can be!).

I’m the author of ERC1155D, arguably the most efficient NFT contract created. I’m here to share my learnings with you!

Some of the most enjoyable years of my life was teaching computer science at Columbia University, so I’m happy to relive those years virtually!

Topics covered include

A deep dive into the solidity compiler

A deep dive into the Ethereum Virtual Machine

How to understand the output from the solidity compiler

How to track down wasteful computation

Understanding gas cost specifications

Techniques for improving gas costs

How memory, transaction data, state changes, and computational cost affect transaction cost

Bad designs to avoid

Where the Yellowpaper is wrong!

Who this course is for
Smart contract developers looking to make their smart contracts more gas efficient

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/32708.html

赞 (0)
steven的头像steven
上一篇 2022年5月7日
下一篇 2022年5月7日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部