L1Messenger

Abstract

0x0000000000000000000000000000000000008008

Solidity v0.8.20+commit.a1b79de6

🤖
Query this contract from your AI
Reference: 0x0000000000000000000000000000000000008008
Sample prompt: "Tell me the current state of abstract/0x0000000000000000000000000000000000008008"
No AI wired up yet? → mcp.smarts.md
Abstract is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
0
Write Functions
4
Events
3

Write Functions

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.

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

Parameters

Name Type Description
_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
dev: Can be called only by KnownCodesStorage system contract.

Parameters

Name Type Description
_bytecodeHash bytes32 Hash of bytecode being published to L1.
sendL2ToL1Log(_isService: bool, _key: bytes32, _value: bytes32) nonpayable

Sends L2ToL1Log.

dev: Can be called only by a system contract.

Parameters

Name Type Description
_isService bool The `isService` flag.
_key bytes32 The `key` part of the L2Log.
_value bytes32 The `value` part of the L2Log.

Returns

Name Type Description
logIdInMerkleTree uint256
sendToL1(_message: bytes) nonpayable

Public functionality to send messages to L1.

Parameters

Name Type Description
_message bytes The message intended to be sent to L1.

Returns

Name Type Description
hash bytes32

Events

BytecodeL1PublicationRequested(_bytecodeHash: bytes32)
Name Type Indexed Description
_bytecodeHash bytes32
L1MessageSent(_sender: address, _hash: bytes32, _message: bytes)
Name Type Indexed Description
_sender address
_hash bytes32
_message bytes
L2ToL1LogSent(_l2log: tuple)
Name Type Indexed Description
_l2log tuple