找到约 13 条结果

文章 Rollup 正在扩展以太坊的生态系统

...timism.io/superchain/),其[愿景](https://stack.optimism.io/docs/understand/explainer/#)是“将Optimism主网与其他链合并成一个统一的OP链网络”。超级链共享相同的排序器网络,消除了每条链需要单独桥接的必要。 任何项目都可以在超级链上启...

文章 用 Rust 打造 Web3 区块链浏览器:从零开始的实战指南

... blocks. let sub = provider.subscribe_blocks().await?; // Wait and take the next 4 blocks. let mut stream = sub.into_stream().take(4); // let mut stream = sub.into_stream(); println!("Awaiting block headers..."); // Take the stream and print the block number upon ...

文章 Nervos x Gitcoin bounty 任务2: 在 Polyjuice 上部署一个简易的以太坊智能合约

...s://github.com/Kuzirashi/gw-gitcoin-instruction/blob/master/src/task-setup-and-requirements/task-setup-and-requirements.md)页面。 ```jsx cd ~/projects/gw-gitcoin-instruction/src/examples/2-deploy-contract/ yarn compile ``` 在这些命令完成了以后,你将会在 `build/contracts` ...

文章 以太坊提案者选择机制在 Electra 更新前后的变化

同样可参考 Lin Oshitani 的 ["Preconf Lookahead and MaxEB"](https://hackmd.io/@linoscope/preconf-lookahead)。 ### Pre-electra - 每个Slot,提议者是基于 `BeaconState` 计算出来的([见 `get_beacon_proposer_index`](https://github.com/ethereum/consensus-specs/blob/dev/specs/pha...

文章 Polymarket与预测市场的激增

...om/news/marketwatch/2024072466/kamala-harris-surges-in-the-betting-markets-and-i-bet-kamalaphoria-has-more-room-to-run)。这种现象是更广泛的memecoin热潮的另一个表现,该热潮在媒体上获得了显著关注,并毫无疑问是近年来altcoin价格(尤其是Solana)的主要...

文章 Solidity 技巧:如何减少字节码大小及节省 gas

> * 链接:https://blog.polymath.network/solidity-tips-and-tricks-to-save-gas-and-reduce-bytecode-size-c44580b218e6 > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412) > * 校对:[Tiny 熊](https://le...

文章 如何使用Ganache分叉以太坊区块链

...nache](https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat) 后与 Hardhat 建立了新的合作关系。你可以在我们这里找到 [与 Hardhat 相关的指南](https://learnblockchain.cn/tags/hardhat)。如果你想查看此指南的更新版本,...

文章 以太坊 - SUAVE 链 - Flashbots

...quest-serialization--signing) - [节点要求和设置](#node-requirements-and-setup) - [Gas 费用和交易费用](#gas-and-transaction-fees) - [安全考虑](#security-considerations) --- ### 概览 本文档概述了 SUAVE Rigil 链的规范。 在 SUAVE 协议的上下文中,SUAVE 链...

文章 如何通过 Chainlink Price Feeds获得加密资产的历史价格

...,然后通过 Chainlink [Any API](https://docs.chain.link/docs/request-and-receive-data/) 的功能在链上获取。然而这个解决方案有安全性的顾虑:就是数据源和传递数据的预言机可能是中心化的,并且没有办法验证这个数据是否是准确的。就像实...

文章 深入 Uniswap V4 源码 - PathKey Library

...oks 合约 - `hookData`:Hooks 数据 ### 方法定义 #### getPoolAndSwapDirection 根据输入代币和中间代币信息,计算交易池子和交易方向。 ```solidity /// @notice Get the pool and swap direction for a given PathKey /// @param params the given PathKey /// @par...

文章 Ethernaut 题库闯关 #12 — Privacy

...s(level), bytes32(uint256(5))); // Call the level's `unlock` function and pass the downcasted bytes16 // value we just took from the private slot level.unlock(bytes16(data)); // Assert we have unlocked the contract and passed the challenge assertEq(level.locked(), false); vm....

文章 如何在 Hardhat 主网 Fork 上修改以太坊存储

.../docs.soliditylang.org/en/latest/internals/layout_in_storage.html#mappings-and-dynamic-arrays](https://docs.soliditylang.org/en/latest/internals/layout_in_storage.html#mappings-and-dynamic-arrays) 基本上,用户的余额存储在槽: ```auto hljs keccak256(padZeros(userAddress) . mappin...

文章 每周以太坊进展 2023/9/16

...s 优化,用于基准测试 * [ERC 部署](https://dune.com/ilemi/erc-and-eip-starter-kit):Dune 仪表板显示常见 ERC 的部署数量 * [Huff-stack-generator](https://github.com/shafu0x/huff-stack-generator#readme):生成堆栈注释 * [Geas](https://github.com/fjl/geas#readme)(...