找到约 14 条结果

文章 以太坊开发入门-ERC721开发NFT

...造函数,初始化合约名称,简称和合约部署者 */ constructor() { _name = "Harry.NTF"; _symbol = "HNT"; _admin = msg.sender; } /** * 判断实现了些什么接口. */ function supportsInterface(bytes4 interfaceId) publ...

文章 BOLT 4:洋葱路由协议

...化临时密钥](#blinding-ephemeral-keys) * [数据包构建](#packet-construction) * [数据包转发](#packet-forwarding) * [填充生成](#filler-generation) * [返回错误](#returning-errors) * [失败消息](#failure-messages) * [接收失败代码](#receiving-failure-codes) ...

文章 Chainlink--CCIP--NFT 讲解

...Lane Manager(通道管理) ```js class LaneManager { constructor() { this.lanes = new Map(); this.limits = new Map(); } // 检查通道状态 async checkLane(sourceChain, destChain) { const lane = this.getLane(sou...

文章 合约升级模式-以compound为例

...lementation; address public pendingComptrollerImplementation; constructor(address _admin) { admin = _admin; } //设置逻辑合约地址 function _setPendingImplementation(address newPendingImplementation) public returns (uint){ require(msg.sender == admin); pendingCom...

文章 理解以太坊的Layer 2扩容解决方案:状态通道、Plasma 和 Truebit | 作者:Josh Stark | L4 博客 | Medium

...近发布了项目进展的更新[在这里](https://blog.omisego.network/construction-of-a-plasma-chain-0x1-614f6ebd1612)。 ### **III. Truebit** [Truebit](http://truebit.io/) 是一种帮助以太坊进行 _重_ 或 _复杂_ 计算的技术。这使得它不同于状态通道和 Plasma,这两...

文章 系统合约/引导加载程序描述 (VM v1.5.0)

...时,才会设置每个位。目前,支持两个标志:第 0 位:`isConstructor` 标志。此标志只能由系统合约设置,并表示该帐户是否应执行其构造函数逻辑。请注意,与以太坊不同,构造函数和部署字节码之间没有分隔。有关更多信息,...

文章 同化博格:DAO相邻实体的新型密码法律框架

...索赔都被 “ [经济损失原则](https://www.americanbar.org/groups/construction_industry/publications/under_construction/2021/spring2021/economic_loss_doctrine/)” 排除或严重阻碍,该原则(在冒着一些简化的风险的情况下)指出,在被告与原告之间不存在 “...

文章 BOLT 4:洋葱路由协议

...葱密钥](#blinding-ephemeral-onion-keys) * [数据包构建](#packet-construction) * [洋葱解密](#onion-decryption) * [填充生成](#filler-generation) * [返回错误](#returning-errors) * [失败消息](#failure-messages) * [接收失败代码](#receiving-failure-codes) * [...

文章 Raiku:Solana 的高性能边缘计算层

...https://docs.raiku.com/overview/novel-app-architectures#external-extension-construction) 表明以太坊 L3 或自定义链可以通过 Raiku 有效地插入 Solana。这非常重要:这意味着以太坊 dApp 可以享受 Solana 的性能和用户群,而无需放弃其代码库。所有这些...

文章 Go 语言之搭建通用 Web 项目开发脚手架

... DebugLevel. core := zapcore.NewCore(encoder, writeSyncer, l) // New constructs a new Logger from the provided zapcore.Core and Options. If // the passed zapcore.Core is nil, it falls back to using a no-op // implementation. // AddCaller configures the Logger to annotate each message w...

文章 Foundry教程:使用多种方式编写可升级的智能合约(上)

...etValueFail(); contract VoteFirst { address eternalStorage; constructor(address _eternalStorage) { eternalStorage = _eternalStorage; } function getNumberOfVotes() public returns (uint256) { (bool success, bytes memory data) = eternalStorage.call( ...

文章 比特币巨额粉尘攻击:“所罗门兄弟”客户试图认领休眠钱包

...律信息研究所将推定占有 [定义](https://www.law.cornell.edu/wex/constructive_possession) 为“对某人没有直接物理控制的物体的合法占有。... 例如,_拥有保险箱钥匙的人_可能对该保险箱的内容拥有推定占有权。”(强调部分为原文。) 钱...

文章 比特币 - bips/bip-tap.mediawiki,位于Roasbeef/bips - Roasbeef

...e is itself a branch, so we need the two siblings # used to construct the branch. case BranchReveal(sibling_1, sibling_2): expected_branch_hash = tagged_hash("TapBranch", sort(sibling_1, sibling_2)) if expected_branch_hash != const...

文章 Across协议OFT集成差异化审计

...的文档](https://docs.layerzero.network/v2/developers/evm/oft/quickstart#constructing-an-oft-contract) 指出 _“在 NON-default OFT 中,amountSentLD 可能是 100,费用为 10%,amountReceivedLD 金额为 90,因此 amountSentLD 可能与 amountReceivedLD 不同。”_ 当前的实现尝...