找到约 15 条结果

文章 Substrate 抛硬币游戏(二):编写测试和UI

...nction的第一个参数是`Origin`枚举类型吗?在实现代码中,`construct_runtime!`宏通过调用`impl_outer_origin!`自动为我们添加了Origin的定义。但是在测试代码中,我们需要自己调用`impl_outer_origin!`帮我们生成runtime所依赖的`Origin`类型,宏解...

文章 optimism sequencer背后的魔法(三):libp2p在op-stack中的使用

...ay(), // host will start and listen to network directly after construction from config. libp2p.ListenAddrs(listenAddr), libp2p.ConnectionGater(connGtr), libp2p.ConnectionManager(connMngr), //libp2p.ResourceManager(nil), // TODO use res...

文章 Mechan-stein:一种新型以太坊区块构建框架

...305258047)。这些想法也在 [此文档](https://efdn.notion.site/Block-construction-session-bd611621250f45948eff05fcf6a34067?pvs=4) 中探讨,该文档启发了 [此演讲](https://github.com/michaelneuder/talks/blob/main/misc2024/sbc.pdf)。_ ⋅ **摘要:** _我们概述了以太坊区...

文章 每周以太坊进展2022/11/26

... halo2 Rust crate[构建 ZK SNARK 电路](https://jtriley.substack.com/p/constructing-zk-snark-circuits)的指南 ## 安全 * [形式化验证 WETH 合约](https://www.zellic.io/blog/formal-verification-weth),用 Z3 Theorem Prover 证明 Wrapped ETH 智能合约的安全性 --- ...

文章 zkSync Era部署合约代币最全教程,安装本地环境

...,官方出的解决方案是使用 hardhat 插件。 2.合约中的 constructor 需要传参进去,不能直接写入 3.官方的 python sdk 也是不能使用的状态。 4.测试链需要有一定数量的测试ETH,可在bisell.site币售购买 系统环境:ubuntu 22.04 ### ...

文章 Aave中的AToken

...er contract to implement initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * @dev WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well *...

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

文章 Rollup节点规范

...2 输出根](https://learnblockchain.cn/article/17399#l2-output-commitment-construction)。 [SSZ]: https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md #### 输出方法 API 此处的输入和返回类型由 [engine API specs][engine-structures] 定义。 [engine-structur...

文章 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) 的说法,“房地产资产的**代币化**可以在房地产行业中发挥重要作用。通过使用**代币化**,公证访问、可观的交易...

文章 从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:没有构造函数 由于基于代理的可升级性的要求,因此在可升级合同...

文章 《Effective Rust》第 7 条:对于复杂的类型,使用构造器

...名*不*需要消费 `self`,因此必须如下所示: ```rust /// Construct a fully built [`Details`] object. /// 生成一个构造完毕的 [`Details`] 对象。 pub fn build(&self) -> Details { // ... } ``` 这个可重复调用的 `build()` 的实现必须在每次被调用...

问题 我想问问 怎么获取一个流动池剩下的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...