To get an f0<->f2 mapping for all newly created smart contracts:
- Walk the execution trace.
- Ignore sub-trees of the execution trace where the exit code (
.MsgRct.ExitCode) is non-zero (i.e., the sub-call reverted). - If the sub-trace's
.Msg.Toisf01(init actor), the exit code is zero (success), and the method number is 2 (Exec) or 3 (Exec4): decode.MsgRct.ReturnasExecReturn(specifically, as a cbor-encoded list of two byte-strings where the first byte-string is thef0address of the newly created actor and the second byte-string is thef2address of the newly created actor.