sui_adapter_latest::programmable_transactions

Module trace_utils

Source
Expand description

This module implements support for tracing related to PTB execution. IMPORTANT: Bodies of all public functions in this module should be enclosed in a large if statement checking if tracing is enabled or not to make sure that any errors coming from these functions only manifest itself when tracing is enabled.

Functionsยง

  • Adds coin object info to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Adds ExtMoveValueInfo to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Adds ExtMoveValueInfo to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts execution error event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts make move vec event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts merge coins event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts Move call end event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts Move call start event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts PTB summary event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts publish event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts split coins event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts transfer event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.
  • Inserts upgrade event into the trace. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.