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.
This commit is contained in:
12
src/types.ts
12
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;
|
||||
|
||||
Reference in New Issue
Block a user