Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.34 KB

lib-base.liquitystore.md

File metadata and controls

35 lines (22 loc) · 1.34 KB

Home > @sovryn-zero/lib-base > LiquityStore

LiquityStore class

Abstract base class of Zero data store implementations.

Signature:

export declare abstract class LiquityStore<T = unknown> 

Remarks

The type parameter T may be used to type extra state added to LiquityStoreState by the subclass.

Implemented by BlockPolledLiquityStore.

Properties

Property Modifiers Type Description
logging boolean Turn console logging on/off.
onLoaded? () => void (Optional) Called after the state is fetched for the first time.
state LiquityStoreState<T> The current store state.

Methods

Method Modifiers Description
start() Start monitoring the blockchain for Zero state changes.
subscribe(listener) Register a state change listener.