@adcp/sdk API Reference - v14.0.0-beta.6
    Preparing search index...

    Interface ProposalRefinementTransaction<TProposal>

    interface ProposalRefinementTransaction<
        TProposal extends CanonicalProposal = CanonicalProposal,
    > {
        stage(proposals: readonly TProposal[]): MaybePromise<void>;
        commit(): MaybePromise<void>;
        rollback(): MaybePromise<void>;
    }

    Type Parameters

    Index

    Methods

    • Commit every staged successor atomically after comparing every source version supplied to begin. A mismatch MUST abort the whole batch.

      For finalize, the store MUST also reject an existing unexpired active hold and atomically record the staged committed successor as the source's new active_hold. Merely incrementing the source version is insufficient: a later request can read that new version and otherwise mint a second hold. Source proposal contents remain immutable.

      Returns MaybePromise<void>