L1Messenger

Abstract

0x0000000000000000000000000000000000008008

Solidity v0.8.20+commit.a1b79de6

🤖
透過你的 AI 查詢此合約
參考: 0x0000000000000000000000000000000000008008
範例提示詞: "Tell me the current state of abstract/0x0000000000000000000000000000000000008008"
還沒有接入 AI?→ mcp.smarts.md
Abstract 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
0
寫入函式
4
事件
3

寫入函式

publishPubdataAndClearState(_totalL2ToL1PubdataAndStateDiffs: bytes) nonpayable

Verifies that the {_totalL2ToL1PubdataAndStateDiffs} reflects what occurred within the L1Batch and that the compressed statediffs are equivalent to the full state diffs.

開發者: Performs calculation of L2ToL1Logs merkle tree root, "sends" such root and keccak256(totalL2ToL1Pubdata) to L1 using low-level (VM) L2Log.

參數

名稱 類型 描述
_totalL2ToL1PubdataAndStateDiffs bytes The total pubdata and uncompressed state diffs of transactions that were processed in the current L1 Batch. Pubdata consists of L2 to L1 Logs, messages, deployed bytecode, and state diffs.
requestBytecodeL1Publication(_bytecodeHash: bytes32) nonpayable

Requests publication of the bytecode identified by the given hash on L1.✨ AI

開發者: Can be called only by KnownCodesStorage system contract.

參數

名稱 類型 描述
_bytecodeHash bytes32 Hash of bytecode being published to L1.
sendL2ToL1Log(_isService: bool, _key: bytes32, _value: bytes32) nonpayable

Sends L2ToL1Log.

開發者: Can be called only by a system contract.

參數

名稱 類型 描述
_isService bool The `isService` flag.
_key bytes32 The `key` part of the L2Log.
_value bytes32 The `value` part of the L2Log.

回傳值

名稱 類型 描述
logIdInMerkleTree uint256
sendToL1(_message: bytes) nonpayable

Public functionality to send messages to L1.

參數

名稱 類型 描述
_message bytes The message intended to be sent to L1.

回傳值

名稱 類型 描述
hash bytes32

事件

BytecodeL1PublicationRequested(_bytecodeHash: bytes32)
名稱 類型 已索引 描述
_bytecodeHash bytes32
L1MessageSent(_sender: address, _hash: bytes32, _message: bytes)
名稱 類型 已索引 描述
_sender address
_hash bytes32
_message bytes
L2ToL1LogSent(_l2log: tuple)
名稱 類型 已索引 描述
_l2log tuple