Skip to content
docs

SwapsStore

Defined in: swaps.ts:59

new SwapsStore(storage): SwapsStore

Defined in: swaps.ts:69

JsonStorage<SwapRecord[]>

SwapsStore

active(): Promise<SwapRecord[]>

Defined in: swaps.ts:79

Promise<SwapRecord[]>


add(record): Promise<void>

Defined in: swaps.ts:83

SwapRecord

Promise<void>


get(id): Promise<SwapRecord | null>

Defined in: swaps.ts:75

string

Promise<SwapRecord | null>


list(): Promise<SwapRecord[]>

Defined in: swaps.ts:71

Promise<SwapRecord[]>


onChange(listener): () => void

Defined in: swaps.ts:108

() => void

() => void


remove(id): Promise<void>

Defined in: swaps.ts:102

string

Promise<void>


update(id, patch): Promise<SwapRecord | null>

Defined in: swaps.ts:90

string

Partial<SwapRecord>

Promise<SwapRecord | null>