Skip to main content

L2MessageManagerV1

INBOX_STATUS_UNKNOWN

uint8 INBOX_STATUS_UNKNOWN

The 3 status constants for L1 to L2 message statuses.

INBOX_STATUS_RECEIVED

uint8 INBOX_STATUS_RECEIVED

INBOX_STATUS_CLAIMED

uint8 INBOX_STATUS_CLAIMED

inboxL1L2MessageStatus

mapping(bytes32 => uint256) inboxL1L2MessageStatus

Mapping to store L1->L2 message hashes status. messageHash => messageStatus (0: unknown, 1: received, 2: claimed).

_updateL1L2MessageStatusToClaimed

function _updateL1L2MessageStatusToClaimed(bytes32 _messageHash) internal

Update the status of L1->L2 message when a user claims a message on L2.

Parameters

NameTypeDescription
_messageHashbytes32Hash of the message.