Skip to content

Reference

MiningRoundClient interface

Minimal validator dependency surface consumed by Canton mining-round helpers for portability and testing doubles.

Defined as:

export interface MiningRoundClient {
  getOpenAndIssuingMiningRounds: () => Promise<GetOpenAndIssuingMiningRoundsResponse>;
}

Implementations in the wild are typically ValidatorApiClient, but tests can stub getOpenAndIssuingMiningRounds with fixture JSON.

Usage

Pass any compatible object into getCurrentMiningRoundContext, getCurrentMiningRoundDomainId, getCurrentRoundNumber, waitForRoundChange.

Source

src/utils/mining/mining-rounds.ts