Display more accurate price on prevout/spent outputs in bowtie tooltip

This commit is contained in:
natsoni
2024-03-17 16:25:36 +09:00
parent df107d34b4
commit 2dc6f6ff5a
6 changed files with 157 additions and 12 deletions

View File

@@ -34,6 +34,7 @@ interface Xput {
pegout?: string;
confidential?: boolean;
timestamp?: number;
blockHeight?: number;
asset?: string;
}
@@ -178,6 +179,7 @@ export class TxBowtieGraphComponent implements OnInit, OnChanges {
pegout: v?.pegout?.scriptpubkey_address,
confidential: (this.isLiquid && v?.value === undefined),
timestamp: this.tx.status.block_time,
blockHeight: this.tx.status.block_height,
asset: v?.asset,
} as Xput;
});
@@ -200,6 +202,7 @@ export class TxBowtieGraphComponent implements OnInit, OnChanges {
pegin: v?.is_pegin,
confidential: (this.isLiquid && v?.prevout?.value === undefined),
timestamp: this.tx.status.block_time,
blockHeight: this.tx.status.block_height,
asset: v?.prevout?.asset,
} as Xput;
});