Skip to content

feat: add clear_service_metadata for clean service retirement - #49

Merged
mikewheeleer merged 1 commit into
Agentpay-Org:mainfrom
Jagadeeshftw:enhancement/contracts-clear-service-metadata
Jun 24, 2026
Merged

feat: add clear_service_metadata for clean service retirement#49
mikewheeleer merged 1 commit into
Agentpay-Org:mainfrom
Jagadeeshftw:enhancement/contracts-clear-service-metadata

Conversation

@Jagadeeshftw

Copy link
Copy Markdown
Contributor

Summary

Adds clear_service_metadata(service_id): admin-gated, removes DataKey::ServiceMetadata(service_id), idempotent (clearing an absent entry is a no-op). Emits meta_clr(service_id) — the topic is shortened to satisfy the 9-char symbol_short! limit. Registration and usage history live in independent slots and are untouched.

Closes #39

Test output

test result: ok. 26 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

Security notes

Admin-gated via DataKey::Admin lookup (panics NotInitialized if unset) followed by admin.require_auth(); only the admin can clear metadata.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Jagadeeshftw
Jagadeeshftw force-pushed the enhancement/contracts-clear-service-metadata branch from 801ea7e to fad7935 Compare June 24, 2026 02:28
@mikewheeleer

Copy link
Copy Markdown
Contributor

clean addition — a way to clear metadata was missing. lgtm 🙌

@mikewheeleer
mikewheeleer merged commit da75d8d into Agentpay-Org:main Jun 24, 2026
1 check failed
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.

Add clear_service_metadata to remove a service's description and owner

2 participants