Skip to content

feat: event emitted on supplier tier change #478

Description

@shakurJJ

Summary

Supplier tier (Bronze/Silver/Gold) changes silently — there's no event for off-chain systems to react to a supplier's tier changing.

Proposed Behaviour

  • Emit a supplier_tier_changed event whenever a supplier's computed tier changes (old tier, new tier, supplier address).
  • Evaluated at the same points the tier is already computed today (e.g. on shipment creation / reputation update), no new computation paths added.

Acceptance Criteria

  • Event is emitted only when the tier actually changes, not on every evaluation
  • Event payload includes old tier, new tier, and supplier address
  • Tests cover an upgrade, a downgrade, and a no-change evaluation (no event)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions