Messages TL-B schemes
In this section detailed explanation of TL-B schemes for messages.
Message TL-B
TL-B
Main message TL-B scheme declared as a combination of several nested structures
message$_ {X:Type} info:CommonMsgInfo
init:(Maybe (Either StateInit ^StateInit))
body:(Either X ^X) = Message X;
message$_ {X:Type} info:CommonMsgInfoRelaxed
init:(Maybe (Either StateInit ^StateInit))
body:(Either X ^X) = MessageRelaxed X;
_ (Message Any) = MessageAny;
Here Message X
- is common message structure, MessageRelaxed X
additional type with CommonMsgInfoRelaxed body and Message Any
is a union of both.
Message structure unified with X:Type, that in other words is a Cell.
According to TL-B we can combine all data in one cell(if it will be fit to 1023 bits) or use references declared with caret ^
.
Serialized Message X
placed to action list with FunC method send_raw_message(), than smart contract execute this action and message send.