Merged
Conversation
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
nthpool
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The transaction API now returns a new
originalTransactionStatusfield in the batch status response. This PR:OriginalTransactionStatusenum with all possible values (VALIDATED,REVERTED,CANCELLED,FAILED_WOULD_REVERT, etc.)originalTransactionStatusto theSmartTransactionsStatustypestx_original_transaction_statusingetSmartTransactionMetricsProperties, so it's tracked in "STX Status Updated" and "STX Confirmed" eventsoriginalTransactionStatusin the error message set bymarkRegularTransactionsAsFailed, so it reliably appears in the "Transaction Finalized" event'serrorfield for failed/cancelled smart transactionsChanges
src/types.ts— newOriginalTransactionStatusenum, typed field onSmartTransactionsStatussrc/utils.ts— added to metrics properties and failure error messagesrc/index.ts— exportedOriginalTransactionStatussrc/utils.test.ts— tests for the new behaviorNote
Low Risk
Adds a new optional status field and only uses it for analytics properties and error-message enrichment; core transaction flow is unchanged aside from message formatting.
Overview
Adds a new
OriginalTransactionStatusenum and threads an optionaloriginalTransactionStatusfield throughSmartTransactionsStatus(and exports it publicly).Includes this value in
getSmartTransactionMetricsPropertiesasstx_original_transaction_statusand appends it to the error message generated bymarkRegularTransactionsAsFailedwhen present, with tests covering both behaviors.Written by Cursor Bugbot for commit c89269c. This will update automatically on new commits. Configure here.