"use strict";
/**
 * Shared transaction types for Perps deposits and withdrawals
 * Provides a unified structure while maintaining separate use cases
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLastTransactionResult = exports.isTransactionRecord = void 0;
/**
 * Type guard to check if a transaction result is a TransactionRecord
 *
 * @param result - The transaction result to check.
 * @returns True if the result is a TransactionRecord with id and status fields.
 */
function isTransactionRecord(result) {
    return 'id' in result && 'status' in result;
}
exports.isTransactionRecord = isTransactionRecord;
/**
 * Type guard to check if a transaction result is a LastTransactionResult
 *
 * @param result - The transaction result to check.
 * @returns True if the result is a LastTransactionResult without id or status fields.
 */
function isLastTransactionResult(result) {
    return !('id' in result) || !('status' in result);
}
exports.isLastTransactionResult = isLastTransactionResult;
//# sourceMappingURL=transactionTypes.cjs.map