Add txId to BondedReputationDto

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2024-06-30 17:37:38 +07:00
parent 444aa0dd96
commit b6a308f646
No known key found for this signature in database
GPG key ID: 02AA2BAE387C8307
2 changed files with 7 additions and 4 deletions

View file

@ -35,16 +35,18 @@ import io.swagger.v3.oas.annotations.media.Schema;
@Schema(title = "BondedReputation") @Schema(title = "BondedReputation")
public class BondedReputationDto { public class BondedReputationDto {
private final long amount; private final long amount;
private final long time; private final long blockTime;
private final String hash; private final String hash;
private final int blockHeight; private final int blockHeight;
private final int lockTime; private final int lockTime;
private final String txId;
public BondedReputationDto(long amount, long time, String hash, int blockHeight, int lockTime) { public BondedReputationDto(long amount, long blockTime, String hash, int blockHeight, int lockTime, String txId) {
this.amount = amount; this.amount = amount;
this.time = time; this.blockTime = blockTime;
this.hash = hash; this.hash = hash;
this.blockHeight = blockHeight; this.blockHeight = blockHeight;
this.lockTime = lockTime; this.lockTime = lockTime;
this.txId = txId;
} }
} }

View file

@ -96,7 +96,8 @@ public class BondedReputationApi {
tx.getTime(), tx.getTime(),
Hex.encode(bondedReputation.getBondedAsset().getHash()), Hex.encode(bondedReputation.getBondedAsset().getHash()),
blockHeight, blockHeight,
bondedReputation.getLockTime() bondedReputation.getLockTime(),
tx.getId()
); );
} else { } else {
return null; return null;