+
{{ line.rest }}
other inputs
other outputs
+
+
+
+
+ Coinbase
+
-
- {{ line.address.slice(0, -4) }}
- {{ line.address.slice(-4) }}
-
+
+
+ Peg In
+
+
+
+
+
+ Peg Out
+
+
+ {{ line.pegout.slice(0, -4) }}
+ {{ line.pegout.slice(-4) }}
+
+
+
+
+
+
+
+ Input
+ Output
+ Fee
+
+ #{{ line.index }}
+
+ Confidential
+
+
+ {{ line.address.slice(0, -4) }}
+ {{ line.address.slice(-4) }}
+
+
diff --git a/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts b/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts
index ab964e89a..413bb68c0 100644
--- a/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts
+++ b/frontend/src/app/components/tx-bowtie-graph-tooltip/tx-bowtie-graph-tooltip.component.ts
@@ -1,13 +1,25 @@
import { Component, ElementRef, ViewChild, Input, OnChanges, ChangeDetectionStrategy } from '@angular/core';
import { TransactionStripped } from 'src/app/interfaces/websocket.interface';
+interface Xput {
+ type: 'input' | 'output' | 'fee';
+ value?: number;
+ index?: number;
+ address?: string;
+ rest?: number;
+ coinbase?: boolean;
+ pegin?: boolean;
+ pegout?: string;
+ confidential?: boolean;
+}
+
@Component({
selector: 'app-tx-bowtie-graph-tooltip',
templateUrl: './tx-bowtie-graph-tooltip.component.html',
styleUrls: ['./tx-bowtie-graph-tooltip.component.scss'],
})
export class TxBowtieGraphTooltipComponent implements OnChanges {
- @Input() line: { type: string, value?: number, index?: number, address?: string, rest?: number } | void;
+ @Input() line: Xput | void;
@Input() cursorPosition: { x: number, y: number };
tooltipPosition = { x: 0, y: 0 };
diff --git a/frontend/src/app/components/tx-bowtie-graph/tx-bowtie-graph.component.ts b/frontend/src/app/components/tx-bowtie-graph/tx-bowtie-graph.component.ts
index 0a25a43b1..78a865b89 100644
--- a/frontend/src/app/components/tx-bowtie-graph/tx-bowtie-graph.component.ts
+++ b/frontend/src/app/components/tx-bowtie-graph/tx-bowtie-graph.component.ts
@@ -13,6 +13,10 @@ interface Xput {
index?: number;
address?: string;
rest?: number;
+ coinbase?: boolean;
+ pegin?: boolean;
+ pegout?: string;
+ confidential?: boolean;
}
const lineLimit = 250;
@@ -78,6 +82,8 @@ export class TxBowtieGraphComponent implements OnInit, OnChanges {
type: v.scriptpubkey_type === 'fee' ? 'fee' : 'output',
value: v?.value,
address: v?.scriptpubkey_address || v?.scriptpubkey_type?.toUpperCase(),
+ pegout: v?.pegout?.scriptpubkey_address,
+ confidential: (this.isLiquid && v?.value === undefined),
} as Xput;
});
@@ -91,6 +97,9 @@ export class TxBowtieGraphComponent implements OnInit, OnChanges {
type: 'input',
value: v?.prevout?.value,
address: v?.prevout?.scriptpubkey_address || v?.prevout?.scriptpubkey_type?.toUpperCase(),
+ coinbase: v?.is_coinbase,
+ pegin: v?.is_pegin,
+ confidential: (this.isLiquid && v?.prevout?.value === undefined),
} as Xput;
});