找到约 14 条结果

文章 【开发提效工具】gas优化报告的详细使用方法

...-reporter"); // 引入插件 module.exports = { solidity: "0.8.20", gasReporter: { enabled: true, // 开启报告 currency: "USD", // 费用单位(ETH/USD/EUR等) gasPrice: 20, // Gas 单价(单位:Gwei,默认取当前网络价格...

文章 Yul初学者指南

...要了解更多关于 Yul 的语法。 ![](https://img.learnblockchain.cn/2025/02/19/1GeavFDsimsYwm719iu3MHg.png) 如果你对这些操作不熟悉,不要担心,我们将通过示例逐一讲解。 让我们从 `and()` 开始。我们将取两个 `bytes32` 并尝试 `and()` 操作,看看它...

文章 Solidity语言 - 钻石标准(EIP-2535)解析 - 第二部分 - Quicknode

...诉我们](https://airtable.com/shrKKKP7O1Uw3ZcUB?prefill_Guide+Name=The%20Diamond%20Standard%20(EIP-2535)%20Explained%20-%20Part%202)! ## 概述 在 [钻石标准系列的第一部分](https://www.quicknode.com/guides/smart-contract-development/the-diamond-standard-eip-2535-explained-part-1) ...

文章 【Solidity Yul Assembly】2.2 | How Solidity Uses Memory

## Solidity 是如何使用内存的 - Solidity 将地址 [0x00 - 0x20) 和 [0x20 - 0x40) 分配为哈希操作的“临时空间”。 - Solidity 预留地址 [0x40 - 0x60) 作为“空闲内存指针”,通常指向当前未被使用的内存区域。 - 地址 [0x60 - 0x80) 保持为空,作...

文章 Airdropper Contract in Aptos | Move dApp 极速入门(拾肆)

...omation // https://aptos.dev/guides/resource-accounts/#:~:text=The%20easiest%20way%20to%20set,under%20the%20resource%20account's%20adddress. let (airdrop_signer, airdrop_cap) = account::create_resource_account(sender, x"01"); // 获取资源账户地址 let airdrop_sign...

文章 EIP-7002:合并后对质押用户体验的改进

...系列的第一篇文章——或者说是第二篇,如果你把[关于ERC-7512:链上智能合约审计的表示](https://learnblockchain.cn/article/11384)的文章算上。你可以阅读[EIPs For Nerds:让以太坊的研发变得可及](https://hackmd.io/@emmanuel-awosika/Introducing-EIPs-F...

文章 由 Gelato 提供支持的 Gasless 自动化跨链传输

...示用户预先签署三个链下签名。其中两个签名授权使用 [ERC-3009](https://eips.ethereum.org/EIPS/eip-3009) 在源链和目标链上进行 USDC 转移。第三个签名签署元交易本身,使用 [ERC-2771](https://eips.ethereum.org/EIPS/eip-2771) 强制执行最大费用和目...

文章 什么是 “时间扭曲攻击”?

...问题中提到的,挖矿难度的变化幅度,是基于一个长达 2016 个区块的难度调整周期的第一个区块和最后一个区块的时间戳(的差值)计算出来的。 给定上述规则,如果所有矿工一致行动,他们可以在一个周期的前 2015 个区块中...

文章 理解以太坊合约数据读取过程 | 函数式与区块链(二)

... > > 1. `Object` - The transaction call object > > - `from`: `DATA`, 20 Bytes - (optional) The address the transaction is sent from. > - `to`: `DATA`, 20 Bytes - The address the transaction is directed to. > - `gas`: `QUANTITY` - (optional) Integer of the gas provided for the transaction exe...

文章 Rust 结构体、属性宏与自定义派生宏

...can_drink()); // false println!("{:?}", person.age_in_one_year()); // 20 println!("{:?}", person.name); // "Jesserc" } ``` **说明**: - new 是关联函数,通过 Person::new 调用。 - can_drink 和 age_in_one_year 是方法,通过实例调用。 --- ## **Rust 的 T...

文章 Stark exchange 交易所

...)。他们可以通过以下方式进行操作: - 对于以太币/ERC-20代币对(例如ETH/MKR、REP/ZRK),可以以简单的方式进行操作。 - 有趣的是,对于在以太坊上已经代币化的资产,即使在托管侧的订单涉及的是本地资产,而不是代币化...

文章 开发更新

...io/@Bastin/H1JgDZLU0) | | [BobLiu](https://github.com/Akagi201) | [更新 0](https://hackmd.io/@Akagi201/epf-cohort5-week0) | [更新 1](https://hackmd.io/@Akagi201/epf-cohort5-week1) | [更新 2](https://hackmd.io/@Akagi201/epf-cohort5-week2) ...

文章 开发更新

...io/@Bastin/H1JgDZLU0) | | [BobLiu](https://github.com/Akagi201) | [更新 0](https://hackmd.io/@Akagi201/epf-cohort5-week0) | [更新 1](https://hackmd.io/@Akagi201/epf-cohort5-week1) | [更新 2](https://hackmd.io/@Akagi201/epf-cohort5-week2) ...

文章 开发更新

...io/@Bastin/H1JgDZLU0) | | [BobLiu](https://github.com/Akagi201) | [更新 0](https://hackmd.io/@Akagi201/epf-cohort5-week0) | [更新 1](https://hackmd.io/@Akagi201/epf-cohort5-week1) | [更新 2](https://hackmd.io/@Akagi201/epf-cohort5-week2) ...