找到约 15 条结果

文章 对 zksync 官方 Paymaster 示例代码的理解

...r: MIT pragma solidity 0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/IPaymaster.sol"; import "./interfaces/IPaymasterFlow.sol"; import "./L2ContractHelper.sol"; // 这是个假出纳员。它希望 paymasterInput 包含其“签名”以及所需...

视频 Pectra 升级带来的:原生账户抽象、EOF、EIP-7702、Rollups 变化等...

...前账户抽象的进展、面临的挑战以及未来的提案,特别是ERC-4337、EAP-7702和RIP-7560等提案的关系和作用。 关键论据和信息包括: 1. **账户抽象的现状**:ERC-4337是第一个提出账户抽象的提案,已在以太坊主网运行超过一年,解...

文章 每周以太坊进展 2023/6/10

...排序](https://arxiv.org/abs/2306.02179)经济学分析 ## EIP * ERC: * [ERC7144](https://github.com/ethereum/EIPs/pull/7144/files):带有交易验证步骤的ERC20 * [ERC7160](https://github.com/ethereum/EIPs/pull/7160/files) : ERC721 扩展,支持多个元数据 ## ...

问题 手续费已经扣到了合约地址 但是在兑换bnb的时候一直兑换不出来 确定合约地址里面币是够的 求大神指点

...cipient, uint256 amount) private { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); if (sender == uniswapV2Pair) { // Buy transaction uint256 fee = a...

文章 Samczsun talk about Re-entrancy

...UniswapExchangeLiks(exchange).sync(); validate the address ``` ```js ERC20like(token).decimals(); ``` ## can the call be hooked is there a way for an attacker to gain control of your execution ``` contract Caller{ fallback() external{ call... } } ``` ``` contract BadTok...

文章 Devcon日程已上线!

...a:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%271064%27%20height=%27456%27/%3e)![Devcon 日程已上线!](https://img.learnblockchain.cn/2025/06/04/12510025_image.jpg) 嗨,以太坊的朋友们, 距离 Devcon 还有 13 天,我们对今年活...

文章 Web3系列教程之进阶篇---8. IPFS实战

...集中管理初始阶段结束后的常见模式。 - 我们还将使用 ERC721 的扩展,称为[ERC721 Enumerable](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Enumerable.sol) - ERC721 Enumerable 可帮助您跟踪合约中的所...

文章 创建一个像Opensea一样的NFT市场

...上的图片存储。 - 在Dabit教程的第一个版本中,他将NFT ERC721代币智能合约和市场智能合约分开。在第二个版本中,他选择了在一个智能合约中建立一个具有maketplace功能的NFT ERC721。我们选择在这里将它们分开,因为我们想建立...

文章 Layer2 开发教程 # 3 账户抽象

...原生的账户抽象,在关键部分做了不一样的处理:【关于ERC4337协议的内容后续我会在其他文章详细阐述】 * **实现层面**:zkSync Era 的账户抽象在协议层面进行集成,EIP4337 则避免了在协议层面的实现。【EIP4337协议不用修改共识...

文章 快速实现一个多重调用合约

...可以使用不同的参数; # 合约开发 #### 测试合约(一个ERC20代币合约) **说明**:一个名字MockToken 符号为 "MTK" 余额为1000000 MTK标准的代币,具备铸造等功能 ``` // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/cont...

文章 每周以太坊进展 2023/9/30

...thub.com/ethereum/EIPs/pull/7776/files): 不活跃账户的过期状态 - ERCs(应用层): - [ERC7524](https://github.com/ethereum/EIPs/pull/7775/files): 钱包中的 PLUME 签名 - [ERC7526](https://github.com/ethereum/EIPs/pull/7781/files): Onchain NFT 版税实施 ## **开发者...

文章 EIP-1153: Transient storage opcodes 簡介

...及覆寫storage時即可以省更多的gas。 ### Single transaction ERC20 approvals 在ERC20新增一個 `temporaryApprove` function,允許其他帳戶動用使用者固定的ERC20數量並且在交易結束時自動還原回原本的 allowance 金額,此舉可以避免合約在交易結...

文章 每周以太坊进展 2023/5/27

...s://github.com/ethereum/EIPs/pull/7069/files):改进的 CALL 指令 * ERC: * [ERC7050](https://github.com/ethereum/EIPs/pull/7050/files):标记 NFT 创作者 * [ERC7053](https://github.com/ethereum/EIPs/pull/7053/files):可互操作的数字媒体索引 * [ERC7066](ht...

文章 ChatGPT Solidity 智能合约

...兴趣注意到它使用了 Solidity ^0.6.0 ,而且它没有选择使用 ERC721 和 ERC1155 标准。 我决定尝试一个实验。我第二次给了它同样的提示——令我惊讶的是,这次它生成了一个使用 ERC721 标准的合约。这表明该系统如何具有随机方面...

文章 每周以太坊进展 2023/4/29

...thub.com/ethereum/EIPs/pull/6953/files):网络升级激活触发器 * ERC: * [ERC6927](https://github.com/ethereum/EIPs/pull/6927/files) : NFT融合协议 * [ERC6932](https://github.com/ethereum/EIPs/pull/6933/files):基于订阅的代币 * [ERC6944](https://github.com/...