use of com.hedera.mirror.common.domain.transaction.RecordItem in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerNonFeeTransferTest method cryptoTransferWithTransferList.
private void cryptoTransferWithTransferList(Transaction transaction, TransferList.Builder transferList, ResponseCodeEnum rc) {
var transactionBody = getTransactionBody(transaction);
var record = transactionRecord(transactionBody, rc, transferList).build();
expectedTransactions.add(new TransactionContext(transaction, record));
parseRecordItemAndCommit(new RecordItem(transaction, record));
}
use of com.hedera.mirror.common.domain.transaction.RecordItem in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerNonFeeTransferTest method contractCallWithTransferList.
private void contractCallWithTransferList(TransferList.Builder transferList) {
var transaction = contractCall();
var transactionBody = getTransactionBody(transaction);
var recordBuilder = transactionRecordSuccess(transactionBody, transferList);
var contractCallResult = recordBuilder.getContractCallResultBuilder().setContractID(ContractID.newBuilder().setContractNum(NEW_CONTRACT_NUM));
var record = recordBuilder.setContractCallResult(contractCallResult).build();
expectedTransactions.add(new TransactionContext(transaction, record));
parseRecordItemAndCommit(new RecordItem(transaction, record));
}
use of com.hedera.mirror.common.domain.transaction.RecordItem 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.hedera.mirror.common.domain.transaction.RecordItem 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.hedera.mirror.common.domain.transaction.RecordItem 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