Skip to Content
API referencePulsar CoreSrcInterfacesIInitializeTxTrackingStore<T>

@tuwaio/pulsar-core-monorepo


IInitializeTxTrackingStore<T>

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

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) => void

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

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

Parameters

tx

T

The transaction object to add.

Returns

void


closeTxTrackedModal

closeTxTrackedModal: (txKey?) => void

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

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:406 

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:380 

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:378 

The txKey of the most recently added transaction.


removeTxFromPool

removeTxFromPool: (txKey) => void

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

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:376 

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


updateTxParams

updateTxParams: (txKey, fields) => void

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

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