找到约 13 条结果

文章 Solodit检查清单详解:矿工攻击

... auction.bid{value: 2 ether}(); // MinerBidder ends auction and wins despite Bidder2's higher bid vm.prank(minerBidder); auction.endAuction(); // Verify miner won unfairly by manipulating timestamp assertEq(auction.highestBidder(), minerBidder); ...

文章 公告:sec3 X-Ray安全扫描器正式发布

...ecurity/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository) 许可证。 配置步骤有两步: 1. 设置代码扫描(遵循 [GitHub 的文档](https://docs.github.com/en/enterprise-server@3.4/code-security/code-scanning/...

文章 ethers.js与solidity智能合约交互(hardhat项目)

...-11.png) 4、一个完整的部署脚本(参考用02_deploy_pool_lock_and_release.js) ```js const{ getNamedAccounts } = require("hardhat") moudle.exports = async({getNamedAccounts, deployments}) => { const {firstAccount} = getNameAccounts() const {deploy,log} = deployments ...

文章 Botanix区块链、Botanix生态系统与项目未来

...作的两家主要企业包括 [Yala Labs](https://medium.com/yalabtc/yala-and-botanix-labs-revolutionize-bitcoin-defi-through-strategic-innovation-aeac437e35ba) 和 [Palladium Labs](https://botanixlabs.xyz/en/blog/palladium-labs-partnership-spiderchain-stablecoin),它们都是去中心化稳定...

文章 Move中的设计模式(1)——Capability

...le publish. /// Here we create only one instance of `OwnerCapability` and send it to the publisher. fun init(ctx: &mut TxContext) { transfer::transfer(OwnerCapability { id: object::new(ctx) }, tx_context::sender(ctx)) } /// The entry function can ...

文章 认识SAFG:DeFi的参与式投资和协议开发新框架

...o-colab/meet-the-safg-defis-emergent-framework-for-participatory-investing-and-protocol-development-62286a576fb5](https://medium.com/ideo-colab/meet-the-safg-defis-emergent-framework-for-participatory-investing-and-protocol-development-62286a576fb5) 作者:Gavin 译者:李意 校对:Shirley...

文章 以太坊 - 简单序列化(SSZ)

...型](#composite-types) - [可变大小和固定大小](#variable-size-and-fixed-size) - [字节](#byte) - [别名](#aliases) - [默认值](#default-values) - [`is_zero`](#is_zero) - [非法类型](#illegal-types) - [序列化](#serialization) - [`uintN`](#uintn) - [`boolea...

文章 通过 CCIP 构建跨链应用(5 个案例)

...Limit: 200_000, strict: false}) // Additional arguments, setting gas limit and non-strict sequency mode ), feeToken: address(linkToken) // Setting feeToken to LinkToken address, indicating LINK will be used for fees }); // Initialize a router client instance to interact with cross-chain router ...

文章 《Effective Rust》第 4 条:优先使用惯用的错误类型

...sn't use only types from inside the current crate | = note: define and implement a trait or new type instead ``` [类型别名]也无济于事,因为它并没有创建一个新的类型,所以也不会改变错误信息: ```rust pub type MyError = String; impl std::error::Er...

文章 了解DAO世界的去中心化贡献模型

...门的方法是通过[DAO](https://medium.com/layer3xyz/aoswhat-is-a-dao-and-how-can-i-join-one-c8914bc36bf2),一个广泛的在web3内运作的去中心化组织。 让我们首先探讨一下DAO是如何运作的,以及不同类型的DAO可以帮助你启动贡献之旅。我们还将深入...

文章 Uniswap V3 工厂以及 Tick 间距与手续费之间的关系

...数的所有参数都存储在公共不可变变量中: ![code for fee and tick spacing](https://img.learnblockchain.cn/2025/04/26/codeFeeTickSpacing.png) ## 例子 让我们以 [USDC/ETH 池](https://etherscan.io/address/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640#readContract) 为例。我们...

文章 Taproot 及 MuSig2 回顾

...上面说的 [BIP340 公钥](https://www.btcstudy.org/2023/04/27/taproot-and-musig2-recap-by-elle-mouton/#BIP340-%E5%85%AC%E9%92%A5%E7%AE%80%E8%BF%B0))。我们通常使用 `Q` 来代指这个公钥。下面这张图片完整地展示了一笔交易中的一个 Taproot 输出: ![img](https://im...

文章 每周以太坊 2024/03/23

...s://calldata.pics/):calldata 和 blob 使用情况的实时图表 - ethPandaOps: - [Attacknet](https://learnblockchain.cn/article/17242/):使用 Kurtosis 和 Chaos Mesh, 向开发网络注入主网故障(如网络延迟、丢包、分叉等),来帮助测试。 - [Dencun 升级...