2022-02-11 17:55:38 +09:00
|
|
|
<div class="container">
|
2022-02-08 18:56:51 +09:00
|
|
|
|
2022-02-09 19:41:05 +09:00
|
|
|
<div *ngIf="poolStats$ | async as poolStats">
|
2022-02-11 18:29:38 +09:00
|
|
|
<h1 class="m-0">
|
|
|
|
<img width="50" src="{{ poolStats['logo'] }}" onError="this.src = './resources/mining-pools/default.svg'" class="mr-3">
|
2022-02-09 19:41:05 +09:00
|
|
|
{{ poolStats.pool.name }}
|
|
|
|
</h1>
|
|
|
|
|
2022-02-11 17:55:38 +09:00
|
|
|
<div class="box pl-0 bg-transparent">
|
|
|
|
<div class="card-header mb-0 mb-lg-4 pr-0 pl-0">
|
|
|
|
<form [formGroup]="radioGroupForm" class="formRadioGroup ml-0">
|
|
|
|
<div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan">
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'24h'"> 24h
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'3d'"> 3D
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1w'"> 1W
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1m'"> 1M
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'3m'"> 3M
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'6m'"> 6M
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1y'"> 1Y
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'2y'"> 2Y
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'3y'"> 3Y
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'all'"> ALL
|
|
|
|
</label>
|
2022-02-10 19:16:00 +09:00
|
|
|
</div>
|
2022-02-11 17:55:38 +09:00
|
|
|
</form>
|
2022-02-10 19:16:00 +09:00
|
|
|
</div>
|
2022-02-11 17:55:38 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box">
|
2022-02-09 19:41:05 +09:00
|
|
|
<div class="row">
|
2022-02-11 19:10:29 +09:00
|
|
|
<div class="col-md-8">
|
2022-02-11 17:55:38 +09:00
|
|
|
<table class="table table-borderless table-striped" style="table-layout: fixed;">
|
2022-02-09 19:41:05 +09:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-02-11 19:10:29 +09:00
|
|
|
<td class="col-4 col-lg-3">Addresses</td>
|
|
|
|
<td class="text-truncate" *ngIf="poolStats.pool.addresses.length else noaddress">
|
|
|
|
<div class="scrollable">
|
|
|
|
<a *ngFor="let address of poolStats.pool.addresses" [routerLink]="['/address' | relativeUrl, address]">{{ address }}<br></a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<ng-template #noaddress><td>~</td></ng-template>
|
2022-02-09 19:41:05 +09:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-02-11 19:10:29 +09:00
|
|
|
<td class="col-4 col-lg-3">Coinbase Tags</td>
|
2022-02-11 17:55:38 +09:00
|
|
|
<td class="text-truncate">{{ poolStats.pool.regexes }}</td>
|
2022-02-09 19:41:05 +09:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-02-11 19:10:29 +09:00
|
|
|
<div class="col-md-4">
|
2022-02-09 19:41:05 +09:00
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Mined Blocks</td>
|
|
|
|
<td>{{ poolStats.blockCount }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Empty Blocks</td>
|
|
|
|
<td>{{ poolStats.emptyBlocks.length }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-borderless" [alwaysCallback]="true" infiniteScroll [infiniteScrollDistance]="1.5" [infiniteScrollUpDistance]="1.5" [infiniteScrollThrottle]="50" (scrolled)="loadMore()">
|
|
|
|
<thead>
|
|
|
|
<th style="width: 15%;" i18n="latest-blocks.height">Height</th>
|
|
|
|
<th class="d-none d-md-block" style="width: 20%;" i18n="latest-blocks.timestamp">Timestamp</th>
|
|
|
|
<th style="width: 20%;" i18n="latest-blocks.mined">Mined</th>
|
2022-02-11 17:55:38 +09:00
|
|
|
<th style="width: 10%;" i18n="latest-blocks.reward">Reward</th>
|
2022-02-09 19:41:05 +09:00
|
|
|
<th class="d-none d-lg-block" style="width: 15%;" i18n="latest-blocks.transactions">Transactions</th>
|
|
|
|
<th style="width: 20%;" i18n="latest-blocks.size">Size</th>
|
|
|
|
</thead>
|
2022-02-10 19:16:00 +09:00
|
|
|
<tbody *ngIf="blocks$ | async as blocks">
|
2022-02-09 19:41:05 +09:00
|
|
|
<tr *ngFor="let block of blocks">
|
2022-02-10 19:16:00 +09:00
|
|
|
<td><a [routerLink]="['/block' | relativeUrl, block.id]" [state]="{ data: { block: block } }">{{ block.height }}</a></td>
|
2022-02-09 19:41:05 +09:00
|
|
|
<td class="d-none d-md-block">‎{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}</td>
|
|
|
|
<td><app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since></td>
|
2022-02-11 17:55:38 +09:00
|
|
|
<td class=""><app-amount [satoshis]="block['reward']" digitsInfo="1.2-2" [noFiat]="true"></app-amount></td>
|
2022-02-09 19:41:05 +09:00
|
|
|
<td class="d-none d-lg-block">{{ block.tx_count | number }}</td>
|
|
|
|
<td>
|
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar progress-mempool" role="progressbar" [ngStyle]="{'width': (block.weight / stateService.env.BLOCK_WEIGHT_UNITS)*100 + '%' }"></div>
|
|
|
|
<div class="progress-text" [innerHTML]="block.size | bytes: 2"></div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-02-08 18:56:51 +09:00
|
|
|
|
|
|
|
</div>
|