找到约 15 条结果

文章 C.R.E.A.M Hack with Yearn

...Out = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: I...

文章 Concrete v2.10:引入 Rust 支持并增强 TFHE-rs 互操作性

...yset, encryption_csprng); // Step 3 (Client side) : Encrypt the input and get the evaluation keys // 步骤 3(客户端):加密输入并获取评估密钥 let encrypted_input = inc_client.prepare_inputs(input); let evaluation_keys = keyset.get_server(); // Step 4 (Server sid...

文章 以太坊提案者选择机制在 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...

文章 NFT新手教程: 如何编写和部署NFT(第1部分)

> * 原文: https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/ > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412) > * 校对:[Tiny 熊](https://learnblockchain.cn/people/15) >...

文章 以太坊新升级 (2.0)

...易。 ## **过渡到权益证明** 以太坊的计划举动正值 Algorand 和 Solana 等新的区块链越来越受欢迎之际,部分原因是它们在 PoS 方面优于以太坊。这些优势通常会导致更低的交易费用和更快的最终确定时间(速度)。 许多人将权益...

文章 solx 编译器彻底消除 "Stack too deep" 错误

... cannot be compiled due to a combination of a memory-unsafe assembly block and a stack-too-deep error. The compiler can automatically fix the stack-too-deep error, but only in the absence of memory-unsafe assembly. To successfully compile this contract, please check if this assembly block is memory...

文章 我们对加密货币(2024)中的一些事情感到兴奋

...ization-decentralization),从而最终能更让消费者安心。 _—Andy Hall,斯坦福大学教授 ( [@ahall_research](https://twitter.com/ahall_research)); Daren Matsuoka,数据科学家_ _(@darenmatsuoka [在 Farcaster](https://warpcast.com/darenmatsuoka) \| [在 Twitter](https://twitt...

文章 深入 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...

文章 Solana费用,第一部分

...命周期](https://learnblockchain.cn/article/13486#transaction-execution-and-ordering) 中描述。 费用在交易执行开始时从费用支付者扣除。如果支付者无法支付所需的费用,则执行将被跳过,交易被视为无效,并且不会被包含。 对于基础费用和...

文章 LI.FI 与 Wido 合作,为每个 dApp 带来跨链 Zaps

...ttps://lifi.substack.com/) 上订阅 >- 原文链接: [blog.li.fi/li-fi-and-wid...](https://blog.li.fi/li-fi-and-wido-partner-to-bring-cross-chain-zaps-to-every-dapp-d5397e2a0426) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 掌握Berachain:你的Berachain生态系统完整指南

...应该关心 berachain - 阅读我们的博客文章:[What is Berachain and Why Should I Care?](https://learnblockchain.cn/article/20535#pol-a-win-win-win-for-users-validators-and-dapps) ## Berachain 的独特之处? ### Proof-of-Liquidity 共识 Berachain 的 Proof-of-Liquidity (PoL) 共识...

文章 Cyfrin 2025年7月区块链安全与教育新闻通讯

... 编程和 ZK 电路**](https://updraft.cyfrin.io/courses/noir-programming-and-zk-circuits):学习编写 ZK 电路,并使用 Noir、Barretenberg 和 Solidity 构建全栈、保护隐私的应用的后端。 ‍ [**认识新的 Solodit**](https://solodit.cyfrin.io/)**:** 智能合约安全研...

文章 ETH2.0中的CASPER FFG机制

.../ethereum/eth2.0-specs/blob/dev/specs/phase0/beacon-chain.md#justification-and-finalization)十分简单: - **第一步要检查区块合理性**。采用最后两个epoch的新证明来检查它们的边界区块是否合理。 - **下一步要检查区块最终确定性**,检查对象是...

文章 深入理解 Uniswap v3 智能合约 (二)

...所有交易对的头寸,主要包括以下几个方法: * [createAndInitializePoolIfNecessary](#createAndInitializePoolIfNecessary):创建并初始化合约 * [mint](#mint):创建头寸 * [increaseLiquidity](#increaseLiquidity):添加流动性 * [decreaseLiquidity](#decreaseLiquidit...

文章 Web3开发入门:Solana账户创建与Rust实践全攻略

...ication) `solana-create-account` package note: see more `Cargo.toml` keys and their definitions at ******************************************************* ``` ### 切换到项目目录 ```bash cd solana-create-account ``` ### **列出当前目录内容** ```bash ls Cargo.toml src...