View Source Signet.VM.Context (Signet v1.3.8)

Summary

Types

@type op_map() :: %{required(integer()) => Signet.VM.opcode()}
@type t() :: %Signet.VM.Context{
  code: Signet.VM.code(),
  code_encoded: binary(),
  ffis: Signet.VM.ffis(),
  halted: binary(),
  memory: binary(),
  op_map: op_map(),
  pc: integer(),
  return_data: binary(),
  reverted: boolean(),
  stack: [binary()],
  tstorage: %{required(binary()) => binary()}
}

Functions

Link to this function

fetch_ffi(context, address)

View Source
@spec fetch_ffi(t(), Signet.VM.address()) ::
  {:ok, Signet.VM.code()} | {:error, Signet.VM.vm_error()}
@spec init_from(Signet.VM.code(), Signet.VM.ffis()) :: t()