-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: compute registry data #1
Conversation
Can you add something like this in if (process.env.CA_CERT) {
process.env.CA_CERT = process.env.CA_CERT.replace(/\\n/g, '\n');
} |
src/constants.ts
Outdated
export const SCORE_API_URL = | ||
process.env.SCORE_API_URL ?? 'https://score.snapshot.org'; | ||
|
||
export const COMPUTE_DELAY_SECONDS = 30 * 60; // 30 minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the delay to recompute score from delegates? If so it's better to set it as 1 day. It would be too much subgraph and RPC requests to allow and update every 30mn.
Just tested with multiple space, it works well so far. I think we will be missing many delegates because: |
FYI: I've already setup an app on DigitalOcean with a Postgres db and proper env |
Added support for global delegation, needs update in snapshot.js: snapshot-labs/snapshot.js#1050 |
490bf60
to
ab1b039
Compare
Closes: snapshot-labs/sx-monorepo#485
Depends on: snapshot-labs/snapshot.js#1050
This PR adds compute function that creates delegation data for delegateRegistryV1.
Test plan
Query: