IInitializeTxTrackingStore<T>
Defined in: packages/pulsar-core/src/types.ts:354
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:366
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:382
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:387
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?
optionalinitialTx:InitialTransaction
Defined in: packages/pulsar-core/src/types.ts:360
The state for a transaction being initiated, used for UI feedback before it’s submitted to the chain.
lastAddedTxKey?
optionallastAddedTxKey:string
Defined in: packages/pulsar-core/src/types.ts:358
The txKey of the most recently added transaction.
removeTxFromPool()
removeTxFromPool: (
txKey) =>void
Defined in: packages/pulsar-core/src/types.ts:377
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:356
A pool of all transactions currently being tracked, indexed by txKey.
updateTxParams()
updateTxParams: (
txKey,fields) =>void
Defined in: packages/pulsar-core/src/types.ts:372
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