Move our custom fields to a BlockExtension sub object of the IEsploraApi.Block interface

This commit is contained in:
nymkappa committed 2022-02-04 12:51:45 +09:00
1 parent 5c1fc7344d
commit 9f0b09295d
19 files changed
+124 -77

No files matched your search

@@ -1,3 +1,5 @@
import { Block, Transaction } from "./electrs.interface";
export interface OptimizedMempoolStats {
added: number;
vbytes_per_second: number;
@@ -80,3 +82,17 @@ export interface MiningStats {
pools: SinglePoolStats[],
}
export interface BlockExtension {
medianFee?: number;
feeRange?: number[];
reward?: number;
coinbaseTx?: Transaction;
matchRate?: number;
stage?: number; // Frontend only
}
export interface BlockExtended extends Block {
extra?: BlockExtension;
}