Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ConflictResolution

Index

Constructors

constructor

Properties

anchorValidator

anchorValidator: AnchorValidator

Methods

applyTip

  • applyTip(initialState: StreamState, tip: CID, opts: InternalOpts): Promise<StreamState | null>
  • Add tip to the state. Return null if already applied.

    Parameters

    • initialState: StreamState

      State to start from

    • tip: CID

      Commit CID

    • opts: InternalOpts

      options that control the behavior when applying the commit

    Returns Promise<StreamState | null>

snapshotAtCommit

  • snapshotAtCommit(initialState: StreamState, commitId: CommitID): Promise<StreamState>

verifyLoneGenesis

  • verifyLoneGenesis(state: StreamState): Promise<void>