找到约 14 条结果

文章 vneus daemon代码解析

...把各种api服务添加到`node`对象,后面调用`(node *Node) RunRPCAndWait()`方法启动对外服务。服务接口有rest api和rpc两种形式。每个服务都是一个submodule,定义在`app/submodule`目录下,`***_submodule.go`定义类,`***_api.go`类实现接口逻辑。 另...

文章 区块链中的数学-Uniwap自动化做市商核心算法解析

...家张首晟的名言: **”the final truth must be simple, beautiful and universal“** 后面的分析文章中,我们依然能够感受到这种简洁的魅力。 下一节继续分析[uniswap中交易以及添加移除流动性对价格产生的影响](https://learnblockchain.cn/artic...

文章 阿拉美达研究公司是否资不抵债?

... [1907 年危机期间的 J.P. Morgan](https://www.economist.com/finance-and-economics/2022/07/05/cryptos-last-man-standing)。然而,最近泄露出来的信息表明,SBF 的加密货币帝国建立在一些值得怀疑的基础之上。 11 月 2 日,[Coindesk 的一份报告](https://www.co...

文章 HIP 70:Helium核心团队提议迁移至Solana

...调查](https://insights.stackoverflow.com/survey/2020#most-loved-dreaded-and-wanted) 中,Stack Overflow 把 Rust 视为最受欢迎的编程语言。当开发人员创建整合 Helium 的新应用程序时,构建者将能够受益于许多开源库,这将使得部署、扩展和保护这些...

文章 使用 BuildBear,获取你的智能合约📝 调试服务

... [medium.com/buildbear/use...](https://medium.com/buildbear/use-buildbear-and-get-your-smart-contracts-de-bugged-5a9de3e2cf2c) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 使用Foundry,感受快,rust对写合约的支持

... 参考 [GitHub - gakonst/foundry: Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.](https://github.com/gakonst/foundry) [Getting Started With Forge — Wilson (mirror.xyz)](https://w.mirror.xyz/mOUlpgkWA178HNUW7xR20TdbGRV6dMid7uChqxf...

文章 Rust的面向对象特性

... } fn introduce(&self) { println!("Hello, my name is {} and I am {} years old.", self.name, self.age); } } fn main() { let person = Person::new(String::from("Alice"), 30); person.introduce(); } ``` ### Trait 对象 **定义 Trait** 定义 Trait:使用...

文章 如何阅读区块浏览器并理解以太坊(EVM)上的交易、trace 和日志

>- 原文链接:https://read.cryptodatabytes.com/p/how-to-understand-transactions-traces >- 译者:[AI翻译官](https://learnblockchain.cn/people/19584),校对:[翻译小组](https://learnblockchain.cn/people/412) >- 本文永久链接:[learnblockchain.cn/article…](https://learnblock...

文章 Solidity 中的私有变量不私有

...docs.soliditylang.org/en/v0.8.10/internals/layout_in_storage.html#mappings-and-dynamic-arrays getStorageAt 需要传入两个参数,第一个参数是合约地址,第二个参数是要读取的状态变量的存储位置,只要我们知道的变量的位置,就能读取到所存储的值...

文章 采用延时喂价还被黑?Warp Finance 被黑详解

..." ); //retreive stablecoin vault address being borrowed from and instantiate it WarpVaultSCI WV = WarpVaultSCI(instanceSCTracker[_StableCoin]); //call _borrow function on the stablecoin warp vault WV._borrow(_amount, msg.sender); emit NewBorrow(msg.sender, _St...

文章 探索全同态加密

...法和乘法。加法和乘法允许你复制任何二进制电路门(`AND(x, y) = x*y`,`OR(x, y) = x+y-x*y`,`XOR(x, y) = x+y-2*x*y` 或者如果你只关心奇偶性则为 `x+y`,`NOT(x) = 1-x`...),因此这足以对加密数据执行任意计算。 部分同态加密相当容易;例...

文章 深入Solidity数据存储位置

...kchain.cn/2022/09/30/0*JF5o3tFSM4OczvUF) > (资料来源: [Waldemar Brandt ](https://unsplash.com/@waldemarbrandt67w)on Unsplash) 代码指的是合约的字节码。你只能从合约字节码中读取,而不能写到它。通常是你在Solidity中定义为 `constant`的变量。大多...

文章 Infura 以太坊 API 入门教程

...ww.npmjs.com/package/node)或[download](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm))、[DotEnv](https://www.npmjs.com/package/dotenv)、以及相关的[依赖](https://docs.npmjs.com/cli/install)。如果你不熟悉`dotenv`,这是一个不会上传到GitHub的单独文件...

文章 加密货币质押:如何有效选择ATOM验证者以实现最大化收益

...明](https://medium.com/@jonas90waltervye/future-of-cosmos-staking-trends-and-predictions-for-2024-d4be3baf5cd5),费率极低的验证者可能会被取消空投资格 ### 可靠性和正常运行时间 **正常运行时间性能** 验证者的正常运行时间直接影响你的 staking 奖励...