1 | package org.cardanofoundation.explorer.api.model.response.pool; | |
2 | ||
3 | import java.io.Serializable; | |
4 | import java.math.BigInteger; | |
5 | ||
6 | import lombok.*; | |
7 | ||
8 | import com.fasterxml.jackson.databind.annotation.JsonSerialize; | |
9 | ||
10 | import org.cardanofoundation.explorer.api.json.serialize.PercentSerializer; | |
11 | import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolActiveStakeProjection; | |
12 | import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolHistoryKoiosProjection; | |
13 | ||
14 | @Getter | |
15 | @Setter | |
16 |
9
1. stakeAmount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::stakeAmount → NO_COVERAGE 2. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::toString → NO_COVERAGE 3. fee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::fee → NO_COVERAGE 4. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::builder → KILLED 5. block : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::block → KILLED 6. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::build → KILLED 7. ros : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::ros → KILLED 8. delegators : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::delegators → KILLED 9. epoch : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::epoch → KILLED |
@Builder |
17 | @AllArgsConstructor | |
18 | @NoArgsConstructor | |
19 | public class PoolDetailEpochResponse implements Serializable { | |
20 | ||
21 |
1
1. getEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getEpoch → SURVIVED |
private Integer epoch; |
22 | ||
23 |
1
1. getBlock : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getBlock → SURVIVED |
private Long block; |
24 | ||
25 |
1
1. getStakeAmount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getStakeAmount → SURVIVED |
private BigInteger stakeAmount; |
26 | ||
27 |
1
1. getDelegators : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getDelegators → SURVIVED |
private BigInteger delegators; |
28 | ||
29 |
1
1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getFee → SURVIVED |
private BigInteger fee; |
30 | ||
31 | @JsonSerialize(using = PercentSerializer.class) | |
32 |
1
1. getRos : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getRos → SURVIVED |
private Double ros; |
33 | ||
34 | public PoolDetailEpochResponse(PoolActiveStakeProjection projection) { | |
35 | this.epoch = projection.getEpochNo(); | |
36 | this.stakeAmount = projection.getTotalStake(); | |
37 | } | |
38 | ||
39 | public PoolDetailEpochResponse(PoolHistoryKoiosProjection projection) { | |
40 | this.epoch = projection.getEpochNo(); | |
41 | this.delegators = projection.getDelegateReward(); | |
42 | this.fee = projection.getPoolFees(); | |
43 | this.ros = projection.getRos(); | |
44 | this.stakeAmount = projection.getActiveStake(); | |
45 | } | |
46 | } | |
Mutations | ||
16 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 |
|
21 |
1.1 |
|
23 |
1.1 |
|
25 |
1.1 |
|
27 |
1.1 |
|
29 |
1.1 |
|
32 |
1.1 |