Skip to content

feat(contracts): publish testnet contract registry (#410)#490

Open
JohnOluB wants to merge 1 commit into
Pulsefy:mainfrom
JohnOluB:feat/testnet-contract-registry
Open

feat(contracts): publish testnet contract registry (#410)#490
JohnOluB wants to merge 1 commit into
Pulsefy:mainfrom
JohnOluB:feat/testnet-contract-registry

Conversation

@JohnOluB
Copy link
Copy Markdown

What this PR does

Resolves #410 by introducing contracts/registry/ — a single source of truth for all Soroban contract addresses and initialization configuration on Stellar Testnet.

Files added

File | Purpose -- | -- testnet.registry.json | Primary machine-readable registry (JSON). Stores contract IDs, deployer addresses, WASM hashes, timestamps, git SHAs, and init args. testnet.env | Environment-style mirror for .env consumption by frontend/backend. index.ts | Type-safe TypeScript loader — getContractId('aid_escrow') throws clearly if the contract isn't deployed yet. update-registry.sh | Run after soroban contract deploy to auto-populate all REPLACE_WITH_* placeholders with real values + current git SHA. abi/ | Directory for ABI JSON files generated by soroban contract inspect. README.md | Contributor guide covering structure, updating, code usage, and security notes.

How to update after a deploy

bash
./contracts/registry/update-registry.sh \
  --contract-id  C...   \
  --deployer     G...   \
  --wasm-hash    abc123 \
  --admin        G...

Checklist

  • Machine-readable JSON format
  • Records contract ID, deployer, WASM hash, init args
  • Timestamp + git commit SHA captured
  • Easy for contributors to update (script + manual instructions)
  • Type-safe TS helper for app consumption
  • No secrets committed (public keys only)

closes #410

WASM hashes, deployer info, and init configuration on Stellar Testnet.
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

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

Copy link
Copy Markdown
Contributor

@Cedarich Cedarich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please 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.

Publish Testnet Contract Registry (IDs + Config Snapshot)

3 participants