2024-01-28 19:43:50 +01:00
|
|
|
<div [ngClass]="{'widget': widget}">
|
2024-01-21 13:33:20 +01:00
|
|
|
<div *ngIf="!widget && isLoading" class="spinner-border ml-3" role="status"></div>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<div style="min-height: 295px">
|
|
|
|
<table class="table table-borderless">
|
|
|
|
<thead style="vertical-align: middle;">
|
2024-01-23 09:57:26 +01:00
|
|
|
<th class="txid text-left" [ngClass]="{'widget': widget}" i18n="liquid.output">Output</th>
|
|
|
|
<th class="address text-left" *ngIf="!widget" i18n="liquid.address">Address</th>
|
|
|
|
<th class="amount text-right" [ngClass]="{'widget': widget}" i18n="liquid.amount">Amount</th>
|
|
|
|
<th class="pegin text-left" *ngIf="!widget" i18n="liquid.peg-in">Liquid Peg-in</th>
|
|
|
|
<th class="timestamp text-right" i18n="latest-blocks.date" [ngClass]="{'widget': widget}">Date</th>
|
2024-01-21 13:33:20 +01:00
|
|
|
</thead>
|
|
|
|
<tbody *ngIf="federationUtxos$ | async as utxos; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''">
|
|
|
|
<ng-container *ngIf="widget; else regularRows">
|
|
|
|
<tr *ngFor="let utxo of utxos | slice:0:5">
|
|
|
|
<td class="txid text-left widget">
|
|
|
|
<a href="{{ env.MEMPOOL_WEBSITE_URL + '/tx/' + utxo.txid + ':' + utxo.txindex }}" target="_blank" style="color:#b86d12">
|
|
|
|
<app-truncate [text]="utxo.txid + ':' + utxo.txindex" [lastChars]="6"></app-truncate>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="amount text-right widget">
|
|
|
|
<app-amount [satoshis]="utxo.amount" [noFiat]="true" [forceBtc]="true"></app-amount>
|
|
|
|
</td>
|
2024-01-23 09:57:26 +01:00
|
|
|
<td class="timestamp text-right widget">
|
2024-01-21 13:33:20 +01:00
|
|
|
<app-time kind="since" [time]="utxo.blocktime"></app-time>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-container>
|
|
|
|
<ng-template #regularRows>
|
|
|
|
<tr *ngFor="let utxo of utxos | slice:(page - 1) * pageSize:page * pageSize">
|
|
|
|
<td class="txid text-left">
|
|
|
|
<a href="{{ env.MEMPOOL_WEBSITE_URL + '/tx/' + utxo.txid + ':' + utxo.txindex }}" target="_blank" style="color:#b86d12">
|
|
|
|
<app-truncate [text]="utxo.txid + ':' + utxo.txindex" [lastChars]="6"></app-truncate>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="address text-left">
|
|
|
|
<a href="{{ env.MEMPOOL_WEBSITE_URL + '/address/' + utxo.bitcoinaddress }}" target="_blank" style="color:#b86d12">
|
|
|
|
<app-truncate [text]="utxo.bitcoinaddress" [lastChars]="6"></app-truncate>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="amount text-right">
|
|
|
|
<app-amount [satoshis]="utxo.amount" [noFiat]="true" [forceBtc]="true"></app-amount>
|
|
|
|
</td>
|
2024-01-21 13:40:31 +01:00
|
|
|
<td class="pegin text-left">
|
2024-01-23 09:57:26 +01:00
|
|
|
<ng-container *ngIf="utxo.pegtxid; else noPeginMessage">
|
2024-01-28 18:26:00 +01:00
|
|
|
<a [routerLink]="['/tx' | relativeUrl, utxo.pegtxid + ':' + utxo.pegindex]">
|
2024-01-23 09:57:26 +01:00
|
|
|
<app-truncate [text]="utxo.pegtxid + ':' + utxo.pegindex" [lastChars]="6"></app-truncate>
|
|
|
|
</a>
|
|
|
|
</ng-container>
|
|
|
|
<ng-template #noPeginMessage>
|
|
|
|
<span class="text-muted">-</span>
|
|
|
|
</ng-template>
|
|
|
|
</td>
|
|
|
|
<td class="timestamp text-right">
|
2024-01-21 13:33:20 +01:00
|
|
|
‎{{ utxo.blocktime * 1000 | date:'yyyy-MM-dd HH:mm' }}
|
|
|
|
<div class="symbol lg-inline relative-time"><i>(<app-time kind="since" [time]="utxo.blocktime"></app-time>)</i></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
|
|
|
</tbody>
|
|
|
|
<ng-template #skeleton>
|
2024-01-22 16:03:55 +01:00
|
|
|
<tbody *ngIf="widget; else regularRowsSkeleton">
|
2024-01-21 13:33:20 +01:00
|
|
|
<tr *ngFor="let item of skeletonLines">
|
2024-01-22 16:03:55 +01:00
|
|
|
<td class="txid text-left widget">
|
2024-01-23 09:57:26 +01:00
|
|
|
<span class="skeleton-loader" style="max-width: 400px"></span>
|
2024-01-21 13:33:20 +01:00
|
|
|
</td>
|
2024-01-22 16:03:55 +01:00
|
|
|
<td class="amount text-right widget">
|
2024-01-23 09:57:26 +01:00
|
|
|
<span class="skeleton-loader" style="max-width: 300px"></span>
|
2024-01-21 13:33:20 +01:00
|
|
|
</td>
|
2024-01-23 09:57:26 +01:00
|
|
|
<td class="timestamp text-right widget">
|
|
|
|
<span class="skeleton-loader" style="max-width: 300px"></span>
|
2024-01-21 13:33:20 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2024-01-22 16:03:55 +01:00
|
|
|
<ng-template #regularRowsSkeleton>
|
|
|
|
<tr *ngFor="let item of skeletonLines">
|
|
|
|
<td class="txid text-left">
|
|
|
|
<span class="skeleton-loader" style="max-width: 300px"></span>
|
|
|
|
</td>
|
|
|
|
<td class="address text-left">
|
|
|
|
<span class="skeleton-loader" style="max-width: 300px"></span>
|
|
|
|
</td>
|
|
|
|
<td class="amount text-right">
|
|
|
|
<span class="skeleton-loader" style="max-width: 140px"></span>
|
|
|
|
</td>
|
|
|
|
<td class="pegin text-left">
|
|
|
|
<span class="skeleton-loader" style="max-width: 300px"></span>
|
|
|
|
</td>
|
2024-01-23 09:57:26 +01:00
|
|
|
<td class="timestamp text-right">
|
2024-01-22 16:03:55 +01:00
|
|
|
<span class="skeleton-loader" style="max-width: 140px"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</ng-template>
|
2024-01-21 13:33:20 +01:00
|
|
|
</ng-template>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<ngb-pagination *ngIf="!widget && federationUtxos$ | async as utxos" class="pagination-container float-right mt-2" [class]="isLoading ? 'disabled' : ''"
|
|
|
|
[collectionSize]="utxos.length" [rotate]="true" [maxSize]="maxSize" [pageSize]="15" [(page)]="page"
|
|
|
|
(pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false">
|
|
|
|
</ngb-pagination>
|
|
|
|
|
|
|
|
<ng-template [ngIf]="!widget">
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<br>
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|