KnownCodesStorage
Abstract0x0000000000000000000000000000000000008004
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 | ✓ |