feat: implement contract address registry API#160
Merged
Wilfred007 merged 3 commits intoGildado:mainfrom Feb 25, 2026
Merged
Conversation
- Add GET /api/contracts endpoint to serve deployed contract addresses - Implement configuration service with environments.toml and env var fallback - Add contract validator for Stellar address format validation - Create frontend contract service with caching and retry logic - Add comprehensive documentation and spec files - Update environments.toml with sample contract data Closes Gildado#78
Add explicit type assertion for import.meta.env.VITE_API_BASE_URL
Contributor
Author
|
Hi @Wilfred007, PR created and pipeline fixed |
This was referenced Mar 25, 2026
4 tasks
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.
Description
This PR implements a Contract Address Registry API that exposes deployed Soroban contract addresses through a centralized endpoint, enabling hot-swappable contract deployments without frontend rebuilds.
Changes
Backend
GET /api/contractsendpoint that returns contract addresses with metadataenvironments.tomlwith automatic fallback to environment variablesFrontend
contracts.tsservice with automatic caching (1-hour TTL)Configuration
environments.tomlwith sample contract data for testnet and mainnetDocumentation
docs/CONTRACT_REGISTRY_API.mdAcceptance Criteria
contractId,network, andversionper contractenvironments.tomlor server-side env vars (not hard-coded)contracts.tsservice fetches and caches the registry on startupdeployedAtledger sequence for referenceTesting
Start the backend and test the endpoint:
Supported Contracts
bulk_paymentvesting_escrowrevenue_splitcross_asset_paymentCloses #151