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
) =>void
Defined in: packages/pulsar-core/src/types.ts:408
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:424
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: () =>
undefined
|string
Defined in: packages/pulsar-core/src/types.ts:429
A selector function to retrieve the key of the last transaction added to the pool.
Returns
undefined
| string
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 UI 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.
removeTxFromPool()
removeTxFromPool: (
txKey
) =>void
Defined in: packages/pulsar-core/src/types.ts:419
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
.
updateTxParams()
updateTxParams: (
txKey
,fields
) =>void
Defined in: packages/pulsar-core/src/types.ts:414
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