Type alias StepFn

StepFn: ((state, opcode, evm) => void)

Type declaration

    • (state, opcode, evm): void
    • The step transition function.

      The EVM executes a StepFn transition for each opcode found in the evm.bytecode. It should change the state accordingly to the opcode found.

      Parameters

      • state: State<Inst, Expr>
      • opcode: Opcode
      • evm: {
            bytecode: Uint8Array;
        }
        • bytecode: Uint8Array

      Returns void

Generated using TypeDoc v0.25.2