Module convex.core
Package convex.core

Class ResultContext

java.lang.Object
convex.core.ResultContext

public class ResultContext extends Object
Class for preparation of transaction results from the CVM Mutable so that results can be accumulated efficiently while processing proceeds. Not intended for external usage.
  • Field Details

    • tx

      public ATransaction tx
    • juicePrice

      public long juicePrice
    • memUsed

      public long memUsed
    • context

      public Context context
    • totalFees

      public long totalFees
    • juiceUsed

      public long juiceUsed
    • source

      public Keyword source
  • Constructor Details

    • ResultContext

      public ResultContext(ATransaction transaction, long juicePrice)
  • Method Details

    • withContext

      public ResultContext withContext(Context ctx)
    • error

      public static ResultContext error(State state, Keyword error, String message)
    • error

      public static ResultContext error(State state, Keyword error, AString message)
    • getResult

      public ACell getResult()
    • fromContext

      public static ResultContext fromContext(Context ctx)
    • getErrorCode

      public ACell getErrorCode()
    • getJuiceFees

      public long getJuiceFees()
      Get overall Juice fees, including the cost of the transaction
      Returns:
      Total juice fees
    • getExecutionFees

      public long getExecutionFees()
      Get fees for execution juice only , excluding the cost of the transaction
      Returns:
      CVM Execution fees
    • getState

      public State getState()
    • getMemoryFees

      public long getMemoryFees()
    • isError

      public boolean isError()
    • withSource

      public ResultContext withSource(Keyword sourceCode)
    • getSource

      public Keyword getSource()