Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate 'Registry' contract with the project #13

Open
HarryR opened this issue Jul 6, 2018 · 1 comment
Open

Integrate 'Registry' contract with the project #13

HarryR opened this issue Jul 6, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@HarryR
Copy link
Owner

HarryR commented Jul 6, 2018

The Registrar / Registry contract makes it easier to work with related and interlinked contracts.

See: https://github.com/HarryR/panautomata/blob/61a4bdaa26fe3dfb0305606b1d143df6c9180061/solidity/contracts/Registrar.sol

This should really be part of the first release to avoid all the problems with hard-coding contract addresses everywhere.

However, it does make deploying the contracts a little more difficult because you must associate them with a specific registry, deploy with the same account the registry was deployed with etc. It also introduces problems if you want to deploy multiples of the same contract.

Another option would be a contract factory with auto-registration... but again, adds complexities.

The problem I was having which lead to wanting this Registry contract was that whenever the migrations file changed the contract addresses would also change (which breaks stuff), this is a problem during development, but may also be a problem when deploying to the test networks.

@HarryR HarryR added the enhancement New feature or request label Jul 6, 2018
@HarryR HarryR modified the milestone: Initial Release Jul 6, 2018
@HarryR
Copy link
Owner Author

HarryR commented Jul 11, 2018

Another use case for a Registry / Factory contract is #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant