找到约 15 条结果

文章 Revert Lend: 最新审计报告的中高级 bugs 速读

...45a49878eefdc1001796b10638c1e7584/src/V3Vault.sol#L702-L703)` , wrong tick and potential arbitrage opportunities. - Impact & Recommendation: When tick deltas are negative, the protocol should rectify the rounding issue by adding `if (tickCumulatives[0] - tickCumulatives[1] < 0 && (tickCumulatives...

文章 Hardhat 入门(一)

...me (401ms) ✔ Should set the right owner ✔ Should receive and store the funds to lock ✔ Should fail if the unlockTime is not in the future Withdrawals Validations ✔ Should revert with the right error if called too soon ✔ Should revert with ...

文章 uniswapv3 solidity 合约迁移到ink!

...ion)] /// This is a simple `PSP-22` which will be used as a stable coin and a collateral token in our lending contract #[brush::contract] pub mod weth9 { use brush::contracts::psp22::extensions::metadata::*; use ink_prelude::string::String; // use lending_project::traits::stable_...

文章 一文说透以太坊手续费为什么那么贵及解决方案

原文标题:High network fees: pains, explanations, and solutions 原文链接:[https://zengo.com/high-network-fees-pains-explanations-and-solutions/](https://zengo.com/high-network-fees-pains-explanations-and-solutions/) 字数:1480 作者:Ouriel Ohayon 译者:La 校对:...

文章 环签名与匿名化

...ps%3A%2F%2Fmedium.com%2Fasecuritysite-when-bob-met-alice%2Fring-signatures-and-anonymisation-c9640f08a193#main-content) 基本方法包括 Bob 为环中的其他人创建虚假的私钥: ![](https://img.learnblockchain.cn/2025/03/08/1ONGxgVW1Rv8Ji1kLGu0FNQ.png) 然后环的验证为: ...

文章 Rollup 與資料可用性

...orter: a breakthrough in L2 scaling** \\ \\ **Ending the debate between ZK and optimistic rollups**\\ \\ blog.matter-labs.io](https://blog.matter-labs.io/zkporter-a-breakthrough-in-l2-scaling-ed5e48842fbf?source=post_page-----227340f1dbd6---------------------------------------) zkSync 的 zkPorter ...

文章 使用 Chainlink CCIP 在 Hyperliquid 上搭建跨链桥

... Solidity 开发。 Chainlink CCIP 允许使用 **销毁并铸造 (burn-and-mint)** 机制在链之间桥接资产。在 Hyperliquid 中,HyperCore([HIP-1](https://hyperliquid.gitbook.io/hyperliquid-docs/hyperliquid-improvement-proposals-hips/hip-1-native-token-standard))资产与其 HyperEVM ...

文章 最佳“选择你的链”框架:导航 Rollups、L1 和 L2

... ![](https://img.learnblockchain.cn/2025/06/17/mework_Navigate_Rollups_L1s_and_L2s_2a3ce23aa3.png) **本系列之前的文章:** - [Gelato 的 Avalanche L1 和原生互操作性指南](https://learnblockchain.cn/article/16210) - [L1 区块链堆栈:Avalanche vs Cosmos](https://www.gelato.netw...

文章 NFT 交易所合约开发教程(Solidity & Hardhat)

...在 `hardhat.config.js` 文件中。我们叫这个“独立的网络(standalone network)”(之前我们运行的“过程中(in process)”的网络)。你可以在这个 Hardhat 文档中了解这些内容。这个 Hardhat 独立网络通过 localhost IP 地址 127.0.0.1 和端口 854...

文章 Rust 智能指针大揭秘:Box、Rc、Arc、Cow 深度剖析与应用实践

.../ item in a cons list contains two elements: the value of the current item and // the next item. The last item is a value called `Nil`. #[derive(PartialEq, Debug)] pub enum List { Cons(i32, Box), Nil, } fn main() { println!("This is an empty cons list: {:?}", create_empty_lis...

文章 什么是通证标准?

...以太坊节点和客户端](https://ethereum.org/en/developers/docs/nodes-and-clients/)的标准和规范。因此,以太坊网络可以有任意数量的节点和客户端,包括 Golang、Rust、Java、C#、C++ 或 Python 编写的以太坊软件。这增加了[“客户端多样性”](https:...

文章 ETH2进展更新(截至2020/7/10)

...8693851901894661),他们还[发文](https://kb.beaconcha.in/ethereum-2.0-and-depositing-process)阐释了存款程序和验证者状态。 ## 释义性文章 最近的文章大多与信标链节点和验证者的运行相关。参考以下: * Attestant的Steve Berryman:在[Altona测...

文章 Let's Move - 学 Move 得 Sui(二):完成 Coin 合约的上链部署

...类型声明如下 ```move /// Capability allowing the bearer to mint and burn /// coins of type `T`. Transferable struct TreasuryCap has key, store { id: UID, total_supply: Supply } /// A Supply of T. Used for minting and burning. /// Wrapped into a `TreasuryCap` in the `...

文章 Golang Gin 中间件与监控服务健康控制器

...Routes() { api := a.Router.Group("/api/v1/") api.GET("/health", HealthHandler) } ``` ```go package app import ( "net/http" "time" "github.com/gin-gonic/gin" ) func HealthHandler(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "message": "OK", }) } ``` test.go `...

文章 以太坊无状态系列 #1:状态过期和历史过期

...ate/1719410493586) 来源:https://notes.ethereum.org/@vbuterin/verkle_and_state_expiry_proposal [在**ethresear.ch**的讨论中,状态过期的结构](https://ethresear.ch/t/resurrection-conflict-minimized-state-bounding-take-2/8739)是每年重置状态树,只存储前一个周期的...