Skip to content

chore/testnet-deploy-metadata-registry-contract#989

Open
Wetshakat wants to merge 1 commit into
Pulsefy:mainfrom
Wetshakat:chore/testnet-deploy-metadata-registry-contract
Open

chore/testnet-deploy-metadata-registry-contract#989
Wetshakat wants to merge 1 commit into
Pulsefy:mainfrom
Wetshakat:chore/testnet-deploy-metadata-registry-contract

Conversation

@Wetshakat

Copy link
Copy Markdown

closed #868


Title: feat: Implement testnet metadata registry contract

Description:

This PR introduces the metadata_registry smart contract to provide an on-chain repository for storing active contract metadata. This registry serves as a verifiable source of truth for our testnet deployment set, aligning with our current deployment documentation flow.

Key Changes:

  • Metadata Registry Contract (contracts/metadata_registry): Added a new Soroban contract that stores metadata mappings for ecosystem contracts (address, version, environment, and last updated timestamp).
  • Authenticated Admin Updates: Added admin.require_auth() checks to the set_metadata function to ensure only the authorized administrator can make registry updates.
  • Observability: The contract emits InitializedEvent and MetadataUpdatedEvent to allow off-chain indexers and clients to track ecosystem footprint changes in real-time.
  • Client Query Interfaces: Implemented get_metadata(key) and get_all_contracts() functions for clients to easily query and verify the active testnet deployment map.
  • Workspace Integration: Registered metadata_registry into the apps/onchain/Cargo.toml workspace members list.
  • Test Coverage: Added unit tests verifying standard registry flow and unauthorized rejection cases (all passing).

Note for Reviewers:
When the next testnet deployment goes out, we will also need to generate a manifest ID for this registry and bump the deployed contract count audit within our testnet-manifest.json and validate-manifest.js script.

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@Wetshakat 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

@Cedarich

Copy link
Copy Markdown
Contributor

@Wetshakat fix workflow

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.

Contracts: Testnet deploy metadata registry contract

2 participants