use of io.nem.symbol.sdk.model.transaction.LinkAction in project nem2-sdk-java by nemtech.
the class VrfKeyLinkTransactionMapper method createFactory.
@Override
protected TransactionFactory<VrfKeyLinkTransaction> createFactory(NetworkType networkType, Deadline deadline, VrfKeyLinkTransactionDTO transaction) {
PublicKey linkedPublicKey = PublicKey.fromHexString(transaction.getLinkedPublicKey());
LinkAction linkAction = LinkAction.rawValueOf(transaction.getLinkAction().getValue());
return VrfKeyLinkTransactionFactory.create(networkType, deadline, linkedPublicKey, linkAction);
}
use of io.nem.symbol.sdk.model.transaction.LinkAction in project nem2-sdk-java by nemtech.
the class VrfKeyLinkTransactionMapper method createFactory.
@Override
protected TransactionFactory<VrfKeyLinkTransaction> createFactory(NetworkType networkType, Deadline deadline, VrfKeyLinkTransactionDTO transaction) {
PublicKey linkedPublicKey = PublicKey.fromHexString(transaction.getLinkedPublicKey());
LinkAction linkAction = LinkAction.rawValueOf(transaction.getLinkAction().getValue());
return VrfKeyLinkTransactionFactory.create(networkType, deadline, linkedPublicKey, linkAction);
}
use of io.nem.symbol.sdk.model.transaction.LinkAction in project nem2-sdk-java by nemtech.
the class NodeKeyLinkTransactionMapper method createFactory.
@Override
protected TransactionFactory<NodeKeyLinkTransaction> createFactory(NetworkType networkType, Deadline deadline, NodeKeyLinkTransactionDTO transaction) {
PublicKey linkedPublicKey = PublicKey.fromHexString(transaction.getLinkedPublicKey());
LinkAction linkAction = LinkAction.rawValueOf(transaction.getLinkAction().getValue());
return NodeKeyLinkTransactionFactory.create(networkType, deadline, linkedPublicKey, linkAction);
}
use of io.nem.symbol.sdk.model.transaction.LinkAction in project nem2-sdk-java by nemtech.
the class VotingKeyLinkTransactionMapper method createFactory.
@Override
protected TransactionFactory<VotingKeyLinkTransaction> createFactory(NetworkType networkType, Deadline deadline, VotingKeyLinkTransactionDTO transaction) {
PublicKey linkedPublicKey = PublicKey.fromHexString(transaction.getLinkedPublicKey());
LinkAction linkAction = LinkAction.rawValueOf(transaction.getLinkAction().getValue());
return VotingKeyLinkTransactionFactory.create(networkType, deadline, linkedPublicKey, transaction.getStartEpoch(), transaction.getEndEpoch(), linkAction);
}
use of io.nem.symbol.sdk.model.transaction.LinkAction in project nem2-sdk-java by nemtech.
the class NodeKeyLinkTransactionMapper method createFactory.
@Override
protected TransactionFactory<NodeKeyLinkTransaction> createFactory(NetworkType networkType, Deadline deadline, NodeKeyLinkTransactionDTO transaction) {
PublicKey linkedPublicKey = PublicKey.fromHexString(transaction.getLinkedPublicKey());
LinkAction linkAction = LinkAction.rawValueOf(transaction.getLinkAction().getValue());
return NodeKeyLinkTransactionFactory.create(networkType, deadline, linkedPublicKey, linkAction);
}
Aggregations