找到约 12 条结果

问题 VS code 中,只要一点击进入 .sol 文件, .prettier 插件就会自动 disable

...d move to after formatting.\nThis option cannot be used with --range-start and --range-end.", "cliCategory": "Editor" }, "endOfLine": { "since": "1.15.0", "category": "Global", "type": "choice", "default": [ { "since": "1.15.0", "value": "auto" }, { "since": "2.0.0", "value": "lf" } ...

文章 Web3 极客日报 #1478

...-unsafe-unnecessary-puts-user-funds-at-risk-while-fragmenting-ux-liquidity-and-the-wallet-stack/19662/14 https://twitter.com/lightclients/status/1778823652584120497 **Survivor**: EIP3074是否安全?3074被纳入布拉格升级,但在以太坊社区内讨论依然比较激烈。作者之一...

文章 tokio-fusion 线程池 v0.1 发布

... let thread_pool = Arc::new(ThreadPool::default()); // Create and submit a task let task = Task::new(my_task(1), 1); let handle = thread_pool.submit(task).await.unwrap(); // Wait for the result let result = handle.await_result().await; println!("Task resul...

文章 每周以太坊 2024/08/17

...ames)的演变](https://ethresear.ch/t/on-attestations-block-propagation-and-timing-games/20272),Kiln 引起最大的问题 * 文章:Lighthouse [树状态](https://lighthouse-blog.sigmaprime.io/tree-states-part1.html)解释,在保持更多信标状态在内存中的同时减少 RAM * [...

文章 在 Solana 中实现映射表与嵌套映射表

...onst program = anchor.workspace.ExampleMap as Program; it("Initialize and set value", async () => { const key = new anchor.BN(42); const value = new anchor.BN(1337); const seeds = [key.toArrayLike(Buffer, "le", 8)]; let valueAccount = anchor.web3.PublicKey.findProgramAddre...

文章 如何在NFT(ERC721)中获取随机数

...在以太坊区块链上构建一个龙与地下城角色!D&D(Dungeons and Dragons)是一款流行的角色扮演游戏(RPG),人们在游戏中创建角色并进行冒险。创建角色的重要环节之一是给他们赋予属性或统计数据,以显示他们的力量、敏捷、智力等。...

文章 驾驭加密货币质押风险:投资的必要保护策略

...了极具吸引力的[5%到20%](https://www.bitcoinsensus.com/learn/understanding-crypto-volatility-and-risk-management-in-cryptocurrency/)的回报,但这些回报并不能得到保证。加密货币市场的波动性,加上验证者故障和智能合约漏洞等技术风险,构成了一个...

文章 每周以太坊进展 2020/11/01

...](https://www.reddit.com/r/ethereum/comments/jhst1g/ewasm_virtual_machine_and_debugger_for_ethereum_20/) * [Armiarma](https://github.com/leobago/BSC-ETH2/blob/master/Armiarma/Armiarma.md) 网络爬虫 * Medalla [退出工具](https://twitter.com/superphiz/status/1322165640006901761) * superphiz ...

文章 用Ethers.js构建一个简单的DApp

...he json of the contract which you want to interact // You can use any standard network name // - "homestead" // - "rinkeby" // - "ropsten" // - "kovan" // - "goerli" const provider = ethers.getDefaultProvider(config['network']); // Make a wallet instance using private key and provid...

文章 solana_business_card合约解析

...b mod solana_business_card { use super::*; // Our instruction handler! It sets the user's favorite number and color pub fn set_favorites( context: Context, number: u64, color: String, hobbies: Vec, ) -> Result { let user_public_key =...

文章 每周以太坊 2024/05/04

...范链中 * [**Pectra-devnet-0**](https://notes.ethereum.org/@ethpandaops/pectra-devnet-0#Client-implementation-tracker):计划在约 10 天内推出,客户端团队取得良好进展,为 EIP7549 进行的见证重构需要额外时间 * **EIP7684 为不同凭证返回存款**:...

文章 每周以太坊进展2022/4/9

...数据在 ethsta.com 上可视化呈现。 * Vitalik: 使用 size-2 blind-and-swap 的[单一秘密领导人选举(single secret leader election-SSLE)的简化版](https://ethresear.ch/t/simplified-ssle/12315) , 不完美但更简单的保证 ## POW 关闭(合并) * [clientdiversity.org](htt...