Skip to Content
API referencePulsar CoreSrcInterfacesIInitializeTxTrackingStore<T>

API Reference.


IInitializeTxTrackingStore<T>

Defined in: packages/pulsar-core/src/types.ts:396 

The interface for the base transaction tracking store slice. It includes the state and actions for managing the transaction lifecycle.

Type Parameters

T

T extends Transaction

The specific transaction type.

Properties

addTxToPool

addTxToPool: (tx) => Promise<void>

Defined in: packages/pulsar-core/src/types.ts:407 

Adds a new transaction to the tracking pool and marks it as pending.

Parameters

tx

T

The transaction object to add.

Returns

Promise<void>


closeTxTrackedModal

closeTxTrackedModal: (txKey?) => void

Defined in: packages/pulsar-core/src/types.ts:423 

Closes the tracking modal for a transaction and clears any initial transaction state.

Parameters

txKey?

string

The optional key of the transaction modal to close.

Returns

void


getLastTxKey

getLastTxKey: () => string | undefined

Defined in: packages/pulsar-core/src/types.ts:428 

A selector function to retrieve the key of the last transaction added to the pool.

Returns

string | undefined

The key of the last added transaction, or undefined if none exists.


initialTx?

optional initialTx?: InitialTransaction

Defined in: packages/pulsar-core/src/types.ts:402 

The state for a transaction being initiated, used for verify feedback before it’s submitted to the chain.


lastAddedTxKey?

optional lastAddedTxKey?: string

Defined in: packages/pulsar-core/src/types.ts:400 

The txKey of the most recently added transaction.


reconcileUnsyncedTransactions

reconcileUnsyncedTransactions: () => Promise<void>

Defined in: packages/pulsar-core/src/types.ts:438 

Attempts to synchronize any transactions in unsyncedTxKeys that have reached a terminal status but failed their initial onRemoteCreate call.

Returns

Promise<void>


removeTxFromPool

removeTxFromPool: (txKey) => void

Defined in: packages/pulsar-core/src/types.ts:418 

Removes a transaction from the tracking pool by its key.

Parameters

txKey

string

The key of the transaction to remove.

Returns

void


transactionsPool

transactionsPool: TransactionPool<T>

Defined in: packages/pulsar-core/src/types.ts:398 

A pool of all transactions currently being tracked, indexed by txKey.


unsyncedTxKeys?

optional unsyncedTxKeys?: Record<string, boolean>

Defined in: packages/pulsar-core/src/types.ts:433 

A record of transaction keys that failed to sync with the remote backend (Quasar) when onRemoteCreate was called. They will be retried automatically.


updateTxParams

updateTxParams: (txKey, fields) => void

Defined in: packages/pulsar-core/src/types.ts:413 

Updates one or more properties of an existing transaction in the pool.

Parameters

txKey

string

The key of the transaction to update.

fields

UpdatableTransactionFields

The partial object containing the fields to update.

Returns

void

Last updated on