找到约 13 条结果

文章 使用Selenium和Metamask 与 Dapp 自动化交互

... 原文:https://dev.to/ltmenezes/automated-dapps-scrapping-with-selenium-and-metamask-2ae9 作者:Leonardo Teixeira Menezes > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/1381) > * 校对:[Tiny 熊](...

文章 Go 并发编程实战:从互斥锁到 Goroutine 的优雅之道

...// VisitLink tracks that the page with the given URL has // been visited, and returns the updated link count. func (v *Visited) VisitLink(url string) int { v.mu.Lokc() defer v.mu.Unlock() count := v.visited[url] count++ v.visited[url] = count return count } func main() { ...

文章 理解Solana上的主网、开发网和测试网

...文链接: [coinsbench.com/understan...](https://coinsbench.com/understanding-mainnet-devnet-and-testnet-on-solana-34d8de0999d2) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~

文章 以太七日谈 • 2022/3/1

...hin 在 2 月 22 日 发布新书 *The Cryptopians: Idealism, Greed, Lies, and the Making of the First Big Cryptocurrency Craze* 。 Laura 表示,新书里有关于 2016 年 DAO 分叉黑客的独家报道——通过使用加密追踪公司 Chainalysis 的取证工具,她与她的消息来...

问题 uniswap里的案例合约ExampleSwapToPrice里computeProfitMaximizingTrade函数的输入truePriceTokenA,truePriceTokenB如何获取或计算,它们和交易对的实时价格有什么关系

...ctory_; router = router_; } // computes the direction and magnitude of the profit-maximizing trade function computeProfitMaximizingTrade( uint256 truePriceTokenA, uint256 truePriceTokenB, uint256 reserveA, uint256 reserveB ) pure pub...

文章 EIP-4844 背景与技术解读

... gas_limit, gas_used, timestamp, extradata, prev_randao, 0x0000000000000000, # nonce base_fee_per_gas, withdrawals_root, blob_gas_used, excess_blob_gas, ]) ``` `excess_blob_gas` 的值可以使用**父区块头**计算,它与 blob 基础...

文章 Foundry 高级实战:实现一个可升级的工厂合约 UpgradeableTokenFactory

...Transparent Proxy)- ERC1967Proxy - UUPS(universal upgradeable proxy standard)- ERC-1822 ### ERC-1822: Universal Upgradeable Proxy Standard (UUPS) ![ERC-1822UUPS](https://eips.ethereum.org/assets/eip-1822/proxy-diagram.png) https://eips.ethereum.org/EIPS/eip-1822 ## 使用 Del...

文章 [译]Solidity 0.7.0 新变化

...dity.readthedocs.io/en/latest/types.html?highlight=ascii# String -literals-and-type)将抛出解析器错误。 * 需要表达ASCII以外的字符串变量现在应该显式键入`unicode`字符串。它们用`unicode`前缀来标识(例如:`unicode`)。 (例如. `unicode"Text, including emoj...

文章 写给比特币人的 Chia Lisp 编程语言介绍

...port 签名和 CAT 技巧](https://delvingbitcoin.org/t/lamport-signatures-and-other-cat-tricks/236)”,有 20 个步骤,每一步都涉及一个 8 层的默克尔树,每一次都要单独说明默克尔树,而不是用两个循环解决问题 —— 如果有循环,那么 160 个步骤应...

文章 解码以太坊智能合约数据

...: """ utility function to convert byte codes into human readable and json serializable data structures """ output = dict() for k in arg: if isinstance(arg[k], (bytes, bytearray)): output[k] = to_hex(arg[k]) elif isinstance(arg[k], (list)) and len(arg[k]) > 0: ...

问题 我正在学习solidity,在写完这个合约,编译报错TypeError: Contract "ERC20" should be marked as abstract.请问要如何修改

... | 32 | contract ERC20 is IERC20{ | ^ (Relevant source part starts here and spans across multiple lines). Note: Missing implementation: --> contracts/ERC20.sol:25:5: | 25 | function transferFrom(address sender,address recipient,uint amount) external returns (bool); | ^^^^^^^^^^^^^^^^^^^^^^^^...

文章 Aptos Move 性能优化:位运算与移位操作实战

...写更紧凑、更高效、更专业的代码。 ## Aptos Move Bitwise and Bitshift Operations ### Bitwise(位运算):直接对二进制位进行操作,常见运算包括: - 与(&):两位都为1时结果为1,否则为0。 - 或(|):两位任一为1时结果为1...

文章 掌握 Solidity 中的访问控制

...control-in-agentnftv2addvalidator-enables-unauthorized-validator-injection-and-causes-reward-accounting-inconsistencies-code4rena-virtuals-protocol-virtuals-protocol-git) [**智能合约漏洞数据集 - Cyfrin Solodit** ](https://solodit.cyfrin.io/issues/missing-access-control-on-critical-feecon...