找到约 14 条结果

问题 Solidity当前合约调取一个已部署合约&调取erc20代币合约的方法。无法获取授权额度,导致无法转代币

``` pragma solidity ^0.5.4; interface IERC20 { function transfer(address recipient, uint256 amount) external; function balanceOf(address account) external view returns (uint256); function transferFrom(address sender, address recipient, uint256 amount) external ; function decimals() external vi...

文章 每周以太坊进展 2023/10/7

...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(原...

文章 使用Halmos进行形式化验证的符号测试

...或更高将使 Halmos 实现完整性。 ## 演示:使用 Halmos 对 ERC721A 进行形式化验证 为了展示 Halmos 的能力,我们使用它对 [ERC721A](https://www.erc721a.org/) 进行符号测试和形式化验证,这是一种高度优化的 ERC721 标准实现,几乎与单个...

文章 【Solidity Yul Assembly】4.2 | 100% Yul ERC20 Example

在本节中,我们将讲解官方文档中的 100% Yul 实现的 [ERC20 合约](https://docs.soliditylang.org/en/latest/yul.html#complete-erc20-example)。为了方便理解,我们会逐步讲解,并在适当的位置附上代码。 首先,来看合约的构造函数部分: ``` yu...

文章 Nyota Interop 回顾 ✨

...a:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%271064%27%20height=%27456%27/%3e)![Nyota Interop 回顾 ✨](https://img.learnblockchain.cn/2025/04/26/33123651_image.jpeg) 上周,来自世界各地的以太坊客户端、测试和研究团队齐聚一...

文章 每周以太坊进展 2023/11/11

...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):用...

文章 如何发行一款NFT(上)

... ``` 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 { ...

文章 现代 DeFi: Uniswap V4

...最为知名的特性,为 Uniswap v4 增加了巨大的可拓展性 4. ERC 6909。一个类似 ERC1155 的协议,使用该 ERC 标准实现了用户可以将部分资产存入 Uniswap V4 内部已实现更加高效的兑换 ## ERC 6909 与其他文章不同,本文首先介绍 Uniswap V4...

文章 Java EIP721 链下签名

...: 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...

文章 Uniswap V2部署

... 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 ...

文章 谈谈区块链入门技能(二):以太坊区块链浏览器如何使用?

...点击【查看代币余额】,就可以看到这个地址所有代币(ERC20/ERC1155/ERC721)持有情况。点击【查看NFT资产】,就可以看到这个持有的全部NFT。 ![以太坊1.png](https://img.learnblockchain.cn/attachments/2022/11/AkGDYsDp6360d3a8836bb.png) ### (2) ...

文章 账户抽象安全指南 - 漏洞都可能发生在哪?

...安全考虑 ChainLight 已经分析了针对构建在或计划实现 ERC4337 的项目的安全审计报告,并根据这些报告编制了基于这些报告的账户抽象项目的基本注意事项清单。在本文中,我们参考了 OpenZeppelin 对 ERC4337 参考实现的审计报告,...

文章 zksync Era 官方文档抽象账户部分中文翻译

...s`付出(前提是用户在`paymasters`有存款或授权一定数量的 ERC20 代币)。这使得用户在区块链上能有更好的体验了。 # 设计 ZKsync 上的帐户抽象协议与 `EIP-4337`非常相似,但为了效率和更好的用户体验,仍然有所不同。 ## No...

文章 uniswap_v4 core 合约结构解析

...Manager NoDelegateCall --> PoolManager Fees --> PoolManager ERC1155 --> PoolManager PoolId --> PoolManager BalanceDelta --> PoolManager ``` ### 简化版 ```mermaid graph TD FeeLibrary --> Hooks TickBitmap --> Pool Position --> Pool TickMath --> ...