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

    Function loadStamps

    • Reads the stamps spent on one key with one provider. Each key keeps its own, so swapping to another key and back finds the first key's count where it was left. Anything saved that is not a stamp is left out, and so is a weight above the plan's largest limit. No real call could spend that much, and one such stamp would hold the provider off for a whole window.

      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, from ledgerPrint or keyPrint.

      • plan: QuotaPlan

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

      • nowMs: number

        Now, in epoch milliseconds.

      Returns Stamp[]

      The stamps the plan's windows can still see.