Search in sources :

Example 1 with 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);
}
Also used : PublicKey(io.nem.symbol.core.crypto.PublicKey) LinkAction(io.nem.symbol.sdk.model.transaction.LinkAction)

Example 2 with 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);
}
Also used : PublicKey(io.nem.symbol.core.crypto.PublicKey) LinkAction(io.nem.symbol.sdk.model.transaction.LinkAction)

Example 3 with 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);
}
Also used : PublicKey(io.nem.symbol.core.crypto.PublicKey) LinkAction(io.nem.symbol.sdk.model.transaction.LinkAction)

Example 4 with 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);
}
Also used : PublicKey(io.nem.symbol.core.crypto.PublicKey) LinkAction(io.nem.symbol.sdk.model.transaction.LinkAction)

Example 5 with 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);
}
Also used : PublicKey(io.nem.symbol.core.crypto.PublicKey) LinkAction(io.nem.symbol.sdk.model.transaction.LinkAction)

Aggregations

PublicKey (io.nem.symbol.core.crypto.PublicKey)6 LinkAction (io.nem.symbol.sdk.model.transaction.LinkAction)6