From fa4628a15362b4f125e52b020638f85c50a1f83b Mon Sep 17 00:00:00 2001 From: zramsay Date: Thu, 26 Jun 2025 11:03:58 -0400 Subject: [PATCH] ts errors --- src/paymentProcessor.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/paymentProcessor.ts b/src/paymentProcessor.ts index d794733..eeb6160 100644 --- a/src/paymentProcessor.ts +++ b/src/paymentProcessor.ts @@ -1,6 +1,6 @@ import { Registry, Account, parseGasAndFees, DEFAULT_GAS_ESTIMATION_MULTIPLIER } from '@cerc-io/registry-sdk'; import { DeliverTxResponse } from '@cosmjs/stargate'; -import { getRegistry, Config } from './config.js'; +import { Config } from './config.js'; import { verifyAtomPayment } from './atomPayments.js'; import { RegHelper } from './deployments.js'; import yaml from 'js-yaml'; @@ -36,6 +36,7 @@ class PaymentProcessor { */ start(): void { console.log('Payment processor started'); + this.initializeChains(); this.processPayments(); } @@ -126,7 +127,7 @@ class PaymentProcessor { * Since stack-orchestrator already handles LNT verification efficiently, * we only need to handle ATOM verification here */ - private async verifyLNTPayment(txHash: string, request: any): Promise { + private async verifyLNTPayment(_txHash: string, _request: any): Promise { try { // LNT verification is handled by stack-orchestrator // We assume if it's not an ATOM payment, stack-orchestrator will handle it @@ -311,6 +312,14 @@ class PaymentProcessor { console.log(`Configured ${configs.length} payment chains`); return configs; } + + /** + * Initialize chain configurations on startup + */ + private initializeChains(): void { + const configs = this.getChainConfigs(); + console.log(`Payment processor initialized with ${configs.length} supported chains`); + } } export { PaymentProcessor }; \ No newline at end of file