> * 原文:https://ethereumdev.io/swap-tokens-with-1inch-exchange-in-javascript-dex-and-arbitrage-part-2/ 作者:https://ethereumdev.io/author/peter/ > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412)...
## Arbitrum Rollup 测试网发布 *Arbitrum Rollup 是第一个也是唯一功能全面的,与EVM兼容的Optimistic Rollup ,现在向所有人开放的发布了测试网。* Offchain Labs很高兴宣布在以太坊的Kovan测试网络上发布[全新的Arbitrum Rollup测试网](https:...
## 主网 - 最新的核心开发者会议视频。来自Tim Beiko的备忘录: - 客户端团队重新在他们的核心代码库中开发 Amphora 原型 - 讨论要对 PoS 时期的 EIP1559 做一些小调整(EIP4396) - 以太坊[无状态性](https://notes.ethereum.org/Yn_mwNa2S...
BlockSec发现Akutar数字藏品合约(https://etherscan.io/address/0xf42c318dbfbaab0eee040279c6a2588fa01a961d)存在两个非常严重的漏洞。第一个漏洞可以导致合约被DoS攻击,用户存入的资产被锁定(所幸漏洞没有被利用)。第二个漏洞可以导致项目方的...
# Gear 合约揭秘 Gearfans 举办了 3 次 Gear workshop,从第一次的 [ping-pong](https://wiki.gear-tech.io/zh-cn/developing-contracts/examples/ping/) 合约,到 [去中心化 twitter](https://wiki.gear-tech.io/zh-cn/developing-contracts/examples/feeds),再到 [Erc20](https://wiki.gear...
## 一、环境准备 ##### 1. 技术栈 - node.js 18.18.0 - react 18.2.0 - hardhat 2.13.0 - openzeppelin 4.9.6 - IPFS Desktop - solidity ^0.8.20 - vscode 1.87.2 - ethers.js 6.11.1 ##### 2. 主要技术简介 - **hardhat** Hardhat是一个编译、部署、测试和调试以太坊应用...
2023 年 6 月,Uniswap 官方发布的一篇[博客](https://blog.uniswap.org/uniswap-v4)吸引了币圈所有人的眼球。继 [Uniswap-v3](https://learnblockchain.cn/article/2302) 推出 2 年后,v4 要来了! 凭借大幅的 [gas 优化](https://learnblockchain.cn/article/6570)以及全...
>- 原文链接:https://www.rareskills.io/post/solidity-interview-questions >- 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) >- 译者:[翻译小组](https://learnblockchain.cn/people/412) ,校对:[Tiny 熊](https://learnblockchain.cn/people/15) >- 本文永久...
上月初,ERC-404 成为最首要热门的话题,ERC-404 是由 Pandora 团队在 2 月初为创作者和开发者等开源的实验性代币标准,其混合 ERC-20 / ERC-721 实现,具有原生流动性和碎片化等特点。伴随着早期的发展,越来越多参与者开始对 ERC-404...
一个常规NFT市场合约代码,支持上架、下架NFT艺术作品,设定价格,购买NFT,配置[NFT白名单](https://learnblockchain.cn/article/4521)功能。 ```// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; i...
### 0. 版本 [openzeppelin]:v4.8.3,[forge-std]:v1.5.6 #### 0.1 ERC20Snapshot.sol Github: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.3/contracts/token/ERC20/extensions/ERC20Snapshot.sol ERC20Snapshot库是ERC20的拓展,增加了各账户余额及总流通...
## POW 关闭(合并) * 预计6月8日[Ropsten 测试网升级到到 PoS](https://twitter.com/trent_vanepps/status/1525138148879220742) (TTD(Terminal Total Difficulty) 43531756765713534) * [Mainnet-shadow-fork-4](https://twitter.com/parithosh_j/status/1524767841773363200) 合并看起来很...
## 引言 在开发时,遇到这种情况我需要decode一个data 来触发事件。 ```solidity function execute(address to, uint256 value, bytes calldata data, uint8 operation) external payable virtual returns (bytes memory result) { // 函数实现... if (...