solana-resilience-kit - v1.0.0
    Preparing search index...

    Class MockCluster

    Public surface of the simulation harness. Tests (and, after handoff, the Claude Code implementation runs) import everything they need from here.

    Index

    Constructors

    Properties

    blockHeight: bigint
    slot: bigint

    Methods

    • Advances the cluster by n slots, processing tx landings and expiries.

      Parameters

      • n: number

      Returns void

    • Returns {
          context: { slot: bigint };
          value: { blockhash: string; lastValidBlockHeight: bigint };
      }

    • Returns { prioritizationFee: bigint; slot: bigint }[]

    • Parameters

      • signatures: string[]

      Returns {
          context: { slot: bigint };
          value: (
              | {
                  confirmations: number
                  | null;
                  confirmationStatus: Commitment;
                  err: unknown;
                  slot: bigint;
              }
              | null
          )[];
      }

    • Accepts a base64 wire tx (or a raw signature string for low-level tests).

      Parameters

      • rawTxOrSig: string
      • Optionalopts: { dropped?: boolean }

      Returns string

    • Returns {
          context: { slot: bigint };
          value: { err: unknown; logs: string[]; unitsConsumed: bigint };
      }

    • Force the next tx with this signature to land after slots (or never if <0).

      Parameters

      • signature: string
      • slots: number

      Returns void