Skip to content

feat(minter): report the automatic deposit flow in the metrics and on the dashboard - #287

Draft
gregorydemay wants to merge 6 commits into
DEFI-2780-10-watchlist-snapshotfrom
DEFI-2780-12-automatic-flow-metrics
Draft

gregorydemay wants to merge 6 commits into
DEFI-2780-10-watchlist-snapshotfrom
DEFI-2780-12-automatic-flow-metrics

Conversation

@gregorydemay

@gregorydemay gregorydemay commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Reports the automatic deposit flow of #272 in the metrics (watched addresses, age of the oldest registration, scans by outcome, collected fees) and on the dashboard (the fee parameter, the collected fees and a paginated table of the watched addresses).

🤖 Generated with Claude Code

@gregorydemay
gregorydemay added this pull request to stack #288 October 14, 2026 08:50
@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from 1de2d70 to 9820615 Compare October 14, 2026 09:04
Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The dashboard can display expired registrations as actively watched addresses.

1 open finding
What changed in this PR

Adds observability for the automatic deposit flow through metrics and the minter dashboard.

Changes:

  • Adds watchlist, queued-deposit, age, and fee metrics.
  • Adds fee metadata and a paginated watched-address table.
  • Extends dashboard and integration tests.
File Description
minter/​templates/​dashboard.html Renders fees and watched addresses.
minter/​src/​metrics.rs Exposes automatic-deposit metrics.
minter/​src/​dashboard/​tests.rs Tests dashboard additions and pagination.
minter/​src/​dashboard/​mod.rs Builds new dashboard data and pagination.
integration_tests/​tests/​tests.rs Checks exported metrics.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread minter/src/dashboard/mod.rs
Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:18
@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from 9820615 to 9180e71 Compare October 14, 2026 09:18
@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from 9180e71 to ecc34b0 Compare October 14, 2026 09:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The dashboard can incorrectly present expired registrations as actively watched.

1 open finding

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The dashboard can report expired registrations, and the cumulative fee metric is incorrectly typed as a gauge.

2 open findings

🧠 Review effort: Balanced

Comment thread minter/src/metrics.rs
Comment on lines +133 to +136
w.encode_gauge(
"collected_automatic_deposit_fees",
s.collected_automatic_deposit_fees().metric_value(),
"Sum in Lamports of the automatic deposit fees deducted from the mints of credited sweeps.",
Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:35
@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from ecc34b0 to c0f5880 Compare October 14, 2026 09:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The dashboard can display expired registrations, and the cumulative fee metric is incorrectly typed as a gauge.

2 open findings

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 14, 2026 09:56
@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from c0f5880 to cbf0ec6 Compare October 14, 2026 09:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The dashboard includes expired registrations, and cumulative collected fees are incorrectly exported as a gauge.

2 open findings

🧠 Review effort: Balanced

@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from cbf0ec6 to 5becaab Compare October 14, 2026 11:19
Copilot AI balanced review requested due to automatic review settings October 14, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The dashboard can show expired registrations, and collected fees use the wrong metric type.

2 open findings

🧠 Review effort: Balanced

@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from 53d23ff to e4b1a94 Compare October 15, 2026 09:04
Copilot AI balanced review requested due to automatic review settings October 15, 2026 09:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

Static review identified no blocking issues in these read-only observability changes; tests were not executed.

2 open findings

🧠 Review effort: Balanced

@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from e4b1a94 to 4c30148 Compare October 15, 2026 09:54
Copilot AI balanced review requested due to automatic review settings October 15, 2026 09:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The reporting changes fit existing state and pagination APIs, with no blocking issues identified; tests were not executed.

2 open findings

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 15, 2026 11:28
@gregorydemay
gregorydemay force-pushed the DEFI-2780-12-automatic-flow-metrics branch from 4c30148 to e01e743 Compare October 15, 2026 11:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No blocking issues were identified in the read-only reporting changes; tests were not executed.

2 open findings

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 15, 2026 12:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The additive reporting changes have supporting tests and no identified blocking issues.

2 open findings

🧠 Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The additive reporting changes follow existing state and pagination APIs, with no blocking issues identified.

2 open findings

🧠 Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The reporting changes follow existing state and pagination interfaces, with relevant coverage and no identified blocking issues.

2 open findings

🧠 Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The additive reporting changes have relevant test coverage and no identified blocking issues; automated tests were not run.

2 open findings

🧠 Review effort: Balanced

gregorydemay and others added 6 commits October 15, 2026 14:07
… the dashboard

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… dashboard

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…isting

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…lone

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e scan outcomes alone

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The additive reporting changes follow existing patterns, with no blocking issues identified in static review; tests were not run.

2 open findings

🧠 Review effort: Balanced

This branch has not been deployed

No deployments
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.

2 participants