use of com.hederahashgraph.api.proto.java.TransactionBody in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerPerformanceCryptoTest method getCreateAccountRecordItem.
private RecordItem getCreateAccountRecordItem(int accountNum) throws Exception {
Transaction createTransaction = cryptoCreateTransaction();
TransactionBody createTransactionBody = getTransactionBody(createTransaction);
TransactionRecord createRecord = transactionRecord(createTransactionBody, ResponseCodeEnum.SUCCESS.getNumber(), accountNum);
return new RecordItem(createTransaction, createRecord);
}
use of com.hederahashgraph.api.proto.java.TransactionBody in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerPerformanceCryptoTest method getUpdateAccountRecordItem.
private RecordItem getUpdateAccountRecordItem(int accountNum) throws Exception {
Transaction updateTransaction = cryptoUpdateTransaction(AccountID.newBuilder().setShardNum(0).setRealmNum(0).setAccountNum(accountNum).build());
TransactionBody updateTransactionBody = getTransactionBody(updateTransaction);
TransactionRecord createRecord = transactionRecord(updateTransactionBody, ResponseCodeEnum.SUCCESS.getNumber(), accountNum);
return new RecordItem(updateTransaction, createRecord);
}
use of com.hederahashgraph.api.proto.java.TransactionBody in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerScheduleTest method insertScheduleCreateTransaction.
private void insertScheduleCreateTransaction(long createdTimestamp, AccountID payer, ScheduleID scheduleID) {
Transaction createTransaction = scheduleCreateTransaction(payer);
TransactionBody createTransactionBody = getTransactionBody(createTransaction);
var createTransactionRecord = createTransactionRecord(createdTimestamp, scheduleID, createTransactionBody, SUCCESS, false);
parseRecordItemAndCommit(new RecordItem(createTransaction, createTransactionRecord));
}
use of com.hederahashgraph.api.proto.java.TransactionBody in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerScheduleTest method insertScheduledTransaction.
private void insertScheduledTransaction(long signTimestamp, ScheduleID scheduleID, ResponseCodeEnum responseCodeEnum) {
Transaction scheduledTransaction = scheduledTransaction();
TransactionBody scheduledTransactionBody = getTransactionBody(scheduledTransaction);
var scheduledTransactionRecord = createTransactionRecord(signTimestamp, scheduleID, scheduledTransactionBody, responseCodeEnum, true);
parseRecordItemAndCommit(new RecordItem(scheduledTransaction, scheduledTransactionRecord));
}
use of com.hederahashgraph.api.proto.java.TransactionBody in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerTokenTest method updateTokenFeeSchedule.
private void updateTokenFeeSchedule(TokenID tokenID, long consensusTimestamp, List<CustomFee> customFees) {
Transaction transaction = buildTransaction(builder -> builder.getTokenFeeScheduleUpdateBuilder().setTokenId(tokenID).addAllCustomFees(convertCustomFees(customFees)));
TransactionBody transactionBody = getTransactionBody(transaction);
TransactionRecord transactionRecord = buildTransactionRecord(builder -> builder.setConsensusTimestamp(TestUtils.toTimestamp(consensusTimestamp)), transactionBody, ResponseCodeEnum.SUCCESS.getNumber());
parseRecordItemAndCommit(new RecordItem(transaction, transactionRecord));
}
Aggregations