Skip to main content

DurableProofGraphStore

@totemsdk/proofgraph


@totemsdk/proofgraph / DurableProofGraphStore

Type Alias: DurableProofGraphStore

DurableProofGraphStore = ProofGraphStoragePort & object

Type Declaration​

latest()​

latest(): Promise<ProofGraph | null>

Load the most-recent saved graph (the head).

Returns​

Promise<ProofGraph | null>

listGraphIds()​

listGraphIds(): Promise<string[]>

List all persisted graphIds.

Returns​

Promise<string[]>

recover()​

recover(): Promise<ProofGraphRecoveryReport>

Reconcile head + index after a crash/interruption.

Returns​

Promise<ProofGraphRecoveryReport>