... ``` pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contract NFT_WEB3_EXPLORER is ERC721, ERC721Enumerable, Ownable { ...
...`EIP-1822 UUPS`的进一步标准化版本,读者可以在这里找到[ERC文档](https://learnblockchain.cn/docs/eips/EIPS/eip-1967)。该标准被`etherscan`等区块链浏览器支持,可以提供完整的代理合约展示和交互功能。你可以前往[USDC合约](https://etherscan.io/add...
...thub.com/ethereum/EIPs/pull/7266/files):移除blake2f (0x09)预编译 - ERCs(应用层): - [ERC7265](https://github.com/ethereum/EIPs/pull/7265/files):断路器,用于当超过阈值时暂停 Token 留出。 - [ERC7272](https://github.com/ethereum/EIPs/pull/7272/files):以太坊...
...s://github.com/ethereum/EIPs/pull/7949/files):分离付款方交易 * ERC(应用层): * [ERC7554](https://github.com/ethereum/ERCs/pull/97/files):通过元数据附件实现 NFT 的收益(ERC721 扩展) * [ERC7555](https://github.com/ethereum/ERCs/pull/99/files):用...
...nvulnerabledefi-foundry > ## 合约 - ReceiverUnstoppable:继承IERC3156FlashBorrower合约,用于发起闪电贷,执行闪电贷后的回调 - UnstoppableVault:金库合约,继承IERC3156FlashLender、ERC4626,支持闪电贷 ## 脚本 - 依次部署DamnValuableToken、Uns...
...com/ethereum/EIPs/pull/7809/files):EVM 配置文件用于 zk rollup * ERC(应用层): * [ERC7527](https://github.com/ethereum/EIPs/pull/7797/files):基于内置函数 Oracle AMM 的标准接口系统 * [ERC7528](https://github.com/ethereum/EIPs/pull/7808/files):ETH(原...
...s`付出(前提是用户在`paymasters`有存款或授权一定数量的 ERC20 代币)。这使得用户在区块链上能有更好的体验了。 # 设计 ZKsync 上的帐户抽象协议与 `EIP-4337`非常相似,但为了效率和更好的用户体验,仍然有所不同。 ## No...
...约 ``` pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; contract BurnableToken is ERC20BurnableUpgradeable { function initialize() init...
...: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"; contract TokenBank { IERC20 public token; mapping(address => uint256) public balances; // 定义事件 even...
...提供者)代币作为凭证和奖励。 ### 为什么不能只依赖 ERC20 余额? 虽然每个合约都有自己的存储空间,ERC20 代币通过 mapping 记录地址和余额的对应关系,但仅仅依赖 ERC20 合约中的余额来管理流动性是不够的,主要原因包括...
...:RIP-7560(原生账户抽象) - ✅ **多维 nonce** - ✅ 相比 ERC-4337 减少 **约 50% 的 gas** - ✅ **去中心化 mempool** ### 🎭 图表:Rollup RIP 生命周期  ### 🌟 用例 - **可扩展的 DeFi...
... list lives hereexport const DEFAULT_TOKEN_LIST_URL = 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json'export const DEFAULT_LIST_OF_LISTS: string[] = [ DEFAULT_TOKEN_LIST_URL] ``` 然后移除前端使用的@uniswap/uniswap-sdk, ``` npm remove ...
...设施 Fabian Vogelsteller(我们中的许多人都很熟悉,他是 [ERC20](https://eips.ethereum.org/EIPS/eip-20) 标准的提议者)与 Marjorie Hernandez(在创意产业中广为人知)一起解释了 Web3 采用的这些局限性,并展示了 [LUKSO](https://lukso.network/),一个...
...示例: 1. 假设我们实现并部署了一个名为CryptoKitties的ERC721合约,并包含我们自定义的函数 \`attachHat(uint256 \_kittyId, uint256 \_hatId) external\`。 2. 我们实现并部署了一个名为KittyHats的ERC1155智能合约。 3. 我们实现并部署了一个...