insight-tcr
Version:
A blockchain explorer for Bitcore
35 lines (30 loc) • 892 B
text/typescript
import { Component, Input } from "@angular/core";
import { IBlock } from "../../types/bitcore-node";
({
selector: 'app-block',
templateUrl: './block.component.html',
styleUrls: ['./block.component.scss']
})
export class BlockComponent {
()
block: IBlock;
/**
* The unit in which to display value – can be either a valid denomination for
* this chain or an alternative currency in which to estimate value.
*/
()
displayValueCode: string;
()
summary = true;
listTransactionsInBlock(block: IBlock) {
// tslint:disable-next-line:no-console
console.log('TODO: jump to transaction listing for block:', block.hash);
}
listBlocksBySameMiner(block: IBlock) {
// tslint:disable-next-line:no-console
console.log(
'TODO: jump to block listing of blocks by the same miner as block:',
block.hash
);
}
}