From a27a20faeef3c7a8fc3e701948bc3c6d05dd387c Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Mon, 8 Jun 2026 16:12:57 -0400 Subject: [PATCH] feat: add chainName, status, primeBlockProof to interchain trace types - InterchainTransaction: add chainName + status (pending|confirmed|dropped). - VerificationBlock: add primeBlockProof (now exposed by prime-node after the JSON tag fix) so clients can reconstruct the signed message and verify the validator signature. --- src/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/types.ts b/src/types.ts index 5f5ad88..80316e9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -149,6 +149,12 @@ export interface VerificationBlock { version: string; primeChainId: string; primeBlockId: string; + /** + * The prime block's proof this validator block attests to. Part of the signed + * message (blake2b-256 over version|primeChainId|primeBlockId|primeBlockProof| + * timestamp|verifierPublicKey), so it is required to verify verifierSignature. + */ + primeBlockProof: string; timestamp: string; verifierPublicKey: string; verifierSignature: string; @@ -163,9 +169,15 @@ export interface InterchainTransaction { id: number; version: string; timestamp: string; + /** Numeric external network id ("1"=ETH, "0"=BTC, ...). May be absent for chains without one. */ chainId: string; + /** Explicit external chain name ("ETH", "BTC", "BASE", "BNB") — authoritative. */ + chainName: string; transHash: string; + /** External chain block the anchor confirmed in; empty until confirmed (see status). */ blockId: string; + /** Confirmation state: "pending" | "confirmed" | "dropped". */ + status: string; validatorBlocks: string[]; validatorBlockhash: string; signature: string;