首页
编程日记
ChatGpt专题
LINUX学习
Java学习
前端教程
单片机
arcgis
python入门
ssh
文学
全志
图像阴影检测
st-link
ico
MIT
关键路径
symfony
创业项目
文件共享
web3py
YOLOX
MVCC
比较运算符
选择排序
大学生网页作业
神经网络预测
foundry
2024/4/13 0:45:33
Michael.W基于Foundry精读Openzeppelin第33期——EIP712.sol
Michael.W基于Foundry精读Openzeppelin第33期——EIP712.sol 0. 版本0.1 EIP712.sol 1. 目标合约2. 代码精读2.1 constructor(string memory name, string memory version)2.2 _domainSeparatorV4()2.3 _hashTypedDataV4(bytes32 structHash) 0. 版本 [openzeppelin]ÿ…
阅读更多...
Michael.W基于Foundry精读Openzeppelin第38期——AccessControlEnumerable.sol
Michael.W基于Foundry精读Openzeppelin第38期——AccessControlEnumerable.sol 0. 版本0.1 AccessControlEnumerable.sol 1. 目标合约2. 代码精读2.1 supportsInterface(bytes4 interfaceId)2.2 _grantRole(bytes32 role, address account)2.3 _revokeRole(bytes32 role, addre…
阅读更多...
Michael.W基于Foundry精读Openzeppelin第26期——ERC1820Implementer.sol
Michael.W基于Foundry精读Openzeppelin第26期——ERC1820Implementer.sol 0. 版本0.1 ERC1820Implementer.sol 1. 目标合约2. 代码精读2.1 _registerInterfaceForAddress(bytes32 interfaceHash, address account) internal2.2 canImplementInterfaceForAddress(bytes32 interf…
阅读更多...
Michael.W基于Foundry精读Openzeppelin第24期——ERC165Storage.sol
0. 版本 [openzeppelin]:v4.8.3,[forge-std]:v1.5.6 0.1 ERC165Storage.sol Github: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.3/contracts/utils/introspection/ERC165Storage.sol ERC165Storage合约是ERC165…
阅读更多...
Michael.W基于Foundry精读Openzeppelin第23期——ERC165Checker.sol
Michael.W基于Foundry精读Openzeppelin第23期——ERC165Checker.sol 0. 版本0.1 ERC165Checker.sol 1. 目标合约2. 代码精读2.1 supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId)2.2 supportsERC165(address account)2.3 supportsInterface(address acc…
阅读更多...
Michael.W基于Foundry精读Openzeppelin第36期——Ownable2Step.sol
Michael.W基于Foundry精读Openzeppelin第36期——Ownable2Step.sol 0. 版本0.1 Ownable2Step.sol 1. 目标合约2. 代码精读2.1 pendingOwner() && transferOwnership(address newOwner) && _transferOwnership(address newOwner)2.2 acceptOwnership() 0. 版本 …
阅读更多...
区块链智能合约测试框架Foundry技术指南
在区块链开发领域,智能合约的安全性和可靠性至关重要。鉴于区块链的不可变性,智能合约中的任何错误都可能导致不可逆转的后果,包括重大的财务损失。这凸显了彻底测试的关键重要性。Foundry 是一种 Solidity 测试框架,在这一领域中成为一个强大的工具,为开发人员提供了严格…
阅读更多...