use of io.nem.symbol.catapult.builders.FinalizationEpochDto in project nem2-sdk-java by nemtech.
the class AccountInfo method toPinnedVotingKeyBuilder.
private PinnedVotingKeyBuilder toPinnedVotingKeyBuilder(AccountLinkVotingKey accountLinkVotingKey) {
VotingKeyDto votingKey = SerializationUtils.toVotingKeyDto(accountLinkVotingKey.getPublicKey());
FinalizationEpochDto startEpoch = new FinalizationEpochDto((int) accountLinkVotingKey.getStartEpoch());
FinalizationEpochDto endEpoch = new FinalizationEpochDto((int) accountLinkVotingKey.getEndEpoch());
return PinnedVotingKeyBuilder.create(votingKey, startEpoch, endEpoch);
}
Aggregations