首页
编程日记
ChatGpt专题
LINUX学习
Java学习
前端教程
单片机
网络协议
人工智能
SSD
jadx批量反编译
excel
kinect
负载均衡
关键路径
decodeByteArray
电路
mvc
Pyhton
linq
nullptr
ATM系统
so
fastapi
git reset
Java语言
薪资
openzeppelin
2024/4/13 0:45:27
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. 版本 …
阅读更多...
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第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第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…
阅读更多...