createPulsarStore()
createPulsarStore<
T
>(config
):WithPersist
<StoreApi
<ITxTrackingStore
<T
>>,ITxTrackingStore
<T
>>
Defined in: packages/pulsar-core/src/store/txTrackingStore.ts:30
Creates the main Pulsar store for transaction tracking.
This function configures a Zustand store enhanced with persistence. It combines the core transaction management slice with a powerful orchestration logic that leverages chain-specific adapters to handle the entire lifecycle of a transaction—from initiation and chain validation to execution and background status tracking.
Type Parameters
T
T
extends Transaction
The specific transaction type, extending the base Transaction
.
Parameters
config
PulsarAdapter
<T
> & PersistOptions
<ITxTrackingStore
<T
>, ITxTrackingStore
<T
>, unknown
>
Configuration object for creating the store.
Returns
WithPersist
<StoreApi
<ITxTrackingStore
<T
>>, ITxTrackingStore
<T
>>
A fully configured Zustand store instance.