...hereum/RIPs/pull/23/files):使用二维 nonce 启用 RIP7560 交易 * ERCs(应用层): * [ERC7710](https://github.com/ethereum/ERCs/pull/433/files):合约委托接口 * [ERC7714](https://github.com/ethereum/ERCs/pull/435/files):标准化合约接口,进行简单的权...
...``` // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import {Math} from "@openzeppel...
...允许基于不同条件的可定制Gas费用支付方法,例如接受 ERC-20 代币作为 Paymaster 的支付。 EIP-4337 的详细架构和逻辑可以在由 [Vitalik Buterin 等人](https://eips.ethereum.org/EIPS/eip-4337) 撰写的提案中找到。 ## 理解账户抽象的机制 - ...
...分析这些新特性可能带来的改进和影响。这些特性包括:ERC20/ERC20 供给池、价格预言机和闪电兑换。其中关于预言机和闪电兑换会做一些的思考,欢迎有识之士来探讨这些问题。对某项特性感兴趣的读者可直接跳到指定章节。 ...
...m Orbit](https://twitter.com/arbitrum/status/1742954565341700135)支持用 ERC20 代币支付 gas * [L2s TVL](https://twitter.com/0xstark/status/1742906255662837797)超过其他 L1s ## EIP * EIP * [EIP7587](https://github.com/ethereum/EIPs/pull/8074/files):为 RIPs 保留预编...
... 月 20 日起可领取,包括合并前的质押者、协议公会、EIP/ERC 作者和对以太坊存储库的贡献者,美国用户不符合资格 - [ApeChain](https://twitter.com/yugalabs/status/1757961449664909380) 将使用 Arbitrum ## **EIP/标准** - EIP: - [EIP7620](https://gi...
...署、可扩容」的收益聚合器 MVP。流程只有四步: >1. 双 ERC20:一份生息资产,一份收益凭证; >1. Chainlink 喂价:链上美元计价,一秒搞定; >1. 份额制资金池:按份额自动分收益,无需记账; >1. Hardhat 全套:防重入、Owner ...
...327482312f70E077aAba62336f7643e41E1", "startBlock": 11633151, "module": [ "erc20", "accesscontrol" ] },\ { "address": "0xB1C52075b276f87b1834919167312221d50c9D16", "startBlock": 9917641, "module": [ "erc721", "ownable" ] },\ { "address": "0x799DAa22654128d0C64d5b79eac928300815873...
...nt`。 在实战环节中,我们将使用 Javascript API 捕捉一个 ERC20 合约中的 Transfer() 事件,并在网页中显示出合约中每个账户的余额。 ## 智能合约中的event `event`,顾名思义就是智能合约在执行过程中所发生的一系列事件,被...
>- 原文链接:https://blog.yacademy.dev/2024-09-09-security-notes-erc4337/# >- 译者:[AI翻译官](https://learnblockchain.cn/people/19584),校对:[翻译小组](https://learnblockchain.cn/people/412) >- 本文永久链接:[learnblockchain.cn/article…](https://learnblockchain.cn/art...
...临时随意的一个20token来示意。 下文便是最简单的一个ERC20代币了,任何人均可执行mint函数,雷同于XEN了 对于ERC20/721实现原理可拓展阅读:【源码解读】你买的NFT到底是什么? ``` import "@openzeppelin/contracts/token/ERC20/ERC20.so...
...T > pragma solidity ^0.8.20; > > import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; > > contract cUSDT is ERC20 { > constructor() ERC20("fake usdt in cbi", "cUSDT") { > _mint(msg.sender, 1 * 10**8 * 10**18); //发行总量一个亿的币,精度18 > } > }` 2.写...
...(https://github.com/ethereum/RIPs/pull/41/files): RIP 目的和指南 * ERCs(应用层): * [ERC7806](https://github.com/ethereum/ERCs/pull/696/files): 最小意图为中心的 EOA 智能账户 * [ERC7811](https://github.com/ethereum/ERCs/pull/709/files): 钱包资产发现 ...
...2 会由于“成本优势”以及“灵活性”而全面继承并超越 ERC-4337 多年构建的生态。 * EIP-7702 对普通用户也是隐形风险,即使用户不做升级,在特定场景也会引发交易失败或者安全资损风险。 * EIP-7702 将带来全新的用户体验,当...
...s/0x2ad82a4e39bac43a54ddfe6f94980aaf0d1409ef#code # 1.ERC1155 `import {ERC1155} from "solmate/src/tokens/ERC1155.sol";` 合约调用ERC1155.sol标准合约,与标准合约ERC721不一样的地方是,721类型NFT每个ID仅此有一个,1155类型NFT是相同的ID可以有...