@@ -92,7 +92,7 @@ export interface AssetContract {
92
92
/**
93
93
* @public
94
94
* <p>The container for the contract identifier containing its blockchain network
95
- * and address.</p>
95
+ * and address.</p>
96
96
*/
97
97
contractIdentifier : ContractIdentifier | undefined ;
98
98
@@ -570,6 +570,19 @@ export class ValidationException extends __BaseException {
570
570
}
571
571
}
572
572
573
+ /**
574
+ * @public
575
+ * @enum
576
+ */
577
+ export const ConfirmationStatus = {
578
+ FINAL : "FINAL" ,
579
+ } as const ;
580
+
581
+ /**
582
+ * @public
583
+ */
584
+ export type ConfirmationStatus = ( typeof ConfirmationStatus ) [ keyof typeof ConfirmationStatus ] ;
585
+
573
586
/**
574
587
* @public
575
588
* <p>The contract or wallet address by which to filter the request.</p>
@@ -618,6 +631,20 @@ export interface ContractMetadata {
618
631
decimals ?: number ;
619
632
}
620
633
634
+ /**
635
+ * @public
636
+ * @enum
637
+ */
638
+ export const ExecutionStatus = {
639
+ FAILED : "FAILED" ,
640
+ SUCCEEDED : "SUCCEEDED" ,
641
+ } as const ;
642
+
643
+ /**
644
+ * @public
645
+ */
646
+ export type ExecutionStatus = ( typeof ExecutionStatus ) [ keyof typeof ExecutionStatus ] ;
647
+
621
648
/**
622
649
* @public
623
650
*/
@@ -825,9 +852,26 @@ export interface Transaction {
825
852
826
853
/**
827
854
* @public
855
+ * @deprecated
856
+ *
828
857
* <p>The status of the transaction.</p>
829
- */
830
- status : QueryTransactionStatus | undefined ;
858
+ * <important>
859
+ * <p>This property is deprecated. You must use the <code>confirmationStatus</code>
860
+ * and the <code>executionStatus</code> properties to determine if the <code>status</code>
861
+ * of the transaction is <code>FINAL</code> or <code>FAILED</code>.</p>
862
+ * <ul>
863
+ * <li>
864
+ * <p>Transactions with a <code>status</code> of <code>FINAL</code> will now have the <code>confirmationStatus</code> set
865
+ * to <code>FINAL</code> and the <code>executionStatus</code> set to <code>SUCCEEDED</code>.</p>
866
+ * </li>
867
+ * <li>
868
+ * <p>Transactions with a <code>status</code> of <code>FAILED</code> will now have the <code>confirmationStatus</code> set
869
+ * to <code>FINAL</code> and the <code>executionStatus</code> set to <code>FAILED</code>.</p>
870
+ * </li>
871
+ * </ul>
872
+ * </important>
873
+ */
874
+ status ?: QueryTransactionStatus ;
831
875
832
876
/**
833
877
* @public
@@ -895,6 +939,18 @@ export interface Transaction {
895
939
* <p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
896
940
*/
897
941
transactionId ?: string ;
942
+
943
+ /**
944
+ * @public
945
+ * <p>Specifies whether the transaction has reached Finality.</p>
946
+ */
947
+ confirmationStatus ?: ConfirmationStatus ;
948
+
949
+ /**
950
+ * @public
951
+ * <p>Identifies whether the transaction has succeeded or failed.</p>
952
+ */
953
+ executionStatus ?: ExecutionStatus ;
898
954
}
899
955
900
956
/**
0 commit comments