找到约 13 条结果

文章 Rust入门系列:09、万字长文,一次性讲明白Rust中的所有权

...2 = String::from("hello"); // s2 进入作用域 let s3 = takes_and_gives_back(s2); // s2 被移动到 // takes_and_gives_back 中, // 它也将返回值移给 s3 } // 这里, s3 移出作用域并被丢...

文章 预售代币经济学:项目方指南

...是预售、公平启动或其他模式。 2. **归属和释放**(Vesting and Release): 代币可能会逐步释放,以防止核心团队立即抛售。常见的归属时间表包括定期释放一部分代币。 3. **代币锁定**(Token Locks): 为预售参与者实施代币锁定(归属期)...

文章 如何在智能合约中调用另一个合约的函数

... 部署 Counter 合约 1. 在左边的工具栏,点击按钮“Deploy and run transactions”。 2. 现在,我们只有一个智能合约,所以“Counter”在“Contracts”下拉菜单中会被自动选择。 3. 点击“Deploy”按钮 在下方找到部署好的合约,然后复...

文章 智能合约审计的隐藏投资回报率:Gas 优化和市值

...节省](https://www.rapidinnovation.io/post/mastering-gas-efficiency-tips-and-tricks-for-polygon-smart-contracts) 每次交易 0.50 美元,并且你的协议每年处理 100 万次交易,那么你每年就可以为你的用户生成 500,000 美元的补贴。通过改善用户体验和用户保...

文章 什么是动态NFT (dNFT)?

...基于 ERC-721 或 ERC-1155 [代币标准](https://blog.chain.link/token-standards/) 构建的 NFT 智能合约,或另一个区块链上以类似方式工作的替代标准。 - 连接到外部数据的能力,通常通过 [区块链预言机](https://learnblockchain.cn/article/18908) 服务(...

问题 我成功创建了一条本地开发链,访问 https://substrate-ui.parity.io时,显示我没有连接到节点。

...显示"You are not connected to a node. Ensure that your node is running and that the Websocket endpoint is reachable."而且左边侧面只有"settings","github","wiki"三个组建,我没能像参考文章那样做到交易。我是哪里缺少了呢?希望大神能够解决我的问题

文章 (一)基于区块链的自动抽奖系统从0到1实现

... please leave the port:[3306] for service:[MySQL] Aborted, error 5 in command: bash "${__root}/util.sh" check_ports ``` 上面的报错是说mysql的3306端口冲突了,因为服务我之前已经安装了默认3306端口的mysql数据库了。 ### 解决方案: 查询[官方文档](htt...

文章 波特五力模型与Web3中的竞争优势

...其 API 的访问](https://www.engadget.com/twitter-shut-off-its-free-api-and-its-breaking-a-lot-of-apps-222011637.html)。为了构建一个完全竞争的产品,新进入者必须重建类似的代码库并重建平台的社交图谱。 相比之下,在 web3 的开源世界中,新进入...

文章 通过 LI.FI 探索 Polygon

...1 年取得了巨大的一年](https://www.nftsstreet.com/nft-market-sales-and-trends-for-2021/),因此 Polygon 已被这两个领域中最大的参与者整合是完全合理的。 视频游戏巨头 Atari [与 Polygon 合作](https://blog.polygon.technology/gaming-giant-atari-partners-with-poly...

文章 EVM 堆栈指令集

...duplicate the value of b } return (a, b); // Returning a and b to verify the result } } ``` 对应的 EVM 字节码: ``` 60 04 // PUSH1 04 60 03 // PUSH1 03 60 02 // PUSH1 02 60 01 // PUSH1 01 81 // DUP2 ``` 执行流程 60 04:将 0x04 推送到...

文章 Solana笔记 10.理论:SPL代币标准

... If no mint authority is present /// then the mint has a fixed supply and no further tokens may be /// minted. pub mint_authority: COption, /// Total supply of tokens. pub supply: u64, /// Number of base 10 digits to the right of the decimal place. pub decimals: u8...

文章 如何使用 MEV 保护在 Base 上构建 Telegram 交易机器人

...: string, amount: string, gasPrice: string ): Promise { try { // Construct URL - QUICKNODE_RPC_URL has `/` at the end in default let url = `${QUICKNODE_RPC_URL}addon/${ADDON_ID}/v4/${CHAIN}/quote?inTokenAddress=${inTokenAddress}&outTokenAddress=${outTokenAddress}&amount=${amount}`; ...

文章 Hardhat 入门(二)

...ction withdraw() public { // 提现方法 // Uncomment this line, and the import of "hardhat/console.sol", to print a log in your terminal // console.log("Unlock time is %o and block timestamp is %o", unlockTime, block.timestamp); require(block.timestamp >= unlockTime, "...