1 | package org.cardanofoundation.explorer.api.mapper; | |
2 | ||
3 | import javax.annotation.processing.Generated; | |
4 | import org.cardanofoundation.explorer.api.model.response.script.projection.SmartContractTxProjection; | |
5 | import org.cardanofoundation.explorer.api.model.response.script.smartcontract.SmartContractFilterResponse; | |
6 | import org.cardanofoundation.explorer.api.model.response.script.smartcontract.SmartContractTxResponse; | |
7 | import org.cardanofoundation.explorer.common.entity.explorer.SmartContractInfo; | |
8 | import org.springframework.stereotype.Component; | |
9 | ||
10 | @Generated( | |
11 | value = "org.mapstruct.ap.MappingProcessor", | |
12 | date = "2024-11-05T06:00:27+0000", | |
13 | comments = "version: 1.5.3.Final, compiler: javac, environment: Java 18.0.2.1 (Eclipse Adoptium)" | |
14 | ) | |
15 | @Component | |
16 | public class ScriptMapperImpl implements ScriptMapper { | |
17 | ||
18 | @Override | |
19 | public SmartContractTxResponse fromSmartContractTxProjection(SmartContractTxProjection smartContractTxProjection) { | |
20 |
1
1. fromSmartContractTxProjection : negated conditional → KILLED |
if ( smartContractTxProjection == null ) { |
21 | return null; | |
22 | } | |
23 | ||
24 | SmartContractTxResponse.SmartContractTxResponseBuilder smartContractTxResponse = SmartContractTxResponse.builder(); | |
25 | ||
26 | smartContractTxResponse.txId( smartContractTxProjection.getTxId() ); | |
27 | smartContractTxResponse.hash( smartContractTxProjection.getHash() ); | |
28 | smartContractTxResponse.time( smartContractTxProjection.getTime() ); | |
29 | smartContractTxResponse.blockNo( smartContractTxProjection.getBlockNo() ); | |
30 | smartContractTxResponse.epochNo( smartContractTxProjection.getEpochNo() ); | |
31 | smartContractTxResponse.epochSlotNo( smartContractTxProjection.getEpochSlotNo() ); | |
32 | smartContractTxResponse.absoluteSlot( smartContractTxProjection.getAbsoluteSlot() ); | |
33 | ||
34 |
1
1. fromSmartContractTxProjection : replaced return value with null for org/cardanofoundation/explorer/api/mapper/ScriptMapperImpl::fromSmartContractTxProjection → KILLED |
return smartContractTxResponse.build(); |
35 | } | |
36 | ||
37 | @Override | |
38 | public SmartContractFilterResponse fromSCInfoToSCFilterResponse(SmartContractInfo smartContractInfo) { | |
39 |
1
1. fromSCInfoToSCFilterResponse : negated conditional → KILLED |
if ( smartContractInfo == null ) { |
40 | return null; | |
41 | } | |
42 | ||
43 | SmartContractFilterResponse.SmartContractFilterResponseBuilder smartContractFilterResponse = SmartContractFilterResponse.builder(); | |
44 | ||
45 | smartContractFilterResponse.scriptVersion( smartContractInfo.getType() ); | |
46 | smartContractFilterResponse.scriptHash( smartContractInfo.getScriptHash() ); | |
47 | smartContractFilterResponse.txCount( smartContractInfo.getTxCount() ); | |
48 | ||
49 | smartContractFilterResponse.txPurposes( getScriptTxPurpose(smartContractInfo) ); | |
50 | ||
51 |
1
1. fromSCInfoToSCFilterResponse : replaced return value with null for org/cardanofoundation/explorer/api/mapper/ScriptMapperImpl::fromSCInfoToSCFilterResponse → KILLED |
return smartContractFilterResponse.build(); |
52 | } | |
53 | } | |
Mutations | ||
20 |
1.1 |
|
34 |
1.1 |
|
39 |
1.1 |
|
51 |
1.1 |