mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
* did poc for autogenerated *.mdx into docs.linea.build * changed sparseMerkleProof * first draft of contracts-docgen * fix typos * try different github token * cleanup * created create-docs-website-pr-branch * cleanup for doc website repo scripts * created first docs-repo pr using create-docs-website-pr-branch.sh * improve comments * added bash script segment to change filename to lowercase * fix *.mdx headers to make more docusarus friendly * update scripts for updated docs pr * added comments to updateSidebar.js * fix scripts after local test * added installation checks * Update contracts/docs/scripts/create-docs-website-pr-branch.sh Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com> Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com> --------- Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com> Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
46 lines
836 B
Plaintext
46 lines
836 B
Plaintext
# `L2MessageManagerV1`
|
|
|
|
### INBOX_STATUS_UNKNOWN
|
|
|
|
```solidity
|
|
uint8 INBOX_STATUS_UNKNOWN
|
|
```
|
|
|
|
The 3 status constants for L1 to L2 message statuses.
|
|
|
|
### INBOX_STATUS_RECEIVED
|
|
|
|
```solidity
|
|
uint8 INBOX_STATUS_RECEIVED
|
|
```
|
|
|
|
### INBOX_STATUS_CLAIMED
|
|
|
|
```solidity
|
|
uint8 INBOX_STATUS_CLAIMED
|
|
```
|
|
|
|
### inboxL1L2MessageStatus
|
|
|
|
```solidity
|
|
mapping(bytes32 => uint256) inboxL1L2MessageStatus
|
|
```
|
|
|
|
_Mapping to store L1->L2 message hashes status.
|
|
messageHash => messageStatus (0: unknown, 1: received, 2: claimed)._
|
|
|
|
### _updateL1L2MessageStatusToClaimed
|
|
|
|
```solidity
|
|
function _updateL1L2MessageStatusToClaimed(bytes32 _messageHash) internal
|
|
```
|
|
|
|
Update the status of L1->L2 message when a user claims a message on L2.
|
|
|
|
#### Parameters
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| _messageHash | bytes32 | Hash of the message. |
|
|
|