Class Success
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.executionresult.Success
-
- All Implemented Interfaces:
ExecutionResult
public class Success extends java.lang.Object implements ExecutionResult
Abstract Executable Result of type Success containing the details of the contract execution. It shows the result of a successs execution- Since:
- 0.0.1
- See Also:
ExecutionResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Success.SuccessBuilder
-
Constructor Summary
Constructors Constructor Description Success()
Success(java.math.BigInteger cost, ExecutionEffect effect, java.util.List<java.lang.String> transfers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Success.SuccessBuilder
builder()
java.math.BigInteger
getCost()
The cost of executing the deploy.ExecutionEffect
getEffect()
protected java.lang.String
getJsonCost()
getter for cost json serializationjava.util.List<java.lang.String>
getTransfers()
List of Hex-encoded transfer address.void
setCost(java.math.BigInteger cost)
The cost of executing the deploy.void
setEffect(ExecutionEffect effect)
protected void
setJsonCost(java.lang.String value)
setter for cost from json deserialized valuevoid
setTransfers(java.util.List<java.lang.String> transfers)
List of Hex-encoded transfer address.
-
-
-
Constructor Detail
-
Success
public Success(java.math.BigInteger cost, ExecutionEffect effect, java.util.List<java.lang.String> transfers)
-
Success
public Success()
-
-
Method Detail
-
getJsonCost
@ExcludeFromJacocoGeneratedReport protected java.lang.String getJsonCost()
getter for cost json serialization- Returns:
- cost as expected for json serialization
-
setJsonCost
@ExcludeFromJacocoGeneratedReport protected void setJsonCost(java.lang.String value)
setter for cost from json deserialized value- Parameters:
value
- the deserialized value
-
builder
public static Success.SuccessBuilder builder()
-
getCost
public java.math.BigInteger getCost()
The cost of executing the deploy.
-
getEffect
public ExecutionEffect getEffect()
- See Also:
ExecutionEffect
-
getTransfers
public java.util.List<java.lang.String> getTransfers()
List of Hex-encoded transfer address.
-
setCost
public void setCost(java.math.BigInteger cost)
The cost of executing the deploy.
-
setEffect
public void setEffect(ExecutionEffect effect)
- See Also:
ExecutionEffect
-
setTransfers
public void setTransfers(java.util.List<java.lang.String> transfers)
List of Hex-encoded transfer address.
-
-