Skip to content

feat: add tron monitoring#270

Open
preethamr wants to merge 10 commits intodevfrom
feat/add_tron_monitoring
Open

feat: add tron monitoring#270
preethamr wants to merge 10 commits intodevfrom
feat/add_tron_monitoring

Conversation

@preethamr
Copy link
Contributor

feat: add tron monitoring

Copilot AI review requested due to automatic review settings August 5, 2025 18:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive Tron monitoring capabilities to the monitor agent, providing 1:1 parity with existing EVM monitoring functionality. The implementation introduces Tron-specific checks for chain status, RPC connectivity, gas balances, spoke balances, message processing, and various queue monitoring functions.

  • Implements Tron helpers for blockchain interaction using TronWeb integration through chainreader
  • Adds Tron-specific monitoring checks for chains, RPC endpoints, and gas/energy balances
  • Creates comprehensive queue monitoring for Tron deposits, intents, and settlements with latency tracking

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/agents/monitor/src/helpers/tron.ts New Tron-specific helper functions for blockchain interaction
packages/agents/monitor/src/checklist/tron*.ts Core Tron monitoring functionality for chains, spokes, messages, epochs, and pipeline
packages/agents/monitor/src/checklist/queue/tron-*.ts Tron queue monitoring for deposits, intents, and settlements
packages/agents/monitor/test/**/*.spec.ts Comprehensive test coverage for all new Tron monitoring functionality
packages/agents/monitor/test/globalTestHook.ts Test infrastructure updates to support Tron chain configuration
Comments suppressed due to low confidence (3)

packages/agents/monitor/test/helpers/solana.spec.ts:113

  • The test block is named 'Asset Helper Branch Coverage' but is placed in a Solana test file. This test should be moved to the asset.spec.ts file or the block name should be updated to reflect that it's testing asset helpers within the Solana context.
      const { getAssetHash } = await import('../../src/helpers/asset');

packages/agents/monitor/test/checklist/index.spec.ts:32

  • [nitpick] The test is creating multiple individual stubs and then checking them one by one. Consider using a helper function or loop to reduce code duplication for similar stub patterns.
    sandbox = sinon.createSandbox();

@otsybizov
Copy link
Contributor

Seems like too much duplicated code, would be harder to maintain. I'd suggest to reuse common code to deduplicate.

Base automatically changed from mainnet-staging to mainnet-prod August 17, 2025 00:56
Base automatically changed from mainnet-prod to dev August 17, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants