@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Interface ContractManagerConfig

    Configuration for the ContractManager.

    interface ContractManagerConfig {
        contractRepository: ContractRepository;
        indexerProvider: IndexerProvider;
        intentRepository?: IntentRepository;
        lookAhead?: LookAheadConfig;
        onVtxosPersisted?: (
            contract: Contract,
            vtxos: ExtendedVirtualCoin[],
        ) => Promise<void>;
        onVtxosSpent?: (vtxos: Outpoint[]) => Promise<void>;
        walletRepository: WalletRepository;
        watcherConfig?: Partial<ContractWatcherConfig>;
    }
    Index

    Properties

    contractRepository: ContractRepository

    The contract repository for persistence

    indexerProvider: IndexerProvider

    The indexer provider

    intentRepository?: IntentRepository

    Optional intent store. When present, the online sync path reconciles persisted non-terminal settlement intents against authoritative indexer state (crash recovery) on boot and reconnect — see reconcileIntents. Absent ⇒ no-op.

    lookAhead?: LookAheadConfig

    Enables the HD look-ahead watch window. Absent ⇒ feature off (static / non-HD wallets, third-party embedders). See ContractManager.refillLookAhead.

    onVtxosPersisted?: (
        contract: Contract,
        vtxos: ExtendedVirtualCoin[],
    ) => Promise<void>

    Optional exit-data capture hook. Fired best-effort after VTXOs are persisted so a configured virtualTxRepository can store each one's unilateral-exit branch. Absent ⇒ no-op.

    onVtxosSpent?: (vtxos: Outpoint[]) => Promise<void>

    Optional exit-data prune hook. Fired best-effort with the spent outpoints on vtxo_spent so a configured virtualTxRepository can drop their branch. Absent ⇒ no-op.

    walletRepository: WalletRepository

    The wallet repository for virtual output storage (single source of truth)

    watcherConfig?: Partial<ContractWatcherConfig>

    Watcher configuration