找到约 10 条结果

文章 Optimism和OP Stack学习

...72b0-43ec-4b93-9b77-210516f3d5fe.png) ![image.png](https://img.learnblockchain.cn/attachments/2024/03/JhkeOgzj65ebd80dd0dad.png) **withdraw:** ![](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/2M9qPmLJrm1kO015/img/07756daf-7959-438e-a407-c3c7ebc4dfbf.png) ![image.png](https...

问题 怎么在合约里调用DEX进行交易呢

...Min,address[] calldata path,address to,uint deadline)external { //require(block.timestamp>Users[msg.sender].time_overdue,"time < block.timestamp"); IMdexRouter(token).swapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn,amountOutMin,path,to,deadline); } ``` 这是百度找着...

问题 .swapExactTokensForTokens 调用失败

...OUTER).swapExactTokensForTokens( _amountIn, _amountOutMin, path, _to, block.timestamp ); ``` ``` 如下传参调用失败 IUniswapV2Router02(UNISWAP_V2_ROUTER).swapExactTokensForTokens( _amountIn, _amountOutMin, path, address(this), block.timestamp ); ``` 求解?

问题 遇到报错:Indexed expression has to be a type, mapping or array

![NCV5SOS0VQFLNSZP7SCDC.png](https://img.learnblockchain.cn/attachments/2022/06/aaCPW1wR6299b5a9babfe.png) 如图,遇到此报错: ``` Indexed expression has to be a type, mapping or array (is struct Market.Block storage ref) ``` 请问该咋解决呢?其中blocks是Blocks[]类型...

问题 请求 Chainlink VRF 随机数不成功

...omWords()`和官方文档中的是一样的 ![image.png](https://img.learnblockchain.cn/attachments/2022/08/3um9EJvq62fc8de594993.png) 这个是我的输入 ![image.png](https://img.learnblockchain.cn/attachments/2022/08/iVYFoFrq62fc8f06a1743.png) 以下是我的 fulfillRandomWords 函数...

文章 Web3 极客日报 #1773

...连 AI 总结都能保存下来。 ### Goose,大鹅Agent https://block.github.io/goose/docs/quickstart,https://github.com/block/goose **Survivor**: Goose,大鹅Agent,试用了一下不错,本地电脑自动化操作,MCP调用,多模型支持,开源+本地运行

文章 简单支付验证 SPV

...础。 一个区块主要由两部分组成,一个是“区块头”( Block Headers ),一个是“区块体”( Block Body ) 。区块头中包含的是关于本区块的一些信息,例如版本号,随机数,挖矿难度等等,其中“前一个区块的哈希”这个是比较有...

问题 这是个欺诈合约,有兴趣的来看看问题代码在哪里?

... if(payout > 0) { players[_addr].last_payout = uint40(block.timestamp); players[_addr].dividends += payout; } } function _refPayout(address _addr, uint256 _amount) private { address up = players[_addr].upline; for(uint8 i = 0; ...

文章 ETH 中继接口

...区块事件 f. 区块分查事件 ``` ![image.png](https://img.learnblockchain.cn/attachments/2024/04/T68AmjsA6618a39af0ce8.png) ## 区块遍历 在中继开发中,事件的监听是开发难度最高的。 事件监听的技术原理主要是通过获取一个区块内部的交易信...

文章 使用Substrate开发区块链存证dApp

... - **版本** `v2.0.0-rc5` - **下载** ```bash [Jason@RUAN:~/Blockchain]$ git clone git@github.com:substrate-developer-hub/substrate-node-template.git [Jason@RUAN:~/Blockchain/substrate-node-template] (master)$ git checkout -b v2.0.0-rc5 v2.0.0-rc5 切换到一个新分支 'v2.0.0-...