use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateAccountKeyLinkTransaction.
@Test
void shouldCreateAggregateAccountKeyLinkTransaction() {
TransactionInfoDTO aggregateTransferTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateAccountKeyLinkTransaction.json");
Transaction aggregateTransferTransaction = map(aggregateTransferTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateTransferTransaction, aggregateTransferTransactionDTO);
AccountKeyLinkTransaction transaction = (AccountKeyLinkTransaction) ((AggregateTransaction) aggregateTransferTransaction).getInnerTransactions().get(0);
Assertions.assertEquals(LinkAction.LINK, transaction.getLinkAction());
Assertions.assertEquals("SARNASAS2BIAB6LMFA3FPMGBPGIJGK6IJETM3ZQ", PublicAccount.createFromPublicKey(transaction.getLinkedPublicKey().toHex(), transaction.getNetworkType()).getAddress().plain());
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateStandaloneRootNamespaceCreationTransaction.
@Test
void shouldCreateStandaloneRootNamespaceCreationTransaction() {
TransactionInfoDTO namespaceCreationTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("standaloneRootNamespaceCreationTransaction.json");
Transaction namespaceCreationTransaction = map(namespaceCreationTransactionDTO);
validateStandaloneTransaction(namespaceCreationTransaction, namespaceCreationTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateStandaloneMultisigModificationTransaction.
@Test
void shouldCreateStandaloneMultisigModificationTransaction() {
TransactionInfoDTO multisigModificationTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("standaloneMultisigModificationTransaction.json");
Transaction multisigModificationTransaction = map(multisigModificationTransactionDTO);
validateStandaloneTransaction(multisigModificationTransaction, multisigModificationTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateStandaloneMosaicAddressRestrictionTransaction.
@Test
void shouldCreateStandaloneMosaicAddressRestrictionTransaction() {
TransactionInfoDTO mosaicAddressRestrictionTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("standaloneMosaicAddressRestrictionTransaction.json");
Transaction mosaicAddressRestrictionTransaction = map(mosaicAddressRestrictionTransactionDTO);
validateStandaloneTransaction(mosaicAddressRestrictionTransaction, mosaicAddressRestrictionTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateSecretProofTransaction.
@Test
void shouldCreateAggregateSecretProofTransaction() {
TransactionInfoDTO aggregateSecretProofTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateSecretProofTransaction.json");
Transaction aggregateSecretProofTransaction = map(aggregateSecretProofTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateSecretProofTransaction, aggregateSecretProofTransactionDTO);
}
Aggregations