Coverage Summary for Class: GenesisJson (org.ethereum.core.genesis)

Class Class, % Method, % Line, %
GenesisJson 100% (1/1) 57.7% (15/26) 69.4% (25/36)


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 org.ethereum.core.genesis; 21  22  23 import java.util.Map; 24  25 public class GenesisJson { 26  27  String mixhash; 28  String coinbase; 29  String timestamp; 30  String parentHash; 31  String extraData; 32  String gasLimit; 33  String nonce; 34  String difficulty; 35  String bitcoinMergedMiningHeader; 36  String bitcoinMergedMiningMerkleProof; 37  String bitcoinMergedMiningCoinbaseTransaction; 38  String minimumGasPrice; 39  40  Map<String, AllocatedAccount> alloc; 41  42  public GenesisJson() { 43  } 44  45  46  public String getMixhash() { 47  return mixhash; 48  } 49  50  public void setMixhash(String mixhash) { 51  this.mixhash = mixhash; 52  } 53  54  public String getCoinbase() { 55  return coinbase; 56  } 57  58  public void setCoinbase(String coinbase) { 59  this.coinbase = coinbase; 60  } 61  62  public String getTimestamp() { 63  return timestamp; 64  } 65  66  public void setTimestamp(String timestamp) { 67  this.timestamp = timestamp; 68  } 69  70  public String getParentHash() { 71  return parentHash; 72  } 73  74  public void setParentHash(String parentHash) { 75  this.parentHash = parentHash; 76  } 77  78  public String getExtraData() { 79  return extraData; 80  } 81  82  public void setExtraData(String extraData) { 83  this.extraData = extraData; 84  } 85  86  public String getGasLimit() { 87  return gasLimit; 88  } 89  90  public void setGasLimit(String gasLimit) { 91  this.gasLimit = gasLimit; 92  } 93  94  public String getNonce() { 95  return nonce; 96  } 97  98  public void setNonce(String nonce) { 99  this.nonce = nonce; 100  } 101  102  public String getDifficulty() { 103  return difficulty; 104  } 105  106  public void setDifficulty(String difficulty) { 107  this.difficulty = difficulty; 108  } 109  110  public Map<String, AllocatedAccount> getAlloc() { 111  return alloc; 112  } 113  114  public void setAlloc(Map<String, AllocatedAccount> alloc) { 115  this.alloc = alloc; 116  } 117  118  public String getBitcoinMergedMiningHeader() {return bitcoinMergedMiningHeader;} 119  120  public void setBitcoinMergedMiningHeader(String bitcoinMergedMiningHeader) {this.bitcoinMergedMiningHeader = bitcoinMergedMiningHeader;} 121  122  public String getBitcoinMergedMiningMerkleProof() {return bitcoinMergedMiningMerkleProof;} 123  124  public void setBitcoinMergedMiningMerkleProof(String bitcoinMergedMiningMerkleProof) {this.bitcoinMergedMiningMerkleProof = bitcoinMergedMiningMerkleProof;} 125  126  public String getBitcoinMergedMiningCoinbaseTransaction() {return bitcoinMergedMiningCoinbaseTransaction;} 127  128  public void setBitcoinMergedMiningCoinbaseTransaction(String bitcoinMergedMiningCoinbaseTransaction) {this.bitcoinMergedMiningCoinbaseTransaction = bitcoinMergedMiningCoinbaseTransaction;} 129  130  public String getMinimumGasPrice() { 131  return minimumGasPrice; 132  } 133  134 }