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

Support forked deployments #1283

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft

Support forked deployments #1283

wants to merge 4 commits into from

Conversation

area
Copy link
Member

@area area commented Aug 6, 2024

To improve the accuracy and throughput of QA, there's a desire for the ability to have an entire environment that is forked from the QA environment. That includes the database and so-forth, which is out of scope for here, but this PR includes the elements that are required on our side.

There are two main features here:

  • Deploying the latest versions of any contracts that have been updated since the deployment to QA. This is done via the deployToForkedChain script (that's called from outside this repo). This script also downloads the latest reputation state, which the reputation miner will use.
  • Allowing historical querying of reputation; I've added a new forked.js to the miner which is only intended to be used as the miner in this circumstance. It allows mining with an address with an unknown private key (via the getImpersonatedSigner helper, as well as querying the oracle we've forked from in the case of an unknown (and therefore presumed historical) reputation state. This will over-query the oracle (as any reputations queried that don't exist will also be tried upstream), but without having the forked miner sync the whole of history (time-consuming and/or expensive), I think it's the best that we can do.

Leaving in draft for now, as the feature as a whole is still in the testing phase, but we're getting close to this being reviewed and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants