explorer: add confirmation status (#15422)
This commit is contained in:
@ -269,6 +269,13 @@ function StatusCard({
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>Confirmation Status</td>
|
||||||
|
<td className="text-lg-right text-uppercase">
|
||||||
|
{info.confirmationStatus || "Unknown"}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Confirmations</td>
|
<td>Confirmations</td>
|
||||||
<td className="text-lg-right text-uppercase">{info.confirmations}</td>
|
<td className="text-lg-right text-uppercase">{info.confirmations}</td>
|
||||||
|
@ -3,6 +3,7 @@ import {
|
|||||||
TransactionSignature,
|
TransactionSignature,
|
||||||
Connection,
|
Connection,
|
||||||
SignatureResult,
|
SignatureResult,
|
||||||
|
TransactionConfirmationStatus,
|
||||||
} from "@solana/web3.js";
|
} from "@solana/web3.js";
|
||||||
import { useCluster, Cluster } from "../cluster";
|
import { useCluster, Cluster } from "../cluster";
|
||||||
import { DetailsProvider } from "./details";
|
import { DetailsProvider } from "./details";
|
||||||
@ -20,6 +21,7 @@ export interface TransactionStatusInfo {
|
|||||||
result: SignatureResult;
|
result: SignatureResult;
|
||||||
timestamp: Timestamp;
|
timestamp: Timestamp;
|
||||||
confirmations: Confirmations;
|
confirmations: Confirmations;
|
||||||
|
confirmationStatus: TransactionConfirmationStatus | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TransactionStatus {
|
export interface TransactionStatus {
|
||||||
@ -96,6 +98,7 @@ export async function fetchTransactionStatus(
|
|||||||
slot: value.slot,
|
slot: value.slot,
|
||||||
timestamp,
|
timestamp,
|
||||||
confirmations,
|
confirmations,
|
||||||
|
confirmationStatus: value.confirmationStatus,
|
||||||
result: { err: value.err },
|
result: { err: value.err },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user