找到约 14 条结果

文章 Web3实战:Solana CPI全解析,从Anchor封装到PDA转账

...rted warning mocha > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. [2/4] 🚚 Fetching packages... [3/4] 🔗 L...

文章 为NFT而生的新物种DAO

...NFT(ERC-721非同质化代币)。 即使是伟大的 DeFi 开发者 Andre Cronje 也对投机者盲目追捧他最新的实验项目感到不满。那么,能解决这些问题并为治理投票者带来好处的下一代 DAO 到底是什么样子? 传统的 DAO: 主要管理投...

文章 如何审计Solana智能合约第二部分:自动化扫描

... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: using `is_empty` is clearer and more explicit: `stripped_decimals.is_empty()` = note: `#[warn(clippy::len_zero)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero warning: t...

文章 Web3 开发神器:Arbitrum Stylus 智能合约全攻略

... cargo stylus -V stylus 0.5.12 cargo stylus --help Cargo subcommand for developing Stylus projects Usage: cargo stylus Commands: new Create a new Stylus project init Initializes a Stylus project in the current directory export-abi Export a Solidity AB...

文章 如何使用 Solidity 和 JavaScript 测试智能合约【译】

...om/alexroan/truffle-tests-tutorial) 我们有两个合约: `Background `and `EntryPoint `需要测试. `Background ` 是一个内部合约,DApp前端不会直接和它交互。`EntryPoint ` 则是设计作为供DApp交互的智能合约,在`EntryPoint`合约会引用`Background`合约。 ...

文章 Web3开发者的去中心化

...更全面的论文](https://a16z.com/wp-content/uploads/2022/04/principles-and-models-of-decentralization_miles-jennings_a16zcrypto.pdf)(包括额外的背景和细节);或者直接跳转到: 1. **[理解web3去中心化设计挑战的框架](https://future.com/web3-decentralization-models-...

文章 什么是Meta DEX?——以及为什么你应该用它来进行交易? - CoW DAO

...s#:~:text=CoW%20Protocol's%20Programmatic%20Order%20Framework,elapsed%2C%20and%20much%20more).)** - 创建在满足某些链上条件(例如资产价格、钱包余额、经过的时间等等)时执行的条件订单 - **[Milkman 订单](https://learnblockchain.cn/article/15372)**- 延迟执行...

文章 DeFi 模式:ERC20 代币转账如何操作

...代币(如 ERC-677、ERC-777 等)或协议回调(如 token.transferAndCall() 或这个来自 Uniswap V3 的“经典”示例 [这里](https://github.com/Uniswap/v3-core/blob/d8b1c635c275d2a9450bd6a78f3fa2484fef73eb/contracts/UniswapV3Pool.sol#L776))来计算合约余额变化。 每种...

文章 盲签名与匿名集

...b` 只能看到 “失明世界” 里的 `(M', C')` . ![cashu-blind-and-unblind](https://www.btcstudy.org/images/buckets-of-blind-signatures/cashu-blind-and-unblind.png) ## [](https://www.btcstudy.org/2024/12/13/buckets-of-blind-signatures/#%E5%B8%A6%E6%9C%89%E4%BB%B7%E5%80%BC%E7%9A%84%E7%...

文章 离线支付的过去、现在和未来

...片:[Sylvain Mauroux](https://unsplash.com/photos/person-in-red-jacket-and-blue-pants-sitting-on-rock-mountain-covered-with-snow-during-daytime-m6wbWMF6p9s?utm_content=creditShareLink&utm_medium=referral&utm_source=unsplash)) 由于离线支付是一项长期的用户体验挑战,让我回顾...

文章 OP_CAT:限制条款的完美解决方案?

...归类为限制条款呢? ## OP\_CAT:释放所有可能 2021 年,Andrew Poelstra 在一篇 [文章](https://blog.blockstream.com/cat-and-schnorr-tricks-i/) 中介绍了使用 OP\_CAT 的内省技巧。他提供了具体的案例,只不过假设了读者对类似的技术有前置知识。 ...

文章 合约升级模式-以compound为例

...lementation; address public pendingComptrollerImplementation; constructor(address _admin) { admin = _admin; } //设置逻辑合约地址 function _setPendingImplementation(address newPendingImplementation) public returns (uint){ require(msg.sender == admin); pendingCom...

文章 闪电通道再平衡技术:环路支付、手续费管理和通道拼接

... ![Rebalancing in the Lightning Network: Circular Payments, Fee Management and Splices](https://img.learnblockchain.cn/2025/07/14/00x1695.svg) 中介节点在闪电网络中扮演着关键的角色,他们让用户可以跟自己并无直接通道的对等节点交互。如果没有中介节点,...

文章 如果Fabric的智能合约函数陷入死循环会怎么样

... s := "{\"fields\": [\"GoodsName\", \"GoodsCount\"], \"selector\":{ \"$and\": [{\"GoodPrice\":{\"$gte\": 1}}, {\"GoodPrice\":{\"$lte\": 100}}] }}" resultsIterator, err := stub.GetQueryResult(q) defer resultsIterator.Close() if err != nil { return shim.Error(err.Er...