Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-24 19:26:18 +03:00
parent 0c4d14650d
commit 2561a7eef6
11 changed files with 389 additions and 4 deletions

View file

@ -63,6 +63,17 @@ sealed interface OnChainTx : TxHistoryInfo {
*/
fun TxInfo.identityKey(): String = "$txHash|$type"
/**
* Hash of the matched on-chain leg, used to open the row in a block explorer; `null` when there is no
* blockchain tx to link to an [ExpressTx] whose on-chain leg has not matched yet. The express `txId`
* must never stand in here: it is not an on-chain hash and would build a broken explorer URL.
*/
inline val TxHistoryInfo.explorerHash: String?
get() = when (this) {
is OnChainTx.BSDK -> txInfo.txHash
is ExpressTx -> matchHash
}
/**
* A history row backed by an express operation. It is a thin wrapper over the standalone express
* model ([ExchangeTransaction] / [OnrampTransaction]), adding only the history-view concerns: