...PS/eip-7683)到以太坊魔法师[论坛](https://ethereum-magicians.org/t/erc-7683-cross-chain-intents-standard/19619/1)。这两个项目已将该标准提交给 [CAKE 工作组](https://frontier.tech/cake-working-group) 以供他们讨论和审查。 ### 摘要 以下标准允许实现跨...
在本节中,我们将讲解官方文档中的 100% Yul 实现的 [ERC20 合约](https://docs.soliditylang.org/en/latest/yul.html#complete-erc20-example)。为了方便理解,我们会逐步讲解,并在适当的位置附上代码。 首先,来看合约的构造函数部分: ``` yu...
... ``` 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 { ...
...安全考虑 ChainLight 已经分析了针对构建在或计划实现 ERC4337 的项目的安全审计报告,并根据这些报告编制了基于这些报告的账户抽象项目的基本注意事项清单。在本文中,我们参考了 OpenZeppelin 对 ERC4337 参考实现的审计报告,...
...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(原...
...约 ``` 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...
...s`付出(前提是用户在`paymasters`有存款或授权一定数量的 ERC20 代币)。这使得用户在区块链上能有更好的体验了。 # 设计 ZKsync 上的帐户抽象协议与 `EIP-4337`非常相似,但为了效率和更好的用户体验,仍然有所不同。 ## No...
...](https://github.com/ethereum/EIPs/pull/9028/files):自省预编译 * ERCs(应用层): * [ERC7815](https://github.com/ethereum/ERCs/pull/712/files):交换订单路由接口 * [ERC7816](https://github.com/ethereum/ERCs/pull/713/files):用于 EVM 应用的 Schnorr 签名...
...: 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...
# 基础知识 ## ****ERC777**** ERC777是ERC20标准的高级代币标准,要提供了一些新的功能:运营商及钩子。 - 运营商功能。通过此功能能够允许第三方账户代表某一**合约或者地址** 进行代币的发送交易 - 钩子功能。给该**合约...
... · [以太坊的 UX 路线图:Intents, Trustless Cross-L2, and Interop ERCs](#07bd) · [Avail 收购 Arcana 以加速多链可扩展性](#0b78) · [以太坊的链上交易量创四年新高](#4d5f) · [账户和链抽象:从炒作到真正的产品价值](#2155) ### 以太坊的...
... 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 ...
...示例: 1. 假设我们实现并部署了一个名为CryptoKitties的ERC721合约,并包含我们自定义的函数 \`attachHat(uint256 \_kittyId, uint256 \_hatId) external\`。 2. 我们实现并部署了一个名为KittyHats的ERC1155智能合约。 3. 我们实现并部署了一个...