KnownCodesStorage

Abstract

0x0000000000000000000000000000000000008004

Solidity v0.8.20+commit.a1b79de6

🤖
通过你的 AI 查询此合约
引用: 0x0000000000000000000000000000000000008004
示例提示词: "Tell me the current state of abstract/0x0000000000000000000000000000000000008004"
还没有接入 AI?→ mcp.smarts.md
Abstract 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
1
写入函数
2
事件
1

读取函数

getMarker(_hash: bytes32) view

Returns the marker stored for a bytecode hash. 1 means that the bytecode hash is known and can be used for deploying contracts. 0 otherwise.

参数

名称 类型 描述
_hash bytes32

返回值

名称 类型 描述
marker uint256

写入函数

markBytecodeAsPublished(_bytecodeHash: bytes32) nonpayable

The method used to mark a single bytecode hash as known.

开发者: Only trusted contacts can call this method, currently only the bytecode compressor.

参数

名称 类型 描述
_bytecodeHash bytes32 The hash of the bytecode that is marked as known.
markFactoryDeps(_shouldSendToL1: bool, _hashes: bytes32[]) nonpayable

The method that is used by the bootloader to mark several bytecode hashes as known.

参数

名称 类型 描述
_shouldSendToL1 bool Whether the bytecode should be sent on L1.
_hashes bytes32[] Hashes of the bytecodes to be marked as known.

事件

MarkedAsKnown(bytecodeHash: bytes32, sendBytecodeToL1: bool)
名称 类型 已索引 描述
bytecodeHash bytes32
sendBytecodeToL1 bool