Deployment monitoring and recovery tooling
This commit is contained in:
@@ -73,6 +73,10 @@ export class Market {
|
||||
} catch (error) { db.close(); throw error; }
|
||||
}
|
||||
close() { this.db.close(); }
|
||||
diagnostics() {
|
||||
const states=this.db.prepare("SELECT json_extract(data,'$.status') AS status,COUNT(*) AS count FROM orders GROUP BY json_extract(data,'$.status')").all();
|
||||
return { queued:this.queued,lastReconciledAt:this.reconciled?.at??null,orderStates:states };
|
||||
}
|
||||
info(): MarketInfo {
|
||||
return { network: NETWORK, chainId: CHAIN_ID, marketId: this.id, paymentMode: 'mock', feeBps: this.config.feeBps,
|
||||
additionalFee: { ...ADDITIONAL_MARKET_FEE },
|
||||
|
||||
Reference in New Issue
Block a user