找到约 14 条结果

文章 Solidity中的事件和日志

*原文链接:https://blog.chain.link/events-and-logging-in-solidity-zh/* Solidity事件对于智能合约开发者来说是不可或缺的,它允许我们对智能合约中特定变量进行测试,以自动化的方式改变前端等。总的来说,知道如何在Solidity中使用事件...

文章 图灵转向副驾驶:减少认知负荷

...nA.png) ### 参考文献 \[1] Larry Zhiming Xu, Kambiz Saffarizadeh, and Jungmin Lee. Fast forward, as copilot becomes the pilot: Examining genai dependence and problematic use. 2024. \[2] Giuseppe Russo Latona, Manoel Horta Ribeiro, Tim R Davidson, Veni- amin Veselovsky, and Robert West...

文章 每周以太坊进展,2020/06/28

...ch/t/regenesis-resetting-ethereum-to-reduce-the-burden-of-large-blockchain-and-state/7582):来自 Alexey Akhunov 的提议,像 Cosmos 那样重启区块链来降低节点负担 * [通过节点发现和自适应范围过滤器来分片状态](https://ethresear.ch/t/sharding-state-with-discovery-...

文章 什么是内存池?

... page has been blocked by an extension ![]()![]() Get free Ethereum RPCs and developer tools [Get your API key](https://dashboard.alchemy.com/signup/?a=overviews%252Fwhat-is-a-mempool) 📚 Table of contents * * * - Ethereum Transaction Flow - Purpose of a mempool - Access a mempool - Conclusio...

文章 Web3 Devops with Azure Devops pipeline 2

...ract.networks[0] | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name $address = $contract.networks.$networkId.address if($address) { Write-Host "##[section]Contract address: $address" } else { Write-Host "##vso[task.logissue...

文章 NFT经典 - Sonal Chokshi

...有利的经济 作者:Chris Dixon [https://a16z.com/2021/02/27/nfts-and-a-thousand-true-fans/](https://a16z.com/2021/02/27/nfts-and-a-thousand-true-fans/?__hstc=242610141.66223666586f65333592761cab3a413f.1741401795242.1741401795242.1741401795242.1&__hssc=242610141.1.1741401795243&__hsfp=8034434...

文章 以太坊开发入门-ERC721开发NFT

...造函数,初始化合约名称,简称和合约部署者 */ constructor() { _name = "Harry.NTF"; _symbol = "HNT"; _admin = msg.sender; } /** * 判断实现了些什么接口. */ function supportsInterface(bytes4 interfaceId) publ...

文章 手把手使用 Hardhat 和 Truffle 进行 React 项目设置

...ckages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... Created git commit. Success! Created truffle-example at /Examples/truffle-example Inside that directory, you can run several commands: yarn start Starts the development ...

文章 AI - Stable Diffusion vs DALLE-3

...fusion 让我们尝试一下: ``` Illustrate two robots named Bob and Alice. They are drawing a llama on a blackboard. Make it a manga style ``` ``` 绘制两个名为 Bob 和 Alice 的机器人。他们正在黑板上画一只美洲驼。把它做成漫画风格 ``` 为此,我...

文章 Devcon 2024 的启示:以太坊的北极星

...至被[完全抛弃](https://www.swanbitcoin.com/finance/bitcoin-ethereum-and-the-fall-of-the-roman-republic/)。即使在以太坊社区内部,关于价值观的分歧也加剧了 Pectra 升级决策过程中的争论,以及在 X 上关于 blob 费用市场和发行等主题的激烈争论。 ...

问题 关于PancakeRouter: EXPIRED问题

... bnb = trader.get_bnb_balance(address) if bnb > 0 and trader.can_buy(bnb, wallet=address): result = trader.buy(address, key, bnb) ``` ``` import time from typing import Optional from loguru import logger from web3 import Web3 from web3.contract im...

文章 LazyTower: An O(1) Replacement for Incremental Merkle Trees

...不用儲存 array of roots. 比方說, 我們可以採用 Merkle-Damgård construction, 搭配一個 ZK-friendly 的 hash function (如Poseidon hash): ``` digest([a]) = a digest([a, b]) = H(a, b) digest([a, b, c]) = H(H(a, b), c) digest([a, b, c, d]) = H(H(H(a, b), c), d) digest([a, b, c, d...

文章 OpenZeppelin:安全高效智能合约的秘密武器

...sable { // Inherits from three OpenZeppelin contracts: ERC20, Ownable, and Pausable // 继承自三个 OpenZeppelin 合约:ERC20、Ownable 和 Pausable // Import and use the SafeMath library directly using SafeMath for uint256; // Applies SafeMath library functions to all uint...

文章 从比特到量子比特——以及蝴蝶效应引发的飓风

...直在阅读 Brian Klaas 博士和 John Murray 的《Fluke: Chance, Chaos and Why Everything We Do Matters》\[[here](https://www.amazon.co.uk/Fluke-Chance-Chaos-Everything-We-Do-Matters/dp/B0CCYVW2FD/ref=sr_1_1?crid=2OQTP8H5EKDX5&dib=eyJ2IjoiMSJ9.CAQfURSI3bEuhAhy85nlrCbVzGZrykidaPnpYkJuHI4.-Bu0UP5m...