Skip to content

Remove "any" casting in AnalyticsModule.getTVL simulation #13

Description

@Code-Paragon

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

  • src/modules/analytics.ts

Project relevance

Adheres to the strict TypeScript conventions stated in CONTRIBUTING.md and eliminates runtime risks caused by blind type casting.

Acceptance criteria

  • Feature works as described
  • Tests are added or updated where needed
  • Documentation is updated where needed
  • call as any and result.result.retval as any are replaced with proper Stellar SDK types
  • No TypeScript, lint, test, or build errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions