InMemoryWalletStore

Non-durable WalletStore; suitable for tests and previews.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun delete(partyId: String)

Removes the record for partyId; a no-op when there is none.

Link copied to clipboard
open suspend override fun find(partyId: String): WalletRecord?

The record for partyId, or null when none is stored.

Link copied to clipboard
open suspend override fun list(): List<WalletRecord>

All records, oldest first.

Link copied to clipboard
open suspend override fun save(record: WalletRecord)

Inserts the record, or replaces the one already stored for the same WalletRecord.partyId.