Home > @sovryn-zero/lib-base > LiquityStore
Abstract base class of Zero data store implementations.
Signature:
export declare abstract class LiquityStore<T = unknown>
The type parameter T
may be used to type extra state added to LiquityStoreState by the subclass.
Implemented by BlockPolledLiquityStore.
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. |
Method | Modifiers | Description |
---|---|---|
start() | Start monitoring the blockchain for Zero state changes. | |
subscribe(listener) | Register a state change listener. |