Search in sources :

Example 1 with VrfKeyLinkTransaction

use of io.nem.symbol.sdk.model.transaction.VrfKeyLinkTransaction in project nem2-sdk-java by nemtech.

the class VrfKeyLinkTransactionIntegrationTest method basicAnnounce.

@ParameterizedTest
@EnumSource(RepositoryType.class)
public void basicAnnounce(RepositoryType type) {
    Account account = config().getNemesisAccount2();
    PublicKey linkedPublicKey = PublicKey.fromHexString("F5D0AAD909CFBC810A3F888C33C57A9051AE1A59D1CDA872A8B90BCA7EF2D34A");
    VrfKeyLinkTransaction linkTransaction = VrfKeyLinkTransactionFactory.create(getNetworkType(), getDeadline(), linkedPublicKey, LinkAction.LINK).maxFee(maxFee).build();
    announceAndValidate(type, account, linkTransaction);
    VrfKeyLinkTransaction unlinkTransaction = VrfKeyLinkTransactionFactory.create(getNetworkType(), getDeadline(), linkedPublicKey, LinkAction.UNLINK).maxFee(maxFee).build();
    announceAndValidate(type, account, unlinkTransaction);
}
Also used : Account(io.nem.symbol.sdk.model.account.Account) VrfKeyLinkTransaction(io.nem.symbol.sdk.model.transaction.VrfKeyLinkTransaction) PublicKey(io.nem.symbol.core.crypto.PublicKey) EnumSource(org.junit.jupiter.params.provider.EnumSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

PublicKey (io.nem.symbol.core.crypto.PublicKey)1 Account (io.nem.symbol.sdk.model.account.Account)1 VrfKeyLinkTransaction (io.nem.symbol.sdk.model.transaction.VrfKeyLinkTransaction)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 EnumSource (org.junit.jupiter.params.provider.EnumSource)1