找到约 13 条结果

文章 ethereum.org 年度回顾

...a:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%271064%27%20height=%27456%27/%3e)![ethereum.org 年度回顾](https://img.learnblockchain.cn/2025/04/26/10643721_image.png) 2024 年对于 [ethereum.org](http://ethereum.org/) 来说是伟大的一年,并...

文章 🌐 Web3中的RIP:扩展以太坊并重新定义NFT

...:RIP-7560(原生账户抽象) - ✅ **多维 nonce** - ✅ 相比 ERC-4337 减少 **约 50% 的 gas** - ✅ **去中心化 mempool** ### 🎭 图表:Rollup RIP 生命周期 ![](https://img.learnblockchain.cn/2025/06/28/1hgm_OzM0KXM5plxR-avG3Q.png) ### 🌟 用例 - **可扩展的 DeFi...

文章 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. 我们实现并部署了一个...

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

文章 HardhatV3+OpenZeppelinV5:去中心化债券协议开发实战

...er: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; /** * @dev 测试网专用 USDT,任意人都能 mint */ contract TestUSDT is ERC20 { uint8 private _decimals; constructor( string memory name, string memory symbol, ...

文章 🎥 如何使用人工智能、IPFS 和 Foundry 创建 NFT 收藏品

...成图像 - IPFS 存储图像和元数据 - OpenZeppelin 的审核过的 ERC-721 NFT 智能合约 - Foundry 部署智能合约并铸造NFT - QuickNode 的顶级 RPC 服务来支持整个过程 [如何用AI创建NFT](https://www.youtube.com/watch?v=gXIcs-eMqOU) [在 YouTube 上观看](https://www.yo...

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

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

文章 手把手教你从0到1构建UniswapV2:part1

...的朋友少一些心智负担。 我们还将使用**Solmate**来实现ERC20, 而不是OpenZeppelin,因为后者有些臃肿和固执己见。使用OpenZeppelin的ERC20不允许将代币转移到零地址,这个限制并不是我们想要的。反过来**Solmate**是一个**Gas**优化合约...

文章 臭名昭著的漏洞摘要 #4

...afbbd342f64ef8a9ab1c143719b63c2ad81710) 合约继承了 OpenZeppelin 的 [`ERC4626Upgradeable` 合约](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/token/ERC20/extensions/ERC4626Upgradeable.sol),以支持其基于 vault 的质押机制,并在质押 ETH...

问题 web3.php作为后端调用erc721的合约的mint函数,怎么传递参数呢

abi只需要传递一个number,就是铸币的数量,但是代码里面加了一个 ``` payable ``` 可以接受一个payableamont作为币价。 是直接找的测试bsc的 ``` $contract = new Contract('https://data-seed-prebsc-1-s1.binance.org:8545') ``` 这个函数源码 ...

文章 Solidity智能合约开发基础教程

...调用。 - 使用OpenZeppelin库。 ### 合约应用 #### 简单的ERC20代币合约 ```solidity pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract MyToken is ERC20 { constructor(uint256 initialSupply) ERC20("MyToken", "MTK") { _m...