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

Class Class, % Method, % Line, %
TransactionTrace 0% (0/1) 0% (0/11) 0% (0/21)


1 /* 2  * This file is part of RskJ 3  * Copyright (C) 2018 RSK Labs Ltd. 4  * 5  * This program is free software: you can redistribute it and/or modify 6  * it under the terms of the GNU Lesser General Public License as published by 7  * the Free Software Foundation, either version 3 of the License, or 8  * (at your option) any later version. 9  * 10  * This program is distributed in the hope that it will be useful, 11  * but WITHOUT ANY WARRANTY; without even the implied warranty of 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13  * GNU Lesser General Public License for more details. 14  * 15  * You should have received a copy of the GNU Lesser General Public License 16  * along with this program. If not, see <http://www.gnu.org/licenses/>. 17  */ 18  19 package co.rsk.rpc.modules.trace; 20  21 import com.fasterxml.jackson.annotation.JsonGetter; 22 import com.fasterxml.jackson.annotation.JsonInclude; 23  24 @JsonInclude(JsonInclude.Include.NON_NULL) 25 public class TransactionTrace { 26  private final TraceAction action; 27  private final String blockHash; 28  private final long blockNumber; 29  private final String transactionHash; 30  private final int transactionPosition; 31  private final String type; 32  private final int subtraces; 33  private final TraceAddress traceAddress; 34  private final TraceResult result; 35  private final String error; 36  37  public TransactionTrace( 38  TraceAction action, 39  String blockHash, 40  long blockNumber, 41  String transactionHash, 42  int transactionPosition, 43  String type, 44  int subtraces, 45  TraceAddress traceAddress, 46  TraceResult result, 47  String error 48  ) { 49  this.action = action; 50  this.blockHash = blockHash; 51  this.blockNumber = blockNumber; 52  this.transactionHash = transactionHash; 53  this.transactionPosition = transactionPosition; 54  this.type = type; 55  this.subtraces = subtraces; 56  this.traceAddress = traceAddress; 57  this.result = result; 58  this.error = error; 59  } 60  61  @JsonGetter("action") 62  public TraceAction getAction() { 63  return this.action; 64  } 65  66  @JsonGetter("blockHash") 67  public String getBlockHash() { 68  return this.blockHash; 69  } 70  71  @JsonGetter("blockNumber") 72  public long getBlockNumber() { 73  return this.blockNumber; 74  } 75  76  @JsonGetter("transactionHash") 77  public String getTransactionHash() { 78  return this.transactionHash; 79  } 80  81  @JsonGetter("result") 82  @JsonInclude(JsonInclude.Include.ALWAYS) 83  public TraceResult getResult() { return this.result; } 84  85  @JsonGetter("transactionPosition") 86  public int getTransactionPosition() { 87  return this.transactionPosition; 88  } 89  90  @JsonGetter("subtraces") 91  public int getSubtraces() { return this.subtraces; } 92  93  @JsonGetter("traceAddress") 94  public TraceAddress getTraceAddress() { return this.traceAddress; } 95  96  @JsonGetter("type") 97  public String getType() { 98  return this.type; 99  } 100  101  @JsonGetter("error") 102  public String getError() { return this.error; } 103 }