forked from bitpay/bitcore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
412 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export type IBlock = { | ||
chain: string; | ||
confirmations?: number; | ||
network: string; | ||
height: number; | ||
hash: string; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,76 @@ | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-menu-button></ion-menu-button> | ||
</ion-buttons> | ||
<ion-title> | ||
Bitcoin Cash | ||
</ion-title> | ||
</ion-toolbar> | ||
<ion-header no-border> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-menu-button></ion-menu-button> | ||
</ion-buttons> | ||
<ion-title>Bitcoin Cash</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content padding> | ||
<ion-grid> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder top-element"> | ||
signs of life | ||
</div> | ||
</ion-col> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder top-element"> | ||
last 6 blocks | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder top-element"> | ||
transaction activity measured in USD | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder heatmap"> | ||
2018 day-by-day heatmap | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder heatmap"> | ||
2017 day-by-day heatmap | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder heatmap"> | ||
2016 day-by-day heatmap | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder heatmap"> | ||
2015 day-by-day heatmap | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col size="12" size-md> | ||
<div class="placeholder heatmap"> | ||
load earlier button | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
<ion-grid> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder top-element">signs of life</div> | ||
</ion-col> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder top-element">last 6 blocks</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder top-element">transaction activity measured in USD</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder heatmap">2018 day-by-day heatmap</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder heatmap">2017 day-by-day heatmap</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder heatmap">2016 day-by-day heatmap</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder heatmap">2015 day-by-day heatmap</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col | ||
size="12" | ||
size-md | ||
> | ||
<div class="placeholder heatmap">load earlier button</div> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
|
||
</ion-content> | ||
</ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 62 additions & 39 deletions
101
packages/insight/src/app/shared/block/block.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,82 @@ | ||
<!-- <small>block: | ||
{{block | json}}</small> --> | ||
|
||
<div class="card"> | ||
<div [ngClass]="{'card': true, 'detail-view': !summary}"> | ||
<div class="section header"> | ||
<div class="identifiers"> | ||
<div | ||
class="height" | ||
title="The height of this block, i.e. its position in the chain." | ||
> | ||
<div class="height" title="The height of this block, i.e. its position in the chain."> | ||
{{block.height}} | ||
</div> | ||
<span | ||
*ngIf="!block.nextBlockHash" | ||
class="tip-tag" | ||
title="This is the latest block on the network." | ||
> | ||
<span *ngIf="!block.nextBlockHash" class="tip-tag" title="This is the latest block on the network."> | ||
Tip | ||
</span> | ||
</div> | ||
<app-date-time | ||
[value]="block.timeNormalized" | ||
class="time" | ||
> | ||
<app-date-time [value]="block.timeNormalized" class="time"> | ||
</app-date-time> | ||
</div> | ||
<div class="section body"> | ||
<app-card-item class="section"> | ||
<div class="property"> | ||
<div class="key">Block Hash</div> | ||
<div class="value">{{block.hash}}</div> | ||
<span class="key">Block Hash</span> | ||
<span class="value">{{block.hash}}</span> | ||
</div> | ||
<div class="property"> | ||
<span class="key">Transaction Count</span> | ||
<span | ||
class="value link" | ||
(click)="listTransactionsInBlock(block)" | ||
> | ||
<span class="value link" (click)="listTransactionsInBlock(block)"> | ||
{{block.transactionCount}} | ||
</span> | ||
</div> | ||
<div class="property"> | ||
<span class="key">Reward</span> | ||
<span class="key">Block Revenue</span> | ||
<span class="value"> | ||
<app-currency-value | ||
class="reward" | ||
amount="{{block.reward}}" | ||
code="{{block.chain}}_satoshis" | ||
displayAs="{{displayValueCode}}" | ||
></app-currency-value> | ||
<app-currency-value class="reward" amount="{{block.reward}}" code="{{block.chain}}_satoshis" displayAs="{{displayValueCode}}"></app-currency-value> | ||
</span> | ||
</div> | ||
</div> | ||
<div | ||
class="section details" | ||
*ngIf="!summary" | ||
> | ||
[show details] | ||
</div> | ||
</div> | ||
<ng-container *ngIf="!summary"> | ||
<div class="property"> | ||
<span class="key">Mining Pool Claim</span> | ||
<span class="value link" (click)="listBlocksBySameMiner(block)"> | ||
Unknown | ||
</span> | ||
</div> | ||
<div class="property"> | ||
<span class="key">Block Size</span> | ||
<span class="value">{{block.size | bytes}}</span> | ||
</div> | ||
<div class="property"> | ||
<span class="key">Confirmations</span> | ||
<span class="value">{{block.confirmations}}</span> | ||
</div> | ||
</ng-container> | ||
</app-card-item> | ||
<ng-container *ngIf="!summary"> | ||
<app-card-item class="section" header="Block Header" type="expand-collapse" [isOpen]='true'> | ||
<table> | ||
<tr> | ||
<th>Version</th> | ||
<td>{{block.version}}</td> | ||
</tr> | ||
<tr> | ||
<th>Previous Block Hash</th> | ||
<td>{{block.previousBlockHash}}</td> | ||
</tr> | ||
<tr> | ||
<th>Merkle Root</th> | ||
<td>{{block.merkleRoot}}</td> | ||
</tr> | ||
<tr> | ||
<th>Block Time</th> | ||
<td>{{block.time | date:'medium'}}</td> | ||
</tr> | ||
<tr> | ||
<th>Bits</th> | ||
<td>{{block.bits}}</td> | ||
</tr> | ||
<tr> | ||
<th>Nonce</th> | ||
<td>{{block.nonce | number}}</td> | ||
</tr> | ||
</table> | ||
</app-card-item> | ||
<app-card-item class="section" header="Previous Block" headerValue="{{block.height - 1}}" type="forward" | ||
[routerLink]="['/' + block.chain + '/block/' + block.previousBlockHash]"></app-card-item> | ||
<app-card-item *ngIf="block.nextBlockHash" class="section" header="Next Block" headerValue="{{block.height + 1}}" | ||
type="forward" [routerLink]="['/' + block.chain + '/block/' + block.nextBlockHash]"></app-card-item> | ||
</ng-container> | ||
</div> |
Oops, something went wrong.