找到约 12 条结果

文章 使用 Zama 的 Concrete ML 和全同态加密赢得 TikTok 黑客马拉松

[![](https://img.learnblockchain.cn/2025/04/23/646eaa9b9a4784ac233a2025_zama20logo20black.png)](https://www.zama.ai/) [![](https://img.learnblockchain.cn/2025/04/23/646eaa9b9a4784ac233a2025_zama20logo20black.png)](https://www.zama.ai/) [博客](https://www.zama.ai/blog) / [社区](https://www.za...

问题 在网上抄的代码,在部署时提示Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

``` /** *Submitted for verification at BscScan.com on 2021-05-22 */ pragma solidity ^0.6.12; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ functio...

文章 生产 | 独立黑客创业手册(肆)

... > —— Kevin Hale > > —— https://leilux.github.io/lou/startup/YC%20startup%20CS183B/lesson7/readme.html ### 4.2 控制生产成本 控制生产成本,最重要的自然是上一节提到的「确保有效生产的概率」。无效生产是消耗成本的深渊 —— 干得越起...

文章 Fomo3D 合约源码浅析

...to pot swap, 1% to air drop pot fees_[2] = F3Ddatasets.TeamFee(56,10); //20% to pot, 10% to aff, 2% to com, 1% to pot swap, 1% to air drop pot fees_[3] = F3Ddatasets.TeamFee(43,8); //35% to pot, 10% to aff, 2% to com, 1% to pot swap, 1% to air drop pot // how to split up the final pot ba...

文章 NFT合约同样也有重入风险:Revest Finance被黑事件分析

...positAdditionalToF[NFT](https://www.bimama.com/quote/nftprotocol/)函数【ERC1155 onERC1155Received 重入】。 ![image.png](https://img.learnblockchain.cn/attachments/2022/03/BqZzmM1Z624163a613c3f.png) 由于[NFT](https://www.bimama.com/quote/nftprotocol/) nextId(即F[NFT](https://www.bi...

文章 正式验证指南

...; // } } ```` ##### 结果: ![ity1](https://img.learnblockchain.cn/2025/03/30/Sk2nY889T.png) ##### 或这个例子: ```solidity // SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "lib/solidity_utils/lib.sol"; contract BytecodeVault { // address public owner; //...

文章 工作的未来

![](https://img.learnblockchain.cn/2025/03/08/1SazQZOoab1fzzst_k7dvyA.png) 你今天想通过什么方式赚钱? > “你可能某天会为一个协议工作。” 这是我在我的加密经济课程结束时对学生说的最后几句话。当我在2017年开始教授这门课程时,...

文章 Solidity 非权威开发指南(2):语法摘要

... | 声明:`error MyError(unit reason);`使用:`revert MyError(200);` | | 枚举 | 有限常数值最佳选择 | `enum State { Created, Locked, Inactive }` | 注: * payable,接收...

文章 GMX 源码解析二,市价订单逻辑

![image.png](https://img.learnblockchain.cn/attachments/2024/09/kfLUWa4S66d875f3dc790.png) 从上述时序图上来看,无论是 市价单 还是 限价单,他们的执行逻辑其实都是一样的,都是EOA账户发起交易,智能合约生成交易单。由交易机器人根据当前市...

文章 CSTK:共享堆栈可信种子的代币

...m.com/giveth/the-minime-token-open-sourced-by-giveth-2710c0210787),符合ERC-20代币标准。_ 如果你想更深入地参与,有几种方法可以与Commons Stack团队和社区互动: **🌱** [**申请并激活你的受信任种子会员资格**](https://learnblockchain.cn/article/11711)...

文章 探索 EVM 能做什么?

...数 每当我们从区块链外部调用一个函数(例如,调用 ERC20 合约上的 transfer 并用你的 Metamask 或其他浏览器钱包签名),该数据总是作为 calldata 发送的。然而,如果一个合约调用另一个函数参数,它可以将数据作为 calldata 或内...

文章 通过 CCIP 构建跨链应用(5 个案例)

...Hub](https://github.com/search?q=org%3Asmartcontractkit+ccip-+created%3A%3E2023-06-01&type=repositories) 上找到,并且现在可以自行部署并且与之交互。 ## DeFi:跨链可组合性 DeFi 是 Web3 应用的一个类别,非常适合通过跨链智能合约进行创新。在目前...