Skip to content

Conversation

@RembrandtK
Copy link
Member

The gateway service was failiing to start due to missing LegacyServiceRegistry and LegacyDisputeManager entries in subgraph-service.json.

There was an attempt to patch them in graph-contracts/run.sh, however this appeared to not be updating the shared file. There were also address files checked into Git that were not relevant and created unnecessary and irrelevant changes to tracked files.

In the process of investigating and resloving I made these suggested changes to the way addresses are handled, and made some miscellaneous associated changes:

  • Created empty template address files in config/templates/ (committed to git)
  • Removed obsolete local address files from Git
  • Use config/local/ for working copies (gitignored) mounted into Docker volumes
  • Add init-config service to run config/create-local-config-files.sh during docker compose up
  • Fix graph-contracts to add legacy contracts at right stage without breaking volume mounts
  • Added scripts/clean.sh for easy environment cleanup

- Move address files to addresses/templates/ (committed to git)
- Add addresses/local/ for working copies (gitignored)
- Add init-addresses service to copy templates on startup
- Update all volume mounts to use addresses/local/
- Fix graph-contracts to add legacy contracts without breaking volume mounts
- Add scripts/clean.sh for easy environment cleanup

This ensures address files are properly initialized and managed across
container rebuilds, and fixes the gateway crash due to missing legacy
contract fields.
- Move config files to config/templates/ (committed to git)
- Add config/local/ for working copies (gitignored)
- Add init-addresses service to copy templates on startup
- Update all volume mounts to use config/local/
- Fix graph-contracts to add legacy contracts without breaking volume mounts
- Add scripts/clean.sh for easy environment cleanup

This ensures config files are properly initialized and managed across
container rebuilds, and fixes the gateway crash due to missing legacy
contract fields.
- Add comprehensive README documenting config file management
- Rename init-addresses service to init-config (more accurate)
- Add user: "1000" to init-config for consistent permissions
- Document file relationships, mount points, and cleaning procedures
@RembrandtK RembrandtK requested a review from tmigone November 12, 2025 16:28
@RembrandtK RembrandtK changed the title Clean Add address file management system and clean script Fix and improve local contract address handling Nov 12, 2025
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.

2 participants