You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Event emission in contracts/assetsup/src/ is inconsistent across modules. Some modules emit events; others silently mutate state. Backend services and indexers cannot reliably track on-chain state changes without consistent events.
Proposed Solution
Create contracts/opsce/src/events.rs that defines a standardized emit_event() helper and a complete set of typed event structs for all assetsup operations.
Problem
Event emission in
contracts/assetsup/src/is inconsistent across modules. Some modules emit events; others silently mutate state. Backend services and indexers cannot reliably track on-chain state changes without consistent events.Proposed Solution
Create
contracts/opsce/src/events.rsthat defines a standardizedemit_event()helper and a complete set of typed event structs for all assetsup operations.Acceptance Criteria
AssetRegistered,AssetTransferred,AssetRetired,TokensMinted,TokensBurned,TokensTransferred,DividendsDistributed,VoteCast,LeaseCreated,LeaseReturnedcontracttypeand has named fields (not raw bytes)emit_event(env, event)is a generic helper that callsenv.events().publish()assetsup/src/are updated to use the new event structs (or clearly document which modules still need updating)