...兴趣注意到它使用了 Solidity ^0.6.0 ,而且它没有选择使用 ERC721 和 ERC1155 标准。 我决定尝试一个实验。我第二次给了它同样的提示——令我惊讶的是,这次它生成了一个使用 ERC721 标准的合约。这表明该系统如何具有随机方面...
...unt1Out > 0) _safeTransfer(token1, to, amount1Out); uint256 balance0 = IERC20(token0).balanceOf(address(this)); uint256 balance1 = IERC20(token1).balanceOf(address(this)); ``` 在 `_safeTransfer` 执行后立即读取余额,可获得“转出后、入账前”的即时状态,有助于推...
...//github.com/ethereum/EIPs/pull/9049/files):交易 gas 限制上限 * ERC(应用层): * [ERC7826](https://github.com/ethereum/ERCs/pull/731/files):量子优越性赏金 * [ERC7827](https://github.com/ethereum/ERCs/pull/734/files):具有价值版本控制的 JSON 合约 ...
...thub.com/ethereum/EIPs/pull/6953/files):网络升级激活触发器 * ERC: * [ERC6927](https://github.com/ethereum/EIPs/pull/6927/files) : NFT融合协议 * [ERC6932](https://github.com/ethereum/EIPs/pull/6933/files):基于订阅的代币 * [ERC6944](https://github.com/...
...有工具都放在了[此存储库](https://github.com/albertocuestacanada/ERC20Permit?ref=learnblockchain.cn)中。 因此,现在你实现 “无 gas” 代币的障碍就突然降低了很多。 让我们开始吧。 ## 背景 我不得不承认,即使我知道如何在智...
...译、可部署、可清算的迷你永续合约: > 1. 先发行一枚 ERC-20 保证金代币(USDC); > 1. 再部署一个可手动更新的 Chainlink Mock 喂价器; > 1. 最后上线一个 20 倍杠杆、5 % 维持保证金的永续交易核心,支持多空、盈亏结算、强制...
...port {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "hardhat/console.sol"; contract DutchAuction is Ownable, ERC721 { uint256 public constant COLLECTION_SIZE = 10000; // NFT总数 uint256 public...
...thereum/EIPs/pull/8161/files):在存储非空的情况下回退创建 - ERCs(应用层): - [ERC7604](https://github.com/ethereum/ERCs/pull/223/files):ERC1155 permit 式批准(通过离线签名) - [ERC7606](https://github.com/ethereum/ERCs/pull/229/files):交易风险监控 - ...
...n:** OpenZeppelin 提供了一套经过实战考验的库和合约,如 ERC-20 和 ERC-721 的实现。利用这些框架可以减少开发时间并提高安全性。 - **ERC 标准:** 遵循以太坊征求意见稿 (ERC) 标准可确保兼容性和互操作性。常见标准包括用于同质...
...1 高级代币主题,Bonding Curves,Staking算法 主题:[ERC 1363](https://learnblockchain.cn/article/8549),ERC 777,[Synthetix stochastic staking算法](https://learnblockchain.cn/article/11265),[ERC721 NFTs](https://learnblockchain.cn/article/11249),舍入错误,抢跑漏...
...reum/EIPs/blob/f400ed4823ff547e789111adbdd90c83f4aedce5/EIPS/eip-4906.md): ERC721/ERC1155 元数据更新扩展 * [EIP4907](https://github.com/ethereum/EIPs/blob/692afba71b6b2cee2e48c6c729597c2f025da732/EIPS/eip-4907.md): ERC721 用户和有效期扩展 * [EIP4910](https://github.com/ethereum/EIPs...
...ethereum/EIPs/pull/7441/files): 将区块提议者选举升级为 Whisk - ERCs (应用层): - [ERC7425](https://github.com/ethereum/EIPs/pull/7427/files): 代币化储备 - [ERC7432](https://github.com/ethereum/EIPs/pull/7432/files): NFT 角色 - [ERC7439](https://github.com/ethereum/EIPs/...