找到约 14 条结果

文章 整数运算(IOp)

...| |MUL|0xE4|MUL |将 2 个 n 位源相乘。结果对 2^n 取模。| |BW_AND|0xD0|BW_AND |对 2 个 n 位源进行按位与运算。| |BW_OR|0xD1|BW_OR |对 2 个 n 位源进行按位或运算。| |BW_XOR|0xD2|BW_XOR |对 2 个 n 位源进行按位异或运算。| |CMP_GT|0xC0|CMP_GT |比...

文章 智能合约中使用更安全的随机数(代码实战篇)

...) Chainlink最近推出一款革命性的产品,VRF—Verifiable Random Function可验证随机数,给智能合约带来了真正安全的随机数。本文我们就来介绍一下如何在智能合约中使用VRF吧。 ![vrf001.jpeg](https://img.learnblockchain.cn/attachments/2020/06/dz...

文章 Michael.W基于Foundry精读Openzeppelin第57期——ReentrancyGuard.sol

...ress(_testing)); function test_LocalCall() external { // A and B are both local external methods in one contract // case 1: A without nonReentrant -> B without nonReentrant // [PASS] // call {addWithoutNonReentrant} in {callWithoutNonReentrant} a...

文章 通过 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 ...

文章 Chainlink Functions 介绍 & 使用案例

...的 Spotify 流媒体数量达成共识。 ```js const URL = `https://sandbox.api.soundcharts.com/api/v2/artist/${artistId}/streaming/spotify/listeners` const soundchartsResponse = await Functions.makeHttpRequest({ url: URL, // Get a free sandbox API key from https://doc.api.soundchar...

文章 关于比特币扩容的争论:背景,方案与未来

...tps://hackernoon.com/the-bitcoin-scaling-debate-context-proposed-solutions-and-the-future-579f9373e24b](https://link.jianshu.com?t=https%3A%2F%2Fhackernoon.com%2Fthe-bitcoin-scaling-debate-context-proposed-solutions-and-the-future-579f9373e24b) 。 作者: [Phil Glazer](https://link.jianshu.com?t...

文章 Safe智能账户与钻石代理

...6900](https://ethereum-magicians.org/t/eip-modular-smart-contract-accounts-and-plugins/13885) 中的成员,提倡对像 **Safe** 这样的模块化智能账户使用 Diamond Proxies - 在过去的几周里,Safe Core 团队评估了将其智能合约架构更改为 Diamond Proxy 模式,以...

文章 基础篇-所有权

...值 // 转移给 s1 let s2 = takes_and_gives_back(s1); // s1 被移动到 // takes_and_gives_back 中, // 它也将返回值移给 s2 } ...

文章 11 Rust中的泛型

...s://github.com/shiyivei/from-principle-to-practice/blob/main/src/principle-and-practice/src/type_system/generic.rs ``` 另外,可以选择clone本仓库代码,使用`cargo doc --open`阅读,体验更佳 ``` git clone git@github.com:shiyivei/from-principle-to-practice.git ``` ``` cd ...

文章 如何在Optimism上从Kovan迁移到Goerli

...Base Sepolia ETH from a Faucet\\ \\ Building on Base? Get free Sepolia ETH and start testing your dApp!](https://www.alchemy.com/overviews/get-base-sepolia-eth) [![Featured content card overlay](https://img.learnblockchain.cn/2025/05/14/card-overlay.svg)\\ \\ Testnets\\ \\ How to Migrate from Goerli...

文章 如何从主网分叉并部署 Solana 账户和程序到本地环境

...ttps://airtable.com/shrKKKP7O1Uw3ZcUB?prefill_Guide+Name=How%20to%20Fork%20and%20Deploy%20Solana%20Accounts%20%26%20Programs%20from%20Mainnet%20to%20Localnet)。我们很乐意听取你的意见。 >- 原文链接: [quicknode.com/guides/sol...](https://learnblockchain.cn/article/11196-development...

文章 全面理解智能合约升级

...https://docs.openzeppelin.com/upgrades-plugins/proxies#transparent-proxies-and-function-clashes)结合使用,以允许管理员EOA与管理代理合约进行互动(管理员只能管理代理合约交互)。 让通过一个例子看看是怎么工作的。假定代理具有owner() 函数...

文章 为比特币至上主义辩护

...王》里加拉德瑞尔的水晶瓶 ([Phial of Galadriel](https://lotr.fandom.com/wiki/Phial_of_Galadriel)),是“当所有光都熄灭后,在黑暗中出现的明灯”。它不是低成本的灯,也不是嬉皮士的荧光节能灯,或是高性能灯。它是在所有这些方面都要有...

问题 truffle migrate 本地部署合约测试 IterableMapping 依赖问题 如何处理?

...*** "DogeBack" -- DogeBack contains unresolved libraries. You must deploy and link the following libraries before you can deploy a new version of DogeBack: IterableMapping. at D:\node\node_global\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:365:1 at processTic...