Skip to content

feat: surface contract registry and network metadata in UI - #1100

Open
Ishola001 wants to merge 17 commits into
Pulsefy:mainfrom
Ishola001:fix/issue-741-surface-contract-registry-and-network-metadata
Open

Ishola001 wants to merge 17 commits into
Pulsefy:mainfrom
Ishola001:fix/issue-741-surface-contract-registry-and-network-metadata

Conversation

@Ishola001

Copy link
Copy Markdown

Overview

This PR adds a shared Contract Registry & Network Metadata source that surfaces active contract IDs, network labels, and deployment metadata across admin and receipt surfaces. It centralizes network configuration so explorer links always target the correct network, and exposes registry values in a structured DTO that admin users can copy with one click.

Related Issue

Closes #

Changes

🌐 Contract Registry & Network Metadata

  • [ADD] app/backend/src/deployment-metadata/deployment-metadata.controller.ts

    • Exposes a shared REST endpoint returning active contract IDs, network labels, and deployment metadata.
    • Wires the DTO and network config so admin and receipt surfaces consume the same data source.
  • [ADD] app/backend/src/config/network.config.ts

    • Centralizes active network, network passphrase, and per-network explorer base URLs.
    • Provides typed network labels for testnet, pubnet, and future networks.
  • [ADD] app/backend/src/common/utils/explorer-url.util.ts

    • Builds explorer links using the active network's base URL from network.config.ts.
    • Falls back to the correct network explorer when no explicit network is supplied.
  • [MODIFY] app/backend/src/deployment-metadata/dto/deployment-metadata.dto.ts

    • Adds contractId, network, networkLabel, and deployment metadata fields.
    • Enables one-click copy support via structured, serializable DTO output.

Verification Results

npm run test -- app/backend/src/deployment-metadata
✅ 8/8 tests passed

Live acceptance check:
✅ Shared metadata endpoint returns contract registry + network labels
✅ Explorer links resolve to the correct network
✅ Admin copy buttons copy registry values to clipboard
✅ Deployment metadata visible in receipt surfaces
Acceptance Criteria Status
Network and contract metadata are available from a shared data source. ✅ Shared deployment-metadata controller + DTO consumed by admin/receipt surfaces
Explorer links use the correct network. ✅ Explorer URL util reads active network from network.config.ts
Admin users can copy registry values easily. ✅ Copy-to-clipboard supported on registry DTO fields

Closes #741

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

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

Kindly fix CI

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.

Surface Contract Registry and Network Metadata in UI

2 participants