Pebble App Framework: Phone API
    Preparing search index...

    Function saveStamps

    • Writes the stamps spent on one key beside the others, and shrugs if the phone will not take it. A key with nothing the plan's windows can still see is let go, so old keys do not pile up.

      Parameters

      • storage: LedgerStorage

        Where the ledger lives, normally localStorage.

      • storageKey: string

        The localStorage key the ledger is saved under.

      • provider: string

        The provider's id.

      • print: string

        The fingerprint of the key in use.

      • stamps: readonly Stamp[]

        The stamps spent on it.

      • plan: QuotaPlan

        The provider's plan, which sets what is kept.

      • nowMs: number

        Now, in epoch milliseconds.

      Returns void