L1Messenger
Abstract0x0000000000000000000000000000000000008008
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 |