找到约 13 条结果

文章 函数选择器冲突

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

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

文章 自托管钱包的未来:将信任移到UI之外

...://www.coinbase.com/en-de/wallet/smart-wallet))中,队列的功能由 [ERC-4337](https://learnblockchain.cn/docs/eips/EIPS/eip-4337) [捆绑器](https://www.erc4337.io/docs/bundlers/introduction) 的 mempool 提供。 #### 交易历史 已执行的交易必须显示和验证,但交易历史...

文章 UniswapV2 深入解析系列 02:流动性池机制与LP代币铸造

...提供者)代币作为凭证和奖励。 ### 为什么不能只依赖 ERC20 余额? 虽然每个合约都有自己的存储空间,ERC20 代币通过 mapping 记录地址和余额的对应关系,但仅仅依赖 ERC20 合约中的余额来管理流动性是不够的,主要原因包括...

文章 Etherspot 周报:Avail 收购 Arcana、以太坊用户体验路线图、以太坊链上交易量创四年新高 ...

... · [以太坊的 UX 路线图:Intents, Trustless Cross-L2, and Interop ERCs](#07bd) · [Avail 收购 Arcana 以加速多链可扩展性](#0b78) · [以太坊的链上交易量创四年新高](#4d5f) · [账户和链抽象:从炒作到真正的产品价值](#2155) ### 以太坊的...

文章 标准创新赋能创意经济

...设施 Fabian Vogelsteller(我们中的许多人都很熟悉,他是 [ERC20](https://eips.ethereum.org/EIPS/eip-20) 标准的提议者)与 Marjorie Hernandez(在创意产业中广为人知)一起解释了 Web3 采用的这些局限性,并展示了 [LUKSO](https://lukso.network/),一个...

文章 币圈老鸟都在用的 “做空神器”:永续合约,究竟是收割镰刀还是避险盾牌

...le with OpenZeppelin Contracts ^5.5.0 pragma solidity ^0.8.24; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import {ERC20Permit} from "@openzeppelin/contracts/token/ERC20/ext...

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

文章 EIP2535 Diamonds 如何降低智能合约系统的Gas费用

...示例: 1. 假设我们实现并部署了一个名为CryptoKitties的ERC721合约,并包含我们自定义的函数 \`attachHat(uint256 \_kittyId, uint256 \_hatId) external\`。 2. 我们实现并部署了一个名为KittyHats的ERC1155智能合约。 3. 我们实现并部署了一个...

文章 每周以太坊 2024/1/20

...hereum/EIPs/pull/8121/files):硬分叉 - Pectra(Prague + Electra) - ERC(应用层): - [ERC7595](https://github.com/ethereum/ERCs/pull/202/files):抵押 NFT(ERC721 扩展) - [ERC7596](https://github.com/ethereum/ERCs/pull/205/files):股权份额记账系统 - [ERC7597](h...

文章 sui move 动态字段练习(3)

...它们模拟solidity中的映射类型,在sui move实现一个**类似**erc20的同质化代币作为之前学习的实践与巩固。本文分享了练习过程中的transfer,和approve,transferFrom。 注:本例实现仅用于学习动态字段,由于访问gas和便捷性不强,无法...

文章 指南:使用 Yul 编写 ERC20 合约

...接:https://medium.com/sphere-audits/in-depth-guide-on-how-to-write-an-erc20-token-contract-in-yul-b521b6d268f5 >- 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) >- 译者:[翻译小组](https://learnblockchain.cn/people/412) 校对:[Tiny 熊](https://learnblockcha...

文章 每周以太坊 2024/07/13

...ithub.com/ethereum/RIPs/pull/30/files):预安装确定性部署工厂 - ERCs(应用层标准): - [ERC7737](https://github.com/ethereum/ERCs/pull/523/files):通过自定义数据访问模型,而不需预留大量的 view 函数。 - [ERC7738](https://github.com/ethereum/ERCs/pull/5...