Skip to content

feat: emit structured events during platform_fee_allocation (#309) - #436

Merged
godamongstmen897 merged 2 commits into
Goldii-locks:mainfrom
ciscokwiz:Emit_structured_events_during_platform_fee_allocation
Sep 1, 2026
Merged

feat: emit structured events during platform_fee_allocation (#309)#436
godamongstmen897 merged 2 commits into
Goldii-locks:mainfrom
ciscokwiz:Emit_structured_events_during_platform_fee_allocation

Conversation

@ciscokwiz

Copy link
Copy Markdown

Add structured event types and emission for all platform fee allocation functions: set_platform_fee_allocation, lock_platform_fee_allocation, pf_alloc_admin_override, and calculate_platform_fee_split.

New event types:

  • PlatformFeeAllocationSetEvent (topic: pf_set)
  • PlatformFeeAllocationLockedEvent (topic: pf_lock)
  • PlatformFeeAllocationOverrideEvent (topic: pf_ovr)
  • PlatformFeeSplitCalculatedEvent (topic: pf_split)

These events enable downstream indexers to track platform fee configuration changes, lock state transitions, admin overrides, and fee split calculations without polling contract storage.

Comprehensive test coverage for all 4 event types including:

  • Happy path event emission verification
  • Event field validation
  • Failed operation event suppression
  • Rounding/conservation verification

Closes #309

…ocks#309)

Add structured event types and emission for all platform fee allocation
functions: set_platform_fee_allocation, lock_platform_fee_allocation,
pf_alloc_admin_override, and calculate_platform_fee_split.

New event types:
- PlatformFeeAllocationSetEvent (topic: pf_set)
- PlatformFeeAllocationLockedEvent (topic: pf_lock)
- PlatformFeeAllocationOverrideEvent (topic: pf_ovr)
- PlatformFeeSplitCalculatedEvent (topic: pf_split)

These events enable downstream indexers to track platform fee
configuration changes, lock state transitions, admin overrides, and
fee split calculations without polling contract storage.

Comprehensive test coverage for all 4 event types including:
- Happy path event emission verification
- Event field validation
- Failed operation event suppression
- Rounding/conservation verification

Co-Authored-By: Codebuff <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@ciscokwiz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@godamongstmen897
godamongstmen897 merged commit 82bdb06 into Goldii-locks:main Sep 1, 2026
1 check 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.

Emit structured events during platform_fee_allocation events

2 participants