Problem
The simulateTransaction call in AnalyticsModule.getTVL() utilizes as any type casting multiple times, masking potential TypeScript warnings and breaking type safety.
Expected behavior
The transaction and result objects are correctly typed utilizing the exported types from @stellar/stellar-sdk instead of any.
Files to update
Project relevance
Adheres to the strict TypeScript conventions stated in CONTRIBUTING.md and eliminates runtime risks caused by blind type casting.
Acceptance criteria
Problem
The
simulateTransactioncall inAnalyticsModule.getTVL()utilizesas anytype casting multiple times, masking potential TypeScript warnings and breaking type safety.Expected behavior
The transaction and result objects are correctly typed utilizing the exported types from
@stellar/stellar-sdkinstead ofany.Files to update
src/modules/analytics.tsProject relevance
Adheres to the strict TypeScript conventions stated in
CONTRIBUTING.mdand eliminates runtime risks caused by blind type casting.Acceptance criteria
call as anyandresult.result.retval as anyare replaced with proper Stellar SDK types