找到约 14 条结果

文章 实现一个简洁版的NFT交易所

...^5.0.0 pragma solidity ^0.8.22; import "hardhat/console.sol"; import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "./NFT.sol";//实现的nft的合约 contract NFTSwap is I...

文章 如何在MetaMask中显示代币

...常情况下,MetaMask会在你的账户页面显示你拥有的流行的 ERC-20 标准代币(或[标准代币](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/))。然而,随着以太坊和其他网络上代币的激增,MetaMask 不会维护一个权威的代币列表——...

文章 NFT攻击向量(四)

...,以便骗子冒充合法的NFT项目,窃取他们的NFT。这利用了ERC721和ERC1155标准中的“SetApprovalForAll()”功能,允许 - 经过钱包所有者的批准 - 其他人管理他们的资产。 #### 参考资料: ![image.png](https://img.learnblockchain.cn/attachments/2...

文章 Foundry以太坊开发框架

... ``` address owner = address(0x123); // 模拟owner vm.startPrank(owner); erc20.transfer(0x...., 1); // 从bob 账号转出 erc20.mint(100); .... // 结束模拟 vm.stopPrank(); ``` 如果只有一个调用需要模拟可以使用 `prank(address)` 2. `warp(uint256)` 设置区块时间,可以...

文章 Solidity ABI(应用程序二进制接口)是什么?

... 要更好地理解交易如何工作,请考虑以下示例。 ### **ERC-20 代币转账示例** 例如,你想将一个 [ERC-20 代币](https://learnblockchain.cn/article/12872) 从一个钱包转移动到另一个钱包。以下代码指示 ABI 向 EVM 基于字节码发送消息。 `...

文章 驯服区块链垃圾信息:资本流动速度和资本成本如何重塑费用市场

...lock}}$。 *首先*,将债券管理推送到 [帐户抽象](https://www.erc4337.io/docs)[^6] 中。付款人合约可以代表智能帐户钱包预先支付预留金,然后在锁定期到期后自动清扫退款。从签名者的角度来看,没有任何改变:他们制作一个元交易,...

文章 如何使用 Aave 进行闪电贷

...ve/aave-v3-core/blob/master/contracts/dependencies/openzeppelin/contracts/IERC20.sol"; contract SimpleFlashLoan is FlashLoanSimpleReceiverBase { address payable owner; constructor(address _addressProvider) FlashLoanSimpleReceiverBase(IPoolAddressesProvider(_addressProvider)) { ...

文章 Solidity代理合约:解锁区块链代码的灵活升级大法

...st"] } ``` `hardhat.config.ts`: ```typescript import { HardhatUserConfig } from "hardhat/config"; import "@nomicfoundation/hardhat-toolbox"; const config: HardhatUserConfig = { solidity: "0.8.20", networks: { hardhat: { chainId: 1337, }, }, }; export defa...

文章 EAS:认证的基础层

...tps://img.learnblockchain.cn/2025/06/05/Untitled203.png) 来源:[LSP0(ERC725 帐户)](https://docs.lukso.tech/standards/universal-profile/lsp0-erc725account/) 通用配置文件是一种“基于智能合约的身份帐户”,它扩展了 [ERC725](https://eips.ethereum.org/EIPS/eip-725)—...

文章 每周以太坊进展 2022/12/31

...( D-starname )的共识升级的默认获胜者 ## Layer1 * [ERC4337 更新](https://twitter.com/yoavw/status/1608637361570877440)(使用 alt mempool 的帐户抽象),捆绑参考实现、兼容性测试套件 * Remco:[交易内存上限](https://xn--2-umb.com/22/eth-max-mem/i...

文章 以太坊 L2 智能合约:Optimistic Rollup | 作者:Karl Floersch | Plasma Group 博客 | Medium

...总状态的一部分。此外,Fred 还可以被发送到 L2 的主网 ERC20!耶! 就这样!用户和智能合约的行为应该与我们在以太坊主网今天看到的非常相似,除了,它能够扩展!现在让我们探索这一切是如何实现的。 ## 深入乐观汇总 首...

文章 宣布 DelegateCall.com:第一个上线于 Loom Network 的 DAppChain

...l 上,这些声望积分可以兑换为在以太坊主网上可交易的 ERC-20 “DelegateCall token”,让用户可以根据他们对网站的贡献来获得相应的奖励。 你可以把 DelegateCall 看作是 [Steemit](https://steemit.com/) 和 [StackOverflow](https://stackoverflow.com/) ...

文章 2025 ETHTaipei 回顾

...& Protocol Upgrades** 1. **EIP-7702 on Ethereum and Rollups** 2. **Why ERC-4337 Isn’t That Simple in Layer 2** 3. **EIP-7784: GETCONTRACT opcode** 4. **Validation Centric Design: agile and safe development for devs, an interchangeable AA wallet for users** > **Blockchain Security** 1. ...

文章 规范跨链交换:利用规范/原生L1->L2消息传递实现跨链交换的快速和去中心化结算 - Layer 2

...仅依赖于 L1 和 L2 的安全信任假设的跨链互换系统。 ## **ERC 7683 兼容性** 我们的协议可以集成 [ERC 7683](https://www.erc7683.org/),在增强去中心化的同时提供对基于意图的系统的支持(必须将“[fillDeadline](https://learnblockchain.cn/docs/eips/...