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

feature/Create migration for redeploying District.sol and DistrictFactory.sol #121

Open
madvas opened this issue Aug 23, 2021 · 1 comment

Comments

@madvas
Copy link
Contributor

madvas commented Aug 23, 2021

In order to keep our existing districts on blockchain, we'll need truffle migration for partial redeployment, after the Snapshot Integration merge.

Truffle migration file should:

  • deploy District.sol
  • deploy DistrictFactory.sol
  • call setFactory method on existing :district-registry-fwd contract address with the newly deployed DistrictFactory address

Additionally we should create another truffle migration file, which calls setFactory with the old DistrictFactory.sol address (address can be hardcoded), setting it to false. So old factory contract will be disabled once we test our new deployment in production.

@ginesdt
Copy link
Contributor

ginesdt commented Aug 24, 2021

Registry.sol should also be deployed, shouldn't it? The signature of fireDistrictConstructedEvent() and DistrictConstructedEvent changed as part of the snapshot integration.
New Registry.sol should be constructed using existing :district-registry-db.
Finally, a call to setTarget on :district-registry-fwd would be also needed to point to the new Registry.sol deployment.

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

No branches or pull requests

2 participants