Coverage Summary for Class: TraceResult (co.rsk.rpc.modules.trace)

Class Class, % Method, % Line, %
TraceResult 0% (0/1) 0% (0/5) 0% (0/9)


1 /* 2  * This file is part of RskJ 3  * Copyright (C) 2017 RSK Labs Ltd. 4  * (derived from ethereumJ library, Copyright (c) 2016 <ether.camp>) 5  * 6  * This program is free software: you can redistribute it and/or modify 7  * it under the terms of the GNU Lesser General Public License as published by 8  * the Free Software Foundation, either version 3 of the License, or 9  * (at your option) any later version. 10  * 11  * This program is distributed in the hope that it will be useful, 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14  * GNU Lesser General Public License for more details. 15  * 16  * You should have received a copy of the GNU Lesser General Public License 17  * along with this program. If not, see <http://www.gnu.org/licenses/>. 18  */ 19  20 package co.rsk.rpc.modules.trace; 21  22 import com.fasterxml.jackson.annotation.JsonGetter; 23 import com.fasterxml.jackson.annotation.JsonInclude; 24  25 @JsonInclude(JsonInclude.Include.NON_NULL) 26 public class TraceResult { 27  28  private final String gasUsed; 29  private final String output; 30  private final String code; 31  private final String address; 32  33  public TraceResult(String gasUsed, String output, String code, String address) { 34  this.gasUsed = gasUsed; 35  this.output = output; 36  this.code = code; 37  this.address = address; 38  } 39  40  @JsonGetter("gasUsed") 41  public String getGasUsed() { 42  return this.gasUsed; 43  } 44  45  @JsonGetter("output") 46  public String getOutput() { 47  return this.output; 48  } 49  50  @JsonGetter("code") 51  public String getCode() { 52  return this.code; 53  } 54  55  @JsonGetter("address") 56  public String getAddress() { 57  return this.address; 58  } 59 } 60