You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when it is a MsgExec with multiple messages inside, the MsgExec only has one single event log and it will "collapse" all the underlying messages' events. i.e. key-value pairs of different messages with the same type are "squashed" into a single type entry. This will break the design of some message parser in which they assume the events should only be related to the message they are parsing.
Based on the msg emit order, we can split the single message by msgType. However, it assumes that the msg will always emit the same list of events which is not true and we cannot map the event such as transfer event to the msgType.
Example:
We have three inner message on msgExec:
MsgWithdrawDelegatorReward
MsgDelegate
MsgWithdrawDelegatorReward
If we have one or more transfer event, we do not know which msgType it belongs to. Noted that MsgDelegate can emit zero or more than one transfer event
Background
For a simple transaction with multiple messages, the event log is an array in which each element corresponds to each message's produced events. e.g. https://mainnet.crypto.org:1317/cosmos/tx/v1beta1/txs/A895EE1E05935C87FBF301BB8277E091087B88C6AFF70772D5078496ADE1D8F4
However, when it is a MsgExec with multiple messages inside, the MsgExec only has one single event log and it will "collapse" all the underlying messages' events. i.e. key-value pairs of different messages with the same
type
are "squashed" into a singletype
entry. This will break the design of some message parser in which they assume the events should only be related to the message they are parsing.https://mainnet.crypto.org:1317/cosmos/tx/v1beta1/txs/99A8D602F8025DA75310DC274A807F03C22E6CB4A12DA5270FE8B99B95A3AC30
Task Details
Stage 1
MsgExec
parser as a temp measureStage 2
MsgExec
parser only if the messages inside consists of "simple message"Stage 3
The text was updated successfully, but these errors were encountered: