Class Success
- java.lang.Object
-
- com.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 successful execution- Since:
- 0.0.1
- See Also:
ExecutionResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSuccess.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.SuccessBuilderbuilder()java.math.BigIntegergetCost()The cost of executing the deploy.ExecutionEffectgetEffect()java.util.List<java.lang.String>getTransfers()List of Hex-encoded transfer address.voidsetCost(java.math.BigInteger cost)The cost of executing the deploy.voidsetEffect(ExecutionEffect effect)voidsetTransfers(java.util.List<java.lang.String> transfers)List of Hex-encoded transfer address.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.deploy.executionresult.ExecutionResult
getJsonCost, setJsonCost
-
-
-
-
Constructor Detail
-
Success
public Success(java.math.BigInteger cost, ExecutionEffect effect, java.util.List<java.lang.String> transfers)
-
Success
public Success()
-
-
Method Detail
-
builder
public static Success.SuccessBuilder builder()
-
getCost
public java.math.BigInteger getCost()
The cost of executing the deploy.- Specified by:
getCostin interfaceExecutionResult
-
getEffect
public ExecutionEffect getEffect()
- Specified by:
getEffectin interfaceExecutionResult- 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.- Specified by:
setCostin interfaceExecutionResult
-
setEffect
public void setEffect(ExecutionEffect effect)
- Specified by:
setEffectin interfaceExecutionResult- See Also:
ExecutionEffect
-
setTransfers
public void setTransfers(java.util.List<java.lang.String> transfers)
List of Hex-encoded transfer address.
-
-