@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Interface ContractRepository

    interface ContractRepository {
        version: 2;
        clear(): Promise<void>;
        deleteContract(script: string): Promise<void>;
        getContracts(filter?: ContractFilter): Promise<Contract[]>;
        saveContract(contract: Contract): Promise<void>;
    }

    Hierarchy

    • AsyncDisposable
      • ContractRepository

    Implemented by

    Index

    Properties

    version: 2

    2 — Contract.watch. An implementation must persist and round-trip it, and treat a row without one as "watched".

    Methods