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 TypeFieldDescriptionlong
long
long
long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultContext
static ResultContext
static ResultContext
fromContext
(Context ctx) long
Get fees for execution juice only , excluding the cost of the transactionlong
Get overall Juice fees, including the cost of the transactionlong
getState()
boolean
isError()
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()
-