Class SimulationOpcodeTraceUnit

The set of trace information and effect from evaluating a single opcode.

Hierarchy

Constructors

Properties

attribute_map: Record<string, string>
pc: number | bigint

The program counter of the current opcode being evaluated.

scratchChanges?: ScratchChange[]

The writes into scratch slots.

spawnedInners?: (number | bigint)[]

The indexes of the traces for inner transactions spawned by this opcode, if any.

stackAdditions?: AvmValue[]

The values added by this opcode to the stack.

stackPopCount?: number | bigint

The number of deleted stack values by this opcode.

stateChanges?: ApplicationStateOperation[]

The operations against the current application's states.

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc