找到约 14 条结果

文章 区块链 - Token Bridge应用

...个包装资产可能只被创建一次,并且不会被更新。 #### Handling of token amounts and decimals (代币数量和小数的处理) 由于某些受支持链的约束,通过代币桥传递的所有代币数量都被截断为最多 8 位小数。 任何链的实现都必须确保任...

文章 学习如何使用hardhat和typescript构建一个多签钱包

...发布于 [BuildBear Tutorials](https://www.buildbear.io/resources/guides-and-tutorials/Multisig_wallet)。 在本文中,我们将学习如何构建自己基本的 Multisig 钱包。我们将了解 hardhat 及使用 hardhat 测试智能合约。 这将是一个较长的帖子,因此建议你...

问题 在BSC链上合约方法调用时出现错误,提示:uint256[]不匹配——尝试toWei,toInt,toBytes等都无法解决,请教应该怎么弄?

... function with name `batchRegister`, positional argument(s) of type `(, )` and keyword argument(s) of type `{}`. Found 1 function(s) with the name `batchRegister`: ['batchRegister(uint256[],uint256[])'] Function invocation failed due to no matching argument types. 4、尝试过的办法: bat...

文章 人工智能能做到吗?生成式人工智能的挑战、局限与机遇

...nology/2024/02/chatgpt-alarms-users-by-spitting-out-shakespearean-nonsense-and-rambling/)。问题始于 2 月 20 日,并在 2 月 21 日营业结束前得到修复。然而,这突出表明人工智能工具可能随时出现故障或变得不可用。更重要的是,目前尚不清楚是什...

文章 如何使用以太坊的 CREATE2 操作码

... for (var i = 0; i < 72057594037927936; i++) { // 1. Convert i to hex, and it pad to 32 bytes: var saltToBytes = i.toString(16).padStart(64, '0') // 2. Concatenate this between the other 2 strings var concatString = string1.concat(saltToBytes).concat(string2) // 3. Hash th...

文章 如何在Solidity中获取ETH,BTC和其他加密货币的当前价格

...ty/) 原文标题:_How to Fetch the Current Price of Ethereum, Bitcoin, and Other Cryptocurrencies in Solidity_ 原文作者:[Harry Papacharissiou](https://blog.chain.link/author/harry/) 在Solidity智能合约中获取价格数据是DeFi应用的常见需求。在Solidity中为了获取ETH...

文章 如何获取以太坊上的代币、交易、元数据、NFT 和价格

...nc() => { await Moralis.start({ apiKey: "YOUR_API_KEY", // ...and any other configuration }); //Add the code for calling one of the ETH API endpoints here } runApp(); ``` 从这里开始,您现在需要稍微配置一下代码,您可以`YOUR_API_KEY`先用上一...

文章 用 2 顆 ETH 成為以太坊節點,享受 2 倍以上收益

...情可以參考 [這裡](https://dvt-homestaker.stakesaurus.com/hardware-and-systems-setup/hardware-and-system-requirements): ✅ **節點機器**(建議規格): - 32GB 記憶體 - 2TB NVMe SSD - 4 核心處理器 ✅ **一台遠端操作電腦**(安裝後可用手機管理) ✅ **...

文章 Compound V3 每秒利息

...分提到 `SECONDS_PER_YEAR` 常量(红框)。 ![seconds_per_year and factor_scale constants](https://img.learnblockchain.cn/2025/02/26/935a00_46c2f9dbe4f24d6bb83eea521b2c55e5~mv2.png) ### 步骤 2: 利用率以 FACTOR_SCALE(1e18)为单位 让我们查看 [Comet.sol 中的 getUtiliz...

文章 EVM系统深入研究

...cs.soliditylang.org/en/v0.8.29/internals/layout\_in\_storage.html#mappings-and-dynamic-arrays](https://learnblockchain.cn/docs/solidity/internals/layout_in_storage.html#mappings-and-dynamic-arrays) ## EVM 操作码 EVM 指令集包含大约 150 个操作码,涵盖算术运算、堆栈运算...

文章 以太坊节点类型:全节点、存档节点与轻节点

...太坊完整节点客户端](https://ethereum.org/en/developers/docs/nodes-and-clients)验证每个区块中的所有交易,为网络提供安全性和数据准确性。 每个以太坊客户端都具有自己的一组功能和优势。由于其多样性,可以根据不同的用户群体定制...

文章 剖析DeFi交易产品之UniswapV3:工厂合约

...() { // Immutables are computed in the init code of the contract, and then inlined into the deployed bytecode. // In other words, this variable won't change when it's checked at runtime. original = address(this); } /// @dev Private method is used instead of inl...

文章 本月我体验的链上游戏:八月

... Blizzard)组成的游戏开发团队,在 2022 年 2 月从 Animoca Brands、Shima Capital、Alameda Ventures、Jump Capital、AAG Ventures、Sfermion 和 YGGSEA 筹集了 300 万美元的种子资金。Sparkball 是 Worldspark Studios 制作的第一款游戏,最初名为 Edenbrawl。 [Spa...

文章 GARCH 模型在加密资产中的应用 - 波动性建模 II

...别是在短期预测方面。 ### 资料来源与参考文献 - Alexander, C., & Gholampour, V. (2018). Bitcoin: Medium of exchange or speculative assets? Journal of Financial Economics, 130(2), 367-378. [https://doi.org/10.1016/j.jfineco.2018.05.005](https://doi.org/10.1016/j.jfineco.2018.05...