Liquid: add BTC reserves to L-BTC widget and make it dynamic

This commit is contained in:
natsee
2024-01-21 13:19:02 +01:00
parent de2842b62a
commit 752eba767a
6 changed files with 233 additions and 46 deletions

View File

@@ -76,6 +76,35 @@ export interface LiquidPegs {
date: string;
}
export interface CurrentPegs {
amount: string;
lastBlockUpdate: number;
hash: string;
}
export interface FederationAddress {
address: string;
balance: string;
}
export interface FederationUtxo {
txid: string;
txindex: number;
bitcoinaddress: string;
amount: number;
blocknumber: number;
blocktime: number;
pegtxid: string;
pegindex: number;
}
export interface AuditStatus {
bitcoinBlocks: number;
bitcoinHeaders: number;
lastBlockAudit: number;
isAuditSynced: boolean;
}
export interface ITranslators { [language: string]: string; }
/**