找到约 12 条结果

文章 深入解读 Starknet 合约开发与部署:从 Cairo 编程到智能合约声明与部署

...ame = "ownable" version = "0.1.0" edition = "2023_11" # See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html [dependencies] starknet = "2.8.2" [dev-dependencies] snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag =...

文章 为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...

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

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

文章 rust开发solana合约

...ntrypoint::ProgramResult, pubkey::Pubkey, msg, }; // declare and export the program's entrypoint entrypoint!(process_instruction); // program entrypoint's implementation pub fn process_instruction( program_id: &Pubkey, accounts: &[AccountInfo], instruction_data: &[u...

文章 2023:L2 赛道爆发前夕,浅析各类 zkEVM

...来加速。 ### 主流项目: - 以太坊基金会PSE(Privacy and Scaling Explorations 隐私和扩容)团队 - [Taiko](https://taiko.xyz/):今年7月已更新至 Alpha-4 测试网,预计 2024 年年初上线主网。Taiko 项目从最初就优先考虑去中心化和兼容性,...

文章 SMTChecker 检查合约漏洞的超能力

...节在[这里](https://docs.soliditylang.org/en/v0.8.7/smtchecker.html#smt-and-horn-solvers))。 下面是另一个例子,说明SMTChecker在尝试长的交易序列来测试不变性:一个实现国际象棋 "马"的合约。我们将添加一个已知是无效的不变式,只是为了让S...

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

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

文章 盲签名与匿名集

...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%...

文章 引介 | Omen:新一代的预测市场

... (完) * * * **原文链接:** [https://blog.gnosis.pm/omen-and-the-next-generation-of-prediction-markets-2e7a2dd604e](https://blog.gnosis.pm/omen-and-the-next-generation-of-prediction-markets-2e7a2dd604e) **作者:** Gnosis **翻译&校对:** 闵敏 & 阿剑 * * *

文章 (三)Let's Move共学,sui move 发币

... of the unsigned transaction data (TransactionData) using base64 encoding, and print out the string . The string can be used to execute transaction with `sui client execute-signed-tx --tx-bytes `. --serialize-signed-transaction Instead of executing the trans...

文章 Solana笔记 08.案例:写一个SOL转账程序

...来实现账户的创建。以下是具体代码: ```js it('Create and fund account owned by our program', async () => { const instruction = SystemProgram.createAccount({ fromPubkey: payer.publicKey, // 我的钱包地址 newAccountPubkey: programOwnedAccount.publicKey, // ...