Class 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
    • 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
      • getCost

        public java.math.BigInteger getCost()
        The cost of executing the deploy.
      • 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.
      • setTransfers

        public void setTransfers​(java.util.List<java.lang.String> transfers)
        List of Hex-encoded transfer address.