|  | 
| 4 | 4 | 
 | 
| 5 | 5 | The `StarknetMessaging` smart contracts include functions and events that are required when sending messages between L1 and L2. | 
| 6 | 6 | 
 | 
|  | 7 | +[TIP] | 
|  | 8 | +==== | 
| 7 | 9 | For information on the messaging mechanism, see xref:architecture:messaging.adoc[Messaging mechanism]. | 
| 8 |  | - | 
| 9 |  | -The L1 functions, where available, are defined in the following smart contract: | 
| 10 |  | - | 
| 11 |  | -[cols=",,",] | 
| 12 |  | -|=== | 
| 13 |  | -|Contract |Description |Functions | 
| 14 |  | - | 
| 15 |  | -|https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/solidity/StarknetMessaging.sol[`StarknetMessaging.sol`] | | 
| 16 |  | -The contract that implements messaging functions. | 
| 17 |  | - | 
| 18 |  | -Interfaces are available through https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/solidity/IStarknetMessaging.sol[`IStarknetMessaging.sol`]. a| | 
| 19 |  | -* xref:#cancelL1ToL2Message[`cancelL1ToL2Message`] | 
| 20 |  | -* xref:#consumeMessageFromL2[`consumeMessageFromL2`] | 
| 21 |  | -* xref:#getMaxL1MsgFee[`getMaxL1MsgFee`] | 
| 22 |  | -* xref:#l1ToL2MessageCancellations[`l1ToL2MessageCancellations`] | 
| 23 |  | -* xref:#l1ToL2MessageNonce[`l1ToL2MessageNonce`] | 
| 24 |  | -* xref:#l1ToL2Messages[`l1ToL2Messages`] | 
| 25 |  | -* xref:#l2ToL1Messages[`l2ToL1Messages`] | 
| 26 |  | -* xref:#messageCancellationDelay[`messageCancellationDelay`] | 
| 27 |  | -* xref:#sendMessageToL2[`sendMessageToL2`] | 
| 28 |  | -* xref:#startL1ToL2MessageCancellation[`startL1ToL2MessageCancellation`] | 
| 29 |  | - | 
| 30 |  | -|=== | 
| 31 |  | - | 
| 32 |  | -The L1 events, where available, are defined in the following smart contract: | 
| 33 |  | - | 
| 34 |  | -[cols=",,",] | 
| 35 |  | -|=== | 
| 36 |  | -|Contract |Description |Events | 
| 37 |  | - | 
| 38 |  | -|https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/solidity/IStarknetMessagingEvents.sol[`IStarknetMessagingEvents.sol`] | | 
| 39 |  | -The contract that defines messaging events. a| | 
| 40 |  | -* xref:#ConsumedMessageToL1[`ConsumedMessageToL1`] | 
| 41 |  | -* xref:#ConsumedMessageToL2[`ConsumedMessageToL2`] | 
| 42 |  | -* xref:#LogMessageToL1[`LogMessageToL1`] | 
| 43 |  | -* xref:#LogMessageToL2[`LogMessageToL2`] | 
| 44 |  | -* xref:#MessageToL2Canceled[`MessageToL2Canceled`] | 
| 45 |  | -* xref:#MessageToL2CancellationStarted[`MessageToL2CancellationStarted`] | 
| 46 |  | - | 
| 47 |  | -|=== | 
|  | 10 | +==== | 
| 48 | 11 | 
 | 
| 49 | 12 | == L1 function reference | 
| 50 | 13 | 
 | 
| 51 |  | -Functions are listed in alphabetical order. | 
| 52 |  | - | 
| 53 | 14 | ''' | 
| 54 | 15 | 
 | 
| 55 | 16 | [#cancelL1ToL2Message] | 
| @@ -439,8 +400,6 @@ Contract: link:https://github.com/starkware-libs/cairo-lang/blob/master/src/star | 
| 439 | 400 | 
 | 
| 440 | 401 | == L1 event reference | 
| 441 | 402 | 
 | 
| 442 |  | -Events are listed in alphabetical order. | 
| 443 |  | - | 
| 444 | 403 | // Contract: link:https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/starknet/solidity/IStarknetMessagingEvents.sol[`IStarknetMessagingEvents`] | 
| 445 | 404 | 
 | 
| 446 | 405 | ''' | 
|  | 
0 commit comments