Package convex.core
Class ResultContext
java.lang.Object
convex.core.ResultContext
Class for preparation of transaction results
Mutable so that results can be accumulated efficiently as processing proceeds
-
Field Summary
FieldsModifier and TypeFieldDescriptionlonglonglonglong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultContextstatic ResultContextstatic ResultContextfromContext(Context ctx) longGet fees for execution juice only , excluding the cost of the transactionlongGet overall Juice fees, including the cost of the transactionlonggetState()booleanisError()withContext(Context ctx)
-
Field Details
-
tx
-
juicePrice
public long juicePrice -
memUsed
public long memUsed -
context
-
totalFees
public long totalFees -
juiceUsed
public long juiceUsed
-
-
Constructor Details
-
ResultContext
-
-
Method Details
-
withContext
-
error
-
error
-
getResult
-
fromContext
-
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
-
getMemoryFees
public long getMemoryFees() -
isError
public boolean isError()
-