use of io.nem.symbol.sdk.model.transaction.AggregateTransaction in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateSecretLockTransaction.
@Test
void shouldCreateAggregateSecretLockTransaction() {
TransactionInfoDTO aggregateSecretLockTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateSecretLockTransaction.json");
Transaction aggregateSecretLockTransaction = map(aggregateSecretLockTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateSecretLockTransaction, aggregateSecretLockTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.AggregateTransaction in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateSubNamespaceCreationTransaction.
@Test
void shouldCreateAggregateSubNamespaceCreationTransaction() {
TransactionInfoDTO aggregateNamespaceCreationTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateSubNamespaceCreationTransaction.json");
Transaction aggregateNamespaceCreationTransaction = map(aggregateNamespaceCreationTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateNamespaceCreationTransaction, aggregateNamespaceCreationTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.AggregateTransaction in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateMosaicSupplyChangeTransaction.
@Test
void shouldCreateAggregateMosaicSupplyChangeTransaction() {
TransactionInfoDTO aggregateMosaicSupplyChangeTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateMosaicSupplyChangeTransaction.json");
Transaction aggregateMosaicSupplyChangeTransaction = map(aggregateMosaicSupplyChangeTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateMosaicSupplyChangeTransaction, aggregateMosaicSupplyChangeTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.AggregateTransaction 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.model.transaction.AggregateTransaction 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