找到约 14 条结果

问题 contractTokenBalance >= swapTokensAtAmount ,每次达到这个条件的时候,就无法转账和卖出了,只能买,不知道哪个逻辑出错了,求解!!!

...ipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier...

文章 利用 GPT-5.4 反编译字节码

....sender == auth1, "X"); _; } // Parameter names are reconstructed from behavior and public writeups. function fn_0x524c9e20( uint256[] calldata scalingFactors, uint256[] calldata balances, uint256 indexIn, uint256 indexOut, uint2...

文章 rfc/obpp-05.mediawiki,来自 master · OpenBitcoinPrivacyProject/rfc

...公钥。 - Payment code identifier: The script element used by senders to construct notification scripts and by recipient to locate their notifications SHALL consist of the first 32 bytes of `c = HMAC-SHA512(c, v)` where c is the chain code and v is the one byte version of the sender's payment code...

文章 理解以太坊: Go-Ethereum 源码剖析(1): Account and State

...nt transaction execution fakeStorage Storage // Fake storage which constructed by caller for debugging purpose. // Cache flags. // When an object is marked suicided it will be delete from the trie // during the "update" phase of the state transition. dirtyCode bool // t...

文章 什么是代币化房地产?

...据 [Ernst & Young (EY)](https://www.ey.com/en_ch/real-estate-hospitality-construction/tokenization-from-illiquid-to-liquid-real-estate-ownership) 的说法,“房地产资产的**代币化**可以在房地产行业中发挥重要作用。通过使用**代币化**,公证访问、可观的交易...

文章 Building a Bitcoin P2TR Tx by Hand

...ash_type: bytes = bytes.fromhex("00") # SIGHASH_DEFAULT ## ---------- ## CONSTRUCTING SIGHASH x INPUT (taproot) ## ---------- ## sha_prevouts (32) = SHA256(serialization of all input outpoints) prevouts: bytes = b'' for utxo_to_spend in utxos_to_spend: prevouts += reverse_byte_order(bytes.from...

文章 从EVM 角度看合约创建与部署

> * 原文链接: https://blog.smlxl.io/evm-contract-construction-93c98cc4ca96 > * 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412) 校对:[Tiny 熊](https://learnblockchain.cn/people/15) > * 本文永...

文章 [译]如何利用OpenZeppelin编写可升级的智能合约

... private _cap = 1000000000000000000; ERC20Capped public token; constructor(uint8 cap) public { _cap = cap; token = new ERC20Capped(_cap); } } ``` ### 限制1:没有构造函数 由于基于代理的可升级性的要求,因此在可升级合同...

文章 椭圆曲线深度解析(第 9 部分)

...我们[已经知道](https://learnblockchain.cn/article/15567#:~:text=to%20construct%20pairings.-,Torsion%20Groups,-Torsion%20groups%20are)它与 _ℤᵣ×ℤᵣ_ 同构,所以没有一个生成器可以产生群中的所有元素。某些协议依赖于循环性来工作,因此它们不能使...

问题 我想问问 怎么获取一个流动池剩下的eth数量 比如下面这个代码 并没有用过IUniswapV2Pair这个库 我无法调用里面的方法

...wo of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name_, symbol_); } function...

文章 创建一个基于链上实时数据的动态SVG NFT

...ore individual stream addresses so they can be referenced post-mint constructor() ERC721("BuidlGuidl Tabard", "BGT") {} function mintItem(address streamAddress) public { // Minimal check that wallet is the recipient of a Stream // Someone could deploy a decoy stream t...

文章 有状态哈希还是无状态哈希——这是后量子问题

...法的稳健性的情况下。 ### 参考文献 \[1] Lamport, L. (1979). Constructing digital signatures from a one-way function (Vol. 238). Technical Report CSL-98, SRI International. \[[论文](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.228.2958&rep=rep1&type=pdf)] \[2] Buchmann,...

文章 椭圆曲线深入研究(第八部分)

...制为 [_r-挠点_](https://learnblockchain.cn/article/15567#:~:text=to%20construct%20pairings.-,Torsion%20Groups,-Torsion%20groups%20are)。我们将在几分钟内看到原因。 我们知道的另一件事是,我们可以通过在处理 [莫德尔-韦伊群](https://learnblockchain.cn/articl...

文章 每周以太坊进展 2022/12/3

...atch?v=tpekiuASieo) * [合约构建](https://blog.smlxl.io/evm-contract-construction-93c98cc4ca96)和部署指南 * EVM 的结构和访问方式的[存储图示](https://twitter.com/blainemalone/status/1597352375593078784) * [evmc](https://github.com/joshstevens19/evmc#readme):从 Ethersc...