Skip to content

feat: add totalFeesCollected to PaymasterHubContract#155

Merged
hudsonhrh merged 1 commit intomainfrom
hudsonhrh/add-total-fees-collected
Apr 7, 2026
Merged

feat: add totalFeesCollected to PaymasterHubContract#155
hudsonhrh merged 1 commit intomainfrom
hudsonhrh/add-total-fees-collected

Conversation

@hudsonhrh
Copy link
Copy Markdown
Member

Summary

Adds totalFeesCollected: BigInt! to PaymasterHubContract entity to track cumulative solidarity fees collected from all orgs per chain.

Changes

  • schema.graphql: Added totalFeesCollected field
  • paymaster-hub.ts: Accumulate in handleSolidarityFeeCollected, initialize to 0 in getOrCreateHub
  • poa-manager.ts: Initialize to 0 in handleInfrastructureDeployed

Build

graph codegen ✓, graph build

🤖 Generated with Claude Code

Tracks cumulative solidarity fees collected from all orgs on each chain.
Accumulated in handleSolidarityFeeCollected, initialized to 0 in both
getOrCreateHub and handleInfrastructureDeployed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hudsonhrh hudsonhrh merged commit 1c432a7 into main Apr 7, 2026
4 checks passed
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.

1 participant