Typeberry by Fluffy Labs - v0.5.6
    Preparing search index...

    Class EcalliTraceLogger

    Ecalli PVM IO Trace Logger.

    Implements the logging format specified for PVM execution tracing. This format is designed to be:

    • Human-readable, newline-delimited text
    • Self-contained for stateless re-execution
    • Comparable using simple textual diff tools
    Index

    Methods

    • Log all host actions from a single ecalli invocation. Actions are logged in the order specified by JIP-6:

      1. Memory reads (sorted by address)
      2. Memory writes (sorted by address)
      3. Register writes (sorted by index)
      4. Gas overwrite

      Parameters

      Returns void

    • Log memory read operation.

      Format: memread {hex-encoded-address} len={blob-byte-length} -> {hex-encoded-data-read}

      Parameters

      • address: number
      • len: number
      • data: string

      Returns void

    • Log memory write operation.

      Format: memwrite {hex-encoded-address} len={blob-byte-length} <- {hex-encoded-bytes}

      Parameters

      • address: number
      • len: number
      • data: string

      Returns void

    • Log the program blob being executed and the write data (if any)

      Format: program {hex-encoded-program-with-metadata} Format: memwrite {hex-encoded-address} len={blob-byte-length} <- {hex-encoded-bytes}

      Parameters

      • program: Uint8Array
      • args: Uint8Array

      Returns void