找到约 12 条结果

文章 以太坊代理合约分析与漏洞利用管道的概念验证

...ion_bytecode FROM contracts WHERE proxy_type = 'EIP-1967' AND implementation_bytecode IS NOT NULL ''') proxies = cursor.fetchall() print(f"\n=== 分析具有实现字节码的 {len(proxies)} 个 EIP-1967 代理合约 ===") signatures_file_path = Path(_...

文章 比特币地址类型概说

...](https://www.btcstudy.org/2024/11/22/bitcoin-address-types-its-essentials-and-its-economics/#note1);在花费使用这样的脚本的资金时,交易被当作 “标准的比特币交易”,可以在网络中无碍传播。反之,如果不使用这样的标准化脚本,即使交易是有...

问题 关于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...

文章 手把手使用 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 的机器人。他们正在黑板上画一只美洲驼。把它做成漫画风格 ``` 为此,我...

文章 深入 Uniswap V4 源码 - Pool Library

...e to themselves to freely inflate feeGrowthGlobal /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme struct State { Slot0 slot0; uint256 feeGrowthGlobal0X128; uint256 feeGrowthGlobal1X128; uint128 liquidity; mapp...

文章 密码学在区块链安全中的作用

...](https://blockapps.net/blog/fortifying-the-blockchain-security-measures-and-protocols/)中的作用是多方面的,几个关键要素协同工作,创建了一条牢不可破的信任链。其中一个最关键的组成部分是**哈希函数**的使用。这些数学算法接受任何大小的...

文章 法币系统中的货币创造

> _作者:Michael McLeay、Amar Radia 和 Ryland Thomas_ > > _来源: [https://www.bankofengland.co.uk/-/media/boe/files/quarterly-bulletin/2014/money-creation-in-the-modern-economy.pdf](https://www.bankofengland.co.uk/-/media/boe/files/quarterly-bulletin/2014/money-creation-in-the-modern-econom...

文章 Uniswap v4 数据指南

...polia.PoolManager_evt_Swap s ON ml.evt_block_time > s.evt_block_time AND ml.id = s.id LEFT JOIN uniswap_v4_sepolia.PoolManager_evt_Initialize i ON ml.evt_block_time >= i.evt_block_time AND ml.id = i.id ) tbl WHERE rn = 1 ), -- 2) Convert sqrtPrice to ticks, handle range math pre...

文章 Move语言(2024版)

...件](https://docs.sui.io/references/contribute/sui-environment#move-ides-and-plugins)的入门指南以了解更多信息。 ## 新[功能](https://docs.sui.io/guides/developer/advanced/move-2024-migration#new-features "直接链接到新功能") 以下是 Move 2024 中一些新功能的简要...

文章 为什么意图求解器系统有效?- 第一部分

...输。 它们有 2 种主要模型: 1. **锁定和铸造模型 (Lock-and-Mint Model)**: 1. 在此模型中,用户的资产首先被“**锁定**”在源区块链上的智能合约中。 2. 然后,在目标链上“铸造”代表锁定资产的相应“包装”代币。 3. 如...

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