fix: emit AdminTransferredEvent in transfer_admin for all three contracts (Fixes #55) - #59
Open
baedboibidex-cmyk wants to merge 1 commit into
Conversation
…acts (Fixes ecotask-network#55) Add AdminTransferredEvent { #[topic] previous_admin, new_admin } to eco-token, task-registry, and reward-engine. The event is emitted after the storage write in transfer_admin, giving off-chain indexers a verifiable on-chain signal for admin handover governance auditing. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <[email protected]>
cybermax4200
requested changes
Aug 18, 2026
cybermax4200
left a comment
Contributor
There was a problem hiding this comment.
The CI checks are failing, please kindly fix them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #55 — Adds
AdminTransferredEventemissions totransfer_adminin all three contracts (eco-token,task-registry,reward-engine).Changes
contracts/eco-token/src/token.rs: AddedAdminTransferredEventstruct and emission intransfer_admincontracts/task-registry/src/registry.rs: AddedAdminTransferredEventstruct and emission intransfer_admincontracts/reward-engine/src/verification.rs: AddedAdminTransferredEventstruct and emission intransfer_adminCHANGELOG.md: Added entry documenting the new eventEvent Structure
previous_adminis a#[topic]field for indexer filteringTests
Added
test_transfer_admin_emits_eventin each contract that:transfer_adminsuccessfullyprevious_admin) and data (new_admin)CI Checklist
cargo fmt --all -- --check✅cargo clippy --all-targets --all-features -- -D warnings✅cargo build --target wasm32v1-none --release --locked✅cargo doc --workspace --no-deps(with-D warnings) ✅cargo test --workspace— 159 tests passed ✅Resolves #55