interface PreviousHashStore {
    getItem(
        address: Lowercase<string>,
    ): null | Lowercase<string> | Promise<null | Lowercase<string>>;
    removeItem(address: Lowercase<string>): void | Promise<void>;
    setItem(
        address: Lowercase<string>,
        previousHash: Lowercase<string>,
    ): void | Promise<void>;
}

Methods

  • Parameters

    • address: Lowercase<string>

    Returns null | Lowercase<string> | Promise<null | Lowercase<string>>

  • Parameters

    • address: Lowercase<string>

    Returns void | Promise<void>

  • Parameters

    • address: Lowercase<string>
    • previousHash: Lowercase<string>

    Returns void | Promise<void>